220a03f59c9ab984510486bf7391d1bb0911943c
[gnulib.git] / ChangeLog
1 2010-08-07  Karl Berry  <karl@gnu.org>
2
3         * doc/posix-headers/limits.texi,
4         * doc/posix-functions/malloc.texi,
5         * doc/posix-functions/strsignal.texi: missing @item.
6         * doc/ld-version-script.texi: spurious leading i.
7
8 2010-08-01  Bruno Haible  <bruno@clisp.org>
9
10         Integrate the regex documentation.
11         * doc/gnulib.texi: Define 'cn' index.
12         (Regular expressions): New a chapter that includes regex.texi and
13         regexprops-generic.texi.
14         * doc/regex.texi: Remove boilerplate stuff. Use simplified @node
15         syntax.
16
17         Whitespace cleanup.
18         * doc/regex.texi: Remove trailing spaces.
19
20         Add regex documentation.
21         * doc/regex.texi: New file. Taken from regex-0.12/doc/regex.texi in
22         http://ftp.gnu.org/old-gnu/regex/regex-0.12.tar.gz.
23         Written by Kathy A. Hargreaves and Karl Berry.
24
25 2010-08-01  Bruno Haible  <bruno@clisp.org>
26
27         link: Update documentation.
28         * doc/posix-functions/link.texi: Update regarding Solaris.
29
30 2010-07-31  Bruno Haible  <bruno@clisp.org>
31
32         Update modules list.
33         * MODULES.html.sh (Sorting functions <stdlib.h>): Add array-mergesort.
34         (String handling <string.h>): Add memcmp2, memxfrm.
35         (Container data structures): Add xlist, xsublist, xoset.
36         (Core language properties): Add alignof, unused-parameter.
37         (Process control, Numeric conversion functions <stdlib.h>): Renamed
38         from Numeric conversion functions <stdlib.h>. Add _Exit, atoll.
39         (Unibyte characters <ctype.h>): New section.
40         (String handling <string.h>): New section.
41         (Mathematics <math.h>): Add acos, acosl, asin, asinl, atan, atan2,
42         atanl, cbrt, copysign, cos, cosh, cosl, erf, erfc, exp, expl, fabs,
43         fmod, hypot, j0, j1, jn, ldexp, lgamma, log, log10, log1p, logb, logl,
44         modf, nextafter, pow, remainder, rint, sin, sinh, sinl, sqrt, sqrtl,
45         tan, tanh, tanl, y0, y1, yn.
46         (Support for systems lacking POSIX:2008): Add alphasort, dirent,
47         dprintf, dprintf-posix, duplocale, fcntl, getlogin, getopt-posix,
48         grantpt, iconv-h, ioctl, isblank, langinfo, nl_langinfo, pread,
49         ptsname, pwrite, scandir, servent, sys_utsname, ttyname_r, uname,
50         unlockpt, vdprintf, vdprintf-posix.
51         (Enhancements for POSIX:2008 functions): Add getopt-gnu. Remove getopt.
52         (File system functions): Add concat-filename, sys_file, sys_ioctl,
53         xconcat-filename.
54         (File descriptor based Input/Output): Add dup3, fd-safer-flag,
55         getdtablesize, pipe2, pipe2-safer.
56         (Security): New section.
57         (Networking functions): Add accept4.
58         (Signal handling): Add sigpipe.
59         (Internationalization functions): Add xstriconveh, mbmemcasecmp,
60         mbmemcasecoll.
61         (Unicode string functions): Add libunistring-optional, unistr/u*-cmp2,
62         unistr/u*-strcoll, uniwbrk/*, uninorm/*, unicase/*.
63         (Executing programs): Add findprog-lgpl, pipe-filter-gi,
64         pipe-filter-ii.
65         (Misc): Add argp-version-etc, login_tty, parse-duration.
66
67 2010-07-31  Bruno Haible  <bruno@clisp.org>
68
69         Improve doc in MODULES.html.
70         * modules/linkat (Description): Add the word "function".
71         * modules/mkfifo (Description): Likewise.
72         * modules/mknod (Description): Likewise.
73         * modules/remove (Description): Likewise.
74         * modules/renameat (Description): Likewise.
75         * modules/stat (Description): Likewise.
76         * modules/symlink (Description): Likewise.
77         * modules/unlink (Description): Likewise.
78
79 2010-07-31  Bruno Haible  <bruno@clisp.org>
80
81         ansi-c++-opt: Provide option --enable-c++/--disable-c++ when possible.
82         * m4/ansi-c++.m4 (gl_CXX_CHOICE): In Autoconf 2.66 or newer, provide
83         option --enable/disable-c++ instead of --enable/disable-cxx.
84         * NEWS: Mention the change.
85
86 2010-07-31  Bruno Haible  <bruno@clisp.org>
87
88         readlink, areadlink: Relax test a bit.
89         * tests/test-readlink.h (test_readlink): Accept EINVAL as an
90         alternative to ENOTDIR.
91         * tests/test-areadlink.h (test_areadlink): Likewise.
92         Reported by Rainer Tammer.
93
94 2010-07-31  Bruno Haible  <bruno@clisp.org>
95
96         unistr/u8-strstr, unistr/u16-strstr: Optimize the one-character case.
97         * lib/unistr/u-strstr.h (FUNC): When the needle contains only one
98         character, perform the search using U_STRCHR.
99         * lib/unistr/u8-strstr.c (U_STRMBTOUC): New macro.
100         * lib/unistr/u16-strstr.c (U_STRMBTOUC): Likewise.
101         * modules/unistr/u8-strstr (Depends-on): Add unistr/u8-strmbtouc.
102         * modules/unistr/u16-strstr (Depends-on): Add unistr/u16-strmbtouc.
103         Suggested by Paolo Bonzini.
104
105 2010-07-31  Bruno Haible  <bruno@clisp.org>
106
107         unistr/u*-strstr: Fix dependencies.
108         * modules/unistr/u8-strstr (Depends-on): Add unistr/u8-strchr.
109         * modules/unistr/u16-strstr (Depends-on): Add unistr/u16-strchr.
110         * modules/unistr/u32-strstr (Depends-on): Add unistr/u32-strchr.
111
112 2010-07-31  Bruno Haible  <bruno@clisp.org>
113
114         unistr/u8-chr, unistr/u8-strchr: Optimize and add comments.
115         * lib/unistr/u8-chr.c (u8_chr): Add comments. Remove a useless test at
116         the beginning of the loop.
117         * lib/unistr/u8-strchr.c (u8_strchr): Add comments. Don't fall through
118         cases in 'switch' statement.
119
120         unistr/u8-strchr: Fix several bugs.
121         * lib/unistr/u8-strchr.c (u8_strchr): Don't search beyond the end of
122         the string. When not found, return NULL, not a pointer near the end.
123
124         More tests for unistr/u8-strchr.
125         * tests/unistr/test-strchr.h (test_strchr): Renamed from main. Check
126         that the function does not read past the first occurrence of the byte
127         being searched.
128         * tests/unistr/test-u8-strchr.c (main): New function, with more tests.
129         * tests/unistr/test-u16-strchr.c (main): New function.
130         * tests/unistr/test-u32-strchr.c (main): New function.
131
132 2010-07-31  Bruno Haible  <bruno@clisp.org>
133
134         posix-modules: Ignore backup files of documentation files.
135         * posix-modules: grep only through files named *.texi.
136
137 2010-07-31  Bruno Haible  <bruno@clisp.org>
138
139         symlinkat: Fix documentation.
140         * doc/posix-functions/readlinkat.texi: Fix module name.
141
142 2010-07-31  Bruno Haible  <bruno@clisp.org>
143
144         fchownat: Replace also when chown has the trailing slash bug.
145         * m4/openat.m4 (gl_FUNC_FCHOWNAT): Move the test of REPLACE_CHOWN
146         outside the gl_FUNC_FCHOWNAT_DEREF_BUG invocation. Fixes regression
147         introduced on 2010-04-10.
148         Reported by Rainer Tammer.
149
150 2010-07-31  Bruno Haible  <bruno@clisp.org>
151
152         linkat: Work around AIX 7.1 bug.
153         * m4/linkat.m4 (gl_FUNC_LINKAT): Require AC_CANONICAL_HOST. Test
154         whether linkat handles trailing slash correctly. If not, replace linkat
155         and define LINKAT_TRAILING_SLASH_BUG.
156         * lib/linkat.c (rpl_linkat): If LINKAT_TRAILING_SLASH_BUG is defined,
157         check whether (fd1,file1) points to a directory if file1 or file2 ends
158         in a slash. Code taken from lib/link.c.
159         * doc/posix-functions/linkat.texi: Mention trailing slash bug.
160         Reported by Rainer Tammer.
161
162 2010-07-31  Bruno Haible  <bruno@clisp.org>
163
164         Correctly determine whether pow is available in libc on AIX 7 with xlc.
165         * m4/mathfunc.m4 (gl_MATHFUNC): Actually use the 'funcptr' variable.
166         This disables an xlc optimization that was causing wrong test results.
167         Reported by Rainer Tammer.
168
169 2010-07-31  Bruno Haible  <bruno@clisp.org>
170
171         iconv: Work around AIX 6.1..7.1 bug.
172         * doc/posix-functions/iconv.texi: Mention AIX 6.1, 7.1 bug.
173         * m4/iconv.m4 (AM_ICONV_LINK): Test against AIX 6.1, 7.1 bug. When
174         cross-compiling, guess no on all versions of AIX.
175         Reported by Rainer Tammer.
176
177 2010-07-31  Bruno Haible  <bruno@clisp.org>
178
179         readlink: Relax test a bit.
180         * tests/test-readlink.h (test_readlink): Allow different errno value
181         when readlink is called with a file name that ends in / and refers to
182         a file.
183         Suggested by Eric Blake.
184         Reported by Rainer Tammer.
185
186 2010-07-31  Bruno Haible  <bruno@clisp.org>
187
188         copysign: Does not require -lm on glibc systems.
189         * modules/copysign (configure.ac): Use gl_MATHFUNC, not
190         gl_COMMON_DOUBLE_MATHFUNC.
191         * m4/mathfunc.m4 (gl_COMMON_DOUBLE_MATHFUNC): Update comments.
192
193 2010-07-31  Bruno Haible  <bruno@clisp.org>
194
195         duplocale: Work around AIX 7.1 bug.
196         * m4/duplocale.m4 (gl_FUNC_DUPLOCALE): Let the test fail also when
197         duplocale(LC_GLOBAL_LOCALE) returns (locale_t)0.
198         * lib/duplocale.c (rpl_duplocale): Update comment.
199         * doc/posix-functions/duplocale.texi: Mention the AIX 7.1 bug.
200         Reported by Rainer Tammer.
201
202 2010-07-30  Bruno Haible  <bruno@clisp.org>
203
204         dirfd: Avoid link error on AIX 7.1.
205         * lib/dirent.in.h (dirfd): Use modern idiom with REPLACE_DIRFD.
206         * m4/dirfd.m4 (gl_FUNC_DIRFD): If the function is declared but does not
207         exist, set REPLACE_DIRFD.
208         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): Initialize REPLACE_DIRFD.
209         * modules/dirent (Makefile.am): Substitute REPLACE_DIRFD.
210         * doc/posix-functions/dirfd.texi: Update.
211         Reported by Rainer Tammer.
212
213 2010-07-30  Eric Blake  <eblake@redhat.com>
214
215         strtod: next round of AIX fixes
216         * lib/strtod.c (strtod): Work around AIX bug of parsing p with no
217         exponent.
218         * tests/test-strtod.c (main): Enhance tests.
219         * doc/posix-functions/strtod.texi (strtod): Document next bug.
220         Reported by Rainer Tammer.
221
222         futimens: fix configure check
223         * m4/futimens.m4 (gl_FUNC_FUTIMENS): Use correct logic.
224         Reported by Bruno Haible.
225
226 2010-07-30  Bruno Haible  <bruno@clisp.org>
227
228         getline: Update regarding AIX.
229         * doc/posix-functions/getline.texi: Mention bug on AIX 7.1.
230         Reported by Rainer Tammer.
231
232 2010-07-30  Bruno Haible  <bruno@clisp.org>
233
234         wcwidth: Drop replacement on AIX 7.
235         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): When cross-compiling, guess yes on
236         AIX 7.
237         Reported by Rainer Tammer.
238
239 2010-07-30  Bruno Haible  <bruno@clisp.org>
240
241         strtok_r: Avoid triggering bug in AIX 7.1 xlc compiler.
242         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Don't cast an invalid address to
243         a 'char *'.
244         Reported by Rainer Tammer.
245
246 2010-07-30  Bruno Haible  <bruno@clisp.org>
247
248         unlink: Update regarding AIX.
249         * doc/posix-functions/unlink.texi: Mention bug on AIX 7.1.
250         * m4/unlink.m4 (gl_FUNC_UNLINK): Update comment.
251         Reported by Rainer Tammer.
252
253 2010-07-30  Bruno Haible  <bruno@clisp.org>
254
255         symlink: Update regarding AIX.
256         * doc/posix-functions/symlink.texi: Mention bug on AIX 7.1.
257         * m4/symlink.m4 (gl_FUNC_SYMLINK): Update comment.
258         Reported by Rainer Tammer.
259
260 2010-07-30  Bruno Haible  <bruno@clisp.org>
261
262         strndup: Update regarding AIX.
263         * m4/strndup.m4 (gl_FUNC_STRNDUP): When cross-compiling, guess yes on
264         AIX 7.
265         Reported by Rainer Tammer.
266
267 2010-07-30  Bruno Haible  <bruno@clisp.org>
268
269         stat: Update regarding AIX.
270         * doc/posix-functions/stat.texi: Mention bug on AIX 7.1.
271         * m4/stat.m4 (gl_FUNC_STAT): Update comment.
272         Reported by Rainer Tammer.
273
274 2010-07-30  Bruno Haible  <bruno@clisp.org>
275
276         truncl: Fix autoconf test.
277         * m4/truncl.m4 (gl_FUNC_TRUNCL): Add TRUNCL_LIBM to LIBS while testing
278         whether truncl works.
279         Reported by Rainer Tammer.
280
281 2010-07-30  Bruno Haible  <bruno@clisp.org>
282
283         round: Update regarding AIX.
284         * m4/round.m4 (gl_FUNC_ROUND): When cross-compiling, guess no on AIX 7.
285         * doc/posix-functions/round.texi: Mention bug on AIX 7.1.
286         Reported by Rainer Tammer.
287
288 2010-07-30  Bruno Haible  <bruno@clisp.org>
289
290         rename: Update regarding AIX.
291         * doc/posix-functions/rename.texi: Mention bug on AIX 7.1.
292         * m4/rename.m4 (gl_FUNC_RENAME): Update comment.
293         Reported by Rainer Tammer.
294
295 2010-07-30  Bruno Haible  <bruno@clisp.org>
296
297         printf.m4: Update regarding AIX.
298         * m4/printf.m4: Update comments regarding AIX.
299         Reported by Rainer Tammer.
300
301 2010-07-30  Bruno Haible  <bruno@clisp.org>
302
303         iconv: Update regarding AIX.
304         * m4/iconv.m4 (AM_ICONV_LINK): When cross-compiling, guess yes on
305         AIX 7.
306         Reported by Rainer Tammer.
307
308 2010-07-30  Bruno Haible  <bruno@clisp.org>
309
310         getopt: Update regarding AIX.
311         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): When cross-compiling, guess
312         no on AIX.
313         * doc/posix-functions/getopt.texi: Mention that AIX has the optind bug.
314         Reported by Rainer Tammer.
315
316 2010-07-30  Bruno Haible  <bruno@clisp.org>
317
318         ldexpl; Update regarding AIX.
319         * m4/ldexpl.m4 (gl_FUNC_LDEXPL_WORKS): When cross-compiling, guess yes
320         on AIX 7.
321         Reported by Rainer Tammer.
322
323 2010-07-30  Bruno Haible  <bruno@clisp.org>
324
325         frexpl: Update regarding AIX.
326         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): When cross-compiling, guess yes
327         on AIX 7.
328         Reported by Rainer Tammer.
329
330 2010-07-30  Bruno Haible  <bruno@clisp.org>
331
332         open, fopen: Update regarding AIX.
333         * m4/open.m4 (gl_FUNC_OPEN): Adjust cross-compiling guess for AIX.
334         * m4/fopen.m4 (gl_FUNC_FOPEN): Likewise.
335         * doc/posix-functions/open.texi: Mention the trailing-slash bug on AIX.
336         * doc/posix-functions/fopen.texi: Likewise.
337         Reported by Rainer Tammer.
338
339 2010-07-30  Bruno Haible  <bruno@clisp.org>
340
341         chown: Update doc regarding AIX.
342         * doc/posix-functions/chown.texi: Mention bug on AIX 7.1.
343         * m4/chown.m4 (gl_FUNC_CHOWN): Update comment.
344         Reported by Rainer Tammer.
345
346 2010-07-30  Eric Blake  <eblake@redhat.com>
347
348         strtod: fix bug in replacement function on AIX
349         * lib/strtod.c (strtod): Special case broken "0x" parse in
350         underlying strtod.
351         * tests/test-strtod.c (main): Document AIX 7.1 bugs.
352         * doc/posix-functions/strtod.texi (strtod): Likewise.
353         Reported by Rainer Tammer.
354
355 2010-07-30  Bruno Haible  <bruno@clisp.org>
356
357         mbrlen: Fix cross-compilation guess for AIX.
358         * m4/mbrlen.m4 (gl_MBRLEN_INCOMPLETE_STATE): Fix cross-compilation
359         guess. Leftover from 2008-12-22.
360
361 2010-07-30  Bruno Haible  <bruno@clisp.org>
362
363         mbrtowc: Fix cross-compilation guess for AIX.
364         * m4/mbrtowc.m4 (gl_MBRTOWC_INCOMPLETE_STATE): Fix cross-compilation
365         guess. Leftover from 2008-12-21.
366
367 2010-07-29  Peter O'Gorman  <pogma@thewrittenword.com>  (tiny change)
368
369         init.sh: work around trap limitation of some shells
370         * tests/init.sh (setup_): Move exit trap outside of shell function.
371
372 2010-07-29  Eric Blake  <eblake@redhat.com>
373
374         strtod: aid debugging
375         * m4/strtod.m4(gl_FUNC_STRTOD): Use distinct exit status to aid
376         understanding why strtod is rejected.
377
378 2010-07-28  Bruno Haible  <bruno@clisp.org>
379
380         unistr/u*-chr, unistr/u*-strchr: Fix link errors and warnings.
381         * lib/unistr/u8-chr.c: Include <string.h>.
382         * tests/unistr/test-u8-chr.c: Likewise.
383         * tests/unistr/test-u16-chr.c: Likewise.
384         * tests/unistr/test-u32-chr.c: Likewise.
385         * tests/unistr/test-u8-strchr.c: Likewise.
386         * tests/unistr/test-u16-strchr.c: Likewise.
387         * tests/unistr/test-u32-strchr.c: Likewise.
388         * modules/unistr/u8-chr-tests (Depends-on): Add unistr/u32-set.
389         * modules/unistr/u16-chr-tests (Depends-on): Likewise.
390         * modules/unistr/u8-strchr-tests (Depends-on): Likewise.
391         * modules/unistr/u16-strchr-tests (Depends-on): Likewise.
392
393 2010-07-28  Bruno Haible  <bruno@clisp.org>
394
395         Use spaces for indentation, not tabs.
396         * lib/**/*.[hcy] except lib/reg*.[hc]: Untabify.
397
398 2010-07-27  Bruno Haible  <bruno@clisp.org>
399
400         mbspcasecmp: Fix function specification.
401         * lib/string.in.h (mbspcasecmp): Fix specification comment.
402         * lib/mbspcasecmp.c (mbspcasecmp): Likewise.
403         Reported by Eric Blake <eblake@redhat.com>.
404
405 2010-07-26  Paul R. Eggert  <eggert@cs.ucla.edu>
406
407         timespec: use cast and not conditional, as truncation isn't possible
408         * lib/timespec.h (timespec_cmp): Use cast to pacify gcc -Wconversion
409         instead of a conditional.  Comment about the situation in more detail.
410         This undoes most of the 2009-10-29 patch.
411
412 2010-07-23  Paolo Bonzini  <pbonzini@redhat.com>
413
414         unistr/u8-chr, unistr/u8-strchr: use Boyer-Moore like algorithm.
415         * lib/unistr/u8-chr.c: Add Boyer-Moore like operation.
416         * lib/unistr/u8-strchr.c: Likewise.
417         * modules/unistr/u8-chr: Depend on memchr.
418
419         unistr/u*-strchr: add tests
420         * modules/unistr/u8-strchr-tests: New file.
421         * modules/unistr/u16-strchr-tests: New file.
422         * modules/unistr/u32-strchr-tests: New file.
423         * tests/unistr/test-strchr.h: New file.
424         * tests/unistr/test-u8-strchr.c: New file.
425         * tests/unistr/test-u16-strchr.c: New file.
426         * tests/unistr/test-u32-strchr.c: New file.
427
428         unistr/u*-chr: test multibyte sequences more
429         * tests/unistr/test-chr.h: Do complete testing of the characters in the
430         test vector.
431         * tests/unistr/test-u8-chr.c (U_UCTOMB): Define.
432         * tests/unistr/test-u16-chr.c (U_UCTOMB): Likewise.
433         * tests/unistr/test-u32-chr.c (U_UCTOMB): Likewise.
434
435         unistr/u*-chr: test multibyte sequences
436         * tests/unistr/test-chr.h: Put characters above 0-127 in the test input.
437
438         unistr/u*-chr: prepare for multibyte tests
439         * modules/unistr/u8-chr-tests: Depend on u32-to-u8.
440         * modules/unistr/u16-chr-tests: Depend on u32-to-u16.
441         * tests/unistr/test-chr.h: Build initial version as UCS-4 then convert.
442         * tests/unistr/test-u8-chr.c (U32_TO_U): Define.
443         * tests/unistr/test-u16-chr.c (U32_TO_U): Likewise.
444         * tests/unistr/test-u32-chr.c (U32_TO_U): Likewise.
445
446 2010-07-18  Bruno Haible  <bruno@clisp.org>
447
448         unistr/u8-strchr: Optimize non-ASCII argument case.
449         * lib/unistr/u8-strchr.c (u8_strchr): Compare the last byte first,
450         because the first byte often matches anyway.
451         Reported by Pádraig Brady <P@draigbrady.com>.
452
453 2010-07-15  Karl Berry  <karl@gnu.org>
454
455         * config/srclist.txt (fdl.texi): only one copy, from gnustandards.
456
457 2010-07-14  Paul R. Eggert  <eggert@cs.ucla.edu>
458
459         getcwd: on Solaris, work better if ancestors are inaccessible
460         * lib/getcwd.c (__getcwd): If getcwd returns EINVAL for zero
461         buffer and size, try again with a large buffer.  This works better
462         on Solaris, since its getcwd succeeds even if the path to the root
463         is inaccessible, and this is helpful in common cases such as .zfs
464         hidden directories.  Problem reported by J Chapman Flack in
465         http://lists.gnu.org/archive/html/bug-tar/2010-06/msg00000.html
466         Use system getcwd if it's declared, not merely if it's partly
467         working; use the partly-working test only to avoid needless effort
468         if the system getcwd fails.
469         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Omit
470         comment that was already obsolete and is now even more obsolete.
471         * modules/getcwd (Depends-on): Depend on strdup, since __getcwd
472         now might call strdup.
473
474 2010-07-13  Paul R. Eggert  <eggert@cs.ucla.edu>
475
476         pthread: Add enough so that coreutils/src/sort.c compiles.
477         * lib/pthread.in.h: Add self to author comment.  Conditionalize on
478         _GL_PTHREAD_H, not PTHREAD_H_, for consistency with the rest of
479         gnulib. Include <sched.h> and <time.h>, as per POSIX.
480         Include <sys/types.h>, in case it defines pthread_t.
481         (pthread_t, pthread_attr_t, pthread_barrier_t, pthread_barrierattr_t):
482         (pthread_cond_t, pthread_condattr_t, pthread_key_t, pthread_mutex_t):
483         (pthread_mutexattr_t, pthread_once_t, pthread_rwlock_t):
484         (pthread_rwlockattr_t, pthread_spinlock_t):
485         New typedefs, if HAVE_PTHREAD_T is not defined.
486         (PTHREAD_COND_INITIALIZER, PTHREAD_MUTEX_INITIALIZER):
487         (PTHREAD_ONCE_INIT, PTHREAD_RWLOCK_INITIALIZER):
488         (PTHREAD_BARRIER_SERIAL_THREAD, PTHREAD_CANCEL_DEFERRED):
489         (PTHREAD_CANCEL_ASYNCHRONOUS, PTHREAD_CANCEL_ENABLE):
490         (PTHREAD_CANCEL_DISABLE, PTHREAD_CANCELED, PTHREAD_CREATE_JOINABLE):
491         (PTHREAD_CREATE_DETACHED, PTHREAD_INHERIT_SCHED):
492         (PTHREAD_EXPLICIT_SCHED, PTHREAD_MUTEX_DEFAULT, PTHREAD_MUTEX_NORMAL):
493         (PTHREAD_MUTEX_ERRORCHECK, PTHREAD_MUTEX_RECURSIVE):
494         (PTHREAD_MUTEX_STALLED, PTHREAD_MUTEX_ROBUST, PTHREAD_PRIO_NONE):
495         (PTHREAD_PRIO_INHERIT, PTHREAD_PRIO_PROTECT, PTHREAD_PROCESS_PRIVATE):
496         (PTHREAD_PROCESS_SHARED, PTHREAD_SCOPE_SYSTEM, PTHREAD_SCOPE_PROCESS):
497         New macros.
498         (pthread_cond_destroy, pthread_cond_init, pthread_cond_signal):
499         (pthread_cond_wait, pthread_exit, pthread_mutex_destroy):
500         (pthread_mutex_init, pthread_mutex_lock, pthread_mutex_unlock):
501         (pthread_spin_init, pthread_spin_lock, pthread_spin_trylock);
502         (pthread_spin_unlock): New dummy functions.
503         (pthread_create): Return EAGAIN; don't set errno.
504         * m4/pthread.m4 (gl_PTHREAD_CHECK): Check for pthread_t, and
505         require AC_C_INLINE.
506         * modules/pthread (Depends-on): Add sched, time.
507         (pthread.h): Use AM_V_GEN.
508
509 2010-07-13  Bruno Haible  <bruno@clisp.org>
510
511         striconveh: Don't malloc memory if the result buffer is sufficient.
512         * lib/striconveh.c (mem_cd_iconveh_internal): Use the provided result
513         buffer if its size is sufficient.
514         Reported by Ludovic Courtès <ludo@gnu.org>.
515
516 2010-07-13  Bruno Haible  <bruno@clisp.org>
517
518         strtod: Add safety check.
519         * lib/strtod.c (ldexp): Abort if this dummy replacement gets called.
520
521 2010-07-12  Bruno Haible  <bruno@clisp.org>
522
523         Unify tests that set gl_cv_func_ldexpl_no_libm.
524         * m4/ldexpl.m4 (gl_CHECK_LDEXPL_NO_LIBM): New macro, extracted from
525         gl_FUNC_LDEXPL.
526         (gl_FUNC_LDEXPL): Invoke it.
527         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Likewise.
528
529 2010-07-12  Bruno Haible  <bruno@clisp.org>
530
531         Unify tests that set gl_cv_func_ldexp_no_libm.
532         * m4/ldexp.m4: New file, based on m4/mathfunc.m4.
533         * m4/strtod.m4 (gl_PREREQ_STRTOD): Require gl_CHECK_LDEXP_NO_LIBM.
534         * modules/ldexp (Files): Remove m4/mathfunc.m4. Add m4/ldexp.m4.
535         (configure.ac): Simply invoke gl_FUNC_LDEXP.
536         * modules/strtod (Files): Add m4/ldexp.m4.
537
538 2010-07-12  Bruno Haible  <bruno@clisp.org>
539
540         Unify tests that set gl_cv_func_frexpl_no_libm.
541         * m4/frexpl.m4 (gl_CHECK_FREXPL_NO_LIBM): New macro, extracted from
542         gl_FUNC_FREXPL_NO_LIBM.
543         (gl_FUNC_FREXPL, gl_FUNC_FREXPL_NO_LIBM): Invoke it.
544         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Likewise.
545
546 2010-07-12  Bruno Haible  <bruno@clisp.org>
547
548         Unify tests that set gl_cv_func_frexp_no_libm.
549         * m4/frexp.m4 (gl_CHECK_FREXP_NO_LIBM): New macro, extracted from
550         gl_FUNC_FREXP_NO_LIBM.
551         (gl_FUNC_FREXP, gl_FUNC_FREXP_NO_LIBM): Require it.
552         * m4/printf-frexp.m4 (gl_FUNC_PRINTF_FREXP): Likewise.
553
554 2010-07-12  Paul R. Eggert  <eggert@cs.ucla.edu>
555
556         memcoll: clarify sizes versus lengths, document better, and tweak perf
557         * lib/memcoll.c (strcoll_loop, memcoll0):
558         Improve quality of descriptive comments.  Name variables
559         consistently as to whether they are lengths (which do not include
560         terminating null) versus sizes (which do).
561         * lib/xmemcoll.c (xmemcoll0): Likewise.
562         * lib/memcoll.c (strcoll_loop): Tweak the way that the diff is
563         returned when s1size == 0; this is easier to compile and saves
564         about 17% of memcoll's code space on x86-64 with GCC 4.1.2.
565
566 2010-07-12  Bruno Haible  <bruno@clisp.org>
567
568         Tests for module '_Exit'.
569         * modules/_Exit-tests: New file.
570         * tests/test-_Exit.sh: New file.
571         * tests/test-_Exit.c: New file.
572
573         New module '_Exit'.
574         * lib/stdlib.in.h (__attribute__): New macro.
575         (_Exit): New declaration.
576         * lib/_Exit.c: New file.
577         * m4/_Exit.m4: New file.
578         * m4/stdlib_h.m4 (gl_STDLIB_H): Check whether _Exit is declared.
579         (gl_STDLIB_H_DEFAULTS): Initialize GNULIB__EXIT and HAVE__EXIT.
580         * modules/stdlib (Makefile.am): Substitute GNULIB__EXIT and HAVE__EXIT.
581         * modules/_Exit: New file.
582         * tests/test-stdlib-c++.cc (_Exit): Check signature.
583         * doc/posix-functions/_Exit_C99.texi: Mention the new module.
584
585 2010-07-12  Paul R. Eggert  <eggert@cs.ucla.edu>
586
587         strtod: make it more-accurate typically, and don't require libm
588         * lib/strtod.c (_GL_ARG_NONNULL): Remove; no longer needed.
589         Include limits.h.  Don't include string.h.
590         (HAVE_LDEXP_IN_LIBC, HAVE_RAW_DECL_STRTOD): Define to 0 if not defined.
591         (locale_isspace): New function, so that no casts are needed to
592         check whether *s is a space.
593         (ldexp): Provide an unused dummy if not available.
594         (scale_radix_exp, parse_number, underlying_strtod): New functions.
595         (strtod): Use them.  This implementation prefers to use the
596         underlying strtod if available, falling back on our own code
597         only to fix known bugs.  This is more likely to produce an
598         accurate result.  Also, it avoids the use of libm functions.
599         * m4/strtod.m4 (gl_FUNC_STRTOD): Don't invoke _AC_LIBOBJ_STRTOD;
600         no longer needed.  Invoke AC_LIBOBJ([strtod]); don't know why this
601         was absent, but it caused a test failure with coreutils.
602         (gl_PREREQ_STRTOD): Check wither ldexp can be used without linking
603         with libm.
604         * modules/strtod (Makefile.am, Link): libm is no longer needed.
605         * modules/strtod-tests (Makefile.am): Likewise.
606
607 2010-07-11  Pádraig Brady  <P@draigBrady.com>
608             Bruno Haible  <bruno@clisp.org>
609
610         unistr/u8-strchr: Optimize ASCII argument case.
611         * lib/unistr/u8-strchr.c (u8_strchr): For ASCII arguments, use strchr.
612
613 2010-07-08  Paul Eggert  <eggert@cs.ucla.edu>
614
615         (x)memcoll: minor tweaks
616         * lib/memcoll.c (strcoll_loop): Prefer the style where 'const'
617         is after the type that it qualifies.
618         (memcoll0): Likewise.
619         * lib/memcoll.h (memcoll0): Likewise.
620         * lib/xmemcoll.c (collate_error, xmemcoll0): Likewise.
621         * lib/xmemcoll.h (xmemcoll0): Likewise.
622         * lib/memcoll.c (memcoll0): Correct the comment.  This function
623         differs from memcoll in that the NUL byte is part of the argument.
624         Omit the abort-checks, as performance is a real issue here.  Plus,
625         the checks were wrong anyway (an off-by-one error).  Omit local
626         variable 'diff', as it's a bit clearer that way.
627         * m4/memcoll.m4 (gl_MEMCOLL): Omit AC_FUNC_STRCOLL, as it's
628         no longer needed.
629
630 2010-07-08  Chen Guo <chenguo4@yahoo.com>
631
632         (x)memcoll: speedup when input is known to be NUL delimited
633         * lib/memcoll.c: Include stdlib.
634         (memcoll0) New function.
635         (strcoll_loop) New function, refactored for use in both memcoll
636         and memcoll0.
637         * lib/memcoll.h: Add prototype for memcoll0.
638         * lib/xmemcoll.c: (xmemcoll0) New function.
639         (collate_error) New function, refactored for use in both xmemcoll
640         and xmemcoll0.
641         * lib/xmemcoll.h: Add prototype for xmemcoll0.
642         * m4/memcoll.m4: add inline invocation.
643
644 2010-07-06  Pádraig Brady  <P@draigBrady.com>
645
646         * build-aux/bootstrap: Remove any local translations
647         from the translation project synchronization directory,
648         so that local only translations are not distributed.
649
650 2010-07-04  Bruno Haible  <bruno@clisp.org>
651
652         fsusage: Clarify which code applies to which platforms.
653         * m4/fsusage.m4 (gl_FSUSAGE): Clarify which test succeeds on which
654         platform.
655         * lib/fsusage.c (get_fs_usage): Likewise.
656
657 2010-07-04  Bruno Haible  <bruno@clisp.org>
658
659         havelib: Fix bug when AC_LIB_FROMPACKAGE is used more than twice.
660         * m4/lib-link.m4 (AC_LIB_FROMPACKAGE): Use m4_defn.
661         Reported by Martin Lambers <marlam@marlam.de>.
662
663 2010-07-04  Jim Meyering  <meyering@redhat.com>
664
665         hash: once again explicitly disallow insertion of NULL
666         * lib/hash.c (hash_insert0): Reinstate just-removed test:
667         inserting a NULL pointer cannot work with these functions.
668         Add a comment with details.
669         This reverts part of the 2010-07-01 commit, 5bef1a35
670         "hash: extend module to deal with non-pointer keys".
671
672 2010-07-01  Bruno Haible  <bruno@clisp.org>
673
674         stdbool: Update doc.
675         * doc/posix-headers/stdbool.texi: Mention OpenBSD bug.
676         Info from Christian Weisgerber <naddy@mips.inka.de>.
677
678 2010-07-01  Jim Meyering  <meyering@redhat.com>
679
680         hash: extend module to deal with non-pointer keys
681         * lib/hash.c (hash_insert0): New interface, much like hash_insert
682         but that allows insertion of non-pointer entries.
683         Do not disallow an ENTRY value of NULL.
684         (hash_insert): This is now just a thin wrapper.  Call hash_insert0.
685         * lib/hash.h (hash_insert0): Declare.
686
687 2010-07-01  Christian Weisgerber  <naddy@mips.inka.de>  (tiny change)
688
689         gettext: Use AC_GNU_SOURCE as a fallback for AC_USE_SYSTEM_EXTENSIONS.
690         * m4/fcntl-o.m4 (gl_FCNTL_O_FLAGS): When AC_USE_SYSTEM_EXTENSIONS is
691         not present (i.e. with autoconf 2.59 and when using gettextize, not
692         gnulib), require AC_GNU_SOURCE instead.
693
694 2010-07-01  Ian Beckwith  <ianb@erislabs.net>
695
696         idpriv-drop: Fix tests.
697         * tests/test-idpriv-drop.su.sh: Refer to the test-idpriv-drop program,
698         not to the test-idpriv-droptemp program.
699
700 2010-06-29  Bruno Haible  <bruno@clisp.org>
701
702         string: Fix syntax error with g++ 2.96.
703         * lib/string.in.h (__pure__): Remove definition.
704         (_GL_ATTRIBUTE_PURE): New macro.
705         (memchr, memmem, memrchr, rawmemchr, strchrnul, strnlen, strpbrk,
706         strstr, strcasestr): Use it instead of __attribute__ ((__pure__)).
707         Reported by Christian Weisgerber <naddy@mips.inka.de>.
708
709 2010-06-28  Ian Beckwith  <ianb@erislabs.net>
710
711         unitypes: Fix bug introduced on 2010-05-18.
712         * modules/unitypes (Files): Really add m4/libunistring-base.m4.
713
714 2010-06-22  Eric Blake  <eblake@redhat.com>
715
716         memmem: slight optimization
717         * lib/str-two-way.h (critical_factorization): Update comments.
718         Reduce work during factorization phase.
719         Reported by Carlos Bueno <carlos@bueno.org>.
720
721 2010-06-21  Bruno Haible  <bruno@clisp.org>
722
723         Fix HAVE_CALLOC_POSIX misnomer.
724         * lib/stdlib.in.h (calloc): Use REPLACE_CALLOC instead of
725         !HAVE_CALLOC_POSIX.
726         * m4/calloc.m4 (gl_REPLACE_CALLOC): Set REPLACE_CALLOC instead of
727         HAVE_CALLOC_POSIX.
728         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize REPLACE_CALLOC
729         instead of HAVE_CALLOC_POSIX.
730         * modules/stdlib (Makefile.am): Substitute REPLACE_CALLOC instead of
731         HAVE_CALLOC_POSIX.
732
733         Use modern idiom for calloc() replacement.
734         * modules/calloc (configure.ac): Invoke gl_FUNC_CALLOC_GNU instead of
735         AC_FUNC_CALLOC.
736         * m4/calloc.m4 (gl_FUNC_CALLOC_GNU): Renamed from AC_FUNC_CALLOC.
737         Require gl_STDLIB_H_DEFAULTS. Invoke gl_REPLACE_CALLOC.
738         (gl_FUNC_CALLOC_POSIX): Rely on gl_STDLIB_H_DEFAULTS to initialize
739         HAVE_CALLOC_POSIX. Invoke gl_REPLACE_CALLOC.
740         (gl_REPLACE_CALLOC): New macro.
741
742 2010-06-21  Bruno Haible  <bruno@clisp.org>
743
744         Fix HAVE_REALLOC_POSIX misnomer.
745         * lib/stdlib.in.h (realloc): Use REPLACE_REALLOC instead of
746         !HAVE_REALLOC_POSIX.
747         * m4/realloc.m4 (gl_REPLACE_REALLOC): Set REPLACE_REALLOC instead of
748         HAVE_REALLOC_POSIX.
749         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize REPLACE_REALLOC
750         instead of HAVE_REALLOC_POSIX.
751         * modules/stdlib (Makefile.am): Substitute REPLACE_REALLOC instead of
752         HAVE_REALLOC_POSIX.
753
754         Use modern idiom for realloc() replacement.
755         * modules/realloc (configure.ac): Invoke gl_FUNC_REALLOC_GNU instead of
756         AC_FUNC_REALLOC.
757         * m4/realloc.m4 (gl_FUNC_REALLOC_GNU): New macro, mostly copied from
758         Autoconf's AC_FUNC_REALLOC.
759         (gl_FUNC_REALLOC_POSIX): Rely on gl_STDLIB_H_DEFAULTS to initialize
760         HAVE_REALLOC_POSIX. Invoke gl_REPLACE_REALLOC.
761         (gl_REPLACE_REALLOC): New macro.
762         Reported by Richard Lloyd <richard.lloyd@connectinternetsolutions.com>.
763
764 2010-06-21  Bruno Haible  <bruno@clisp.org>
765
766         Fix HAVE_MALLOC_POSIX misnomer.
767         * lib/stdlib.in.h (malloc): Use REPLACE_MALLOC instead of
768         !HAVE_MALLOC_POSIX.
769         * m4/malloc.m4 (gl_REPLACE_MALLOC): Set REPLACE_MALLOC instead of
770         HAVE_MALLOC_POSIX.
771         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize REPLACE_MALLOC
772         instead of HAVE_MALLOC_POSIX.
773         * modules/stdlib (Makefile.am): Substitute REPLACE_MALLOC instead of
774         HAVE_MALLOC_POSIX.
775
776         Use modern idiom for malloc() replacement.
777         * modules/malloc (configure.ac): Invoke gl_FUNC_MALLOC_GNU instead of
778         AC_FUNC_MALLOC.
779         * m4/malloc.m4 (gl_FUNC_MALLOC_GNU): New macro, mostly copied from
780         Autoconf's AC_FUNC_MALLOC.
781         (gl_FUNC_MALLOC_POSIX): Rely on gl_STDLIB_H_DEFAULTS to initialize
782         HAVE_MALLOC_POSIX. Invoke gl_REPLACE_MALLOC.
783         (gl_REPLACE_MALLOC): New macro.
784         Reported by Richard Lloyd <richard.lloyd@connectinternetsolutions.com>.
785
786 2010-06-20  Richard Lloyd  <richard.lloyd@connectinternetsolutions.com>
787
788         stdio.in.h: fix compilation failure when using HP-UX 11's C compiler
789         * lib/stdio.in.h: Remove excess _GL_CXXALIAS_RPL macro argument.
790         This macro takes 3 arguments, not 4.
791
792 2010-06-15  Giuseppe Scrivano  <gscrivano@gnu.org>
793
794         ipv6: fix detection under mingw
795         * m4/sockpfaf.m4 (gl_SOCKET_FAMILIES): Include <ws2tcpip.h> for struct
796         in6_addr.
797
798 2010-06-14  Ben Pfaff  <blp@cs.stanford.edu>
799
800         * m4/strtod.m4 (gl_FUNC_STRTOD): Factor out common code.  Assume
801         that strtod() works when cross-compiling to a glibc version known
802         to work.
803
804 2010-06-15  Bruno Haible  <bruno@clisp.org>
805
806         * m4/strtod.m4 (gl_FUNC_STRTOD): Stop using AC_FUNC_STRTOD.
807
808 2010-06-15  René Berber  <r.berber@computer.org>  (tiny change)
809
810         select: Correct timeout.
811         * lib/select.c (rpl_select): Compute wait_timeout correctly.
812
813 2010-06-14  Thien-Thi Nguyen  <ttn@gnuvola.org>  (tiny change)
814
815         git-version-gen: init shell var to avoid env var influence
816         * build-aux/git-version-gen (v): Init shell var to empty.
817
818 2010-06-14  Paul Eggert  <eggert@cs.ucla.edu>
819
820         priv-set: Don't assume that priv.h exists merely because getppriv does.
821         See Jan Andersen's bug report about AIX 5L in
822         http://lists.gnu.org/archive/html/bug-tar/2010-06/msg00019.html
823         * m4/priv-set.m4 (gl_PRIV_SET): Check for priv.h.
824         * lib/priv-set.c: Do nothing unless HAVE_PRIV_H.
825         * lib/priv-set.h: Likewise.
826         * tests/test-priv-set.c: Likewise.
827
828 2010-06-13  Bruno Haible  <bruno@clisp.org>
829
830         relocatable: Make it easier to test whether to install wrappers.
831         * m4/relocatable.m4 (gl_RELOCATABLE_BODY): New automake conditional
832         RELOCATABLE_VIA_WRAPPER.
833
834 2010-06-13  Bruno Haible  <bruno@clisp.org>
835
836         gnulib-tool: Display specified modules and dependencies differently.
837         * gnulib-tool (func_show_module_list): New function.
838         (func_import, func_create_testdir): Invoke it.
839         Reported by Thien-Thi Nguyen <ttn@gnuvola.org>.
840
841 2010-06-13  Bruno Haible  <bruno@clisp.org>
842
843         gnulib-tool: Align code of func_import and func_create_testdir.
844         * gnulib-tool (func_create_testdir): Rename variable saved_modules to
845         specified_modules.
846
847 2010-06-12  Jim Meyering  <meyering@redhat.com>
848
849         test-inttostr: avoid spurious failure on Solaris 9
850         * tests/test-inttostr.c (main): Skip the test when snprintf fails
851         to accept "%ju".  Reported by Bruno Haible.
852
853 2010-06-11  Jim Meyering  <meyering@redhat.com>
854
855         test-sys_socket: mark variables as used more readably
856         * tests/test-sys_socket.c (main): Mark otherwise unused variables
857         as "used" explicitly via (void) statement casts.  This is more
858         readable than using them in an artificial return expression.
859         Suggestion from Bruno Haible.
860
861 2010-06-11  Bruno Haible  <bruno@clisp.org>
862
863         Avoid some more warnings from "gcc -Wwrite-strings".
864         * tests/test-argp.c (test_optional): Change 5th and 6th argument type
865         to 'const char *'.
866         * tests/test-c-strstr.c (main): Add 'const' to variable declaration.
867         * tests/test-c-strcasestr.c (main): Likewise.
868         * tests/test-mbscasestr1.c (main): Likewise.
869         * tests/test-mbscasestr2.c (main): Likewise.
870         * tests/test-memmem.c (main): Likewise.
871         * tests/test-strstr.c (main): Likewise.
872         * tests/test-strcasestr.c (main): Likewise.
873
874 2010-06-11  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
875
876         init.sh: change framework_failure_ to fail with status 99, not 1
877         * tests/init.sh (framework_failure_): Exit 99, not 1.  This informs
878         automake's parallel-tests rule that this is an unexpected failure,
879         even if the test is listed in XFAIL_TESTS.
880
881 2010-06-11  Jim Meyering  <meyering@redhat.com>
882
883         test-inttostr: avoid warnings about 4-6KB literal strings
884         * tests/test-inttostr.c: Don't use <assert.h>.  Instead, ...
885         Include "macros.h", for its definition of ASSERT.
886         (CK): s/assert/ASSERT/
887         * modules/inttostr-tests (Files): Add macros.h.
888
889         init.sh: don't use $ME_ or skip_ before they are defined
890         * tests/init.sh: Hoist definitions of $ME_ and skip_ to precede
891         their first uses.  Also hoist their companions: warn_, fail_,
892         framework_failure_, $stderr_fileno.  Prompted by a patch from
893         Stefano Lattarini.
894
895         test-sys_socket: avoid set-but-not-used warnings from gcc
896         * tests/test-sys_socket.c (main): Use "i" and "x", in order to
897         avoid warning about set-but-not-used variables.
898
899         test-xvasprintf: avoid 'const' discard warnings
900         * tests/test-xvasprintf.c (test_xvasprintf, test_xasprintf): Use
901         "const" when assigning from literal strings.
902         (test_xasprintf): Add "void" in function argument list to placate
903         -Wstrict-prototypes and to be consistent with test_xvasprintf above.
904
905         tests: avoid compilation warnings in argmatch and exclude tests...
906         in packages that define ARGMATCH_DIE_DECL, like coreutils.
907         * tests/test-exclude.c [ARGMATCH_DIE_DECL]: Also declare the function.
908         Since it always exits, declare with the "noreturn" attribute.
909         * tests/test-argmatch.c: Likewise.
910
911         tests: avoid 'const' discard warnings in mbsstr tests
912         * tests/test-mbsstr1.c (main): Add "const" to avoid trivial warning.
913         * tests/test-mbsstr2.c (main): Likewise.
914
915         test-verify: avoid warning from gcc's -Wmissing-declarations
916         * tests/test-verify.c (function): Declare to be static.
917
918         test-inttostr.c: include <string.h> for use of strcmp
919         * tests/test-inttostr.c: Include <string.h> for strcmp declaration.
920
921         test-linkat: avoid failed assertion on "other" architectures
922         * tests/test-linkat.c: Include <sys/stat.h>, for declarations of stat,
923         lstat, mkdir.  Patch by John Rigby, to fix FTBFS on armel, powerpc,
924         sparc: https://bugs.launchpad.net/bugs/591968
925
926 2010-06-11  Jim Meyering  <meyering@redhat.com>
927
928         printf.m4: avoid autoconf's "Expanded Before Required" warning
929         * m4/printf.m4 (gl_SNPRINTF_RETVAL_C99): Define using AC_DEFUN_ONCE,
930         rather than AC_DEFUN, to avoid the classic "Expanded Before Required"
931         autoconf warning.
932
933 2010-06-10  Ben Pfaff  <blp@cs.stanford.edu>
934
935         Replacement header templates are now named with ".in", not "_".
936         * doc/gnulib-intro.texi: Correct.
937
938 2010-06-10  Jim Meyering  <meyering@redhat.com>
939
940         inttostr-tests: depend on snprintf, not snprintf-posix
941         * modules/inttostr-tests (Depends-on): Depend on snprintf, not
942         snprintf-posix, to avoid this aclocal failure:
943           missing file gnulib-tests/vasnprintf.c
944           configure.ac:45: error: expected source file, required through \
945           AC_LIBSOURCES, not found
946
947 2010-06-10  Jim Meyering  <meyering@redhat.com>
948
949         inttostr: add a new function, inttostr, and tests
950         The namesake function was not available.  The existence of the
951         template file, inttostr.c makes its addition nontrivial.
952         * lib/anytostr.c: Rename from inttostr.c.
953         (anytostr): Rename from inttostr.
954         * lib/inttostr.c: New file.
955         * modules/inttostr (Files): Add anytostr.c.
956         (Makefile.am): Set lib_SOURCES instead of ...
957         * m4/inttostr.m4: Remove uses of AC_LIBOBJ.
958         * lib/imaxtostr.c: Update use.  s/inttostr/anytostr/
959         * lib/offtostr.c: Likewise.
960         * lib/uinttostr.c: Likewise.
961         * lib/umaxtostr.c: Likewise.
962         * modules/inttostr-tests: New file.
963         * tests/test-inttostr.c: New file.  Test these functions.
964
965 2010-06-09  Ben Pfaff  <blp@cs.stanford.edu>
966             Bruno Haible  <bruno@clisp.org>
967
968         Add "Extending Gnulib" chapter to manual.
969         * doc/gnulib.texi (Writing Modules): Add cross-reference to new
970         chapter.
971         (Extending Gnulib): New chapter.
972         * doc/gnulib-intro.texi (Openness): Add cross-reference to new
973         chapter.
974
975 2010-06-09  Bruno Haible  <bruno@clisp.org>
976
977         Avoid relocwrapper link errors due to gnulib replacement functions.
978         * lib/areadlink.c: Use the system's malloc, realloc functions.
979         (areadlink): Set errno to ENOMEM explicitly.
980         * modules/areadlink (Depends-on): Remove malloc-posix.
981         Reported by Ben Pfaff <blp@cs.stanford.edu>.
982
983 2010-06-09  Bruno Haible  <bruno@clisp.org>
984
985         Avoid relocwrapper link errors due to gnulib replacement functions.
986         * lib/canonicalize-lgpl.c: Use the system's malloc function.
987         * lib/malloca.c: Likewise.
988         * lib/relocatable.c: Likewise.
989         * lib/progreloc.c: Use the system's malloc, sprintf functions.
990         * lib/relocwrapper.c: Use the system's fprintf, malloc functions.
991         * lib/setenv.c: Use the system's malloc, realloc functions.
992         * lib/strerror.c: Use the system's sprintf function.
993         Reported by Ben Pfaff <blp@cs.stanford.edu>.
994
995 2010-06-04  Bruno Haible  <bruno@clisp.org>
996
997         Prefer documented low-level autoconf macro names.
998         * m4/lib-link.m4: Use m4_translit instead of translit.
999         * m4/environ.m4: Likewise.
1000         * m4/mathfunc.m4: Likewise.
1001         * m4/onceonly.m4: Likewise.
1002         * m4/stdint.m4: Likewise.
1003         Suggested by Eric Blake.
1004
1005 2010-06-04  Martin Lambers  <marlam@marlam.de>
1006             Bruno Haible  <bruno@clisp.org>
1007
1008         havelib: Allow library names with '+' characters.
1009         * m4/lib-link.m4 (AC_LIB_LINKFLAGS, AC_LIB_HAVE_LINKFLAGS,
1010         AC_LIB_FROMPACKAGE, AC_LIB_LINKFLAGS_BODY): Convert '+' in name to '_'.
1011
1012 2010-06-09  Bruno Haible  <bruno@clisp.org>
1013
1014         Module setenv does not depend on 'malloc-posix', 'realloc-posix'.
1015         * lib/setenv.c (__add_to_environ): Set errno to ENOMEM when malloc or
1016         realloc failed.
1017
1018 2010-06-08  Peter Simons  <simons@cryp.to>
1019
1020         maint.mk: make the news-check rule more configurable
1021         * top/maint.mk (news-check-lines-spec) New variable.
1022         (news-check): Use "sed -n 1,10p" in place of "head".
1023
1024 2010-06-07  Jim Meyering  <meyering@redhat.com>
1025
1026         do-release-commit-and-tag: fix typo in --help
1027         * build-aux/do-release-commit-and-tag (Usage): Fix typo in --help.
1028
1029         regex: avoid new dead-code warning with gcc-4.6.0
1030         * lib/regex_internal.c (re_string_reconstruct): #if-0-out a dead
1031         if-block containing a while-loop.  It's been unused for at least
1032         5 years.
1033
1034 2010-06-05  Bruno Haible  <bruno@clisp.org>
1035
1036         * doc/posix-functions/strcoll.texi: Mention Solaris limitation.
1037         Reported by River Tarnell <river.tarnell@wikimedia.de> via Eric Blake.
1038
1039 2010-06-04  Bruno Haible  <bruno@clisp.org>
1040
1041         Update to GNU gettext 0.18.1.
1042         * modules/gettext (configure.ac): Require gettext infrastructure from
1043         version 0.18.1.
1044
1045 2010-06-03  Bruno Haible  <bruno@clisp.org>
1046
1047         Don't use AC_LIBOBJ with file names in subdirectories.
1048         * m4/libunistring-base.m4 (gl_LIBUNISTRING_MODULE): Renamed from
1049         gl_LIBUNISTRING_LIBSOURCE. Take a module name as argument, not a file
1050         name. Define an automake conditional. Don't invoke AC_LIBOBJ.
1051         * m4/libunistring.m4 (gl_LIBUNISTRING): Update AC_BEFORE invocation.
1052         * modules/uni*/* (configure.ac): Use gl_LIBUNISTRING_MODULE instead of
1053         gl_LIBUNISTRING_LIBSOURCE.
1054         (Makefile.am): Augment lib_SOURCES here, conditionally.
1055         * NEWS: Drop requirement for Automake option 'subdir-objects'.
1056
1057 2010-06-03  Bruno Haible  <bruno@clisp.org>
1058
1059         Simplify gl_LIBUNISTRING_VERSION_CMP expansion.
1060         * m4/libunistring-base.m4 (gl_LIBUNISTRING_VERSION_CMP): Ensure
1061         expansion does not end with a newline.
1062         (gl_LIBUNISTRING_LIBSOURCE, gl_LIBUNISTRING_LIBHEADER): Avoid
1063         unnecessary newline.
1064
1065 2010-06-03  Bruno Haible  <bruno@clisp.org>
1066
1067         Reduce dependencies.
1068         * tests/test-quotearg.h: New file, extracted from
1069         tests/test-quotearg.c.
1070         * tests/test-quotearg-simple.c: New file, extracted from
1071         tests/test-quotearg.c.
1072         * tests/test-quotearg.c: Don't include <ctype.h>.
1073         (struct result_strings, struct result_groups, LQ, RQ, LQ_ENC, RQ_ENC,
1074         RQ_ESC, inputs, compare, use_quotearg_buffer, use_quotearg,
1075         use_quote_double_quotes, use_quotearg_colon): Moved to
1076         tests/test-quotearg.h.
1077         (results_g, flag_results, custom_quotes, custom_results): Moved
1078         to tests/test-quotearg-simple.c.
1079         (main): Moved the part that does not depend on gettext to
1080         tests/test-quotearg-simple.c. Return 77 if the test cannot be
1081         performed.
1082         * modules/quotearg-simple: New file.
1083         * modules/quotearg-simple-tests: New file.
1084         * modules/quotearg (Depends-on): Add quotearg-simple.
1085         * modules/quotearg-tests (Status): Mark as gettext-dependent-test.
1086         (Files): Add tests/test-quotearg.h.
1087         Reported by Paolo Bonzini.
1088
1089 2010-06-03  Bruno Haible  <bruno@clisp.org>
1090
1091         Reduce dependencies.
1092         * modules/acl (Depends-on): Add gettext-h. Remove gettext.
1093
1094 2010-06-03  Bruno Haible  <bruno@clisp.org>
1095
1096         time: Undefine more broken macros.
1097         * lib/time.in.h: Undefine broken localtime_r and gmtime_r macros only
1098         for pthread-win32. Undefine also asctime_r, ctime_r, rand_r, strtok_r.
1099         Reported by Eric Blake.
1100
1101 2010-06-03  Bruno Haible  <bruno@clisp.org>
1102
1103         Choose among AC_DEFUN_ONCE, AC_DEFUN in a way that aclocal understands.
1104         * m4/iconv.m4 (gl_iconv_AC_DEFUN): New macro.
1105         (AM_ICONV): Define it through gl_iconv_AC_DEFUN.
1106         * m4/libunistring.m4 (gl_libunistring_AC_DEFUN): New macro.
1107         (gl_LIBUNISTRING): Define it through gl_libunistring_AC_DEFUN.
1108         Reported by Ludovic Courtès <ludo@gnu.org>.
1109
1110 2010-06-02  Eric Blake  <eblake@redhat.com>
1111
1112         time: work with mingw + pthreads-win32 library
1113         * m4/time_h.m4 (gl_CHECK_TYPE_STRUCT_TIMESPEC): Set new variable
1114         if timespec is defined only in pthread.h.
1115         * modules/time (Makefile.am): Substitute it.
1116         * lib/time.in.h (!TIME_H_DEFINES_STRUCT_TIMESPEC): Include
1117         <pthread.h>, when needed.
1118         (GNULIB_TIME_R): Undefine broken localtime_r and gmtime_r macros
1119         from the library.
1120
1121 2010-05-31  Bruno Haible  <bruno@clisp.org>
1122
1123         Avoid expanding two macros in the wrong order.
1124         * m4/libunistring-base.m4 (gl_LIBUNISTRING_LIB_PREPARE): Require
1125         gl_LIBUNISTRING if it is defined.
1126         * m4/libunistring.m4 (gl_LIBUNISTRING): Define using AC_DEFUN_ONCE for
1127         autoconf >= 2.64.
1128         Reported by Ludovic Courtès <ludo@gnu.org>.
1129
1130 2010-05-27  Jim Meyering  <meyering@redhat.com>
1131
1132         maint.mk: also prohibit "#undef" of always-defined symbols
1133         * top/maint.mk (def_sym_regex): Handle #undef as well as #define.
1134         Allow more than one space before the symbol name.
1135         (sc_prohibit_always-defined_macros): Use grep's -E, now that
1136         the regexp uses alternation.
1137
1138 2010-05-26  Eric Blake  <eblake@redhat.com>
1139
1140         maint.mk: avoid echo -e
1141         * top/maint.mk (gzip_rsyncable, _ignore_case, _sc_say_and_exit):
1142         Convert all uses of echo -* to printf.
1143         Reported by Matthias Bolte.
1144
1145 2010-05-25  Bruno Haible  <bruno@clisp.org>
1146
1147         Update to GNU gettext 0.18, part 2.
1148         * build-aux/po/Makefile.in.in: Update to GNU gettext 0.18.
1149         Reported by Martin von Gagern <Martin.vGagern@gmx.net>.
1150
1151 2010-05-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
1152
1153         Add missing include in test-pwrite.c.
1154         * tests/test-pwrite.c: Include string.h, for strcmp.
1155
1156 2010-05-24  Bruno Haible  <bruno@clisp.org>
1157
1158         * NEWS: Mention requirement for Automake option 'subdir-objects'.
1159
1160 2010-05-24  Bruno Haible  <bruno@clisp.org>
1161
1162         Don't use conversion with transliteration in u{8,16,32}_strcoll.
1163         * lib/unistr/u-strcoll.h (FUNC): Use U_STRCONV_TO_ENCODING with
1164         iconveh_error argument.
1165         * lib/unistr/u8-strcoll.c: Define U_STRCONV_TO_ENCODING instead of
1166         U_STRCONV_TO_LOCALE.
1167         * lib/unistr/u16-strcoll.c: Likewise.
1168         * lib/unistr/u32-strcoll.c: Likewise.
1169         * modules/unistr/u8-strcoll (Depends-on): Add
1170         uniconv/u8-strconv-to-enc, localcharset. Remove
1171         uniconv/u8-strconv-to-locale.
1172         (configure.ac): Bump version number.
1173         * modules/unistr/u16-strcoll (Depends-on): Add
1174         uniconv/u16-strconv-to-enc, localcharset. Remove
1175         uniconv/u16-strconv-to-locale.
1176         (configure.ac): Bump version number.
1177         * modules/unistr/u32-strcoll (Depends-on): Add
1178         uniconv/u32-strconv-to-enc, localcharset. Remove
1179         uniconv/u32-strconv-to-locale.
1180         (configure.ac): Bump version number.
1181
1182 2010-05-24  Bruno Haible  <bruno@clisp.org>
1183
1184         Avoid a test failure on NetBSD 5.0.
1185         * tests/test-striconveh.c (main): On NetBSD, skip a test that triggers
1186         an iconv() bug.
1187
1188 2010-05-24  Bruno Haible  <bruno@clisp.org>
1189
1190         Adjust #include directive style.
1191         * modules/regex (Includes): Recommend to write <regex.h>.
1192
1193 2010-05-24  Bruno Haible  <bruno@clisp.org>
1194
1195         regex: Don't require alloca.
1196         * modules/regex (Depends-on): Remove alloca. Add alloca-opt.
1197         * lib/regex_internal.h (alloca): Ensure it's defined even if we call it
1198         only inside if (0).
1199
1200 2010-05-23  Jim Meyering  <meyering@redhat.com>
1201
1202         test-renameat.c: include <sys/stat.h>
1203         * tests/test-renameat.c: Include <sys/stat.h>; required for
1204         definition of S_IS* macros.
1205
1206 2010-05-23  Ben Pfaff  <blp@cs.stanford.edu>
1207
1208         Update maintainer documentation for 'relocatable-prog' module.
1209         * doc/relocatable-maint.texi: Update.
1210         Comments by Bruno Haible.
1211
1212 2010-05-23  Bruno Haible  <bruno@clisp.org>
1213
1214         git-merge-changelog: Enable --split-merged-entry by default.
1215         * lib/git-merge-changelog.c (main): Set split_merged_entry to true.
1216         (usage): Don't mention this option any more.
1217         Reported by Ralf Wildenhues.
1218
1219 2010-05-23  Jim Meyering  <meyering@redhat.com>
1220
1221         test-pwrite: do not leave behind a test file named "out"
1222         Revert commit d8fa18472a54c1cb2674c296b3d82443f234d5f7.
1223         The trivial-looking use of init.sh is really necessary.
1224         It ensures that the temporary file, "out", is created in
1225         a temporary directory, and removed upon termination.
1226         * tests/test-pwrite.sh: Re-add file.
1227         * modules/pwrite-tests: Reference it.
1228
1229 2010-05-23  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
1230
1231         Fix output redirection buglet in init.sh.
1232         * tests/init.sh: Fix redirection of stderr.
1233
1234 2010-05-20  Simon Josefsson  <simon@josefsson.org>
1235
1236         * modules/valgrind-tests (configure.ac): Invoke gl_VALGRIND_TESTS.
1237
1238 2010-05-17  Simon Josefsson  <simon@josefsson.org>
1239
1240         * modules/valgrind-tests: New file.
1241         * m4/valgrind-tests.m4: New file.
1242         * doc/valgrind-tests.texi: New file.
1243         * doc/gnulib.texi (Running self-tests under valgrind): New
1244         section.
1245
1246 2010-05-19  Bruno Haible  <bruno@clisp.org>
1247
1248         Clean up dead code in recent commit.
1249         * m4/libunistring-base.m4 (gl_LIBUNISTRING_VERSION_CMP): Include the
1250         body of gl_LIBUNISTRING_VERSION_CMP_ORIG as fallback.
1251         (gl_LIBUNISTRING_VERSION_CMP_ORIG): Remove macro.
1252         Suggested by Paolo Bonzini.
1253
1254 2010-05-19  Bruno Haible  <bruno@clisp.org>
1255
1256         Avoid valgrind error reports from libunistring.
1257         * lib/libunistring.valgrind: New file, based on lib/malloca.valgrind.
1258         * modules/libunistring (Files): Add it.
1259         * modules/libunistring-optional (Files): Likewise.
1260
1261 2010-05-18  Paolo Bonzini  <bonzini@gnu.org>
1262             Bruno Haible  <bruno@clisp.org>
1263
1264         New module 'libunistring-optional'.
1265         * modules/libunistring-optional: New file.
1266         * m4/libunistring-base.m4: New file.
1267         * m4/libunistring-optional.m4: New file.
1268         * lib/unicase.in.h: Renamed from lib/unicase.h.
1269         * lib/uniconv.in.h: Renamed from lib/uniconv.h.
1270         * lib/unictype.in.h: Renamed from lib/unictype.h.
1271         * lib/unilbrk.in.h: Renamed from lib/unilbrk.h.
1272         * lib/uniname.in.h: Renamed from lib/uniname.h.
1273         * lib/uninorm.in.h: Renamed from lib/uninorm.h.
1274         * lib/unistdio.in.h: Renamed from lib/unistdio.h.
1275         * lib/unistr.in.h: Renamed from lib/unistr.h.
1276         * lib/unitypes.in.h: Renamed from lib/unitypes.h.
1277         * lib/uniwbrk.in.h: Renamed from lib/uniwbrk.h.
1278         * lib/uniwidth.in.h: Renamed from lib/uniwidth.h.
1279         * m4/libunistring.m4 (gl_LIBUNISTRING_CORE): Renamed from
1280         gl_LIBUNISTRING. If the library was found, determine the installed
1281         version and set LIBUNISTRING_VERSION.
1282         (gl_LIBUNISTRING): New macro, as a wrapper arount it. Document that it
1283         sets LIBUNISTRING_VERSION. If the module libunistring-optional is used,
1284         handle a configuration option --with-included-libunistring.
1285         * modules/libunistring (Files): Add m4/absolute-header.m4.
1286         * modules/unicase/base (Files): Use unicase.in.h instead of unicase.h.
1287         Add m4/libunistring-base.m4.
1288         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
1289         (Makefile.am): Build unicase.h from unicase.in.h.
1290         * modules/uniconv/base (Files): Use uniconv.in.h instead of uniconv.h.
1291         Add m4/libunistring-base.m4.
1292         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
1293         (Makefile.am): Build uniconv.h from uniconv.in.h.
1294         * modules/unictype/base (Files): Use unictype.in.h instead of
1295         unictype.h. Add m4/libunistring-base.m4.
1296         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
1297         (Makefile.am): Build unictype.h from unictype.in.h.
1298         * modules/unilbrk/base (Files): Use unilbrk.in.h instead of unilbrk.h.
1299         Add m4/libunistring-base.m4.
1300         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
1301         (Makefile.am): Build unilbrk.h from unilbrk.in.h.
1302         * modules/uniname/base (Files): Use uniname.in.h instead of uniname.h.
1303         Add m4/libunistring-base.m4.
1304         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
1305         (Makefile.am): Build uniname.h from uniname.in.h.
1306         * modules/uninorm/base (Files): Use uninorm.in.h instead of uninorm.h.
1307         Add m4/libunistring-base.m4.
1308         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
1309         (Makefile.am): Build uninorm.h from uninorm.in.h.
1310         * modules/unistdio/base (Files): Use unistdio.in.h instead of
1311         unistdio.h. Add m4/libunistring-base.m4.
1312         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
1313         (Makefile.am): Build unistdio.h from unistdio.in.h.
1314         * modules/unistr/base (Files): Use unistr.in.h instead of unistr.h.
1315         Add m4/libunistring-base.m4.
1316         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
1317         (Makefile.am): Build unistr.h from unistr.in.h.
1318         * modules/unitypes (Files): Use unitypes.in.h instead of unitypes.h.
1319         Add m4/libunistring-base.m4.
1320         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
1321         (Makefile.am): Build unitypes.h from unitypes.in.h.
1322         * modules/uniwbrk/base (Files): Use uniwbrk.in.h instead of uniwbrk.h.
1323         Add m4/libunistring-base.m4.
1324         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
1325         (Makefile.am): Build uniwbrk.h from uniwbrk.in.h.
1326         * modules/uniwidth/base (Files): Use uniwidth.in.h instead of
1327         uniwidth.h. Add m4/libunistring-base.m4.
1328         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
1329         (Makefile.am): Build uniwidth.h from uniwidth.in.h.
1330         * modules/unicase/empty-prefix-context: Use gl_LIBUNISTRING_LIBSOURCE
1331         instead of augmenting lib_SOURCES.
1332         * modules/unicase/empty-suffix-context: Likewise.
1333         * modules/unicase/locale-language: Likewise.
1334         * modules/unicase/tolower: Likewise.
1335         * modules/unicase/totitle: Likewise.
1336         * modules/unicase/toupper: Likewise.
1337         * modules/unicase/u8-casecmp: Likewise.
1338         * modules/unicase/u8-casecoll: Likewise.
1339         * modules/unicase/u8-casefold: Likewise.
1340         * modules/unicase/u8-casexfrm: Likewise.
1341         * modules/unicase/u8-ct-casefold: Likewise.
1342         * modules/unicase/u8-ct-tolower: Likewise.
1343         * modules/unicase/u8-ct-totitle: Likewise.
1344         * modules/unicase/u8-ct-toupper: Likewise.
1345         * modules/unicase/u8-is-cased: Likewise.
1346         * modules/unicase/u8-is-casefolded: Likewise.
1347         * modules/unicase/u8-is-lowercase: Likewise.
1348         * modules/unicase/u8-is-titlecase: Likewise.
1349         * modules/unicase/u8-is-uppercase: Likewise.
1350         * modules/unicase/u8-prefix-context: Likewise.
1351         * modules/unicase/u8-suffix-context: Likewise.
1352         * modules/unicase/u8-tolower: Likewise.
1353         * modules/unicase/u8-totitle: Likewise.
1354         * modules/unicase/u8-toupper: Likewise.
1355         * modules/unicase/u16-casecmp: Likewise.
1356         * modules/unicase/u16-casecoll: Likewise.
1357         * modules/unicase/u16-casefold: Likewise.
1358         * modules/unicase/u16-casexfrm: Likewise.
1359         * modules/unicase/u16-ct-casefold: Likewise.
1360         * modules/unicase/u16-ct-tolower: Likewise.
1361         * modules/unicase/u16-ct-totitle: Likewise.
1362         * modules/unicase/u16-ct-toupper: Likewise.
1363         * modules/unicase/u16-is-cased: Likewise.
1364         * modules/unicase/u16-is-casefolded: Likewise.
1365         * modules/unicase/u16-is-lowercase: Likewise.
1366         * modules/unicase/u16-is-titlecase: Likewise.
1367         * modules/unicase/u16-is-uppercase: Likewise.
1368         * modules/unicase/u16-prefix-context: Likewise.
1369         * modules/unicase/u16-suffix-context: Likewise.
1370         * modules/unicase/u16-tolower: Likewise.
1371         * modules/unicase/u16-totitle: Likewise.
1372         * modules/unicase/u16-toupper: Likewise.
1373         * modules/unicase/u32-casecmp: Likewise.
1374         * modules/unicase/u32-casecoll: Likewise.
1375         * modules/unicase/u32-casefold: Likewise.
1376         * modules/unicase/u32-casexfrm: Likewise.
1377         * modules/unicase/u32-ct-casefold: Likewise.
1378         * modules/unicase/u32-ct-tolower: Likewise.
1379         * modules/unicase/u32-ct-totitle: Likewise.
1380         * modules/unicase/u32-ct-toupper: Likewise.
1381         * modules/unicase/u32-is-cased: Likewise.
1382         * modules/unicase/u32-is-casefolded: Likewise.
1383         * modules/unicase/u32-is-lowercase: Likewise.
1384         * modules/unicase/u32-is-titlecase: Likewise.
1385         * modules/unicase/u32-is-uppercase: Likewise.
1386         * modules/unicase/u32-prefix-context: Likewise.
1387         * modules/unicase/u32-suffix-context: Likewise.
1388         * modules/unicase/u32-tolower: Likewise.
1389         * modules/unicase/u32-totitle: Likewise.
1390         * modules/unicase/u32-toupper: Likewise.
1391         * modules/unicase/ulc-casecmp: Likewise.
1392         * modules/unicase/ulc-casecoll: Likewise.
1393         * modules/unicase/ulc-casexfrm: Likewise.
1394         * modules/uniconv/u8-conv-from-enc: Likewise.
1395         * modules/uniconv/u8-conv-to-enc: Likewise.
1396         * modules/uniconv/u8-strconv-from-enc: Likewise.
1397         * modules/uniconv/u8-strconv-from-locale: Likewise.
1398         * modules/uniconv/u8-strconv-to-enc: Likewise.
1399         * modules/uniconv/u8-strconv-to-locale: Likewise.
1400         * modules/uniconv/u16-conv-from-enc: Likewise.
1401         * modules/uniconv/u16-conv-to-enc: Likewise.
1402         * modules/uniconv/u16-strconv-from-enc: Likewise.
1403         * modules/uniconv/u16-strconv-from-locale: Likewise.
1404         * modules/uniconv/u16-strconv-to-enc: Likewise.
1405         * modules/uniconv/u16-strconv-to-locale: Likewise.
1406         * modules/uniconv/u32-conv-from-enc: Likewise.
1407         * modules/uniconv/u32-conv-to-enc: Likewise.
1408         * modules/uniconv/u32-strconv-from-enc: Likewise.
1409         * modules/uniconv/u32-strconv-from-locale: Likewise.
1410         * modules/uniconv/u32-strconv-to-enc: Likewise.
1411         * modules/uniconv/u32-strconv-to-locale: Likewise.
1412         * modules/unictype/bidicategory-byname: Likewise.
1413         * modules/unictype/bidicategory-name: Likewise.
1414         * modules/unictype/bidicategory-of: Likewise.
1415         * modules/unictype/bidicategory-test: Likewise.
1416         * modules/unictype/block-list: Likewise.
1417         * modules/unictype/block-test: Likewise.
1418         * modules/unictype/category-C: Likewise.
1419         * modules/unictype/category-Cc: Likewise.
1420         * modules/unictype/category-Cf: Likewise.
1421         * modules/unictype/category-Cn: Likewise.
1422         * modules/unictype/category-Co: Likewise.
1423         * modules/unictype/category-Cs: Likewise.
1424         * modules/unictype/category-L: Likewise.
1425         * modules/unictype/category-Ll: Likewise.
1426         * modules/unictype/category-Lm: Likewise.
1427         * modules/unictype/category-Lo: Likewise.
1428         * modules/unictype/category-Lt: Likewise.
1429         * modules/unictype/category-Lu: Likewise.
1430         * modules/unictype/category-M: Likewise.
1431         * modules/unictype/category-Mc: Likewise.
1432         * modules/unictype/category-Me: Likewise.
1433         * modules/unictype/category-Mn: Likewise.
1434         * modules/unictype/category-N: Likewise.
1435         * modules/unictype/category-Nd: Likewise.
1436         * modules/unictype/category-Nl: Likewise.
1437         * modules/unictype/category-No: Likewise.
1438         * modules/unictype/category-P: Likewise.
1439         * modules/unictype/category-Pc: Likewise.
1440         * modules/unictype/category-Pd: Likewise.
1441         * modules/unictype/category-Pe: Likewise.
1442         * modules/unictype/category-Pf: Likewise.
1443         * modules/unictype/category-Pi: Likewise.
1444         * modules/unictype/category-Po: Likewise.
1445         * modules/unictype/category-Ps: Likewise.
1446         * modules/unictype/category-S: Likewise.
1447         * modules/unictype/category-Sc: Likewise.
1448         * modules/unictype/category-Sk: Likewise.
1449         * modules/unictype/category-Sm: Likewise.
1450         * modules/unictype/category-So: Likewise.
1451         * modules/unictype/category-Z: Likewise.
1452         * modules/unictype/category-Zl: Likewise.
1453         * modules/unictype/category-Zp: Likewise.
1454         * modules/unictype/category-Zs: Likewise.
1455         * modules/unictype/category-and: Likewise.
1456         * modules/unictype/category-and-not: Likewise.
1457         * modules/unictype/category-byname: Likewise.
1458         * modules/unictype/category-name: Likewise.
1459         * modules/unictype/category-none: Likewise.
1460         * modules/unictype/category-of: Likewise.
1461         * modules/unictype/category-or: Likewise.
1462         * modules/unictype/category-test: Likewise.
1463         * modules/unictype/combining-class: Likewise.
1464         * modules/unictype/ctype-alnum: Likewise.
1465         * modules/unictype/ctype-alpha: Likewise.
1466         * modules/unictype/ctype-blank: Likewise.
1467         * modules/unictype/ctype-cntrl: Likewise.
1468         * modules/unictype/ctype-digit: Likewise.
1469         * modules/unictype/ctype-graph: Likewise.
1470         * modules/unictype/ctype-lower: Likewise.
1471         * modules/unictype/ctype-print: Likewise.
1472         * modules/unictype/ctype-punct: Likewise.
1473         * modules/unictype/ctype-space: Likewise.
1474         * modules/unictype/ctype-upper: Likewise.
1475         * modules/unictype/ctype-xdigit: Likewise.
1476         * modules/unictype/decimal-digit: Likewise.
1477         * modules/unictype/digit: Likewise.
1478         * modules/unictype/mirror: Likewise.
1479         * modules/unictype/numeric: Likewise.
1480         * modules/unictype/property-alphabetic: Likewise.
1481         * modules/unictype/property-ascii-hex-digit: Likewise.
1482         * modules/unictype/property-bidi-arabic-digit: Likewise.
1483         * modules/unictype/property-bidi-arabic-right-to-left: Likewise.
1484         * modules/unictype/property-bidi-block-separator: Likewise.
1485         * modules/unictype/property-bidi-boundary-neutral: Likewise.
1486         * modules/unictype/property-bidi-common-separator: Likewise.
1487         * modules/unictype/property-bidi-control: Likewise.
1488         * modules/unictype/property-bidi-embedding-or-override: Likewise.
1489         * modules/unictype/property-bidi-eur-num-separator: Likewise.
1490         * modules/unictype/property-bidi-eur-num-terminator: Likewise.
1491         * modules/unictype/property-bidi-european-digit: Likewise.
1492         * modules/unictype/property-bidi-hebrew-right-to-left: Likewise.
1493         * modules/unictype/property-bidi-left-to-right: Likewise.
1494         * modules/unictype/property-bidi-non-spacing-mark: Likewise.
1495         * modules/unictype/property-bidi-other-neutral: Likewise.
1496         * modules/unictype/property-bidi-pdf: Likewise.
1497         * modules/unictype/property-bidi-segment-separator: Likewise.
1498         * modules/unictype/property-bidi-whitespace: Likewise.
1499         * modules/unictype/property-byname: Likewise.
1500         * modules/unictype/property-combining: Likewise.
1501         * modules/unictype/property-composite: Likewise.
1502         * modules/unictype/property-currency-symbol: Likewise.
1503         * modules/unictype/property-dash: Likewise.
1504         * modules/unictype/property-decimal-digit: Likewise.
1505         * modules/unictype/property-default-ignorable-code-point: Likewise.
1506         * modules/unictype/property-deprecated: Likewise.
1507         * modules/unictype/property-diacritic: Likewise.
1508         * modules/unictype/property-extender: Likewise.
1509         * modules/unictype/property-format-control: Likewise.
1510         * modules/unictype/property-grapheme-base: Likewise.
1511         * modules/unictype/property-grapheme-extend: Likewise.
1512         * modules/unictype/property-grapheme-link: Likewise.
1513         * modules/unictype/property-hex-digit: Likewise.
1514         * modules/unictype/property-hyphen: Likewise.
1515         * modules/unictype/property-id-continue: Likewise.
1516         * modules/unictype/property-id-start: Likewise.
1517         * modules/unictype/property-ideographic: Likewise.
1518         * modules/unictype/property-ids-binary-operator: Likewise.
1519         * modules/unictype/property-ids-trinary-operator: Likewise.
1520         * modules/unictype/property-ignorable-control: Likewise.
1521         * modules/unictype/property-iso-control: Likewise.
1522         * modules/unictype/property-join-control: Likewise.
1523         * modules/unictype/property-left-of-pair: Likewise.
1524         * modules/unictype/property-line-separator: Likewise.
1525         * modules/unictype/property-logical-order-exception: Likewise.
1526         * modules/unictype/property-lowercase: Likewise.
1527         * modules/unictype/property-math: Likewise.
1528         * modules/unictype/property-non-break: Likewise.
1529         * modules/unictype/property-not-a-character: Likewise.
1530         * modules/unictype/property-numeric: Likewise.
1531         * modules/unictype/property-other-alphabetic: Likewise.
1532         * modules/unictype/property-other-default-ignorable-code-point: Likewise.
1533         * modules/unictype/property-other-grapheme-extend: Likewise.
1534         * modules/unictype/property-other-id-continue: Likewise.
1535         * modules/unictype/property-other-id-start: Likewise.
1536         * modules/unictype/property-other-lowercase: Likewise.
1537         * modules/unictype/property-other-math: Likewise.
1538         * modules/unictype/property-other-uppercase: Likewise.
1539         * modules/unictype/property-paired-punctuation: Likewise.
1540         * modules/unictype/property-paragraph-separator: Likewise.
1541         * modules/unictype/property-pattern-syntax: Likewise.
1542         * modules/unictype/property-pattern-white-space: Likewise.
1543         * modules/unictype/property-private-use: Likewise.
1544         * modules/unictype/property-punctuation: Likewise.
1545         * modules/unictype/property-quotation-mark: Likewise.
1546         * modules/unictype/property-radical: Likewise.
1547         * modules/unictype/property-sentence-terminal: Likewise.
1548         * modules/unictype/property-soft-dotted: Likewise.
1549         * modules/unictype/property-space: Likewise.
1550         * modules/unictype/property-terminal-punctuation: Likewise.
1551         * modules/unictype/property-test: Likewise.
1552         * modules/unictype/property-titlecase: Likewise.
1553         * modules/unictype/property-unassigned-code-value: Likewise.
1554         * modules/unictype/property-unified-ideograph: Likewise.
1555         * modules/unictype/property-uppercase: Likewise.
1556         * modules/unictype/property-variation-selector: Likewise.
1557         * modules/unictype/property-white-space: Likewise.
1558         * modules/unictype/property-xid-continue: Likewise.
1559         * modules/unictype/property-xid-start: Likewise.
1560         * modules/unictype/property-zero-width: Likewise.
1561         * modules/unictype/scripts: Likewise.
1562         * modules/unictype/syntax-c-ident: Likewise.
1563         * modules/unictype/syntax-c-whitespace: Likewise.
1564         * modules/unictype/syntax-java-ident: Likewise.
1565         * modules/unictype/syntax-java-whitespace: Likewise.
1566         * modules/unilbrk/u8-possible-linebreaks: Likewise.
1567         * modules/unilbrk/u8-width-linebreaks: Likewise.
1568         * modules/unilbrk/u16-possible-linebreaks: Likewise.
1569         * modules/unilbrk/u16-width-linebreaks: Likewise.
1570         * modules/unilbrk/u32-possible-linebreaks: Likewise.
1571         * modules/unilbrk/u32-width-linebreaks: Likewise.
1572         * modules/unilbrk/ulc-possible-linebreaks: Likewise.
1573         * modules/unilbrk/ulc-width-linebreaks: Likewise.
1574         * modules/uniname/uniname: Likewise.
1575         * modules/uninorm/canonical-decomposition: Likewise.
1576         * modules/uninorm/composition: Likewise.
1577         * modules/uninorm/decomposing-form: Likewise.
1578         * modules/uninorm/decomposition: Likewise.
1579         * modules/uninorm/filter: Likewise.
1580         * modules/uninorm/nfc: Likewise.
1581         * modules/uninorm/nfd: Likewise.
1582         * modules/uninorm/nfkc: Likewise.
1583         * modules/uninorm/nfkd: Likewise.
1584         * modules/uninorm/u8-normalize: Likewise.
1585         * modules/uninorm/u8-normcmp: Likewise.
1586         * modules/uninorm/u8-normcoll: Likewise.
1587         * modules/uninorm/u8-normxfrm: Likewise.
1588         * modules/uninorm/u16-normalize: Likewise.
1589         * modules/uninorm/u16-normcmp: Likewise.
1590         * modules/uninorm/u16-normcoll: Likewise.
1591         * modules/uninorm/u16-normxfrm: Likewise.
1592         * modules/uninorm/u32-normalize: Likewise.
1593         * modules/uninorm/u32-normcmp: Likewise.
1594         * modules/uninorm/u32-normcoll: Likewise.
1595         * modules/uninorm/u32-normxfrm: Likewise.
1596         * modules/unistdio/u8-asnprintf: Likewise.
1597         * modules/unistdio/u8-asprintf: Likewise.
1598         * modules/unistdio/u8-snprintf: Likewise.
1599         * modules/unistdio/u8-sprintf: Likewise.
1600         * modules/unistdio/u8-u8-asnprintf: Likewise.
1601         * modules/unistdio/u8-u8-asprintf: Likewise.
1602         * modules/unistdio/u8-u8-snprintf: Likewise.
1603         * modules/unistdio/u8-u8-sprintf: Likewise.
1604         * modules/unistdio/u8-u8-vasnprintf: Likewise.
1605         * modules/unistdio/u8-u8-vasprintf: Likewise.
1606         * modules/unistdio/u8-u8-vsnprintf: Likewise.
1607         * modules/unistdio/u8-u8-vsprintf: Likewise.
1608         * modules/unistdio/u8-vasnprintf: Likewise.
1609         * modules/unistdio/u8-vasprintf: Likewise.
1610         * modules/unistdio/u8-vsnprintf: Likewise.
1611         * modules/unistdio/u8-vsprintf: Likewise.
1612         * modules/unistdio/u16-asnprintf: Likewise.
1613         * modules/unistdio/u16-asprintf: Likewise.
1614         * modules/unistdio/u16-snprintf: Likewise.
1615         * modules/unistdio/u16-sprintf: Likewise.
1616         * modules/unistdio/u16-u16-asnprintf: Likewise.
1617         * modules/unistdio/u16-u16-asprintf: Likewise.
1618         * modules/unistdio/u16-u16-snprintf: Likewise.
1619         * modules/unistdio/u16-u16-sprintf: Likewise.
1620         * modules/unistdio/u16-u16-vasnprintf: Likewise.
1621         * modules/unistdio/u16-u16-vasprintf: Likewise.
1622         * modules/unistdio/u16-u16-vsnprintf: Likewise.
1623         * modules/unistdio/u16-u16-vsprintf: Likewise.
1624         * modules/unistdio/u16-vasnprintf: Likewise.
1625         * modules/unistdio/u16-vasprintf: Likewise.
1626         * modules/unistdio/u16-vsnprintf: Likewise.
1627         * modules/unistdio/u16-vsprintf: Likewise.
1628         * modules/unistdio/u32-asnprintf: Likewise.
1629         * modules/unistdio/u32-asprintf: Likewise.
1630         * modules/unistdio/u32-snprintf: Likewise.
1631         * modules/unistdio/u32-sprintf: Likewise.
1632         * modules/unistdio/u32-u32-asnprintf: Likewise.
1633         * modules/unistdio/u32-u32-asprintf: Likewise.
1634         * modules/unistdio/u32-u32-snprintf: Likewise.
1635         * modules/unistdio/u32-u32-sprintf: Likewise.
1636         * modules/unistdio/u32-u32-vasnprintf: Likewise.
1637         * modules/unistdio/u32-u32-vasprintf: Likewise.
1638         * modules/unistdio/u32-u32-vsnprintf: Likewise.
1639         * modules/unistdio/u32-u32-vsprintf: Likewise.
1640         * modules/unistdio/u32-vasnprintf: Likewise.
1641         * modules/unistdio/u32-vasprintf: Likewise.
1642         * modules/unistdio/u32-vsnprintf: Likewise.
1643         * modules/unistdio/u32-vsprintf: Likewise.
1644         * modules/unistdio/ulc-asnprintf: Likewise.
1645         * modules/unistdio/ulc-asprintf: Likewise.
1646         * modules/unistdio/ulc-fprintf: Likewise.
1647         * modules/unistdio/ulc-snprintf: Likewise.
1648         * modules/unistdio/ulc-sprintf: Likewise.
1649         * modules/unistdio/ulc-vasnprintf: Likewise.
1650         * modules/unistdio/ulc-vasprintf: Likewise.
1651         * modules/unistdio/ulc-vfprintf: Likewise.
1652         * modules/unistdio/ulc-vsnprintf: Likewise.
1653         * modules/unistdio/ulc-vsprintf: Likewise.
1654         * modules/unistr/u8-check: Likewise.
1655         * modules/unistr/u8-chr: Likewise.
1656         * modules/unistr/u8-cmp: Likewise.
1657         * modules/unistr/u8-cmp2: Likewise.
1658         * modules/unistr/u8-cpy: Likewise.
1659         * modules/unistr/u8-cpy-alloc: Likewise.
1660         * modules/unistr/u8-endswith: Likewise.
1661         * modules/unistr/u8-mblen: Likewise.
1662         * modules/unistr/u8-mbsnlen: Likewise.
1663         * modules/unistr/u8-mbtouc: Likewise.
1664         * modules/unistr/u8-mbtouc-unsafe: Likewise.
1665         * modules/unistr/u8-mbtoucr: Likewise.
1666         * modules/unistr/u8-move: Likewise.
1667         * modules/unistr/u8-next: Likewise.
1668         * modules/unistr/u8-prev: Likewise.
1669         * modules/unistr/u8-set: Likewise.
1670         * modules/unistr/u8-startswith: Likewise.
1671         * modules/unistr/u8-stpcpy: Likewise.
1672         * modules/unistr/u8-stpncpy: Likewise.
1673         * modules/unistr/u8-strcat: Likewise.
1674         * modules/unistr/u8-strchr: Likewise.
1675         * modules/unistr/u8-strcmp: Likewise.
1676         * modules/unistr/u8-strcoll: Likewise.
1677         * modules/unistr/u8-strcpy: Likewise.
1678         * modules/unistr/u8-strcspn: Likewise.
1679         * modules/unistr/u8-strdup: Likewise.
1680         * modules/unistr/u8-strlen: Likewise.
1681         * modules/unistr/u8-strmblen: Likewise.
1682         * modules/unistr/u8-strmbtouc: Likewise.
1683         * modules/unistr/u8-strncat: Likewise.
1684         * modules/unistr/u8-strncmp: Likewise.
1685         * modules/unistr/u8-strncpy: Likewise.
1686         * modules/unistr/u8-strnlen: Likewise.
1687         * modules/unistr/u8-strpbrk: Likewise.
1688         * modules/unistr/u8-strrchr: Likewise.
1689         * modules/unistr/u8-strspn: Likewise.
1690         * modules/unistr/u8-strstr: Likewise.
1691         * modules/unistr/u8-strtok: Likewise.
1692         * modules/unistr/u8-to-u16: Likewise.
1693         * modules/unistr/u8-to-u32: Likewise.
1694         * modules/unistr/u8-uctomb: Likewise.
1695         * modules/unistr/u16-check: Likewise.
1696         * modules/unistr/u16-chr: Likewise.
1697         * modules/unistr/u16-cmp: Likewise.
1698         * modules/unistr/u16-cmp2: Likewise.
1699         * modules/unistr/u16-cpy: Likewise.
1700         * modules/unistr/u16-cpy-alloc: Likewise.
1701         * modules/unistr/u16-endswith: Likewise.
1702         * modules/unistr/u16-mblen: Likewise.
1703         * modules/unistr/u16-mbsnlen: Likewise.
1704         * modules/unistr/u16-mbtouc: Likewise.
1705         * modules/unistr/u16-mbtouc-unsafe: Likewise.
1706         * modules/unistr/u16-mbtoucr: Likewise.
1707         * modules/unistr/u16-move: Likewise.
1708         * modules/unistr/u16-next: Likewise.
1709         * modules/unistr/u16-prev: Likewise.
1710         * modules/unistr/u16-set: Likewise.
1711         * modules/unistr/u16-startswith: Likewise.
1712         * modules/unistr/u16-stpcpy: Likewise.
1713         * modules/unistr/u16-stpncpy: Likewise.
1714         * modules/unistr/u16-strcat: Likewise.
1715         * modules/unistr/u16-strchr: Likewise.
1716         * modules/unistr/u16-strcmp: Likewise.
1717         * modules/unistr/u16-strcoll: Likewise.
1718         * modules/unistr/u16-strcpy: Likewise.
1719         * modules/unistr/u16-strcspn: Likewise.
1720         * modules/unistr/u16-strdup: Likewise.
1721         * modules/unistr/u16-strlen: Likewise.
1722         * modules/unistr/u16-strmblen: Likewise.
1723         * modules/unistr/u16-strmbtouc: Likewise.
1724         * modules/unistr/u16-strncat: Likewise.
1725         * modules/unistr/u16-strncmp: Likewise.
1726         * modules/unistr/u16-strncpy: Likewise.
1727         * modules/unistr/u16-strnlen: Likewise.
1728         * modules/unistr/u16-strpbrk: Likewise.
1729         * modules/unistr/u16-strrchr: Likewise.
1730         * modules/unistr/u16-strspn: Likewise.
1731         * modules/unistr/u16-strstr: Likewise.
1732         * modules/unistr/u16-strtok: Likewise.
1733         * modules/unistr/u16-to-u32: Likewise.
1734         * modules/unistr/u16-to-u8: Likewise.
1735         * modules/unistr/u16-uctomb: Likewise.
1736         * modules/unistr/u32-check: Likewise.
1737         * modules/unistr/u32-chr: Likewise.
1738         * modules/unistr/u32-cmp: Likewise.
1739         * modules/unistr/u32-cmp2: Likewise.
1740         * modules/unistr/u32-cpy: Likewise.
1741         * modules/unistr/u32-cpy-alloc: Likewise.
1742         * modules/unistr/u32-endswith: Likewise.
1743         * modules/unistr/u32-mblen: Likewise.
1744         * modules/unistr/u32-mbsnlen: Likewise.
1745         * modules/unistr/u32-mbtouc: Likewise.
1746         * modules/unistr/u32-mbtouc-unsafe: Likewise.
1747         * modules/unistr/u32-mbtoucr: Likewise.
1748         * modules/unistr/u32-move: Likewise.
1749         * modules/unistr/u32-next: Likewise.
1750         * modules/unistr/u32-prev: Likewise.
1751         * modules/unistr/u32-set: Likewise.
1752         * modules/unistr/u32-startswith: Likewise.
1753         * modules/unistr/u32-stpcpy: Likewise.
1754         * modules/unistr/u32-stpncpy: Likewise.
1755         * modules/unistr/u32-strcat: Likewise.
1756         * modules/unistr/u32-strchr: Likewise.
1757         * modules/unistr/u32-strcmp: Likewise.
1758         * modules/unistr/u32-strcoll: Likewise.
1759         * modules/unistr/u32-strcpy: Likewise.
1760         * modules/unistr/u32-strcspn: Likewise.
1761         * modules/unistr/u32-strdup: Likewise.
1762         * modules/unistr/u32-strlen: Likewise.
1763         * modules/unistr/u32-strmblen: Likewise.
1764         * modules/unistr/u32-strmbtouc: Likewise.
1765         * modules/unistr/u32-strncat: Likewise.
1766         * modules/unistr/u32-strncmp: Likewise.
1767         * modules/unistr/u32-strncpy: Likewise.
1768         * modules/unistr/u32-strnlen: Likewise.
1769         * modules/unistr/u32-strpbrk: Likewise.
1770         * modules/unistr/u32-strrchr: Likewise.
1771         * modules/unistr/u32-strspn: Likewise.
1772         * modules/unistr/u32-strstr: Likewise.
1773         * modules/unistr/u32-strtok: Likewise.
1774         * modules/unistr/u32-to-u16: Likewise.
1775         * modules/unistr/u32-to-u8: Likewise.
1776         * modules/unistr/u32-uctomb: Likewise.
1777         * modules/uniwbrk/u8-wordbreaks: Likewise.
1778         * modules/uniwbrk/u16-wordbreaks: Likewise.
1779         * modules/uniwbrk/u32-wordbreaks: Likewise.
1780         * modules/uniwbrk/ulc-wordbreaks: Likewise.
1781         * modules/uniwbrk/wordbreak-property: Likewise.
1782         * modules/uniwidth/u8-strwidth: Likewise.
1783         * modules/uniwidth/u8-width: Likewise.
1784         * modules/uniwidth/u16-strwidth: Likewise.
1785         * modules/uniwidth/u16-width: Likewise.
1786         * modules/uniwidth/u32-strwidth: Likewise.
1787         * modules/uniwidth/u32-width: Likewise.
1788         * modules/uniwidth/width: Likewise.
1789         * modules/unicase/cased-tests (Makefile.am): Link all test programs
1790         with $(LIBUNISTRING).
1791         * modules/unicase/ignorable-tests: Likewise.
1792         * modules/unicase/locale-language-tests: Likewise.
1793         * modules/unicase/tolower-tests: Likewise.
1794         * modules/unicase/totitle-tests: Likewise.
1795         * modules/unicase/toupper-tests: Likewise.
1796         * modules/unicase/u8-casecmp-tests: Likewise.
1797         * modules/unicase/u8-casecoll-tests: Likewise.
1798         * modules/unicase/u8-casefold-tests: Likewise.
1799         * modules/unicase/u8-is-cased-tests: Likewise.
1800         * modules/unicase/u8-is-casefolded-tests: Likewise.
1801         * modules/unicase/u8-is-lowercase-tests: Likewise.
1802         * modules/unicase/u8-is-titlecase-tests: Likewise.
1803         * modules/unicase/u8-is-uppercase-tests: Likewise.
1804         * modules/unicase/u8-tolower-tests: Likewise.
1805         * modules/unicase/u8-totitle-tests: Likewise.
1806         * modules/unicase/u8-toupper-tests: Likewise.
1807         * modules/unicase/u16-casecmp-tests: Likewise.
1808         * modules/unicase/u16-casecoll-tests: Likewise.
1809         * modules/unicase/u16-casefold-tests: Likewise.
1810         * modules/unicase/u16-is-cased-tests: Likewise.
1811         * modules/unicase/u16-is-casefolded-tests: Likewise.
1812         * modules/unicase/u16-is-lowercase-tests: Likewise.
1813         * modules/unicase/u16-is-titlecase-tests: Likewise.
1814         * modules/unicase/u16-is-uppercase-tests: Likewise.
1815         * modules/unicase/u16-tolower-tests: Likewise.
1816         * modules/unicase/u16-totitle-tests: Likewise.
1817         * modules/unicase/u16-toupper-tests: Likewise.
1818         * modules/unicase/u32-casecmp-tests: Likewise.
1819         * modules/unicase/u32-casecoll-tests: Likewise.
1820         * modules/unicase/u32-casefold-tests: Likewise.
1821         * modules/unicase/u32-is-cased-tests: Likewise.
1822         * modules/unicase/u32-is-casefolded-tests: Likewise.
1823         * modules/unicase/u32-is-lowercase-tests: Likewise.
1824         * modules/unicase/u32-is-titlecase-tests: Likewise.
1825         * modules/unicase/u32-is-uppercase-tests: Likewise.
1826         * modules/unicase/u32-tolower-tests: Likewise.
1827         * modules/unicase/u32-totitle-tests: Likewise.
1828         * modules/unicase/u32-toupper-tests: Likewise.
1829         * modules/unicase/ulc-casecmp-tests: Likewise.
1830         * modules/unicase/ulc-casecoll-tests: Likewise.
1831         * modules/uniconv/u8-conv-from-enc-tests: Likewise.
1832         * modules/uniconv/u8-conv-to-enc-tests: Likewise.
1833         * modules/uniconv/u8-strconv-from-enc-tests: Likewise.
1834         * modules/uniconv/u8-strconv-to-enc-tests: Likewise.
1835         * modules/uniconv/u16-conv-from-enc-tests: Likewise.
1836         * modules/uniconv/u16-conv-to-enc-tests: Likewise.
1837         * modules/uniconv/u16-strconv-from-enc-tests: Likewise.
1838         * modules/uniconv/u16-strconv-to-enc-tests: Likewise.
1839         * modules/uniconv/u32-conv-from-enc-tests: Likewise.
1840         * modules/uniconv/u32-conv-to-enc-tests: Likewise.
1841         * modules/uniconv/u32-strconv-from-enc-tests: Likewise.
1842         * modules/uniconv/u32-strconv-to-enc-tests: Likewise.
1843         * modules/unictype/bidicategory-byname-tests: Likewise.
1844         * modules/unictype/bidicategory-name-tests: Likewise.
1845         * modules/unictype/bidicategory-of-tests: Likewise.
1846         * modules/unictype/bidicategory-test-tests: Likewise.
1847         * modules/unictype/block-list-tests: Likewise.
1848         * modules/unictype/block-of-tests: Likewise.
1849         * modules/unictype/block-test-tests: Likewise.
1850         * modules/unictype/category-C-tests: Likewise.
1851         * modules/unictype/category-Cc-tests: Likewise.
1852         * modules/unictype/category-Cf-tests: Likewise.
1853         * modules/unictype/category-Cn-tests: Likewise.
1854         * modules/unictype/category-Co-tests: Likewise.
1855         * modules/unictype/category-Cs-tests: Likewise.
1856         * modules/unictype/category-L-tests: Likewise.
1857         * modules/unictype/category-Ll-tests: Likewise.
1858         * modules/unictype/category-Lm-tests: Likewise.
1859         * modules/unictype/category-Lo-tests: Likewise.
1860         * modules/unictype/category-Lt-tests: Likewise.
1861         * modules/unictype/category-Lu-tests: Likewise.
1862         * modules/unictype/category-M-tests: Likewise.
1863         * modules/unictype/category-Mc-tests: Likewise.
1864         * modules/unictype/category-Me-tests: Likewise.
1865         * modules/unictype/category-Mn-tests: Likewise.
1866         * modules/unictype/category-N-tests: Likewise.
1867         * modules/unictype/category-Nd-tests: Likewise.
1868         * modules/unictype/category-Nl-tests: Likewise.
1869         * modules/unictype/category-No-tests: Likewise.
1870         * modules/unictype/category-P-tests: Likewise.
1871         * modules/unictype/category-Pc-tests: Likewise.
1872         * modules/unictype/category-Pd-tests: Likewise.
1873         * modules/unictype/category-Pe-tests: Likewise.
1874         * modules/unictype/category-Pf-tests: Likewise.
1875         * modules/unictype/category-Pi-tests: Likewise.
1876         * modules/unictype/category-Po-tests: Likewise.
1877         * modules/unictype/category-Ps-tests: Likewise.
1878         * modules/unictype/category-S-tests: Likewise.
1879         * modules/unictype/category-Sc-tests: Likewise.
1880         * modules/unictype/category-Sk-tests: Likewise.
1881         * modules/unictype/category-Sm-tests: Likewise.
1882         * modules/unictype/category-So-tests: Likewise.
1883         * modules/unictype/category-Z-tests: Likewise.
1884         * modules/unictype/category-Zl-tests: Likewise.
1885         * modules/unictype/category-Zp-tests: Likewise.
1886         * modules/unictype/category-Zs-tests: Likewise.
1887         * modules/unictype/category-and-not-tests: Likewise.
1888         * modules/unictype/category-and-tests: Likewise.
1889         * modules/unictype/category-byname-tests: Likewise.
1890         * modules/unictype/category-name-tests: Likewise.
1891         * modules/unictype/category-none-tests: Likewise.
1892         * modules/unictype/category-of-tests: Likewise.
1893         * modules/unictype/category-or-tests: Likewise.
1894         * modules/unictype/category-test-withtable-tests: Likewise.
1895         * modules/unictype/combining-class-tests: Likewise.
1896         * modules/unictype/ctype-alnum-tests: Likewise.
1897         * modules/unictype/ctype-alpha-tests: Likewise.
1898         * modules/unictype/ctype-blank-tests: Likewise.
1899         * modules/unictype/ctype-cntrl-tests: Likewise.
1900         * modules/unictype/ctype-digit-tests: Likewise.
1901         * modules/unictype/ctype-graph-tests: Likewise.
1902         * modules/unictype/ctype-lower-tests: Likewise.
1903         * modules/unictype/ctype-print-tests: Likewise.
1904         * modules/unictype/ctype-punct-tests: Likewise.
1905         * modules/unictype/ctype-space-tests: Likewise.
1906         * modules/unictype/ctype-upper-tests: Likewise.
1907         * modules/unictype/ctype-xdigit-tests: Likewise.
1908         * modules/unictype/decimal-digit-tests: Likewise.
1909         * modules/unictype/digit-tests: Likewise.
1910         * modules/unictype/mirror-tests: Likewise.
1911         * modules/unictype/numeric-tests: Likewise.
1912         * modules/unictype/property-alphabetic-tests: Likewise.
1913         * modules/unictype/property-ascii-hex-digit-tests: Likewise.
1914         * modules/unictype/property-bidi-arabic-digit-tests: Likewise.
1915         * modules/unictype/property-bidi-arabic-right-to-left-tests: Likewise.
1916         * modules/unictype/property-bidi-block-separator-tests: Likewise.
1917         * modules/unictype/property-bidi-boundary-neutral-tests: Likewise.
1918         * modules/unictype/property-bidi-common-separator-tests: Likewise.
1919         * modules/unictype/property-bidi-control-tests: Likewise.
1920         * modules/unictype/property-bidi-embedding-or-override-tests: Likewise.
1921         * modules/unictype/property-bidi-eur-num-separator-tests: Likewise.
1922         * modules/unictype/property-bidi-eur-num-terminator-tests: Likewise.
1923         * modules/unictype/property-bidi-european-digit-tests: Likewise.
1924         * modules/unictype/property-bidi-hebrew-right-to-left-tests: Likewise.
1925         * modules/unictype/property-bidi-left-to-right-tests: Likewise.
1926         * modules/unictype/property-bidi-non-spacing-mark-tests: Likewise.
1927         * modules/unictype/property-bidi-other-neutral-tests: Likewise.
1928         * modules/unictype/property-bidi-pdf-tests: Likewise.
1929         * modules/unictype/property-bidi-segment-separator-tests: Likewise.
1930         * modules/unictype/property-bidi-whitespace-tests: Likewise.
1931         * modules/unictype/property-byname-tests: Likewise.
1932         * modules/unictype/property-combining-tests: Likewise.
1933         * modules/unictype/property-composite-tests: Likewise.
1934         * modules/unictype/property-currency-symbol-tests: Likewise.
1935         * modules/unictype/property-dash-tests: Likewise.
1936         * modules/unictype/property-decimal-digit-tests: Likewise.
1937         * modules/unictype/property-default-ignorable-code-point-tests: Likewise.
1938         * modules/unictype/property-deprecated-tests: Likewise.
1939         * modules/unictype/property-diacritic-tests: Likewise.
1940         * modules/unictype/property-extender-tests: Likewise.
1941         * modules/unictype/property-format-control-tests: Likewise.
1942         * modules/unictype/property-grapheme-base-tests: Likewise.
1943         * modules/unictype/property-grapheme-extend-tests: Likewise.
1944         * modules/unictype/property-grapheme-link-tests: Likewise.
1945         * modules/unictype/property-hex-digit-tests: Likewise.
1946         * modules/unictype/property-hyphen-tests: Likewise.
1947         * modules/unictype/property-id-continue-tests: Likewise.
1948         * modules/unictype/property-id-start-tests: Likewise.
1949         * modules/unictype/property-ideographic-tests: Likewise.
1950         * modules/unictype/property-ids-binary-operator-tests: Likewise.
1951         * modules/unictype/property-ids-trinary-operator-tests: Likewise.
1952         * modules/unictype/property-ignorable-control-tests: Likewise.
1953         * modules/unictype/property-iso-control-tests: Likewise.
1954         * modules/unictype/property-join-control-tests: Likewise.
1955         * modules/unictype/property-left-of-pair-tests: Likewise.
1956         * modules/unictype/property-line-separator-tests: Likewise.
1957         * modules/unictype/property-logical-order-exception-tests: Likewise.
1958         * modules/unictype/property-lowercase-tests: Likewise.
1959         * modules/unictype/property-math-tests: Likewise.
1960         * modules/unictype/property-non-break-tests: Likewise.
1961         * modules/unictype/property-not-a-character-tests: Likewise.
1962         * modules/unictype/property-numeric-tests: Likewise.
1963         * modules/unictype/property-other-alphabetic-tests: Likewise.
1964         * modules/unictype/property-other-default-ignorable-code-point-tests:
1965         Likewise.
1966         * modules/unictype/property-other-grapheme-extend-tests: Likewise.
1967         * modules/unictype/property-other-id-continue-tests: Likewise.
1968         * modules/unictype/property-other-id-start-tests: Likewise.
1969         * modules/unictype/property-other-lowercase-tests: Likewise.
1970         * modules/unictype/property-other-math-tests: Likewise.
1971         * modules/unictype/property-other-uppercase-tests: Likewise.
1972         * modules/unictype/property-paired-punctuation-tests: Likewise.
1973         * modules/unictype/property-paragraph-separator-tests: Likewise.
1974         * modules/unictype/property-pattern-syntax-tests: Likewise.
1975         * modules/unictype/property-pattern-white-space-tests: Likewise.
1976         * modules/unictype/property-private-use-tests: Likewise.
1977         * modules/unictype/property-punctuation-tests: Likewise.
1978         * modules/unictype/property-quotation-mark-tests: Likewise.
1979         * modules/unictype/property-radical-tests: Likewise.
1980         * modules/unictype/property-sentence-terminal-tests: Likewise.
1981         * modules/unictype/property-soft-dotted-tests: Likewise.
1982         * modules/unictype/property-space-tests: Likewise.
1983         * modules/unictype/property-terminal-punctuation-tests: Likewise.
1984         * modules/unictype/property-test-tests: Likewise.
1985         * modules/unictype/property-titlecase-tests: Likewise.
1986         * modules/unictype/property-unassigned-code-value-tests: Likewise.
1987         * modules/unictype/property-unified-ideograph-tests: Likewise.
1988         * modules/unictype/property-uppercase-tests: Likewise.
1989         * modules/unictype/property-variation-selector-tests: Likewise.
1990         * modules/unictype/property-white-space-tests: Likewise.
1991         * modules/unictype/property-xid-continue-tests: Likewise.
1992         * modules/unictype/property-xid-start-tests: Likewise.
1993         * modules/unictype/property-zero-width-tests: Likewise.
1994         * modules/unictype/scripts-tests: Likewise.
1995         * modules/unictype/syntax-c-ident-tests: Likewise.
1996         * modules/unictype/syntax-c-whitespace-tests: Likewise.
1997         * modules/unictype/syntax-java-ident-tests: Likewise.
1998         * modules/unictype/syntax-java-whitespace-tests: Likewise.
1999         * modules/unilbrk/u8-possible-linebreaks-tests: Likewise.
2000         * modules/unilbrk/u8-width-linebreaks-tests: Likewise.
2001         * modules/unilbrk/u16-possible-linebreaks-tests: Likewise.
2002         * modules/unilbrk/u16-width-linebreaks-tests: Likewise.
2003         * modules/unilbrk/u32-possible-linebreaks-tests: Likewise.
2004         * modules/unilbrk/u32-width-linebreaks-tests: Likewise.
2005         * modules/unilbrk/ulc-possible-linebreaks-tests: Likewise.
2006         * modules/unilbrk/ulc-width-linebreaks-tests: Likewise.
2007         * modules/uniname/uniname-tests: Likewise.
2008         * modules/uninorm/canonical-decomposition-tests: Likewise.
2009         * modules/uninorm/compat-decomposition-tests: Likewise.
2010         * modules/uninorm/composition-tests: Likewise.
2011         * modules/uninorm/decomposing-form-tests: Likewise.
2012         * modules/uninorm/decomposition-tests: Likewise.
2013         * modules/uninorm/filter-tests: Likewise.
2014         * modules/uninorm/nfc-tests: Likewise.
2015         * modules/uninorm/nfd-tests: Likewise.
2016         * modules/uninorm/nfkc-tests: Likewise.
2017         * modules/uninorm/nfkd-tests: Likewise.
2018         * modules/uninorm/u8-normcmp-tests: Likewise.
2019         * modules/uninorm/u8-normcoll-tests: Likewise.
2020         * modules/uninorm/u16-normcmp-tests: Likewise.
2021         * modules/uninorm/u16-normcoll-tests: Likewise.
2022         * modules/uninorm/u32-normcmp-tests: Likewise.
2023         * modules/uninorm/u32-normcoll-tests: Likewise.
2024         * modules/unistdio/u8-asnprintf-tests: Likewise.
2025         * modules/unistdio/u8-vasnprintf-tests: Likewise.
2026         * modules/unistdio/u8-vasprintf-tests: Likewise.
2027         * modules/unistdio/u8-vsnprintf-tests: Likewise.
2028         * modules/unistdio/u8-vsprintf-tests: Likewise.
2029         * modules/unistdio/u16-asnprintf-tests: Likewise.
2030         * modules/unistdio/u16-vasnprintf-tests: Likewise.
2031         * modules/unistdio/u16-vasprintf-tests: Likewise.
2032         * modules/unistdio/u16-vsnprintf-tests: Likewise.
2033         * modules/unistdio/u16-vsprintf-tests: Likewise.
2034         * modules/unistdio/u32-asnprintf-tests: Likewise.
2035         * modules/unistdio/u32-vasnprintf-tests: Likewise.
2036         * modules/unistdio/u32-vasprintf-tests: Likewise.
2037         * modules/unistdio/u32-vsnprintf-tests: Likewise.
2038         * modules/unistdio/u32-vsprintf-tests: Likewise.
2039         * modules/unistdio/ulc-asnprintf-tests: Likewise.
2040         * modules/unistdio/ulc-vasnprintf-tests: Likewise.
2041         * modules/unistdio/ulc-vasprintf-tests: Likewise.
2042         * modules/unistdio/ulc-vsnprintf-tests: Likewise.
2043         * modules/unistdio/ulc-vsprintf-tests: Likewise.
2044         * modules/unistr/u8-check-tests: Likewise.
2045         * modules/unistr/u8-chr-tests: Likewise.
2046         * modules/unistr/u8-cmp-tests: Likewise.
2047         * modules/unistr/u8-cmp2-tests: Likewise.
2048         * modules/unistr/u8-cpy-alloc-tests: Likewise.
2049         * modules/unistr/u8-cpy-tests: Likewise.
2050         * modules/unistr/u8-mblen-tests: Likewise.
2051         * modules/unistr/u8-mbsnlen-tests: Likewise.
2052         * modules/unistr/u8-mbtouc-tests: Likewise.
2053         * modules/unistr/u8-mbtouc-unsafe-tests: Likewise.
2054         * modules/unistr/u8-mbtoucr-tests: Likewise.
2055         * modules/unistr/u8-move-tests: Likewise.
2056         * modules/unistr/u8-next-tests: Likewise.
2057         * modules/unistr/u8-prev-tests: Likewise.
2058         * modules/unistr/u8-set-tests: Likewise.
2059         * modules/unistr/u8-stpcpy-tests: Likewise.
2060         * modules/unistr/u8-stpncpy-tests: Likewise.
2061         * modules/unistr/u8-strcat-tests: Likewise.
2062         * modules/unistr/u8-strcmp-tests: Likewise.
2063         * modules/unistr/u8-strcoll-tests: Likewise.
2064         * modules/unistr/u8-strcpy-tests: Likewise.
2065         * modules/unistr/u8-strdup-tests: Likewise.
2066         * modules/unistr/u8-strlen-tests: Likewise.
2067         * modules/unistr/u8-strmblen-tests: Likewise.
2068         * modules/unistr/u8-strmbtouc-tests: Likewise.
2069         * modules/unistr/u8-strncat-tests: Likewise.
2070         * modules/unistr/u8-strncmp-tests: Likewise.
2071         * modules/unistr/u8-strncpy-tests: Likewise.
2072         * modules/unistr/u8-strnlen-tests: Likewise.
2073         * modules/unistr/u8-to-u16-tests: Likewise.
2074         * modules/unistr/u8-to-u32-tests: Likewise.
2075         * modules/unistr/u8-uctomb-tests: Likewise.
2076         * modules/unistr/u16-check-tests: Likewise.
2077         * modules/unistr/u16-chr-tests: Likewise.
2078         * modules/unistr/u16-cmp-tests: Likewise.
2079         * modules/unistr/u16-cmp2-tests: Likewise.
2080         * modules/unistr/u16-cpy-alloc-tests: Likewise.
2081         * modules/unistr/u16-cpy-tests: Likewise.
2082         * modules/unistr/u16-mblen-tests: Likewise.
2083         * modules/unistr/u16-mbsnlen-tests: Likewise.
2084         * modules/unistr/u16-mbtouc-tests: Likewise.
2085         * modules/unistr/u16-mbtouc-unsafe-tests: Likewise.
2086         * modules/unistr/u16-mbtoucr-tests: Likewise.
2087         * modules/unistr/u16-move-tests: Likewise.
2088         * modules/unistr/u16-next-tests: Likewise.
2089         * modules/unistr/u16-prev-tests: Likewise.
2090         * modules/unistr/u16-set-tests: Likewise.
2091         * modules/unistr/u16-stpcpy-tests: Likewise.
2092         * modules/unistr/u16-stpncpy-tests: Likewise.
2093         * modules/unistr/u16-strcat-tests: Likewise.
2094         * modules/unistr/u16-strcmp-tests: Likewise.
2095         * modules/unistr/u16-strcoll-tests: Likewise.
2096         * modules/unistr/u16-strcpy-tests: Likewise.
2097         * modules/unistr/u16-strdup-tests: Likewise.
2098         * modules/unistr/u16-strlen-tests: Likewise.
2099         * modules/unistr/u16-strmblen-tests: Likewise.
2100         * modules/unistr/u16-strmbtouc-tests: Likewise.
2101         * modules/unistr/u16-strncat-tests: Likewise.
2102         * modules/unistr/u16-strncmp-tests: Likewise.
2103         * modules/unistr/u16-strncpy-tests: Likewise.
2104         * modules/unistr/u16-strnlen-tests: Likewise.
2105         * modules/unistr/u16-to-u32-tests: Likewise.
2106         * modules/unistr/u16-to-u8-tests: Likewise.
2107         * modules/unistr/u16-uctomb-tests: Likewise.
2108         * modules/unistr/u32-check-tests: Likewise.
2109         * modules/unistr/u32-chr-tests: Likewise.
2110         * modules/unistr/u32-cmp-tests: Likewise.
2111         * modules/unistr/u32-cmp2-tests: Likewise.
2112         * modules/unistr/u32-cpy-alloc-tests: Likewise.
2113         * modules/unistr/u32-cpy-tests: Likewise.
2114         * modules/unistr/u32-mblen-tests: Likewise.
2115         * modules/unistr/u32-mbsnlen-tests: Likewise.
2116         * modules/unistr/u32-mbtouc-tests: Likewise.
2117         * modules/unistr/u32-mbtouc-unsafe-tests: Likewise.
2118         * modules/unistr/u32-mbtoucr-tests: Likewise.
2119         * modules/unistr/u32-move-tests: Likewise.
2120         * modules/unistr/u32-next-tests: Likewise.
2121         * modules/unistr/u32-prev-tests: Likewise.
2122         * modules/unistr/u32-set-tests: Likewise.
2123         * modules/unistr/u32-stpcpy-tests: Likewise.
2124         * modules/unistr/u32-stpncpy-tests: Likewise.
2125         * modules/unistr/u32-strcat-tests: Likewise.
2126         * modules/unistr/u32-strcmp-tests: Likewise.
2127         * modules/unistr/u32-strcoll-tests: Likewise.
2128         * modules/unistr/u32-strcpy-tests: Likewise.
2129         * modules/unistr/u32-strdup-tests: Likewise.
2130         * modules/unistr/u32-strlen-tests: Likewise.
2131         * modules/unistr/u32-strmblen-tests: Likewise.
2132         * modules/unistr/u32-strmbtouc-tests: Likewise.
2133         * modules/unistr/u32-strncat-tests: Likewise.
2134         * modules/unistr/u32-strncmp-tests: Likewise.
2135         * modules/unistr/u32-strncpy-tests: Likewise.
2136         * modules/unistr/u32-strnlen-tests: Likewise.
2137         * modules/unistr/u32-to-u16-tests: Likewise.
2138         * modules/unistr/u32-to-u8-tests: Likewise.
2139         * modules/unistr/u32-uctomb-tests: Likewise.
2140         * modules/uniwbrk/u8-wordbreaks-tests: Likewise.
2141         * modules/uniwbrk/u16-wordbreaks-tests: Likewise.
2142         * modules/uniwbrk/u32-wordbreaks-tests: Likewise.
2143         * modules/uniwbrk/ulc-wordbreaks-tests: Likewise.
2144         * modules/uniwidth/u8-strwidth-tests: Likewise.
2145         * modules/uniwidth/u8-width-tests: Likewise.
2146         * modules/uniwidth/u16-strwidth-tests: Likewise.
2147         * modules/uniwidth/u16-width-tests: Likewise.
2148         * modules/uniwidth/u32-strwidth-tests: Likewise.
2149         * modules/uniwidth/u32-width-tests: Likewise.
2150         * modules/uniwidth/width-tests: Likewise.
2151
2152 2010-05-18  Richard Jones  <rjones@redhat.com>
2153
2154         doc: users.txt: list hivex
2155         * users.txt: Add hivex.
2156
2157 2010-05-18  Richard Jones  <rjones@redhat.com>
2158
2159         doc: users.txt: list febootstrap
2160         * users.txt: Add febootstrap.
2161
2162 2010-05-17  Giuseppe Scrivano  <gscrivano@gnu.org>
2163
2164         bootstrap: fix an error when gnulib is not used as a git submodule
2165         * build-aux/bootstrap (gnulib_path): If its length is zero then
2166         assign "gnulib" to it.
2167         * build-aux/bootstrap: Redirect "git clone -h" stderr to stdout.
2168
2169 2010-05-16  Bruno Haible  <bruno@clisp.org>
2170
2171         Avoid autoconf warnings about AM_ICONV.
2172         * m4/iconv.m4 (AM_ICONV): Define using AC_DEFUN_ONCE for autoconf >=
2173         2.64.
2174
2175 2010-05-16  Bruno Haible  <bruno@clisp.org>
2176
2177         absolute-header: Make the macro usable in more situations.
2178         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER_ONE): New macro, extracted
2179         from gl_ABSOLUTE_HEADER.
2180         (gl_ABSOLUTE_HEADER): Use it. Fix comment.
2181
2182 2010-05-16  James Youngman  <jay@gnu.org>
2183
2184         doc: update users.txt
2185         * users.txt: Add CSSC.
2186
2187 2010-05-16  Jim Meyering  <meyering@redhat.com>
2188
2189         init.sh: fix an error in the previous change; add more comments
2190         * tests/init.sh: Compare exit code in loop against 9, not 2.
2191         Patch by Bruno Haible.
2192         Make the two tests more similar by adding an empty "then" clause.
2193         Add comments.
2194
2195         init.sh: avoid unnecessary shell re-exec
2196         * tests/init.sh: Improve the re-exec-required check to first test the
2197         current shell.  If it passes the test, do not search for a shell that
2198         does pass, and do not re-exec.  This test is particularly contorted to
2199         avoid triggering misbehavior in Solaris 10's /bin/sh whereby any use
2200         of $(...) evokes a syntax error and causes immediate shell exit with
2201         status 2.  Bruno Haible reported that the re-exec made it impossible
2202         to single-step through any init.sh-using script.
2203
2204 2010-05-16  Bruno Haible  <bruno@clisp.org>
2205
2206         Fix collision between gnulib's and libintl's printf replacements.
2207         * lib/stdio.in.h (_GL_STDIO_STRINGIZE,
2208         _GL_STDIO_MACROEXPAND_AND_STRINGIZE): New macros.
2209         (printf): When using GNU C, map the __printf__ function to rpl_printf
2210         via __asm__. When not using GNU C, define rpl_printf instead of
2211         __printf__.
2212         * lib/printf.c: Ignore DEPENDS_ON_LIBINTL. Undoes the 2010-03-25
2213         commit.
2214         * lib/stdio-write.c: Ignore DEPENDS_ON_LIBINTL. Undoes the 2009-08-10
2215         commit.
2216         * m4/asm-underscore.m4: New file.
2217         * m4/stdio_h.m4 (gl_STDIO_H): Require gl_ASM_SYMBOL_PREFIX.
2218         * modules/stdio (Files): Add m4/asm-underscore.m4.
2219         (Makefile.am): Substitute ASM_SYMBOL_PREFIX.
2220         Reported by Ben Pfaff.
2221
2222 2010-05-16  Bruno Haible  <bruno@clisp.org>
2223
2224         verify: Avoid skipping the test on openSUSE 11.0.
2225         * tests/test-verify.sh: Unset MALLOC_PERTURB_.
2226
2227 2010-05-13  Bruno Haible  <bruno@clisp.org>
2228
2229         Avoid useless warnings from G++.
2230         * build-aux/c++defs.h (_GL_CXXALIASWARN_2, _GL_CXXALIASWARN1_2): Don't
2231         use _GL_WARN_ON_USE or _GL_WARN_ON_USE_CXX when optimizing.
2232         Reported by Jarno Rajahalme <jarno.rajahalme@nsn.com>.
2233
2234 2010-05-11  Jim Meyering  <meyering@redhat.com>
2235
2236         maint.mk: tweak preceding change
2237         * top/maint.mk (gl_extract_significant_defines_): Make exclusion
2238         regexps tighter by anchoring at EOL, and make the new group "shy"
2239         for slightly decreased overhead.
2240
2241 2010-05-11  Eric Blake  <eblake@redhat.com>
2242
2243         maint.mk: gnulib doesn't guarantee NSIG
2244         * top/maint.mk (gl_extract_significant_defines_): Exclude NSIG.
2245
2246 2010-05-10  Peter O'Gorman  <pogma@thewrittenword.com>
2247
2248         test-pwrite.c: Remove unused variable declaration.
2249         * tests/test-pwrite.c (main): Remove read_buf declaration.
2250
2251         Remove useless test-pwrite.sh file.
2252         * tests/test-pwrite.sh: Delete file.
2253         * modules/pwrite-tests: Remove references.
2254         Reported by Bruno Haible.
2255
2256 2010-05-10  Peter O'Gorman  <pogma@thewrittenword.com>
2257
2258         init.sh: fix a typo
2259         * tests/init.sh: Correct typo in MALLOC_PERTURB_ initialization.
2260
2261 2010-05-10  Jim Meyering  <meyering@redhat.com>
2262
2263         maint.mk: avoid using a temporary file in the always-defined-macros check
2264         * top/maint.mk (.re-defmac): Remove rule.
2265         (gl_trap_): Remove definition.
2266         (sc_prohibit_always-defined_macros): Rewrite not to create and
2267         depend on a temporary file.  Instead, depend on GNU grep's ability
2268         to read a list of regular expressions from stdin when given "-f -".
2269
2270 2010-05-09  Bruno Haible  <bruno@clisp.org>
2271
2272         Update to GNU gettext 0.18, part 1.
2273         * m4/gettext.m4: Update to GNU gettext 0.18.
2274         * m4/intl.m4: Likewise.
2275         * m4/po.m4: Likewise.
2276         * modules/gettext (Files): Add m4/fcntl-o.m4.
2277         (configure.ac): Require gettext infrastructure from version 0.18.
2278
2279 2010-05-09  Jim Meyering  <meyering@redhat.com>
2280
2281         init.sh: enable MALLOC_PERTURB_
2282         * tests/init.sh: Enable glibc's malloc-perturbing option.
2283
2284         maint.mk: improve sc_cross_check_PATH_usage_in_tests
2285         With my recent change in init.sh from the two-line form:
2286             -#   : ${srcdir=.}
2287             -#   . "$srcdir/init.sh"; path_prepend_ .
2288             +#   . "${srcdir=.}/init.sh"; path_prepend_ .
2289         I noticed that using the one-line form would cause this test
2290         to fail with a false-positive, or to stop working altogether,
2291         depending on whether help-version changed or all the tests did.
2292         * top/maint.mk (_hv_regex): Remove this definition.
2293         (_hv_regex_weak): Use a weak regex to select all init.sh-sourcing files.
2294         (_hv_regex_strong): Use a stronger regex to check for conformance.
2295         (sc_cross_check_PATH_usage_in_tests): Rewrite to use the above.
2296         Give a separate diagnostic for lack of conforming use.
2297
2298         maint.mk: prohibit definition of symbols defined by gnulib
2299         * top/maint.mk (sc_prohibit_always-defined_macros): Reject the
2300         definition of symbols defined by gnulib.
2301
2302 2010-05-09  Bruno Haible  <bruno@clisp.org>
2303
2304         acl: Avoid test failure on Cygwin-hosted mingw.
2305         * tests/test-set-mode-acl.sh: Skip test if USE_ACL is 0.
2306
2307 2010-05-09  Bruno Haible  <bruno@clisp.org>
2308
2309         error: Use system's fcntl function.
2310         * lib/error.c (fcntl): Undefine.
2311
2312 2010-05-09  Jim Meyering  <meyering@redhat.com>
2313
2314         verify: adjust formatting to be more consistent
2315         * lib/verify.h (_GL_GENSYM): Add a space before each of a few
2316         argument-list '('s, and after one comma.
2317
2318 2010-05-09  Bruno Haible  <bruno@clisp.org>
2319
2320         error: More reliable output on mingw.
2321         * lib/error.c: Include <windows.h>.
2322         (is_open): New function.
2323         (flush_stdout): Call it instead of fcntl, also if F_GETFL is not
2324         defined.
2325
2326 2010-05-09  Bruno Haible  <bruno@clisp.org>
2327
2328         vasnprintf: Fix syntax errors in libintl build on mingw.
2329         * lib/vasnprintf.c (VASNPRINTF): Move a closing brace. Undefine
2330         pad_ourselves and prec_ourselves after use.
2331
2332 2010-05-08  Bruno Haible  <bruno@clisp.org>
2333
2334         * lib/config.charset: Update comments for Cygwin 1.7.
2335         * lib/localcharset.c: Likewise.
2336
2337 2010-05-07  Jim Meyering  <meyering@redhat.com>
2338
2339         init.sh: improve comments
2340         * tests/init.sh: Recommend the one-line init.sh-sourcing idiom:
2341         . "${srcdir=.}/init.sh"; path_prepend_ .
2342         Add a note about path_prepend_ and the alternative of using
2343         TESTS_ENVIRONMENT.
2344
2345 2010-05-06  Sergey Poznyakoff  <gray@gnu.org.ua>
2346
2347         exclude: Unescape hashed patterns in wildcard mode.
2348         * lib/exclude.c (add_exclude): Unescape the pattern before adding it
2349         to the hash list.
2350         * tests/test-exclude8.sh: New test case.
2351         * modules/exclude-tests: Add new test.
2352
2353 2010-05-05  Eric Blake  <eblake@redhat.com>
2354
2355         verify: automate tests
2356         * modules/verify-tests: New module.
2357         * tests/test-verify.sh: New file.
2358         * tests/test-verify.c: Guard each negative test with a unique id.
2359         Also avoid warning about unused left hand of comma expressions.
2360
2361 2010-05-05  Paul Eggert  <eggert@cs.ucla.edu>
2362
2363         Further improvements to verify.h, suggested by Eric Blake.
2364         * lib/verify.h (_GL_CONCAT, _GL_CONCAT0, _GL_GENSYM): Renamed from
2365         the GL_* versions, to avoid collision with OpenGL.
2366         (_GL_COUNTER): New macro, so that we can fall back on __LINE__ if
2367         __COUNTER__ doesn't work.  Test that __COUNTER__ increments rather
2368         than testing merely whether it's defined.
2369
2370         Modify verify.h to pacify gcc -Wredundant_decls.
2371         * lib/verify.h (GL_CONCAT, GL_CONCAT0, GL_GENSYM): New macros.
2372         These use the prefix "GL_" since they're likely to be useful elsewhere.
2373         We may need to break them out into a different .h file.
2374         (__COUNTER__): Define to 0 if the compiler doesn't support it.
2375         (verify) [!defined __cplusplus]: Use them to avoid duplicate decls
2376         of verify_function__.
2377
2378 2010-05-05  Peter O'Gorman  <pogma@thewrittenword.com>
2379
2380         Tests for module pwrite.
2381         * modules/pwrite-tests: New file.
2382         * tests/test-pwrite.sh: New file.
2383         * tests/test-pwrite.c: New file.
2384
2385         New module pwrite.
2386         * lib/unistd.in.h (pwrite): New declaration.
2387         * lib/pwrite.c: New file, from glibc with modifications.
2388         * m4/pwrite.m4: New file.
2389         * m4/unistd_h.m4 (gl_UNISTD_H): Test whether pwrite is declared.
2390         (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_PWRITE, HAVE_PWRITE,
2391         REPLACE_PWRITE.
2392         * modules/pwrite: New file.
2393         * modules/unistd (Makefile.am): Substitute GNULIB_PWRITE, HAVE_PWRITE,
2394         REPLACE_PWRITE.
2395         * tests/test-unistd-c++.cc: Check GNULIB_NAMESPACE::pwrite.
2396         * doc/posix-functions/pwrite.texi: Mention the new module.
2397
2398 2010-05-05  Peter O'Gorman  <pogma@thewrittenword.com>
2399
2400         pread: Update documentation.
2401         * doc/posix-functions/pread.texi: Mention the 'pread' module.
2402
2403 2010-05-04  Eric Blake  <eblake@redhat.com>
2404
2405         docs: update cygwin progress
2406         * doc/posix-functions/wctob.texi (wctob): Cygwin 1.7.6 will fix
2407         this bug.
2408         * doc/glibc-functions/get_nprocs_conf.texi (get_nprocs_conf):
2409         Added in cygwin 1.7.2.
2410         * doc/glibc-functions/get_phys_pages.texi (get_phys_pages):
2411         Likewise.
2412         * doc/glibc-functions/get_avphys_pages.texi (get_avphys_pages):
2413         Likewise.
2414         * doc/glibc-functions/dup3.texi (dup3): Likewise.
2415         * doc/glibc-functions/pipe2.texi (pipe2): Likewise.
2416         * doc/glibc-functions/accept4.texi (accept4): Likewise.
2417         * doc/posix-functions/strfmon.texi (strfmon): Likewise.
2418         * doc/glibc-functions/get_nprocs.texi (get_nprocs): Likewise.
2419         Mention nproc module.
2420         * doc/glibc-functions/xdr_uint16_t.texi (xdr_uint16_t): Mention
2421         bug in cygwin 1.7.5 addition.
2422         * doc/glibc-functions/xdr_uint32_t.texi (xdr_uint32_t): Likewise.
2423         * doc/glibc-functions/xdr_uint64_t.texi (xdr_uint64_t): Likewise.
2424         * doc/glibc-functions/xdr_uint8_t.texi (xdr_uint8_t): Likewise.
2425         * doc/glibc-functions/xdr_array.texi (xdr_array): Added in cygwin
2426         1.7.5.
2427         * doc/glibc-functions/xdr_bool.texi (xdr_bool): Likewise.
2428         * doc/glibc-functions/xdr_bytes.texi (xdr_bytes): Likewise.
2429         * doc/glibc-functions/xdr_char.texi (xdr_char): Likewise.
2430         * doc/glibc-functions/xdr_double.texi (xdr_double): Likewise.
2431         * doc/glibc-functions/xdr_enum.texi (xdr_enum): Likewise.
2432         * doc/glibc-functions/xdr_float.texi (xdr_float): Likewise.
2433         * doc/glibc-functions/xdr_free.texi (xdr_free): Likewise.
2434         * doc/glibc-functions/xdr_hyper.texi (xdr_hyper): Likewise.
2435         * doc/glibc-functions/xdr_int.texi (xdr_int): Likewise.
2436         * doc/glibc-functions/xdr_int16_t.texi (xdr_int16_t): Likewise.
2437         * doc/glibc-functions/xdr_int32_t.texi (xdr_int32_t): Likewise.
2438         * doc/glibc-functions/xdr_int64_t.texi (xdr_int64_t): Likewise.
2439         * doc/glibc-functions/xdr_int8_t.texi (xdr_int8_t): Likewise.
2440         * doc/glibc-functions/xdr_long.texi (xdr_long): Likewise.
2441         * doc/glibc-functions/xdr_longlong_t.texi (xdr_longlong_t):
2442         Likewise.
2443         * doc/glibc-functions/xdr_netobj.texi (xdr_netobj): Likewise.
2444         * doc/glibc-functions/xdr_opaque.texi (xdr_opaque): Likewise.
2445         * doc/glibc-functions/xdr_pointer.texi (xdr_pointer): Likewise.
2446         * doc/glibc-functions/xdr_reference.texi (xdr_reference):
2447         Likewise.
2448         * doc/glibc-functions/xdr_short.texi (xdr_short): Likewise.
2449         * doc/glibc-functions/xdr_sizeof.texi (xdr_sizeof): Likewise.
2450         * doc/glibc-functions/xdr_string.texi (xdr_string): Likewise.
2451         * doc/glibc-functions/xdr_u_char.texi (xdr_u_char): Likewise.
2452         * doc/glibc-functions/xdr_u_hyper.texi (xdr_u_hyper): Likewise.
2453         * doc/glibc-functions/xdr_u_int.texi (xdr_u_int): Likewise.
2454         * doc/glibc-functions/xdr_u_long.texi (xdr_u_long): Likewise.
2455         * doc/glibc-functions/xdr_u_longlong_t.texi (xdr_u_longlong_t):
2456         Likewise.
2457         * doc/glibc-functions/xdr_u_short.texi (xdr_u_short): Likewise.
2458         * doc/glibc-functions/xdr_union.texi (xdr_union): Likewise.
2459         * doc/glibc-functions/xdr_vector.texi (xdr_vector): Likewise.
2460         * doc/glibc-functions/xdr_void.texi (xdr_void): Likewise.
2461         * doc/glibc-functions/xdr_wrapstring.texi (xdr_wrapstring):
2462         Likewise.
2463         * doc/glibc-functions/xdrmem_create.texi (xdrmem_create):
2464         Likewise.
2465         * doc/glibc-functions/xdrrec_create.texi (xdrrec_create):
2466         Likewise.
2467         * doc/glibc-functions/xdrrec_endofrecord.texi
2468         (xdrrec_endofrecord): Likewise.
2469         * doc/glibc-functions/xdrrec_eof.texi (xdrrec_eof): Likewise.
2470         * doc/glibc-functions/xdrrec_skiprecord.texi (xdrrec_skiprecord):
2471         Likewise.
2472         * doc/glibc-functions/xdrstdio_create.texi (xdrstdio_create):
2473         Likewise.
2474
2475 2010-05-04  Jim Meyering  <meyering@redhat.com>
2476
2477         gendocs.sh: make its "-s FILE" option more useful
2478         * build-aux/gendocs.sh: When honoring the -s FILE option, update
2479         $PACKAGE to reflect the probably-different basename of "FILE".
2480
2481 2010-05-03  Giuseppe Scrivano  <gscrivano@gnu.org>
2482
2483         bootstrap: don't ignore download_po_files failure
2484         * build-aux/bootstrap (update_po_files): Don't ignore download_po_files
2485         failure.
2486
2487 2010-05-03  Jim Meyering  <meyering@redhat.com>
2488
2489         maint.mk: allow to pass options to gendocs.sh
2490         * top/maint.mk (web-manual): Pass gendocs_options_ to gendocs.sh.
2491         (gendocs_options_): New overridable variable.
2492
2493         gnu-web-doc-update: don't ignore configure or build failure
2494         * build-aux/gnu-web-doc-update: Exit nonzero upon internal failure.
2495
2496         announce-gen: backslash-escape '@'s in --help output
2497         * build-aux/announce-gen: Fix syntax errors.
2498
2499         maint.mk, announce-gen: allow project-specific announcement mail headers
2500         * top/maint.mk (translation_project_): Define default.
2501         (announcement_Cc_, announcement_mail_headers_): Likewise.
2502         (announcement): Invoke announce-gen with new --mail-headers option.
2503         * build-aux/announce-gen: New option: --mail-headers=HEADERS.
2504
2505         test-xalloc-die: avoid unwarranted test failure on OpenSolaris 5.11
2506         * tests/test-xalloc-die.sh: Redirect stdout before stderr, (i.e.,
2507         "> out 2> err", rather than "2> err > out").  Otherwise, with /bin/sh
2508         on OpenSolaris 5.11 snv_134, we would end up with a stray "1> out"
2509         line in the "err2" output file when running "make check" in verbose
2510         mode (i.e., with set -x enabled).
2511
2512 2010-05-03  Bruno Haible  <bruno@clisp.org>
2513
2514         wctob: Fix for weird platforms.
2515         * lib/wctob.c (wctob): When wint_t is larger than wchar_t, check the
2516         argument value.
2517
2518 2010-05-03  Jim Meyering  <meyering@redhat.com>
2519
2520         maint.mk: prohibit unwarranted use of <strings.h>
2521         * top/maint.mk (sc_prohibit_strings_without_use): Reject inclusion of
2522         strings.h in a file that does not also use strcasecmp, strncasecmp,
2523         ffs or ffsll.
2524
2525         maint.mk: remove obsolete comments
2526         * top/maint.mk: Remove stale, commented-out rules.
2527
2528 2010-05-02  Bruno Haible  <bruno@clisp.org>
2529
2530         wcwidth: Declare also when it's aliased.
2531         * lib/wchar.in.h (wcwidth): Don't test whether wcwidth is defined as a
2532         macro.
2533
2534 2010-05-02  Bruno Haible  <bruno@clisp.org>
2535
2536         Fix regression from 2010-04-25.
2537         * gnulib-tool (func_modules_transitive_closure): Check the status of
2538         all modules, not only of the tests that are of the form foo-tests where
2539         foo is a module.
2540
2541 2010-05-02  Bruno Haible  <bruno@clisp.org>
2542
2543         wctob: Work around nasty Cygwin 1.7.2 bug.
2544         * m4/wctob.m4 (gl_FUNC_WCTOB): Detect the Cygwin bug.
2545         * doc/posix-functions/wctob.texi: Mention the Cygwin bug.
2546
2547 2010-05-01  Bruno Haible  <bruno@clisp.org>
2548
2549         fpurge: Sharper test.
2550         * tests/test-fpurge.c (main): Add one more ftell check.
2551         * modules/fpurge-tests (Depends-on): Add ftell.
2552         Suggested by Eric Blake.
2553
2554 2010-05-01  Bruno Haible  <bruno@clisp.org>
2555
2556         ftello: Another test.
2557         * tests/test-ftello3.c: New file.
2558         * modules/ftello-tests (Files): Add it.
2559         (Makefile.am): Add it to TESTS and check_PROGRAMS. Augment
2560         MOSTLYCLEANFILES.
2561
2562         ftell: Another test.
2563         * tests/test-ftell3.c: New file.
2564         * modules/ftell-tests (Files): Add it.
2565         (Makefile.am): Add it to TESTS and check_PROGRAMS. Augment
2566         MOSTLYCLEANFILES.
2567
2568 2010-05-01  Bruno Haible  <bruno@clisp.org>
2569
2570         ftell, ftello: Work around Solaris bug.
2571         * m4/ftello.m4 (gl_FUNC_FTELLO): Detect Solaris bug.
2572         * lib/ftello.c: Include stdio-impl.h.
2573         (ftello): On Solaris, when _IOWRT is set, compute the result without
2574         looking at _IOREAD.
2575         * modules/ftello (Files): Add lib/stdio-impl.h.
2576         * doc/posix-functions/ftell.texi: Mention Solaris bug.
2577         * doc/posix-functions/ftello.texi: Likewise.
2578         Reported by Eric Blake.
2579
2580 2010-05-01  Bruno Haible  <bruno@clisp.org>
2581
2582         freading: Adapt to special meaning of _IOREAD flag on Solaris.
2583         * lib/freading.c (freading): On Solaris, ignore the _IOREAD flag if
2584         the _IOWRT flag is also set.
2585
2586 2010-05-01  Bruno Haible  <bruno@clisp.org>
2587
2588         Fix doc about a HP-UX stdio bug.
2589         * doc/posix-functions/ftell.texi: Mark HP-UX bug as unfixed.
2590         * doc/posix-functions/ftello.texi: Likewise.
2591
2592 2010-05-01  Bruno Haible  <bruno@clisp.org>
2593
2594         lseek test: Fix failure on Solaris.
2595         * tests/test-lseek.sh: Partially revert 2010-04-20 commit. Consume all
2596         output.
2597
2598 2010-04-30  Jim Meyering  <meyering@redhat.com>
2599
2600         bootstrap: don't ignore failure to generate po*/Makevars
2601         * build-aux/bootstrap (with_gettext): Don't ignore failure
2602         to create po/Makevars or runtime-po/Makevars.
2603
2604 2010-04-29  Eric Blake  <eblake@redhat.com>
2605
2606         headers: relax license to LGPLv2+
2607         * modules/fcntl-h (License): Relax license.
2608         * modules/getopt-posix (License): Likewise.
2609         * modules/locale (License): Likewise.
2610         * modules/math (License): Likewise.
2611         * modules/pty (License): Likewise.
2612         * modules/sched (License): Likewise.
2613         * modules/search (License): Likewise.
2614         * modules/spawn (License): Likewise.
2615         * modules/stdarg (License): Likewise.
2616         * modules/sysexits (License): Likewise.
2617
2618 2010-04-29  Jim Meyering  <meyering@redhat.com>
2619
2620         inttypes: relax license to LGPLv2+
2621         * modules/inttypes (License): Relax license.
2622
2623 2010-04-29  Simon Josefsson  <simon@josefsson.org>
2624
2625         * top/maint.mk (indent): Run twice to produce idempotent results.
2626
2627 2010-04-28  Bruno Haible  <bruno@clisp.org>
2628
2629         getdate: Generate getdate.c in the source directory.
2630         * modules/getdate (Makefile.am): Add rule for getdate.c. Augment
2631         MOSTLYCLEANFILES.
2632         Suggested by Daniel Richard G. <skunk@iskunk.org> and Ralf Wildenhues.
2633
2634 2010-04-27  Andreas Gruenbacher  <agruen@suse.de>  (tiny change)
2635
2636         * lib/utimens.c: On Tru64, the timestamp parameter of utimens(2)
2637         is not declared as a const *; avoid warnings in that case.
2638
2639 2010-04-28  Eric Blake  <eblake@redhat.com>
2640
2641         canonicalize-lgpl: avoid compiler warning
2642         * lib/canonicalize-lgpl.c (versioned_symbol): Avoid an 'empty
2643         declaration' / 'extraneous semicolon' warning with some compilers.
2644         Reported by Andreas Gruenbacher.
2645
2646 2010-04-28  Jim Meyering  <meyering@redhat.com>
2647
2648         init.sh: ensure a more reliable exit status when exiting via trap
2649         * tests/init.sh (setup_): Don't rely on $? in signal handler.
2650         Inspired by patches from Dmitry V. Levin.
2651         Also trap on signal 3 (SIGQUIT).
2652
2653 2010-04-27  Bruno Haible  <bruno@clisp.org>
2654
2655         Update doc about utimes().
2656         * doc/posix-functions/utimes.texi: Mention the OSF/1 problem and the
2657         'utimens' module.
2658         Reported by Andreas Gruenbacher <agruen@suse.de>.
2659
2660 2010-04-27  Eric Blake  <eblake@redhat.com>
2661
2662         full-read, full-write: relax license
2663         * modules/full-read (License): Drop to LGPLv2+.
2664         * modules/full-write (License): Likewise.
2665         * modules/safe-read (License): Likewise.
2666         * modules/safe-write (License): Likewise.
2667
2668         pthread: mention library for linking
2669         * modules/pthread (Link): Mention $(LIB_PTHREAD).
2670
2671 2010-04-27  Jim Meyering  <meyering@redhat.com>
2672
2673         maint.mk: fix a bug introduced in last change
2674         * top/maint.mk (gl_assured_headers_): Now that all names are on
2675         one line, use sed's "g" modifier.  Note that while the \.in\.h LHS
2676         is not anchored to end of word, it should be adequate.
2677
2678         maint.mk: avoid side-effect in latest syntax-check
2679         * top/maint.mk (sc_prohibit_always_true_header_tests): Rework not
2680         to run commands via $(shell...), and hence to incur cost only when
2681         the new rule is actually run.
2682
2683         maint.mk: syntax-check: prohibit HAVE_<header>_H that are always true
2684         Derive the list of guaranteed header names from gnulib/lib/*.in.h,
2685         and use that to create a regexp used to detect all #if HAVE_..._H uses.
2686         * top/maint.mk (sc_prohibit_always_true_header_tests): New rule.
2687         (gl_assured_headers_, az_, AZ_): Define.
2688         (gl_header_upper_case_or_, gl_have_header_regex_): Define.
2689
2690 2010-04-26  Jim Meyering  <jim@meyering.net>
2691             Bruno Haible  <bruno@clisp.org>
2692
2693         gnulib-common.m4: make glibc write diagnostics to stderr, not /dev/tty
2694         * m4/gnulib-common.m4 (gl_COMMON_BODY): Set LIBC_FATAL_STDERR_.
2695         Prompted by an exchange with Gilles Espinasse.
2696
2697 2010-04-26  Jim Meyering  <meyering@redhat.com>
2698
2699         git-version-gen: aesthetic tweak
2700         * build-aux/git-version-gen: Use "$nl" rather than a literal,
2701         so that the command remains on a single line.
2702
2703 2010-04-26  Eric Blake  <eblake@redhat.com>
2704
2705         git-version-gen: allow use on EBCDIC hosts
2706         * build-aux/git-version-gen (dirty): Use literal rather than tying
2707         ourselves to ascii.
2708         Reported by Steve Goetze.
2709
2710 2010-04-25  Bruno Haible  <bruno@clisp.org>
2711
2712         netdb: Add support for GNULIB_POSIXCHECK.
2713         * lib/netdb.in.h: Include warn-on-use.h.
2714         (getaddrinfo, freeaddrinfo, gai_strerror, getnameinfo): Warn if these
2715         functions are used when GNULIB_POSIXCHECK is defined and the
2716         getaddrinfo module is not in use.
2717         * m4/netdb_h.m4 (gl_HEADER_NETDB): Test whether getaddrinfo,
2718         freeaddrinfo, gai_strerror, getnameinfo are declared.
2719         * modules/netdb (Depends-on): Add warn-on-use.
2720         (Makefile.am): Include warn-on-use.h in netdb.h.
2721
2722 2010-04-24  Ian Beckwith  <ianb@erislabs.net>
2723
2724         build: avoid "make check" failure without .git/ directory
2725         * Makefile (sc_prefer_ac_check_funcs_once): Skip this test when
2726         there is no .git/ directory.
2727
2728 2010-04-25  Bruno Haible  <bruno@clisp.org>
2729
2730         ptsname: Fix misuse of ttyname_r.
2731         * lib/ptsname.c (__ptsname_r): Use __ttyname_r's return value instead
2732         of errno.
2733
2734 2010-04-25  Bruno Haible  <bruno@clisp.org>
2735
2736         ttyname_r: Make it work on Solaris 10.
2737         * m4/ttyname_r.m4 (gl_FUNC_TTYNAME_R): Define HAVE_POSIXDECL_TTYNAME_R
2738         if the system function has the POSIX declaration. Test whether the
2739         function fails if the buffer is less than 128 bytes large.
2740         * lib/ttyname_r.c (ttyname_r): Handle both possible declarations of the
2741         system's ttyname_r function. Provide a reasonably large buffer.
2742         * modules/ttyname_r (Depends-on): Add extensions.
2743         * doc/posix-functions/ttyname_r.texi: Mention the Solaris problem.
2744
2745 2010-04-25  Bruno Haible  <bruno@clisp.org>
2746
2747         Use the 'extensions' module for some more functions on Solaris.
2748         * doc/posix-functions/asctime_r.texi: Recommend to use the 'extensions'
2749         module.
2750         * doc/posix-functions/ctime_r.texi: Likewise.
2751         * doc/posix-functions/getgrgid_r.texi: Likewise.
2752         * doc/posix-functions/getgrnam_r.texi: Likewise.
2753         * doc/posix-functions/getpwnam_r.texi: Likewise.
2754         * doc/posix-functions/getpwuid_r.texi: Likewise.
2755         * doc/posix-functions/readdir_r.texi: Likewise.
2756         * doc/posix-functions/sigwait.texi: Likewise.
2757         * m4/getlogin_r.m4 (gl_FUNC_GETLOGIN_R): Add comment.
2758         * doc/posix-functions/getlogin_r.texi: Mark Solaris problem as fixed.
2759
2760 2010-04-25  Bruno Haible  <bruno@clisp.org>
2761
2762         ttyname_r: Make it work on MacOS X 10.4 and Solaris 10.
2763         * m4/ttyname_r.m4 (gl_FUNC_TTYNAME_R): Test whether the system function
2764         has the POSIX declaration. Set REPLACE_TTYNAME_R if not.
2765         * lib/ttyname_r.c: Include <limits.h>.
2766         (ttyname_r): Define using the system's ttyname_r function, if it exists
2767         and not on Solaris.
2768         * lib/unistd.in.h (ttyname_r): Replace function if REPLACE_TTYNAME_R is
2769         set.
2770         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize REPLACE_TTYNAME_R.
2771         * modules/unistd (Makefile.am): Substitute REPLACE_TTYNAME_R.
2772         * doc/posix-functions/ttyname_r.texi: Mark the problem as fixed.
2773         Reported by Simon Josefsson.
2774
2775 2010-04-25  Bruno Haible  <bruno@clisp.org>
2776
2777         Mention effects of _POSIX_PTHREAD_SEMANTICS on Solaris.
2778         * doc/posix-functions/asctime_r.texi: Mention the Solaris problem.
2779         * doc/posix-functions/ctime_r.texi: Likewise.
2780         * doc/posix-functions/getgrgid_r.texi: Likewise.
2781         * doc/posix-functions/getgrnam_r.texi: Likewise.
2782         * doc/posix-functions/getlogin_r.texi: Likewise.
2783         * doc/posix-functions/getpwnam_r.texi: Likewise.
2784         * doc/posix-functions/getpwuid_r.texi: Likewise.
2785         * doc/posix-functions/readdir_r.texi: Likewise.
2786         * doc/posix-functions/sigwait.texi: Likewise.
2787         * doc/posix-functions/ttyname_r.texi: Likewise.
2788         Reported by Simon Josefsson.
2789
2790 2010-04-25  Bruno Haible  <bruno@clisp.org>
2791
2792         gnulib-tool: Don't include hairy tests of dependencies in testdirs.
2793         * gnulib-tool (func_usage): Document that --with-*-tests options apply
2794         also to --create-testdir.
2795         (func_acceptable): Don't consider the status of *-tests modules here.
2796         (func_modules_transitive_closure): Consider it here, before including a
2797         test module.
2798         (func_import, func_create_testdir): Set inc_all_direct_tests,
2799         inc_all_indirect_tests.
2800         * doc/gnulib.texi (Extra tests modules): Document new behaviour of
2801         --create-testdir and --create-megatestdir.
2802
2803 2010-04-25  Bruno Haible  <bruno@clisp.org>
2804
2805         gnulib-tool: Add --without-*-tests options.
2806         * gnulib-tool (func_usage): Document the --without-*-tests options.
2807         (excl_cxx_tests, excl_longrunning_tests, excl_privileged_tests,
2808         excl_unportable_tests): New variables.
2809         Fail if they are specified with --import or --update.
2810         (func_acceptable): Respect the excl_*_tests variables.
2811         (func_import): Set the excl_*_tests variables to empty.
2812
2813 2010-04-25  Simon Josefsson  <simon@josefsson.org>
2814             Bruno Haible  <bruno@clisp.org>
2815
2816         Work around a MacOS X 10.4 bug with openpty.
2817         * doc/glibc-functions/openpty.texi: Mention the MacOS X 10.4 bug.
2818         * tests/test-openpty.c (main): Close the master side explicitly.
2819
2820 2010-04-25  Bruno Haible  <bruno@clisp.org>
2821
2822         strnlen: Fix a C++ test error on MacOS X and Solaris.
2823         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Don't set REPLACE_STRNLEN to 1 if
2824         the function is not declared.
2825         Reported by Jarno Rajahalme <jarno.rajahalme@nsn.com> and
2826         Simon Josefsson.
2827
2828 2010-04-24  Bruno Haible  <bruno@clisp.org>
2829
2830         Avoid a gcc warning.
2831         * tests/test-vasprintf.c (test_vasprintf, test_asprintf): Pass argument
2832         of correct type for %08lx directive.
2833         Reported by Eric Blake.
2834
2835 2010-04-24  Bruno Haible  <bruno@clisp.org>
2836
2837         vasnprintf: Correct errno value in case of out-of-memory.
2838         * lib/vasnprintf.c (VASNPRINTF): Set errno to 0 before calling SNPRINTF
2839         or sprintf. Use the errno value from SNPRINTF or sprintf.
2840         Reported by Ian Beckwith <ianb@erislabs.net>.
2841
2842 2010-04-24  Bruno Haible  <bruno@clisp.org>
2843
2844         ansi-c++-opt: Find correct compiler when cross-compiling.
2845         * m4/ansi-c++.m4 (gl_PROG_ANSI_CXX): Use AC_CHECK_TOOLS instead of
2846         AC_CHECK_PROGS.
2847         Reported by Simon Josefsson.
2848
2849 2010-04-24  Giuseppe Scrivano  <gscrivano@gnu.org>
2850
2851         vc-list-files: Add support for subversion
2852         * build-aux/vc-list-files: Use "svn list" to generate the list of
2853         files controlled by subversion.
2854
2855 2010-04-23  Jim Meyering  <meyering@redhat.com>
2856
2857         vc-list-files tests: convert to use init.sh
2858         * tests/test-vc-list-files-cvs.sh: Invoke "$srcdir/init.sh" and
2859         path_prepend_.
2860         Use Exit, not exit.
2861         Use skip_ rather than open coding it.
2862         Remove trap set-up and compare definitions.
2863         * tests/test-vc-list-files-git.sh: Likewise.
2864         * modules/vc-list-files-tests (Files): Add tests/init.sh.
2865
2866 2010-04-22  Simon Josefsson  <simon@josefsson.org>
2867
2868         * top/maint.mk (sc_prohibit_backup_files): Prohibit checked in
2869         backup files.
2870
2871 2010-04-21  Simon Josefsson  <simon@josefsson.org>
2872
2873         * tests/test-vasprintf.c (test_vasprintf, test_asprintf): Test %08lx.
2874
2875 2010-04-20  Eric Blake  <eblake@redhat.com>
2876
2877         tests: be robust to ignored SIGPIPE
2878         * tests/test-select-in.sh: Consume all output.
2879         * tests/test-lseek.sh: Check correct exit status, while avoiding
2880         EPIPE.
2881
2882 2010-04-20  Simon Josefsson  <simon@josefsson.org>
2883             Bruno Haible  <bruno@clisp.org>
2884
2885         visibility: Don't use -fvisibility if it leads to a warning.
2886         * m4/visibility.m4 (gl_VISIBILITY): Check whether -Werror is usable. If
2887         yes, don't pretend that visibility works if it leads to a warning.
2888         Reported by Mike Gran <spk121@yahoo.com>.
2889
2890 2010-04-20  Andreas Gruenbacher  <agruen@suse.de>
2891
2892         * build-aux/bootstrap: Use "git -h" for testing for supported options
2893         instead of "git --help".  The short-form option only shows a summary,
2894         and doesn't layout the full man page.  Grep for the full option name
2895         in the summary, too.
2896
2897 2010-04-19  Bruno Haible  <bruno@clisp.org>
2898
2899         relocatable: Drop the need to define RELOCATABLE_STRIP in Makefile.am.
2900         * m4/relocatable.m4 (gl_RELOCATABLE_BODY): Set RELOCATABLE_STRIP.
2901         * doc/relocatable-maint.texi (Supporting Relocation): Remove the
2902         mention of RELOCATABLE_STRIP.
2903         Reported by Sylvain Beucler <beuc@beuc.net>.
2904
2905 2010-04-19  Bruno Haible  <bruno@clisp.org>
2906
2907         * lib/diffseq.h: Fix typo in comment.
2908         Reported by Eric Blake.
2909
2910 2010-04-19  Bruno Haible  <bruno@clisp.org>
2911
2912         ioctl: Move autoconf macro to a .m4 file.
2913         * m4/ioctl.m4: New file, extracted from modules/ioctl.
2914         * modules/ioctl (Files): Add it.
2915         (configure.ac): Simply invoke gl_FUNC_IOCTL.
2916         Reported by Ian Beckwith <ianb@erislabs.net>.
2917
2918 2010-04-18  Andreas Gruenbacher  <agruen@suse.de>
2919             Bruno Haible  <bruno@clisp.org>
2920
2921         diffseq: Accommodate use-case with abstract arrays.
2922         * lib/diffseq.h (struct context): Remove xvec, yvec fields if ELEMENT
2923         is not defined.
2924         (diag, compareseq): Remove local variables xv, yv if ELEMENT is not
2925         defined. Use local macro XREF_YREF_EQUAL instead of EQUAL.
2926
2927 2010-04-18  Bruno Haible  <bruno@clisp.org>
2928
2929         * doc/posix-headers/stdbool.texi: More precise wording.
2930
2931 2010-04-17  Jim Meyering  <meyering@redhat.com>
2932
2933         maint.mk: use gnu-style indentation in an embedded perl script
2934         * top/maint.mk (detect_empty_lines_at_EOF_): Clean up formatting.
2935         Rename variable: s/two/last_two_bytes/
2936
2937 2010-04-16  Eric Blake  <eblake@redhat.com>
2938
2939         test-stdbool: skip test that fails with Solaris CC
2940         * tests/test-stdbool.c (f): Skip test that causes compilation
2941         error under buggy C++ compiler.
2942         * lib/stdbool.in.h: Document the limitation.
2943         * doc/posix-headers/stdbool.texi (stdbool.h): Likewise.
2944
2945         setenv: allow compilation with C++
2946         * lib/setenv.c (__add_to_environ): Add a cast.  Also, drop use of
2947         register keyword.
2948
2949         stdint: allow test to pass with C++
2950         * tests/test-stdint.c: Define __STDC_CONSTANT_MACROS, for glibc.
2951
2952         getopt: allow compilation with C++
2953         * lib/getopt_int.h (__ordering): Hoist enum declaration outside
2954         struct.
2955         * lib/getopt.c (_getopt_internal_r): Use correct type.
2956         Reported by Dagobert Michelson, via Joel E. Denny.
2957
2958 2010-04-16  Bruno Haible  <bruno@clisp.org>
2959
2960         Override netdb.h always.
2961         * modules/netdb (Makefile.am): Augment BUILT_SOURCES always.
2962         * m4/netdb_h.m4 (gl_HEADER_NETDB): Don't set NETDB_H.
2963         Reported by Ludovic Courtès <ludo@gnu.org>.
2964
2965 2010-04-15  Bruno Haible  <bruno@clisp.org>
2966
2967         openpty: Fix mistake from 2010-03-21.
2968         * m4/pty.m4 (gl_FUNC_OPENPTY): Define HAVE_OPENPTY when openpty exists.
2969         Reported by Simon Josefsson.
2970
2971 2010-04-15  Eric Blake  <eblake@redhat.com>
2972
2973         test-forkpty: fix expected signature
2974         * tests/test-forkpty.c (SIGNATURE_CHECK): Add appropriate const.
2975         Reported by Simon Josefsson.
2976
2977 2010-04-15  Jim Meyering  <meyering@redhat.com>
2978
2979         maint.mk: texinfo_suffix_re_: correct the default regexp
2980         * top/maint.mk (texinfo_suffix_re_): Fix default regexp.
2981
2982         * top/maint.mk (sc_texinfo_acronym): Improve filename regexp, and
2983         make it configurable via texinfo_suffix_re_.
2984
2985 2010-04-14  Eric Blake  <eblake@redhat.com>
2986
2987         strtok_r: relax license to LGPLv2+
2988         * modules/strtok_r (License): Relax license.
2989         Reported by Matthias Bolte.
2990
2991 2010-04-14  Simon Josefsson  <simon@josefsson.org>
2992
2993         * lib/gc-libgcrypt.c (gc_init): Use MIN_GCRYPT_VERSION set to
2994         version 1.4.4 by default instead of requiring the libgcrypt
2995         version used during build.  This makes it possible to use the
2996         application with older but still binary compatible libgcrypt
2997         versions.
2998
2999 2010-04-13  Eric Blake  <eblake@redhat.com>
3000
3001         getopt-gnu: match recent glibc fixes and posix ruling
3002         * tests/test-getopt.h (test_getopt): Strengthen tests of leading
3003         '+' handling, when requesting extensions.
3004         * tests/test-getopt_long.h (test_getopt_long): Strengthen test of
3005         'W;' handling.
3006         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Detect glibc 2.11 bug.
3007         * doc/posix-functions/getopt.texi (getopt): Document this.
3008         * doc/glibc-functions/getopt_long.texi (getopt_long): Likewise.
3009         * doc/glibc-functions/getopt_long_only.texi (getopt_long_only):
3010         Likewise.
3011
3012         getopt: merge bug fixes from glibc
3013         * lib/getopt.c (_getopt_internal_r): Use correct message for 'W;'
3014         diagnostics.  Honor '+:' correctly.  Reject ';'.
3015
3016         getopt-posix: detect MacOS bug
3017         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Reject MacOS botch of
3018         optind when missing a required argument.
3019         * doc/posix-functions/getopt.texi (getopt): Document the bug.
3020         * doc/glibc-functions/getopt_long.texi (getopt_long): Likewise.
3021         * doc/glibc-functions/getopt_long_only.texi (getopt_long_only):
3022         Likewise.
3023
3024         getopt-posix: avoid spurious failure on Solaris
3025         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Check for getopt_clip as
3026         an indicator that setting optind=1 is sufficient for reset.
3027
3028         getopt-posix: avoid spurious failure on FreeBSD
3029         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Check for optreset even
3030         in POSIX mode, since the m4 test uses it.
3031
3032         gnulib-tool: silence warning on BSD sh
3033         * gnulib-tool: Avoid leaking warning about unknown 'declare'.
3034
3035 2010-04-13  Jim Meyering  <meyering@redhat.com>
3036
3037         doc: users.txt: GNU patch now uses gnulib
3038         * users.txt: Add patch.
3039
3040 2010-04-12  Jim Meyering  <meyering@redhat.com>
3041
3042         maint.mk: generate more concise timing data for syntax-check rules
3043         * top/maint.mk ($(sc_z_rules_)): Remove the ":", "sc_" prefix and
3044         " done" from each line that reports a syntax-check test duration.
3045
3046 2010-04-12  Andreas Gruenbacher  <agruen@suse.de>
3047
3048         git-version-gen: use "git update-index..." rather than "git status"
3049         * build-aux/git-version-gen: Use git update-index --refresh, not
3050         "git status".  With some versions of git, "git status" would fail
3051         to update the index and result in an unwarranted "-dirty" suffix.
3052
3053 2010-04-11  Jim Meyering  <meyering@redhat.com>
3054
3055         openat: correct formatting (no semantic change)
3056         * m4/openat.m4 (gl_FUNC_FCHOWNAT): Correct formatting in AC_DEFINE.
3057         Suggested by Bruno Haible.
3058
3059 2010-04-11  Bruno Haible  <bruno@clisp.org>
3060
3061         Stricter declaration checking in testdirs.
3062         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
3063         If for_tests is true, augment AM_CPPFLAGS to define
3064         GNULIB_STRICT_CHECKING.
3065         * build-aux/warn-on-use.h (_GL_WARN_ON_USE, _GL_WARN_ON_USE_CXX): When
3066         GNULIB_STRICT_CHECKING is defined, verify that the function is
3067         declared.
3068
3069 2010-04-11  Paolo Bonzini  <bonzini@gnu.org>
3070             Bruno Haible  <bruno@clisp.org>
3071
3072         libunistring: Improve configure output.
3073         * m4/libunistring.m4 (gl_LIBUNISTRING): Check for libiconv first.
3074         Don't say "consider installing GNU libunistring" when checking again
3075         with libiconv.
3076
3077 2010-04-11  Bruno Haible  <bruno@clisp.org>
3078
3079         libunistring: Correct value of $LTLIBUNISTRING.
3080         * m4/libunistring.m4 (gl_LIBUNISTRING): When it depends on libiconv,
3081         correct the value of $LTLIBUNISTRING.
3082
3083 2010-04-11  Bruno Haible  <bruno@clisp.org>
3084
3085         havelib: Add static libraries to LIBS in the right order.
3086         * m4/lib-link.m4 (AC_LIB_HAVE_LINKFLAGS): When $LIB[]NAME contains no
3087         -l options, prepend it to $LIBS, instead of appending it to $LIBS.
3088
3089 2010-04-11  Bruno Haible  <bruno@clisp.org>
3090
3091         libunistring: Detect libunistring also when it depends on libiconv.
3092         * m4/libunistring.m4 (gl_LIBUNISTRING): Unset the cached result before
3093         the second AC_LIB_HAVE_LINKFLAGS invocation.
3094
3095 2010-04-11  James Youngman  <jay@gnu.org>
3096
3097         close-stream: declare local scalars to be "const"
3098         * lib/close-stream.c (close_stream): Make boolean variables const
3099         to document the fact that we set but do not change them.
3100
3101 2010-04-11  Bruno Haible  <bruno@clisp.org>
3102
3103         * m4/libunistring.m4 (gl_LIBUNISTRING): Fix typo in comment.
3104
3105 2010-04-11  Jim Meyering  <meyering@redhat.com>
3106
3107         maint.mk: don't include dist-check.mk
3108         * top/maint.mk: Remove bogus include directive.
3109
3110         maint.mk: improve empty-line-at-EOF check
3111         * top/maint.mk (sc_prohibit_empty_lines_at_EOF): Use Perl-based
3112         solution, rather than tail+Perl-based one.  The latter would read
3113         a few kilobytes from the end of each file, and did not handle empty
3114         files properly.
3115
3116         maint.mk: print the elapsed time for each syntax-check rule
3117         * top/maint.mk (sc_m_rules_): Save start time in a file.
3118         (sc_z_rules_): New rules: remove temp file and print elapsed time.
3119         (local-check): Interpose the .z rules
3120
3121 2010-04-11  Jim Meyering  <meyering@redhat.com>
3122
3123         maint.mk: detect_empty_lines_at_EOF_: avoid FP for an empty file
3124         * top/maint.mk (detect_empty_lines_at_EOF_): Don't confuse an
3125         empty file with one that ends in an empty line.
3126
3127 2010-04-10  Bruno Haible  <bruno@clisp.org>
3128
3129         mkdir: Make it work on mingw64.
3130         * lib/sys_stat.in.h: Include <direct.h> together with <io.h>.
3131         * lib/mkdir.c: Update comment.
3132         Reported by Roman Donchenko (Роман Ð”онченко) <dxdragon@yandex.ru>.
3133
3134 2010-04-10  Bruno Haible  <bruno@clisp.org>
3135
3136         Don't override improved macro from newer autoconf.
3137         * m4/gnulib-common.m4 (AC_C_RESTRICT): Don't define for
3138         autoconf >= 2.62.
3139         Reported by Joel E. Denny <jdenny@clemson.edu>.
3140
3141 2010-04-10  Jim Meyering  <meyering@redhat.com>
3142
3143         maint.mk: new syntax-check rule: prohibit empty lines at end of file
3144         * top/maint.mk (sc_prohibit_empty_lines_at_EOF): New rule.
3145
3146         maint.mk: correct a diagnostic
3147         * top/maint.mk (sc_prohibit_HAVE_MBRTOWC): Fix obsolete use of $re
3148         in diagnostic; now use $prohibit.
3149
3150 2010-04-10  Bruno Haible  <address@hidden>
3151
3152         fchownat: Fix a C++ test error on Solaris 8.
3153         * m4/openat.m4 (gl_FUNC_FCHOWNAT): Don't set REPLACE_FCHOWNAT to 1 if
3154         the function does not exist.
3155
3156 2010-04-10  Bruno Haible  <bruno@clisp.org>
3157
3158         vasnprintf: Add more tests.
3159         * tests/test-vasnprintf-posix.c: Include <errno.h>.
3160         (test_function): Test converting an invalid wide string.
3161
3162         vasnprintf: Correct handling of unconvertible wide string arguments.
3163         * lib/vasnprintf.c (MAX_ROOM_NEEDED): New function, extracted from
3164         VASNPRINTF.
3165         (VASNPRINTF): Use it. After snprintf failed, allocate more memory only
3166         if HAVE_SNPRINTF_RETVAL_C99 is false and the allocated memory is
3167         smaller than the expected maximum need for the directive. Set errno to
3168         EILSEQ, not EINVAL, when the directive is 'c' or 's'.
3169         (local_strnlen, local_wcslen, local_wcsnlen): Update conditions.
3170         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF): Require AC_C_INLINE and
3171         gl_SNPRINTF_RETVAL_C99. Define HAVE_SNPRINTF_RETVAL_C99.
3172         * modules/vasnprintf (Files): Add m4/printf.m4.
3173         Reported by Jarno Rajahalme <jarno.rajahalme@nsn.com>.
3174
3175 2010-04-10  Bruno Haible  <bruno@clisp.org>
3176
3177         vasnprintf: Fix crash in %ls directive.
3178         * lib/vasnprintf.c (VASNPRINTF): Don't abort when a unconvertible wide
3179         string is passed as argument to %ls, with no precision and no width.
3180         Reported by Jarno Rajahalme <jarno.rajahalme@nsn.com>.
3181
3182 2010-04-10  Bruno Haible  <bruno@clisp.org>
3183
3184         vasnprintf: Fix multiple test failures on mingw.
3185         * lib/vasnprintf.c (SNPRINTF) [mingw]: Define to snprintf, not
3186         _snprintf, or snwprintf, not _snwprintf.
3187
3188 2010-04-10  Bruno Haible  <bruno@clisp.org>
3189
3190         write: Fix a C++ test error on mingw.
3191         * lib/unistd.in.h (write): Use _GL_CXXALIAS_SYS_CAST.
3192
3193 2010-04-10  Bruno Haible  <bruno@clisp.org>
3194
3195         vasnprintf test: Reduce code duplication.
3196         * tests/test-vasnprintf.c (test_function): New function, extracted from
3197         test_vasnprintf.
3198         (test_vasnprintf, test_asnprintf): Invoke it.
3199
3200 2010-04-10  Bruno Haible  <bruno@clisp.org>
3201
3202         strnlen: Fix warning in C++ mode on MacOS X.
3203         * lib/string.in.h (strnlen): Use the modern idiom.
3204         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Set REPLACE_STRNLEN to 1, instead of
3205         defining strnlen as a macro already in <config.h>.
3206         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
3207         REPLACE_STRNLEN.
3208         * modules/string (Makefile.am): Substitute REPLACE_STRNLEN.
3209         Reported by Jarno Rajahalme <jarno.rajahalme@nsn.com>.
3210
3211 2010-04-08  James Youngman  <jay@gnu.org>
3212
3213         * doc/manywarnings.texi (manywarnings): Add missing parenthesis in
3214         the example.
3215
3216 2010-04-09  Jim Meyering  <meyering@redhat.com>
3217
3218         maint.mk: print better diagnostic when there is no $(_hv_file)
3219         * top/maint.mk (sc_cross_check_PATH_usage_in_tests): Skip test and
3220         announce that when $(_hv_file) (aka help-version) does not exist.
3221
3222         init.sh: run tr in the "C" locale to avoid multibyte interpretation
3223         * tests/init.sh (rand_bytes_): Run tr in the "C" locale so it does
3224         not try to interpret its random input bytes.  Jarno Rajahalme reported
3225         that ./test-xalloc-die.sh would fail with "tr: Illegal byte sequence".
3226         on Darwin 10.3.0 with LC_CTYPE=UTF-8.
3227         (mktempd_): Likewise, just in case.
3228
3229         ftruncate: add two years to projected module removal date: 2012
3230         * m4/ftruncate.m4: Adjust comments.
3231
3232         ftruncate: mark module as obsolete; even MinGW provides it, now
3233         * modules/ftruncate (Status): Obsolete.
3234         (Notice): Say that.
3235         * doc/posix-functions/ftruncate.texi: Don't say MinGW lacks it.
3236         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/9203
3237
3238 2010-04-08  Bruno Haible  <bruno@clisp.org>
3239
3240         Fix side effects from tests-related modules.
3241         * modules/dprintf-posix (Comment): New section.
3242         * modules/fprintf-posix (Comment): Likewise.
3243         * modules/obstack-printf-posix (Comment): Likewise.
3244         * modules/printf-posix (Comment): Likewise.
3245         * modules/snprintf-posix (Comment): Likewise.
3246         * modules/sprintf-posix (Comment): Likewise.
3247         * modules/vasnprintf-posix (Comment): Likewise.
3248         * modules/vasprintf-posix (Comment): Likewise.
3249         * modules/vdprintf-posix (Comment): Likewise.
3250         * modules/vfprintf-posix (Comment): Likewise.
3251         * modules/vprintf-posix (Comment): Likewise.
3252         * modules/vsnprintf-posix (Comment): Likewise.
3253         * modules/vsprintf-posix (Comment): Likewise.
3254         * modules/xprintf-posix (Comment): Likewise.
3255         * modules/xvasprintf-posix (Comment): Likewise.
3256         * modules/ceilf-tests (Depends-on): Remove fprintf-posix.
3257         * modules/floorf-tests (Depends-on): Likewise.
3258         * modules/round-tests (Depends-on): Likewise.
3259         * modules/roundf-tests (Depends-on): Likewise.
3260         * modules/trunc-tests (Depends-on): Likewise.
3261         * modules/truncf-tests (Depends-on): Likewise.
3262         * tests/test-ceilf2.c (check): Don't invoke fprintf if the
3263         'fprintf-posix' module is not present.
3264         * tests/test-floorf2.c (check): Likewise.
3265         * tests/test-trunc2.c (check): Likewise.
3266         * tests/test-truncf2.c (check): Likewise.
3267         * tests/test-round2.c (equal): Likewise.
3268         Reported by Jarno Rajahalme <jarno.rajahalme@nsn.com>.
3269
3270 2010-04-07  Karl Berry  <karl@gnu.org>
3271
3272         * config/srclist.txt,
3273         * config/srclistvars.sh,
3274         * config/srclist-update: doc fixes.
3275
3276 2010-04-07  Jim Meyering  <meyering@redhat.com>
3277
3278         maint.mk: add a PATH crosschecking syntax-check rule
3279         * top/maint.mk (sc_cross_check_PATH_usage_in_tests): New rule.
3280         Useful if you use a test like the one in help-version (coreutils,
3281         diffutils, grep, gzip) that ensures $(VERSION) matches what is
3282         printed by prog --version.
3283
3284 2010-04-06  Bruno Haible  <bruno@clisp.org>
3285
3286         Fix link error on mingw.
3287         * modules/unistd-c++-tests (test_unistd_c___LDADD): Add LIBSOCKET.
3288         * modules/fcntl-h-c++-tests (test_fcntl_h_c___LDADD): Likewise.
3289
3290 2010-04-06  Bruno Haible  <bruno@clisp.org>
3291
3292         Assume rmdir exists.
3293         * lib/rmdir.c (rpl_rmdir): Remove code that invokes the rmdir program.
3294
3295 2010-04-06  Giuseppe Scrivano <gscrivano@gnu.org>
3296
3297         doc: update users.txt
3298         * users.txt: Add gcal.
3299
3300 2010-04-06  Jim Meyering  <meyering@redhat.com>
3301
3302         init.sh: simply unset TMPDIR rather than risking env -i
3303         * tests/init.sh (mktempd_): Using env -i is rather harsh, and
3304         although it probably works fine on all Unix-based systems, some
3305         systems (Cygwin?) cannot tolerate a totally cleared environment.
3306         Suggestion from Eric Blake.
3307
3308 2010-04-06  Jim Meyering  <meyering@redhat.com>
3309
3310         init.sh: portability fix: use env's POSIX-specified -i option not -u
3311         * tests/init.sh (mktempd_): Use env -i and set PATH explicitly rather
3312         than unportable env -u.  Solaris 5.11's env lacks support for -u.
3313
3314 2010-04-05  Bruno Haible  <bruno@clisp.org>
3315
3316         btowc: Work around Cygwin 1.7.2 bug.
3317         * m4/btowc.m4 (gl_FUNC_BTOWC): Set REPLACE_BTOWC to 1 if the function
3318         does not map NUL to 0.
3319         * doc/posix-functions/btowc.texi: Mention the Cygwin bug.
3320
3321 2010-04-05  Bruno Haible  <bruno@clisp.org>
3322
3323         Make the multithread modules work on Cygwin 1.7.2.
3324         * m4/threadlib.m4 (gl_THREADLIB_BODY): Improve the test whether
3325         imported symbols can be declared weak, so that it returns "no" on
3326         Cygwin 1.7.2.
3327
3328 2010-04-05  Bruno Haible  <bruno@clisp.org>
3329
3330         Use the module 'strncat'.
3331         * modules/unistr/u8-strncat (Depends-on): Add strncat.
3332
3333         Tests for module 'strncat'.
3334         * modules/strncat-tests: New file.
3335         * tests/test-strncat.c: New file.
3336
3337         New module 'strncat'.
3338         * lib/string.in.h (strncat): New declaration.
3339         * lib/strncat.c: New file, based on lib/unistr/u-strncat.h.
3340         * m4/strncat.m4: New file, based on m4/memchr.m4.
3341         * modules/strncat: New file.
3342         * m4/string_h.m4 (gl_HEADER_STRING_H_BODY): Also check whether strncat
3343         is declared.
3344         (gl_HEADER_STRING_H_DEFAULTS): Initialize GNULIB_STRNCAT,
3345         REPLACE_STRNCAT.
3346         * modules/string (Makefile.am): Substitute GNULIB_STRNCAT,
3347         REPLACE_STRNCAT.
3348         * doc/posix-functions/strncat.texi: Mention the Solaris bug and the new
3349         module.
3350         * tests/test-string-c++.cc: Check signature of strncat.
3351
3352 2010-04-05  Jim Meyering  <meyering@redhat.com>
3353
3354         xstrtoumax-tests: convert to use init.sh
3355         * modules/xstrtoumax-tests (Files): Add tests/init.sh.
3356         * tests/test-xstrtoumax.sh: Invoke "$srcdir/init.sh" and path_prepend_.
3357         Use Exit, not exit.
3358         Remove uses of $EXEEXT and "./" to run a program in the current dir.
3359
3360         xstrtoimax-tests: convert to use init.sh
3361         * modules/xstrtoimax-tests (Files): Add tests/init.sh.
3362         * tests/test-xstrtoimax.sh: Invoke "$srcdir/init.sh" and path_prepend_.
3363         Use Exit, not exit.
3364         Remove uses of $EXEEXT and "./" to run a program in the current dir.
3365
3366 2010-04-05  Bruno Haible  <bruno@clisp.org>
3367
3368         sys_socket: Avoid #define replacements in C++ mode.
3369         * lib/sys_socket.in.h (close, gethostname, select): In C++, attach a
3370         warning to the function if possible, rather than #defining the symbol
3371         to a dysfunctional alias.
3372
3373 2010-04-05  Bruno Haible  <bruno@clisp.org>
3374
3375         fseeko: Fix C++ test error on mingw.
3376         * m4/fseeko.m4 (gl_HAVE_FSEEKO): New macro, extracted from
3377         gl_FUNC_FSEEKO.
3378         (gl_REPLACE_FSEEKO): Also set REPLACE_FSEEKO if appropriate.
3379         (gl_FUNC_FSEEKO): Require gl_HAVE_FSEEKO. Update.
3380         * m4/fflush.m4 (gl_REPLACE_FFLUSH): Don't fiddle with internals of the
3381         fseeko module. Instead, invoke gl_REPLACE_FSEEKO.
3382
3383 2010-04-05  Bruno Haible  <bruno@clisp.org>
3384
3385         duplocale: Improve test output.
3386         * tests/test-duplocale.c (main): Print reason for skipped test.
3387
3388 2010-04-05  Bruno Haible  <bruno@clisp.org>
3389
3390         Assume rmdir exists.
3391         * m4/rmdir.m4 (gl_FUNC_RMDIR): Remove test whether rmdir exists.
3392         * doc/posix-functions/rmdir.texi: Remove mention of "old platforms".
3393
3394 2010-04-05  Bruno Haible  <bruno@clisp.org>
3395
3396         Fix link error on Solaris 8 with cc.
3397         * modules/pty-c++-tests (test_pty_c___LDADD): Add LIBINTL.
3398
3399 2010-04-05  Bruno Haible  <bruno@clisp.org>
3400
3401         frexpl: Fix a C++ test error on Solaris 8 and Cygwin.
3402         * lib/math.in.h (frexpl): Fix condition on _GL_CXXALIASWARN invocation.
3403
3404 2010-04-05  Bruno Haible  <bruno@clisp.org>
3405
3406         vasprintf: Update documentation.
3407         * doc/glibc-functions/asprintf.texi: Mention the 'vasprintf' module.
3408
3409 2010-04-05  Bruno Haible  <bruno@clisp.org>
3410
3411         ptsname: Improve test.
3412         * tests/test-ptsname.c (main): Also try the various master names of BSD
3413         systems.
3414
3415 2010-04-05  Bruno Haible  <bruno@clisp.org>
3416
3417         memchr: Avoid a possible C++ test error.
3418         * lib/string.in.h (memchr): Provide declaration if function is missing.
3419         * m4/memchr.m4 (gl_FUNC_MEMCHR): If the function is missing, set
3420         HAVE_MEMCHR to 0, not REPLACE_MEMCHR to 1.
3421         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize HAVE_MEMCHR.
3422         * modules/string (Makefile.am): Substitute HAVE_MEMCHR.
3423
3424 2010-04-05  Bruno Haible  <bruno@clisp.org>
3425
3426         strtok_r: Improve idiom.
3427         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Invoke gl_PREREQ_STRDUP only when
3428         AC_LIBOBJ is used.
3429
3430 2010-04-05  Bruno Haible  <bruno@clisp.org>
3431
3432         strdup: Improve idiom.
3433         * m4/strdup.m4 (gl_FUNC_STRDUP): Invoke gl_PREREQ_STRDUP only when
3434         AC_LIBOBJ is used.
3435         (gl_FUNC_STRDUP_POSIX): When strdup is missing and malloc is not POSIX
3436         compliant, don't set REPLACE_STRDUP to 1. Invoke gl_PREREQ_STRDUP only
3437         when AC_LIBOBJ is used.
3438
3439 2010-04-05  Bruno Haible  <bruno@clisp.org>
3440
3441         mbsinit, mbrtowc, wcrtomb: Improve idioms.
3442         * m4/mbsinit.m4 (gl_FUNC_MBSINIT): When the function does not exist,
3443         don't set REPLACE_MBSINIT to 1.
3444         * m4/mbrtowc.m4 (gl_FUNC_MBRTOWC): When the function does not exist,
3445         don't set REPLACE_MBRTOWC to 1.
3446         * m4/mbsrtowcs.m4 (gl_FUNC_MBSRTOWCS): When the function does not
3447         exist, don't set REPLACE_MBSRTOWCS to 1.
3448         * m4/mbsnrtowcs.m4 (gl_FUNC_MBSNRTOWCS): When the function does not
3449         exist, don't set REPLACE_MBSNRTOWCS to 1.
3450         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): When the function does not exist,
3451         don't set REPLACE_WCRTOMB to 1.
3452         * m4/wcsrtombs.m4 (gl_FUNC_WCSRTOMBS): When the function does not
3453         exist, don't set REPLACE_WCSRTOMBS to 1.
3454         * m4/wcsnrtombs.m4 (gl_FUNC_WCSNRTOMBS): When the function does not
3455         exist, don't set REPLACE_WCSNRTOMBS to 1.
3456
3457 2010-04-05  Bruno Haible  <bruno@clisp.org>
3458
3459         ldexpl: Improve idiom.
3460         * m4/ldexpl.m4 (gl_FUNC_LDEXPL): When the function is not declared,
3461         make sure to set HAVE_DECL_LDEXPL to 0.
3462
3463 2010-04-05  Jim Meyering  <meyering@redhat.com>
3464
3465         xstrtol-tests: convert to use init.sh
3466         * modules/xstrtol-tests (Files): Add tests/init.sh.
3467         * tests/test-xstrtol.sh: Invoke "$srcdir/init.sh" and path_prepend_.
3468         Use Exit, not exit.
3469         Remove uses of $EXEEXT and "./" to run a program in the current dir.
3470
3471         atexit-tests: convert to use init.sh
3472         * modules/atexit-tests (Files): Add tests/init.sh.
3473         * tests/test-atexit.sh: Invoke "$srcdir/init.sh" and path_prepend_.
3474         Use Exit, not exit.
3475         Remove uses of $EXEEXT and "./" to run a program in the current dir.
3476
3477         init.sh: fix typo
3478         * tests/init.sh: Restore omitted ":" before stderr_fileno_ initialization.
3479
3480         init.sh: make it easier for a test script to write to the tty, ...
3481         when using automake's parallel-tests mode.
3482         * tests/init.sh (stderr_fileno_): Define overridable variable.
3483         (warn_): New function, to use it.
3484         (fail_, skip_, framework_failure_): Use warn_.
3485
3486 2010-04-04  Bruno Haible  <bruno@clisp.org>
3487
3488         btowc: Avoid warning.
3489         * lib/btowc.c: Include <stdlib.h>.
3490         Reported by Hauke Fath <hauke@espresso.rhein-neckar.de>.
3491
3492 2010-04-04  Hauke Fath  <hauke@espresso.rhein-neckar.de>  (tiny change)
3493             Bruno Haible  <bruno@clisp.org>
3494
3495         wchar: Port to NetBSD 1.5.
3496         * lib/wchar.in.h (WEOF): Provide fallback also when wint_t exists.
3497         * lib/wctype.in.h (WEOF): Likewise.
3498
3499 2010-04-04  Hauke Fath  <hauke@espresso.rhein-neckar.de>  (tiny change)
3500             Bruno Haible  <bruno@clisp.org>
3501
3502         Port extended stdio to NetBSD 1.5.
3503         * lib/stdio-impl.h [NetBSD]: Include <sys/param.h>.
3504         (struct __sfileext, fp_ub): Define the "old way" for NetBSD 1.5Z and
3505         older.
3506
3507 2010-04-04  Bruno Haible  <bruno@clisp.org>
3508
3509         string: Remove unused substitution.
3510         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Don't initialize
3511         HAVE_DECL_STRERROR.
3512         * modules/string (Makefile.am): Don't substitute HAVE_DECL_STRERROR.
3513
3514 2010-04-04  Bruno Haible  <bruno@clisp.org>
3515
3516         strtod: Avoid a possible C++ test error.
3517         * m4/strtod.m4 (gl_FUNC_STRTOD): When setting HAVE_STRTOD to 0, don't
3518         set REPLACE_STRTOD.
3519
3520 2010-04-04  Bruno Haible  <bruno@clisp.org>
3521
3522         strerror: Update documentation.
3523         * doc/posix-functions/strerror.texi: Remove mention of old platforms.
3524
3525 2010-04-04  Bruno Haible  <bruno@clisp.org>
3526
3527         stdio: Fix some C++ test errors on Solaris 8 with GCC.
3528         * lib/stdio.in.h (vdprintf, vfprintf, vprintf, vsprintf): Use
3529         _GL_CXXALIAS_SYS_CAST.
3530
3531 2010-04-04  Bruno Haible  <bruno@clisp.org>
3532
3533         frexpl: Fix a C++ test error on Solaris 8 and Cygwin.
3534         * m4/frexpl.m4 (gl_FUNC_FREXPL, gl_FUNC_FREXPL_NO_LIBM): When the
3535         function is not declared, set HAVE_DECL_FREXPL to 0, instead of setting
3536         REPLACE_FREXPL to 1.
3537         * doc/posix-functions/frexpl.texi: Update documentation.
3538
3539 2010-04-04  Bruno Haible  <bruno@clisp.org>
3540
3541         math: Fix some C++ test errors on Solaris 8 and Cygwin.
3542         * lib/math.in.h (cosl, logl, sinl): Use simpler idiom.
3543
3544 2010-04-04  Bruno Haible  <bruno@clisp.org>
3545
3546         Implement nanosleep for native Windows.
3547         * lib/nanosleep.c (nanosleep): New implementation for native Windows.
3548
3549 2010-04-04  Bruno Haible  <bruno@clisp.org>
3550
3551         math: Fix some C++ test errors on Solaris 8.
3552         * lib/math.in.h (truncf, trunc): Use simpler idiom.
3553
3554 2010-04-04  Bruno Haible  <bruno@clisp.org>
3555
3556         math: Fix some C++ test errors on Cygwin.
3557         * lib/math.in.h (ceilf, ceill, floorf, floorl, roundf, round, roundl,
3558         truncl): Provide declaration if the system does not have it.
3559         * m4/ceilf.m4 (gl_FUNC_CEILF): If the function is not declared, set
3560         HAVE_DECL_CEILF to 0, not REPLACE_CEILF to 1.
3561         * m4/ceill.m4 (gl_FUNC_CEILL): If the function is not declared, set
3562         HAVE_DECL_CEILL to 0, not REPLACE_CEILL to 1.
3563         * m4/floorf.m4 (gl_FUNC_FLOORF): If the function is not declared, set
3564         HAVE_DECL_FLOORF to 0, not REPLACE_FLOORF to 1.
3565         * m4/floorl.m4 (gl_FUNC_FLOORL): If the function is not declared, set
3566         HAVE_DECL_FLOORL to 0, not REPLACE_FLOORL to 1.
3567         * m4/round.m4 (gl_FUNC_ROUND): If the function is not declared, set
3568         HAVE_DECL_ROUND to 0, not REPLACE_ROUND to 1.
3569         * m4/roundf.m4 (gl_FUNC_ROUNDF): If the function is not declared, set
3570         HAVE_DECL_ROUNDF to 0, not REPLACE_ROUNDF to 1.
3571         * m4/roundl.m4 (gl_FUNC_ROUNDL): If the function is not declared, set
3572         HAVE_DECL_ROUNDL to 0, not REPLACE_ROUNDL to 1.
3573         * m4/truncl.m4 (gl_FUNC_TRUNCL): If the function is not declared, set
3574         HAVE_DECL_TRUNCL to 0, not REPLACE_TRUNCL to 1.
3575         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize HAVE_DECL_CEILF,
3576         HAVE_DECL_CEILL, HAVE_DECL_FLOORF, HAVE_DECL_FLOORL, HAVE_DECL_ROUND,
3577         HAVE_DECL_ROUNDF, HAVE_DECL_ROUNDL, HAVE_DECL_TRUNCL.
3578         * modules/math (Makefile.am): Substitute HAVE_DECL_CEILF,
3579         HAVE_DECL_CEILL, HAVE_DECL_FLOORF, HAVE_DECL_FLOORL, HAVE_DECL_ROUND,
3580         HAVE_DECL_ROUNDF, HAVE_DECL_ROUNDL, HAVE_DECL_TRUNCL.
3581
3582 2010-04-04  Bruno Haible  <bruno@clisp.org>
3583
3584         * m4/ceilf.m4 (gl_FUNC_CEILF): Remove redundant AC_SUBST invocation.
3585         * m4/ceill.m4 (gl_FUNC_CEILL): Likewise.
3586         * m4/floorf.m4 (gl_FUNC_FLOORF): Likewise.
3587         * m4/floorl.m4 (gl_FUNC_FLOORL): Likewise.
3588         * m4/isfinite.m4 (gl_ISFINITE): Likewise.
3589         * m4/isinf.m4 (gl_ISINF): Likewise.
3590         * m4/truncl.m4 (gl_FUNC_TRUNCL): Likewise.
3591
3592 2010-04-04  Bruno Haible  <bruno@clisp.org>
3593
3594         * m4/trunc.m4 (gl_FUNC_TRUNC): Remove redundant AC_SUBST invocation.
3595         * m4/truncf.m4 (gl_FUNC_TRUNCF): Likewise.
3596
3597 2010-04-04  Bruno Haible  <bruno@clisp.org>
3598
3599         * m4/tmpfile.m4 (gl_FUNC_TMPFILE): Renamed from gl_TMPFILE.
3600         * modules/tmpfile (configure.ac): Update.
3601
3602         tmpfile: Fix C++ test error on mingw.
3603         * lib/stdio.in.h (tmpfile): New declaration.
3604         * m4/tmpfile.m4 (gl_TMPFILE): Require gl_STDIO_H_DEFAULTS. Set
3605         REPLACE_TMPFILE instead of defining tmpfile as a macro in config.h.
3606         * modules/tmpfile (Depends-on): Add stdio.
3607         (configure.ac): Invoke gl_STDIO_MODULE_INDICATOR.
3608         * m4/stdio_h.m4 (gl_STDIO_H): Also check whether tmpfile is declared.
3609         (gl_STDIO_H_DEFAULTS): Initialize GNULIB_TMPFILE and REPLACE_TMPFILE.
3610         * modules/stdio (Makefile.am): Substitute GNULIB_TMPFILE and
3611         REPLACE_TMPFILE.
3612         * tests/test-stdio-c++.cc (tmpfile): Verify signature.
3613
3614 2010-04-04  Bruno Haible  <bruno@clisp.org>
3615
3616         ioctl: Fix C++ test error on mingw.
3617         * lib/ioctl.c (ioctl): Renamed from rpl_ioctl.
3618         * lib/sys_ioctl.in.h (ioctl): When SYS_IOCTL_H_HAVE_WINSOCK2_H is 1,
3619         use _GL_FUNCDECL_SYS, not _GL_FUNCDECL_RPL.
3620
3621 2010-04-03  Bruno Haible  <bruno@clisp.org>
3622
3623         wcwidth: Fix C++ test error on mingw.
3624         * lib/wcwidth.c (wcwidth): Renamed from rpl_wcwidth.
3625         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): If the wcwidth function does not
3626         exist, don't set REPLACE_WCWIDTH. Instead, rely on HAVE_DECL_WCWIDTH.
3627
3628 2010-04-03  Bruno Haible  <bruno@clisp.org>
3629
3630         nanosleep: Fix C++ test error on mingw.
3631         * lib/nanosleep.c (nanosleep): Renamed from rpl_nanosleep.
3632         * lib/time.in.h (nanosleep): Use modern idiom.
3633         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): When the system does not have a
3634         nanosleep function, set HAVE_NANOSLEEP to 0, instead of setting
3635         REPLACE_NANOSLEEP to 1.
3636         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize HAVE_NANOSLEEP.
3637         * modules/time (Makefile.am): Substitute HAVE_NANOSLEEP.
3638
3639 2010-04-03  Bruno Haible  <bruno@clisp.org>
3640
3641         strptime: Fix C++ test error on mingw.
3642         * lib/time.in.h (strptime): Use HAVE_STRPTIME, not REPLACE_STRPTIME.
3643         * m4/strptime.m4 (gl_FUNC_STRPTIME): Set HAVE_STRPTIME, not
3644         REPLACE_STRPTIME. Invoke gl_PREREQ_STRPTIME.
3645         (gl_PREREQ_STRPTIME): New macro, extracted from gl_FUNC_STRPTIME.
3646         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize HAVE_STRPTIME,
3647         not REPLACE_STRPTIME.
3648         * modules/time (Makefile.am): Substitute HAVE_STRPTIME, not
3649         REPLACE_STRPTIME.
3650
3651 2010-04-03  Bruno Haible  <bruno@clisp.org>
3652
3653         timegm: Fix C++ test error on mingw.
3654         * lib/time.in.h (timegm): Use modern idiom.
3655         * m4/timegm.m4 (gl_FUNC_TIMEGM): When timegm does not exist, set
3656         HAVE_TIMEGM to 0, not REPLACE_TIMEGM to 1.
3657         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize HAVE_TIMEGM.
3658         * modules/time (Makefile.am): Substitute HAVE_TIMEGM.
3659
3660 2010-04-03  Bruno Haible  <bruno@clisp.org>
3661
3662         timegm: Assume declaration if function exists.
3663         * m4/timegm.m4 (gl_FUNC_TIMEGM): Assume timegm is declared if and only
3664         if it exists. Don't clobber ac_cv_func_timegm.
3665
3666 2010-04-03  Bruno Haible  <bruno@clisp.org>
3667
3668         time_r: Fix C++ test error on mingw.
3669         * lib/time.in.h (localtime_r, gmtime_r): Use modern idiom.
3670         * m4/time_r.m4 (gl_TIME_R): When localtime_r does not exist, set
3671         HAVE_LOCALTIME_R to 0, not REPLACE_LOCALTIME_R to 1.
3672         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize HAVE_LOCALTIME_R.
3673         * modules/time (Makefile.am): Substitute HAVE_LOCALTIME_R.
3674
3675 2010-04-03  Bruno Haible  <bruno@clisp.org>
3676
3677         time_r: Minor updates.
3678         * modules/time_r (Description): Mention the provided functions.
3679         * lib/time_r.c: Don't include <string.h>.
3680         * doc/posix-functions/gmtime_r.texi: Mention the 'time_r' module.
3681         * doc/posix-functions/localtime_r.texi: Likewise.
3682
3683 2010-04-03  Bruno Haible  <bruno@clisp.org>
3684
3685         time: Fix regression introduced on 2010-03-08.
3686         * m4/time_h.m4 (gl_TIME_MODULE_INDICATOR): Require
3687         gl_HEADER_TIME_H_DEFAULTS, not gl_HEADER_STRING_H_DEFAULTS.
3688
3689 2010-04-03  Jim Meyering  <meyering@redhat.com>
3690
3691         maint.mk: don't silently disable project-specific syntax-check rules
3692         * top/maint.mk (_prohibit_regexp): Define, to help people realize
3693         that they need to convert their project-specific syntax-check rules
3694         to use the new _sc_search_regexp.
3695
3696 2010-04-03  Bruno Haible  <bruno@clisp.org>
3697
3698         fchdir: Fix regression introduced on 2010-03-08.
3699         * lib/unistd.in.h (fchdir): Fix declaration.
3700         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Set HAVE_FCHDIR, not REPLACE_FCHDIR.
3701         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize HAVE_FCHDIR, not
3702         REPLACE_FCHDIR.
3703         * modules/unistd (Makefile.am): Substitute HAVE_FCHDIR, not
3704         REPLACE_FCHDIR.
3705
3706 2010-04-03  Bruno Haible  <bruno@clisp.org>
3707
3708         getpagesize: Fix C++ test error on mingw.
3709         * lib/unistd.in.h (getpagesize): Don't use _GL_CXXALIASWARN if the
3710         system does not declare the function.
3711         * m4/getpagesize.m4 (gl_FUNC_GETPAGESIZE): Also check whether it's
3712         declared.
3713         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
3714         HAVE_DECL_GETPAGESIZE.
3715         * modules/unistd (Makefile.am): Substitute HAVE_DECL_GETPAGESIZE.
3716
3717 2010-04-03  Bruno Haible  <bruno@clisp.org>
3718
3719         stdio: Make C++ tests work on mingw.
3720         * lib/stdio.in.h (getline): Don't use _GL_CXXALIASWARN if the system
3721         does not declare the function.
3722
3723 2010-04-03  Bruno Haible  <bruno@clisp.org>
3724
3725         ftello: Fix C++ test error on mingw.
3726         * lib/stdio.in.h (ftello): Use modern idiom.
3727         * lib/ftello.c (ftello): Renamed from rpl_ftello.
3728         * m4/ftello.m4 (gl_FUNC_FTELLO): Distinguish the case that the function
3729         is missing and that it needs to be replaced.
3730         (gl_REPLACE_FTELLO): Don't set REPLACE_FTELLO here.
3731         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize HAVE_FTELLO.
3732         * modules/stdio (Makefile.am): Substitute HAVE_FTELLO.
3733
3734 2010-04-03  Bruno Haible  <bruno@clisp.org>
3735
3736         fseeko: Fix C++ test error on mingw.
3737         * lib/stdio.in.h (fseeko): Use modern idiom.
3738         * lib/fseeko.c (fseeko): Renamed from rpl_fseeko.
3739         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Distinguish the case that the function
3740         is missing and that it needs to be replaced.
3741         (gl_REPLACE_FSEEKO): Don't set REPLACE_FSEEKO here.
3742         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize HAVE_FSEEKO.
3743         * modules/stdio (Makefile.am): Substitute HAVE_FSEEKO.
3744
3745 2010-04-03  Bruno Haible  <bruno@clisp.org>
3746
3747         mkstemp: Fix C++ test error on mingw.
3748         * lib/stdlib.in.h (mkstemp): Use modern idiom.
3749         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Distinguish the case that the
3750         function is missing and that it needs to be replaced.
3751         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize HAVE_MKSTEMP.
3752         * modules/stdlib (Makefile.am): Substitute HAVE_MKSTEMP.
3753
3754 2010-04-03  Bruno Haible  <bruno@clisp.org>
3755
3756         stpncpy: Fix C++ test error on mingw.
3757         * lib/string.in.h (stpncpy): Use modern idiom.
3758         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Distinguish the case that the
3759         function is missing and that it needs to be replaced.
3760         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
3761         REPLACE_STPNCPY.
3762         * modules/string (Makefile.am): Substitute REPLACE_STPNCPY.
3763
3764 2010-04-03  Bruno Haible  <bruno@clisp.org>
3765
3766         sys_stat: Fix C++ test error on mingw.
3767         * build-aux/c++defs.h (_GL_CXXALIAS_RPL_CAST_1): New macro.
3768         * lib/sys_stat.in.h (lchmod): Use it instead of _GL_CXXALIAS_RPL_1.
3769
3770 2010-04-03  Bruno Haible  <bruno@clisp.org>
3771
3772         pty: Update doc.
3773         * doc/glibc-headers/pty.texi: Mention changes done since 2010-03-18.
3774
3775 2010-04-03  Bruno Haible  <bruno@clisp.org>
3776
3777         unistd: Fix C++ test error on mingw.
3778         * lib/unistd.in.h (getcwd): Use _GL_CXXALIAS_SYS_CAST.
3779
3780 2010-04-03  Bruno Haible  <bruno@clisp.org>
3781
3782         Update doc regarding mingw.
3783         * doc/glibc-functions/openpty.texi: Update regarding mingw.
3784         * doc/glibc-functions/login_tty.texi: Likewise.
3785         * doc/glibc-functions/forkpty.texi: Likewise.
3786
3787 2010-04-03  Bruno Haible  <bruno@clisp.org>
3788
3789         stdlib: Avoid compilation failure of c-strtold on mingw.
3790         * lib/stdlib.in.h: Don't include <unistd.h> on native Windows systems.
3791
3792 2010-04-03  Bruno Haible  <bruno@clisp.org>
3793
3794         locale: Make C++ tests work on Cygwin and mingw.
3795         * lib/locale.in.h (duplocale): Don't use _GL_CXXALIASWARN if gnulib
3796         cannot provide the function.
3797         Reported by Simon Josefsson.
3798
3799 2010-04-03  Bruno Haible  <bruno@clisp.org>
3800
3801         localename: Port to MacOS X 10.6.
3802         * lib/localename.c (gl_locale_name_thread_unsafe): On MacOS X, try the
3803         memory layout of the locales in MacOS X 10.6 as well.
3804         Reported by Panu Kekäläinen <panu@kekalainen.eu>.
3805
3806 2010-04-02  Bruno Haible  <bruno@clisp.org>
3807
3808         gnulib-tool: Ensure that long-running tests are executed last.
3809         * gnulib-tool (func_emit_tests_Makefile_am): Emit the code for long-
3810         running tests after the one for the other tests.
3811
3812 2010-04-02  Bruno Haible  <bruno@clisp.org>
3813
3814         gnulib-tool: Ensure the tests in the main directory are executed first.
3815         * gnulib-tool (func_emit_tests_Makefile_am): Initialize SUBDIRS to
3816         start with the current directory.
3817
3818 2010-04-02  Bruno Haible  <bruno@clisp.org>
3819
3820         Tests for module 'havelib', moved here from GNU gettext.
3821         * modules/havelib-tests: New file, from gettext/autoconf-lib-link with
3822         modifications.
3823         * tests/havelib/README: New file, from gettext/autoconf-lib-link.
3824         * tests/havelib/Makefile.am: New file, from gettext/autoconf-lib-link
3825         with modifications.
3826         * tests/havelib/rpath-1: New file, from gettext/autoconf-lib-link with
3827         modifications.
3828         * tests/havelib/rpath-1a: New file, from gettext/autoconf-lib-link.
3829         * tests/havelib/rpath-1b: New file, from gettext/autoconf-lib-link.
3830         * tests/havelib/rpath-2_a: New file, from gettext/autoconf-lib-link
3831         with modifications.
3832         * tests/havelib/rpath-2_b: New file, from gettext/autoconf-lib-link
3833         with modifications.
3834         * tests/havelib/rpath-2aaa: New file, from gettext/autoconf-lib-link.
3835         * tests/havelib/rpath-2aab: New file, from gettext/autoconf-lib-link.
3836         * tests/havelib/rpath-2aac: New file, from gettext/autoconf-lib-link.
3837         * tests/havelib/rpath-2aad: New file, from gettext/autoconf-lib-link.
3838         * tests/havelib/rpath-2aba: New file, from gettext/autoconf-lib-link.
3839         * tests/havelib/rpath-2abb: New file, from gettext/autoconf-lib-link.
3840         * tests/havelib/rpath-2abc: New file, from gettext/autoconf-lib-link.
3841         * tests/havelib/rpath-2abd: New file, from gettext/autoconf-lib-link.
3842         * tests/havelib/rpath-2baa: New file, from gettext/autoconf-lib-link.
3843         * tests/havelib/rpath-2bab: New file, from gettext/autoconf-lib-link.
3844         * tests/havelib/rpath-2bac: New file, from gettext/autoconf-lib-link.
3845         * tests/havelib/rpath-2bad: New file, from gettext/autoconf-lib-link.
3846         * tests/havelib/rpath-2bba: New file, from gettext/autoconf-lib-link.
3847         * tests/havelib/rpath-2bbb: New file, from gettext/autoconf-lib-link.
3848         * tests/havelib/rpath-2bbc: New file, from gettext/autoconf-lib-link.
3849         * tests/havelib/rpath-2bbd: New file, from gettext/autoconf-lib-link.
3850         * tests/havelib/rpath-3_a: New file, from gettext/autoconf-lib-link
3851         with modifications.
3852         * tests/havelib/rpath-3_b: New file, from gettext/autoconf-lib-link
3853         with modifications.
3854         * tests/havelib/rpath-3aaa: New file, from gettext/autoconf-lib-link.
3855         * tests/havelib/rpath-3aab: New file, from gettext/autoconf-lib-link.
3856         * tests/havelib/rpath-3aac: New file, from gettext/autoconf-lib-link.
3857         * tests/havelib/rpath-3aad: New file, from gettext/autoconf-lib-link.
3858         * tests/havelib/rpath-3aae: New file, from gettext/autoconf-lib-link.
3859         * tests/havelib/rpath-3aaf: New file, from gettext/autoconf-lib-link.
3860         * tests/havelib/rpath-3aag: New file, from gettext/autoconf-lib-link.
3861         * tests/havelib/rpath-3aah: New file, from gettext/autoconf-lib-link.
3862         * tests/havelib/rpath-3aba: New file, from gettext/autoconf-lib-link.
3863         * tests/havelib/rpath-3abb: New file, from gettext/autoconf-lib-link.
3864         * tests/havelib/rpath-3abc: New file, from gettext/autoconf-lib-link.
3865         * tests/havelib/rpath-3abd: New file, from gettext/autoconf-lib-link.
3866         * tests/havelib/rpath-3abe: New file, from gettext/autoconf-lib-link.
3867         * tests/havelib/rpath-3abf: New file, from gettext/autoconf-lib-link.
3868         * tests/havelib/rpath-3abg: New file, from gettext/autoconf-lib-link.
3869         * tests/havelib/rpath-3abh: New file, from gettext/autoconf-lib-link.
3870         * tests/havelib/rpath-3baa: New file, from gettext/autoconf-lib-link.
3871         * tests/havelib/rpath-3bab: New file, from gettext/autoconf-lib-link.
3872         * tests/havelib/rpath-3bac: New file, from gettext/autoconf-lib-link.
3873         * tests/havelib/rpath-3bad: New file, from gettext/autoconf-lib-link.
3874         * tests/havelib/rpath-3bae: New file, from gettext/autoconf-lib-link.
3875         * tests/havelib/rpath-3baf: New file, from gettext/autoconf-lib-link.
3876         * tests/havelib/rpath-3bag: New file, from gettext/autoconf-lib-link.
3877         * tests/havelib/rpath-3bah: New file, from gettext/autoconf-lib-link.
3878         * tests/havelib/rpath-3bba: New file, from gettext/autoconf-lib-link.
3879         * tests/havelib/rpath-3bbb: New file, from gettext/autoconf-lib-link.
3880         * tests/havelib/rpath-3bbc: New file, from gettext/autoconf-lib-link.
3881         * tests/havelib/rpath-3bbd: New file, from gettext/autoconf-lib-link.
3882         * tests/havelib/rpath-3bbe: New file, from gettext/autoconf-lib-link.
3883         * tests/havelib/rpath-3bbf: New file, from gettext/autoconf-lib-link.
3884         * tests/havelib/rpath-3bbg: New file, from gettext/autoconf-lib-link.
3885         * tests/havelib/rpath-3bbh: New file, from gettext/autoconf-lib-link.
3886         * tests/havelib/rpathx/rpathx.c: New file, from
3887         gettext/autoconf-lib-link.
3888         * tests/havelib/rpathx/Makefile.am: New file, from
3889         gettext/autoconf-lib-link.
3890         * tests/havelib/rpathx/configure.ac: New file, from
3891         gettext/autoconf-lib-link with modifications.
3892         * tests/havelib/rpathy/rpathy.c: New file, from
3893         gettext/autoconf-lib-link.
3894         * tests/havelib/rpathy/Makefile.am: New file, from
3895         gettext/autoconf-lib-link.
3896         * tests/havelib/rpathy/configure.ac: New file, from
3897         gettext/autoconf-lib-link with modifications.
3898         * tests/havelib/rpathz/rpathz.c: New file, from
3899         gettext/autoconf-lib-link.
3900         * tests/havelib/rpathz/Makefile.am: New file, from
3901         gettext/autoconf-lib-link.
3902         * tests/havelib/rpathz/configure.ac: New file, from
3903         gettext/autoconf-lib-link with modifications.
3904         * tests/havelib/rpathlx/usex.c: New file, from
3905         gettext/autoconf-lib-link.
3906         * tests/havelib/rpathlx/Makefile.am: New file, from
3907         gettext/autoconf-lib-link.
3908         * tests/havelib/rpathlx/configure.ac: New file, from
3909         gettext/autoconf-lib-link with modifications.
3910         * tests/havelib/rpathly/usey.c: New file, from
3911         gettext/autoconf-lib-link.
3912         * tests/havelib/rpathly/Makefile.am: New file, from
3913         gettext/autoconf-lib-link.
3914         * tests/havelib/rpathly/configure.ac: New file, from
3915         gettext/autoconf-lib-link with modifications.
3916         * tests/havelib/rpathlz/usez.c: New file, from
3917         gettext/autoconf-lib-link.
3918         * tests/havelib/rpathlz/Makefile.am: New file, from
3919         gettext/autoconf-lib-link.
3920         * tests/havelib/rpathlz/configure.ac: New file, from
3921         gettext/autoconf-lib-link with modifications.
3922         * tests/havelib/rpathlyx/usey.c: New file, from
3923         gettext/autoconf-lib-link.
3924         * tests/havelib/rpathlyx/Makefile.am: New file, from
3925         gettext/autoconf-lib-link.
3926         * tests/havelib/rpathlyx/configure.ac: New file, from
3927         gettext/autoconf-lib-link with modifications.
3928         * tests/havelib/rpathlzyx/usez.c: New file, from
3929         gettext/autoconf-lib-link.
3930         * tests/havelib/rpathlzyx/Makefile.am: New file, from
3931         gettext/autoconf-lib-link.
3932         * tests/havelib/rpathlzyx/configure.ac: New file, from
3933         gettext/autoconf-lib-link with modifications.
3934         * tests/havelib/rpathcfg.sh: New file, from gettext/autoconf-lib-link
3935         with modifications.
3936
3937 2010-04-02  Bruno Haible  <bruno@clisp.org>
3938
3939         gnulib-tool: Create distributed built sources also for the tests.
3940         * gnulib-tool (func_create_testdir): Also generate distributed built
3941         sources in the tests directory.
3942
3943 2010-04-02  Bruno Haible  <bruno@clisp.org>
3944
3945         gnulib-tool: Obey user's environment variables.
3946         * gnulib-tool (func_create_testdir): When creating built sources,
3947         respect the environment variables for autoconf, automake, etc. given by
3948         the user.
3949
3950 2010-04-02  Bruno Haible  <bruno@clisp.org>
3951
3952         gnulib-tool: Provide the value of --m4-base to modules.
3953         * gnulib-tool (func_import, func_create_testdir): Emit a definition
3954         of gl_m4_base.
3955
3956 2010-04-02  Eric Blake  <eblake@redhat.com>
3957
3958         maint.mk: fix some fallout
3959         * NEWS: Document the incompatible change, and its effect on cfg.mk.
3960         * top/maint.mk (sc_prohibit_test_minus_ao): Update.
3961
3962 2010-03-28  Jose E. Marchesi  <jemarch@gnu.org>
3963
3964         maint.mk: _sc_search_regexp: generalize and rename from _prohibit_regexp
3965         * top/maint.mk (_sc_search_regexp): Rename from _prohibit_regexp.
3966         (sc_cast_of_argument_to_free): Adapt to use _sc_search_regexp.
3967         (sc_cast_of_x_alloc_return_value): Likewise.
3968         (sc_cast_of_alloca_return_value): Likewise.
3969         (sc_space_tab): Likewise.
3970         (sc_prohibit_atoi_atof): Likewise.
3971         (sc_prohibit_magic_number_exit): Likewise.
3972         (sc_error_exit_success): Likewise.
3973         (sc_file_system): Likewise.
3974         (sc_prohibit_have_config_h): Likewise.
3975         (sc_require_config_h): Likewise.
3976         (sc_prohibit_HAVE_MBRTOWC): Likewise.
3977         (sc_obsolete_symbols): Likewise.
3978         (sc_changelog): Likewise.
3979         (sc_program_name): Likewise.
3980         (sc_the_the): Likewise.
3981         (sc_trailing_blank): Likewise.
3982         (sc_two_space_separator_in_usage): Likewise.
3983         (sc_useless_cpp_parens): Likewise.
3984         (sc_GPL_version): Likewise.
3985         (sc_GFDL_version): Likewise.
3986         (sc_texinfo_acronym): Likewise.
3987         (sc_prohibit_cvs_keyword): Likewise.
3988         (sc_prohibit_stat_st_blocks): Likewise.
3989         (sc_prohibit_S_IS_definition): Likewise.
3990         (sc_redundant_const): Likewise.
3991         (sc_makefile_TAB_only_indentation): Likewise.
3992         (sc_m4_quote_check): Likewise.
3993         (sc_makefile_path_separator_check): Likewise.
3994         (sc_copyright_check): Likewise.
3995         (sc_Wundef_boolean): Likewise.
3996         (sc_vulnerable_makefile_CVE-2009-4029): Likewise.
3997
3998         maint.mk: match 0 or more whitespace-before-function-call '('
3999         * top/maint.mk (sc_error_exit_success): Relax regexp to match uses
4000         that have zero or two-and-more spaces between the function name
4001         and the open parenthesis.
4002         (sc_error_message_warn_fatal): Likewise.
4003         (sc_error_message_uppercase): Likewise.
4004         (sc_error_message_period): Likewise.
4005
4006 2010-03-31  Eric Blake  <eblake@redhat.com>
4007
4008         maint.mk: check for [ as well as test
4009         * top/maint.mk (sc_prohibit_test_minus_ao): Extend test.
4010         Based on a libvirt report by Matthias Bolte.
4011
4012         gnumakefile: don't squelch _version output
4013         * top/GNUmakefile (_version): Create one-shot dependency rather
4014         than using $(shell) when version must be regenerated.
4015         (_autoreconf): Run verbosely, by default.
4016
4017         sys_time: avoid compiler warnings
4018         * lib/sys_time.in.h (includes): Ensure gcc pragma is
4019         unconditional, fixing regression from 2010-03-29.
4020         Reported by Simon Josefsson.
4021
4022 2010-03-28  Jose E. Marchesi  <jemarch@gnu.org>
4023
4024         maint.mk: s/_header_without_use/_sc_header_without_use/
4025         * top/maint.mk (_sc_header_without_use): Rename from _header_without_use.
4026         (sc_prohibit_assert_without_use): Use the new name.
4027         (sc_prohibit_close_stream_without_use): Likewise.
4028         (sc_prohibit_getopt_without_use): Likewise.
4029         (sc_prohibit_quotearg_without_use): Likewise.
4030         (sc_prohibit_quote_without_use): Likewise.
4031         (sc_prohibit_long_options_without_use): Likewise.
4032         (sc_prohibit_inttostr_without_use): Likewise.
4033         (sc_prohibit_ignore_value_without_use): Likewise.
4034         (sc_prohibit_error_without_use): Likewise.
4035         (sc_prohibit_xalloc_without_use): Likewise.
4036         (sc_prohibit_hash_without_use): Likewise.
4037         (sc_prohibit_hash_pjw_without_use): Likewise.
4038         (sc_prohibit_safe_read_without_use): Likewise.
4039         (sc_prohibit_argmatch_without_use): Likewise.
4040         (sc_prohibit_canonicalize_without_use): Likewise.
4041         (sc_prohibit_root_dev_ino_without_use): Likewise.
4042         (sc_prohibit_openat_without_use): Likewise.
4043         (sc_prohibit_c_ctype_without_use): Likewise.
4044         (sc_prohibit_signal_without_use): Likewise.
4045         (sc_prohibit_intprops_without_use): Likewise.
4046
4047 2010-03-30  Eric Blake  <eblake@redhat.com>
4048
4049         maint: improve module indicators
4050         * m4/gnulib-common.m4 (gl_MODULE_INDICATOR_SET_VARIABLE)
4051         (gl_MODULE_INDICATOR, gl_MODULE_INDICATOR_FOR_TESTS): Fit in 80
4052         columns, and avoid extra macro expansion.
4053
4054         fdopendir: work around FreeBSD bug
4055         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): New witness.
4056         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR): Set it.
4057         * modules/dirent (Makefile.am): Substitute it.
4058         * lib/dirent.in.h (fdopendir): Supply missing FreeBSD
4059         declaration.
4060         * doc/posix-functions/fdopendir.texi (fdopendir): Document the
4061         fix.
4062         Reported by Christian Weisgerber <naddy@mips.inka.de>.
4063
4064 2010-03-29  Bruno Haible  <bruno@clisp.org>
4065
4066         Emit #pragma system_header after the inclusion guard, not before.
4067         * lib/arpa_inet.in.h: Emit #pragma system_header after the inclusion
4068         guard that spans the entire file, not before. This enables an
4069         optimization in GCC's preprocessor.
4070         * lib/ctype.in.h: Likewise.
4071         * lib/dirent.in.h: Likewise.
4072         * lib/errno.in.h: Likewise.
4073         * lib/float.in.h: Likewise.
4074         * lib/getopt.in.h: Likewise.
4075         * lib/iconv.in.h: Likewise.
4076         * lib/langinfo.in.h: Likewise.
4077         * lib/locale.in.h: Likewise.
4078         * lib/math.in.h: Likewise.
4079         * lib/netdb.in.h: Likewise.
4080         * lib/netinet_in.in.h: Likewise.
4081         * lib/pty.in.h: Likewise.
4082         * lib/sched.in.h: Likewise.
4083         * lib/se-selinux.in.h: Likewise.
4084         * lib/search.in.h: Likewise.
4085         * lib/spawn.in.h: Likewise.
4086         * lib/stdarg.in.h: Likewise.
4087         * lib/stdint.in.h: Likewise.
4088         * lib/string.in.h: Likewise.
4089         * lib/strings.in.h: Likewise.
4090         * lib/sys_file.in.h: Likewise.
4091         * lib/sys_ioctl.in.h: Likewise.
4092         * lib/sys_time.in.h: Likewise.
4093         * lib/sys_times.in.h: Likewise.
4094         * lib/sys_utsname.in.h: Likewise.
4095         * lib/sys_wait.in.h: Likewise.
4096         * lib/sysexits.in.h: Likewise.
4097         * lib/wctype.in.h: Likewise.
4098
4099 2010-03-28  James Youngman  <jay@gnu.org>
4100
4101         save-cwd: don't leak a file descriptor when the caller execs.
4102         * lib/save-cwd.c (save_cwd): set the close-on-exec flag for the
4103         saved file descriptor.
4104         * modules/save-cwd (Depends-on): Depend on cloexec.
4105
4106 2010-03-29  Bruno Haible  <bruno@clisp.org>
4107
4108         Remove vestiges of fts-lgpl module.
4109         * lib/fts_.h: Assume GNULIB_FTS is 1.
4110         * lib/fts.c: Likewise.
4111         * modules/fts (configure.ac): Remove gl_MODULE_INDICATOR invocation.
4112
4113 2010-03-28  Bruno Haible  <bruno@clisp.org>
4114
4115         Fix definition of tests witness macro.
4116         * gnulib-tool (func_import): Fix definition of witness macro.
4117
4118 2010-03-28  Bruno Haible  <bruno@clisp.org>
4119
4120         Fix ioctl's protoype on glibc systems.
4121         * lib/sys_ioctl.in.h (ioctl): If REPLACE_IOCTL is 1, use a wrapper. Use
4122         _GL_CXXALIAS_SYS, not _GL_CXXALIAS_SYS_CAST.
4123         * lib/ioctl.c (rpl_ioctl) [HAVE_IOCTL]: New wrapper.
4124         * modules/ioctl (configure.ac): Test whether ioctl has the POSIX
4125         signature. If not, arrange to replace the ioctl function.
4126         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_H_DEFAULTS): Initialize
4127         REPLACE_IOCTL.
4128         * modules/sys_ioctl (Makefile.am): Substitute REPLACE_IOCTL.
4129         * doc/posix-functions/ioctl.texi: Mention the glibc problem.
4130         Reported by Ludovic Courtès <ludo@gnu.org>.
4131
4132 2010-03-28  Javier Villavicencio  <the_paya@gentoo.org>
4133
4134         exclude: fix the case of globs vs. EXCLUDE_INCLUDE
4135         * lib/exclude.c (excluded_file_pattern_p): Fix logic error that
4136         made it so grep -r --include=GLOB* ... did not work.
4137
4138 2010-03-26  Jim Meyering  <meyering@redhat.com>
4139             Eric Blake  <eblake@redhat.com>
4140
4141         maint.mk: prohibit use of test's -o and -a operators
4142         * top/maint.mk (sc_prohibit_test_minus_ao): New rule.
4143
4144 2010-03-28  Bruno Haible  <bruno@clisp.org>
4145
4146         Remove unused GNULIB_XYZ macro definitions.
4147         * modules/crypto/gc-camellia (configure.ac): Remove gl_MODULE_INDICATOR
4148         invocation.
4149
4150 2010-03-28  Bruno Haible  <bruno@clisp.org>
4151
4152         Mark privileged tests modules.
4153         * modules/idpriv-drop-tests (Status): New section.
4154         * modules/idpriv-droptemp-tests (Status): New section.
4155
4156 2010-03-28  Bruno Haible  <bruno@clisp.org>
4157
4158         Split C++ tests into separate tests modules.
4159         * modules/dirent-c++-tests: New file, extracted from
4160         modules/dirent-tests.
4161         * modules/dirent-tests: Depend on it.
4162         * modules/fcntl-h-c++-tests: New file, extracted from
4163         modules/fcntl-h-tests.
4164         * modules/fcntl-h-tests: Depend on it.
4165         * modules/glob-c++-tests: New file, extracted from modules/glob-tests.
4166         * modules/glob-tests: Depend on it.
4167         * modules/iconv-h-c++-tests: New file, extracted from
4168         modules/iconv-h-tests.
4169         * modules/iconv-h-tests: Depend on it.
4170         * modules/langinfo-c++-tests: New file, extracted from
4171         modules/langinfo-tests.
4172         * modules/langinfo-tests: Depend on it.
4173         * modules/locale-c++-tests: New file, extracted from
4174         modules/locale-tests.
4175         * modules/locale-tests: Depend on it.
4176         * modules/math-c++-tests: New file, extracted from modules/math-tests.
4177         * modules/math-tests: Depend on it.
4178         * modules/pty-c++-tests: New file, extracted from modules/pty-tests.
4179         * modules/pty-tests: Depend on it.
4180         * modules/search-c++-tests: New file, extracted from
4181         modules/search-tests.
4182         * modules/search-tests: Depend on it.
4183         * modules/signal-c++-tests: New file, extracted from
4184         modules/signal-tests.
4185         * modules/signal-tests: Depend on it.
4186         * modules/spawn-c++-tests: New file, extracted from
4187         modules/spawn-tests.
4188         * modules/spawn-tests: Depend on it.
4189         * modules/stdio-c++-tests: New file, extracted from
4190         modules/stdio-tests.
4191         * modules/stdio-tests: Depend on it.
4192         * modules/stdlib-c++-tests: New file, extracted from
4193         modules/stdlib-tests.
4194         * modules/stdlib-tests: Depend on it.
4195         * modules/string-c++-tests: New file, extracted from
4196         modules/string-tests.
4197         * modules/string-tests: Depend on it.
4198         * modules/sys_ioctl-c++-tests: New file, extracted from
4199         modules/sys_ioctl-tests.
4200         * modules/sys_ioctl-tests: Depend on it.
4201         * modules/sys_select-c++-tests: New file, extracted from
4202         modules/sys_select-tests.
4203         * modules/sys_select-tests: Depend on it.
4204         * modules/sys_socket-c++-tests: New file, extracted from
4205         modules/sys_socket-tests.
4206         * modules/sys_socket-tests: Depend on it.
4207         * modules/sys_stat-c++-tests: New file, extracted from
4208         modules/sys_stat-tests.
4209         * modules/sys_stat-tests: Depend on it.
4210         * modules/sys_time-c++-tests: New file, extracted from
4211         modules/sys_time-tests.
4212         * modules/sys_time-tests: Depend on it.
4213         * modules/time-c++-tests: New file, extracted from modules/time-tests.
4214         * modules/time-tests: Depend on it.
4215         * modules/unistd-c++-tests: New file, extracted from
4216         modules/unistd-tests.
4217         * modules/unistd-tests: Depend on it.
4218         * modules/wchar-c++-tests: New file, extracted from
4219         modules/wchar-tests.
4220         * modules/wchar-tests: Depend on it.
4221         * modules/wctype-c++-tests: New file, extracted from
4222         modules/wctype-tests.
4223         * modules/wctype-tests: Depend on it.
4224         Reported by Simon Josefsson.
4225
4226 2010-03-28  Bruno Haible  <bruno@clisp.org>
4227
4228         gnulib-tool: Allow 'foo-tests' module even if there is no module 'foo'.
4229         * gnulib-tool (func_exists_module): New function, extracted from
4230         func_verify_module.
4231         (func_verify_module): Use it.
4232         (func_get_dependencies): Synthetize a dependency from 'foo-tests' to
4233         'foo' only if 'foo' exists.
4234         * doc/gnulib.texi (Extra tests modules): Explain how to split a tests
4235         module.
4236
4237 2010-03-28  Bruno Haible  <bruno@clisp.org>
4238
4239         gnulib-tool: Add support for special categories of tests.
4240         * gnulib-tool: New options --with-c++-tests, --with-longrunning-tests,
4241         --with-privileged-tests, --with-unportable-tests, --with-all-tests.
4242         (func_usage): Document them.
4243         (inc_cxx_tests, inc_longrunning_tests, inc_privileged_tests,
4244         inc_unportable_tests, inc_all_tests): New variables.
4245         (func_acceptable): Consider these variables.
4246         (func_modules_transitive_closure): Make it work when the 'Status' field
4247         consists of multiple words.
4248         (func_import): Store and restore the values of inc_cxx_tests,
4249         inc_longrunning_tests, inc_privileged_tests, inc_unportable_tests,
4250         inc_all_tests in gnulib-comp.m4.
4251         (func_create_testdir): Set inc_all_tests to true.
4252         * doc/gnulib.texi (Extra tests modules): New section.
4253         Suggested by Jim Meyering.
4254
4255 2010-03-28  Bruno Haible  <bruno@clisp.org>
4256
4257         ansi-c++-opt: Allow turning off the C++ build by default.
4258         * m4/ansi-c++.m4 (gl_CXX_CHOICE): Let CXX_CHOICE default to 'no' if
4259         gl_CXX_CHOICE_DEFAULT_NO is defined.
4260         Requested by Eric Blake.
4261
4262 2010-03-28  Bruno Haible  <bruno@clisp.org>
4263
4264         unistd: Avoid #define replacements in C++ mode.
4265         * lib/unistd.in.h (socket, connect, accept, bind, getpeername,
4266         getsockname, getsockopt, listen, recv, send, recvfrom, sendto,
4267         setsockopt, shutdown, select): In C++, attach a warning to the function
4268         if possible, rather than #defining the symbol to a dysfunctional alias.
4269         Reported by John W. Eaton <jwe@gnu.org>.
4270
4271 2010-03-28  Bruno Haible  <bruno@clisp.org>
4272
4273         Fix link errors on mingw.
4274         * lib/sys_ioctl.in.h (ioctl): Fix declaration idiom.
4275         * modules/sys_ioctl-tests (Makefile.am): Link test-sys_ioctl-c++ with
4276         $(LIBSOCKET).
4277         * modules/sys_select-tests (Makefile.am): Link test-sys_select-c++ with
4278         $(LIBSOCKET).
4279
4280 2010-03-28  Bruno Haible  <bruno@clisp.org>
4281             Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
4282
4283         lib-ignore: Determine different options for different compilers.
4284         * m4/lib-ignore.m4 (gl_IGNORE_UNUSED_LIBRARIES): Set a variable which
4285         depends on the current language (C/C++/Fortran). Don't set LDFLAGS.
4286         Add comments.
4287         (_gl_IGNORE_UNUSED_LIBRARIES_OPTIONS): New macro.
4288         * NEWS: Mention the change.
4289
4290 2010-03-27  Bruno Haible  <bruno@clisp.org>
4291
4292         Remove unused GNULIB_XYZ macro definitions.
4293         * modules/dup3 (configure.ac): Remove gl_MODULE_INDICATOR invocation.
4294         * modules/fseek (configure.ac): Likewise.
4295         * modules/ioctl (configure.ac): Likewise.
4296         * modules/open (configure.ac): Likewise.
4297         * modules/stdlib-safer (configure.ac): Likewise.
4298
4299 2010-03-27  Bruno Haible  <bruno@clisp.org>
4300
4301         Add a remark about certain modules.
4302         * modules/malloc (Comment): New section.
4303         * modules/realloc (Comment): Likewise.
4304         * modules/sigpipe (Comment): Likewise.
4305
4306 2010-03-27  Bruno Haible  <bruno@clisp.org>
4307
4308         Resolve conflict between the two kinds of module indicators.
4309         * m4/gnulib-common.m4 (gl_MODULE_INDICATOR_FOR_TESTS): Define
4310         GNULIB_TEST_XYZ instead of GNULIB_XYZ.
4311         * modules/canonicalize (configure.ac): Invoke
4312         gl_MODULE_INDICATOR_FOR_TESTS.
4313         * tests/test-canonicalize-lgpl.c: Test GNULIB_TEST_XYZ instead of
4314         GNULIB_XYZ.
4315         * tests/test-dirent-c++.cc: Likewise.
4316         * tests/test-dirent-safer.c: Likewise.
4317         * tests/test-dup2.c: Likewise.
4318         * tests/test-fchdir.c: Likewise.
4319         * tests/test-fcntl-h-c++.cc: Likewise.
4320         * tests/test-getopt.c: Likewise.
4321         * tests/test-getopt.h: Likewise.
4322         * tests/test-langinfo-c++.cc: Likewise.
4323         * tests/test-locale-c++.cc: Likewise.
4324         * tests/test-math-c++.cc: Likewise.
4325         * tests/test-pty-c++.cc: Likewise.
4326         * tests/test-search-c++.cc: Likewise.
4327         * tests/test-signal-c++.cc: Likewise.
4328         * tests/test-spawn-c++.cc: Likewise.
4329         * tests/test-stdio-c++.cc: Likewise.
4330         * tests/test-stdlib-c++.cc: Likewise.
4331         * tests/test-string-c++.cc: Likewise.
4332         * tests/test-sys_ioctl-c++.cc: Likewise.
4333         * tests/test-sys_select-c++.cc: Likewise.
4334         * tests/test-sys_socket-c++.cc: Likewise.
4335         * tests/test-sys_stat-c++.cc: Likewise.
4336         * tests/test-sys_time-c++.cc: Likewise.
4337         * tests/test-time-c++.cc: Likewise.
4338         * tests/test-unistd-c++.cc: Likewise.
4339         * tests/test-wchar-c++.cc: Likewise.
4340         * tests/uninorm/test-u8-nfc.c: Likewise.
4341         * tests/uninorm/test-u8-nfd.c: Likewise.
4342         * tests/uninorm/test-u8-nfkc.c: Likewise.
4343         * tests/uninorm/test-u8-nfkd.c: Likewise.
4344         * tests/uninorm/test-u16-nfc.c: Likewise.
4345         * tests/uninorm/test-u16-nfd.c: Likewise.
4346         * tests/uninorm/test-u16-nfkc.c: Likewise.
4347         * tests/uninorm/test-u16-nfkd.c: Likewise.
4348         * tests/uninorm/test-u32-nfc.c: Likewise.
4349         * tests/uninorm/test-u32-nfc-big.c: Likewise.
4350         * tests/uninorm/test-u32-nfd.c: Likewise.
4351         * tests/uninorm/test-u32-nfd-big.c: Likewise.
4352         * tests/uninorm/test-u32-nfkc.c: Likewise.
4353         * tests/uninorm/test-u32-nfkc-big.c: Likewise.
4354         * tests/uninorm/test-u32-nfkd.c: Likewise.
4355         * tests/uninorm/test-u32-nfkd-big.c: Likewise.
4356         * tests/uninorm/test-u32-normalize-big.c: Likewise.
4357
4358 2010-03-27  Bruno Haible  <bruno@clisp.org>
4359
4360         Distinguish two kinds of module indicators.
4361         * m4/gnulib-common.m4 (gl_MODULE_INDICATOR_FOR_TESTS): Renamed from
4362         gl_MODULE_INDICATOR.
4363         (gl_MODULE_INDICATOR): New macro.
4364         * m4/dirent_h.m4 (gl_DIRENT_MODULE_INDICATOR): Invoke
4365         gl_MODULE_INDICATOR_FOR_TESTS instead of gl_MODULE_INDICATOR.
4366         * m4/fcntl_h.m4 (gl_FCNTL_MODULE_INDICATOR): Likewise.
4367         * m4/langinfo_h.m4 (gl_LANGINFO_MODULE_INDICATOR): Likewise.
4368         * m4/locale_h.m4 (gl_LOCALE_MODULE_INDICATOR): Likewise.
4369         * m4/math_h.m4 (gl_MATH_MODULE_INDICATOR): Likewise.
4370         * m4/pty_h.m4 (gl_PTY_MODULE_INDICATOR): Likewise.
4371         * m4/search_h.m4 (gl_SEARCH_MODULE_INDICATOR): Likewise.
4372         * m4/signal_h.m4 (gl_SIGNAL_MODULE_INDICATOR): Likewise.
4373         * m4/spawn_h.m4 (gl_SPAWN_MODULE_INDICATOR): Likewise.
4374         * m4/stdio_h.m4 (gl_STDIO_MODULE_INDICATOR): Likewise.
4375         * m4/stdlib_h.m4 (gl_STDLIB_MODULE_INDICATOR): Likewise.
4376         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR): Likewise.
4377         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_MODULE_INDICATOR): Likewise.
4378         * m4/sys_select_h.m4 (gl_SYS_SELECT_MODULE_INDICATOR): Likewise.
4379         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_MODULE_INDICATOR): Likewise.
4380         * m4/sys_stat_h.m4 (gl_SYS_STAT_MODULE_INDICATOR): Likewise.
4381         * m4/sys_time_h.m4 (gl_SYS_TIME_MODULE_INDICATOR): Likewise.
4382         * m4/time_h.m4 (gl_TIME_MODULE_INDICATOR): Likewise.
4383         * m4/unistd_h.m4 (gl_UNISTD_MODULE_INDICATOR): Likewise.
4384         * m4/wchar_h.m4 (gl_WCHAR_MODULE_INDICATOR): Likewise.
4385         * modules/cloexec (configure.ac): Likewise.
4386         * modules/getopt-gnu (configure.ac): Likewise.
4387         * modules/uninorm/u8-normalize (configure.ac): Likewise.
4388         * modules/uninorm/u16-normalize (configure.ac): Likewise.
4389         * modules/uninorm/u32-normalize (configure.ac): Likewise.
4390         * modules/fdopendir (configure.ac): Invoke gl_MODULE_INDICATOR.
4391
4392 2010-03-27  Bruno Haible  <bruno@clisp.org>
4393
4394         New module description field 'Comment'.
4395         * gnulib-tool: New option --extract-comment.
4396         (func_usage): Document it.
4397         (sed_extract_prog, sed_extract_field_header): Support 'Comment' field.
4398         (func_get_comment): New function.
4399         * modules/TEMPLATE-EXTENDED: Add a blank Comment field.
4400
4401 2010-03-27  Bruno Haible  <bruno@clisp.org>
4402
4403         Addendum to 2010-02-07 commit.
4404         * gnulib-tool (func_usage): Document --extract-applicability option.
4405
4406 2010-03-27  Bruno Haible  <bruno@clisp.org>
4407
4408         Use GNULIB_POSIXCHECK instead of GNULIB_PORTCHECK.
4409         * lib/time.in.h (asctime, asctime_r, ctime, ctime_r): Test
4410         GNULIB_POSIXCHECK, not GNULIB_PORTCHECK. Provide compile-time warnings
4411         rather than link errors.
4412
4413 2010-03-27  Bruno Haible  <bruno@clisp.org>
4414
4415         Avoid side effects from tests-related modules on the compilation of lib.
4416         * m4/gnulib-common.m4 (gl_MODULE_INDICATOR_CONDITION): New macro.
4417         (gl_MODULE_INDICATOR_SET_VARIABLE): Use its expansion as a value.
4418         * gnulib-tool (func_emit_tests_Makefile_am): Accept a witness_macro
4419         parameter. Emit into AM_CPPFLAGS a definition of the designated C
4420         macro.
4421         (func_import): Define a witness macro. Assign it a value that depends
4422         on the current package. Override gl_MODULE_INDICATOR_CONDITION for the
4423         tests-related modules.
4424         (func_create_testdir): Update func_emit_tests_Makefile_am invocation.
4425         Reported by Jim Meyering.
4426
4427 2010-03-27  Bruno Haible  <bruno@clisp.org>
4428
4429         Factorize common .m4 code.
4430         * m4/gnulib-common.m4 (gl_MODULE_INDICATOR_SET_VARIABLE): New macro.
4431         * m4/arpa_inet_h.m4 (gl_ARPA_INET_MODULE_INDICATOR): Use it.
4432         * m4/ctype.m4 (gl_CTYPE_MODULE_INDICATOR): Likewise.
4433         * m4/dirent_h.m4 (gl_DIRENT_MODULE_INDICATOR): Likewise.
4434         * m4/fcntl_h.m4 (gl_FCNTL_MODULE_INDICATOR): Likewise.
4435         * m4/iconv_h.m4 (gl_ICONV_MODULE_INDICATOR): Likewise.
4436         * m4/inttypes.m4 (gl_INTTYPES_MODULE_INDICATOR): Likewise.
4437         * m4/langinfo_h.m4 (gl_LANGINFO_MODULE_INDICATOR): Likewise.
4438         * m4/locale_h.m4 (gl_LOCALE_MODULE_INDICATOR): Likewise.
4439         * m4/math_h.m4 (gl_MATH_MODULE_INDICATOR): Likewise.
4440         * m4/netdb_h.m4 (gl_NETDB_MODULE_INDICATOR): Likewise.
4441         * m4/pty_h.m4 (gl_PTY_MODULE_INDICATOR): Likewise.
4442         * m4/search_h.m4 (gl_SEARCH_MODULE_INDICATOR): Likewise.
4443         * m4/signal_h.m4 (gl_SIGNAL_MODULE_INDICATOR): Likewise.
4444         * m4/spawn_h.m4 (gl_SPAWN_MODULE_INDICATOR): Likewise.
4445         * m4/stddef_h.m4 (gl_STDDEF_MODULE_INDICATOR): Likewise.
4446         * m4/stdio_h.m4 (gl_STDIO_MODULE_INDICATOR): Likewise.
4447         * m4/stdlib_h.m4 (gl_STDLIB_MODULE_INDICATOR): Likewise.
4448         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR): Likewise.
4449         * m4/strings_h.m4 (gl_STRINGS_MODULE_INDICATOR): Likewise.
4450         * m4/sys_file_h.m4 (gl_HEADER_SYS_FILE_MODULE_INDICATOR): Likewise.
4451         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_MODULE_INDICATOR): Likewise.
4452         * m4/sys_select_h.m4 (gl_SYS_SELECT_MODULE_INDICATOR): Likewise.
4453         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_MODULE_INDICATOR): Likewise.
4454         * m4/sys_stat_h.m4 (gl_SYS_STAT_MODULE_INDICATOR): Likewise.
4455         * m4/sys_time_h.m4 (gl_SYS_TIME_MODULE_INDICATOR): Likewise.
4456         * m4/sys_times_h.m4 (gl_SYS_TIMES_MODULE_INDICATOR): Likewise.
4457         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_MODULE_INDICATOR): Likewise.
4458         * m4/sys_wait_h.m4 (gl_SYS_WAIT_MODULE_INDICATOR): Likewise.
4459         * m4/time_h.m4 (gl_TIME_MODULE_INDICATOR): Likewise.
4460         * m4/unistd_h.m4 (gl_UNISTD_MODULE_INDICATOR): Likewise.
4461         * m4/wchar_h.m4 (gl_WCHAR_MODULE_INDICATOR): Likewise.
4462
4463 2010-03-27  Bruno Haible  <bruno@clisp.org>
4464
4465         Fix a compilation error on Cygwin with g++ >= 4.3.
4466         * lib/sys_stat.in.h (lchmod): Don't warn about the use of this function
4467         if it is undefined or if we alias it to chmod.
4468         (lstat): Don't warn about the use of this function if it is undefined
4469         or if we alias it to stat.
4470         Reported by Simon Josefsson.
4471
4472 2010-03-27  Bruno Haible  <bruno@clisp.org>
4473
4474         * m4/getlogin.m4 (gl_FUNC_GETLOGIN): Renamed from gl_GETLOGIN.
4475         * modules/getlogin (configure.ac): Update.
4476
4477         * m4/getlogin_r.m4 (gl_FUNC_GETLOGIN_R): Renamed from gl_GETLOGIN_R.
4478         * modules/getlogin_r (configure.ac): Update.
4479
4480         * m4/inet_ntop.m4 (gl_FUNC_INET_NTOP): Renamed from gl_INET_NTOP.
4481         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Update.
4482         * modules/inet_ntop (configure.ac): Update.
4483
4484         * m4/inet_pton.m4 (gl_FUNC_INET_PTON): Renamed from gl_INET_PTON.
4485         * modules/inet_pton (configure.ac): Update.
4486
4487         * m4/mbslen.m4 (gl_FUNC_MBSLEN): Renamed from gl_MBSLEN.
4488         * modules/mbslen (configure.ac): Update.
4489
4490         * m4/pty.m4 (gl_FUNC_FORKPTY): Renamed from gl_FORKPTY.
4491         (gl_FUNC_OPENPTY): Renamed from gl_OPENPTY.
4492         * modules/forkpty (configure.ac): Update.
4493         * modules/openpty (configure.ac): Update.
4494
4495 2010-03-26  Simon Josefsson  <simon@josefsson.org>
4496
4497         * top/maint.mk (sc_texinfo_acronym): Don't infloop if there is
4498         no *.texi files.  Reported by Eric Blake <eblake@redhat.com>.
4499
4500 2010-03-25  Eric Blake  <eblake@redhat.com>
4501
4502         maint: use pragma consistently across replacement headers
4503         * lib/ctype.in.h (system_header): Hoist for consistent placement.
4504         * lib/dirent.in.h (system_header): Likewise.
4505         * lib/errno.in.h (system_header): Likewise.
4506         * lib/float.in.h (system_header): Likewise.
4507         * lib/getopt.in.h (system_header): Likewise.
4508         * lib/iconv.in.h (system_header): Likewise.
4509         * lib/inttypes.in.h (system_header): Likewise.
4510         * lib/langinfo.in.h (system_header): Likewise.
4511         * lib/locale.in.h (system_header): Likewise.
4512         * lib/math.in.h (system_header): Likewise.
4513         * lib/netdb.in.h (system_header): Likewise.
4514         * lib/netinet_in.in.h (system_header): Likewise.
4515         * lib/pty.in.h (system_header): Likewise.
4516         * lib/sched.in.h (system_header): Likewise.
4517         * lib/se-selinux.in.h (system_header): Likewise.
4518         * lib/search.in.h (system_header): Likewise.
4519         * lib/spawn.in.h (system_header): Likewise.
4520         * lib/stdarg.in.h (system_header): Likewise.
4521         * lib/stdint.in.h (system_header): Likewise.
4522         * lib/string.in.h (system_header): Likewise.
4523         * lib/strings.in.h (system_header): Likewise.
4524         * lib/sys_file.in.h (system_header): Likewise.
4525         * lib/sys_ioctl.in.h (system_header): Likewise.
4526         * lib/sys_socket.in.h (system_header): Likewise.
4527         * lib/sys_times.in.h (system_header): Likewise.
4528         * lib/sys_utsname.in.h (system_header): Likewise.
4529         * lib/sys_wait.in.h (system_header): Likewise.
4530         * lib/sysexits.in.h (system_header): Likewise.
4531         * lib/unistd.in.h (system_header): Likewise.
4532         * lib/wctype.in.h (system_header): Likewise.
4533
4534         arpa/inet: fix mingw compilation warning
4535         * lib/arpa_inet.in.h (system_header): Hoist to be unconditional.
4536         Reported by Matthew Bolte.
4537
4538 2010-03-25  Bruno Haible  <bruno@clisp.org>
4539
4540         Avoid collision between gnulib wrapper and libintl wrapper.
4541         * lib/printf.c (printf): Don't define if a printf wrapper is already
4542         defined in intl/printf.c.
4543         Reported by Michel Boaventura <michel@michelboaventura.com>.
4544
4545 2010-03-25  Bruno Haible  <bruno@clisp.org>
4546
4547         Use ANSI C.
4548         * lib/readutmp.h (getutent): Provide ANSI C prototype.
4549
4550 2010-03-25  Bruno Haible  <bruno@clisp.org>
4551
4552         Minor formatting changes.
4553         * lib/acosl.c: Insert space before function argument list.
4554         * lib/argz.c: Likewise.
4555         * lib/asinl.c: Likewise.
4556         * lib/expl.c: Likewise.
4557         * lib/gen-uni-tables.c: Likewise.
4558         * lib/gettext.h: Likewise.
4559         * lib/glthread/lock.h: Likewise.
4560         * lib/tanl.c: Likewise.
4561         * lib/uniname/uniname.c: Likewise.
4562         * tests/test-idpriv-drop.c: Likewise.
4563         * tests/test-idpriv-droptemp.c: Likewise.
4564         * tests/test-lock.c: Likewise.
4565         * tests/test-tls.c: Likewise.
4566         * lib/argp-help.c: Insert space before function-like macro argument
4567         list.
4568         * lib/memcmp.c: Likewise.
4569         * tests/test-base64.c: Likewise.
4570         * lib/localename.c: Insert space before sizeof's argument list.
4571         * lib/safe-alloc.h: Likewise.
4572         * lib/file-set.h: Insert space before macro argument list.
4573         * tests/test-argp.c: Likewise.
4574         * lib/argp-namefrob.h: Insert space before function parameter list.
4575         * lib/getaddrinfo.c: Likewise.
4576         * lib/netdb.in.h: Likewise.
4577         * lib/parse-duration.h: Likewise.
4578         * lib/parse-duration.c: Likewise.
4579         * lib/poll.c: Likewise.
4580         * lib/select.c: Likewise.
4581         * lib/trim.h: Likewise.
4582         * tests/test-usleep.c: Likewise.
4583         * lib/ldexpl.c: Insert space before function parameter list and before
4584         function argument list.
4585         * lib/logl.c: Likewise.
4586         * lib/sqrtl.c: Likewise.
4587         * lib/trim.c: Likewise.
4588         * lib/cosl.c: Use GNU style indentation. Insert space before function
4589         argument list.
4590         * lib/sinl.c: Likewise.
4591         * lib/tsearch.c: Insert space after 'for'.
4592         Reported by Jim Meyering.
4593
4594 2010-03-23  Pádraig Brady  <P@draigBrady.com>  (tiny change)
4595
4596         * maint.mk (sc_Wundef_boolean): Check for the presence of the
4597         config header before grepping, as it's not present before
4598         autoreconf/configure are run.  Reported by Simon Josefsson.
4599
4600 2010-03-23  Bruno Haible  <bruno@clisp.org>
4601
4602         pt_chown: Make it work with automake < 1.11.
4603         * modules/pt_chown (Makefile.am): Define pkglibexecdir.
4604         Reported by Simon Josefsson.
4605
4606 2010-03-23  Bruno Haible  <bruno@clisp.org>
4607
4608         pt_chown: Don't depend on GPLed modules.
4609         * lib/pt_chown.c: Don't include idpriv.h.
4610         (main): Don't drop privileges.
4611         * modules/pt_chown (Depends-on): Remove idpriv-drop.
4612         Reported by Simon Josefsson.
4613
4614 2010-03-24  Simon Josefsson  <simon@josefsson.org>
4615
4616         * top/maint.mk (sc_texinfo_acronym): Add rule, based on
4617         suggestions from karl@freefriends.org (Karl Berry).
4618
4619 2010-03-22  Eric Blake  <eblake@redhat.com>
4620
4621         gethostname: further tweaks
4622         * lib/unistd.in.h (includes): Only worry about <winsock2.h> if we
4623         are overriding gethostname.
4624         Suggested by Bruno Haible.
4625
4626 2010-03-21  Bruno Haible  <bruno@clisp.org>
4627
4628         Fix comments.
4629         * lib/forkpty.c (rpl_forkpty): Fix comment.
4630         * lib/openpty.c (rpl_openpty): Likewise.
4631         Reported by Eric Blake.
4632
4633 2010-03-22  Eric Blake  <eblake@redhat.com>
4634
4635         gethostname: fix build on mingw
4636         * lib/unistd.in.h (includes): Work around fact that mingw
4637         <winsock2.h> re-includes <unistd.h>, by avoiding any
4638         redeclarations if we are being included by <winsock2.h>.
4639         Reported by Matthias Bolte.
4640
4641 2010-03-21  Bruno Haible  <bruno@clisp.org>
4642
4643         forkpty: Provide replacement on AIX, HP-UX, IRIX, Solaris.
4644         * lib/forkpty.c (forkpty): New replacement function, from glibc with
4645         modifications.
4646         * lib/pty.in.h (forkpty): Update declaration. Add comments.
4647         * m4/pty.m4 (gl_FORKPTY): If forkpty is not declared, arrange to
4648         provide the replacement.
4649         * modules/forkpty (Depends-on): Add openpty, login_tty.
4650         * m4/pty_h.m4 (gl_PTY_H_DEFAULTS): Initialize HAVE_FORKPTY.
4651         * modules/pty (Makefile.am): Substitute HAVE_FORKPTY.
4652         * doc/glibc-functions/forkpty.texi: More supported platforms.
4653         * config/srclist.txt: Add forkpty.c (commented).
4654
4655 2010-03-21  Bruno Haible  <bruno@clisp.org>
4656
4657         * modules/forkpty-tests: Use the common TEMPLATE-TESTS.
4658         (Makefile.am): Verify that PTY_LIB is defined.
4659
4660         * modules/openpty-tests: Use the common TEMPLATE-TESTS.
4661
4662 2010-03-21  Bruno Haible  <bruno@clisp.org>
4663
4664         Tests for module 'login_tty'.
4665         * modules/login_tty-tests: New file.
4666         * tests/test-login_tty.c: New file.
4667
4668         New module 'login_tty'.
4669         * lib/login_tty.c: New file.
4670         * m4/pty.m4 (gl_FUNC_LOGIN_TTY): New macro.
4671         * modules/login_tty: New file.
4672         * doc/glibc-functions/login_tty.texi: Mention the new module.
4673
4674 2010-03-21  Bruno Haible  <bruno@clisp.org>
4675
4676         login_tty: Documentation.
4677         * doc/glibc-functions/login_tty.texi: New file.
4678         * doc/gnulib.texi (Glibc <utmp.h>): Include it.
4679
4680 2010-03-21  Bruno Haible  <bruno@clisp.org>
4681
4682         pty: Consistent macro naming.
4683         * m4/pty_h.m4 (gl_PTY_H): Renamed from gl_PTY.
4684         * m4/pty.m4 (gl_FORKPTY, gl_OPENPTY): Update.
4685         * modules/pty (configure.ac): Update.
4686
4687 2010-03-21  Bruno Haible  <bruno@clisp.org>
4688
4689         Tests for openpty: Make stricter.
4690         * tests/test-openpty.c (main): Add test of canonical processing and
4691         erase.
4692         * modules/openpty-tests (Makefile.am): Verify that PTY_LIB is defined.
4693
4694         openpty: Provide replacement on AIX, HP-UX, IRIX, Solaris.
4695         * lib/openpty.c (openpty): New replacement function.
4696         * lib/pty.in.h: Include <termios.h>.
4697         (openpty): Update declaration. Add comments.
4698         * m4/pty.m4 (gl_OPENPTY): Require AC_USE_SYSTEM_EXTENSIONS. If openpty
4699         is not declared, arrange to provide the replacement. Check for _getpty
4700         and posix_openpt.
4701         * modules/openpty (Depends-on): Add extensions, fcntl-h, ioctl.
4702         * m4/pty_h.m4 (gl_PTY_H_DEFAULTS): Initialize HAVE_OPENPTY.
4703         * modules/pty (Makefile.am): Substitute HAVE_OPENPTY.
4704         * modules/pty-tests (test_pty_c___LDADD): New variable.
4705         * doc/glibc-functions/openpty.texi: More supported platforms.
4706
4707 2010-03-21  Bruno Haible  <bruno@clisp.org>
4708
4709         setenv: Tweaks.
4710         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE): Include necessary headers in
4711         the test program.
4712         * doc/posix-functions/setenv.texi: Update platforms list.
4713
4714 2010-03-21  Bruno Haible  <bruno@clisp.org>
4715
4716         New module 'unlockpt'.
4717         * lib/unlockpt.c: New file, from glibc with modifications.
4718         * m4/unlockpt.m4: New file.
4719         * modules/unlockpt: New file.
4720         * lib/stdlib.in.h (unlockpt): New declaration.
4721         * m4/stdlib_h.m4 (gl_STDLIB_H): Check whether unlockpt is declared.
4722         (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_UNLOCKPT, HAVE_UNLOCKPT.
4723         * modules/stdlib (Makefile.am): Substitute GNULIB_UNLOCKPT,
4724         HAVE_UNLOCKPT.
4725         * doc/posix-functions/unlockpt.texi: Mention the new module.
4726         * tests/test-stdlib-c++.cc: Check GNULIB_NAMESPACE::unlockpt.
4727         * config/srclist.txt: Add unlockpt.c (commented).
4728
4729 2010-03-21  Jim Meyering  <meyering@redhat.com>
4730
4731         maint.mk: prohibit inclusion of "intprops.h" without use
4732         * top/maint.mk (sc_prohibit_intprops_without_use): New rule.
4733
4734 2010-03-21  Bruno Haible  <bruno@clisp.org>
4735
4736         New module 'grantpt'.
4737         * lib/grantpt.c: New file, from glibc with modifications.
4738         * m4/grantpt.m4: New file.
4739         * modules/grantpt: New file.
4740         * lib/stdlib.in.h (grantpt): New declaration.
4741         * m4/stdlib_h.m4 (gl_STDLIB_H): Check whether grantpt is declared.
4742         (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_GRANTPT, HAVE_GRANTPT.
4743         * modules/stdlib (Makefile.am): Substitute GNULIB_GRANTPT,
4744         HAVE_GRANTPT.
4745         * doc/posix-functions/grantpt.texi: Mention the new module.
4746         * tests/test-stdlib-c++.cc: Check GNULIB_NAMESPACE::grantpt.
4747         * config/srclist.txt: Add grantpt.c (commented).
4748
4749 2010-03-21  Bruno Haible  <bruno@clisp.org>
4750
4751         New module 'pt_chown'.
4752         * lib/pt_chown.c: New file, from glibc with modifications.
4753         * lib/pty-private.h: New file, from glibc with modifications.
4754         * modules/pt_chown: New file.
4755         * config/srclist.txt: Add pt_chown.c, pty-private.h (commented).
4756
4757 2010-03-21  Bruno Haible  <bruno@clisp.org>
4758
4759         Tests for module 'ptsname'.
4760         * modules/ptsname-tests: New file.
4761         * tests/test-ptsname.c: New file.
4762
4763         New module 'ptsname'.
4764         * lib/ptsname.c: New file, from glibc with modifications.
4765         * m4/ptsname.m4: New file.
4766         * modules/ptsname: New file.
4767         * lib/stdlib.in.h (ptsname): New declaration.
4768         * m4/stdlib_h.m4 (gl_STDLIB_H): Check whether ptsname is declared.
4769         (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_PTSNAME, HAVE_PTSNAME.
4770         * modules/stdlib (Makefile.am): Substitute GNULIB_PTSNAME,
4771         HAVE_PTSNAME.
4772         * doc/posix-functions/ptsname.texi: Mention the new module.
4773         * tests/test-stdlib-c++.cc: Check GNULIB_NAMESPACE::ptsname.
4774         * config/srclist.txt: Add ptsname.c (commented).
4775
4776 2010-03-21  Bruno Haible  <bruno@clisp.org>
4777
4778         Tests for module 'ttyname_r'.
4779         * modules/ttyname_r-tests: New file.
4780         * tests/test-ttyname_r.c: New file.
4781
4782         New module 'ttyname_r'.
4783         * lib/ttyname_r.c: New file.
4784         * m4/ttyname_r.m4: New file.
4785         * modules/ttyname_r: New file.
4786         * lib/unistd.in.h (ttyname_r): New declaration.
4787         * m4/unistd_h.m4 (gl_UNISTD_H): Check whether ttyname_r is declared.
4788         (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_TTYNAME_R, HAVE_TTYNAME_R.
4789         * modules/unistd (Makefile.am): Substitute GNULIB_TTYNAME_R,
4790         HAVE_TTYNAME_R.
4791         * tests/test-unistd-c++.cc: Check GNULIB_NAMESPACE::ttyname_r.
4792         * doc/posix-functions/ttyname_r.texi: Mention the new module.
4793
4794 2010-03-20  Bruno Haible  <bruno@clisp.org>
4795
4796         signal: Undefine macro definitions in C++ mode.
4797         * lib/signal.in.h (sigismember, sigemptyset, sigaddset, sigdelset,
4798         sigfillset): Undefine macro definitions from the system header in C++
4799         mode.
4800         Reported by John W. Eaton <jwe@gnu.org>.
4801
4802 2010-03-20  Bruno Haible  <bruno@clisp.org>
4803
4804         Ensure no #include statements inside extern "C" { ... }.
4805         * lib/obstack.h: Shrink extern "C" { ... } region so that it does not
4806         contain #include statements.
4807         * lib/time.in.h: Likewise.
4808
4809 2010-03-20  Bruno Haible  <bruno@clisp.org>
4810
4811         Make _GL_WARN_ON_USE usable in C++ and C mode in the same compilation.
4812         * build-aux/warn-on-use.h (_GL_WARN_EXTERN_C): New macro.
4813         (_GL_WARN_ON_USE, _GL_WARN_ON_USE_CXX): Likewise.
4814         Reported by John W. Eaton <jwe@gnu.org>.
4815
4816 2010-03-20  Bruno Haible  <bruno@clisp.org>
4817
4818         * m4/unlink.m4 (gl_FUNC_UNLINK): Fix last commit.
4819         Reported by Jim Meyering.
4820
4821 2010-03-20  Bruno Haible  <bruno@clisp.org>
4822
4823         pipe: Set errno upon failure.
4824         * lib/pipe.h: Specify that when -1 is returned, errno is set.
4825         * lib/pipe.c (create_pipe): Set errno when returning -1. Use the right
4826         errno value in error message.
4827
4828 2010-03-20  Bruno Haible  <bruno@clisp.org>
4829             Jim Meyering  <meyering@redhat.com>
4830
4831         lchown: Avoid "unused variable" warning.
4832         * lib/lchown.c (rpl_lchown): Move variable 'st' into #if block.
4833
4834 2010-03-20  Bruno Haible  <bruno@clisp.org>
4835
4836         Work around unlink() bug on MacOS X 10.5.6.
4837         * lib/unlink.c (rpl_unlink): If UNLINK_PARENT_BUG is defined, fail when
4838         attempting to unlink a parent directory.
4839         * m4/unlink.m4 (gl_FUNC_UNLINK): Require AC_CANONICAL_HOST. Test for
4840         MacOS X 10.5 bug. If the bug is present, define UNLINK_PARENT_BUG and
4841         activate for the replacement function.
4842         * doc/posix-functions/unlink.texi: Mention the MacOS X 10.5 bug.
4843
4844 2010-03-20  Bruno Haible  <bruno@clisp.org>
4845
4846         Fix link errors on Solaris 8.
4847         * modules/dirent-tests (test_dirent_c___LDADD): Add LIB_NANOSLEEP.
4848         * modules/wctype-tests (test_wctype_c___LDADD): Likewise.
4849
4850 2010-03-19  Jim Meyering  <meyering@redhat.com>
4851
4852         regcomp.c: make non-_LIBC implementation of build_range_exp consistent
4853         The _LIBC implementation of build_range_exp correctly honors the
4854         RE_NO_EMPTY_RANGES flag when checking for reversed range endpoints.
4855         However, the non-_LIBC implementation would ignore that syntax-bit
4856         flag and return REG_ERANGE unconditionally.
4857         This change makes it honor that flag.
4858         * lib/regcomp.c (build_range_exp) [!_LIBC]: Add a parameter: "syntax".
4859         Make two pointer parameters "const".
4860         Use "syntax" bits in order to honor RE_NO_EMPTY_RANGES.
4861         (parse_bracket_exp): Update caller.
4862
4863         regex.m4: correct the reversed range endpoint ([b-a]) test
4864         * m4/regex.m4: When requiring that [b-a] evoke failure,
4865         use RE_NO_EMPTY_RANGES.  This makes this entire configure-time
4866         test pass once again for x86-based systems.
4867
4868 2010-03-19  Bruno Haible  <bruno@clisp.org>
4869
4870         scandir: Fix link error on Solaris 8.
4871         * lib/scandir.c (_D_EXACT_NAMLEN, _D_ALLOC_NAMLEN): New fallback
4872         macros.
4873
4874 2010-03-19  Bruno Haible  <bruno@clisp.org>
4875
4876         getusershell: Fix documentation.
4877         * doc/glibc-functions/endusershell.texi: Refer to the getusershell
4878         module.
4879         * doc/glibc-functions/setusershell.texi: Likewise.
4880
4881         getusershell: Provide declaration, missing on Solaris 9.
4882         * lib/unistd.in.h (getusershell, setusershell, endusershell): Declare
4883         also if HAVE_GETUSERSHELL && !HAVE_DECL_GETUSERSHELL.
4884         * m4/getusershell.m4 (gl_FUNC_GETUSERSHELL): When the function exists,
4885         check whether it is declared. Set HAVE_DECL_GETUSERSHELL.
4886         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
4887         HAVE_DECL_GETUSERSHELL, not HAVE_GETUSERSHELL.
4888         * modules/unistd (Makefile.am): Substitute HAVE_DECL_GETUSERSHELL, not
4889         HAVE_GETUSERSHELL.
4890         * doc/glibc-functions/getusershell.texi: Mention the Solaris problem.
4891
4892 2010-03-19  Bruno Haible  <bruno@clisp.org>
4893
4894         wctype: Provide iswblank function.
4895         * lib/wctype.in.h (iswblank): Provide a replacement also when iswcntrl
4896         exists and is fine.
4897         * m4/wctype_h.m4 (gl_WCTYPE_H): Also check whether iswcntrl exists.
4898         * modules/wctype (Makefile.am): Substitute HAVE_ISWBLANK.
4899         * tests/test-wctype.c (main): Re-enable the iswblank tests.
4900         * doc/posix-functions/iswblank.texi: Update.
4901
4902 2010-03-19  Bruno Haible  <bruno@clisp.org>
4903
4904         Tests of module 'pty' in C++ mode.
4905         * modules/pty-tests: New file.
4906         * tests/test-pty-c++.cc: New file.
4907         * m4/pty_h.m4 (gl_PTY_MODULE_INDICATOR): Invoke gl_MODULE_INDICATOR.
4908
4909 2010-03-19  Eric Blake  <eblake@redhat.com>
4910
4911         logb: fix documentation
4912         * doc/posix-functions/logb.texi (logb): Gnulib fixes the cygwin
4913         1.5 declaration bug.
4914
4915         forkpty, openpty: prefer glibc's const-safe prototype
4916         * lib/forkpty.c (rpl_forkpty): New file.
4917         * lib/openpty.c (rpl_openpty): Likewise.
4918         * modules/forkpty (Files): Distribute it.
4919         * modules/openpty (Files): Likewise.
4920         * m4/pty_h.m4 (gl_PTY_H_DEFAULTS): Add new witnesses.  Move decl
4921         check...
4922         * m4/pty.m4 (gl_FORKPTY, gl_OPENPTY): ...here.  Request
4923         replacement for for non-const BSD signature.
4924         * modules/pty (Makefile.am): Substitute witnesses.
4925         * lib/pty.in.h (forkpty, openpty): Declare replacements.
4926         * tests/test-forkpty.c: Update signature check.
4927         * tests/test-openpty.c: Likewise.
4928         * doc/glibc-functions/forkpty.texi (forkpty): Document the fix.
4929         * doc/glibc-functions/openpty.texi (openpty): Likewise.
4930
4931         forkpty, openpty: split functions into new modules
4932         * modules/pty (Makefile.am): Substitute new witnesses.
4933         (Libraries): Move library detection...
4934         * modules/forkpty: ...into new module.
4935         * modules/openpty: Another new module.
4936         * modules/pty-tests: Rename and split...
4937         * modules/forkpty-tests: ...to this...
4938         * modules/openpty-tests: ...and this.
4939         * tests/test-pty.c: Rename and split...
4940         * tests/test-forkpty.c: ...to this...
4941         * tests/test-openpty.c: ...and this.
4942         * m4/pty_h.m4 (gl_PTY_H_DEFAULTS): Add new witnesses.
4943         (gl_PTY): Split library searching...
4944         * m4/pty.m4 (gl_PTY_LIB): ...into new file.
4945         (gl_FORKPTY, gl_OPENPTY): New macros.
4946         * lib/pty.in.h (forkpty, openpty): Honor new witnesses.
4947         * NEWS: Mention the split.
4948         * MODULES.html.sh (Misc): Document the modules.
4949         * doc/glibc-functions/forkpty.texi (forkpty): Likewise.
4950         * doc/glibc-functions/openpty.texi (openpty): Likewise.
4951
4952         pty: improve replacement header
4953         * lib/pty.in.h: New file.
4954         * modules/pty (Files): Ship it.
4955         (Makefile.am): Always build replacement.
4956         * m4/pty.m4: Rename...
4957         * m4/pty_h.m4: ...to this.
4958         (gl_PTY): Modernize setting of witness macros; update check of
4959         forkpty to take proper advantage of cache.
4960         (gl_PTY_MODULE_INDICATOR, gl_PTY_H_DEFAULTS): New macros.
4961
4962         getopt: avoid compiler warning
4963         * lib/getopt.c (attribute_hidden): Remove unused macro.
4964
4965 2010-03-18  Bruno Haible  <bruno@clisp.org>
4966
4967         Fix link errors on Solaris 8.
4968         * modules/iconv-h-tests (test_iconv_h_c___LDADD): Add LIB_NANOSLEEP.
4969         * modules/search-tests (test_search_c___LDADD): Likewise.
4970         * modules/signal-tests (test_signal_c___LDADD): Likewise.
4971         * modules/spawn-tests (test_spawn_c___LDADD): Likewise.
4972         * modules/stdio-tests (test_stdio_c___LDADD): Likewise.
4973         * modules/sys_select-tests (test_sys_select_c___LDADD): Likewise.
4974         * modules/sys_socket-tests (test_sys_socket_c___LDADD): Likewise.
4975         * modules/sys_time-tests (test_sys_time_c___LDADD): Likewise.
4976         * modules/wchar-tests (test_wchar_c___LDADD): Likewise.
4977
4978 2010-03-18  Bruno Haible  <bruno@clisp.org>
4979
4980         Fix bug introduced on 2010-03-14.
4981         * m4/spawn_h.m4 (gl_HAVE_POSIX_SPAWN): New macro.
4982         (gl_SPAWN_H): Require it.
4983         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_BODY): Likewise.
4984         Reported by Simon Josefsson.
4985
4986 2010-03-18  Bruno Haible  <bruno@clisp.org>
4987
4988         Fix typo introduced on 2009-12-31.
4989         * m4/spawn_h.m4 (gl_SPAWN_H): Check for the declaration of
4990         posix_spawn_file_actions_adddup2.
4991
4992 2010-03-17  Bert Wesarg  <bert.wesarg@googlemail.com>  (tiny change)
4993         and Eric Blake  <eblake@redhat.com>
4994
4995         test-vc-list-files-git: make more robust
4996         * tests/test-vc-list-files-git.sh: Unset problematic environment
4997         variables.  Chain commands together.
4998
4999 2010-03-17  Ludovic Courtès <ludo@gnu.org>  (tiny change)
5000
5001         * m4/pty.m4: Unset $ac_cv_have_decl_forkpty before the second
5002         `AC_CHECK_DECL' invocation.
5003
5004 2010-03-15  Sergey Poznyakoff  <gray@gnu.org.ua>
5005
5006         * lib/inttostr.c (inttostr): Make sure the invocation of verify
5007         appears before executable statements. Suggested by Petr Sumbera
5008         <Petr.Sumbera@Sun.COM>.
5009
5010 2010-03-14  Bruno Haible  <bruno@clisp.org>
5011
5012         * tests/test-flock.c (test_exclusive): Comment out a test that causes
5013         portability problems. Instead use a simpler test.
5014         (main): Check that invalid arguments are rejected only on Linux.
5015
5016 2010-03-14  Bruno Haible  <bruno@clisp.org>
5017
5018         Fix bug introduced on 2009-12-31.
5019         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Invoke
5020         gl_PREREQ_SYS_H_WINSOCK2 always.
5021         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Likewise. Remove
5022         SYS_SOCKET_H variable.
5023         * m4/sys_file_h.m4 (gl_HEADER_SYS_FILE_H): Remove test for flock.
5024         Update comments.
5025         * m4/ctype.m4 (gl_CTYPE_H): Update comments.
5026         * m4/langinfo_h.m4 (gl_LANGINFO_H): Likewise.
5027         * m4/sys_times_h.m4 (gl_SYS_TIMES_H): Likewise.
5028         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_H): Likewise.
5029         * m4/sys_wait_h.m4 (gl_SYS_WAIT_H): Likewise.
5030
5031 2010-03-14  Bruno Haible  <bruno@clisp.org>
5032
5033         Fix values returned by sinl, cosl.
5034         * lib/trigl.h: Add specification comments.
5035         * lib/sincosl.c (kernel_sinl, kernel_cosl): Fix comments and formula
5036         that combines the values from the precomputed table with the values of
5037         the Chebyshev polynomials.
5038
5039 2010-03-14  Bruno Haible  <bruno@clisp.org>
5040
5041         Fix compilation error when modules 'posix_spawn[p]' are not used.
5042         * m4/spawn_h.m4 (gl_SPAWN_H): Set HAVE_POSIX_SPAWN here.
5043         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_BODY): ... not here.
5044
5045 2010-03-14  Bruno Haible  <bruno@clisp.org>
5046
5047         Fix compilation error on mingw when module 'time_r' is not used.
5048         * lib/time.in.h (localtime_r, gmtime_r): Declare only if GNULIB_TIME_R
5049         is 1.
5050         * tests/test-time-c++.cc (localtime_r, gmtime_r): Likewise.
5051         * modules/time_r (configure.ac): Invoke gl_TIME_MODULE_INDICATOR.
5052         * modules/time (Makefile.am): Substitute GNULIB_TIME_R.
5053         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize GNULIB_TIME_R.
5054
5055 2010-03-14  Bruno Haible  <bruno@clisp.org>
5056
5057         Fix compilation error with Sun C.
5058         * lib/strtol.c: Use LLONG_MIN instead of GCC specific LONG_LONG_MIN.
5059         Use LLONG_MAX instead of GCC specific LONG_LONG_MAX. Use ULLONG_MAX
5060         instead of GCC specific ULONG_LONG_MAX.
5061         * lib/xstrtoll.c: Likewise.
5062         * lib/xstrtoull.c: Likewise.
5063
5064 2010-03-13  Bruno Haible  <bruno@clisp.org>
5065
5066         Allow the user to disable C++ code and tests.
5067         * m4/ansi-c++.m4 (gl_CXX_CHOICE): New macro.
5068         (gl_PROG_ANSI_CXX): Require it.
5069
5070 2010-03-13  Bruno Haible  <bruno@clisp.org>
5071
5072         * DEPENDENCIES (libtool): Mention libtool 2.2.x requirement in special
5073         cases.
5074
5075 2010-03-13  Bruno Haible  <bruno@clisp.org>
5076
5077         Test that gnulib does not break the standard C++ headers.
5078         * tests/test-locale-c++2.cc: New file.
5079         * modules/locale-tests (Files): Add it.
5080         (Makefile.am): Compile it for test-locale-c++.
5081         * tests/test-math-c++2.cc: New file.
5082         * modules/math-tests (Files): Add it.
5083         (Makefile.am): Compile it for test-math-c++.
5084         * tests/test-signal-c++2.cc: New file.
5085         * modules/signal-tests (Files): Add it.
5086         (Makefile.am): Compile it for test-signal-c++.
5087         * tests/test-stdio-c++2.cc: New file.
5088         * modules/stdio-tests (Files): Add it.
5089         (Makefile.am): Compile it for test-stdio-c++.
5090         * tests/test-stdlib-c++2.cc: New file.
5091         * modules/stdlib-tests (Files): Add it.
5092         (Makefile.am): Compile it for test-stdlib-c++.
5093         * tests/test-string-c++2.cc: New file.
5094         * modules/string-tests (Files): Add it.
5095         (Makefile.am): Compile it for test-string-c++.
5096         * tests/test-time-c++2.cc: New file.
5097         * modules/time-tests (Files): Add it.
5098         (Makefile.am): Compile it for test-time-c++.
5099         Reported by John W. Eaton <jwe@gnu.org>.
5100
5101 2010-03-13  Bruno Haible  <bruno@clisp.org>
5102
5103         * gnulib-tool (func_usage): Clarify which options are available for
5104         --create-testdir and --create-megatestdir.
5105
5106 2010-03-13  Bruno Haible  <bruno@clisp.org>
5107
5108         Fix compilation error with glibc >= 2.10 and g++ >= 4.4.
5109         * build-aux/warn-on-use.h (_GL_WARN_ON_USE_CXX): New macro.
5110         * build-aux/c++defs.h (_GL_CXXALIASWARN1): New macro.
5111         * lib/string.in.h (memchr, memrchr, rawmemchr, strchrnul, strpbrk,
5112         strstr, strcasestr): Use _GL_CXXALIASWARN1 instead of _GL_CXXALIASWARN
5113         when appropriate.
5114         Reported by Jim Meyering.
5115
5116 2010-03-12  Simon Josefsson  <simon@josefsson.org>
5117
5118         * gnulib-tool (func_import): Explain origin of code.
5119
5120 2010-03-12  Bruno Haible  <bruno@clisp.org>
5121
5122         Fix problem with automake's definition of CXXLINK.
5123         * gnulib-tool (func_create_testdir): After LT_INIT, also use LT_LANG.
5124         Reported by Simon Josefsson and Ludovic Courtès.
5125
5126 2010-03-12  Bruno Haible  <bruno@clisp.org>
5127
5128         * doc/gnulib-intro.texi (Steady Development): Mention Ian Beckwith's
5129         stable releases.
5130
5131 2010-03-11  Bruno Haible  <bruno@clisp.org>
5132
5133         Fix problems with overloaded C++ definitions of memchr, strpbrk, etc.
5134         * build-aux/c++defs.h (_GL_CXXALIAS_SYS_CAST2): Make it work regardless
5135         whether the system provides one variant or multiple variants of the
5136         function.
5137         * lib/string.in.h (memchr, strpbrk): Use _GL_CXXALIAS_SYS_CAST2 for all
5138         C++ compilers.
5139         (memrchr, rawmemchr, strchrnul, strstr, strcasestr): Use
5140         _GL_CXXALIAS_SYS_CAST2 instead of _GL_CXXALIAS_SYS.
5141         Reported by Jim Meyering.
5142
5143 2010-03-09  Simon Josefsson  <simon@josefsson.org>
5144
5145         * gnulib-tool (LIBTOOLPATH): Fix cut'n'paste bug.
5146
5147 2010-03-08  Bruno Haible  <bruno@clisp.org>
5148
5149         gnulib-tool: Add support for --libtool in --create-testdir.
5150         * gnulib-tool (LIBTOOLPATH, LIBTOOLIZE): New variables.
5151         (func_create_testdir): Emit LT_INIT invocations. Invoke LIBTOOLIZE.
5152
5153 2010-03-08  Eric Blake  <eblake@redhat.com>
5154
5155         gnulib-tool.texi: mention possibility of git submodule
5156         * doc/gnulib-tool.texi (VCS Issues): Add details about using git
5157         submodules.
5158         * doc/.gitignore: Ignore another generated file.
5159
5160 2010-03-08  Karl Berry  <karl@gnu.org>
5161
5162         * doc/gnulib-tool.texi (VCS Issues): Mention third option
5163         of committing gnulib files while skipping others.
5164
5165 2010-03-07  Bruno Haible  <bruno@clisp.org>
5166
5167         Tests of module 'wctype' in C++ mode.
5168         * tests/test-wctype-c++.cc: New file.
5169         * modules/wctype-tests (Files): Add it and tests/signature.h.
5170         (Depends-on): Add ansi-c++-opt.
5171         (Makefile.am): Arrange to compile and run test-wctype-c++.
5172
5173         Tests of module 'wchar' in C++ mode.
5174         * tests/test-wchar-c++.cc: New file.
5175         * modules/wchar-tests (Files): Add it and tests/signature.h.
5176         (Depends-on): Add ansi-c++-opt.
5177         (Makefile.am): Arrange to compile and run test-wchar-c++.
5178         * m4/wchar_h.m4 (gl_WCHAR_MODULE_INDICATOR): Invoke
5179         gl_MODULE_INDICATOR.
5180
5181         Tests of module 'unistd' in C++ mode.
5182         * tests/test-unistd-c++.cc: New file.
5183         * modules/unistd-tests (Files): Add it and tests/signature.h.
5184         (Depends-on): Add ansi-c++-opt.
5185         (Makefile.am): Arrange to compile and run test-unistd-c++.
5186         * m4/unistd_h.m4 (gl_UNISTD_MODULE_INDICATOR): Invoke
5187         gl_MODULE_INDICATOR.
5188
5189         Tests of module 'time' in C++ mode.
5190         * tests/test-time-c++.cc: New file.
5191         * modules/time-tests (Files): Add it and tests/signature.h.
5192         (Depends-on): Add ansi-c++-opt.
5193         (Makefile.am): Arrange to compile and run test-time-c++.
5194         * m4/time_h.m4 (gl_TIME_MODULE_INDICATOR): Invoke gl_MODULE_INDICATOR.
5195
5196         Tests of module 'sys_time' in C++ mode.
5197         * tests/test-sys_time-c++.cc: New file.
5198         * modules/sys_time-tests (Files): Add it and tests/signature.h.
5199         (Depends-on): Add ansi-c++-opt.
5200         (Makefile.am): Arrange to compile and run test-sys_time-c++.
5201         * m4/sys_time_h.m4 (gl_SYS_TIME_MODULE_INDICATOR): Invoke
5202         gl_MODULE_INDICATOR.
5203
5204         Tests of module 'sys_stat' in C++ mode.
5205         * tests/test-sys_stat-c++.cc: New file.
5206         * modules/sys_stat-tests (Files): Add it and tests/signature.h.
5207         (Depends-on): Add ansi-c++-opt.
5208         (Makefile.am): Arrange to compile and run test-sys_stat-c++.
5209         * m4/sys_stat_h.m4 (gl_SYS_STAT_MODULE_INDICATOR): Invoke
5210         gl_MODULE_INDICATOR.
5211
5212         Tests of module 'sys_socket' in C++ mode.
5213         * tests/test-sys_socket-c++.cc: New file.
5214         * modules/sys_socket-tests (Files): Add it and tests/signature.h.
5215         (Depends-on): Add ansi-c++-opt.
5216         (Makefile.am): Arrange to compile and run test-sys_socket-c++.
5217         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_MODULE_INDICATOR): Invoke
5218         gl_MODULE_INDICATOR.
5219
5220         Tests of module 'sys_select' in C++ mode.
5221         * tests/test-sys_select-c++.cc: New file.
5222         * modules/sys_select-tests (Files): Add it and tests/signature.h.
5223         (Depends-on): Add ansi-c++-opt.
5224         (Makefile.am): Arrange to compile and run test-sys_select-c++.
5225         * m4/sys_select_h.m4 (gl_SYS_SELECT_MODULE_INDICATOR): Invoke
5226         gl_MODULE_INDICATOR.
5227
5228         Tests of module 'sys_ioctl' in C++ mode.
5229         * tests/test-sys_ioctl-c++.cc: New file.
5230         * modules/sys_ioctl-tests (Files): Add it and tests/signature.h.
5231         (Depends-on): Add ansi-c++-opt.
5232         (Makefile.am): Arrange to compile and run test-sys_ioctl-c++.
5233         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_MODULE_INDICATOR): Invoke
5234         gl_MODULE_INDICATOR.
5235
5236         Tests of module 'string' in C++ mode.
5237         * tests/test-string-c++.cc: New file.
5238         * modules/string-tests (Files): Add it and tests/signature.h.
5239         (Depends-on): Add ansi-c++-opt.
5240         (Makefile.am): Arrange to compile and run test-string-c++.
5241         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR): Invoke
5242         gl_MODULE_INDICATOR.
5243
5244         Tests of module 'stdlib' in C++ mode.
5245         * tests/test-stdlib-c++.cc: New file.
5246         * modules/stdlib-tests (Files): Add it and tests/signature.h.
5247         (Depends-on): Add ansi-c++-opt.
5248         (Makefile.am): Arrange to compile and run test-stdlib-c++.
5249         * m4/stdlib_h.m4 (gl_STDLIB_MODULE_INDICATOR): Invoke
5250         gl_MODULE_INDICATOR.
5251
5252         Tests of module 'stdio' in C++ mode.
5253         * tests/test-stdio-c++.cc: New file.
5254         * modules/stdio-tests (Files): Add it and tests/signature.h.
5255         (Depends-on): Add ansi-c++-opt.
5256         (Makefile.am): Arrange to compile and run test-stdio-c++.
5257         * m4/stdio_h.m4 (gl_STDIO_MODULE_INDICATOR): Invoke
5258         gl_MODULE_INDICATOR.
5259
5260         Tests of module 'spawn' in C++ mode.
5261         * tests/test-spawn-c++.cc: New file.
5262         * modules/spawn-tests (Files): Add it and tests/signature.h.
5263         (Depends-on): Add ansi-c++-opt.
5264         (Makefile.am): Arrange to compile and run test-spawn-c++.
5265         * m4/spawn_h.m4 (gl_SPAWN_MODULE_INDICATOR): Invoke
5266         gl_MODULE_INDICATOR.
5267
5268         Tests of module 'signal' in C++ mode.
5269         * tests/test-signal-c++.cc: New file.
5270         * modules/signal-tests (Files): Add it and tests/signature.h.
5271         (Depends-on): Add ansi-c++-opt.
5272         (Makefile.am): Arrange to compile and run test-signal-c++.
5273         * m4/signal_h.m4 (gl_SIGNAL_MODULE_INDICATOR): Invoke
5274         gl_MODULE_INDICATOR.
5275
5276         Tests of module 'search' in C++ mode.
5277         * tests/test-search-c++.cc: New file.
5278         * modules/search-tests (Files): Add it and tests/signature.h.
5279         (Depends-on): Add ansi-c++-opt.
5280         (Makefile.am): Arrange to compile and run test-search-c++.
5281         * m4/search_h.m4 (gl_SEARCH_MODULE_INDICATOR): Invoke
5282         gl_MODULE_INDICATOR.
5283
5284         Tests of module 'math' in C++ mode.
5285         * tests/test-math-c++.cc: New file.
5286         * modules/math-tests (Files): Add it and tests/signature.h.
5287         (Depends-on): Add ansi-c++-opt.
5288         (Makefile.am): Arrange to compile and run test-math-c++.
5289         * m4/math_h.m4 (gl_MATH_MODULE_INDICATOR): Invoke gl_MODULE_INDICATOR.
5290
5291         Tests of module 'locale' in C++ mode.
5292         * tests/test-locale-c++.cc: New file.
5293         * modules/locale-tests (Files): Add it and tests/signature.h.
5294         (Depends-on): Add ansi-c++-opt.
5295         (Makefile.am): Arrange to compile and run test-locale-c++.
5296         * m4/locale_h.m4 (gl_LOCALE_MODULE_INDICATOR): Invoke
5297         gl_MODULE_INDICATOR.
5298
5299         Tests of module 'langinfo' in C++ mode.
5300         * tests/test-langinfo-c++.cc: New file.
5301         * modules/langinfo-tests (Files): Add it and tests/signature.h.
5302         (Depends-on): Add ansi-c++-opt.
5303         (Makefile.am): Arrange to compile and run test-langinfo-c++.
5304         * m4/langinfo_h.m4 (gl_LANGINFO_MODULE_INDICATOR): Invoke
5305         gl_MODULE_INDICATOR.
5306
5307         Tests of module 'iconv-h' in C++ mode.
5308         * tests/test-iconv-h-c++.cc: New file.
5309         * modules/iconv-h-tests (Files): Add it and tests/signature.h.
5310         (Depends-on): Add ansi-c++-opt.
5311         (Makefile.am): Arrange to compile and run test-iconv-h-c++.
5312
5313         Tests of module 'glob' in C++ mode.
5314         * tests/test-glob-c++.cc: New file.
5315         * modules/glob-tests (Files): Add it.
5316         (Depends-on): Add ansi-c++-opt.
5317         (Makefile.am): Arrange to compile and run test-glob-c++.
5318
5319         Tests of module 'fcntl-h' in C++ mode.
5320         * tests/test-fcntl-h-c++.cc: New file.
5321         * modules/fcntl-h-tests (Files): Add it and tests/signature.h.
5322         (Depends-on): Add ansi-c++-opt.
5323         (Makefile.am): Arrange to compile and run test-fcntl-h-c++.
5324         * m4/fcntl_h.m4 (gl_FCNTL_MODULE_INDICATOR): Invoke
5325         gl_MODULE_INDICATOR.
5326
5327         Tests of module 'dirent' in C++ mode.
5328         * tests/test-dirent-c++.cc: New file.
5329         * modules/dirent-tests (Files): Add it and tests/signature.h.
5330         (Depends-on): Add ansi-c++-opt.
5331         (Makefile.am): Arrange to compile and run test-dirent-c++.
5332         * m4/dirent_h.m4 (gl_DIRENT_MODULE_INDICATOR): Invoke
5333         gl_MODULE_INDICATOR.
5334
5335         New module 'ansi-c++-opt'.
5336         * modules/ansi-c++-opt: New file.
5337         * m4/ansi-c++.m4: New file, from GNU gettext with modifications.
5338
5339         Document C++ namespace mode.
5340         * doc/gnulib.texi (A C++ namespace for gnulib): New section.
5341
5342         wctype: Avoid #define replacements in C++ mode.
5343         * lib/wctype.in.h: Include c++defs.h, warn-on-use.h.
5344         (iswalnum, iswalpha, iswblank, iswcntrl, iswdigit, iswgraph, iswlower,
5345         iswprint, iswpunct, iswspace, iswupper, iswxdigit, towlower, towupper):
5346         In C++, define a namespaced alias symbol.
5347         * m4/wctype_h.m4 (gl_WCTYPE_H): Don't set WCTYPE_H.
5348         * modules/wctype (Depends-on): Add c++defs, warn-on-use.
5349         (Makefile.am): Provide a wctype.h replacement always. Update wctype.h
5350         rule.
5351
5352         wchar: Avoid #define replacements in C++ mode.
5353         * lib/wchar.in.h: Include c++defs.h.
5354         (btowc, wctob, mbsinit, mbrtowc, mbrlen, mbsrtowcs, mbsnrtowcs,
5355         wcrtomb, wcsrtombs, wcsnrtombs): In C++, define a namespaced alias
5356         symbol.
5357         (wcwidth): Likewise. Fix prototype to be POSIX compliant.
5358         * modules/wchar (Depends-on): Add c++defs.
5359         (Makefile.am): Update wchar.h rule.
5360
5361         unistd: Avoid #define replacements in C++ mode.
5362         * lib/unistd.in.h: Include c++defs.h.
5363         (chown, close, dup, dup2, dup3, euidaccess, faccessat, fchdir,
5364         fchownat, fsync, ftruncate, getcwd, getdomainname, getdtablesize,
5365         getgroups, gethostname, getlogin, getlogin_r, getpagesize,
5366         getusershell, setusershell, endusershell, lchown, link, linkat, lseek,
5367         pipe2, pread, readlink, readlinkat, rmdir, sleep, symlink, symlinkat,
5368         unlink, unlinkat, usleep, write): In C++, define a namespaced alias
5369         symbol.
5370         (environ): Update.
5371         * modules/unistd (Depends-on): Add c++defs.
5372         (Makefile.am): Update unistd.h rule.
5373
5374         time: Avoid #define replacements in C++ mode.
5375         * lib/time.in.h: Include c++defs.h, warn-on-use.h.
5376         (nanosleep, mktime, localtime_r, gmtime_r, strptime, timegm): In C++,
5377         define a namespaced alias symbol.
5378         * m4/time_h.m4 (gl_TIME_MODULE_INDICATOR): New macro.
5379         (gl_HEADER_TIME_H_DEFAULTS): Initialize also GNULIB_MKTIME,
5380         GNULIB_NANOSLEEP, GNULIB_STRPTIME, GNULIB_TIMEGM.
5381         * modules/time (Depends-on): Add c++defs, warn-on-use.
5382         (Makefile.am): Update time.h rule.
5383         * modules/mktime (configure.ac): Invoke gl_TIME_MODULE_INDICATOR.
5384         * modules/nanosleep (configure.ac): Likewise.
5385         * modules/strptime (configure.ac): Likewise.
5386         * modules/timegm (configure.ac): Likewise.
5387
5388         sys_time: Avoid #define replacements in C++ mode.
5389         * lib/sys_time.in.h: Include c++defs.h.
5390         (gettimeofday): In C++, define a namespaced alias symbol.
5391         * modules/sys_time (Depends-on): Add c++defs.
5392         (Makefile.am): Update sys/time.h rule.
5393
5394         sys_stat: Avoid #define replacements in C++ mode.
5395         * lib/sys_stat.in.h: Include c++defs.h.
5396         (fchmodat, fstat, fstatat, futimens, lchmod, lstat, mkdir, mkdirat,
5397         mkfifo, mkfifoat, mknod, mknodat, utimensat): In C++, define a
5398         namespaced alias symbol.
5399         In C++, define a namespaced alias symbol.
5400         * modules/sys_stat (Depends-on): Add c++defs.
5401         (Makefile.am): Update sys/stat.h rule.
5402
5403         sys_socket: Avoid #define replacements in C++ mode.
5404         * lib/sys_socket.in.h: Handle the case of recursive include on Cygwin.
5405         Include c++defs.h. Include warn-on-use.h earlier. Enable the function
5406         definitions also when the system has a <sys/socket.h>.
5407         (socket, connect, accept, bind, getpeername, getsockname, getsockopt,
5408         listen, recv, send, recvfrom, sendto, setsockopt, shutdown, accept4):
5409         In C++, define a namespaced alias symbol.
5410         * modules/sys_socket (Depends-on): Add c++defs.
5411         (Makefile.am): Update sys/socket.h rule.
5412
5413         sys_select: Avoid #define replacements in C++ mode.
5414         * lib/sys_select.in.h: Include c++defs.h. Enable the function
5415         definitions also when the system has a <sys/select.h>.
5416         (select): In C++, define a namespaced alias symbol.
5417         * modules/sys_select (Depends-on): Add c++defs.
5418         (Makefile.am): Update sys/select.h rule.
5419
5420         sys_ioctl: Avoid #define replacements in C++ mode.
5421         * lib/sys_ioctl.in.h: Include c++defs.h.
5422         (ioctl): In C++, define a namespaced alias symbol.
5423         * modules/sys_ioctl (Depends-on): Add c++defs.
5424         (Makefile.am): Update sys/ioctl.h rule.
5425
5426         string: Avoid #define replacements in C++ mode.
5427         * lib/string.in.h: Include c++defs.h.
5428         (stpncpy): Define to rpl_stpncpy, not gnu_stpncpy.
5429         (memchr, memmem, mempcpy, memrchr, rawmemchr, stpcpy, stpncpy,
5430         strchrnul, strdup, strndup, strnlen, strpbrk, strsep, strstr,
5431         strcasestr, strtok_r, mbslen, mbschr, mbsrchr, mbspbrk, strerror,
5432         strsignal, strverscmp): In C++, define a namespaced alias symbol.
5433         * modules/string (Depends-on): Add c++defs.
5434         (Makefile.am): Update string.h rule.
5435
5436         stdlib: Avoid #define replacements in C++ mode.
5437         * lib/stdlib.in.h: Include c++defs.h.
5438         (atoll, calloc, canonicalize_file_name, getloadavg, getsubopt, malloc,
5439         mkdtemp, mkostemp, mkostemps, mkstemp, mkstemps, putenv, random_r,
5440         srandom_r, initstate_r, setstate_r, realloc, realpath, rpmatch, setenv,
5441         strtod, strtoll, strtoull, unsetenv): In C++, define a namespaced alias
5442         symbol.
5443         * modules/stdlib (Depends-on): Add c++defs.
5444         (Makefile.am): Update stdlib.h rule.
5445
5446         stdio: Avoid #define replacements in C++ mode.
5447         * lib/stdio.in.h: Include c++defs.h.
5448         (dprintf, fclose, fflush, fopen, fprintf, fpurge, fputc, fputs,
5449         freopen, fseek, fseeko, ftell, ftello, fwrite, getdelim, getline,
5450         obstack_printf, obstack_vprintf, perror, popen, printf, fputc, putchar,
5451         puts, remove, rename, renameat, snprintf, sprintf, asprintf, vasprintf,
5452         vdprintf, vfprintf, vprintf, vsnprintf, vsprintf): In C++, define a
5453         namespaced alias symbol.
5454         * modules/stdio (Depends-on): Add c++defs.
5455         (Makefile.am): Update stdio.h rule.
5456
5457         spawn: Avoid #define replacements in C++ mode.
5458         * lib/spawn.in.h: Include c++defs.h.
5459         (posix_spawn, posix_spawnp, posix_spawnattr_init,
5460         posix_spawnattr_destroy, posix_spawnattr_getsigdefault,
5461         posix_spawnattr_setsigdefault, posix_spawnattr_getsigmask,
5462         posix_spawnattr_setsigmask, posix_spawnattr_getflags,
5463         posix_spawnattr_setflags, posix_spawnattr_getpgroup,
5464         posix_spawnattr_setpgroup, posix_spawnattr_getschedpolicy,
5465         posix_spawnattr_setschedpolicy, posix_spawnattr_getschedparam,
5466         posix_spawnattr_setschedparam, posix_spawn_file_actions_init,
5467         posix_spawn_file_actions_destroy, posix_spawn_file_actions_addopen,
5468         posix_spawn_file_actions_addclose, posix_spawn_file_actions_adddup2):
5469         In C++, define a namespaced alias symbol.
5470         * modules/spawn (Depends-on): Add c++defs.
5471         (Makefile.am): Update spawn.h rule.
5472
5473         signal: Avoid #define replacements in C++ mode.
5474         * lib/signal.in.h: Include c++defs.h.
5475         (sigismember, sigemptyset, sigaddset, sigdelset, sigfillset,
5476         sigpending, sigprocmask, signal, raise, sigaction): In C++, define a
5477         namespaced alias symbol.
5478         * modules/signal (Depends-on): Add c++defs.
5479         (Makefile.am): Update signal.h rule.
5480
5481         search: Avoid #define replacements in C++ mode.
5482         * lib/search.in.h: Include c++defs.h.
5483         (_gl_search_compar_fn, _gl_search_action_fn): New types.
5484         (tsearch, tfind, tdelete, twalk): In C++, define a namespaced alias
5485         symbol.
5486         * modules/search (Depends-on): Add c++defs.
5487         (Makefile.am): Update search.h rule.
5488
5489         math: Avoid #define replacements in C++ mode.
5490         * lib/math.in.h: Include c++defs.h.
5491         (frexp, acosl, asinl, atanl, ceilf, ceill, cosl, expl, floorf, floorl,
5492         frexpl, ldexpl, logl, roundf, round, roundl, sinl, sqrtl, tanl, truncf,
5493         trunc, truncl): In C++, define a namespaced alias symbol.
5494         * modules/math (Depends-on): Add c++defs.
5495         (Makefile.am): Update math.h rule.
5496
5497         locale: Avoid #define replacements in C++ mode.
5498         * lib/locale.in.h: Include c++defs.h.
5499         (duplocale): In C++, define a namespaced alias symbol.
5500         * m4/locale_h.m4 (gl_LOCALE_H_DEFAULTS): Initialize HAVE_DUPLOCALE.
5501         * m4/duplocale.m4 (gl_FUNC_DUPLOCALE): Set HAVE_DUPLOCALE.
5502         * modules/locale (Depends-on): Add c++defs.
5503         (Makefile.am): Update locale.h rule. Substitute HAVE_DUPLOCALE.
5504
5505         langinfo: Avoid #define replacements in C++ mode.
5506         * lib/langinfo.in.h: Include c++defs.h.
5507         (nl_langinfo): In C++, define a namespaced alias symbol.
5508         * modules/langinfo (Depends-on): Add c++defs.
5509         (Makefile.am): Update langinfo.h rule.
5510
5511         iconv-h: Avoid #define replacements in C++ mode.
5512         * lib/iconv.in.h: Include c++defs.h, warn-on-use.h.
5513         (iconv_open, iconv, iconv_close): In C++, define a namespaced alias
5514         symbol.
5515         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN): Invoke gl_REPLACE_ICONV_H
5516         whenever iconv is present.
5517         * modules/iconv-h (Depends-on): Add c++defs, warn-on-use.
5518         (Makefile.am): Update iconv.h rule.
5519
5520         glob: Avoid #define replacements in C++ mode.
5521         * lib/glob.in.h: Include c++defs.h, warn-on-use.h.
5522         (_gl_glob_errfunc_fn): New type.
5523         (glob, globfree, glob_pattern_p): In C++, define a namespaced alias
5524         symbol.
5525         * modules/glob (Depends-on): Add c++defs, warn-on-use.
5526         (Makefile.am): Update glob.h rule.
5527
5528         fcntl-h: Avoid #define replacements in C++ mode.
5529         * lib/fcntl.in.h: Include c++defs.h.
5530         (fcntl, open, openat): In C++, define a namespaced alias symbol.
5531         * modules/fcntl-h (Depends-on): Add c++defs.
5532         (Makefile.am): Update fcntl.h rule.
5533
5534         dirent: Avoid #define replacements in C++ mode.
5535         * lib/dirent.in.h: Include c++defs.h.
5536         (closedir, fdopendir, opendir, scandir, alphasort): In C++, define a
5537         namespaced alias symbol.
5538         (dirfd): Update declaration.
5539         * modules/dirent (Depends-on): Add c++defs.
5540         (Makefile.am): Update dirent.h rule.
5541
5542         ctype: Make it usable in C++ code.
5543         * lib/ctype.in.h: Include c++defs.h.
5544         (isblank): Declare as extern "C".
5545         * modules/ctype (Depends-on): Add c++defs.
5546         (Makefile.am): Update ctype.h rule.
5547
5548         New module 'c++defs'.
5549         * modules/c++defs: New file.
5550         * build-aux/c++defs.h: New file.
5551         Reported by John W. Eaton <jwe@gnu.org>.
5552
5553 2010-03-07  Bruno Haible  <bruno@clisp.org>
5554
5555         logb: Provide missing declaration for Cygwin.
5556         * lib/math.in.h (logb): New declaration.
5557         * m4/logb.m4: New file.
5558         * modules/logb (Files): Add m4/logb.m4.
5559         (Depends-on): Add math.
5560         (configure.ac): Invoke gl_FUNC_LOGB, gl_MATH_MODULE_INDICATOR.
5561         * m4/math_h.m4 (gl_MATH_H): Check also for logb declaration.
5562         (gl_MATH_H_DEFAULTS): Initialize GNULIB_LOGB, HAVE_DECL_LOGB.
5563         * modules/math (Makefile.am): Substitute GNULIB_LOGB, HAVE_DECL_LOGB.
5564         * doc/posix-functions/logb.texi: Mention the Cygwin bug.
5565
5566 2010-03-07  Bruno Haible  <bruno@clisp.org>
5567
5568         Fix test-cond link error.
5569         * tests/test-cond.c: Include <stdio.h>.
5570
5571 2010-03-07  Bruno Haible  <bruno@clisp.org>
5572
5573         Fix test-dirent-safer link error.
5574         * modules/dirent-safer-tests (Makefile.am): Define
5575         test_dirent_safer_LDADD.
5576
5577 2010-03-07  Bruno Haible  <bruno@clisp.org>
5578
5579         * gnulib-tool (func_create_testdir): Don't use 'lib-ignore' module
5580         among default module list.
5581
5582 2010-03-07  Bruno Haible  <bruno@clisp.org>
5583
5584         Fix link error on platforms with GNU libiconv.
5585         * modules/unistr/u8-strcoll-tests (Makefile): Define
5586         test_u8_strcoll_LDADD.
5587         * modules/unistr/u16-strcoll-tests (Makefile): Define
5588         test_u16_strcoll_LDADD.
5589         * modules/unistr/u32-strcoll-tests (Makefile): Define
5590         test_u32_strcoll_LDADD.
5591
5592 2010-03-07  Bruno Haible  <bruno@clisp.org>
5593
5594         Use POSIX declarations for socket functions.
5595         * lib/sys_socket.in.h (rpl_connect, rpl_accept, rpl_bind,
5596         rpl_getpeername, rpl_getsockname, rpl_recv, rpl_send, rpl_recvfrom,
5597         rpl_sendto): Change declaration to match POSIX.
5598         * lib/connect.c (rpl_connect): Likewise.
5599         * lib/accept.c (rpl_accept): Likewise.
5600         * lib/bind.c (rpl_bind): Likewise.
5601         * lib/getpeername.c (rpl_getpeername): Likewise.
5602         * lib/getsockname.c (rpl_getsockname): Likewise.
5603         * lib/recv.c (rpl_recv): Likewise.
5604         * lib/send.c (rpl_send): Likewise.
5605         * lib/recvfrom.c (rpl_recvfrom): Likewise.
5606         * lib/sendto.c (rpl_sendto): Likewise.
5607
5608 2010-03-06  Bruno Haible  <bruno@clisp.org>
5609
5610         Clarify access, euidaccess, faccessat.
5611         * doc/posix-functions/faccessat.texi: Mention security problem under
5612         "Other problems", not "Portability problems".
5613         * doc/posix-functions/access.texi: Likewise. Mention a related security
5614         problem.
5615         * doc/glibc-functions/euidaccess.texi: Mention security problems.
5616         * lib/euidaccess.c: Add comments about platforms.
5617         * lib/unistd.in.h (access, euidaccess): Add warnings.
5618
5619 2010-03-07  Bruno Haible  <bruno@clisp.org>
5620
5621         Ensure posix_spawnattr_{get,set}sched{policy,param} are defined.
5622         * lib/spawn.in.h (POSIX_SPAWN_SETSCHEDPARAM): Define fallback.
5623         (POSIX_SPAWN_SETSCHEDULER): Likewise.
5624         (POSIX_SPAWN_USEVFORK): Define in a way that works when
5625         POSIX_SPAWN_SETSCHEDPARAM and POSIX_SPAWN_SETSCHEDULER are zero.
5626         (posix_spawnattr_getschedpolicy, posix_spawnattr_setschedpolicy): Also
5627         declare when POSIX_SPAWN_SETSCHEDULER is zero.
5628         (posix_spawnattr_getschedparam, posix_spawnattr_setschedparam): Also
5629         declare when POSIX_SPAWN_SETSCHEDPARAM is zero.
5630         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_BODY): Test whether
5631         POSIX_SPAWN_SETSCHEDULER or POSIX_SPAWN_SETSCHEDPARAM are zero.
5632         * modules/posix_spawnattr_getschedparam (configure.ac): Enable the
5633         replacement also when POSIX_SPAWN_SETSCHEDPARAM is zero.
5634         * modules/posix_spawnattr_setschedparam (configure.ac): Likewise.
5635         * modules/posix_spawnattr_getschedpolicy (configure.ac): Enable the
5636         replacement also when POSIX_SPAWN_SETSCHEDULER is zero.
5637         * modules/posix_spawnattr_setschedpolicy (configure.ac): Likewise.
5638         * lib/spawnattr_getschedparam.c (posix_spawnattr_getschedparam): Do
5639         nothing if POSIX_SPAWN_SETSCHEDPARAM is zero.
5640         * lib/spawnattr_setschedparam.c (posix_spawnattr_setschedparam):
5641         Likewise.
5642         * lib/spawnattr_getschedpolicy.c (posix_spawnattr_getschedpolicy): Do
5643         nothing if POSIX_SPAWN_SETSCHEDULER is zero.
5644         * lib/spawnattr_setschedpolicy.c (posix_spawnattr_setschedpolicy):
5645         Likewise.
5646         * tests/test-spawn.c (main): Make it work when
5647         POSIX_SPAWN_SETSCHEDPARAM and POSIX_SPAWN_SETSCHEDULER are zero.
5648
5649 2010-03-07  Bruno Haible  <bruno@clisp.org>
5650
5651         Fix incorrect Makefile.am generation in German locale.
5652         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
5653         Execute sed command with character range in C locale.
5654
5655 2010-03-06  Bruno Haible  <bruno@clisp.org>
5656
5657         Tests for module 'iconv-h'.
5658         * modules/iconv-h-tests: New file.
5659         * tests/test-iconv-h.c: New file.
5660
5661         New module 'iconv-h'.
5662         * modules/iconv-h: New file.
5663         * modules/iconv_open (Files): Remove lib/iconv.in.h, m4/iconv_h.m4.
5664         (Depends-on): Add iconv-h. Remove include_next, arg-nonnull.
5665         (configure.ac): Remove gl_ICONV_H.
5666         (Makefile.am): Remove rule for iconv.h.
5667
5668 2010-03-06  Bruno Haible  <bruno@clisp.org>
5669
5670         More consistent naming of *.m4 files.
5671         * m4/wctype_h.m4: Renamed from m4/wctype.m4.
5672         * modules/wctype (Files): Update.
5673
5674         More consistent naming of *.m4 files.
5675         * m4/wchar_h.m4: Renamed from m4/wchar.m4.
5676         * modules/wchar (Files): Update.
5677
5678 2010-03-06  Jim Meyering  <meyering@redhat.com>
5679
5680         euidaccess: relax license to LGPLv2+
5681         * modules/euidaccess (License): Relax to LGPLv2+.
5682
5683 2010-03-06  Bruno Haible  <bruno@clisp.org>
5684
5685         Prefer lib_SOURCES over unconditional AC_LIBOBJ.
5686         * modules/exitfail (configure.ac): Remove AC_LIBOBJ invocation.
5687         (Makefile.am): Augment lib_SOURCES instead.
5688
5689 2010-03-04  Jim Meyering  <meyering@redhat.com>
5690
5691         utime: remove obsolete module
5692         This module, like autoconf's AC_FUNC_UTIME_NULL macro, has been
5693         unnecessary for years, and has been marked as obsolete for 10 months.
5694         * modules/utime: Remove file.
5695         * lib/utime.c: Remove file.
5696         * m4/utime.m4: Remove file.
5697         * m4/utimes-null.m4: Remove file.
5698         * doc/posix-functions/utime.texi (utime): Remove reference to
5699         the module.  Move the sole "fixed by gnulib" item into the
5700         "problems not fixed by Gnulib" list.
5701         * MODULES.html.sh (func_all_modules): Remove reference to "utime".
5702
5703 2010-03-05  Simon Josefsson  <simon@josefsson.org>
5704
5705         * modules/exit (License): Relax license to LGPLv2+.
5706         (Status): Mark as obsolete.
5707         * NEWS: Mention deprecated 'exit' module.
5708         * doc/posix-functions/exit.texi: Recommend 'stdlib' module instead
5709         of now obsolete 'exit'.
5710
5711 2010-03-02  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
5712
5713         fts-lgpl: remove unused module
5714         * modules/fts-lgpl: Remove.
5715         * MODULES.html.sh (func_all_modules): Adjust.
5716         * check-module (find_included_lib_files): Adjust.
5717         * m4/fts.m4 (gl_FUNC_FTS_LGPL): Remove.
5718
5719 2010-03-02  Ben Walton  <bwalton@artsci.utoronto.ca>  (tiny change)
5720
5721         copy-acl: enhance Solaris ACL error handling
5722         * lib/copy-acl.c (qcopy_acl): Also ignore EOPNOTSUPP.
5723         * lib/set-mode-acl.c (qset_acl): Likewise.
5724
5725 2010-03-02  Bruno Haible  <bruno@clisp.org>
5726
5727         spawn: Don't override the system defined values on FreeBSD 8.
5728         * lib/spawn.in.h (POSIX_SPAWN_RESETIDS, POSIX_SPAWN_SETPGROUP,
5729         POSIX_SPAWN_SETSIGDEF, POSIX_SPAWN_SETSIGMASK,
5730         POSIX_SPAWN_SETSCHEDPARAM, POSIX_SPAWN_SETSCHEDULER): Don't redefine
5731         if HAVE_POSIX_SPAWN is 1.
5732         Reported by Johan van Selst <johans@stack.nl> via Eric Blake.
5733
5734 2010-03-01  Bruno Haible  <bruno@clisp.org>
5735
5736         * doc/gnulib-tool.texi (Initial import): Clarify the requirements
5737         regarding Automake.
5738
5739 2010-02-25  Bruno Haible  <bruno@clisp.org>
5740
5741         Fix breakage of gnulib-tool with ksh, introduced on 2010-02-21.
5742         * gnulib-tool: Define 'echo' as a function only before the ksh alias
5743         setting, not afterwards.
5744         Reported by Ben Walton <bwalton@artsci.utoronto.ca>.
5745
5746 2010-02-24  Eric Blake  <eblake@redhat.com>
5747
5748         bootstrap, git-version-gen: use timestamp
5749         * build-aux/git-version-gen (scriptversion): Force UTC.
5750         * build-aux/bootstrap (scriptversion): New variable.
5751
5752         bootstrap: allow older git
5753         * build-aux/bootstrap (GNULIB_SRCDIR): Add fallback if git is
5754         older than 1.6.4.  Requested by the libvirt project.
5755
5756 2010-02-23  Eric Blake  <eblake@redhat.com>
5757
5758         warn-on-use: work with old autoconf
5759         * m4/warn-on-use.m4 (gl_WARN_ON_USE_PREPARE): Accomodate older
5760         AS_VAR semantics of autoconf 2.60.
5761         Reported by Bruno Haible.
5762
5763         bootstrap: improve some comments
5764         * build-aux/bootstrap: Drop unneeded emacs hint.  Add some
5765         clarification comments.
5766
5767         gettimeofday: provide correct function
5768         * lib/gettimeofday.c (gettimeofday): Provide rpl_gettimeofday only
5769         when replacement is declared, otherwise provide gettimeofday.
5770         Reported by Michael Goffioul.
5771
5772 2010-02-23  Jim Meyering  <meyering@redhat.com>
5773
5774         lib-ignore: relax license to "unlimited", not LGPLv2+
5775         * modules/lib-ignore (License): Relax to "unlimited".
5776
5777 2010-02-23  Jim Meyering  <meyering@redhat.com>
5778
5779         lib-ignore: relax license to LGPLv2+
5780         * modules/lib-ignore (License): Relax to LGPLv2+.
5781
5782 2010-02-22  Eric Blake  <eblake@redhat.com>
5783
5784         lseek: avoid bash 3.2 broken pipe bug
5785         * m4/lseek.m4 (gl_FUNC_LSEEK): Drain pipe, to avoid spurious
5786         warning from bash 3.2.
5787         Reported by Ben Pfaff, with analysis from Bruno Haible.
5788
5789         bootstrap: support non-FSF copyright holder
5790         * build-aux/bootstrap (COPYRIGHT_HOLDER, with_gettext): Allow
5791         bootstrap.conf override of COPYRIGHT_HOLDER.
5792         (MSGID_BUGS_ADDRESS): Allow URL rather than email.
5793
5794         bootstrap: interoperate with gettext 0.14.1
5795         * build-aux/bootstrap (slurp): Fix typo when using older gettext.
5796
5797         bootstrap: allow for alternate submodule location
5798         * build-aux/bootstrap (gnulib_path): New variable; use instead of
5799         hardcoding submodule location.
5800         (gnulib_mk): Allow direct use of Makefile.am.
5801
5802         bootstrap: use GNULIB_SRCDIR to reduce disk usage
5803         * build-aux/bootstrap (GNULIB_SRCDIR): If set, use as a reference,
5804         rather than reconfiguring where the submodule points.
5805
5806         gettimeofday: restore support for platforms that lack function
5807         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY): Also compile
5808         replacement if function is missing.
5809         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_DEFAULTS): New witness.
5810         * modules/sys_time (Makefile.am): Substitute it.
5811         * lib/sys_time.in.h (gettimeofday): Check it.
5812         Reported by Michael Goffioul.
5813
5814 2010-02-21  Bruno Haible  <bruno@clisp.org>
5815
5816         * lib/stdio.in.h (obstack_printf): Fix typo.
5817
5818 2010-02-21  Jose E. Marchesi  <jemarch@gnu.org>
5819
5820         vc-list-files: use bzr ls's -R option
5821         * build-aux/vc-list-files: Invoke bazaar to generate a recursive
5822         list of versioned files based on 'dir' (usage of -R in 'bzr ls').
5823
5824 2010-02-21  Jim Meyering  <meyering@redhat.com>
5825
5826         init.sh: fix EXEEXT shims to work also for names like test-prog
5827         * tests/init.sh: Re-exec a better shell, when needed.
5828         If the current shell lacks support for posix $(...), an init.sh-using
5829         test will now try to find a shell that supports that.  If EXEEXT is
5830         nonempty, we also require support for hyphen-in-alias-name and shell
5831         substitutions like ${var#glob}.  Failure to find such a shell results
5832         in a skipped test.
5833
5834 2010-02-21  Bruno Haible  <bruno@clisp.org>
5835
5836         Really work around around "broken pipe" error message from bash 3.2.
5837         * gnulib-tool (func_reset_sigpipe): Remove function.
5838         (echo): In bash 3.2, define to a function that uses printf.
5839         Analyzed by Ralf Wildenhues, Chet Ramey, Ben Pfaff.
5840
5841 2010-02-20  Bruno Haible  <bruno@clisp.org>
5842
5843         Restore support for automake 1.9.6 with autoconf 2.61.
5844         * m4/gnulib-common.m4 (AC_PROG_MKDIR_P): Ensure MKDIR_P is AC_SUBSTed.
5845         Reported by James Youngman <jay@gnu.org>.
5846
5847 2010-02-20  Bruno Haible  <bruno@clisp.org>
5848
5849         Improve *printf warning condition.
5850         * lib/stdio.in.h (fprintf, printf, vfprintf, vprintf): Emit warning
5851         also if GNULIB_POSIXCHECK is defined, the *-posix module is not used,
5852         and the function is overridden due to SIGPIPE emulation.
5853
5854 2010-02-20  Bruno Haible  <bruno@clisp.org>
5855
5856         * lib/stdio.in.h: Tweak comments.
5857
5858 2010-02-19  Bruno Haible  <bruno@clisp.org>
5859
5860         Make it easier to find modules. New gnulib-tool option '--find'.
5861         * gnulib-tool: New option --find.
5862         (func_usage): Document it.
5863         (func_sanitize_modulelist): New function, extracted from
5864         func_all_modules.
5865         (func_all_modules): Invoke it.
5866         * doc/gnulib-tool.texi (Which modules?): New node.
5867
5868 2010-02-18  Markus Duft <mduft@gentoo.org>  (tiny change)
5869
5870         * lib/sys_select.in.h: Provide select replacement even if
5871         sys/select.h exists on a system, for Interix.
5872
5873 2010-02-18  Jim Meyering  <meyering@redhat.com>
5874
5875         init.sh: don't use $(...) just yet
5876         * tests/init.sh (create_exe_shim_functions_): Use `...`, not $(...),
5877         to accommodate e.g., Solaris' /bin/sh.
5878
5879 2010-02-17  Bruno Haible  <bruno@clisp.org>
5880
5881         * doc/posix-headers/netdb.texi: Mention NetBSD 5.0 problem.
5882         Reported by Ludovic Courtès <ludo@gnu.org>.
5883
5884 2010-02-16  Simon Josefsson  <simon@josefsson.org>
5885
5886         * modules/userspec-tests (test_userspec_LDADD): Add variable, for
5887         linking with -lintl.
5888
5889 2010-02-17  Simon Josefsson  <simon@josefsson.org>
5890
5891         * lib/netdb.in.h (AI_V4MAPPED, AI_ALL, AI_ADDRCONFIG): Define to 0
5892         if not provided by the system's netdb.h.  Reported by
5893         ludo@gnu.org (Ludovic Courtès).
5894
5895 2010-02-15  Jim Meyering  <meyering@redhat.com>
5896
5897         init.sh: improve portability and efficiency
5898         * tests/init.sh (find_exe_basenames_): Remove unnecessary use of
5899         "dummy" in a for loop.
5900         Use '!', not '^' to select the complement of a character set used
5901         in a "case" statement.
5902         Use shell variable manipulation, a la ${...%.exe}, rather than sed.
5903         Suggestions from Eric Blake.
5904
5905         init.sh: automatically accommodate programs with the .exe suffix
5906         Automatically arrange for an invocation of "prog" to execute the
5907         program named "prog$EXEEXT" (usually prog.exe).  Thus, all invocations
5908         may use the simpler "prog", yet still work when built on a system
5909         that requires specifying the added suffix.
5910         Do this by constructing a function named "prog" that invokes
5911         "prog.exe" for each .exe file in selected directories.
5912         * tests/init.sh (find_exe_basenames_): New function.
5913         (create_exe_shim_functions_): New function.
5914         (path_prepend_): Use it.
5915
5916         maint.mk: mark syntax-check sc_*.m rules as .PHONY
5917         * top/maint.mk ($(syntax-check-rules)): Add .PHONY, so that
5918         "make -t syntax-check" doesn't create a ton of sc_*.m files.
5919
5920 2010-02-14  Jim Meyering  <meyering@redhat.com>
5921
5922         maint.mk: prohibit inclusion of "hash-pjw.h" without_use
5923         * top/maint.mk (sc_prohibit_hash_without_use): Re-add "@".
5924         (sc_prohibit_hash_pjw_without_use): New rule.
5925
5926         maint.mk: allow the default upload destination dir to be overridden
5927         * top/maint.mk (upload_dest_dir_): Define with a default that
5928         preserves the status quo.
5929         (emit_upload_commands): Use it, rather than hard-coding $(PACKAGE).
5930         Reported by Peter Simons.
5931
5932         maint.mk: prohibit inclusion of "hash.h" without_use
5933         * top/maint.mk (sc_prohibit_hash_without_use): New rule.
5934
5935 2010-02-10  Jim Meyering  <meyering@redhat.com>
5936
5937         maint.mk: prohibit inclusion of "ignore-value.h" without_use
5938         * top/maint.mk (sc_prohibit_ignore_value_without_use): New rule.
5939
5940 2010-02-09  Eric Blake  <ebb9@byu.net>
5941         and Bruno Haible  <bruno@clisp.org>
5942
5943         obstack-printf-posix: ensure declaration
5944         * m4/obstack-printf.m4 (gl_DECL_OBSTACK_PRINTF): New macro,
5945         extracted from gl_FUNC_OBSTACK_PRINTF.
5946         (gl_FUNC_OBSTACK_PRINTF): Invoke it.
5947         * m4/obstack-printf-posix.m4 (gl_FUNC_OBSTACK_PRINTF_POSIX):
5948         Likewise.
5949         * lib/stdio.in.h (obstack_printf, obstack_vprintf): Declare also
5950         if GNULIB_OBSTACK_PRINTF_POSIX is 1 and GNULIB_OBSTACK_PRINTF is
5951         0.
5952
5953 2010-02-08  Bruno Haible  <bruno@clisp.org>
5954
5955         gnulib-tool: Fix typo in 2010-02-07 commit.
5956         * gnulib-tool (func_get_dependencies): Fix typo in last commit.
5957         Reported by Eric Blake.
5958
5959 2010-02-07  Bruno Haible  <bruno@clisp.org>
5960
5961         gnulib-tool: Fix up caching patches.
5962         * gnulib-tool: New options --cache-modules, --no-cache-modules. Remove
5963         option --no-cache. Use associative arrays when supported by the shell.
5964         (sed_comments): New variable.
5965         (modcache): Renamed from do_cache.
5966         (sed_extract_field_header): Renamed from sed_extract_cache_prog. Don't
5967         abbreviate unnecessarily.
5968         (have_associative): New variable.
5969         (func_cache_var): Define correctly for bash 1.x. Define in an optimized
5970         way also for ksh and zsh.
5971         (func_init_sed_convert_to_cache_statements): New function, extracted
5972         from func_cache_lookup_module. Add support for associative arrays.
5973         Don't set the c_MODULE_cached variable here. Ignore all lines before
5974         the first field header. Remove only the final newline, not all trailing
5975         newlines. Support empty fields correctly. Limit the use of 'eval' to
5976         assignments.
5977         (func_get_description, func_get_status, func_get_notice,
5978         func_get_applicability, func_get_filelist, func_get_dependencies,
5979         func_get_autoconf_early_snippet, func_get_autoconf_snippet,
5980         func_get_automake_snippet, func_get_include_directive,
5981         func_get_link_directive, func_get_license, func_get_maintainer):
5982         Update documentation. List the unoptimized code first. Add support for
5983         associative arrays. Limit the use of 'eval' to assignments.
5984         (func_get_applicability): Undo stylistic pessimisations.
5985         (func_get_automake_snippet, func_get_include_directive): Reduce code
5986         duplication.
5987         (func_modules_transitive_closure, func_modules_add_dummy,
5988         func_modules_notice, func_modules_to_filelist, func_add_file,
5989         func_update_file, func_emit_lib_Makefile_am, func_emit_po_Makevars,
5990         func_emit_po_POTFILES_in, func_emit_tests_Makefile_am, func_import,
5991         func_create_testdir, func_create_megatestdir): Update documentation.
5992
5993 2010-01-18  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
5994
5995         * gnulib-tool (func_cache_lookup_module): Store the module name
5996         belonging to the cache variable; error out if two different
5997         module names map to the same cache variable name.
5998
5999 2010-01-18  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
6000
6001         gnulib-tool: Make caching optional.
6002         * gnulib-tool: Accept option --no-cache, turning off $do_cache.
6003         Update matching short versions of --no-changelog.
6004         (func_usage): Update.
6005         (sed_extract_cache_prog): Renamed from ...
6006         (sed_extract_prog): ... this; revert to old extraction script.
6007         (func_get_description, func_get_status)
6008         (func_get_notice, func_get_applicability, func_get_filelist)
6009         (func_get_dependencies, func_get_autoconf_early_snippet)
6010         (func_get_autoconf_snippet, func_get_automake_snippet)
6011         (func_get_include_directive, func_get_link_directive)
6012         (func_get_license, func_get_maintainer): If $do_cache is false,
6013         use old, non-caching extraction scripts.
6014         Suggestion by Bruno Haible.
6015
6016 2010-01-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
6017
6018         gnulib-tool: cache module metainformation.
6019         * gnulib-tool (sed_extract_prog): Match newline before each
6020         header, and rewrite header to a shell variable suffix.
6021         (func_cache_var, func_cache_lookup_module): New functions,
6022         to turn a module name into a cache variable prefix, and to
6023         look up and cache module metainformation.
6024         (func_get_description, func_get_status)
6025         (func_get_notice, func_get_applicability, func_get_filelist)
6026         (func_get_dependencies, func_get_autoconf_early_snippet)
6027         (func_get_autoconf_snippet, func_get_automake_snippet)
6028         (func_get_include_directive, func_get_link_directive)
6029         (func_get_license, func_get_maintainer): Use
6030         func_cache_lookup_module.
6031
6032 2010-02-07  Bruno Haible  <bruno@clisp.org>
6033
6034         fnctl: Fix missing dependency.
6035         * modules/fcntl (Depends-on): Add getdtablesize.
6036         Reported by John W. Eaton <jwe@gnu.org>.
6037
6038 2010-02-05  Sergey Poznyakoff  <gray@gnu.org.ua>
6039
6040         Argp: fix recognition of short alias options.
6041
6042         * lib/argp-parse.c (convert_options): Fix improper use of
6043         `|' between character values.
6044         * tests/test-argp.c (group1_option): New alias option
6045         --read (-r).
6046         (group1_parser): Special handling for 'r'.
6047         (test15): New test case.
6048         (test_fun): Add test15.
6049         * tests/test-argp-2.sh: Update expected --help and --usage
6050         outputs.
6051
6052 2010-02-05  Sergey Poznyakoff  <gray@gnu.org.ua>
6053
6054         * tests/test-argp.c: Fix indentation.
6055
6056 2010-02-04  Eric Blake  <ebb9@byu.net>
6057
6058         gettimeofday: expose type of second argument
6059         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY): Do better detection
6060         of glibc extension signature, and define GETTIMEOFDAY_TIMEZONE.
6061         * tests/test-gettimeofday.c: Use it to silence warning.
6062         * doc/posix-functions/gettimeofday.texi (gettimeofday): Document
6063         the issue.
6064
6065 2010-02-03  Jim Meyering  <meyering@redhat.com>
6066
6067         regcomp.c: avoid the sole warning from gcc's -Wtype-limits
6068         * lib/regcomp.c (TYPE_SIGNED): Define.
6069         (parse_dup_op): Use it to avoid the sole warning from -Wtype-limits.
6070
6071         regcomp.c: avoid a new -Wshadow warning
6072         * lib/regcomp.c (create_initial_state): Do not shadow local "err".
6073
6074 2010-02-01  Jim Meyering  <meyering@redhat.com>
6075
6076         removing useless parentheses in cpp #define directives
6077         For motivation, see commit c0221df4, "define STREQ(a,b)
6078         consistently, removing useless parentheses"
6079         * lib/memcmp.c (CMP_LT_OR_GT): Remove useless parentheses.
6080         * lib/mountlist.c (MNT_IGNORE): Likewise.
6081         * lib/trim.h (trim, trim_trailing, trim_leading): Likewise.
6082
6083 2010-02-01  Eric Blake  <ebb9@byu.net>
6084
6085         sys_time: use link-warning
6086         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Split defaults...
6087         (gl_HEADER_SYS_TIME_H_DEFAULTS): ...into new macro.
6088         (gl_SYS_TIME_MODULE_INDICATOR): New macro.
6089         * modules/sys_time (Depends-on): Add warn-on-use.
6090         (Makefile.am): Always build replacement.
6091         (configure.ac): Update substitutions.
6092         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY)
6093         (gl_FUNC_GETTIMEOFDAY_CLOBBER): Include defaults, and no longer
6094         bother with SYS_TIME_H.
6095         * modules/gettimeofday (configure.ac): Declare indicator.
6096         * lib/sys_time.in.h (gettimeofday): Warn if gnulib module is not
6097         in use.
6098
6099         closein-tests: silence compiler warning
6100         * tests/test-closein.c (main): Ignore fread result.
6101         * modules/closein-tests (Depends-on): Add ignore-value.
6102
6103         tests: silence warning about system return
6104         * tests/test-areadlink-with-size.c (main): Ignore system result.
6105         * tests/test-areadlink.c (main): Likewise.
6106         * tests/test-areadlinkat-with-size.c (main): Likewise.
6107         * tests/test-areadlinkat.c (main): Likewise.
6108         * tests/test-canonicalize-lgpl.c (main): Likewise.
6109         * tests/test-canonicalize.c (main): Likewise.
6110         * tests/test-chown.c (main): Likewise.
6111         * tests/test-fchownat.c (main): Likewise.
6112         * tests/test-fdutimensat.c (main): Likewise.
6113         * tests/test-fstatat.c (main): Likewise.
6114         * tests/test-futimens.c (main): Likewise.
6115         * tests/test-lchown.c (main): Likewise.
6116         * tests/test-link.c (main): Likewise.
6117         * tests/test-linkat.c (main): Likewise.
6118         * tests/test-lstat.c (main): Likewise.
6119         * tests/test-mkdir.c (main): Likewise.
6120         * tests/test-mkdirat.c (main): Likewise.
6121         * tests/test-mkfifo.c (main): Likewise.
6122         * tests/test-mkfifoat.c (main): Likewise.
6123         * tests/test-mknod.c (main): Likewise.
6124         * tests/test-readlink.c (main): Likewise.
6125         * tests/test-remove.c (main): Likewise.
6126         * tests/test-rename.c (main): Likewise.
6127         * tests/test-renameat.c (main): Likewise.
6128         * tests/test-rmdir.c (main): Likewise.
6129         * tests/test-symlink.c (main): Likewise.
6130         * tests/test-symlinkat.c (main): Likewise.
6131         * tests/test-unlink.c (main): Likewise.
6132         * tests/test-unlinkat.c (main): Likewise.
6133         * tests/test-utimens.c (main): Likewise.
6134         * tests/test-utimensat.c (main): Likewise.
6135         * modules/areadlink-tests (Depends-on): Add ignore-value.
6136         * modules/areadlink-with-size-tests (Depends-on): Likewise.
6137         * modules/areadlinkat-tests (Depends-on): Likewise.
6138         * modules/areadlinkat-with-size-tests (Depends-on): Likewise.
6139         * modules/canonicalize-lgpl-tests (Depends-on): Likewise.
6140         * modules/canonicalize-tests (Depends-on): Likewise.
6141         * modules/chown-tests (Depends-on): Likewise.
6142         * modules/fdutimensat-tests (Depends-on): Likewise.
6143         * modules/futimens-tests (Depends-on): Likewise.
6144         * modules/lchown-tests (Depends-on): Likewise.
6145         * modules/link-tests (Depends-on): Likewise.
6146         * modules/linkat-tests (Depends-on): Likewise.
6147         * modules/lstat-tests (Depends-on): Likewise.
6148         * modules/mkdir-tests (Depends-on): Likewise.
6149         * modules/mkfifo-tests (Depends-on): Likewise.
6150         * modules/mkfifoat-tests (Depends-on): Likewise.
6151         * modules/mknod-tests (Depends-on): Likewise.
6152         * modules/openat-tests (Depends-on): Likewise.
6153         * modules/readlink-tests (Depends-on): Likewise.
6154         * modules/remove-tests (Depends-on): Likewise.
6155         * modules/rename-tests (Depends-on): Likewise.
6156         * modules/renameat-tests (Depends-on): Likewise.
6157         * modules/rmdir-tests (Depends-on): Likewise.
6158         * modules/symlink-tests (Depends-on): Likewise.
6159         * modules/symlinkat-tests (Depends-on): Likewise.
6160         * modules/unlink-tests (Depends-on): Likewise.
6161         * modules/utimens-tests (Depends-on): Likewise.
6162         * modules/utimensat-tests (Depends-on): Likewise.
6163
6164 2010-01-31  Bruno Haible  <bruno@clisp.org>
6165
6166         Perform the same test for many <math.h> functions.
6167         * m4/mathfunc.m4 (gl_COMMON_DOUBLE_MATHFUNC,
6168         gl_COMMON_DOUBLE_MATHFUNC_TEST): New macros.
6169         * m4/sqrt.m4 (gl_FUNC_SQRT): Invoke gl_COMMON_DOUBLE_MATHFUNC instead
6170         of gl_MATHFUNC.
6171         * modules/acos (configure.ac): Likewise.
6172         * modules/asin (configure.ac): Likewise.
6173         * modules/atan (configure.ac): Likewise.
6174         * modules/atan2 (configure.ac): Likewise.
6175         * modules/cbrt (configure.ac): Likewise.
6176         * modules/copysign (configure.ac): Likewise.
6177         * modules/cos (configure.ac): Likewise.
6178         * modules/cosh (configure.ac): Likewise.
6179         * modules/erf (configure.ac): Likewise.
6180         * modules/erfc (configure.ac): Likewise.
6181         * modules/exp (configure.ac): Likewise.
6182         * modules/fmod (configure.ac): Likewise.
6183         * modules/hypot (configure.ac): Likewise.
6184         * modules/j0 (configure.ac): Likewise.
6185         * modules/j1 (configure.ac): Likewise.
6186         * modules/jn (configure.ac): Likewise.
6187         * modules/lgamma (configure.ac): Likewise.
6188         * modules/log (configure.ac): Likewise.
6189         * modules/log10 (configure.ac): Likewise.
6190         * modules/log1p (configure.ac): Likewise.
6191         * modules/pow (configure.ac): Likewise.
6192         * modules/remainder (configure.ac): Likewise.
6193         * modules/sin (configure.ac): Likewise.
6194         * modules/sinh (configure.ac): Likewise.
6195         * modules/tan (configure.ac): Likewise.
6196         * modules/tanh (configure.ac): Likewise.
6197         * modules/y0 (configure.ac): Likewise.
6198         * modules/y1 (configure.ac): Likewise.
6199         * modules/yn (configure.ac): Likewise.
6200         Suggested by Paolo Bonzini.
6201
6202 2010-01-31  Bruno Haible  <bruno@clisp.org>
6203
6204         * m4/getline.m4 (gl_FUNC_GETLINE): Add comment about REPLACE_GETLINE.
6205
6206 2010-01-31  Bruno Haible  <bruno@clisp.org>
6207
6208         Work around getdelim() bug on FreeBSD 8.0.
6209         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Test whether getdelim supports an
6210         initially NULL line. Set REPLACE_GETDELIM if getdelim exists but does
6211         not work.
6212         * lib/stdio.in.h (getdelim): Define as an alias if REPLACE_GETDELIM
6213         is 1.
6214         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize REPLACE_GETDELIM.
6215         * modules/stdio (Makefile.am): Also substitute REPLACE_GETDELIM.
6216         * tests/test-getdelim.c (main): Also test result for a NULL buffer and
6217         a non-zero size.
6218         * doc/posix-functions/getdelim.texi: Mention the FreeBSD bug.
6219
6220 2010-01-31  Bruno Haible  <bruno@clisp.org>
6221
6222         Work around getline() bug on FreeBSD 8.0.
6223         * m4/getline.m4 (gl_FUNC_GETLINE): Also test result for a NULL buffer
6224         and a non-zero size.
6225         * tests/test-getline.c (main): Likewise.
6226         * doc/posix-functions/getline.texi: Mention the FreeBSD bug.
6227         Reported by Dennis <noordsij@cs.helsinki.fi> via Eric Blake.
6228
6229 2010-01-28  Eric Blake  <ebb9@byu.net>
6230
6231         regex: fix build failure
6232         * lib/regex_internal.h (__GNUC_PREREQ): Define for non-glibc
6233         platforms.
6234
6235 2010-01-28  Jim Meyering  <meyering@redhat.com>
6236
6237         regex: do not ignore memory allocation failure
6238         * lib/regex_internal.c (create_cd_newstate): Detect
6239         re_node_set_init_copy failure.   Extracted from glibc commit
6240         2da42bc06566bc89785e580fa1ac89b4c9f2a63c.
6241
6242         regex: sync more white-space changes from libc
6243         * lib/regex_internal.c: White-space only changes.
6244         * lib/regexec.c: Likewise.
6245
6246         regex: add many uses of __attribute_warn_unused_result__
6247         * lib/regex_internal.c: Use __attribute_warn_unused_result__.
6248         * lib/regexec.c: Likewise.
6249         Extracted from a messy glibc commit.
6250
6251         regcomp.c: spelling and merge-artifact from glibc
6252         * lib/regcomp.c: Merge remainder of glibc's
6253         2da42bc06566bc89785e580fa1ac89b4c9f2a63c.
6254
6255         regcomp.c: sync white-space changes from glibc
6256         * lib/regcomp.c: Merge to accommodate white space
6257         changes from glibc's 2da42bc06566bc89785e580fa1ac89b4c9f2a63c.
6258
6259         regcomp.c: do not ignore internal return values
6260         * lib/regcomp.c: Do not ignore internal return values.
6261         This is from glibc's 2da42bc06566bc89785e580fa1ac89b4c9f2a63c,
6262         but without its white-space changes and spelling fixes.
6263
6264         regex_internal.h: define __attribute_warn_unused_result__
6265         * lib/regex_internal.h (__attribute_warn_unused_result__): Define.
6266
6267         maint: add a syntax-check rule to check for vulnerable Makefile.in
6268         * top/maint.mk (sc_vulnerable_makefile_CVE-2009-4029): New rule.
6269
6270 2010-01-27  Jim Meyering  <meyering@redhat.com>
6271
6272         ncftpput-ftp: clean up spaces
6273         * build-aux/ncftpput-ftp: Make Copyright line consistent.
6274         Remove trailing blanks.
6275
6276 2010-01-27  Simon Josefsson  <simon@josefsson.org>
6277
6278         * build-aux/git-version-gen: Fix copyright statement.
6279         * build-aux/gnupload: Likewise.
6280         * tests/test-arcfour.c: Likewise.
6281         * tests/test-arctwo.c: Likewise.
6282         * tests/test-count-one-bits.c: Likewise.
6283         * tests/test-crc.c: Likewise.
6284         * tests/test-des.c: Likewise.
6285         * tests/test-gc-arcfour.c: Likewise.
6286         * tests/test-gc-arctwo.c: Likewise.
6287         * tests/test-gc-des.c: Likewise.
6288         * tests/test-gc-hmac-md5.c: Likewise.
6289         * tests/test-gc-hmac-sha1.c: Likewise.
6290         * tests/test-gc-md2.c: Likewise.
6291         * tests/test-gc-md4.c: Likewise.
6292         * tests/test-gc-md5.c: Likewise.
6293         * tests/test-gc-pbkdf2-sha1.c: Likewise.
6294         * tests/test-gc-rijndael.c: Likewise.
6295         * tests/test-gc-sha1.c: Likewise.
6296         * tests/test-gc.c: Likewise.
6297         * tests/test-gethostname.c: Likewise.
6298         * tests/test-gettimeofday.c: Likewise.
6299         * tests/test-hash.c: Likewise.
6300         * tests/test-hmac-md5.c: Likewise.
6301         * tests/test-hmac-sha1.c: Likewise.
6302         * tests/test-md2.c: Likewise.
6303         * tests/test-md4.c: Likewise.
6304         * tests/test-md5.c: Likewise.
6305         * tests/test-memchr.c: Likewise.
6306         * tests/test-memchr2.c: Likewise.
6307         * tests/test-memcmp.c: Likewise.
6308         * tests/test-memmem.c: Likewise.
6309         * tests/test-memrchr.c: Likewise.
6310         * tests/test-rawmemchr.c: Likewise.
6311         * tests/test-read-file.c: Likewise.
6312         * tests/test-rijndael.c: Likewise.
6313         * tests/test-sockets.c: Likewise.
6314         * tests/test-strchrnul.c: Likewise.
6315         * tests/test-strstr.c: Likewise.
6316         * tests/test-strtod.c: Likewise.
6317         * build-aux/ncftpput-ftp: Likewise.
6318
6319 2010-01-26  Eric Blake  <ebb9@byu.net>
6320
6321         ignore-value: update recommended header name
6322         * modules/ignore-value (Include): Only use <> for headers that
6323         exist in glibc.
6324
6325 2010-01-26  Jim Meyering  <meyering@redhat.com>
6326
6327         test-userspec.c: avoid compiler warnings
6328         * tests/test-userspec.c (main): Avoid shadowing ("uid"),
6329         and "initialization discards qualifiers..." warnings.
6330         Put the first "uid" in its own scope, and make char* members "const".
6331
6332 2010-01-25  Bruno Haible  <bruno@clisp.org>
6333
6334         gnulib-tool: Make warning diagnostics consistent.
6335         * gnulib-tool (func_warning): New function.
6336         Use it everywhere where gnulib-tool produces output to stderr and it is
6337         not a fatal error.
6338
6339 2010-01-25  Bruno Haible  <bruno@clisp.org>
6340
6341         Fix test dependencies.
6342         * modules/xstrtol-tests (Depends-on): Add inttypes.
6343         * modules/xstrtoll-tests (Depends-on): Likewise. Remove xstrtoll.
6344
6345 2010-01-25 Pádraig Brady <P@draigBrady.com>
6346
6347         syntax-check: detect incorrect boolean macro values in config.h
6348         * modules/maintainer-makefile (configure.ac): Parameterize the location
6349         of config.h which will be available to makefiles as $(CONFIG_INCLUDE).
6350         The logic is from Eric Blake and the location indicated by Jim Meyering.
6351         Note the more natural CONFIG_HEADER name is prohibited by automake
6352         for backwards compatibility reasons.
6353         * top/maint.mk (sc_Wundef_boolean): New rule.
6354
6355 2010-01-25  Jim Meyering  <meyering@redhat.com>
6356
6357         bootstrap: detect MacOS 10.6's shasum, too
6358         * build-aux/bootstrap: Also recognize MacOS 10.6's shasum.
6359         Suggested by Thomas Treichl <Thomas.Treichl@gmx.net>.
6360
6361 2010-01-23  Jim Meyering  <meyering@redhat.com>
6362
6363         xstrtoll: new module
6364         * modules/xstrtoll: New file.
6365         * MODULES.html.sh (Numeric conversion functions): Add xstrtoll.
6366         * lib/xstrtol.h [HAVE_LONG_LONG_INT]: Declare xstrtoll and xstrtoull.
6367         * lib/xstrtoll.c, lib/xstrtoull.c: New files.
6368         ./configure fails if you use this module and lack "long long".
6369         * modules/xstrtoll-tests: New module.
6370         * tests/test-xstrtoll.c, tests/test-xstrtoull.c: New files.
6371         * tests/test-xstrtoll.sh: Like test-xstrtol.c, but use the
6372         new init.sh-based test framework.
6373
6374 2010-01-24  Bruno Haible  <bruno@clisp.org>
6375
6376         Tests for module 'yn'.
6377         * modules/yn-tests: New file.
6378         * tests/test-yn.c: New file.
6379
6380         Tests for module 'y1'.
6381         * modules/y1-tests: New file.
6382         * tests/test-y1.c: New file.
6383
6384         Tests for module 'y0'.
6385         * modules/y0-tests: New file.
6386         * tests/test-y0.c: New file.
6387
6388         Tests for module 'tanh'.
6389         * modules/tanh-tests: New file.
6390         * tests/test-tanh.c: New file.
6391
6392         Tests for module 'tan'.
6393         * modules/tan-tests: New file.
6394         * tests/test-tan.c: New file.
6395
6396         Tests for module 'sqrt'.
6397         * modules/sqrt-tests: New file.
6398         * tests/test-sqrt.c: New file.
6399
6400         Tests for module 'sinh'.
6401         * modules/sinh-tests: New file.
6402         * tests/test-sinh.c: New file.
6403
6404         Tests for module 'sin'.
6405         * modules/sin-tests: New file.
6406         * tests/test-sin.c: New file.
6407
6408         Tests for module 'rint'.
6409         * modules/rint-tests: New file.
6410         * tests/test-rint.c: New file.
6411
6412         Tests for module 'remainder'.
6413         * modules/remainder-tests: New file.
6414         * tests/test-remainder.c: New file.
6415
6416         Tests for module 'pow'.
6417         * modules/pow-tests: New file.
6418         * tests/test-pow.c: New file.
6419
6420         Tests for module 'nextafter'.
6421         * modules/nextafter-tests: New file.
6422         * tests/test-nextafter.c: New file.
6423
6424         Tests for module 'modf'.
6425         * modules/modf-tests: New file.
6426         * tests/test-modf.c: New file.
6427
6428         Tests for module 'logb'.
6429         * modules/logb-tests: New file.
6430         * tests/test-logb.c: New file.
6431
6432         Tests for module 'log1p'.
6433         * modules/log1p-tests: New file.
6434         * tests/test-log1p.c: New file.
6435
6436         Tests for module 'log10'.
6437         * modules/log10-tests: New file.
6438         * tests/test-log10.c: New file.
6439
6440         Tests for module 'log'.
6441         * modules/log-tests: New file.
6442         * tests/test-log.c: New file.
6443
6444         Tests for module 'lgamma'.
6445         * modules/lgamma-tests: New file.
6446         * tests/test-lgamma.c: New file.
6447
6448         Tests for module 'ldexp'.
6449         * modules/ldexp-tests: New file.
6450         * tests/test-ldexp.c: New file.
6451
6452         Tests for module 'jn'.
6453         * modules/jn-tests: New file.
6454         * tests/test-jn.c: New file.
6455
6456         Tests for module 'j1'.
6457         * modules/j1-tests: New file.
6458         * tests/test-j1.c: New file.
6459
6460         Tests for module 'j0'.
6461         * modules/j0-tests: New file.
6462         * tests/test-j0.c: New file.
6463
6464         Tests for module 'hypot'.
6465         * modules/hypot-tests: New file.
6466         * tests/test-hypot.c: New file.
6467
6468         Tests for module 'fmod'.
6469         * modules/fmod-tests: New file.
6470         * tests/test-fmod.c: New file.
6471
6472         Tests for module 'fabs'.
6473         * modules/fabs-tests: New file.
6474         * tests/test-fabs.c: New file.
6475
6476         Tests for module 'exp'.
6477         * modules/exp-tests: New file.
6478         * tests/test-exp.c: New file.
6479
6480         Tests for module 'erfc'.
6481         * modules/erfc-tests: New file.
6482         * tests/test-erfc.c: New file.
6483
6484         Tests for module 'erf'.
6485         * modules/erf-tests: New file.
6486         * tests/test-erf.c: New file.
6487
6488         Tests for module 'cosh'.
6489         * modules/cosh-tests: New file.
6490         * tests/test-cosh.c: New file.
6491
6492         Tests for module 'cos'.
6493         * modules/cos-tests: New file.
6494         * tests/test-cos.c: New file.
6495
6496         Tests for module 'copysign'.
6497         * modules/copysign-tests: New file.
6498         * tests/test-copysign.c: New file.
6499
6500         Tests for module 'cbrt'.
6501         * modules/cbrt-tests: New file.
6502         * tests/test-cbrt.c: New file.
6503
6504         Tests for module 'atan2'.
6505         * modules/atan2-tests: New file.
6506         * tests/test-atan2.c: New file.
6507
6508         Tests for module 'atan'.
6509         * modules/atan-tests: New file.
6510         * tests/test-atan.c: New file.
6511
6512         Tests for module 'asin'.
6513         * modules/asin-tests: New file.
6514         * tests/test-asin.c: New file.
6515
6516         Tests for module 'acos'.
6517         * modules/acos-tests: New file.
6518         * tests/test-acos.c: New file.
6519
6520 2010-01-24  Bruno Haible  <bruno@clisp.org>
6521
6522         Fix tests for common <math.h> functions.
6523         * m4/mathfunc.m4 (gl_MATHFUNC): Take two additional parameters. Use a
6524         code snippet that references the function pointer, rather than merely
6525         calling the function. Substitute the FUNC_LIBM variable.
6526         * m4/sqrt.m4 (gl_FUNC_SQRT): Update gl_MATHFUNC invocation.
6527         * modules/acos (configure.ac): Likewise.
6528         * modules/asin (configure.ac): Likewise.
6529         * modules/atan (configure.ac): Likewise.
6530         * modules/atan2 (configure.ac): Likewise.
6531         * modules/cbrt (configure.ac): Likewise.
6532         * modules/copysign (configure.ac): Likewise.
6533         * modules/cos (configure.ac): Likewise.
6534         * modules/cosh (configure.ac): Likewise.
6535         * modules/erf (configure.ac): Likewise.
6536         * modules/erfc (configure.ac): Likewise.
6537         * modules/exp (configure.ac): Likewise.
6538         * modules/fabs (configure.ac): Likewise.
6539         * modules/fmod (configure.ac): Likewise.
6540         * modules/hypot (configure.ac): Likewise.
6541         * modules/j0 (configure.ac): Likewise.
6542         * modules/j1 (configure.ac): Likewise.
6543         * modules/jn (configure.ac): Likewise.
6544         * modules/ldexp (configure.ac): Likewise.
6545         * modules/lgamma (configure.ac): Likewise.
6546         * modules/log (configure.ac): Likewise.
6547         * modules/log10 (configure.ac): Likewise.
6548         * modules/log1p (configure.ac): Likewise.
6549         * modules/logb (configure.ac): Likewise.
6550         * modules/modf (configure.ac): Likewise.
6551         * modules/nextafter (configure.ac): Likewise.
6552         * modules/pow (configure.ac): Likewise.
6553         * modules/remainder (configure.ac): Likewise.
6554         * modules/rint (configure.ac): Likewise.
6555         * modules/sin (configure.ac): Likewise.
6556         * modules/sinh (configure.ac): Likewise.
6557         * modules/tan (configure.ac): Likewise.
6558         * modules/tanh (configure.ac): Likewise.
6559         * modules/y0 (configure.ac): Likewise.
6560         * modules/y1 (configure.ac): Likewise.
6561         * modules/yn (configure.ac): Likewise.
6562
6563 2010-01-24  Bruno Haible  <bruno@clisp.org>
6564
6565         Tests: Defeat inlining of math functions by GCC >= 4.3.0.
6566         * tests/test-acosl.c (x): New variable.
6567         (main): Store argument in x and fetch it from x.
6568         * tests/test-asinl.c (x): New variable.
6569         (main): Store argument in x and fetch it from x.
6570         * tests/test-atanl.c (x): New variable.
6571         (main): Store argument in x and fetch it from x.
6572         * tests/test-cosl.c (x): New variable.
6573         (main): Store argument in x and fetch it from x.
6574         * tests/test-expl.c (x): New variable.
6575         (main): Store argument in x and fetch it from x.
6576         * tests/test-logl.c (x): New variable.
6577         (main): Store argument in x and fetch it from x.
6578         * tests/test-sinl.c (x): New variable.
6579         (main): Store argument in x and fetch it from x.
6580         * tests/test-sqrtl.c (x): New variable.
6581         (main): Store argument in x and fetch it from x.
6582         * tests/test-tanl.c (x): New variable.
6583         (main): Store argument in x and fetch it from x.
6584
6585 2010-01-24  Bruno Haible  <bruno@clisp.org>
6586
6587         Provide EXEEXT and srcdir in TESTS_ENVIRONMENT by default.
6588         * gnulib-tool (func_emit_tests_Makefile_am): Add EXEEXT and srcdir
6589         assignments to the initial TESTS_ENVIRONMENT.
6590         * doc/gnulib.texi (Unit test modules): Document it.
6591         * modules/acl-tests (Makefile.am): Drop EXEEXT assignment from
6592         TESTS_ENVIRONMENT.
6593         * modules/btowc-tests (Makefile.am): Likewise.
6594         * modules/c-stack-tests (Makefile.am): Likewise.
6595         * modules/c-strcase-tests (Makefile.am): Likewise.
6596         * modules/copy-file-tests (Makefile.am): Likewise.
6597         * modules/mbmemcasecmp-tests (Makefile.am): Likewise.
6598         * modules/mbmemcasecoll-tests (Makefile.am): Likewise.
6599         * modules/mbrtowc-tests (Makefile.am): Likewise.
6600         * modules/mbscasecmp-tests (Makefile.am): Likewise.
6601         * modules/mbscasestr-tests (Makefile.am): Likewise.
6602         * modules/mbschr-tests (Makefile.am): Likewise.
6603         * modules/mbscspn-tests (Makefile.am): Likewise.
6604         * modules/mbsinit-tests (Makefile.am): Likewise.
6605         * modules/mbsncasecmp-tests (Makefile.am): Likewise.
6606         * modules/mbsnrtowcs-tests (Makefile.am): Likewise.
6607         * modules/mbspbrk-tests (Makefile.am): Likewise.
6608         * modules/mbspcasecmp-tests (Makefile.am): Likewise.
6609         * modules/mbsrchr-tests (Makefile.am): Likewise.
6610         * modules/mbsrtowcs-tests (Makefile.am): Likewise.
6611         * modules/mbsspn-tests (Makefile.am): Likewise.
6612         * modules/mbsstr-tests (Makefile.am): Likewise.
6613         * modules/nl_langinfo-tests (Makefile.am): Likewise.
6614         * modules/unicase/locale-language-tests (Makefile.am): Likewise.
6615         * modules/unistdio/u16-vasnprintf-tests (Makefile.am): Likewise.
6616         * modules/unistdio/u32-vasnprintf-tests (Makefile.am): Likewise.
6617         * modules/unistdio/u8-vasnprintf-tests (Makefile.am): Likewise.
6618         * modules/unistdio/ulc-vasnprintf-tests (Makefile.am): Likewise.
6619         * modules/uniwbrk/ulc-wordbreaks-tests (Makefile.am): Likewise.
6620         * modules/vasnprintf-posix-tests (Makefile.am): Likewise.
6621         * modules/wcrtomb-tests (Makefile.am): Likewise.
6622         * modules/wcsnrtombs-tests (Makefile.am): Likewise.
6623         * modules/wcsrtombs-tests (Makefile.am): Likewise.
6624         * modules/quotearg-tests (Makefile.am): Drop EXEEXT and srcdir
6625         assignments from TESTS_ENVIRONMENT.
6626         * modules/argp-tests (Makefile.am): Drop TESTS_ENVIRONMENT
6627         augmentation.
6628         * modules/argp-version-etc-tests (Makefile.am): Likewise.
6629         * modules/atexit-tests (Makefile.am): Likewise.
6630         * modules/binary-io-tests (Makefile.am): Likewise.
6631         * modules/closein-tests (Makefile.am): Likewise.
6632         * modules/dprintf-posix-tests (Makefile.am): Likewise.
6633         * modules/exclude-tests (Makefile.am): Likewise.
6634         * modules/fflush-tests (Makefile.am): Likewise.
6635         * modules/fpending-tests (Makefile.am): Likewise.
6636         * modules/fprintf-posix-tests (Makefile.am): Likewise.
6637         * modules/freadahead-tests (Makefile.am): Likewise.
6638         * modules/freadptr-tests (Makefile.am): Likewise.
6639         * modules/freadseek-tests (Makefile.am): Likewise.
6640         * modules/fseek-tests (Makefile.am): Likewise.
6641         * modules/fseeko-tests (Makefile.am): Likewise.
6642         * modules/ftell-tests (Makefile.am): Likewise.
6643         * modules/ftello-tests (Makefile.am): Likewise.
6644         * modules/idpriv-drop-tests (Makefile.am): Likewise.
6645         * modules/idpriv-droptemp-tests (Makefile.am): Likewise.
6646         * modules/lseek-tests (Makefile.am): Likewise.
6647         * modules/parse-duration-tests (Makefile.am): Likewise.
6648         * modules/perror-tests (Makefile.am): Likewise.
6649         * modules/pipe-filter-gi-tests (Makefile.am): Likewise.
6650         * modules/pipe-filter-ii-tests (Makefile.am): Likewise.
6651         * modules/pipe-tests (Makefile.am): Likewise.
6652         * modules/pread-tests (Makefile.am): Likewise.
6653         * modules/printf-posix-tests (Makefile.am): Likewise.
6654         * modules/select-tests (Makefile.am): Likewise.
6655         * modules/sigpipe-tests (Makefile.am): Likewise.
6656         * modules/tsearch-tests (Makefile.am): Likewise.
6657         * modules/unicase/ulc-casecmp-tests (Makefile.am): Likewise.
6658         * modules/unicase/ulc-casecoll-tests (Makefile.am): Likewise.
6659         * modules/uniname/uniname-tests (Makefile.am): Likewise.
6660         * modules/uniwidth/width-tests (Makefile.am): Likewise.
6661         * modules/vdprintf-posix-tests (Makefile.am): Likewise.
6662         * modules/version-etc-tests (Makefile.am): Likewise.
6663         * modules/vfprintf-posix-tests (Makefile.am): Likewise.
6664         * modules/vprintf-posix-tests (Makefile.am): Likewise.
6665         * modules/xalloc-die-tests (Makefile.am): Likewise.
6666         * modules/xprintf-posix-tests (Makefile.am): Likewise.
6667         * modules/xstrtoimax-tests (Makefile.am): Likewise.
6668         * modules/xstrtol-tests (Makefile.am): Likewise.
6669         * modules/xstrtoumax-tests (Makefile.am): Likewise.
6670         * modules/yesno-tests (Makefile.am): Likewise.
6671         Suggested by Jim Meyering.
6672
6673 2010-01-24  Bruno Haible  <bruno@clisp.org>
6674
6675         More documentation.
6676         * doc/gnulib.texi (Writing modules): New chapter.
6677         (Miscellaneous Notes): Move sections "Comments" and "Header files" to
6678         the new chapter.
6679
6680 2010-01-24  Jim Meyering  <meyering@redhat.com>
6681
6682         maint.mk: do not prepend "./" after filtering
6683         * top/maint.mk (_prepend_srcdir_prefix): New variable
6684         (VC_LIST_EXCEPT): Use it to avoid prepending (post-filter)
6685         "./" when $(srcdir) is ".".
6686
6687         define STREQ(a,b) consistently, removing useless parentheses
6688         #define STREQ(a, b) (strcmp ((a), (b)) == 0) is over-parenthesized,
6689         since the only risk is that "a" or "b" contains an unparenthesized
6690         comma, but if either did that, STREQ would have 3 or more arguments.
6691         Hence, #define STREQ(a, b) (strcmp (a, b) == 0) is better.
6692         * lib/fts.c (STREQ): Remove unnecessary parentheses.
6693         * lib/hash-triple.c (STREQ): Likewise.
6694         * tests/test-argv-iter.c (STREQ): Use a and b, not s1 and s2.
6695         * lib/getugroups.c (STREQ): Likewise.
6696
6697 2010-01-23  Jim Meyering  <meyering@redhat.com>
6698
6699         maint.mk: fix syntax-check in a non-srcdir build directory
6700         * top/maint.mk (_dot_escaped_srcdir): Remove erroneous backslash,
6701         introduced in my 2010-01-21 commit, a6da6c45.  Reported by Eric Blake.
6702
6703 2010-01-22  Jim Meyering  <meyering@redhat.com>
6704
6705         userspec: add unit tests
6706         * tests/test-userspec.c: New file.
6707         * modules/userspec-tests: Likewise.
6708
6709 2010-01-21  Jim Meyering  <meyering@redhat.com>
6710
6711         maint.mk: handle source file names containing "." robustly
6712         * top/maint.mk (_dot_escaped_srcdir): Define.
6713         (VC_LIST): Use it in LHS of sed substitution.
6714
6715 2010-01-21  Jiri Denemark  <jdenemar@redhat.com>
6716
6717         maint.mk: fix VC_LIST_EXCEPT for srcdir != builddir
6718         * top/maint.mk (VC_LIST_EXCEPT): Preprocess the output of
6719         $(VC_LIST) to remove a prefix of '$(srcdir)/', so that it works
6720         from a non-srcdir build.
6721
6722 2010-01-20  Eric Blake  <ebb9@byu.net>
6723
6724         warn-on-use: use instead of link-warning
6725         * modules/stdio (Depends-on, Makefile.am): Drop link-warning.
6726         * modules/unistd (Depends-on, Makefile.am): Likewise.
6727         * modules/arpa_inet (Depends-on): Replace link-warning with
6728         warn-on-use.
6729         (Makefile.am): Update rules accordingly.
6730         * modules/ctype (Depends-on, Makefile.am): Likewise.
6731         * modules/dirent (Depends-on, Makefile.am): Likewise.
6732         * modules/fcntl-h (Depends-on, Makefile.am): Likewise.
6733         * modules/inttypes (Depends-on, Makefile.am): Likewise.
6734         * modules/langinfo (Depends-on, Makefile.am): Likewise.
6735         * modules/locale (Depends-on, Makefile.am): Likewise.
6736         * modules/math (Depends-on, Makefile.am): Likewise.
6737         * modules/search (Depends-on, Makefile.am): Likewise.
6738         * modules/signal (Depends-on, Makefile.am): Likewise.
6739         * modules/spawn (Depends-on, Makefile.am): Likewise.
6740         * modules/stdlib (Depends-on, Makefile.am): Likewise.
6741         * modules/string (Depends-on, Makefile.am): Likewise.
6742         * modules/strings (Depends-on, Makefile.am): Likewise.
6743         * modules/sys_file (Depends-on, Makefile.am): Likewise.
6744         * modules/sys_ioctl (Depends-on, Makefile.am): Likewise.
6745         * modules/sys_select (Depends-on, Makefile.am): Likewise.
6746         * modules/sys_socket (Depends-on, Makefile.am): Likewise.
6747         * modules/sys_stat (Depends-on, Makefile.am): Likewise.
6748         * modules/sys_times (Depends-on, Makefile.am): Likewise.
6749         * modules/sys_utsname (Depends-on, Makefile.am): Likewise.
6750         * modules/wchar (Depends-on, Makefile.am): Likewise.
6751         * m4/arpa_inet_h.m4 (gl_HEADER_ARPA_INET): Check which functions
6752         should be poisoned.
6753         * m4/ctype.m4 (gl_CTYPE_H): Likewise.
6754         * m4/dirent_h.m4 (gl_DIRENT_H): Likewise.
6755         * m4/fcntl_h.m4 (gl_FCNTL_H): Likewise.
6756         * m4/inttypes.m4 (gl_INTTYPES_H): Likewise.
6757         * m4/langinfo_h.m4 (gl_LANGINFO_H): Likewise.
6758         * m4/locale_h.m4 (gl_LOCALE_H): Likewise.
6759         * m4/math_h.m4 (gl_MATH_H): Likewise.
6760         * m4/search_h.m4 (gl_SEARCH_H): Likewise.
6761         * m4/signal_h.m4 (gl_SIGNAL_H): Likewise.
6762         * m4/spawn_h.m4 (gl_SPAWN_H): Likewise.
6763         * m4/stdio_h.m4 (gl_STDIO_H): Likewise.
6764         * m4/stdlib_h.m4 (gl_STDLIB_H): Likewise.
6765         * m4/string_h.m4 (gl_HEADER_STRING_H_BODY): Likewise.
6766         * m4/strings_h.m4 (gl_HEADER_STRINGS_H_BODY): Likewise.
6767         * m4/sys_file_h.m4 (gl_HEADER_SYS_FILE_H_DEFAULTS): Likewise.
6768         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_H): Likewise.
6769         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
6770         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Likewise.
6771         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Likewise.
6772         * m4/sys_times_h.m4 (gl_SYS_TIMES_H): Likewise.
6773         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_H): Likewise.
6774         * m4/unistd_h.m4 (gl_UNISTD_H): Likewise.
6775         * m4/wchar.m4 (gl_WCHAR_H): Likewise.
6776         * lib/arpa_inet.in.h: Use _GL_WARN_ON_USE instead of
6777         GL_LINK_WARNING.
6778         * lib/ctype.in.h: Likewise.
6779         * lib/dirent.in.h: Likewise.
6780         * lib/fcntl.in.h: Likewise.
6781         * lib/inttypes.in.h: Likewise.
6782         * lib/langinfo.in.h: Likewise.
6783         * lib/locale.in.h: Likewise.
6784         * lib/math.in.h: Likewise.
6785         * lib/search.in.h: Likewise.
6786         * lib/signal.in.h: Likewise.
6787         * lib/spawn.in.h: Likewise.
6788         * lib/stdio.in.h: Likewise.
6789         * lib/stdlib.in.h: Likewise.
6790         * lib/string.in.h: Likewise.
6791         * lib/strings.in.h: Likewise.
6792         * lib/sys_file.in.h: Likewise.
6793         * lib/sys_ioctl.in.h: Likewise.
6794         * lib/sys_select.in.h: Likewise.
6795         * lib/sys_socket.in.h: Likewise.
6796         * lib/sys_stat.in.h: Likewise.
6797         * lib/sys_times.in.h: Likewise.
6798         * lib/sys_utsname.in.h: Likewise.
6799         * lib/unistd.in.h: Likewise.
6800         * lib/wchar.in.h: Likewise.
6801
6802 2010-01-20  Bruno Haible  <bruno@clisp.org>
6803
6804         Avoid duplicate -lm.
6805         * m4/isnan.m4 (gl_ISNAN): Avoid duplicate -lm in $ISNAN_LIBM.
6806         * m4/round.m4 (gl_FUNC_ROUND): Avoid duplicate -lm in $ROUND_LIBM.
6807         * m4/roundf.m4 (gl_FUNC_ROUNDF): Avoid duplicate -lm in $ROUNDF_LIBM.
6808         * m4/roundl.m4 (gl_FUNC_ROUNDL): Avoid duplicate -lm in $ROUNDL_LIBM.
6809         * m4/acosl.m4 (gl_FUNC_ACOSL): Avoid duplicate -lm in $ACOSL_LIBM.
6810         * m4/cosl.m4 (gl_FUNC_COSL): Avoid duplicate -lm in $COSL_LIBM.
6811         * m4/logl.m4 (gl_FUNC_LOGL): Avoid duplicate -lm in $LOGL_LIBM.
6812         * m4/sinl.m4 (gl_FUNC_SINL): Avoid duplicate -lm in $SINL_LIBM.
6813         * m4/sqrtl.m4 (gl_FUNC_SQRTL): Avoid duplicate -lm in $SQRTL_LIBM.
6814         * m4/tanl.m4 (gl_FUNC_TANL): Avoid duplicate -lm in $TANL_LIBM.
6815         * m4/asinl.m4 (gl_FUNC_ASINL): Same change, for consistency.
6816         * m4/atanl.m4 (gl_FUNC_ATANL): Likewise.
6817         Reported by Paolo Bonzini.
6818
6819 2010-01-19  Bruno Haible  <bruno@clisp.org>
6820
6821         langinfo, nl_langinfo: Relicense under LGPLv2+.
6822         * modules/langinfo (License): Change to LGPLv2+.
6823         * modules/nl_langinfo (License): Likewise.
6824         Patch by David Lutterkort <lutter@redhat.com>.
6825
6826 2010-01-19  Bruno Haible  <bruno@clisp.org>
6827
6828         Avoid compilation error with cc on OSF/1 5.1.
6829         * lib/fcntl.in.h: Include <unistd.h> after the #include_next <fcntl.h>
6830         statement, not before.
6831         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
6832
6833 2010-01-18  Bruno Haible  <bruno@clisp.org>
6834
6835         Avoid a link error due to the __printf__ symbol.
6836         * lib/stdio.in.h (__attribute__): Define to empty also for gcc 2.5.x
6837         and 2.6.x.
6838         (__format__, __printf__): Remove definitions.
6839         * lib/argp-fmtstream.h: Likewise.
6840         * lib/argp.h: Likewise.
6841         * lib/error.h: Likewise.
6842         * lib/vasnprintf.h: Likewise.
6843         * lib/xprintf.h: Likewise.
6844         * lib/xvasprintf.h: Likewise.
6845         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
6846
6847 2010-01-18  Bruno Haible  <bruno@clisp.org>
6848
6849         Tests for module 'tanl'.
6850         * modules/tanl-tests: New file.
6851         * tests/test-tanl.c: New file.
6852
6853         Tests for module 'sqrtl'.
6854         * modules/sqrtl-tests: New file.
6855         * tests/test-sqrtl.c: New file.
6856
6857         Tests for module 'sinl'.
6858         * modules/sinl-tests: New file.
6859         * tests/test-sinl.c: New file.
6860
6861         Tests for module 'logl'.
6862         * modules/logl-tests: New file.
6863         * tests/test-logl.c: New file.
6864
6865         Tests for module 'expl'.
6866         * modules/expl-tests: New file.
6867         * tests/test-expl.c: New file.
6868
6869         Tests for module 'cosl'.
6870         * modules/cosl-tests: New file.
6871         * tests/test-cosl.c: New file.
6872
6873         Tests for module 'atanl'.
6874         * modules/atanl-tests: New file.
6875         * tests/test-atanl.c: New file.
6876
6877         Tests for module 'asinl'.
6878         * modules/asinl-tests: New file.
6879         * tests/test-asinl.c: New file.
6880
6881         Tests for module 'acosl'.
6882         * modules/acosl-tests: New file.
6883         * tests/test-acosl.c: New file.
6884
6885         New modules acosl, asinl, atanl, cosl, expl, logl, sinl, sqrtl, tanl.
6886         * lib/math.in.h (acosl, asinl, atanl, cosl, expl, logl, sinl, sqrtl,
6887         tanl): Use the standard gnulib idiom.
6888         * lib/cosl.c: Don't include trigl.c and sincosl.c.
6889         * lib/sinl.c: Likewise.
6890         * lib/tanl.c: Don't include trigl.c.
6891         (kernel_tanl): Make static.
6892         * lib/sincosl.c: Include trigl.h first.
6893         * lib/trigl.c: Likewise.
6894         * m4/acosl.m4: New file.
6895         * m4/asinl.m4: New file.
6896         * m4/atanl.m4: New file.
6897         * m4/cosl.m4: New file.
6898         * m4/expl.m4: New file.
6899         * m4/logl.m4: New file.
6900         * m4/sinl.m4: New file.
6901         * m4/sqrtl.m4: New file.
6902         * m4/tanl.m4: New file.
6903         * m4/mathl.m4: Remove file.
6904         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_* and HAVE_*
6905         variables for acosl, asinl, atanl, cosl, expl, logl, sinl, sqrtl, tanl.
6906         Don't initialize GNULIB_MATHL.
6907         * modules/acosl: New file.
6908         * modules/asinl: New file.
6909         * modules/atanl: New file.
6910         * modules/cosl: New file.
6911         * modules/expl: New file.
6912         * modules/logl: New file.
6913         * modules/sinl: New file.
6914         * modules/sqrtl: New file.
6915         * modules/tanl: New file.
6916         * modules/math (Makefile.am): Substitute GNULIB_* and HAVE_* variables
6917         for acosl, asinl, atanl, cosl, expl, logl, sinl, sqrtl, tanl. Don't
6918         substitute GNULIB_MATHL.
6919         * modules/mathl: Rewritten.
6920         * doc/posix-functions/acosl.texi: Mention the 'acosl' module.
6921         * doc/posix-functions/asinl.texi: Mention the 'asinl' module.
6922         * doc/posix-functions/atanl.texi: Mention the 'atanl' module.
6923         * doc/posix-functions/cosl.texi: Mention the 'cosl' module.
6924         * doc/posix-functions/expl.texi: Mention the 'expl' module.
6925         * doc/posix-functions/logl.texi: Mention the 'logl' module.
6926         * doc/posix-functions/sinl.texi: Mention the 'sinl' module.
6927         * doc/posix-functions/sqrtl.texi: Mention the 'sqrtl' module.
6928         * doc/posix-functions/tanl.texi: Mention the 'tanl' module.
6929
6930 2010-01-18  Bruno Haible  <bruno@clisp.org>
6931
6932         sqrt: Make gl_FUNC_SQRT requirable.
6933         * m4/sqrt.m4: New file.
6934         * modules/sqrt (Files): Add it.
6935         (configure.ac): Invoke gl_FUNC_SQRT.
6936
6937 2010-01-18  Bruno Haible  <bruno@clisp.org>
6938
6939         New modules for common <math.h> functions.
6940         * m4/mathfunc.m4: New file.
6941         * modules/acos: New file.
6942         * modules/asin: New file.
6943         * modules/atan: New file.
6944         * modules/atan2: New file.
6945         * modules/cbrt: New file.
6946         * modules/copysign: New file.
6947         * modules/cos: New file.
6948         * modules/cosh: New file.
6949         * modules/erf: New file.
6950         * modules/erfc: New file.
6951         * modules/exp: New file.
6952         * modules/fabs: New file.
6953         * modules/fmod: New file.
6954         * modules/hypot: New file.
6955         * modules/j0: New file.
6956         * modules/j1: New file.
6957         * modules/jn: New file.
6958         * modules/ldexp: New file.
6959         * modules/lgamma: New file.
6960         * modules/log: New file.
6961         * modules/log10: New file.
6962         * modules/log1p: New file.
6963         * modules/logb: New file.
6964         * modules/modf: New file.
6965         * modules/nextafter: New file.
6966         * modules/pow: New file.
6967         * modules/remainder: New file.
6968         * modules/rint: New file.
6969         * modules/sin: New file.
6970         * modules/sinh: New file.
6971         * modules/sqrt: New file.
6972         * modules/tan: New file.
6973         * modules/tanh: New file.
6974         * modules/y0: New file.
6975         * modules/y1: New file.
6976         * modules/yn: New file.
6977         * doc/posix-functions/acos.texi: Mention the 'acos' module.
6978         * doc/posix-functions/asin.texi: Mention the 'asin' module.
6979         * doc/posix-functions/atan.texi: Mention the 'atan' module.
6980         * doc/posix-functions/atan2.texi: Mention the 'atan2' module.
6981         * doc/posix-functions/cbrt.texi: Mention the 'cbrt' module.
6982         * doc/posix-functions/copysign.texi: Mention the 'copysign' module.
6983         * doc/posix-functions/cos.texi: Mention the 'cos' module.
6984         * doc/posix-functions/cosh.texi: Mention the 'cosh' module.
6985         * doc/posix-functions/erf.texi: Mention the 'erf' module.
6986         * doc/posix-functions/erfc.texi: Mention the 'erfc' module.
6987         * doc/posix-functions/exp.texi: Mention the 'exp' module.
6988         * doc/posix-functions/fabs.texi: Mention the 'fabs' module.
6989         * doc/posix-functions/fmod.texi: Mention the 'fmod' module.
6990         * doc/posix-functions/hypot.texi: Mention the 'hypot' module.
6991         * doc/posix-functions/j0.texi: Mention the 'j0' module.
6992         * doc/posix-functions/j1.texi: Mention the 'j1' module.
6993         * doc/posix-functions/jn.texi: Mention the 'jn' module.
6994         * doc/posix-functions/ldexp.texi: Mention the 'ldexp' module.
6995         * doc/posix-functions/lgamma.texi: Mention the 'lgamma' module.
6996         * doc/posix-functions/log.texi: Mention the 'log' module.
6997         * doc/posix-functions/log10.texi: Mention the 'log10' module.
6998         * doc/posix-functions/log1p.texi: Mention the 'log1p' module.
6999         * doc/posix-functions/logb.texi: Mention the 'logb' module.
7000         * doc/posix-functions/modf.texi: Mention the 'modf' module.
7001         * doc/posix-functions/nextafter.texi: Mention the 'nextafter' module.
7002         * doc/posix-functions/pow.texi: Mention the 'pow' module.
7003         * doc/posix-functions/remainder.texi: Mention the 'remainder' module.
7004         * doc/posix-functions/rint.texi: Mention the 'rint' module.
7005         * doc/posix-functions/sin.texi: Mention the 'sin' module.
7006         * doc/posix-functions/sinh.texi: Mention the 'sinh' module.
7007         * doc/posix-functions/sqrt.texi: Mention the 'sqrt' module.
7008         * doc/posix-functions/tan.texi: Mention the 'tan' module.
7009         * doc/posix-functions/tanh.texi: Mention the 'tanh' module.
7010         * doc/posix-functions/y0.texi: Mention the 'y0' module.
7011         * doc/posix-functions/y1.texi: Mention the 'y1' module.
7012         * doc/posix-functions/yn.texi: Mention the 'yn' module.
7013
7014 2010-01-18  Jim Meyering  <meyering@redhat.com>
7015
7016         ignore-value: relax license to LGPLv2+
7017         * modules/ignore-value (License): Relax to LGPLv2+.
7018
7019         getdate: don't leak when TZ contains two or more '"'s
7020         * lib/getdate.y (get_date): Don't leak a copy of TZ for each
7021         double quote in TZ after the first one.
7022
7023         readtokens: do not leak internal token_lengths buffer
7024         * lib/readtokens.c (readtokens): Free the local, lengths,
7025         when the supplied "token_lengths" parameter is NULL.
7026
7027 2010-01-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
7028
7029         Fix a couple of missing LIBTHREAD link failures on AIX.
7030         * modules/git-merge-changelog (git_merge_changelog_LDADD): Add
7031         $(LIBTHREAD).
7032         * modules/strsignal-tests (test_strsignal_LDADD): Likewise.
7033
7034         Link test-poll against INET_PTON_LIB.
7035         * modules/poll-tests (test_poll_LDADD): Add $(INET_PTON_LIB),
7036         for inet_pton on Solaris 10.
7037
7038 2010-01-17  Bruno Haible  <bruno@clisp.org>
7039
7040         unistdio/*-sprintf: Fix typo in module description.
7041         * modules/unistdio/u8-sprintf (Depends-on): Fix typo.
7042         * modules/unistdio/u8-u8-sprintf (Depends-on): Likewise.
7043         * modules/unistdio/u16-sprintf (Depends-on): Likewise.
7044         * modules/unistdio/u16-u16-sprintf (Depends-on): Likewise.
7045         * modules/unistdio/u32-sprintf (Depends-on): Likewise.
7046         * modules/unistdio/u32-u32-sprintf (Depends-on): Likewise.
7047         * modules/unistdio/ulc-sprintf (Depends-on): Likewise.
7048         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
7049
7050 2010-01-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
7051
7052         gnulib-tool: fix filelist for AIX, HP-UX ksh.
7053         * gnulib-tool (func_filter_filelist): Do not quote possibly-empty
7054         variables in shell case patterns, for AIX and HP-UX ksh.
7055
7056         Split large sed scripts, for HP-UX sed.
7057         * modules/stdio: Split sed scripts around 50 sed commands,
7058         to avoid HP-UX limit of 99 commands, in the near future.
7059         * modules/string: Likewise.
7060         * modules/unistd: Likewise.
7061
7062         gnulib-tool: avoid writing in the current directory.
7063         * gnulib-tool (func_emit_lib_Makefile_am)
7064         (func_emit_tests_Makefile_am): Put temporary files in $tmp,
7065         not in the current directory, so concurrent gnulib-tool
7066         instances do not interfere.
7067
7068 2010-01-16  Jim Meyering  <meyering@redhat.com>
7069
7070         doc: update users.txt
7071         * users.txt: Add grep.
7072         (diffutils, gzip): Update URLs.
7073
7074 2010-01-12  Bruno Haible  <bruno@clisp.org>
7075
7076         posix_spawn: Avoid test failure on Cygwin.
7077         * tests/test-posix_spawn3.c (DATA_FILENAME) [CYGWIN]: Use less risky
7078         characters.
7079         Reported by Simon Josefsson.
7080
7081 2010-01-12  Bruno Haible  <bruno@clisp.org>
7082
7083         * tests/test-cond.c (main): When skipping the test, show the reason.
7084
7085 2010-01-12  Simon Josefsson  <simon@josefsson.org>
7086
7087         * lib/striconv.c (str_cd_iconv): Avoid if before free.
7088
7089 2010-01-12  Simon Josefsson  <simon@josefsson.org>
7090
7091         * top/maint.mk (VC_LIST_EXCEPT): Filter list through
7092         VC_LIST_ALWAYS_EXCLUDE_REGEX.
7093
7094 2010-01-12  Eric Blake  <ebb9@byu.net>
7095
7096         build: guarantee AS_VAR_IF
7097         * m4/warnings.m4 (gl_WARN_ADD): Use autoconf name.
7098         (gl_AS_VAR_IF): Move...
7099         * m4/gnulib-common.m4 (AS_VAR_IF): ...here.
7100         Reported by Simon Josefsson.
7101
7102 2010-01-12  Simon Josefsson  <simon@josefsson.org>
7103
7104         * lib/stdio.in.h: Fix typo.
7105
7106 2010-01-12  Simon Josefsson  <simon@josefsson.org>
7107
7108         * m4/gc.m4: Check if linking to libgcrypt also needs linking to
7109         libgpg-error.
7110
7111 2010-01-12  Simon Josefsson  <simon@josefsson.org>
7112
7113         * tests/test-xalloc-die.sh: Use $EXEEXT.
7114
7115 2010-01-12  Simon Josefsson  <simon@josefsson.org>
7116             Bruno Haible  <bruno@clisp.org>
7117
7118         getlogin, getlogin_r: Avoid test failure.
7119         * tests/test-getlogin.c: Include <stdio.h>.
7120         (main): Skip the test when the function fails because stdin is not a
7121         tty.
7122         * tests/test-getlogin_r.c: Include <stdio.h>.
7123         (main): Skip the test when the function fails because stdin is not a
7124         tty.
7125
7126 2010-01-11  Eric Blake  <ebb9@byu.net>
7127
7128         tests: avoid more large file warnings
7129         * tests/test-fflush.c: Avoid warning about ftell use.
7130         * tests/test-fseek.c: Avoid warning about fseek use.
7131
7132 2010-01-10  Bruno Haible  <bruno@clisp.org>
7133
7134         nproc: Work better on Linux when /proc and /sys are not mounted.
7135         * lib/nproc.c (num_processors): Use num_processors_via_affinity_mask ()
7136         as lower bound when, on glibc/Linux systems,
7137         sysconf (_SC_NPROCESSORS_CONF) returns 1.
7138         Suggested by Pádraig Brady <P@draigbrady.com>.
7139         Reported by Dmitry V. Levin <ldv@altlinux.org>.
7140
7141         nproc: Refactor.
7142         * lib/nproc.c (num_processors_via_affinity_mask): New function,
7143         extracted from num_processors.
7144         (num_processors): Call it.
7145
7146 2010-01-11  Jim Meyering  <meyering@redhat.com>
7147
7148         utimecmp: avoid new warning from upcoming gcc-4.5.0
7149         * lib/utimecmp.c (BILLION): Define using #define rather than an
7150         anonymous enum, to placate upcoming gcc-4.5.0's -Wenum-compare.
7151
7152 2010-01-11  Eric Blake  <ebb9@byu.net>
7153
7154         math: add portability warnings for classification macros
7155         * modules/math (Depends-on): Add warn-on-use.
7156         (Makefile.am): Provide new substitutions.
7157         * m4/math_h.m4 (gl_MATH_H): Require inline.
7158         * lib/math.in.h (_GL_WARN_REAL_FLOATING_DECL)
7159         (_GL_WARN_REAL_FLOATING_IMPL): New helper macros.
7160         (isfinite, isinf, isnan, signbit) [GNULIB_POSIXCHECK]: Use them to
7161         implement warnings.
7162
7163         unistd: warn on use of environ without module
7164         * modules/unistd (Depends-on): Add warn-on-use.
7165         (Makefile.am): Provide new substitutions.
7166         * m4/unistd_h.m4 (gl_UNISTD_H): Check for inline and environ.
7167         * lib/unistd.in.h (environ): Wrap with a warning helper function.
7168
7169         stdio: warn on suspicious uses
7170         * modules/stdio (Depends-on): Add warn-on-use.
7171         (Makefile.am): Provide new substitutions.
7172         * m4/stdio_h.m4 (gl_STDIO_H): Check for inline, ftello, and
7173         fseeko.
7174         * lib/stdio.in.h (gets): Always warn on use.
7175         (fseek, ftell): Adjust when warnings are issued, and honor
7176         _GL_NO_LARGE_FILES as a way to silence the warning.
7177         * tests/test-fpurge.c [!GNULIB_FSEEK]: Use new means to squelch
7178         any warning about large file offsets.
7179         * tests/test-freadable.c [!GNULIB_FSEEK]: Likewise.
7180         * tests/test-freading.c [!GNULIB_FSEEK]: Likewise.
7181         * tests/test-fseeko.c [!GNULIB_FSEEK]: Likewise.
7182         * tests/test-ftell.c [!GNULIB_FSEEK]: Likewise.
7183         * tests/test-ftello.c [!GNULIB_FSEEK]: Likewise.
7184         * tests/test-fwritable.c [!GNULIB_FSEEK]: Likewise.
7185         * tests/test-fwriting.c [!GNULIB_FSEEK]: Likewise.
7186         * tests/test-getopt.c [!GNULIB_FTELL]: Likewise.
7187
7188         warn-on-use: new module
7189         * modules/warn-on-use: New file.
7190         * build-aux/warn-on-use.h: Likewise.
7191         * m4/warn-on-use.m4: Likewise.
7192         * MODULES.html.sh (Support for building): Mention it.
7193
7194 2010-01-10  Bruno Haible  <bruno@clisp.org>
7195
7196         Tests for module 'unistr/u32-strdup'.
7197         * modules/unistr/u32-strdup-tests: New file.
7198         * tests/unistr/test-u32-strdup.c: New file.
7199
7200         Tests for module 'unistr/u16-strdup'.
7201         * modules/unistr/u16-strdup-tests: New file.
7202         * tests/unistr/test-u16-strdup.c: New file.
7203
7204         Tests for module 'unistr/u8-strdup'.
7205         * modules/unistr/u8-strdup-tests: New file.
7206         * tests/unistr/test-u8-strdup.c: New file.
7207         * tests/unistr/test-strdup.h: New file.
7208
7209         Tests for module 'unistr/u32-strncmp'.
7210         * modules/unistr/u32-strncmp-tests: New file.
7211         * tests/unistr/test-u32-strncmp.c: New file.
7212
7213         Tests for module 'unistr/u16-strncmp'.
7214         * modules/unistr/u16-strncmp-tests: New file.
7215         * tests/unistr/test-u16-strncmp.c: New file.
7216
7217         Tests for module 'unistr/u8-strncmp'.
7218         * modules/unistr/u8-strncmp-tests: New file.
7219         * tests/unistr/test-u8-strncmp.c: New file.
7220         * tests/unistr/test-strncmp.h: New file.
7221
7222         Tests for module 'unistr/u32-strcoll'.
7223         * modules/unistr/u32-strcoll-tests: New file.
7224         * tests/unistr/test-u32-strcoll.c: New file.
7225
7226         Tests for module 'unistr/u16-strcoll'.
7227         * modules/unistr/u16-strcoll-tests: New file.
7228         * tests/unistr/test-u16-strcoll.c: New file.
7229
7230         Tests for module 'unistr/u8-strcoll'.
7231         * modules/unistr/u8-strcoll-tests: New file.
7232         * tests/unistr/test-u8-strcoll.c: New file.
7233
7234         Tests for module 'unistr/u32-strcmp'.
7235         * modules/unistr/u32-strcmp-tests: New file.
7236         * tests/unistr/test-u32-strcmp.c: New file.
7237         * tests/unistr/test-u32-strcmp.h: New file.
7238
7239         Tests for module 'unistr/u16-strcmp'.
7240         * modules/unistr/u16-strcmp-tests: New file.
7241         * tests/unistr/test-u16-strcmp.c: New file.
7242         * tests/unistr/test-u16-strcmp.h: New file.
7243
7244         Tests for module 'unistr/u8-strcmp'.
7245         * modules/unistr/u8-strcmp-tests: New file.
7246         * tests/unistr/test-u8-strcmp.c: New file.
7247         * tests/unistr/test-u8-strcmp.h: New file.
7248         * tests/unistr/test-strcmp.h: New file.
7249
7250         Tests for module 'unistr/u32-strncat'.
7251         * modules/unistr/u32-strncat-tests: New file.
7252         * tests/unistr/test-u32-strncat.c: New file.
7253
7254         Tests for module 'unistr/u16-strncat'.
7255         * modules/unistr/u16-strncat-tests: New file.
7256         * tests/unistr/test-u16-strncat.c: New file.
7257
7258         Tests for module 'unistr/u8-strncat'.
7259         * modules/unistr/u8-strncat-tests: New file.
7260         * tests/unistr/test-u8-strncat.c: New file.
7261         * tests/unistr/test-strncat.h: New file.
7262
7263         Tests for module 'unistr/u32-strcat'.
7264         * modules/unistr/u32-strcat-tests: New file.
7265         * tests/unistr/test-u32-strcat.c: New file.
7266
7267         Tests for module 'unistr/u16-strcat'.
7268         * modules/unistr/u16-strcat-tests: New file.
7269         * tests/unistr/test-u16-strcat.c: New file.
7270
7271         Tests for module 'unistr/u8-strcat'.
7272         * modules/unistr/u8-strcat-tests: New file.
7273         * tests/unistr/test-u8-strcat.c: New file.
7274         * tests/unistr/test-strcat.h: New file.
7275
7276         Tests for module 'unistr/u32-stpncpy'.
7277         * modules/unistr/u32-stpncpy-tests: New file.
7278         * tests/unistr/test-u32-stpncpy.c: New file.
7279
7280         Tests for module 'unistr/u16-stpncpy'.
7281         * modules/unistr/u16-stpncpy-tests: New file.
7282         * tests/unistr/test-u16-stpncpy.c: New file.
7283
7284         Tests for module 'unistr/u8-stpncpy'.
7285         * modules/unistr/u8-stpncpy-tests: New file.
7286         * tests/unistr/test-u8-stpncpy.c: New file.
7287         * tests/unistr/test-stpncpy.h: New file.
7288
7289         Tests for module 'unistr/u32-strncpy'.
7290         * modules/unistr/u32-strncpy-tests: New file.
7291         * tests/unistr/test-u32-strncpy.c: New file.
7292
7293         Tests for module 'unistr/u16-strncpy'.
7294         * modules/unistr/u16-strncpy-tests: New file.
7295         * tests/unistr/test-u16-strncpy.c: New file.
7296
7297         Tests for module 'unistr/u8-strncpy'.
7298         * modules/unistr/u8-strncpy-tests: New file.
7299         * tests/unistr/test-u8-strncpy.c: New file.
7300         * tests/unistr/test-strncpy.h: New file.
7301
7302         Tests for module 'unistr/u32-stpcpy'.
7303         * modules/unistr/u32-stpcpy-tests: New file.
7304         * tests/unistr/test-u32-stpcpy.c: New file.
7305
7306         Tests for module 'unistr/u16-stpcpy'.
7307         * modules/unistr/u16-stpcpy-tests: New file.
7308         * tests/unistr/test-u16-stpcpy.c: New file.
7309
7310         Tests for module 'unistr/u8-stpcpy'.
7311         * modules/unistr/u8-stpcpy-tests: New file.
7312         * tests/unistr/test-u8-stpcpy.c: New file.
7313         * tests/unistr/test-stpcpy.h: New file.
7314
7315         Tests for module 'unistr/u32-strcpy'.
7316         * modules/unistr/u32-strcpy-tests: New file.
7317         * tests/unistr/test-u32-strcpy.c: New file.
7318
7319         Tests for module 'unistr/u16-strcpy'.
7320         * modules/unistr/u16-strcpy-tests: New file.
7321         * tests/unistr/test-u16-strcpy.c: New file.
7322
7323         Tests for module 'unistr/u8-strcpy'.
7324         * modules/unistr/u8-strcpy-tests: New file.
7325         * tests/unistr/test-u8-strcpy.c: New file.
7326         * tests/unistr/test-strcpy.h: New file.
7327
7328         Tests for module 'unistr/u32-strnlen'.
7329         * modules/unistr/u32-strnlen-tests: New file.
7330         * tests/unistr/test-u32-strnlen.c: New file.
7331
7332         Tests for module 'unistr/u16-strnlen'.
7333         * modules/unistr/u16-strnlen-tests: New file.
7334         * tests/unistr/test-u16-strnlen.c: New file.
7335
7336         Tests for module 'unistr/u8-strnlen'.
7337         * modules/unistr/u8-strnlen-tests: New file.
7338         * tests/unistr/test-u8-strnlen.c: New file.
7339         * tests/unistr/test-strnlen.h: New file.
7340
7341         Tests for module 'unistr/u32-strlen'.
7342         * modules/unistr/u32-strlen-tests: New file.
7343         * tests/unistr/test-u32-strlen.c: New file.
7344
7345         Tests for module 'unistr/u16-strlen'.
7346         * modules/unistr/u16-strlen-tests: New file.
7347         * tests/unistr/test-u16-strlen.c: New file.
7348
7349         Tests for module 'unistr/u8-strlen'.
7350         * modules/unistr/u8-strlen-tests: New file.
7351         * tests/unistr/test-u8-strlen.c: New file.
7352
7353         Tests for module 'unistr/u32-prev'.
7354         * modules/unistr/u32-prev-tests: New file.
7355         * tests/unistr/test-u32-prev.c: New file.
7356
7357         Tests for module 'unistr/u16-prev'.
7358         * modules/unistr/u16-prev-tests: New file.
7359         * tests/unistr/test-u16-prev.c: New file.
7360
7361         Tests for module 'unistr/u8-prev'.
7362         * modules/unistr/u8-prev-tests: New file.
7363         * tests/unistr/test-u8-prev.c: New file.
7364
7365         Tests for module 'unistr/u32-next'.
7366         * modules/unistr/u32-next-tests: New file.
7367         * tests/unistr/test-u32-next.c: New file.
7368
7369         Tests for module 'unistr/u16-next'.
7370         * modules/unistr/u16-next-tests: New file.
7371         * tests/unistr/test-u16-next.c: New file.
7372
7373         Tests for module 'unistr/u8-next'.
7374         * modules/unistr/u8-next-tests: New file.
7375         * tests/unistr/test-u8-next.c: New file.
7376
7377         Tests for module 'unistr/u32-strmbtouc'.
7378         * modules/unistr/u32-strmbtouc-tests: New file.
7379         * tests/unistr/test-u32-strmbtouc.c: New file.
7380
7381         Tests for module 'unistr/u16-strmbtouc'.
7382         * modules/unistr/u16-strmbtouc-tests: New file.
7383         * tests/unistr/test-u16-strmbtouc.c: New file.
7384
7385         Tests for module 'unistr/u8-strmbtouc'.
7386         * modules/unistr/u8-strmbtouc-tests: New file.
7387         * tests/unistr/test-u8-strmbtouc.c: New file.
7388
7389         Tests for module 'unistr/u32-strmblen'.
7390         * modules/unistr/u32-strmblen-tests: New file.
7391         * tests/unistr/test-u32-strmblen.c: New file.
7392
7393         Tests for module 'unistr/u16-strmblen'.
7394         * modules/unistr/u16-strmblen-tests: New file.
7395         * tests/unistr/test-u16-strmblen.c: New file.
7396
7397         Tests for module 'unistr/u8-strmblen'.
7398         * modules/unistr/u8-strmblen-tests: New file.
7399         * tests/unistr/test-u8-strmblen.c: New file.
7400
7401         Tests for module 'unistr/u32-cpy-alloc'.
7402         * modules/unistr/u32-cpy-alloc-tests: New file.
7403         * tests/unistr/test-u32-cpy-alloc.c: New file.
7404
7405         Tests for module 'unistr/u16-cpy-alloc'.
7406         * modules/unistr/u16-cpy-alloc-tests: New file.
7407         * tests/unistr/test-u16-cpy-alloc.c: New file.
7408
7409         Tests for module 'unistr/u8-cpy-alloc'.
7410         * modules/unistr/u8-cpy-alloc-tests: New file.
7411         * tests/unistr/test-u8-cpy-alloc.c: New file.
7412         * tests/unistr/test-cpy-alloc.h: New file.
7413
7414         Tests for module 'unistr/u32-mbsnlen'.
7415         * modules/unistr/u32-mbsnlen-tests: New file.
7416         * tests/unistr/test-u32-mbsnlen.c: New file.
7417
7418         Tests for module 'unistr/u16-mbsnlen'.
7419         * modules/unistr/u16-mbsnlen-tests: New file.
7420         * tests/unistr/test-u16-mbsnlen.c: New file.
7421
7422         Tests for module 'unistr/u8-mbsnlen'.
7423         * modules/unistr/u8-mbsnlen-tests: New file.
7424         * tests/unistr/test-u8-mbsnlen.c: New file.
7425
7426         Tests for module 'unistr/u32-chr'.
7427         * modules/unistr/u32-chr-tests: New file.
7428         * tests/unistr/test-u32-chr.c: New file.
7429
7430         Tests for module 'unistr/u16-chr'.
7431         * modules/unistr/u16-chr-tests: New file.
7432         * tests/unistr/test-u16-chr.c: New file.
7433
7434         Tests for module 'unistr/u8-chr'.
7435         * modules/unistr/u8-chr-tests: New file.
7436         * tests/unistr/test-u8-chr.c: New file.
7437         * tests/unistr/test-chr.h: New file, based on tests/test-memchr.c.
7438
7439         Tests for module 'unistr/u32-cmp2'.
7440         * modules/unistr/u32-cmp2-tests: New file.
7441         * tests/unistr/test-u32-cmp2.c: New file.
7442
7443         Tests for module 'unistr/u16-cmp2'.
7444         * modules/unistr/u16-cmp2-tests: New file.
7445         * tests/unistr/test-u16-cmp2.c: New file.
7446
7447         Tests for module 'unistr/u8-cmp2'.
7448         * modules/unistr/u8-cmp2-tests: New file.
7449         * tests/unistr/test-u8-cmp2.c: New file.
7450         * tests/unistr/test-cmp2.h: New file, based on tests/unistr/test-cmp.h.
7451
7452         Tests for module 'unistr/u32-cmp'.
7453         * modules/unistr/u32-cmp-tests: New file.
7454         * tests/unistr/test-u32-cmp.c: New file.
7455
7456         Tests for module 'unistr/u16-cmp'.
7457         * modules/unistr/u16-cmp-tests: New file.
7458         * tests/unistr/test-u16-cmp.c: New file.
7459
7460         Tests for module 'unistr/u8-cmp'.
7461         * modules/unistr/u8-cmp-tests: New file.
7462         * tests/unistr/test-u8-cmp.c: New file.
7463         * tests/unistr/test-cmp.h: New file, based on tests/test-memcmp.c.
7464
7465         Tests for module 'unistr/u32-set'.
7466         * modules/unistr/u32-set-tests: New file.
7467         * tests/unistr/test-u32-set.c: New file.
7468
7469         Tests for module 'unistr/u16-set'.
7470         * modules/unistr/u16-set-tests: New file.
7471         * tests/unistr/test-u16-set.c: New file.
7472
7473         Tests for module 'unistr/u8-set'.
7474         * modules/unistr/u8-set-tests: New file.
7475         * tests/unistr/test-u8-set.c: New file.
7476         * tests/unistr/test-set.h: New file.
7477
7478         Tests for module 'unistr/u32-move'.
7479         * modules/unistr/u32-move-tests: New file.
7480         * tests/unistr/test-u32-move.c: New file.
7481
7482         Tests for module 'unistr/u16-move'.
7483         * modules/unistr/u16-move-tests: New file.
7484         * tests/unistr/test-u16-move.c: New file.
7485
7486         Tests for module 'unistr/u8-move'.
7487         * modules/unistr/u8-move-tests: New file.
7488         * tests/unistr/test-u8-move.c: New file.
7489         * tests/unistr/test-move.h: New file.
7490
7491         Tests for module 'unistr/u32-cpy'.
7492         * modules/unistr/u32-cpy-tests: New file.
7493         * tests/unistr/test-u32-cpy.c: New file.
7494
7495         Tests for module 'unistr/u16-cpy'.
7496         * modules/unistr/u16-cpy-tests: New file.
7497         * tests/unistr/test-u16-cpy.c: New file.
7498
7499         Tests for module 'unistr/u8-cpy'.
7500         * modules/unistr/u8-cpy-tests: New file.
7501         * tests/unistr/test-u8-cpy.c: New file.
7502         * tests/unistr/test-cpy.h: New file.
7503
7504 2010-01-09  Bruno Haible  <bruno@clisp.org>
7505
7506         Tests for module 'unistr/u32-uctomb'.
7507         * modules/unistr/u32-uctomb-tests: New file.
7508         * tests/unistr/test-u32-uctomb.c: New file.
7509
7510         Tests for module 'unistr/u16-uctomb'.
7511         * modules/unistr/u16-uctomb-tests: New file.
7512         * tests/unistr/test-u16-uctomb.c: New file.
7513
7514         Tests for module 'unistr/u8-uctomb'.
7515         * modules/unistr/u8-uctomb-tests: New file.
7516         * tests/unistr/test-u8-uctomb.c: New file.
7517
7518         Tests for module 'unistr/u32-mbtoucr'.
7519         * modules/unistr/u32-mbtoucr-tests: New file.
7520         * tests/unistr/test-u32-mbtoucr.c: New file.
7521
7522         Tests for module 'unistr/u16-mbtoucr'.
7523         * modules/unistr/u16-mbtoucr-tests: New file.
7524         * tests/unistr/test-u16-mbtoucr.c: New file.
7525
7526         Tests for module 'unistr/u8-mbtoucr'.
7527         * modules/unistr/u8-mbtoucr-tests: New file.
7528         * tests/unistr/test-u8-mbtoucr.c: New file.
7529
7530         Tests for module 'unistr/u32-mbtouc'.
7531         * modules/unistr/u32-mbtouc-tests: New file.
7532         * tests/unistr/test-u32-mbtouc.c: New file.
7533
7534         Tests for module 'unistr/u16-mbtouc'.
7535         * modules/unistr/u16-mbtouc-tests: New file.
7536         * tests/unistr/test-u16-mbtouc.c: New file.
7537
7538         Tests for module 'unistr/u8-mbtouc'.
7539         * modules/unistr/u8-mbtouc-tests: New file.
7540         * tests/unistr/test-u8-mbtouc.c: New file.
7541
7542         Tests for module 'unistr/u32-mbtouc-unsafe'.
7543         * modules/unistr/u32-mbtouc-unsafe-tests: New file.
7544         * tests/unistr/test-u32-mbtouc-unsafe.c: New file.
7545         * tests/unistr/test-u32-mbtouc.h: New file.
7546
7547         Tests for module 'unistr/u16-mbtouc-unsafe'.
7548         * modules/unistr/u16-mbtouc-unsafe-tests: New file.
7549         * tests/unistr/test-u16-mbtouc-unsafe.c: New file.
7550         * tests/unistr/test-u16-mbtouc.h: New file.
7551
7552         Tests for module 'unistr/u8-mbtouc-unsafe'.
7553         * modules/unistr/u8-mbtouc-unsafe-tests: New file.
7554         * tests/unistr/test-u8-mbtouc-unsafe.c: New file.
7555         * tests/unistr/test-u8-mbtouc.h: New file.
7556
7557         Tests for module 'unistr/u32-mblen'.
7558         * modules/unistr/u32-mblen-tests: New file.
7559         * tests/unistr/test-u32-mblen.c: New file.
7560
7561         Tests for module 'unistr/u16-mblen'.
7562         * modules/unistr/u16-mblen-tests: New file.
7563         * tests/unistr/test-u16-mblen.c: New file.
7564
7565         Tests for module 'unistr/u8-mblen'.
7566         * modules/unistr/u8-mblen-tests: New file.
7567         * tests/unistr/test-u8-mblen.c: New file.
7568
7569         Tests for module 'unistr/u32-to-u16'.
7570         * modules/unistr/u32-to-u16-tests: New file.
7571         * tests/unistr/test-u32-to-u16.c: New file.
7572
7573         Tests for module 'unistr/u32-to-u8'.
7574         * modules/unistr/u32-to-u8-tests: New file.
7575         * tests/unistr/test-u32-to-u8.c: New file.
7576
7577         Tests for module 'unistr/u16-to-u32'.
7578         * modules/unistr/u16-to-u32-tests: New file.
7579         * tests/unistr/test-u16-to-u32.c: New file.
7580
7581         Tests for module 'unistr/u16-to-u8'.
7582         * modules/unistr/u16-to-u8-tests: New file.
7583         * tests/unistr/test-u16-to-u8.c: New file.
7584
7585         Tests for module 'unistr/u8-to-u32'.
7586         * modules/unistr/u8-to-u32-tests: New file.
7587         * tests/unistr/test-u8-to-u32.c: New file.
7588
7589         Tests for module 'unistr/u8-to-u16'.
7590         * modules/unistr/u8-to-u16-tests: New file.
7591         * tests/unistr/test-u8-to-u16.c: New file.
7592
7593         Tests for module 'unistr/u32-check'.
7594         * modules/unistr/u32-check-tests: New file.
7595         * tests/unistr/test-u32-check.c: New file.
7596
7597         Tests for module 'unistr/u16-check'.
7598         * modules/unistr/u16-check-tests: New file.
7599         * tests/unistr/test-u16-check.c: New file.
7600
7601         Tests for module 'unistr/u8-check'.
7602         * modules/unistr/u8-check-tests: New file.
7603         * tests/unistr/test-u8-check.c: New file.
7604
7605         * tests/unictype/test-categ_byname.c: Include <stdbool.h>.
7606         (category_equals): New function.
7607         (main): Add more tests.
7608         * modules/unictype/category-byname-tests (Depends-on): Add stdbool.
7609
7610         * tests/unictype/test-bidi_byname.c (main): Add more tests.
7611
7612 2010-01-10  Bruno Haible  <bruno@clisp.org>
7613
7614         unistr/u*-strcoll: Try harder to distinguish different strings.
7615         * lib/unistr/u-strcoll.h (FUNC): When sl1 and sl2 are the same,
7616         compare s1 and s2 to see if they are different.
7617
7618 2010-01-10  Bruno Haible  <bruno@clisp.org>
7619
7620         unistr/u*-stpncpy: Fix the return value.
7621         * lib/unistr.h (u8_stpncpy, u16_stpncpy, u32_stpncpy): Make the
7622         description of the return value consistent with stpncpy in glibc.
7623         * lib/unistr/u-stpncpy.h (FUNC): Return the pointer past the last
7624         written non-NUL unit.
7625
7626 2010-01-10  Bruno Haible  <bruno@clisp.org>
7627
7628         unistr/u*-next: Add missing dependencies.
7629         * modules/unistr/u8-next (Depends-on): Add unistr/u8-strmbtouc.
7630         * modules/unistr/u16-next (Depends-on): Add unistr/u16-strmbtouc.
7631         * modules/unistr/u32-next (Depends-on): Add unistr/u32-strmbtouc.
7632
7633 2010-01-10  Bruno Haible  <bruno@clisp.org>
7634
7635         unistr/u8-mbsnlen: Fix return value for incomplete character.
7636         * lib/unistr/u8-mbsnlen.c (u8_mbsnlen): Use u8_mbtoucr instead of
7637         u8_mblen.
7638         * modules/unistr/u8-mbsnlen (Depends-on): Add unistr/u8-mbtoucr.
7639         Remove unistr/u8-mblen.
7640         * lib/unistr/u16-mbsnlen.c (u16_mbsnlen): Use u16_mbtoucr instead of
7641         u16_mblen.
7642         * modules/unistr/u16-mbsnlen (Depends-on): Add unistr/u16-mbtoucr.
7643         Remove unistr/u16-mblen.
7644
7645 2010-01-10  Bruno Haible  <bruno@clisp.org>
7646
7647         wchar: Fix compilation error when <wchar.h> is used from coreutils.
7648         * lib/wchar.in.h: Treat __need_wint_t like __need_mbstate_t.
7649         Reported by Brian Gough <bjg@gnu.org> and
7650         Chris Clayton <chris2553@googlemail.com> via
7651         Mike Frysinger <vapier@gentoo.org> and Jim Meyering <jim@meyering.net>.
7652
7653 2010-01-09  Bruno Haible  <bruno@clisp.org>
7654
7655         unistr/u16-to-u32: Reject invalid input.
7656         * lib/unistr/u16-to-u32.c (u16_to_u32): Call u16_mbtoucr instead of
7657         u16_mbtouc.
7658         * modules/unistr/u16-to-u32 (Depends-on): Add unistr/u16-mbtoucr.
7659         Remove unistr/u16-mbtouc.
7660
7661         unistr/u16-to-u8: Reject invalid input.
7662         * lib/unistr/u16-to-u8.c (u16_to_u8): Call u16_mbtoucr instead of
7663         u16_mbtouc.
7664         * modules/unistr/u16-to-u8 (Depends-on): Add unistr/u16-mbtoucr.
7665         Remove unistr/u16-mbtouc.
7666
7667         unistr/u8-to-u32: Reject invalid input.
7668         * lib/unistr/u8-to-u32.c (u8_to_u32): Call u8_mbtoucr instead of
7669         u8_mbtouc.
7670         * modules/unistr/u8-to-u32 (Depends-on): Add unistr/u8-mbtoucr.
7671         Remove unistr/u8-mbtouc.
7672
7673         unistr/u8-to-u16: Reject invalid input.
7674         * lib/unistr/u8-to-u16.c (u8_to_u16): Call u8_mbtoucr instead of
7675         u8_mbtouc.
7676         * modules/unistr/u8-to-u16 (Depends-on): Add unistr/u8-mbtoucr.
7677         Remove unistr/u8-mbtouc.
7678
7679 2010-01-09  Bruno Haible  <bruno@clisp.org>
7680
7681         Tests for module 'getlogin'.
7682         * modules/getlogin-tests: New file.
7683         * tests/test-getlogin.c: New file.
7684
7685         New module 'getlogin'.
7686         * lib/unistd.in.h (getlogin): New declaration.
7687         * lib/getlogin.c: New file.
7688         * m4/getlogin.m4: New file.
7689         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_GETLOGIN,
7690         HAVE_GETLOGIN.
7691         * modules/unistd (Makefile.am): Substitute GNULIB_GETLOGIN,
7692         HAVE_GETLOGIN.
7693         * modules/getlogin: New file.
7694         * doc/posix-functions/getlogin.texi: Mention the new module.
7695         Reported by John W. Eaton <jwe@gnu.org>.
7696
7697 2010-01-09  Bruno Haible  <bruno@clisp.org>
7698
7699         getlogin_r: Support for native Windows.
7700         * lib/getlogin_r.c: Include <windows.h>
7701         (getlogin_r): Implement for native Windows.
7702         * tests/test-getlogin_r.c (main): Also test with a huge buffer.
7703         Reported by Tatsuro MATSUOKA <tmacchant5@yahoo.co.jp>
7704         via John W. Eaton <jwe@gnu.org>.
7705
7706 2010-01-09  Bruno Haible  <bruno@clisp.org>
7707
7708         getlogin_r: Small fixes.
7709         * lib/getlogin_r.c (getlogin_r): Don't set errno if the function
7710         succeeds.
7711         * m4/getlogin_r.m4 (gl_GETLOGIN_R): Require gl_USE_SYSTEM_EXTENSIONS
7712         before testing whether getlogin_r is declared. No need to set
7713         HAVE_DECL_GETLOGIN_R to 1.
7714         (gl_PREREQ_GETLOGIN_R): Don't check for the getlogin_r declaration.
7715
7716 2010-01-09  Bruno Haible  <bruno@clisp.org>
7717
7718         * lib/unistd.in.h (getlogin_r): Add comment.
7719
7720 2010-01-09  Bruno Haible  <bruno@clisp.org>
7721
7722         Tests for module 'getlogin_r'.
7723         * modules/getlogin_r-tests: New file.
7724         * tests/test-getlogin_r.c: New file.
7725
7726 2010-01-09  Jim Meyering  <meyering@redhat.com>
7727
7728         maint.mk: extend proper_name_utf8-vs-LIBICONV-checking rule
7729         * top/maint.mk (sc_proper_name_utf8_requires_ICONV): Adapt to work
7730         also when $(LIBICONV) is part of LDADD, rather than ${prog}_LDADD.
7731
7732 2010-01-08  Simon Josefsson  <simon@josefsson.org>
7733
7734         * lib/dup2.c (rpl_dup2): Improve comment.
7735
7736 2010-01-08  Eric Blake  <ebb9@byu.net>
7737
7738         maint.mk: allow packages to add makefile @@ exceptions
7739         * top/maint.mk (_makefile_at_at_check_exceptions): New hook.
7740         (sc_makefile_check): Rename...
7741         (sc_makefile_at_at_check): ...to this, and use hook.
7742
7743         dup2: work around mingw bug
7744         * lib/dup2.c (rpl_dup2): Sanitize return value on mingw.
7745         Reported by Simon Josefsson.
7746
7747 2010-01-07  John W. Eaton  <jwe@octave.org>  (tiny change)
7748
7749         glob: Fix C++ compilation.
7750         * lib/glob.in.h [__cplusplus]: Define __BEGIN_DECLS and __END_DECLS for
7751         C++.
7752
7753 2010-01-07  Bruno Haible  <bruno@clisp.org>
7754
7755         Fix indentation of wctype.in.h, broken since 2007-01-06.
7756         * lib/wctype.in.h: Fix indentation of preprocessor directives.
7757
7758 2010-01-07  Bruno Haible  <bruno@clisp.org>
7759
7760         mbslen: Avoid collision with system function.
7761         * lib/string.in.h [MirBSD]: Include <wchar.h>.
7762         (mbslen): Undefine first. Alias mbslen to rpl_mbslen.
7763         * m4/mbslen.m4: New file.
7764         * modules/mbslen (Files): Add it.
7765         (configure.ac): Invoke gl_MBSLEN.
7766         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize HAVE_MBSLEN.
7767         * modules/string (Makefile.am): Substitute HAVE_MBSLEN.
7768         Reported by Nelson H. F. Beebe <beebe@math.utah.edu>
7769         via Ian Beckwith <ianb@erislabs.net>.
7770
7771 2010-01-07  Bruno Haible  <bruno@clisp.org>
7772
7773         dirent: Document the last fix.
7774         * doc/posix-headers/dirent.texi: Document the bug of missing 'ino_t'.
7775
7776 2010-01-07  Bruno Haible  <bruno@clisp.org>
7777
7778         stdio: Ensure <stdio.h> defines off_t, ssize_t, va_list.
7779         * lib/stdio.in.h: Include <sys/types.h> unconditionally.
7780         * tests/test-stdio.c: Verify that fpos_t, off_t, size_t, ssize_t,
7781         va_list are defined.
7782         * doc/posix-headers/stdio.texi: Document the bug of missing types.
7783         Reported by Eric Blake.
7784
7785 2010-01-07  Bruno Haible  <bruno@clisp.org>
7786
7787         xlist, xoset: Fix missing dependency bug, introduced on 2009-12-13.
7788         * modules/xlist (Depends-on): Add 'list',
7789         * modules/xoset (Depends-on): Add 'oset'.
7790         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
7791
7792 2010-01-07  Bruno Haible  <bruno@clisp.org>
7793
7794         * doc/posix-functions/strcasecmp.texi: Clarify the platforms.
7795         * doc/posix-functions/strncasecmp.texi: Likewise.
7796
7797 2010-01-07  Bruno Haible  <bruno@clisp.org>
7798
7799         * m4/nl_langinfo.m4 (gl_FUNC_NL_LANGINFO): Simplify logic.
7800
7801 2010-01-07  John W. Eaton  <jwe@octave.org>
7802
7803         wctype: allow C++ use
7804         * lib/wctype.in.h: Add extern "C" block for C++.
7805
7806 2010-01-06  Eric Blake  <ebb9@byu.net>
7807
7808         maint.mk: detect incorrect GFDL usage
7809         * top/maint.mk (_GFDL_regexp, sc_GFDL_version): New rule.
7810
7811 2010-01-06  Jim Meyering  <meyering@redhat.com>
7812         and Eric Blake  <ebb9@byu.net>
7813
7814         maint.mk: ignore multi-line copyright in NEWS
7815         * top/maint.mk (NEWS_hash): Add immunity to multi-line copyright.
7816
7817 2010-01-06  Eric Blake  <ebb9@byu.net>
7818
7819         select: add missing dependency
7820         * modules/select-tests (Depends-on): Move sockets dependency...
7821         * modules/select (Depends-on): ...here.
7822         Reported by Ian Beckwith.
7823
7824         doc: regenerate INSTALL
7825         * doc/INSTALL: Reflect recent autoconf update.
7826         * doc/INSTALL.ISO: Likewise.
7827         * doc/INSTALL.UTF-8: Likewise.
7828
7829         pread: fix compilation on glibc
7830         * m4/pread.m4 (gl_FUNC_PREAD): Request all interfaces.
7831         Reported by Ralf Wildenhues.
7832
7833         dirent: fix test failure
7834         * lib/dirent.in.h (includes): Guarantee ino_t.
7835         Reported by Ralf Wildenhues.
7836
7837 2010-01-06  Petr Salinger  <Petr.Salinger@seznam.cz>  (tiny change)
7838
7839         linkat, renameat: avoid bad free
7840         * lib/at-func2.c (at_func2): Fix typo.
7841         Reported via Ian Beckwith, from http://bugs.debian.org/561117.
7842
7843 2010-01-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
7844
7845         cleanup after gl_FUNC_READLINK, for gl_FUNC_SYMLINK test
7846         * m4/readlink.m4 (gl_FUNC_READLINK): Remove conftest.lnk2,
7847         to avoid failure of symlink test later.
7848
7849 2010-01-06  Eric Blake  <ebb9@byu.net>
7850
7851         stdio, unistd: guarantee ssize_t
7852         * lib/unistd.in.h (includes): Ensure that types required by POSIX
7853         2008 are exposed when needed.
7854         * lib/stdio.in.h (includes): Likewise.
7855         Reported by Ralf Wildenhues.
7856
7857 2010-01-06  Paolo Bonzini  <bonzini@gnu.org>
7858
7859         nl_langinfo: do not call AC_CHECK_FUNC_ONCE inside if.
7860         * m4/nl_langinfo.m4 (gl_FUNC_NL_LANGINFO): Do not call
7861         AC_CHECK_FUNC_ONCE inside if, do not adjust ac_cv_func_nl_langinfo.
7862
7863 2010-01-06  Jim Meyering  <meyering@redhat.com>
7864
7865         readtokens: this module *does* require xalloc.h
7866         It uses only functions that were omitted by the old syntax-check rule.
7867         * lib/readtokens.c: Include "xalloc.h" once again.
7868         * modules/readtokens (Depends-on): Add xalloc.
7869         This reverts part of 0e0f8f12ec241c0f1c1f21f960bb5cf908a0fa3c.
7870
7871 2010-01-05  Eric Blake  <ebb9@byu.net>
7872
7873         maint: support 'make announcement' from a VPATH build
7874         * top/maint.mk (announcement): Look for correct NEWS file.
7875
7876 2010-01-05  Aurelien Jarno  <aurelien@aurel32.net>  (tiny change)
7877
7878         utimens (fdutimens): ignore a negative FD, per contract
7879         * lib/utimens.c (fdutimens) [HAVE_FUTIMENS]: Call futimens only
7880         when we have a valid file descriptor.  Otherwise, using a brand
7881         new glibc (with just-patched futimens that now fails with EBADF)
7882         would cause this function to fail with ENOSYS.
7883         Reported by Guillaume Ayoub in http://bugs.debian.org/563726.
7884         See also http://bugzilla.redhat.com/552320.
7885
7886 2010-01-05  Eric Blake  <ebb9@byu.net>
7887
7888         strcase: document what it provides
7889         * doc/posix-functions/strcasecmp.texi (strcasecmp): Mention the
7890         gnulib module.
7891         * doc/posix-functions/strncasecmp.texi (strncasecmp): Likewise.
7892         Reported by Dilyan Palauzov <Dilyan.Palauzov@aegee.org>.
7893
7894 2010-01-05  Jim Meyering  <meyering@redhat.com>
7895
7896         maint: remove useless inclusions of "xalloc.h"
7897         * lib/getloadavg.c: Remove useless inclusion of "xalloc.h".
7898         * lib/readtokens.c: Likewise.
7899         * lib/same.c: Likewise.
7900         * modules/getloadavg (Depends-on): Remove xalloc.
7901         * modules/readtokens: Likewise.
7902         * modules/same: Likewise.
7903
7904         maint.mk: include 4 more function names in alloca.h-checking regexp
7905         * top/maint.mk (sc_prohibit_xalloc_without_use): Use more complete
7906         regexp.  Before, we would give a false-positive (saying alloca.h
7907         is included unnecessarily) when the only uses involved omitted symbols.
7908
7909         xalloc.h: use consistent formatting
7910         * lib/xalloc.h: Move declarations to start in the first column.
7911
7912 2010-01-05  Eric Blake  <ebb9@byu.net>
7913
7914         mkdir: avoid xalloc
7915         * lib/mkdir.c (includes): Drop unused header.
7916         Reported by John W. Eaton.
7917
7918 2010-01-04  Jim Meyering  <meyering@redhat.com>
7919
7920         nl_langinfo: avoid configure-time syntax error
7921         * m4/nl_langinfo.m4 (gl_FUNC_NL_LANGINFO): When we've already tested
7922         for nl_langinfo.h, AC_CHECK_FUNCS_ONCE([nl_langinfo]) expands to
7923         the empty string.  Don't let that provoke a shell syntax error.
7924
7925         regcomp, regexec, fnmatch: avoid array bounds read error
7926         * lib/regcomp.c (build_equiv_class): From glibc:
7927         Use only the low 24 bits of a findidx return value as an index
7928         into the weights array.  Patch by Ulrich Drepper:
7929         http://sourceware.org/git/gitweb.cgi?p=glibc.git;a=commit;h=b7d1c5fa30
7930         * lib/regexec.c (check_node_accept_bytes): Likewise.
7931         * lib/fnmatch_loop.c (FCT): Likewise.
7932
7933         regcomp: skip collseq lookup when there are no rules
7934         * lib/regcomp.c (lookup_collation_sequence_value): From glibc:
7935         http://sourceware.org/git/gitweb.cgi?p=glibc.git;a=commitdiff;h=a532a41df58
7936
7937         regcomp: recognize ill-formed { } expressions
7938         * lib/regcomp.c (parse_dup_op): From glibc:
7939         http://sourceware.org/git/gitweb.cgi?p=glibc.git;a=commitdiff;h=a87cd2894cb
7940
7941         regcomp: fix typo in comment
7942         * lib/regcomp.c (duplicate_node_closure): Sync from glibc.
7943         s/satisfy/satisfies/.
7944
7945         regcomp: sync from glibc: remove dead store
7946         * lib/regcomp.c (duplicate_node_closure): Remove useless
7947         search_duplicated_node call and dead store.
7948
7949         regcomp: sync from glibc; always use nl_langinfo
7950         * lib/regcomp.c (init_dfa) [!LIBC]: Always use nl_langinfo (CODESET),
7951         now that gnulib provides it.  Recognize UTF8 as well as UTF-8.
7952         * modules/regex (Depends-on): Add nl_langinfo.
7953
7954 2010-01-04  Eric Blake  <ebb9@byu.net>
7955
7956         fdopendir: fix configure test
7957         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR): Check for existing file.
7958
7959 2010-01-01  Bruno Haible  <bruno@clisp.org>
7960
7961         wchar: Remove unused configure check.
7962         * m4/wchar.m4 (gl_WCHAR_H): Don't test whether <wchar.h> is standalone.
7963
7964 2010-01-01  Eric Blake  <ebb9@byu.net>
7965
7966         headers: make check of system header explicit
7967         * m4/netdb_h.m4 (gl_HEADER_NETDB): Don't exploit knowledge of
7968         gl_CHECK_NEXT_HEADER internals, but call AC_CHECK_HEADERS_ONCE
7969         ourselves.
7970         * m4/search_h.m4 (gl_SEARCH_H): Likewise.
7971         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
7972         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Likewise.
7973         * m4/inttypes.m4 (gl_INTTYPES_H): Likewise, for gt_INTTYPES_PRI
7974         internals.
7975         * m4/wchar.m4 (gl_WCHAR_H): Skip followup test if header is
7976         missing.
7977         Suggested by Bruno Haible.
7978
7979 2010-01-01  Jim Meyering  <meyering@redhat.com>
7980
7981         ChangeLog: tweak to eliminate unnecessary copyright line
7982         * ChangeLog: Remove a copyright line that was mistakenly updated
7983         by today's update-copyright run.  Reported by Eric Blake.
7984
7985         test-update-copyright: don't let envvar setting cause test failure
7986         * tests/test-update-copyright.sh: Set UPDATE_COPYRIGHT_MAX_LINE_LENGTH.
7987
7988 2010-01-01  Bruno Haible  <bruno@clisp.org>
7989
7990         localename: Avoid gcc warning.
7991         * lib/localename.c (gl_locale_name_thread_unsafe): Don't define this
7992         function if it is not used.
7993
7994 2010-01-01  Jim Meyering  <meyering@redhat.com>
7995
7996         update nearly all FSF copyright year lists to include 2010
7997         Use the same procedure as for 2009, outlined in
7998         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/20081
7999
8000         version-etc: set COPYRIGHT_YEAR to 2010
8001         * lib/version-etc.c (COPYRIGHT_YEAR): Manually update the enum.
8002
8003 2009-12-31  Eric Blake  <ebb9@byu.net>
8004
8005         doc: correct availability of cygwin 1.5.x getopt
8006         * doc/posix-functions/optarg.texi (optarg): Cygwin supplies getopt
8007         variables.
8008         * doc/posix-functions/opterr.texi (opterr): Likewise.
8009         * doc/posix-functions/optind.texi (optind): Likewise.
8010         * doc/posix-functions/optopt.texi (optopt): Likewise.
8011         * doc/posix-functions/tzname.texi (tzname): Likewise.
8012
8013         openat: update maintainer
8014         * modules/openat (Maintainer): Add myself.
8015
8016         utimens: avoid shadowing warning
8017         * lib/utimens.c (fdutimens, lutimens): Consolidate separate stat
8018         buffers into one, to avoid shadowing, as well as avoiding a
8019         redundant stat.
8020         Reported by Jim Meyering.
8021
8022         test-dup2: avoid compiler warning
8023         * tests/test-dup2.c (is_inheritable): Only define if used.
8024
8025 2010-01-01  Bruno Haible  <bruno@clisp.org>
8026
8027         vasnprintf: Avoid passing an 'rpl_mbstate_t *' to the system's wcrtomb.
8028         * lib/vasnprintf.c (VASNPRINTF): If GNULIB_defined_mbstate_t is
8029         defined, use wctomb instead of wcrtomb.
8030
8031 2010-01-01  Bruno Haible  <bruno@clisp.org>
8032
8033         iconv: Reject native Solaris iconv.
8034         * m4/iconv.m4 (AM_ICONV_LINK): Recognize native Solaris iconv() bug.
8035         * doc/posix-functions/iconv.texi: Document native Solaris iconv() bug.
8036
8037 2009-12-31  Bruno Haible  <bruno@clisp.org>
8038
8039         * tests/test-signal.c (main): Remove test of 'SIG'.
8040
8041 2009-12-31  Bruno Haible  <bruno@clisp.org>
8042
8043         spawn: Fix incomplete fix.
8044         * lib/spawn.in.h (posix_spawnattr_getflags, posix_spawnattr_setflags,
8045         posix_spawnattr_getpgroup, posix_spawnattr_setpgroup): Correct the link
8046         warnings for GNULIB_POSIXCHECK again.
8047         Reported by Eric Blake.
8048
8049 2009-12-31  Bruno Haible  <bruno@clisp.org>
8050
8051         Avoid namespace pollution on glibc systems.
8052         * lib/spawn.in.h: Don't include <sched.h>, <signal.h> on glibc systems.
8053         * lib/sys_times.in.h: Don't include <time.h> on glibc systems.
8054         * lib/wchar.in.h: Don't include <stddef.h>, <stdio.h>, <time.h> on
8055         glibc systems.
8056
8057 2009-12-31  Bruno Haible  <bruno@clisp.org>
8058
8059         * m4/wchar.m4 (gl_WCHAR_H): Remove gl_STDDEF_H invocation.
8060         (gl_REPLACE_WCHAR_H): Turn into a no-op.
8061         * m4/arpa_inet_h.m4 (gl_REPLACE_ARPA_INET_H): Likewise.
8062         * m4/dirent_h.m4 (gl_REPLACE_DIRENT_H): Likewise.
8063         * m4/locale_h.m4 (gl_REPLACE_LOCALE_H): Likewise.
8064         * m4/spawn_h.m4 (gl_REPLACE_SPAWN_H): Likewise.
8065         * m4/sys_ioctl_h.m4 (gl_REPLACE_SYS_IOCTL_H): Likewise.
8066
8067 2009-12-31  Bruno Haible  <bruno@clisp.org>
8068
8069         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Invoke
8070         gl_CHECK_NEXT_HEADERS before testing ac_cv_header_sys_select_h, not
8071         afterwards.
8072
8073 2009-12-31  Bruno Haible  <bruno@clisp.org>
8074
8075         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_H_DEFAULTS): Don't set
8076         SYS_UTSNAME_H.
8077
8078 2009-12-31  Bruno Haible  <bruno@clisp.org>
8079
8080         spawn: Fix misapplied patch.
8081         * lib/spawn.in.h (posix_spawnattr_getflags, posix_spawnattr_setflags,
8082         posix_spawnattr_getpgroup, posix_spawnattr_setpgroup): Correct the link
8083         warnings for GNULIB_POSIXCHECK.
8084
8085 2009-12-31  Bruno Haible  <bruno@clisp.org>
8086
8087         times: Update after sys_times changed.
8088         * m4/times.m4: New file, extracted from modules/times. Set HAVE_TIMES.
8089         * modules/times (Files): Add it.
8090         (configure.ac): Invoke gl_FUNC_TIMES.
8091
8092 2009-12-31  Bruno Haible  <bruno@clisp.org>
8093
8094         Use AC_C_INLINE where necessary.
8095         * m4/chdir-long.m4 (gl_PREREQ_CHDIR_LONG): Require AC_C_INLINE.
8096         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Likewise.
8097         * m4/fts.m4 (gl_FUNC_FTS_CORE): Likewise.
8098         * m4/mbchar.m4 (gl_MBCHAR): Likewise.
8099         * m4/mbfile.m4 (gl_MBFILE): Likewise.
8100         * m4/mbiter.m4 (gl_MBITER): Likewise.
8101         * m4/regex.m4 (gl_PREREQ_REGEX): Likewise.
8102         * m4/stat.m4 (gl_FUNC_STAT): Likewise.
8103         * m4/wait-process.m4 (gl_WAIT_PROCESS): Likewise.
8104         * modules/u64 (configure.ac): Likewise.
8105
8106 2009-12-31  Bruno Haible  <bruno@clisp.org>
8107
8108         Use AC_C_INLINE instead of module 'inline' where possible.
8109         * modules/inline (Description): Clarify purpose.
8110         * m4/count-one-bits.m4 (gl_COUNT_ONE_BITS): Require AC_C_INLINE.
8111         * modules/count-one-bits (Depends-on): Remove inline.
8112         * m4/openat.m4 (gl_PREREQ_OPENAT): Require AC_C_INLINE.
8113         * modules/openat (Depends-on): Remove inline.
8114         * modules/fdutimensat (Depends-on, configure.ac): Require AC_C_INLINE
8115         instead of depending on module 'inline'.
8116         * modules/filevercmp (Depends-on, configure.ac): Likewise.
8117         * modules/unicase/cased (Depends-on, configure.ac): Likewise.
8118         * modules/unicase/ignorable (Depends-on, configure.ac): Likewise.
8119         * modules/unictype/category-of (Depends-on, configure.ac): Likewise.
8120         * modules/unictype/category-test (Depends-on, configure.ac): Likewise.
8121         * modules/unictype/ctype-alnum (Depends-on, configure.ac): Likewise.
8122         * modules/unictype/ctype-alpha (Depends-on, configure.ac): Likewise.
8123         * modules/unictype/ctype-blank (Depends-on, configure.ac): Likewise.
8124         * modules/unictype/ctype-cntrl (Depends-on, configure.ac): Likewise.
8125         * modules/unictype/ctype-digit (Depends-on, configure.ac): Likewise.
8126         * modules/unictype/ctype-graph (Depends-on, configure.ac): Likewise.
8127         * modules/unictype/ctype-lower (Depends-on, configure.ac): Likewise.
8128         * modules/unictype/ctype-print (Depends-on, configure.ac): Likewise.
8129         * modules/unictype/ctype-punct (Depends-on, configure.ac): Likewise.
8130         * modules/unictype/ctype-space (Depends-on, configure.ac): Likewise.
8131         * modules/unictype/ctype-upper (Depends-on, configure.ac): Likewise.
8132         * modules/unictype/ctype-xdigit (Depends-on, configure.ac): Likewise.
8133         * modules/unictype/property-alphabetic (Depends-on, configure.ac):
8134         Likewise.
8135         * modules/unictype/property-ascii-hex-digit (Depends-on,
8136         configure.ac): Likewise.
8137         * modules/unictype/property-bidi-arabic-digit (Depends-on,
8138         configure.ac): Likewise.
8139         * modules/unictype/property-bidi-arabic-right-to-left (Depends-on,
8140         configure.ac): Likewise.
8141         * modules/unictype/property-bidi-block-separator (Depends-on,
8142         configure.ac): Likewise.
8143         * modules/unictype/property-bidi-boundary-neutral (Depends-on,
8144         configure.ac): Likewise.
8145         * modules/unictype/property-bidi-common-separator (Depends-on,
8146         configure.ac): Likewise.
8147         * modules/unictype/property-bidi-control (Depends-on, configure.ac):
8148         Likewise.
8149         * modules/unictype/property-bidi-embedding-or-override (Depends-on,
8150         configure.ac): Likewise.
8151         * modules/unictype/property-bidi-eur-num-separator (Depends-on,
8152         configure.ac): Likewise.
8153         * modules/unictype/property-bidi-eur-num-terminator (Depends-on,
8154         configure.ac): Likewise.
8155         * modules/unictype/property-bidi-european-digit (Depends-on,
8156         configure.ac): Likewise.
8157         * modules/unictype/property-bidi-hebrew-right-to-left (Depends-on,
8158         configure.ac): Likewise.
8159         * modules/unictype/property-bidi-left-to-right (Depends-on,
8160         configure.ac): Likewise.
8161         * modules/unictype/property-bidi-non-spacing-mark (Depends-on,
8162         configure.ac): Likewise.
8163         * modules/unictype/property-bidi-other-neutral (Depends-on,
8164         configure.ac): Likewise.
8165         * modules/unictype/property-bidi-pdf (Depends-on, configure.ac):
8166         Likewise.
8167         * modules/unictype/property-bidi-segment-separator (Depends-on,
8168         configure.ac): Likewise.
8169         * modules/unictype/property-bidi-whitespace (Depends-on,
8170         configure.ac): Likewise.
8171         * modules/unictype/property-combining (Depends-on, configure.ac):
8172         Likewise.
8173         * modules/unictype/property-composite (Depends-on, configure.ac):
8174         Likewise.
8175         * modules/unictype/property-currency-symbol (Depends-on,
8176         configure.ac): Likewise.
8177         * modules/unictype/property-dash (Depends-on, configure.ac): Likewise.
8178         * modules/unictype/property-decimal-digit (Depends-on, configure.ac):
8179         Likewise.
8180         * modules/unictype/property-default-ignorable-code-point (Depends-on,
8181         configure.ac): Likewise.
8182         * modules/unictype/property-deprecated (Depends-on, configure.ac):
8183         Likewise.
8184         * modules/unictype/property-diacritic (Depends-on, configure.ac):
8185         Likewise.
8186         * modules/unictype/property-extender (Depends-on, configure.ac):
8187         Likewise.
8188         * modules/unictype/property-format-control (Depends-on, configure.ac):
8189         Likewise.
8190         * modules/unictype/property-grapheme-base (Depends-on, configure.ac):
8191         Likewise.
8192         * modules/unictype/property-grapheme-extend (Depends-on, configure.ac):
8193         Likewise.
8194         * modules/unictype/property-grapheme-link (Depends-on, configure.ac):
8195         Likewise.
8196         * modules/unictype/property-hex-digit (Depends-on, configure.ac):
8197         Likewise.
8198         * modules/unictype/property-hyphen (Depends-on, configure.ac):
8199         Likewise.
8200         * modules/unictype/property-id-continue (Depends-on, configure.ac):
8201         Likewise.
8202         * modules/unictype/property-id-start (Depends-on, configure.ac):
8203         Likewise.
8204         * modules/unictype/property-ideographic (Depends-on, configure.ac):
8205         Likewise.
8206         * modules/unictype/property-ids-binary-operator (Depends-on,
8207         configure.ac): Likewise.
8208         * modules/unictype/property-ids-trinary-operator (Depends-on,
8209         configure.ac): Likewise.
8210         * modules/unictype/property-ignorable-control (Depends-on,
8211         configure.ac): Likewise.
8212         * modules/unictype/property-iso-control (Depends-on, configure.ac):
8213         Likewise.
8214         * modules/unictype/property-join-control (Depends-on, configure.ac):
8215         Likewise.
8216         * modules/unictype/property-left-of-pair (Depends-on, configure.ac):
8217         Likewise.
8218         * modules/unictype/property-line-separator (Depends-on, configure.ac):
8219         Likewise.
8220         * modules/unictype/property-logical-order-exception (Depends-on,
8221         configure.ac): Likewise.
8222         * modules/unictype/property-lowercase (Depends-on, configure.ac):
8223         Likewise.
8224         * modules/unictype/property-math (Depends-on, configure.ac): Likewise.
8225         * modules/unictype/property-non-break (Depends-on, configure.ac):
8226         Likewise.
8227         * modules/unictype/property-not-a-character (Depends-on, configure.ac):
8228         Likewise.
8229         * modules/unictype/property-numeric (Depends-on, configure.ac):
8230         Likewise.
8231         * modules/unictype/property-other-alphabetic (Depends-on,
8232         configure.ac): Likewise.
8233         * modules/unictype/property-other-default-ignorable-code-point
8234         (Depends-on, configure.ac): Likewise.
8235         * modules/unictype/property-other-grapheme-extend (Depends-on,
8236         configure.ac): Likewise.
8237         * modules/unictype/property-other-id-continue (Depends-on,
8238         configure.ac): Likewise.
8239         * modules/unictype/property-other-id-start (Depends-on, configure.ac):
8240         Likewise.
8241         * modules/unictype/property-other-lowercase (Depends-on, configure.ac):
8242         Likewise.
8243         * modules/unictype/property-other-math (Depends-on, configure.ac):
8244         Likewise.
8245         * modules/unictype/property-other-uppercase (Depends-on, configure.ac):
8246         Likewise.
8247         * modules/unictype/property-paired-punctuation (Depends-on,
8248         configure.ac): Likewise.
8249         * modules/unictype/property-paragraph-separator (Depends-on,
8250         configure.ac): Likewise.
8251         * modules/unictype/property-pattern-syntax (Depends-on, configure.ac):
8252         Likewise.
8253         * modules/unictype/property-pattern-white-space (Depends-on,
8254         configure.ac): Likewise.
8255         * modules/unictype/property-private-use (Depends-on, configure.ac):
8256         Likewise.
8257         * modules/unictype/property-punctuation (Depends-on, configure.ac):
8258         Likewise.
8259         * modules/unictype/property-quotation-mark (Depends-on, configure.ac):
8260         Likewise.
8261         * modules/unictype/property-radical (Depends-on, configure.ac):
8262         Likewise.
8263         * modules/unictype/property-sentence-terminal (Depends-on,
8264         configure.ac): Likewise.
8265         * modules/unictype/property-soft-dotted (Depends-on, configure.ac):
8266         Likewise.
8267         * modules/unictype/property-space (Depends-on, configure.ac): Likewise.
8268         * modules/unictype/property-terminal-punctuation (Depends-on,
8269         configure.ac): Likewise.
8270         * modules/unictype/property-titlecase (Depends-on, configure.ac):
8271         Likewise.
8272         * modules/unictype/property-unassigned-code-value (Depends-on,
8273         configure.ac): Likewise.
8274         * modules/unictype/property-unified-ideograph (Depends-on,
8275         configure.ac): Likewise.
8276         * modules/unictype/property-uppercase (Depends-on, configure.ac):
8277         Likewise.
8278         * modules/unictype/property-variation-selector (Depends-on,
8279         configure.ac): Likewise.
8280         * modules/unictype/property-white-space (Depends-on, configure.ac):
8281         Likewise.
8282         * modules/unictype/property-xid-continue (Depends-on, configure.ac):
8283         Likewise.
8284         * modules/unictype/property-xid-start (Depends-on, configure.ac):
8285         Likewise.
8286         * modules/unictype/property-zero-width (Depends-on, configure.ac):
8287         Likewise.
8288         * modules/unictype/syntax-c-ident (Depends-on, configure.ac): Likewise.
8289         * modules/unictype/syntax-java-ident (Depends-on, configure.ac):
8290         Likewise.
8291
8292 2009-12-31  Bruno Haible  <bruno@clisp.org>
8293
8294         Remove unnecessary AC_C_INLINE invocation.
8295         * m4/popen.m4 (gl_PREREQ_POPEN): Don't invoke AC_C_INLINE. Not needed
8296         since 2009-08-21.
8297
8298 2009-12-31  Jim Meyering  <meyering@redhat.com>
8299
8300         maint.mk: don't require explicit gpg_key_ID in cfg.mk
8301         * top/maint.mk (gpg_key_ID): Derive key ID from signed release tag.
8302         With this change, we can all remove the gpg_key_ID = ... definition
8303         from our respective cfg.mk files.
8304
8305         maint.mk: create announcement template in ~/, not in /tmp
8306         * top/maint.mk (emit_upload_commands): Adjust.
8307         (release-prep): Emit into ~/announce-..., not /tmp/announce-...
8308         Remove temporary file, .ci-msg.
8309
8310 2009-12-31  Eric Blake  <ebb9@byu.net>
8311
8312         link-warning: always build headers with link warnings
8313         * modules/arpa_inet (Makefile.am): Always build replacement
8314         header.
8315         * modules/ctype (Makefile.am): Likewise.
8316         * modules/dirent (Makefile.am): Likewise.
8317         * modules/inttypes (Makefile.am): Likewise.
8318         * modules/langinfo (Makefile.am): Likewise.
8319         * modules/locale (Makefile.am): Likewise.
8320         * modules/spawn (Makefile.am): Likewise.
8321         * modules/sys_file (Makefile.am): Likewise.
8322         * modules/sys_ioctl (Makefile.am): Likewise.
8323         * modules/sys_select (Makefile.am): Likewise.
8324         * modules/sys_socket (Makefile.am): Likewise.
8325         * modules/sys_times (Makefile.am): Likewise.
8326         * modules/sys_utsname (Makefile.am): Likewise.
8327         * modules/sys_wait (Makefile.am): Likewise.
8328         * modules/wchar (Makefile.am): Likewise.
8329         * m4/arpa_inet_h.m4 (gl_HEADER_ARPA_INET)
8330         (gl_ARPA_INET_H_DEFAULTS): Drop unneeded variable.
8331         * m4/ctype.m4 (gl_CTYPE_H_DEFAULTS): Likewise.
8332         * m4/isblank.m4 (gl_FUNC_ISBLANK): Likewise.
8333         * m4/dirent_h.m4 (gl_REPLACE_DIRENT_H, gl_DIRENT_H_DEFAULTS):
8334         Likewise.
8335         * m4/inttypes.m4 (gl_INTTYPES_H): Likewise.
8336         * m4/langinfo_h.m4 (gl_LANGINFO_H): Likewise.
8337         * m4/locale_h.m4 (gl_REPLACE_LOCALE_H, gl_LOCALE_H_DEFAULTS):
8338         Likewise.
8339         * m4/spawn_h.m4 (gl_REPLACE_SPAWN_H, gl_SPAWN_H_DEFAULTS):
8340         Likewise.
8341         * m4/sys_file_h.m4 (gl_HEADER_SYS_FILE_H): Likewise.
8342         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_H, gl_REPLACE_SYS_IOCTL_H)
8343         (gl_SYS_IOCTL_H_DEFAULTS): Likewise.
8344         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
8345         * m4/sys_times_h.m4 (gl_SYS_TIMES_H): Likewise.
8346         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_H)
8347         (gl_SYS_UTSNAME_H_DEFAULTS): Likewise.
8348         * m4/wchar.m4 (gl_WCHAR_H, gl_REPLACE_WCHAR_H)
8349         (gl_WCHAR_H_DEFAULTS): Likewise.
8350
8351 2009-12-31  Eric Blake  <ebb9@byu.net>
8352
8353         signal, spawn: use link warnings
8354         * lib/signal.in.h (sigset_t): Make unconditional.
8355         (sigismember, sigemptyset, sigaddset, sigdelset, sigfillset)
8356         (sigpending, sigprocmask, sigaction): Add link warnings.
8357         * lib/spawn.in.h (posix_spawn, posix_spawnp, posix_spawnattr_init)
8358         (posix_spawnattr_destroy, posix_spawnattr_getsigdefault)
8359         (posix_spawnattr_setsigdefault, posix_spawnattr_getsigmask)
8360         (posix_spawnattr_setsigmask, posix_spawnattr_getflags)
8361         (posix_spawnattr_setflags, posix_spawnattr_getpgroup)
8362         (posix_spawnattr_setpgroup, posix_spawnattr_getschedpolicy)
8363         (posix_spawnattr_setschedpolicy, posix_spawnattr_getschedparam)
8364         (posix_spawnattr_setschedparam, posix_spawn_file_actions_init)
8365         (posix_spawn_file_actions_destroy)
8366         (posix_spawn_file_actions_addopen)
8367         (posix_spawn_file_actions_addclose)
8368         (posix_spawn_file_actions_adddup2): Likewise.
8369         * m4/signal_h.m4 (gl_SIGNAL_H): Guarantee uid_t.
8370         * tests/test-signal.c (main): Enhance test.
8371
8372         spawn: improve wrapper support
8373         * m4/spawn_h.m4 (gl_SPAWN_H): Check for type existence.
8374         (gl_SPAWN_H_DEFAULTS): New defaults.
8375         * modules/spawn (Makefile.am): Substitute them.
8376         * lib/spawn.in.h: (posix_spawnattr_t, posix_spawn_file_actions_t):
8377         Only declare if missing or broken.
8378
8379         sys_times, sys_utsname: use include_next
8380         * m4/sys_times_h.m4 (gl_SYS_TIMES_H): Support wrapping an existing
8381         header.
8382         (gl_SYS_TIMES_H_DEFAULTS): Add another variable.
8383         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_H)
8384         (gl_SYS_UTSNAME_H_DEFAULTS): Likewise.
8385         * modules/sys_times (Depends-on): Add include_next.
8386         (Makefile.am): Substitute additional values.
8387         * modules/sys_utsname (Depends-on, Makefile.am): Likewise.
8388         * lib/sys_times.in.h (includes): Include native header, if
8389         available.
8390         * lib/sys_utsname.in.h (includes): Likewise.
8391         * tests/test-sys_times.c (main): Enhance test.
8392
8393         fdutimensat: revert prior patch
8394         * modules/fdutimensat (Depends-on): Re-add inline; it is needed by
8395         utimens.h.
8396         Reported by Bruno Haible.
8397
8398 2009-12-30  Eric Blake  <ebb9@byu.net>
8399
8400         sys_wait: drop link-warning dependency
8401         * modules/sys_wait (Depends-on, Makefile.am): Drop unneeded
8402         link-warning efforts.
8403         * lib/sys_wait.in.h: Likewise.
8404
8405         fdutimensat: remove bogus dependency
8406         * modules/fdutimensat (Depends-on): Drop inline.
8407
8408         unistd: fix typo
8409         * lib/unistd.in.h (linkat) [GNULIB_POSIXCHECK]: Fix typo.
8410
8411 2009-12-30  Bruno Haible  <bruno@clisp.org>
8412
8413         Fix compilation error with Solaris cc.
8414         * lib/unicase/u8-is-invariant.c: Include <stdbool.h>.
8415         * lib/unicase/u16-is-invariant.c: Likewise.
8416         * lib/unicase/u32-is-invariant.c: Likewise.
8417         Reported by Nelson H. F. Beebe <beebe@math.utah.edu>.
8418
8419 2009-12-30  Bruno Haible  <bruno@clisp.org>
8420
8421         Fix test crash.
8422         * tests/test-localename.c (test_locale_name_thread): Skip unavailable
8423         locales.
8424         Reported by Simon Josefsson <simon@josefsson.org>.
8425
8426 2009-12-30  Bruno Haible  <bruno@clisp.org>
8427
8428         Fix compilation error on most platforms.
8429         * tests/test-localename.c (categories): Define only if HAVE_NEWLOCALE.
8430         Reported by Simon Josefsson <simon@josefsson.org>
8431         and Nelson H. F. Beebe <beebe@math.utah.edu>.
8432
8433 2009-12-30  Eric Blake  <ebb9@byu.net>
8434
8435         futimens, utimensat: work around ntfs-3g bug
8436         * lib/utimensat.c (rpl_utimensat): Drop attempts to cache whether
8437         a ctime bug is present, and expand workaround to cover ntfs-3g.
8438         * lib/utimens.c (fdutimens, lutimens): Likewise.
8439         (utimensat_ctime_really, detect_ctime_bug): Drop cache mechanism.
8440         (validate_timespec): Adjust return value.
8441         * m4/futimens.m4 (gl_FUNC_FUTIMENS): Update comment.
8442         * m4/utimensat.m4 (gl_FUNC_UTIMENSAT): Likewise.
8443         Reported by ctrn3e8 <ctrn3e8@gmail.com>.
8444
8445 2009-12-29  Eric Blake  <ebb9@byu.net>
8446
8447         link-warning: make usage consistent
8448         * modules/ctype (Depends-on): Add link-warning.
8449         (Makefile.am): Update rules accordingly.
8450         * modules/langinfo (Depends-on, Makefile.am): Likewise.
8451         * modules/locale (Depends-on, Makefile.am): Likewise.
8452         * modules/sys_file (Makefile.am): Likewise.
8453         * modules/getopt-posix (Makefile.am): Delete unused link warning
8454         efforts.
8455         * lib/ctype.in.h (GL_LINK_WARNING): Ensure definition before use.
8456         * lib/langinfo.in.h (GL_LINK_WARNING): Likewise.
8457         * lib/locale.in.h (GL_LINK_WARNING): Likewise.
8458         * lib/sys_file.in.h (GL_LINK_WARNING): Likewise.
8459
8460         stdio: remove unused variables
8461         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Remove unused variables.
8462         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Likewise.
8463         * m4/ftello.m4 (gl_FUNC_FTELLO): Likewise.
8464
8465         tests: test more substitute headers
8466         * modules/ctype-tests: New file.
8467         * modules/dirent-tests: Likewise.
8468         * modules/spawn-tests: Likewise.
8469         * modules/sys_file-tests: Likewise.
8470         * modules/sys_ioctl-tests: Likewise.
8471         * modules/sys_wait-tests: Likewise.
8472         * tests/test-ctype.c: Likewise.
8473         * tests/test-dirent.c: Likewise.
8474         * tests/test-spawn.c: Likewise.
8475         * tests/test-sys_file.c: Likewise.
8476         * tests/test-sys_ioctl.c: Likewise.
8477         * tests/test-sys_wait.c: Likewise.
8478         * m4/spawn_h.m4 (gl_SPAWN_H): Replace header if it is missing.
8479         * lib/sys_file.in.h (LOCK_SH, LOCK_EX, LOCK_UN, LOCK_NB): Provide
8480         whether or not flock is in use.
8481
8482         tests: remove License section from module
8483         * modules/arpa_inet-tests: Remove unneeded section.
8484         * modules/byteswap-tests: Likewise.
8485         * modules/ceilf-tests: Likewise.
8486         * modules/ceill-tests: Likewise.
8487         * modules/crypto/des-tests: Likewise.
8488         * modules/crypto/gc-arcfour-tests: Likewise.
8489         * modules/crypto/gc-arctwo-tests: Likewise.
8490         * modules/crypto/gc-des-tests: Likewise.
8491         * modules/crypto/gc-hmac-md5-tests: Likewise.
8492         * modules/crypto/gc-hmac-sha1-tests: Likewise.
8493         * modules/crypto/gc-md2-tests: Likewise.
8494         * modules/crypto/gc-md4-tests: Likewise.
8495         * modules/crypto/gc-md5-tests: Likewise.
8496         * modules/crypto/gc-pbkdf2-sha1-tests: Likewise.
8497         * modules/crypto/gc-rijndael-tests: Likewise.
8498         * modules/crypto/gc-sha1-tests: Likewise.
8499         * modules/crypto/gc-tests: Likewise.
8500         * modules/crypto/md2-tests: Likewise.
8501         * modules/crypto/md4-tests: Likewise.
8502         * modules/fcntl-h-tests: Likewise.
8503         * modules/floorf-tests: Likewise.
8504         * modules/floorl-tests: Likewise.
8505         * modules/frexp-nolibm-tests: Likewise.
8506         * modules/frexp-tests: Likewise.
8507         * modules/frexpl-nolibm-tests: Likewise.
8508         * modules/frexpl-tests: Likewise.
8509         * modules/getaddrinfo-tests: Likewise.
8510         * modules/inttypes-tests: Likewise.
8511         * modules/isfinite-tests: Likewise.
8512         * modules/isinf-tests: Likewise.
8513         * modules/ldexpl-tests: Likewise.
8514         * modules/locale-tests: Likewise.
8515         * modules/math-tests: Likewise.
8516         * modules/netdb-tests: Likewise.
8517         * modules/netinet_in-tests: Likewise.
8518         * modules/printf-frexp-tests: Likewise.
8519         * modules/printf-frexpl-tests: Likewise.
8520         * modules/priv-set-tests: Likewise.
8521         * modules/random_r-tests: Likewise.
8522         * modules/round-tests: Likewise.
8523         * modules/roundf-tests: Likewise.
8524         * modules/roundl-tests: Likewise.
8525         * modules/search-tests: Likewise.
8526         * modules/select-tests: Likewise.
8527         * modules/signal-tests: Likewise.
8528         * modules/stdbool-tests: Likewise.
8529         * modules/stddef-tests: Likewise.
8530         * modules/stdint-tests: Likewise.
8531         * modules/stdio-tests: Likewise.
8532         * modules/stdlib-tests: Likewise.
8533         * modules/string-tests: Likewise.
8534         * modules/strings-tests: Likewise.
8535         * modules/sys_select-tests: Likewise.
8536         * modules/sys_socket-tests: Likewise.
8537         * modules/sys_stat-tests: Likewise.
8538         * modules/sys_time-tests: Likewise.
8539         * modules/sys_utsname-tests: Likewise.
8540         * modules/sysexits-tests: Likewise.
8541         * modules/time-tests: Likewise.
8542         * modules/trunc-tests: Likewise.
8543         * modules/truncf-tests: Likewise.
8544         * modules/truncl-tests: Likewise.
8545         * modules/tsearch-tests: Likewise.
8546         * modules/unistd-tests: Likewise.
8547         * modules/wchar-tests: Likewise.
8548         * modules/wctype-tests: Likewise.
8549
8550         tests: fix license on several tests
8551         * tests/test-des.c: Update to GPLv3+.
8552         * tests/test-flock.c: Likewise.
8553         * tests/test-fsync.c: Likewise.
8554         * tests/test-futimens.h: Likewise.
8555         * tests/test-gc-arcfour.c: Likewise.
8556         * tests/test-gc-arctwo.c: Likewise.
8557         * tests/test-gc-des.c: Likewise.
8558         * tests/test-gc-hmac-md5.c: Likewise.
8559         * tests/test-gc-hmac-sha1.c: Likewise.
8560         * tests/test-gc-md2.c: Likewise.
8561         * tests/test-gc-md4.c: Likewise.
8562         * tests/test-gc-md5.c: Likewise.
8563         * tests/test-gc-pbkdf2-sha1.c: Likewise.
8564         * tests/test-gc-rijndael.c: Likewise.
8565         * tests/test-gc-sha1.c: Likewise.
8566         * tests/test-gc.c: Likewise.
8567         * tests/test-getcwd.c: Likewise.
8568         * tests/test-link.c: Likewise.
8569         * tests/test-link.h: Likewise.
8570         * tests/test-lutimens.h: Likewise.
8571         * tests/test-md2.c: Likewise.
8572         * tests/test-md4.c: Likewise.
8573         * tests/test-mkdir.h: Likewise.
8574         * tests/test-rename.c: Likewise.
8575         * tests/test-rename.h: Likewise.
8576         * tests/test-safe-alloc.c: Likewise.
8577         * tests/test-utimens-common.h: Likewise.
8578         * tests/test-utimens.h: Likewise.
8579
8580         maint: sync license texts
8581         * config/srclist.txt: Add gpl-1.3.texi, lgpl-1.3.texi.
8582         * doc/gpl-3.0.texi: Revert copyright year update.
8583         * doc/lgpl-3.0.texi: Likewise.
8584
8585 2009-12-29  Jim Meyering  <meyering@redhat.com>
8586
8587         update nearly all FSF copyright year lists to include 2009
8588         The files named by the following are exempted:
8589             grep -v '^#' config/srclist.txt|grep -v '^$' | while read src dst; do
8590               test -f "$dst" && { echo "$dst"; continue; }
8591               test -d "$dst" || continue
8592               echo "$dst"/$(basename "$src")
8593             done > exempt
8594             git ls-files tests/unictype >> exempt
8595         In the remaining files, convert to all-interval notation if
8596         - there is already at least one year interval like 2000-2003
8597         - the file is maintained by me
8598         - the file is in lib/uni*/, where that style already prevails
8599         Otherwise, use update-copyright's default.
8600
8601 2009-12-29  Simon Josefsson  <simon@josefsson.org>
8602         and Eric Blake  <ebb9@byu.net>
8603
8604         tests: don't require debug system() to pass
8605         * tests/test-lstat.h (test_lstat_func): Move debug cleanup...
8606         * tests/test-rmdir.h (test_rmdir_func): Likewise.
8607         * tests/test-unlink.h (test_unlink_func): Likewise.
8608         * tests/test-fstatat.c (main): ...into callers.
8609         * tests/test-lstat.c (main): Likewise.
8610         * tests/test-rmdir.c (main): Likewise.
8611         * tests/test-unlink.c (main): Likewise.
8612         * tests/test-unlinkat.c (main): Likewise.
8613         * tests/test-areadlink-with-size.c (main): Don't require a
8614         debug-only system call to pass, aiding cross-testing to mingw.
8615         * tests/test-areadlink.c (main): Likewise.
8616         * tests/test-areadlinkat-with-size.c (main): Likewise.
8617         * tests/test-areadlinkat.c (main): Likewise.
8618         * tests/test-canonicalize-lgpl.c (main): Likewise.
8619         * tests/test-canonicalize.c (main): Likewise.
8620         * tests/test-chown.c (main): Likewise.
8621         * tests/test-fchownat.c (main): Likewise.
8622         * tests/test-lchown.c (main): Likewise.
8623         * tests/test-fdutimensat.c (main): Likewise.
8624         * tests/test-futimens.c (main): Likewise.
8625         * tests/test-link.c (main): Likewise.
8626         * tests/test-linkat.c (main): Likewise.
8627         * tests/test-mkdir.c (main): Likewise.
8628         * tests/test-mkdirat.c (main): Likewise.
8629         * tests/test-mkfifo.c (main): Likewise.
8630         * tests/test-mkfifoat.c (main): Likewise.
8631         * tests/test-mknod.c (main): Likewise.
8632         * tests/test-readlink.c (main): Likewise.
8633         * tests/test-remove.c (main): Likewise.
8634         * tests/test-rename.c (main): Likewise.
8635         * tests/test-renameat.c (main): Likewise.
8636         * tests/test-symlink.c (main): Likewise.
8637         * tests/test-symlinkat.c (main): Likewise.
8638         * tests/test-utimens.c (main): Likewise.
8639         * tests/test-utimensat.c (main): Likewise.
8640
8641 2009-12-29  Simon Josefsson  <simon@josefsson.org>
8642
8643         * modules/selinux-h (selinux/selinux.h, selinux/context.h): Depend
8644         on $(UNUSED_PARAMETER_H) to avoid build failure.
8645
8646 2009-12-28  Jim Meyering  <meyering@redhat.com>
8647
8648         update-copyright: you may specify a max. line length other than 72
8649         * build-aux/update-copyright: Honor $UPDATE_COPYRIGHT_MAX_LINE_LENGTH.
8650
8651         maint: use consistent FSF copyright line syntax
8652         * lib/posixtm.c: Add missing comma in FSF copyright line.
8653         * lib/posixtm.h: Likewise.
8654         * lib/getugroups.c: Add missing ", Inc.".
8655
8656         pmccabe2html: emit consistent FSF copyright; remove trailing blanks
8657         * build-aux/pmccabe2html: Insert comma before "Inc." in emitted
8658         FSF copyright line.  Remove trailing blanks.
8659
8660 2009-12-28  Eric Blake  <ebb9@byu.net>
8661
8662         test-dup2: reduce dependencies
8663         * modules/cloexec (Configure.ac): Set witness.
8664         * modules/dup2-tests (Depends-on): Drop cloexec.
8665         * tests/test-dup2.c (main): Skip portion of test if cloexec module
8666         not present.
8667         Suggested by Bruno Haible.
8668
8669 2009-12-26  Bruno Haible  <bruno@clisp.org>
8670
8671         Remove an unneeded dependency.
8672         * modules/fseterr (Depends-on): Remove dup2.
8673
8674 2009-12-26  Eric Blake  <ebb9@byu.net>
8675
8676         tests: use macros.h in more places
8677         * tests/macros.h (ASSERT): Depend on ASSERT_STREAM.
8678         (ASSERT_STREAM): Provide default of stderr.
8679         * tests/test-dirent-safer.c: Include macros.h, using alternate
8680         stream for assertions.
8681         * tests/test-dup-safer.c: Likewise.
8682         * tests/test-freopen-safer.c: Likewise.
8683         * tests/test-getopt.c: Likewise.
8684         * tests/test-openat-safer.c: Likewise.
8685         * tests/test-pipe.c: Likewise.
8686         * tests/test-popen-safer.c: Likewise.
8687         * modules/dirent-safer-tests (Files): Include macros.h.
8688         * modules/unistd-safer-tests (Files): Likewise.
8689         * modules/freopen-safer-tests (Files): Likewise.
8690         * modules/getopt-posix-tests (Files): Likewise.
8691         * modules/openat-safer-tests (Files): Likewise.
8692         * modules/pipe-tests (Files): Likewise.
8693
8694 2009-12-26  Bruno Haible  <bruno@clisp.org>
8695
8696         javacomp: Portability fix.
8697         * m4/javacomp.m4 (gt_JAVACOMP): Fix creation of conftestver.class so
8698         that it also works on Solaris.
8699
8700 2009-12-26  Bruno Haible  <bruno@clisp.org>
8701
8702         localename: Fix storage allocation of gl_locale_name_thread's result.
8703         * lib/localename.c (SIZE_BITS, string_hash, struct hash_node,
8704         HASH_TABLE_SIZE, struniq_hash_table, struniq_lock, struniq): Define on
8705         all platforms that have 'uselocale'.
8706         (gl_locale_name_thread_unsafe): New function, extracted from
8707         gl_locale_name_thread.
8708         (gl_locale_name_thread): Call struniq on all platforms that have
8709         'uselocale'.
8710         * tests/test-localename.c (test_locale_name_thread): Check that the
8711         resulting strings are permanently allocated.
8712         * modules/localename-tests (Depends-on): Add strdup.
8713
8714 2009-12-26  Bruno Haible  <bruno@clisp.org>
8715
8716         * tests/test-localename.c (categories): Fill in the strings.
8717
8718 2009-12-26  Jim Meyering  <meyering@redhat.com>
8719
8720         isdir: complete the removal of m4/isdir.m4
8721         * modules/isdir (configure.ac): Remove reference to gl_ISDIR.
8722
8723         isdir: clean up, since at least grep still uses it
8724         * lib/isdir.c: Include "isdir.h".
8725         (S_ISDIR): Remove now-unneeded definition.
8726         * modules/isdir (Files): Add lib/isdir.h.
8727         * lib/isdir.h: New file, with declaration.
8728         * m4/isdir.m4: Remove file -- unneeded.
8729
8730 2009-12-25  Bruno Haible  <bruno@clisp.org>
8731
8732         selinux-h: Make generated .h files standalone.
8733         * lib/se-context.in.h: Arrange to include _GL_UNUSED_PARAMETER
8734         definition. Use _GL_UNUSED_PARAMETER instead of _GL_UNUSED.
8735         * lib/se-selinux.in.h: Likewise.
8736         * modules/selinux-h (Depends-on): Add unused-parameter.
8737         (Makefile.am): Insert definition of _GL_UNUSED_PARAMETER into
8738         selinux/selinux.h and selinux/context.h.
8739         Suggested by Eric Blake.
8740
8741 2009-12-25  Bruno Haible  <bruno@clisp.org>
8742
8743         Move gl_FCNTL_O_FLAGS to a separate .m4 file.
8744         * m4/fcntl-o.m4: New file, extracted from m4/fcntl_h.m4.
8745         * m4/fcntl_h.m4 (gl_FCNTL_O_FLAGS): Remove macro.
8746         * modules/fcntl-h (Files): Add m4/fcntl-o.m4.
8747         * modules/localcharset (Files): Likewise. Remove m4/fcntl_h.m4.
8748
8749 2009-12-24  Bruno Haible  <bruno@clisp.org>
8750
8751         openat: Fix warning.
8752         * lib/openat-proc.c: Include <unistd.h>.
8753
8754 2009-12-24  Bruno Haible  <bruno@clisp.org>
8755
8756         New module 'unused-parameter'.
8757         * build-aux/unused-parameter.h: New file, extracted from earlier
8758         gnulib-common.m4.
8759         * modules/unused-parameter: New file.
8760         * lib/unistr.h: Include unused-parameter.h.
8761         (u32_mbtouc_unsafe, u32_mbtouc): Use _GL_UNUSED_PARAMETER instead of
8762         _GL_UNUSED.
8763         * modules/unistr/base (Depends-on): Add unused-parameter.
8764
8765 2009-12-24  Bruno Haible  <bruno@clisp.org>
8766
8767         Add missing dependencies to 'extensions' module.
8768         * m4/extensions.m4: Add comment.
8769         * modules/accept4 (Depends-on): Add extensions.
8770         * modules/dup3 (Depends-on): Likewise.
8771         * modules/fcntl (Depends-on): Likewise.
8772         * modules/futimens (Depends-on): Likewise.
8773         * modules/mknod (Depends-on): Likewise.
8774         * modules/pipe2 (Depends-on): Likewise.
8775         * modules/stat-time (Depends-on): Likewise.
8776         * modules/strcasestr-simple (Depends-on): Likewise.
8777         * modules/strsignal (Depends-on): Likewise.
8778         * modules/utimensat (Depends-on): Likewise.
8779         * modules/localcharset (Depends-on): Likewise. Needed because of
8780         gl_FCNTL_O_FLAGS.
8781         * modules/wcrtomb (Depends-on): Likewise. Needed because of
8782         AC_TYPE_MBSTATE_T.
8783         * modules/wcsnrtombs (Depends-on): Likewise.
8784         * modules/wcsrtombs (Depends-on): Likewise.
8785
8786 2009-12-24  Bruno Haible  <bruno@clisp.org>
8787
8788         binary-io: Avoid gcc warning due to SET_BINARY.
8789         * lib/binary-io.h (SET_BINARY): Cast the result to void.
8790         Reported by Jim Meyering <jim@meyering.net>. Suggestion by Eric Blake.
8791
8792 2009-12-24  Bruno Haible  <bruno@clisp.org>
8793
8794         Avoid future namespace pollution on glibc systems.
8795         * lib/arpa_inet.in.h: Don't include <sys/socket.h> on glibc systems.
8796         * lib/sys_ioctl.in.h: Don't include <unistd.h> on glibc systems.
8797         * lib/sys_select.in.h: Don't include <sys/time.h> and <string.h> on
8798         glibc systems.
8799
8800 2009-12-24  Bruno Haible  <bruno@clisp.org>
8801
8802         Refactor common macros used in tests.
8803         * tests/macros.h: New file.
8804         * tests/test-areadlink.c: Include macros.h. Don't include <stdio.h>
8805         and/or <stdlib.h>, if appropriate.
8806         (ASSERT, SIZEOF): Remove macros.
8807         * tests/test-areadlink-with-size.c: Likewise.
8808         * tests/test-areadlinkat.c: Likewise.
8809         * tests/test-areadlinkat-with-size.c: Likewise.
8810         * tests/test-argmatch.c: Likewise.
8811         * tests/test-argv-iter.c: Likewise.
8812         * tests/test-array-mergesort.c: Likewise.
8813         * tests/test-array_list.c: Likewise.
8814         * tests/test-array_oset.c: Likewise.
8815         * tests/test-avltree_list.c: Likewise.
8816         * tests/test-avltree_oset.c: Likewise.
8817         * tests/test-avltreehash_list.c: Likewise.
8818         * tests/test-base64.c: Likewise.
8819         * tests/test-binary-io.c: Likewise.
8820         * tests/test-bitrotate.c: Likewise.
8821         * tests/test-btowc.c: Likewise.
8822         * tests/test-byteswap.c: Likewise.
8823         * tests/test-c-ctype.c: Likewise.
8824         * tests/test-c-stack.c: Likewise.
8825         * tests/test-c-strcasecmp.c: Likewise.
8826         * tests/test-c-strcasestr.c: Likewise.
8827         * tests/test-c-strncasecmp.c: Likewise.
8828         * tests/test-c-strstr.c: Likewise.
8829         * tests/test-canonicalize-lgpl.c: Likewise.
8830         * tests/test-canonicalize.c: Likewise.
8831         * tests/test-carray_list.c: Likewise.
8832         * tests/test-ceilf1.c: Likewise.
8833         * tests/test-ceilf2.c: Likewise.
8834         * tests/test-ceill.c: Likewise.
8835         * tests/test-chown.c: Likewise.
8836         * tests/test-cloexec.c: Likewise.
8837         * tests/test-copy-acl.c: Likewise.
8838         * tests/test-copy-file.c: Likewise.
8839         * tests/test-count-one-bits.c: Likewise.
8840         * tests/test-dprintf-posix.c: Likewise.
8841         * tests/test-dup2.c: Likewise.
8842         * tests/test-dup3.c: Likewise.
8843         * tests/test-duplocale.c: Likewise.
8844         * tests/test-fbufmode.c: Likewise.
8845         * tests/test-fchdir.c: Likewise.
8846         * tests/test-fchownat.c: Likewise.
8847         * tests/test-fcntl-safer.c: Likewise.
8848         * tests/test-fcntl.c: Likewise.
8849         * tests/test-fdopendir.c: Likewise.
8850         * tests/test-fdutimensat.c: Likewise.
8851         * tests/test-fflush2.c: Likewise.
8852         * tests/test-file-has-acl.c: Likewise.
8853         * tests/test-filevercmp.c: Likewise.
8854         * tests/test-flock.c: Likewise.
8855         * tests/test-floorf1.c: Likewise.
8856         * tests/test-floorf2.c: Likewise.
8857         * tests/test-floorl.c: Likewise.
8858         * tests/test-fnmatch.c: Likewise.
8859         * tests/test-fopen.h: Likewise.
8860         * tests/test-fpending.c: Likewise.
8861         * tests/test-fprintf-posix.c: Likewise.
8862         * tests/test-fpurge.c: Likewise.
8863         * tests/test-freadable.c: Likewise.
8864         * tests/test-freadahead.c: Likewise.
8865         * tests/test-freading.c: Likewise.
8866         * tests/test-freadptr.c: Likewise.
8867         * tests/test-freadptr2.c: Likewise.
8868         * tests/test-freadseek.c: Likewise.
8869         * tests/test-freopen.c: Likewise.
8870         * tests/test-frexp.c: Likewise.
8871         * tests/test-frexpl.c: Likewise.
8872         * tests/test-fseek.c: Likewise.
8873         * tests/test-fseeko.c: Likewise.
8874         * tests/test-fstatat.c: Likewise.
8875         * tests/test-fstrcmp.c: Likewise.
8876         * tests/test-fsync.c: Likewise.
8877         * tests/test-ftell.c: Likewise.
8878         * tests/test-ftello.c: Likewise.
8879         * tests/test-func.c: Likewise.
8880         * tests/test-futimens.c: Likewise.
8881         * tests/test-fwritable.c: Likewise.
8882         * tests/test-fwriting.c: Likewise.
8883         * tests/test-getcwd.c: Likewise.
8884         * tests/test-getdate.c: Likewise.
8885         * tests/test-getdelim.c: Likewise.
8886         * tests/test-getdtablesize.c: Likewise.
8887         * tests/test-getgroups.c: Likewise.
8888         * tests/test-getline.c: Likewise.
8889         * tests/test-getndelim2.c: Likewise.
8890         * tests/test-glob.c: Likewise.
8891         * tests/test-hash.c: Likewise.
8892         * tests/test-i-ring.c: Likewise.
8893         * tests/test-iconv-utf.c: Likewise.
8894         * tests/test-iconv.c: Likewise.
8895         * tests/test-idpriv-drop.c: Likewise.
8896         * tests/test-idpriv-droptemp.c: Likewise.
8897         * tests/test-inet_ntop.c: Likewise.
8898         * tests/test-inet_pton.c: Likewise.
8899         * tests/test-isblank.c: Likewise.
8900         * tests/test-isfinite.c: Likewise.
8901         * tests/test-isinf.c: Likewise.
8902         * tests/test-isnan.c: Likewise.
8903         * tests/test-isnand.h: Likewise.
8904         * tests/test-isnanf.h: Likewise.
8905         * tests/test-isnanl.h: Likewise.
8906         * tests/test-lchown.c: Likewise.
8907         * tests/test-ldexpl.c: Likewise.
8908         * tests/test-link.c: Likewise.
8909         * tests/test-linkat.c: Likewise.
8910         * tests/test-linked_list.c: Likewise.
8911         * tests/test-linkedhash_list.c: Likewise.
8912         * tests/test-localename.c: Likewise.
8913         * tests/test-lseek.c: Likewise.
8914         * tests/test-lstat.c: Likewise.
8915         * tests/test-mbmemcasecmp.c: Likewise.
8916         * tests/test-mbmemcasecoll.c: Likewise.
8917         * tests/test-mbrtowc.c: Likewise.
8918         * tests/test-mbscasecmp.c: Likewise.
8919         * tests/test-mbscasestr1.c: Likewise.
8920         * tests/test-mbscasestr2.c: Likewise.
8921         * tests/test-mbscasestr3.c: Likewise.
8922         * tests/test-mbscasestr4.c: Likewise.
8923         * tests/test-mbschr.c: Likewise.
8924         * tests/test-mbscspn.c: Likewise.
8925         * tests/test-mbsinit.c: Likewise.
8926         * tests/test-mbsncasecmp.c: Likewise.
8927         * tests/test-mbsnrtowcs.c: Likewise.
8928         * tests/test-mbspbrk.c: Likewise.
8929         * tests/test-mbspcasecmp.c: Likewise.
8930         * tests/test-mbsrchr.c: Likewise.
8931         * tests/test-mbsrtowcs.c: Likewise.
8932         * tests/test-mbsspn.c: Likewise.
8933         * tests/test-mbsstr1.c: Likewise.
8934         * tests/test-mbsstr2.c: Likewise.
8935         * tests/test-mbsstr3.c: Likewise.
8936         * tests/test-memchr.c: Likewise.
8937         * tests/test-memchr2.c: Likewise.
8938         * tests/test-memcmp.c: Likewise.
8939         * tests/test-memmem.c: Likewise.
8940         * tests/test-memrchr.c: Likewise.
8941         * tests/test-mkdir.c: Likewise.
8942         * tests/test-mkdirat.c: Likewise.
8943         * tests/test-mkfifo.c: Likewise.
8944         * tests/test-mkfifoat.c: Likewise.
8945         * tests/test-mknod.c: Likewise.
8946         * tests/test-nanosleep.c: Likewise.
8947         * tests/test-nl_langinfo.c: Likewise.
8948         * tests/test-obstack-printf.c: Likewise.
8949         * tests/test-open.c: Likewise.
8950         * tests/test-openat.c: Likewise.
8951         * tests/test-pipe-filter-gi1.c: Likewise.
8952         * tests/test-pipe-filter-gi2-main.c: Likewise.
8953         * tests/test-pipe-filter-ii1.c: Likewise.
8954         * tests/test-pipe-filter-ii2-main.c: Likewise.
8955         * tests/test-pipe2.c: Likewise.
8956         * tests/test-popen.h: Likewise.
8957         * tests/test-posixtm.c: Likewise.
8958         * tests/test-pread.c: Likewise.
8959         * tests/test-printf-frexp.c: Likewise.
8960         * tests/test-printf-frexpl.c: Likewise.
8961         * tests/test-printf-posix.c: Likewise.
8962         * tests/test-priv-set.c: Likewise.
8963         * tests/test-quotearg.c: Likewise.
8964         * tests/test-random_r.c: Likewise.
8965         * tests/test-rawmemchr.c: Likewise.
8966         * tests/test-rbtree_list.c: Likewise.
8967         * tests/test-rbtree_oset.c: Likewise.
8968         * tests/test-rbtreehash_list.c: Likewise.
8969         * tests/test-readlink.c: Likewise.
8970         * tests/test-remove.c: Likewise.
8971         * tests/test-rename.c: Likewise.
8972         * tests/test-renameat.c: Likewise.
8973         * tests/test-rmdir.c: Likewise.
8974         * tests/test-round1.c: Likewise.
8975         * tests/test-roundf1.c: Likewise.
8976         * tests/test-roundl.c: Likewise.
8977         * tests/test-safe-alloc.c: Likewise.
8978         * tests/test-sameacls.c: Likewise.
8979         * tests/test-set-mode-acl.c: Likewise.
8980         * tests/test-setenv.c: Likewise.
8981         * tests/test-sigaction.c: Likewise.
8982         * tests/test-signbit.c: Likewise.
8983         * tests/test-sleep.c: Likewise.
8984         * tests/test-snprintf-posix.c: Likewise.
8985         * tests/test-snprintf.c: Likewise.
8986         * tests/test-sprintf-posix.c: Likewise.
8987         * tests/test-stat-time.c: Likewise.
8988         * tests/test-stat.c: Likewise.
8989         * tests/test-strcasestr.c: Likewise.
8990         * tests/test-strchrnul.c: Likewise.
8991         * tests/test-strerror.c: Likewise.
8992         * tests/test-striconv.c: Likewise.
8993         * tests/test-striconveh.c: Likewise.
8994         * tests/test-striconveha.c: Likewise.
8995         * tests/test-strsignal.c: Likewise.
8996         * tests/test-strstr.c: Likewise.
8997         * tests/test-strtod.c: Likewise.
8998         * tests/test-strverscmp.c: Likewise.
8999         * tests/test-symlink.c: Likewise.
9000         * tests/test-symlinkat.c: Likewise.
9001         * tests/test-trunc1.c: Likewise.
9002         * tests/test-trunc2.c: Likewise.
9003         * tests/test-truncf1.c: Likewise.
9004         * tests/test-truncf2.c: Likewise.
9005         * tests/test-truncl.c: Likewise.
9006         * tests/test-uname.c: Likewise.
9007         * tests/test-unlink.c: Likewise.
9008         * tests/test-unlinkat.c: Likewise.
9009         * tests/test-unsetenv.c: Likewise.
9010         * tests/test-usleep.c: Likewise.
9011         * tests/test-utimens.c: Likewise.
9012         * tests/test-utimensat.c: Likewise.
9013         * tests/test-vasnprintf-posix.c: Likewise.
9014         * tests/test-vasnprintf-posix2.c: Likewise.
9015         * tests/test-vasnprintf.c: Likewise.
9016         * tests/test-vasprintf-posix.c: Likewise.
9017         * tests/test-vasprintf.c: Likewise.
9018         * tests/test-vdprintf-posix.c: Likewise.
9019         * tests/test-vfprintf-posix.c: Likewise.
9020         * tests/test-vprintf-posix.c: Likewise.
9021         * tests/test-vsnprintf-posix.c: Likewise.
9022         * tests/test-vsnprintf.c: Likewise.
9023         * tests/test-vsprintf-posix.c: Likewise.
9024         * tests/test-wcrtomb.c: Likewise.
9025         * tests/test-wcsnrtombs.c: Likewise.
9026         * tests/test-wcsrtombs.c: Likewise.
9027         * tests/test-wctype.c: Likewise.
9028         * tests/test-wcwidth.c: Likewise.
9029         * tests/test-xfprintf-posix.c: Likewise.
9030         * tests/test-xmemdup0.c: Likewise.
9031         * tests/test-xprintf-posix.c: Likewise.
9032         * tests/test-xvasprintf.c: Likewise.
9033         * tests/unicase/test-locale-language.c: Likewise.
9034         * tests/unicase/test-mapping-part1.h: Likewise.
9035         * tests/unicase/test-predicate-part1.h: Likewise.
9036         * tests/unicase/test-u8-casecmp.c: Likewise.
9037         * tests/unicase/test-u8-casecoll.c: Likewise.
9038         * tests/unicase/test-u8-casefold.c: Likewise.
9039         * tests/unicase/test-u8-is-cased.c: Likewise.
9040         * tests/unicase/test-u8-is-casefolded.c: Likewise.
9041         * tests/unicase/test-u8-is-lowercase.c: Likewise.
9042         * tests/unicase/test-u8-is-titlecase.c: Likewise.
9043         * tests/unicase/test-u8-is-uppercase.c: Likewise.
9044         * tests/unicase/test-u8-tolower.c: Likewise.
9045         * tests/unicase/test-u8-totitle.c: Likewise.
9046         * tests/unicase/test-u8-toupper.c: Likewise.
9047         * tests/unicase/test-u16-casecmp.c: Likewise.
9048         * tests/unicase/test-u16-casecoll.c: Likewise.
9049         * tests/unicase/test-u16-casefold.c: Likewise.
9050         * tests/unicase/test-u16-is-cased.c: Likewise.
9051         * tests/unicase/test-u16-is-casefolded.c: Likewise.
9052         * tests/unicase/test-u16-is-lowercase.c: Likewise.
9053         * tests/unicase/test-u16-is-titlecase.c: Likewise.
9054         * tests/unicase/test-u16-is-uppercase.c: Likewise.
9055         * tests/unicase/test-u16-tolower.c: Likewise.
9056         * tests/unicase/test-u16-totitle.c: Likewise.
9057         * tests/unicase/test-u16-toupper.c: Likewise.
9058         * tests/unicase/test-u32-casecmp.c: Likewise.
9059         * tests/unicase/test-u32-casecoll.c: Likewise.
9060         * tests/unicase/test-u32-casefold.c: Likewise.
9061         * tests/unicase/test-u32-is-cased.c: Likewise.
9062         * tests/unicase/test-u32-is-casefolded.c: Likewise.
9063         * tests/unicase/test-u32-is-lowercase.c: Likewise.
9064         * tests/unicase/test-u32-is-titlecase.c: Likewise.
9065         * tests/unicase/test-u32-is-uppercase.c: Likewise.
9066         * tests/unicase/test-u32-tolower.c: Likewise.
9067         * tests/unicase/test-u32-totitle.c: Likewise.
9068         * tests/unicase/test-u32-toupper.c: Likewise.
9069         * tests/unicase/test-ulc-casecmp.c: Likewise.
9070         * tests/unicase/test-ulc-casecoll.c: Likewise.
9071         * tests/uniconv/test-u8-conv-from-enc.c: Likewise.
9072         * tests/uniconv/test-u8-conv-to-enc.c: Likewise.
9073         * tests/uniconv/test-u8-strconv-from-enc.c: Likewise.
9074         * tests/uniconv/test-u8-strconv-to-enc.c: Likewise.
9075         * tests/uniconv/test-u16-conv-from-enc.c: Likewise.
9076         * tests/uniconv/test-u16-conv-to-enc.c: Likewise.
9077         * tests/uniconv/test-u16-strconv-from-enc.c: Likewise.
9078         * tests/uniconv/test-u16-strconv-to-enc.c: Likewise.
9079         * tests/uniconv/test-u32-conv-from-enc.c: Likewise.
9080         * tests/uniconv/test-u32-conv-to-enc.c: Likewise.
9081         * tests/uniconv/test-u32-strconv-from-enc.c: Likewise.
9082         * tests/uniconv/test-u32-strconv-to-enc.c: Likewise.
9083         * tests/unictype/test-bidi_byname.c: Likewise.
9084         * tests/unictype/test-bidi_name.c: Likewise.
9085         * tests/unictype/test-bidi_of.c: Likewise.
9086         * tests/unictype/test-bidi_test.c: Likewise.
9087         * tests/unictype/test-block_list.c: Likewise.
9088         * tests/unictype/test-block_of.c: Likewise.
9089         * tests/unictype/test-block_test.c: Likewise.
9090         * tests/unictype/test-categ_and.c: Likewise.
9091         * tests/unictype/test-categ_and_not.c: Likewise.
9092         * tests/unictype/test-categ_byname.c: Likewise.
9093         * tests/unictype/test-categ_name.c: Likewise.
9094         * tests/unictype/test-categ_none.c: Likewise.
9095         * tests/unictype/test-categ_of.c: Likewise.
9096         * tests/unictype/test-categ_or.c: Likewise.
9097         * tests/unictype/test-categ_test_withtable.c: Likewise.
9098         * tests/unictype/test-combining.c: Likewise.
9099         * tests/unictype/test-decdigit.c: Likewise.
9100         * tests/unictype/test-digit.c: Likewise.
9101         * tests/unictype/test-mirror.c: Likewise.
9102         * tests/unictype/test-numeric.c: Likewise.
9103         * tests/unictype/test-pr_byname.c: Likewise.
9104         * tests/unictype/test-pr_test.c: Likewise.
9105         * tests/unictype/test-predicate-part1.h: Likewise.
9106         * tests/unictype/test-scripts.c: Likewise.
9107         * tests/unictype/test-sy_c_ident.c: Likewise.
9108         * tests/unictype/test-sy_java_ident.c: Likewise.
9109         * tests/unilbrk/test-u8-possible-linebreaks.c: Likewise.
9110         * tests/unilbrk/test-u8-width-linebreaks.c: Likewise.
9111         * tests/unilbrk/test-u16-possible-linebreaks.c: Likewise.
9112         * tests/unilbrk/test-u16-width-linebreaks.c: Likewise.
9113         * tests/unilbrk/test-u32-possible-linebreaks.c: Likewise.
9114         * tests/unilbrk/test-u32-width-linebreaks.c: Likewise.
9115         * tests/unilbrk/test-ulc-possible-linebreaks.c: Likewise.
9116         * tests/unilbrk/test-ulc-width-linebreaks.c: Likewise.
9117         * tests/uninorm/test-canonical-decomposition.c: Likewise.
9118         * tests/uninorm/test-compat-decomposition.c: Likewise.
9119         * tests/uninorm/test-composition.c: Likewise.
9120         * tests/uninorm/test-decomposing-form.c: Likewise.
9121         * tests/uninorm/test-decomposition.c: Likewise.
9122         * tests/uninorm/test-u8-nfc.c: Likewise.
9123         * tests/uninorm/test-u8-nfd.c: Likewise.
9124         * tests/uninorm/test-u8-nfkc.c: Likewise.
9125         * tests/uninorm/test-u8-nfkd.c: Likewise.
9126         * tests/uninorm/test-u8-normcmp.c: Likewise.
9127         * tests/uninorm/test-u8-normcoll.c: Likewise.
9128         * tests/uninorm/test-u16-nfc.c: Likewise.
9129         * tests/uninorm/test-u16-nfd.c: Likewise.
9130         * tests/uninorm/test-u16-nfkc.c: Likewise.
9131         * tests/uninorm/test-u16-nfkd.c: Likewise.
9132         * tests/uninorm/test-u16-normcmp.c: Likewise.
9133         * tests/uninorm/test-u16-normcoll.c: Likewise.
9134         * tests/uninorm/test-u32-nfc.c: Likewise.
9135         * tests/uninorm/test-u32-nfd.c: Likewise.
9136         * tests/uninorm/test-u32-nfkc.c: Likewise.
9137         * tests/uninorm/test-u32-nfkd.c: Likewise.
9138         * tests/uninorm/test-u32-normalize-big.c: Likewise.
9139         * tests/uninorm/test-u32-normcmp.c: Likewise.
9140         * tests/uninorm/test-u32-normcoll.c: Likewise.
9141         * tests/uninorm/test-uninorm-filter-nfc.c: Likewise.
9142         * tests/unistdio/test-u8-asnprintf1.c: Likewise.
9143         * tests/unistdio/test-u8-vasnprintf1.c: Likewise.
9144         * tests/unistdio/test-u8-vasnprintf2.c: Likewise.
9145         * tests/unistdio/test-u8-vasnprintf3.c: Likewise.
9146         * tests/unistdio/test-u8-vasprintf1.c: Likewise.
9147         * tests/unistdio/test-u8-vsnprintf1.c: Likewise.
9148         * tests/unistdio/test-u8-vsprintf1.c: Likewise.
9149         * tests/unistdio/test-u16-asnprintf1.c: Likewise.
9150         * tests/unistdio/test-u16-vasnprintf1.c: Likewise.
9151         * tests/unistdio/test-u16-vasnprintf2.c: Likewise.
9152         * tests/unistdio/test-u16-vasnprintf3.c: Likewise.
9153         * tests/unistdio/test-u16-vasprintf1.c: Likewise.
9154         * tests/unistdio/test-u16-vsnprintf1.c: Likewise.
9155         * tests/unistdio/test-u16-vsprintf1.c: Likewise.
9156         * tests/unistdio/test-u32-asnprintf1.c: Likewise.
9157         * tests/unistdio/test-u32-vasnprintf1.c: Likewise.
9158         * tests/unistdio/test-u32-vasnprintf2.c: Likewise.
9159         * tests/unistdio/test-u32-vasnprintf3.c: Likewise.
9160         * tests/unistdio/test-u32-vasprintf1.c: Likewise.
9161         * tests/unistdio/test-u32-vsnprintf1.c: Likewise.
9162         * tests/unistdio/test-u32-vsprintf1.c: Likewise.
9163         * tests/unistdio/test-ulc-asnprintf1.c: Likewise.
9164         * tests/unistdio/test-ulc-vasnprintf1.c: Likewise.
9165         * tests/unistdio/test-ulc-vasnprintf2.c: Likewise.
9166         * tests/unistdio/test-ulc-vasnprintf3.c: Likewise.
9167         * tests/unistdio/test-ulc-vasprintf1.c: Likewise.
9168         * tests/unistdio/test-ulc-vsnprintf1.c: Likewise.
9169         * tests/unistdio/test-ulc-vsprintf1.c: Likewise.
9170         * tests/uniwbrk/test-u8-wordbreaks.c: Likewise.
9171         * tests/uniwbrk/test-u16-wordbreaks.c: Likewise.
9172         * tests/uniwbrk/test-u32-wordbreaks.c: Likewise.
9173         * tests/uniwbrk/test-ulc-wordbreaks.c: Likewise.
9174         * tests/uniwidth/test-u8-strwidth.c: Likewise.
9175         * tests/uniwidth/test-u8-width.c: Likewise.
9176         * tests/uniwidth/test-u16-strwidth.c: Likewise.
9177         * tests/uniwidth/test-u16-width.c: Likewise.
9178         * tests/uniwidth/test-u32-strwidth.c: Likewise.
9179         * tests/uniwidth/test-u32-width.c: Likewise.
9180         * tests/uniwidth/test-uc_width.c: Likewise.
9181         * tests/uniwidth/test-uc_width2.c: Likewise.
9182         * modules/acl-tests (Files): Add tests/macros.h.
9183         * modules/areadlink-tests (Files): Likewise.
9184         * modules/areadlink-with-size-tests (Files): Likewise.
9185         * modules/areadlinkat-tests (Files): Likewise.
9186         * modules/areadlinkat-with-size-tests (Files): Likewise.
9187         * modules/argmatch-tests (Files): Likewise.
9188         * modules/argv-iter-tests (Files): Likewise.
9189         * modules/array-list-tests (Files): Likewise.
9190         * modules/array-mergesort-tests (Files): Likewise.
9191         * modules/array-oset-tests (Files): Likewise.
9192         * modules/avltree-list-tests (Files): Likewise.
9193         * modules/avltree-oset-tests (Files): Likewise.
9194         * modules/avltreehash-list-tests (Files): Likewise.
9195         * modules/base64-tests (Files): Likewise.
9196         * modules/binary-io-tests (Files): Likewise.
9197         * modules/bitrotate-tests (Files): Likewise.
9198         * modules/btowc-tests (Files): Likewise.
9199         * modules/byteswap-tests (Files): Likewise.
9200         * modules/c-ctype-tests (Files): Likewise.
9201         * modules/c-stack-tests (Files): Likewise.
9202         * modules/c-strcase-tests (Files): Likewise.
9203         * modules/c-strcasestr-tests (Files): Likewise.
9204         * modules/c-strstr-tests (Files): Likewise.
9205         * modules/canonicalize-lgpl-tests (Files): Likewise.
9206         * modules/canonicalize-tests (Files): Likewise.
9207         * modules/carray-list-tests (Files): Likewise.
9208         * modules/ceilf-tests (Files): Likewise.
9209         * modules/ceill-tests (Files): Likewise.
9210         * modules/chown-tests (Files): Likewise.
9211         * modules/cloexec-tests (Files): Likewise.
9212         * modules/copy-file-tests (Files): Likewise.
9213         * modules/count-one-bits-tests (Files): Likewise.
9214         * modules/dprintf-posix-tests (Files): Likewise.
9215         * modules/dup2-tests (Files): Likewise.
9216         * modules/dup3-tests (Files): Likewise.
9217         * modules/duplocale-tests (Files): Likewise.
9218         * modules/fbufmode-tests (Files): Likewise.
9219         * modules/fchdir-tests (Files): Likewise.
9220         * modules/fcntl-safer-tests (Files): Likewise.
9221         * modules/fcntl-tests (Files): Likewise.
9222         * modules/fdopendir-tests (Files): Likewise.
9223         * modules/fdutimensat-tests (Files): Likewise.
9224         * modules/fflush-tests (Files): Likewise.
9225         * modules/filevercmp-tests (Files): Likewise.
9226         * modules/flock-tests (Files): Likewise.
9227         * modules/floorf-tests (Files): Likewise.
9228         * modules/floorl-tests (Files): Likewise.
9229         * modules/fnmatch-tests (Files): Likewise.
9230         * modules/fopen-safer-tests (Files): Likewise.
9231         * modules/fopen-tests (Files): Likewise.
9232         * modules/fpending-tests (Files): Likewise.
9233         * modules/fprintf-posix-tests (Files): Likewise.
9234         * modules/fpurge-tests (Files): Likewise.
9235         * modules/freadable-tests (Files): Likewise.
9236         * modules/freadahead-tests (Files): Likewise.
9237         * modules/freading-tests (Files): Likewise.
9238         * modules/freadptr-tests (Files): Likewise.
9239         * modules/freadseek-tests (Files): Likewise.
9240         * modules/freopen-tests (Files): Likewise.
9241         * modules/frexp-nolibm-tests (Files): Likewise.
9242         * modules/frexp-tests (Files): Likewise.
9243         * modules/frexpl-nolibm-tests (Files): Likewise.
9244         * modules/frexpl-tests (Files): Likewise.
9245         * modules/fseek-tests (Files): Likewise.
9246         * modules/fseeko-tests (Files): Likewise.
9247         * modules/fstrcmp-tests (Files): Likewise.
9248         * modules/fsync-tests (Files): Likewise.
9249         * modules/ftell-tests (Files): Likewise.
9250         * modules/ftello-tests (Files): Likewise.
9251         * modules/func-tests (Files): Likewise.
9252         * modules/futimens-tests (Files): Likewise.
9253         * modules/fwritable-tests (Files): Likewise.
9254         * modules/fwriting-tests (Files): Likewise.
9255         * modules/getcwd-tests (Files): Likewise.
9256         * modules/getdate-tests (Files): Likewise.
9257         * modules/getdelim-tests (Files): Likewise.
9258         * modules/getdtablesize-tests (Files): Likewise.
9259         * modules/getgroups-tests (Files): Likewise.
9260         * modules/getline-tests (Files): Likewise.
9261         * modules/getndelim2-tests (Files): Likewise.
9262         * modules/glob-tests (Files): Likewise.
9263         * modules/hash-tests (Files): Likewise.
9264         * modules/i-ring-tests (Files): Likewise.
9265         * modules/iconv-tests (Files): Likewise.
9266         * modules/iconv_open-utf-tests (Files): Likewise.
9267         * modules/idpriv-drop-tests (Files): Likewise.
9268         * modules/idpriv-droptemp-tests (Files): Likewise.
9269         * modules/inet_ntop-tests (Files): Likewise.
9270         * modules/inet_pton-tests (Files): Likewise.
9271         * modules/isblank-tests (Files): Likewise.
9272         * modules/isfinite-tests (Files): Likewise.
9273         * modules/isinf-tests (Files): Likewise.
9274         * modules/isnan-tests (Files): Likewise.
9275         * modules/isnand-nolibm-tests (Files): Likewise.
9276         * modules/isnand-tests (Files): Likewise.
9277         * modules/isnanf-nolibm-tests (Files): Likewise.
9278         * modules/isnanf-tests (Files): Likewise.
9279         * modules/isnanl-nolibm-tests (Files): Likewise.
9280         * modules/isnanl-tests (Files): Likewise.
9281         * modules/lchown-tests (Files): Likewise.
9282         * modules/ldexpl-tests (Files): Likewise.
9283         * modules/link-tests (Files): Likewise.
9284         * modules/linkat-tests (Files): Likewise.
9285         * modules/linked-list-tests (Files): Likewise.
9286         * modules/linkedhash-list-tests (Files): Likewise.
9287         * modules/localename-tests (Files): Likewise.
9288         * modules/lseek-tests (Files): Likewise.
9289         * modules/lstat-tests (Files): Likewise.
9290         * modules/mbmemcasecmp-tests (Files): Likewise.
9291         * modules/mbmemcasecoll-tests (Files): Likewise.
9292         * modules/mbrtowc-tests (Files): Likewise.
9293         * modules/mbscasecmp-tests (Files): Likewise.
9294         * modules/mbscasestr-tests (Files): Likewise.
9295         * modules/mbschr-tests (Files): Likewise.
9296         * modules/mbscspn-tests (Files): Likewise.
9297         * modules/mbsinit-tests (Files): Likewise.
9298         * modules/mbsncasecmp-tests (Files): Likewise.
9299         * modules/mbsnrtowcs-tests (Files): Likewise.
9300         * modules/mbspbrk-tests (Files): Likewise.
9301         * modules/mbspcasecmp-tests (Files): Likewise.
9302         * modules/mbsrchr-tests (Files): Likewise.
9303         * modules/mbsrtowcs-tests (Files): Likewise.
9304         * modules/mbsspn-tests (Files): Likewise.
9305         * modules/mbsstr-tests (Files): Likewise.
9306         * modules/memchr-tests (Files): Likewise.
9307         * modules/memchr2-tests (Files): Likewise.
9308         * modules/memcmp-tests (Files): Likewise.
9309         * modules/memmem-tests (Files): Likewise.
9310         * modules/memrchr-tests (Files): Likewise.
9311         * modules/mkdir-tests (Files): Likewise.
9312         * modules/mkfifo-tests (Files): Likewise.
9313         * modules/mkfifoat-tests (Files): Likewise.
9314         * modules/mknod-tests (Files): Likewise.
9315         * modules/nanosleep-tests (Files): Likewise.
9316         * modules/nl_langinfo-tests (Files): Likewise.
9317         * modules/obstack-printf-tests (Files): Likewise.
9318         * modules/open-tests (Files): Likewise.
9319         * modules/openat-tests (Files): Likewise.
9320         * modules/pipe-filter-gi-tests (Files): Likewise.
9321         * modules/pipe-filter-ii-tests (Files): Likewise.
9322         * modules/pipe2-tests (Files): Likewise.
9323         * modules/popen-safer-tests (Files): Likewise.
9324         * modules/popen-tests (Files): Likewise.
9325         * modules/posixtm-tests (Files): Likewise.
9326         * modules/pread-tests (Files): Likewise.
9327         * modules/printf-frexp-tests (Files): Likewise.
9328         * modules/printf-frexpl-tests (Files): Likewise.
9329         * modules/printf-posix-tests (Files): Likewise.
9330         * modules/priv-set-tests (Files): Likewise.
9331         * modules/quotearg-tests (Files): Likewise.
9332         * modules/random_r-tests (Files): Likewise.
9333         * modules/rawmemchr-tests (Files): Likewise.
9334         * modules/rbtree-list-tests (Files): Likewise.
9335         * modules/rbtree-oset-tests (Files): Likewise.
9336         * modules/rbtreehash-list-tests (Files): Likewise.
9337         * modules/readlink-tests (Files): Likewise.
9338         * modules/remove-tests (Files): Likewise.
9339         * modules/rename-tests (Files): Likewise.
9340         * modules/renameat-tests (Files): Likewise.
9341         * modules/rmdir-tests (Files): Likewise.
9342         * modules/round-tests (Files): Likewise.
9343         * modules/roundf-tests (Files): Likewise.
9344         * modules/roundl-tests (Files): Likewise.
9345         * modules/safe-alloc-tests (Files): Likewise.
9346         * modules/setenv-tests (Files): Likewise.
9347         * modules/sigaction-tests (Files): Likewise.
9348         * modules/signbit-tests (Files): Likewise.
9349         * modules/sleep-tests (Files): Likewise.
9350         * modules/snprintf-posix-tests (Files): Likewise.
9351         * modules/snprintf-tests (Files): Likewise.
9352         * modules/sprintf-posix-tests (Files): Likewise.
9353         * modules/stat-tests (Files): Likewise.
9354         * modules/stat-time-tests (Files): Likewise.
9355         * modules/strcasestr-tests (Files): Likewise.
9356         * modules/strchrnul-tests (Files): Likewise.
9357         * modules/strerror-tests (Files): Likewise.
9358         * modules/striconv-tests (Files): Likewise.
9359         * modules/striconveh-tests (Files): Likewise.
9360         * modules/striconveha-tests (Files): Likewise.
9361         * modules/strsignal-tests (Files): Likewise.
9362         * modules/strstr-tests (Files): Likewise.
9363         * modules/strtod-tests (Files): Likewise.
9364         * modules/strverscmp-tests (Files): Likewise.
9365         * modules/symlink-tests (Files): Likewise.
9366         * modules/symlinkat-tests (Files): Likewise.
9367         * modules/trunc-tests (Files): Likewise.
9368         * modules/truncf-tests (Files): Likewise.
9369         * modules/truncl-tests (Files): Likewise.
9370         * modules/uname-tests (Files): Likewise.
9371         * modules/unicase/cased-tests (Files): Likewise.
9372         * modules/unicase/ignorable-tests (Files): Likewise.
9373         * modules/unicase/locale-language-tests (Files): Likewise.
9374         * modules/unicase/tolower-tests (Files): Likewise.
9375         * modules/unicase/totitle-tests (Files): Likewise.
9376         * modules/unicase/toupper-tests (Files): Likewise.
9377         * modules/unicase/u8-casecmp-tests (Files): Likewise.
9378         * modules/unicase/u8-casecoll-tests (Files): Likewise.
9379         * modules/unicase/u8-casefold-tests (Files): Likewise.
9380         * modules/unicase/u8-is-cased-tests (Files): Likewise.
9381         * modules/unicase/u8-is-casefolded-tests (Files): Likewise.
9382         * modules/unicase/u8-is-lowercase-tests (Files): Likewise.
9383         * modules/unicase/u8-is-titlecase-tests (Files): Likewise.
9384         * modules/unicase/u8-is-uppercase-tests (Files): Likewise.
9385         * modules/unicase/u8-tolower-tests (Files): Likewise.
9386         * modules/unicase/u8-totitle-tests (Files): Likewise.
9387         * modules/unicase/u8-toupper-tests (Files): Likewise.
9388         * modules/unicase/u16-casecmp-tests (Files): Likewise.
9389         * modules/unicase/u16-casecoll-tests (Files): Likewise.
9390         * modules/unicase/u16-casefold-tests (Files): Likewise.
9391         * modules/unicase/u16-is-cased-tests (Files): Likewise.
9392         * modules/unicase/u16-is-casefolded-tests (Files): Likewise.
9393         * modules/unicase/u16-is-lowercase-tests (Files): Likewise.
9394         * modules/unicase/u16-is-titlecase-tests (Files): Likewise.
9395         * modules/unicase/u16-is-uppercase-tests (Files): Likewise.
9396         * modules/unicase/u16-tolower-tests (Files): Likewise.
9397         * modules/unicase/u16-totitle-tests (Files): Likewise.
9398         * modules/unicase/u16-toupper-tests (Files): Likewise.
9399         * modules/unicase/u32-casecmp-tests (Files): Likewise.
9400         * modules/unicase/u32-casecoll-tests (Files): Likewise.
9401         * modules/unicase/u32-casefold-tests (Files): Likewise.
9402         * modules/unicase/u32-is-cased-tests (Files): Likewise.
9403         * modules/unicase/u32-is-casefolded-tests (Files): Likewise.
9404         * modules/unicase/u32-is-lowercase-tests (Files): Likewise.
9405         * modules/unicase/u32-is-titlecase-tests (Files): Likewise.
9406         * modules/unicase/u32-is-uppercase-tests (Files): Likewise.
9407         * modules/unicase/u32-tolower-tests (Files): Likewise.
9408         * modules/unicase/u32-totitle-tests (Files): Likewise.
9409         * modules/unicase/u32-toupper-tests (Files): Likewise.
9410         * modules/unicase/ulc-casecmp-tests (Files): Likewise.
9411         * modules/unicase/ulc-casecoll-tests (Files): Likewise.
9412         * modules/uniconv/u8-conv-from-enc-tests (Files): Likewise.
9413         * modules/uniconv/u8-conv-to-enc-tests (Files): Likewise.
9414         * modules/uniconv/u8-strconv-from-enc-tests (Files): Likewise.
9415         * modules/uniconv/u8-strconv-to-enc-tests (Files): Likewise.
9416         * modules/uniconv/u16-conv-from-enc-tests (Files): Likewise.
9417         * modules/uniconv/u16-conv-to-enc-tests (Files): Likewise.
9418         * modules/uniconv/u16-strconv-from-enc-tests (Files): Likewise.
9419         * modules/uniconv/u16-strconv-to-enc-tests (Files): Likewise.
9420         * modules/uniconv/u32-conv-from-enc-tests (Files): Likewise.
9421         * modules/uniconv/u32-conv-to-enc-tests (Files): Likewise.
9422         * modules/uniconv/u32-strconv-from-enc-tests (Files): Likewise.
9423         * modules/uniconv/u32-strconv-to-enc-tests (Files): Likewise.
9424         * modules/unictype/bidicategory-byname-tests (Files): Likewise.
9425         * modules/unictype/bidicategory-name-tests (Files): Likewise.
9426         * modules/unictype/bidicategory-of-tests (Files): Likewise.
9427         * modules/unictype/bidicategory-test-tests (Files): Likewise.
9428         * modules/unictype/block-list-tests (Files): Likewise.
9429         * modules/unictype/block-of-tests (Files): Likewise.
9430         * modules/unictype/block-test-tests (Files): Likewise.
9431         * modules/unictype/category-C-tests (Files): Likewise.
9432         * modules/unictype/category-Cc-tests (Files): Likewise.
9433         * modules/unictype/category-Cf-tests (Files): Likewise.
9434         * modules/unictype/category-Cn-tests (Files): Likewise.
9435         * modules/unictype/category-Co-tests (Files): Likewise.
9436         * modules/unictype/category-Cs-tests (Files): Likewise.
9437         * modules/unictype/category-L-tests (Files): Likewise.
9438         * modules/unictype/category-Ll-tests (Files): Likewise.
9439         * modules/unictype/category-Lm-tests (Files): Likewise.
9440         * modules/unictype/category-Lo-tests (Files): Likewise.
9441         * modules/unictype/category-Lt-tests (Files): Likewise.
9442         * modules/unictype/category-Lu-tests (Files): Likewise.
9443         * modules/unictype/category-M-tests (Files): Likewise.
9444         * modules/unictype/category-Mc-tests (Files): Likewise.
9445         * modules/unictype/category-Me-tests (Files): Likewise.
9446         * modules/unictype/category-Mn-tests (Files): Likewise.
9447         * modules/unictype/category-N-tests (Files): Likewise.
9448         * modules/unictype/category-Nd-tests (Files): Likewise.
9449         * modules/unictype/category-Nl-tests (Files): Likewise.
9450         * modules/unictype/category-No-tests (Files): Likewise.
9451         * modules/unictype/category-P-tests (Files): Likewise.
9452         * modules/unictype/category-Pc-tests (Files): Likewise.
9453         * modules/unictype/category-Pd-tests (Files): Likewise.
9454         * modules/unictype/category-Pe-tests (Files): Likewise.
9455         * modules/unictype/category-Pf-tests (Files): Likewise.
9456         * modules/unictype/category-Pi-tests (Files): Likewise.
9457         * modules/unictype/category-Po-tests (Files): Likewise.
9458         * modules/unictype/category-Ps-tests (Files): Likewise.
9459         * modules/unictype/category-S-tests (Files): Likewise.
9460         * modules/unictype/category-Sc-tests (Files): Likewise.
9461         * modules/unictype/category-Sk-tests (Files): Likewise.
9462         * modules/unictype/category-Sm-tests (Files): Likewise.
9463         * modules/unictype/category-So-tests (Files): Likewise.
9464         * modules/unictype/category-Z-tests (Files): Likewise.
9465         * modules/unictype/category-Zl-tests (Files): Likewise.
9466         * modules/unictype/category-Zp-tests (Files): Likewise.
9467         * modules/unictype/category-Zs-tests (Files): Likewise.
9468         * modules/unictype/category-and-not-tests (Files): Likewise.
9469         * modules/unictype/category-and-tests (Files): Likewise.
9470         * modules/unictype/category-byname-tests (Files): Likewise.
9471         * modules/unictype/category-name-tests (Files): Likewise.
9472         * modules/unictype/category-none-tests (Files): Likewise.
9473         * modules/unictype/category-of-tests (Files): Likewise.
9474         * modules/unictype/category-or-tests (Files): Likewise.
9475         * modules/unictype/category-test-withtable-tests (Files): Likewise.
9476         * modules/unictype/combining-class-tests (Files): Likewise.
9477         * modules/unictype/ctype-alnum-tests (Files): Likewise.
9478         * modules/unictype/ctype-alpha-tests (Files): Likewise.
9479         * modules/unictype/ctype-blank-tests (Files): Likewise.
9480         * modules/unictype/ctype-cntrl-tests (Files): Likewise.
9481         * modules/unictype/ctype-digit-tests (Files): Likewise.
9482         * modules/unictype/ctype-graph-tests (Files): Likewise.
9483         * modules/unictype/ctype-lower-tests (Files): Likewise.
9484         * modules/unictype/ctype-print-tests (Files): Likewise.
9485         * modules/unictype/ctype-punct-tests (Files): Likewise.
9486         * modules/unictype/ctype-space-tests (Files): Likewise.
9487         * modules/unictype/ctype-upper-tests (Files): Likewise.
9488         * modules/unictype/ctype-xdigit-tests (Files): Likewise.
9489         * modules/unictype/decimal-digit-tests (Files): Likewise.
9490         * modules/unictype/digit-tests (Files): Likewise.
9491         * modules/unictype/mirror-tests (Files): Likewise.
9492         * modules/unictype/numeric-tests (Files): Likewise.
9493         * modules/unictype/property-alphabetic-tests (Files): Likewise.
9494         * modules/unictype/property-ascii-hex-digit-tests (Files): Likewise.
9495         * modules/unictype/property-bidi-arabic-digit-tests (Files): Likewise.
9496         * modules/unictype/property-bidi-arabic-right-to-left-tests (Files):
9497         Likewise.
9498         * modules/unictype/property-bidi-block-separator-tests (Files):
9499         Likewise.
9500         * modules/unictype/property-bidi-boundary-neutral-tests (Files):
9501         Likewise.
9502         * modules/unictype/property-bidi-common-separator-tests (Files):
9503         Likewise.
9504         * modules/unictype/property-bidi-control-tests (Files): Likewise.
9505         * modules/unictype/property-bidi-embedding-or-override-tests (Files):
9506         Likewise.
9507         * modules/unictype/property-bidi-eur-num-separator-tests (Files):
9508         Likewise.
9509         * modules/unictype/property-bidi-eur-num-terminator-tests (Files):
9510         Likewise.
9511         * modules/unictype/property-bidi-european-digit-tests (Files): Likewise.
9512         * modules/unictype/property-bidi-hebrew-right-to-left-tests (Files):
9513         Likewise.
9514         * modules/unictype/property-bidi-left-to-right-tests (Files): Likewise.
9515         * modules/unictype/property-bidi-non-spacing-mark-tests (Files):
9516         Likewise.
9517         * modules/unictype/property-bidi-other-neutral-tests (Files): Likewise.
9518         * modules/unictype/property-bidi-pdf-tests (Files): Likewise.
9519         * modules/unictype/property-bidi-segment-separator-tests (Files):
9520         Likewise.
9521         * modules/unictype/property-bidi-whitespace-tests (Files): Likewise.
9522         * modules/unictype/property-byname-tests (Files): Likewise.
9523         * modules/unictype/property-combining-tests (Files): Likewise.
9524         * modules/unictype/property-composite-tests (Files): Likewise.
9525         * modules/unictype/property-currency-symbol-tests (Files): Likewise.
9526         * modules/unictype/property-dash-tests (Files): Likewise.
9527         * modules/unictype/property-decimal-digit-tests (Files): Likewise.
9528         * modules/unictype/property-default-ignorable-code-point-tests (Files):
9529         Likewise.
9530         * modules/unictype/property-deprecated-tests (Files): Likewise.
9531         * modules/unictype/property-diacritic-tests (Files): Likewise.
9532         * modules/unictype/property-extender-tests (Files): Likewise.
9533         * modules/unictype/property-format-control-tests (Files): Likewise.
9534         * modules/unictype/property-grapheme-base-tests (Files): Likewise.
9535         * modules/unictype/property-grapheme-extend-tests (Files): Likewise.
9536         * modules/unictype/property-grapheme-link-tests (Files): Likewise.
9537         * modules/unictype/property-hex-digit-tests (Files): Likewise.
9538         * modules/unictype/property-hyphen-tests (Files): Likewise.
9539         * modules/unictype/property-id-continue-tests (Files): Likewise.
9540         * modules/unictype/property-id-start-tests (Files): Likewise.
9541         * modules/unictype/property-ideographic-tests (Files): Likewise.
9542         * modules/unictype/property-ids-binary-operator-tests (Files): Likewise.
9543         * modules/unictype/property-ids-trinary-operator-tests (Files):
9544         Likewise.
9545         * modules/unictype/property-ignorable-control-tests (Files): Likewise.
9546         * modules/unictype/property-iso-control-tests (Files): Likewise.
9547         * modules/unictype/property-join-control-tests (Files): Likewise.
9548         * modules/unictype/property-left-of-pair-tests (Files): Likewise.
9549         * modules/unictype/property-line-separator-tests (Files): Likewise.
9550         * modules/unictype/property-logical-order-exception-tests (Files):
9551         Likewise.
9552         * modules/unictype/property-lowercase-tests (Files): Likewise.
9553         * modules/unictype/property-math-tests (Files): Likewise.
9554         * modules/unictype/property-non-break-tests (Files): Likewise.
9555         * modules/unictype/property-not-a-character-tests (Files): Likewise.
9556         * modules/unictype/property-numeric-tests (Files): Likewise.
9557         * modules/unictype/property-other-alphabetic-tests (Files): Likewise.
9558         * modules/unictype/property-other-default-ignorable-code-point-tests
9559         (Files): Likewise.
9560         * modules/unictype/property-other-grapheme-extend-tests (Files):
9561         Likewise.
9562         * modules/unictype/property-other-id-continue-tests (Files): Likewise.
9563         * modules/unictype/property-other-id-start-tests (Files): Likewise.
9564         * modules/unictype/property-other-lowercase-tests (Files): Likewise.
9565         * modules/unictype/property-other-math-tests (Files): Likewise.
9566         * modules/unictype/property-other-uppercase-tests (Files): Likewise.
9567         * modules/unictype/property-paired-punctuation-tests (Files): Likewise.
9568         * modules/unictype/property-paragraph-separator-tests (Files): Likewise.
9569         * modules/unictype/property-pattern-syntax-tests (Files): Likewise.
9570         * modules/unictype/property-pattern-white-space-tests (Files): Likewise.
9571         * modules/unictype/property-private-use-tests (Files): Likewise.
9572         * modules/unictype/property-punctuation-tests (Files): Likewise.
9573         * modules/unictype/property-quotation-mark-tests (Files): Likewise.
9574         * modules/unictype/property-radical-tests (Files): Likewise.
9575         * modules/unictype/property-sentence-terminal-tests (Files): Likewise.
9576         * modules/unictype/property-soft-dotted-tests (Files): Likewise.
9577         * modules/unictype/property-space-tests (Files): Likewise.
9578         * modules/unictype/property-terminal-punctuation-tests (Files):
9579         Likewise.
9580         * modules/unictype/property-test-tests (Files): Likewise.
9581         * modules/unictype/property-titlecase-tests (Files): Likewise.
9582         * modules/unictype/property-unassigned-code-value-tests (Files):
9583         Likewise.
9584         * modules/unictype/property-unified-ideograph-tests (Files): Likewise.
9585         * modules/unictype/property-uppercase-tests (Files): Likewise.
9586         * modules/unictype/property-variation-selector-tests (Files): Likewise.
9587         * modules/unictype/property-white-space-tests (Files): Likewise.
9588         * modules/unictype/property-xid-continue-tests (Files): Likewise.
9589         * modules/unictype/property-xid-start-tests (Files): Likewise.
9590         * modules/unictype/property-zero-width-tests (Files): Likewise.
9591         * modules/unictype/scripts-tests (Files): Likewise.
9592         * modules/unictype/syntax-c-ident-tests (Files): Likewise.
9593         * modules/unictype/syntax-c-whitespace-tests (Files): Likewise.
9594         * modules/unictype/syntax-java-ident-tests (Files): Likewise.
9595         * modules/unictype/syntax-java-whitespace-tests (Files): Likewise.
9596         * modules/unilbrk/u8-possible-linebreaks-tests (Files): Likewise.
9597         * modules/unilbrk/u8-width-linebreaks-tests (Files): Likewise.
9598         * modules/unilbrk/u16-possible-linebreaks-tests (Files): Likewise.
9599         * modules/unilbrk/u16-width-linebreaks-tests (Files): Likewise.
9600         * modules/unilbrk/u32-possible-linebreaks-tests (Files): Likewise.
9601         * modules/unilbrk/u32-width-linebreaks-tests (Files): Likewise.
9602         * modules/unilbrk/ulc-possible-linebreaks-tests (Files): Likewise.
9603         * modules/unilbrk/ulc-width-linebreaks-tests (Files): Likewise.
9604         * modules/uninorm/canonical-decomposition-tests (Files): Likewise.
9605         * modules/uninorm/compat-decomposition-tests (Files): Likewise.
9606         * modules/uninorm/composition-tests (Files): Likewise.
9607         * modules/uninorm/decomposing-form-tests (Files): Likewise.
9608         * modules/uninorm/decomposition-tests (Files): Likewise.
9609         * modules/uninorm/filter-tests (Files): Likewise.
9610         * modules/uninorm/nfc-tests (Files): Likewise.
9611         * modules/uninorm/nfd-tests (Files): Likewise.
9612         * modules/uninorm/nfkc-tests (Files): Likewise.
9613         * modules/uninorm/nfkd-tests (Files): Likewise.
9614         * modules/uninorm/u8-normcmp-tests (Files): Likewise.
9615         * modules/uninorm/u8-normcoll-tests (Files): Likewise.
9616         * modules/uninorm/u16-normcmp-tests (Files): Likewise.
9617         * modules/uninorm/u16-normcoll-tests (Files): Likewise.
9618         * modules/uninorm/u32-normcmp-tests (Files): Likewise.
9619         * modules/uninorm/u32-normcoll-tests (Files): Likewise.
9620         * modules/unistdio/u8-asnprintf-tests (Files): Likewise.
9621         * modules/unistdio/u8-vasnprintf-tests (Files): Likewise.
9622         * modules/unistdio/u8-vasprintf-tests (Files): Likewise.
9623         * modules/unistdio/u8-vsnprintf-tests (Files): Likewise.
9624         * modules/unistdio/u8-vsprintf-tests (Files): Likewise.
9625         * modules/unistdio/u16-asnprintf-tests (Files): Likewise.
9626         * modules/unistdio/u16-vasnprintf-tests (Files): Likewise.
9627         * modules/unistdio/u16-vasprintf-tests (Files): Likewise.
9628         * modules/unistdio/u16-vsnprintf-tests (Files): Likewise.
9629         * modules/unistdio/u16-vsprintf-tests (Files): Likewise.
9630         * modules/unistdio/u32-asnprintf-tests (Files): Likewise.
9631         * modules/unistdio/u32-vasnprintf-tests (Files): Likewise.
9632         * modules/unistdio/u32-vasprintf-tests (Files): Likewise.
9633         * modules/unistdio/u32-vsnprintf-tests (Files): Likewise.
9634         * modules/unistdio/u32-vsprintf-tests (Files): Likewise.
9635         * modules/unistdio/ulc-asnprintf-tests (Files): Likewise.
9636         * modules/unistdio/ulc-vasnprintf-tests (Files): Likewise.
9637         * modules/unistdio/ulc-vasprintf-tests (Files): Likewise.
9638         * modules/unistdio/ulc-vsnprintf-tests (Files): Likewise.
9639         * modules/unistdio/ulc-vsprintf-tests (Files): Likewise.
9640         * modules/uniwbrk/u8-wordbreaks-tests (Files): Likewise.
9641         * modules/uniwbrk/u16-wordbreaks-tests (Files): Likewise.
9642         * modules/uniwbrk/u32-wordbreaks-tests (Files): Likewise.
9643         * modules/uniwbrk/ulc-wordbreaks-tests (Files): Likewise.
9644         * modules/uniwidth/u8-strwidth-tests (Files): Likewise.
9645         * modules/uniwidth/u8-width-tests (Files): Likewise.
9646         * modules/uniwidth/u16-strwidth-tests (Files): Likewise.
9647         * modules/uniwidth/u16-width-tests (Files): Likewise.
9648         * modules/uniwidth/u32-strwidth-tests (Files): Likewise.
9649         * modules/uniwidth/u32-width-tests (Files): Likewise.
9650         * modules/uniwidth/width-tests (Files): Likewise.
9651         * modules/unlink-tests (Files): Likewise.
9652         * modules/unsetenv-tests (Files): Likewise.
9653         * modules/usleep-tests (Files): Likewise.
9654         * modules/utimens-tests (Files): Likewise.
9655         * modules/utimensat-tests (Files): Likewise.
9656         * modules/vasnprintf-posix-tests (Files): Likewise.
9657         * modules/vasnprintf-tests (Files): Likewise.
9658         * modules/vasprintf-posix-tests (Files): Likewise.
9659         * modules/vasprintf-tests (Files): Likewise.
9660         * modules/vdprintf-posix-tests (Files): Likewise.
9661         * modules/vfprintf-posix-tests (Files): Likewise.
9662         * modules/vprintf-posix-tests (Files): Likewise.
9663         * modules/vsnprintf-posix-tests (Files): Likewise.
9664         * modules/vsnprintf-tests (Files): Likewise.
9665         * modules/vsprintf-posix-tests (Files): Likewise.
9666         * modules/wcrtomb-tests (Files): Likewise.
9667         * modules/wcsnrtombs-tests (Files): Likewise.
9668         * modules/wcsrtombs-tests (Files): Likewise.
9669         * modules/wctype-tests (Files): Likewise.
9670         * modules/wcwidth-tests (Files): Likewise.
9671         * modules/xmemdup0-tests (Files): Likewise.
9672         * modules/xprintf-posix-tests (Files): Likewise.
9673         * modules/xvasprintf-tests (Files): Likewise.
9674
9675 2009-12-24  Eric Blake  <ebb9@byu.net>
9676
9677         test-nanosleep: fix typo
9678         * tests/test-nanosleep.c (SIGNATURE_CHECK): Fix typo in previous
9679         patch.
9680         Reported by Bruno Haible.
9681
9682 2009-12-24  Bruno Haible  <bruno@clisp.org>
9683
9684         Reduce namespace pollution on glibc systems.
9685         * lib/inttypes.in.h: Don't include <stdint.h> on glibc systems.
9686         * lib/stdlib.in.h: Don't include <stdint.h>, <unistd.h> on glibc
9687         systems.
9688         * lib/unistd.in.h: Don't include <stdio.h>, <fcntl.h>, <stdlib.h>,
9689         <getopt.h> on glibc systems.
9690         * lib/fcntl.in.h: Don't include <sys/stat.h>, <unistd.h> on glibc
9691         systems.
9692         * lib/fcntl.c: Include <unistd.h> here instead.
9693
9694 2009-12-24  Bruno Haible  <bruno@clisp.org>
9695
9696         * lib/stdlib.in.h (includes): Fix typo in today's commit.
9697
9698 2009-12-24  Eric Blake  <ebb9@byu.net>
9699
9700         tests: add signature checks
9701         * tests/signature.h (SIGNATURE_CHECK): New file.
9702         * modules/atexit-tests (Files): Use it.
9703         * modules/btowc-tests (Files): Likewise.
9704         * modules/canonicalize-lgpl-tests (Files): Likewise.
9705         * modules/ceilf-tests (Files): Likewise.
9706         * modules/ceill-tests (Files): Likewise.
9707         * modules/chown-tests (Files): Likewise.
9708         * modules/dprintf-posix-tests (Files): Likewise.
9709         * modules/dup2-tests (Files): Likewise.
9710         * modules/dup3-tests (Files): Likewise.
9711         * modules/duplocale-tests (Files): Likewise.
9712         * modules/fchdir-tests (Files): Likewise.
9713         * modules/fcntl-tests (Files): Likewise.
9714         * modules/fdopendir-tests (Files): Likewise.
9715         * modules/fflush-tests (Files): Likewise.
9716         * modules/flock-tests (Files): Likewise.
9717         * modules/floorf-tests (Files): Likewise.
9718         * modules/floorl-tests (Files): Likewise.
9719         * modules/fnmatch-tests (Files): Likewise.
9720         * modules/fopen-tests (Files): Likewise.
9721         * modules/fprintf-posix-tests (Files): Likewise.
9722         * modules/freopen-tests (Files): Likewise.
9723         * modules/frexp-nolibm-tests (Files): Likewise.
9724         * modules/frexp-tests (Files): Likewise.
9725         * modules/frexpl-nolibm-tests (Files): Likewise.
9726         * modules/frexpl-tests (Files): Likewise.
9727         * modules/fseek-tests (Files): Likewise.
9728         * modules/fseeko-tests (Files): Likewise.
9729         * modules/fsync-tests (Files): Likewise.
9730         * modules/ftell-tests (Files): Likewise.
9731         * modules/ftello-tests (Files): Likewise.
9732         * modules/futimens-tests (Files): Likewise.
9733         * modules/getaddrinfo-tests (Files): Likewise.
9734         * modules/getcwd-tests (Files): Likewise.
9735         * modules/getdelim-tests (Files): Likewise.
9736         * modules/getdtablesize-tests (Files): Likewise.
9737         * modules/getgroups-tests (Files): Likewise.
9738         * modules/gethostname-tests (Files): Likewise.
9739         * modules/getline-tests (Files): Likewise.
9740         * modules/getopt-posix-tests (Files): Likewise.
9741         * modules/gettimeofday-tests (Files): Likewise.
9742         * modules/glob-tests (Files): Likewise.
9743         * modules/iconv-tests (Files): Likewise.
9744         * modules/inet_ntop-tests (Files): Likewise.
9745         * modules/inet_pton-tests (Files): Likewise.
9746         * modules/isblank-tests (Files): Likewise.
9747         * modules/lchown-tests (Files): Likewise.
9748         * modules/ldexpl-tests (Files): Likewise.
9749         * modules/link-tests (Files): Likewise.
9750         * modules/linkat-tests (Files): Likewise.
9751         * modules/lseek-tests (Files): Likewise.
9752         * modules/lstat-tests (Files): Likewise.
9753         * modules/mbrtowc-tests (Files): Likewise.
9754         * modules/mbsinit-tests (Files): Likewise.
9755         * modules/mbsnrtowcs-tests (Files): Likewise.
9756         * modules/mbsrtowcs-tests (Files): Likewise.
9757         * modules/memchr-tests (Files): Likewise.
9758         * modules/memcmp-tests (Files): Likewise.
9759         * modules/memmem-tests (Files): Likewise.
9760         * modules/memrchr-tests (Files): Likewise.
9761         * modules/mkdir-tests (Files): Likewise.
9762         * modules/mkfifo-tests (Files): Likewise.
9763         * modules/mkfifoat-tests (Files): Likewise.
9764         * modules/mknod-tests (Files): Likewise.
9765         * modules/nanosleep-tests (Files): Likewise.
9766         * modules/nl_langinfo-tests (Files): Likewise.
9767         * modules/obstack-printf-tests (Files): Likewise.
9768         * modules/open-tests (Files): Likewise.
9769         * modules/openat-tests (Files): Likewise.
9770         * modules/perror-tests (Files): Likewise.
9771         * modules/pipe2-tests (Files): Likewise.
9772         * modules/poll-tests (Files): Likewise.
9773         * modules/popen-tests (Files): Likewise.
9774         * modules/posix_spawn-tests (Files): Likewise.
9775         * modules/posix_spawnp-tests (Files): Likewise.
9776         * modules/pread-tests (Files): Likewise.
9777         * modules/printf-posix-tests (Files): Likewise.
9778         * modules/pty-tests (Files): Likewise.
9779         * modules/random_r-tests (Files): Likewise.
9780         * modules/rawmemchr-tests (Files): Likewise.
9781         * modules/readlink-tests (Files): Likewise.
9782         * modules/remove-tests (Files): Likewise.
9783         * modules/rename-tests (Files): Likewise.
9784         * modules/renameat-tests (Files): Likewise.
9785         * modules/rmdir-tests (Files): Likewise.
9786         * modules/round-tests (Files): Likewise.
9787         * modules/roundf-tests (Files): Likewise.
9788         * modules/roundl-tests (Files): Likewise.
9789         * modules/select-tests (Files): Likewise.
9790         * modules/setenv-tests (Files): Likewise.
9791         * modules/sigaction-tests (Files): Likewise.
9792         * modules/sleep-tests (Files): Likewise.
9793         * modules/snprintf-posix-tests (Files): Likewise.
9794         * modules/snprintf-tests (Files): Likewise.
9795         * modules/sprintf-posix-tests (Files): Likewise.
9796         * modules/stat-tests (Files): Likewise.
9797         * modules/strcasestr-tests (Files): Likewise.
9798         * modules/strchrnul-tests (Files): Likewise.
9799         * modules/strerror-tests (Files): Likewise.
9800         * modules/strsignal-tests (Files): Likewise.
9801         * modules/strstr-tests (Files): Likewise.
9802         * modules/strtod-tests (Files): Likewise.
9803         * modules/strverscmp-tests (Files): Likewise.
9804         * modules/symlink-tests (Files): Likewise.
9805         * modules/symlinkat-tests (Files): Likewise.
9806         * modules/times-tests (Files): Likewise.
9807         * modules/trunc-tests (Files): Likewise.
9808         * modules/truncf-tests (Files): Likewise.
9809         * modules/truncl-tests (Files): Likewise.
9810         * modules/tsearch-tests (Files): Likewise.
9811         * modules/uname-tests (Files): Likewise.
9812         * modules/unlink-tests (Files): Likewise.
9813         * modules/unsetenv-tests (Files): Likewise.
9814         * modules/usleep-tests (Files): Likewise.
9815         * modules/utimensat-tests (Files): Likewise.
9816         * modules/vasprintf-tests (Files): Likewise.
9817         * modules/vdprintf-posix-tests (Files): Likewise.
9818         * modules/vfprintf-posix-tests (Files): Likewise.
9819         * modules/vprintf-posix-tests (Files): Likewise.
9820         * modules/vsnprintf-posix-tests (Files): Likewise.
9821         * modules/vsnprintf-tests (Files): Likewise.
9822         * modules/vsprintf-posix-tests (Files): Likewise.
9823         * modules/wcrtomb-tests (Files): Likewise.
9824         * modules/wcsnrtombs-tests (Files): Likewise.
9825         * modules/wcsrtombs-tests (Files): Likewise.
9826         * modules/wcwidth-tests (Files): Likewise.
9827         * tests/test-isfinite.c (isfinite): Ensure macro declaration.
9828         * tests/test-isinf.c (isinf): Likewise.
9829         * tests/test-isnan.c (isnan): Likewise.
9830         * tests/test-signbit.c (signbit): Likewise.
9831         * tests/test-select.c (FD_CLR, FD_ISSET, FD_SET, FD_ZERO): Ensure
9832         declaration, either as macro or with correct signature.
9833         (select): Ensure function under test is declared with correct
9834         signature in correct header.
9835         * tests/test-atexit.c (atexit): Likewise.
9836         * tests/test-btowc.c (btowc): Likewise.
9837         * tests/test-canonicalize-lgpl.c (realpath)
9838         (canonicalize_file_name): Likewise.
9839         * tests/test-ceilf1.c (ceilf): Likewise.
9840         * tests/test-ceill.c (ceill): Likewise.
9841         * tests/test-chown.c (chown): Likewise.
9842         * tests/test-dprintf-posix.c (dprintf): Likewise.
9843         * tests/test-dup2.c (dup2): Likewise.
9844         * tests/test-dup3.c (dup3): Likewise.
9845         * tests/test-duplocale.c (duplocale): Likewise.
9846         * tests/test-fchdir.c (fchdir): Likewise.
9847         * tests/test-fchownat.c (fchownat): Likewise.
9848         * tests/test-fcntl.c (fcntl): Likewise.
9849         * tests/test-fdopendir.c (fdopendir): Likewise.
9850         * tests/test-fflush.c (fflush): Likewise.
9851         * tests/test-flock.c (flock): Likewise.
9852         * tests/test-floorf1.c (floorf): Likewise.
9853         * tests/test-floorl.c (floorl): Likewise.
9854         * tests/test-fnmatch.c (fnmatch): Likewise.
9855         * tests/test-fopen.c (fopen): Likewise.
9856         * tests/test-fprintf-posix.c (fprintf): Likewise.
9857         * tests/test-freopen.c (freopen): Likewise.
9858         * tests/test-frexp.c (frexp): Likewise.
9859         * tests/test-frexpl.c (frexpl): Likewise.
9860         * tests/test-fseek.c (fseek): Likewise.
9861         * tests/test-fseeko.c (fseeko): Likewise.
9862         * tests/test-fstatat.c (fstatat): Likewise.
9863         * tests/test-fsync.c (fsync): Likewise.
9864         * tests/test-ftell.c (ftell): Likewise.
9865         * tests/test-ftello.c (ftello): Likewise.
9866         * tests/test-futimens.c (futimens): Likewise.
9867         * tests/test-getaddrinfo.c (getaddrinfo, freeaddrinfo)
9868         (gai_strerror): Likewise.
9869         * tests/test-getcwd.c (getcwd): Likewise.
9870         * tests/test-getdelim.c (getdelim): Likewise.
9871         * tests/test-getdtablesize.c (getdtablesize): Likewise.
9872         * tests/test-getgroups.c (getgroups): Likewise.
9873         * tests/test-gethostname.c (gethostname): Likewise.
9874         * tests/test-getline.c (getline): Likewise.
9875         * tests/test-getopt.c (getopt, getopt_long, getopt_long_only):
9876         Likewise.
9877         * tests/test-gettimeofday.c (gettimeofday): Likewise.
9878         * tests/test-glob.c (glob, globfree): Likewise.
9879         * tests/test-iconv.c (iconv, iconv_open, iconv_close): Likewise.
9880         * tests/test-inet_ntop.c (inet_ntop): Likewise.
9881         * tests/test-inet_pton.c (inet_pton): Likewise.
9882         * tests/test-isblank.c (isblank): Likewise.
9883         * tests/test-lchown.c (lchown): Likewise.
9884         * tests/test-ldexpl.c (ldexpl): Likewise.
9885         * tests/test-link.c (link): Likewise.
9886         * tests/test-linkat.c (linkat): Likewise.
9887         * tests/test-lseek.c (lseek): Likewise.
9888         * tests/test-lstat.c (lstat): Likewise.
9889         * tests/test-mbrtowc.c (mbrtowc): Likewise.
9890         * tests/test-mbsinit.c (mbsinit): Likewise.
9891         * tests/test-mbsnrtowcs.c (mbsnrtowcs): Likewise.
9892         * tests/test-mbsrtowcs.c (mbsrtowcs): Likewise.
9893         * tests/test-memchr.c (memchr): Likewise.
9894         * tests/test-memcmp.c (memcmp): Likewise.
9895         * tests/test-memmem.c (memmem): Likewise.
9896         * tests/test-memrchr.c (memrchr): Likewise.
9897         * tests/test-mkdir.c (mkdir): Likewise.
9898         * tests/test-mkdirat.c (mkdirat): Likewise.
9899         * tests/test-mkfifo.c (mkfifo): Likewise.
9900         * tests/test-mkfifoat.c (mkfifoat, mknodat): Likewise.
9901         * tests/test-mknod.c (mknod): Likewise.
9902         * tests/test-nanosleep.c (nanosleep): Likewise.
9903         * tests/test-nl_langinfo.c (nl_langinfo): Likewise.
9904         * tests/test-obstack-printf.c (obstack_printf, obstack_vprintf):
9905         Likewise.
9906         * tests/test-open.c (open): Likewise.
9907         * tests/test-openat.c (openat): Likewise.
9908         * tests/test-perror.c (perror): Likewise.
9909         * tests/test-pipe2.c (pipe2): Likewise.
9910         * tests/test-poll.c (poll): Likewise.
9911         * tests/test-popen.c (popen, pclose): Likewise.
9912         * tests/test-posix_spawn1.c (posix_spawnp, posix_spawnattr_init)
9913         (posix_spawnattr_destroy, posix_spawnattr_setsigmask)
9914         (posix_spawnattr_setflags, posix_spawn_file_actions_init)
9915         (posix_spawn_file_actions_destroy)
9916         (posix_spawn_file_actions_addclose)
9917         (posix_spawn_file_actions_addopen)
9918         (posix_spawn_file_actions_adddup2): Likewise.
9919         * tests/test-posix_spawn3.c (posix_spawn): Likewise.
9920         * tests/test-pread.c (pread): Likewise.
9921         * tests/test-printf-posix.c (printf): Likewise.
9922         * tests/test-pty.c (openpty, forkpty): Likewise.
9923         * tests/test-random_r.c (srandom_r, initstate_r, setstate_r)
9924         (random_r): Likewise.
9925         * tests/test-rawmemchr.c (rawmemchr): Likewise.
9926         * tests/test-readlink.c (readlink): Likewise.
9927         * tests/test-remove.c (remove): Likewise.
9928         * tests/test-rename.c (rename): Likewise.
9929         * tests/test-renameat.c (renameat): Likewise.
9930         * tests/test-rmdir.c (rmdir): Likewise.
9931         * tests/test-round1.c (round): Likewise.
9932         * tests/test-roundf1.c (roundf): Likewise.
9933         * tests/test-roundl.c (roundl): Likewise.
9934         * tests/test-setenv.c (setenv): Likewise.
9935         * tests/test-sigaction.c (sigaction): Likewise.
9936         * tests/test-sleep.c (sleep): Likewise.
9937         * tests/test-snprintf.c (snprintf): Likewise.
9938         * tests/test-sprintf-posix.c (sprintf): Likewise.
9939         * tests/test-stat.c (stat): Likewise.
9940         * tests/test-stpncpy.c (stpncpy): Likewise.
9941         * tests/test-strcasestr.c (strcasestr): Likewise.
9942         * tests/test-strchrnul.c (strchrnul): Likewise.
9943         * tests/test-strerror.c (strerror): Likewise.
9944         * tests/test-strsignal.c (strsignal): Likewise.
9945         * tests/test-strstr.c (strstr): Likewise.
9946         * tests/test-strtod.c (strtod): Likewise.
9947         * tests/test-strverscmp.c (strverscmp): Likewise.
9948         * tests/test-symlink.c (symlink): Likewise.
9949         * tests/test-symlinkat.c (symlinkat, readlinkat): Likewise.
9950         * tests/test-times.c (times): Likewise.
9951         * tests/test-trunc1.c (trunc): Likewise.
9952         * tests/test-truncf1.c (truncf): Likewise.
9953         * tests/test-truncl.c (truncl): Likewise.
9954         * tests/test-tsearch.c (tdelete, tfind, tsearch, twalk):
9955         Likewise.
9956         * tests/test-uname.c (uname): Likewise.
9957         * tests/test-unlink.c (unlink): Likewise.
9958         * tests/test-unlinkat.c (unlinkat): Likewise.
9959         * tests/test-unsetenv.c (unsetenv): Likewise.
9960         * tests/test-usleep.c (usleep): Likewise.
9961         * tests/test-utimensat.c (utimensat): Likewise.
9962         * tests/test-vasprintf.c (asprintf, vasprintf): Likewise.
9963         * tests/test-vdprintf-posix.c (vdprintf): Likewise.
9964         * tests/test-vfprintf-posix.c (vfprintf): Likewise.
9965         * tests/test-vprintf-posix.c (vprintf): Likewise.
9966         * tests/test-vsnprintf.c (vsnprintf): Likewise.
9967         * tests/test-vsprintf-posix.c (vsprintf): Likewise.
9968         * tests/test-wcrtomb.c (wcrtomb): Likewise.
9969         * tests/test-wcsnrtombs.c (wcsnrtombs): Likewise.
9970         * tests/test-wcsrtombs.c (wcsrtombs): Likewise.
9971         * tests/test-wcwidth.c (wcwidth): Likewise.
9972
9973         build: pull in conditional headers during GNULIB_POSIXCHECK
9974         * lib/stdio.in.h (includes): Using GNULIB_POSIXCHECK also requires
9975         definitions from any conditionally-included headers.
9976         * lib/stdlib.in.h (includes): Likewise.
9977         * lib/unistd.in.h (includes): Likewise.
9978
9979 2009-12-24  Bruno Haible  <bruno@clisp.org>
9980
9981         * tests/test-argv-iter.c: Include header file being tested immediately
9982         after config.h.
9983         * tests/test-base64.c: Likewise.
9984         * tests/test-flock.c: Likewise.
9985         * tests/test-fsync.c: Likewise.
9986         * tests/test-getdate.c: Likewise.
9987         * tests/test-getndelim2.c: Likewise.
9988         * tests/test-isfinite.c: Likewise.
9989         * tests/test-isinf.c: Likewise.
9990         * tests/test-strerror.c: Likewise.
9991         * tests/test-strsignal.c: Likewise.
9992
9993 2009-12-23  Eric Blake  <ebb9@byu.net>
9994
9995         unistd: work around cygwin bug
9996         * lib/unistd.in.h (includes): Pick up headers needed for cygwin.
9997         * doc/posix-functions/unlinkat.texi (unlinkat): Document the bug.
9998         * doc/posix-functions/symlinkat.texi (symlinkat): Likewise.
9999
10000 2009-12-23  Bruno Haible  <bruno@clisp.org>
10001
10002         localename: More tests.
10003         * tests/test-localename.c (SIZEOF): New macro.
10004         (categories): New variable.
10005         (test_locale_name, test_locale_name_posix, test_locale_name_environ,
10006         test_locale_name_default): Add test w.r.t. thread locale.
10007         (test_locale_name_thread): New function.
10008         (main): Invoke it.
10009
10010         localename: Make aware of thread locale.
10011         * lib/localename.h (gl_locale_name_thread): New declaration.
10012         (gl_locale_name, gl_locale_name_posix, gl_locale_name_default): Clarify
10013         behaviour with respect to thread locale.
10014         * lib/localename.c: Include <limits.h>, <stddef.h>, <xlocale.h>,
10015         <langinfo.h>, glthread/lock.h.
10016         (SIZE_BITS): New macro.
10017         (string_hash): New function.
10018         (struct hash_node): New type.
10019         (HASH_TABLE_SIZE): New macro.
10020         (struniq_hash_table, struniq_lock): New variables.
10021         (struniq): New function.
10022         (gl_locale_name_thread): New function.
10023         (gl_locale_name): Invoke it.
10024         * m4/localename.m4 (gl_LOCALENAME): Test for uselocale function.
10025         * modules/localename (Depends-on): Add lock.
10026         Reported by Mike Gran <spk121@yahoo.com>.
10027
10028 2009-12-23  Eric Blake  <ebb9@byu.net>
10029
10030         va-args: new module
10031         * modules/va-args: New file.
10032         * m4/va-args.m4 (gl_VA_ARGS): Likewise.
10033         * MODULES.html.sh (Core language properties): Mention it.
10034
10035         gnulib-common: prefer _GL_UNUSED over _UNUSED_PARAMETER_
10036         * m4/gnulib-common.m4 (gl_COMMON): Create a more-appropriately
10037         named alias for __attribute__((__unused__)).
10038         * lib/chown.c: Update client.
10039         * lib/fchmodat.c: Likewise.
10040         * lib/fts.c: Likewise.
10041         * lib/getdate.y: Likewise.
10042         * lib/getgroups.c: Likewise.
10043         * lib/getopt.c: Likewise.
10044         * lib/getugroups.c: Likewise.
10045         * lib/mkdir.c: Likewise.
10046         * lib/mkfifo.c: Likewise.
10047         * lib/mkfifoat.c: Likewise.
10048         * lib/mknod.c: Likewise.
10049         * lib/mknodat.c: Likewise.
10050         * lib/readlink.c: Likewise.
10051         * lib/se-context.in.h: Likewise.
10052         * lib/se-selinux.in.h: Likewise.
10053         * lib/sockets.c: Likewise.
10054         * lib/symlink.c: Likewise.
10055         * lib/symlinkat.c: Likewise.
10056         * lib/unicodeio.c: Likewise.
10057         * lib/unistr.h: Likewise.
10058         * tests/test-areadlink.c: Likewise.
10059         * tests/test-areadlinkat.c: Likewise.
10060         * tests/test-filenamecat.c: Likewise.
10061         * tests/test-fseeko.c: Likewise.
10062         * tests/test-ftello.c: Likewise.
10063         * tests/test-getdate.c: Likewise.
10064         * tests/test-getgroups.c: Likewise.
10065         * tests/test-gethostname.c: Likewise.
10066         * tests/test-quotearg.c: Likewise.
10067         * tests/test-version-etc.c: Likewise.
10068         * tests/test-xalloc-die.c: Likewise.
10069         * tests/test-xfprintf-posix.c: Likewise.
10070         * tests/test-xprintf-posix.c: Likewise.
10071         * tests/test-xvasprintf.c: Likewise.
10072
10073         tests: avoid compiler warnings
10074         * tests/test-fcntl.c (main): Delete unused parameters.
10075         * tests/test-freopen-safer.c (main): Likewise.
10076         * tests/test-xalloc-die.c (main): Mark unused parameters.
10077         * tests/test-fseeko.c (main): Likewise.
10078         * tests/test-ftello.c (main): Likewise.
10079         * tests/test-nanosleep.c (main): Avoid declaration warning.
10080         * tests/test-sleep.c (main): Likewise.
10081         * tests/test-unsetenv.c (main): Silence warning about string
10082         literal.
10083         * m4/setenv.m4 (gl_FUNC_UNSETENV): Likewise.
10084
10085 2009-12-23  Bruno Haible  <bruno@clisp.org>
10086
10087         * tests/test-localename.c (test_locale_name): New function, extracted
10088         from main. Also test mixed situations.
10089         (test_locale_name_posix, test_locale_name_environ,
10090         test_locale_name_default): New functions.
10091         (main): Invoke them all.
10092         * modules/localename-tests (configure.ac): Test for newlocale.
10093
10094 2009-12-23  Bruno Haible  <bruno@clisp.org>
10095
10096         unistd: Ensure getcwd gets declared before being overridden.
10097         * lib/unistd.in.h: Conditionally include <io.h>.
10098
10099 2009-12-22  Bruno Haible  <bruno@clisp.org>
10100
10101         wchar: Diagnose broken combination of glibc and gcc versions and flags.
10102         * m4/wchar.m4 (gl_WCHAR_H_INLINE_OK): New macro.
10103         (gl_WCHAR_H): Invoke it.
10104         * m4/btowc.m4 (gl_FUNC_BTOWC): Require it.
10105         * doc/posix-headers/wchar.texi: Mention the interoperability problem.
10106         Reported by Karl Berry <karl@freefriends.org>.
10107
10108 2009-12-22  Eric Blake  <ebb9@byu.net>
10109
10110         math, unistd: avoid redundant includes
10111         * lib/math.in.h (isnan): No need to re-include <math.h>.
10112         * lib/unistd.in.h (getcwd): Likewise, for <stdlib.h>.
10113
10114         getsubopt: work around cygwin bug
10115         * lib/stdlib.in.h (includes): Move unistd inclusion sooner, to
10116         avoid conflicting with system getsubopt.
10117         * doc/posix-functions/getsubopt.texi (getsubopt): Document the
10118         bug.
10119
10120         getopt: synchronize from glibc
10121         * lib/getopt.c (_getopt_initialize, _getopt_internal_r): Swap
10122         parameter order.  Adjust all callers.
10123         (_getopt_internal_r, main): Adjust quoting in error messages.
10124         Drop considerations for outdated POSIX 1003.2 error message.
10125         * lib/getopt1.c (_getopt_long_r, _getopt_long_only_r): Adjust
10126         callers.
10127         * lib/getopt_int.h (_getopt_internal_r): Adjust prototype.
10128
10129         test-getopt: test stderr behavior
10130         * modules/getopt-posix-tests (Depends-on): Add dup2.
10131         * tests/test-getopt.c (ASSERT): Avoid stderr.
10132         (main): Move stderr to a temporary file.
10133         * tests/test-getopt.h (getopt_loop): No longer manipulate opterr.
10134         Instead, add parameter to inform caller if output occurred.
10135         (test_getopt): Adjust all existing tests to expect silence, and
10136         add new tests of leading ":".
10137         * doc/glibc-functions/getopt_long.texi (getopt_long): Document
10138         glibc shortcomings with leading "-:" or "+:" in optstring.
10139         * doc/glibc-functions/getopt_long_only.texi (getopt_long_only):
10140         Likewise.
10141         * doc/posix-functions/getopt.texi (getopt): Likewise.
10142
10143         test-getopt: enhance test
10144         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Require that getopt_long
10145         supports optind=0.
10146         * tests/test-getopt.c (OPTIND_MIN): Move...
10147         * tests/test-getopt.h (OPTIND_MIN): ...here.
10148         * tests/test-getopt_long.h (test_getopt_long): Add more coverage.
10149         Require that optind=0 works, since modern BSD supports it in
10150         addition to optreset, and since coreutils expects it.
10151         (test_getopt_long_only): New test.
10152         * doc/glibc-functions/getopt_long.texi (getopt_long): Document
10153         glibc shortcomings with 'W;', and enforcement of optind=0.
10154         * doc/glibc-functions/getopt_long_only.texi (getopt_long_only):
10155         Likewise.
10156
10157 2009-12-21  Bruno Haible  <bruno@clisp.org>
10158
10159         localename: Improvements for MacOS X and Cygwin.
10160         * lib/localename.h (gl_locale_name_environ): New declaration.
10161         * lib/localename.c (gl_locale_name_environ): New function, extracted from
10162         gl_locale_name_posix. Ignore dummy LANG values on MacOS X and Cygwin.
10163         (gl_locale_name_posix): Invoke it.
10164         (gl_locale_name_default): Add comments. Use Windows native API also on
10165         Cygwin.
10166
10167 2009-12-21  Bruno Haible  <bruno@clisp.org>
10168
10169         Update list of Win32 locale ids.
10170         * lib/localename.c (LANG_ROMANSH): Renamed from LANG_RHAETO_ROMANCE.
10171         (LANG_SAMI): Renamed from LANG_SAAMI.
10172         (LANG_BASHKIR, LANG_LUXEMBOURGISH, LANG_GREENLANDIC,
10173         LANG_MAPUDUNGUN, LANG_MOHAWK, LANG_BRETON, LANG_OCCITAN, LANG_CORSICAN,
10174         LANG_ALSATIAN, LANG_YAKUT, LANG_KICHE, LANG_KINYARWANDA, LANG_WOLOF,
10175         LANG_DARI, LANG_SCOTTISH_GAELIC): New macros.
10176         (SUBLANG_AFRIKAANS_SOUTH_AFRICA, SUBLANG_ALBANIAN_ALBANIA,
10177         SUBLANG_ALSATIAN_FRANCE, SUBLANG_AMHARIC_ETHIOPIA,
10178         SUBLANG_ARMENIAN_ARMENIA, SUBLANG_ASSAMESE_INDIA,
10179         SUBLANG_BASHKIR_RUSSIA, SUBLANG_BASQUE_BASQUE,
10180         SUBLANG_BELARUSIAN_BELARUS, SUBLANG_BRETON_FRANCE,
10181         SUBLANG_BULGARIAN_BULGARIA, SUBLANG_CAMBODIAN_CAMBODIA,
10182         SUBLANG_CATALAN_SPAIN, SUBLANG_CORSICAN_FRANCE,
10183         SUBLANG_CZECH_CZECH_REPUBLIC, SUBLANG_DANISH_DENMARK,
10184         SUBLANG_DARI_AFGHANISTAN, SUBLANG_DIVEHI_MALDIVES,
10185         SUBLANG_DUTCH_SURINAM, SUBLANG_ESTONIAN_ESTONIA,
10186         SUBLANG_FAEROESE_FAROE_ISLANDS, SUBLANG_FARSI_IRAN,
10187         SUBLANG_FINNISH_FINLAND, SUBLANG_FRISIAN_NETHERLANDS,
10188         SUBLANG_GALICIAN_SPAIN, SUBLANG_GEORGIAN_GEORGIA,
10189         SUBLANG_GREEK_GREECE, SUBLANG_GREENLANDIC_GREENLAND,
10190         SUBLANG_GUJARATI_INDIA, SUBLANG_HAUSA_NIGERIA_LATIN,
10191         SUBLANG_HEBREW_ISRAEL, SUBLANG_HINDI_INDIA, SUBLANG_HUNGARIAN_HUNGARY,
10192         SUBLANG_ICELANDIC_ICELAND, SUBLANG_IGBO_NIGERIA,
10193         SUBLANG_INDONESIAN_INDONESIA, SUBLANG_INUKTITUT_CANADA,
10194         SUBLANG_INUKTITUT_CANADA_LATIN, SUBLANG_IRISH_IRELAND,
10195         SUBLANG_JAPANESE_JAPAN, SUBLANG_KANNADA_INDIA,
10196         SUBLANG_KAZAK_KAZAKHSTAN, SUBLANG_KICHE_GUATEMALA,
10197         SUBLANG_KINYARWANDA_RWANDA, SUBLANG_KONKANI_INDIA,
10198         SUBLANG_KYRGYZ_KYRGYZSTAN, SUBLANG_LAO_LAOS, SUBLANG_LATVIAN_LATVIA,
10199         SUBLANG_LITHUANIAN_LITHUANIA, SUBLANG_LOWER_SORBIAN_GERMANY,
10200         SUBLANG_LUXEMBOURGISH_LUXEMBOURG, SUBLANG_MACEDONIAN_MACEDONIA,
10201         SUBLANG_MALAYALAM_INDIA, SUBLANG_MALTESE_MALTA,
10202         SUBLANG_MAORI_NEW_ZEALAND, SUBLANG_MAPUDUNGUN_CHILE,
10203         SUBLANG_MARATHI_INDIA, SUBLANG_MOHAWK_CANADA, SUBLANG_NEPALI_NEPAL,
10204         SUBLANG_OCCITAN_FRANCE, SUBLANG_ORIYA_INDIA,
10205         SUBLANG_PASHTO_AFGHANISTAN, SUBLANG_POLISH_POLAND,
10206         SUBLANG_ROMANSH_SWITZERLAND, SUBLANG_SAMI_NORTHERN_NORWAY,
10207         SUBLANG_SAMI_NORTHERN_SWEDEN, SUBLANG_SAMI_NORTHERN_FINLAND,
10208         SUBLANG_SAMI_LULE_NORWAY, SUBLANG_SAMI_LULE_SWEDEN,
10209         SUBLANG_SAMI_SOUTHERN_NORWAY, SUBLANG_SAMI_SOUTHERN_SWEDEN,
10210         SUBLANG_SAMI_SKOLT_FINLAND, SUBLANG_SAMI_INARI_FINLAND,
10211         SUBLANG_SANSKRIT_INDIA, SUBLANG_SINHALESE_SRI_LANKA,
10212         SUBLANG_SLOVAK_SLOVAKIA, SUBLANG_SLOVENIAN_SLOVENIA,
10213         SUBLANG_SOTHO_SOUTH_AFRICA, SUBLANG_SWAHILI_KENYA,
10214         SUBLANG_SWEDISH_SWEDEN, SUBLANG_SYRIAC_SYRIA,
10215         SUBLANG_TAGALOG_PHILIPPINES, SUBLANG_TAJIK_TAJIKISTAN,
10216         SUBLANG_TAMIL_INDIA, SUBLANG_TATAR_RUSSIA, SUBLANG_TELUGU_INDIA,
10217         SUBLANG_THAI_THAILAND, SUBLANG_TSWANA_SOUTH_AFRICA,
10218         SUBLANG_TURKISH_TURKEY, SUBLANG_TURKMEN_TURKMENISTAN,
10219         SUBLANG_UKRAINIAN_UKRAINE, SUBLANG_UPPER_SORBIAN_GERMANY,
10220         SUBLANG_VIETNAMESE_VIETNAM, SUBLANG_WELSH_UNITED_KINGDOM,
10221         SUBLANG_WOLOF_SENEGAL, SUBLANG_XHOSA_SOUTH_AFRICA,
10222         SUBLANG_YAKUT_RUSSIA, SUBLANG_YI_PRC, SUBLANG_YORUBA_NIGERIA,
10223         SUBLANG_ZULU_SOUTH_AFRICA): New macros.
10224         (gl_locale_name_from_win32_LANGID): Handle also the territory neutral
10225         locale ids. Add support for Alsatian, Bashkir, Breton, Corsican, Dari,
10226         Greenlandic, K'iche', Kinyarwanda, Luxembourgish, Mapudungun, Mohawk,
10227         Occitan, Scottish Gaelic, Wolof, Yakut. Change language code for Yi.
10228         Add more languages and countries for Sami, Sorbian. Add more countries
10229         for Serbian, Dutch. Add more scripts for Inuktitut. Be more precise
10230         for Pashto. Change country for Syriac, Tswana.
10231
10232 2009-12-21  Eric Blake  <ebb9@byu.net>
10233
10234         test-utimens: avoid spurious failure
10235         * tests/test-chown.h (nap): Factor...
10236         * tests/nap.h: ...into new file.
10237         * tests/test-lchown.h (nap): Avoid duplication.
10238         * tests/test-utimens-common.h (nap): Use shared implementation,
10239         necessary on file systems with 1-second resolution.
10240         * modules/chown-tests (Files): Include new file.
10241         * modules/fdutimensat-tests (Files): Likewise.
10242         * modules/futimens-tests (Files): Likewise.
10243         * modules/lchown-tests (Files): Likewise.
10244         * modules/openat-tests (Files): Likewise.
10245         * modules/utimens-tests (Files): Likewise.
10246         * modules/utimensat-tests (Files): Likewise.
10247
10248 2009-12-19  Eric Blake  <ebb9@byu.net>
10249
10250         futimens, utimensat: work around Linux bug
10251         * m4/futimens.m4 (gl_FUNC_FUTIMENS): Detect ctime bug.
10252         * m4/utimensat.m4 (gl_FUNC_UTIMENSAT): Likewise.
10253         * lib/utimensat.c (rpl_utimensat): Work around it.
10254         * lib/futimens.c (rpl_futimens): Adjust comment.
10255
10256         utimens: work around Linux ctime bug
10257         * lib/utimens.c (detect_ctime_bug): New helper function.
10258         (update_timespec): Differentiate between workaround needed for
10259         this bug vs. what is needed for systems that lack utimensat.
10260         (fdutimens, lutimens): Work around bug.
10261
10262         utimens: check for ctime update
10263         * tests/test-utimens-common.h (check_ctime): Define.
10264         * tests/test-utimens.h (test_utimens): Expose the Linux bug.
10265         * tests/test-futimens.h (test_futimens): Likewise.
10266         * tests/test-lutimens.h (test_lutimens): Likewise.
10267         * doc/posix-functions/futimens.texi (futimens): Document the bug.
10268         * doc/posix-functions/utimensat.texi (utimensat): Likewise.
10269
10270 2009-12-19  Bruno Haible  <bruno@clisp.org>
10271
10272         dprintf-posix: Check against memory leak fixed on 2009-12-15.
10273         * tests/test-dprintf-posix2.sh: New file.
10274         * tests/test-dprintf-posix2.c: New file.
10275         * modules/dprintf-posix-tests (Files): Add them.
10276         (configure.ac): Check for getrlimit and setrlimit.
10277         (Makefile.am): Augment TESTS and CHECK_PROGRAMS.
10278
10279 2009-12-19  Bruno Haible  <bruno@clisp.org>
10280
10281         fprintf-posix: Check against memory leak fixed on 2009-12-15.
10282         * tests/test-fprintf-posix3.sh: New file.
10283         * tests/test-fprintf-posix3.c: New file.
10284         * modules/fprintf-posix-tests (Files): Add them.
10285         (Makefile.am): Augment TESTS and CHECK_PROGRAMS.
10286
10287 2009-12-19  Eric Blake  <ebb9@byu.net>
10288
10289         dirfd: fix prototype
10290         * lib/dirent.in.h (dirfd): Argument is not const, per POSIX.
10291         * lib/dirfd.c (dirfd): Likewise.
10292
10293         canonicalize: reduce memory usage
10294         * lib/canonicalize.c (canonicalize_filename_mode): Trim the
10295         allocation to size.
10296         Reported by Solar Designer <solar@openwall.com>.
10297
10298 2009-12-19  Bruno Haible  <bruno@clisp.org>
10299
10300         New module attribute 'Applicability'.
10301         * modules/TEMPLATE-EXTENDED: New field 'Applicability'.
10302         * gnulib-tool: New option --extract-applicability.
10303         (func_usage): Document it.
10304         (sed_extract_prog): Recognize it.
10305         (func_get_applicability): New function.
10306         (func_import): Generalize handling of 'link-warning' module.
10307         * modules/link-warning (Applicability): New section.
10308         * modules/arg-nonnull (Applicability): New section.
10309         Repoted by Simon Josefsson <simon@josefsson.org>.
10310
10311 2009-12-19  Bruno Haible  <bruno@clisp.org>
10312
10313         fflush: tweak
10314         * lib/fflush.c (update_fpos_cache): Don't use fpos_t on Cygwin.
10315         * lib/fseeko.c (rpl_fseeko): Likewise.
10316
10317 2009-12-16  José E. Marchesi  <jemarch@gnu.org>  (tiny change)
10318
10319         * lib/gl_list.h: Fix typo in comment.
10320
10321 2009-12-16  Eric Blake  <ebb9@byu.net>
10322
10323         fcntl: use to simplify other modules
10324         * modules/cloexec (Depends-on): Add fcntl.
10325         * modules/fchdir (Depends-on): Likewise.
10326         * modules/fd-safer-flag (Depends-on): Likewise.
10327         * modules/unistd-safer (Depends-on): Likewise.
10328         * modules/dup3 (configure.ac): Set module indicator.
10329         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Replace fcntl if fchdir is
10330         missing.
10331         * lib/fchdir.c (_gl_register_dup): Fix comment.
10332         * lib/cloexec.c (dup_cloexec): Simplify, by relying on fcntl.
10333         * lib/dup-safer.c (dup_safer): Likewise.
10334         * lib/dup-safer-flag.c (dup_safer_flag): Likewise.
10335         * lib/dup3.c (dup3): Likewise.
10336         * tests/test-fchdir.c (main): Enhance test.
10337         Fixes a dup_cloexec bug reported by OndÅ™ej Vašík.
10338
10339         fcntl: port portions of fcntl to mingw
10340         * m4/fcntl.m4 (gl_FUNC_FCNTL): Also build fcntl.c on mingw.
10341         * lib/fcntl.c (fcntl) <F_DUPFD, F_DUPFD_CLOEXEC, F_GETFD>: Provide
10342         replacement for mingw.
10343         * modules/fcntl (Description): Update.
10344         (Depends-on): Add dup2.
10345         * m4/fcntl_h.m4 (gl_FCNTL_H_DEFAULTS): Add witness.
10346         * modules/fcntl-h (Makefile.am): Substitute it.
10347         * lib/fcntl.in.h (fcntl): Update declaration.
10348         (F_DUPFD, F_GETFD): New macros, when needed.
10349         * doc/posix-headers/fcntl.texi (fcntl.h): Update documentation.
10350         * doc/posix-functions/fcntl.texi (fcntl): Likewise.
10351         * tests/test-fcntl.c (check_flags, main): Enhance test for items
10352         we now guarantee.
10353
10354         fcntl: work around cygwin bug in F_DUPFD
10355         * m4/fcntl.m4 (gl_REPLACE_FCNTL): New macro.
10356         (gl_FUNC_FCNTL): Use it.  Test for F_DUPFD bug.
10357         * lib/fcntl.c (rpl_fcntl) <F_DUPFD>: Work around it.
10358         <F_DUPFD_CLOEXEC>: Reduce calls to _gl_register_dup.
10359         * doc/posix-functions/fcntl.texi (fcntl): Document it.
10360
10361         fcntl: support F_DUPFD_CLOEXEC on systems with fcntl
10362         * modules/fcntl (Files): List new files.
10363         (configure.ac): Run a test.
10364         * m4/fcntl.m4 (gl_FUNC_FCNTL): New file.
10365         * lib/fcntl.c (rpl_fcntl): Likewise.
10366         * m4/fcntl_h.m4 (gl_FCNTL_H_DEFAULTS): Add witness defaults.
10367         (gl_FCNTL_H): Always replace fcntl.h.
10368         * modules/fcntl-h (Makefile.am): Substitute witnesses.
10369         * lib/fcntl.in.h (fcntl): Declare replacement.
10370         (F_DUPFD_CLOEXEC, GNULIB_defined_F_DUPFD_CLOEXEC): New macro when
10371         needed, plus a witness.
10372         * doc/posix-functions/fcntl.texi (fcntl): Document this.
10373         * doc/posix-headers/fcntl.texi (fcntl.h): Likewise.
10374         * tests/test-fcntl.c: New file.
10375         * modules/fcntl-tests: Likewise.
10376
10377         binary-io: avoid potential compilation warning
10378         * lib/binary-io.h [__DJGPP__]: Avoid null preprocessor
10379         directives.
10380
10381         fflush: avoid compilation error on NetBSD
10382         * lib/fflush.c (update_fpos_cache): Use a union to safely convert
10383         between off_t and fpos_t, since the latter is sometimes a struct.
10384         * lib/fseeko.c (rpl_fseeko): Likewise.
10385         Reported by Alexander Nasonov <alnsn@yandex.ru>.
10386
10387 2009-12-15  Eric Blake  <ebb9@byu.net>
10388
10389         fcntl-h, stdio, sys_ioctl: fix declarations
10390         * lib/stdio.in.h (dprintf): Use of link warning on a variadic
10391         function must not take arguments.
10392         * lib/sys_ioctl.in.h (ioctl): Likewise.
10393         * lib/fcntl.in.h (openat): Likewise.  Declare extern.
10394         (open): Add a link warning.
10395
10396 2009-12-15  Jim Meyering  <meyering@redhat.com>
10397
10398         areadlink, areadlink-with-size: relax license to LGPLv2+
10399         * modules/areadlink (License): Relax to LGPLv2+.
10400         * modules/areadlink-with-size (License): Likewise.
10401
10402 2009-12-15  Joel E. Denny  <jdenny@clemson.edu>
10403             Bruno Haible  <bruno@clisp.org>
10404
10405         *printf: Fix memory leak.
10406         * lib/fprintf.c (fprintf): Free memory allocated by vasnprintf.
10407         * lib/vfprintf.c (vfprintf): Likewise.
10408         * lib/dprintf.c (dprintf): Likewise.
10409         * lib/vdprintf.c (vdprintf): Likewise.
10410
10411 2009-12-14  Eric Blake  <ebb9@byu.net>
10412
10413         accept4: adjust module dependencies
10414         * modules/accept4 (Depends-on): Use fcntl-h, not fcntl.
10415
10416         utimens: one more try at avoiding compiler warning
10417         * lib/utimens.c (lutimens): Lower scope of result.
10418
10419 2009-12-13  Bruno Haible  <bruno@clisp.org>
10420
10421         Move the malloc checking from module 'list' to new module 'xlist'.
10422         * modules/xlist: New file.
10423         * lib/gl_xlist.h: New file.
10424         * lib/gl_xlist.c: New file.
10425         * lib/gl_list.h (gl_list_create_empty, gl_list_create,
10426         gl_list_node_set_value, gl_list_set_at, gl_list_add_first,
10427         gl_list_add_last, gl_list_add_before, gl_list_add_after,
10428         gl_list_nx_add_at, gl_sortedlist_add): Disable declarations.
10429         (gl_list_nx_create_empty, gl_list_nx_create, gl_list_node_nx_set_value,
10430         gl_list_nx_set_at, gl_list_nx_add_first, gl_list_nx_add_last,
10431         gl_list_nx_add_before, gl_list_nx_add_after, gl_list_nx_add_at,
10432         gl_sortedlist_nx_add): New declarations.
10433         (struct gl_list_implementation): Rename and change methods accordingly.
10434         (gl_list_nx_create_empty): Renamed from gl_list_create_empty.
10435         (gl_list_nx_create): Renamed from gl_list_create.
10436         (gl_list_node_nx_set_value): Renamed from gl_list_node_set_value.
10437         (gl_list_nx_set_at): Renamed from gl_list_set_at.
10438         (gl_list_nx_add_first): Renamed from gl_list_add_first.
10439         (gl_list_nx_add_last): Renamed from gl_list_add_last.
10440         (gl_list_nx_add_before): Renamed from gl_list_add_before.
10441         (gl_list_nx_add_after): Renamed from gl_list_add_after.
10442         (gl_list_nx_add_at): Renamed from gl_list_add_at.
10443         (gl_sortedlist_nx_add): Renamed from gl_sortedlist_add.
10444         * lib/gl_list.c (gl_list_nx_create_empty): Renamed from
10445         gl_list_create_empty.
10446         (gl_list_nx_create): Renamed from gl_list_create.
10447         (gl_list_node_nx_set_value): Renamed from gl_list_node_set_value.
10448         (gl_list_nx_set_at): Renamed from gl_list_set_at.
10449         (gl_list_nx_add_first): Renamed from gl_list_add_first.
10450         (gl_list_nx_add_last): Renamed from gl_list_add_last.
10451         (gl_list_nx_add_before): Renamed from gl_list_add_before.
10452         (gl_list_nx_add_after): Renamed from gl_list_add_after.
10453         (gl_list_nx_add_at): Renamed from gl_list_add_at.
10454         (gl_sortedlist_nx_add): Renamed from gl_sortedlist_add.
10455         * lib/gl_array_list.c: Don't include xalloc.h.
10456         (gl_array_nx_create_empty): Renamed from gl_array_create_empty. Return
10457         NULL upon out-of-memory.
10458         (gl_array_nx_create): Renamed from gl_array_create. Return NULL upon
10459         out-of-memory.
10460         (gl_array_node_nx_set_value): Renamed from gl_array_node_set_value.
10461         Change return type to 'int'.
10462         (gl_array_nx_set_at): Renamed from gl_array_set_at.
10463         (grow): Change return type to 'int'. Return -1 upon out-of-memory.
10464         (gl_array_nx_add_first): Renamed from gl_array_add_first. Return NULL
10465         upon out-of-memory.
10466         (gl_array_nx_add_last): Renamed from gl_array_add_last. Return NULL
10467         upon out-of-memory.
10468         (gl_array_nx_add_before): Renamed from gl_array_add_before. Return NULL
10469         upon out-of-memory.
10470         (gl_array_nx_add_after): Renamed from gl_array_add_after. Return NULL
10471         upon out-of-memory.
10472         (gl_array_nx_add_at): Renamed from gl_array_add_at. Return NULL upon
10473         out-of-memory.
10474         (gl_array_sortedlist_nx_add): Renamed from gl_array_sortedlist_add.
10475         Update.
10476         (gl_array_list_implementation): Update.
10477         * lib/gl_carray_list.c: Don't include xalloc.h.
10478         (gl_carray_nx_create_empty): Renamed from gl_carray_create_empty.
10479         Return NULL upon out-of-memory.
10480         (gl_carray_nx_create): Renamed from gl_carray_create. Return NULL upon
10481         out-of-memory.
10482         (gl_carray_node_nx_set_value): Renamed from gl_carray_node_set_value.
10483         Change return type to 'int'.
10484         (gl_carray_nx_set_at): Renamed from gl_carray_set_at.
10485         (grow): Change return type to 'int'. Return -1 upon out-of-memory.
10486         (gl_carray_nx_add_first): Renamed from gl_carray_add_first. Return NULL
10487         upon out-of-memory.
10488         (gl_carray_nx_add_last): Renamed from gl_carray_add_last. Return NULL
10489         upon out-of-memory.
10490         (gl_carray_nx_add_at): Renamed from gl_carray_add_at. Return NULL upon
10491         out-of-memory.
10492         (gl_carray_nx_add_before): Renamed from gl_carray_add_before. Update.
10493         (gl_carray_nx_add_after): Renamed from gl_carray_add_after. Update.
10494         (gl_carray_sortedlist_nx_add): Renamed from gl_carray_sortedlist_add.
10495         Update.
10496         (gl_carray_list_implementation): Update.
10497         * lib/gl_anyhash_list2.h (hash_resize): Do nothing upon out-of-memory.
10498         * lib/gl_anylinked_list2.h (gl_linked_nx_create_empty): Renamed from
10499         gl_linked_create_empty. Return NULL upon out-of-memory.
10500         (gl_linked_nx_create): Renamed from gl_linked_create. Return NULL upon
10501         out-of-memory.
10502         (gl_linked_node_nx_set_value): Renamed from gl_linked_node_set_value.
10503         Change return type to 'int'. Return -1 upon out-of-memory.
10504         (gl_linked_nx_set_at): Renamed from gl_linked_set_at. Return NULL upon
10505         out-of-memory.
10506         (gl_linked_nx_add_first): Renamed from gl_linked_add_first. Return NULL
10507         upon out-of-memory.
10508         (gl_linked_nx_add_last): Renamed from gl_linked_add_last. Return NULL
10509         upon out-of-memory.
10510         (gl_linked_nx_add_before): Renamed from gl_linked_add_before. Return
10511         NULL upon out-of-memory.
10512         (gl_linked_nx_add_after): Renamed from gl_linked_add_after. Return NULL
10513         upon out-of-memory.
10514         (gl_linked_nx_add_at): Renamed from gl_linked_add_at. Return NULL upon
10515         out-of-memory.
10516         (gl_linked_sortedlist_nx_add): Renamed from gl_linked_sortedlist_add.
10517         Update.
10518         * lib/gl_linked_list.c: Don't include xalloc.h.
10519         (gl_linked_list_implementation): Update.
10520         * lib/gl_linkedhash_list.c: Don't include xalloc.h.
10521         (add_to_bucket): Change return type to 'int'.
10522         (gl_linkedhash_list_implementation): Update.
10523         * lib/gl_anytree_list1.h (free_subtree): New function.
10524         * lib/gl_anytree_list2.h (gl_tree_nx_create_empty): Renamed from
10525         gl_tree_create_empty. Return NULL upon out-of-memory.
10526         (gl_tree_node_nx_set_value): Renamed from gl_tree_node_set_value.
10527         Change return type to 'int'. Return -1 upon out-of-memory.
10528         (gl_tree_nx_set_at): Renamed from gl_tree_set_at. Return NULL upon
10529         out-of-memory.
10530         (gl_tree_nx_add_at): Renamed from gl_tree_add_at. Update.
10531         (gl_tree_remove_node): New function, moved here from
10532         lib/gl_anyavltree_list2.h and lib/gl_anyrbtree_list2.h.
10533         (gl_tree_sortedlist_nx_add): Renamed from gl_tree_sortedlist_add.
10534         Update.
10535         * lib/gl_anyavltree_list2.h (create_subtree_with_contents): Use
10536         malloc, not xmalloc. Return NULL upon out-of-memory.
10537         (gl_tree_nx_create): Renamed from gl_tree_create. Return NULL upon
10538         out-of-memory.
10539         (gl_tree_remove_node_from_tree): New function, extracted from
10540         gl_tree_remove_node.
10541         (gl_tree_nx_add_first): Renamed from gl_tree_add_first. Return NULL
10542         upon out-of-memory.
10543         (gl_tree_nx_add_last): Renamed from gl_tree_add_last. Return NULL upon
10544         out-of-memory.
10545         (gl_tree_nx_add_before): Renamed from gl_tree_add_before. Return NULL
10546         upon out-of-memory.
10547         (gl_tree_nx_add_after): Renamed from gl_tree_add_after. Return NULL
10548         upon out-of-memory.
10549         (gl_tree_remove_node): Remove function. Moved to gl_anytree_list2.h.
10550         * lib/gl_anyrbtree_list2.h (create_subtree_with_contents): Use malloc,
10551         not xmalloc. Return NULL upon out-of-memory.
10552         (gl_tree_nx_create): Renamed from gl_tree_create. Return NULL upon
10553         out-of-memory.
10554         (gl_tree_remove_node_from_tree): New function, extracted from
10555         gl_tree_remove_node.
10556         (gl_tree_nx_add_first): Renamed from gl_tree_add_first. Return NULL
10557         upon out-of-memory.
10558         (gl_tree_nx_add_last): Renamed from gl_tree_add_last. Return NULL upon
10559         out-of-memory.
10560         (gl_tree_nx_add_before): Renamed from gl_tree_add_before. Return NULL
10561         upon out-of-memory.
10562         (gl_tree_nx_add_after): Renamed from gl_tree_add_after. Return NULL
10563         upon out-of-memory.
10564         (gl_tree_remove_node): Remove function. Moved to gl_anytree_list2.h.
10565         * lib/gl_avltree_list.c: Don't include xalloc.h. Include
10566         gl_anytree_list1.h before gl_anyavltree_list2.h.
10567         (gl_avltree_list_implementation): Update.
10568         * lib/gl_rbtree_list.c: Don't include xalloc.h. Include
10569         gl_anytree_list1.h before gl_anyavltree_list2.h.
10570         (gl_rbtree_list_implementation): Update.
10571         * lib/gl_anytreehash_list1.h (add_to_bucket, add_nodes_to_buckets):
10572         Change return type to 'int'. Return -1 upon out-of-memory. Use
10573         __builtin_expect.
10574         * lib/gl_avltreehash_list.c: Don't include xalloc.h.
10575         (gl_avltreehash_list_implementation): Update.
10576         * lib/gl_rbtreehash_list.c: Don't include xalloc.h.
10577         (gl_rbtreehash_list_implementation): Update.
10578         * modules/array-list (Depends-on): Remove xalloc.
10579         * modules/carray-list (Depends-on): Likewise.
10580         * modules/linked-list (Depends-on): Likewise.
10581         * modules/linkedhash-list (Depends-on): Likewise.
10582         * modules/avltree-list (Depends-on): Likewise.
10583         * modules/rbtree-list (Depends-on): Likewise.
10584         * modules/avltreehash-list (Depends-on): Likewise.
10585         * modules/rbtreehash-list (Depends-on): Likewise.
10586
10587         * modules/xsublist: New file.
10588         * lib/gl_xsublist.h: New file.
10589         * lib/gl_xsublist.c: New file.
10590         * lib/gl_sublist.h (gl_sublist_create): Disable declaration.
10591         (gl_sublist_nx_create): New declaration.
10592         * lib/gl_sublist.c: Don't include xalloc.h.
10593         (gl_sublist_nx_create_empty): Renamed from gl_sublist_create_empty.
10594         (gl_sublist_nx_create_fill): Renamed from gl_sublist_create_fill.
10595         (gl_sublist_node_nx_set_value): Renamed from gl_sublist_node_set_value.
10596         Change return type to 'int'. Return -1 upon out-of-memory.
10597         (gl_sublist_nx_set_at): Renamed from gl_sublist_set_at. Return NULL
10598         upon out-of-memory.
10599         (gl_sublist_nx_add_first): Renamed from gl_sublist_add_first. Return
10600         NULL upon out-of-memory.
10601         (gl_sublist_nx_add_last): Renamed from gl_sublist_add_last. Return NULL
10602         upon out-of-memory.
10603         (gl_sublist_nx_add_before): Renamed from gl_sublist_add_before. Return
10604         NULL upon out-of-memory.
10605         (gl_sublist_nx_add_after): Renamed from gl_sublist_add_after. Return
10606         NULL upon out-of-memory.
10607         (gl_sublist_nx_add_at): Renamed from gl_sublist_add_at. Return NULL
10608         upon out-of-memory.
10609         (gl_sublist_sortedlist_nx_add): Renamed from gl_sublist_sortedlist_add.
10610         (gl_sublist_list_implementation): Update.
10611         (gl_sublist_nx_create): Renamed from gl_sublist_create. Return NULL
10612         upon out-of-memory.
10613         * modules/sublist (Depends-on): Remove xalloc.
10614
10615         * tests/test-array_list.c: Use gl_list_nx_* functions where possible.
10616         * tests/test-carray_list.c: Likewise.
10617         * tests/test-linked_list.c: Likewise.
10618         * tests/test-linkedhash_list.c: Likewise.
10619         * tests/test-avltree_list.c: Likewise.
10620         * tests/test-rbtree_list.c: Likewise.
10621         * tests/test-avltreehash_list.c: Likewise.
10622         * tests/test-rbtreehash_list.c: Likewise.
10623         * modules/array-list-tests (Makefile.am): Don't link with @LIBINTL@.
10624         * modules/carray-list-tests (Makefile.am): Likewise.
10625         * modules/linked-list-tests (Makefile.am): Likewise.
10626         * modules/linkedhash-list-tests (Makefile.am): Likewise.
10627         * modules/avltree-list-tests (Makefile.am): Likewise.
10628         * modules/rbtree-list-tests (Makefile.am): Likewise.
10629         * modules/avltreehash-list-tests (Makefile.am): Likewise.
10630         * modules/rbtreehash-list-tests (Makefile.am): Likewise.
10631
10632         * NEWS: Mention the changes.
10633
10634         * lib/clean-temp.c: Include gl_xlist.h.
10635         * modules/clean-temp (Depends-on): Add xlist.
10636
10637         * lib/git-merge-changelog.c: Include gl_xlist.h instead of gl_list.h.
10638         * modules/git-merge-changelog (Depends-on): Add xlist. Remove list.
10639
10640         * tests/test-array_oset.c: Include gl_xlist.h.
10641         * modules/array-oset-tests (Depends-on): Add xlist.
10642
10643         Reported by José E. Marchesi <jemarch@gnu.org>.
10644
10645 2009-12-13  Bruno Haible  <bruno@clisp.org>
10646
10647         Move the malloc checking from module 'oset' to new module 'xoset'.
10648         * modules/xoset: New file.
10649         * lib/gl_xoset.h: New file.
10650         * lib/gl_xoset.c: New file.
10651         * lib/gl_oset.h (gl_oset_create_empty, gl_oset_add): Disable
10652         declarations.
10653         (gl_oset_nx_create_empty, gl_oset_nx_add): New declarations.
10654         (struct gl_oset_implementation): Rename and change methods accordingly.
10655         (gl_oset_nx_create_empty): Renamed from gl_oset_create_empty.
10656         (gl_oset_nx_add): Renamed from gl_oset_add. Change return type to
10657         'int'. Mark as __warn_unused_result__.
10658         * lib/gl_oset.c (gl_oset_nx_create_empty): Renamed from
10659         gl_oset_create_empty.
10660         (gl_oset_nx_add): Renamed from gl_oset_add. Change return type to
10661         'int'.
10662         * lib/gl_array_oset.c: Don't include xalloc.h.
10663         (gl_array_nx_create_empty): Renamed from gl_array_create_empty. Use
10664         malloc, not xmalloc.
10665         (grow): Change return type to 'int'. Don't call xalloc_die.
10666         (gl_array_nx_add_at): Renamed from gl_array_add_at. Change return type
10667         to 'int'.
10668         (gl_array_nx_add): Renamed from gl_array_add. Change return type to
10669         'int'.
10670         (gl_array_oset_implementation): Update.
10671         * lib/gl_anytree_oset.h (gl_tree_nx_create_empty): Renamed from
10672         gl_tree_create_empty.
10673         (gl_tree_nx_add): Renamed from gl_tree_add. Change return type to
10674         'int'.
10675         * lib/gl_avltree_oset.c: Don't include xalloc.h.
10676         (gl_tree_nx_add_first): Renamed from gl_tree_add_first. Use malloc, not
10677         xmalloc.
10678         (gl_tree_nx_add_before): Renamed from gl_tree_add_before. Use malloc,
10679         not xmalloc.
10680         (gl_tree_nx_add_after): Renamed from gl_tree_add_after. Use malloc, not
10681         xmalloc.
10682         (gl_avltree_oset_implementation): Update.
10683         * lib/gl_rbtree_oset.c: Don't include xalloc.h.
10684         (gl_tree_nx_add_first): Renamed from gl_tree_add_first. Use malloc, not
10685         xmalloc.
10686         (gl_tree_nx_add_before): Renamed from gl_tree_add_before. Use malloc,
10687         not xmalloc.
10688         (gl_tree_nx_add_after): Renamed from gl_tree_add_after. Use malloc, not
10689         xmalloc.
10690         (gl_rbtree_oset_implementation): Update.
10691         * modules/array-oset (Depends-on): Remove xalloc.
10692         * modules/avltree-oset (Depends-on): Likewise.
10693         * modules/rbtree-oset (Depends-on): Likewise.
10694         * tests/test-array_oset.c: Use gl_oset_nx_* functions where possible.
10695         * tests/test-avltree_oset.c: Likewise.
10696         * tests/test-rbtree_oset.c: Likewise.
10697         * lib/gl_anytreehash_list1.h (add_to_bucket): Likewise.
10698         * modules/avltree-oset-tests (Makefile.am): Don't link with @LIBINTL@.
10699         * modules/rbtree-oset-tests (Makefile.am): Likewise.
10700         * NEWS: Mention the change.
10701
10702 2009-12-05  Alfred M. Szmidt  <ams@gnu.org>
10703
10704         maint.mk: allow a project to override release-prep commands
10705         * top/maint.mk (alpha, beta, stable): Move release-preparatory
10706         commands into a new rule.
10707         (release-prep): New rule.
10708         (release-prep-hook): New overridable variable.
10709
10710 2009-12-13  Bruno Haible  <bruno@clisp.org>
10711
10712         * lib/localcharset.c (locale_charset): Fix comment about use of GetACP.
10713
10714 2009-12-13  Jim Meyering  <meyering@redhat.com>
10715
10716         maint.mk (null_AM_MAKEFLAGS, built_programs): remove unused definitions
10717         * top/maint.mk (null_AM_MAKEFLAGS, built_programs): Remove definitions.
10718
10719 2009-12-12  Bruno Haible  <bruno@clisp.org>
10720
10721         duplocale: Tweak.
10722         * lib/duplocale.c (rpl_duplocale): Mark categories array as 'const'.
10723
10724 2009-12-12  Karl Berry  <karl@gnu.org>
10725
10726         * config/srclist.txt (strtoll.c): tab changes, no more sync.
10727
10728 2009-12-12  Bruno Haible  <bruno@clisp.org>
10729
10730         * m4/po.m4: Undo incorrect untabification.
10731
10732 2009-12-12  Bruno Haible  <bruno@clisp.org>
10733
10734         c-strtod, c-strtold: Use multithread-safe implementation on MacOS X.
10735         * modules/c-strtod (Depends-on): Add locale.
10736         * modules/c-strtold (Depends-on): Likewise.
10737
10738 2009-12-12  Bruno Haible  <bruno@clisp.org>
10739
10740         * lib/localcharset.c (locale_charset): Add comment about use of GetACP.
10741
10742 2009-12-11  Eric Blake  <ebb9@byu.net>
10743
10744         setenv: relax requirement in light of POSIX ruling
10745         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE): Test handling of "" but
10746         not NULL.
10747         * tests/test-setenv.c (main): Relax test.
10748         * tests/test-unsetenv.c (main): Likewise.
10749         * doc/posix-functions/setenv.texi (setenv): Document this.
10750         * doc/posix-functions/unsetenv.texi (unsetenv): Likewise.
10751
10752 2009-12-11  Bruno Haible  <bruno@clisp.org>
10753
10754         New module 'fd-safer-flag'.
10755         * lib/dup-safer-flag.c: New file, extracted from lib/dup-safer.c.
10756         * lib/dup-safer.c (dup_safer_flag): Remove function.
10757         * lib/fd-safer-flag.c: New file, extracted from lib/fd-safer.c.
10758         * lib/fd-safer.c (fd_safer_flag): Remove function.
10759         * lib/unistd-safer.h (dup_safer_flag, fd_safer_flag): Update condition.
10760         * modules/cloexec (configure.ac): Drop indicator macro.
10761         * modules/fd-safer-flag: New file.
10762         * modules/pipe2-safer (Depends-on): Add fd-safer-flag. Remove cloexec.
10763         * modules/stdlib-safer (Depends-on): Add fd-safer-flag.
10764         * modules/unistd-safer-tests (Depends-on): Add fd-safer-flag.
10765
10766 2009-12-11  Bruno Haible  <bruno@clisp.org>
10767
10768         Tests for module 'nl_langinfo'.
10769         * modules/nl_langinfo-tests: New file.
10770         * tests/test-nl_langinfo.sh: New file.
10771         * tests/test-nl_langinfo.c: New file.
10772
10773         New module 'nl_langinfo'.
10774         * lib/nl_langinfo.c: New file.
10775         * m4/nl_langinfo.m4: New file.
10776         * modules/nl_langinfo: New file.
10777         * doc/posix-functions/nl_langinfo.texi: Mention the new module.
10778
10779 2009-12-11  Bruno Haible  <bruno@clisp.org>
10780
10781         Tests for module 'langinfo'.
10782         * modules/langinfo-tests: New file.
10783         * tests/test-langinfo.c: New file.
10784
10785         New module 'langinfo'.
10786         * lib/langinfo.in.h: New file.
10787         * m4/langinfo_h.m4: New file.
10788         * modules/langinfo: New file.
10789         * doc/posix-headers/langinfo.texi: Mention the new module.
10790
10791 2009-12-11  Bruno Haible  <bruno@clisp.org>
10792
10793         * lib/config.charset: Untabify.
10794
10795 2009-12-11  Bruno Haible  <bruno@clisp.org>
10796
10797         * modules/unistd-safer (configure.ac): Drop indicator macro.
10798
10799 2009-12-11  Bruno Haible  <bruno@clisp.org>
10800
10801         Move pipe2-safer code to its own file.
10802         * lib/pipe2-safer.c: New file, extracted from lib/pipe-safer.c.
10803         * lib/pipe-safer.c (pipe2_safer): Remove function.
10804         * modules/pipe2-safer (Files): Add lib/pipe2-safer.c.
10805         (Makefile.am): Add it to lib_SOURCES.
10806
10807 2009-12-10  Bruno Haible  <bruno@clisp.org>
10808
10809         * lib/recvfrom.c (rpl_recvfrom): Allow the from argument to be NULL.
10810
10811 2009-12-10  Bruno Haible  <bruno@clisp.org>
10812
10813         Declare which arguments expect non-NULL values, for GCC and clang.
10814         * build-aux/arg-nonnull.h: New file.
10815         * modules/arg-nonnull: New file.
10816         * lib/arpa_inet.in.h (_GL_ARG_NONNULL): New placeholder.
10817         (inet_ntop, inet_pton): Use it.
10818         * lib/dirent.in.h (_GL_ARG_NONNULL): New placeholder.
10819         (closedir, dirfd, opendir, scandir, alphasort): Use it.
10820         * lib/fcntl.in.h (_GL_ARG_NONNULL): New placeholder.
10821         (open, openat): Use it.
10822         * lib/fnmatch.in.h (_GL_ARG_NONNULL): New placeholder.
10823         (fnmatch): Use it.
10824         * lib/getopt.in.h (_GL_ARG_NONNULL): New placeholder.
10825         (getopt, getopt_long, getopt_long_only): Use it.
10826         * lib/glob.in.h (_GL_ARG_NONNULL): New placeholder.
10827         * lib/glob-libc.h (glob, globfree, glob64, globfree64, glob_pattern_p):
10828         Use it.
10829         * lib/iconv.in.h (_GL_ARG_NONNULL): New placeholder.
10830         (iconv_open): Use it.
10831         * lib/inttypes.in.h (_GL_ARG_NONNULL): New placeholder.
10832         (strtoimax, strtoumax): Use it.
10833         * lib/locale.in.h (_GL_ARG_NONNULL): New placeholder.
10834         (duplocale): Use it.
10835         * lib/math.in.h (_GL_ARG_NONNULL): New placeholder.
10836         (frexp, frexpl): Use it.
10837         * lib/netdb.in.h (_GL_ARG_NONNULL): New placeholder.
10838         (getaddrinfo, freeaddrinfo, getnameinfo): Use it.
10839         * lib/search.in.h (_GL_ARG_NONNULL): New placeholder.
10840         (tsearch, tfind, tdelete, twalk): Use it.
10841         * lib/signal.in.h (_GL_ARG_NONNULL): New placeholder.
10842         (sigismember, sigemptyset, sigaddset, sigdelset, sigfillset,
10843         sigpending): Use it.
10844         * lib/spawn.in.h (_GL_ARG_NONNULL): New placeholder.
10845         (posix_spawn, posix_spawnp, posix_spawnattr_init,
10846         posix_spawnattr_destroy, posix_spawnattr_getsigdefault,
10847         posix_spawnattr_setsigdefault, posix_spawnattr_getsigmask,
10848         posix_spawnattr_setsigmask, posix_spawnattr_getflags,
10849         posix_spawnattr_setflags, posix_spawnattr_getpgroup,
10850         posix_spawnattr_setpgroup, posix_spawnattr_getschedpolicy,
10851         posix_spawnattr_setschedpolicy, posix_spawnattr_getschedparam,
10852         posix_spawnattr_setschedparam, posix_spawn_file_actions_init,
10853         posix_spawn_file_actions_destroy, posix_spawn_file_actions_addopen,
10854         posix_spawn_file_actions_addclose, posix_spawn_file_actions_adddup2):
10855         Use it.
10856         * lib/stdio.in.h (_GL_ARG_NONNULL): New placeholder.
10857         (dprintf, fclose, fopen, fprintf, fpurge, fputc, fputs, freopen,
10858         rpl_fseek, fseeko, rpl_ftell, ftello, fwrite, getdelim, getline,
10859         obstack_printf, obstack_vprintf, popen, printf, putc, puts, remove,
10860         rename, renameat, snprintf, sprintf, asprintf, vasprintf, vdprintf,
10861         vfprintf, vprintf, vsnprintf, vsprintf): Use it.
10862         * lib/stdlib.in.h (_GL_ARG_NONNULL): New placeholder.
10863         (atoll, canonicalize_file_name, getloadavg, getsubopt, mkdtemp,
10864         mkostemp, mkostemps, mkstemp, mkstemps, putenv, srandom_r, initstate_r,
10865         setstate_r, random_r, realpath, rpmatch, setenv, strtod, strtoll,
10866         strtoull, unsetenv): Use it.
10867         * lib/string.in.h (_GL_ARG_NONNULL): New placeholder.
10868         (memchr, memmem, mempcpy, memrchr, rawmemchr, stpcpy, stpncpy,
10869         strchrnul, strdup, strndup, strnlen, strpbrk, strsep, strstr,
10870         strcasestr, strtok_r, mbslen, mbsnlen, mbschr, mbsrchr, mbsstr,
10871         mbscasecmp, mbsncasecmp, mbspcasecmp, mbscasestr, mbscspn, mbspbrk,
10872         mbsspn, mbssep, mbstok_r, strverscmp): Use it.
10873         * lib/strings.in.h (_GL_ARG_NONNULL): New placeholder.
10874         (strcasecmp, strncasecmp): Use it.
10875         * lib/sys_socket.in.h (_GL_ARG_NONNULL): New placeholder.
10876         (rpl_connect, rpl_bind, rpl_getpeername, rpl_getsockname,
10877         rpl_getsockopt, rpl_recv, rpl_send, rpl_recvfrom, rpl_sendto,
10878         rpl_setsockopt): Use it.
10879         * lib/sys_stat.in.h (_GL_ARG_NONNULL): New placeholder.
10880         (fchmodat, fstat, fstatat, lchmod, rpl_lstat, mkdir, mkdirat, mkfifo,
10881         mkfifoat, mknod, mknodat, stat, utimensat): Use it.
10882         * lib/sys_time.in.h (_GL_ARG_NONNULL): New placeholder.
10883         (gettimeofday): Use it.
10884         * lib/sys_times.in.h (_GL_ARG_NONNULL): New placeholder.
10885         (times): Use it.
10886         * lib/sys_utsname.in.h (_GL_ARG_NONNULL): New placeholder.
10887         (uname): Use it.
10888         * lib/time.in.h (_GL_ARG_NONNULL): New placeholder.
10889         (nanosleep, mktime, localtime_r, gmtime_r, strptime, timegm): Use it.
10890         * lib/unistd.in.h (_GL_ARG_NONNULL): New placeholder.
10891         (chown, euidaccess, faccessat, _gl_register_fd, fchownat,
10892         getdomainname, gethostname, getlogin_r, lchown, link, linkat, pipe2,
10893         pread, readlink, readlinkat, rmdir, symlink, symlinkat, unlink,
10894         unlinkat, write): Use it.
10895         * lib/wchar.in.h (_GL_ARG_NONNULL): New placeholder.
10896         (mbsrtowcs, mbsnrtowcs, wcsrtombs, wcsnrtombs): Use it.
10897         * lib/argv-iter.h: Include arg-nonnull.h.
10898         (_ATTRIBUTE_NONNULL_): Remove macro.
10899         (argv_iter_init_argv, argv_iter_init_stream, argv_iter,
10900         argv_iter_n_args, argv_iter_free): Use _GL_ARG_NONNULL.
10901         * lib/canonicalize-lgpl.c (_GL_ARG_NONNULL): Define, to defeat gcc
10902         optimization.
10903         * lib/getaddrinfo.c (_GL_ARG_NONNULL): Likewise.
10904         * lib/getdelim.c (_GL_ARG_NONNULL): Likewise.
10905         * lib/glob.c (_GL_ARG_NONNULL): Likewise.
10906         * lib/random_r.c (_GL_ARG_NONNULL): Likewise.
10907         * lib/setenv.c (_GL_ARG_NONNULL): Likewise.
10908         * lib/strtod.c (_GL_ARG_NONNULL): Likewise.
10909         * lib/tsearch.c (_GL_ARG_NONNULL): Likewise.
10910         * lib/unsetenv.c (_GL_ARG_NONNULL): Likewise.
10911         * modules/arpa_inet (Depends-on): Add arg-nonnull.
10912         (Makefile.am): Insert arg-nonnull.h into arpa/inet.h.
10913         * modules/dirent (Depends-on): Add arg-nonnull.
10914         (Makefile.am): Insert arg-nonnull.h into dirent.h.
10915         * modules/fcntl-h (Depends-on): Add arg-nonnull.
10916         (Makefile.am): Insert arg-nonnull.h into fcntl.h.
10917         * modules/fnmatch (Depends-on): Add arg-nonnull.
10918         (Makefile.am): Insert arg-nonnull.h into fnmatch.h.
10919         * modules/getopt-posix (Depends-on): Add arg-nonnull.
10920         (Makefile.am): Insert arg-nonnull.h into getopt.h.
10921         * modules/glob (Depends-on): Add arg-nonnull.
10922         (Makefile.am): Insert arg-nonnull.h into glob.h.
10923         * modules/iconv_open (Depends-on): Add arg-nonnull.
10924         (Makefile.am): Insert arg-nonnull.h into iconv.h.
10925         * modules/inttypes (Depends-on): Add arg-nonnull.
10926         (Makefile.am): Insert arg-nonnull.h into inttypes.h.
10927         * modules/locale (Depends-on): Add arg-nonnull.
10928         (Makefile.am): Insert arg-nonnull.h into locale.h.
10929         * modules/math (Depends-on): Add arg-nonnull.
10930         (Makefile.am): Insert arg-nonnull.h into math.h.
10931         * modules/netdb (Depends-on): Add arg-nonnull.
10932         (Makefile.am): Insert arg-nonnull.h into netdb.h.
10933         * modules/search (Depends-on): Add arg-nonnull.
10934         (Makefile.am): Insert arg-nonnull.h into search.h.
10935         * modules/signal (Depends-on): Add arg-nonnull.
10936         (Makefile.am): Insert arg-nonnull.h into signal.h.
10937         * modules/spawn (Depends-on): Add arg-nonnull.
10938         (Makefile.am): Insert arg-nonnull.h into spawn.h.
10939         * modules/stdio (Depends-on): Add arg-nonnull.
10940         (Makefile.am): Insert arg-nonnull.h into stdio.h.
10941         * modules/stdlib (Depends-on): Add arg-nonnull.
10942         (Makefile.am): Insert arg-nonnull.h into stdlib.h.
10943         * modules/string (Depends-on): Add arg-nonnull.
10944         (Makefile.am): Insert arg-nonnull.h into string.h.
10945         * modules/strings (Depends-on): Add arg-nonnull.
10946         (Makefile.am): Insert arg-nonnull.h into strings.h.
10947         * modules/sys_socket (Depends-on): Add arg-nonnull.
10948         (Makefile.am): Insert arg-nonnull.h into sys/socket.h.
10949         * modules/sys_stat (Depends-on): Add arg-nonnull.
10950         (Makefile.am): Insert arg-nonnull.h into sys/stat.h.
10951         * modules/sys_time (Depends-on): Add arg-nonnull.
10952         (Makefile.am): Insert arg-nonnull.h into sys/time.h.
10953         * modules/sys_times (Depends-on): Add arg-nonnull.
10954         (Makefile.am): Insert arg-nonnull.h into sys/times.h.
10955         * modules/sys_utsname (Depends-on): Add arg-nonnull.
10956         (Makefile.am): Insert arg-nonnull.h into sys/utsname.h.
10957         * modules/time (Depends-on): Add arg-nonnull.
10958         (Makefile.am): Insert arg-nonnull.h into time.h.
10959         * modules/unistd (Depends-on): Add arg-nonnull.
10960         (Makefile.am): Insert arg-nonnull.h into unistd.h.
10961         * modules/wchar (Depends-on): Add arg-nonnull.
10962         (Makefile.am): Insert arg-nonnull.h into wchar.h.
10963         * modules/argv-iter (Depends-on): Add arg-nonnull.
10964         * tests/test-canonicalize.c (null_ptr): New function.
10965         (main): Use it.
10966         * tests/test-canonicalize-lgpl.c (null_ptr): New function.
10967         (main): Use it.
10968         * tests/test-memmem.c (null_ptr): New function.
10969         (main): Use it.
10970         Reported by Jim Meyering.
10971
10972 2009-12-10  Bruno Haible  <bruno@clisp.org>
10973
10974         Use spaces for indentation, not tabs.
10975         * lib/**/*.[hcy] except lib/reg*.[hc]: Untabify.
10976         * m4/*.m4: Untabify.
10977         * build-aux/*.h: Untabify.
10978         * tests/**/*.[hc]: Untabify.
10979         * README: New section "Indent with spaces, not TABs", based on
10980         coreutils/HACKING and comments by Pádraig Brady and Paolo Bonzini.
10981         * NEWS: Mention the change.
10982
10983 2009-12-10  Bruno Haible  <bruno@clisp.org>
10984
10985         pty test: Fix link error.
10986         * modules/pty-tests (Makefile.am): Add the default LDADD value to
10987         test_pty_LDADD.
10988
10989 2009-12-07  Simon Josefsson  <simon@josefsson.org>
10990
10991         * modules/pty: New file.
10992         * modules/pty-tests: New file.
10993         * m4/pty.m4: New file.
10994         * tests/test-pty.c: New file.
10995         * doc/glibc-headers/pty.texi: Modified.
10996         * doc/glibc-functions/forkpty.texi: Modified.
10997         * doc/glibc-functions/openpty.texi: Modified.
10998
10999 2009-12-10  Bruno Haible  <bruno@clisp.org>
11000
11001         Avoid syntax error in C++ mode.
11002         * lib/stdio.in.h (rename): Don't use parameter name 'new'.
11003
11004 2009-12-10  Bruno Haible  <bruno@clisp.org>
11005
11006         Use sed with option -e.
11007         * gnulib-tool (func_version, func_emit_copyright_notice,
11008         func_emit_initmacro_end, func_import, func_create_testdir): Pass
11009         option -e to sed.
11010         * modules/link-warning (Makefile.am): Likewise.
11011
11012 2009-12-10  Jim Meyering  <meyering@redhat.com>
11013
11014         mgetgroups: do not write bytes beyond end of malloc'd buffer
11015         * lib/mgetgroups.c: Fix an off-by-one error.  When we have no
11016         username, we call getgroups with a one-element-shorter buffer,
11017         but still told it the length was original, max_n_groups.
11018
11019 2009-12-09  Eric Blake  <ebb9@byu.net>
11020
11021         cloexec: relax license
11022         * modules/cloexec (Maintainer): Add myself.
11023         (License): Use LGPL, not GPL.
11024
11025         link-warning: optimize generation
11026         * modules/link-warning (Makefile.am): Reduce process usage.
11027
11028 2009-12-09  Bruno Haible  <bruno@clisp.org>
11029
11030         * doc/posix-functions/unsetenv.texi: Mention Solaris 10 bug for which a
11031         workaround was added on 2009-11-17.
11032
11033 2009-12-09  Jim Meyering  <meyering@redhat.com>
11034             Bruno Haible  <bruno@clisp.org>
11035
11036         link-warning: Allow extra lines at the top of build-aux/link-warning.h.
11037         * modules/link-warning (Makefile.am): Make the comment-removing sed
11038         command more robust in the face of bootstrap-prepended comment lines.
11039
11040 2009-12-09  Bruno Haible  <bruno@clisp.org>
11041
11042         * lib/mgetgroups.c (mgetgroups): Don't remove duplicates if there is at
11043         most one group.
11044
11045 2009-12-09  Simon Josefsson <simon@josefsson.org>
11046             Bruno Haible  <bruno@clisp.org>
11047
11048         * build-aux/link-warning.h: Add copyright notice.
11049         * modules/link-warning (Makefile.am): Generate link-warning.h from
11050         build-aux/link-warning.h. Update LINK_WARNING_H accordingly.
11051         * NEWS: Mention change in link-warning module.
11052         * modules/arpa_inet (Makefile.am): Add dependency to arpa/inet.h.
11053         * modules/dirent (Makefile.am): Add dependency to dirent.h.
11054         * modules/fcntl-h (Makefile.am): Add dependency to fcntl.h.
11055         * modules/getopt-posix (Makefile.am): Add dependency to getopt.h.
11056         * modules/inttypes (Makefile.am): Add dependency to inttypes.h.
11057         * modules/math (Makefile.am): Add dependency to math.h.
11058         * modules/search (Makefile.am): Add dependency to search.h.
11059         * modules/signal (Makefile.am): Add dependency to signal.h.
11060         * modules/spawn (Makefile.am): Add dependency to spawn.h.
11061         * modules/stdio (Makefile.am): Add dependency to stdio.h.
11062         * modules/stdlib (Makefile.am): Add dependency to stdlib.h.
11063         * modules/string (Makefile.am): Add dependency to string.h.
11064         * modules/strings (Makefile.am): Add dependency to strings.h.
11065         * modules/sys_ioctl (Makefile.am): Add dependency to sys/ioctl.h.
11066         * modules/sys_select (Makefile.am): Add dependency to sys/select.h.
11067         * modules/sys_socket (Makefile.am): Add dependency to sys/socket.h.
11068         * modules/sys_stat (Makefile.am): Add dependency to sys/stat.h.
11069         * modules/sys_times (Makefile.am): Add dependency to sys/times.h.
11070         * modules/sys_utsname (Makefile.am): Add dependency to sys/utsname.h.
11071         * modules/sys_wait (Makefile.am): Add dependency to sys/wait.h.
11072         * modules/unistd (Makefile.am): Add dependency to unistd.h.
11073         * modules/wchar (Makefile.am): Add dependency to wchar.h.
11074
11075 2009-12-09  Bruno Haible  <bruno@clisp.org>
11076
11077         fchdir: Optimize away rpl_fstat when possible.
11078         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Set REPLACE_FSTAT only together with
11079         REPLACE_OPEN_DIRECTORY.
11080         * lib/fchdir.c (rpl_fstat): Define only when REPLACE_OPEN_DIRECTORY.
11081
11082 2009-12-09  Bruno Haible  <bruno@clisp.org>
11083
11084         * lib/fchdir.c: Update comment.
11085
11086 2009-12-09  Bruno Haible  <bruno@clisp.org>
11087
11088         * lib/cloexec.c (set_cloexec_flag): Clarify intent of dup2 call.
11089
11090 2009-12-08  Eric Blake  <ebb9@byu.net>
11091
11092         fchdir: avoid memory leak on re-registration.
11093         * lib/fchdir.c (ensure_dirs_slot): Avoid memory leak.
11094
11095 2009-12-08  Jim Meyering  <meyering@redhat.com>
11096
11097         init.sh: avoid Solaris 10 /bin/sh portability problem
11098         Solaris 10's /bin/sh does not pass '.' arguments 2.. to the
11099         sourced script:
11100           $ printf 'echo "$@"\n' > f; /bin/sh -c '. ./f bar'
11101           $ printf 'echo "$@"\n' > f; /bin/bash -c '. ./f bar'
11102           bar
11103         tests/init.sh relied on that, accepting a --set-path=DIR argument,
11104         and two tests used that idiom.
11105         * tests/init.sh: Update suggested usage comments.
11106         (path_prepend_): New function, to be used in place
11107         of the --src-path=DIR option.
11108         (setup_): Move PATH-prepending code into path_prepend_.
11109         * tests/test-pread.sh: Adapt to new usage.
11110         * tests/test-xalloc-die.sh: Likewise.
11111
11112 2009-12-08  Simon Josefsson  <simon@josefsson.org>
11113
11114         * doc/gnulib.texi (Glibc pty.h): Add.
11115         * doc/glibc-functions/forkpty.texi: Add.
11116         * doc/glibc-functions/openpty.texi: Add.
11117         Suggested by Bruno Haible.
11118
11119 2009-12-08  Eric Blake  <ebb9@byu.net>
11120
11121         fchdir: fix logic bugs
11122         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Fix logic bug.
11123         * tests/test-fchdir.c (main): Enhance test.
11124         * lib/fchdir.c (rpl_fstat): Always provide if fchdir replacement
11125         is in use.
11126
11127         dup2: fix logic bugs
11128         * lib/dup2.c (dup2): Fix logic bugs.  Use HAVE_DUP2 rather than
11129         REPLACE_DUP2 to decide when rpl_dup2 is needed.
11130         * m4/dup2.m4 (gl_REPLACE_DUP2): Only define REPLACE_DUP2 when dup2
11131         exists.
11132         (gl_FUNC_DUP2): Drop unneeded AC_DEFINE.
11133
11134 2009-12-07  Eric Blake  <ebb9@byu.net>
11135
11136         unlink: fix m4 detection
11137         * m4/unlink.m4 (gl_FUNC_UNLINK): Include correct header.
11138
11139         unistd-safer: add unit test
11140         * modules/unistd-safer-tests: New file.
11141         * tests/test-dup-safer.c: Likewise.
11142         * tests/test-cloexec.c (setmode): Avoid compiler warning.
11143         * tests/test-dup2.c (setmode): Likewise.
11144         * lib/cloexec.c (dup_cloexec): Fix mingw compile error.
11145
11146         cloexec: preserve text vs. binary across dup_cloexec
11147         * lib/cloexec.c (dup_cloexec) [W32]: Query and use translation
11148         mode.
11149         * modules/dup2-tests (Depends-on): Add binary-io.
11150         * modules/cloexec-tests (Depends-on): Likewise.
11151         * tests/test-dup2.c (setmode, is_mode): New helpers.
11152         (main): Add tests that translation mode is preserved.
11153         * tests/test-cloexec.c (setmode, is_mode, main): Likewise.
11154         Reported by Bruno Haible.
11155
11156         mgetgroups: reduce duplicate listings
11157         * lib/mgetgroups.c (mgetgroups): Reduce duplicates from the
11158         resulting array.
11159         * tests/test-chown.h (test_chown): Simplify client.
11160         * tests/test-lchown.h (test_lchown): Likewise.
11161
11162 2009-12-06  Bruno Haible  <bruno@clisp.org>
11163
11164         * lib/cloexec.c (dup_cloexec): Fix handling of _gl_register_dup return
11165         value.
11166
11167 2009-12-06  Bruno Haible  <bruno@clisp.org>
11168
11169         * lib/progname.c: Include stdio.h, stdlib.h.
11170         (set_program_name): Reject a NULL argument.
11171
11172 2009-12-05  Eric Blake  <ebb9@byu.net>
11173
11174         pipe2-safer: new module
11175         * modules/pipe2-safer: New file.
11176         * lib/unistd-safer.h (pipe2_safer): New prototype.
11177         * lib/unistd--.h (pipe2): New wrapper.
11178         * lib/pipe-safer.c (pipe2_safer): New function.
11179         * modules/pipe (Depends-on): Add pipe2-safer.
11180         * lib/pipe.c (create_pipe) [WIN32]: Let pipe2_safer do the work.
11181
11182         stdlib-safer: preserve cloexec flag for mkostemp[s]
11183         * lib/mkstemp-safer.c (mkostemp_safer, mkostemps_safer): Use new
11184         fd_safer_flag.
11185
11186         unistd-safer: allow preservation of cloexec status via flag
11187         * lib/unistd-safer.h (dup_safer_flag, fd_safer_flag): New
11188         prototypes.
11189         * lib/dup-safer.c (dup_safer_flag): New function.
11190         * lib/fd-safer.c (fd_safer_flag): Likewise.
11191         * modules/cloexec (configure.ac): Set witness.
11192
11193         test-dup2: enhance test
11194         * modules/dup2-tests (Depends-on): Add cloexec.
11195         * tests/test-dup2.c (main): Enhance test.
11196
11197         cloexec: add dup_cloexec
11198         * lib/cloexec.h (dup_cloexec): New prototype.  Add copyright
11199         header and comments.
11200         * lib/cloexec.c (set_cloexec_flag): Add comments.
11201         (dup_cloexec): New function, with mingw implementation borrowed
11202         from...
11203         * lib/w32spawn.h (dup_noinherit): ...here.
11204         * modules/execute (Depends-on): Add cloexec.
11205         * modules/pipe (Depends-on): Likewise.
11206         * modules/cloexec (Depends-on): Add dup2.
11207         * modules/cloexec-tests (Files): New file.
11208         * tests/test-cloexec.c: Likewise.
11209
11210         test-xalloc-die: fix test for mingw
11211         * modules/xalloc-die-tests (Files): Add tests/init.sh.
11212         * tests/test-xalloc-die.sh: Rewrite to use init.sh.  Strip
11213         directory and .exe suffix off argv[0] output.
11214
11215         test-fseeko: fix test for mingw
11216         * tests/test-fseeko.c (fseek): Redefine GL_LINK_WARNING, rather
11217         than undefining fseek, so test will pass on mingw.
11218
11219 2009-12-05  Bruno Haible  <bruno@clisp.org>
11220
11221         * lib/progname.h (set_program_name): Clarify specification.
11222         * lib/progname.c (set_program_name): Likewise.
11223         Reported by Jim Meyering.
11224
11225 2009-12-05  Jim Meyering  <meyering@redhat.com>
11226
11227         maint.mk: backslash-escape parens in default regexp
11228         * top/maint.mk (news-check-regexp): Now that we're using grep -E,
11229         backslash-escape the literal parentheses.
11230
11231         maint.mk: news-date-check: use grep -E
11232         * top/maint.mk (today): Define a Make variable, not a...
11233         (news-date-check): ...shell variable.
11234         (news-date-regexp): Use the Make variable.
11235         Use grep's -E option.  Change the failing diagnostic to mention
11236         the variable, $(news-date-regexp).
11237
11238 2009-12-04  Alfred M. Szmidt  <ams@gnu.org>
11239
11240         maintainer-makefile: allow customization of NEWS entry format
11241         * top/maint.mk (news-date-regexp): New overridable variable.
11242         (news-date-check): Use it.
11243
11244 2009-12-04  Eric Blake  <ebb9@byu.net>
11245
11246         mgetgroups: add xgetgroups, and avoid ENOSYS failures
11247         * lib/mgetgroups.h (xgetgroups): New prototype.
11248         * lib/mgetgroups.c (xgetgroups): New wrapper.
11249         (mgetgroups): Handle ENOSYS.
11250         * modules/mgetgroups (Depends-on): Add realloc.
11251         Reported by Scott Harrison <scott.gnu.2009@scottrix.co.uk>.
11252
11253         mgetgroups: avoid argument promotion issues with -1
11254         * lib/mgetgroups.c (mgetgroups): A cast is required when checking
11255         for invalid gid_t.
11256         * tests/test-chown.h (getegid, test_chown): Likewise.
11257         * tests/test-lchown.h (getegid, test_lchown): Likewise.
11258
11259 2009-12-03  Paolo Bonzini  <bonzini@gnu.org>
11260
11261         exclude: Fix header file problems.
11262         * lib/exclude.h: Add multiple inclusion guards and include stdbool.h.
11263
11264 2009-12-01  Jim Meyering  <meyering@redhat.com>
11265
11266         fts: fts_open: do not let an empty string cause immediate failure
11267         This is required in support of GNU rm, for which the command
11268         "rm A '' B" must process and remove both A and B, in spite of
11269         the empty string argument.
11270         * lib/fts.c (fts_open): Do not let the presence of an empty string
11271         cause fts_open to fail immediately.  Most fts-using tools must be
11272         able to process all arguments, in order, and can be expected to
11273         diagnose such arguments themselves.
11274
11275 2009-11-30  Eric Blake  <ebb9@byu.net>
11276
11277         utimens: fix compilation error
11278         * lib/utimens.c (lutimens) [!HAVE_UTIMENSAT && HAVE_LUTIMES]:
11279         Declare variable at right scope.
11280
11281 2009-11-29  Jim Meyering  <meyering@redhat.com>
11282
11283         bootstrap: handle perl-5.11's changed --version output
11284         * build-aux/bootstrap (get_version): Handle perl separately,
11285         since perl-5.11's --version output is different.
11286
11287 2009-11-28  Jim Meyering  <meyering@redhat.com>
11288
11289         userspec: depend on the inttostr module, too
11290         * modules/userspec (Depends-on): Add inttostr.
11291
11292         userspec: disallow an ID that maps to (uid_t)-1 or (gid_t)-1
11293         * lib/userspec.c (parse_with_separator): Do not accept a user ID
11294         number of MAXUID when it evaluates to (uid_t) -1.
11295         Likewise for group ID.  Reported by Matt McCutchen in
11296         <http://savannah.gnu.org/bugs/?28113>
11297
11298         userspec: reformat to use spaces, not TABs
11299         * lib/userspec.c: Expand TABs to spaces.
11300         Add Emacs' "indent-tabs-mode: nil" hint.
11301
11302 2009-11-27  Eric Blake  <ebb9@byu.net>
11303
11304         getopt-gnu: flush out another BSD bug
11305         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Test for the bug.
11306         * tests/test-getopt.c (main): Check POSIXLY_CORRECT first, to
11307         flush out BSD bug.
11308         * tests/test-getopt.h (test_getopt): End lists with NULL.
11309         * tests/test-getopt_long.h (test_getopt_long): Likewise.
11310         (test_getopt_long_posix): Enhance test.
11311         * modules/getopt-posix-tests (Depends-on): Add stdbool.
11312         * doc/glibc-functions/getopt_long.texi (getopt_long): Mention
11313         getopt-gnu.
11314         * doc/glibc-functions/getopt_long_only.texi (getopt_long_only):
11315         Likewise.
11316
11317 2009-11-27  Simon Josefsson  <simon@josefsson.org>
11318
11319         * modules/idpriv-droptemp-tests (Notice): Fix text.
11320
11321 2009-11-27  Jim Meyering  <meyering@redhat.com>
11322
11323         test-xalloc-die: avoid spurious failure due to libtool argv difference
11324         In a libtool-enabled project, this test would fail due to a difference
11325         in the emitted program name, e.g.,
11326         -test-xalloc-die: memory exhausted
11327         +/tmp/.../tests/.libs/lt-test-xalloc-die: memory exhausted
11328         Use program to avoid that.
11329         * modules/xalloc-die-tests (Depends-on): Add progname.
11330         * tests/test-xalloc-die.c: Include progname.h".
11331         (program_name): Remove decl.
11332         (main): Call set_program_name.
11333         * tests/test-xalloc-die.sh (compare): Remove unnecessary ${EXE}.
11334
11335 2009-11-26  Richard Jones  <rjones@redhat.com>
11336
11337         w32sock: leave win32 error in place.
11338         * lib/w32sock.h (set_winsock_errno): Do not call WSASetLastError.
11339
11340 2009-11-26  Eric Blake  <ebb9@byu.net>
11341
11342         init.sh: suggest to use skip_ and fail_ functions in comments
11343         * tests/init.sh: Add a sentence.
11344
11345 2009-11-25  Bruno Haible  <bruno@clisp.org>
11346
11347         init.sh: add documentation in comments
11348         * tests/init.sh: Add some developer and user documentation.
11349
11350 2009-11-26  Jim Meyering  <meyering@redhat.com>
11351
11352         init.sh: accommodate even those who specify bogus srcdir manually
11353         * tests/init.sh: Normally, srcdir is guaranteed by automake and
11354         configure-time tests to be sanitized, so that there is no need to
11355         use "$srcdir" in Makefile rules and shell scripts.  Using $srcdir
11356         (with no double quotes) suffices.  However, since tests may be
11357         invoked manually, and since you may explicitly set srcdir to the
11358         name of a directory containing spaces, do quote its uses here.
11359         * tests/test-pread.sh: Likewise.
11360         Suggested by Bruno Haible.
11361
11362         test-pread.sh: avoid diagnostics for those who ignore SIGPIPE
11363         * tests/test-pread.sh: Write no data into the pipe, because
11364         test-pread actually reads none.  This avoids a diagnostic,
11365         "bash: echo: write error: Broken pipe", that arises in the unusual
11366         event something is ignoring SIGPIPE, and might be interpreted
11367         as some sort of failure.  Reported by Bruno Haible.
11368
11369 2009-11-25  Jim Meyering  <meyering@redhat.com>
11370
11371         test-pread: cover failure with ESPIPE and EINVAL
11372         * tests/test-pread.c (main): Test for failure, too.
11373         * tests/test-pread.sh: Invoke with stdin on a pipe.
11374         Suggested by Eric Blake.
11375
11376         pread: improvement and fix
11377         * modules/pread (Depends-on): Depend on lseek, for portability to
11378         e.g., mingw.  Suggested by Eric Blake.
11379         * lib/pread.c (__libc_read): Define.  Reported by Richard W.M. Jones.
11380
11381         unistd.in.h: correct declaration of pread
11382         * lib/unistd.in.h: Correct type of "buf" parameter: void*, not char*
11383         Reported by Richard W.M. Jones.
11384
11385         test-pread.sh: distribute the test script
11386         * modules/pread-tests (Files): Include test-pread.sh.
11387
11388         test-pread.sh: clean up
11389         * tests/test-pread.sh: Don't refer to $builddir. Just use equivalent ".".
11390         * modules/pread-tests (TESTS_ENVIRONMENT): Don't export builddir.
11391         That is unnecessary, since it's always ".".
11392         Suggestion from Eric Blake.
11393
11394         test-pread.sh: make executable
11395         * tests/test-pread.sh: Set executable bit.
11396         Reported by Eric Blake.
11397
11398         correct typo in test-pread.sh
11399         * tests/test-pread.sh: Add #! line.
11400
11401         test pread
11402         * tests/test-pread.c: New file.
11403         * tests/test-pread.sh: Likewise.
11404         * modules/pread-tests: Likewise.
11405
11406         pread: new module
11407         * modules/pread: New file.
11408         * lib/unistd.in.h (pread): Define/declare.
11409         * lib/pread.c (pread): New file.
11410         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Define defaults.
11411         * modules/unistd (Makefile.am): Substitute witnesses.
11412         * doc/posix-functions/pread.texi (pread): Update.
11413         * MODULES.html.sh: Add pread.
11414
11415 2009-11-25  Jim Meyering  <meyering@redhat.com>
11416
11417         tests/init.sh: new file to be used via most *.sh tests
11418         * tests/init.sh: New file.
11419
11420 2009-11-25  Eric Blake  <ebb9@byu.net>
11421
11422         utimens: work around older Linux failure with symlinks
11423         * lib/utimens.c (lutimensat_works_really): New variable.
11424         (fdutimens, lutimens): Use it to manage kernels that support
11425         nanosecond times on files, but not on symlinks.
11426         Reported by OndÅ™ej Vašík.
11427
11428         utimes: fix configure grammar
11429         * m4/utimes.m4 (gl_FUNC_UTIMES): Delete spurious word.
11430
11431 2009-11-25  Paolo Bonzini  <bonzini@gnu.org>
11432
11433         regex: Fix fastmap for multibyte character ranges.
11434         * lib/regcomp.c (re_compute_fastmap_iter): Add all multibyte lead
11435         characters when a multibyte character range is included.
11436
11437 2009-11-22  Andy Wingo  <wingo@pobox.com>
11438
11439         version-etc: work also with AM_INIT_AUTOMAKE's no-define option
11440         * lib/version-etc.c [!defined PACKAGE]: Define to PACKAGE_TARNAME.
11441
11442 2009-11-24  Bruno Haible  <bruno@clisp.org>
11443
11444         doc: Most *_l functions exist in MacOS X 10.5.
11445         * doc/posix-functions/duplocale.texi: Update platforms list.
11446         * doc/posix-functions/freelocale.texi: Likewise.
11447         * doc/posix-functions/newlocale.texi: Likewise.
11448         * doc/posix-functions/uselocale.texi: Likewise.
11449         * doc/posix-functions/isalnum_l.texi: Likewise.
11450         * doc/posix-functions/isalpha_l.texi: Likewise.
11451         * doc/posix-functions/isblank_l.texi: Likewise.
11452         * doc/posix-functions/iscntrl_l.texi: Likewise.
11453         * doc/posix-functions/isdigit_l.texi: Likewise.
11454         * doc/posix-functions/isgraph_l.texi: Likewise.
11455         * doc/posix-functions/islower_l.texi: Likewise.
11456         * doc/posix-functions/isprint_l.texi: Likewise.
11457         * doc/posix-functions/ispunct_l.texi: Likewise.
11458         * doc/posix-functions/isspace_l.texi: Likewise.
11459         * doc/posix-functions/isupper_l.texi: Likewise.
11460         * doc/posix-functions/iswalnum_l.texi: Likewise.
11461         * doc/posix-functions/iswalpha_l.texi: Likewise.
11462         * doc/posix-functions/iswblank_l.texi: Likewise.
11463         * doc/posix-functions/iswcntrl_l.texi: Likewise.
11464         * doc/posix-functions/iswctype_l.texi: Likewise.
11465         * doc/posix-functions/iswdigit_l.texi: Likewise.
11466         * doc/posix-functions/iswgraph_l.texi: Likewise.
11467         * doc/posix-functions/iswlower_l.texi: Likewise.
11468         * doc/posix-functions/iswprint_l.texi: Likewise.
11469         * doc/posix-functions/iswpunct_l.texi: Likewise.
11470         * doc/posix-functions/iswspace_l.texi: Likewise.
11471         * doc/posix-functions/iswupper_l.texi: Likewise.
11472         * doc/posix-functions/iswxdigit_l.texi: Likewise.
11473         * doc/posix-functions/isxdigit_l.texi: Likewise.
11474         * doc/posix-functions/nl_langinfo_l.texi: Likewise.
11475         * doc/posix-functions/strcasecmp_l.texi: Likewise.
11476         * doc/posix-functions/strcoll_l.texi: Likewise.
11477         * doc/posix-functions/strfmon_l.texi: Likewise.
11478         * doc/posix-functions/strftime_l.texi: Likewise.
11479         * doc/posix-functions/strncasecmp_l.texi: Likewise.
11480         * doc/posix-functions/strxfrm_l.texi: Likewise.
11481         * doc/posix-functions/tolower_l.texi: Likewise.
11482         * doc/posix-functions/toupper_l.texi: Likewise.
11483         * doc/posix-functions/towctrans_l.texi: Likewise.
11484         * doc/posix-functions/towlower_l.texi: Likewise.
11485         * doc/posix-functions/towupper_l.texi: Likewise.
11486         * doc/posix-functions/wcscoll_l.texi: Likewise.
11487         * doc/posix-functions/wcsxfrm_l.texi: Likewise.
11488         * doc/posix-functions/wctrans_l.texi: Likewise.
11489         * doc/posix-functions/wctype_l.texi: Likewise.
11490         * doc/glibc-functions/strptime_l.texi: Likewise.
11491         * doc/glibc-functions/strtod_l.texi: Likewise.
11492         * doc/glibc-functions/strtof_l.texi: Likewise.
11493         * doc/glibc-functions/strtol_l.texi: Likewise.
11494         * doc/glibc-functions/strtold_l.texi: Likewise.
11495         * doc/glibc-functions/strtoll_l.texi: Likewise.
11496         * doc/glibc-functions/strtoul_l.texi: Likewise.
11497         * doc/glibc-functions/strtoull_l.texi: Likewise.
11498         * doc/glibc-functions/wcsftime_l.texi: Likewise.
11499         * doc/glibc-functions/wcstod_l.texi: Likewise.
11500         * doc/glibc-functions/wcstof_l.texi: Likewise.
11501         * doc/glibc-functions/wcstol_l.texi: Likewise.
11502         * doc/glibc-functions/wcstold_l.texi: Likewise.
11503         * doc/glibc-functions/wcstoll_l.texi: Likewise.
11504         * doc/glibc-functions/wcstoul_l.texi: Likewise.
11505         * doc/glibc-functions/wcstoull_l.texi: Likewise.
11506
11507 2009-11-24  Bruno Haible  <bruno@clisp.org>
11508
11509         duplocale: Fix logic bug.
11510         * lib/duplocale.c: Don't include <langinfo.h>.
11511         (_NL_LOCALE_NAME): Remove macro.
11512         (rpl_duplocale): Use setlocale instead of nl_langinfo.
11513         * tests/test-duplocale.c (main): Also test duplocale after uselocale.
11514
11515 2009-11-23  Jim Meyering  <meyering@redhat.com>
11516
11517         test-update-copyright: don't hard-code /usr/bin/perl
11518         * tests/test-update-copyright.sh (YEAR): Use date +%Y, rather than
11519         perl to print the current year.  Gilles Espinasse reported that
11520         the replaced use of perl was hard-coded as /usr/bin/perl.
11521
11522 2009-11-23  Bruno Haible  <bruno@clisp.org>
11523
11524         duplocale: Add support for glibc 2.3.x.
11525         * lib/duplocale.c (rpl_duplocale): Add fallback code for glibc 2.3.x.
11526
11527 2009-11-22  Bruno Haible  <bruno@clisp.org>
11528
11529         vasnprintf: Tiny optimization.
11530         * lib/vasnprintf.c (decimal_point_char): Choose the fast path also on
11531         MacOS X.
11532
11533 2009-11-22  Bruno Haible  <bruno@clisp.org>
11534
11535         Tests for module 'duplocale'.
11536         * modules/duplocale-tests: New file.
11537         * tests/test-duplocale.c: New file.
11538
11539         New module 'duplocale'.
11540         * m4/duplocale.m4: New file.
11541         * lib/locale.in.h (duplocale): New declaration.
11542         * lib/duplocale.c: New file.
11543         * m4/locale_h.m4 (gl_REPLACE_LOCALE_H, gl_LOCALE_MODULE_INDICATOR,
11544         gl_LOCALE_H_DEFAULTS): New macros.
11545         (gl_LOCALE_H): Require gl_LOCALE_H_DEFAULTS. Invoke
11546         gl_CHECK_NEXT_HEADERS unconditionally. Invoke gl_REPLACE_LOCALE_H.
11547         * modules/locale (Makefile.am): Substitute also GNULIB_DUPLOCALE,
11548         REPLACE_DUPLOCALE.
11549         * modules/duplocale: New file.
11550         * doc/posix-functions/duplocale.texi: Mention the glibc bug.
11551
11552 2009-11-22  Bruno Haible  <bruno@clisp.org>
11553
11554         * modules/locale-tests (configure.ac): Test for newlocale function.
11555         * tests/test-locale.c: When the system has extended locale functions,
11556         verify that <locale.h> defines locale_t and LC_GLOBAL_LOCALE.
11557
11558         locale: Make locale_t available when possible.
11559         * lib/locale.in.h: Include <xlocale.h> when it exists.
11560         * m4/locale_h.m4 (gl_LOCALE_H): Check for <xlocale.h> and arrange to
11561         replace <locale.h> if it does not define locale_t but <xlocale.h> does.
11562         * modules/locale (Depends-on): Add extensions.
11563         (Makefile.am): Also substitute HAVE_XLOCALE_H.
11564         * doc/posix-headers/locale.texi: Document the problem with locale_t.
11565
11566 2009-11-22  Bruno Haible  <bruno@clisp.org>
11567
11568         Add comments.
11569         * m4/dirent_h.m4 (gl_DIRENT_H): Add comment about gl_CHECK_NEXT_HEADERS
11570         invocation.
11571         * m4/iconv_h.m4 (gl_ICONV_H): Likewise.
11572         * m4/spawn_h.m4 (gl_SPAWN_H): Likewise.
11573         * m4/wchar.m4 (gl_WCHAR_H): Likewise.
11574
11575 2009-11-22  Bruno Haible  <bruno@clisp.org>
11576
11577         error: account for the possibility of freopen (stdout).
11578         * lib/error.c: Include <unistd.h>.
11579         (flush_stdout): New function, extracted from error and error_at_line.
11580         Determine stdout's fd dynamically.
11581         (error, error_at_line): Invoke flush_stdout.
11582         * m4/error.m4 (gl_PREREQ_ERROR): Require AC_C_INLINE.
11583         * modules/error (Depends-on): Add unistd.
11584
11585 2009-11-22  Bruno Haible  <bruno@clisp.org>
11586
11587         diffseq: Add comment.
11588         * lib/diffseq.h (IF_LINT): Add comment about pitfall.
11589
11590 2009-11-22  Jim Meyering  <meyering@redhat.com>
11591
11592         c-stack: avoid defining an unused static function
11593         * lib/c-stack.c (find_stack_direction): Do not define this function
11594         when it will not be used.
11595
11596         diffseq: avoid spurious gcc warnings
11597         * lib/diffseq.h (IF_LINT2): Define.
11598         (compareseq): Use it to initialize two members of "part".
11599         This avoids two used-uninitialized warnings.
11600
11601 2009-11-21  Jim Meyering  <meyering@redhat.com>
11602
11603         c-stack: avoid "ignoring return value of `write'" warning
11604         * lib/c-stack.c: Include "ignore-value.h".
11605         (die): Explicitly ignore each write return value.
11606         * modules/c-stack (Depends-on): Add ignore-value.
11607
11608 2009-11-21  Bruno Haible  <bruno@clisp.org>
11609
11610         diffseq: reduce scope of variable 'best'.
11611         * lib/diffseq.h (diag) [USE_HEURISTIC]: Reduce scope of 'best'
11612         variable, earlier used for two different purposes.
11613
11614 2009-11-21  Jim Meyering  <meyering@redhat.com>
11615
11616         diffseq: remove useless assignment to "best"
11617         * lib/diffseq.h (diag) [USE_HEURISTIC]: Remove useless "best = 0"
11618         assignment.  At that point "best" is already guaranteed to be zero.
11619
11620 2009-11-20  Eric Blake  <ebb9@byu.net>
11621
11622         build: mention ftp redirector in release announcements
11623         * top/maint.mk (gnu_rel_host, url_dir_list): Provide defaults for
11624         values that used to come from cfg.mk; mention FTP redirect URL.
11625         * build-aux/announce-gen: Mention the mirror list.
11626         Suggested by Karl Berry.
11627
11628         nanosleep: improve port to mingw
11629         * lib/nanosleep.c (rpl_nanosleep): Reject invalid arguments.
11630         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Incorporate LIBSOCKET into
11631         LIB_NANOSLEEP, but only when needed.
11632         * modules/select (Link): Document LIBSOCKET.
11633         * m4/select.m4 (gl_FUNC_SELECT): Ensure LIBSOCKET is defined early
11634         enough.
11635
11636         nanosleep: work around cygwin bug
11637         * lib/nanosleep.c (rpl_nanosleep) [HAVE_BUG_BIG_NANOSLEEP]:
11638         Fix logic bug when nanosleep fails.  Work around cygwin 1.5.x
11639         bug.
11640         (getnow): Delete, not needed.
11641         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): No longer require
11642         LIB_CLOCK_GETTIME.
11643         * modules/nanosleep (Depends-on): Add intprops and verify.  Drop
11644         clock-time, gettime.
11645         * doc/posix-functions/nanosleep.texi (nanosleep): Document the
11646         bug.
11647         * modules/nanosleep-tests: New test.
11648         * tests/test-nanosleep.c: New file.
11649
11650         sleep: work around cygwin bug
11651         * lib/sleep.c (rpl_sleep): Work around the bug.
11652         * m4/sleep.m4 (gl_FUNC_SLEEP): Detect the bug.
11653         (gl_PREREQ_SLEEP): Delete unused macro.
11654         * modules/sleep (Depends-on): Add verify.
11655         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add default.
11656         * modules/unistd (Makefile.am): Substitute witness.
11657         * lib/unistd.in.h (sleep): Update prototype.
11658         * doc/posix-functions/sleep.texi (sleep): Document the bug.
11659         * tests/test-sleep.c (main) [HAVE_DECL_ALARM]: Test it.
11660         * modules/sleep-tests (Depends-on): Check for alarm.
11661
11662 2009-11-20  Jim Meyering  <meyering@redhat.com>
11663
11664         maint.mk: improve sc_prohibit_magic_number_exit
11665         * top/maint.mk (sc_prohibit_magic_number_exit): Tighten regexp
11666         so it does not match uses like System.exit(1).
11667         Add comments showing how to correct all offenders.
11668
11669 2009-11-19  Eric Blake  <ebb9@byu.net>
11670
11671         xalloc-die-tests: add missing library
11672         * modules/xalloc-die-tests (Makefile.am): Add LDADD line.
11673
11674         test-xvasprintf: silence compiler warnings
11675         * tests/test-xvasprintf.c (test_xvasprintf, test_xasprintf): Mask
11676         empty string from gcc.
11677
11678 2009-11-19  Jim Meyering  <meyering@redhat.com>
11679
11680         xfreopen: new module, from coreutils
11681         * modules/xfreopen: New module.
11682         * lib/xfreopen.c: New file.
11683         * lib/xfreopen.h: New file.
11684         * MODULES.html.sh (File stream based Input/Output"): Add it.
11685
11686 2009-11-19  Eric Blake  <ebb9@byu.net>
11687
11688         manywarnings: depend on warnings
11689         * modules/manywarnings (Depends-on): Add warnings.
11690
11691         build: avoid compiler warnings
11692         * lib/select.c (rpl_select): Delete unused variable.
11693         * lib/setsockopt.c (rpl_setsockopt): Avoid incompatible pointer.
11694
11695 2009-11-18  Eric Blake  <ebb9@byu.net>
11696
11697         tests: avoid false negative with --with-packager
11698         * tests/test-version-etc.sh: Discard packager information.
11699         * tests/test-argp-version-etc-1.sh: Likewise.
11700         Reported by Mike Frysinger.
11701
11702         utimens: fix regression on Solaris
11703         * m4/utimens.m4 (gl_UTIMENS): Check for BSD bug.
11704         * lib/utimens.c (fdutimens): Revert 2009-11-08 change; Solaris 10
11705         can only change fd timestamps via futimesat.  Instead, use an
11706         additional witness macro to avoid BSD bug.
11707         Reported by Jim Meyering.
11708
11709 2009-11-17  Eric Blake  <ebb9@byu.net>
11710
11711         usleep: use it to simplify tests
11712         * modules/stat-time-tests (Depends-on): Add usleep.
11713         (configure.ac): Drop usleep check.
11714         * modules/chown-tests (Depends-on, configure.ac): Likewise.
11715         * modules/lchown-tests (Depends-on, configure.ac): Likewise.
11716         * modules/fdutimensat-tests (Depends-on, configure.ac): Likewise.
11717         * modules/futimens-tests (Depends-on, configure.ac): Likewise.
11718         * modules/openat-tests (Depends-on, configure.ac): Likewise.
11719         * modules/utimens-tests (Depends-on, configure.ac): Likewise.
11720         * modules/utimensat-tests (Depends-on, configure.ac): Likewise.
11721         * modules/pipe-filter-gi-tests (Depends-on, configure.ac):
11722         Likewise.
11723         * tests/test-chown.h (nap): Rely on nicer usleep semantics.
11724         * tests/test-lchown.h (nap): Likewise.
11725         * tests/test-pipe-filter-gi2-main.c (small_nap): Likewise.
11726         * tests/test-stat-time.c (nap): Likewise.
11727         * tests/test-utimens-common.h (nap): Update comments.
11728
11729         usleep: new module
11730         * modules/usleep: New file.
11731         * m4/usleep.m4 (gl_FUNC_USLEEP): Likewise.
11732         * lib/usleep.c (usleep): Likewise.
11733         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add defaults.
11734         * modules/unistd (Makefile.am): Substitute witnesses.
11735         * lib/unistd.in.h (usleep): Add declaration.
11736         * doc/pastposix-functions/usleep.texi (usleep): Document this.
11737         * MODULES.html.sh (Date and time): Likewise.
11738         * modules/usleep-tests (Depends-on): New test.
11739         * tests/test-usleep.c: New file.
11740
11741         chown: work around OpenBSD bug
11742         * lib/chown.c (rpl_chown): Work around the bug.
11743         * lib/lchown.c (rpl_lchown): Attempt to do likewise.
11744         * m4/chown.m4 (gl_FUNC_CHOWN): Test for ctime bug.
11745         * m4/lchown.m4 (gl_FUNC_LCHOWN): Check for lchmod.
11746         * modules/chown (Depends-on): Add stdbool.
11747         * modules/lchown (Depends-on): Likewise.
11748         * doc/posix-functions/chown.texi (chown): Document the bug.
11749         * doc/posix-functions/lchown.texi (lchown): Likewise.
11750         * tests/test-lchown.h (test_chown): Relax test.
11751
11752         mkstemp: avoid conflict with C++ keyword template
11753         * lib/mkdtemp.c (mkdtemp): Change spelling of template.
11754         * lib/mkostemp.c (mkostemp): Likewise.
11755         * lib/mkostemps.c (mkostemps): Likewise.
11756         * lib/mkstemp.c (mkstemp): Likewise.
11757         * lib/mkstemps.c (mkstemps): Likewise.
11758
11759         xalloc-die-tests: optimize
11760         * tests/test-xalloc-die.sh: Reduce number of processes.
11761
11762 2009-11-17  Simon Josefsson  <simon@josefsson.org>
11763
11764         * gnulib-tool: Support LGPLv3+ licenses in module files.  Tiny
11765         patch from ludo@gnu.org (Ludovic Courtès).
11766
11767 2009-11-17  Jim Meyering  <meyering@redhat.com>
11768
11769         version-etc: use proper license string
11770         * modules/version-etc (License): Use LGPL, not LGPLv3+.
11771         * modules/version-etc-fsf: Likewise.
11772
11773 2009-11-17  Simon Josefsson  <simon@josefsson.org>
11774
11775         * tests/test-xalloc-die.sh: Add license.  Check that nothing is
11776         printed to stdout.  Deal with EOL differences.
11777
11778 2009-11-17  Eric Blake  <ebb9@byu.net>
11779
11780         unsetenv: work around Solaris bug
11781         * m4/setenv.m4 (gl_FUNC_UNSETENV): Check for bug.
11782         * lib/unsetenv.c (rpl_unsetenv): Work around it.
11783         Reported by Jim Meyering.
11784
11785         vasnprintf: avoid compiler warnings
11786         * lib/vasnprintf.c (VASNPRINTF): Avoid shadowing our own local
11787         variables.
11788         * lib/printf-args.c (PRINTF_FETCHARGS): Avoid type mismatch.
11789
11790 2009-11-17  Simon Josefsson  <simon@josefsson.org>
11791
11792         * modules/xalloc-die-tests (Makefile.am): Drop XFAIL_TESTS
11793         settings since xalloc-die is no longer the self test,
11794         xalloc-die.sh is.
11795
11796 2009-11-17  Jim Meyering  <meyering@redhat.com>
11797
11798         test-xalloc-die.sh: make the code agree with the commit log
11799         * tests/test-xalloc-die.sh: Put "." at the front of $PATH, not
11800         at the end, just in case you happen to have a test-xalloc-die
11801         program in some other PATH directory.
11802
11803         test-xalloc-die.sh: fix a portability bug
11804         * tests/test-xalloc-die.sh: Do not invoke via ./test-xalloc-die.
11805         Instead, set PATH to start with "." and invoke via "test-xalloc-die".
11806         Otherwise, argv[0] (as often seen in diagnostics) would be too
11807         system-dependent, sometimes with, and sometimes without the leading "./".
11808
11809         version-etc-fsf: relax license to LGPLv3+
11810         * modules/version-etc-fsf (License): Relax license.
11811
11812 2009-11-16  Eric Blake  <ebb9@byu.net>
11813
11814         xalloc-die-tests: avoid printing null pointer
11815         * modules/xalloc-die-tests (Files, Makefile.am): Wrap execution in
11816         shell script.
11817         * tests/test-xalloc-die.c (program_name): Declare.
11818         * tests/test-xalloc-die.sh (tmpfiles): New file.
11819
11820         setenv, unsetenv: work around various bugs
11821         * lib/setenv.c (setenv) [!HAVE_SETENV]: Resync from glibc.
11822         (setenv) [HAVE_SETENV]: Work around bugs.
11823         * lib/unsetenv.c (unsetenv) [HAVE_UNSETENV]: Work around bugs.
11824         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE, gl_FUNC_UNSETENV): Check
11825         for bugs.
11826         (gl_FUNC_SETENV): Write in terms of gl_FUNC_SETENV_SEPARATE.
11827         * m4/environ.m4 (gl_ENVIRON): Avoid expand-before-require.
11828         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Update defaults.
11829         * modules/stdlib (Makefile.am): Update substitutions.
11830         * lib/stdlib.in.h (setenv, unsetenv): Update prototypes.
11831         * doc/posix-functions/setenv.texi (setenv): Document the bugs.
11832         * doc/posix-functions/unsetenv.texi (unsetenv): Likewise.
11833         * modules/setenv-tests: New test.
11834         * modules/unsetenv-tests: Likewise.
11835         * tests/test-setenv.c: New file.
11836         * tests/test-unsetenv.c: Likewise.
11837
11838 2009-11-16  Jim Meyering  <meyering@redhat.com>
11839
11840         version-etc: relax license to LGPLv3+
11841         * modules/version-etc (License): Relax license.
11842
11843         better AC_REQUIRE expanded-before-required-warning avoidance
11844         * m4/chown.m4 (gl_FUNC_CHOWN, gl_FUNC_CHOWN_FOLLOWS_SYMLINK): Define
11845         with AC_DEFUN_ONCE, rather than AC_DEFUN, to avoid AC_REQUIRE warnings.
11846         Suggested by Eric Blake.  This change also reverts commit 1b712ba8,
11847         which is no longer needed.
11848
11849 2009-11-16  Eric Blake  <ebb9@byu.net>
11850
11851         test-freading: clean up temporary file
11852         * tests/test-freading.c (main): Remove file on success, and use
11853         ASSERT more liberally.
11854         Reported by Jim Meyering.
11855
11856 2009-11-16  Jim Meyering  <meyering@redhat.com>
11857
11858         avoid new AC_REQUIRE expanded-before-required warnings
11859         * modules/chown (configure.ac): Require gl_FUNC_CHOWN, rather than
11860         merely using it.
11861         * modules/euidaccess (configure.ac): Likewise for gl_FUNC_EUIDACCESS.
11862         * modules/faccessat (configure.ac): Likewise for gl_FUNC_FACCESSAT.
11863
11864 2009-11-15  Simon Josefsson  <simon@josefsson.org>
11865
11866         * tests/test-xalloc-die.c: New file.
11867         * modules/xalloc-die-tests: New file.
11868         * gnulib-tool (func_emit_tests_Makefile_am): Also initialize
11869         XFAIL_TESTS so it can be appended by modules.
11870
11871 2009-11-15  Simon Josefsson  <simon@josefsson.org>
11872
11873         * lib/gc-pbkdf2-sha1.c: Remove comments from RFC 2898.  Reported
11874         by Vladimir 'phcoder' Serbinenko <phcoder@gmail.com>.
11875
11876 2009-11-14  Eric Blake  <ebb9@byu.net>
11877
11878         fnmatch: avoid compiler warning
11879         * lib/fnmatch_loop.c (NEW_PATTERN): Coerce addition to unsigned,
11880         to silence compiler warning about mismatch signedness in ?:.
11881         Reported by Robert Millan.
11882
11883         intprops: add double-inclusion guard
11884         * lib/intprops.h: Allow idempotent includes.
11885         Suggested by Bruce Korb.
11886
11887         openat: detect Solaris fchownat bug
11888         * lib/fchownat.c (rpl_fchownat): Work around Solaris bug.  Avoid
11889         penalizing glibc chownat when only lchownat is broken.
11890         * m4/openat.m4 (gl_FUNC_FCHOWNAT): Replace fchownat if there are
11891         trailing slash bugs.
11892         * doc/posix-functions/fchownat.texi (fchownat): Document the bug.
11893         * modules/openat-tests (Files): Include more files.
11894         (Depends-on): Add mgetgroups, sleep, stat-time.
11895         (configure.ac): Add additional checks.
11896         (Makefile.am): Build new test.
11897         * tests/test-fchownat.c: New file.
11898
11899         lchown: detect Solaris and FreeBSD bug
11900         * lib/lchown.c (rpl_lchown): Work around bug.
11901         * m4/lchown.m4 (gl_FUNC_LCHOWN): Check for trailing slash bugs.
11902         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witness.
11903         * modules/unistd (Makefile.am): Populate it.
11904         * lib/unistd.in.h (lchown): Update declaration.
11905         * doc/posix-functions/lchown.texi (lchown): Document the bug.
11906         * modules/lchown-tests: New file.
11907         * tests/test-lchown.h (test_lchown): Likewise.
11908         * tests/test-lchown.c (main): Likewise.
11909
11910         chown: detect Solaris and FreeBSD bug
11911         * lib/chown.c (rpl_chown): Work around bug.
11912         * m4/chown.m4 (gl_FUNC_CHOWN): Check for trailing slash bugs.
11913         (gl_PREREQ_CHOWN): Delete.
11914         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witness.
11915         * modules/unistd (Makefile.am): Populate it.
11916         * lib/unistd.in.h (chown): Update declaration.
11917         * lib/lchown.c (chown): Update client.
11918         * modules/lchown (Depends-on): Add lstat.
11919         * doc/posix-functions/chown.texi (chown): Document the bug.
11920         * doc/posix-functions/getgroups.texi (getgroups): Document
11921         getgroups pitfall.
11922         * modules/chown-tests: New file.
11923         * tests/test-chown.h (test_chown): Likewise.
11924         * tests/test-chown.c (main): Likewise.
11925
11926 2009-11-14  Robert Millan  <rmh.grub@aybabtu.com>  (tiny change)
11927
11928         gnulib-tool: correctly detect absence of m4 directories
11929         * gnulib-tool: Avoid extra newline on data passed to wc -l.
11930
11931 2009-11-14  Jim Meyering  <meyering@redhat.com>
11932
11933         maint.mk: Prohibit inclusion of "xalloc.h" without use.
11934         * top/maint.mk (sc_prohibit_close_stream_without_use): New rule.
11935
11936 2009-11-14  John W. Eaton  <jwe@gnu.org>
11937
11938         strftime.h: wrap funtion declaration in extern "C" block
11939         * lib/strftime.h (nstrftime) [__cplusplus]: Wrap declaration.
11940
11941 2009-11-13  Eric Blake  <ebb9@byu.net>
11942
11943         getgroups: avoid compiler warning
11944         * lib/getgroups.c (rpl_getgroups): Delete shadowed variable.
11945
11946         getgroups: work around FreeBSD bug
11947         * lib/getgroups.c (rpl_getgroups): Work around the bug.
11948         * m4/getgroups.m4 (gl_FUNC_GETGROUPS): Detect the bug.
11949         * doc/posix-functions/getgroups.texi (getgroups): Document it.
11950         * tests/test-getgroups.c (main): Fix buffer overrun.
11951
11952         getgroups: avoid compilation failure
11953         * lib/getgroups.c (includes): Include <stdint.h> for SIZE_MAX.
11954         * modules/getgroups (Depends-on): Add stdint.
11955
11956 2009-11-13  Jim Meyering  <meyering@redhat.com>
11957
11958         test-getgroups: avoid compilation failure
11959         * tests/test-getgroups.c: Include <stdint.h> for use of SIZE_MAX.
11960
11961 2009-11-13  Eric Blake  <ebb9@byu.net>
11962
11963         mgetgroups: new module, taken from coreutils
11964         * modules/mgetgroups: New file.
11965         * lib/mgetgroups.h: Likewise.
11966         * lib/mgetgroups.c (mgetgroups): Likewise.
11967         * m4/mgetgroups.m4 (gl_MGETGROUPS): Likewise.
11968         * MODULES.html.sh (Users and groups): Mention it.
11969
11970         getgroups: don't expose GETGROUPS_T to user
11971         * lib/getgroups.c (rpl_getgroups): Change signature.  Copy array
11972         an element at a time if GETGROUPS_T is wrong size.
11973         * lib/getugroups.h (getugroups): Change signature.
11974         * lib/unistd.in.h (getgroups): Likewise.
11975         * m4/getgroups.m4 (gl_FUNC_GETGROUPS): Use replacement if
11976         signature needs fixing.
11977         * m4/getugroups.m4 (gl_GETUGROUPS): No longer need
11978         AC_TYPE_GETGROUPS.
11979         * modules/group-member (Depends-on): Add getgroups.
11980         * lib/group-member.c (group_info, get_group_info): Use gid_t.
11981         (group_member): Rely on getgroups replacement.
11982         * lib/getugroups.c (getugroups): Use gid_t.
11983         * tests/test-getgroups.c (main): Likewise.
11984         * NEWS: Mention the signature change.
11985         * doc/posix-functions/getgroups.texi (getgroups): Mention the
11986         problem with signature.
11987         * doc/glibc-functions/setgroups.texi (setgroups): Mention that
11988         GETGROUPS_T is still useful for setgroups.
11989
11990         getgroups, getugroups: provide stubs for mingw
11991         * lib/getgroups.c (getgroups): Provide ENOSYS stub for mingw.
11992         * lib/getugroups.c (getugroups): Likewise.
11993         * m4/getgroups.m4 (gl_FUNC_GETGROUPS): Check for missing
11994         function.  Modernize replacement scheme.
11995         (gl_PREREQ_GETGROUPS): Delete.
11996         * m4/getugroups.m4 (gl_GETUGROUPS): Check for <grp.h>.
11997         * modules/getgroups (configure.ac): Declare witness.
11998         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add default.
11999         * modules/unistd (Depends-on): Substitute witness.
12000         * lib/unistd.in.h (getgroups): Declare replacement.
12001
12002         getgroups: avoid calling exit
12003         * modules/getgroups (Depends-on): Add malloc-posix and unistd,
12004         drop xalloc.
12005         * modules/getgroups-tests (Depends-on, Makefile.am): Drop unneeded
12006         dependencies.
12007         * lib/getgroups.c (rpl_getgroups): Fail with ENOMEM rather than
12008         exiting, in the rare case of malloc failure.
12009
12010         getgroups: fix logic error
12011         * lib/getgroups.c (rpl_getgroups): Don't fail if current process
12012         has more than 20 groups.
12013         * modules/getgroups-tests: New test.
12014         * tests/test-getgroups.c: New file.
12015
12016 2009-11-13  Simon Josefsson  <simon@josefsson.org>
12017
12018         * tests/test-base64.c: Improve.
12019
12020 2009-11-13  Simon Josefsson  <simon@josefsson.org>
12021
12022         * tests/test-xvasprintf.c: Fix memory leak, suggested by Eric
12023         Blake <ebb9@byu.net>.
12024
12025 2009-11-13  Simon Josefsson  <simon@josefsson.org>
12026
12027         * tests/test-xvasprintf.c: Add %s%s related checks.
12028
12029 2009-11-12  Eric Blake  <ebb9@byu.net>
12030
12031         version-etc: match standards.texi style
12032         * lib/version-etc.c (emit_bug_reporting_address): Drop periods,
12033         and use <> only for URLs.
12034
12035 2009-11-10  Kamil Dudka  <kdudka@redhat.com>
12036
12037         fts: do not fail on a submount during traversal
12038         * lib/fts.c (fts_build): Read the stat info again after opening
12039         a directory if the FTS_TIGHT_CYCLE_CHECK flag is set.
12040         Original report at http://bugzilla.redhat.com/501848.
12041
12042 2009-11-12  Jim Meyering  <meyering@redhat.com>
12043
12044         bootstrap: sync from coreutils
12045         * build-aux/bootstrap (bootstrap_epilogue): New function.
12046         Use git_modules_config in one more place.  This make bootstrap's
12047         --gnulib-srcdir option more useful for testing.
12048
12049         bootstrap: generalize autoheader check
12050         * build-aux/bootstrap: Look for AC_CONFIG_HEADER as well as
12051         AC_CONFIG_HEADERS.
12052
12053 2009-11-11  Eric Blake  <ebb9@byu.net>
12054
12055         mkfifoat: use new modules for Solaris and BSD bugs
12056         * m4/mkfifoat.m4 (gl_FUNC_MKFIFOAT): Simplify.
12057         * lib/mkfifoat.c (mknodat): Split...
12058         * lib/mknodat.c (mknodat): ...into new file.
12059         * modules/mkfifoat (Files): Ship new file.
12060         (Depends-on): Add mkfifo, mknod.
12061         * modules/mkfifoat-tests (Files): Reuse mkfifo tests.
12062         (Depends-on): Add symlink.
12063         * tests/test-mkfifoat.c (main): Enhance test.  Drop portions now
12064         redundant with test_mkfifo.h.
12065         (do_mkfifoat, do_mknodat): New helpers.
12066
12067         mknod: new module
12068         * modules/mknod: New file.
12069         * m4/mknod.m4 (gl_FUNC_MKNOD): Likewise.
12070         * lib/mknod.c (mknod): Likewise.
12071         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Set witness
12072         defaults.
12073         * modules/sys_stat (Makefile.am): Substitute them.
12074         * lib/sys_stat.in.h (mknod): Declare replacement.
12075         * MODULES.html.sh (Support for systems lacking POSIX:2008):
12076         Document it.
12077         * doc/posix-functions/mknod.texi (mknod): Likewise.
12078         * modules/mknod-tests: New test.
12079         * tests/test-mknod.c: Likewise.
12080
12081         mkfifo: new module
12082         * modules/mkfifo: New file.
12083         * m4/mkfifo.m4 (gl_FUNC_MKFIFO): Likewise.
12084         * lib/mkfifo.c (mkfifo): Likewise.
12085         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Set witness
12086         defaults.
12087         * modules/sys_stat (Makefile.am): Substitute them.
12088         * lib/sys_stat.in.h (mkfifo): Declare replacement.
12089         * MODULES.html.sh (Support for systems lacking POSIX:2008):
12090         Document it.
12091         * doc/posix-functions/mkfifo.texi (mkfifo): Likewise.
12092         * modules/mkfifo-tests: New test.
12093         * tests/test-mkfifo.h (test_mkfifo): New file, borrowed in part
12094         from test-mkfifoat.c.
12095         * tests/test-mkfifo.c: New file.
12096
12097         readlink: detect FreeBSD bug
12098         * m4/readlink.m4 (gl_FUNC_READLINK): Also detect FreeBSD bug with
12099         slash on symlink.
12100         * doc/posix-functions/readlink.texi (readlink): Document the bug.
12101         * tests/test-readlink.h (test_readlink): Enhance test.
12102
12103         symlink: detect FreeBSD bug
12104         * m4/symlink.m4 (gl_FUNC_SYMLINK): Also detect FreeBSD bug with
12105         slash on symlink.
12106         * doc/posix-functions/symlink.texi (symlink): Document the bug.
12107         * tests/test-symlink.h (test_symlink): Enhance test.
12108
12109 2009-11-10  Eric Blake  <ebb9@byu.net>
12110
12111         link: detect FreeBSD bug
12112         * m4/link.m4 (gl_FUNC_LINK): Also detect FreeBSD bug with slash on
12113         symlink.
12114         * doc/posix-functions/link.texi (link): Document the bug.
12115         * tests/test-link.h (test_link): Enhance test.
12116         * tests/test-linkat.c (main): Update caller.
12117
12118         unlink, remove: detect FreeBSD bug
12119         * m4/unlink.m4 (gl_FUNC_UNLINK): Also detect FreeBSD bug with
12120         slash on symlink.
12121         * doc/posix-functions/unlink.texi (unlink): Document the bug.
12122         * doc/posix-functions/remove.texi (remove): Likewise.
12123         * tests/test-unlink.h (test_unlink): Enhance test.
12124         * tests/test-remove.c (main): Likewise.
12125
12126 2009-11-09  Eric Blake  <ebb9@byu.net>
12127
12128         rename: detect FreeBSD bug
12129         * m4/rename.m4 (gl_FUNC_RENAME): Also detect FreeBSD bug with
12130         slash on symlink.
12131         * modules/renameat-tests (Depends-on): Add filenamecat.
12132         * tests/test-rename.h (test_rename): Allow one more errno.
12133         * tests/test-renameat.c (main): Likewise.
12134         * doc/posix-functions/rename.texi (rename): Document the bug.
12135
12136         open: detect FreeBSD bug
12137         * m4/open.m4 (gl_FUNC_OPEN): Also detect FreeBSD bug with slash on
12138         symlink.
12139         * doc/posix-functions/open.texi (open): Document the bug.
12140         * doc/posix-functions/utimes.texi (utimes): Likewise.
12141         * tests/test-open.h (test_open): Add parameters, and test symlink
12142         handling.
12143         * tests/test-open.c (main): Adjust caller.
12144         * tests/test-fcntl-safer.c (main): Likewise.
12145         * modules/open-tests (Depends-on): Add stdbool, symlink.
12146         * modules/fcntl-safer-tests (Depends-on): Likewise.
12147         * tests/test-openat.c (main): Add test-open tests.
12148
12149         stat: detect FreeBSD bug
12150         * m4/stat.m4 (gl_FUNC_STAT): Also detect FreeBSD bug with slash on
12151         symlink.
12152         * doc/posix-functions/stat.texi (stat): Document the bug.
12153         * tests/test-stat.h (test_stat_func): Add argument.
12154         * tests/test-stat.c (main): Adjust caller.
12155         * tests/test-fstatat.c (main): Likewise.
12156         * modules/stat-tests (Depends-on): Add stdbool, symlink.
12157         Reported by Jim Meyering.
12158
12159 2009-11-09  James Youngman  <jay@gnu.org>
12160
12161         strftime.c: include ignore-value.h only when FPRINTFTIME is defined
12162         * lib/strftime.c: Correct placement of #include "ignore-value.h".
12163
12164 2009-11-08  Jim Meyering  <meyering@redhat.com>
12165
12166         utimens: remove invalid futimesat call
12167         * lib/utimens.c (fdutimens): Remove invalid futimesat call.
12168         It used the file descriptor of the target file as the DIR_FD
12169         parameter and NULL as the file name.  That caused failure with
12170         errno == EFAULT on FreeBSD-8.0-rc2
12171
12172 2009-11-07  Eric Blake  <ebb9@byu.net>
12173
12174         fflush, freadseek: use fseeko, not fseek
12175         * lib/fflush.c (clear_ungetc_buffer_preserving_position)
12176         (clear_ungetc_buffer): Avoid potential problems on large files.
12177         * lib/freadseek.c (freadseek): Likewise.
12178         * modules/freadseek (Depends-on): Add fseeko.
12179         * modules/fseek (configure.ac): Set a witness.
12180         * tests/test-fflush.c (main): Use fseeko.
12181         * tests/test-fpurge.c (fseek): Disable link warning.
12182         * tests/test-freadable.c (fseek): Likewise.
12183         * tests/test-freading.c (fseek): Likewise.
12184         * tests/test-fseeko.c (fseek): Likewise.
12185         * tests/test-ftell.c (fseek): Likewise.
12186         * tests/test-ftello.c (fseek): Likewise.
12187         * tests/test-fwritable.c (fseek): Likewise.
12188         * tests/test-fwriting.c (fseek): Likewise.
12189
12190 2009-11-06  Simon Josefsson  <simon@josefsson.org>
12191
12192         * modules/memchr (Depends-on): Drop getpagesize dependency.
12193
12194 2009-11-06  Simon Josefsson  <simon@josefsson.org>
12195
12196         * build-aux/pmccabe2html: Disable execute bit.  Suggested by
12197         Reported by Ludovic Courtès.
12198         * build-aux/pmccabe2html: Improve example usage.
12199         * build-aux/pmccabe2html: Drop #! header.  Doc fix.
12200
12201 2009-11-06  Jim Meyering  <meyering@redhat.com>
12202
12203         do-release-commit-and-tag: New module.
12204         Automate the release-commit and tag process.
12205         * build-aux/do-release-commit-and-tag: New script, from coreutils.
12206         * modules/do-release-commit-and-tag: New file.
12207         * MODULES.html.sh (Support for maintaining and releasing): Add it.
12208
12209 2009-11-06  Simon Josefsson  <simon@josefsson.org>
12210
12211         * modules/select-tests (test_select_LDADD): Add $(INET_PTON_LIB)
12212         because test-select.c uses inet_pton.
12213
12214 2009-11-06  Simon Josefsson  <simon@josefsson.org>
12215
12216         * m4/getaddrinfo.m4: Add content of INET_NTOP_LIB to
12217         GETADDRINFO_LIB.  Bump serial number.
12218         * modules/getaddrinfo (Link): Only mention GETADDRINFO_LIB again.
12219         Suggested by Eric Blake <ebb9@byu.net>.
12220
12221 2009-11-05  Eric Blake  <ebb9@byu.net>
12222
12223         strtod: detect darwin bug
12224         * m4/strtod.m4 (gl_FUNC_STRTOD): Filter out darwin bug on "nan(".
12225         Reported by Leo Davis.
12226
12227         freopen-safer: new module
12228         * modules/freopen-safer: New module.
12229         * m4/stdio-safer.m4 (gl_FREOPEN_SAFER): New macro.
12230         * lib/freopen-safer.c (freopen_safer): New file.
12231         * lib/stdio-safer.h (freopen_safer): New declaration.
12232         * lib/stdio--.h (freopen): New override.
12233         * MODULES.html.sh (File stream based Input/Output): Mention it.
12234         * doc/posix-functions/freopen.texi (freopen): Mention pitfalls and
12235         freopen-safer module.
12236         * doc/posix-functions/stderr.texi (stderr): Likewise.
12237         * doc/posix-functions/stdin.texi (stdin): Likewise.
12238         * doc/posix-functions/stdout.texi (stdout): Likewise.
12239         * modules/freopen-safer-tests: New test.
12240         * tests/test-reopen-safer.c: New file.
12241
12242 2009-11-05  Jim Meyering  <meyering@redhat.com>
12243
12244         maint.mk: Prohibit inclusion of "close-stream.h" without use.
12245         * top/maint.mk (sc_prohibit_close_stream_without_use): New rule.
12246
12247 2009-11-05  Simon Josefsson  <simon@josefsson.org>
12248
12249         * modules/pmccabe2html (configure.ac): Check for pmccabe tool.
12250
12251 2009-11-05  Simon Josefsson  <simon@josefsson.org>
12252
12253         * modules/getaddrinfo (Link): Add $(INET_NTOP_LIB).
12254
12255 2009-11-05  Simon Josefsson  <simon@josefsson.org>
12256
12257         Fix link error.
12258         * m4/inet_ntop.m4 (gl_INET_NTOP): Fix test of AC_SEARCH_LIBS result.
12259         * m4/inet_pton.m4 (gl_INET_PTON): Likewise.
12260
12261 2009-11-05  Simon Josefsson  <simon@josefsson.org>
12262
12263         * tests/test-func.c: Also test value of __func__.
12264
12265 2009-11-05  Simon Josefsson  <simon@josefsson.org>
12266
12267         * tests/test-sys_socket.c: Use smaller constant value, sa_family_t
12268         may be an 8-bit type.  Reported by Bruno Haible <bruno@clisp.org>.
12269
12270 2009-11-05  Bruno Haible  <bruno@clisp.org>
12271
12272         Fix link error.
12273         * m4/inet_ntop.m4 (gl_INET_NTOP): Fix test of AC_SEARCH_LIBS result.
12274         * m4/inet_pton.m4 (gl_INET_PTON): Likewise.
12275         Reported by Brad Hards <bradh@frogmouth.net> via Simon Josefsson.
12276
12277 2009-11-05  Bruno Haible  <bruno@clisp.org>
12278
12279         Tests for module 'inet_pton'.
12280         * modules/inet_pton-tests: New file.
12281         * tests/test-inet_pton.c: New file.
12282
12283 2009-11-05  Bruno Haible  <bruno@clisp.org>
12284
12285         Tests for module 'inet_ntop'.
12286         * modules/inet_ntop-tests: New file.
12287         * tests/test-inet_ntop.c: New file.
12288
12289 2009-11-04  Eric Blake  <ebb9@byu.net>
12290
12291         stdlib-safer: wrap all mkstemp variants
12292         * modules/mkostemp (configure.ac): Set witness.
12293         * modules/mkostemps (configure.ac): Likewise.
12294         * modules/mkstemps (configure.ac): Likewise.
12295         * lib/stdlib-safer.h (mkostemp_safer, mkostemps_safer)
12296         (mkstemps_safer): Wrap more functions.
12297         * lib/stdlib--.h (mkostemp, mkostemps, mkstemps): Default the
12298         wrapping.
12299         * lib/mkstemp-safer.c (mkostemp_safer, mkostemps_safer)
12300         (mkstemps_safer): Implement the wrappers.
12301
12302         mkstemps, mkostemps: new modules
12303         * modules/mkostemps: New module.
12304         * modules/mkstemps: Likewise.
12305         * lib/mkostemps.c (mkostemps): New file.
12306         * lib/mkstemps.c (mkstemps): Likewise.
12307         * m4/mkostemps.m4 (gl_FUNC_MKOSTEMPS): Likewise.
12308         * m4/mkstemps.m4 (gl_FUNC_MKSTEMPS): Likewise.
12309         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Add witnesses.
12310         * modules/stdlib (Makefile.am): Substitute them.
12311         * lib/stdlib.in.h (mkostemps, mkstemps): Declare them.
12312         * doc/glibc-functions/mkstemps.texi (mkstemps): New file.
12313         * doc/glibc-functions/mkostemps.texi (mkostemps): Likewise.
12314         * doc/gnulib.texi (Glibc stdlib.h): Include them.
12315         * MODULES.html.sh (File system functions): Mention them.
12316
12317         tempname: resync from glibc
12318         * lib/tempname.c (__gen_tempname): Add suffixlen argument.  Use
12319         same values for __GT_FILE as glibc.  Abort even when assertions
12320         are disabled.
12321         * lib/tempname.h (GT_FILE): Use glibc __GT_FILE, if available, and
12322         match its value otherwise.  Allow idempotent inclusion.
12323         * lib/mkdtemp.c (mkdtemp): Adjust caller.
12324         * lib/mkostemp.c (mkostemp): Likewise.
12325         * lib/mkstemp.c (mkstemp): Likewise.
12326         * lib/tmpfile.c (tmpfile): Likewise.
12327         * NEWS: Document this.
12328
12329         utimens: fix use of futimens on older Linux
12330         * lib/utimens.c (fdutimens): Use updated, rather than original,
12331         timespec to avoid bug in older Linux kernel.
12332         Reported by Simon Josefsson.
12333
12334 2009-11-04  Bruno Haible  <bruno@clisp.org>
12335
12336         Make num_processors more flexible and consistent.
12337         * lib/nproc.h (enum nproc_query): New type.
12338         (num_processors): Add a 'query' argument.
12339         * lib/nproc.c: Include <stdlib.h>, <sched.h>, c-ctype.h.
12340         (num_processors): Add a 'query' argument. Test the value of the
12341         OMP_NUM_THREADS environment variable if requested. On Linux, NetBSD,
12342         mingw, count the number of CPUs available for the current process.
12343         * m4/nproc.m4 (gl_PREREQ_NPROC): Require AC_USE_SYSTEM_EXTENSIONS.
12344         Check for sched_getaffinity and sched_getaffinity_np.
12345         * modules/nproc (Depends-on): Add c-ctype, extensions.
12346         * NEWS: Mention the change.
12347
12348 2009-11-03  Bruno Haible  <bruno@clisp.org>
12349
12350         * NEWS: Document the new library dependencies of inet_ntop, inet_pton.
12351
12352 2009-11-03  Jim Meyering  <meyering@redhat.com>
12353
12354         test-getaddrinfo: avoid compilation failure on FreeBSD 7.2
12355         * tests/test-getaddrinfo.c (simple): Test for EAI_NODATA only
12356         if it is defined.
12357
12358 2009-11-02  Eric Blake  <ebb9@byu.net>
12359
12360         mktime, timegm: share common declaration
12361         * lib/mktime-internal.h: New file.
12362         * lib/mktime.c: Use it rather than open-coding a declaration.
12363         * lib/timegm.c: Likewise.
12364         * modules/mktime (Files): Ship it.
12365         * modules/timegm (Files): Likewise.
12366         Suggested by Bruno Haible.
12367
12368         test-update-copyright: update test to match script changes
12369         * tests/test-update-copyright.sh: Avoid hard-coding perl
12370         location.  Don't update *.bak created by earlier runs.
12371
12372 2009-11-02  Paul Eggert  <eggert@cs.ucla.edu>
12373             Simon Josefsson  <simon@josefsson.org>
12374             Bruno Haible  <bruno@clisp.org>
12375
12376         Fix link error on Solaris 8.
12377         * m4/inet_pton.m4 (gl_INET_PTON): Search for the function inet_pton
12378         also in libnsl. Define also INET_PTON_LIB.
12379         * modules/inet_pton (Link): New section.
12380
12381 2009-11-02  Simon Josefsson  <simon@josefsson.org>
12382             Bruno Haible  <bruno@clisp.org>
12383
12384         * m4/inet_ntop.m4 (gl_INET_NTOP): Define also INET_NTOP_LIB.
12385         * modules/inet_ntop (Link): New section.
12386         Reported by Boyan Kasarov <bkasarov@gmail.com>.
12387
12388 2009-11-02  Eric Blake  <ebb9@byu.net>
12389
12390         maint: avoid compiler warnings in m4 macros
12391         * m4/ungetc.m4 (gl_FUNC_UNGETC_WORKS): Avoid unused variable.
12392         * m4/rmdir.m4 (gl_FUNC_RMDIR): Include correct header.
12393
12394 2009-11-02  Simon Josefsson  <simon@josefsson.org>
12395
12396         * m4/pmccabe2html.m4: Remove file.
12397         * modules/pmccabe2html: Drop pmccabe2html.m4.  Don't call m4
12398         function.  Change maintainer.
12399         * build-aux/pmccabe2html: Use /bin/sh with magic instead of
12400         hard-coding path to awk.  Tiny patch from ludo@gnu.org (Ludovic
12401         Courtès).
12402
12403 2009-10-31  Eric Blake  <ebb9@byu.net>
12404
12405         fseeko: fix m4 regression
12406         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Use modern macro.  Fixes
12407         regression from 2009-10-27.
12408         Reported by Ralf Wildenhues.
12409
12410 2009-10-31  Jim Meyering  <meyering@redhat.com>
12411
12412         inttostr: aesthetics and improved (compile-time) safety
12413         Define inttype_is_signed rather than inttype_is_unsigned,
12414         since the sole use is via "#if inttype_is_signed".
12415         * lib/imaxtostr.c (inttype_is_signed): Define this, rather than
12416         inttype_is_unsigned.
12417         * lib/offtostr.c (inttype_is_signed): Likewise.
12418         * lib/uinttostr.c (inttype_is_signed): Likewise.
12419         * lib/umaxtostr.c (inttype_is_signed): Likewise.
12420         * lib/inttostr.c (inttostr): Use verify to cross-check the
12421         inttype_is_signed value and the signedness of the actual type.
12422         * modules/inttostr (Depends-on): Add verify.
12423
12424 2009-10-30  Eric Blake  <ebb9@byu.net>
12425
12426         build: avoid compiler warnings
12427         * lib/fchmodat.c (lchmod): Mark unused variables.
12428         * lib/getopt.c (_getopt_initialize): Likewise.
12429         * lib/mktime.c (__mktime_internal): Provide prototype.
12430         * lib/inttostr.c (inttostr): Avoid compiler warning even with
12431         older gcc that do not understand #pragma GCC diagnostic.
12432         * lib/uinttostr.c (inttype_is_unsigned): Define.
12433         * lib/umaxtostr.c (inttype_is_unsigned): Likewise.
12434
12435 2009-10-30  Michael Haubenwallner  <michael.haubenwallner@salomon.at>
12436
12437         stat: fix compilation on AIX
12438         * lib/sys_stat.in.h (stat): Work with fact that large files on AIX
12439         only see struct stat64.
12440
12441 2009-10-30  Eric Blake  <ebb9@byu.net>
12442
12443         exclude: make more robust
12444         * lib/exclude.c (excluded_file_name): Abort on unexpected value,
12445         rather than masking a coding bug.
12446         Suggested by Bruno Haible.
12447
12448 2009-10-30  Jim Meyering  <meyering@redhat.com>
12449
12450         perl scripts: remove #!/usr/bin/perl in favor of more portable...
12451         Rather than putting #!/usr/bin/perl on the first line,
12452         start with a variant of what's recommended by "man perlrun" that
12453         invokes the first "perl" program from your shell's search path.
12454         * build-aux/gitlog-to-changelog: Replace #!... as above.
12455         Add a "Local Variables" perl mode setting.
12456         Prompted by a patch from Ludovic Courtès.
12457         Improved by Eric Blake.
12458         * build-aux/useless-if-before-free: Likewise.
12459         * build-aux/announce-gen: Likewise.
12460         * build-aux/update-copyright: Likewise.
12461
12462 2009-10-29  Eric Blake  <ebb9@byu.net>
12463
12464         filenamecat-lgpl: adjust clients
12465         * modules/linkat (Depends-on): Use filenamecat-lgpl, not
12466         filenamecat.
12467         * modules/renameat (Depends-on): Likewise.
12468
12469         filenamecat: split into filenamecat-lgpl
12470         * modules/filenamecat-lgpl: New module.
12471         * modules/filenamecat (Files): Move library-safe files into
12472         filenamecat-lgpl.
12473         (Depends-on): Add filenamecat-lgpl.
12474         (configure.ac): Declare witness.
12475         * lib/filenamecat.h (file_name_concat): Only declare when using
12476         GPL module.
12477         * lib/filenamecat.c (longest_relative_suffix, mfile_name_concat):
12478         Move...
12479         * lib/filenamecat-lgpl.c: ...into new file.
12480         * m4/filenamecat.m4 (gl_FILE_NAME_CONCAT_LGPL): New macro.
12481         (gl_FILE_NAME_CONCAT): Use it.
12482         * MODULES.html.sh (File system functions): Mention new module.
12483
12484         argp: avoid memory leak
12485         * modules/argp (Depends-on): Use dirname-lgpl, not dirname.
12486         * lib/argp-namefrob.h (__argp_base_name): Use last_component, not
12487         base_name, since the latter malloc()s and can call exit().
12488         Leak introduced 2006-07-03.
12489
12490         dirname-lgpl: adjust clients that don't need full dirname
12491         * modules/backupfile (Depends-on): Use dirname-lgpl, not dirname.
12492         * modules/filenamecat (Depends-on): Likewise.
12493         * modules/linkat (Depends-on): Likewise.
12494         * modules/mkancesdirs (Depends-on): Likewise.
12495         * modules/mkdir (Depends-on): Likewise.
12496         * modules/openat (Depends-on): Likewise.
12497         * modules/savewd (Depends-on): Likewise.
12498         * modules/rename (Depends-on): Likewise.
12499         (License): Relax license.
12500         * modules/mkdir-tests (Depends-on): Drop progname.
12501         (Makefile.am): Delete unneeded LDADD.
12502         * modules/rename-tests (Depends-on, Makefile.am): Likewise.
12503
12504         dirname: split into dirname-lgpl
12505         * modules/dirname-lgpl: New module.
12506         * modules/dirname (Files): Move library-safe files into
12507         dirname-lgpl.
12508         (Depends-on): Add dirname-lgpl.
12509         (configure.ac): Declare witness.
12510         * modules/double-slash-root (License): Relax license.
12511         * lib/dirname.h (base_name, dir_name): Only declare when using GPL
12512         module.
12513         * lib/dirname.c (dir_len, mdir_name): Move...
12514         * lib/dirname-lgpl.c: ...into new file.
12515         * lib/basename.c (last_component, base_len): Move...
12516         * lib/basename-lgpl.c: ...into new file.
12517         * m4/dirname.m4 (gl_DIRNAME_LGPL): New macro.
12518         (gl_DIRNAME): Use it.
12519         * MODULES.html.sh (Enhancements for POSIX:2008 functions):
12520         Mention new module.
12521         * modules/dirname-tests (Depends-on): Add progname.
12522         * tests/test-dirname.c (program_name): Delete.
12523
12524         mkdir: make safe for libraries
12525         * modules/mkdir (Depends-on): Drop xalloc.
12526         * lib/mkdir.c (rpl_mkdir): Fail with ENOMEM rather than calling
12527         exit.
12528
12529         tests: avoid some compiler warnings
12530         * tests/test-getaddrinfo.c (simple): Mark static, and allow string
12531         literals.
12532         * tests/test-memchr.c (main): Avoid type mismatch.
12533         * tests/test-arpa_inet.c (main): Avoid unused parameters.
12534         * tests/test-base64.c (main): Likewise.
12535         * tests/test-getdelim.c (main): Likewise.
12536         * tests/test-gethostname.c (main): Likewise.
12537         * tests/test-getline.c (main): Likewise.
12538         * tests/test-netinet_in.c (main): Likewise.
12539         * tests/test-select.c (open_server_socket, main): Likewise.
12540         * tests/test-select-stdin.c (main): Likewise.
12541         * tests/test-sockets.c (main): Likewise.
12542         * tests/test-strsignal.c (main): Likewise.
12543         * tests/test-sys_select.c (main): Likewise.
12544         * tests/test-sys_socket.c (main): Likewise.
12545         * tests/test-u64.c (main): Likewise.
12546         * tests/test-xfprintf-posix.c (main): Likewise.
12547         * tests/test-xvasprintf.c (test_xvasprintf, main): Likewise.
12548
12549         sockets: avoid compiler warning
12550         * lib/sockets.c (gl_sockets_startup): Mark unused parameter.
12551
12552         maint: detect usage(1) and other suspicious exits
12553         * top/maint.mk (sc_prohibit_magic_number_exit): New rule.
12554
12555 2009-10-29  Jim Meyering  <meyering@redhat.com>
12556
12557         timespec: long-to-int truncation could make timespec_cmp malfunction
12558         * lib/timespec.h (timespec_cmp): Do not interpret a difference of
12559         a multiple of 2^32 nanoseconds as no difference.
12560
12561 2009-10-28  Jim Meyering  <meyering@redhat.com>
12562
12563         fprintftime: wrap macro code argument in "do {...} while(0)"
12564         * lib/strftime.c (cpy) [FPRINTFTIME]: The second argument to the
12565         cpy macro must be a statement that can be followed by a semicolon.
12566         Now that the else clause contains a comment and is hence longer
12567         than one line, I require curly braces.  That in turn requires
12568         that we wrap this code block in the standard do...while(0).
12569
12570         fprintftime: remove stray semicolon from previous change
12571         * lib/strftime.c (cpy) [FPRINTFTIME]: Remove trailing semicolon.
12572
12573         fprintftime: avoid a warning about ignored fwrite return value
12574         * lib/strftime.c [FPRINTFTIME]: Include "ignore-value.h".
12575         (cpy) [FPRINTFTIME]: Ignore fwrite failure, even though technically,
12576         that is unsafe.
12577         * modules/fprintftime (Depends-on): Add ignore-value.
12578
12579         exclude: avoid an unwarranted warning
12580         * lib/exclude.c (excluded_file_name): Initialize "rc" before switch.
12581
12582 2009-10-27  Eric Blake  <ebb9@byu.net>
12583
12584         fseek: avoid compilation failure when fflush is replaced
12585         * m4/fseek.m4 (gl_REPLACE_FSEEK): New macro.
12586         * m4/fseeko.m4 (gl_REPLACE_FSEEKO): Also replace fseek, if fseek
12587         module is in use.
12588         * lib/stdio.in.h (GNULIB_FSEEKO): Only poison fseek if fseek
12589         module is not in use; since REPLACE_FSEEK worked otherwise.
12590         (GNULIB_FTELLO): Likewise for ftell.
12591         Reported by Ian Beckwith and others.
12592
12593 2009-10-27  Bruno Haible  <bruno@clisp.org>
12594
12595         * lib/isnan.c (rpl_isnan[fdl]): Repeat the specification declaration.
12596         Reported by Jim Meyering.
12597
12598 2009-10-27  Jim Meyering  <jim@meyering.net>
12599             Bruno Haible  <bruno@clisp.org>
12600
12601         Avoid warning despite dropping the return value of fwrite.
12602         * lib/unicodeio.c: Include ignore-value.h.
12603         (fwrite_success_callback): Explicitly ignore fwrite's return value.
12604         * modules/unicodeio (Depends-on): Add ignore-value.
12605
12606 2009-10-26  Eric Blake  <ebb9@byu.net>
12607
12608         areadlinkat: fix fallback path
12609         * lib/at-func.c (AT_FUNC_NAME): Avoid signed comparison between
12610         pointer and zero.
12611
12612 2009-10-22  Pádraig Brady  <P@draigBrady.com>
12613
12614         Use a better IO block size for modern systems
12615         * lib/copy-file.c (copy_file_preserving): Used a 32KiB malloced buffer.
12616         * lib/md2.c: Likewise.
12617         * lib/md4.c: Likewise.
12618         * lib/md5.c: Likewise.
12619         * lib/sha1.c: Likewise.
12620         * lib/sha256.c: Likewise.
12621         * lib/sha512.c: Likewise.
12622
12623 2009-10-22  Eric Blake  <ebb9@byu.net>
12624
12625         tests: avoid several compiler warnings
12626         * tests/test-getcwd.c (main): Avoid buffer underflow.
12627         * tests/test-getdate.c (main): String literals are not safe with
12628         putenv, so use setenv.  Declare unused argument.
12629         * modules/getdate-tests (Depends-on): Add setenv.
12630         * tests/test-argv-iter.c (main): Declare unused argument.  Avoid
12631         problems with string literals in char *.
12632         * tests/test-hash.c (main): Avoid shadowing declaration.
12633         (insert_new): Treat string literals as char const *.
12634         * tests/test-getopt.h (test_getopt): Likewise.
12635         (getopt_loop): Alter types to minimize casting elsewhere.
12636         * tests/test-getopt_long.h (test_getopt_long, getopt_long_loop)
12637         (test_getopt_long_posix): Likewise.
12638         (do_getopt_long): Add wrapper to minimize casting.
12639         * tests/test-atexit.c (clear_temp_file): Use void.
12640         * tests/test-areadlink-with-size.c (main): Declare unused
12641         arguments.
12642         * tests/test-areadlink.c (main): Likewise.
12643         * tests/test-areadlinkat-with-size.c (main): Likewise.
12644         * tests/test-areadlinkat.c (main): Likewise.
12645         * tests/test-canonicalize-lgpl.c (main): Likewise.
12646         * tests/test-canonicalize.c (main): Likewise.
12647         * tests/test-dirent-safer.c (main): Likewise.
12648         * tests/test-dirname.c (main): Likewise.
12649         * tests/test-dup2.c (main): Likewise.
12650         * tests/test-fchdir.c (main): Likewise.
12651         * tests/test-fcntl-h.c (main): Likewise.
12652         * tests/test-fcntl-safer.c (main): Likewise.
12653         * tests/test-fdopendir.c (main): Likewise.
12654         * tests/test-fdutimensat.c (main): Likewise.
12655         * tests/test-fflush.c (main): Likewise.
12656         * tests/test-filenamecat.c (main): Likewise.
12657         * tests/test-filevercmp.c (main): Likewise.
12658         * tests/test-fopen-safer.c (main): Likewise.
12659         * tests/test-fopen.c (main): Likewise.
12660         * tests/test-fpending.c (main): Likewise.
12661         * tests/test-fpurge.c (main): Likewise.
12662         * tests/test-freading.c (main): Likewise.
12663         * tests/test-fstatat.c (main): Likewise.
12664         * tests/test-fsync.c (main): Likewise.
12665         * tests/test-futimens.c (main): Likewise.
12666         * tests/test-getndelim2.c (main): Likewise.
12667         * tests/test-gettimeofday.c (main): Likewise.
12668         * tests/test-getopt.c (main): Likewise.
12669         * tests/test-i-ring.c (main): Likewise.
12670         * tests/test-inttypes.c (main): Likewise.
12671         * tests/test-link.c (main): Likewise.
12672         * tests/test-lstat.c (main): Likewise.
12673         * tests/test-math.c (main): Likewise.
12674         * tests/test-md5.c (main): Likewise.
12675         * tests/test-memchr2.c (main): Likewise.
12676         * tests/test-memrchr.c (main): Likewise.
12677         * tests/test-mkdir.c (main): Likewise.
12678         * tests/test-mkdirat.c (main): Likewise.
12679         * tests/test-mkfifoat.c (main): Likewise.
12680         * tests/test-open.c (main): Likewise.
12681         * tests/test-openat-safer.c (main): Likewise.
12682         * tests/test-openat.c (main): Likewise.
12683         * tests/test-quotearg.c (main): Likewise.
12684         * tests/test-rawmemchr.c (main): Likewise.
12685         * tests/test-readlink.c (main): Likewise.
12686         * tests/test-remove.c (main): Likewise.
12687         * tests/test-rename.c (main): Likewise.
12688         * tests/test-renameat.c (main): Likewise.
12689         * tests/test-rmdir.c (main): Likewise.
12690         * tests/test-sha1.c (main): Likewise.
12691         * tests/test-signal.c (main): Likewise.
12692         * tests/test-sigaction.c (main): Likewise.
12693         * tests/test-stat.c (main): Likewise.
12694         * tests/test-stat-time.c (main): Likewise.
12695         * tests/test-stddef.c (main): Likewise.
12696         * tests/test-stdint.c (main): Likewise.
12697         * tests/test-stdio.c (main): Likewise.
12698         * tests/test-stdlib.c (main): Likewise.
12699         * tests/test-strchrnul.c (main): Likewise.
12700         * tests/test-strerror.c (main): Likewise.
12701         * tests/test-string.c (main): Likewise.
12702         * tests/test-strtod.c (main): Likewise.
12703         * tests/test-strverscmp.c (main): Likewise.
12704         * tests/test-symlink.c (main): Likewise.
12705         * tests/test-symlinkat.c (main): Likewise.
12706         * tests/test-sys_stat.c (main): Likewise.
12707         * tests/test-sys_time.c (main): Likewise.
12708         * tests/test-time.c (main): Likewise.
12709         * tests/test-unistd.c (main): Likewise.
12710         * tests/test-unlink.c (main): Likewise.
12711         * tests/test-unlinkat.c (main): Likewise.
12712         * tests/test-utimens.c (main): Likewise.
12713         * tests/test-utimensat.c (main): Likewise.
12714         * tests/test-version-etc.c (main): Likewise.
12715         * tests/test-wchar.c (main): Likewise.
12716         * tests/test-wctype.c (main): Likewise.
12717         * tests/test-xprintf-posix.c (main): Likewise.
12718         * tests/test-posixtm.c (main): Likewise.
12719         (STREQ): Delete unused macro.
12720         * tests/test-linkat.c (main): Declare unused arguments.  Avoid
12721         shadowed variables.
12722         * tests/test-memchr.c (main): Likewise.
12723
12724 2009-10-21  Eric Blake  <ebb9@byu.net>
12725
12726         areadlinkat: avoid failure on older glibc
12727         * lib/at-func.c (AT_FUNC_NAME): Check for explicit FUNC_FAIL,
12728         rather than mis-comparing 0 against FUNC_RESULT of char*.
12729
12730 2009-10-21  Bruno Haible  <bruno@clisp.org>
12731
12732         * modules/stpncpy (License): Relicense under LGPLv2+.
12733         Reported by David Lutterkort <lutter@redhat.com>.
12734
12735 2009-10-20  Eric Blake  <ebb9@byu.net>
12736
12737         utimensat: work around Solaris 9 bug
12738         * lib/utimens.c (fdutimens, lutimens): Force a stat if platform
12739         has trailing slash bugs.
12740         * tests/test-lutimens.h (test_lutimens): Enhance test.
12741         * tests/test-utimens.h (test_utimens): Likewise.
12742         * doc/posix-functions/utime.texi (utime): Enhance documentation.
12743         * doc/posix-functions/utimes.texi (utimes): Likewise.
12744         * doc/posix-functions/utimensat.texi (utimensat): Likewise.
12745         * doc/glibc-functions/futimesat.texi (futimesat): Likewise.
12746         * doc/glibc-functions/lutimes.texi (lutimes): Likewise.
12747         * doc/posix-functions/futimens.texi (futimens): Likewise.
12748
12749         fdutimensat: new module
12750         * modules/fdutimensat: New file.
12751         * lib/fdutimensat.c (fdutimensat): Likewise.
12752         * lib/utimens.h (fdutimensat, lutimensat): Declare new functions.
12753         * MODULES.html.sh (File system functions): Mention module.
12754         * modules/fdutimensat-tests: New test.
12755         * tests/test-fdutimensat.c: Likewise.
12756
12757         doc: regenerate INSTALL
12758         * doc/INSTALL: Reflect recent autoconf update.
12759         * doc/INSTALL.ISO: Likewise.
12760         * doc/INSTALL.UTF-8: Likewise.
12761
12762 2009-10-20  Pádraig Brady  <P@draigBrady.com>
12763
12764         acl: warn if ACL support is not detected
12765         * m4/acl.m4 (gl_FUNC_ACL): Output a warning if ACL support is not found.
12766
12767 2009-10-19  Giuseppe Scrivano  <gscrivano@gnu.org>
12768
12769         * lib/nproc.h: Add extern "C" block for C++.
12770
12771 2009-10-18  Reuben Thomas  <rrt@sc3d.org>
12772             Bruno Haible  <bruno@clisp.org>
12773
12774         * doc/posix-functions/isascii.texi: Document the 2 alternative APIs.
12775         * doc/posix-functions/isalnum.texi: Document the 4 alternative APIs.
12776         * doc/posix-functions/isalpha.texi: Likewise.
12777         * doc/posix-functions/isblank.texi: Likewise.
12778         * doc/posix-functions/iscntrl.texi: Likewise.
12779         * doc/posix-functions/isdigit.texi: Likewise.
12780         * doc/posix-functions/isgraph.texi: Likewise.
12781         * doc/posix-functions/islower.texi: Likewise.
12782         * doc/posix-functions/isprint.texi: Likewise.
12783         * doc/posix-functions/ispunct.texi: Likewise.
12784         * doc/posix-functions/isspace.texi: Likewise.
12785         * doc/posix-functions/isupper.texi: Likewise.
12786         * doc/posix-functions/isxdigit.texi: Likewise.
12787
12788 2009-10-18  Bruno Haible  <bruno@clisp.org>
12789
12790         Tests for module 'isblank'.
12791         * modules/isblank-tests: New file.
12792         * tests/test-isblank.c: New file.
12793
12794         New module 'isblank'.
12795         * lib/isblank.c: New file.
12796         * m4/isblank.m4: New file.
12797         * modules/isblank: New file.
12798         * doc/posix-functions/isblank.texi: Mention the new module.
12799
12800 2009-10-18  Bruno Haible  <bruno@clisp.org>
12801
12802         New module 'ctype'.
12803         * lib/ctype.in.h: New file.
12804         * m4/ctype.m4: New file.
12805         * modules/ctype: New file.
12806         * doc/posix-headers/ctype.texi: Mention the new module.
12807
12808 2009-10-18  Jim Meyering  <meyering@redhat.com>
12809
12810         m4: stylistic-only: hoist AC_SUBST to be adjacent to initialization
12811         Declare a variable like LIB_CLOCK_GETTIME to be AC_SUBSTituted
12812         right after its initialization, rather than farther down.
12813         Keeping these in close proximity makes it easier to ensure
12814         that each such variable is initialized.  E.g.,
12815
12816             LIB_CLOCK_GETTIME=
12817             AC_SUBST([LIB_CLOCK_GETTIME])
12818
12819         This change also increments these serial numbers.
12820         * m4/clock_time.m4 (gl_CLOCK_TIME): Hoist AC_SUBST use.
12821         * m4/euidaccess.m4 (gl_PREREQ_EUIDACCESS): Likewise.
12822         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
12823
12824 2009-10-18  Bruno Haible  <bruno@clisp.org>
12825
12826         Don't let environment variables perturb build.
12827         * m4/gethrxtime.m4 (gl_GETHRXTIME): Initialize LIB_GETHRXTIME here...
12828         (gl_PREREQ_GETHRXTIME): ... not here.
12829
12830 2009-10-18  Bruno Haible  <bruno@clisp.org>
12831
12832         Avoid symlink attack in localcharset module.
12833         * lib/localcharset.c: Include <fcntl.h>, <unistd.h>.
12834         (O_NOFOLLOW): Define fallback.
12835         (get_charset_aliases): Don't open the file if it is a symbolic link.
12836         * m4/fcntl_h.m4 (gl_FCNTL_O_FLAGS): New macro, extracted from
12837         gl_FCNTL_H.
12838         (gl_FCNTL_H): Require it.
12839         * m4/localcharset.m4 (gl_LOCALCHARSET): Likewise.
12840         * modules/localcharset (Files): Add m4/fcntl_h.m4.
12841         Reported by Fergal Glynn <fglynn@veracode.com>.
12842
12843 2009-10-18  Bruno Haible  <bruno@clisp.org>
12844
12845         Implement nproc for mingw.
12846         * lib/nproc.c: Include <windows.h>
12847         (num_processors): On native Windows platforms, try GetSystemInfo.
12848
12849 2009-10-18  Bruno Haible  <bruno@clisp.org>
12850
12851         Implement nproc for IRIX.
12852         * lib/nproc.c: Include <sys/sysmp.h>.
12853         (num_processors): On IRIX systems, try sysmp.
12854         * m4/nproc.m4 (gl_PREREQ_NPROC): Check for sys/sysmp.h and sysmp.
12855
12856 2009-10-18  Bruno Haible  <bruno@clisp.org>
12857
12858         Implement nproc for HP-UX.
12859         * lib/nproc.c: Include <sys/pstat.h>
12860         (num_processors): On HP-UX systems, try pstat_getdynamic.
12861         * m4/nproc.m4 (gl_PREREQ_NPROC): Check for sys/pstat.h and
12862         pstat_getdynamic.
12863
12864 2009-10-18  Giuseppe Scrivano  <gscrivano@gnu.org>
12865             Bruno Haible  <bruno@clisp.org>
12866
12867         Implement nproc for NetBSD, OpenBSD.
12868         * lib/nproc.c: Include <sys/types.h>, <sys/param.h>, <sys/sysctl.h>.
12869         (ARRAY_SIZE): New macro.
12870         (num_processors): On BSD systems, try sysctl of HW_NCPU.
12871         * m4/nproc.m4: New file.
12872         * modules/nproc (Files): Add m4/nproc.m4.
12873         (configure.ac): Invoke gl_NPROC. Remove AC_LIBOBJ invocation.
12874         (Makefile.am): Instead, augment lib_SOURCES.
12875
12876 2009-10-18  Bruno Haible  <bruno@clisp.org>
12877
12878         Fix recognition of sys/sysctl.h on OpenBSD 4.0.
12879         * m4/physmem.m4 (gl_PHYSMEM): Before including sys/sysctl.h, include
12880         sys/param.h.
12881
12882 2009-10-16  Eric Blake  <ebb9@byu.net>
12883
12884         utimensat: new module
12885         * modules/utimensat: New file.
12886         * lib/utimensat.c (utimensat): Likewise.
12887         * m4/utimensat.m4 (gl_FUNC_UTIMENSAT): Likewise.
12888         * lib/utimens.c (utimensat): Avoid recursion into rpl_utimensat,
12889         so we can work around Linux bugs.
12890         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Add witnesses.
12891         * modules/sys_stat (Makefile.am): Substitute them.
12892         * lib/sys_stat.in.h (utimensat): Declare it.
12893         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
12894         * doc/posix-functions/utimensat.texi (utimensat): Likewise.
12895         * modules/utimensat-tests: New test.
12896         * tests/test-utimensat.c: Likewise.
12897
12898         utimens: let lutimens work on non-symlinks
12899         * lib/utimens.c (lutimens): Fall back to utimens rather than
12900         failing with ENOSYS, when file is not a symlink.
12901         (utimens): Reduce redirection.
12902         * tests/test-lutimens.h (test_lutimens): Update test to cover
12903         non-symlinks.
12904         * tests/test-utimens.h (test_utimens): Update test to cover
12905         symlinks.
12906         * tests/test-utimens.c (main): Update caller.
12907
12908         utimens: cache whether utimensat syscall works
12909         * lib/utimens.c (utimensat_works_really): New cache variable.
12910         (fdutimens, lutimens): Use it to avoid failing syscall.
12911
12912         test-stat-time, test-utimens: improve portability
12913         * tests/test-stat-time.c (nap): Lengthen delay to 20ms, for
12914         ext4 on alpha, and for cygwin.
12915         * tests/test-utimens-common.h: New file.
12916         (nap): Factor delays into single function.
12917         * tests/test-lutimens.h (test_lutimens): Use new header.
12918         * tests/test-futimens.h (test_futimens): Likewise.
12919         * tests/test-utimens.h (test_utimens): Likewise.  Also, force NFS
12920         timestamps to occur from same machine, as was done previously for
12921         test_utimens.
12922         * modules/utimens-tests (Files): Ship new file.
12923         * modules/futimens-tests (Files): Likewise.
12924         Reported in part by Jim Meyering.
12925
12926         sys_stat: sort replacement declarations
12927         * lib/sys_stat.in.h: Sort declarations.
12928         * lib/futimens.c (futimens): Fix typo.
12929
12930 2009-10-15  Jim Meyering  <meyering@redhat.com>
12931
12932         don't let environment settings perturb build
12933         Setting the envvars, LIB_CLOCK_GETTIME, LIB_EACCESS or LIB_NANOSLEEP
12934         could cause a configure-time and/or build-time malfunction.
12935         Typically, a configure-time function-in-library test is performed
12936         via code like this:
12937
12938           LIB_VAR=
12939           AC_SUBST([LIB_VAR])
12940           prefix_saved_LIBS=$LIBS
12941             AC_SEARCH_LIBS([FUNC], [LIB_NAME],
12942                        [test "$ac_cv_search_FUNC" = "none required" ||
12943                         LIB_VAR=$ac_cv_search_FUNC])
12944           LIBS=$prefix_saved_LIBS
12945
12946         However, in each of the files affected by this change, the LIB_VAR=
12947         initialization was omitted.  Thus, when set in the environment, its
12948         value would propagate into generated Makefiles when FUNC is not found
12949         in LIB_NAME.
12950         * m4/clock_time.m4 (gl_CLOCK_TIME): Initialize AC_SUBST'd var.
12951         * m4/euidaccess.m4 (gl_PREREQ_EUIDACCESS): Likewise.
12952         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
12953
12954 2009-10-14  Eric Blake  <ebb9@byu.net>
12955
12956         fchdir: avoid infinite recursion in mingw
12957         * lib/fchdir.c (rpl_fstat): Call system fstat, rather than
12958         recursing.
12959
12960         test-stat-time: port to mingw
12961         * tests/test-stat-time.c (force_unlink): Return a value.
12962         (test_ctime) [W32]: Fix compilation error.
12963         (nap): Don't call usleep with too large an argument.  Use
12964         force_unlink.
12965         * doc/pastposix-functions/usleep.texi (usleep): Document the
12966         portability issue.
12967
12968 2009-10-13  Jim Meyering  <meyering@redhat.com>
12969
12970         use AC_CHECK_FUNCS_ONCE, not AC_CHECK_FUNCS in modules/*
12971         * modules/pipe-filter-gi: Use AC_CHECK_FUNCS_ONCE, not AC_CHECK_FUNCS.
12972         * modules/pipe-filter-ii: Likewise.
12973         * modules/sys_socket-tests: Likewise.
12974         * modules/tsearch-tests: Likewise.
12975         * Makefile (sc_prefer_ac_check_funcs_once): New rule.
12976         (check): Depend on it.
12977
12978 2009-10-12  Eric Blake  <ebb9@byu.net>
12979
12980         utimens-tests: port to NFS file systems
12981         * tests/test-utimens.h (test_utimens): Refactor utimecmp
12982         comparisons to avoid spurious failures from timestamp drift
12983         between NFS machines.
12984
12985 2009-10-12  Eric Blake  <ebb9@byu.net>
12986
12987         stat-time-tests: minor cleanups
12988         * modules/stat-time-tests (configure.ac): Use AC_CHECK_FUNCS_ONCE.
12989         * tests/test-stat-time.c (nap): Separate assignment from call.
12990         Suggested by Paolo Bonzini and Bruno Haible.
12991
12992         sys_stat: guarantee struct timespec
12993         * lib/sys_stat.in.h (includes): Always include <time.h>
12994         * modules/sys_stat (Depends-on): Add time.
12995         * tests/test-sys_stat.c: Guarantee struct timespec, as well as
12996         mode_t permission values.
12997         * doc/posix-headers/sys_stat.texi (sys/stat.h): Document how to
12998         get at subsecond timestamps.
12999
13000 2009-10-10  Eric Blake  <ebb9@byu.net>
13001
13002         futimens: new module
13003         * modules/futimens: New file.
13004         * lib/futimens.c (futimens): Likewise.
13005         * m4/futimens.m4 (gl_FUNC_FUTIMENS): Likewise.
13006         * lib/utimens.c (futimens): Avoid recursion into rpl_futimens, so
13007         we can work around Linux bugs.
13008         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Add witnesses.
13009         * modules/sys_stat (Makefile.am): Substitute them.
13010         * lib/sys_stat.in.h (futimens): Declare it.
13011         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
13012         * doc/posix-functions/futimens.texi (futimens): Likewise.
13013         * modules/futimens-tests: New test.
13014         * tests/test-futimens.c: Likewise.
13015
13016         utimens: introduce fdutimens
13017         * lib/utimens.h (fdutimens): New prototype.
13018         * lib/utimens.c (gl_futimens): Move guts...
13019         (fdutimens): ...to new interface.
13020         * tests/test-utimens.c (do_fdutimens): Use it.
13021
13022         utimens: add UTIME_NOW and UTIME_OMIT support
13023         * lib/utimens.c (validate_timespec, update_timespec): New helper
13024         functions.
13025         (gl_futimens, lutimens): Use them.
13026         * modules/utimens (Depends-on): Add gettime, lstat, stat-time,
13027         stdbool, sys_stat.
13028         (Link): Mention resulting library dependency.
13029         * modules/utimecmp (Link): Likewise.
13030         * modules/utimens-tests (Depends-on): Drop stat-time, stdbool.
13031         (Makefile.am): Pick up library dependency.
13032         * lib/sys_stat.in.h (UTIME_NOW, UTIME_OMIT): Guarantee a
13033         definition.
13034         * tests/test-sys_stat.c: Test the definitions.
13035         * doc/posix-headers/sys_stat.texi (sys/stat.h): Document this.
13036         * NEWS: Document library dependency.
13037
13038         utimecmp: support symlink timestamps
13039         * lib/utimecmp.c (utimecmp): Use new interface.  Skip effort of
13040         hashing when possible.  Use pathconf when available.
13041         (SYSCALL_RESOLUTION): Recognize tighter resolution.
13042         * modules/utimecmp (Depends-on): Add lstat.
13043
13044         utimens: add lutimens interface
13045         * lib/utimens.c (lutimens): New function.
13046         * m4/utimens.m4 (gl_UTIMENS): Check for lutimes.
13047         * lib/utimens.h (lutimens): Declare new interface.
13048         * tests/test-utimens.c (main): Enhance test.
13049         * tests/test-lutimens.h (test_lutimens): New file.
13050         * modules/utimens-tests (Files): Distribute it.
13051         (Depends-on): Add symlink.
13052         (configure.ac): Check for usleep.
13053
13054         utimens: validate futimens usage
13055         * lib/utimens.c (gl_futimens): Require valid fd up front, using
13056         fewer syscalls on failure later on.  Avoid compiler warning on
13057         mingw.
13058         * modules/utimens (Depends-on): Add dup2.
13059
13060         utimens: add test
13061         * modules/utimens-tests: New test.
13062         * tests/test-utimens.h: New file.
13063         * tests/test-futimens.h: Likewise.
13064         * tests/test-utimens.c: Likewise.
13065
13066         doc: mention timestamp portability issues
13067         * doc/glibc-functions/lutimes.texi (lutimes): Refer to utimensat
13068         instead.
13069         * doc/posix-functions/utime.texi (utime): Likewise.
13070         * doc/posix-functions/utimes.texi (utimes): Likewise.
13071         * doc/glibc-functions/futimes.texi (futimes): Refer to futimens
13072         instead.
13073         * doc/posix-functions/futimens.texi (futimens): Mention utimens
13074         module.
13075         * doc/posix-functions/utimensat.texi (utimensat): Likewise.
13076         Mention weakness with symlink timestamps.
13077         * doc/glibc-functions/futimesat.texi (futimesat): New file; refer
13078         to utimensat/futimens instead.
13079         * doc/gnulib.texi (Glibc sys/time.h): Include new file.
13080
13081         test-dup2: enhance test
13082         * tests/test-dup2.c (main): Also check AT_FDCWD.
13083
13084         test-stat-time: avoid more spurious failures
13085         * tests/test-stat-time.c (nap): Wait for 15ms rather than 2ms, for
13086         xfs; and avoid race if the two timestamps cross quantization edge.
13087
13088         relocatable: prefer 'file system' over 'filesystem'
13089         * m4/relocatable-lib.m4 (gl_RELOCATABLE_NOP): Use AS_HELP_STRING.
13090         (gl_RELOCATABLE_LIBRARY_BODY): Fix spelling.
13091         * doc/relocatable-maint.texi (Supporting Relocation): Likewise.
13092         * doc/relocatable.texi (Enabling Relocatability): Likewise.
13093         * lib/relocatable.c (compute_curr_prefix): Likewise.
13094
13095 2009-10-10  Jim Meyering  <meyering@redhat.com>
13096
13097         stat-time-tests: check for the usleep function
13098         * modules/stat-time-tests (configure.ac): Now that we test HAVE_USLEEP.
13099
13100 2009-10-10  Bruno Haible  <bruno@clisp.org>
13101
13102         * modules/xnanosleep: Put the Link section after the Include section.
13103
13104 2009-10-09  Eric Blake  <ebb9@byu.net>
13105
13106         dup2: work around FreeBSD 6.1 bug
13107         * m4/dup2.m4 (gl_FUNC_DUP2): Detect bug.
13108         * doc/posix-functions/dup2.texi (dup2): Document it.
13109         Reported by Nelson H. F. Beebe and Jim Meyering.
13110
13111         test-stat-time: port to buggy NFS clients
13112         * tests/test-stat-time.c (main) [W32]: Reduce ifdefs.
13113         (test_ctime): Also skip test if mtime and ctime are skewed.
13114
13115         maint: prefer 'file system' over 'filesystem'
13116         * doc/posix-functions/fstatat.texi (fstatat): Likewise.
13117         * doc/posix-functions/lstat.texi (lstat): Likewise.
13118         * lib/file-has-acl.c (file_has_acl): Likewise.
13119         * lib/fwriteerror.c [TEST]: Likewise.
13120         * tests/test-areadlink.h (test_areadlink): Likewise.
13121         * tests/test-areadlinkat-with-size.c (main): Likewise.
13122         * tests/test-areadlinkat.c (main): Likewise.
13123         * tests/test-canonicalize-lgpl.c (main): Likewise.
13124         * tests/test-canonicalize.c (main): Likewise.
13125         * tests/test-fstatat.c (main): Likewise.
13126         * tests/test-linkat.c (main): Likewise.
13127         * tests/test-lstat.h (test_lstat_func): Likewise.
13128         * tests/test-mkdir.h (test_mkdir): Likewise.
13129         * tests/test-readlink.h (test_readlink): Likewise.
13130         * tests/test-remove.c (main): Likewise.
13131         * tests/test-rename.h (test_rename): Likewise.
13132         * tests/test-renameat.c (main): Likewise.
13133         * tests/test-rmdir.h (test_rmdir_func): Likewise.
13134         * tests/test-symlink.h (test_symlink): Likewise.
13135         * tests/test-symlinkat.c (main): Likewise.
13136         * tests/test-unlink.h (test_unlink_func): Likewise.
13137         * tests/test-unlinkat.c (main): Likewise.
13138
13139         maint: make realtime library usage explicit
13140         * modules/gethrxtime (Link): Mention LIB_GETHRXTIME.
13141         * modules/gettime (Link): Mention LIB_CLOCK_GETTIME.
13142         * modules/settime (Link): Likewise.
13143         * modules/xnanosleep (Link): Mention LIB_NANOSLEEP.
13144
13145         test-stat-time: speed up execution
13146         * tests/test-stat-time.c (test_ctime) [!W32]: Avoid compiler
13147         warning on mingw.
13148         (nap): New helper function.
13149         (prepare_test): Use it to reduce sleep time.
13150         (test_mtime, test_ctime, test_birthtime): Allow for subsecond
13151         execution.
13152         * modules/stat-time-tests (configure.ac): Check for usleep.
13153
13154 2009-10-09  Jim Meyering  <meyering@redhat.com>
13155
13156         selinux-h: always use getfilecon wrappers
13157         * lib/getfilecon.c: New file.
13158         * lib/se-selinux.in.h: Use a better inclusion guard symbol name.
13159         [HAVE_SELINUX_SELINUX_H]: Include-next <selinux/selinux.h>.
13160         [!HAVE_SELINUX_SELINUX_H]: Use better parameter names.
13161         (fgetfilecon): Provide a stub.
13162         * m4/selinux-selinux-h.m4 (gl_HEADERS_SELINUX_SELINUX_H): Don't
13163         AC_SUBST SELINUX_SELINUX_H, since now we're generating that
13164         file unconditionally.
13165         When <selinux/selinux.h> is found, arrange to use wrappers.
13166         * modules/selinux-h (Files): Add getfilecon.c.
13167         (Makefile.am): Substitute include-next-related bits
13168         into the now-always-generated selinux/selinux.h file.
13169         * doc/glibc-functions/lgetfilecon.texi: New file.
13170         * doc/glibc-functions/fgetfilecon.texi: New file.
13171         * doc/glibc-functions/getfilecon.texi: New file.
13172         * doc/glibc-functions/getfilecon-desc.texi: New file.
13173         * doc/gnulib.texi (Glibc selinux/selinux.h): New section, by
13174         which to pull in the new files.
13175         * MODULES.html.sh (Misc): Add selinux-h.
13176
13177 2009-10-08  Jim Meyering  <meyering@redhat.com>
13178
13179         unistd: fix comment typo
13180         * lib/unistd.in.h (euidaccess): Fix a comment typo.
13181
13182 2009-10-08  Eric Blake  <ebb9@byu.net>
13183
13184         areadlink: use SIZE_MAX consistently
13185         * modules/areadlink (Depends-on): Add stdint.
13186         * modules/areadlink-with-size (Depends-on): Likewise.
13187         * lib/areadlink-with-size.c (includes): Drop stdio, since stdlib
13188         gives NULL; drop sys/types, since unistd gives size_t; and add
13189         stdint for SIZE_MAX.
13190         (SIZE_MAX): Rely on headers.
13191         * lib/areadlinkat-with-size.c (includes): Drop stdio, sys/types,
13192         and add stdint.
13193         * lib/areadlink.c (includes): Drop sys/types, and add stdint.
13194         (SIZE_MAX): Likewise.
13195         (INITIAL_BUF_SIZE): Turn into enum.
13196         * lib/areadlinkat.c (INITIAL_BUF_SIZE): Likewise.
13197
13198 2009-10-08  Jim Meyering  <meyering@redhat.com>
13199
13200         areadlinkat: avoid compilation failure
13201         * lib/areadlinkat.c: Include <stdint.h> for use of SIZE_MAX.
13202         Fix typo in comment.
13203
13204 2009-10-07  Eric Blake  <ebb9@byu.net>
13205
13206         areadlinkat-with-size: new module
13207         * modules/areadlinkat-with-size: New module.
13208         * lib/areadlinkat-with-size.c (areadlinkat_with_size): New file.
13209         * lib/areadlink.h (areadlinkat): Declare it.
13210         * MODULES.html.sh (File system functions): Mention it.
13211         * modules/areadlinkat-with-size-tests: New test.
13212         * tests/test-areadlinkat-with-size.c: New file.
13213
13214         xreadlinkat: new module
13215         * modules/xreadlinkat: New module.
13216         * lib/xreadlinkat.c (xreadlinkat): New file.
13217         * lib/xreadlink.h (xreadlinkat): Declare it.
13218         * MODULES.html.sh (File system functions): Mention it.
13219
13220         areadlinkat: new module
13221         * lib/at-func.c (FUNC_FAIL): New define.
13222         (AT_FUNC_NAME, VALIDATE_FLAG): Use it rather than raw -1.
13223         * modules/areadlinkat: New module.
13224         * lib/linkat.c (areadlinkat): Move...
13225         * lib/areadlinkat.c (areadlinkat): ...to new file.
13226         * lib/areadlink.h (areadlinkat): Declare it.
13227         * modules/linkat (Depends-on): Add areadlinkat.
13228         * MODULES.html.sh (File system functions): Mention it.
13229         * modules/areadlinkat-tests: New test.
13230         * tests/test-areadlinkat.c: New file.
13231
13232         areadlink, areadlink-with-size: add tests
13233         * modules/areadlink-tests: New test.
13234         * modules/areadlink-with-size-tests: Likewise.
13235         * tests/test-areadlink.h: New file.
13236         * tests/test-areadlink.c: Likewise.
13237         * tests/test-areadlink-with-size.c: Likewise.
13238
13239         maint: minor cleanups
13240         * lib/fts.c (ATTRIBUTE_UNUSED): Delete; use gnulib-guaranteed
13241         _UNUSED_PARAMETER_ instead.
13242         * lib/getdate.y (ATTRIBUTE_UNUSED): Likewise.
13243         * lib/utimens.c (ATTRIBUTE_UNUSED): Likewise.
13244         * modules/linkat-tests (Files): Distribute test-link.h.
13245
13246         openat, utimens: whitespace cleanup
13247         * lib/openat.c: Prefer space throughout, rather than mix of 8
13248         spaces vs. tabs.
13249         * lib/at-func.c: Likewise.
13250         * lib/utimens.c: Likewise.
13251
13252         openat: avoid using wrong fd
13253         * lib/openat.c (openat_permissive): Reject user's fd if saving the
13254         working directory chooses same fd.
13255         * lib/at-func.c (AT_FUNC_NAME): Likewise.
13256
13257         mkdir, mkdirat: fix cygwin 1.5.x bug
13258         * lib/mkdir.c (rpl_mkdir) [FUNC_MKDIR_DOT_BUG]: Work around bug.
13259         * m4/mkdir-slash.m4 (gl_FUNC_MKDIR_TRAILING_SLASH): Move...
13260         * m4/mkdir.m4 (gl_FUNC_MKDIR): ...here, and add check for cygwin
13261         bug.
13262         (gl_PREREQ_MKDIR): Delete unused macro.
13263         * modules/mkdir (Files): Track file rename.
13264         (configure.ac): Update macro name.
13265         * modules/openat (Depends-on): Add mkdir.
13266         * doc/posix-functions/mkdir.texi (mkdir): Document the bug.
13267
13268         mkdir, mkdirat: add tests
13269         * modules/mkdir-tests: New test.
13270         * tests/test-mkdir.h: New file.
13271         * tests/test-mkdir.c: Likewise.
13272         * tests/test-mkdirat.c: Likewise.
13273         * modules/openat-tests (Files): Add new files.
13274         (Makefile.am): Run new test.
13275
13276 2009-10-06  Eric Blake  <ebb9@byu.net>
13277
13278         doc: tweak *at function documentation
13279         * doc/posix-functions/faccessat.texi (faccessat): Mention
13280         known issue with replacement.
13281         * doc/posix-functions/fchdir.texi (fchdir): Likewise.
13282         * doc/posix-functions/linkat.texi (linkat): Likewise.
13283         * doc/posix-functions/mkfifoat.texi (mkfifoat): Likewise.
13284         * doc/posix-functions/mknodat.texi (mknodat): Likewise.
13285         * doc/posix-functions/readlinkat.texi (readlinkat): Likewise.
13286         * doc/posix-functions/renameat.texi (renameat): Likewise.
13287         * doc/posix-functions/symlinkat.texi (symlinkat): Likewise.
13288
13289         openat: fix GNU/Hurd bug in unlinkat
13290         * m4/openat.m4 (gl_FUNC_OPENAT): Replace unlinkat if unlink is
13291         broken.
13292         * doc/posix-functions/unlink.texi (unlink): Document this.
13293         * doc/posix-functions/unlinkat.texi (unlinkat): Likewise.
13294
13295         fdopendir: fix GNU/Hurd bug
13296         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR): Check for Hurd bug in
13297         allowing non-directory fds.
13298         * lib/fdopendir.c (rpl_fdopendir): Work around it.
13299         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): New witness.
13300         * modules/dirent (Makefile.am): Substitute it.
13301         * lib/dirent.in.h (fdopendir): Declare replacement.
13302         * doc/posix-functions/fdopendir.texi (fdopendir): Document this.
13303         * tests/test-fdopendir.c (main): Test something other than
13304         /dev/null, since on Hurd that behaves like a directory.
13305
13306         test-symlink: port to GNU/Hurd
13307         * tests/test-symlink.h (test_symlink): Relax expected errno.
13308
13309         doc: tweak more cygwin information
13310         * doc/glibc-headers/getopt.texi (getopt.h): Cygwin 1.7 getopt is
13311         now compatible with glibc.
13312         * doc/posix-functions/getopt.texi (getopt): Likewise.
13313
13314         getopt-gnu: add another test
13315         * tests/test-getopt_long.h (test_getopt_long_posix): New test, to
13316         guarantee behavior relied on by m4.
13317         * tests/test-getopt.c (main): Use it.
13318         * modules/getopt-posix-tests (Depends-on): Add setenv.
13319         See http://lists.gnu.org/archive/html/bug-m4/2006-09/msg00028.html.
13320
13321         getopt: fix compilation on darwin
13322         * lib/getopt.in.h (includes): Leave breadcrumbs during system
13323         include.
13324         * lib/unistd.in.h (getopt): Use them to avoid recursive include.
13325         Reported by Ludovic Courtès.
13326
13327 2009-10-06  Bruno Haible  <bruno@clisp.org>
13328
13329         * modules/size_max (Description): Discourage its use.
13330         Reported by Simon Josefsson.
13331
13332 2009-10-06  Jim Meyering  <meyering@redhat.com>
13333
13334         linkat: avoid compilation failure
13335         * lib/linkat.c: Include <stdint.h> for use of SIZE_MAX.
13336
13337 2009-10-05  Eric Blake  <ebb9@byu.net>
13338
13339         linkat: support Linux 2.6.17
13340         * m4/linkat.m4 (gl_FUNC_LINKAT): Default to always replacing
13341         linkat on Linux, but allow cache variable override.
13342         * lib/linkat.c (rpl_linkat): Define override.
13343         * modules/linkat (Depends-on): Add symlinkat.
13344         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add new default.
13345         * modules/unistd (Makefile.am): Substitute it.
13346         * lib/unistd.in.h (linkat): Declare replacement.
13347         Reported by Pádraig Brady.
13348
13349         quotearg: port test to systems with C.UTF-8 locale
13350         * tests/test-quotearg.c (struct result_strings): Add another
13351         member, differentiating between C.ASCII and C.UTF-8 handling.
13352         (compare_strings): Add parameter.
13353         (main): Adjust all callers.
13354
13355         getopt: avoid clash with FreeBSD _getopt_internal
13356         * lib/getopt.in.h (_getopt_internal): Override the name.
13357         * lib/getopt_int.h (includes): Pick up any overrides.
13358         Reported by Reuben Thomas.
13359
13360         hash: allow C89 compilation
13361         * lib/hash.c (check_tuning): Move declaration before statement.
13362         Reported by Reuben Thomas.
13363
13364 2009-10-05  Karl Berry  <karl@gnu.org>
13365
13366         * doc/gnulib.texi: @include execvpe.texi, missing for several days.
13367
13368 2009-10-04  Paolo Bonzini  <bonzini@gnu.org>
13369             Bruno Haible  <bruno@clisp.org>
13370
13371         * lib/uname.c (uname): Use a table-driven algorithm to compute
13372         Windows NT versions.
13373
13374 2009-10-04  Bruno Haible  <bruno@clisp.org>
13375
13376         * lib/progname.c (set_program_name): Also remove the "lt-" prefix from
13377         program_invocation_short_name.
13378         * modules/progname (configure.ac): Test for presence of
13379         program_invocation_short_name.
13380         Reported by Sergey Poznyakoff <gray@gnu.org.ua>.
13381
13382 2009-10-04  Bruno Haible  <bruno@clisp.org>
13383
13384         * lib/progname.c (set_program_name): Fix comment.
13385         Reported by Jim Meyering.
13386
13387 2009-10-03  Paolo Bonzini  <bonzini@gnu.org>
13388             Bruno Haible  <bruno@clisp.org>
13389
13390         * lib/uname.c: Include <string.h>.
13391         (uname): Do only one call to GetVersionEx in the common case.
13392
13393 2009-10-03  Paolo Bonzini  <bonzini@gnu.org>
13394             Bruno Haible  <bruno@clisp.org>
13395
13396         * lib/uname.c (VER_PLATFORM_WIN32_CE, PROCESSOR_ARCHITECTURE_AMD64,
13397         PROCESSOR_ARCHITECTURE_IA32_ON_WIN64): Define fallbacks.
13398         (uname): Add support for Windows CE and various non-x86 CPU types.
13399
13400 2009-10-03  Bruno Haible  <bruno@clisp.org>
13401
13402         * gnulib-tool (func_create_testdir): Conditionally emit AM_PROG_CC_C_O
13403         invocation to tests/configure.ac.
13404         Reported by Ian Beckwith <ianb@erislabs.net>.
13405
13406 2009-10-02  Eric Blake  <ebb9@byu.net>
13407
13408         fchdir: avoid compiler warning
13409         * lib/fchdir.c (canonicalize_file_name)
13410         [!HAVE_CANONICALIZE_FILE_NAME]: Avoid compiler warning on mingw.
13411
13412         test-open: support mingw errno values
13413         * tests/test-open.h (test_open): Relax test.
13414         * tests/test-fopen.h (test_fopen): Likewise.
13415         * tests/test-openat-safer.c (main): Likewise.
13416
13417         open: fix opening directory on mingw
13418         * lib/open.c (open) [REPLACE_OPEN_DIRECTORY]: Correct typo.
13419
13420         test-open: on GNU/Hurd, /dev/null is a directory
13421         * tests/test-fopen.h (main): Rename...
13422         (test_fopen): ...to this.  Use a guaranteed non-directory when
13423         confirming open behavior on trailing slash.
13424         * tests/test-openat-safer.c (main): Likewise.
13425         * tests/test-open.h (main): Likewise....
13426         (test_open): ...to this.
13427         * tests/test-fopen.c (main): Adjust caller.
13428         * tests/test-fopen-safer.c (main): Likewise.
13429         * tests/test-open.c (main): Likewise.
13430         * tests/test-fcntl-safer.c (main): Likewise.
13431         Reported by Samuel Thibault.
13432
13433         rename, fchdir: don't ignore chdir failure
13434         * lib/fchdir.c (get_name): Abort on unexpected chdir failure.
13435         * lib/rename.c (rpl_rename) [W32]: Likewise.
13436         (rpl_rename) [RENAME_DEST_EXISTS_BUG]: Avoid one case of losing
13437         an empty destination directory if source cannot be renamed,
13438         although there is still possibility for failure.
13439         * doc/posix-functions/rename.texi (rename): Document the race.
13440         Reported by Jim Meyering.
13441
13442         maint: cleanup whitespace in recent commits
13443         * lib/rename.c (rpl_rename): Remove tabs.
13444         * tests/test-link.h (test_link): Likewise.
13445         * lib/fchdir.c (get_name): Likewise.
13446         Reported by Jim Meyering.
13447
13448 2009-10-02  Ben Pfaff  <blp@gnu.org>
13449
13450         relocatable-prog-wrapper: Add missing dependency on
13451         double-slash-root.
13452         * modules/relocatable-prog-wrapper: Add dependency.
13453         Reported by Ian Beckwith <ianb@erislabs.net>.
13454
13455 2009-10-02  Eric Blake  <ebb9@byu.net>
13456
13457         renameat: fix Solaris bugs
13458         * m4/renameat.m4 (gl_FUNC_RENAMEAT): Replace renameat if rename
13459         needed fixing.
13460         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): New witness.
13461         * modules/stdio (Makefile.am): Substitute it.
13462         * lib/stdio.in.h (renameat): Declare replacement.
13463         * lib/renameat.c (rpl_renameat): Implement fix.
13464
13465         renameat: new module
13466         * modules/renameat: New file.
13467         * lib/renameat.c (renameat): Likewise.
13468         * m4/renameat.m4 (gl_FUNC_RENAMEAT): Likewise.
13469         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Add witnesses.
13470         * modules/stdio (Makefile.am): Substitute them.
13471         * lib/stdio.in.h (renameat): Declare it.
13472         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
13473         * doc/posix-functions/renameat.texi (renameat): Likewise.
13474         * modules/renameat-tests: New test.
13475         * tests/test-renameat.c: Likewise.
13476
13477         rename: fix mingw bugs
13478         * lib/rename.c (rpl_rename) [W32]: Fix trailing slash and
13479         directory overwrite bugs.
13480
13481         rename: fix another cygwin 1.5 bug
13482         * m4/rename.m4 (gl_FUNC_RENAME): Split cygwin bugs into two
13483         checks.
13484         * lib/rename.c (rpl_rename): Don't penalize NetBSD with
13485         unnecessary cygwin workarounds.  Also work around bug with moving
13486         full directory onto an empty one.
13487         * modules/rename (Depends-on): Add canonicalize-lgpl, rmdir.
13488
13489         rename-dest-slash: merge into rename module
13490         * modules/rename-dest-slash (Status): Mark obsolete.
13491         (Depends-on): Add rename.
13492         (Files): Let rename do it all.
13493         * m4/rename.m4 (gl_FUNC_RENAME): Also test for NetBSD bugs,
13494         subsuming the test from gl_FUNC_RENAME_TRAILING_DEST_SLASH...
13495         * m4/rename-dest-slash.m4: ...so this file can be deleted.
13496         * lib/rename-dest-slash.c (rpl_rename_dest_slash): Delete.
13497         * lib/rename.c (rpl_rename): Update comments.
13498
13499         rename: fix cygwin 1.5.x bugs
13500         * m4/rename.m4 (gl_FUNC_RENAME): Detect cygwin bugs.
13501         * lib/rename.c (rpl_rename): Work around them.
13502         * modules/rename (Depends-on): Add same-inode.
13503
13504         rename: fix Solaris 10 bug
13505         * m4/rename.m4 (gl_FUNC_RENAME): Detect Solaris bug.
13506         * lib/rename.c (rpl_rename): Don't cripple POSIX behavior if this
13507         was the only bug.
13508
13509         rename: fix Solaris 9 bug
13510         * lib/rename.c (rpl_rename): Rewrite to recognize trailing slash
13511         on non-directory.  Avoid calling exit.
13512         * modules/rename (Depends-on): Drop xalloc; add lstat, stdbool,
13513         strdup.
13514         * modules/rename-tests (Depends-on): Drop lstat.
13515         * m4/rename.m4 (gl_FUNC_RENAME): Detect Solaris bug.
13516         (gl_PREREQ_RENAME): Delete unused macro.
13517
13518         rename-dest-slash: fix NetBSD bug
13519         * lib/rename-dest-slash.c (rpl_rename_dest_slash): Detect hard
13520         links.
13521         * modules/rename-dest-slash (Depends-on): Add same-inode.
13522
13523         rename-tests: new test, exposes several platform bugs
13524         * modules/rename-tests: New file.
13525         * tests/test-rename.h: Likewise.
13526         * tests/test-rename.c: Likewise.
13527         * doc/posix-functions/rename.texi (rename): Improve documentation,
13528         including bugs that will eventually be fixed in gnulib.
13529
13530 2009-10-02  Paolo Bonzini  <bonzini@gnu.org>
13531
13532         * lib/uname.c: Include <stdlib.h>
13533         (uname): Assume version info is available.
13534
13535 2009-10-02  Jim Meyering  <meyering@redhat.com>
13536
13537         gnu-web-doc-update: correct --help output
13538         * build-aux/gnu-web-doc-update: Make --help output relevant.
13539
13540         gnu-web-doc-update: add standard options
13541         * build-aux/gnu-web-doc-update: Add --help, --version, etc.
13542
13543         gnu-web-doc-update: New module.
13544         Use this script to automatically update the on-line web documentation
13545         for your GNU project at http://www.gnu.org/software/$pkg/manual/
13546         * modules/gnu-web-doc-update: New file, from coreutils.
13547         * build-aux/gnu-web-doc-update: New script.
13548
13549 2009-10-01  Paolo Bonzini  <bonzini@gnu.org>
13550
13551         link: LoadLibrary is not needed.
13552         * lib/link.c: Use GetModuleHandle.
13553
13554 2009-10-01  Eric Blake  <ebb9@byu.net>
13555
13556         getopt: bump serial number
13557         * m4/getopt.m4: Increment serial number, to account for 2009-09-24
13558         change.
13559
13560         tests: tighten link, rmdir, and remove tests
13561         * tests/test-link.h (includes): No need to use <config.h> here.
13562         Clean up if directory hard link was created, otherwise test for
13563         trailing '.'.
13564         * tests/test-linkat.c (main): Simplify.
13565         * tests/test-remove.c (main): Enhance test for trailing '.'.
13566         * tests/test-rmdir.h (test_rmdir_func): Likewise.
13567
13568 2009-10-01  Jim Meyering  <meyering@redhat.com>
13569
13570         maint.mk: requiring "make major" was annoying, for a "minor" release.
13571         What is intended is "stable", to contrast with alpha and beta,
13572         so require "make stable", not "make major".
13573         * build-aux/announce-gen (%valid_release_types): s/major/stable/.
13574         (get_tool_versions): Likewise.
13575         * top/maint.mk (ALL_RECURSIVE_TARGETS): s/major/stable/
13576
13577 2009-09-30  Ben Pfaff  <blp@gnu.org>
13578
13579         Fix broken build of replacement for Windows tmpfile().
13580         * lib/tmpfile.c (tmpfile): Fix call to gen_tempname() to provide
13581         flags argument added along with the 'mkostemp' module.
13582
13583 2009-09-28  Bruno Haible  <bruno@clisp.org>
13584
13585         Avoid identifier clash with POSIX function 'remove' defined as a macro.
13586         * lib/gl_list.h (struct gl_list_implementation): Rename field 'remove'
13587         to 'remove_elt'.
13588         (gl_list_remove): Update.
13589         * lib/gl_list.c (gl_list_remove): Update.
13590         * lib/gl_oset.h (struct gl_oset_implementation): Rename field 'remove'
13591         to 'remove_elt'.
13592         (gl_oset_remove): Update.
13593         * lib/gl_list.c (gl_oset_remove): Update.
13594         Reported by Eric Blake.
13595
13596 2009-09-28  Eric Blake  <ebb9@byu.net>
13597
13598         doc: mention yet more cygwin 1.7 status
13599         * doc/posix-functions/fexecve.texi (fexecve): Now implemented in
13600         cygwin.
13601         * doc/glibc-functions/execvpe.texi (execvpe): New file.
13602         * doc/gnulib.texi (Glibc unistd.h): Mention it.
13603
13604         argp: fix test failure
13605         * lib/argp-help.c (hol_entry_cmp): Don't use _tolower on values
13606         that are not upper-case.  Pass correct range to tolower.
13607
13608 2009-09-27  Jim Meyering  <meyering@redhat.com>
13609
13610         test-yesno: work around sparc-dash here-document infelicity
13611         Without this change, the literal \177 byte in a here document
13612         would make dash 0.5.5.1-3 access uninitialized memory.
13613         * tests/test-yesno.sh: Don't put the \177 byte in the here document.
13614         Instead, use a marker, "@", and filter through tr to create the desired
13615         contents.  Reported as <http://bugs.debian.org/548493> by Kurt Roeckx.
13616
13617 2009-09-27  Bruno Haible  <bruno@clisp.org>
13618
13619         Disable untested support for new flavours of ACLs on AIX.
13620         * lib/file-has-acl.c (file_has_acl): Mark newer AIX code as work in
13621         progress.
13622         * lib/set-mode-acl.c (qset_acl): Likewise.
13623
13624 2008-12-07  Bruno Haible  <bruno@clisp.org>
13625
13626         Add support for new flavours of ACLs on AIX. (Untested.)
13627         * lib/file-has-acl.c [AIX] (acl_nfs4_nontrivial): New function.
13628         (file_has_acl): Add support for newer AIX.
13629         * lib/set-mode-acl.c (qset_acl): Likewise.
13630         * tests/test-sameacls.c (main): Fix use of aclx_get function. Hint by
13631         Rainer Tammer <tammer@tammer.net>.
13632
13633 2009-09-26  Eric Blake  <ebb9@byu.net>
13634
13635         argp: fix compilation of getopt
13636         * lib/getopt.in.h (includes): Use different guard than glibc.
13637         Reported by Sergey Poznyakoff.
13638
13639         doc: mention more cygwin 1.7 status
13640         * doc/posix-functions/access.texi (access): Mention cygwin 1.5
13641         bug.
13642         * doc/posix-functions/execl.texi (execl): Likewise.
13643         * doc/posix-functions/execle.texi (execle): Likewise.
13644         * doc/posix-functions/execlp.texi (execlp): Likewise.
13645         * doc/posix-functions/execv.texi (execv): Likewise.
13646         * doc/posix-functions/execve.texi (execve): Likewise.
13647         * doc/posix-functions/execvp.texi (execvp): Likewise.
13648         * doc/glibc-functions/canonicalize_file_name.texi
13649         (canonicalize_file_name): Cygwin 1.7 now provides this.
13650         * doc/glibc-functions/euidaccess.texi (euidaccess): Likewise.
13651         * doc/posix-functions/fchmodat.texi (fchmodat): Mention limitation
13652         on AT_SYMLINK_NOFOLLOW.
13653
13654 2009-09-24  Eric Blake  <ebb9@byu.net>
13655
13656         test-linkat: make test more robust
13657         * tests/test-linkat.c (main): Avoid collision with EEXIST.
13658
13659         getopt: fix inclusion guards for cygwin
13660         * modules/getopt-posix (Depends-on): Add include-next.
13661         (Makefile.am): Substitute more items in replacement header.
13662         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Also check for native
13663         <getopt.h>.
13664         * lib/getopt.in.h (includes): Use split inclusion guard, and
13665         prefer <getopt.h> over include <unistd.h> when one is present.
13666         (option): Also override name of 'struct option'.
13667
13668         same-inode: revert prior change; it is not yet ready
13669         * NEWS: Undo mention of this change.
13670         * lib/same-inode.h (same-inode.h): Undo tri-state change.
13671         * lib/cycle-check.h (CYCLE_CHECK_REFLECT_CHDIR_UP): Update caller.
13672         * lib/cycle-check.c (cycle_check): Likewise.
13673         * lib/same.c (same_name): Likewise.
13674         * lib/at-func2.c (at_func2): Likewise.
13675
13676 2009-09-23  Eric Blake  <ebb9@byu.net>
13677
13678         linkat: new module
13679         * modules/linkat: New file.
13680         * lib/at-func2.c (at_func2): Likewise.
13681         * lib/linkat.c (linkat): Likewise.
13682         * m4/linkat.m4 (gl_FUNC_LINKAT): Likewise.
13683         * lib/openat-priv.h (at_func2): Add declaration.
13684         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witnesses.
13685         * modules/unistd (Makefile.am): Substitute them.
13686         * lib/unistd.in.h (linkat): Declare it.
13687         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
13688         * doc/posix-functions/linkat.texi (linkat): Likewise.
13689         * doc/posix-functions/link.texi (link): Tweak wording.
13690         * tests/test-link.c (main): Move guts...
13691         * tests/test-link.h (test_link): ...into new file.
13692         * modules/linkat-tests: New test.
13693         * tests/test-linkat.c: Likewise.
13694         * modules/link-tests (Files): Ship new file.
13695         (Depends-on): Add stdbool.
13696
13697         dirname: add library-safe mdir_name
13698         * lib/dirname.h (mdir_name): New prototype.
13699         * lib/dirname.c (dir_name): Move guts...
13700         (mdir_name): ...to new function that avoids xalloc_die.
13701
13702         fchdir: another mingw fix
13703         * modules/fchdir (Depends-on): Drop canonicalize-lgpl.
13704         * lib/fchdir.c (get_name): New helper method; skips canonicalize
13705         on mingw (where it has not yet been ported), and make it optional
13706         elsewhere.
13707         (_gl_register_fd): Use it.
13708
13709         same-inode: make SAME_INODE tri-state, to port to mingw
13710         * NEWS: Mention this change.
13711         * lib/same-inode.h (same-inode.h): Recognize mingw limitation of
13712         st_ino always being 0.
13713         * lib/cycle-check.h (CYCLE_CHECK_REFLECT_CHDIR_UP): Update caller.
13714         * lib/cycle-check.c (cycle_check): Likewise.
13715         * lib/same.c (same_name): Likewise.
13716
13717         lstat: avoid mingw compilation error
13718         * m4/lstat.m4 (gl_FUNC_LSTAT): Avoid duplicate calls to
13719         AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK, and deal with missing
13720         lstat ourselves.
13721         * lib/lstat.c [!HAVE_LSTAT]: Do nothing if <sys/stat.h> override
13722         was adequate.
13723         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Let lstat module handle
13724         the checks for lstat.
13725         (gl_SYS_STAT_H_DEFAULTS): Set default for HAVE_LSTAT.
13726
13727         link: fix test failure on Solaris 9
13728         * lib/link.c (rpl_link): Don't assume link will catch bogus
13729         trailing slash on source.
13730
13731         test-symlinkat: enhance test
13732         * tests/test-readlink.c (main): Move guts...
13733         * tests/test-readlink.h (test_readlink): ...into new file.
13734         * tests/test-symlink.c (main): Move guts...
13735         * tests/test-symlink.h (test_symlink): ...into new file.
13736         * tests/test-symlinkat.c (main): Use new files for further
13737         coverage.
13738         (do_symlink, do_readlink): New helper functions.
13739         * modules/symlink-tests (Files): Ship new file.
13740         (Depends-on): Add stdbool.
13741         * modules/readlink-tests (Files): Ship new file.
13742         (Depends-on): Add stdbool.
13743         * modules/symlinkat-tests (Files): Use new files.
13744
13745 2009-09-23  Eric Blake  <ebb9@byu.net>
13746
13747         readlink: document portability issue with symlink length
13748         * doc/posix-functions/lstat.texi (lstat): Mention that some file
13749         systems have bogus st_size on symlinks, and mention the
13750         areadlink-with-size module.
13751         * doc/posix-functions/fstatat.texi (fstatat): Likewise.
13752         * doc/posix-functions/readlink.texi (readlink): Mention the
13753         areadlink module, and ERANGE failure.
13754         * doc/posix-functions/readlinkat.texi (readlinkat): Likewise.
13755         * tests/test-readlink.c (main): Relax test for AIX, HP-UX.
13756
13757         readlink: fix Solaris 9 bug with trailing slash
13758         * lib/readlink.c (rpl_readlink): Work around trailing slash bug.
13759         * m4/readlink.m4 (gl_FUNC_READLINK): Detect the bug.
13760         * doc/posix-functions/readlink.texi (readlink): Document this.
13761         * modules/readlink-tests: New test.
13762         * tests/test-readlink.c: Likewise.
13763
13764         readlink: fix cygwin 1.5.x bug with return type
13765         * m4/readlink.m4 (gl_FUNC_READLINK): Require correct signature.
13766         * lib/unistd.in.h (readlink): Use ssize_t.
13767         * lib/readlink.c (readlink): Likewise.
13768         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witness.
13769         * modules/unistd (Makefile.am): Substitute it.
13770         * lib/unistd.in.h (readlink): Declare replacement.
13771         * doc/posix-functions/readlink.texi (readlink): Document this.
13772
13773         symlink: use throughout gnulib
13774         * m4/symlinkat.m4 (gl_FUNC_SYMLINKAT): Omit symlink check.
13775         * lib/symlinkat.c (symlinkat) [!HAVE_SYMLINK]: Document why
13776         symlink is not used.
13777         * modules/symlinkat (Depends-on): Add symlink.
13778         * modules/canonicalize-lgpl-tests (Depends-on): Likewise.
13779         * modules/canonicalize-tests (Depends-on): Likewise.
13780         * modules/lstat-tests (Depends-on): Likewise.
13781         * modules/openat-tests (Depends-on): Likewise.
13782         * modules/remove-tests (Depends-on): Likewise.
13783         * modules/rmdir-tests (Depends-on): Likewise.
13784         * modules/unlink-tests (Depends-on): Likewise.
13785         * tests/test-canonicalize-lgpl.c (symlink): Delete stub.
13786         * tests/test-canonicalize.c (symlink): Likewise.
13787         * tests/test-fstatat.c (symlink): Likewise.
13788         * tests/test-lstat.c (symlink): Likewise.
13789         * tests/test-remove.c (symlink): Likewise.
13790         * tests/test-rmdir.c (symlink): Likewise.
13791         * tests/test-unlink.c (symlink): Likewise.
13792         * tests/test-unlinkat.c (symlink): Likewise.
13793
13794         symlink: new module, for Solaris 9 bug
13795         * modules/symlink: New file.
13796         * m4/symlink.m4 (gl_FUNC_SYMLINK): Likewise.
13797         * lib/symlink.c: Likewise.
13798         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add defaults.
13799         * modules/unistd (Makefile.am): Substitute them.
13800         * lib/unistd.in.h (symlink): Declare replacement.
13801         * MODULES.html.sh (File system functions): Mention it.
13802         * doc/posix-functions/symlink.texi (symlink): Likewise.
13803         * modules/symlink-tests: New test.
13804         * tests/test-symlink.c: Likewise.
13805
13806 2009-09-23  Bruno Haible  <bruno@clisp.org>
13807
13808         * gnulib-tool (func_import): Add 'link-warning' to testsrelated_modules
13809         when needed.
13810         Test case: gnulib-tool --import --with-tests atexit inttypes.
13811         Reported by Pauli Miettinen <pauli.miettinen@cs.helsinki.fi>.
13812
13813 2009-09-23  Bruno Haible  <bruno@clisp.org>
13814
13815         * gnulib-tool (func_emit_tests_Makefile_am): Set uses_subdirs in a
13816         subcommand, not in a subshell.
13817
13818 2009-09-22  Eric Blake  <ebb9@byu.net>
13819
13820         unistd: sort replacement declarations
13821         * lib/unistd.in.h: Sort declarations.
13822
13823         open, openat: minor optimization
13824         * lib/open.c (open): If open succeeded, len is non-zero.
13825         * lib/openat.c (rpl_openat): Likewise.
13826
13827         link-follow: ensure correct result
13828         * m4/fcntl_h.m4 (gl_FCNTL_H): Clean up temporary file.
13829         * m4/link-follow.m4 (gl_FUNC_LINK_FOLLOWS_SYMLINK): Likewise, and
13830         distinguish between possible failures.
13831
13832 2009-09-21  Eric Blake  <ebb9@byu.net>
13833
13834         fts: avoid compiler warning
13835         * lib/fts.c (dirent_inode_sort_may_be_useful)
13836         (leaf_optimization_applies) [!__linux__]: Mark unused parameters.
13837
13838 2009-09-19  Bruno Haible  <bruno@clisp.org>
13839
13840         * lib/progreloc.c (canonicalize_file_name): New declaration.
13841
13842 2009-09-19  Eric Blake  <ebb9@byu.net>
13843
13844         link: fix quoting
13845         * m4/link.m4 (gl_FUNC_LINK): Fix shell quoting.
13846
13847         openat: fix openat bugs on Solaris 9
13848         * lib/openat.c (rpl_openat): Work around Solaris 9 bug.
13849         * m4/openat.m4 (gl_FUNC_OPENAT): Also replace openat on Solaris.
13850         * modules/openat (Depends-on): Add open.
13851         * m4/fcntl_h.m4 (gl_FCNTL_H_DEFAULTS): Provide new default.
13852         * modules/fcntl-h (Makefile.am): Substitute it.
13853         * lib/fcntl.in.h (openat): Declare replacement.
13854         * doc/posix-functions/openat.texi (openat): Document this.
13855
13856         openat: move fstatat and unlinkat into correct files
13857         * m4/openat.m4 (gl_FUNC_OPENAT): Adjust which files will be
13858         compiled.
13859         * lib/openat.c (fstatat, unlinkat): Move...
13860         * lib/fstatat.c (fstatat): ...into correct files.
13861         * lib/unlinkat.c (unlinkat): Likewise.
13862
13863         openat: fix unlinkat bugs on Solaris 9
13864         * lib/unlinkat.c (unlinkat): New file.
13865         * modules/openat (Depends-on): Add unlink.
13866         (Files): Distribute it.
13867         * m4/openat.m4 (gl_FUNC_OPENAT): Mark unlinkat for replacement if
13868         trailing slash behavior is broken.
13869         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witness.
13870         * modules/unistd (Makefile.am): Substitute it.
13871         * lib/unistd.in.h (unlinkat): Declare replacement.
13872         * doc/posix-functions/unlinkat.texi (unlinkat): Document this.
13873
13874         openat: fix fstatat bugs on Solaris 9
13875         * lib/fstatat.c (rpl_fstatat): Copy recent fixes from lstat and
13876         stat.
13877         * doc/posix-functions/fstatat.texi (fstatat): Document this.
13878
13879         test-unlinkat: enhance test, to expose Solaris 9 bug
13880         * tests/test-unlink.c (main): Factor guts...
13881         * tests/test-unlink.h (test_rmdir_func): ...into new file.
13882         * tests/test-rmdir.h (test_rmdir_func): Add parameter.
13883         * tests/test-rmdir.c (main): Adjust caller.
13884         * tests/test-unlinkat.c (main): Likewise.  Add unlink tests.
13885         (unlinker): New helper function.
13886         (rmdirat): Enhance check.
13887         * modules/rmdir-tests (Depends-on): Add stdbool.
13888         * modules/unlink-tests (Depends-on): Likewise.
13889         (Files): Add test-unlink.h.
13890         * modules/openat-tests (Files): Likewise.
13891         (Depends-on): Add unlinkdir.
13892
13893         test-fstatat: new test, to expose Solaris 9 bugs
13894         * tests/test-stat.c (main): Factor guts...
13895         * tests/test-stat.h (test_stat_func): ...into new file.
13896         * tests/test-lstat.c (main): Factor guts...
13897         * tests/test-lstat.h (test_lstat_func): ...into new file.
13898         * tests/test-fstatat.c: New file.
13899         * modules/stat-tests (Files): Add test-stat.h.
13900         * modules/lstat-tests (Files): Add test-lstat.h.
13901         (Depends-on): Add stdbool.
13902         * modules/openat-tests (Depends-on): Add pathmax.
13903         (Files): Add test-lstat.h, test-stat.h, test-fstatat.c.
13904         (Makefile.am): Run new test.
13905
13906         remove: new module, for mingw and Solaris 9 bugs
13907         * modules/remove: New file.
13908         * lib/remove.c: Likewise.
13909         * m4/remove.m4 (gl_FUNC_REMOVE): Likewise.
13910         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Add witnesses.
13911         * modules/stdio (Makefile.am): Use them.
13912         * lib/stdio.in.h (remove): Declare replacement.
13913         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
13914         * doc/posix-functions/remove.texi (remove): Likewise.
13915         * modules/remove-tests: New test.
13916         * tests/test-remove.c: Likewise.
13917
13918         unlink: new module, for Solaris 9 bug
13919         * modules/unlink: New file.
13920         * lib/unlink.c: Likewise.
13921         * m4/unlink.m4 (gl_FUNC_UNLINK): Likewise.
13922         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witnesses.
13923         * modules/unistd (Makefile.am): Use them.
13924         * lib/unistd.in.h (stat): Declare replacement.
13925         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
13926         * doc/posix-functions/unlink.texi (unlink): Likewise.
13927         * modules/unlink-tests: New test.
13928         * tests/test-unlink.c: Likewise.
13929
13930         lstat: fix Solaris 9 bug
13931         * lib/lstat.c (lstat): Also check for trailing slash on
13932         non-symlink, non-directories.  Use stat module to simplify logic.
13933         * doc/posix-functions/lstat.texi (lstat): Document it.
13934         * modules/lstat-tests (Depends-on): Add errno, same-inode.
13935         (configure.ac): Check for symlink.
13936         * tests/test-lstat.c (main): Add more tests.
13937
13938         stat: add as dependency to other modules
13939         * modules/chown (Depends-on): Add stat.
13940         * modules/euidaccess (Depends-on): Likewise.
13941         * modules/fchdir (Depends-on): Likewise.
13942         * modules/isdir (Depends-on): Likewise.
13943         * modules/link (Depends-on): Likewise.
13944         * modules/lstat (Depends-on): Likewise.
13945         * modules/mkdir-p (Depends-on): Likewise.
13946         * modules/modechange (Depends-on): Likewise.
13947         * modules/open (Depends-on): Likewise.
13948         * modules/readlink (Depends-on): Likewise.
13949         * modules/same (Depends-on): Likewise.
13950
13951         stat: fix Solaris 9 bug
13952         * m4/stat.m4 (gl_FUNC_STAT): Detect Solaris 9 bug with trailing
13953         slash.
13954         * lib/stat.c (rpl_stat): Work around it.
13955         * doc/posix-functions/stat.texi (stat): Update documentation.
13956
13957         stat: new module, for mingw bug
13958         * modules/stat: New file.
13959         * lib/stat.c: Likewise.
13960         * m4/stat.m4 (gl_FUNC_STAT): Likewise.
13961         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Add witnesses.
13962         * modules/sys_stat (Makefile.am): Use them.
13963         * lib/sys_stat.in.h (stat): Declare replacement.
13964         * lib/openat.c (fstatat): Deal with lstat and stat being function
13965         macros.
13966         * modules/openat (Depends-on): Add inline.
13967         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
13968         * doc/posix-functions/stat.texi (stat): Likewise.
13969         * modules/stat-tests: New test.
13970         * tests/test-stat.c: Likewise.
13971
13972 2009-09-19  Jim Meyering  <meyering@redhat.com>
13973
13974         syntax-check: detect unnecessary inclusion of canonicalize.h
13975         * top/maint.mk (sc_prohibit_canonicalize_without_use): New rule.
13976
13977 2009-09-19  Eric Blake  <ebb9@byu.net>
13978
13979         canonicalize-lgpl: adjust clients to use correct header
13980         * m4/canonicalize.m4 (gl_FUNC_CANONICALIZE_FILENAME_MODE)
13981         (gl_CANONICALIZE_LGPL): Use correct shell quoting.
13982         * modules/relocatable-prog-wrapper (Files): Drop canonicalize.h.
13983         * lib/fchdir.c (includes): Use <stdlib.h>, not "canonicalize.h".
13984         * lib/progreloc.c (includes): Likewise.
13985
13986 2009-09-19  Jim Meyering  <meyering@redhat.com>
13987
13988         test-posixtm.c: correct a comment
13989         * tests/test-posixtm.c: Correct first-line comment.
13990         Spotted by Eric Blake.
13991
13992 2009-09-16  Jim Meyering  <meyering@redhat.com>
13993
13994         posixtm-tests: make T const-correct; add a test case
13995         * tests/test-posixtm.c (T): Declare const.
13996         Add a test for -(2^31+1).
13997         Remove useless can-succeed-only-in-2002 test.
13998
13999         posixtm-tests: adjust the sole failing test
14000         * tests/test-posixtm.c: Correct 0000-01-01 00:00:00 test so that
14001         expected output matches what mktime now produces.  Cross-checked via
14002         erlang's calendar:datetime_to_gregorian_seconds({{1970,1,1},{0,0,0}})
14003
14004         posixtm: move #ifdef'd tests into a new module
14005         * lib/posixtm.c (posixtime): Remove #ifdef'd tests.  Move to...
14006         * tests/test-posixtm.c: ... this new file.
14007         * modules/posixtm-tests: New module.
14008
14009 2009-09-19  Eric Blake  <ebb9@byu.net>
14010
14011         openat: simplify use of at-func.c
14012         * lib/at-func.c (includes): Include prerequisites here, to
14013         simplify requirements on client files.
14014         * lib/openat-priv.h: Add double-inclusion guard.
14015         * lib/faccessat.c (includes): Simplify.
14016         * lib/fchmodat.c (includes): Likewise.
14017         * lib/fchownat.c (includes): Likewise.
14018         * lib/mkdirat.c (includes): Likewise.
14019         * lib/mkfifoat.c (includes): Likewise.
14020         * lib/symlinkat.c (includes): Likewise.
14021
14022         openat: allow return of fd 0
14023         * modules/chdir-long (Depends-on): Relax openat-safer to openat.
14024         * modules/save-cwd (Depends-on): Replace fcntl-safer with
14025         unistd-safer.
14026         * lib/chdir-long.c (includes): Replace "fcntl--.h" with
14027         <fcntl.h>; this module does not leak fds.
14028         * lib/openat.c (includes): Do not use "fcntl_safer"; plain openat
14029         must be allowed to return 0, leaving openat_safer to add the
14030         safety.
14031         (openat_permissive): Avoid writing to just-opened fd 2 if
14032         restoring the current directory fails.
14033         * lib/openat-die.c (openat_restore_fail): Add comment.
14034         * lib/save-cwd.c (includes): Make "fcntl--.h" conditional.
14035         (save_cwd): Guarantee safe fd, but without use of open_safer.
14036         * tests/test-openat.c: New test.
14037         * modules/openat-tests (Files, Makefile.am): Distribute and build
14038         new file.
14039
14040         relocatable-prog-wrapper: fix build
14041         * modules/relocatable-prog-wrapper (Files): Update name of
14042         canonicalize m4 file, broken on 2009-09-17.
14043         Reported by emad hajjar <aleppos@hotmail.com>.
14044
14045 2009-09-19  Bruno Haible  <bruno@clisp.org>
14046
14047         * lib/safe-alloc.h: Use the standard header with GPL copyright.
14048         * lib/safe-alloc.c: Likewise.
14049         Reported by Ian Beckwith <ianb@erislabs.net>.
14050
14051 2009-09-18  Bruno Haible  <bruno@clisp.org>
14052
14053         * gnulib-tool: Add advice to "cannot find configure.ac" error message.
14054         Reported by <erobles@sensacd.com.mx>.
14055
14056 2009-09-17  Eric Blake  <ebb9@byu.net>
14057
14058         canonicalize: in CAN_ALL_BUT_LAST, allow trailing slash
14059         * lib/canonicalize.c (canonicalize_filename_mode): Skip trailing
14060         slashes when checking if last component is missing.
14061         * tests/test-canonicalize.c (main): Test this.
14062
14063         canonicalize, canonicalize-lgpl: honor // if distinct from /
14064         * modules/canonicalize (Files): Add double-slash-root.m4.
14065         * modules/canonicalize-lgpl (Files): Likewise.
14066         * m4/canonicalize.m4 (gl_FUNC_CANONICALIZE_FILENAME_MODE)
14067         (gl_CANONICALIZE_LGPL_SEPARATE): Add dependency.
14068         * lib/canonicalize.c (DOUBLE_SLASH_IS_DISTINCT_ROOT): Provide
14069         fallback definition.
14070         (canonicalize_filename_mode): Use it to protect //.
14071         * lib/canonicalize-lgpl.c (DOUBLE_SLASH_IS_DISTINCT_ROOT)
14072         (__realpath): Likewise.
14073         * tests/test-canonicalize.c (main): Test this.
14074         * tests/test-canonicalize-lgpl.c (main): Likewise.
14075         * modules/canonicalize-tests (Depends-on): Add same-inode.
14076         * modules/canonicalize-lgpl-tests (Depends-on): Likewise.
14077
14078         canonicalize-lgpl: fix glibc bug with trailing slash
14079         * m4/canonicalize-lgpl.m4: Move contents...
14080         * m4/canonicalize.m4: ...here.
14081         (gl_CANONICALIZE_LGPL): Factor realpath check...
14082         (gl_FUNC_REALPATH_WORKS): ...into new macro.  Enhance to catch
14083         glibc 2.3.5 bug, fixed 2005-04-27.
14084         (gl_FUNC_CANONICALIZE_FILENAME_MODE): Use it.
14085         (gl_PREREQ_CANONICALIZE_LGPL): Inline...
14086         (gl_CANONICALIZE_LGPL_SEPARATE): ...into this macro.
14087         * modules/canonicalize-lgpl (Files): Manage file rename.
14088         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Provide default.
14089         * modules/stdlib (Makefile.am): Substitute witness.
14090         * lib/stdlib.in.h (canonicalize_file_name): Declare if replacement
14091         is needed.
14092         * lib/canonicalize-lgpl.c: Also compile if canonicalize_file_name
14093         replacement is required.
14094         * lib/canonicalize.c (canonicalize_file_name): Likewise.
14095         * doc/glibc-functions/canonicalize_file_name.texi
14096         (canonicalize_file_name): Document this.
14097         * doc/posix-functions/realpath.texi (realpath): Likewise.
14098
14099         canonicalize-lgpl: reject non-directory with trailing slash
14100         * lib/canonicalize-lgpl.c (__realpath): Synchronize with glibc.
14101         * tests/test-canonicalize-lgpl.c (main): Enhance test.  This
14102         catches failures in glibc 2.3.5.
14103         * tests/test-canonicalize.c (main): Likewise.
14104
14105         canonicalize-lgpl: use native realpath if it works
14106         * lib/canonicalize-lgpl.c (realpath): Guard with
14107         FUNC_REALPATH_WORKS.
14108         * lib/stdlib.in.h (realpath): Make declaration optional based on
14109         HAVE_REALPATH.
14110         * m4/canonicalize-lgpl.m4 (gl_CANONICALIZE_LGPL): Check whether
14111         native realpath works.
14112         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Provide default.
14113         * modules/stdlib (Makefile.am): Substitute witness.
14114
14115         canonicalize, canonicalize-lgpl: use <stdlib.h>
14116         * modules/canonicalize-lgpl (Files): Drop canonicalize.h.
14117         (Include): Mention <stdlib.h>.
14118         (configure.ac): Mention functions we provide.
14119         * modules/canonicalize (configure.ac): Likewise.
14120         * m4/canonicalize-lgpl.m4 (gl_CANONICALIZE_LGPL): Always replace
14121         realpath if canonicalize_file_name is missing.
14122         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Provide defaults.
14123         * modules/stdlib (Makefile.am): Substitute witnesses.
14124         * lib/stdlib.in.h (canonicalize_file_name, realpath): Declare.
14125         * lib/canonicalize-lgpl.c (includes): Adjust accordingly.
14126         * lib/canonicalize.h (canonicalize_file_name): Drop declaration.
14127         * NEWS: Document this.
14128         * doc/glibc-functions/canonicalize_file_name.texi
14129         (canonicalize_file_name): Likewise.
14130         * doc/posix-functions/realpath.texi (realpath): Likewise.
14131         * tests/test-canonicalize-lgpl.c (includes): Use <stdlib.h>.
14132
14133         test-canonicalize: consolidate into single C program
14134         * tests/test-canonicalize.sh: Delete; move setup into...
14135         * tests/test-canonicalize.c (main): ...the program, making it
14136         easier to run in debugger.  Add some tests.
14137         * modules/canonicalize-tests (Files): Remove unused file.
14138         (Depends-on): Add progname.
14139         (configure.ac, Makefile.am): Simplify.
14140
14141         test-canonicalize-lgpl: consolidate into single C program
14142         * tests/test-canonicalize-lgpl.sh: Delete; move setup into...
14143         * tests/test-canonicalize-lgpl.c (main): ...the program, making it
14144         easier to run in debugger.  Add some tests.
14145         * modules/canonicalize-lgpl-tests (Files): Remove unused file.
14146         (configure.ac, Makefile.am): Simplify.
14147
14148         canonicalize: avoid resolvepath
14149         * m4/canonicalize.m4 (gl_FUNC_CANONICALIZE_FILENAME_MODE): Delete
14150         unnecessary checks.
14151         * lib/canonicalize.c (includes): Simplify.
14152         (canonicalize_file_name): Drop resolvepath implementation.
14153         * modules/canonicalize (Depends-on): Drop filenamecat.
14154
14155         canonicalize: don't lose errno
14156         * lib/canonicalize.c (canonicalize_filename_mode): Protect errno
14157         over calls to free.
14158
14159         canonicalize: simplify errno handling
14160         * lib/canonicalize.c (__set_errno): Delete macro, and use direct
14161         assignment.
14162
14163         canonicalize, canonicalize-lgpl: update module dependencies
14164         * modules/canonicalize (Depends-on): Add extensions, lstat,
14165         pathmax, stdlib.
14166         (Files): Drop pathmax.h.
14167         (configure.ac): Adjust macro name.
14168         * modules/canonicalize-lgpl (Depends-on): Add errno, extensions,
14169         lstat, stdlib, sys_stat.
14170         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME): Rename...
14171         (gl_FUNC_CANONICALIZE_FILENAME_MODE): ...to this, and require
14172         extensions.
14173         * m4/canonicalize-lgpl.m4 (gl_CANONICALIZE_LGPL)
14174         (gl_CANONICALIZE_LGPL_SEPARATE): Require extensions.
14175         (gl_PREREQ_CANONICALIZE_LGPL): Assume unistd.h.
14176         * lib/canonicalize.h (canonicalize_file_name): Use <stdlib.h>
14177         declaration, if available.
14178         * lib/canonicalize-lgpl.c [HAVE_READLINK]: Delete this condition;
14179         we can rely on the readlink module.
14180         (MAXSYMLINKS): Also consult SYMLOOP_MAX.
14181         (includes): Use <unistd.h> unconditionally.
14182
14183 2009-09-17  Eric Blake  <ebb9@byu.net>
14184
14185         maint: make Include sections of modules consistent
14186         * modules/alloca: Use only header name; no need to list #include.
14187         * modules/alloca-opt: Likewise.
14188         * modules/arpa_inet: Likewise.
14189         * modules/canon-host: Likewise.
14190         * modules/configmake: Likewise.
14191         * modules/dirent: Likewise.
14192         * modules/eealloc: Likewise.
14193         * modules/environ: Likewise.
14194         * modules/fchdir: Likewise.
14195         * modules/fcntl: Likewise.
14196         * modules/fcntl-h: Likewise.
14197         * modules/gethrxtime: Likewise.
14198         * modules/gettime: Likewise.
14199         * modules/ignore-value: Likewise.
14200         * modules/inet_ntop: Likewise.
14201         * modules/inet_pton: Likewise.
14202         * modules/inttypes: Likewise.
14203         * modules/isnand-nolibm: Likewise.
14204         * modules/isnanf-nolibm: Likewise.
14205         * modules/mbchar: Likewise.
14206         * modules/mbfile: Likewise.
14207         * modules/mbiter: Likewise.
14208         * modules/mbuiter: Likewise.
14209         * modules/netdb: Likewise.
14210         * modules/netinet_in: Likewise.
14211         * modules/nproc: Likewise.
14212         * modules/pagealign_alloc: Likewise.
14213         * modules/poll: Likewise.
14214         * modules/printf-frexp: Likewise.
14215         * modules/pthread: Likewise.
14216         * modules/putenv: Likewise.
14217         * modules/random_r: Likewise.
14218         * modules/relocatable-prog: Likewise.
14219         * modules/search: Likewise.
14220         * modules/select: Likewise.
14221         * modules/selinux-h: Likewise.
14222         * modules/settime: Likewise.
14223         * modules/signal: Likewise.
14224         * modules/size_max: Likewise.
14225         * modules/socklen: Likewise.
14226         * modules/ssize_t: Likewise.
14227         * modules/stdarg: Likewise.
14228         * modules/stdbool: Likewise.
14229         * modules/stddef: Likewise.
14230         * modules/stdint: Likewise.
14231         * modules/stdio: Likewise.
14232         * modules/stdlib: Likewise.
14233         * modules/string: Likewise.
14234         * modules/strings: Likewise.
14235         * modules/sys_file: Likewise.
14236         * modules/sys_ioctl: Likewise.
14237         * modules/sys_select: Likewise.
14238         * modules/sys_socket: Likewise.
14239         * modules/sys_stat: Likewise.
14240         * modules/sys_time: Likewise.
14241         * modules/sys_times: Likewise.
14242         * modules/sys_utsname: Likewise.
14243         * modules/sys_wait: Likewise.
14244         * modules/sysexits: Likewise.
14245         * modules/time: Likewise.
14246         * modules/times: Likewise.
14247         * modules/tmpfile: Likewise.
14248         * modules/trim: Likewise.
14249         * modules/unistd: Likewise.
14250         * modules/wchar: Likewise.
14251         * modules/wctype: Likewise.
14252
14253 2009-09-17  Bruno Haible  <bruno@clisp.org>
14254
14255         Make getdate.y compile on QNX and NetBSD 5 / i386.
14256         * m4/getdate.m4 (gl_GETDATE): Conditionally define
14257         TIME_T_FITS_IN_LONG_INT.
14258         * lib/getdate.y (long_time_t): New type.
14259         (relative_time): Change type of 'seconds' field to long_time_t.
14260         (get_date): Update types of local variables. Check against overflow
14261         during conversion from long_time_t to time_t.
14262         Reported by Matt Kraai <kraai@ftbfs.org>
14263         and Hasso Tepper <hasso@netbsd.org>.
14264
14265 2009-09-17  Bruno Haible  <bruno@clisp.org>
14266
14267         * modules/COPYING: Update copyright years.
14268         * modules/README: Likeiwse.
14269         * doc/gnulib-intro.texi (Copyright): Use a wildcard year.
14270         Reported by Ian Beckwith <ianb@erislabs.net>.
14271
14272 2009-09-17  Ian Beckwith  <ianb@erislabs.net>  (tiny change)
14273
14274         * users.txt: Update references for gnuit package.
14275
14276 2009-09-17  Ian Beckwith  <ianb@erislabs.net>  (tiny change)
14277
14278         * m4/getdelim.m4: Fix typo in copyright line.
14279
14280 2009-09-17  Bruno Haible  <bruno@clisp.org>
14281
14282         * lib/atoll.c: Use the standard header with GPL copyright.
14283         * lib/argz.in.h: Likewise.
14284         * lib/glob.c: Likewise.
14285         * lib/glob-libc.h: Likewise.
14286         * lib/random_r.c: Likewise.
14287         * lib/siglist.h: Likewise.
14288         * lib/strsignal.c: Likewise.
14289         Reported by Ian Beckwith <ianb@erislabs.net>.
14290
14291 2009-09-17  Eric Blake  <ebb9@byu.net>
14292
14293         rmdir: ensure correct dependency order
14294         * m4/rmdir.m4 (gl_FUNC_RMDIR): Require unistd defaults.
14295
14296 2009-09-17  Bruno Haible  <bruno@clisp.org>
14297
14298         Disable assertion that fails on NetBSD 5 / i386.
14299         * lib/mktime.c (ydhms_diff): Disable assertion about time_t size.
14300         Reported by Sam Steingold <sds@gnu.org>
14301         and Hasso Tepper <hasso@netbsd.org>.
14302
14303 2009-09-16  Eric Blake  <ebb9@byu.net>
14304
14305         unlinkdir: port to mingw
14306         * m4/unlinkdir.m4 (gl_UNLINKDIR): Add mingw to list of platforms
14307         on which no one can unlink a directory.
14308
14309         stdlib: sort witness names
14310         * modules/stdlib (Makefile.am): Sort replacements.
14311         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Likewise.
14312         * lib/stdlib.in.h: Likewise.
14313
14314         parse-duration-tests: avoid link failure
14315         * modules/parse-duration-tests (test_parse_duration_LDADD): Add
14316         LIBINTL.
14317         Reported by Tom G. Christensen.
14318
14319         openat-tests: ensure unlinkat behaves like rmdir
14320         * tests/test-rmdir.c (main): Factor guts...
14321         * tests/test-rmdir.h (test_rmdir_func): ...into new file.
14322         * modules/rmdir-tests (Files): Ship new file.
14323         * modules/openat-tests: New test.
14324         * tests/test-unlinkat.c: Likewise.
14325
14326         rmdir-errno: mark obsolete, it is unsafe for cross-compilation
14327         * modules/rmdir-errno (Status, Notice): Now obsolete.
14328
14329         rmdir: work around cygwin 1.5.x and mingw bugs
14330         * m4/rmdir.m4 (gl_FUNC_RMDIR): Detect the bugs.
14331         * lib/rmdir.c (rmdir): Work around it.
14332         * modules/rmdir (Status, Notice): No longer obsolete.
14333         (Files): Add dos.m4.
14334         (Depends-on): Add unistd.
14335         (configure.ac): Set witnesses.
14336         (License): Relax to LGPLv2+.
14337         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Set defaults.
14338         * modules/unistd (Makefile.am): Substitute witnesses.
14339         * lib/unistd.in.h (rmdir): Declare replacement.
14340         * doc/posix-functions/rmdir.texi (rmdir): Document this.
14341         * modules/rmdir-tests: New tests.
14342         * tests/test-rmdir.c: Likewise.
14343
14344 2009-09-15  Eric Blake  <ebb9@byu.net>
14345
14346         fchdir: improve use of replacement functions
14347         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Set appropriate witnesses.
14348         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Add REPLACE_FSTAT.
14349         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): Add REPLACE_OPENDIR,
14350         REPLACE_CLOSEDIR.
14351         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add REPLACE_DUP.
14352         * modules/sys_stat (Makefile.am): Substitute correct witness.
14353         * modules/dirent (Makefile.am): Likewise.
14354         * modules/unistd (Makefile.am): Likewise.
14355         * lib/dirent.in.h (opendir, closedir): Use better witnesses.
14356         * lib/unistd.in.h (dup): Likewise.
14357         * lib/sys_stat.in.h (fstat): Likewise.
14358
14359         maint: ignore gnulib-tool temp files
14360         * .gitignore: Ignore files created during gnulib-tool --test.
14361
14362 2009-09-13  Jim Meyering  <meyering@redhat.com>
14363
14364         posixtm: don't reject a time that specify "60" as the number of seconds
14365         * lib/posixtm.c (posixtime): The code to reject invalid dates
14366         would also reject a time specified with the .60 suffix.
14367         But POSIX allows that, in order to accommodate leap seconds.
14368         So don't reject it.
14369         (main): Adjust tests accordingly.
14370         * modules/posixtm (Depends-on): Add stpcpy.
14371
14372 2009-09-11  Jim Meyering  <meyering@redhat.com>
14373
14374         announce-gen: include [$release_type] in emitted Subject:
14375         * build-aux/announce-gen (get_tool_versions): Include [$release_type],
14376         e.g., [stable] in the emitted Subject: line.
14377
14378 2009-09-10  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
14379
14380         Remove obsolete macros from several modules.
14381         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Replace
14382         obsolete Autoconf macros with their modern counterparts.
14383         * m4/check-math-lib.m4 (gl_CHECK_MATH_LIB): Likewise.
14384         * m4/gc-camellia.m4 (gl_GC_CAMELLIA): Likewise.
14385         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Likewise.
14386         * m4/getdate.m4 (gl_C_COMPOUND_LITERALS): Likewise.
14387         * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): Likewise.
14388         * m4/getline.m4 (gl_FUNC_GETLINE): Likewise.
14389         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Likewise.
14390         * m4/isfinite.m4 (gl_ISFINITEL_WORKS): Likewise.
14391         * m4/poll.m4 (gl_FUNC_POLL): Likewise.
14392         * m4/readline.m4 (gl_FUNC_READLINE): Likewise.
14393         * m4/round.m4 (gl_FUNC_ROUND): Likewise.
14394         * m4/roundf.m4 (gl_FUNC_ROUNDF): Likewise.
14395         * m4/select.m4 (gl_FUNC_SELECT): Likewise.
14396         * m4/sockets.m4 (gl_SOCKETS): Likewise.
14397         * m4/socklen.m4 (gl_TYPE_SOCKLEN_T): Likewise.
14398         * m4/sockpfaf.m4 (gl_SOCKET_FAMILIES): Likewise.
14399         * m4/sysexits.m4 (gl_SYSEXITS): Likewise.
14400         * m4/time_r.m4 (gl_TIME_R): Likewise.
14401         * m4/tsearch.m4 (gl_FUNC_TSEARCH): Likewise.
14402         * m4/vararrays.m4 (AC_C_VARARRAYS): Likewise.
14403         * m4/wctype.m4 (gl_WCTYPE_H): Likewise.
14404
14405         Fix copyright header in build-aux scripts.
14406         * build-aux/git-version-gen: Fix copyright header to match GPLv3
14407         recommendation.
14408         * build-aux/ncftpput-ftp: Likewise.
14409         * build-aux/update-copyright: Likewise.
14410
14411 2009-09-09  Eric Blake  <ebb9@byu.net>
14412
14413         test-link: allow Linux choice of errno
14414         * tests/test-link.c (main): Relax test for alternate error.
14415
14416         strndup: fix improper m4 caching
14417         * m4/strndup.m4 (gl_FUNC_STRNDUP): Rework to avoid side effects
14418         inside AC_CACHE_CHECK.  Use REPLACE_STRNDUP, not HAVE_STRNDUP.
14419         (gl_PREREQ_STRNDUP): Delete.
14420         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Update default.
14421         * modules/string (Makefile.am): Substitute it.
14422         * lib/string.in.h (strndup): Modernize prototype.
14423
14424         getcwd: port to mingw
14425         * m4/getcwd.m4 (gl_FUNC_GETCWD): Mingw directories are very
14426         different from the POSIX assumptions made throughout the getcwd
14427         module; fortunately, the mingw getcwd does not need replacement.
14428         (gl_FUNC_GETCWD_NULL): Skip test on mingw.
14429         * modules/getcwd-tests: New test.
14430         * tests/test-getcwd.c: Likewise.
14431
14432         link: fix platform bugs
14433         * m4/link.m4 (gl_FUNC_LINK): Detect Solaris and Cygwin bugs.
14434         * lib/link.c (link): Work around them.  Fix related mingw bug.
14435         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add REPLACE_LINK.
14436         * modules/unistd (Makefile.am): Substitute it.
14437         * lib/unistd.in.h (link): Declare replacement.
14438         * doc/posix-functions/link.texi (link): Document this.
14439         * modules/link (Depends-on): Add strdup-posix, sys_stat.
14440
14441         test-link: consolidate into single C program, test more cases
14442         * tests/test-link.sh: Delete.
14443         * tests/test-link.c: Test more error conditions.  Exposes bugs on
14444         at least Cygwin and Solaris.
14445         * modules/link-tests (Files): Remove unused file.
14446         (Depends-on): Add errno, sys_stat.
14447         (Makefile.am): Simplify.
14448
14449 2009-09-08  Bruno Haible  <bruno@clisp.org>
14450
14451         Work around towlower, towupper bug on mingw.
14452         * lib/wctype.in.h (towlower, towupper) [__MINGW32__]: New replacements.
14453         * m4/wctype.m4 (gl_WCTYPE_H): Replace <wctype.h> also on mingw.
14454         * doc/posix-functions/towlower.texi: Mention the mingw bug.
14455         * doc/posix-functions/towupper.texi: Likewise.
14456         Reported by Eric Blake.
14457
14458 2009-09-08  Jim Meyering  <meyering@redhat.com>
14459
14460         build: don't try to run autoheader if we don't use it
14461         * build-aux/bootstrap: Define AUTOHEADER=true when AC_CONFIG_HEADERS
14462         is not used in configure.ac.
14463
14464 2009-09-08  Eric Blake  <ebb9@byu.net>
14465
14466         euidaccess: fix compilation error
14467         * lib/euidaccess.c (includes): Add <fcntl.h>, for AT_EACCESS.
14468
14469         rawmemchr: relax license
14470         * modules/rawmemchr (License): Derived from glibc, so LGPLv2+ is
14471         okay.
14472         Reported by Jim Meyering.
14473
14474         mkfifoat: new module
14475         * modules/mkfifoat: New file.
14476         * lib/mkfifoat.c: Likewise.
14477         * m4/mkfifoat.m4 (gl_FUNC_MKFIFOAT): Likewise.
14478         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Add witnesses.
14479         * modules/sys_stat (Makefile.am): Use them.
14480         * lib/sys_stat.in.h (mkfifoat, mknodat): Declare them.
14481         * MODULES.html.sh (File system functions): Mention module.
14482         * doc/posix-functions/mkfifoat.texi (mkfifoat): Likewise.
14483         * doc/posix-functions/mknodat.texi (mknodat): Likewise.
14484         * modules/mkfifoat-tests: New test.
14485         * tests/test-mkfifoat.c: Likewise.
14486
14487         strchrnul: relax license
14488         * modules/strchrnul (License): Derived from glibc, so LGPLv2+ is
14489         okay.
14490         Reported by Jim Meyering.
14491
14492 2009-09-08  Eric Blake  <ebb9@byu.net>
14493
14494         fstatat: fix compilation on Solaris
14495         * lib/fstatat.c (includes): Add fcntl.h.
14496         Reported by Pádraig Brady.
14497
14498 2009-09-07  Eric Blake  <ebb9@byu.net>
14499
14500         rename: modernize replacement
14501         * modules/rename (Depends-on): Add stdio.
14502         (configure.ac): Declare witness.
14503         * m4/rename.m4 (gl_FUNC_RENAME): Ensure dependency order, and let
14504         stdio take care of replacement.
14505         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Add new defaults.
14506         * modules/stdio (Makefile.am): Substitute them.
14507         * lib/stdio.in.h (rename): Declare replacement.
14508         * lib/rename.c (includes): Allow cross-compilation to non-windows
14509         machines.
14510         * doc/posix-functions/rename.texi (rename): Improve
14511         documentation.
14512
14513         stdio: sort witness names
14514         * modules/stdio (Makefile.am): Sort replacements.
14515         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Likewise.
14516         * lib/stdio.in.h: Likewise.
14517
14518         getcwd: minor cleanups
14519         * lib/getcwd.c (AT_FDCWD): Delete; rely on <fcntl.h> instead.
14520         (is_ENAMETOOLONG): Delete; ENAMETOOLONG is portable.
14521
14522         openat: provide more convenience names
14523         * modules/faccessat (configure.ac): Add C witness.
14524         * lib/unistd.in.h (readlinkat): Fix typo.
14525         * lib/openat.h (statat, lstatat, accessat, euidaccessat): New
14526         convenience wrappers.
14527         * top/maint.mk (sc_prohibit_openat_without_use): Allow these
14528         wrappers in syntax checks.
14529
14530 2009-09-06  Eric Blake  <ebb9@byu.net>
14531
14532         doc: fix comments in recent patches
14533         * lib/faccessat.c: Mention correct function.
14534         * lib/fchmodat.c: Likewise.
14535         * lib/fchownat.c: Likewise.
14536         * lib/symlinkat.c: Likewise.
14537         * doc/posix-headers/fcntl.texi (fcntl.h): Cygwin 1.7 has AT_*
14538         constants.
14539
14540         faccessat, symlinkat: continue cleanup of previous patch
14541         * m4/symlinkat.m4 (gl_FUNC_SYMLINKAT): Ensure dependency order.
14542         * m4/faccessat.m4 (gl_FUNC_FACCESSAT): Likewise.
14543         * modules/unistd (Makefile.am): Substitute GNULIB_READLINKAT.
14544         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Offer GNULIB_READLINKAT.
14545         * modules/symlinkat (configure.ac): Set GNULIB_READLINKAT.
14546         * lib/unistd.in.h (readlinkat): Declare if GNULIB_READLINKAT is
14547         set.
14548
14549 2009-09-06  Bruno Haible  <bruno@clisp.org>
14550
14551         * lib/sys_stat.in.h (fchmodat): Declare if GNULIB_FCHMODAT is set.
14552         (fstatat): Declare if GNULIB_FSTATAT is set.
14553         (mkdirat): Declare if GNULIB_MKDIRAT is set.
14554         * lib/unistd.in.h (fchownat): Declare if GNULIB_FCHOWNAT is set.
14555         (unlinkat): Declare if GNULIB_UNLINKAT is set.
14556         * modules/fcntl-h (Files): Remove m4/openat.m4.
14557         * modules/sys_stat (Files): Remove m4/openat.m4.
14558         (Makefile.am): Substitute GNULIB_FCHMODAT, GNULIB_FSTATAT,
14559         GNULIB_MKDIRAT instead of GNULIB_OPENAT.
14560         * modules/unistd (Files): Remove m4/openat.m4.
14561         (Makefile.am): Substitute GNULIB_FCHOWNAT, GNULIB_UNLINKAT instead of
14562         GNULIB_OPENAT.
14563         * m4/fcntl_h.m4 (gl_FCNTL_H_DEFAULTS): Initialize GNULIB_OPENAT,
14564         HAVE_OPENAT here. Don't require gl_OPENAT_DEFAULTS.
14565         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Initialize
14566         GNULIB_FCHMODAT, GNULIB_FSTATAT, GNULIB_MKDIRAT, HAVE_FCHMODAT,
14567         HAVE_FSTATAT, HAVE_MKDIRAT, REPLACE_FSTATAT here. Don't require
14568         gl_OPENAT_DEFAULTS.
14569         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_FCHOWNAT,
14570         GNULIB_UNLINKAT, HAVE_FCHOWNAT, HAVE_UNLINKAT, REPLACE_FCHOWNAT here.
14571         Don't require gl_OPENAT_DEFAULTS.
14572         * m4/openat.m4 (gl_FUNC_OPENAT): Require gl_FCNTL_H_DEFAULTS,
14573         gl_SYS_STAT_H_DEFAULTS, gl_UNISTD_H_DEFAULTS. Set GNULIB_FCHMODAT,
14574         GNULIB_FSTATAT, GNULIB_MKDIRAT, GNULIB_FCHOWNAT, GNULIB_UNLINKAT.
14575         (gl_OPENAT_DEFAULTS): Remove macro.
14576
14577 2009-09-06  Bruno Haible  <bruno@clisp.org>
14578
14579         * modules/openat (configure.ac): Remove unneeded witness.
14580
14581 2009-09-06  Bruno Haible  <bruno@clisp.org>
14582
14583         Set errno to ENOSYS when a function is entirely unsupported.
14584         * lib/chown.c (rpl_chown) [!HAVE_CHOWN]: Set errno to ENOSYS instead of
14585         EOPNOTSUPP.
14586         * lib/lchown.c (lchown) [!HAVE_CHOWN]: Likewise.
14587         * modules/chown (Depends-on): Remove errno.
14588
14589 2009-09-06  Bruno Haible  <bruno@clisp.org>
14590
14591         * doc/posix-headers/fcntl.texi (AT_*): Mention affected platforms.
14592
14593 2009-09-06  Bruno Haible  <bruno@clisp.org>
14594
14595         * lib/sys_stat.in.h: Fix preprocessor command indentation.
14596
14597 2009-09-06  Ben Pfaff  <blp@gnu.org>
14598             Bruno Haible  <bruno@clisp.org>
14599
14600         Work around a glibc bug in strtok_r.
14601         * lib/string.in.h (strtok_r): Replace if REPLACE_STRTOK_R is set.
14602         Undefine if UNDEFINE_STRTOK_R is set.
14603         * lib/strtok_r.c (strtok_r, __strtok_r) [!_LIBC]: Don't undefine.
14604         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
14605         REPLACE_STRTOK_R and UNDEFINE_STRTOK_R.
14606         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Check against the glibc bug.
14607         * modules/string (Makefile.am): Substitute REPLACE_STRTOK_R,
14608         UNDEFINE_STRTOK_R.
14609         * doc/posix-functions/strtok_r.texi: Mention the glibc 2.7 bug.
14610
14611 2009-09-06  Sergey Poznyakoff  <gray@gnu.org.ua>
14612
14613         exclude: minor fix
14614         * lib/exclude.c: Include wctype.h
14615
14616 2009-09-06  Akim Demaille  <demaille@gostai.com>
14617
14618         bootstrap: improve error message
14619         * build-aux/bootstrap (find_tool): Upon failure, report the list
14620         of candidates.
14621         Honor the initial value of the envvar.
14622
14623 2009-09-05  Eric Blake  <ebb9@byu.net>
14624
14625         symlinkat: new module
14626         * modules/symlinkat: New file.
14627         * lib/symlinkat.c: Likewise.
14628         * m4/symlinkat.m4 (gl_FUNC_SYMLINKAT): Likewise.
14629         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witnesses.
14630         * modules/unistd (Makefile.am): Use them.
14631         * lib/unistd.in.h (symlinkat, readlinkat): Declare them.
14632         (faccessat) [GNULIB_POSIXCHECK]: Fix typo.
14633         * lib/at-func.c (FUNC_RESULT): New macro, defaulting to int.
14634         * MODULES.html.sh (File system functions): Mention module.
14635         * doc/posix-functions/symlinkat.texi (symlinkat): Likewise.
14636         * doc/posix-functions/readlinkat.texi (readlinkat): Likewise.
14637         * modules/symlinkat-tests: New test.
14638         * tests/test-symlinkat.c: Likewise.
14639
14640         test-openat-safer: add more checks
14641         * tests/test-openat-safer.c (main): Check more code paths.
14642
14643 2009-09-05  Jim Meyering  <meyering@redhat.com>
14644
14645         syntax-check: detect unnecessary inclusion of openat.h
14646         * top/maint.mk (sc_prohibit_openat_without_use): New rule.
14647
14648 2009-09-05  Bruno Haible  <bruno@clisp.org>
14649
14650         Support towlower, towupper.
14651         * doc/posix-functions/towlower.texi: Mention module wctype.
14652         * doc/posix-functions/towupper.texi: Likewise.
14653         * lib/wctype.in.h (towlower, towupper): New functions.
14654         * tests/test-wctype.c: Include stdio.h, stdlib.h.
14655         (ASSERT): New macro.
14656         (e): New variable.
14657         (main): Test also towlower, towupper. Test WEOF argument.
14658         Reported by Alan Hourihane <alanh@fairlite.co.uk>.
14659
14660 2009-09-05  Bruno Haible  <bruno@clisp.org>
14661
14662         Fix conversion behaviour when the input is invalid.
14663         * lib/striconveh.c (mem_cd_iconveh_internal): Fix storing of question
14664         mark occurring in first pass of indirect conversion.
14665         * tests/test-striconveh.c (main): Test conversion of invalid ASCII
14666         input.
14667         Found by clang's static analyzer.
14668
14669 2009-09-05  Bruno Haible  <bruno@clisp.org>
14670
14671         * tests/test-striconveh.c (main): Test indirect conversion on platforms
14672         where direct conversion is possible.
14673
14674 2009-09-04  Eric Blake  <ebb9@byu.net>
14675
14676         openat: fail with ENOENT on empty name
14677         * lib/openat-proc.c (openat_proc_name): Special-case the empty
14678         buffer.
14679
14680         link-follow: fix logic bug in prior patch
14681         * m4/link-follow.m4 (gl_FUNC_LINK_FOLLOWS_SYMLINK): Fix bug that
14682         reversed sense of yes and no in prior patch.  Avoid confusing
14683         compilation failure with desired semantics.
14684
14685         link-follow: accomodate mingw and cross-compilation
14686         * m4/link-follow.m4 (gl_AC_FUNC_LINK_FOLLOWS_SYMLINK): Rename...
14687         (gl_FUNC_LINK_FOLLOWS_SYMLINK): ...to this.  Change
14688         cross-compilation results to -1, to make linkat easier to
14689         implement when cross-compiling.  Trivially support mingw.
14690         * modules/link-follow (configure.ac): Call new name.
14691         * NEWS: Mention this.
14692
14693 2009-09-03  Eric Blake  <ebb9@byu.net>
14694
14695         faccessat: compile replacement
14696         * m4/faccessat.m4 (gl_FUNC_FACCESSAT): Build replacement when
14697         needed.
14698
14699         fts: fix compilation error
14700         * lib/fts.c (includes): Re-add "openat.h", for
14701         openat_needs_fchdir.
14702
14703         faccessat: new module
14704         * modules/faccessat: New file.
14705         * lib/faccessat.c: Likewise.
14706         * m4/faccessat.m4 (gl_FUNC_FACCESSAT): Likewise.
14707         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witness.
14708         * modules/unistd (Makefile.am): Use it.
14709         * lib/unistd.in.h (faccessat): Declare it.
14710         (F_OK, X_OK, W_OK, R_OK): Provide definitions.
14711         * lib/fcntl.in.h (AT_SYMLINK_FOLLOW, AT_EACCESS): Likewise.
14712         * MODULES.html.sh (File system functions): Mention it.
14713         * doc/posix-functions/faccessat.texi (faccessat): Likewise.
14714         * doc/posix-headers/fcntl.texi (fcntl.h): Likewise.
14715
14716         euidaccess: prefer POSIX over non-standard implementation
14717         * m4/euidaccess.m4 (gl_PREREQ_EUIDACCESS): Check for faccessat.
14718         * lib/euidaccess.c (euidaccess): Use it if available.
14719
14720         openat: make template easier to use
14721         * lib/at-func.c (CALL_FUNC): Allow AT_FUNC_USE_F1_COND and
14722         AT_FUNC_F2 to be undefined.
14723         (VALIDATE_FLAG): New macro; use it to reject bad flags.
14724         (AT_FUNC_USE_F1_COND): Change sense to just flag bit.
14725         * lib/fchmodat.c (AT_FUNC_USE_F1_COND): Adjust.
14726         * lib/fchownat.c (AT_FUNC_USE_F1_COND): Likewise.
14727         * lib/openat.c (AT_FUNC_USE_F1_COND) [fstatat, unlinkat]:
14728         Likewise.
14729         * lib/mkdirat.c (AT_FUNC_F2, AT_FUNC_USE_F1_COND): Delete.
14730         * lib/selinux-at.c (AT_FUNC_F2, AT_FUNC_USE_F1_COND)
14731         [getfileconat, lgetfileconat, setfileconat, lsetfileconat]:
14732         Likewise.
14733
14734         openat: declare in POSIX headers
14735         * NEWS: Mention this.
14736         * modules/openat (configure.ac): Declare witnesses.
14737         (Depends-on): Add fcntl-h, sys_stat, unistd.
14738         (Include): Mention correct headers.
14739         * modules/fcntl-h (Depends-on): Add link-warning.
14740         (Files): Add openat.m4.
14741         (Makefile.am): Substitute witnesses.
14742         * modules/sys_stat (Files, Makefile.am): Likewise.
14743         * modules/unistd (Files, Makefile.am): Likewise.
14744         * m4/openat.m4 (gl_FUNC_OPENAT, gl_FUNC_FCHOWNAT): Set witnesses.
14745         (gl_OPENAT_DEFAULTS): New macro.
14746         * m4/fcntl_h.m4 (gl_FCNTL_H_DEFAULTS): Use it.
14747         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Likewise.
14748         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Likewise.
14749         (SYS_STAT_H): Remove unused variable.
14750         * doc/posix-headers/fcntl.texi (fcntl.h): Update content.
14751         * lib/fcntl--.h (includes): Remove unneeded header.
14752         * lib/openat-safer.c (includes): Likewise.
14753         * lib/openat.h (AT_FDCWD, AT_SYMLINK_NOFOLLOW, AT_REMOVEDIR)
14754         (openat, fstatat, unlinkat, mkdirat, fchmodat, fchownat): Move to
14755         appropriate headers.
14756         (__OPENAT_PREFIX): Delete.
14757         * lib/fcntl.in.h (openat): Provide declaration.
14758         (AT_FDCWD): Fix Solaris bug.
14759         (AT_SYMLINK_NOFOLLOW, AT_REMOVEDIR): Provide macros.
14760         * lib/sys_stat.in.h (fstatat, mkdirat): Provide declaration.
14761         * lib/fchmodat.c (includes):  Adjust to find declaration.
14762         * lib/fchownat.c (includes): Likewise.
14763         * lib/mkdirat.c (includes): Likewise.
14764         * lib/fstatat.c (includes): Likewise.  Ensure original fstatat is
14765         still visible.
14766
14767 2009-09-02  Eric Blake  <ebb9@byu.net>
14768
14769         errno: use consistently
14770         * lib/c-stack.c (ENOTSUP): <errno.h> guarantees a definition.
14771         * lib/canonicalize-lgpl.c (ENAMETOOLONG): Likewise.
14772         * lib/canonicalize.c (ELOOP): Likewise.
14773         * lib/inet_ntop.c (EAFNOSUPPORT): Likewise.
14774         * lib/inet_pton.c (EAFNOSUPPORT): Likewise.
14775         * lib/lchown.c (EOPNOTSUPP): Likewise.
14776         * lib/openat-priv.h (ENOSYS, EOPNOTSUPP): Likewise.
14777         * lib/savewd.c (ESTALE): Likewise.
14778         * lib/settime.c (ENOSYS): Likewise.
14779         * lib/utimens.c (ENOSYS): Likewise.
14780         * lib/xgethostname.c (ENAMETOOLONG): Likewise.
14781         * lib/chdir-safer.c (ELOOP): Likewise.
14782         (chdir_no_follow): Use HAVE_READLINK, not ELOOP, as witness.
14783         * modules/c-stack (Depends-on): Add errno.
14784         * modules/canonicalize (Depends-on): Likewise.
14785         * modules/chdir-safer (Depends-on): Likewise.
14786         * modules/fdopendir (Depends-on): Likewise.
14787         * modules/inet_ntop (Depends-on): Likewise.
14788         * modules/inet_pton (Depends-on): Likewise.
14789         * modules/lchown (Depends-on): Likewise.
14790         * modules/openat (Depends-on): Likewise.
14791         * modules/savewd (Depends-on): Likewise.
14792         * modules/settime (Depends-on): Likewise.
14793         * m4/chdir-safer.m4 (gl_CHDIR_SAFER): Check for readlink.
14794
14795         fts: avoid leaking fds
14796         * modules/fts (Depends-on): Add cloexec.
14797         * lib/fts.c (opendirat, diropen, fts_build): Set close-on-exec
14798         flag.
14799
14800         fts: make directory fds more robust
14801         * lib/fts.c (O_DIRECTORY): Let <fcntl.h> take care of this.
14802         (opendirat): Specify O_DIRECTORY, and add fallbacks for safety.
14803
14804         backupfile, chdir-long, fts, savedir: make safer
14805         * lib/backupfile.c (includes): Use "dirent--.h", since
14806         numbered_backup can write to stderr during readdir.
14807         * lib/savedir.c (includes): Likewise.
14808         * lib/chdir-long.c (includes): Use "fcntl--.h", since openat
14809         emulation can write to stderr on failure.
14810         * lib/fts.c (includes) [!_LIBC]: Likewise for opendir and openat.
14811         * lib/getcwd.c: Document why opendir_safer is unused.
14812         * lib/glob.c: Likewise.
14813         * lib/scandir.c: Likewise.
14814         * lib/openat-proc.c: Likewise, for open_safer.
14815         * modules/backupfile (Depends-on): Add dirent-safer.
14816         * modules/savedir (Depends-on): Likewise.
14817         * modules/fts (Depends-on): Add dirent-safer and openat-safer.
14818         * modules/chdir-long (Depends-on): Add openat-safer.
14819
14820         openat-safer: new module
14821         * modules/openat-safer: New file.
14822         * lib/openat-safer.c: Likewise.
14823         * m4/fcntl-safer.m4 (gl_OPENAT_SAFER): New macro.
14824         * lib/fcntl-safer.h (openat_safer): Declare.
14825         * lib/fcntl--.h (openat): Override.
14826         * MODULES.html.sh (File descriptor based I/O): Mention it.
14827         * lib/openat.h: Add double-inclusion guards.
14828         * lib/openat.c (includes): Only include "fcntl-safer.h", not
14829         "fcntl--.h", so we can implement openat.
14830         * modules/openat-safer-tests: New test.
14831         * tests/test-openat-safer.c: New file.
14832
14833         dirent-safer: new module
14834         * modules/dirent-safer: New file.
14835         * lib/dirent--.h: Likewise.
14836         * lib/dirent-safer.h: Likewise.
14837         * lib/opendir-safer.c: Likewise.
14838         * m4/dirent-safer.m4: Likewise.
14839         * MODULES.html.sh (Enhancements for POSIX:2008): Mention it.
14840         * modules/dirent-safer-tests: New test.
14841         * tests/test-dirent-safer.c: New file.
14842         * lib/fdopendir.c (includes): Ensure fdopendir is also safe.
14843
14844         fdopendir: optimize on mingw
14845         * lib/unistd.in.h (_gl_directory_name): New prototype.
14846         * lib/fchdir.c (_gl_directory_name): Implement it.
14847         (fchdir): Use it to simplify implementation.
14848         * lib/fdopendir.c (fdopendir) [REPLACE_FCHDIR]: Use metadata from
14849         fchdir, when available, to avoid calling [f]chdir().
14850
14851         fdopendir: split into its own module
14852         * lib/openat.c (fdopendir): Move...
14853         * lib/fdopendir.c: ...into new file.
14854         * modules/fdopendir: New module.
14855         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR): New file.
14856         * modules/openat (Depends-on): Add fdopendir.
14857         * m4/openat.m4 (gl_FUNC_OPENAT): No longer need to check for
14858         fdopendir here.
14859         * modules/savedir (Depends-on): Only need fdopendir, not full
14860         openat.
14861         * lib/savedir.c (include): Use <dirent.h>, not "openat.h".
14862         * lib/openat.h (fdopendir): Drop prototype.
14863         * lib/dirent.in.h (fdopendir): Provide prototype.
14864         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): Add replacements.
14865         * modules/dirent (Makefile.am): Substitute them.
14866         * MODULES.html.sh (File system functions): Mention it.
14867         * doc/posix-functions/fdopendir.texi (fdopendir): Likewise.
14868         * modules/fdopendir-tests: New file.
14869         * tests/test-fdopendir.c: Likewise.
14870
14871         fchdir: use more consistent macro convention
14872         * lib/fcntl.in.h (_gl_register_fd): Move declaration to unistd.
14873         * lib/sys_stat.in.h (rpl_fstat): Declare via make-time
14874         REPLACE_FCHDIR, rather than relying on config.h macros.
14875         * lib/unistd.in.h (fchdir): Move all fchdir internal declarations
14876         inside a single make-time REPLACE_FCHDIR block, rather than using
14877         the config.h FCHDIR_REPLACEMENT.
14878         * m4/fchdir.m4 (gl_FUNC_FCHDIR): REPLACE_FCHDIR was already
14879         AC_SUBST'd, also AC_DEFINE it.  Don't define FCHDIR_REPLACEMENT.
14880         Manage fstat replacement.
14881         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Pick up
14882         REPLACE_FCHDIR.
14883         * modules/sys_stat (Files): Add m4/unistd_h.m4.
14884         (Makefile.am): Substitute REPLACE_FCHDIR.
14885         * lib/close.c (rpl_close): Use REPLACE_FCHDIR, not
14886         FCHDIR_REPLACEMENT.
14887         * lib/dup-safer.c (dup_safer): Likewise.
14888         * lib/dup2.c (rpl_dup2): Likewise.
14889         * lib/dup3.c (rpl_dup3): Likewise.
14890         * lib/open.c (rpl_open): Likewise.
14891
14892         fchdir: simplify error handling, and support dup3
14893         * modules/fchdir (Depends-on): Use strdup-posix, not strdup.  Add
14894         stdbool, malloc-posix, realloc-posix.
14895         * lib/fchdir.c (struct dir_info_t): Delete saved_errno.
14896         (ensure_dirs_slot): Return false on allocation failure.
14897         (rpl_dup2): Delete.
14898         (_gl_register_dup): New function.
14899         (_gl_unregister_fd, rpl_opendir, rpl_dup): Update callers.
14900         (_gl_register_fd): Close fd on allocation failure.
14901         * lib/fcntl.in.h (_gl_register_fd): Update signature.
14902         * lib/unistd.in.h (_gl_register_dup) [FCHDIR_REPLACEMENT]: New
14903         prototype.
14904         (rpl_dup2_fchdir): Delete prototype.
14905         * lib/open.c (open): Update caller.
14906         * lib/dup2.c (dup2): Track fchdir metadata.
14907         * lib/dup3.c (dup3): Likewise.
14908         * m4/dup2.m4 (gl_REPLACE_DUP2): New macro.
14909         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Use it.
14910
14911 2009-09-02  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
14912
14913         * gnulib-tool (func_create_testdir, func_create_megatestdir): Use
14914         AC_CONFIG_HEADERS instead of AM_CONFIG_HEADER. Use AC_CONFIG_FILES and
14915         don't pass arguments to AC_OUTPUT.
14916
14917 2009-09-02  Bruno Haible  <bruno@clisp.org>
14918
14919         * modules/mkdtemp (License): Relicense under LGPLv2+.
14920         Reported by Paolo Bonzini.
14921
14922 2009-09-02  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
14923
14924         Replace uses of obsolete autoconf macros in Jim's modules.
14925         The Autoconf macros AC_TRY_CPP, AC_TRY_COMPILE, AC_TRY_LINK and
14926         AC_TRY_RUN have been obsolete since Autoconf 2.55, and each use
14927         can evoke a warning from autoconf when run with -Wobsolete
14928         enabled.  They were declared obsolete for good reasons (see
14929         the `AC_FOO_IFELSE vs AC_TRY_FOO' node in the Autoconf manual,
14930         recently renamed to `AC_ACT_IFELSE vs AC_TRY_ACT'), and we
14931         should not continue using the deprecated macros.
14932         * m4/d-type.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_TYPE): Replace
14933         obsolete Autoconf macros with modern counterparts.
14934         * m4/dirfd.m4 (gl_FUNC_DIRFD): Likewise.
14935         * m4/dos.m4 (gl_AC_DOS): Likewise.
14936         * m4/fpending.m4 (gl_FUNC_FPENDING): Likewise.
14937         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Likewise.
14938         * m4/getloadavg.m4 (gl_PREREQ_GETLOADAVG): Likewise.
14939         * m4/jm-winsz1.m4 (gl_WINSIZE_IN_PTEM): Likewise.
14940         * m4/link-follow.m4 (gl_AC_FUNC_LINK_FOLLOWS_SYMLINK): Likewise.
14941         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Likewise.
14942         * m4/mkdir-slash.m4 (gl_FUNC_MKDIR_TRAILING_SLASH): Likewise.
14943         * m4/mode_t.m4 (gl_PROMOTED_TYPE_MODE_T): Likewise.
14944         * m4/rename-dest-slash.m4 (gl_FUNC_RENAME_TRAILING_DEST_SLASH):
14945         Likewise.
14946         * m4/rename.m4 (gl_FUNC_RENAME): Likewise.
14947         * m4/rmdir-errno.m4 (gl_FUNC_RMDIR_NOTEMPTY): Likewise.
14948         * m4/rpmatch.m4 (gl_PREREQ_RPMATCH): Likewise.
14949         * m4/st_dm_mode.m4 (AC_STRUCT_ST_DM_MODE): Likewise.
14950         * m4/stat-time.m4 (gl_STAT_TIME): Likewise.
14951         * m4/utimes-null.m4 (gl_FUNC_UTIMES_NULL): Likewise.
14952
14953 2009-09-01  Eric Blake  <ebb9@byu.net>
14954
14955         fchdir: fix off-by-one bug in previous patch
14956         * lib/fchdir.c (rpl_fstat): Use correct bounds.
14957         (_gl_unregister_fd): Delete useless if.
14958
14959 2009-09-01  Daniel P. Berrange  <berrange@redhat.com>
14960
14961         maint.mk: sort the list of syntax-check rules
14962         * top/maint.mk (syntax-check-rules): Sort syntax-check rules, so it's
14963         easier to get a sense of progress when the rules are run sequentially
14964         and take a long time.
14965
14966 2009-09-01  Simon Josefsson  <simon@josefsson.org>
14967
14968         * modules/arpa_inet: Use $(MKDIR_P) instead of @MKDIR_P@.
14969         * modules/netinet_in: Likewise.
14970         * modules/sys_file: Likewise.
14971         * modules/sys_ioctl: Likewise.
14972         * modules/sys_select: Likewise.
14973         * modules/sys_socket: Likewise.
14974         * modules/sys_stat: Likewise.
14975         * modules/sys_time: Likewise.
14976         * modules/sys_times: Likewise.
14977         * modules/sys_utsname: Likewise.
14978         * modules/sys_wait: Likewise.
14979
14980 2009-09-01  Jim Meyering  <meyering@redhat.com>
14981
14982         fts: help ensure that return values are not ignored
14983         * lib/fts_.h (__GNUC_PREREQ): Define.
14984         (__attribute_warn_unused_result__): Define.
14985         (fts_children, fts_close, fts_open, fts_read): Declare with
14986         __attribute_warn_unused_result__.
14987
14988         fts: fts_close now fails also when closing a dir file descriptor fails
14989         * lib/fts.c (fts_close): Detect close failure, not just fchdir failure,
14990         and propagate to caller, along with errno.
14991
14992         announce-gen: correct formatting in --help output
14993         * build-aux/announce-gen (usage): Move the one-line description in
14994         --help output "up", to where it belongs, just after Usage:.
14995
14996 2009-08-31  Eric Blake  <ebb9@byu.net>
14997
14998         fchdir: port to mingw
14999         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Check for mingw bug.
15000         * lib/open.c (open) [FCHDIR_REPLACEMENT]: If directories can't be
15001         opened, then use a substitute.
15002         * lib/sys_stat.in.h (fstat) [REPLACE_OPEN_DIRECTORY]: Declare
15003         replacement.
15004         * lib/fchdir.c (fstat) [REPLACE_OPEN_DIRECTORY]: Implement it.
15005         (_gl_register_fd): No need to check stat if open already filters
15006         all directories.
15007         (fchdir): Fix error condition to match POSIX.
15008         * modules/fchdir (Depends-on): Add sys_stat.
15009         * doc/posix-functions/open.texi (open): Document the limitation.
15010         * modules/fchdir-tests: New file.
15011         * tests/test-fchdir.c: Likewise.
15012
15013         canonicalize: allow cross-testing from cygwin to mingw
15014         * modules/canonicalize-tests (configure.ac): Define HAVE_SYMLINK.
15015         (Makefile.am): Pass it through TESTS_ENVIRONMENT.
15016         * modules/canonicalize-lgpl-tests (configure.ac, Makefile.am):
15017         Likewise.
15018         * tests/test-canonicalize.sh: Also skip test if 'ln -s' works, but
15019         target does not support symlinks.
15020         * tests/test-canonicalize-lgpl.sh: Likewise.
15021
15022         chown: avoid compilation warning on mingw
15023         * m4/chown.m4 (gl_FUNC_CHOWN): Recognize missing chown.
15024         * lib/chown.c (rpl_chown) [!HAVE_CHOWN]: Always return failure on
15025         mingw.
15026         * lib/lchown.c (lchown) [!HAVE_CHOWN]: Likewise.
15027         * modules/chown (Depends-on): Add errno.
15028
15029 2009-08-31  Stefano Lattarini  <stefano.lattarini@gmail.com>  (tiny change)
15030
15031         * gnulib-tool: Fix test whether $CONFIG_SHELL has a working 'echo'
15032         command.
15033
15034 2009-08-31  Jim Meyering  <meyering@redhat.com>
15035
15036         canonicalize: remove useless initialization
15037         * lib/canonicalize.c (canonicalize_filename_mode): Remove useless
15038         initialization of local, "end".
15039
15040 2009-08-30  Bruno Haible  <bruno@clisp.org>
15041
15042         Fix an unnecessary error on Solaris 10 on NFSv3 file systems.
15043         * lib/set-mode-acl.c (qset_acl) [Solaris 10 new]: Treat EOPNOTSUPP like
15044         ENOSYS.
15045
15046 2009-08-30  Bruno Haible  <bruno@clisp.org>
15047
15048         * tests/test-pipe-filter-ii1.sh: Prefer /usr/xpg6/bin/tr over
15049         /usr/xpg4/bin/tr when it exists.
15050         * tests/test-pipe-filter-gi1.sh: Likewise.
15051
15052 2009-08-30  Bruno Haible  <bruno@clisp.org>
15053
15054         Work around deficient /usr/bin/id program on Solaris.
15055         * tests/test-file-has-acl.sh (ID): New variable.
15056         * tests/test-set-mode-acl.sh (ID): Likewise.
15057         * tests/test-copy-acl.sh (ID): Likewise.
15058         * tests/test-copy-file.sh (ID): Likewise.
15059
15060 2009-08-30  Bruno Haible  <bruno@clisp.org>
15061
15062         New module 'xstriconveh'.
15063         * lib/xstriconveh.h: New file.
15064         * lib/xstriconveh.c: New file.
15065         * modules/xstriconveh: New file.
15066
15067 2009-08-30  Bruno Haible  <bruno@clisp.org>
15068
15069         Make it easier to use mem_cd_iconveh.
15070         * lib/striconveh.h (iconveh_t): New type.
15071         (iconveh_open, iconveh_close): New declarations.
15072         (mem_cd_iconveh, str_cd_iconveh): Replace the three iconv_t arguments
15073         with a single 'const iconveh_t *' argument.
15074         * lib/striconveh.c (iconveh_open, iconveh_close): New functions.
15075         (mem_cd_iconveh, str_cd_iconveh): Replace the three iconv_t arguments
15076         with a single 'const iconveh_t *' argument.
15077         (mem_iconveh, str_iconveh): Use iconveh_open, iconveh_close.
15078         * tests/test-striconveh.c (main): Update.
15079         * NEWS: Mention the change.
15080
15081 2009-08-30  Bruno Haible  <bruno@clisp.org>
15082
15083         * doc/posix-functions/iconv_open.texi: Mention indirect conversion
15084         problem.
15085
15086 2009-08-30  Bruno Haible  <bruno@clisp.org>
15087
15088         Work around iconv_open problem on Solaris.
15089         * lib/iconv_open-solaris.gperf: New file.
15090         * lib/iconv_open.c (ICONV_FLAVOR_SOLARIS): New macro.
15091         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN): Also handle Solaris.
15092         * modules/iconv_open (Files): Add lib/iconv_open-solaris.gperf.
15093         (Makefile.am): Add rule for iconv_open-solaris.h. Augment
15094         BUILT_SOURCES, MOSTLYCLEANFILES, MAINTAINERCLEANFILES, EXTRA_DIST.
15095         * doc/posix-functions/iconv_open.texi: Mention the Solaris problem.
15096
15097 2009-08-29  Jim Meyering  <meyering@redhat.com>
15098
15099         maint.mk: remove more coreutils-specific targets; XZ_OPT=-9ev
15100         * top/maint.mk (cvs-check): Remove target; it was just an alias
15101         to the better-named vc-diff-check.
15102         (maintainer-distcheck): Remove rule.  It was used only from
15103         the (alpha/beta/major) target, and all of its commands but one
15104         were coreutils-specific.
15105         (vc-dist): Remove rule.
15106         (alpha beta major): Run "$(MAKE) distcheck" explicitly.
15107         Run vc-diff-check, not vc-dist.
15108         Run $(MAKE) dist with XZ_OPT=-9ev.  Note spelling, with "-".
15109
15110 2009-08-27  Bruno Haible  <bruno@clisp.org>
15111
15112         * tests/test-bitrotate.c (main): Remove test that uses a shift count
15113         of 0.
15114
15115 2009-08-27  Bruno Haible  <bruno@clisp.org>
15116
15117         * tests/test-func.c (main): Don't verify sizeof __func__ on SunPRO C
15118         compilers.
15119         * doc/func.texi: Document the SunPRO C bug.
15120
15121 2009-08-27  Bruno Haible  <bruno@clisp.org>
15122
15123         Fix link error on Solaris.
15124         * tests/test-parse-duration.c (xstrdup): Remove function.
15125
15126 2009-08-26  Pádraig Brady  <P@draigbrady.com>
15127
15128         ignore-value: handle pointer types, too
15129         * lib/ignore-value.h (__attribute__): Remove definition.
15130         (ignore_value): Remove use of "__attribute__ ((unused))" in favor
15131         of a more concise and more-often effective "(void) i" statement.
15132         (ignore_ptr): New function to suppress warnings from functions that
15133         return pointers, and to make it explicit that one function doesn't
15134         handle all cases.
15135
15136 2009-08-25  Bruno Haible  <bruno@clisp.org>
15137
15138         dup2: work around a Linux bug.
15139         * m4/dup2.m4 (gl_FUNC_DUP2): Test for the Linux bug.
15140         * lib/dup2.c (rpl_dup2): Correct the return value if it is -EBADF.
15141         * doc/posix-functions/dup2.texi: Mention the Linux bug.
15142         Reported by Simon Josefsson.
15143
15144 2009-08-25  Jim Meyering  <meyering@redhat.com>
15145
15146         libguestfs uses gnulib
15147         * users.txt: Add libguestfs.
15148
15149 2009-08-24  Eric Blake  <ebb9@byu.net>
15150
15151         dup2, pipe2: fix some recent test failures on cygwin 1.5.x
15152         * lib/pipe2.c (includes): Add binary-io.h.
15153         * lib/dup2.c (rpl_dup2): Correct buggy errno value.
15154
15155 2009-08-24  Bruno Haible  <bruno@clisp.org>
15156
15157         Tolerate declared but missing accept4 syscall.
15158         * lib/accept4.c (accept4): Invoke original accept4 function first, if
15159         available.
15160         * lib/sys_socket.in.h (accept4): If the function is already present,
15161         override it.
15162         * m4/accept4.m4 (gl_FUNC_ACCEPT4): Remove AC_LIBOBJ invocation.
15163         * modules/accept4 (Makefile.am): Compile accept4.c always.
15164         Reported by Paolo Bonzini and Eric Blake.
15165
15166 2009-08-23  Bruno Haible  <bruno@clisp.org>
15167
15168         New module 'accept4'.
15169         * lib/sys_socket.in.h (accept4): New declaration.
15170         * lib/accept4.c: New file.
15171         * m4/accept4.m4: New file.
15172         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_H_DEFAULTS): Initialize
15173         GNULIB_ACCEPT4, HAVE_ACCEPT4.
15174         * modules/sys_socket (Makefile.am): Substitute GNULIB_ACCEPT4,
15175         HAVE_ACCEPT4.
15176         * modules/accept4: New file.
15177         * doc/glibc-functions/accept4.texi: Mention the new module.
15178
15179 2009-08-24  Jim Meyering  <meyering@redhat.com>
15180
15181         progname: also set global program_invocation_name, when possible
15182         Before this change, a libtool-enabled program that calls glibc's
15183         error function would report the program name as
15184         "/abs/dir/.libs/lt-program_name" rather than the desired program_name.
15185         * modules/progname (configure.ac): Check for a declaration of
15186         program_invocation_name.
15187         * lib/progname.c:  Include <errno.h>.
15188         (set_program_name) [HAVE_DECL_PROGRAM_INVOCATION_NAME]:
15189         Set program_invocation_name.
15190
15191 2009-08-23  Bruno Haible  <bruno@clisp.org>
15192
15193         * lib/dup3.c: Include <string.h>.
15194
15195 2009-08-23  Bruno Haible  <bruno@clisp.org>
15196
15197         * lib/dup3.c (dup3): Test only once whether the system actually exists.
15198         * lib/pipe2.c (pipe2): Likewise.
15199         Suggested by Eric Blake.
15200
15201 2009-08-23  Bruno Haible  <bruno@clisp.org>
15202
15203         Tolerate declared but missing dup3 syscall.
15204         * lib/dup3.c (dup3): Invoke original dup3 function first, if available.
15205         * lib/unistd.in.h (dup3): If the function is already present,
15206         override it.
15207         * m4/dup3.m4 (gl_FUNC_DUP3): Remove AC_LIBOBJ invocation.
15208         * modules/dup3 (Makefile.am): Compile dup3.c always.
15209         Reported by Paolo Bonzini.
15210
15211 2009-08-23  Bruno Haible  <bruno@clisp.org>
15212
15213         Tolerate declared but missing pipe2 syscall.
15214         * lib/pipe2.c (pipe2): Invoke original pipe2 function first, if
15215         available.
15216         * lib/unistd.in.h (pipe2): If the function is already present,
15217         override it.
15218         * m4/pipe2.m4 (gl_FUNC_PIPE2): Remove AC_LIBOBJ invocation.
15219         * modules/pipe2 (Makefile.am): Compile pipe2.c always.
15220         Reported by Paolo Bonzini.
15221
15222 2009-08-23  Bruno Haible  <bruno@clisp.org>
15223
15224         * lib/pipe2.c (pipe2): Move #ifs inside function.
15225
15226 2009-08-22  Joel E. Denny  <jdenny@clemson.edu>
15227
15228         quotearg: document limitations of quote_these_too
15229         * lib/quotearg.c (quotearg_buffer_restyled): Add comments where
15230         those limitations are created.
15231         * lib/quotearg.h (set_char_quoting): Document that digits and
15232         letters that are special after backslash are not permitted.
15233         (quotearg_char): Cross-reference set_char_quoting documentation.
15234
15235 2009-08-23  Joel E. Denny  <jdenny@clemson.edu>
15236
15237         quotearg: implement custom_quoting_style
15238         * lib/quotearg.c: (struct quoting_options): Add left_quote and
15239         right_quote fields.
15240         (set_custom_quoting): New public function.
15241         (quotearg_buffer_restyled): Add left_quote and right_quote
15242         arguments, handle them very much like locale quoting, and update
15243         all uses.
15244         (quotearg_n_custom): New public function.
15245         (quotearg_n_custom_mem): New public function.
15246         (quotearg_custom): New public function.
15247         (quotearg_custom_mem): New public function.
15248         * lib/quotearg.h: Prototype and document new public functions.
15249         (enum quoting_style): For escape_quoting_style and
15250         clocale_quoting_style, comment that QA_SPLIT_TRIGRAPHS is
15251         ignored even though they're otherwise like c_quoting_style.
15252         Add custom_quoting_style member and document with comparison to
15253         clocale_quoting_style.
15254         * tests/test-quotearg.c (custom_quotes): New array.
15255         (custom_results): New array.
15256         (main): Extend to test custom quoting.
15257
15258 2009-08-22  Joel E. Denny  <jdenny@clemson.edu>
15259
15260         quotearg: fix right quote escaping when it's in quote_these_too
15261         * lib/quotearg.c (quotearg_buffer_restyled): Upon seeing a right
15262         quote, be sure to prepend only one backslash.
15263         * tests/test-quotearg.c (use_quote_double_quotes): New function.
15264         (main): Test it.
15265
15266 2009-08-22  Joel E. Denny  <jdenny@clemson.edu>
15267
15268         quotearg-tests: test escaping of embedded locale quotes
15269         * tests/test-quotearg.c (struct result_strings): Add member for
15270         new input.
15271         (LQ_ENC, RQ_ENC, RQ_ESC): New macros.
15272         (inputs): Add new input.
15273         (results_g): Add expected results.
15274         (flag_results): Likewise.
15275         (locale_results): Likewise.
15276         (compare_strings): Check those.
15277
15278 2009-08-23  Bruno Haible  <bruno@clisp.org>
15279
15280         Tests for module 'dup3'.
15281         * modules/dup3-tests: New file.
15282         * tests/test-dup3.c: New file.
15283
15284         New module 'dup3'.
15285         * lib/unistd.in.h (dup3): New declaration.
15286         * lib/dup3.c: New file.
15287         * m4/dup3.m4: New file.
15288         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_DUP3 and
15289         HAVE_DUP3.
15290         * modules/unistd (Makefile.am): Substitute GNULIB_DUP3 and HAVE_DUP3.
15291         * modules/dup3: New file.
15292         * doc/glibc-functions/dup3.texi: Mention the new module.
15293
15294 2009-08-23  Bruno Haible  <bruno@clisp.org>
15295
15296         Tweak the dup2 test.
15297         * tests/test-dup2.c (main): Create the test file empty. Verify that an
15298         out-of-range fd yields EBADF. Verify that after writing to /dev/null,
15299         the test file is still empty. Fix argument order of lseek.
15300
15301 2009-08-23  Bruno Haible  <bruno@clisp.org>
15302
15303         Avoid test link errors when the modules getopt-gnu, gettext are used.
15304         * modules/getopt-posix-tests (Makefile.am): Define test_getopt_LDADD.
15305         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
15306
15307 2009-08-23  Bruno Haible  <bruno@clisp.org>
15308
15309         Fix getdtablesize() on mingw.
15310         * lib/getdtablesize.c (getdtablesize): Implement differently.
15311         * lib/unistd.in.h (getdtablesize): Improve comment.
15312
15313 2009-08-23  Bruno Haible  <bruno@clisp.org>
15314
15315         New module 'mkostemp'.
15316         Based on Ulrich Drepper's 2007-08-10 change in glibc.
15317         * lib/stdlib.in.h (mksotemp): New declaration.
15318         * lib/mkostemp.c: New file, from glibc with modifications.
15319         * lib/tempname.h (GT_FILE): Remove outdated comment.
15320         (gen_tempname): Add flags argument.
15321         * lib/tempname.c (__GT_BIGFILE): Remove macro.
15322         (__GT_FILE): Map to 1.
15323         (small_open, large_open): Remove macros.
15324         (__gen_tempname): Add flags argument. Remove code for __GT_BIGFILE.
15325         * lib/mkstemp.c (mkstemp): Update.
15326         * lib/mkdtemp.c (mkdtemp): Likewise.
15327         * m4/mkostemp.m4: New file.
15328         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_MKOSTEMP,
15329         HAVE_MKOSTEMP.
15330         * modules/stdlib (Makefile.am): Substitute GNULIB_MKOSTEMP,
15331         HAVE_MKOSTEMP.
15332         * modules/mkostemp: New file, based on modules/mkstemp.
15333         * doc/glibc-functions/mkostemp.texi: Mention the new module.
15334         * NEWS: Mention the change.
15335
15336 2009-08-23  Bruno Haible  <bruno@clisp.org>
15337
15338         * lib/pipe2.c (pipe2): Support O_TEXT, O_BINARY on all platforms.
15339         Reported by Eric Blake.
15340
15341 2009-08-23  Bruno Haible  <bruno@clisp.org>
15342
15343         * lib/pipe2.c (pipe2): Fix test of fcntl's return value.
15344         Reported by Eric Blake.
15345
15346 2009-08-23  Bruno Haible  <bruno@clisp.org>
15347
15348         * modules/fchdir (Depends-on): Use fcntl-h instead of fcntl.
15349         * modules/pipe2 (Depends-on): Likewise.
15350
15351 2009-08-23  Eric Blake  <ebb9@byu.net>
15352
15353         fcntl-h: add O_TTY_INIT support
15354         * lib/fcntl.in.h (O_TTY_INIT): Support another POSIX macro.
15355         * tests/test-fcntl-h.c (o): Test it.
15356         * doc/posix-headers/fcntl.texi (fcntl.h): Update documentation.
15357
15358         fcntl-h: rename from fcntl, in preparation for fcntl(2)
15359         * modules/fcntl: Move <fcntl.h> header replacement...
15360         * modules/fcntl-h: ...to new name, so as not to collide with
15361         like-named function.
15362         * tests/test-fcntl.c: Rename...
15363         * tests/test-fcntl-h.c: ...to this.  Test FD_CLOEXEC.
15364         * modules/fcntl-tests: Rename...
15365         * modules/fcntl-h-tests: ...to this.  Update test file name.
15366         * modules/chdir-long (Depends-on): Update clients.
15367         * modules/chdir-safer (Depends-on): Likewise.
15368         * modules/fcntl-safer (Depends-on): Likewise.
15369         * modules/fts (Depends-on): Likewise.
15370         * modules/mkancesdirs (Depends-on): Likewise.
15371         * modules/mkdir-p (Depends-on): Likewise.
15372         * modules/open (Depends-on): Likewise.
15373         * modules/savewd (Depends-on): Likewise.
15374         * MODULES.html.sh (systems lacking POSIX:2008): Update name.
15375         * doc/posix-headers/fcntl.texi (fcntl.h): Update documentation.
15376
15377 2009-08-22  Bruno Haible  <bruno@clisp.org>
15378
15379         * modules/binary-io (License): Relicense under LGPL.
15380         * modules/pipe2 (License): Likewise.
15381
15382 2009-08-22  Bruno Haible  <bruno@clisp.org>
15383
15384         * lib/pipe-filter-ii.c (pipe_filter_ii_execute): Fix test of fcntl's
15385         return value.
15386         * lib/pipe-filter-gi.c (filter_init): Likewise.
15387         Reported by Eric Blake.
15388
15389 2009-08-22  Bruno Haible  <bruno@clisp.org>
15390
15391         * lib/pipe.c (create_pipe): Use pipe2 instead of _pipe.
15392         * modules/pipe (Depends-on): Add pipe2.
15393
15394 2009-08-22  Bruno Haible  <bruno@clisp.org>
15395
15396         Tests for module 'pipe2'.
15397         * modules/pipe2-tests: New file.
15398         * tests/test-pipe2.c: New file.
15399
15400         New module 'pipe2'.
15401         * lib/unistd.in.h (pipe2): New declaration.
15402         * lib/pipe2.c: New file.
15403         * m4/pipe2.m4: New file.
15404         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_PIPE2 and
15405         HAVE_PIPE2.
15406         * modules/unistd (Makefile.am): Substitute GNULIB_PIPE2 and HAVE_PIPE2.
15407         * modules/pipe2: New file.
15408         * doc/glibc-functions/pipe2.texi: Mention the new module.
15409
15410 2009-08-22  Bruno Haible  <bruno@clisp.org>
15411
15412         Reference some new glibc functions.
15413         * doc/glibc-functions/accept4.texi: New file.
15414         * doc/glibc-functions/dup3.texi: New file.
15415         * doc/glibc-functions/mkostemp.texi: New file.
15416         * doc/glibc-functions/pipe2.texi: New file.
15417         * doc/gnulib.texi (Glibc stdlib.h): Refer to mkostemp.
15418         (Glibc sys/socket.h): Refer to accept4.
15419         (Glibc unistd.h): Refer to dup3, pipe2.
15420         Reported by Eric Blake.
15421
15422 2009-08-22  Jim Meyering  <meyering@redhat.com>
15423             Bruno Haible  <bruno@clisp.org>
15424
15425         annotate automake snippets with $(AM_V_GEN) and $(AM_V_at)
15426         This makes it so packages using automake-1.11's silent-rules option
15427         can print e.g., a single "GEN    configmake.h" line, rather than
15428         the 30+ statements that perform the job.  If you want to see the
15429         actual commands, you can still run "make V=1".
15430         * modules/alloca-opt: Add $(AM_V_GEN) and $(AM_V_at) prefixes
15431         so that make output is abbreviated when those variables are defined
15432         appropriately.
15433         * modules/argz: Likewise.
15434         * modules/arpa_inet: Likewise.
15435         * modules/byteswap: Likewise.
15436         * modules/configmake: Likewise.
15437         * modules/dirent: Likewise.
15438         * modules/errno: Likewise.
15439         * modules/fcntl: Likewise.
15440         * modules/float: Likewise.
15441         * modules/fnmatch: Likewise.
15442         * modules/getopt-posix: Likewise.
15443         * modules/glob: Likewise.
15444         * modules/iconv_open: Likewise.
15445         * modules/inttypes: Likewise.
15446         * modules/localcharset: Likewise.
15447         * modules/locale: Likewise.
15448         * modules/math: Likewise.
15449         * modules/netdb: Likewise.
15450         * modules/netinet_in: Likewise.
15451         * modules/poll: Likewise.
15452         * modules/posix_spawnp-tests: Likewise.
15453         * modules/sched: Likewise.
15454         * modules/search: Likewise.
15455         * modules/selinux-h: Likewise.
15456         * modules/signal: Likewise.
15457         * modules/spawn: Likewise.
15458         * modules/stdarg: Likewise.
15459         * modules/stdbool: Likewise.
15460         * modules/stddef: Likewise.
15461         * modules/stdint: Likewise.
15462         * modules/stdio: Likewise.
15463         * modules/stdlib: Likewise.
15464         * modules/string: Likewise.
15465         * modules/strings: Likewise.
15466         * modules/sys_file: Likewise.
15467         * modules/sys_ioctl: Likewise.
15468         * modules/sys_select: Likewise.
15469         * modules/sys_socket: Likewise.
15470         * modules/sys_stat: Likewise.
15471         * modules/sys_time: Likewise.
15472         * modules/sys_times: Likewise.
15473         * modules/sys_utsname: Likewise.
15474         * modules/sys_wait: Likewise.
15475         * modules/sysexits: Likewise.
15476         * modules/time: Likewise.
15477         * modules/unistd: Likewise.
15478         * modules/wchar: Likewise.
15479         * modules/wctype: Likewise.
15480
15481 2009-08-22  Jim Meyering  <meyering@redhat.com>
15482
15483         announce-gen: detect write failure
15484         * build-aux/announce-gen: Add Coda at end.
15485         Remove equivalent-but-more-verbose block at top.
15486
15487 2009-08-19  Akim Demaille  <demaille@gostai.com>
15488
15489         bootstrap: --help to stdout.
15490         * bootstrap (usage): Don't send --help to stderr.
15491         Use a here doc instead of a long string.
15492
15493 2009-08-21  Eric Blake  <ebb9@byu.net>
15494
15495         test-popen-safer: split from test-popen
15496         * tests/test-popen.c (main): Move...
15497         * tests/test-popen.h: ...into new file.
15498         * tests/test-popen-safer2.c: New file.
15499         * modules/popen-tests (Files): Add test-popen.h.
15500         * modules/popen-safer-tests (Files): Add test-popen-safer2.c.
15501         Suggested by Bruno Haible.
15502
15503         test-fcntl-safer: split from test-open
15504         * tests/test-open.c (main): Move...
15505         * tests/test-open.h: ...into new file.
15506         * tests/test-fcntl-safer.c: New file.
15507         * modules/open-tests (Files): Add test-open.h.
15508         * modules/fcntl-safer-tests: New file.
15509         Suggested by Bruno Haible.
15510
15511         test-fopen-safer: split from test-fopen
15512         * tests/test-fopen.c (main): Move...
15513         * tests/test-fopen.h: ...into new file.
15514         * tests/test-fopen-safer.c: New file.
15515         * modules/fopen-tests (Files): Add test-fopen.h.
15516         * modules/fopen-safer-tests: New file.
15517         Suggested by Bruno Haible.
15518
15519 2009-08-21  Paolo Bonzini  <bonzini@gnu.org>
15520
15521         popen-safer: test O_CLOEXEC at run-time.
15522         * lib/popen-safer.c: Test O_CLOEXEC at run-time.
15523
15524 2009-08-21  Paolo Bonzini  <bonzini@gnu.org>
15525
15526         fcntl: move more flags to the header
15527         * lib/cloexec.c: Do not define FD_CLOEXEC here.
15528         * lib/popen-safer.c: Do not alias O_NOINHERIT to O_CLOEXEC here.
15529         * lib/fcntl.in.h: Do both things here.
15530
15531 2009-08-21  Jim Meyering  <meyering@redhat.com>
15532
15533         consistently remove $@-t before redirecting to it
15534         * modules/argz: Remove $@-t and $@ before redirecting to the former.
15535         * modules/alloca-opt: Likewise.
15536         * modules/byteswap: Likewise.
15537         * modules/fnmatch: Likewise.
15538         * modules/getopt-posix: Likewise.
15539         * modules/glob: Likewise.
15540         * modules/poll: Likewise.
15541         * modules/posix_spawnp-tests: Likewise.
15542         * modules/sys_socket: Likewise.
15543         * modules/sysexits: Likewise.
15544
15545 2009-08-21  Eric Blake  <ebb9@byu.net>
15546
15547         popen: simplify access to original popen
15548         * lib/popen.c (rpl_popen): No need to worry about popen being a
15549         macro.
15550         Reported by Bruno Haible.
15551
15552 2009-08-20  Eric Blake  <ebb9@byu.net>
15553
15554         build: avoid some compiler warnings
15555         * lib/selinux-at.h: Use dir_fd, not dirfd, to avoid shadowing.
15556         * lib/exclude.c (fnmatch_pattern_has_wildcards): Use correct
15557         type.
15558         (new_exclude_segment, excluded_file_pattern_p)
15559         (excluded_file_name_p): Reduce scope.
15560         * lib/vasnprintf.c (decimal_point_char): Avoid warning on
15561         old-style declaration.
15562
15563 2009-08-20  Simon Josefsson  <simon@josefsson.org>
15564
15565         * tests/test-exclude1.sh: Handle Windows EOL.
15566         * tests/test-exclude2.sh: Likewise.
15567         * tests/test-exclude3.sh: Likewise.
15568         * tests/test-exclude4.sh: Likewise.
15569         * tests/test-exclude5.sh: Likewise.
15570         * tests/test-exclude6.sh: Likewise.
15571         * tests/test-exclude7.sh: Likewise.
15572
15573 2009-08-19  Akim Demaille  <demaille@gostai.com>
15574
15575         bootstrap: find sha1sum when named gsha1sum.
15576         * bootstrap (find_tool): New.
15577         ($SHA1SUM): New.
15578         Use it.
15579
15580 2009-08-20  Jim Meyering  <meyering@redhat.com>
15581
15582         maint.mk: _header_without_use: fix a quoting bug and remove a bash'ism
15583         * top/maint.mk (_header_without_use): Use "\\\\", not "\\" in the sed
15584         expression that converts "." in a file name to "\." in the resulting
15585         regexp.  Start with a dummy statement, so that prior shell variable
15586         definitions are expanded portably.  Reported by Simon Josefsson.
15587
15588 2009-08-20  Paolo Bonzini  <bonzini@gnu.org>
15589
15590         Fix polling for writeability of a screen buffer.
15591         * lib/poll.c: Distinguish input and screen buffers for the
15592         Win32 implementation.
15593         * lib/select.c: Likewise.
15594
15595 2009-08-19  Eric Blake  <ebb9@byu.net>
15596
15597         popen-safer: prevent popen from clobbering std descriptors
15598         * modules/popen-safer: New file.
15599         * lib/popen-safer.c: Likewise.
15600         * m4/stdio-safer.m4 (gl_POPEN_SAFER): New macro.
15601         * lib/stdio--.h (popen): Provide override.
15602         * lib/stdio-safer.h (popen_safer): Provide declaration.
15603         * tests/test-popen.c (includes): Partially test this.
15604         * modules/popen-safer-tests: New file, for more tests.
15605         * tests/test-popen-safer.c: Likewise.
15606         * MODULES.html.sh (file stream based Input/Output): Mention it.
15607
15608         tests: test some of the *-safer modules
15609         * modules/fopen-safer (Depends-on): Add fopen.
15610         * modules/fcntl-safer (Depends-on): Add fcntl.
15611         * modules/stdlib-safer (Depends-on): Add stdlib.
15612         (configure.ac): Set indicator.
15613         * modules/unistd-safer (configure.ac): Likewise.
15614         * modules/tmpfile-safer (configure.ac): Likewise.
15615         (Depends-on): Add tmpfile.
15616         * lib/stdio--.h (fopen, tmpfile): Don't override unless module is
15617         active.
15618         * tests/test-fopen.c (includes): Test safer versions when they are
15619         in use.
15620         * tests/test-open.c (includes): Likewise.
15621
15622         popen: fix cygwin 1.5 bug when stdin closed
15623         * doc/posix-functions/popen.texi (popen): Document cygwin bugs.
15624         * modules/popen: New file.
15625         * modules/popen-tests: Likewise.
15626         * tests/test-popen.c: Likewise.
15627         * m4/popen.m4: Likewise.
15628         * lib/popen.c: Likewise.
15629         * lib/stdio.in.h (popen): New declaration.
15630         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Add popen.
15631         * modules/stdio (Makefile.am): Likewise.
15632         * MODULES.html.sh (systems lacking POSIX:2008): Mention it.
15633
15634 2009-08-17  Joel E. Denny  <jdenny@clemson.edu>
15635
15636         maint.mk: give full control over update-copyright exclusions
15637         * top/maint.mk (VC_LIST_EXCEPT): Instead of ChangeLog, use
15638         ${VC_LIST_EXCEPT_DEFAULT-ChangeLog} as the default exclusion.
15639         (update-copyright): Don't force inclusion of top-level
15640         ChangeLog.  Don't force exclusion of all COPYING files, but make
15641         them the default exclusion instead.
15642
15643 2009-08-16  Bruno Haible  <bruno@clisp.org>
15644
15645         Fix test failures on Solaris 10.
15646         * tests/uniconv/test-u8-conv-from-enc.c (main): Disable autodetect_jp
15647         tests when Solaris iconv() is used.
15648         * tests/uniconv/test-u16-conv-from-enc.c (main): Likewise.
15649         * tests/uniconv/test-u32-conv-from-enc.c (main): Likewise.
15650         * tests/uniconv/test-u8-strconv-from-enc.c (main): Likewise.
15651         * tests/uniconv/test-u16-strconv-from-enc.c (main): Likewise.
15652         * tests/uniconv/test-u32-strconv-from-enc.c (main): Likewise.
15653
15654 2009-08-16  Bruno Haible  <bruno@clisp.org>
15655
15656         Fix test failures on Solaris 10.
15657         * tests/test-pipe-filter-ii1.sh: Determine the filename of a working
15658         'tr' program and pass it as first argument.
15659         * tests/test-pipe-filter-gi1.sh: Likewise.
15660         * tests/test-pipe-filter-ii1.c (main): Except the filename of a 'tr'
15661         program as first argument.
15662         * tests/test-pipe-filter-gi1.c (main): Likewise.
15663
15664 2009-08-16  Eric Blake  <ebb9@byu.net>
15665
15666         fpurge: fix previous commits
15667         * modules/fpurge (Makefile.am): Make replacement conditional,
15668         partially reverting 2007-04-29 change; missed in previous
15669         attempt.
15670         * m4/fpurge.m4 (gl_FUNC_FPURGE): Also compile fpurge.c when fpurge
15671         is missing.
15672
15673 2009-08-16  Bruno Haible  <bruno@clisp.org>
15674
15675         Clarify fpurge's effect on the file position.
15676         * lib/stdio.in.h (fpurge): Specify the file position after fpurge.
15677         * tests/test-fpurge.c (main): Make a second pass for checking the file
15678         position.
15679
15680 2009-08-16  Bruno Haible  <bruno@clisp.org>
15681
15682         * m4/fpurge.m4 (gl_FUNC_FPURGE): Don't compile fpurge.c if only the
15683         declaration of fpurge is missing.
15684         * tests/test-fpurge.c (main): Check that the file has not more contents
15685         than expected. Close the file before removing it.
15686
15687 2009-08-15  Eric Blake  <ebb9@byu.net>
15688
15689         fpurge: don't wrap working cygwin implementation
15690         * lib/fpurge.c (fpurge): Fix comment typo.
15691         * m4/fpurge.m4 (gl_FUNC_FPURGE): Detect BSD bug, allowing cygwin
15692         1.7 to avoid replacement.
15693         * tests/test-fpurge.c (main): Enhance test.
15694
15695 2009-08-15  Eric Blake  <ebb9@byu.net>
15696         and Jim Meyering  <meyering@redhat.com>
15697
15698         test-update-copyright: skip if perl is insufficient
15699         * tests/test-update-copyright.sh: Failure to run maintainer tool
15700         should not cause testsuite failure on cygwin 1.5.
15701
15702 2009-08-14  Eric Blake  <ebb9@byu.net>
15703
15704         doc: mention more functions added in cygwin 1.7.0
15705         * doc/posix-headers/limits.texi (limits.h): Update for recent
15706         cygwin additions.
15707         * doc/posix-headers/wordexp.texi (wordexp.h): Likewise.
15708         * doc/posix-functions/wordexp.texi (wordexp): Likewise.
15709         * doc/posix-functions/wordfree.texi (wordfree): Likewise.
15710         * doc/posix-functions/setlocale.texi (setlocale): Likewise.
15711         * doc/posix-functions/nl_langinfo.texi (nl_langinfo): Likewise.
15712
15713 2009-08-14  Eric Blake  <ebb9@byu.net>
15714
15715         maint.mk: simplify update-copyright rule
15716         * top/maint.mk (update-copyright-local): Delete, and document how
15717         to do it in cfg.mk instead.
15718         (update-copyright-exclude-regexp): Delete, and document how to do
15719         it in .x-update-copyright instead.
15720         (update-copyright): Simplify, thanks to VC_LIST_EXCEPT.  Don't
15721         exclude ChangeLog.
15722
15723 2009-08-14  Bruno Haible  <bruno@clisp.org>
15724
15725         * m4/wchar.m4 (gl_WCHAR_H): Undo invalid optimization in last commit.
15726
15727 2009-08-14  Joel E. Denny  <jdenny@clemson.edu>
15728
15729         maint.mk: support update-copyright-env
15730         * top/maint.mk (update-copyright-env): Define place-holder.
15731         (update-copyright): Expand $(update-copyright-env) before
15732         invoking update-copyright.
15733
15734 2009-08-14  Joel E. Denny  <jdenny@clemson.edu>
15735
15736         update-copyright: implement forced reformatting
15737         * build-aux/update-copyright: Implement and document
15738         UPDATE_COPYRIGHT_FORCE.
15739         * tests/test-update-copyright.sh: Test it.
15740
15741 2009-08-14  Eric Blake  <ebb9@byu.net>
15742         and Bruno Haible  <bruno@clisp.org>
15743
15744         stddef: fix NetBSD 5.0 NULL bug, rather than working around it
15745         * tests/test-locale.c: Revert previous patch related to NULL.
15746         * tests/test-stdio.c: Likewise.
15747         * tests/test-stdlib.c: Likewise.
15748         * tests/test-string.c: Likewise.
15749         * tests/test-unistd.c: Likewise.
15750         * modules/time-tests (Depends-on): Add verify.
15751         * modules/wchar-tests (Depends-on): Likewise.
15752         * tests/test-time.c: Test for NULL compliance.
15753         * tests/test-wchar.c: Likewise.
15754         * modules/locale (Depends-on): Add stddef.
15755         * modules/stdio (Depends-on): Likewise.
15756         * modules/stdlib (Depends-on): Likewise.
15757         * modules/string (Depends-on): Likewise.
15758         * modules/time (Depends-on): Likewise.
15759         * modules/unistd (Depends-on): Likewise.
15760         * modules/wchar (Depends-on): Likewise.
15761         * lib/locale.in.h (includes): Use <stddef.h> to fix NULL.
15762         * lib/stdlib.in.h (includes): Likewise.
15763         * lib/string.in.h (includes): Likewise.
15764         * lib/time.in.h (includes): Likewise.
15765         * lib/unistd.in.h (includes): Likewise.
15766         * m4/locale_h.m4 (gl_LOCALE_H): Replace locale.h if stddef.h was
15767         replaced.
15768         * m4/wchar.m4 (gl_WCHAR_H): Likewise.
15769         * m4/stddef_h.m4: New file.
15770         * modules/stddef: Likewise.
15771         * lib/stddef.in.h: Likewise.
15772         * modules/stddef-tests: Likewise.
15773         * tests/test-stddef.c: Likewise.
15774         * MODULES.html.sh (Basic types <stddef.h>): Mention new module.
15775         * doc/posix-headers/stddef.texi (stddef.h): Document the bug.
15776         * doc/posix-headers/locale.texi (locale.h): Likewise.
15777         * doc/posix-headers/stdio.texi (stdio.h): Likewise.
15778         * doc/posix-headers/stdlib.texi (stdlib.h): Likewise.
15779         * doc/posix-headers/string.texi (string.h): Likewise.
15780         * doc/posix-headers/time.texi (time.h): Likewise.
15781         * doc/posix-headers/unistd.texi (unistd.h): Likewise.
15782         * doc/posix-headers/wchar.texi (wchar.h): Likewise.
15783
15784 2009-08-14  Eric Blake  <ebb9@byu.net>
15785
15786         doc: improve git diff of texinfo files
15787         * .gitattributes: Add rule for *.texi files, with hint on how to
15788         use it.
15789         Copied from m4, and based on a report by Bruno Haible.
15790
15791 2009-08-14  Bruno Haible  <bruno@clisp.org>
15792
15793         Disable multithread support by default on Cygwin 1.5.x for real.
15794         * m4/threadlib.m4 (gl_THREADLIB_EARLY_BODY): Fix last commit.
15795
15796 2009-08-14  Joel E. Denny  <jdenny@clemson.edu>
15797
15798         update-copyright: much ado about intervals
15799         * build-aux/update-copyright: Implement and document
15800         UPDATE_COPYRIGHT_USE_INTERVALS to control expansion and collapse
15801         of copyright year intervals.
15802         Also, document UPDATE_COPYRIGHT_YEAR.
15803         * tests/test-update-copyright.sh: Test it.
15804
15805         update-copyright: convert 2-digit to 4-digit years
15806         * build-aux/update-copyright: Implement and document.
15807         * tests/test-update-copyright.sh: Update.
15808
15809 2009-08-14  Jim Meyering  <meyering@redhat.com>
15810
15811         test-exclude: avoid coreutils "make check" failure
15812         * tests/test-exclude.c (ARGMATCH_DIE_DECL) [ARGMATCH_DIE_DECL]: Define,
15813         just as in test-argmatch.c.
15814
15815 2009-08-13  Eric Blake  <ebb9@byu.net>
15816
15817         test-dup2: fix bad assumption
15818         * tests/test-dup2.c (main): Tolerate leaked fds from environment.
15819         Reported by Peter Breitenlohner <peb@mppmu.mpg.de>.
15820
15821         test-version-etc: fix CRLF portability issue
15822         * tests/test-version-etc.sh: Use tr, not sed, as not all sed
15823         recognize \r.
15824         * tests/test-argp-version-etc-1.sh: Likewise.
15825
15826         getopt: update client modules
15827         * modules/argp (Depends-on): Use getopt-gnu.
15828         * modules/git-merge-changelog (Depends-on): Likewise.
15829         * modules/long-options (Depends-on): Likewise.
15830         * modules/xstrtol (Depends-on): Likewise.
15831
15832 2009-08-13  Simon Josefsson  <simon@josefsson.org>
15833
15834         * tests/test-version-etc.sh: Don't fail on different
15835         project/version.  Don't fail on CRLF differences.  Rewrite to use
15836         multiple -e instead of multiple sed forks, suggested by Eric Blake
15837         <ebb9@byu.net>.
15838         * tests/test-argp-version-etc-1.sh: Likewise.
15839
15840 2009-08-13  Simon Josefsson  <simon@josefsson.org>
15841
15842         * tests/test-version-etc.sh: Don't fail on different
15843         project/version.
15844
15845 2009-08-12  Bruno Haible  <bruno@clisp.org>
15846
15847         Tests for modules 'getopt-posix', 'getopt-gnu'.
15848         * modules/getopt-posix-tests: New file.
15849         * tests/test-getopt.c: New file.
15850         * tests/test-getopt.h: New file.
15851         * tests/test-getopt_long.h: New file.
15852
15853         New modules 'getopt-posix', 'getopt-gnu'.
15854         * modules/getopt-gnu: New file, renamed from modules/getopt.
15855         * modules/getopt-posix: New file.
15856         * modules/getopt: Turn into an obsolete alias for getopt-gnu.
15857         * m4/getopt.m4 (gl_FUNC_GETOPT_POSIX, gl_FUNC_GETOPT_GNU): New macros.
15858         (gl_GETOPT): Remove macro.
15859         (gl_GETOPT_CHECK_HEADERS): Do some checks only for gl_FUNC_GETOPT_GNU.
15860         Disable the test against BSD systems that declare optreset. Test
15861         against mingw bug. Test against lack of support of optional arguments
15862         on many platforms.
15863         * doc/glibc-headers/getopt.texi: Update module name and list of
15864         relevant platforms.
15865         * doc/posix-functions/getopt.texi: Mention modules 'getopt-posix' and
15866         'getopt-gnu' and more portability problems.
15867         * NEWS: Mention the changes.
15868
15869 2009-08-12  Bruno Haible  <bruno@clisp.org>
15870
15871         Ensure that optarg etc. get declared by <unistd.h>.
15872         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Require
15873         AC_USE_SYSTEM_EXTENSIONS.
15874         * modules/getopt (Depends-on): Add 'extensions'.
15875
15876 2009-08-12  Bruno Haible  <bruno@clisp.org>
15877
15878         Avoid test link errors.
15879         * modules/pipe-filter-ii-tests (Makefile.am): Define
15880         test_pipe_filter_ii1_LDADD and test_pipe_filter_ii2_main_LDADD.
15881         * modules/pipe-filter-gi-tests (Makefile.am): Define
15882         test_pipe_filter_gi1_LDADD and test_pipe_filter_gi2_main_LDADD.
15883         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
15884
15885 2009-08-12  Bruno Haible  <bruno@clisp.org>
15886
15887         * m4/getopt.m4 (gl_REPLACE_GETOPT): New macro, was called
15888         gl_GETOPT_SUBSTITUTE before.
15889         (gl_GETOPT): Use it.
15890         * m4/argp.m4 (gl_ARGP): Update.
15891         Reported by Sergey Poznyakoff.
15892
15893         * m4/getopt.m4: Reorder macros.
15894         (gl_GETOPT): Inline gl_GETOPT_SUBSTITUTE.
15895         (gl_GETOPT_SUBSTITUTE): Remove macro.
15896
15897 2009-08-12  Sergey Poznyakoff  <gray@gnu.org.ua>
15898
15899         Minor improvement in gitlog-to-changelog
15900
15901         * build-aux/gitlog-to-changelog: New option `--format' makes
15902         output format string configurable.
15903
15904 2009-08-12  Sergey Poznyakoff  <gray@gnu.org.ua>
15905
15906         Optimize exclude: use hash tables for non-wildcard patterns.
15907
15908         * lib/exclude.c: Include hash.h and mbuiter.h
15909         (struct exclude_pattern, exclude_segment): New data types.
15910         (struct exclude): Rewrite.
15911         (fnmatch_pattern_has_wildcards): New function.
15912         (new_exclude_segment, free_exclude_segment): New functions.
15913         (excluded_file_pattern_p, excluded_file_name_p): New functions.
15914         (excluded_file_name, add_exclude): Rewrite using new struct exclude.
15915         * lib/exclude.h (is_fnmatch_pattern): New prototype.
15916         * modules/exclude: Depend on hash and mbuiter.
15917
15918         * modules/exclude-tests: New file.
15919         * tests/test-exclude.c: New file.
15920         * tests/test-exclude1.sh: New file.
15921         * tests/test-exclude2.sh: New file.
15922         * tests/test-exclude3.sh: New file.
15923         * tests/test-exclude4.sh: New file.
15924         * tests/test-exclude5.sh: New file.
15925         * tests/test-exclude6.sh: New file.
15926         * tests/test-exclude7.sh: New file.
15927
15928 2009-08-12  Bruno Haible  <bruno@clisp.org>
15929
15930         Ensure that getopt() gets declared by <unistd.h>.
15931         * lib/unistd.in.h: Conditionally include getopt.h.
15932         * m4/getopt.m4 (gl_GETOPT_SUBSTITUTE): Require gl_UNISTD_H_DEFAULTS.
15933         Set GNULIB_UNISTD_H_GETOPT.
15934         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
15935         GNULIB_UNISTD_H_GETOPT.
15936         * modules/unistd (Makefile.am): Substitute GNULIB_UNISTD_H_GETOPT.
15937
15938 2009-08-12  Bruno Haible  <bruno@clisp.org>
15939
15940         Clarify logic.
15941         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS, gl_GETOPT_IFELSE): Use
15942         gl_replace_getopt instead of GETOPT_H.
15943
15944 2009-08-12  Bruno Haible  <bruno@clisp.org>
15945
15946         * m4/getopt.m4: Add comments.
15947
15948 2009-08-12  Bruno Haible  <bruno@clisp.org>
15949
15950         Disable multithread support by default on Cygwin 1.5.x.
15951         * m4/threadlib.m4 (gl_THREADLIB_EARLY_BODY): On Cygwin 1.5.x and older,
15952         set gl_use_threads=no if not specified otherwise.
15953
15954 2009-08-11  Bruno Haible  <bruno@clisp.org>
15955
15956         Avoid compilation error on NetBSD 5.0.
15957         * tests/test-locale.c: Write sizeof (NULL) instead of sizeof NULL.
15958         * tests/test-stdio.c: Likewise.
15959         * tests/test-stdlib.c: Likewise.
15960         * tests/test-string.c: Likewise.
15961         * tests/test-unistd.c: Likewise.
15962         Reported by Greg Troxel <gdt@ir.bbn.com>
15963         at <https://savannah.gnu.org/support/?106973>.
15964
15965 2009-08-11  Bruno Haible  <bruno@clisp.org>
15966
15967         * modules/dup2-tests (Depends-on): Remove close.
15968
15969         Undo 2009-07-19 commit.
15970         * modules/acl-tests (Depends-on): Remove close.
15971         * modules/binary-io-tests (Depends-on): Likewise.
15972         * modules/closein-tests (Depends-on): Likewise.
15973         * modules/flock-tests (Depends-on): Likewise.
15974         * modules/fsync-tests (Depends-on): Likewise.
15975         * modules/lseek-tests (Depends-on): Likewise.
15976         * modules/pipe-tests (Depends-on): Likewise.
15977         * modules/posix_spawn-tests (Depends-on): Likewise.
15978         * modules/posix_spawnp-tests (Depends-on): Likewise.
15979         * modules/stat-time-tests (Depends-on): Likewise.
15980         * modules/yesno-tests (Depends-on): Likewise.
15981
15982 2009-08-10  Bruno Haible  <bruno@clisp.org>
15983
15984         * lib/vasnprintf.c (DCHAR_SET): Undefine at the end.
15985
15986 2009-08-10  Bruno Haible  <bruno@clisp.org>
15987
15988         Fix a gcc warning.
15989         * lib/write.c (rpl_write): Cast result of _get_osfhandle.
15990
15991 2009-08-10  Bruno Haible  <bruno@clisp.org>
15992
15993         Don't optimize AC_LIBOBJs, as they may appear in different contexts.
15994         * m4/close.m4 (gl_REPLACE_CLOSE): Execute AC_LIBOBJ unconditionally,
15995         not only the first time.
15996         * m4/fclose.m4 (gl_REPLACE_FCLOSE): Likewise.
15997         * m4/open.m4 (gl_REPLACE_OPEN): Likewise.
15998         * m4/strstr.m4 (gl_FUNC_STRSTR): Execute AC_LIBOBJ when REPLACE_STRSTR
15999         is 1, not only the the first time.
16000
16001 2009-08-10  Bruno Haible  <bruno@clisp.org>
16002
16003         Make it possible to use module 'gethostname' without module 'close'.
16004         * lib/unistd.in.h (close): Evoke a link error only if
16005         UNISTD_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS is set.
16006         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
16007         UNISTD_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS.
16008         * modules/unistd (Makefile.am): Substitute
16009         UNISTD_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS.
16010         * lib/sys_ioctl.in.h (ioctl): Evoke a link error only if
16011         SYS_IOCTL_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS is set.
16012         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_H_DEFAULTS): Initialize
16013         SYS_IOCTL_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS.
16014         * modules/sys_ioctl (Makefile.am): Substitute
16015         SYS_IOCTL_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS.
16016         * modules/socket (configure.ac): On native Windows, set
16017         UNISTD_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS and
16018         SYS_IOCTL_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS.
16019         Reported by Sam Steingold <sds@gnu.org>.
16020
16021 2009-08-10  Bruno Haible  <bruno@clisp.org>
16022
16023         * m4/close.m4 (gl_FUNC_CLOSE): Add comment.
16024         * modules/ioctl (configure.ac): Likewise.
16025
16026 2009-08-10  Bruno Haible  <bruno@clisp.org>
16027
16028         Avoid collision between gnulib wrapper and libintl wrapper.
16029         * lib/stdio-write.c (printf): Don't define if a printf wrapper is
16030         already defined in intl/printf.c.
16031         (vprintf): Test REPLACE_VPRINTF_POSIX, not REPLACE_VFPRINTF_POSIX.
16032         (vfprintf): Test REPLACE_VFPRINTF_POSIX, not REPLACE_VPRINTF_POSIX.
16033
16034 2009-08-09  Bruno Haible  <bruno@clisp.org>
16035
16036         Make <sys/select.h> really self-contained, also on Solaris 10.
16037         * lib/sys_select.in.h: Include <string.h>.
16038         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Test also against
16039         Solaris 10 problem.
16040         * tests/test-sys_select.c (main): Add check that FD_ZERO can be used.
16041         * doc/posix-headers/sys_select.texi: Mention the Solaris 10 problem.
16042         Reported by Jim Meyering.
16043
16044 2009-08-09  Bruno Haible  <bruno@clisp.org>
16045
16046         Avoid warnings from 'aclocal' that are due to a use of macro name
16047         AM_XGETTEXT_OPTION that is not defined in automake.
16048         * modules/argp (configure.ac): Hide use of AM_XGETTEXT_OPTION from
16049         automake.
16050         * modules/error (configure.ac): Likewise.
16051         * modules/propername (configure.ac): Likewise.
16052         * modules/vasprintf (configure.ac): Likewise.
16053         * modules/verror (configure.ac): Likewise.
16054         * modules/xprintf (configure.ac): Likewise.
16055         * modules/xvasprintf (configure.ac): Likewise.
16056
16057 2009-08-08  Bruno Haible  <bruno@clisp.org>
16058
16059         Avoid compilation error in C++ mode.
16060         * lib/gettimeofday.c (rpl_gettimeofday): Cast timezone argument.
16061         Reported by Sam Steingold <sds@gnu.org>.
16062
16063 2009-08-08  Bruno Haible  <bruno@clisp.org>
16064
16065         * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): Define HOST_NAME_MAX also
16066         for the various Unix platforms.
16067         * doc/posix-headers/limits.texi: Update platforms list regarding
16068         HOST_NAME_MAX.
16069         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
16070
16071 2009-08-07  Jim Meyering  <meyering@redhat.com>
16072
16073         selinux-at: fix typo in a comment
16074         * lib/selinux-at.h: s/getfileconat/getfilecon/ in a comment.
16075         Spotted by Paolo Bonzini.
16076
16077         selinux-at: remove redundant m4 code, add documentation
16078         * modules/selinux-at (configure.ac): Remove redundant code.
16079         LIB_SELINUX is already set via the dependent module, selinux-h.
16080         (Include): Add quotes around selinux-at.h.
16081         * lib/selinux-at.h: Add documentation.
16082         Reported by Bruno Haible in
16083         http://marc.info/?l=gnulib-bug&m=124958988300749
16084
16085 2009-08-07  Bruno Haible  <bruno@clisp.org>
16086
16087         Avoid link error on MacOS X 10.3 and 10.4.
16088         * lib/argp-ba.c (argp_program_bug_address): Explicitly zero-initialize
16089         on non-ELF systems.
16090         * lib/argp-pv.c (argp_program_version): Likewise.
16091         Reported by Simon Josefsson.
16092
16093 2009-08-07  Simon Josefsson  <simon@josefsson.org>
16094
16095         * tests/test-version-etc.sh: Use $EXEEXT.
16096
16097 2009-08-06  Joel E. Denny  <jdenny@clemson.edu>
16098
16099         update-copyright: update documentation to point to maint.mk
16100         * build-aux/update-copyright: Here.
16101
16102 2009-08-06  Jim Meyering  <meyering@redhat.com>
16103
16104         maint.mk: support update-copyright-local
16105         * top/maint.mk (update-copyright-local): Define place-holder.
16106         (update-copyright): Depend on $(update-copyright-local).
16107
16108 2009-08-06  Jim Meyering  <meyering@redhat.com>
16109
16110         selinux-at: new module
16111         Initially written for coreutils, this module will soon be
16112         used by findutils, too.
16113         * MODULES.html.sh [Misc]: Add selinux-at.
16114         * lib/selinux-at.h: New file, from coreutils.
16115         * lib/selinux-at.c: Likewise.
16116         * modules/selinux-at: Likewise.
16117         (License): Change from LGPL to GPL, since it depends
16118         on the GPL'd openat module.
16119
16120         doc: update README
16121         * README: Remove references to cogito.
16122         Remove cvs-repo-updating instructions from 2007.
16123         Don't imply that CVS is better if you have limited disk space.
16124
16125 2009-08-05  Joel E. Denny  <jdenny@clemson.edu>
16126
16127         update-copyright: support C-style comments
16128         * build-aux/update-copyright: Implement and document.
16129         * tests/test-update-copyright.sh: Test.
16130
16131 2009-08-05  Joel E. Denny  <jdenny@clemson.edu>
16132
16133         update-copyright: support omitted "(C)"
16134         * build-aux/update-copyright: Implement and document.  Also,
16135         allow variable whitespace before "(C)".
16136         * tests/test-update-copyright.sh: Test.
16137
16138 2009-08-05  Joel E. Denny  <jdenny@clemson.edu>
16139
16140         update-copyright: don't trip on non-FSF copyright statements
16141         * build-aux/update-copyright: Fix so that the first correctly
16142         formatted FSF copyright statement is recognized no matter what
16143         appears before it.  Update documentation.
16144         * tests/test-update-copyright.sh: Test that.
16145
16146 2009-08-05  Joel E. Denny  <jdenny@clemson.edu>
16147
16148         update-copyright: clean up code a little
16149         * build-aux/update-copyright: Append "_re" to the name of any
16150         variable holding a regular expression.
16151         Replace "old" and "new" with "stmt" in variable names.
16152         Do not accept 2-digit UPDATE_COPYRIGHT_YEAR, which was not
16153         handled correctly.
16154         Format code more consistently.
16155
16156 2009-08-05  Joel E. Denny  <jdenny@clemson.edu>
16157
16158         update-copyright-tests: improve portability
16159         * tests/test-update-copyright.sh: Use cmp if diff cannot handle
16160         -u or /dev/null.  Suggested by Jim Meyering and Eric Blake.
16161
16162 2009-08-03  Joel E. Denny  <jdenny@clemson.edu>
16163
16164         update-copyright: support @copyright{} and &copy;
16165         * build-aux/update-copyright: Implement and document.
16166         * tests/test-update-copyright.sh: Test.
16167
16168 2009-08-04  Jim Meyering  <meyering@redhat.com>
16169
16170         update-copyright-tests: correctly test EOL=\r\n handling
16171         * tests/test-update-copyright.sh: Put \r at the end of some lines
16172         for the dos-eol tests.  Based on a patch by Joel E. Denny.
16173
16174         maint.mk: make update-copyright exclusion list more configurable
16175         * top/maint.mk (update-copyright): Default to excluding COPYING,
16176         but allow an override, in case someone does want to update that file.
16177
16178         maint.mk: don't update copyright date in COPYING
16179         * top/maint.mk (update-copyright): Exclude COPYING.
16180
16181         maint.mk: add a copyright-updating rule
16182         * top/maint.mk (update-copyright): New rule.
16183         Derived from coreutils/Makefile.am.
16184
16185         update-copyright: rename some variables
16186         * build-aux/update-copyright: Rename a few variables for clarity.
16187         Tweak syntax.  List Joel E. Denny as coauthor.
16188
16189 2009-08-03  Joel E. Denny  <jdenny@clemson.edu>
16190
16191         update-copyright: fix bug for 2-digit last year and add tests
16192         * build-aux/update-copyright: Fix bug.
16193         Use UPDATE_COPYRIGHT_YEAR from environment as current year if
16194         specified.
16195         * modules/update-copyright-tests: New
16196         * tests/test-update-copyright.sh: New.
16197
16198 2009-07-31  Joel E. Denny  <jdenny@clemson.edu>
16199
16200         update-copyright: handle leading tabs in line prefix
16201         * build-aux/update-copyright: Count leading tabs as 8 spaces
16202         when computing margin.  This helps with the formatting of
16203         ChangeLogs, for example.
16204         Fix documentation a little.
16205
16206 2009-07-31  Joel E. Denny  <jdenny@clemson.edu>
16207
16208         update-copyright: support EOL=\r\n
16209         * build-aux/update-copyright: Implement that.
16210
16211 2009-07-31  Joel E. Denny  <jdenny@clemson.edu>
16212
16213         update-copyright: automatically format copyright statements
16214         * build-aux/update-copyright: Implement that.
16215         Also, be a little more predictable and safer by always failing
16216         when the full copyright format is not perfectly recognized as an
16217         unbroken whole.  Discussed at
16218         <http://lists.gnu.org/archive/html/bug-gnulib/2009-07/msg00131.html>.
16219         Rewrite documentation.
16220
16221 2009-08-03  Bruno Haible  <bruno@clisp.org>
16222
16223         * m4/iconv.m4 (AM_ICONV): Fix displayed message with autoconf-2.64.
16224
16225 2009-08-02  Bruno Haible  <bruno@clisp.org>
16226
16227         Tests for module 'uname'.
16228         * modules/uname-tests: New file.
16229         * tests/test-uname.c: New file.
16230
16231         New module 'uname'.
16232         * lib/uname.c: New file.
16233         * m4/uname.m4: New file.
16234         * modules/uname: New file.
16235         * doc/posix-functions/uname.texi: Mention the new module.
16236
16237 2009-08-02  Bruno Haible  <bruno@clisp.org>
16238
16239         Tests for module 'sys_utsname'.
16240         * modules/sys_utsname-tests: New file.
16241         * tests/test-sys_utsname.c: New file.
16242
16243         New module 'sys_utsname'.
16244         * lib/sys_utsname.in.h: New file, based on glibc's <sys/utsname.h>.
16245         * m4/sys_utsname_h.m4: New file.
16246         * modules/sys_utsname: New file.
16247         * doc/posix-headers/sys_utsname.texi: Mention the new module.
16248
16249 2009-08-02  Bruno Haible  <bruno@clisp.org>
16250
16251         Implicitly initialize the sockets library.
16252         * lib/gethostname.c: Include sockets.h.
16253         (rpl_gethostname): Invoke gl_sockets_startup.
16254         * lib/socket.c: Include sockets.h.
16255         (rpl_socket): Invoke gl_sockets_startup.
16256         * modules/gethostname (Depends-on): Add sockets.
16257         * modules/socket (Depends-on): Likewise.
16258         * tests/test-poll.c: Don't include sockets.h.
16259         (main): Don't invoke gl_sockets_startup.
16260         * tests/test-select.c: Don't include sockets.h.
16261         (main): Don't invoke gl_sockets_startup.
16262
16263 2009-08-02  Bruno Haible  <bruno@clisp.org>
16264
16265         Allow multiple calls to gl_sockets_startup.
16266         * lib/sockets.c (initialized_sockets_version): New variable.
16267         (gl_sockets_startup): Do nothing if already called for this or a higher
16268         version.
16269         (gl_sockets_cleanup): Reset initialized_sockets_version.
16270
16271 2009-08-03  Simon Josefsson  <simon@josefsson.org>
16272
16273         * tests/test-argp-version-etc-1.sh: Use EXEEXT.  Don't fail on
16274         different project/version.
16275
16276 2009-08-02  Paolo Bonzini  <bonzini@gnu.org>
16277             Bruno Haible  <bruno@clisp.org>
16278
16279         Tests for module 'pipe-filter-gi'.
16280         * modules/pipe-filter-gi-tests: New file.
16281         * tests/test-pipe-filter-gi1.sh: New file.
16282         * tests/test-pipe-filter-gi1.c: New file.
16283         * tests/test-pipe-filter-gi2.sh: New file.
16284         * tests/test-pipe-filter-gi2-main.c: New file.
16285         * tests/test-pipe-filter-gi2-child.c: New file.
16286
16287         New module 'pipe-filter-gi'.
16288         * lib/pipe-filter-gi.c: New file.
16289         * modules/pipe-filter-gi: New file.
16290
16291 2009-08-02  Bruno Haible  <bruno@clisp.org>
16292             Paolo Bonzini  <bonzini@gnu.org>
16293
16294         Tests for module 'pipe-filter-ii'.
16295         * modules/pipe-filter-ii-tests: New file.
16296         * tests/test-pipe-filter-ii1.sh: New file.
16297         * tests/test-pipe-filter-ii1.c: New file.
16298         * tests/test-pipe-filter-ii2.sh: New file.
16299         * tests/test-pipe-filter-ii2-main.c: New file.
16300         * tests/test-pipe-filter-ii2-child.c: New file.
16301
16302         New module 'pipe-filter-ii'.
16303         * lib/pipe-filter.h: New file.
16304         * lib/pipe-filter-ii.c: New file.
16305         * lib/pipe-filter-aux.h: New file.
16306         * modules/pipe-filter-ii: New file.
16307
16308 2009-08-02  Simon Josefsson  <simon@josefsson.org>
16309
16310         * lib/gc-libgcrypt.c: Change copyright to FSF.
16311         * lib/gc-gnulib.c: Likewise.
16312
16313 2009-08-02  Martin Lambers  <marlam@marlam.de>  (tiny change)
16314
16315         * lib/gethostname.c: Include limits.h.
16316
16317 2009-08-02  Simon Josefsson  <simon@josefsson.org>
16318             Bruno Haible  <bruno@clisp.org>
16319
16320         Ensure HOST_NAME_MAX as part of the gethostname module.
16321         * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): On native Windows platforms,
16322         define also HOST_NAME_MAX.
16323         * tests/test-gethostname.c: Include <limits.h>.
16324         (main): Check also HOST_NAME_MAX.
16325         * doc/posix-headers/limits.texi: Document the mingw problem.
16326
16327 2009-08-02  Bruno Haible  <bruno@clisp.org>
16328
16329         * lib/gethostname.c (gethostname): Fix handling of large len argument.
16330         Add comments.
16331
16332 2009-03-31  Simon Josefsson  <simon@josefsson.org>
16333
16334         * lib/gethostname.c: Add Windows wrapper.
16335         * m4/gethostname.m4: Look for gethostname in -lws2_32.
16336         * modules/gethostname: Depend on sys_socket & errno, for also
16337         added lib/w32sock.h.  Add GETHOSTNAME_LIB link directive.
16338         * modules/gethostname-tests: Link to @GETHOSTNAME_LIB@.
16339
16340 2009-07-31  Jim Meyering  <meyering@redhat.com>
16341
16342         getloadavg: fix symbol name in comment
16343         * lib/getloadavg.c: Correct a typo I introduced when adding
16344         comments to Matt's change: s/NLIST_POINTER/N_NAME_POINTER/.
16345         Matt Kraai spotted the problem.
16346
16347 2009-07-29  Matt Kraai  <mkraai@beckman.com>
16348
16349         getloadavg: check whether n_name is a pointer, for QNX 6.4.1
16350         * lib/getloadavg.c (getloadavg): Use the strcpy-into-nlist.n_name
16351         code also if ! defined N_NAME_POINTER.
16352         * m4/getloadavg.m4 (gl_GETLOADAVG): Add a link-test for N_NAME_POINTER.
16353         This is required on QNX 6.4.1, where /usr/include/nlist.h exists,
16354         but the n_name member is a 12-byte array.
16355
16356 2009-07-29  Joel E. Denny  <jdenny@clemson.edu>
16357
16358         update-copyright: generalize comment handling
16359         * build-aux/update-copyright: Handle copyright statements
16360         within more comment styles.
16361         Document usage.
16362         Report any file with an external copyright holder or parse failure.
16363
16364 2009-07-29  Jim Meyering  <meyering@redhat.com>
16365
16366         mktime: correct setting of REPLACE_MKTIME
16367         * m4/mktime.m4 (gl_FUNC_MKTIME): Set REPLACE_MKTIME=0, when required.
16368
16369         update-copyright: new module
16370         * modules/update-copyright: New file.
16371         * build-aux/update-copyright: New file.
16372         * MODULES.html.sh (maint+release support): Add update-copyright.
16373
16374 2009-07-27  Bruno Haible  <bruno@clisp.org>
16375
16376         Fix compilation error when <ctime> is used and mktime is replaced.
16377         * lib/time.in.h (mktime): New declaration.
16378         * m4/mktime.m4 (gl_FUNC_MKTIME): Require gl_HEADER_TIME_H_DEFAULTS. Set
16379         REPLACE_MKTIME instead of defining mktime in config.h.
16380         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize REPLACE_MKTIME.
16381         * modules/time (Makefile.am): Substitute REPLACE_MKTIME.
16382         Reported by Ross McFarland <rwmcfa1@neces.com>.
16383
16384 2009-07-27  Bruno Haible  <bruno@clisp.org>
16385
16386         * lib/math.in.h (cosl, logl, sinl): Undefine before declaring it.
16387         Reported by Matt Kraai <mkraai@beckman.com>.
16388
16389 2009-07-25  Jim Meyering  <meyering@redhat.com>
16390
16391         maint.mk: avoid warnings about missing files
16392         * top/maint.mk (PREV_VERSION): Suppress stderr, to hide a
16393         diagnostic when .prev-version does not exist.
16394         (_cfg_mk): Define, so it can be empty when cfg.mk does not exist.
16395         (syntax-check-rules): Use $(_cfg_mk) to avoid a diagnostic about
16396         nonexistent cfg.mk.
16397         Suggestions from Simon Josefsson.
16398
16399 2009-07-25  Bruno Haible  <bruno@clisp.org>
16400
16401         * lib/math.in.h (cosl, logl, sinl): Don't declare if they are already
16402         defined as macros. Needed on QNX 6.4.1.
16403         Reported by Matt Kraai <mkraai@beckman.com>.
16404
16405 2009-07-23  Jim Meyering  <meyering@redhat.com>
16406
16407         maint.mk: invoke "make dist" with a working value of XZ_OPT
16408         * top/maint.mk (vc-dist): Use no "-" in the value of XZ_OPT.
16409
16410 2009-07-22  Matt Kraai  <mkraai@beckman.com>  (tiny change)
16411
16412         Make fseeko.c compile on QNX.
16413         * lib/fseeko.c (rpl_fseeko): Use the numerical value of _MWRITE.
16414
16415 2009-07-22  Peter Simons  <simons@cryp.to>
16416
16417         C++: wrap md2,md5,sha1,etc. function declarations in extern "C" scope
16418         * lib/md2.h [__cplusplus]: Wrap declarations in extern "C" scope.
16419         * lib/md4.h: Likewise.
16420         * lib/md5.h: Likewise.
16421         * lib/sha1.h: Likewise.
16422         * lib/sha256.h: Likewise.
16423         * lib/sha512.h: Likewise.
16424
16425         tests-sha1: don't assign literal string to 'char *' variable
16426         * tests/test-sha1.c (main): Declare locals with "const" to match
16427         attributes of the right hand side.
16428
16429 2009-07-21  Eric Blake  <ebb9@byu.net>
16430
16431         dup2: fix more mingw problems
16432         * lib/dup2.c (rpl_dup2) [_WIN32]: Avoid hanging when duplicating
16433         fd to itself.
16434         * doc/posix-functions/dup2.texi (dup2): Document the bug.
16435         * lib/unistd.in.h (dup2) [REPLACE_FCHDIR]: Avoid name collision.
16436         * lib/fchdir.c (dup2): Manage preprocessor macros correctly.
16437         (rpl_dup2_fchdir): Rename from rpl_dup2, and let dup2 module take
16438         care of mingw bugs.
16439
16440 2009-07-21  Jim Meyering  <meyering@redhat.com>
16441
16442         vc-list-files: avoid failure when /bin/sh is dash
16443         * build-aux/vc-list-files: Avoid a shell portability problem with dash.
16444         On some Debian based systems, /bin/sh is a symlink to dash, and running
16445         this command would omit the "/" following each 'tests' prefix:
16446           dash -x build-aux/vc-list-files -C . tests
16447         That is because bash and dash work differently:
16448           $ for i in bash dash; do $i -c 'a=odd; a=ok b=$a; echo '$i' $b'; done
16449           bash ok
16450           dash odd
16451
16452 2009-07-21  Eric Blake  <ebb9@byu.net>
16453
16454         dup2-tests: test previous patch
16455         * modules/dup2-tests: New file.
16456         * tests/test-dup2.c: Likewise.
16457         * tests/test-open.c (main): Avoid unspecified behavior.
16458         * tests/test-pipe.c (child_main): Use dup2 semantics to simplify
16459         test.
16460
16461         dup2: work around mingw and cygwin 1.5 bug
16462         * m4/dup2.m4 (gl_FUNC_DUP2): Detect mingw bug.
16463         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witness.
16464         * modules/unistd (Makefile.am): Substitute it.
16465         * lib/unistd.in.h (dup2): Declare the replacement.
16466         * lib/dup2.c (dup2) [REPLACE_DUP2]: Implement it.
16467         * doc/posix-functions/dup2.texi (dup2): Document the bugs.
16468         * lib/fchdir.c (rpl_dup2): Don't collide with mingw replacement.
16469         * modules/execute (Depends-on): Add dup2.
16470         * modules/fseterr (Depends-on): Likewise.
16471         * modules/pipe (Depends-on): Likewise.
16472         * modules/posix_spawn-internal (Depends-on): Likewise.
16473
16474 2009-07-21  Bruno Haible  <bruno@clisp.org>
16475
16476         * modules/.gitattributes: New file.
16477
16478 2009-07-20  Bruno Haible  <bruno@clisp.org>
16479
16480         * tests/test-pipe.c (BACKUP_STDERR_FILENO): New macro.
16481         (main): Use it.
16482
16483 2009-07-20  Eric Blake  <ebb9@byu.net>
16484
16485         test-pipe: make a bit more robust.
16486         * tests/test-pipe.c (myerr): Allow error messages regardless of
16487         what we do to stderr.
16488         (test_pipe): Rearrange to avoid deadlock.
16489         (child_main): Try a larger read, to ensure we avoided deadlock.
16490         * lib/pipe.c (create_pipe) [_WIN32]: Fix comment.
16491         * lib/pipe.h (create_pipe_bidi): Document potential for deadlock
16492         if misused.
16493
16494 2009-07-19  Jim Meyering  <meyering@redhat.com>
16495
16496         fts: avoid false-positive cycle-detection
16497         * lib/fts.c (fts_read): Reinitialize cycle-detection data structures
16498         for each new command line argument.
16499
16500 2009-07-19  Bruno Haible  <bruno@clisp.org>
16501
16502         Fix build error on mingw with the modules sys_select and unistd.
16503         * modules/acl-tests (Depends-on): Add close.
16504         * modules/binary-io-tests (Depends-on): Likewise.
16505         * modules/closein-tests (Depends-on): Likewise.
16506         * modules/flock-tests (Depends-on): Likewise.
16507         * modules/fsync-tests (Depends-on): Likewise.
16508         * modules/lseek-tests (Depends-on): Likewise.
16509         * modules/pipe-tests (Depends-on): Likewise.
16510         * modules/posix_spawn-tests (Depends-on): Likewise.
16511         * modules/posix_spawnp-tests (Depends-on): Likewise.
16512         * modules/stat-time-tests (Depends-on): Likewise.
16513         * modules/yesno-tests (Depends-on): Likewise.
16514
16515 2009-07-19  Bruno Haible  <bruno@clisp.org>
16516
16517         Unify conditionals.
16518         * lib/pipe.h: Detect native Win32 by looking at _WIN32 and __WIN32__
16519         macros, not at the compiler macros.
16520         * lib/pipe.c: Likewise.
16521         * lib/execute.c: Likewise.
16522         * lib/spawni.c: Likewise.
16523
16524 2009-07-19  Bruno Haible  <bruno@clisp.org>
16525
16526         Fix handling of closed stdin/stdout/stderr on mingw.
16527         * lib/w32spawn.h: Include unistd.h.
16528         (dup_noinherit): Return -1 if the old handle is invalid. Allocate new
16529         file descriptor with O_NOINHERIT flag.
16530         (fd_safer_noinherit): New function, based on fd-safer.c.
16531         (dup_safer_noinherit): New function, based on dup-safer.c.
16532         (undup_safer_noinherit): New function.
16533         * lib/execute.c (execute) [WIN32]: Use dup_safer_noinherit instead of
16534         dup_noinherit. Use undup_safer_noinherit instead of dup2 and close.
16535         * lib/pipe.c (create_pipe) [WIN32]: Likewise. Use fd_safer_noinherit
16536         instead of fd_safer.
16537         * tests/test-pipe.c: Include <windows.h>.
16538         (child_main) [WIN32]: Test the handle of STDERR_FILENO, not its close() result.
16539
16540         * tests/test-pipe.c (child_main, parent_main): New functions, extracted
16541         from main.
16542         (test_pipe): Pass an extra argument for disambiguation.
16543         (main): Invoke parent_main or child_main.
16544
16545         * tests/test-pipe.c (test_pipe): Pass slave_process = true argument
16546         consistently.
16547
16548 2009-07-18  Eric Blake  <ebb9@byu.net>
16549
16550         test-pipe: fix mingw build
16551         * tests/test-pipe.c (main): Avoid fcntl on mingw.
16552
16553 2009-07-18  Bruno Haible  <bruno@clisp.org>
16554
16555         * modules/pipe-tests (Makefile.am): Fix typo.
16556
16557 2009-07-18  Eric Blake  <ebb9@byu.net>
16558
16559         error: fix mingw build
16560         * lib/error.c (error, error_at_line): Avoid fcntl on mingw.
16561         Reported by Bruno Haible.
16562
16563         error: avoid undefined use of stdout
16564         * lib/error.c (error, error_at_line): Check that fd 1 is open
16565         before flushing stdout.  Avoids a crash on cygwin when libsigsegv
16566         is handling faults and the close_stdout module wants to report the
16567         detection of closed stdout as an error.
16568
16569 2009-07-17  Eric Blake  <ebb9@byu.net>
16570
16571         pipe: be robust in face of closed fds
16572         * lib/pipe.c (create_pipe): Closed standard descriptors in parent
16573         should cause child to misbehave.
16574         * modules/pipe-tests: New module.
16575         * tests/test-pipe.c: New file.
16576         * tests/test-pipe.sh: New file.
16577         Reported by Akim Demaille.
16578
16579 2009-07-14  Bruno Haible  <bruno@clisp.org>
16580
16581         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Guess it works on glibc systems.
16582         Reported by anonymous kc.
16583
16584 2009-07-07  Jim Meyering  <meyering@redhat.com>
16585
16586         maint.mk: don't look for translatable strings in *.m4 or *.mk
16587         * top/maint.mk (sc_po_check): Skip *.m4 and *.mk files,
16588         when searching for translatable strings.
16589
16590 2009-07-05  Jim Meyering  <meyering@redhat.com>
16591
16592         remove superfluous parentheses in STREQ definition
16593         * tests/test-argv-iter.c (STREQ): Remove redundant parentheses.
16594         * lib/getugroups.c (STREQ): Likewise.
16595         * lib/fnmatch.c (STREQ): Likewise.
16596         Spotted by Bruno Haible.
16597
16598 2009-07-04  Jim Meyering  <meyering@redhat.com>
16599
16600         argv-iter: new module
16601         * MODULES.html.sh: Add argv-iter.
16602         * lib/argv-iter.c, lib/argv-iter.h: New files.
16603         * modules/argv-iter: New file.
16604         * modules/argv-iter-tests: New file.
16605         * tests/test-argv-iter.c: Test it.
16606
16607 2009-07-04  Bruno Haible  <bruno@clisp.org>
16608
16609         Fix assertion.
16610         * lib/git-merge-changelog.c (compute_mapping): In the case where file1
16611         contains more exact copies of a given entry than file2, leave the extra
16612         copies unpaired rather than aborting.
16613         Reported by Eric Blake.
16614
16615 2009-07-02  Bruno Haible  <bruno@clisp.org>
16616
16617         Speedup git-merge-changelog for git cherry-pick.
16618         * lib/git-merge-changelog.c (struct entries_mapping): New type.
16619         (entries_mapping_get): New function, extracted from compute_mapping.
16620         (entries_mapping_reverse_get): New function.
16621         (compute_mapping): Add a 'full' argument. Return the result in a
16622         'struct entries_mapping'.
16623         (main): Update. Access the mappings through entries_mapping_get.
16624         Reported by Eric Blake.
16625
16626 2009-07-02  Bruno Haible  <bruno@clisp.org>
16627
16628         * lib/git-merge-changelog.c (compute_mapping): Fix determination of
16629         best_i.
16630
16631 2009-07-02  Bruno Haible  <bruno@clisp.org>
16632
16633         Speed up approximate search for matching ChangeLog entries.
16634         * lib/git-merge-changelog.c (entry_fstrcmp): Add a lower_bound
16635         argument. Call fstrcmp_bounded instead of fstrcmp.
16636         (compute_mapping, try_split_merged_entry, main): Update callers.
16637
16638 2009-07-02  Bruno Haible  <bruno@clisp.org>
16639
16640         * lib/git-merge-changelog.c (main): Add comment about git cherry-pick.
16641
16642 2009-06-30  Bruno Haible  <bruno@clisp.org>
16643
16644         Reduce the number of uc_is_cased calls.
16645         * lib/unicase.h (casing_suffix_context_t): Add
16646         'first_char_except_ignorable' field.
16647         * lib/unicase/context.h (SCC_FINAL_SIGMA_MASK): Remove macro.
16648         (SCC_MORE_ABOVE_MASK, SCC_BEFORE_DOT_MASK): Update.
16649         * lib/unicase/empty-suffix-context.c (unicase_empty_suffix_context):
16650         Update initializer.
16651         * lib/unicase/u-casemap.h (FUNC): Don't invoke uc_is_cased on
16652         case-ignorable characters.
16653         * lib/unicase/u-ct-totitle.h (FUNC): Likewise.
16654         * lib/unicase/u-suffix-context.h (FUNC2): Don't call uc_is_cased here.
16655         * modules/unicase/u8-suffix-context (Depends-on): Remove unicase/cased.
16656         * modules/unicase/u16-suffix-context (Depends-on): Likewise.
16657         * modules/unicase/u32-suffix-context (Depends-on): Likewise.
16658
16659 2009-06-30  Bruno Haible  <bruno@clisp.org>
16660
16661         Tests for module 'unicase/ignorable'.
16662         * modules/unicase/ignorable-tests: New file.
16663         * tests/unicase/test-ignorable.c: New file, generated by
16664         gen-uni-tables.
16665
16666         Tests for module 'unicase/cased'.
16667         * modules/unicase/cased-tests: New file.
16668         * tests/unicase/test-cased.c: New file, generated by gen-uni-tables.
16669         * tests/unicase/test-predicate-part1.h: New file, derived from
16670         tests/unictype/test-predicate-part1.h.
16671         * tests/unicase/test-predicate-part2.h: New file, same as
16672         tests/unictype/test-predicate-part2.h.
16673
16674         Fix evaluation of "Before C" condition of FINAL_SIGMA.
16675         * lib/gen-uni-tables.c (is_cased, is_case_ignorable): New functions.
16676         (output_casing_properties): New function.
16677         (main): Call it.
16678         * lib/unicase/cased.h: New file, generated by gen-uni-tables.
16679         * lib/unicase/cased.c: Include unictype/bitmap.h.
16680         (uc_is_cased): Define through a bitmap lookup.
16681         * lib/unicase/ignorable.h: New file, generated by gen-uni-tables.
16682         * lib/unicase/ignorable.c: Include unictype/bitmap.h.
16683         (uc_is_case_ignorable): Define through a bitmap lookup.
16684         * modules/unicase/cased (Files): Add lib/unicase/cased.h,
16685         lib/unictype/bitmap.h.
16686         (Depends-on): Add inline. Clean up.
16687         * modules/unicase/ignorable (Files): Add lib/unicase/ignorable.h,
16688         lib/unictype/bitmap.h.
16689         (Depends-on): Add inline. Clean up.
16690         * tests/unicase/test-u8-tolower.c (main): Add more tests of FINAL_SIGMA
16691         recognition.
16692         * tests/unicase/test-u16-tolower.c (main): Likewise.
16693         * tests/unicase/test-u32-tolower.c (main): Likewise.
16694
16695 2009-06-30  Bruno Haible  <bruno@clisp.org>
16696
16697         * lib/unicase/u8-casemap.c: Don't include uniwbrk.h.
16698         * lib/unicase/u16-casemap.c: Likewise.
16699         * lib/unicase/u32-casemap.c: Likewise.
16700
16701 2009-06-29  Bruno Haible  <bruno@clisp.org>
16702
16703         Define u32_casefold as a wrapper around u32_ct_casefold.
16704         * lib/unicase/u32-casefold.c: Update.
16705         * modules/unicase/u32-casefold (Depends-on): Add
16706         unicase/u32-ct-casefold, unicase/empty-prefix-context,
16707         unicase/empty-suffix-context. Clean up.
16708
16709         Define u16_casefold as a wrapper around u16_ct_casefold.
16710         * lib/unicase/u16-casefold.c: Update.
16711         * modules/unicase/u16-casefold (Depends-on): Add
16712         unicase/u16-ct-casefold, unicase/empty-prefix-context,
16713         unicase/empty-suffix-context. Clean up.
16714
16715         Define u8_casefold as a wrapper around u8_ct_casefold.
16716         * lib/unicase/u-casefold.h (FUNC): Delegate to U_CT_CASEFOLD.
16717         * lib/unicase/u8-casefold.c: Update.
16718         * modules/unicase/u8-casefold (Depends-on): Add unicase/u8-ct-casefold,
16719         unicase/empty-prefix-context, unicase/empty-suffix-context. Clean up.
16720
16721         Define u32_totitle as a wrapper around u32_ct_totitle.
16722         * lib/unicase/u32-totitle.c: Update.
16723         * modules/unicase/u32-totitle (Depends-on): Add unicase/u32-ct-totitle,
16724         unicase/empty-prefix-context, unicase/empty-suffix-context. Clean up.
16725
16726         Define u16_totitle as a wrapper around u16_ct_totitle.
16727         * lib/unicase/u16-totitle.c: Update.
16728         * modules/unicase/u16-totitle (Depends-on): Add unicase/u16-ct-totitle,
16729         unicase/empty-prefix-context, unicase/empty-suffix-context. Clean up.
16730
16731         Define u8_totitle as a wrapper around u8_ct_totitle.
16732         * lib/unicase/u-totitle.h (is_cased, is_case_ignorable): Remove
16733         functions.
16734         (FUNC): Delegate to U_CT_TOTITLE.
16735         * lib/unicase/u8-totitle.c: Update.
16736         * modules/unicase/u8-totitle (Depends-on): Add unicase/u8-ct-totitle,
16737         unicase/empty-prefix-context, unicase/empty-suffix-context. Clean up.
16738
16739         * lib/unicase/u32-tolower.c (u32_tolower): Update u32_casemap
16740         invocation.
16741         * modules/unicase/u32-tolower (Depends-on): Add
16742         unicase/empty-prefix-context, unicase/empty-suffix-context.
16743
16744         * lib/unicase/u16-tolower.c (u16_tolower): Update u16_casemap
16745         invocation.
16746         * modules/unicase/u16-tolower (Depends-on): Add
16747         unicase/empty-prefix-context, unicase/empty-suffix-context.
16748
16749         * lib/unicase/u8-tolower.c (u8_tolower): Update u8_casemap invocation.
16750         * modules/unicase/u8-tolower (Depends-on): Add
16751         unicase/empty-prefix-context, unicase/empty-suffix-context.
16752
16753         * lib/unicase/u32-toupper.c (u32_toupper): Update u32_casemap
16754         invocation.
16755         * modules/unicase/u32-toupper (Depends-on): Add
16756         unicase/empty-prefix-context, unicase/empty-suffix-context.
16757
16758         * lib/unicase/u16-toupper.c (u16_toupper): Update u16_casemap
16759         invocation.
16760         * modules/unicase/u16-toupper (Depends-on): Add
16761         unicase/empty-prefix-context, unicase/empty-suffix-context.
16762
16763         * lib/unicase/u8-toupper.c (u8_toupper): Update u8_casemap invocation.
16764         * modules/unicase/u8-toupper (Depends-on): Add
16765         unicase/empty-prefix-context, unicase/empty-suffix-context.
16766
16767         New module 'unicase/u32-ct-casefold'.
16768         * lib/unicase/u32-ct-casefold.c: New file.
16769         * modules/unicase/u32-ct-casefold: New file.
16770
16771         New module 'unicase/u16-ct-casefold'.
16772         * lib/unicase/u16-ct-casefold.c: New file.
16773         * modules/unicase/u16-ct-casefold: New file.
16774
16775         New module 'unicase/u8-ct-casefold'.
16776         * lib/unicase/u8-ct-casefold.c: New file.
16777         * lib/unicase/u-ct-casefold.h: New file, derived from
16778         lib/unicase/u-casefold.h.
16779         * modules/unicase/u8-ct-casefold: New file.
16780
16781         New module 'unicase/u32-ct-totitle'.
16782         * lib/unicase/u32-ct-totitle.c: New file.
16783         * modules/unicase/u32-ct-totitle: New file.
16784
16785         New module 'unicase/u16-ct-totitle'.
16786         * lib/unicase/u16-ct-totitle.c: New file.
16787         * modules/unicase/u16-ct-totitle: New file.
16788
16789         New module 'unicase/u8-ct-totitle'.
16790         * lib/unicase/u8-ct-totitle.c: New file.
16791         * lib/unicase/u-ct-totitle.h: New file, derived from
16792         lib/unicase/u-totitle.h.
16793         * modules/unicase/u8-ct-totitle: New file.
16794
16795         New module 'unicase/u32-ct-tolower'.
16796         * lib/unicase/u32-ct-tolower.c: New file.
16797         * modules/unicase/u32-ct-tolower: New file.
16798
16799         New module 'unicase/u16-ct-tolower'.
16800         * lib/unicase/u16-ct-tolower.c: New file.
16801         * modules/unicase/u16-ct-tolower: New file.
16802
16803         New module 'unicase/u8-ct-tolower'.
16804         * lib/unicase/u8-ct-tolower.c: New file.
16805         * modules/unicase/u8-ct-tolower: New file.
16806
16807         New module 'unicase/u32-ct-toupper'.
16808         * lib/unicase/u32-ct-toupper.c: New file.
16809         * modules/unicase/u32-ct-toupper: New file.
16810
16811         New module 'unicase/u16-ct-toupper'.
16812         * lib/unicase/u16-ct-toupper.c: New file.
16813         * modules/unicase/u16-ct-toupper: New file.
16814
16815         New module 'unicase/u8-ct-toupper'.
16816         * lib/unicase/u8-ct-toupper.c: New file.
16817         * modules/unicase/u8-ct-toupper: New file.
16818
16819         Add context arguments to u*_casemap functions.
16820         * lib/unicase/unicasemap.h: Include unicase.h.
16821         (u8_casemap, u16_casemap, u32_casemap): Add prefix_context and
16822         suffix_context arguments.
16823         * lib/unicase/u-casemap.h (is_cased, is_case_ignorable): Remove
16824         functions.
16825         (FUNC): Add prefix_context and suffix_context arguments. Use
16826         uc_is_cased and uc_is_case_ignorable.
16827         * lib/unicase/u8-casemap.c: Include caseprop.h and context.h.
16828         * lib/unicase/u16-casemap.c: Likewise.
16829         * lib/unicase/u32-casemap.c: Likewise.
16830         * modules/unicase/u8-casemap (Files): Add lib/unicase/context.h.
16831         (Depends-on): Add unicase/cased, unicase/ignorable. Clean up.
16832         * modules/unicase/u16-casemap (Files): Add lib/unicase/context.h.
16833         (Depends-on): Add unicase/cased, unicase/ignorable. Clean up.
16834         * modules/unicase/u32-casemap (Files): Add lib/unicase/context.h.
16835         (Depends-on): Add unicase/cased, unicase/ignorable. Clean up.
16836
16837         New module 'unicase/u32-suffix-context'.
16838         * lib/unicase/u32-suffix-context.c: New file.
16839         * modules/unicase/u32-suffix-context: New file.
16840
16841         New module 'unicase/u16-suffix-context'.
16842         * lib/unicase/u16-suffix-context.c: New file.
16843         * modules/unicase/u16-suffix-context: New file.
16844
16845         New module 'unicase/u8-suffix-context'.
16846         * lib/unicase/u8-suffix-context.c: New file.
16847         * lib/unicase/u-suffix-context.h: New file.
16848         * modules/unicase/u8-suffix-context: New file.
16849
16850         New module 'unicase/empty-suffix-context'.
16851         * lib/unicase/empty-suffix-context.c: New file.
16852         * modules/unicase/empty-suffix-context: New file.
16853
16854         New module 'unicase/u32-prefix-context'.
16855         * lib/unicase/u32-prefix-context.c: New file.
16856         * modules/unicase/u32-prefix-context: New file.
16857
16858         New module 'unicase/u16-prefix-context'.
16859         * lib/unicase/u16-prefix-context.c: New file.
16860         * modules/unicase/u16-prefix-context: New file.
16861
16862         New module 'unicase/u8-prefix-context'.
16863         * lib/unicase/u8-prefix-context.c: New file.
16864         * lib/unicase/u-prefix-context.h: New file.
16865         * lib/unicase/context.h: New file.
16866         * modules/unicase/u8-prefix-context: New file.
16867
16868         New module 'unicase/empty-prefix-context'.
16869         * lib/unicase/empty-prefix-context.c: New file.
16870         * modules/unicase/empty-prefix-context: New file.
16871
16872         New module 'unicase/ignorable'.
16873         * lib/unicase/ignorable.c: New file.
16874         * modules/unicase/ignorable: New file.
16875
16876         New module 'unicase/cased'.
16877         * lib/unicase/caseprop.h: New file.
16878         * lib/unicase/cased.c: New file.
16879         * modules/unicase/cased: New file.
16880
16881         New functions for case mapping of substrings.
16882         * lib/unicase.h (casing_prefix_context_t): New type.
16883         (unicase_empty_prefix_context): New variable.
16884         (u8_casing_prefix_context, u16_casing_prefix_context,
16885         u32_casing_prefix_context, u8_casing_prefixes_context,
16886         u16_casing_prefixes_context, u32_casing_prefixes_context): New
16887         declarations.
16888         (casing_suffix_context_t): New type.
16889         (unicase_empty_suffix_context): New variable.
16890         (u8_casing_suffix_context, u16_casing_suffix_context,
16891         u32_casing_suffix_context, u8_casing_suffixes_context,
16892         u16_casing_suffixes_context, u32_casing_suffixes_context,
16893         u8_ct_toupper, u16_ct_toupper, u32_ct_toupper, u8_ct_tolower,
16894         u16_ct_tolower, u32_ct_tolower, u8_ct_totitle, u16_ct_totitle,
16895         u32_ct_totitle, u8_ct_casefold, u16_ct_casefold, u32_ct_casefold): New
16896         declarations.
16897
16898 2009-06-28  Jim Meyering  <meyering@redhat.com>
16899
16900         boostrap: indent only with spaces
16901         * build-aux/bootstrap: Indent only with spaces, never TABs.
16902
16903         bootstrap: split long lines
16904         * build-aux/bootstrap: Keep line length < 80.
16905
16906         bootstrap: sync from coreutils
16907         * build-aux/bootstrap: Honor variables like $ACLOCAL, etc.,
16908         just as autoreconf does.  Verify a list of prerequisite
16909         package-name,version-number pairs if defined in bootstrap.conf.
16910         Refer to README-prereq, if prerequisites are not satisfied.
16911
16912 2009-06-27  Eric Blake  <ebb9@byu.net>
16913
16914         tests: add test for bogus NULL definition
16915         * tests/test-stdio.c: Ensure POSIX 2008 requirement on NULL.
16916         * tests/test-stdlib.c: Likewise.
16917         * tests/test-string.c: Likewise.
16918         * tests/test-locale.c: Likewise.
16919         * tests/test-unistd.c: Likewise.
16920         * modules/stdio-tests (Depends-on): Add verify.
16921         * modules/stdlib-tests (Depends-on): Likewise.
16922         * modules/string-tests (Depends-on): Likewise.
16923         * modules/locale-tests (Depends-on): Likewise.
16924         * modules/unistd-tests (Depends-on): Likewise.
16925
16926 2009-06-27  Paolo Bonzini  <bonzini@gnu.org>
16927
16928         * m4/selinux-context-h (gl_HEADERS_SELINUX_CONTEXT_H): Remove
16929         self-explaining comment.
16930         * m4/selinux-selinux-h: Update serial.
16931         (gl_LIBSELINUX): New macro, adding a warning for missing development
16932         packages to code extracted from...
16933         (gl_HEADERS_SELINUX_SELINUX_H): ... this one.  Require gl_LIBSELINUX.
16934         Add warning for missing development packages here, too.
16935
16936 2009-06-26  Paolo Bonzini  <bonzini@gnu.org>
16937
16938         * build-aux/bootstrap: Do not use GIT_CONFIG_LOCAL.
16939
16940 2009-06-25  Eric Blake  <ebb9@byu.net>
16941
16942         version-etc: fix regression
16943         * lib/version-etc.h (ATTRIBUTE_SENTINEL): Define for new enough
16944         gcc.
16945         (version_etc): Use it, to catch bugs with trailing NULL.
16946         * lib/version-etc.c (version_etc_arn): Delete unused argument.
16947         (version_etc_va): Fix logic bug.
16948         * modules/version-etc-tests: Add test.
16949         * tests/test-version-etc.c: New file.
16950         * tests/test-version-etc.sh: Likewise.
16951
16952 2009-06-25  Sam Steingold  <sds@gnu.org>
16953
16954         * mbrtowc.m4 (gl_MBRTOWC_SANITYCHECK): Include <stdlib.h>, for the
16955         mbtowc declaration.
16956
16957 2009-06-25  Eric Blake  <ebb9@byu.net>
16958
16959         fpurge: migrate into <stdio.h>
16960         * lib/fpurge.h: Delete...
16961         * lib/stdio.in.h (fpurge): ...and declare here, instead.
16962         * lib/fpurge.c (fpurge): Change declaring header.
16963         * modules/fpurge (Files): Drop deleted file.
16964         (Depends-on): Add stdio.
16965         (configure.ac): Set witness.
16966         * modules/stdio (Makefile.am): Support fpurge macros.
16967         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Likewise.
16968         * m4/fpurge.m4 (gl_FUNC_FPURGE): Set appropriate variables.
16969         * lib/fflush.c: Update client.
16970         * tests/test-fpurge.c: Likewise.
16971         * NEWS: Mention the change.
16972
16973 2009-06-25  Sergey Poznyakoff  <gray@gnu.org.ua>
16974
16975         * lib/argp-version-etc.c (program_authors): Add const
16976         qualifier.
16977         * lib/version-etc.c: Fix typos in the comments.
16978         * modules/argp-version-etc: Depends on version-etc.
16979
16980 2009-06-25  Sergey Poznyakoff  <gray@gnu.org.ua>
16981
16982         argp-version-etc: new module.
16983
16984         * lib/argp-version-etc.c: New file.
16985         * lib/argp-version-etc.h: New file.
16986         * modules/argp-version-etc: New file.
16987         * modules/argp-version-etc-tests: New file.
16988         * tests/test-argp-version-etc.c: New test.
16989         * tests/test-argp-version-etc-1.sh: New test.
16990
16991 2009-06-25  Sergey Poznyakoff  <gray@gnu.org.ua>
16992
16993         Provide additional interfaces and documentation for version-etc
16994         module.
16995
16996         * lib/version-etc.c (version_etc_arn, version_etc_ar): New
16997         interfaces.
16998         * lib/version-etc.h (version_etc_arn, version_etc_ar): New
16999         prototypes.
17000
17001 2009-06-24  Bruno Haible  <bruno@clisp.org>
17002
17003         * m4/lib-link.m4 (AC_LIB_HAVE_LINKFLAGS): Fix description of
17004         HAVE_LIB${NAME} macro.
17005         Reported by Sam Steingold <sds@gnu.org>.
17006
17007 2009-06-23  Simon Josefsson  <simon@josefsson.org>
17008
17009         * modules/hash-tests (test_hash_LDADD): Link to libintl when
17010         needed.
17011
17012 2009-06-21  Bruno Haible  <bruno@clisp.org>
17013
17014         Make two consecutive identical invocations of AC_LIB_HAVE_LINKFLAGS
17015         work.
17016         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): Reset HAVE_LIB${NAME}
17017         together with LIB${NAME}, LTLIB${NAME}.
17018         Reported by Sam Steingold <sds@gnu.org>.
17019
17020 2009-06-20  Jim Meyering  <meyering@redhat.com>
17021
17022         tests: make sc_require_test_exit_idiom more generic
17023         * top/maint.mk (Exit_witness_file): New overridable variable.
17024         (sc_require_test_exit_idiom): Don't hard-code tests/test-lib.sh.
17025         Relax test for /^Exit \$fail$$/ to just /^Exit ./.
17026
17027 2009-06-19  Jim Meyering  <meyering@redhat.com>
17028
17029         hash: reverse order of src/dst parameters in an internal interface
17030         * lib/hash.c (transfer_entries): Reverse order of parameters to
17031         put DST before SRC.  Adjust callers.
17032
17033         tests: test-hash: avoid wholesale duplication
17034         * tests/test-hash.c (main): Don't copy/paste a 60-line loop.
17035         Instead, use a loop and add a single conditional.
17036
17037         tests: test-hash: allow seed selection via a command line argument
17038         * tests/test-hash.c (get_seed): New function.
17039         (main): Use it.
17040
17041 2009-06-19  Eric Blake  <ebb9@byu.net>
17042
17043         hash: avoid memory leak on allocation failure
17044         * lib/hash.c: (hash_rehash): Avoid memory leak on allocation
17045         failure.  Factor repeated algorithm...
17046         (transfer_entries): ...into new helper routine.
17047         (hash_delete): React to hash_rehash return value.
17048
17049         hash: reduce memory pressure in hash_rehash no-op case
17050         * lib/hash.c (next_prime): Avoid overflow.
17051         (hash_initialize): Factor bucket size computation...
17052         (compute_bucket_size): ...into new helper function.
17053         (hash_rehash): Use new function and open coding to reduce memory
17054         pressure, and avoid a memory leak in USE_OBSTACK code.
17055         Reported by Jim Meyering.
17056
17057 2009-06-18  Eric Blake  <ebb9@byu.net>
17058
17059         hash: make rotation more obvious
17060         * modules/hash (Depends-on): Add bitrotate and stdint.
17061         * lib/bitrotate.h (rotl_sz, rotr_sz): New functions.
17062         * lib/hash.c (headers): Drop limits.h.  Add stdint.h.
17063         (SIZE_MAX): Rely on headers for definition.
17064         (hash_string) [USE_DIFF_HASH]: Use rotl_sz.
17065         (raw_hasher): Use rotr_sz.
17066         Suggested by Jim Meyering.
17067
17068         hash: fix memory leak in last patch
17069         * lib/hash.c (hash_rehash): Avoid memory leak.
17070
17071         hash: avoid no-op rehashing
17072         * lib/hash.c (hash_rehash): Recognize useless rehash attempts.
17073
17074         hash: provide default callback functions
17075         * lib/hash.c (raw_hasher, raw_comparator): New functions.
17076         (hash_initialize): Use them as defaults.
17077         * tests/test-hash.c (main): Test this.
17078
17079         hash: minor optimization
17080         * lib/hash.c (hash_lookup, hash_find_entry): Avoid function call
17081         when possible.
17082         (hash_initialize): Document this promise.
17083         (hash_do_for_each, hash_clear, hash_free): Use C89 syntax.
17084         * tests/test-hash.c (hash_compare_strings): Test this.
17085
17086 2009-06-18  Bruno Haible  <bruno@clisp.org>
17087
17088         * m4/strstr.m4 (gl_FUNC_STRSTR): Skip linear time test if strstr is
17089         going to be replaced anyway.
17090
17091 2009-06-18  Bruno Haible  <bruno@clisp.org>
17092
17093         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE): Invoke AC_LIBOBJ only
17094         in one place.
17095         (gl_FUNC_STRCASESTR): Skip linear time test if strcasestr is going to
17096         be replaced anyway.
17097
17098 2009-06-18  Eric Blake  <ebb9@byu.net>
17099
17100         hash: check for resize before insertion
17101         * lib/hash.c (hash_insert): Check whether bucket usage exceeds
17102         threshold before insertion, so that a pathological hash_rehash
17103         that fills every bucket can still trigger another rehash.
17104
17105 2009-06-18  Jim Meyering  <meyering@redhat.com>
17106
17107         hash-tests: add a loop around the small tests
17108         * tests/test-hash.c (main): Repeat small tests with selected
17109         small initial table sizes.
17110
17111 2009-06-17  Eric Blake  <ebb9@byu.net>
17112
17113         hash: minor cleanups
17114         * lib/hash.h (hash_entry): Make opaque, by moving...
17115         * lib/hash.c (hash_entry): ...here.
17116         (hash_insert): Clarify restrictions on what can be inserted.
17117         (hash_get_next): Clarify when it is safe to remove an element
17118         during traversal.
17119         (check_tuning): Skip verification when tuning is known safe.
17120         (hash_initialize): Clarify restrictions on tuning.
17121
17122 2009-06-17  Jim Meyering  <jim@meyering.net>
17123         and Eric Blake  <ebb9@byu.net>
17124
17125         hash-tests: new module
17126         * modules/hash-tests: New file.
17127         * tests/test-hash.c: New file.
17128
17129 2009-06-17  Eric Blake  <ebb9@byu.net>
17130
17131         strstr-simple: document new module
17132         * MODULES.html.sh: Document new module.
17133
17134         strstr, strcasestr: replace on platforms with broken memchr
17135         * modules/strstr: Split into...
17136         * modules/strstr-simple: ...new module that does not care about
17137         performance, but does care about glibc bug.
17138         * m4/strstr.m4 (gl_FUNC_STRSTR): Split...
17139         (gl_FUNC_STRSTR_SIMPLE): ...into new macro, which replaces strstr
17140         if platform memchr is broken, per Debian bug 521737.
17141         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE): React to broken
17142         memchr.
17143         * m4/memchr.m4 (gl_FUNC_MEMCHR): Only expand once.
17144         * doc/posix-functions/strstr.texi (strstr): Document the fix.
17145         * doc/glibc-functions/strcasestr.texi (strcasestr): Likewise.
17146         * modules/mountlist (Depends-on): Add strstr-simple.
17147         * modules/gen-uni-tables (Depends-on): Likewise.
17148         * modules/argz (Depends-on): Add strstr.
17149
17150 2009-06-17  Bruno Haible  <bruno@clisp.org>
17151
17152         * modules/posix_spawn-internal (Depends-on): Add errno.
17153
17154 2009-06-17  Bruno Haible  <bruno@clisp.org>
17155
17156         Define missing ESTALE on Interix 3.5.
17157         * lib/errno.in.h (ESTALE): Assign a value if missing.
17158         * lib/strerror.c (rpl_strerror): Handle missing ESTALE and ECANCELED.
17159         * m4/errno_h.m4 (gl_HEADER_ERRNO_H): Also test whether ESTALE is
17160         missing.
17161         * doc/posix-headers/errno.texi: Mention the Interix bug.
17162         Reported by Jay Krell <jay.krell@cornell.edu> via Eric Blake.
17163
17164 2009-06-15  Eric Blake  <ebb9@byu.net>
17165
17166         memchr, memchr2: add valgrind exception
17167         * lib/memchr.valgrind: New file.
17168         * lib/memchr2.valgrind: New file.
17169         * modules/memchr (Files): Distribute valgrind file.
17170         * modules/memchr2 (Files): Likewise.
17171
17172         docs: memchr is no longer obsolete
17173         * MODULES.html.sh: Move memchr from obsolete to string.h section.
17174         * lib/string.in.h (memchr): Simplify logic.
17175
17176 2009-06-14  Jim Meyering  <meyering@redhat.com>
17177
17178         link-follow: fix the "checking..." message to not mention trailing slash
17179         * m4/link-follow.m4 (gl_AC_FUNC_LINK_FOLLOWS_SYMLINK): This test has
17180         never considered trailing slashes.
17181
17182 2009-06-14  Bruno Haible  <bruno@clisp.org>
17183
17184         * m4/memchr.m4: Mention also the bug on IA-64.
17185         * doc/posix-functions/memchr.texi: Likewise.
17186
17187 2009-06-12  Eric Blake  <ebb9@byu.net>
17188
17189         memchr: detect broken x86_64 and alpha implementations
17190         * modules/memchr-tests (Depends-on): Move mmap detection...
17191         * modules/memchr (Depends-on): ...here.
17192         (configure.ac): Set indicator.
17193         * lib/string.in.h (memchr): Declare replacement.
17194         * modules/string (Makefile.am): Trigger replacement.
17195         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Likewise.
17196         * m4/memchr.m4 (gl_FUNC_MEMCHR): Use mmap to detect platform
17197         bugs.
17198         * doc/posix-functions/memchr.texi (memchr): Document the bug.
17199         * modules/getpagesize (License): Relax license.
17200
17201 2009-06-11  Bruno Haible  <bruno@clisp.org>
17202
17203         * lib/idpriv.h: Add more references.
17204
17205 2009-06-08  Bruno Haible  <bruno@clisp.org>
17206
17207         Tests for module 'idpriv-droptemp'.
17208         * modules/idpriv-droptemp-tests: New file.
17209         * tests/test-idpriv-droptemp.sh: New file.
17210         * tests/test-idpriv-droptemp.su.sh: New file.
17211         * tests/test-idpriv-droptemp.c: New file.
17212
17213         New module 'idpriv-droptemp'.
17214         * lib/idpriv-droptemp.c: New file.
17215         * modules/idpriv-droptemp: New file.
17216
17217 2009-06-08  Bruno Haible  <bruno@clisp.org>
17218
17219         Tests for module 'idpriv-drop'.
17220         * modules/idpriv-drop-tests: New file.
17221         * tests/test-idpriv-drop.sh: New file.
17222         * tests/test-idpriv-drop.su.sh: New file.
17223         * tests/test-idpriv-drop.c: New file.
17224
17225         New module 'idpriv-drop'.
17226         * lib/idpriv.h: New file.
17227         * lib-idpriv-drop.c: New file.
17228         * m4/idpriv.m4: New file.
17229         * modules/idpriv-drop: New file.
17230
17231 2009-06-08  Bruno Haible  <bruno@clisp.org>
17232
17233         * modules/unistdio/u8-vasnprintf (Depends-on): Add memchr.
17234         * modules/unistdio/u8-u8-vasnprintf (Depends-on): Likewise.
17235         * modules/unistdio/u16-vasnprintf (Depends-on): Likewise.
17236         * modules/unistdio/u16-u16-vasnprintf (Depends-on): Likewise.
17237         * modules/unistdio/u32-vasnprintf (Depends-on): Likewise.
17238         * modules/unistdio/u32-u32-vasnprintf (Depends-on): Likewise.
17239         * modules/unistdio/ulc-vasnprintf (Depends-on): Likewise.
17240
17241 2009-06-08  Eric Blake  <ebb9@byu.net>
17242
17243         test-strstr: use memory fence, when possible
17244         * tests/test-strstr.c (main): Use memory fence, in order to be
17245         more likely to trigger Debian bug 521737.
17246         * modules/strstr-tests (Files): Pull in additional files.
17247
17248         memchr: no longer obsolete, for wider field testing
17249         * modules/memchr (Status, Notice): Delete, this module is no
17250         longer obsolete.
17251         * modules/vasnprintf (Depends-on): Add memchr.
17252
17253 2009-06-07  Jim Meyering  <meyering@redhat.com>
17254
17255         hash: declare some functions with the warn_unused_result attribute
17256         * lib/hash.h (__attribute__, ATTRIBUTE_WUR): Define.
17257
17258 2009-06-07  Bruno Haible  <bruno@clisp.org>
17259
17260         * tests/test-alignof.c: Don't test int64_t if it does not exist.
17261         Reported by Eric Blake.
17262
17263 2009-06-06  Eric Blake  <ebb9@byu.net>
17264
17265         test-alignof: fix typo with long double
17266         * tests/test-alignof.c (CHECK): Use longdouble typedef to avoid
17267         compiler error.
17268
17269 2009-06-06  Neil Jerram  <neil@ossau.uklinux.net>  (tiny change)
17270
17271         Escape non-texinfo { and }s.
17272         * doc/ld-output-def.texi (Visual Studio Compatibility): Fix
17273         markup error.
17274
17275 2009-06-04  Jim Meyering  <meyering@redhat.com>
17276
17277         gitlog-to-changelog: don't infloop on an empty commit log
17278         * build-aux/gitlog-to-changelog: Warn about an empty log message.
17279         Reported by Boris Petersen <transacid@centerim.org>.
17280
17281 2009-06-03  Mike Frysinger  <vapier@gentoo.org>
17282
17283         version-etc: extend for packagers
17284         Add three new configure options, intended for packagers:
17285           --with-packager="packager name"
17286           --with-packager-version="packager-specific version"
17287           --with-packager-bug-reports="packager bug reporting"
17288         An example with coreutils:
17289           $ ./configure \
17290             --with-packager=Gentoo \
17291             --with-packager-bug-report=http://bugs.gentoo.org/ \
17292             --with-packager-version="patchset 1.6"
17293           $ ./src/ls --version | head -n2
17294           ls (GNU coreutils) 7.1-dirty
17295           Packaged by Gentoo (patchset 1.6)
17296         Note that the bug reporting info via --help doesn't show up because
17297         coreutils uses its own custom emit_bug_reporting_address() implementation
17298         in src/system.h.  If it didn't, it'd look like:
17299           $ ./src/ls --help | tail -n4
17300           Report bugs to <bug-coreutils@gnu.org>.
17301           Report Gentoo bugs to <http://bugs.gentoo.org/>.
17302           GNU coreutils home page: <http://www.gnu.org/software/coreutils/>.
17303           General help using GNU software: <http://www.gnu.org/gethelp/>.
17304         * lib/version-etc.c: Print new information, if provided.
17305         * m4/version-etc.m4: New file.
17306         * modules/version-etc (Files): Add m4/version-etc.m4.
17307         (configure.ac): Add gl_VERSION_ETC.
17308
17309 2009-05-31  Bruno Haible  <bruno@clisp.org>
17310
17311         * tests/test-alignof.c: Include <stdint.h>. Check also 'long double'
17312         and 'int64_t'.
17313         * modules/alignof-tests (Dependencies): Add stdint.
17314         Reported by Eric Blake.
17315
17316 2009-05-31  Bruno Haible  <bruno@clisp.org>
17317
17318         * lib/alignof.h (alignof_slot, alignof_type, alignof): Document
17319         restriction due to compiler bugs.
17320         Reported by Eric Blake.
17321
17322 2009-05-31  Simon Josefsson  <simon@josefsson.org>
17323             Bruno Haible  <bruno@clisp.org>
17324
17325         Fix test-alignof failure.
17326         * lib/alignof.h (alignof_slot): New macro.
17327         (alignof_type): New macro, with the same semantics as the previous
17328         'alignof'.
17329         (alignof): Alias to alignof_slot.
17330         * tests/test-alignof.c (CHECK): Check alignof_slot, not alignof. Also
17331         check that the results are usable as constant expressions.
17332
17333 2009-05-31  Bruno Haible  <bruno@clisp.org>
17334
17335         * tests/zerosize-ptr.h (zerosize_ptr): Specify more details.
17336         * tests/test-memchr.c (main): Check that memchr does not read past the
17337         first occurrence of the byte.
17338         * tests/test-strstr.c (main): Update comment.
17339         Suggested by Eric Blake.
17340
17341 2009-05-30  Bruno Haible  <bruno@clisp.org>
17342
17343         * doc/ld-output-def.texi (Visual Studio Compatibility): Explain in more
17344         detail how to use dumpbin.
17345         Reported by David Byron <dbyron@dbyron.com>.
17346
17347 2009-06-02  Simon Josefsson  <simon@josefsson.org>
17348
17349         * tests/test-parse-duration.sh: Don't use non-portable 'read -u3'.
17350
17351 2009-06-02  Simon Josefsson  <simon@josefsson.org>
17352
17353         * m4/manywarnings.m4: Add GCC 4.4 warnings.
17354
17355 2009-05-28  Bruno Haible  <bruno@clisp.org>
17356
17357         * gnulib-tool (func_import): Don't do HAVE_CONFIG_H replacements on
17358         build-aux/ files.
17359
17360 2009-05-28  Simon Josefsson  <simon@josefsson.org>
17361
17362         * gnulib-tool (func_import): Transform license on build-aux/ files too.
17363
17364 2009-05-27  Simon Josefsson  <simon@josefsson.org>
17365
17366         * gnulib-tool (sed_transform_main_lib_file)
17367         (sed_transform_testsrelated_lib_file): : Don't use non-POSIX
17368         regexps.
17369
17370 2009-05-26  Simon Josefsson  <simon@josefsson.org>
17371
17372         * tests/test-strstr.c: Add another self-test.
17373         * tests/test-strstr.c: Rewrite to use malloc/strcpy instead of
17374         strdup.  Suggested by Eric Blake  <ebb9@byu.net>.
17375
17376 2009-05-23  Bruno Haible  <bruno@clisp.org>
17377
17378         * doc/havelib.texi (AC_LIB_HAVE_LINKFLAGS): Update for 2009-04-26
17379         change.
17380
17381 2009-05-21  Bruno Haible  <bruno@clisp.org>
17382
17383         Simplify use of mode_t varargs.
17384         * lib/open.c (open): Use PROMOTED_MODE_T instead of a conditional that
17385         uses 'mode_t' or 'int'.
17386         * lib/openat.c (openat): Likewise.
17387         * lib/open-safer.c (open_safer): Likewise.
17388         * m4/mode_t.m4: New file.
17389         * m4/open.m4 (gl_PREREQ_OPEN): Require gl_PROMOTED_TYPE_MODE_T.
17390         * m4/openat.m4 (gl_PREREQ_OPENAT): Likewise.
17391         * m4/fcntl-safer.m4 (gl_FCNTL_SAFER): Likewise.
17392         * modules/open (Files): Add m4/mode_t.m4.
17393         * modules/openat (Files): Likewise.
17394         * modules/fcntl-safer (Files): Likewise.
17395         Suggested by Eric Blake.
17396
17397 2009-05-21  Pádraig Brady  <P@draigbrady.com>
17398
17399         * doc/glibc-functions/fallocate.texi: New file.
17400         * doc/gnulib.texi: Include it.
17401
17402 2009-05-21  Eric Blake  <ebb9@byu.net>
17403             Bruno Haible  <bruno@clisp.org>
17404
17405         * m4/include_next.m4 (gl_CHECK_NEXT_HEADERS): Remove redundant m4_quote
17406         invocations.
17407         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Likewise.
17408
17409 2009-05-21  Eric Blake  <ebb9@byu.net>
17410             Bruno Haible  <bruno@clisp.org>
17411
17412         Second attempt to work around an AIX 5.3, 6.1 compiler bug with
17413         include_next. Fix of 2008-11-20 commit.
17414         * m4/include_next.m4 (gl_CHECK_NEXT_HEADERS): Also set
17415         NEXT_AS_FIRST_DIRECTIVE_FOO_H.
17416         * lib/math.in.h: Use NEXT_AS_FIRST_DIRECTIVE_MATH_H instead of
17417         NEXT_MATH_H.
17418         * modules/math (Makefile.am): Substitute NEXT_AS_FIRST_DIRECTIVE_MATH_H
17419         instead of NEXT_MATH_H.
17420
17421 2009-05-21  Bruno Haible  <bruno@clisp.org>
17422
17423         Avoid redefinition warnings for SIZE_MAX.
17424         * m4/size_max.m4 (gl_SIZE_MAX): Avoid redefining SIZE_MAX in config.h.
17425         Reported by Simon Josefsson.
17426
17427 2009-05-21  Bruno Haible  <bruno@clisp.org>
17428
17429         * m4/size_max.m4 (gl_SIZE_MAX): Use AC_CACHE_CHECK instead of
17430         AC_CACHE_VAL.
17431
17432 2009-05-20  Bruno Haible  <bruno@clisp.org>
17433
17434         Make zeroptr.h work on mingw.
17435         * tests/zerosize-ptr.h: Test for the presence of <sys/mman.h> and
17436         mprotect.
17437         * modules/memchr-tests (configure.ac): Also test for sys/mman.h.
17438         * modules/memchr2-tests (configure.ac): Likewise.
17439         * modules/memcmp-tests (configure.ac): Likewise.
17440         * modules/memmem-tests (configure.ac): Likewise.
17441         * modules/memrchr-tests (configure.ac): Likewise.
17442         Reported by Simon Josefsson.
17443
17444 2009-05-20  Simon Josefsson  <simon@josefsson.org>
17445
17446         * tests/test-glob.c: Include string.h for strcmp prototype.
17447
17448 2009-05-20  Simon Josefsson  <simon@josefsson.org>
17449
17450         * modules/getdelim (Depends-on): Add explicit stdint, although it
17451         was implicitly already pulled in via realloc-posix.
17452         * lib/getdelim.c: Get SIZE_MAX from stdint.h.
17453
17454 2009-05-20  Simon Josefsson  <simon@josefsson.org>
17455
17456         MinGW and IRIX does not have sa_family_t type.  Reported by "Tom
17457         G. Christensen" <tgc@jupiterrise.com>.
17458         * m4/sys_socket_h.m4: Check for sa_family_t.
17459         * lib/sys_socket.in.h: Typedef sa_family_t when needed.
17460         * modules/sys_socket: Substitute HAVE_SA_FAMILY_T.
17461         * tests/test-sys_socket.c: Check that sa_family_t works.
17462
17463 2009-05-18  Eric Blake  <ebb9@byu.net>
17464
17465         maint.mk: allow gnulib_dir in VPATH build
17466         * top/maint.mk (gnulib_dir): Make relative to $(srcdir).
17467
17468 2009-05-15  Jim Meyering  <meyering@redhat.com>
17469
17470         maint.mk: Give gnulib_dir a default definition.
17471         * top/maint.mk (gnulib_dir): Define to 'gnulib', by default.
17472         Thus, most packages no longer need to specify this variable in cfg.mk
17473
17474 2009-05-14  Tom Prince  <tom.prince@ualberta.net>  (tiny change)
17475
17476         rename.m4: fix typos that would make non-mingw cross-configure fail
17477         * m4/rename.m4 (gl_FUNC_RENAME): Fix typos.
17478
17479 2009-05-13  Eric Blake  <ebb9@byu.net>
17480
17481         mmap-anon: avoid out-of-order autoconf expansion
17482         * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Use correct
17483         SYSTEM_EXTENSIONS macro to silence warnings from autoconf 2.63b.
17484         * modules/memchr-tests (Depends-on): Add extensions.
17485         * modules/memchr2-tests (Depends-on): Add extensions.
17486         * modules/memcmp-tests (Depends-on): Add extensions.
17487         * modules/memmem-tests (Depends-on): Add extensions.
17488         * modules/memrchr-tests (Depends-on): Add extensions.
17489
17490 2009-05-13  Bruno Haible  <bruno@clisp.org>
17491
17492         Make some tests ISO C 99 compliant.
17493         * tests/zerosize-ptr.h: New file.
17494         * tests/test-memchr.c: Include zerosize-ptr.h.
17495         (main): Use a zero-size object pointer instead of NULL.
17496         * tests/test-memchr2.c: Include zerosize-ptr.h.
17497         (main): Use a zero-size object pointer instead of NULL.
17498         * tests/test-memcmp.c: Include zerosize-ptr.h.
17499         (main): Use a zero-size object pointer instead of NULL.
17500         * tests/test-memmem.c: Include zerosize-ptr.h.
17501         (main): Use a zero-size object pointer instead of NULL.
17502         * tests/test-memrchr.c: Include zerosize-ptr.h.
17503         (main): Use a zero-size object pointer instead of NULL.
17504         * modules/memchr-tests (Files): Add tests/zerosize-ptr.h,
17505         m4/mmap-anon.m4.
17506         (Depends-on): Add getpagesize.
17507         (configure.ac): Invoke gl_FUNC_MMAP_ANON. Check for mprotect.
17508         * modules/memchr2-tests (Files): Add tests/zerosize-ptr.h,
17509         m4/mmap-anon.m4.
17510         (Depends-on): Add getpagesize.
17511         (configure.ac): Invoke gl_FUNC_MMAP_ANON. Check for mprotect.
17512         * modules/memcmp-tests (Files): Add tests/zerosize-ptr.h,
17513         m4/mmap-anon.m4.
17514         (Depends-on): Add getpagesize.
17515         (configure.ac): Invoke gl_FUNC_MMAP_ANON. Check for mprotect.
17516         * modules/memmem-tests (Files): Add tests/zerosize-ptr.h,
17517         m4/mmap-anon.m4.
17518         (Depends-on): Add getpagesize.
17519         (configure.ac): Invoke gl_FUNC_MMAP_ANON. Check for mprotect.
17520         * modules/memrchr-tests (Files): Add tests/zerosize-ptr.h,
17521         m4/mmap-anon.m4.
17522         (Depends-on): Add getpagesize.
17523         (configure.ac): Invoke gl_FUNC_MMAP_ANON. Check for mprotect.
17524
17525 2009-05-12  Bruno Haible  <bruno@clisp.org>
17526
17527         Tests for module 'alignof'.
17528         * modules/alignof-tests: New file.
17529         * tests/test-alignof.c: New file.
17530
17531 2009-05-12  Bruno Haible  <bruno@clisp.org>
17532
17533         Fix alignof macro.
17534         * lib/alignof.h (alignof): Remove special cases for AIX and HP-UX
17535         vendor compilers that are always correct.
17536
17537 2009-05-12  Bruno Haible  <bruno@clisp.org>
17538
17539         Make the MAP_ANONYMOUS detection work on HP-UX 11.
17540         * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Check whether mmap exists, but
17541         not whether its fully works.
17542
17543 2009-05-12  Bruno Haible  <bruno@clisp.org>
17544
17545         * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Add comments.
17546
17547 2009-05-12  Jim Meyering  <meyering@redhat.com>
17548
17549         * top/maint.mk: Adjust backslash alignment.
17550
17551 2009-05-11  Simon Josefsson  <simon@josefsson.org>
17552
17553         * top/maint.mk: Make $(srcdir)/build-aux configurable.
17554
17555 2009-05-11  Eric Blake  <ebb9@byu.net>
17556
17557         argp: avoid undefined behavior
17558         * lib/argp-fmtstream.c (weak_alias): Pass correct types to ctype
17559         macros.
17560
17561 2009-05-08  Simon Josefsson  <simon@josefsson.org>
17562
17563         * tests/test-vc-list-files-git.sh: Do git config of user.email and
17564         user.name to prevent git commit from complaining.
17565
17566 2009-05-10  Bruno Haible  <bruno@clisp.org>
17567
17568         * gnulib-tool (func_import, func_create_testdir, copy-file): Change
17569         sed_rewrite_old_files, sed_rewrite_new_files, sed_rewrite_files so that
17570         it rewrites every file name only once.
17571         Reported by Simon Josefsson. Helped by Ralf Wildenhues.
17572
17573 2009-05-08  Bruno Haible  <bruno@clisp.org>
17574
17575         * lib/sys_socket.in.h (_SS_PADSIZE): Use a conditional expression
17576         instead of 'max'.
17577
17578 2009-05-08  Simon Josefsson  <simon@josefsson.org>
17579
17580         * m4/sys_socket_h.m4: Test for ws2tcpip.h earlier, needed for
17581         sockaddr_storage test.
17582
17583 2009-05-07  Simon Josefsson  <simon@josefsson.org>
17584
17585         * modules/sys_socket (Makefile.am): Substitute
17586         HAVE_STRUCT_SOCKADDR_STORAGE.  Depend on alignof.
17587         * m4/sys_socket_h.m4: Check for sockaddr_storage.
17588         * lib/sys_socket.in.h (sockaddr_storage): Define when needed.
17589         * tests/test-sys_socket.c: Check sockaddr_storage.
17590
17591 2009-05-08  Bruno Haible  <bruno@clisp.org>
17592
17593         New module 'alignof'.
17594         * lib/alignof.h: New file.
17595         * modules/alignof: New file.
17596
17597 2009-05-04  David Bartley  <dtbartle@csclub.uwaterloo.ca>
17598             Bruno Haible  <bruno@clisp.org>
17599
17600         Fix test-file-has-acl on FreeBSD.
17601         * tests/test-file-has-acl.sh: Also test a directory. On FreeBSD, the
17602         mask is implicitly added.
17603         * tests/test-file-has-acl.c: Include <signal.h>.
17604         (main): Terminate the test after 5 seconds.
17605         * modules/acl-tests (configure.ac): Check for alarm function.
17606
17607 2009-05-04  Bruno Haible  <bruno@clisp.org>
17608
17609         Exploit new semantics of AC_DEFUN_ONCE available since 2009-01-26.
17610         * m4/errno_h.m4 (gl_HEADER_ERRNO_H): Remove outdated comment.
17611         * modules/errno (configure.ac): Drop AC_REQUIRE.
17612         * m4/multiarch.m4 (gl_MULTIARCH): Remove outdated comment.
17613         * modules/multiarch (configure.ac): Drop AC_REQUIRE.
17614
17615 2009-05-04  Simon Josefsson  <simon@josefsson.org>
17616
17617         * modules/glob-tests: New module.
17618         * tests/test-glob.c: Add.
17619
17620 2009-05-04  Simon Josefsson  <simon@josefsson.org>
17621
17622         * modules/fnmatch-tests: New module.
17623         * tests/test-fnmatch.c: Add.
17624
17625 2009-05-04  Eric Blake  <ebb9@byu.net>
17626
17627         maint: make the new no-submodule-changes rule VPATH-safe
17628         * top/maint.mk (no-submodule-changes): Don't assume a srcdir build.
17629
17630 2009-05-04  David Bartley  <dtbartle@csclub.uwaterloo.ca>
17631             Bruno Haible  <bruno@clisp.org>
17632
17633         acl: Fix infinite loop on FreeBSD.
17634         * lib/acl_entries.c (acl_entries) [Linux, FreeBSD]: Fix interpretation
17635         of return value from acl_get_entry.
17636         * lib/file-has-acl.c (acl_access_nontrivial) [Linux, FreeBSD]:
17637         Likewise.
17638
17639 2009-05-03  Bruno Haible  <bruno@clisp.org>
17640
17641         * lib/acl-internal.h (acl_entries): Clarify return value.
17642         * lib/acl_entries.c (acl_entries): Likewise.
17643
17644 2009-05-04  David Bartley  <dtbartle@csclub.uwaterloo.ca>
17645
17646         Bug fix in acl module.
17647         * lib/set-mode-acl.c: Use correct struct with ACL_SETACL.
17648
17649 2009-05-03  Bruno Haible  <bruno@clisp.org>
17650
17651         Create gperf-generated file in the source dir, not in the build dir.
17652         * modules/iconv_open (iconv_open-aix.h, iconv_open-hpux.h,
17653         iconv_open-irix.h, iconv_open-osf.h): Create file in the source tree.
17654         * modules/unicase/locale-language (unicase/locale-languages.h):
17655         Likewise.
17656         * modules/unicase/special-casing (unicase/special-casing-table.h):
17657         Likewise.
17658         * modules/unictype/property-byname (unictype/pr_byname.h): Likewise.
17659         * modules/unictype/scripts (unictype/scripts_byname.h): Likewise.
17660         * modules/uninorm/composition (uninorm/composition-table.h): Likewise.
17661         Reported by Ralf Wildenhues.
17662
17663 2009-05-03  Bruno Haible  <bruno@clisp.org>
17664
17665         * modules/fnmatch (Description, configure.ac): Taken from
17666         fnmatch-posix.
17667         * modules/fnmatch-posix: Turn into a symbolic reference to the
17668         'fnmatch' module, and deprecate.
17669         * doc/posix-functions/fnmatch.texi: Mention the fnmatch module.
17670
17671 2009-05-03  Bruno Haible  <bruno@clisp.org>
17672
17673         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF,
17674         gl_PREREQ_VASNPRINTF_LONG_DOUBLE): Define through AC_DEFUN_ONCE.
17675         Reported by Ralf Wildenhues.
17676
17677 2009-05-04  Simon Josefsson  <simon@josefsson.org>
17678
17679         * m4/fnmatch.m4: Fix fnmatch re-define.
17680
17681 2009-04-27  David Bartley  <dtbartle@csclub.uwaterloo.ca>
17682
17683         priv-set: new module and tests; adapt write-any-file
17684         * lib/priv-set.c: New file.
17685         * lib/priv-set.h: New file.
17686         * lib/unlinkdir.c: Make cannot_unlink_dir thread-safe.
17687         * lib/write-any-file.c: Simplify by using priv-set module.
17688         * m4/priv-set.m4: New file.
17689         * modules/priv-set: New file.
17690         * modules/unlinkdir: Add dependency on priv-set module.
17691         * modules/write-any-file: Likewise.
17692
17693         Tests for module 'priv-set'.
17694         * modules/priv-set-tests: New file.
17695         * tests/test-priv-set.c: New file.
17696
17697 2009-05-03  Jim Meyering  <meyering@redhat.com>
17698             Bruno Haible  <bruno@clisp.org>
17699
17700         * lib/propername.c (proper_name_utf8): Ignore no-op translations;
17701         use the converted UTF-8 variant of the name instead.
17702
17703 2009-05-03  Jim Meyering  <meyering@redhat.com>
17704
17705         tests: tighten some getdate tests
17706         * tests/test-getdate.c (main): Tighten tests: require equality,
17707         not just greater than.  Set TZ envvar to UTC0.
17708
17709 2009-05-03  Giuseppe Scrivano  <gscrivano@gnu.org>
17710
17711         getdate: correctly interpret "next monday" when run on a Monday
17712         * lib/getdate.y (get_date): Correct the calculation of tm_mday so
17713         that e.g., "next tues" (when run on a tuesday) results in a date
17714         that is one week in the future, and not today's date.
17715         I.e., add a week when the wday is the same as the current one.
17716         Reported by Tom Broadhurst in http://savannah.gnu.org/bugs/?25406,
17717         and earlier by Martin Bernreuther and Jan Minář.
17718         * tests/test-getdate.c (main): Check that "next DAY" is always in
17719         the future and that "last DAY" is always in the past.
17720
17721 2009-05-02  Jim Meyering  <meyering@redhat.com>
17722
17723         build: ensure that a release build fails when a submodule is unclean
17724         * top/maint.mk (no-submodule-changes): New rule.
17725         (alpha beta major): Depend on it.
17726
17727 2009-05-02  Bruno Haible  <bruno@clisp.org>
17728
17729         Remove incompatibility between modules fnmatch-posix and fnmatch-gnu.
17730         * m4/fnmatch.m4 (gl_FUNC_FNMATCH_POSIX, gl_FUNC_FNMATCH_GNU): Use a
17731         shell variable gl_fnmatch_required to detect which variant is
17732         requested.
17733         (_AC_FUNC_FNMATCH_IF, _AC_LIBOBJ_FNMATCH): Remove macros. Inlined into
17734         gl_FUNC_FNMATCH_POSIX.
17735         * gnulib-tool (func_create_testdir, func_create_megatestdir): Don't
17736         exclude fnmatch-posix.
17737
17738 2009-05-02  Bruno Haible  <bruno@clisp.org>
17739
17740         Relicense mbsrtowcs and strnlen1 under LGPLv2+.
17741         * modules/mbsrtowcs (License): Change to LGPLv2+.
17742         * modules/strnlen1 (License): Likewise.
17743         Reported by Simon Josefsson.
17744
17745 2009-05-02  Bruno Haible  <bruno@clisp.org>
17746
17747         * m4/fnmatch.m4 (_AC_FUNC_FNMATCH_IF): Say "guessing no" instead of
17748         "cross".
17749         (gl_FUNC_FNMATCH_POSIX, gl_FUNC_FNMATCH_GNU): Update. Don't assume that
17750         gnulib-tool was called with option --source-base=lib.
17751
17752 2009-05-02  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
17753
17754         Use automake *-local hooks without commands, for extensibility.
17755         * modules/localcharset (Makefile.am): Rename install-exec-local
17756         rule to install-exec-localcharset, and make it a prerequisite of
17757         install-exec-local.  Likewise, rename the uninstall-local rule to
17758         uninstall-localcharset, and make it a prerequisite of the former.
17759
17760 2009-05-01  Bruno Haible  <bruno@clisp.org>
17761
17762         * lib/wchar.in.h (wcsnrtombs): Define if REPLACE_WCSNRTOMBS is 1.
17763         * m4/wcsnrtombs.m4 (gl_FUNC_WCSRTOMBS): Invoke gl_MBSTATE_T_BROKEN, and
17764         set REPLACE_WCSNRTOMBS if mbstate_t must be replaced.
17765         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_WCSNRTOMBS.
17766         * modules/wchar (Makefile.am): Substitute REPLACE_WCSNRTOMBS.
17767         * modules/wcsnrtombs (Files): Add m4/mbrtowc.m4, m4/locale-ja.m4,
17768         m4/locale-zh.m4, m4/codeset.m4.
17769
17770         * m4/wcsrtombs.m4 (gl_FUNC_WCSNRTOMBS): Invoke gl_MBSTATE_T_BROKEN, and
17771         set REPLACE_WCSRTOMBS if mbstate_t must be replaced.
17772         * modules/wcsrtombs (Files): Add m4/mbrtowc.m4, m4/locale-ja.m4,
17773         m4/locale-zh.m4.
17774
17775         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Invoke gl_MBSTATE_T_BROKEN, and set
17776         REPLACE_WCRTOMB if mbstate_t must be replaced.
17777         * modules/wcrtomb (Files): Add m4/mbrtowc.m4.
17778         Reported by Jens Rehsack <rehsack@googlemail.com> via Eric Blake.
17779
17780 2009-05-01  Bruno Haible  <bruno@clisp.org>
17781
17782         Avoid compiler warnings when redefining macros defined by <libintl.h>.
17783         * lib/gettext.h [!ENABLE_NLS] (gettext, dgettext, dcgettext, ngettext,
17784         dngettext, dcngettext, textdomain, bindtextdomain,
17785         bind_textdomain_codeset): Undefine before redefining.
17786
17787 2009-04-30  Bruno Haible  <bruno@clisp.org>
17788
17789         Fix bug introduced on 2009-04-25.
17790         * lib/math.in.h (gl_signbitf_OPTIMIZED_MACRO,
17791         gl_signbitd_OPTIMIZED_MACRO, gl_signbitl_OPTIMIZED_MACRO): New macros.
17792         * lib/signbitf.c (gl_signbitd): Undefine if gl_signbitf_OPTIMIZED_MACRO
17793         is defined.
17794         * lib/signbitd.c (gl_signbitd): Undefine if gl_signbitd_OPTIMIZED_MACRO
17795         is defined.
17796         * lib/signbitl.c (gl_signbitd): Undefine if gl_signbitl_OPTIMIZED_MACRO
17797         is defined.
17798         Reported by Elbert_Pol <elbert.pol@gmail.com>.
17799
17800 2009-04-28  Bruno Haible  <bruno@clisp.org>
17801
17802         Comment tweaks.
17803         * lib/unistr.h (u*_cmp2): Clarify what memcmp2 is.
17804         * lib/uninorm.h (u*_normxfrm): Fix description of return value.
17805         * lib/unicase.h (u*_casexfrm): Likewise.
17806         Reported by Paolo Bonzini.
17807
17808 2009-04-28  Bruno Haible  <bruno@clisp.org>
17809
17810         Fix a compilation error.
17811         * lib/mbsrtowcs-state.c (_gl_mbsrtowcs_state): Fix initializer.
17812         * lib/wcsrtombs-state.c (_gl_wcsrtombs_state): Likewise.
17813         Reported by Jim Meyering.
17814
17815 2009-04-27  Bruno Haible  <bruno@clisp.org>
17816
17817         New module 'libunistring'.
17818         * modules/libunistring: New file.
17819         * m4/libunistring.m4: New file.
17820         * MODULES.html.sh (Unicode string functions): Add it.
17821
17822 2009-04-27  Eric Blake  <ebb9@byu.net>
17823
17824         maint.mk: allow package-specific header to provide <config.h>
17825         * top/maint.mk (sc_require_config_h): New variable.
17826         (sc_require_config_h, sc_require_config_h_first): Use it.
17827
17828 2009-04-27  Simon Josefsson  <simon@josefsson.org>
17829
17830         * top/maint.mk (sc_avoid_if_before_free): Except
17831         useless-if-before-free script.
17832
17833 2009-04-27  Eric Blake  <ebb9@byu.net>
17834
17835         maintainer-makefile: depend on all required helper scripts
17836         * modules/maintainer-makefile (Depends-on): Add vc-list-files and
17837         useless-if-before-free.
17838         * top/maint.mk (VC_LIST, sc_avoid_if_before_free): Use local
17839         version, rather than assuming gnulib checkout is available.
17840         Reported by Simen Josefsson.
17841
17842 2009-04-26  Bruno Haible  <bruno@clisp.org>
17843
17844         Make the lib vs. lib64 recognition work on openSUSE 11 with "gcc -m32".
17845         * m4/lib-prefix.m4 (AC_LIB_PREPARE_MULTILIB): Ignore paths that end in
17846         "../" or "..".
17847
17848 2009-04-26  Bruno Haible  <bruno@clisp.org>
17849
17850         * m4/lib-link.m4 (AC_LIB_HAVE_LINKFLAGS): Accept a fifth argument.
17851         * m4/libsigsegv.m4 (gl_LIBSIGSEGV): Simplify by using
17852         AC_LIB_HAVE_LINKFLAGS.
17853
17854 2009-04-26  Bruno Haible  <bruno@clisp.org>
17855
17856         Simplify calling convention of u*_conv_from_encoding.
17857         * lib/uniconv.h (u8_conv_from_encoding, u16_conv_from_encoding,
17858         u32_conv_from_encoding): Expect a resultbuf argument and return the
17859         result directly as a pointer.
17860         * lib/uniconv/u8-conv-from-enc.c (u8_conv_from_encoding): Likewise.
17861         * lib/uniconv/u-conv-from-enc.h (FUNC): Likewise.
17862         * lib/uniconv/u-strconv-from-enc.h (FUNC): Update.
17863         * lib/unicase/ulc-casecmp.c (ulc_u8_casefold): Update.
17864         * lib/unicase/ulc-casexfrm.c (ulc_casexfrm): Update.
17865         * lib/unilbrk/ulc-possible-linebreaks.c (ulc_possible_linebreaks):
17866         Update.
17867         * lib/unilbrk/ulc-width-linebreaks.c (ulc_width_linebreaks): Update.
17868         * lib/uniwbrk/ulc-wordbreaks.c (ulc_wordbreaks): Update.
17869         * lib/vasnprintf.c (VASNPRINTF): Update.
17870         * tests/uniconv/test-u8-conv-from-enc.c (main): Update.
17871         * tests/uniconv/test-u16-conv-from-enc.c (main): Update.
17872         * tests/uniconv/test-u32-conv-from-enc.c (main): Update.
17873         * NEWS: Mention the change.
17874
17875 2009-04-26  Bruno Haible  <bruno@clisp.org>
17876
17877         Simplify calling convention of u*_conv_to_encoding.
17878         * lib/uniconv.h (u8_conv_to_encoding, u16_conv_to_encoding,
17879         u32_conv_to_encoding): Expect a resultbuf argument and return the
17880         result directly as a pointer.
17881         * lib/uniconv/u8-conv-to-enc.c (u8_conv_to_encoding): Likewise.
17882         * lib/uniconv/u-conv-to-enc.h (FUNC): Likewise. Preserve errno while
17883         freeing scaled_offsets if mem_iconveha failed.
17884         * lib/unicase/u-casexfrm.h (FUNC): Update.
17885         * lib/uninorm/u-normxfrm.h (FUNC): Update.
17886         * lib/vasnprintf.c (VASNPRINTF): Update.
17887         * tests/uniconv/test-u8-conv-to-enc.c (main): Update.
17888         * tests/uniconv/test-u16-conv-to-enc.c (main): Update.
17889         * tests/uniconv/test-u32-conv-to-enc.c (main): Update.
17890         * NEWS: Mention the change.
17891
17892 2009-04-26  Bruno Haible  <bruno@clisp.org>
17893
17894         Avoid test failures on AIX and OSF/1.
17895         * lib/uniconv/u8-conv-from-enc.c (u8_conv_from_encoding): Avoid calling
17896         malloc(0).
17897         * lib/uniconv/u8-conv-to-enc.c (u8_conv_to_encoding): Likewise.
17898         * lib/unilbrk/ulc-possible-linebreaks.c (ulc_possible_linebreaks):
17899         Likewise.
17900         * lib/unilbrk/ulc-width-linebreaks.c (ulc_width_linebreaks): Likewise.
17901         * lib/uniwbrk/ulc-wordbreaks.c (ulc_wordbreaks): Likewise.
17902         * lib/uniconv/u-conv-to-enc.h (FUNC): Likewise. Fix memory leak.
17903         * lib/unistr/u-cpy-alloc.h (FUNC): Call malloc(1) instead of malloc(0).
17904         * doc/posix-functions/malloc.texi: Document the portability problem
17905         related to malloc(0).
17906
17907 2009-04-26  Bruno Haible  <bruno@clisp.org>
17908
17909         * modules/unistr/u8-cpy-alloc (Depends-on): Add malloc-posix.
17910         * modules/unistr/u16-cpy-alloc (Depends-on): Likewise.
17911         * modules/unistr/u32-cpy-alloc (Depends-on): Likewise.
17912
17913 2009-04-25  Bruno Haible  <bruno@clisp.org>
17914
17915         Avoid link error when creating a namespace clean library.
17916         * lib/math.in.h (gl_signbitf, gl_signbitd, gl_signbitl): Don't define
17917         as macro with arguments if already defined as an alias.
17918         * lib/signbitf.c (gl_signbitf): Don't undefine.
17919         * lib/signbitd.c (gl_signbitd): Don't undefine.
17920         * lib/signbitl.c (gl_signbitl): Don't undefine.
17921
17922 2009-04-25  Jim Meyering  <meyering@redhat.com>
17923
17924         vc-list-files: fix another quoting bug
17925         * build-aux/vc-list-files: Avoid sed backslash expansion
17926         of pathological directory names.
17927
17928 2009-04-25  Eric Blake  <ebb9@byu.net>
17929
17930         vc-list-files: fix shell quoting error
17931         * build-aux/vc-list-files: Protect against $ in $dir.  Normalize
17932         timestamp.
17933
17934 2009-04-25  Jim Meyering  <meyering@redhat.com>
17935
17936         vc-list-files: restore lost functionality with subdir argument
17937         * build-aux/vc-list-files: When given a non-"." sub-directory
17938         argument, substitute the $dir/ prefix back onto each resulting name.
17939         Otherwise, coreutils' root_tests check would fail.
17940
17941 2009-04-24  Eric Blake  <ebb9@byu.net>
17942
17943         vc-list-files: ignore git symlinks
17944         * build-aux/vc-list-files (.git): Use ls-tree and a filter, rather
17945         than ls-files, to ignore git symlinks.
17946
17947         maint.mk: import improvements from m4
17948         * top/maint.mk (VC-tag): Use signing key from cfg.mk.
17949         (move_if_change): Delete unused macro.
17950         (news-date-check, vc-diff-check): Support VPATH builds.
17951         (announcement): Likewise.  Split --bootstrap-tools list...
17952         (boostrap-tools): ...into separate list, which can be overridden
17953         in cfg.mk.
17954         (sc_avoid_if_before_free): Point to $(gnulib_dir), rather than
17955         requiring dependency on useless-if-before-free module.
17956         (VC_LIST, VC_LIST_EXCEPT): Likewise for vc-list-files module.
17957         Support VPATH builds.
17958
17959 2009-04-24  Jim Meyering  <meyering@redhat.com>
17960
17961         maint.mk: remove coreutils-specific rules and variables
17962         * top/maint.mk (bin, taint-distcheck, coreutils-path-check, t): Remove.
17963         (fake_home, install-transform-check, my-instcheck, pfx, TMPDIR): Remove.
17964         (t_prefix, t_taint, tp, warn_cflags, write_loser, my-distcheck): Remove.
17965
17966         maint.mk: remove obsolete rule
17967         * top/maint.mk (rel-check): Remove rule.
17968         (WGET, WGETFLAGS): Remove now-unused variables.
17969
17970 2009-04-24  Simon Josefsson  <simon@josefsson.org>
17971
17972         * top/maint.mk (makefile-check): Renamed to sc_makefile_check for
17973         consistency.
17974
17975         * modules/vc-list-files-tests (TESTS_ENVIRONMENT): Use
17976         '$(PATH_SEPARATOR)' instead of ':'.
17977
17978 2009-04-24  Simon Josefsson  <simon@josefsson.org>
17979
17980         * lib/getopt1.c (main): Use 'const' for static array.
17981
17982 2009-04-24  Simon Josefsson  <simon@josefsson.org>
17983
17984         * top/maint.mk: Sync with coreutils.
17985         * NEWS: Explain incompatibilities.
17986
17987 2009-04-22  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
17988             Bruno Haible  <bruno@clisp.org>
17989
17990         Fix cross-compilation results.
17991         * m4/btowc.m4 (gl_FUNC_BTOWC): Use no-op statement, rather than empty
17992         statement, as third argument of AC_TRY_RUN.
17993         * m4/mbrtowc.m4 (gl_MBRTOWC_INCOMPLETE_STATE, gl_MBRTOWC_SANITYCHECK,
17994         gl_MBRTOWC_NULL_ARG, gl_MBRTOWC_RETVAL, gl_MBRTOWC_NUL_RETVAL):
17995         Likewise.
17996         * m4/mbsrtowcs.m4 (gl_MBSRTOWCS_WORKS): Likewise.
17997         * m4/wcsrtombs.m4 (gl_WCSRTOMBS_TERMINATION, gl_WCSRTOMBS_NULL):
17998         Likewise.
17999         * m4/wctob.m4 (gl_FUNC_WCTOB): Likewise.
18000         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Likewise. Update for AIX 4.3.
18001         * doc/posix-functions/wcrtomb.texi: Mention the bug on AIX 4.3.
18002
18003 2009-04-20  Bruno Haible  <bruno@clisp.org>
18004
18005         Avoid test failure on mingw.
18006         * tests/uniwidth/test-uc_width2.sh: Convert newlines in output.
18007
18008 2009-04-20  Bruno Haible  <bruno@clisp.org>
18009
18010         Avoid compilation error on mingw.
18011         * modules/localename-tests (Depends-on): Add locale.
18012
18013 2009-04-19  Bruno Haible  <bruno@clisp.org>
18014
18015         Support for building a shared library on Windows platforms.
18016         * tests/uninorm/test-nfc.c (n): Don't define if WOE32DLL.
18017         (main): Test the presence of UNINORM_NFC here.
18018         * tests/uninorm/test-nfd.c (n): Don't define if WOE32DLL.
18019         (main): Test the presence of UNINORM_NFD here.
18020         * tests/uninorm/test-nfkc.c (n): Don't define if WOE32DLL.
18021         (main): Test the presence of UNINORM_NFKC here.
18022         * tests/uninorm/test-nfkd.c (n): Don't define if WOE32DLL.
18023         (main): Test the presence of UNINORM_NFKD here.
18024
18025 2009-04-19  Bruno Haible  <bruno@clisp.org>
18026
18027         Avoid a compiler warning.
18028         * tests/uninorm/test-u32-normalize-big.c (read_normalization_test_file):
18029         Change type of variable 'sequence'.
18030
18031 2009-04-19  Bruno Haible  <bruno@clisp.org>
18032
18033         * modules/configmake (Makefile.am): When the contents of configmake.h
18034         does not change, arrange to preserve its modification time.
18035
18036 2009-04-17  Simon Josefsson  <simon@josefsson.org>
18037
18038         * top/maint.mk (PO_DOMAIN): New variable, allows overriding of
18039         gettext domain.
18040
18041 2009-04-16  Jim Meyering  <meyering@redhat.com>
18042
18043         useless-if-before-free: improve conversion code
18044         * build-aux/useless-if-before-free: Adjust code-in-comment to match
18045         "...!= 0" as well as "...!= NULL".  emacs has one of the former.
18046
18047 2009-04-14  Bruno Haible  <bruno@clisp.org>
18048
18049         * modules/fcntl (Depends-on): Add extensions.
18050         * m4/fcntl_h.m4 (gl_FCNTL_H): Add a comment.
18051
18052 2009-04-12  Ben Pfaff  <blp@gnu.org>
18053
18054         Make fcntl module detect O_NOATIME, O_NOFOLLOW on GNU/Linux.
18055         * m4/fcntl_h.m4 (gl_FCNTL_H): Require AC_USE_SYSTEM_EXTENSIONS.
18056
18057 2009-03-20  Ben Pfaff  <blp@gnu.org>
18058
18059         Make rename replace existing destinations on Windows.
18060         * m4/rename.m4: Add test for Mingw.
18061         * lib/rename.c: Add rename replacement that uses MoveFileEx with
18062         MOVEFILE_REPLACE_EXISTING to replace existing destination files.
18063         * doc/posix-functions/rename.texi: Document.
18064
18065 2009-04-10  Bruno Haible  <bruno@clisp.org>
18066
18067         New include file "iconveh.h".
18068         * lib/iconveh.h: New file, extracted from lib/striconveh.h.
18069         * lib/striconveh.h: Include it.
18070         (enum iconv_ilseq_handler): Remove definition.
18071         * lib/striconveha.h: Include <stddef.h> and iconveh.h instead of
18072         striconveh.h.
18073         * lib/striconveha.c: Include striconveh.h.
18074         * lib/uniconv.h: Include iconveh.h instead of striconveh.h.
18075         * modules/striconveh (Files): Add lib/iconveh.h.
18076         * modules/uniconv/base (Files): Add lib/iconveh.h. Remove
18077         lib/striconveh.h.
18078
18079 2009-04-10  Bruno Haible  <bruno@clisp.org>
18080
18081         * lib/uniconv.h: Update comment.
18082
18083 2009-04-10  Bruno Haible  <bruno@clisp.org>
18084
18085         * lib/unistr/u8-mbtouc-aux.c: Inside libunistring, define the function
18086         always.
18087         * lib/unistr/u8-mbtouc-unsafe-aux.c: Likewise.
18088         * lib/unistr/u16-mbtouc-aux.c: Likewise.
18089         * lib/unistr/u16-mbtouc-unsafe-aux.c: Likewise.
18090         * lib/unistr/u8-mbtouc.c: Inside libunistring, include
18091         "unistring-notinline.h", so that the function gets defined always.
18092         * lib/unistr/u8-mbtouc-unsafe.c: Likewise.
18093         * lib/unistr/u8-uctomb.c: Likewise.
18094         * lib/unistr/u16-mbtouc.c: Likewise.
18095         * lib/unistr/u16-mbtouc-unsafe.c: Likewise.
18096         * lib/unistr/u16-uctomb.c: Likewise.
18097         * lib/unistr/u32-mbtouc.c: Likewise.
18098         * lib/unistr/u32-mbtouc-unsafe.c: Likewise.
18099         * lib/unistr/u32-uctomb.c: Likewise.
18100
18101 2009-04-10  Bruno Haible  <bruno@clisp.org>
18102
18103         Mark 'utime' obsolete.
18104         * modules/utime (Status, Notice): New sections.
18105         Suggested by Jim Meyering.
18106
18107         Fix cross-compile guess for utime test.
18108         * m4/utime.m4 (AC_FUNC_UTIME_NULL): Add definition from newest unstable
18109         autoconf.
18110         * doc/posix-functions/utime.texi: Give more precisions.
18111         Reported by Jan <ipif@ymail.com>.
18112
18113 2009-04-09  Kamil Dudka  <kdudka@redhat.com>
18114
18115         filevercmp: correct today's change
18116         * lib/filevercmp.c: Also handle coreutils' test inputs.
18117         * tests/test-filevercmp.c: Add inputs from one of coreutils' test scripts.
18118
18119         Fix regression in 'filevercmp' module. Thanks Sven Joachim
18120         for reporting it.
18121         * lib/filevercmp.c: Special handle for "", "." and "..".
18122         * tests/test-filevercmp.c: Enlarge the set suite.
18123
18124 2009-04-07  Jim Meyering  <meyering@redhat.com>
18125
18126         useless-if-before-free: show how to remove braced useless free, too
18127         * build-aux/useless-if-before-free: still only in a comment, though.
18128
18129 2009-04-07  Reuben Thomas  <rrt@sc3d.org>
18130
18131         maint.mk: import changes to syntax-check macros from coreutils
18132         * top/maint.mk (_prohibit_regexp, _header_without_use): Define.
18133         Use them in the relevant macros.
18134
18135 2009-04-06  Bruno Haible  <bruno@clisp.org>
18136
18137         Fix unportable use of bit-fields.
18138         * lib/unicase/special-casing.h (struct special_casing_rule): Change the
18139         bit-field type from 'int' to 'signed int'. Otherwise Solaris cc,
18140         AIX xlc, and OSF/1 cc interpret it as 'unsigned int'.
18141
18142 2009-04-06  Bruno Haible  <bruno@clisp.org>
18143
18144         Avoid test failures on AIX and OSF/1.
18145         * tests/unicase/test-u8-casefold.c (check): Account for the possibility
18146         that malloc(0) = NULL.
18147         * tests/unicase/test-u8-tolower.c (check): Likewise.
18148         * tests/unicase/test-u8-totitle.c (check): Likewise.
18149         * tests/unicase/test-u8-toupper.c (check): Likewise.
18150         * tests/unicase/test-u16-casefold.c (check): Likewise.
18151         * tests/unicase/test-u16-tolower.c (check): Likewise.
18152         * tests/unicase/test-u16-totitle.c (check): Likewise.
18153         * tests/unicase/test-u16-toupper.c (check): Likewise.
18154         * tests/unicase/test-u32-casefold.c (check): Likewise.
18155         * tests/unicase/test-u32-tolower.c (check): Likewise.
18156         * tests/unicase/test-u32-totitle.c (check): Likewise.
18157         * tests/unicase/test-u32-toupper.c (check): Likewise.
18158         * tests/uninorm/test-u8-nfc.c (check): Likewise.
18159         * tests/uninorm/test-u8-nfd.c (check): Likewise.
18160         * tests/uninorm/test-u8-nfkc.c (check): Likewise.
18161         * tests/uninorm/test-u8-nfkd.c (check): Likewise.
18162         * tests/uninorm/test-u16-nfc.c (check): Likewise.
18163         * tests/uninorm/test-u16-nfd.c (check): Likewise.
18164         * tests/uninorm/test-u16-nfkc.c (check): Likewise.
18165         * tests/uninorm/test-u16-nfkd.c (check): Likewise.
18166         * tests/uninorm/test-u32-nfc.c (check): Likewise.
18167         * tests/uninorm/test-u32-nfd.c (check): Likewise.
18168         * tests/uninorm/test-u32-nfkc.c (check): Likewise.
18169         * tests/uninorm/test-u32-nfkd.c (check): Likewise.
18170
18171 2009-04-05  Bruno Haible  <bruno@clisp.org>
18172
18173         Work around an autoconf limitation.
18174         * gnulib-tool (func_emit_lib_Makefile_am): Omit the "Reproduce by"
18175         comment line if it would be longer than 3 KB.
18176
18177 2009-04-05  Bruno Haible  <bruno@clisp.org>
18178
18179         Avoid test failure with libiconv-1.13.
18180         * tests/test-striconveh.c (main): Allow result of libiconv 1.13 as one
18181         of the expected test results.
18182
18183 2009-04-05  Bruno Haible  <bruno@clisp.org>
18184
18185         * gnulib-tool (func_emit_lib_Makefile_am): Don't add the library to
18186         noinst_LTLIBRARIES if the Makefile.am in the same directory specifies
18187         that it should be installed.
18188
18189 2009-04-05  Bruno Haible  <bruno@clisp.org>
18190
18191         * gnulib-tool: New option --copy-file.
18192         (func_usage): Document it.
18193         (func_dest_tmpfilename): Moved out of func_import.
18194         (func_add_file, func_update_file): New functions, extracted from
18195         func_import.
18196         (func_import): Update.
18197
18198 2009-04-05  Karl Berry  <karl@gnu.org>
18199
18200         * README: prominently mention gnulib-tool.
18201         Rearrange sections so getting the code is near the top.
18202
18203 2009-04-05  Bruno Haible  <bruno@clisp.org>
18204
18205         * lib/unicase.h: Mention u*_cmp2.
18206         * lib/unicase/u-casecmp.h (FUNC): Invoke U_CMP2 instead of U_CMP.
18207         * lib/unicase/u8-casecmp.c: Use u8_cmp2 instead of u8_cmp.
18208         * lib/unicase/ulc-casecmp.c: Likewise.
18209         * lib/unicase/u16-casecmp.c: Use u16_cmp2 instead of u16_cmp.
18210         * lib/unicase/u32-casecmp.c: Use u32_cmp2 instead of u32_cmp.
18211         * modules/unicase/u8-casecmp (Depends-on): Add unistr/u8-cmp2, remove
18212         unistr/u8-cmp.
18213         * modules/unicase/ulc-casecmp (Depends-on): Likewise.
18214         * modules/unicase/u16-casecmp (Depends-on): Add unistr/u16-cmp2, remove
18215         unistr/u16-cmp.
18216         * modules/unicase/u32-casecmp (Depends-on): Add unistr/u32-cmp2, remove
18217         unistr/u32-cmp.
18218
18219         * lib/uninorm.h: Mention u*_cmp2.
18220         * lib/uninorm/u-normcmp.h (FUNC): Invoke U_CMP2 instead of U_CMP.
18221         * lib/uninorm/u8-normcmp.c: Use u8_cmp2 instead of u8_cmp.
18222         * lib/uninorm/u16-normcmp.c: Use u16_cmp2 instead of u16_cmp.
18223         * lib/uninorm/u32-normcmp.c: Use u32_cmp2 instead of u32_cmp.
18224         * modules/uninorm/u8-normcmp (Depends-on): Add unistr/u8-cmp2, remove
18225         unistr/u8-cmp.
18226         * modules/uninorm/u16-normcmp (Depends-on): Add unistr/u16-cmp2, remove
18227         unistr/u16-cmp.
18228         * modules/uninorm/u32-normcmp (Depends-on): Add unistr/u32-cmp2, remove
18229         unistr/u32-cmp.
18230
18231         New module 'unistr/u32-cmp2'.
18232         * lib/unistr/u32-cmp2.c: New file.
18233         * modules/unistr/u32-cmp2: New file.
18234
18235         New module 'unistr/u16-cmp2'.
18236         * lib/unistr/u16-cmp2.c: New file.
18237         * modules/unistr/u16-cmp2: New file.
18238
18239         New module 'unistr/u8-cmp2'.
18240         * lib/unistr.h (u8_cmp2, u16_cmp2, u32_cmp2): New declarations.
18241         * lib/unistr/u8-cmp2.c: New file.
18242         * lib/unistr/u-cmp2.h: New file.
18243         * modules/unistr/u8-cmp2: New file.
18244
18245 2009-04-05  Bruno Haible  <bruno@clisp.org>
18246
18247         * lib/unictype.h (uc_property_is_valid): New macro.
18248         * tests/unictype/test-pr_byname.c (main): Use it.
18249
18250         * lib/unistr.h: Doc fixes.
18251         * lib/uniconv.h: Doc fixes.
18252         * lib/unictype.h: Doc fixes.
18253
18254 2009-04-03  Paul Eggert  <eggert@cs.ucla.edu>
18255
18256         Port coreutils 7.2 to Solaris 8.
18257
18258         * modules/arpa_inet (arpa/inet.h): Depend on arpa_inet.in.h.
18259         * m4/inet_ntop.m4 (gl_INET_NTOP): Search for inet_ntop in -lnsl,
18260         for Solaris 8.  This is a bit of a hack, as it means it's the
18261         caller's responsibility to add -lnsl if needed, but most likely it
18262         won't be needed since only getaddrinfo uses this and getaddrinfo
18263         isn't needed on Solaris 8.
18264
18265         * modules/fnmatch (Depends-on): Add mbsrtowcs, to fix a porting
18266         problem to Solaris 8 encountered with coreutils 7.2, which
18267         resulted in a message "fnmatch.c:292: warning: passing argument 4
18268         of 'mbsrtowcs' from incompatible pointer type".  Also, add mbsinit
18269         at the suggestion of Bruno Haible, since fnmatch uses mbsinit.
18270
18271 2009-04-03  Simon Josefsson  <simon@josefsson.org>
18272
18273         * m4/ld-version-script.m4: Add FIXME comment.
18274
18275 2009-04-02  Simon Josefsson  <simon@josefsson.org>
18276
18277         * doc/ld-output-def.texi: Use DLL_VERSION instead of confusing
18278         SOVERSION variable.
18279
18280 2009-04-02  Bruno Haible  <bruno@clisp.org>
18281
18282         * Makefile (info, html, dvi, pdf): Combine the rules.
18283         Suggested by Jim Meyering.
18284
18285 2009-04-01  Bruno Haible  <bruno@clisp.org>
18286
18287         * Makefile (info, html, dvi, pdf): New targets.
18288         Reported by Reuben Thomas <rrt@sc3d.org>.
18289
18290 2009-04-01  Bruno Haible  <bruno@clisp.org>
18291
18292         * doc/gnulib-tool.texi (Invoking gnulib-tool): Document how gnulib-tool
18293         can be put into PATH.
18294         Reported by Reuben Thomas <rrt@sc3d.org>. Suggested by Karl Berry.
18295
18296 2009-04-01  Bruno Haible  <bruno@clisp.org>
18297
18298         * doc/lib-symbol-visibility.texi: Follow texinfo style conventions.
18299
18300 2009-04-01  Bruno Haible  <bruno@clisp.org>
18301
18302         Rename module 'visibility'.
18303         * modules/lib-symbol-visibility: Renamed from modules/visibility.
18304         * doc/lib-symbol-visibility.texi: Renamed from visibility.texi.
18305         * doc/gnulib.texi: Update.
18306         * MODULES.html.sh (Misc): Update.
18307         * NEWS: Mention the change.
18308
18309 2009-04-01  Simon Josefsson  <simon@josefsson.org>
18310
18311         * modules/lib-msvc-compat: New module.  Thanks to Bruno Haible
18312         <bruno@clisp.org>, Ralf Wildenhues <Ralf.Wildenhues@gmx.de>, and
18313         Eric Blake <ebb9@byu.net> for review.
18314         * MODULES.html.sh: Add lib-msvc-compat.
18315         * doc/gnulib.texi: Link to new section.
18316         * m4/ld-output-def.m4: New file.
18317         * doc/ld-output-def.texi: New file.
18318
18319 2009-04-01  Simon Josefsson  <simon@josefsson.org>
18320
18321         Rename ld-version-script to lib-symbol-versions.  Suggested by
18322         Bruno Haible <bruno@clisp.org>.
18323         * modules/ld-version-script: Renamed to lib-symbol-versions.
18324         * doc/ld-version-script.texi: Fix module name.
18325         * MODULES.html.sh: Add lib-symbol-versions.
18326
18327 2009-03-31  Simon Josefsson  <simon@josefsson.org>
18328
18329         * modules/u64-tests: New file.
18330         * tests/test-u64.c: New file.
18331
18332 2009-03-04  Simon Josefsson  <simon@josefsson.org>
18333
18334         * MODULES.html.sh: Mention u64.
18335         * modules/u64: New module.
18336         * modules/crypto/sha512: Depend on u64 module instead of providing
18337         u64.h.
18338
18339 2009-03-27  Eric Blake  <ebb9@byu.net>
18340
18341         test-strerror: make debugging EAI_SYSTEM easier
18342         * modules/getaddrinfo-tests (Depends-on): Add strerror.
18343         * test-getaddrinfo.c (simple) [ENABLE_DEBUGGING]: Report errno if
18344         failure was EAI_SYSTEM.
18345
18346 2009-03-25  Bruno Haible  <bruno@clisp.org>
18347
18348         Fix a problem with --enable-relocatable on Solaris 7.
18349         * modules/relocatable-prog-wrapper (Depends-on): Add environ. Needed
18350         since 2008-02-24.
18351
18352 2009-03-25  Eric Blake  <ebb9@byu.net>
18353
18354         test-sockets: avoid gcc warning
18355         * tests/test-sockets.c (main): Silence compiler warning.
18356
18357 2009-03-25  Paul Eggert  <eggert@cs.ucla.edu>
18358
18359         New modules nproc, pthread, contributed by Glen Lenker.
18360
18361         * MODULES.html.sh: Add pthread, nproc.
18362         * lib/nproc.c: New file.
18363         * lib/nproc.h: New file.
18364         * lib/pthread.in.h: New file.
18365         * m4/pthread.m4: New file.
18366         * modules/nproc: New file.
18367         * modules/pthread: New file.
18368
18369 2009-03-24  Simon Josefsson  <simon@josefsson.org>
18370
18371         * modules/unicase/locale-language-tests (test_locale_language_LDADD):
18372         New variable.
18373
18374 2009-03-24  Kamil Dudka  <kdudka@redhat.com>
18375
18376         filevercmp: handle simple~ and numbered.~3~ backup suffixes
18377         * lib/filevercmp.c: Handle simple~ and numbered.~3~ backup suffixes.
18378         * tests/test-filevercmp.c: Add tests for backup suffixes.
18379
18380 2009-03-24  Simon Josefsson  <simon@josefsson.org>
18381
18382         * modules/stdlib (Depends-on): Add stdint, needed when defining
18383         struct random_data on, for example, HP-UX 10.20.  Reported by
18384         Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
18385
18386 2009-03-24  Simon Josefsson  <simon@josefsson.org>
18387
18388         * lib/readline.c (readline): Call fflush on stdout after printing
18389         prompt.
18390
18391 2009-03-20  Bruno Haible  <bruno@clisp.org>
18392
18393         Remove dependency from 'close' module to -lws2_32 on native Windows.
18394         * lib/close-hook.h: New file.
18395         * lib/close-hook.c: New file.
18396         * lib/close.c: Include close-hook.h. Don't include <sys/socket.h>,
18397         w32sock.h.
18398         (_gl_close_fd_maybe_socket): Remove function.
18399         (rpl_close): Invoke execute_all_close_hooks instead of
18400         _gl_close_fd_maybe_socket.
18401         * lib/sockets.c: Include close-hook.h, w32sock.h.
18402         (close_fd_maybe_socket): New function, essentially from lib/close.c.
18403         (close_sockets_hook): New variable.
18404         (gl_sockets_startup): Register close_fd_maybe_socket as a hook.
18405         (gl_sockets_cleanup): Unregister it.
18406         * lib/unistd.in.h (HAVE__GL_CLOSE_FD_MAYBE_SOCKET): Remove macro.
18407         * m4/close.m4 (gl_REPLACE_CLOSE): Undo 2009-02-05 change.
18408         * modules/close-hook: New file.
18409         * modules/close (Files): Remove lib/w32sock.h.
18410         (Depends-on): Add close-hook.
18411         (Link): Remove section.
18412         * modules/sockets (Files): Add lib/w32sock.h.
18413         (Depends-on): Add close-hook.
18414         * modules/sys_socket (configure.ac): Remove gl_MODULE_INDICATOR
18415         invocation.
18416         * NEWS: Mention that LIB_CLOSE is gone.
18417
18418 2009-03-23  Eric Blake  <ebb9@byu.net>
18419
18420         signal-tests: test previous patch
18421         * tests/test-signal.c: New file.
18422         * modules/signal-tests: Likewise.
18423
18424         signal.h: always support 'volatile sig_atomic_t'
18425         * m4/signal_h.m4 (gl_SIGNAL_H): Check for AIX limitation.
18426         (gl_SIGNAL_H_DEFAULTS): Add a default.
18427         * modules/signal (Makefile.am): Substitute if needed.
18428         * lib/signal.in.h (sig_atomic_t): Redefine if needed, so that
18429         users can blindly add volatile.
18430         * doc/posix-headers/signal.texi (signal.h): Document it.
18431         Reported by Matthew Woehlke.
18432
18433 2009-03-23  Jim Meyering  <meyering@redhat.com>
18434
18435         pathmax: PATH_MAX: use pathconf only when available
18436         * lib/pathmax.h (PATH_MAX): Select the pathconf-using definition
18437         only if HAVE_PATHCONF is defined.  Patch by Sylvain Beucler.
18438         * m4/pathmax.m4 (gl_PATHMAX): Check for pathconf.
18439         This avoids a link failure in a PSP cross-compilation environment
18440         described in http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/17048
18441
18442         * lib/vasnprintf.c (divide): Fix typo in comment.
18443
18444 2009-03-23  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
18445
18446         * gnulib-tool (func_filter_filelist): Fix comment.
18447
18448 2009-03-20  Bruno Haible  <bruno@clisp.org>
18449
18450         Make sockets.h self-contained.
18451         * lib/sockets.c: Include sockets.h first.
18452         * lib/sockets.h: Include <sys/socket.h> before using the SOCKET type.
18453
18454 2009-03-19  Eric Blake  <ebb9@byu.net>
18455
18456         doc: mention more functions added in cygwin 1.7.0
18457         * doc/posix-functions/log2.texi: Mention recent cygwin 1.7.0
18458         addition.
18459         * doc/posix-functions/log2f.texi: Likewise.
18460
18461 2009-03-19  Jim Meyering  <meyering@redhat.com>
18462
18463         fsusage: avoid syntax error due to statement-before-declaration
18464         * lib/fsusage.c (get_fs_usage): Put warning-avoidance statement
18465         after all declarations.  Reported by Matthew Woehlke in
18466         http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/16231
18467
18468 2009-03-18  Eric Blake  <ebb9@byu.net>
18469
18470         build-aux/compile: sync from automake
18471         * build-aux/compile: New file, from automake.
18472         * config/srclist.txt: Mention build-aux/compile.
18473
18474 2009-03-17  Bruno Haible  <bruno@clisp.org>
18475
18476         * lib/git-merge-changelog.c: Fix typo in comment.
18477         Reported by Reuben Thomas <rrt@sc3d.org>.
18478
18479 2009-03-17  Reuben Thomas  <rrt@sc3d.org>
18480
18481         * m4/regex.m4: update and improve help for
18482         --without-included-regex.
18483
18484 2009-03-17  Simon Josefsson  <simon@josefsson.org>
18485
18486         * modules/isnanl-nolibm-tests (Files): Add tests/nan.h to avoid
18487         failure on missing include files.
18488
18489 2009-03-17  Eric Blake  <ebb9@byu.net>
18490
18491         doc: mention more functions added in cygwin 1.7.0
18492         * doc/posix-functions/fwprintf.texi: Mention recent cygwin 1.7.0
18493         addition.
18494         * doc/posix-functions/fwscanf.texi: Likewise.
18495         * doc/posix-functions/swprintf.texi: Likewise.
18496         * doc/posix-functions/swscanf.texi: Likewise.
18497         * doc/posix-functions/vfwprintf.texi: Likewise.
18498         * doc/posix-functions/vfwscanf.texi: Likewise.
18499         * doc/posix-functions/vswprintf.texi: Likewise.
18500         * doc/posix-functions/vswscanf.texi: Likewise.
18501         * doc/posix-functions/vwprintf.texi: Likewise.
18502         * doc/posix-functions/vwscanf.texi: Likewise.
18503         * doc/posix-functions/wcscasecmp.texi: Likewise.
18504         * doc/posix-functions/wcsdup.texi: Likewise.
18505         * doc/posix-functions/wcsftime.texi: Likewise.
18506         * doc/posix-functions/wcsncasecmp.texi: Likewise.
18507         * doc/posix-functions/wprintf.texi: Likewise.
18508         * doc/posix-functions/wscanf.texi: Likewise.
18509         * doc/glibc-functions/gethostbyname2.texi: Likewise.
18510
18511 2009-03-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
18512
18513         maint.mk: really add $(AM_MAKEFLAGS)
18514         * top/maint.mk (init-coverage, build-coverage): `$(AM_MAKEFLAGS)'
18515         was inadvertently omitted in the last commit.
18516         Spotted by Bruno Haible.
18517
18518         maint.mk: use $(MAKE) $(AM_MAKEFLAGS) not make
18519         * top/maint.mk (init-coverage, build-coverage): Use `$(MAKE)
18520         $(AM_MAKEFLAGS)' rather than plain `make'.
18521
18522         gnulib-tool: execute $MAKE not make
18523         * gnulib-tool: Default $MAKE to 'make'.
18524         (func_create_testdir, func_create_megatestdir): Use $MAKE rather
18525         than make.  Initialize $MAKE in the do-autobuild script.
18526
18527         gnulib-tool: use $MAKE not make in generated files
18528         * gnulib-tool (func_create_megatestdir): Use $MAKE rather than
18529         make, in generated files.  Initialize $MAKE in the do-autobuild
18530         script.
18531
18532         * top/GNUmakefile (_have-git-version-gen): Fix typo.
18533
18534         GNUmakefile: disable parallelism only for multiple, recursive targets
18535         * top/GNUmakefile (ALL_RECURSIVE_TARGETS): New macro; allow user
18536         additions in the Makefile.
18537         (AM_RECURSIVE_TARGETS): New macro, override only if not provided
18538         by Automake.
18539         (.NOTPARALLEL): Only disable parallel builds if multiple targets
18540         are listed on the command line and at least one of them is
18541         listed in $(ALL_RECURSIVE_TARGETS).
18542
18543 2009-03-14  Bruno Haible  <bruno@clisp.org>
18544
18545         * modules/unilbrk/u8-possible-linebreaks (Depends-on): Replace
18546         utf8-ucs4-unsafe with unistr/u8-mbtouc-unsafe.
18547         * modules/unilbrk/u8-width-linebreaks (Depends-on): Likewise.
18548         * modules/unilbrk/u16-possible-linebreaks (Depends-on): Replace
18549         utf16-ucs4-unsafe with unistr/u16-mbtouc-unsafe.
18550         * modules/unilbrk/u16-width-linebreaks (Depends-on): Likewise.
18551         * modules/unistr/u8-chr (Depends-on): Replace ucs4-utf8 with
18552         unistr/u8-uctomb.
18553         * modules/unistr/u8-strchr (Depends-on): Likewise.
18554         * modules/unistr/u8-strrchr (Depends-on): Likewise.
18555         * modules/unistr/u16-chr (Depends-on): Replace ucs4-utf16 with
18556         unistr/u16-uctomb.
18557         * modules/unistr/u16-strchr (Depends-on): Likewise.
18558         * modules/unistr/u16-strrchr (Depends-on): Likewise.
18559
18560 2009-03-12  Bruno Haible  <bruno@clisp.org>
18561
18562         Work around select() bug on Interix 3.5.
18563         * lib/sys_select.in.h (select): Also replace if REPLACE_SELECT is 1.
18564         * lib/select.c (rpl_select): Add an implementation for Unix platforms.
18565         * m4/select.m4: New file.
18566         * m4/sys_select_h.m4 (gl_SYS_SELECT_H_DEFAULTS): Initialize REPLACE_SELECT.
18567         * modules/sys_select (Makefile.am): Substitute REPLACE_SELECT.
18568         * modules/select (Files): Add m4/select.m4.
18569         (configure.ac): Move conditional to m4/select.m4. Invoke gl_FUNC_SELECT.
18570         * modules/nanosleep (Depends-on): Add select.
18571         * modules/poll (Depends-on): Likewise.
18572         * doc/posix-functions/select.texi: Mention the Interix bug.
18573         Reported by Markus Duft <mduft@gentoo.org>.
18574
18575         * lib/select.c: Renamed from lib/winsock-select.c.
18576         * modules/select (Files): Add lib/select.c, remove
18577         lib/winsock-select.c.
18578         (configure.ac): Update.
18579
18580 2009-03-12  Jim Meyering  <meyering@redhat.com>
18581
18582         avoid gcc warnings about unused macro definitions
18583         * lib/readtokens.c (STREQ): Remove unused definition.
18584         * lib/xmalloc.c (SIZE_MAX): Likewise.
18585         * lib/openat-die.c (N_): Likewise.
18586         * lib/mountlist.c (SIZE_MAX): Remove definition.
18587         Instead, include <stdint.h>.
18588         * lib/readutmp.c: Likewise.
18589         * modules/readutmp (Depends-on): Add stdint.
18590         * modules/mountlist (Depends-on): Add stdint.
18591         * lib/userspec.c (ISDIGIT): Move definition into #if block where used.
18592
18593 2009-03-10  Bruno Haible  <bruno@clisp.org>
18594
18595         Tests for module 'mbmemcasecoll'.
18596         * modules/mbmemcasecoll-tests: New file.
18597         * tests/test-mbmemcasecoll1.sh: New file.
18598         * tests/test-mbmemcasecoll2.sh: New file.
18599         * tests/test-mbmemcasecoll3.sh: New file.
18600         * tests/test-mbmemcasecoll.c: New file.
18601
18602         New module 'mbmemcasecoll'.
18603         * lib/mbmemcasecoll.h: New file.
18604         * lib/mbmemcasecoll.c: New file.
18605         * modules/mbmemcasecoll: New file.
18606
18607         * tests/test-mbmemcasecmp.h: New file, extracted from
18608         tests/test-mbmemcasecmp.c.
18609         * tests/test-mbmemcasecmp.c: Include test-mbmemcasecmp.h.
18610         (test_ascii, test_iso_8859_1, test_utf_8): Remove functions.
18611         (main): Update.
18612         * modules/mbmemcasecmp-tests (Files): Add tests/test-mbmemcasecmp.h.
18613
18614 2009-03-09  Bruno Haible  <bruno@clisp.org>
18615
18616         Tests for module 'mbmemcasecmp'.
18617         * modules/mbmemcasecmp-tests: New file.
18618         * tests/test-mbmemcasecmp1.sh: New file.
18619         * tests/test-mbmemcasecmp2.sh: New file.
18620         * tests/test-mbmemcasecmp3.sh: New file.
18621         * tests/test-mbmemcasecmp.c: New file.
18622
18623         New module 'mbmemcasecmp'.
18624         * lib/mbmemcasecmp.h: New file.
18625         * lib/mbmemcasecmp.c: New file.
18626         * modules/mbmemcasecmp: New file.
18627
18628 2009-03-09  Bruno Haible  <bruno@clisp.org>
18629
18630         Tests for module 'unicase/ulc-casecoll'.
18631         * modules/unicase/ulc-casecoll-tests: New file.
18632         * tests/unicase/test-ulc-casecoll1.sh: New file.
18633         * tests/unicase/test-ulc-casecoll2.sh: New file.
18634         * tests/unicase/test-ulc-casecoll.c: New file.
18635
18636         New module 'unicase/ulc-casecoll'.
18637         * lib/unicase.h (ulc_casecoll): New declaration.
18638         * lib/unicase/ulc-casecoll.c: New file.
18639         * modules/unicase/ulc-casecoll: New file.
18640
18641         New module 'unicase/ulc-casexfrm'.
18642         * lib/unicase.h (ulc_casexfrm): New declaration.
18643         * lib/unicase/ulc-casexfrm.c: New file.
18644         * modules/unicase/ulc-casexfrm: New file.
18645
18646 2009-03-09  Bruno Haible  <bruno@clisp.org>
18647
18648         Followup to 2008-12-22 commit: Remove unnecessary AC_FUNC_MBRTOWC
18649         invocations.
18650
18651         * m4/mbscasecmp.m4: Remove file.
18652         * modules/mbscasecmp (Files): Remove it and m4/mbrtowc.m4
18653         (configure.ac): Remove gl_FUNC_MBSCASECMP invocation.
18654
18655         * m4/mbscasestr.m4: Remove file.
18656         * modules/mbscasestr (Files): Remove it and m4/mbrtowc.m4
18657         (configure.ac): Remove gl_FUNC_MBSCASESTR invocation.
18658
18659         * m4/mbschr.m4: Remove file.
18660         * modules/mbschr (Files): Remove it and m4/mbrtowc.m4
18661         (configure.ac): Remove gl_FUNC_MBSCHR invocation.
18662
18663         * m4/mbscspn.m4: Remove file.
18664         * modules/mbscspn (Files): Remove it and m4/mbrtowc.m4
18665         (configure.ac): Remove gl_FUNC_MBSCSPN invocation.
18666
18667         * m4/mbslen.m4: Remove file.
18668         * modules/mbslen (Files): Remove it and m4/mbrtowc.m4
18669         (configure.ac): Remove gl_FUNC_MBSLEN invocation.
18670
18671         * m4/mbsncasecmp.m4: Remove file.
18672         * modules/mbsncasecmp (Files): Remove it and m4/mbrtowc.m4
18673         (configure.ac): Remove gl_FUNC_MBSNCASECMP invocation.
18674
18675         * m4/mbsnlen.m4: Remove file.
18676         * modules/mbsnlen (Files): Remove it and m4/mbrtowc.m4
18677         (configure.ac): Remove gl_FUNC_MBSNLEN invocation.
18678
18679         * m4/mbspbrk.m4: Remove file.
18680         * modules/mbspbrk (Files): Remove it and m4/mbrtowc.m4
18681         (configure.ac): Remove gl_FUNC_MBSPBRK invocation.
18682
18683         * m4/mbspcasecmp.m4: Remove file.
18684         * modules/mbspcasecmp (Files): Remove it and m4/mbrtowc.m4
18685         (configure.ac): Remove gl_FUNC_MBSPCASECMP invocation.
18686
18687         * m4/mbsrchr.m4: Remove file.
18688         * modules/mbsrchr (Files): Remove it and m4/mbrtowc.m4
18689         (configure.ac): Remove gl_FUNC_MBSRCHR invocation.
18690
18691         * m4/mbssep.m4: Remove file.
18692         * modules/mbssep (Files): Remove it and m4/mbrtowc.m4
18693         (configure.ac): Remove gl_FUNC_MBSSEP invocation.
18694
18695         * m4/mbsspn.m4: Remove file.
18696         * modules/mbsspn (Files): Remove it and m4/mbrtowc.m4
18697         (configure.ac): Remove gl_FUNC_MBSSPN invocation.
18698
18699         * m4/mbsstr.m4: Remove file.
18700         * modules/mbsstr (Files): Remove it and m4/mbrtowc.m4
18701         (configure.ac): Remove gl_FUNC_MBSSTR invocation.
18702
18703         * m4/mbstok_r.m4: Remove file.
18704         * modules/mbstok_r (Files): Remove it and m4/mbrtowc.m4
18705         (configure.ac): Remove gl_FUNC_MBSTOK_R invocation.
18706
18707         * m4/mbswidth.m4 (gl_MBSWIDTH): Remove AC_FUNC_MBRTOWC invocation.
18708
18709         * m4/quotearg.m4 (gl_QUOTEARG): Remove mbsinit test and
18710         AC_TYPE_MBSTATE_T, AC_FUNC_MBRTOWC invocations.
18711
18712         * modules/trim (configure.ac): Remove AC_FUNC_MBRTOWC invocation.
18713
18714 2009-03-08  Bruno Haible  <bruno@clisp.org>
18715
18716         Tests for module 'unicase/ulc-casecmp'.
18717         * modules/unicase/ulc-casecmp-tests: New file.
18718         * tests/unicase/test-ulc-casecmp1.sh: New file.
18719         * tests/unicase/test-ulc-casecmp2.sh: New file.
18720         * tests/unicase/test-ulc-casecmp.c: New file.
18721
18722         New module 'unicase/ulc-casecmp'.
18723         * lib/unicase.h (ulc_casecmp): New declaration.
18724         * lib/unicase/ulc-casecmp.c: New file.
18725         * lib/unicase/u-casecmp.h (FUNC): Change argument types to
18726         'const SRC_UNIT *'.
18727         * lib/unicase/u8-casecmp.c (SRC_UNIT): Define like UNIT.
18728         * lib/unicase/u16-casecmp.c (SRC_UNIT): Likewise.
18729         * lib/unicase/u32-casecmp.c (SRC_UNIT): Likewise.
18730         * modules/unicase/ulc-casecmp: New file.
18731
18732         Tests for module 'unicase/u32-is-cased'.
18733         * modules/unicase/u32-is-cased-tests: New file.
18734         * tests/unicase/test-u32-is-cased.c: New file.
18735
18736         Tests for module 'unicase/u16-is-cased'.
18737         * modules/unicase/u16-is-cased-tests: New file.
18738         * tests/unicase/test-u16-is-cased.c: New file.
18739
18740         Tests for module 'unicase/u8-is-cased'.
18741         * modules/unicase/u8-is-cased-tests: New file.
18742         * tests/unicase/test-u8-is-cased.c: New file.
18743         * tests/unicase/test-is-cased.h: New file.
18744
18745         New module 'unicase/u32-is-cased'.
18746         * lib/unicase/u32-is-cased.c: New file.
18747         * modules/unicase/u32-is-cased: New file.
18748
18749         New module 'unicase/u16-is-cased'.
18750         * lib/unicase/u16-is-cased.c: New file.
18751         * modules/unicase/u16-is-cased: New file.
18752
18753         New module 'unicase/u8-is-cased'.
18754         * lib/unicase/u8-is-cased.c: New file.
18755         * lib/unicase/u-is-cased.h: New file.
18756         * modules/unicase/u8-is-cased: New file.
18757
18758         Tests for module 'unicase/u32-is-casefolded'.
18759         * modules/unicase/u32-is-casefolded-tests: New file.
18760         * tests/unicase/test-u32-is-casefolded.c: New file.
18761
18762         Tests for module 'unicase/u16-is-casefolded'.
18763         * modules/unicase/u16-is-casefolded-tests: New file.
18764         * tests/unicase/test-u16-is-casefolded.c: New file.
18765
18766         Tests for module 'unicase/u8-is-casefolded'.
18767         * modules/unicase/u8-is-casefolded-tests: New file.
18768         * tests/unicase/test-u8-is-casefolded.c: New file.
18769         * tests/unicase/test-is-casefolded.h: New file.
18770
18771         New module 'unicase/u32-is-casefolded'.
18772         * lib/unicase/u32-is-casefolded.c: New file.
18773         * modules/unicase/u32-is-casefolded: New file.
18774
18775         New module 'unicase/u16-is-casefolded'.
18776         * lib/unicase/u16-is-casefolded.c: New file.
18777         * modules/unicase/u16-is-casefolded: New file.
18778
18779         New module 'unicase/u8-is-casefolded'.
18780         * lib/unicase/u8-is-casefolded.c: New file.
18781         * modules/unicase/u8-is-casefolded: New file.
18782
18783         Tests for module 'unicase/u32-is-titlecase'.
18784         * modules/unicase/u32-is-titlecase-tests: New file.
18785         * tests/unicase/test-u32-is-titlecase.c: New file.
18786
18787         Tests for module 'unicase/u16-is-titlecase'.
18788         * modules/unicase/u16-is-titlecase-tests: New file.
18789         * tests/unicase/test-u16-is-titlecase.c: New file.
18790
18791         Tests for module 'unicase/u8-is-titlecase'.
18792         * modules/unicase/u8-is-titlecase-tests: New file.
18793         * tests/unicase/test-u8-is-titlecase.c: New file.
18794         * tests/unicase/test-is-titlecase.h: New file.
18795
18796         New module 'unicase/u32-is-titlecase'.
18797         * lib/unicase/u32-is-titlecase.c: New file.
18798         * modules/unicase/u32-is-titlecase: New file.
18799
18800         New module 'unicase/u16-is-titlecase'.
18801         * lib/unicase/u16-is-titlecase.c: New file.
18802         * modules/unicase/u16-is-titlecase: New file.
18803
18804         New module 'unicase/u8-is-titlecase'.
18805         * lib/unicase/u8-is-titlecase.c: New file.
18806         * modules/unicase/u8-is-titlecase: New file.
18807
18808         Tests for module 'unicase/u32-is-lowercase'.
18809         * modules/unicase/u32-is-lowercase-tests: New file.
18810         * tests/unicase/test-u32-is-lowercase.c: New file.
18811
18812         Tests for module 'unicase/u16-is-lowercase'.
18813         * modules/unicase/u16-is-lowercase-tests: New file.
18814         * tests/unicase/test-u16-is-lowercase.c: New file.
18815
18816         Tests for module 'unicase/u8-is-lowercase'.
18817         * modules/unicase/u8-is-lowercase-tests: New file.
18818         * tests/unicase/test-u8-is-lowercase.c: New file.
18819         * tests/unicase/test-is-lowercase.h: New file.
18820
18821         New module 'unicase/u32-is-lowercase'.
18822         * lib/unicase/u32-is-lowercase.c: New file.
18823         * modules/unicase/u32-is-lowercase: New file.
18824
18825         New module 'unicase/u16-is-lowercase'.
18826         * lib/unicase/u16-is-lowercase.c: New file.
18827         * modules/unicase/u16-is-lowercase: New file.
18828
18829         New module 'unicase/u8-is-lowercase'.
18830         * lib/unicase/u8-is-lowercase.c: New file.
18831         * modules/unicase/u8-is-lowercase: New file.
18832
18833         Tests for module 'unicase/u32-is-uppercase'.
18834         * modules/unicase/u32-is-uppercase-tests: New file.
18835         * tests/unicase/test-u32-is-uppercase.c: New file.
18836
18837         Tests for module 'unicase/u16-is-uppercase'.
18838         * modules/unicase/u16-is-uppercase-tests: New file.
18839         * tests/unicase/test-u16-is-uppercase.c: New file.
18840
18841         Tests for module 'unicase/u8-is-uppercase'.
18842         * modules/unicase/u8-is-uppercase-tests: New file.
18843         * tests/unicase/test-u8-is-uppercase.c: New file.
18844         * tests/unicase/test-is-uppercase.h: New file.
18845
18846         New module 'unicase/u32-is-uppercase'.
18847         * lib/unicase/u32-is-uppercase.c: New file.
18848         * modules/unicase/u32-is-uppercase: New file.
18849
18850         New module 'unicase/u16-is-uppercase'.
18851         * lib/unicase/u16-is-uppercase.c: New file.
18852         * modules/unicase/u16-is-uppercase: New file.
18853
18854         New module 'unicase/u8-is-uppercase'.
18855         * lib/unicase/u8-is-uppercase.c: New file.
18856         * modules/unicase/u8-is-uppercase: New file.
18857
18858         New module 'unicase/u32-is-invariant'.
18859         * lib/unicase/u32-is-invariant.c: New file.
18860         * modules/unicase/u32-is-invariant: New file.
18861
18862         New module 'unicase/u16-is-invariant'.
18863         * lib/unicase/u16-is-invariant.c: New file.
18864         * modules/unicase/u16-is-invariant: New file.
18865
18866         New module 'unicase/u8-is-invariant'.
18867         * lib/unicase/u8-is-invariant.c: New file.
18868         * lib/unicase/invariant.h: New file.
18869         * lib/unicase/u-is-invariant.h: New file.
18870         * modules/unicase/u8-is-invariant: New file.
18871
18872         Tests for module 'unicase/u32-casecoll'.
18873         * modules/unicase/u32-casecoll-tests: New file.
18874         * tests/unicase/test-u32-casecoll.c: New file.
18875
18876         Tests for module 'unicase/u16-casecoll'.
18877         * modules/unicase/u16-casecoll-tests: New file.
18878         * tests/unicase/test-u16-casecoll.c: New file.
18879
18880         Tests for module 'unicase/u8-casecoll'.
18881         * modules/unicase/u8-casecoll-tests: New file.
18882         * tests/unicase/test-u8-casecoll.c: New file.
18883
18884         New module 'unicase/u32-casecoll'.
18885         * lib/unicase/u32-casecoll.c: New file.
18886         * modules/unicase/u32-casecoll: New file.
18887
18888         New module 'unicase/u16-casecoll'.
18889         * lib/unicase/u16-casecoll.c: New file.
18890         * modules/unicase/u16-casecoll: New file.
18891
18892         New module 'unicase/u8-casecoll'.
18893         * lib/unicase/u8-casecoll.c: New file.
18894         * lib/unicase/u-casecoll.h: New file.
18895         * modules/unicase/u8-casecoll: New file.
18896
18897         New module 'unicase/u32-casexfrm'.
18898         * lib/unicase/u32-casexfrm.c: New file.
18899         * modules/unicase/u32-casexfrm: New file.
18900
18901         New module 'unicase/u16-casexfrm'.
18902         * lib/unicase/u16-casexfrm.c: New file.
18903         * modules/unicase/u16-casexfrm: New file.
18904
18905         New module 'unicase/u8-casexfrm'.
18906         * lib/unicase/u8-casexfrm.c: New file.
18907         * lib/unicase/u-casexfrm.h: New file.
18908         * modules/unicase/u8-casexfrm: New file.
18909
18910         Tests for module 'unicase/u32-casecmp'.
18911         * modules/unicase/u32-casecmp-tests: New file.
18912         * tests/unicase/test-u32-casecmp.c: New file.
18913
18914         Tests for module 'unicase/u16-casecmp'.
18915         * modules/unicase/u16-casecmp-tests: New file.
18916         * tests/unicase/test-u16-casecmp.c: New file.
18917
18918         Tests for module 'unicase/u8-casecmp'.
18919         * modules/unicase/u8-casecmp-tests: New file.
18920         * tests/unicase/test-u8-casecmp.c: New file.
18921         * tests/unicase/test-casecmp.h: New file.
18922
18923         New module 'unicase/u32-casecmp'.
18924         * lib/unicase/u32-casecmp.c: New file.
18925         * modules/unicase/u32-casecmp: New file.
18926
18927         New module 'unicase/u16-casecmp'.
18928         * lib/unicase/u16-casecmp.c: New file.
18929         * modules/unicase/u16-casecmp: New file.
18930
18931         New module 'unicase/u8-casecmp'.
18932         * lib/unicase/u8-casecmp.c: New file.
18933         * lib/unicase/u-casecmp.h: New file.
18934         * modules/unicase/u8-casecmp: New file.
18935
18936         Tests for module 'unicase/u32-casefold'.
18937         * modules/unicase/u32-casefold-tests: New file.
18938         * tests/unicase/test-u32-casefold.c: New file.
18939
18940         Tests for module 'unicase/u16-casefold'.
18941         * modules/unicase/u16-casefold-tests: New file.
18942         * tests/unicase/test-u16-casefold.c: New file.
18943
18944         Tests for module 'unicase/u8-casefold'.
18945         * modules/unicase/u8-casefold-tests: New file.
18946         * tests/unicase/test-u8-casefold.c: New file.
18947
18948         New module 'unicase/u32-casefold'.
18949         * lib/unicase/u32-casefold.c: New file.
18950         * modules/unicase/u32-casefold: New file.
18951
18952         New module 'unicase/u16-casefold'.
18953         * lib/unicase/u16-casefold.c: New file.
18954         * modules/unicase/u16-casefold: New file.
18955
18956         New module 'unicase/u8-casefold'.
18957         * lib/unicase/u8-casefold.c: New file.
18958         * lib/unicase/u-casefold.h: New file.
18959         * modules/unicase/u8-casefold: New file.
18960
18961         New module 'unicase/tocasefold'.
18962         * lib/unicase/casefold.h: New file.
18963         * lib/unicase/tocasefold.c: New file.
18964         * lib/unicase/tocasefold.h: New file, generated by gen-uni-tables.c.
18965         * modules/unicase/tocasefold: New file.
18966
18967         Tests for module 'unicase/u32-totitle'.
18968         * modules/unicase/u32-totitle-tests: New file.
18969         * tests/unicase/test-u32-totitle.c: New file.
18970
18971         Tests for module 'unicase/u16-totitle'.
18972         * modules/unicase/u16-totitle-tests: New file.
18973         * tests/unicase/test-u16-totitle.c: New file.
18974
18975         Tests for module 'unicase/u8-totitle'.
18976         * modules/unicase/u8-totitle-tests: New file.
18977         * tests/unicase/test-u8-totitle.c: New file.
18978
18979         New module 'unicase/u32-totitle'.
18980         * lib/unicase/u32-totitle.c: New file.
18981         * modules/unicase/u32-totitle: New file.
18982
18983         New module 'unicase/u16-totitle'.
18984         * lib/unicase/u16-totitle.c: New file.
18985         * modules/unicase/u16-totitle: New file.
18986
18987         New module 'unicase/u8-totitle'.
18988         * lib/unicase/u8-totitle.c: New file.
18989         * lib/unicase/u-totitle.h: New file.
18990         * modules/unicase/u8-totitle: New file.
18991
18992         Tests for module 'unicase/u32-tolower'.
18993         * modules/unicase/u32-tolower-tests: New file.
18994         * tests/unicase/test-u32-tolower.c: New file.
18995
18996         Tests for module 'unicase/u16-tolower'.
18997         * modules/unicase/u16-tolower-tests: New file.
18998         * tests/unicase/test-u16-tolower.c: New file.
18999
19000         Tests for module 'unicase/u8-tolower'.
19001         * modules/unicase/u8-tolower-tests: New file.
19002         * tests/unicase/test-u8-tolower.c: New file.
19003
19004         New module 'unicase/u32-tolower'.
19005         * lib/unicase/u32-tolower.c: New file.
19006         * modules/unicase/u32-tolower: New file.
19007
19008         New module 'unicase/u16-tolower'.
19009         * lib/unicase/u16-tolower.c: New file.
19010         * modules/unicase/u16-tolower: New file.
19011
19012         New module 'unicase/u8-tolower'.
19013         * lib/unicase/u8-tolower.c: New file.
19014         * modules/unicase/u8-tolower: New file.
19015
19016         Tests for module 'unicase/u32-toupper'.
19017         * modules/unicase/u32-toupper-tests: New file.
19018         * tests/unicase/test-u32-toupper.c: New file.
19019
19020         Tests for module 'unicase/u16-toupper'.
19021         * modules/unicase/u16-toupper-tests: New file.
19022         * tests/unicase/test-u16-toupper.c: New file.
19023
19024         Tests for module 'unicase/u8-toupper'.
19025         * modules/unicase/u8-toupper-tests: New file.
19026         * tests/unicase/test-u8-toupper.c: New file.
19027
19028         New module 'unicase/u32-toupper'.
19029         * lib/unicase/u32-toupper.c: New file.
19030         * modules/unicase/u32-toupper: New file.
19031
19032         New module 'unicase/u16-toupper'.
19033         * lib/unicase/u16-toupper.c: New file.
19034         * modules/unicase/u16-toupper: New file.
19035
19036         New module 'unicase/u8-toupper'.
19037         * lib/unicase/u8-toupper.c: New file.
19038         * modules/unicase/u8-toupper: New file.
19039
19040         New module 'unicase/u32-casemap'.
19041         * lib/unicase/u32-casemap.c: New file.
19042         * modules/unicase/u32-casemap: New file.
19043
19044         New module 'unicase/u16-casemap'.
19045         * lib/unicase/u16-casemap.c: New file.
19046         * modules/unicase/u16-casemap: New file.
19047
19048         New module 'unicase/u8-casemap'.
19049         * lib/unicase/unicasemap.h: New file.
19050         * lib/unicase/u8-casemap.c: New file.
19051         * lib/unicase/u-casemap.h: New file.
19052         * modules/unicase/u8-casemap: New file.
19053
19054         New module 'unicase/special-casing'.
19055         * lib/unicase/special-casing.h: New file.
19056         * lib/unicase/special-casing.c: New file.
19057         * lib/unicase/special-casing-table.gperf: New file, generated by
19058         gen-uni-tables.c.
19059         * modules/unicase/special-casing: New file.
19060
19061         Tests for module 'unicase/locale-language'.
19062         * modules/unicase/locale-language-tests: New file.
19063         * tests/unicase/test-locale-language.sh: New file.
19064         * tests/unicase/test-locale-language.c: New file.
19065
19066         New module 'unicase/locale-language'.
19067         * lib/unicase/locale-language.c: New file.
19068         * lib/unicase/locale-languages.gperf: New file.
19069         * modules/unicase/locale-language: New file.
19070
19071         Generate more tables for case conversion and case folding.
19072         * lib/gen-uni-tables.c (SCC_*): New enum items.
19073         (struct special_casing_rule): New type.
19074         (casing_rules, num_casing_rules, allocated_casing_rules): New
19075         variables.
19076         (add_casing_rule, fill_casing_rules): New functions.
19077         (struct casefold_rule): New type.
19078         (casefolding_rules, num_casefolding_rules,
19079         allocated_casefolding_rules): New variables.
19080         (fill_casefolding_rules): New function.
19081         (unicode_casefold): New variable.
19082         (to_casefold, redistribute_casefolding_rules, compare_casing_rules,
19083         sort_casing_rules, output_casing_rules): New functions.
19084         (main): Accept to more arguments: SpecialCasing.txt and
19085         CaseFolding.txt. Invoke fill_casing_rules, fill_casefolding_rules,
19086         redistribute_casefolding_rules, sort_casing_rules, output_casing_rules.
19087         Output mapping for casefolding.
19088
19089         * lib/unicase.h: Include stdbool.h, uninorm.h.
19090         (u8_toupper, u16_toupper, u32_toupper, u8_tolower, u16_tolower,
19091         u32_tolower, u8_totitle, u16_totitle, u32_totitle): Add nf argument.
19092         (u8_casefold, u16_casefold, u32_casefold): Add iso639_language and nf
19093         arguments.
19094         (u8_casecmp, u16_casecmp, u32_casecmp): Add iso639_language, nf,
19095         resultp arguments.
19096         (u8_casexfrm, u16_casexfrm, u32_casexfrm): New declarations.
19097         (u8_casecoll, u16_casecoll, u32_casecoll): Add iso639_language, nf,
19098         resultp arguments.
19099         (u8_is_uppercase, u16_is_uppercase, u32_is_uppercase, u8_is_lowercase,
19100         u16_is_lowercase, u32_is_lowercase, u8_is_titlecase, u16_is_titlecase,
19101         u32_is_titlecase, u8_is_casefolded, u16_is_casefolded,
19102         u32_is_casefolded, u8_is_cased, u16_is_cased, u32_is_cased): New
19103         declarations.
19104         * modules/unicase/base (Depends-on): Add uninorm/base, stdbool.
19105
19106 2009-03-08  Bruno Haible  <bruno@clisp.org>
19107
19108         * lib/uninorm.h (u8_normcmp, u16_normcmp, u32_normcmp, u8_normcoll,
19109         u16_normcoll, u32_normcoll): Rename argument 'result' to 'resultp'.
19110         * lib/uninorm/u-normcmp.h (FUNC): Likewise.
19111         * lib/uninorm/u-normcoll.h (FUNC): Likewise.
19112
19113 2009-03-07  Bruno Haible  <bruno@clisp.org>
19114
19115         Adjust u*_normcmp, u*_normcoll API.
19116         * lib/uninorm.h (u8_normcmp, u16_normcmp, u32_normcmp, u8_normcoll,
19117         u16_normcoll, u32_normcoll): Change failure conventions.
19118         * lib/uninorm/u-normcmp.h (FUNC): Upon failure, store the error code in
19119         errno and return -1.
19120         * lib/uninorm/u-normcoll.h (FUNC): Likewise.
19121
19122 2009-03-07  Bruno Haible  <bruno@clisp.org>
19123
19124         Tests for module 'uninorm/u32-normcoll'.
19125         * modules/uninorm/u32-normcoll-tests: New file.
19126         * tests/uninorm/test-u32-normcoll.c: New file.
19127
19128         Tests for module 'uninorm/u16-normcoll'.
19129         * modules/uninorm/u16-normcoll-tests: New file.
19130         * tests/uninorm/test-u16-normcoll.c: New file.
19131
19132         Tests for module 'uninorm/u8-normcoll'.
19133         * modules/uninorm/u8-normcoll-tests: New file.
19134         * tests/uninorm/test-u8-normcoll.c: New file.
19135
19136 2009-03-07  Bruno Haible  <bruno@clisp.org>
19137
19138         * tests/uninorm/test-u32-normcmp.h: New file, extracted from
19139         tests/uninorm/test-u32-normcmp.c.
19140         * tests/uninorm/test-u32-normcmp.c: Include it.
19141         (test_nonascii): New function, extracted from main. Add some more
19142         tests.
19143         (main): Invoke test_ascii and test_nonascii.
19144         * modules/uninorm/u32-normcmp-tests (Files): Add
19145         tests/uninorm/test-u32-normcmp.h.
19146         (Depends-on): Remove uninorm/u32-normcmp.
19147
19148         * tests/uninorm/test-u16-normcmp.h: New file, extracted from
19149         tests/uninorm/test-u16-normcmp.c.
19150         * tests/uninorm/test-u16-normcmp.c: Include it.
19151         (test_nonascii): New function, extracted from main. Add some more
19152         tests.
19153         (main): Invoke test_ascii and test_nonascii.
19154         * modules/uninorm/u16-normcmp-tests (Files): Add
19155         tests/uninorm/test-u16-normcmp.h.
19156         (Depends-on): Remove uninorm/u16-normcmp.
19157
19158         * tests/uninorm/test-u8-normcmp.h: New file, extracted from
19159         tests/uninorm/test-u8-normcmp.c.
19160         * tests/uninorm/test-u8-normcmp.c: Include it.
19161         (test_nonascii): New function, extracted from main. Add some more
19162         tests.
19163         (main): Invoke test_ascii and test_nonascii.
19164         * modules/uninorm/u8-normcmp-tests (Files): Add
19165         tests/uninorm/test-u8-normcmp.h.
19166         (Depends-on): Remove uninorm/u8-normcmp.
19167
19168 2009-03-07  Bruno Haible  <bruno@clisp.org>
19169
19170         New module 'uninorm/u32-normcoll'.
19171         * lib/uninorm/u32-normcoll.c: New file.
19172         * modules/uninorm/u32-normcoll: New file.
19173
19174         New module 'uninorm/u16-normcoll'.
19175         * lib/uninorm/u16-normcoll.c: New file.
19176         * modules/uninorm/u16-normcoll: New file.
19177
19178         New module 'uninorm/u8-normcoll'.
19179         * lib/uninorm.h (u8_normcoll, u16_normcoll, u32_normcoll): New
19180         declarations.
19181         * lib/uninorm/u8-normcoll.c: New file.
19182         * lib/uninorm/u-normcoll.h: New file.
19183         * modules/uninorm/u8-normcoll: New file.
19184
19185         New module 'uninorm/u32-normxfrm'.
19186         * lib/uninorm/u32-normxfrm.c: New file.
19187         * modules/uninorm/u32-normxfrm: New file.
19188
19189         New module 'uninorm/u16-normxfrm'.
19190         * lib/uninorm/u16-normxfrm.c: New file.
19191         * modules/uninorm/u16-normxfrm: New file.
19192
19193         New module 'uninorm/u8-normxfrm'.
19194         * lib/uninorm.h (u8_normxfrm, u16_normxfrm, u32_normxfrm): New
19195         declarations.
19196         * lib/uninorm/u8-normxfrm.c: New file.
19197         * lib/uninorm/u-normxfrm.h: New file.
19198         * modules/uninorm/u8-normxfrm: New file.
19199
19200 2009-03-07  Bruno Haible  <bruno@clisp.org>
19201
19202         * modules/uninorm/u8-normcmp (Depends-on): Add uninorm/base.
19203         * modules/uninorm/u16-normcmp (Depends-on): Likewise.
19204         * modules/uninorm/u32-normcmp (Depends-on): Likewise.
19205
19206 2009-03-07  Bruno Haible  <bruno@clisp.org>
19207
19208         New module 'memxfrm'.
19209         * lib/memxfrm.h: New file.
19210         * lib/memxfrm.c: New file.
19211         * modules/memxfrm: New file.
19212
19213 2009-03-07  Bruno Haible  <bruno@clisp.org>
19214
19215         New module 'memcmp2'.
19216         * lib/memcmp2.h: New file.
19217         * lib/memcmp2.c: New file.
19218         * modules/memcmp2: New file.
19219
19220 2009-03-07  Bruno Haible  <bruno@clisp.org>
19221
19222         Tests for module 'uninorm/decomposing-form'.
19223         * modules/uninorm/decomposing-form-tests: New file.
19224         * tests/uninorm/test-decomposing-form.c: New file.
19225
19226         New module 'uninorm/decomposing-form'.
19227         * lib/uninorm.h (uninorm_decomposing_form): New declaration.
19228         * lib/uninorm/normalize-internal.h (struct unicode_normalization_form):
19229         Add 'decomposing_variant' field.
19230         * lib/uninorm/decomposing-form.c: New file.
19231         * lib/uninorm/nfc.c (uninorm_nfc): Update.
19232         * lib/uninorm/nfd.c (uninorm_nfd): Update.
19233         * lib/uninorm/nfkc.c (uninorm_nfkc): Update.
19234         * lib/uninorm/nfkd.c (uninorm_nfkd): Update.
19235         * modules/uninorm/decomposing-form: New file.
19236         * modules/uninorm/nfc (Depends-on): Add uninorm/nfd.
19237         * modules/uninorm/nfkc (Depends-on): Add uninorm/nfkd.
19238
19239 2009-03-07  Bruno Haible  <bruno@clisp.org>
19240
19241         * lib/uninorm/u-normcmp.h (FUNC): Use stack=allocated buffers for small
19242         strings.
19243
19244 2009-03-06  Bruno Haible  <bruno@clisp.org>
19245
19246         Tests for module 'uninorm/u32-normcmp'.
19247         * tests/uninorm/test-u32-normcmp.c: New file.
19248         * modules/uninorm/u32-normcmp-tests: New file.
19249
19250         Tests for module 'uninorm/u16-normcmp'.
19251         * tests/uninorm/test-u16-normcmp.c: New file.
19252         * modules/uninorm/u16-normcmp-tests: New file.
19253
19254         Tests for module 'uninorm/u8-normcmp'.
19255         * tests/uninorm/test-u8-normcmp.c: New file.
19256         * modules/uninorm/u8-normcmp-tests: New file.
19257
19258         New module 'uninorm/u32-normcmp'.
19259         * lib/uninorm/u32-normcmp.c: New file.
19260         * modules/uninorm/u32-normcmp: New file.
19261
19262         New module 'uninorm/u16-normcmp'.
19263         * lib/uninorm/u16-normcmp.c: New file.
19264         * modules/uninorm/u16-normcmp: New file.
19265
19266         New module 'uninorm/u8-normcmp'.
19267         * lib/uninorm.h (u8_normcmp, u16_normcmp, u32_normcmp): New
19268         declarations.
19269         * lib/uninorm/u8-normcmp.c: New file.
19270         * lib/uninorm/u-normcmp.h: New file.
19271         * modules/uninorm/u8-normcmp: New file.
19272
19273 2009-03-06  Bruno Haible  <bruno@clisp.org>
19274
19275         * lib/w32spawn.h (dup_noinherit): Add cast, to avoid gcc warning.
19276         Reported by Eric Blake.
19277
19278 2009-03-06  Eric Blake  <ebb9@byu.net>
19279             Bruno Haible  <bruno@clisp.org>
19280
19281         * lib/spawni.c (__spawni) [WIN32_NATIVE]: Define as a stub.
19282         * modules/posix_spawn-tests (configure.ac): Define POSIX_SPAWN_PORTED
19283         condition.
19284         (Makefile.am): Do nothing if POSIX_SPAWN_PORTED is false.
19285         * modules/posix_spawnp-tests (configure.ac): Define POSIX_SPAWN_PORTED
19286         condition.
19287         (Makefile.am): Do nothing if POSIX_SPAWN_PORTED is false.
19288
19289 2009-03-06  Eric Blake  <ebb9@byu.net>
19290
19291         * lib/execute.c (execute) [WIN32_NATIVE]: Cast arguments of spawnvpe,
19292         to avoid compiler warnings.
19293         * lib/pipe.c (create_pipe) [WIN32_NATIVE]: Likewise.
19294
19295 2009-03-05  Bruno Haible  <bruno@clisp.org>
19296
19297         * tests/test-ftell.c (main): Disable test beyond end of file on
19298         FreeMiNT.
19299         Patch by Alan Hourihane <alanh@fairlite.co.uk>.
19300
19301 2009-03-05  Kamil Dudka  <kdudka@redhat.com>
19302
19303         * lib/filevercmp.c: Move hidden files up in ordering.
19304         * tests/test-filevercmp.c: Add tests for hidden files.
19305
19306 2009-03-04  Bruno Haible  <bruno@clisp.org>
19307
19308         * modules/visibility (Makefile.am): Augment AM_CFLAGS.
19309         * gnulib-tool (func_emit_lib_Makefile_am): Emit initialization of
19310         AM_CFLAGS.
19311         Reported by Simon Josefsson.
19312
19313 2009-03-03  Bruno Haible  <bruno@clisp.org>
19314
19315         * doc/visibility.texi: Recommend to use HAVE_VISIBILITY as a C macro.
19316         Reported by Simon Josefsson.
19317
19318         * doc/ld-version-script.texi: Update node reference.
19319
19320 2009-03-03  Bruno Haible  <bruno@clisp.org>
19321
19322         * modules/visibility (License): Change to 'unlimited'.
19323         Suggested by Simon Josefsson.
19324
19325 2009-03-03  Jim Meyering  <meyering@redhat.com>
19326
19327         unlinkdir: cannot_unlink_dir may modify process state
19328         * lib/unlinkdir.c (cannot_unlink_dir): Add a comment warning that
19329         it's neither thread-safe nor appropriate for use in a library.
19330
19331 2009-03-03  Eric Blake  <ebb9@byu.net>
19332
19333         test-closein: silence test under Darwin
19334         * tests/test-closein.sh: Ignore stderr from cat, since we don't
19335         care if it dies from EPIPE or EBADF.
19336
19337 2009-03-03  Bruno Haible  <bruno@clisp.org>
19338
19339         * doc/gnulib.texi: Include visibility.texi and ld-version-script.texi
19340         earlier.
19341         * doc/visibility.texi: Fix @node and @section.
19342
19343 2009-03-03  Simon Josefsson  <simon@josefsson.org>
19344
19345         * doc/gnulib.texi: Link to sections for ld version script and
19346         visibility.
19347         * doc/visibility.texi: Add @node and @section.
19348         * modules/ld-version-script: New module.
19349         * m4/ld-version-script.m4: New file.
19350         * doc/ld-version-script.texi: New file.
19351
19352 2009-03-02  David Lutterkort  <lutter@redhat.com>
19353
19354         * lib/safe-alloc.h (__GNUC_PREREQ): New macro.
19355         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
19356
19357 2009-03-02  Bruno Haible  <bruno@clisp.org>
19358
19359         * doc/visibility.texi: Mention libtool's -export-symbols option.
19360
19361 2009-03-02  Jim Meyering  <meyering@redhat.com>
19362
19363         announce-gen: new option: --no-print-checksums
19364         * build-aux/announce-gen (usage): Describe it.
19365         (print_checksums): Print a newline here, not in the [*] footnote.
19366         (main): Honor it.
19367
19368 2009-03-01  Bruno Haible  <bruno@clisp.org>
19369
19370         Use socklen_t in the native Windows replacements prototypes.
19371         * lib/sys_socket.in.h (rpl_getsockopt, rpl_setsockopt): Use socklen_t
19372         instead of 'int'.
19373         * lib/getsockopt.c (rpl_getsockopt): Likewise.
19374         * lib/setsockopt.c (rpl_setsockopt): Likewise.
19375         * modules/getsockopt (Depends-on): Add socklen.
19376         * modules/setsockopt (Depends-on): Add socklen.
19377
19378 2009-03-01  Bruno Haible  <bruno@clisp.org>
19379
19380         * gnulib-tool (sed): Do alias as "sed --posix" if sed's version is at
19381         least 4.2.
19382
19383 2009-03-01  Eric Blake  <ebb9@byu.net>
19384             Bruno Haible  <bruno@clisp.org>
19385
19386         * lib/wait-process.h (wait_subprocess): Describe effect of termsigp on
19387         error messages.
19388         * lib/wait-process.c (wait_subprocess): Omit error message about
19389         deadly signal sent to the child of termsigp != NULL.
19390
19391 2009-03-01  Eric Blake  <ebb9@byu.net>
19392
19393         * lib/wait-process.c (wait_subprocess): Remove unnecessary cast.
19394
19395 2009-03-01  Bruno Haible  <bruno@clisp.org>
19396
19397         Avoid a gcc warning.
19398         * tests/test-sched.c (b): Make global.
19399         Reported by Eric Blake.
19400
19401 2009-01-19  Martin Lambers  <marlam@marlam.de>
19402
19403         Provide POSIX semantics for socket timeout options on W32.
19404         * lib/setsockopt.c: Convert struct timeval to milliseconds on W32.
19405         * lib/getsockopt.c: Convert milliseconds to struct timeval on W32.
19406         * modules/setsockopt: Depend on sys_time module for struct timeval.
19407         * modules/getsockopt: Depend on sys_time module for struct timeval.
19408
19409 2009-03-01  Simon Josefsson  <simon@josefsson.org>
19410
19411         * lib/gai_strerror.c (values): Use EAI_INPROGRESS instead of
19412         __USE_GNU, for consistency with netdb.in.h.
19413         Reported by Alan Hourihane <alanh@fairlite.co.uk>.
19414
19415 2009-03-01  Bruno Haible  <bruno@clisp.org>
19416
19417         More support for FreeMiNT.
19418         * lib/fseeko.c (rpl_fseeko): Complete last commit.
19419         Reported by Alan Hourihane <alanh@fairlite.co.uk>.
19420
19421 2009-03-01  Bruno Haible  <bruno@clisp.org>
19422
19423         More support for FreeMiNT.
19424         * lib/fpurge.c (fpurge): Correct last commit.
19425         Reported by Alan Hourihane <alanh@fairlite.co.uk>.
19426
19427 2009-03-01  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
19428
19429         Fix unportable awk script in vc-list-files.
19430         * build-aux/vc-list-files: In the replacement awk script, use
19431         substr with a second argument of 1, not zero.
19432         Report by Simon Josefsson.
19433
19434 2009-02-28  Bruno Haible  <bruno@clisp.org>
19435
19436         More support for FreeMiNT.
19437         * lib/freading.c (freading) [__MINT__]: Use new macros that were added
19438         to FreeMiNT today.
19439         * lib/fwriting.c (fwriting): Likewise.
19440         Based on patch by Alan Hourihane <alanh@fairlite.co.uk>.
19441
19442 2009-02-28  Bruno Haible  <bruno@clisp.org>
19443
19444         * tests/test-freadseek.c (main): Disable test beyond end of file on
19445         FreeMiNT.
19446         * tests/test-ftello.c (main): Likewise.
19447         Patch by Alan Hourihane <alanh@fairlite.co.uk>.
19448
19449 2009-02-28  Bruno Haible  <bruno@clisp.org>
19450
19451         Add tentative support for FreeMiNT.
19452         * lib/fbufmode.c (fbufmode) [__MINT__]: Add conditional code.
19453         * lib/fpurge.c (fpurge): Likewise.
19454         * lib/freadable.c (freadable): Likewise.
19455         * lib/freading.c (freading): Likewise.
19456         * lib/freadptr.c (freadptr): Likewise.
19457         * lib/freadseek.c (freadptrinc): Likewise.
19458         * lib/fseeko.c (rpl_fseeko): Likewise.
19459         * lib/fseterr.c (fseterr): Likewise.
19460         * lib/fwritable.c (fwritable): Likewise.
19461         * lib/fwriting.c (fwriting): Likewise.
19462         * lib/freadahead.c (freadahead): Likewise, based on code by Alan
19463         Hourihane.
19464         Reported by Alan Hourihane <alanh@fairlite.co.uk>.
19465
19466 2009-02-28  Bruno Haible  <bruno@clisp.org>
19467
19468         * lib/wait-process.h (wait_subprocess): Clarify restriction regarding
19469         SIGCHLD.
19470         Reported by Jim Meyering.
19471
19472 2009-02-28  Bruno Haible  <bruno@clisp.org>
19473
19474         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_LS): Separate the two first tests.
19475         Mention the results of these tests on various platforms.
19476         * doc/posix-functions/fprintf.texi: Mention platforms in canonical
19477         order.
19478         * doc/posix-functions/printf.texi: Likewise.
19479         * doc/posix-functions/snprintf.texi: Likewise.
19480         * doc/posix-functions/sprintf.texi: Likewise.
19481         * doc/posix-functions/vfprintf.texi: Likewise.
19482         * doc/posix-functions/vprintf.texi: Likewise.
19483         * doc/posix-functions/vsnprintf.texi: Likewise.
19484         * doc/posix-functions/vsprintf.texi: Likewise.
19485         * doc/glibc-functions/obstack_printf.texi: Likewise.
19486         * doc/glibc-functions/obstack_vprintf.texi: Likewise.
19487
19488 2009-02-28  Bruno Haible  <bruno@clisp.org>
19489
19490         * build-aux/po/Makefile.in.in: Update from GNU gettext 0.17.
19491         Reported by Loïc Minier <lool@dooz.org>.
19492
19493 2009-02-27  Bruno Haible  <bruno@clisp.org>
19494
19495         * gnulib-tool (func_import): Make the sed expression used to create the
19496         sed script for updating the .gitignore file POSIX compliant.
19497         Reported by Eric Blake.
19498
19499 2009-02-27  Bruno Haible  <bruno@clisp.org>
19500
19501         * gnulib-tool (sed): Don't alias as "sed --posix".
19502         Reported by Eric Blake.
19503
19504 2009-02-27  Bruno Haible  <bruno@clisp.org>
19505
19506         Avoid test link errors.
19507         * modules/uninorm/nfc-tests (test_u32_nfc_big_LDADD): New variable.
19508         * modules/uninorm/nfd-tests (test_u32_nfd_big_LDADD): New variable.
19509         * modules/uninorm/nfkc-tests (test_u32_nfkc_big_LDADD): New variable.
19510         * modules/uninorm/nfkd-tests (test_u32_nfkd_big_LDADD): New variable.
19511         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
19512
19513 2009-02-27  Bruno Haible  <bruno@clisp.org>
19514
19515         Avoid spurious "(cached)" in configure output.
19516         * m4/gnulib-common.m4 (gl_CACHE_VAL_SILENT): New macro.
19517         * m4/ceil.m4 (gl_FUNC_CEIL_LIBS): Use it instead of AC_CACHE_VAL.
19518         * m4/ceilf.m4 (gl_FUNC_CEILF_LIBS): Likewise.
19519         * m4/ceill.m4 (gl_FUNC_CEILL_LIBS): Likewise.
19520         * m4/floor.m4 (gl_FUNC_FLOOR_LIBS): Likewise.
19521         * m4/floorf.m4 (gl_FUNC_FLOORF_LIBS): Likewise.
19522         * m4/floorl.m4 (gl_FUNC_FLOORL_LIBS): Likewise.
19523         * m4/stdarg.m4 (gl_STDARG_H): Likewise.
19524         Reported by Eric Blake.
19525
19526 2009-02-27  Eric Blake  <ebb9@byu.net>
19527
19528         printf: fix regression in previous patch
19529         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_LS): Fix compilation error.
19530
19531 2009-02-27  Bruno Haible  <bruno@clisp.org>
19532
19533         * lib/inttypes.in.h: Test merely whether _LP64 is defined, not its
19534         value.
19535         * lib/stdint.in.h: Likewise.
19536         Suggested by Eric Blake. Reported by Peter Bray <pdb_ml@yahoo.com.au>.
19537
19538 2009-02-27  Eric Blake  <ebb9@byu.net>
19539
19540         doc: mention more functions added in cygwin 1.7.0
19541         * doc/posix-functions/mbsnrtowcs.texi: Mention recent cygwin 1.7.0
19542         addition.
19543         * doc/posix-functions/open_wmemstream.texi: Likewise.
19544         * doc/posix-functions/wcsnlen.texi: Likewise.
19545         * doc/posix-functions/wcsnrtombs.texi: Likewise.
19546         * doc/posix-functions/wcstod.texi: Likewise.
19547         * doc/posix-functions/wcstof.texi: Likewise.
19548         * doc/posix-functions/wcstoimax.texi: Likewise.
19549         * doc/posix-functions/wcstok.texi: Likewise.
19550         * doc/posix-functions/wcstoumax.texi: Likewise.
19551
19552         Detect bug in cygwin 1.5.x *printf on 1-character %ls.
19553         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_LS): Enhance filter.
19554         * doc/posix-functions/fprintf.texi: Update.
19555         * doc/posix-functions/printf.texi: Update.
19556         * doc/posix-functions/snprintf.texi: Update.
19557         * doc/posix-functions/sprintf.texi: Update.
19558         * doc/posix-functions/vfprintf.texi: Update.
19559         * doc/posix-functions/vprintf.texi: Update.
19560         * doc/posix-functions/vsnprintf.texi: Update.
19561         * doc/posix-functions/vsprintf.texi: Update.
19562         * doc/glibc-functions/obstack_printf.texi: Update.
19563         * doc/glibc-functions/obstack_vprintf.texi: Update.
19564
19565 2009-02-26  Eric Blake  <ebb9@byu.net>
19566
19567         avoid gcc 3.4.3 bug on long double NaN on Irix 6.5
19568         * tests/nan.h (NaNl): Rewrite as function on Irix, to avoid
19569         compilation bug by using runtime conversion.
19570         * m4/isfinite.m4 (gl_ISFINITE): Likewise.
19571         * m4/isnanl.m4 (gl_FUNC_ISNANL): Likewise.
19572         * modules/ceill-tests (Files): Use nan.h.
19573         * modules/floorl-tests (Files): Likewise.
19574         * modules/frexpl-tests (Files): Likewise.
19575         * modules/isnanl-tests (Files): Likewise.
19576         * modules/ldexpl-tests (Files): Likewise.
19577         * modules/roundl-tests (Files): Likewise.
19578         * modules/truncl-tests (Files): Likewise.
19579         * tests/test-ceill.c (main): Use a working NaN.
19580         * tests/test-floorl.c (main): Likewise.
19581         * tests/test-frexpl.c (main): Likewise.
19582         * tests/test-isnan.c (test_long_double): Likewise.
19583         * tests/test-isnanl.h (main): Likewise.
19584         * tests/test-ldexpl.h (main): Likewise.
19585         * tests/test-roundl.h (main): Likewise.
19586         * tests/test-truncl.h (main): Likewise.
19587         See http://lists.gnu.org/archive/html/bug-gnulib/2009-02/msg00190.html.
19588
19589 2009-02-26  Eric Blake  <ebb9@byu.net>
19590             Bruno Haible  <bruno@clisp.org>
19591
19592         Work around a *printf bug with %ls on Solaris.
19593         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_LS): Also test whether, when a
19594         precision is specified, sprintf stops converting the wide string
19595         argument when the number of bytes that have been produced by this
19596         conversion equals or exceeds the precision.
19597         * doc/posix-functions/fprintf.texi: Update.
19598         * doc/posix-functions/printf.texi: Update.
19599         * doc/posix-functions/snprintf.texi: Update.
19600         * doc/posix-functions/sprintf.texi: Update.
19601         * doc/posix-functions/vfprintf.texi: Update.
19602         * doc/posix-functions/vprintf.texi: Update.
19603         * doc/posix-functions/vsnprintf.texi: Update.
19604         * doc/posix-functions/vsprintf.texi: Update.
19605         * doc/glibc-functions/obstack_printf.texi: Update.
19606         * doc/glibc-functions/obstack_vprintf.texi: Update.
19607
19608 2009-02-26  Eric Blake  <ebb9@byu.net>
19609
19610         stdlib: favor compiler check of random.h
19611         * m4/stdlib_h.m4 (gl_STDLIB_H): Skip preprocessor check.  Needed
19612         to avoid an ObjC random.h installed by Swarm.
19613
19614 2009-02-26  Bruno Haible  <bruno@clisp.org>
19615
19616         Work around *printf bug with %g directive and 0.0 on HP-UX 10.20.
19617         * m4/printf.m4 (gl_PRINTF_INFINITE): Also test for %g output of -0.0.
19618         Reported by Gary V. Vaughan <gary@gnu.org>.
19619
19620 2009-02-26  Bruno Haible  <bruno@clisp.org>
19621
19622         Fix *printf behaviour regarding the %ls directive.
19623         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_LS): New macro.
19624         * lib/vasnprintf.c (local_wcslen, VASNPRINTF): Handle
19625         NEED_PRINTF_DIRECTIVE_LS.
19626         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_DIRECTIVE_LS): New macro.
19627         (gl_PREREQ_VASNPRINTF_WITH_EXTRAS): Invoke it.
19628         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
19629         gl_PREREQ_VASNPRINTF_DIRECTIVE_LS and test its result. Invoke
19630         gl_PREREQ_VASNPRINTF_DIRECTIVE_LS.
19631         * m4/dprintf-posix.m4 (gl_FUNC_DPRINTF_POSIX): Likewise.
19632         * m4/obstack-printf-posix.m4 (gl_FUNC_OBSTACK_PRINTF_POSIX): Likewise.
19633         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
19634         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
19635         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
19636         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
19637         * m4/vdprintf-posix.m4 (gl_FUNC_VDPRINTF_POSIX): Likewise.
19638         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
19639         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
19640         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
19641         * doc/posix-functions/fprintf.texi: Update.
19642         * doc/posix-functions/printf.texi: Update.
19643         * doc/posix-functions/snprintf.texi: Update.
19644         * doc/posix-functions/sprintf.texi: Update.
19645         * doc/posix-functions/vfprintf.texi: Update.
19646         * doc/posix-functions/vprintf.texi: Update.
19647         * doc/posix-functions/vsnprintf.texi: Update.
19648         * doc/posix-functions/vsprintf.texi: Update.
19649         * doc/glibc-functions/obstack_printf.texi: Update.
19650         * doc/glibc-functions/obstack_vprintf.texi: Update.
19651         Reported by Eric Blake.
19652
19653 2009-02-25  Bruno Haible  <bruno@clisp.org>
19654
19655         * m4/mbrtowc.m4 (gl_MBRTOWC_NUL_RETVAL): Update guess for Solaris 8
19656         with known value.
19657         Reported by Gary V. Vaughan <gary@gnu.org>.
19658
19659 2009-02-25  Bruno Haible  <bruno@clisp.org>
19660
19661         Work around mbrtowc bug in zh_CN.GB18030 locale on Solaris 8.
19662         * m4/mbrtowc.m4 (gl_MBRTOWC_SANITYCHECK): New macro.
19663         (gl_MBSTATE_T_BROKEN): Invoke it. Replace mbstate_t when it says "no".
19664         * doc/posix-functions/mbrtowc.texi: Document the Solaris 8 bug.
19665         Reported by Gary V. Vaughan <gary@gnu.org>.
19666
19667 2009-02-25  Bruno Haible  <bruno@clisp.org>
19668
19669         Work around broken INT8_MAX, UINT8_MAX etc. values on HP-UX 11.23.
19670         * m4/stdint.m4 (gl_STDINT_H): Also check whether the expansions of
19671         INT8_MAX, UINT8_MAX etc. contain casts to elementary types.
19672         * doc/posix-headers/stdint.texi: Mention the HP-UX bug.
19673         Reported by Gary V. Vaughan <gary@gnu.org>.
19674
19675 2009-02-25  Eric Blake  <ebb9@byu.net>
19676
19677         tests: skip fseek/ftell tests if ungetc is broken
19678         * m4/ungetc.m4: New file.
19679         * modules/fseek-tests: Split test, so ungetc dependency is
19680         separate from rest of test.
19681         * modules/fseeko-tests: Likewise.
19682         * modules/ftell-tests: Likewise.
19683         * modules/ftello-tests: Likewise.
19684         * tests/test-fseek.c (main): Isolate ungetc dependency.
19685         * tests/test-fseeko.c (main): Likewise.
19686         * tests/test-ftell.c (main): Likewise.
19687         * tests/test-ftello.c (main): Likewise.
19688         * tests/test-fseek2.sh: New file.
19689         * tests/test-fseeko2.sh: Likewise.
19690         * tests/test-ftell2.sh: Likewise.
19691         * tests/test-ftello2.sh: Likewise.
19692
19693 2009-02-25  OndÅ™ej Vašík  <ovasik@redhat.com>
19694
19695         test-getaddrinfo: fix usage of skip return code 77
19696         * tests/test-gettaddrinfo.c: Return skip code 77 only
19697         for first occurance of skip (4x77 is not 77)
19698
19699 2009-02-25  Gary V. Vaughan  <gary@gnu.org>
19700
19701         strtod: avoid C99 decl-after-statement
19702         * m4/strtod.m4 (gl_FUNC_STRTOD): Rearrange declaration.
19703
19704 2009-02-24  Eric Blake  <ebb9@byu.net>
19705
19706         strtod: detect HP-UX 11.31 bug
19707         * m4/strtod.m4 (gl_FUNC_STRTOD): Detect errno handling bug.
19708         Reported by Gary V. Vaughan.
19709
19710 2009-02-23  Bruno Haible  <bruno@clisp.org>
19711
19712         Fix invalid read past end of memory block.
19713         * lib/vasnprintf.c (DCHAR_SET): Define.
19714         (local_wcslen): Define only when needed.
19715         (local_strnlen, local_wcsnlen): New functions.
19716         (VASNPRINTF) [!USE_SNPRINTF && HAVE_WCHAR_T]: Implement the %s and %ls
19717         directives that involve a conversion ourselves.
19718         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF): Also check for strnlen,
19719         wcsnlen, mbrtowc, wcrtomb.
19720         * tests/test-vasnprintf-posix.c (test_function): Add tests for %.*s.
19721         * tests/test-vasprintf-posix.c (test_function): Likewise.
19722         * tests/test-snprintf-posix.h (test_function): Likewise.
19723         * tests/test-sprintf-posix.h (test_function): Likewise.
19724         Reported by Ben Pfaff <blp@cs.stanford.edu>.
19725
19726 2009-02-22  Bruno Haible  <bruno@clisp.org>
19727
19728         Implement new clarified decomposition of Hangul syllables.
19729         * lib/uninorm/decomposition.c (uc_decomposition): For Hangul syllables
19730         of type LTV, return only a pairwise decomposition.
19731         * lib/uninorm/canonical-decomposition.c (uc_canonical_decomposition):
19732         Likewise.
19733         * tests/uninorm/test-decomposition.c (main): Updated expected result.
19734         * tests/uninorm/test-canonical-decomposition.c (main): Likewise.
19735         * tests/uninorm/test-compat-decomposition.c (main): Likewise.
19736
19737 2009-02-22  Bruno Haible  <bruno@clisp.org>
19738
19739         * lib/uninorm/u-normalize-internal.h (FUNC): At the end, handle
19740         zero-length results and shrink excess allocated memory.
19741         * tests/uninorm/test-u8-nfc.c (test_u8_nfc): Check empty string result.
19742         * tests/uninorm/test-u8-nfd.c (test_u8_nfd): Likewise.
19743         * tests/uninorm/test-u8-nfkc.c (test_u8_nfkc): Likewise.
19744         * tests/uninorm/test-u8-nfkd.c (test_u8_nfkd): Likewise.
19745         * tests/uninorm/test-u16-nfc.c (test_u16_nfc): Likewise.
19746         * tests/uninorm/test-u16-nfd.c (test_u16_nfd): Likewise.
19747         * tests/uninorm/test-u16-nfkc.c (test_u16_nfkc): Likewise.
19748         * tests/uninorm/test-u16-nfkd.c (test_u16_nfkd): Likewise.
19749         * tests/uninorm/test-u32-nfc.c (test_u32_nfc): Likewise.
19750         * tests/uninorm/test-u32-nfd.c (test_u32_nfd): Likewise.
19751         * tests/uninorm/test-u32-nfkc.c (test_u32_nfkc): Likewise.
19752         * tests/uninorm/test-u32-nfkd.c (test_u32_nfkd): Likewise.
19753
19754 2009-02-21  Bruno Haible  <bruno@clisp.org>
19755
19756         * doc/gnulib.texi: Include safe-alloc.texi earlier.
19757         * doc/safe-alloc.texi: Terminate sentences with a period. Use two
19758         spaces after a period. Put a space between a macro name and its
19759         argument list. Trivial rewordings.
19760         * lib/safe-alloc.c: Include safe-alloc.h right after config.h.
19761         * tests/test-safe-alloc.c: Likewise. Include stdlib.h.
19762         (main): Return 0 explicitly.
19763
19764 2009-02-21  Bruno Haible  <bruno@clisp.org>
19765
19766         Tests for module 'uninorm/filter'.
19767         * tests/uninorm/test-uninorm-filter-nfc.c: New file.
19768         * modules/uninorm/filter-tests: New file.
19769
19770         New module 'uninorm/filter'.
19771         * lib/uninorm.h (uninorm_filter_create, uninorm_filter_write,
19772         uninorm_filter_flush, uninorm_filter_free): New declarations.
19773         * lib/uninorm/uninorm-filter.c: New file.
19774         * modules/uninorm/filter: New file.
19775
19776 2009-02-21  Bruno Haible  <bruno@clisp.org>
19777
19778         Tests for module 'uninorm/nfkc'.
19779         * tests/uninorm/test-nfkc.c: New file.
19780         * tests/uninorm/test-u8-nfkc.c: New file.
19781         * tests/uninorm/test-u16-nfkc.c: New file.
19782         * tests/uninorm/test-u32-nfkc.c: New file.
19783         * tests/uninorm/test-u32-nfkc-big.sh: New file.
19784         * tests/uninorm/test-u32-nfkc-big.c: New file.
19785         * modules/uninorm/nfkc-tests: New file.
19786
19787         New module 'uninorm/nfkc'.
19788         * lib/uninorm/nfkc.c: New file.
19789         * modules/uninorm/nfkc: New file.
19790
19791         Tests for module 'uninorm/nfkd'.
19792         * tests/uninorm/test-nfkd.c: New file.
19793         * tests/uninorm/test-u8-nfkd.c: New file.
19794         * tests/uninorm/test-u16-nfkd.c: New file.
19795         * tests/uninorm/test-u32-nfkd.c: New file.
19796         * tests/uninorm/test-u32-nfkd-big.sh: New file.
19797         * tests/uninorm/test-u32-nfkd-big.c: New file.
19798         * modules/uninorm/nfkd-tests: New file.
19799
19800         New module 'uninorm/nfkd'.
19801         * lib/uninorm/nfkd.c: New file.
19802         * modules/uninorm/nfkd: New file.
19803
19804         Tests for module 'uninorm/nfc'.
19805         * tests/uninorm/test-nfc.c: New file.
19806         * tests/uninorm/test-u8-nfc.c: New file.
19807         * tests/uninorm/test-u16-nfc.c: New file.
19808         * tests/uninorm/test-u32-nfc.c: New file.
19809         * tests/uninorm/test-u32-nfc-big.sh: New file.
19810         * tests/uninorm/test-u32-nfc-big.c: New file.
19811         * modules/uninorm/nfc-tests: New file.
19812
19813         New module 'uninorm/nfc'.
19814         * lib/uninorm/nfc.c: New file.
19815         * modules/uninorm/nfc: New file.
19816
19817         Tests for module 'uninorm/nfd'.
19818         * tests/uninorm/test-nfd.c: New file.
19819         * tests/uninorm/test-u8-nfd.c: New file.
19820         * tests/uninorm/test-u16-nfd.c: New file.
19821         * tests/uninorm/test-u32-nfd.c: New file.
19822         * tests/uninorm/test-u32-nfd-big.sh: New file.
19823         * tests/uninorm/test-u32-nfd-big.c: New file.
19824         * tests/uninorm/test-u32-normalize-big.h: New file.
19825         * tests/uninorm/test-u32-normalize-big.c: New file.
19826         * tests/uninorm/NormalizationTest.txt: New file, created from
19827         Unicode 5.1.0 NormalizationTest.txt.
19828         * modules/uninorm/nfd-tests: New file.
19829
19830         New module 'uninorm/nfd'.
19831         * lib/uninorm/nfd.c: New file.
19832         * modules/uninorm/nfd: New file.
19833
19834         New module 'uninorm/u32-normalize'.
19835         * lib/uninorm/u32-normalize.c: New file.
19836         * modules/uninorm/u32-normalize: New file.
19837
19838         New module 'uninorm/u16-normalize'.
19839         * lib/uninorm/u16-normalize.c: New file.
19840         * modules/uninorm/u16-normalize: New file.
19841
19842         New module 'uninorm/u8-normalize'.
19843         * lib/uninorm/u8-normalize.c: New file.
19844         * lib/uninorm/normalize-internal.h: New file.
19845         * lib/uninorm/u-normalize-internal.h: New file.
19846         * modules/uninorm/u8-normalize: New file.
19847
19848         New module 'uninorm/decompose-internal'.
19849         * lib/uninorm/decompose-internal.c: New file.
19850         * modules/uninorm/decompose-internal: New file.
19851
19852         Tests for module 'uninorm/composition'.
19853         * tests/uninorm/test-composition.c: New file.
19854         * modules/uninorm/composition-tests: New file.
19855
19856         New module 'uninorm/composition'.
19857         * lib/uninorm/composition.c: New file.
19858         * lib/uninorm/composition-table.gperf: New file, generated by
19859         gen-uni-tables.
19860         * modules/uninorm/composition: New file.
19861
19862         Tests for module 'uninorm/compat-decomposition'.
19863         * tests/uninorm/test-compat-decomposition.c: New file.
19864         * modules/uninorm/compat-decomposition-tests: New file.
19865
19866         New module 'uninorm/compat-decomposition'.
19867         * lib/uninorm/decompose-internal.h: New file.
19868         * lib/uninorm/compat-decomposition.c: New file.
19869         * modules/uninorm/compat-decomposition: New file.
19870
19871         Tests for module 'uninorm/canonical-decomposition'.
19872         * tests/uninorm/test-canonical-decomposition.c: New file.
19873         * modules/uninorm/canonical-decomposition-tests: New file.
19874
19875         New module 'uninorm/canonical-decomposition'.
19876         * lib/uninorm/canonical-decomposition.c: New file.
19877         * modules/uninorm/canonical-decomposition: New file.
19878
19879         Tests for module 'uninorm/decomposition'.
19880         * tests/uninorm/test-decomposition.c: New file.
19881         * modules/uninorm/decomposition-tests: New file.
19882
19883         New module 'uninorm/decomposition'.
19884         * lib/uninorm/decomposition.c: New file.
19885         * modules/uninorm/decomposition: New file.
19886
19887         New module 'uninorm/decomposition-table'.
19888         * lib/uninorm/decomposition-table.h: New file.
19889         * lib/uninorm/decomposition-table.c: New file.
19890         * lib/uninorm/decomposition-table1.h: New file, generated by
19891         gen-uni-tables.
19892         * lib/uninorm/decomposition-table2.h: New file, generated by
19893         gen-uni-tables.
19894         * modules/uninorm/decomposition-table: New file.
19895
19896         * lib/gen-uni-tables.c (MAX_DECOMP_LENGTH): New macro.
19897         (UC_DECOMP_*): New enumeration items.
19898         (get_decomposition): New function.
19899         (struct decomp_table): New type.
19900         (output_decomposition, output_decomposition_tables): New functions.
19901         (unicode_composition_exclusions): New variable.
19902         (fill_composition_exclusions, debug_output_composition_tables): New
19903         functions.
19904         (main): Accept one more argument. Invoke fill_composition_exclusions.
19905         Output decomposition and composition tables.
19906
19907         New module 'uninorm/base'.
19908         * lib/uninorm.h: New file.
19909         * lib/unictype.h: Update comment.
19910         * modules/uninorm/base: New file.
19911
19912 2009-02-21  David Lutterkort  <lutter@redhat.com>
19913
19914         Tests for module 'safe-alloc'.
19915         * tests/test-safe-alloc.c: New file.
19916         * modules/safe-alloc-tests: New file.
19917
19918         New module 'safe-alloc'.
19919         * lib/safe-alloc.h: New file.
19920         * lib/safe-alloc.c: New file.
19921         * m4/safe-alloc.m4: New file.
19922         * modules/safe-alloc: New file.
19923         * doc/safe-alloc.texi: New file.
19924         * doc/gnulib.texi: Include it.
19925         * MODULES.html.sh (Memory management functions <stdlib.h>): Add
19926         safe-alloc.
19927
19928 2009-02-18  Bruno Haible  <bruno@clisp.org>
19929
19930         Fix link error on non-glibc systems.
19931         * modules/uniwbrk/ulc-wordbreaks-tests (test_ulc_wordbreaks_LDADD): New
19932         variable.
19933         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
19934
19935 2009-02-18  Jim Meyering  <meyering@redhat.com>
19936
19937         fts: avoid used-uninitialized error due to recent change
19938         * lib/fts.c (fts_read): Guard uses of the new member,
19939         parent->fts_n_dirs_remaining, since it's not relevant for
19940         the parent of a directory specified on the command-line.
19941
19942 2009-02-17  James Youngman  <jay@gnu.org>
19943             Bruno Haible  <bruno@clisp.org>
19944
19945         * m4/include_next.m4: Reformulate comment.
19946
19947 2009-02-16  Jim Meyering  <meyering@redhat.com>
19948
19949         fts: add #if guards so that the fts_lgpl module still builds
19950         * lib/fts.c: Guard just-added hash-table-using parts with
19951         #if GNULIB_FTS, so as not to break builds of the fts_lgpl module.
19952         Reported by Simon Josefsson.
19953
19954 2009-02-15  Bruno Haible  <bruno@clisp.org>
19955
19956         * modules/array-mergesort-tests: New file.
19957         * tests/test-array-mergesort.c: New file.
19958
19959         New module 'array-mergesort'.
19960         * modules/array-mergesort: New file.
19961         * lib/array-mergesort.h: New file.
19962
19963 2009-02-15  Bruno Haible  <bruno@clisp.org>
19964
19965         Fix 2009-02-07 commit.
19966         * lib/gen-uni-tables.c (output_predicate, output_category,
19967         output_combclass, output_bidi_category, output_decimal_digit,
19968         output_digit, output_numeric, output_mirror, output_scripts,
19969         output_ident_category, output_simple_mapping): Fix format directives.
19970         (output_lbp, output_wbp): Don't convert -1 to a size_t implicitly.
19971
19972 2009-02-15  Albert Chin-A-Young  <china@thewrittenword.com>
19973
19974         * m4/include_next.m4: Update comment about IBM C 9.0/10.1 bug, now that
19975         fixes are available from IBM.
19976
19977 2009-02-13  Jim Meyering  <meyering@redhat.com>
19978
19979         fts: arrange not to stat non-directories in more cases
19980         This makes GNU find (when it doesn't need to stat each file)
19981         *much* more efficient at traversing reiserfs file systems.
19982         * lib/fts_.h (struct ftsent) [fts_n_dirs_remaining]: New member.
19983         (struct FTS) [fts_leaf_optimization_works_ht]: Add member.
19984         * lib/fts.c (fts_close): Free ->fts_leaf_optimization_works_ht.
19985         (S_MAGIC_REISERFS, S_MAGIC_PROC): Define.
19986         (leaf_optimization_applies): New function.
19987         (LCO_hash, LCO_compare): New helper functions.
19988         (link_count_optimize_ok): New function.
19989         (fts_stat): Initialize new member (if dir).
19990         (fts_read): Decrement parent's fts_n_dirs_remaining count if
19991         we've just stat'ed a directory.  Skip the stat call when possible.
19992         ---
19993         Note this AFS-related exchange:
19994         http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=143111
19995         and note find's pioctl call in find/fstype.c.
19996         But that is necessary only if you want to enable the
19997         optimization for AFS, and for now, I don't.
19998
19999         fts: move a function definition "up" (no semantic change)
20000         * lib/fts.c (dirent_inode_sort_may_be_useful): Move definition
20001         "up" to precede upcoming use of a related function.
20002
20003 2009-02-11  Jim Meyering  <meyering@redhat.com>
20004
20005         fts: correct internal computation of nlinks (optimization-related)
20006         * lib/fts.c (fts_build): ISSET(FTS_NOSTAT) has no bearing on
20007         whether the current entry is a directory, so don't test it.
20008
20009 2009-02-10  Bruno Haible  <bruno@clisp.org>
20010
20011         Tests for module 'uniwbrk/ulc-wordbreaks'.
20012         * modules/uniwbrk/ulc-wordbreaks-tests: New file.
20013         * tests/uniwbrk/test-ulc-wordbreaks.sh: New file.
20014         * tests/uniwbrk/test-ulc-wordbreaks.c: New file.
20015
20016         Tests for module 'uniwbrk/u32-wordbreaks'.
20017         * modules/uniwbrk/u32-wordbreaks-tests: New file.
20018         * tests/uniwbrk/test-u32-wordbreaks.c: New file.
20019
20020         Tests for module 'uniwbrk/u16-wordbreaks'.
20021         * modules/uniwbrk/u16-wordbreaks-tests: New file.
20022         * tests/uniwbrk/test-u16-wordbreaks.c: New file.
20023
20024         Tests for module 'uniwbrk/u8-wordbreaks'.
20025         * modules/uniwbrk/u8-wordbreaks-tests: New file.
20026         * tests/uniwbrk/test-u8-wordbreaks.c: New file.
20027
20028 2009-02-10  Bruno Haible  <bruno@clisp.org>
20029
20030         * modules/uniwbrk/u8-wordbreaks (Depends-on): Add uniwbrk/wordbreak
20031         property.
20032         * modules/uniwbrk/u16-wordbreaks (Depends-on): Likewise.
20033         * modules/uniwbrk/u32-wordbreaks (Depends-on): Likewise.
20034         * modules/uniwbrk/ulc-wordbreaks (Depends-on): Add localcharset.
20035
20036 2009-02-10  Simon Josefsson  <simon@josefsson.org>
20037
20038         * m4/sockets.m4: Call AC_C_INLINE since sockets.h now can use
20039         inline keywords.  Reported by Bruno Haible <bruno@clisp.org>.
20040
20041 2009-02-10  Bruno Haible  <bruno@clisp.org>
20042
20043         * lib/unilbrk/lbrktables.h: Renamed from lib/unilbrk/tables.h.
20044         * lib/unilbrk/lbrktables.c: Renamed from lib/unilbrk/tables.c.
20045         * modules/unilbrk/tables (Files, Makefile.am, Include): Update.
20046         * lib/unilbrk/u8-possible-linebreaks.c: Update.
20047         * lib/unilbrk/u16-possible-linebreaks.c: Likewise.
20048         * lib/unilbrk/u32-possible-linebreaks.c: Likewise.
20049
20050 2009-02-09  Simon Josefsson  <simon@josefsson.org>
20051
20052         * lib/sockets.h (gl_fd_to_handle): New function.
20053
20054         * tests/test-sockets.c: Call gl_fd_to_handle.
20055
20056 2009-02-09  Bruno Haible  <bruno@clisp.org>
20057
20058         * doc/havelib.texi: Document the conventions on bi-arch systems.
20059
20060 2009-02-08  Bruno Haible  <bruno@clisp.org>
20061
20062         Document the AC_LIB_LINKFLAGS macro.
20063         * doc/havelib.texi: New file, mostly written on 2005-05-24.
20064         * doc/gnulib.texi: Include it.
20065
20066 2009-02-08  Bruno Haible  <bruno@clisp.org>
20067
20068         Fix wrong order of sections, compared to TOC.
20069         * doc/gnulib.texi: Include relocatable-maint.texi after the
20070         "Regular expressions" node, not before.
20071
20072 2009-02-08  Bruno Haible  <bruno@clisp.org>
20073
20074         Tests for module 'unicase/totitle'.
20075         * modules/unicase/totitle-tests: New file.
20076
20077         Tests for module 'unicase/tolower'.
20078         * modules/unicase/tolower-tests: New file.
20079
20080         Tests for module 'unicase/toupper'.
20081         * modules/unicase/toupper-tests: New file.
20082         * tests/unicase/test-mapping-part1.h: New file.
20083         * tests/unicase/test-mapping-part2.h: New file.
20084
20085         New module 'unicase/totitle'.
20086         * modules/unicase/totitle: New file.
20087         * lib/unicase/totitle.c: New file.
20088
20089         New module 'unicase/tolower'.
20090         * modules/unicase/tolower: New file.
20091         * lib/unicase/tolower.c: New file.
20092
20093         New module 'unicase/toupper'.
20094         * modules/unicase/toupper: New file.
20095         * lib/unicase/toupper.c: New file.
20096         * lib/unicase/simple-mapping.h: New file.
20097
20098         * lib/gen-uni-tables.c (output_simple_mapping_test): New function.
20099         (mapping_table): New structure.
20100         (output_simple_mapping): New function.
20101         (main): Invoke output_simple_mapping_test and output_simple_mapping.
20102         * modules/gen-uni-tables (Description): Update.
20103         * lib/unicase/toupper.h: New file, automatically generated by
20104         gen-uni-tables.
20105         * lib/unicase/tolower.h: New file, automatically generated by
20106         gen-uni-tables.
20107         * lib/unicase/totitle.h: New file, automatically generated by
20108         gen-uni-tables.
20109         * tests/unicase/test-uc_toupper.c: New file, automatically generated by
20110         gen-uni-tables.
20111         * tests/unicase/test-uc_tolower.c: New file, automatically generated by
20112         gen-uni-tables.
20113         * tests/unicase/test-uc_totitle.c: New file, automatically generated by
20114         gen-uni-tables.
20115
20116         New module 'unicase/base'.
20117         * modules/unicase/base: New file.
20118         * lib/unicase.h: New file.
20119
20120 2009-02-08  Bruno Haible  <bruno@clisp.org>
20121
20122         New module 'uniwbrk/ulc-wordbreaks'.
20123         * modules/uniwbrk/ulc-wordbreaks: New file.
20124         * lib/uniwbrk/ulc-wordbreaks.c: New file.
20125
20126         New module 'uniwbrk/u32-wordbreaks'.
20127         * modules/uniwbrk/u32-wordbreaks: New file.
20128         * lib/uniwbrk/u32-wordbreaks.c: New file.
20129
20130         New module 'uniwbrk/u16-wordbreaks'.
20131         * modules/uniwbrk/u16-wordbreaks: New file.
20132         * lib/uniwbrk/u16-wordbreaks.c: New file.
20133
20134         New module 'uniwbrk/u8-wordbreaks'.
20135         * modules/uniwbrk/u8-wordbreaks: New file.
20136         * lib/uniwbrk/u8-wordbreaks.c: New file.
20137         * lib/uniwbrk/u-wordbreaks.h: New file.
20138
20139         New module 'uniwbrk/table'.
20140         * modules/uniwbrk/table: New file.
20141         * lib/uniwbrk/wbrktable.h: New file.
20142         * lib/uniwbrk/wbrktable.c: New file.
20143
20144         New module 'uniwbrk/wordbreak-property'.
20145         * modules/uniwbrk/wordbreak-property: New file.
20146         * lib/uniwbrk/wordbreak-property.c: New file.
20147
20148         * lib/gen-uni-tables.c (WBP_*): New enum items.
20149         (get_wbp, debug_output_wbp, debug_output_wbrk_tables): New functions.
20150         (unicode_org_wbp): New variable.
20151         (fill_org_wbp, debug_output_org_wbp, debug_output_org_wbrk_tables):
20152         New functions.
20153         (wbp_table): New structure.
20154         (output_wbp, output_wbrk_tables): New functions.
20155         (main): Accept additional argument. Invoke fill_org_wbp,
20156         debug_output_wbrk_tables, debug_output_org_wbrk_tables,
20157         output_wbrk_tables.
20158         * modules/gen-uni-tables (Description): Update.
20159         * lib/uniwbrk/wbrkprop.h: New file, automatically generated by
20160         gen-uni-tables.
20161
20162         New module 'uniwbrk/base'.
20163         * modules/uniwbrk/base: New file.
20164         * lib/uniwbrk.h: New file.
20165
20166 2009-02-08  Bruno Haible  <bruno@clisp.org>
20167
20168         Update to Unicode 5.1.0.
20169         * lib/gen-uni-tables.c (is_property_alphabetic): Include
20170         U+2185..U+2188.
20171         (is_property_default_ignorable_code_point): Don't include characters
20172         of category Cc or Cs and not-a-characters.
20173         (get_lbp): Assume REVISION_22. Special handling of U+0609, U+060A,
20174         U+0D79, U+109E, U+109F, U+A60C.
20175         * lib/unictype/bidi_of.h: Regenerated.
20176         * lib/unictype/blocks.h: Regenerated.
20177         * lib/unictype/categ_C.h: Regenerated.
20178         * lib/unictype/categ_Cf.h: Regenerated.
20179         * lib/unictype/categ_Cn.h: Regenerated.
20180         * lib/unictype/categ_L.h: Regenerated.
20181         * lib/unictype/categ_Ll.h: Regenerated.
20182         * lib/unictype/categ_Lm.h: Regenerated.
20183         * lib/unictype/categ_Lo.h: Regenerated.
20184         * lib/unictype/categ_Lu.h: Regenerated.
20185         * lib/unictype/categ_M.h: Regenerated.
20186         * lib/unictype/categ_Mc.h: Regenerated.
20187         * lib/unictype/categ_Me.h: Regenerated.
20188         * lib/unictype/categ_Mn.h: Regenerated.
20189         * lib/unictype/categ_N.h: Regenerated.
20190         * lib/unictype/categ_Nd.h: Regenerated.
20191         * lib/unictype/categ_Nl.h: Regenerated.
20192         * lib/unictype/categ_No.h: Regenerated.
20193         * lib/unictype/categ_P.h: Regenerated.
20194         * lib/unictype/categ_Pd.h: Regenerated.
20195         * lib/unictype/categ_Pe.h: Regenerated.
20196         * lib/unictype/categ_Pf.h: Regenerated.
20197         * lib/unictype/categ_Pi.h: Regenerated.
20198         * lib/unictype/categ_Po.h: Regenerated.
20199         * lib/unictype/categ_Ps.h: Regenerated.
20200         * lib/unictype/categ_S.h: Regenerated.
20201         * lib/unictype/categ_Sk.h: Regenerated.
20202         * lib/unictype/categ_Sm.h: Regenerated.
20203         * lib/unictype/categ_So.h: Regenerated.
20204         * lib/unictype/categ_of.h: Regenerated.
20205         * lib/unictype/combining.h: Regenerated.
20206         * lib/unictype/ctype_alnum.h: Regenerated.
20207         * lib/unictype/ctype_alpha.h: Regenerated.
20208         * lib/unictype/ctype_graph.h: Regenerated.
20209         * lib/unictype/ctype_lower.h: Regenerated.
20210         * lib/unictype/ctype_print.h: Regenerated.
20211         * lib/unictype/ctype_punct.h: Regenerated.
20212         * lib/unictype/ctype_upper.h: Regenerated.
20213         * lib/unictype/decdigit.h: Regenerated.
20214         * lib/unictype/digit.h: Regenerated.
20215         * lib/unictype/mirror.h: Regenerated.
20216         * lib/unictype/numeric.h: Regenerated.
20217         * lib/unictype/pr_alphabetic.h: Regenerated.
20218         * lib/unictype/pr_bidi_arabic_digit.h: Regenerated.
20219         * lib/unictype/pr_bidi_arabic_right_to_left.h: Regenerated.
20220         * lib/unictype/pr_bidi_boundary_neutral.h: Regenerated.
20221         * lib/unictype/pr_bidi_eur_num_terminator.h: Regenerated.
20222         * lib/unictype/pr_bidi_left_to_right.h: Regenerated.
20223         * lib/unictype/pr_bidi_non_spacing_mark.h: Regenerated.
20224         * lib/unictype/pr_bidi_other_neutral.h: Regenerated.
20225         * lib/unictype/pr_combining.h: Regenerated.
20226         * lib/unictype/pr_dash.h: Regenerated.
20227         * lib/unictype/pr_decimal_digit.h: Regenerated.
20228         * lib/unictype/pr_default_ignorable_code_point.h: Regenerated.
20229         * lib/unictype/pr_deprecated.h: Regenerated.
20230         * lib/unictype/pr_diacritic.h: Regenerated.
20231         * lib/unictype/pr_extender.h: Regenerated.
20232         * lib/unictype/pr_format_control.h: Regenerated.
20233         * lib/unictype/pr_grapheme_base.h: Regenerated.
20234         * lib/unictype/pr_grapheme_extend.h: Regenerated.
20235         * lib/unictype/pr_grapheme_link.h: Regenerated.
20236         * lib/unictype/pr_id_continue.h: Regenerated.
20237         * lib/unictype/pr_id_start.h: Regenerated.
20238         * lib/unictype/pr_ideographic.h: Regenerated.
20239         * lib/unictype/pr_ignorable_control.h: Regenerated.
20240         * lib/unictype/pr_lowercase.h: Regenerated.
20241         * lib/unictype/pr_math.h: Regenerated.
20242         * lib/unictype/pr_numeric.h: Regenerated.
20243         * lib/unictype/pr_other_alphabetic.h: Regenerated.
20244         * lib/unictype/pr_other_default_ignorable_code_point.h: Regenerated.
20245         * lib/unictype/pr_other_grapheme_extend.h: Regenerated.
20246         * lib/unictype/pr_other_id_continue.h: Regenerated.
20247         * lib/unictype/pr_other_lowercase.h: Regenerated.
20248         * lib/unictype/pr_other_math.h: Regenerated.
20249         * lib/unictype/pr_punctuation.h: Regenerated.
20250         * lib/unictype/pr_sentence_terminal.h: Regenerated.
20251         * lib/unictype/pr_soft_dotted.h: Regenerated.
20252         * lib/unictype/pr_terminal_punctuation.h: Regenerated.
20253         * lib/unictype/pr_unassigned_code_value.h: Regenerated.
20254         * lib/unictype/pr_unified_ideograph.h: Regenerated.
20255         * lib/unictype/pr_uppercase.h: Regenerated.
20256         * lib/unictype/pr_xid_continue.h: Regenerated.
20257         * lib/unictype/pr_xid_start.h: Regenerated.
20258         * lib/unictype/pr_zero_width.h: Regenerated.
20259         * lib/unictype/scripts.h: Regenerated.
20260         * lib/unictype/scripts_byname.gperf: Regenerated.
20261         * lib/unictype/sy_java_ident.h: Regenerated.
20262         * lib/unilbrk/lbrkprop1.h: Regenerated.
20263         * lib/unilbrk/lbrkprop2.h: Regenerated.
20264         * tests/unictype/test-categ_C.c: Regenerated.
20265         * tests/unictype/test-categ_Cf.c: Regenerated.
20266         * tests/unictype/test-categ_Cn.c: Regenerated.
20267         * tests/unictype/test-categ_L.c: Regenerated.
20268         * tests/unictype/test-categ_Ll.c: Regenerated.
20269         * tests/unictype/test-categ_Lm.c: Regenerated.
20270         * tests/unictype/test-categ_Lo.c: Regenerated.
20271         * tests/unictype/test-categ_Lu.c: Regenerated.
20272         * tests/unictype/test-categ_M.c: Regenerated.
20273         * tests/unictype/test-categ_Mc.c: Regenerated.
20274         * tests/unictype/test-categ_Me.c: Regenerated.
20275         * tests/unictype/test-categ_Mn.c: Regenerated.
20276         * tests/unictype/test-categ_N.c: Regenerated.
20277         * tests/unictype/test-categ_Nd.c: Regenerated.
20278         * tests/unictype/test-categ_Nl.c: Regenerated.
20279         * tests/unictype/test-categ_No.c: Regenerated.
20280         * tests/unictype/test-categ_P.c: Regenerated.
20281         * tests/unictype/test-categ_Pd.c: Regenerated.
20282         * tests/unictype/test-categ_Pe.c: Regenerated.
20283         * tests/unictype/test-categ_Pf.c: Regenerated.
20284         * tests/unictype/test-categ_Pi.c: Regenerated.
20285         * tests/unictype/test-categ_Po.c: Regenerated.
20286         * tests/unictype/test-categ_Ps.c: Regenerated.
20287         * tests/unictype/test-categ_S.c: Regenerated.
20288         * tests/unictype/test-categ_Sk.c: Regenerated.
20289         * tests/unictype/test-categ_Sm.c: Regenerated.
20290         * tests/unictype/test-categ_So.c: Regenerated.
20291         * tests/unictype/test-ctype_alnum.c: Regenerated.
20292         * tests/unictype/test-ctype_alpha.c: Regenerated.
20293         * tests/unictype/test-ctype_graph.c: Regenerated.
20294         * tests/unictype/test-ctype_lower.c: Regenerated.
20295         * tests/unictype/test-ctype_print.c: Regenerated.
20296         * tests/unictype/test-ctype_punct.c: Regenerated.
20297         * tests/unictype/test-ctype_upper.c: Regenerated.
20298         * tests/unictype/test-decdigit.h: Regenerated.
20299         * tests/unictype/test-digit.h: Regenerated.
20300         * tests/unictype/test-numeric.h: Regenerated.
20301         * tests/unictype/test-pr_alphabetic.c: Regenerated.
20302         * tests/unictype/test-pr_bidi_arabic_digit.c: Regenerated.
20303         * tests/unictype/test-pr_bidi_arabic_right_to_left.c: Regenerated.
20304         * tests/unictype/test-pr_bidi_boundary_neutral.c: Regenerated.
20305         * tests/unictype/test-pr_bidi_eur_num_terminator.c: Regenerated.
20306         * tests/unictype/test-pr_bidi_left_to_right.c: Regenerated.
20307         * tests/unictype/test-pr_bidi_non_spacing_mark.c: Regenerated.
20308         * tests/unictype/test-pr_bidi_other_neutral.c: Regenerated.
20309         * tests/unictype/test-pr_combining.c: Regenerated.
20310         * tests/unictype/test-pr_dash.c: Regenerated.
20311         * tests/unictype/test-pr_decimal_digit.c: Regenerated.
20312         * tests/unictype/test-pr_default_ignorable_code_point.c: Regenerated.
20313         * tests/unictype/test-pr_deprecated.c: Regenerated.
20314         * tests/unictype/test-pr_diacritic.c: Regenerated.
20315         * tests/unictype/test-pr_extender.c: Regenerated.
20316         * tests/unictype/test-pr_format_control.c: Regenerated.
20317         * tests/unictype/test-pr_grapheme_base.c: Regenerated.
20318         * tests/unictype/test-pr_grapheme_extend.c: Regenerated.
20319         * tests/unictype/test-pr_grapheme_link.c: Regenerated.
20320         * tests/unictype/test-pr_id_continue.c: Regenerated.
20321         * tests/unictype/test-pr_id_start.c: Regenerated.
20322         * tests/unictype/test-pr_ideographic.c: Regenerated.
20323         * tests/unictype/test-pr_ignorable_control.c: Regenerated.
20324         * tests/unictype/test-pr_lowercase.c: Regenerated.
20325         * tests/unictype/test-pr_math.c: Regenerated.
20326         * tests/unictype/test-pr_numeric.c: Regenerated.
20327         * tests/unictype/test-pr_other_alphabetic.c: Regenerated.
20328         * tests/unictype/test-pr_other_default_ignorable_code_point.c:
20329         Regenerated.
20330         * tests/unictype/test-pr_other_grapheme_extend.c: Regenerated.
20331         * tests/unictype/test-pr_other_id_continue.c: Regenerated.
20332         * tests/unictype/test-pr_other_lowercase.c: Regenerated.
20333         * tests/unictype/test-pr_other_math.c: Regenerated.
20334         * tests/unictype/test-pr_punctuation.c: Regenerated.
20335         * tests/unictype/test-pr_sentence_terminal.c: Regenerated.
20336         * tests/unictype/test-pr_soft_dotted.c: Regenerated.
20337         * tests/unictype/test-pr_terminal_punctuation.c: Regenerated.
20338         * tests/unictype/test-pr_unassigned_code_value.c: Regenerated.
20339         * tests/unictype/test-pr_unified_ideograph.c: Regenerated.
20340         * tests/unictype/test-pr_uppercase.c: Regenerated.
20341         * tests/unictype/test-pr_xid_continue.c: Regenerated.
20342         * tests/unictype/test-pr_xid_start.c: Regenerated.
20343         * tests/unictype/test-pr_zero_width.c: Regenerated.
20344
20345         Update to Unicode 5.1.0.
20346         * lib/uniwidth/width.c (nonspacing_table_data): Add U+0487,
20347         U+0616..U+061A, U+0A51, U+0A75, U+0B44, U+0B62..U+0B63, U+0C62..U+0C63,
20348         U+0D44, U+0D62..U+0D63, U+1033..U+1035, U+103A, U+103D..U+103E,
20349         U+105E..U+1060, U+1071..U+1074, U+1082, U+1085..U+1086, U+108D,
20350         U+1B80..U+1B81, U+1BA2..U+1BA5, U+1BA8..U+1BA9, U+1C2C..U+1C33,
20351         U+1C36..U+1C37, U+1DCB..U+1DE6, U+2064, U+20F0, U+2DE0..U+2DFF,
20352         U+A66F..U+A672, U+A67C..U+A67D, U+A8C4, U+A926..U+A92D, U+A947..U+A951,
20353         U+AA29..U+AA2E, U+AA31..U+AA32, U+AA35..U+AA36, U+AA43, U+AA4C,
20354         U+FE24..U+FE26, U+101FD. Remove U+1929..U+192B.
20355         (nonspacing_table_ind): Update.
20356         * tests/uniwidth/test-uc_width2.sh: Update expected result.
20357
20358         Update to Unicode 5.1.0.
20359         * lib/uniname/gen-uninames.lisp (main): Add the range 0x1Fxxx to the
20360         code transform.
20361         * lib/uniname/uniname.c (unicode_character_name,
20362         unicode_name_character): Add the range 0x1Fxxx to the code transform.
20363         * lib/uniname/uninames.h: Regenerated.
20364         * tests/uniname/UnicodeDataNames.txt: Update to Unicode 5.1.0.
20365
20366 2009-02-07  Bruno Haible  <bruno@clisp.org>
20367
20368         Merge gen-ctype and gen-lbrk into a single program.
20369         * lib/gen-uni-tables.c: New file, incorporating
20370         lib/unictype/gen-ctype.c and lib/unilbrk/gen-lbrk.c.
20371         Add directory prefixes to the names of the generated files.
20372         * lib/unictype/gen-ctype.c: Remove file.
20373         * lib/unilbrk/gen-lbrk.c: Remove file.
20374         * modules/gen-uni-tables: New file.
20375         * modules/unictype/gen-ctype: Remove file.
20376         * modules/unilbrk/gen-lbrk: Remove file.
20377
20378 2009-02-07  Bruno Haible  <bruno@clisp.org>
20379
20380         * lib/unistr.h (u8_strcoll, u16_strcoll, u32_strcoll): New declations.
20381
20382         New module 'unistr/u32-strcoll'.
20383         * modules/unistr/u32-strcoll: New file.
20384         * lib/unistr/u32-strcoll.c: New file.
20385
20386         New module 'unistr/u16-strcoll'.
20387         * modules/unistr/u16-strcoll: New file.
20388         * lib/unistr/u16-strcoll.c: New file.
20389
20390         New module 'unistr/u8-strcoll'.
20391         * modules/unistr/u8-strcoll: New file.
20392         * lib/unistr/u8-strcoll.c: New file.
20393         * lib/unistr/u-strcoll.h: New file.
20394
20395 2009-02-07  Bruno Haible  <bruno@clisp.org>
20396
20397         * test-mbrtowc4.sh (LOCALE_ZH_CN): Fix default value.
20398         * test-mbsnrtowcs4.sh (LOCALE_ZH_CN): Likewise.
20399         * test-mbsrtowcs4.sh (LOCALE_ZH_CN): Likewise.
20400         * test-wcrtomb.sh (LOCALE_ZH_CN): Likewise.
20401         * test-wcsnrtombs4.sh (LOCALE_ZH_CN): Likewise.
20402         * test-wcsrtombs4.sh (LOCALE_ZH_CN): Likewise.
20403
20404 2009-02-07  Bruno Haible  <bruno@clisp.org>
20405
20406         Make 64-bit clean.
20407         * lib/unictype/gen-ctype.c (output_predicate, output_category,
20408         output_combclass, output_bidi_category, output_decimal_digit,
20409         output_digit, output_numeric, output_mirror, output_scripts,
20410         output_ident_category): Use proper width specifier in format strings.
20411
20412 2009-02-07  Bruno Haible  <bruno@clisp.org>
20413
20414         * doc/posix-functions/dirfd.texi: Clarify situation on mingw. Document
20415         failure behaviour.
20416
20417 2009-02-07  Jim Meyering  <meyering@redhat.com>
20418
20419         regex: avoid compilation failure with upcoming gcc-4.4
20420         * lib/regex_internal.h: Revert e48d8b47fb3eee81d341b71c3e006efe9e3433a7
20421         [workaround for PGC prior to 6.1-2].  Otherwise, we'd get this:
20422         "... error: integer overflow in preprocessor expression".
20423
20424 2009-02-05  Ben Pfaff  <blp@gnu.org>
20425
20426         Fix link errors on Windows when close module is used.
20427         * modules/close: Add $(LIB_CLOSE) to Link section.
20428         * m4/close.m4 (gl_REPLACE_CLOSE): Substitute -lws2_32 into
20429         $(LIB_CLOSE) on Windows.
20430
20431 2009-02-05  Jim Meyering  <meyering@redhat.com>
20432
20433         still avoid unused-parameter warnings, but do it cleanly
20434         * lib/fsusage.c (UNUSED_PARAM): Remove definition.
20435         (get_fs_usage): Cast to void instead.
20436         * lib/mountlist.c (UNUSED_PARAM): Remove definition.
20437         (dev_from_mount_options, read_file_system_list): Cast to void.
20438         Prompted by Bruno Haible.
20439
20440 2009-02-04  Jim Meyering  <meyering@redhat.com>
20441
20442         fsusage.c: correct copyright year
20443         * lib/fsusage.c: Reflect year in which the change is pushed into
20444
20445         avoid misc. warnings
20446         * lib/fsusage.c (UNUSED_PARAM): Define.
20447         (get_fs_usage): Mark parameter "disk" as unused.
20448         * lib/getugroups.c (getgrent): Use "void" in prototype.
20449         * lib/mountlist.c: Mark unused parameters.
20450         (read_file_system_list): Declare a local with "const".
20451         * lib/nanosleep.c (getnow): Declare static.
20452         * lib/strftime.c: Include strftime.h, for declaration of nstrftime.
20453
20454         dirfd: set errno upon failure
20455         * lib/dirfd.c: Include <errno.h>.
20456         Set errno to ENOTSUP when returning -1.
20457         * modules/dirfd (Depends-on): Add errno.
20458         Suggested by John Kodis <kodis@comcast.net>.
20459
20460 2009-02-01  Bruno Haible  <bruno@clisp.org>
20461
20462         Don't assume sizeof (long) >= sizeof (void *).
20463         * lib/memcmp.c: Include stdint.h.
20464         (memcmp_bytes): Change argument types to op_t. Change type of srcp1,
20465         srcp2 to 'const byte *'.
20466         (memcmp_common_alignment, memcmp_not_common_alignment): Change argument
20467         types to uintptr_t.
20468         (rpl_memcmp): Change type of srcp1, srcp2 to 'uintptr_t'.
20469         * modules/memcmp (Depends-on): Add stdint.
20470         Reported by Ozkan Sezer <sezeroz@gmail.com>.
20471
20472 2009-01-30  Eric Blake  <ebb9@byu.net>
20473
20474         fix more require-before-expand issues
20475         * m4/pmccabe2html.m4 (gl_PMCCABE2HTML): Require, rather than
20476         expand, AC_PROG_AWK.
20477         * m4/gnulib-common.m4 (AC_PROG_MKDIR_P): Use AC_DEFUN_ONCE.
20478
20479 2009-01-28  Eric Blake  <ebb9@byu.net>
20480
20481         version-etc: use consistent URL formatting
20482         * lib/version-etc.c (emit_bug_reporting_address, version_etc_va):
20483         Improve formatting.  Use fputs for string without %.
20484
20485 2009-01-28  Jim Meyering  <meyering@redhat.com>
20486
20487         00gnulib.m4: add m4 quotes in shell comment to avoid autoconf warning
20488         * m4/00gnulib.m4 (AC_DEFUN_ONCE): Add quotes to avoid an
20489         "underquoted definition of NAME" from autoconf-2.59.
20490
20491 2009-01-28  Bruno Haible  <bruno@clisp.org>
20492
20493         * doc/gnulib.texi: Add "Obsolete modules" to index.
20494
20495 2009-01-28  Jim Meyering  <meyering@redhat.com>
20496
20497         useless-if-before-free: recognize more variants
20498         * build-aux/useless-if-before-free: Also recognize e.g.,
20499         if (NULL != p) free (p);
20500
20501 2009-01-27  Mark McLoughlin  <markmc@redhat.com>
20502
20503         test-getaddrinfo: skip (don't fail) this test when there's no network
20504         * tests/test-getaddrinfo.c: Skip test upon failure with EAI_AGAIN,
20505         on the presumption that it means you lack network access.
20506
20507 2009-01-26  Jim Meyering  <meyering@redhat.com>
20508
20509         fflush: avoid warnings on modern systems
20510         * lib/fflush.c (rpl_fflush): Move declarations of locals,
20511         pos and result, into scopes where they're used.
20512
20513 2009-01-26  Eric Blake  <ebb9@byu.net>
20514
20515         Silence warning reintroduced by recent extensions patch.
20516         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS)
20517         (gl_USE_SYSTEM_EXTENSIONS): Use AC_DEFUN_ONCE to silence newer
20518         autoconf.
20519
20520         Backport improved autoconf semantics of AC_DEFUN_ONCE.
20521         * m4/00gnulib.m4: New file.
20522         * gnulib-tool (func_get_filelist): Always use it.
20523         * m4/gnulib-common.m4 (gl_COMMON): Force the file to be used.
20524         Reported by Bruno Haible, with suggestions from Paolo Bonzini.
20525
20526 2009-01-25  Bruno Haible  <bruno@clisp.org>
20527
20528         Make test-quotearg work on MacOS X and AIX.
20529         * tests/test-quotearg.sh: New file.
20530         * tests/locale/fr/LC_MESSAGES/test-quotearg.po: New file.
20531         * tests/locale/fr/LC_MESSAGES/test-quotearg.mo: New file.
20532         * tests/test-quotearg.c: Include <locale.h> and gettext.h. Don't
20533         include <libintl.h>.
20534         (fake_locale): Remove variable.
20535         (gettext, dgettext, dcgettext): Remove functions.
20536         (main): Instead of setting a fake locale, set a real locale. Call
20537         textdomain and bindtextdomain.
20538         * modules/quotearg-tests (Files): Add the new files.
20539         (Depends-on): Add gettext, setenv, unsetenv.
20540         (configure.ac): Invoke gt_LOCALE_FR and gt_LOCALE_FR_UTF8.
20541         (Makefile.am): Add test-quotearg.sh to TESTS, remove test-quotearg.
20542         Augment TESTS_ENVIRONMENT.
20543
20544 2009-01-25  Bruno Haible  <bruno@clisp.org>
20545
20546         * m4/locale-fr.m4 (gt_LOCALE_FR): Remove special code that hid the
20547         fr_FR.ISO8859-1 locale on MacOS X.
20548         * m4/locale-ja.m4 (gt_LOCALE_JA): Remove special code that hid the
20549         ja_JP.eucJP locale on MacOS X.
20550         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): Remove special code that hid the
20551         zh_CN.GB18030 locale on MacOS X.
20552
20553 2009-01-25  Bruno Haible  <bruno@clisp.org>
20554
20555         Avoid link errors on MacOS X 10.3.
20556         * lib/mbsrtowcs-state.c (_gl_mbsrtowcs_state): Add initializer.
20557         * lib/wcsrtombs-state.c (_gl_wcsrtombs_state): Likewise.
20558
20559 2009-01-25  Bruno Haible  <bruno@clisp.org>
20560
20561         * lib/pipe.c: On Unix, assume HAVE_POSIX_SPAWN and use posix_spawnp.
20562         * m4/pipe.m4 (gl_PIPE): Remove tests for vfork() based code.
20563         * modules/pipe (Files): Remove m4/posix_spawn.m4.
20564         (Depends-on): Add spawn, posix_spawnp, posix_spawn_file_actions_init,
20565         posix_spawn_file_actions_addclose, posix_spawn_file_actions_adddup2,
20566         posix_spawn_file_actions_addopen, posix_spawn_file_actions_destroy,
20567         posix_spawnattr_init, posix_spawnattr_setsigmask,
20568         posix_spawnattr_setflags, posix_spawnattr_destroy.
20569
20570         * lib/execute.c: On Unix, assume HAVE_POSIX_SPAWN and use posix_spawnp.
20571         * m4/execute.m4 (gl_EXECUTE): Remove tests for vfork() based code.
20572         * modules/execute (Files): Remove m4/posix_spawn.m4.
20573         (Depends-on): Add spawn, posix_spawnp, posix_spawn_file_actions_init,
20574         posix_spawn_file_actions_addopen, posix_spawn_file_actions_destroy,
20575         posix_spawnattr_init, posix_spawnattr_setsigmask,
20576         posix_spawnattr_setflags, posix_spawnattr_destroy.
20577
20578 2009-01-25  Bruno Haible  <bruno@clisp.org>
20579
20580         * lib/glthread/threadlib.c: Include <stdlib.h>.
20581
20582 2009-01-25  Bruno Haible  <bruno@clisp.org>
20583
20584         * lib/glthread/threadlib.c (dummy): New declaration.
20585
20586 2009-01-25  Bruno Haible  <bruno@clisp.org>
20587
20588         * lib/mbrtowc.c (mbrtowc): Distinguish invalid and incomplete
20589         multibyte characters also for the GB18030 encoding. Don't crash when
20590         the encoding is unknown and nstate = 0. Needed on OSF/1 5.1.
20591
20592 2009-01-25  Bruno Haible  <bruno@clisp.org>
20593
20594         Avoid redefining 'struct random_data' on OSF/1 5.1.
20595         * lib/stdlib.in.h: Include <random.h> if it exists.
20596         * m4/stdlib_h.m4 (gl_STDLIB_H): Test whether <random.h> exists. Set
20597         HAVE_RANDOM_H. Include <random.h> when testing whether
20598         'struct random_data' exists.
20599         * modules/stdlib (Makefile.am): Substitute HAVE_RANDOM_H.
20600
20601 2009-01-25  Bruno Haible  <bruno@clisp.org>
20602
20603         Don't install charset.alias on MacOS X >= 10.3.
20604         * lib/localcharset.c (DARWIN7): New macro.
20605         (get_charset_aliases): Hardcode the result for Darwin7.
20606         * modules/localcharset (install-exec-local): Don't install
20607         charset.alias on MacOS X >= 10.3, if the file does not yet exist.
20608
20609 2009-01-25  Bruno Haible  <bruno@clisp.org>
20610
20611         Don't install charset.alias on mingw and Cygwin.
20612         * modules/localcharset (install-exec-local): Don't install
20613         charset.alias on mingw and Cygwin, if the file does not yet exist.
20614         The result for these platforms is hardcoded in localcharset.c.
20615
20616 2009-01-25  Bruno Haible  <bruno@clisp.org>
20617
20618         Make it possible again to use AC_GNU_SOURCE together with gnulib.
20619         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Require AC_GNU_SOURCE
20620         before requiring AC_USE_SYSTEM_EXTENSIONS.
20621
20622 2009-01-25  Jim Meyering  <meyering@redhat.com>
20623
20624         c-strtod: avoid warnings
20625         * lib/c-strtod.c (C_STRTOD): Cast nptr to (char *) to avoid
20626         "assignment discards qualifiers from pointer target type" warnings.
20627
20628 2009-01-24  Bruno Haible  <bruno@clisp.org>
20629
20630         Add support for non-UTF-8 locales on MacOS X.
20631         * lib/config.charset: Add CP1131, ARMSCII-8, PT154 to the list of
20632         canonical encodings. For Darwin 7 and newer, don't map traditional
20633         encodings to UTF-8.
20634         Reported by Vincent Lefevre <vincent@vinc17.org>
20635         at <http://savannah.gnu.org/bugs/?25235>.
20636
20637 2009-01-24  Bruno Haible  <bruno@clisp.org>
20638
20639         * doc/gnulib.texi (Obsolete modules): New section.
20640         Reported by Mike Frysinger <vapier@gentoo.org>.
20641
20642 2009-01-24  Bruno Haible  <bruno@clisp.org>
20643
20644         * doc/Makefile (%.pdf): Clarify where to find texmf.cnf.
20645         (%.dvi): New rule.
20646
20647 2009-01-24  Bruno Haible  <bruno@clisp.org>
20648
20649         * lib/c-strtod.h (c_strtod, c_strtold): Adjust specification.
20650         Reported by Eric Blake.
20651
20652 2009-01-24  Bruno Haible  <bruno@clisp.org>
20653
20654         * lib/c-stack.c (segv_handler): If !HAVE_XSI_STACK_OVERFLOW_HEURISTIC,
20655         set signo = 0 also if info->si_code <= 0. Needed on HP-UX 11.11.
20656         Reported by Gary V. Vaughan <gary@gnu.org>.
20657
20658 2009-01-24  Bruno Haible  <bruno@clisp.org>
20659
20660         * lib/c-strtod.h (c_strtod, c_strtold): Add specification.
20661
20662 2009-01-23  Bruno Haible  <bruno@clisp.org>
20663
20664         Make c-strtod, c-strtold usable in libraries.
20665         * lib/c-strtod.c: Include string.h instead of xalloc.h.
20666         (C_STRTOD): Call strdup instead of xstrdup.
20667         * modules/c-strtod (Depends-on): Add strdup-posix, remove xalloc.
20668         * modules/c-strtold (Depends-on): Likewise.
20669         * doc/c-strtod.texi: Remove the sentence mentioning xalloc_die.
20670         * NEWS: Mention the change.
20671         Reported by Michael Gold <mgold@ncf.ca>.
20672
20673 2009-01-23  Jim Meyering  <meyering@redhat.com>
20674
20675         c-strtod: when ENDPTR is non-NULL, set *ENDPTR in new failure path
20676         * lib/c-strtod.c (C_STRTOD) [LC_ALL_MASKC]: Ensure that when
20677         ENDPTR is non-NULL, *ENDPTR is set to NPTR upon failure.
20678
20679 2009-01-23  Simon Josefsson  <simon@josefsson.org>
20680
20681         * lib/version-etc.c: Add emit_bug_reporting_address, inspired by
20682         GNU CoreUtils.
20683         * lib/version-etc.h: Add prototype for emit_bug_reporting_address.
20684         * modules/version-etc (Description): Update.
20685
20686 2009-01-22  Bruno Haible  <bruno@clisp.org>
20687
20688         Cache the C locale object.
20689         * lib/c-strtod.c (c_locale_cache): New variable.
20690         (c_locale): New function.
20691         (C_STRTOD): Use it, and don't call freelocale.
20692         * m4/c-strtod.m4 (gl_C_STRTOD, gl_C_STRTOLD): Require AC_C_INLINE.
20693         Suggested by Paolo Bonzini.
20694
20695 2009-01-21  Bruno Haible  <bruno@clisp.org>
20696
20697         * lib/getloadavg.c (getloadavg): Check c_strtod result against error
20698         conditions other than overflow.
20699
20700 2009-01-21  Bruno Haible  <bruno@clisp.org>
20701
20702         * lib/c-strtod.c: Include errno.h.
20703         (C_STRTOD): Check against NULL return from newlocale. Preserve errno
20704         value from STRTOD_L and STRTOD.
20705
20706 2009-01-21  Bruno Haible  <bruno@clisp.org>
20707         and Jim Meyering  <meyering@redhat.com>
20708
20709         nanosleep: skip configure test (fail it) for apple universal builds
20710         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Require gl_MULTIARCH. In Apple
20711         universal builds, assume that nanosleep does not work.
20712         * modules/nanosleep (Depends-on): Add multiarch.
20713
20714         mktime: skip configure test (fail it) for apple universal builds
20715         * m4/mktime.m4 (AC_FUNC_MKTIME): Require gl_MULTIARCH. In Apple
20716         universal builds, assume that mktime does not work.
20717         * modules/mktime (Depends-on): Add multiarch.
20718
20719 2009-01-21  Eric Blake  <ebb9@byu.net>
20720
20721         multiarch: avoid expand-before-require warning
20722         * modules/multiarch (configure.ac): Require, rather than expand,
20723         gl_MULTIARCH.
20724         * m4/multiarch.m4 (gl_MULTIARCH_BODY): Merge...
20725         (gl_MULTIARCH): ...into this macro, and use AC_DEFUN_ONCE to
20726         enforce that all clients require it.  Partial reversion of
20727         2008-12-29 patch.
20728
20729         error: avoid expand-before-require warning
20730         * modules/errno (configure.ac): Require, rather than expand,
20731         gl_HEADER_ERRNO_H.
20732         * m4/errno_h.m4 (gl_HEADER_ERRNO_H_BODY): Merge...
20733         (gl_HEADER_ERRNO_H): ...into this macro, and use AC_DEFUN_ONCE to
20734         enforce that all clients require it.
20735
20736         gnulib-tool: avoid warnings from using obsolete AC_GNU_SOURCE
20737         * gnulib-tool (func_dest_tmpfilename, func_create_testdir): Using
20738         obsolete AC_GNU_SOURCE causes out-of-order expansion; avoid it,
20739         and rely solely on gl_USE_SYSTEM_EXTENSIONS.
20740
20741 2009-01-21  Paolo Bonzini  <bonzini@gnu.org>
20742
20743         Revert:
20744         2009-01-20  Paolo Bonzini  <bonzini@gnu.org>
20745
20746         regex: do not depend on obsolete modules.
20747         * modules/regex: Remove memcmp and memmove.
20748
20749 2009-01-20  Bruno Haible  <bruno@clisp.org>
20750
20751         Make the 'link' module link on Windows NT 4.
20752         * lib/link.c (_WIN32_WINNT): Don't define.
20753         (CreateHardLinkFuncType): New type.
20754         (CreateHardLinkFunc, initialized): New variables.
20755         (initialize): New function.
20756         (link): Invoke CreateHardLink indirectly through the function pointer.
20757
20758 2009-01-20  Bruno Haible  <bruno@clisp.org>
20759
20760         Fix compilation failure on mingw.
20761         * tests/test-link.c (main): Don't assume that EOPNOTSUPP exists.
20762
20763 2009-01-20  Michael Gold  <mgold@ncf.ca>  (tiny change)
20764
20765         * doc/c-strtod.texi: Mention a couple of restrictions.
20766
20767 2009-01-20  Jim Meyering  <meyering@redhat.com>
20768
20769         gettimeofday: move more declarations out of functions
20770         * lib/gettimeofday.c: Move extern declarations of tzset and
20771         gmtime out of containing functions.  Prompted by Bruno Haible.
20772
20773 2009-01-20  Paolo Bonzini  <bonzini@gnu.org>
20774
20775         regex: do not depend on obsolete modules.
20776         * modules/regex: Remove memcmp and memmove.
20777
20778 2009-01-19  Bruno Haible  <bruno@clisp.org>
20779
20780         Don't use AC_REQUIRE([AC_C_BIGENDIAN]).
20781         * modules/uniconv/u16-conv-from-enc (configure.ac): Require
20782         gl_BIGENDIAN, not AC_C_BIGENDIAN.
20783         * modules/uniconv/u16-conv-to-enc (configure.ac): Likewise.
20784         * modules/uniconv/u16-strconv-to-enc (configure.ac): Likewise.
20785
20786 2009-01-19  Bruno Haible  <bruno@clisp.org>
20787
20788         * tests/test-link.c: Include <errno.h>.
20789         (main): Exit with code 77 when a hard link cannot be created due to
20790         the file system.
20791         * tests/test-link.sh: Skip test when a hard link cannot be created due
20792         to the file system.
20793         Suggested by Eric Blake.
20794
20795 2009-01-19  Martin Lambers  <marlam@marlam.de>
20796
20797         * modules/link-tests: New file.
20798         * tests/test-link.sh: New file.
20799         * tests/test-link.c: New file.
20800
20801 2009-01-19  Eric Blake  <ebb9@byu.net>
20802
20803         doc: mention another function added in cygwin 1.7.0
20804         * doc/glibc-functions/glob_pattern_p.texi (glob_pattern_p):
20805         Another new function in cygwin 1.7.
20806
20807 2009-01-19  Bruno Haible  <bruno@clisp.org>
20808
20809         Don't use AC_REQUIRE([AC_C_BIGENDIAN]).
20810         * m4/gnulib-common.m4 (gl_BIGENDIAN): New macro.
20811         * m4/exponentl.m4 (gl_LONG_DOUBLE_EXPONENT_LOCATION): Require
20812         gl_BIGENDIAN, not AC_C_BIGENDIAN.
20813         * m4/isfinite.m4 (gl_ISFINITEL_WORKS): Likewise.
20814         * m4/isinf.m4 (gl_ISINFL_WORKS): Likewise.
20815         * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS): Likewise.
20816         * m4/md4.m4 (gl_MD4): Likewise.
20817         * m4/md5.m4 (gl_MD5): Likewise.
20818         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Likewise.
20819         * m4/sha1.m4 (gl_SHA1): Likewise.
20820         * m4/sha256.m4 (gl_SHA256): Likewise.
20821         * m4/sha512.m4 (gl_SHA512): Likewise.
20822
20823 2009-01-19  Bruno Haible  <bruno@clisp.org>
20824
20825         * modules/uniname/uniname-tests (Depends-on): Add progname.
20826         * tests/uniname/test-uninames.c: Include progname.h.
20827         (main): Call set_program_name.
20828
20829         * modules/unistdio/u8-vsprintf-tests (Depends-on): Add progname.
20830         * tests/unistdio/test-u8-vsprintf1.c: Include progname.h.
20831         (main): Call set_program_name.
20832
20833         * modules/unistdio/u8-vsnprintf-tests (Depends-on): Add progname.
20834         * tests/unistdio/test-u8-vsnprintf1.c: Include progname.h.
20835         (main): Call set_program_name.
20836
20837         * modules/unistdio/u16-vsprintf-tests (Depends-on): Add progname.
20838         * tests/unistdio/test-u16-vsprintf1.c: Include progname.h.
20839         (main): Call set_program_name.
20840
20841         * modules/unistdio/u16-vsnprintf-tests (Depends-on): Add progname.
20842         * tests/unistdio/test-u16-vsnprintf1.c: Include progname.h.
20843         (main): Call set_program_name.
20844
20845         * modules/unistdio/u32-vsprintf-tests (Depends-on): Add progname.
20846         * tests/unistdio/test-u32-vsprintf1.c: Include progname.h.
20847         (main): Call set_program_name.
20848
20849         * modules/unistdio/u32-vsnprintf-tests (Depends-on): Add progname.
20850         * tests/unistdio/test-u32-vsnprintf1.c: Include progname.h.
20851         (main): Call set_program_name.
20852
20853         * modules/unistdio/ulc-vsprintf-tests (Depends-on): Add progname.
20854         * tests/unistdio/test-ulc-vsprintf1.c: Include progname.h.
20855         (main): Call set_program_name.
20856
20857         * modules/unistdio/ulc-vsnprintf-tests (Depends-on): Add progname.
20858         * tests/unistdio/test-ulc-vsnprintf1.c: Include progname.h.
20859         (main): Call set_program_name.
20860
20861 2009-01-19  Eric Blake  <ebb9@byu.net>
20862
20863         test-unistd: test previous patch
20864         * tests/test-unistd.c: Test *_FILENO macros.
20865
20866         unistd: guarantee STDIN_FILENO here, for OS/2 EMX
20867         * lib/unistd.in.h (STDIN_FILENO, STDOUT_FILENO, STDERR_FILENO):
20868         Guarantee a definition.
20869         * doc/posix-headers/unistd.texi (unistd.h): Document the bug.
20870         * modules/unistd-safer (Depends-on): Add dependency on unistd.
20871         * lib/c-stack.c (STDERR_FILENO): Rely on <unistd.h>.
20872         * lib/dup-safer.c (STDERR_FILENO): Likewise.
20873         * lib/execute.c (STDIN_FILENO, STDOUT_FILENO, STDERR_FILENO):
20874         Likewise.
20875         * lib/fd-safer.c (STDIN_FILENO, STDERR_FILENO): Likewise.
20876         * lib/fopen-safer.c (STDERR_FILENO): Likewise.
20877         * lib/pipe.c (STDIN_FILENO, STDOUT_FILENO, STDERR_FILENO):
20878         Likewise.
20879         * lib/tmpfile-safer.c (STDERR_FILENO): Likewise.
20880         * tests/test-posix_spawn1.c (STDIN_FILENO, STDOUT_FILENO)
20881         (STDERR_FILENO): Likewise.
20882         * tests/test-posix_spawn2.c (STDIN_FILENO, STDOUT_FILENO)
20883         (STDERR_FILENO): Likewise.
20884         * tests/test-posix_spawn3.c (STDIN_FILENO, STDOUT_FILENO)
20885         (STDERR_FILENO): Likewise.
20886         Reported by Elbert Pol.
20887
20888 2009-01-19  Eric Blake  <ebb9@byu.net>
20889
20890         doc: mention more functions added in cygwin 1.7.0
20891         * doc/posix-functions/abort.texi (abort): Update wording related
20892         to cygwin.
20893         * doc/posix-functions/daylight.texi (daylight): Likewise.
20894         * doc/posix-functions/optarg.texi (optarg): Likewise.
20895         * doc/posix-functions/optarg.texi (opterr): Likewise.
20896         * doc/posix-functions/optarg.texi (optind): Likewise.
20897         * doc/posix-functions/optarg.texi (optopt): Likewise.
20898         * doc/posix-functions/wprintf.texi (wprintf): Cygwin wprintf never
20899         worked in 1.5.x, and was withdrawn in 1.7.
20900         * doc/posix-functions/vwprintf.texi (vwprintf): Likewise.
20901         * doc/posix-functions/fprintf.texi (fprintf): Tighten mention of
20902         cygwin versions.
20903         * doc/posix-functions/perror.texi (perror): Likewise.
20904         * doc/posix-functions/printf.texi (printf): Likewise.
20905         * doc/posix-functions/snprintf.texi (snprintf): Likewise.
20906         * doc/posix-functions/sprintf.texi (sprintf): Likewise.
20907         * doc/posix-functions/vfprintf.texi (vfprintf): Likewise.
20908         * doc/posix-functions/vprintf.texi (vprintf): Likewise.
20909         * doc/posix-functions/vsnprintf.texi (vsnprintf): Likewise.
20910         * doc/posix-functions/vsprintf.texi (vsprintf): Likewise.
20911         * doc/glibc-functions/obstack_printf.texi (obstack_printf):
20912         Likewise.
20913         * doc/glibc-functions/obstack_vprintf.texi (obstack_vprintf):
20914         Likewise.
20915         * doc/glibc-functions/cfmakeraw.texi (cfmakeraw): Cygwin 1.7 adds
20916         this function.
20917         * doc/glibc-functions/in6addr_any.texi (in6addr_any): Likewise.
20918         * doc/glibc-functions/in6addr_loopback.texi (in6addr_loopback):
20919         Likewise.
20920         * doc/glibc-functions/updwtmpx.texi (updwtmpx): Likewise.
20921         * doc/posix-functions/_Exit_C99.texi (_Exit): Likewise.
20922         * doc/posix-functions/confstr.texi (confstr): Likewise.
20923         * doc/posix-functions/dprintf.texi (dprintf): Likewise.
20924         * doc/posix-functions/fgetwc.texi (fgetwc): Likewise.
20925         * doc/posix-functions/fgetws.texi (fgetws): Likewise.
20926         * doc/posix-functions/fputwc.texi (fputwc): Likewise.
20927         * doc/posix-functions/fputws.texi (fputws): Likewise.
20928         * doc/posix-functions/fwide.texi (fwide): Likewise.
20929         * doc/posix-functions/getwc.texi (getwc): Likewise.
20930         * doc/posix-functions/getwchar.texi (getwchar): Likewise.
20931         * doc/posix-functions/putwc.texi (putwc): Likewise.
20932         * doc/posix-functions/putwchar.texi (putwchar): Likewise.
20933         * doc/posix-functions/sigignore.texi (sigignore): Likewise.
20934         * doc/posix-functions/ungetwc.texi (ungetwc): Likewise.
20935         * doc/posix-functions/vdprintf.texi (vdprintf): Likewise.
20936         * doc/posix-functions/wcpcpy.texi (wcpcpy): Likewise.
20937         * doc/posix-functions/wcpncpy.texi (wcpncpy): Likewise.
20938         * doc/posix-functions/wcstol.texi (wcstol): Likewise.
20939         * doc/posix-functions/wcstoll.texi (wcstoll): Likewise.
20940         * doc/posix-functions/wcstoul.texi (wcstoul): Likewise.
20941         * doc/posix-functions/wcstoull.texi (wcstoull): Likewise.
20942         * doc/posix-functions/wcsxfrm.texi (wcsxfrm): Likewise.
20943
20944 2009-01-19  Daniel P. Berrange  <berrange@redhat.com>
20945
20946         ioctl: avoid warning: no previous prototype for 'rpl_ioctl'
20947         * lib/ioctl.c: Include <sys/ioctl.h>.
20948
20949 2009-01-19  Simon Josefsson  <simon@josefsson.org>
20950
20951         * modules/getdate-tests (Depends-on): Add progname.
20952         * tests/test-getdate.c: Use progname module, to avoid link errors
20953         on non-glibc systems.
20954
20955 2009-01-18  Simon Josefsson  <simon@josefsson.org>
20956
20957         * modules/filenamecat-tests (Depends-on): Add progname.
20958         * modules/fstrcmp-tests (Depends-on): Likewise.
20959
20960         * tests/test-filenamecat.c: Use progname module, to avoid link
20961         errors on non-glibc systems.
20962         * tests/test-fstrcmp.c: Likewise.
20963
20964 2009-01-19  Daniel P. Berrange  <berrange@redhat.com>
20965
20966         gettimeofday: avoid warning: nested extern declaration of 'localtime'
20967         * lib/gettimeofday.c: Move extern declaration out of function.
20968
20969 2009-01-18  Bruno Haible  <bruno@clisp.org>
20970
20971         * m4/strftime.m4 (gl_FUNC_STRFTIME): Don't test for mblen and mbrlen.
20972         * lib/strftime.c (HAVE_MBLEN, HAVE_MBRLEN): Remove macros.
20973         (MULTIBYTE_IS_FORMAT_SAFE): Define to 1 on all platforms except OSF/1.
20974
20975 2009-01-18  Bruno Haible  <bruno@clisp.org>
20976
20977         * lib/strftime.c (MEMPCPY): Remove unused macro.
20978         * m4/strftime.m4 (gl_FUNC_STRFTIME): Don't test for mempcpy.
20979
20980 2009-01-18  Martin Lambers  <marlam@marlam.de>
20981
20982         New module 'link'.
20983         * lib/unistd.in.h (link): New declaration.
20984         * lib/link.c: New file.
20985         * m4/link.m4: New file.
20986         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_LINK,
20987         HAVE_LINK.
20988         * modules/unistd (Makefile.am): Substitute GNULIB_LINK, HAVE_LINK.
20989         * modules/link: New file.
20990         * doc/posix-functions/link.texi: Mention the new module.
20991
20992 2009-01-18  Bruno Haible  <bruno@clisp.org>
20993
20994         * tests/test-avltree_list.c (main): Call set_program_name.
20995         * tests/test-avltree_oset.c (main): Likewise.
20996         * tests/test-obstack-printf.c: Include progname.h.
20997         (main): Call set_program_name.
20998         * tests/test-quotearg.c: Include progname.h.
20999         (main): Call set_program_name.
21000         * tests/test-xmemdup0.c: Include progname.h.
21001         (main): Call set_program_name.
21002
21003 2009-01-18  Bruno Haible  <bruno@clisp.org>
21004
21005         New module 'alphasort'.
21006         * lib/dirent.in.h (alphasort): New declaration.
21007         * lib/alphasort.c: New file, from glibc with modifications.
21008         * m4/alphasort.m4: New file.
21009         * modules/alphasort: New file.
21010         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): Initialize GNULIB_ALPHASORT,
21011         HAVE_ALPHASORT.
21012         * modules/dirent (Makefile.am): Substitute GNULIB_ALPHASORT,
21013         HAVE_ALPHASORT.
21014         * doc/posix-functions/alphasort.texi: Mention the new module and the
21015         portability problems.
21016
21017 2009-01-18  Bruno Haible  <bruno@clisp.org>
21018
21019         New module 'scandir'.
21020         * lib/dirent.in.h (scandir): New declaration.
21021         * lib/scandir.c: New file, from glibc with modifications.
21022         * m4/scandir.m4: New file.
21023         * modules/scandir: New file.
21024         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): Initialize GNULIB_SCANDIR,
21025         HAVE_SCANDIR.
21026         * modules/dirent (Makefile.am): Substitute GNULIB_SCANDIR,
21027         HAVE_SCANDIR.
21028         * doc/posix-functions/scandir.texi: Mention the new module and the
21029         portability problems.
21030
21031 2009-01-17  Bruno Haible  <bruno@clisp.org>
21032
21033         * gnulib-tool (func_remove_prefix): Escape all dots in the prefix.
21034         Update documentation.
21035         (func_remove_suffix): Escape all dots in the suffix. Update
21036         documentation.
21037         (func_filter_filelist): Update documentation.
21038         Reported by Ralf Wildenhues.
21039
21040 2009-01-17  Bruno Haible  <bruno@clisp.org>
21041
21042         * modules/dprintf-posix-tests: New file.
21043         * tests/test-dprintf-posix.sh: New file.
21044         * tests/test-dprintf-posix.c: New file.
21045
21046         New modules 'dprintf', 'dprintf-posix'.
21047         * lib/stdio.in.h (dprintf): New declaration.
21048         * lib/dprintf.c: New file.
21049         * m4/dprintf.m4: New file.
21050         * m4/dprintf-posix.m4: New file.
21051         * modules/dprintf: New file.
21052         * modules/dprintf-posix: New file.
21053         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize GNULIB_DPRINTF,
21054         HAVE_DPRINTF, REPLACE_DPRINTF.
21055         * modules/stdio (Makefile.am): Substitute also GNULIB_DPRINTF,
21056         HAVE_DPRINTF, REPLACE_DPRINTF.
21057         * doc/posix-functions/dprintf.texi: Mention the new modules.
21058
21059 2009-01-17  Bruno Haible  <bruno@clisp.org>
21060
21061         * modules/vdprintf-posix-tests: New file.
21062         * tests/test-vdprintf-posix.sh: New file.
21063         * tests/test-vdprintf-posix.c: New file.
21064
21065         New modules 'vdprintf', 'vdprintf-posix'.
21066         * lib/stdio.in.h (vdprintf): New declaration.
21067         * lib/vdprintf.c: New file.
21068         * m4/vdprintf.m4: New file.
21069         * m4/vdprintf-posix.m4: New file.
21070         * modules/vdprintf: New file.
21071         * modules/vdprintf-posix: New file.
21072         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize GNULIB_VDPRINTF,
21073         HAVE_VDPRINTF, REPLACE_VDPRINTF.
21074         * modules/stdio (Makefile.am): Substitute also GNULIB_VDPRINTF,
21075         HAVE_VDPRINTF, REPLACE_VDPRINTF.
21076         * doc/posix-functions/vdprintf.texi: Mention the new modules.
21077
21078 2009-01-17  Bruno Haible  <bruno@clisp.org>
21079
21080         Fix replacement of fopen on mingw.
21081         * m4/fopen.m4 (gl_FUNC_FOPEN): Define FOPEN_TRAILING_SLASH_BUG also on
21082         mingw.
21083
21084 2009-01-17  Bruno Haible  <bruno@clisp.org>
21085
21086         Fix compilation error on HP-UX 11.00, present since 2008-09-24.
21087         * lib/fopen.c: Include <sys/types.h> and <sys/types.h>.
21088
21089 2009-01-17  Bruno Haible  <bruno@clisp.org>
21090
21091         Avoid test-fflush2.sh failure on mingw.
21092         * tests/test-fflush2.c: Include binary-io.h.
21093         (main): Put standard input into binary mode.
21094         * modules/fflush-tests (Depends-on): Add binary-io.
21095
21096 2009-01-17  Bruno Haible  <bruno@clisp.org>
21097
21098         * lib/wchar.in.h: In another particular situation, include only the
21099         system's <wchar.h> file.
21100         (_GL_ALREADY_INCLUDING_WCHAR_H): New macro.
21101         Reported by Albert Chin-A-Young <china@thewrittenword.com>
21102         and Thomas Guyot-Sionnest <dermoth@aei.ca>.
21103
21104 2009-01-17  Bruno Haible  <bruno@clisp.org>
21105
21106         Support for stripping executables in --enable-relocatable.
21107         * build-aux/install-reloc: Expect one more argument, or an environment
21108         variable RELOC_STRIP_PROG. If set, strip the destination program and
21109         its wrapper.
21110         * m4/relocatable.m4 (gl_RELOCATABLE_BODY): In INSTALL_PROGRAM_ENV, set
21111         RELOC_STRIP_PROG.
21112         * doc/relocatable-maint.texi (Supporting Relocation): Mention the need
21113         to set RELOCATABLE_STRIP.
21114         * NEWS: Mention the new Makefile requirement.
21115
21116 2009-01-17  Bruno Haible  <bruno@clisp.org>
21117
21118         * build-aux/install-reloc: Remove debugging information left over by
21119         C compiler on MacOS X.
21120
21121 2009-01-17  Bruno Haible  <bruno@clisp.org>
21122
21123         Update use of _NSGetExecutablePath after API change in MacOS X 10.4.
21124         * lib/progreloc.c (find_executable): Fix type of pointer passed to
21125         _NSGetExecutablePath.
21126
21127 2009-01-16  Jim Meyering  <meyering@redhat.com>
21128
21129         strerror: avoid warnings about discarding "const"
21130         * lib/strerror.c (rpl_strerror): Instead of returning a const
21131         string from each and every "case", use a variable, and add a single
21132         cast after the switch.
21133
21134 2009-01-16  Albert Chin-A-Young <china@thewrittenword.com>
21135
21136         * lib/arpa_inet.in.h: Add extern "C" block for C++.
21137
21138 2009-01-16  Bruno Haible  <bruno@clisp.org>
21139
21140         * m4/printf.m4 (gl_SNPRINTF_SIZE1, gl_VSNPRINTF_ZEROSIZE_C99): Use an
21141         array initializer syntax that also works in C++ mode.
21142         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
21143
21144 2009-01-16  Jim Meyering  <meyering@redhat.com>
21145
21146         poll: suppress a warning
21147         * lib/poll.c: Use #pragma GCC diagnostic ignored "-Wtype-limits"
21148         to ignore "...unsigned expression < 0 is always false" warnings.
21149
21150 2009-01-16  Daniel P. Berrange  <berrange@redhat.com>
21151
21152         poll: remove declarations of unused variables
21153         * lib/poll.c (poll) [WIN32_NATIVE]: Remove declarations of unused
21154         sockbuf and optlen.
21155
21156 2009-01-15  Bruno Haible  <bruno@clisp.org>
21157
21158         Make fflush-after-ungetc POSIX compliant on BSD systems.
21159         * lib/fflush.c (clear_ungetc_buffer_preserving_position): New function.
21160         (clear_ungetc_buffer): Implement also for other systems.
21161         (rpl_fflush): On glibc systems, invoke
21162         clear_ungetc_buffer_preserving_position. Otherwise, invoke
21163         clear_ungetc_buffer after fetching the stream's position, not before.
21164
21165 2009-01-15  Bruno Haible  <bruno@clisp.org>
21166
21167         Make fflush-after-ungetc POSIX compliant on glibc systems.
21168         * m4/fflush.m4 (gl_FUNC_FFLUSH): Test also the behaviour of fflush
21169         after ungetc.
21170         * lib/fflush.c (clear_ungetc_buffer): Implement for glibc systems.
21171         (rpl_fflush): On glibc systems, simply call the system's fflush
21172         function after clearing the ungetc buffer.
21173         * lib/fseeko.c (rpl_fseeko): Don't try to lseek past the end of file.
21174         Instead, lseek only to the end of file, then use the system's fseeko
21175         for the rest. On glibc systems, reset the EOF indicator bit.
21176
21177 2009-01-15  Jim Meyering  <meyering@redhat.com>
21178
21179         openmp.m4: revert quote-adding change, for portability to older autoconf
21180         * m4/openmp.m4: Remove the quotes added on 2009-01-14.
21181         This reverts part of 42d1eda5dcce2d68deab7a642e7f29bcd7144a0d.
21182         Simon Josefsson noticed the problem when using autoconf-2.61.
21183
21184 2009-01-15  Bruno Haible  <bruno@clisp.org>
21185
21186         * tests/test-fflush2.sh: Invoke test-fflush2 twice.
21187         * tests/test-fflush2.c (ASSERT): Always fail.
21188         (main): Add two tests for fflush() after ungetc(), taking into account
21189         the Austin Group's clarification.
21190         Suggested by Eric Blake.
21191
21192 2009-01-15  Albert Chin-A-Young  <china@thewrittenword.com>
21193
21194         mktime.m4: remove K&R-style function prototypes
21195         * m4/mktime.m4 (AC_FUNC_MKTIME): Remove K&R-style function prototypes
21196         for the Sun C++ compiler.
21197
21198 2009-01-14  Bruno Haible  <bruno@clisp.org>
21199
21200         * lib/stdint.in.h (_GL_JUST_INCLUDE_SYSTEM_WCHAR_H): New macro, defined
21201         while including <wchar.h>.
21202         * lib/wchar.in.h: In two particular situations on HP-UX, include only
21203         the system's <wchar.h> file.
21204         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
21205
21206 2009-01-14  Bruno Haible  <bruno@clisp.org>
21207
21208         * m4/csharp.m4: Don't mention gettext on the serial number line.
21209         * m4/csharpexec.m4: Likewise.
21210         * m4/eaccess.m4: Likewise.
21211         * m4/javaexec.m4: Likewise.
21212         * m4/sig_atomic_t.m4: Likewise.
21213         * m4/tmpdir.m4: Likewise.
21214         * m4/intldir.m4: Bump gettext version.
21215         * m4/lib-ld.m4: Likewise.
21216
21217 2009-01-14  Bruno Haible  <bruno@clisp.org>
21218
21219         * lib/progname.c (set_program_name): Add more comments.
21220         Reported by Sergey Poznyakoff <gray@gnu.org.ua>.
21221
21222 2009-01-14  Simon Josefsson  <simon@josefsson.org>
21223
21224         * lib/sys_stat.in.h: Include sys/types.h for nlink_t on systems
21225         were sys/stat.h does not define it.
21226
21227 2009-01-14  Jim Meyering  <meyering@redhat.com>
21228
21229         many *.m4 files: improve m4 quoting
21230         99% of this change was performed by running the following commands:
21231         git ls-files | grep '\.m4$' | xargs perl -pi \
21232           -e 's/(AC_\w+\()([^[()]+?)([,)])/$1\[$2]$3/g;' \
21233           -e 's/(AC_\w+\((?:\[[^,]+?\], ){1})([^,[()]+?)([,)])/$1\[$2]$3/g;' \
21234           -e 's/(AC_\w+\((?:\[[^,]+?\], ){2})([^,[()]+?)([,)])/$1\[$2]$3/g;' \
21235           -e 's/(AC_\w+\((?:\[[^,]+?\], ){3})([^,[()]+?)([,)])/$1\[$2]$3/g'
21236         perl -pi -e 's/\[\.\.\.\]/.../' m4/onceonly.m4
21237         The remainder were to add Copyright dates, increment serial numbers,
21238         undo some changes in comments, exclude m4/intl.m4, and add quotes
21239         around the "1" in ",1" where the unusual spacing prohibited the
21240         above regexps from doing the job.  For more details, see
21241         <http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/16175>.
21242         * m4/acl.m4: Modified.
21243         * m4/afs.m4: Likewise.
21244         * m4/alloca.m4: Likewise.
21245         * m4/argp.m4: Likewise.
21246         * m4/argz.m4: Likewise.
21247         * m4/atexit.m4: Likewise.
21248         * m4/bison-i18n.m4: Likewise.
21249         * m4/bison.m4: Likewise.
21250         * m4/byteswap.m4: Likewise.
21251         * m4/c-stack.m4: Likewise.
21252         * m4/c-strtod.m4: Likewise.
21253         * m4/calloc.m4: Likewise.
21254         * m4/canonicalize-lgpl.m4: Likewise.
21255         * m4/chown.m4: Likewise.
21256         * m4/clock_time.m4: Likewise.
21257         * m4/codeset.m4: Likewise.
21258         * m4/copy-file.m4: Likewise.
21259         * m4/csharp.m4: Likewise.
21260         * m4/csharpcomp.m4: Likewise.
21261         * m4/csharpexec.m4: Likewise.
21262         * m4/d-ino.m4: Likewise.
21263         * m4/d-type.m4: Likewise.
21264         * m4/dirfd.m4: Likewise.
21265         * m4/double-slash-root.m4: Likewise.
21266         * m4/eaccess.m4: Likewise.
21267         * m4/eealloc.m4: Likewise.
21268         * m4/environ.m4: Likewise.
21269         * m4/errno_h.m4: Likewise.
21270         * m4/euidaccess.m4: Likewise.
21271         * m4/execute.m4: Likewise.
21272         * m4/fatal-signal.m4: Likewise.
21273         * m4/fchdir.m4: Likewise.
21274         * m4/fcntl_h.m4: Likewise.
21275         * m4/fileblocks.m4: Likewise.
21276         * m4/filenamecat.m4: Likewise.
21277         * m4/findprog.m4: Likewise.
21278         * m4/flexmember.m4: Likewise.
21279         * m4/fnmatch.m4: Likewise.
21280         * m4/fopen.m4: Likewise.
21281         * m4/fpending.m4: Likewise.
21282         * m4/fprintf-posix.m4: Likewise.
21283         * m4/free.m4: Likewise.
21284         * m4/frexp.m4: Likewise.
21285         * m4/frexpl.m4: Likewise.
21286         * m4/fsusage.m4: Likewise.
21287         * m4/ftruncate.m4: Likewise.
21288         * m4/gc-camellia.m4: Likewise.
21289         * m4/gc-random.m4: Likewise.
21290         * m4/gc.m4: Likewise.
21291         * m4/getaddrinfo.m4: Likewise.
21292         * m4/getcwd-abort-bug.m4: Likewise.
21293         * m4/getcwd-path-max.m4: Likewise.
21294         * m4/getdate.m4: Likewise.
21295         * m4/getdomainname.m4: Likewise.
21296         * m4/getgroups.m4: Likewise.
21297         * m4/gethostname.m4: Likewise.
21298         * m4/gethrxtime.m4: Likewise.
21299         * m4/getline.m4: Likewise.
21300         * m4/getloadavg.m4: Likewise.
21301         * m4/getndelim2.m4: Likewise.
21302         * m4/getpass.m4: Likewise.
21303         * m4/gettext.m4: Likewise.
21304         * m4/gettime.m4: Likewise.
21305         * m4/gettimeofday.m4: Likewise.
21306         * m4/gnulib-common.m4: Likewise.
21307         * m4/group-member.m4: Likewise.
21308         * m4/host-os.m4: Likewise.
21309         * m4/iconv.m4: Likewise.
21310         * m4/iconv_open.m4: Likewise.
21311         * m4/inet_ntop.m4: Likewise.
21312         * m4/inet_pton.m4: Likewise.
21313         * m4/inline.m4: Likewise.
21314         * m4/intldir.m4: Likewise.
21315         * m4/intlmacosx.m4: Likewise.
21316         * m4/intmax.m4: Likewise.
21317         * m4/intmax_t.m4: Likewise.
21318         * m4/inttypes.m4: Likewise.
21319         * m4/inttypes_h.m4: Likewise.
21320         * m4/inttypes-pri.m4: Likewise.
21321         * m4/isapipe.m4: Likewise.
21322         * m4/isnand.m4: Likewise.
21323         * m4/isnanf.m4: Likewise.
21324         * m4/isnanl.m4: Likewise.
21325         * m4/javacomp.m4: Likewise.
21326         * m4/javaexec.m4: Likewise.
21327         * m4/jm-winsz1.m4: Likewise.
21328         * m4/jm-winsz2.m4: Likewise.
21329         * m4/lchown.m4: Likewise.
21330         * m4/lcmessage.m4: Likewise.
21331         * m4/ldexpl.m4: Likewise.
21332         * m4/lib-ld.m4: Likewise.
21333         * m4/lib-link.m4: Likewise.
21334         * m4/libsigsegv.m4: Likewise.
21335         * m4/link-follow.m4: Likewise.
21336         * m4/localcharset.m4: Likewise.
21337         * m4/locale-fr.m4: Likewise.
21338         * m4/locale-ja.m4: Likewise.
21339         * m4/locale-tr.m4: Likewise.
21340         * m4/locale-zh.m4: Likewise.
21341         * m4/lock.m4: Likewise.
21342         * m4/longlong.m4: Likewise.
21343         * m4/ls-mntd-fs.m4: Likewise.
21344         * m4/lstat.m4: Likewise.
21345         * m4/malloc.m4: Likewise.
21346         * m4/mathl.m4: Likewise.
21347         * m4/mbrtowc.m4: Likewise.
21348         * m4/mbstate_t.m4: Likewise.
21349         * m4/mbswidth.m4: Likewise.
21350         * m4/memchr.m4: Likewise.
21351         * m4/memcmp.m4: Likewise.
21352         * m4/memcpy.m4: Likewise.
21353         * m4/memmem.m4: Likewise.
21354         * m4/memmove.m4: Likewise.
21355         * m4/mempcpy.m4: Likewise.
21356         * m4/memrchr.m4: Likewise.
21357         * m4/memset.m4: Likewise.
21358         * m4/minmax.m4: Likewise.
21359         * m4/mkdir-slash.m4: Likewise.
21360         * m4/mkdtemp.m4: Likewise.
21361         * m4/mktime.m4: Likewise.
21362         * m4/mmap-anon.m4: Likewise.
21363         * m4/mountlist.m4: Likewise.
21364         * m4/nanosleep.m4: Likewise.
21365         * m4/nls.m4: Likewise.
21366         * m4/nocrash.m4: Likewise.
21367         * m4/open.m4: Likewise.
21368         * m4/openat.m4: Likewise.
21369         * m4/openmp.m4: Likewise.
21370         * m4/pathmax.m4: Likewise.
21371         * m4/perl.m4: Likewise.
21372         * m4/physmem.m4: Likewise.
21373         * m4/pipe.m4: Likewise.
21374         * m4/po.m4: Likewise.
21375         * m4/poll.m4: Likewise.
21376         * m4/posixtm.m4: Likewise.
21377         * m4/posixver.m4: Likewise.
21378         * m4/printf-frexp.m4: Likewise.
21379         * m4/printf-frexpl.m4: Likewise.
21380         * m4/printf-posix.m4: Likewise.
21381         * m4/printf-posix-rpl.m4: Likewise.
21382         * m4/printf.m4: Likewise.
21383         * m4/progtest.m4: Likewise.
21384         * m4/putenv.m4: Likewise.
21385         * m4/readline.m4: Likewise.
21386         * m4/readlink.m4: Likewise.
21387         * m4/readutmp.m4: Likewise.
21388         * m4/realloc.m4: Likewise.
21389         * m4/regex.m4: Likewise.
21390         * m4/relocatable.m4: Likewise.
21391         * m4/relocatable-lib.m4: Likewise.
21392         * m4/rename-dest-slash.m4: Likewise.
21393         * m4/rename.m4: Likewise.
21394         * m4/rmdir-errno.m4: Likewise.
21395         * m4/rmdir.m4: Likewise.
21396         * m4/roundf.m4: Likewise.
21397         * m4/roundl.m4: Likewise.
21398         * m4/rpmatch.m4: Likewise.
21399         * m4/save-cwd.m4: Likewise.
21400         * m4/selinux-selinux-h.m4: Likewise.
21401         * m4/setenv.m4: Likewise.
21402         * m4/settime.m4: Likewise.
21403         * m4/sig2str.m4: Likewise.
21404         * m4/sig_atomic_t.m4: Likewise.
21405         * m4/signalblocking.m4: Likewise.
21406         * m4/signbit.m4: Likewise.
21407         * m4/sigpipe.m4: Likewise.
21408         * m4/sockets.m4: Likewise.
21409         * m4/sockpfaf.m4: Likewise.
21410         * m4/st_dm_mode.m4: Likewise.
21411         * m4/stat-time.m4: Likewise.
21412         * m4/stdbool.m4: Likewise.
21413         * m4/stdint.m4: Likewise.
21414         * m4/stdint_h.m4: Likewise.
21415         * m4/stpcpy.m4: Likewise.
21416         * m4/stpncpy.m4: Likewise.
21417         * m4/strcase.m4: Likewise.
21418         * m4/strchrnul.m4: Likewise.
21419         * m4/strcspn.m4: Likewise.
21420         * m4/strdup.m4: Likewise.
21421         * m4/strftime.m4: Likewise.
21422         * m4/strndup.m4: Likewise.
21423         * m4/strnlen.m4: Likewise.
21424         * m4/strpbrk.m4: Likewise.
21425         * m4/strptime.m4: Likewise.
21426         * m4/strsep.m4: Likewise.
21427         * m4/strtod.m4: Likewise.
21428         * m4/strtoimax.m4: Likewise.
21429         * m4/strtok_r.m4: Likewise.
21430         * m4/strtol.m4: Likewise.
21431         * m4/strtoll.m4: Likewise.
21432         * m4/strtoul.m4: Likewise.
21433         * m4/strtoull.m4: Likewise.
21434         * m4/strtoumax.m4: Likewise.
21435         * m4/strverscmp.m4: Likewise.
21436         * m4/threadlib.m4: Likewise.
21437         * m4/timegm.m4: Likewise.
21438         * m4/tm_gmtoff.m4: Likewise.
21439         * m4/tmpdir.m4: Likewise.
21440         * m4/tmpfile.m4: Likewise.
21441         * m4/tzset.m4: Likewise.
21442         * m4/uintmax_t.m4: Likewise.
21443         * m4/unlinkdir.m4: Likewise.
21444         * m4/unlocked-io.m4: Likewise.
21445         * m4/uptime.m4: Likewise.
21446         * m4/userspec.m4: Likewise.
21447         * m4/utimbuf.m4: Likewise.
21448         * m4/utime.m4: Likewise.
21449         * m4/utimes-null.m4: Likewise.
21450         * m4/utimes.m4: Likewise.
21451         * m4/vararrays.m4: Likewise.
21452         * m4/vasnprintf.m4: Likewise.
21453         * m4/vfprintf-posix.m4: Likewise.
21454         * m4/vprintf-posix.m4: Likewise.
21455         * m4/wait-process.m4: Likewise.
21456         * m4/wchar_t.m4: Likewise.
21457         * m4/wint_t.m4: Likewise.
21458         * m4/write-any-file.m4: Likewise.
21459         * m4/yield.m4: Likewise.
21460
21461 2009-01-13  Bruno Haible  <bruno@clisp.org>
21462
21463         Avoid test-copy-file.sh failures when ACL support insufficient.
21464         * modules/copy-file-tests (Makefile.am): Pass USE_ACL in
21465         TESTS_ENVIRONMENT.
21466         * tests/test-copy-file.sh: Skip the ACL comparisons if USE_ACL is 0.
21467         Reported by Jim Meyering.
21468
21469 2009-01-13  Bruno Haible  <bruno@clisp.org>
21470
21471         * modules/unistdio/u-printf-args (Files): Add m4/stdint_h.m4 and
21472         m4/inttypes_h.m4, needed by m4/intmax_t.m4.
21473         * modules/unistdio/u8-printf-parse (Files): Likewise.
21474         * modules/unistdio/u32-printf-parse (Files): Likewise.
21475         * modules/unistdio/ulc-printf-parse (Files): Likewise.
21476
21477 2009-01-13  Simon Josefsson  <simon@josefsson.org>
21478
21479         * modules/unistdio/u16-printf-parse (Files): Add m4/stdint_h.m4
21480         and m4/inttypes_h.m4 too.
21481
21482 2009-01-12  Eric Blake  <ebb9@byu.net>
21483
21484         tests: IRIX 6.2 cc can't compile -0.0 into .data
21485         * tests/test-ceill.c (minus_zero): Compute -0.0L at runtime,
21486         rather than at compile-time.
21487         * tests/test-floorl.c (minus_zero): Likewise.
21488         * tests/test-frexpl.c (minus_zero): Likewise.
21489         * tests/test-isnan.c (minus_zerol): Likewise.
21490         * tests/test-isnanl.h (minus_zero): Likewise.
21491         * tests/test-ldexpl.c (minus_zero): Likewise.
21492         * tests/test-roundl.c (minus_zero): Likewise.
21493         * tests/test-signbit.c (minus_zerol): Likewise.
21494         * tests/test-snprintf-posix.h (minus_zerol): Likewise.
21495         * tests/test-sprintf-posix.h (minus_zerol): Likewise.
21496         * tests/test-truncl.c (minus_zero): Likewise.
21497         * tests/test-vasnprintf-posix.c (minus_zerol): Likewise.
21498         * tests/test-vasprintf-posix.c (minus_zerol): Likewise.
21499         Reported by Tom G. Christensen and Nelson H. F. Beebe.
21500
21501 2009-01-09  Paolo Bonzini  <bonzini@gnu.org>
21502
21503         regex: fix glibc bug 9697
21504         * lib/regcomp.c (re_compile_fastmap_iter): Rewrite COMPLEX_BRACKET
21505         handling.
21506
21507 2009-01-09  Paolo Bonzini  <bonzini@gnu.org>
21508
21509         regex: fix glibc bug 697
21510         * lib/regexec.c (prune_impossible_nodes): Handle sifted_states[0]
21511         being NULL also if there are no backreferences.
21512
21513 2009-01-09  Paolo Bonzini  <bonzini@gnu.org>
21514
21515         regex: merge glibc changes
21516         * lib/regcomp.c (re_compile_fastmap_iter): Use __mbrtowc.
21517         * lib/regex_internal.c (build_wcs_buffer, build_wcs_upper_buffer,
21518         re_string_skip_chars, re_string_reconstruct): Likewise.
21519         * lib/regex_internal.h [!_LIBC] (__mbrtowc): New #define.
21520
21521 2009-01-07  Jim Meyering  <meyering@redhat.com>
21522
21523         poll: filter through cppi
21524         * lib/poll.c: Indent cpp directives to reflect nesting.
21525
21526 2009-01-07  Daniel P. Berrange  <berrange@redhat.com>
21527
21528         poll: don't return uninitialized
21529         * lib/poll.c (poll) [WIN32_NATIVE]: Initialize "rc".
21530
21531 2009-01-06  Jeremy Olexa <darkside@gentoo.org>  (tiny change)
21532
21533         avoid compile failure on AIX 6.1
21534         * lib/getloadavg.c [HAVE_LIBPERFSTAT]: Include <sys/protosw.h>.
21535         Details in http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/15465
21536
21537 2009-01-04  Jim Meyering  <meyering@redhat.com>
21538
21539         remove duplicate inclusion of <stdio.h>
21540         * tests/test-fprintf-posix.c: Likewise.
21541         * tests/test-printf-posix.c: Likewise.
21542         * tests/test-snprintf-posix.c: Likewise.
21543         * tests/test-sprintf-posix.c: Likewise.
21544         * tests/test-vasprintf-posix.c: Likewise.
21545         * tests/test-vfprintf-posix.c: Likewise.
21546         * tests/test-vprintf-posix.c: Likewise.
21547         * tests/test-vsnprintf-posix.c: Likewise.
21548         * tests/test-vsprintf-posix.c: Likewise.
21549
21550 2009-01-03  Jim Meyering  <meyering@redhat.com>
21551
21552         gnulib-tool: fix sed-based filtering
21553         * gnulib-tool (func_filter_filelist): Remove extra backslash
21554         in sed_fff_filter definition.
21555
21556 2009-01-02  Jim Meyering  <meyering@redhat.com>
21557
21558         strftime: avoid compilation failure on Solaris 2.6
21559         * modules/strftime (Depends-on): Add mbrlen and mbsinit.
21560         * lib/strftime.c [DO_MULTIBYTE]: Include <wchar.h> unconditionally.
21561         Don't #define mbrlen or mbsinit, since now they're guaranteed to
21562         be available.  Reported by Tom G. Christensen.  Details in
21563         <http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/16180>.
21564
21565 2009-01-01  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
21566             Bruno Haible  <bruno@clisp.org>
21567
21568         Speed up gnulib-tool by doing more string processing through shell
21569         built-ins.
21570         * gnulib-tool (fast_func_append): New variable.
21571         (func_remove_prefix, func_remove_suffix): New functions.
21572         (fast_func_remove_prefix, fast_func_remove_suffix): New variables.
21573         (func_filter_filelist): New function.
21574         (func_get_dependencies): Use func_remove_suffix instead of sed.
21575         (func_get_automake_snippet): Use func_filter_filelist instead of a
21576         subshell and sed invocation.
21577
21578 2009-01-01  Bruno Haible  <bruno@clisp.org>
21579
21580         Fix a security bug.
21581         * gnulib-tool (func_import, import, update): Don't allow the characters
21582         '"', '$', '`', '\' in macro arguments that become part of commands that
21583         are evaluated.
21584
21585 2009-01-01  Bruno Haible  <bruno@clisp.org>
21586
21587         * gnulib-tool (func_reset_sigpipe): Add more comments.
21588
21589 2009-01-01  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
21590
21591         * gnulib-tool (func_modules_add_dummy, func_emit_lib_Makefile_am,
21592         func_emit_tests_Makefile_am, func_import): Abort loops early if we
21593         already know the answer.
21594
21595 2009-01-01  Jim Meyering  <meyering@redhat.com>
21596
21597         * lib/version-etc.c (version_etc_va): Update copyright year.
21598
21599 2008-12-30  Bruno Haible  <bruno@clisp.org>
21600
21601         * m4/lib-prefix.m4 (AC_LIB_LINKFLAGS_BODY): Don't overwrite
21602         LIB${NAME}_PREFIX when considering the dependencies of lib${name}.
21603         Reported by Charles Wilson <cygwin@cwilson.fastmail.fm>.
21604
21605 2008-12-29  Eric Blake  <ebb9@byu.net>
21606
21607         multiarch: avoid autoconf AC_REQUIRE bug
21608         * m4/multiarch.m4 (gl_MULTIARCH): Split body...
21609         (gl_MULTIARCH_BODY): ...into new macro, to work around bug in Autoconf
21610         2.63 and older.
21611         Reported by Bruno Haible, and analyzed in
21612         http://lists.gnu.org/archive/html/bug-autoconf/2008-12/msg00039.html
21613
21614 2008-12-29  Bruno Haible  <bruno@clisp.org>
21615
21616         * gnulib-tool (func_import): When generating sed-ignore-removed, handle
21617         files in subdirectories correctly.
21618         Reported by Ralf Wildenhues.
21619
21620 2008-12-29  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
21621
21622         * gnulib-tool (func_update_ignorelist): Use 'join - FILE'
21623         rather than 'join FILE -', for Solaris join.
21624
21625 2008-12-29  Bruno Haible  <bruno@clisp.org>
21626
21627         * m4/codeset.m4 (AM_LANGINFO_CODESET): More systematic m4 argument
21628         quoting.
21629         * m4/gettext.m4 (AM_GNU_GETTEXT): Likewise.
21630         * m4/glibc2.m4 (gt_GLIBC2): Likewise.
21631         * m4/glibc21.m4 (gl_GLIBC21): Likewise.
21632         * m4/iconv.m4 (AM_ICONV_LINK, AM_ICONV): Likewise.
21633         * m4/intdiv0.m4 (gt_INTDIV0): Likewise.
21634         * m4/intlmacosx.m4 (gt_INTL_MACOSX): Likewise.
21635         * m4/intmax.m4 (gt_TYPE_INTMAX_T): Likewise.
21636         * m4/inttypes-pri.m4 (gt_INTTYPES_PRI): Likewise.
21637         * m4/inttypes_h.m4 (gl_AC_HEADER_INTTYPES_H): Likewise.
21638         * m4/lcmessage.m4 (gt_LC_MESSAGES): Likewise.
21639         * m4/nls.m4 (AM_NLS): Likewise.
21640         * m4/po.m4 (AM_PO_SUBDIRS): Likewise.
21641         * m4/printf-posix.m4 (gt_PRINTF_POSIX): Likewise.
21642         * m4/progtest.m4 (AM_PATH_PROG_WITH_TEST): Likewise.
21643         * m4/size_max.m4 (gl_SIZE_MAX): Likewise.
21644         * m4/stdint_h.m4 (gl_AC_HEADER_STDINT_H): Likewise.
21645         * m4/threadlib.m4 (gl_THREADLIB_BODY): Likewise.
21646         * m4/uintmax_t.m4 (gl_AC_TYPE_UINTMAX_T): Likewise.
21647         * m4/visibility.m4 (gl_VISIBILITY): Likewise.
21648         * m4/wchar_t.m4 (gt_TYPE_WCHAR_T): Likewise.
21649         * m4/wint_t.m4 (gt_TYPE_WINT_T): Likewise.
21650         * m4/xsize.m4 (gl_XSIZE): Likewise.
21651         Suggested by Jim Meyering.
21652
21653 2008-11-17  Bruce Korb  <bkorb@gnu.org>
21654
21655         * lib/parse-duration.h: non-iso form accepts years, months weeks, too
21656         * lib/parse-duration.c: use a switch instead of cascading if's.
21657
21658 2008-12-29  Eric Blake  <ebb9@byu.net>
21659
21660         wchar.h: supply WEOF on Irix 5.3
21661         * lib/wchar.in.h (wint_t): Also supply WEOF.
21662         * lib/wctype.in.h (wint_t): Likewise.
21663         * doc/posix-headers/wchar.texi (wchar.h): Document the bug.
21664         * doc/posix-headers/wctype.texi (wctype.h): Likewise.
21665         Reported by Tom G. Christensen.
21666
21667 2008-12-26  Bruno Haible  <bruno@clisp.org>
21668
21669         * m4/multiarch.m4 (gl_MULTIARCH): Recognize also the architecture names
21670         i486, i586, i686.
21671
21672 2008-12-26  Bruno Haible  <bruno@clisp.org>
21673
21674         * lib/stdlib.in.h (struct random_data): Fix indentation of comments.
21675
21676 2008-12-26  Bruno Haible  <bruno@clisp.org>
21677
21678         * lib/stdint.in.h: Move the include of <wchar.h> down until after all
21679         the types are defined. Also conditionalize it on __STDC_LIMIT_MACROS,
21680         not __STDC_CONSTANT_MACROS.
21681         Reported by Nelson H. F. Beebe <beebe@math.utah.edu> via Eric Blake.
21682
21683 2008-12-25  Bruno Haible  <bruno@clisp.org>
21684
21685         Add support for universal builds to vasnprintf.
21686         * m4/printf.m4 (gl_PRINTF_ENOMEM): Require gl_MULTIARCH. In Apple
21687         universal builds, guess no.
21688         * modules/vasnprintf-posix (Depends-on): Add multiarch.
21689         * modules/vasprintf-posix (Depends-on): Likewise.
21690         * modules/fprintf-posix (Depends-on): Likewise.
21691         * modules/vfprintf-posix (Depends-on): Likewise.
21692         * modules/snprintf-posix (Depends-on): Likewise.
21693         * modules/vsnprintf-posix (Depends-on): Likewise.
21694         * modules/sprintf-posix (Depends-on): Likewise.
21695         * modules/vsprintf-posix (Depends-on): Likewise.
21696         * modules/unistdio/u8-vasnprintf (Depends-on): Likewise.
21697         * modules/unistdio/u8-u8-vasnprintf (Depends-on): Likewise.
21698         * modules/unistdio/u16-vasnprintf (Depends-on): Likewise.
21699         * modules/unistdio/u16-u16-vasnprintf (Depends-on): Likewise.
21700         * modules/unistdio/u32-vasnprintf (Depends-on): Likewise.
21701         * modules/unistdio/u32-u32-vasnprintf (Depends-on): Likewise.
21702         * modules/unistdio/ulc-vasnprintf (Depends-on): Likewise.
21703
21704         Add support for universal builds to <inttypes.h>.
21705         * lib/inttypes.in.h (_PRI64_PREFIX, _PRIu64_PREFIX, _SCN64_PREFIX,
21706         _SCNu64_PREFIX): In Apple
21707         universal builds, define directly, using _LP64.
21708         * m4/inttypes.m4 (gl_INTTYPES_H): In Apple universal builds, set
21709         INT64_MAX_EQ_LONG_MAX and UINT64_MAX_EQ_ULONG_MAX to -1.
21710         * modules/inttypes (Depends-on): Add multiarch.
21711         (Makefile.am): Substitute APPLE_UNIVERSAL_BUILD.
21712
21713         Add support for universal builds to <stdint.h>.
21714         * lib/stdint.in.h (PDFDIFF_MIN, PTRDIFF_MAX, SIZE_MAX): In Apple
21715         universal builds, define directly, using _LP64.
21716         * m4/stdint.m4 (gl_STDINT_TYPE_PROPERTIES): Require gl_MULTIARCH. In
21717         Apple universal builds, don't test for the size and suffix of ptrdiff_t
21718         and size_t.
21719         * modules/stdint (Depends-on): Add multiarch.
21720         (Makefile.am): Substitute APPLE_UNIVERSAL_BUILD.
21721
21722         New module 'multiarch'.
21723         * modules/multiarch: New file.
21724         * m4/multiarch.m4: New file.
21725
21726 2008-12-25  Bruno Haible  <bruno@clisp.org>
21727
21728         * gnulib-tool (func_create_testdir): Avoid failure of mv command.
21729
21730 2008-12-25  Bruno Haible  <bruno@clisp.org>
21731
21732         * modules/btowc (License): Relicense under LGPLv2+.
21733         * modules/mbsinit (License): Likewise.
21734         * modules/mbrtowc (License): Likewise.
21735         * modules/wcrtomb (License): Likewise.
21736         * modules/streq (License): Likewise.
21737         Reported by David Lutterkort <lutter@redhat.com>.
21738
21739 2008-12-23  Bruno Haible  <bruno@clisp.org>
21740
21741         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Fix conditional and comment.
21742
21743 2008-12-23  Bruno Haible  <bruno@clisp.org>
21744
21745         Module getaddrinfo requires linking with $(GETADDRINFO_LIB).
21746         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Put link options into
21747         GETADDRINFO_LIB, not in LIBS.
21748         * modules/getaddrinfo (Link): Set to $(GETADDRINFO_LIB).
21749         * modules/canon-host (Link): Likewise.
21750         * NEWS: Mention the change.
21751         * modules/getaddrinfo-tests (test_getaddrinfo_LDADD): Add the
21752         GETADDRINFO_LIB.
21753
21754 2008-12-22  Bruno Haible  <bruno@clisp.org>
21755
21756         * doc/posix-functions/iswalnum_l.texi: Mention limitation of wchar_t.
21757         * doc/posix-functions/iswalpha_l.texi: Likewise.
21758         * doc/posix-functions/iswblank_l.texi: Likewise.
21759         * doc/posix-functions/iswcntrl_l.texi: Likewise.
21760         * doc/posix-functions/iswctype_l.texi: Likewise.
21761         * doc/posix-functions/iswdigit_l.texi: Likewise.
21762         * doc/posix-functions/iswgraph_l.texi: Likewise.
21763         * doc/posix-functions/iswlower_l.texi: Likewise.
21764         * doc/posix-functions/iswprint_l.texi: Likewise.
21765         * doc/posix-functions/iswpunct_l.texi: Likewise.
21766         * doc/posix-functions/iswspace_l.texi: Likewise.
21767         * doc/posix-functions/iswupper_l.texi: Likewise.
21768         * doc/posix-functions/iswxdigit_l.texi: Likewise.
21769         * doc/posix-functions/mbsnrtowcs.texi: Likewise.
21770         * doc/posix-functions/open_wmemstream.texi: Likewise.
21771         * doc/posix-functions/swscanf.texi: Likewise.
21772         * doc/posix-functions/towctrans_l.texi: Likewise.
21773         * doc/posix-functions/towlower.texi: Likewise.
21774         * doc/posix-functions/towlower_l.texi: Likewise.
21775         * doc/posix-functions/towupper.texi: Likewise.
21776         * doc/posix-functions/towupper_l.texi: Likewise.
21777         * doc/posix-functions/vfwprintf.texi: Likewise.
21778         * doc/posix-functions/vfwscanf.texi: Likewise.
21779         * doc/posix-functions/vswscanf.texi: Likewise.
21780         * doc/posix-functions/vwprintf.texi: Likewise.
21781         * doc/posix-functions/vwscanf.texi: Likewise.
21782         * doc/posix-functions/wcpcpy.texi: Likewise.
21783         * doc/posix-functions/wcpncpy.texi: Likewise.
21784         * doc/posix-functions/wcscasecmp.texi: Likewise.
21785         * doc/posix-functions/wcscasecmp_l.texi: Likewise.
21786         * doc/posix-functions/wcscoll_l.texi: Likewise.
21787         * doc/posix-functions/wcsdup.texi: Likewise.
21788         * doc/posix-functions/wcsncasecmp.texi: Likewise.
21789         * doc/posix-functions/wcsncasecmp_l.texi: Likewise.
21790         * doc/posix-functions/wcsnlen.texi: Likewise.
21791         * doc/posix-functions/wcsnrtombs.texi: Likewise.
21792         * doc/posix-functions/wcsxfrm_l.texi: Likewise.
21793         * doc/posix-functions/wctrans_l.texi: Likewise.
21794         * doc/posix-functions/wctype_l.texi: Likewise.
21795         * doc/glibc-functions/fgetwc_unlocked.texi: Likewise.
21796         * doc/glibc-functions/fgetws_unlocked.texi: Likewise.
21797         * doc/glibc-functions/fputwc_unlocked.texi: Likewise.
21798         * doc/glibc-functions/fputws_unlocked.texi: Likewise.
21799         * doc/glibc-functions/getwc_unlocked.texi: Likewise.
21800         * doc/glibc-functions/getwchar_unlocked.texi: Likewise.
21801         * doc/glibc-functions/putwc_unlocked.texi: Likewise.
21802         * doc/glibc-functions/putwchar_unlocked.texi: Likewise.
21803         * doc/glibc-functions/wcschrnul.texi: Likewise.
21804         * doc/glibc-functions/wcsftime_l.texi: Likewise.
21805         * doc/glibc-functions/wcstod_l.texi: Likewise.
21806         * doc/glibc-functions/wcstof_l.texi: Likewise.
21807         * doc/glibc-functions/wcstol_l.texi: Likewise.
21808         * doc/glibc-functions/wcstold_l.texi: Likewise.
21809         * doc/glibc-functions/wcstoll_l.texi: Likewise.
21810         * doc/glibc-functions/wcstoq.texi: Likewise.
21811         * doc/glibc-functions/wcstoul_l.texi: Likewise.
21812         * doc/glibc-functions/wcstoull_l.texi: Likewise.
21813         * doc/glibc-functions/wcstouq.texi: Likewise.
21814         * doc/glibc-functions/wmempcpy.texi: Likewise.
21815
21816 2008-12-22  Ingo Weinhold  <ingo_weinhold@gmx.de>  (tiny change)
21817             Eric Blake  <ebb9@byu.net>
21818             Paolo Bonzini  <bonzini@gnu.org>
21819             Bruno Haible  <bruno@clisp.org>
21820
21821         Make c-stack work on Haiku.
21822         * lib/c-stack.c (SA_ONSTACK): Define fallback.
21823         (c_stack_action): Use SA_ONSTACK flag.
21824
21825 2008-12-22  Bruno Haible  <bruno@clisp.org>
21826
21827         * m4/locale-fr.m4 (gt_LOCALE_FR_UTF8): Treat Haiku like BeOS.
21828
21829 2008-12-22  Bruno Haible  <bruno@clisp.org>
21830
21831         Work around mbrlen() bugs on AIX, HP-UX, OSF/1, Solaris.
21832         * m4/mbrlen.m4 (gl_FUNC_MBRLEN): Set REPLACE_MBRLEN if mbrtowc is
21833         being overridden.
21834         (gl_MBRLEN_INCOMPLETE_STATE, gl_MBRLEN_RETVAL, gl_MBRLEN_NUL_RETVAL):
21835         New macros.
21836         * lib/wchar.in.h (mbrlen): Override if REPLACE_MBRLEN is set.
21837         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_MBRLEN.
21838         * modules/wchar (Makefile.am): Substitute REPLACE_MBRLEN.
21839         * doc/posix-functions/mbrlen.texi: Mention the various platform bugs.
21840
21841 2008-12-22  Bruno Haible  <bruno@clisp.org>
21842
21843         * m4/mbrtowc.m4 (gl_MBRTOWC_INCOMPLETE_STATE): Remove unused variable
21844         from test code.
21845
21846 2008-12-22  Eric Blake  <ebb9@byu.net>
21847
21848         Avoid gcc warnings on cygwin.
21849         * lib/regex_internal.c (re_string_reconstruct) [!RE_ENABLE_I18N]:
21850         Avoid unused variable.
21851         * lib/regexec.c (check_arrival_add_next_nodes) [!RE_ENABLE_I18N]:
21852         Likewise.
21853
21854 2008-12-22  Bruno Haible  <bruno@clisp.org>
21855
21856         Remove HAVE_MBRTOWC conditionals.
21857         * lib/mbscasecmp.c: Include mbuiter.h unconditionally.
21858         (mbscasecmp): Assume mbrtowc function.
21859         * lib/mbscasestr.c: Include mbuiter.h unconditionally.
21860         (knuth_morris_pratt_multibyte, mbscasestr): Assume mbrtowc function.
21861         * lib/mbschr.c: Include mbuiter.h unconditionally.
21862         (mbschr): Assume mbrtowc function.
21863         * lib/mbscspn.c: Include mbuiter.h unconditionally.
21864         (mbscspn): Assume mbrtowc function.
21865         * lib/mbslen.c: Include mbuiter.h unconditionally.
21866         (mbslen): Assume mbrtowc function.
21867         * lib/mbsncasecmp.c: Include mbuiter.h unconditionally.
21868         (mbsncasecmp): Assume mbrtowc function.
21869         * lib/mbsnlen.c: Include mbiter.h unconditionally.
21870         (mbsnlen): Assume mbrtowc function.
21871         * lib/mbspbrk.c: Include mbuiter.h unconditionally.
21872         (mbspbrk): Assume mbrtowc function.
21873         * lib/mbspcasecmp.c: Include mbuiter.h unconditionally.
21874         (mbspcasecmp): Assume mbrtowc function.
21875         * lib/mbsrchr.c: Include mbuiter.h unconditionally.
21876         (mbsrchr): Assume mbrtowc function.
21877         * lib/mbssep.c: Include mbuiter.h unconditionally.
21878         (mbssep): Assume mbrtowc function.
21879         * lib/mbsspn.c: Include mbuiter.h unconditionally.
21880         (mbsspn): Assume mbrtowc function.
21881         * lib/mbsstr.c: Include mbuiter.h unconditionally.
21882         (knuth_morris_pratt_multibyte, mbsstr): Assume mbrtowc function.
21883         * lib/mbstok_r.c: Include mbuiter.h unconditionally.
21884         (mbstok_r): Assume mbrtowc function.
21885         * lib/propername.c: Include mbuiter.h unconditionally.
21886         (mbsstr_trimmed_wordbounded): Assume mbrtowc function.
21887         * lib/trim.c: Include mbchar.h, mbiter.h uncondtionally.
21888         (trim2): Assume mbrtowc function.
21889         * lib/mbswidth.c (mbsinit): Remove fallback definition.
21890         (mbsnwidth): Assume mbrtowc function.
21891         * modules/mbswidth (Depends-on): Add mbrtowc, mbsinit.
21892         * lib/quotearg.c (MB_CUR_MAX, mbstate_t, mbrtowc, iswprint): Remove
21893         fallback definitions.
21894         * modules/quotearg (Depends-on): Add mbrtowc, mbsinit.
21895
21896 2008-12-22  Bruno Haible  <bruno@clisp.org>
21897
21898         * doc/posix-functions/mbtowc.texi: Mention a glibc bug.
21899
21900 2008-12-22  Paolo Bonzini  <bonzini@gnu.org>
21901
21902         * modules/regex: Request emulations for the mb*/wc* functions we need.
21903         * m4/regex.m4: Don't look for those functions here.
21904         * lib/regex_internal.h: Do not check HAVE_WCRTOMB and HAVE_MBRTOWC.
21905
21906 2008-12-22  Bruno Haible  <bruno@clisp.org>
21907
21908         * modules/fnmatch (Depends-on): Remove duplicated dependency.
21909
21910 2008-12-21  Bruno Haible  <bruno@clisp.org>
21911
21912         Make mbiter.h, mbuiter.h, mbfile.h usable unconditionally.
21913         * modules/mbiter (Depends-on): Add mbrtowc, mbsinit.
21914         (Include): Remove conditionalization.
21915         * modules/mbuiter (Depends-on): Add mbrtowc, mbsinit.
21916         (Include): Remove conditionalization.
21917         * modules/mbfile (Depends-on): Add mbrtowc, mbsinit.
21918         (Include): Remove conditionalization.
21919         * m4/mbiter.m4 (gl_MBITER): Deprecate the use of AC_FUNC_MBRTOWC.
21920         * m4/mbfile.m4 (gl_MBFILE): Likewise.
21921         * NEWS: Mention the change.
21922         Reported by Alan Hourihane <alanh@fairlite.co.uk>
21923         via Sergey Poznyakoff <gray@gnu.org.ua>.
21924
21925 2008-12-21  Bruno Haible  <bruno@clisp.org>
21926
21927         * MODULES.html.sh (Extended multibyte and wide character utilities
21928         <wchar.h>): Add btowc, wctob, mbsinit, mbrlen, mbrtowc, mbsrtowcs,
21929         wcrtomb, wcsrtombs.
21930         (Support for systems lacking POSIX:2008): Add accept, bind, close,
21931         connect, fclose, getpeername, getsockname, getsockopt, hostent, listen,
21932         mbsnrtowcs, posix_spawn*, recv, recvfrom, sched, select, send, sendto,
21933         setsockopt, shutdown, socket, spawn, sys_wait, wcsnrtombs, write.
21934
21935 2008-12-21  Bruno Haible  <bruno@clisp.org>
21936
21937         * MODULES.html.sh: Change section titles to refer to POSIX:2008.
21938
21939 2008-12-21  Bruno Haible  <bruno@clisp.org>
21940
21941         * modules/wcsnrtombs-tests: New file.
21942         * tests/test-wcsnrtombs1.sh: New file.
21943         * tests/test-wcsnrtombs2.sh: New file.
21944         * tests/test-wcsnrtombs3.sh: New file.
21945         * tests/test-wcsnrtombs4.sh: New file.
21946         * tests/test-wcsnrtombs.c: New file.
21947
21948         New module 'wcsnrtombs'.
21949         * lib/wchar.in.h (wcsnrtombs): New declaration.
21950         * lib/wcsnrtombs.c: New file.
21951         * lib/wcsrtombs-state.c: New file.
21952         * lib/wcsrtombs.c: Refer to _gl_wcsrtombs_state.
21953         (internal_state): Remove variable.
21954         * m4/wcsnrtombs.m4: New file.
21955         * m4/wcsrtombs.m4 (gl_FUNC_WCSRTOMBS): Add wcsrtombs-state.c to the
21956         compilation units.
21957         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSNRTOMBS,
21958         HAVE_WCSNRTOMBS.
21959         * modules/wchar (Makefile.am): Substitute GNULIB_WCSNRTOMBS,
21960         HAVE_WCSNRTOMBS.
21961         * modules/wcsnrtombs: New file.
21962         * modules/wcsrtombs (Files): Add lib/wcsrtombs-state.c.
21963         * doc/posix-functions/wcsnrtombs.texi: Mention the new module.
21964
21965 2008-12-21  Bruno Haible  <bruno@clisp.org>
21966
21967         * modules/wcsrtombs-tests: New file.
21968         * tests/test-wcsrtombs1.sh: New file.
21969         * tests/test-wcsrtombs2.sh: New file.
21970         * tests/test-wcsrtombs3.sh: New file.
21971         * tests/test-wcsrtombs4.sh: New file.
21972         * tests/test-wcsrtombs.c: New file.
21973
21974         New module 'wcsrtombs'.
21975         * lib/wchar.in.h (wcsrtombs): New declaration.
21976         * lib/wcsrtombs.c: New file.
21977         * m4/wcsrtombs.m4: New file.
21978         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSRTOMBS,
21979         HAVE_WCSRTOMBS, REPLACE_WCSRTOMBS.
21980         * modules/wchar (Makefile.am): Substitute GNULIB_WCSRTOMBS,
21981         HAVE_WCSRTOMBS, REPLACE_WCSRTOMBS.
21982         * modules/wcsrtombs: New file.
21983         * doc/posix-functions/wcsrtombs.texi: Mention the new module and the
21984         bugs.
21985
21986 2008-12-21  Bruno Haible  <bruno@clisp.org>
21987
21988         Work around a wcrtomb() bug on Solaris 10 and OSF/1 5.1.
21989         * lib/wchar.in.h (wcrtomb): Override if REPLACE_WCRTOMB is set.
21990         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Test the return value of wcrtomb
21991         with NULL destination argument in various locales. Set REPLACE_WCRTOMB
21992         if not correct.
21993         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_WCRTOMB.
21994         * modules/wchar (Makefile.am): Substitute REPLACE_WCRTOMB.
21995         * modules/wcrtomb (Files): Add m4/locale-fr.m4, m4/locale-ja.m4,
21996         m4/locale-zh.m4, m4/codeset.m4.
21997         * doc/posix-functions/wcrtomb.texi: Document the bug.
21998
21999 2008-12-21  Bruno Haible  <bruno@clisp.org>
22000
22001         Work around a btowc() bug on IRIX 6.5.
22002         * lib/wchar.in.h (btowc): Override if REPLACE_BTOWC is set.
22003         * m4/btowc.m4 (gl_FUNC_BTOWC): Test whether btowc(EOF) is correct. Set
22004         REPLACE_WTOBC if not.
22005         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_BTOWC.
22006         * modules/wchar (Makefile.am): Substitute REPLACE_BTOWC.
22007         * doc/posix-functions/btowc.texi: Mention the IRIX bug.
22008
22009 2008-12-21  Bruno Haible  <bruno@clisp.org>
22010
22011         * modules/wcrtomb-tests: New file.
22012         * tests/test-wcrtomb.sh: New file.
22013         * tests/test-wcrtomb.c: New file.
22014
22015         New module 'wcrtomb'.
22016         * lib/wchar.in.h (wcrtomb): New declaration.
22017         * lib/wcrtomb.c: New file.
22018         * m4/wcrtomb.m4: New file.
22019         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCRTOMB,
22020         HAVE_WCRTOMB.
22021         * modules/wchar (Makefile.am): Substitute GNULIB_WCRTOMB,
22022         HAVE_WCRTOMB.
22023         * modules/wcrtomb: New file.
22024         * doc/posix-functions/wcrtomb.texi: Mention the new module.
22025
22026 2008-12-21  Bruno Haible  <bruno@clisp.org>
22027
22028         * modules/mbrtowc (Files): Add m4/codeset.m4, needed by m4/locale-fr.m4.
22029         * modules/mbsrtowcs (Files): Likewise.
22030         * modules/wctob (Files): Likewise.
22031         * modules/c-strcase-tests (Files): Likewise.
22032         * modules/unistdio/u8-vasnprintf-tests (Files): Likewise.
22033         * modules/unistdio/u16-vasnprintf-tests (Files): Likewise.
22034         * modules/unistdio/u32-vasnprintf-tests (Files): Likewise.
22035         * modules/unistdio/ulc-vasnprintf-tests (Files): Likewise.
22036         * modules/vasnprintf-posix-tests (Files): Likewise.
22037
22038 2008-12-21  William Pursell  <bill.pursell@gmail.com>
22039
22040         gitlog-to-changelog: pass all command-line arguments to git-log
22041         * build-aux/gitlog-to-changelog: When producing a ChangeLog,
22042         it is sometimes convenient to filter the commits in various ways.
22043         gitlog-to-changelog only allows --since to specify a start date,
22044         but git-log itself supports many other filtering mechanisms.
22045         At the moment, I want to filter by branch name.  Rather than
22046         adding a --branch option to gitlog-to-changelog, it seems more
22047         flexible to simply pass all options directly to git-log and let
22048         git do the work.  Notice that this effectively makes --since a
22049         redundant option for gitlog-to-changelog, but removing it would
22050         require current usage to change since calls would then require
22051         an additional '--'.
22052
22053 2008-12-21  Bruno Haible  <bruno@clisp.org>
22054
22055         * modules/mbsnrtowcs-tests: New file.
22056         * tests/test-mbsnrtowcs1.sh: New file.
22057         * tests/test-mbsnrtowcs2.sh: New file.
22058         * tests/test-mbsnrtowcs3.sh: New file.
22059         * tests/test-mbsnrtowcs4.sh: New file.
22060         * tests/test-mbsnrtowcs.c: New file.
22061
22062         New module 'mbsnrtowcs'.
22063         * lib/wchar.in.h (mbsnrtowcs): New declaration.
22064         * lib/mbsnrtowcs.c: New file.
22065         * lib/mbsrtowcs-state.c: New file.
22066         * lib/mbsrtowcs.c: Refer to _gl_mbsrtowcs_state.
22067         (internal_state): Remove variable.
22068         * m4/mbsnrtowcs.m4: New file.
22069         * m4/mbsrtowcs.m4 (gl_FUNC_MBSRTOWCS): Add mbsrtowcs-state.c to the
22070         compilation units.
22071         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_MBSNRTOWCS,
22072         HAVE_MBSNRTOWCS, REPLACE_MBSNRTOWCS.
22073         * modules/wchar (Makefile.am): Substitute GNULIB_MBSNRTOWCS,
22074         HAVE_MBSNRTOWCS, REPLACE_MBSNRTOWCS.
22075         * modules/mbsnrtowcs: New file.
22076         * modules/mbsrtowcs (Files): Add lib/mbsrtowcs-state.c.
22077         * doc/posix-functions/mbsnrtowcs.texi: Mention the new module and a
22078         portability problem.
22079
22080 2008-12-21  Bruno Haible  <bruno@clisp.org>
22081
22082         Work around mbsrtowcs bug.
22083         * m4/mbsrtowcs.m4 (gl_MBSRTOWCS_WORKS): New macro.
22084         (gl_FUNC_MBSRTOWCS): Invoke it.
22085         * modules/mbsrtowcs (Files): Add m4/locale-fr.m4, m4/locale-ja.m4,
22086         m4/locale-zh.m4.
22087         * doc/posix-functions/mbsrtowcs.texi: Document the bug.
22088
22089 2008-12-21  Bruno Haible  <bruno@clisp.org>
22090
22091         * tests/test-mbsrtowcs.c (main): Execute the loop also for unlimited=1.
22092
22093 2008-12-21  Bruno Haible  <bruno@clisp.org>
22094
22095         Update doc for AIX.
22096         * doc/pastposix-functions/wcswcs.texi: Mention that AIX has only a
22097         16-bit wchar_t type.
22098         * doc/posix-functions/btowc.texi: Likewise.
22099         * doc/posix-functions/fgetwc.texi: Likewise.
22100         * doc/posix-functions/fgetws.texi: Likewise.
22101         * doc/posix-functions/fputwc.texi: Likewise.
22102         * doc/posix-functions/fputws.texi: Likewise.
22103         * doc/posix-functions/fwide.texi: Likewise.
22104         * doc/posix-functions/fwprintf.texi: Likewise.
22105         * doc/posix-functions/fwscanf.texi: Likewise.
22106         * doc/posix-functions/getwchar.texi: Likewise.
22107         * doc/posix-functions/getwc.texi: Likewise.
22108         * doc/posix-functions/iswalnum.texi: Likewise.
22109         * doc/posix-functions/iswalpha.texi: Likewise.
22110         * doc/posix-functions/iswblank.texi: Likewise.
22111         * doc/posix-functions/iswcntrl.texi: Likewise.
22112         * doc/posix-functions/iswctype.texi: Likewise.
22113         * doc/posix-functions/iswdigit.texi: Likewise.
22114         * doc/posix-functions/iswgraph.texi: Likewise.
22115         * doc/posix-functions/iswlower.texi: Likewise.
22116         * doc/posix-functions/iswprint.texi: Likewise.
22117         * doc/posix-functions/iswpunct.texi: Likewise.
22118         * doc/posix-functions/iswspace.texi: Likewise.
22119         * doc/posix-functions/iswupper.texi: Likewise.
22120         * doc/posix-functions/iswxdigit.texi: Likewise.
22121         * doc/posix-functions/mbrtowc.texi: Likewise.
22122         * doc/posix-functions/mbsrtowcs.texi: Likewise.
22123         * doc/posix-functions/mbstowcs.texi: Likewise.
22124         * doc/posix-functions/mbtowc.texi: Likewise.
22125         * doc/posix-functions/putwchar.texi: Likewise.
22126         * doc/posix-functions/putwc.texi: Likewise.
22127         * doc/posix-functions/swprintf.texi: Likewise.
22128         * doc/posix-functions/tolower.texi: Likewise.
22129         * doc/posix-functions/toupper.texi: Likewise.
22130         * doc/posix-functions/towctrans.texi: Likewise.
22131         * doc/posix-functions/ungetwc.texi: Likewise.
22132         * doc/posix-functions/vswprintf.texi: Likewise.
22133         * doc/posix-functions/wcrtomb.texi: Likewise.
22134         * doc/posix-functions/wcscat.texi: Likewise.
22135         * doc/posix-functions/wcschr.texi: Likewise.
22136         * doc/posix-functions/wcscmp.texi: Likewise.
22137         * doc/posix-functions/wcscoll.texi: Likewise.
22138         * doc/posix-functions/wcscpy.texi: Likewise.
22139         * doc/posix-functions/wcscspn.texi: Likewise.
22140         * doc/posix-functions/wcsftime.texi: Likewise.
22141         * doc/posix-functions/wcslen.texi: Likewise.
22142         * doc/posix-functions/wcsncat.texi: Likewise.
22143         * doc/posix-functions/wcsncmp.texi: Likewise.
22144         * doc/posix-functions/wcsncpy.texi: Likewise.
22145         * doc/posix-functions/wcspbrk.texi: Likewise.
22146         * doc/posix-functions/wcsrchr.texi: Likewise.
22147         * doc/posix-functions/wcsrtombs.texi: Likewise.
22148         * doc/posix-functions/wcsspn.texi: Likewise.
22149         * doc/posix-functions/wcsstr.texi: Likewise.
22150         * doc/posix-functions/wcstod.texi: Likewise.
22151         * doc/posix-functions/wcstof.texi: Likewise.
22152         * doc/posix-functions/wcstoimax.texi: Likewise.
22153         * doc/posix-functions/wcstok.texi: Likewise.
22154         * doc/posix-functions/wcstold.texi: Likewise.
22155         * doc/posix-functions/wcstoll.texi: Likewise.
22156         * doc/posix-functions/wcstol.texi: Likewise.
22157         * doc/posix-functions/wcstombs.texi: Likewise.
22158         * doc/posix-functions/wcstoull.texi: Likewise.
22159         * doc/posix-functions/wcstoul.texi: Likewise.
22160         * doc/posix-functions/wcstoumax.texi: Likewise.
22161         * doc/posix-functions/wcswidth.texi: Likewise.
22162         * doc/posix-functions/wcsxfrm.texi: Likewise.
22163         * doc/posix-functions/wctob.texi: Likewise.
22164         * doc/posix-functions/wctomb.texi: Likewise.
22165         * doc/posix-functions/wctrans.texi: Likewise.
22166         * doc/posix-functions/wctype.texi: Likewise.
22167         * doc/posix-functions/wcwidth.texi: Likewise.
22168         * doc/posix-functions/wmemchr.texi: Likewise.
22169         * doc/posix-functions/wmemcmp.texi: Likewise.
22170         * doc/posix-functions/wmemcpy.texi: Likewise.
22171         * doc/posix-functions/wmemmove.texi: Likewise.
22172         * doc/posix-functions/wmemset.texi: Likewise.
22173         * doc/posix-functions/wprintf.texi: Likewise.
22174         * doc/posix-functions/wscanf.texi: Likewise.
22175
22176 2008-12-21  Bruno Haible  <bruno@clisp.org>
22177
22178         Update doc for HP-UX 11.11.
22179         * doc/posix-functions/btowc.texi: Clarify that the function is missing
22180         in HP-UX version 11.00, not in all versions of HP-UX 11.
22181         * doc/posix-functions/fwide.texi: Likewise.
22182         * doc/posix-functions/fwprintf.texi: Likewise.
22183         * doc/posix-functions/fwscanf.texi: Likewise.
22184         * doc/posix-functions/inet_ntop.texi: Likewise.
22185         * doc/posix-functions/inet_pton.texi: Likewise.
22186         * doc/posix-functions/mbrlen.texi: Likewise.
22187         * doc/posix-functions/mbrtowc.texi: Likewise.
22188         * doc/posix-functions/mbsinit.texi: Likewise.
22189         * doc/posix-functions/mbsrtowcs.texi: Likewise.
22190         * doc/posix-functions/swprintf.texi: Likewise.
22191         * doc/posix-functions/swscanf.texi: Likewise.
22192         * doc/posix-functions/towctrans.texi: Likewise.
22193         * doc/posix-functions/vfwprintf.texi: Likewise.
22194         * doc/posix-functions/vswprintf.texi: Likewise.
22195         * doc/posix-functions/vwprintf.texi: Likewise.
22196         * doc/posix-functions/wcrtomb.texi: Likewise.
22197         * doc/posix-functions/wcsrtombs.texi: Likewise.
22198         * doc/posix-functions/wcsstr.texi: Likewise.
22199         * doc/posix-functions/wctob.texi: Likewise.
22200         * doc/posix-functions/wctrans.texi: Likewise.
22201         * doc/posix-functions/wmemchr.texi: Likewise.
22202         * doc/posix-functions/wmemcmp.texi: Likewise.
22203         * doc/posix-functions/wmemcpy.texi: Likewise.
22204         * doc/posix-functions/wmemmove.texi: Likewise.
22205         * doc/posix-functions/wmemset.texi: Likewise.
22206         * doc/posix-functions/wprintf.texi: Likewise.
22207         * doc/posix-functions/wscanf.texi: Likewise.
22208
22209 2008-12-21  Bruno Haible  <bruno@clisp.org>
22210
22211         Work around a portability problem.
22212         * tests/test-mbsrtowcs.c (main): Use a temporary conversion state.
22213         * doc/posix-functions/mbsrtowcs.texi: Document the portability problem.
22214
22215 2008-12-20  Bruno Haible  <bruno@clisp.org>
22216
22217         * lib/wchar.in.h (mbsrtowcs): Redefine if REPLACE_MBSRTOWCS is set.
22218         * m4/mbsrtowcs.m4 (gl_FUNC_MBSRTOWCS): Invoke gl_MBSTATE_T_BROKEN. Set
22219         REPLACE_MBSRTOWCS if mbsrtowcs needs to be overridden.
22220         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_MBSRTOWCS.
22221         * modules/wchar (Makefile.am): Substitute REPLACE_MBSRTOWCS.
22222
22223         Work around mbrtowc bugs on AIX, HP-UX, OSF/1, Solaris.
22224         * lib/wchar.in.h (mbstate_t): Redefine also if REPLACE_MBSTATE_T is
22225         set.
22226         (GNULIB_defined_mbstate_t): New macro.
22227         (mbsinit): Redefine if REPLACE_MBSINIT is set.
22228         (mbrtowc): Redefine if REPLACE_MBRTOWC is set.
22229         * lib/mbrtowc.c (rpl_mbrtowc): Add an alternative implementation that
22230         reuses the system's mbrtowc function but works around the bugs.
22231         * m4/mbrtowc.m4 (gl_MBSTATE_T_BROKEN, gl_MBRTOWC_INCOMPLETE_STATE,
22232         gl_MBRTOWC_NULL_ARG, gl_MBRTOWC_RETVAL, gl_MBRTOWC_NUL_RETVAL): New
22233         macros.
22234         (gl_FUNC_MBRTOWC): Invoke them. Set REPLACE_MBRTOWC if mbrtowc needs to
22235         be overridden. Optionally define MBRTOWC_NULL_ARG_BUG,
22236         MBRTOWC_RETVAL_BUG, MBRTOWC_NUL_RETVAL_BUG.
22237         * m4/mbsinit.m4 (gl_FUNC_MBSINIT): Invoke gl_MBSTATE_T_BROKEN. Set
22238         REPLACE_MBSINIT if mbsinit needs to be overridden.
22239         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_MBSTATE_T,
22240         REPLACE_MBSINIT, REPLACE_MBRTOWC.
22241         * modules/wchar (Makefile.am): Substitute REPLACE_MBSTATE_T,
22242         REPLACE_MBSINIT, REPLACE_MBRTOWC.
22243         * modules/mbrtowc (Files): Add m4/locale-fr.m4, m4/locale-ja.m4,
22244         m4/locale-zh.m4.
22245         (Depends): Add mbsinit.
22246         * modules/mbsinit (Depends): Add mbrtowc.
22247         * doc/posix-functions/mbrtowc.texi: Mention the various bugs.
22248
22249 2008-12-20  Bruno Haible  <bruno@clisp.org>
22250
22251         * tests/test-mbrtowc.c (main): Change sample string in EUC-JP encoding
22252         so that there are no conversion errors on AIX.
22253         * tests/test-mbsrtowcs.c (main): LIkewise.
22254
22255 2008-12-20  Bruno Haible  <bruno@clisp.org>
22256
22257         Work around wctob bug on Solaris <= 9.
22258         * lib/wchar.in.h (wctob): Redefine if REPLACE_WCTOB is set.
22259         * m4/wctob.m4 (gl_FUNC_WCTOB): Test whether wctob works.
22260         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_WCTOB.
22261         * modules/wchar (Makefile.am): Substitute REPLACE_WCTOB.
22262         * modules/wctob (Files): Add m4/locale-fr.m4.
22263         * doc/posix-functions/wctob.texi: Mention the Solaris bug.
22264
22265 2008-12-20  Bruno Haible  <bruno@clisp.org>
22266
22267         * doc/posix-functions/select.texi: Mention Solaris 2.6 bug with
22268         /dev/null.
22269         * tests/test-select-in.sh: Likewise.
22270         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
22271
22272 2008-12-20  Bruno Haible  <bruno@clisp.org>
22273
22274         Don't pretend that Cygwin has a ja_JP.EUC-JP locale.
22275         * m4/locale-ja.m4 (gt_LOCALE_JA): Add test for MB_CUR_MAX. Needed on
22276         Cygwin 1.5.x.
22277
22278 2008-12-20  Bruno Haible  <bruno@clisp.org>
22279
22280         Ensure mbstate_t is defined on HP-UX 11.11.
22281         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS): Require
22282         AC_CANONICAL_HOST. On HP-UX, define _XOPEN_SOURCE to 500.
22283         * m4/mbstate_t.m4 (AC_TYPE_MBSTATE_T): Require
22284         AC_USE_SYSTEM_EXTENSIONS.
22285         * modules/fnmatch (Depends-on): Add extensions.
22286         * modules/mbrlen (Depends-on): Likewise.
22287         * modules/mbrtowc (Depends-on): Likewise.
22288         * modules/mbsinit (Depends-on): Likewise.
22289         * modules/mbsrtowcs (Depends-on): Likewise.
22290         * modules/mbswidth (Depends-on): Likewise.
22291         * modules/quotearg (Depends-on): Likewise.
22292         * modules/strftime (Depends-on): Likewise.
22293
22294 2008-12-20  Bruno Haible  <bruno@clisp.org>
22295
22296         Ensure wctob is declared on IRIX 6.5.
22297         * lib/wchar.in.h (wctob): Declare also when HAVE_DECL_WCTOB is 0.
22298         * m4/wctob.m4 (gl_FUNC_WCTOB): Set HAVE_DECL_WCTOB instead of
22299         HAVE_WCTOB. Also test whether <wchar.h> declares wctob.
22300         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize HAVE_DECL_WCTOB instead
22301         of HAVE_WCTOB.
22302         * modules/wchar (Makefile.am): Substitute HAVE_DECL_WCTOB instead of
22303         HAVE_WCTOB.
22304         * doc/posix-functions/wctob.texi: Mention missing declaration on IRIX.
22305
22306 2008-12-19  Bruno Haible  <bruno@clisp.org>
22307
22308         * modules/mbsrtowcs-tests: New file.
22309         * tests/test-mbsrtowcs1.sh: New file.
22310         * tests/test-mbsrtowcs2.sh: New file.
22311         * tests/test-mbsrtowcs3.sh: New file.
22312         * tests/test-mbsrtowcs4.sh: New file.
22313         * tests/test-mbsrtowcs.c: New file.
22314
22315         New module 'mbsrtowcs'.
22316         * lib/wchar.in.h (mbsrtowcs): New declaration.
22317         * lib/mbsrtowcs.c: New file.
22318         * m4/mbsrtowcs.m4: New file.
22319         * modules/mbsrtowcs: New file.
22320         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_MBSRTOWCS and
22321         HAVE_MBSRTOWCS.
22322         * modules/wchar (Makefile.am): Substitute GNULIB_MBSRTOWCS and
22323         HAVE_MBSRTOWCS.
22324         * doc/posix-functions/mbsrtowcs.texi: Document the new module.
22325
22326 2008-12-19  Bruno Haible  <bruno@clisp.org>
22327
22328         New module 'mbrlen'.
22329         * lib/wchar.in.h (mbrlen): New declaration.
22330         * lib/mbrlen.c: New file.
22331         * m4/mbrlen.m4: New file.
22332         * modules/mbrlen: New file.
22333         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_MBRLEN and
22334         HAVE_MBRLEN.
22335         * modules/wchar (Makefile.am): Substitute GNULIB_MBRLEN and
22336         HAVE_MBRLEN.
22337         * doc/posix-functions/mbrlen.texi: Document the new module.
22338
22339 2008-12-19  Bruno Haible  <bruno@clisp.org>
22340
22341         * lib/mbrtowc.c: Include verify.h. Verify an assumption.
22342         * modules/mbrtowc (Depends-on): Add verify.
22343         Suggested by Paul Eggert.
22344
22345 2008-12-18  Bruno Haible  <bruno@clisp.org>
22346
22347         * modules/mbsinit-tests: New file.
22348         * tests/test-mbsinit.sh: New file.
22349         * tests/test-mbsinit.c: New file.
22350
22351 2008-12-18  Bruno Haible  <bruno@clisp.org>
22352
22353         * modules/mbrtowc-tests: New file.
22354         * tests/test-mbrtowc1.sh: New file.
22355         * tests/test-mbrtowc2.sh: New file.
22356         * tests/test-mbrtowc3.sh: New file.
22357         * tests/test-mbrtowc4.sh: New file.
22358         * tests/test-mbrtowc.c: New file.
22359
22360         New module 'mbrtowc'.
22361         * lib/wchar.in.h (mbstate_t): Override when the system does not have
22362         mbsinit and mbrtowc.
22363         (mbrtowc): New declaration.
22364         * lib/mbrtowc.c: New file.
22365         * m4/mbrtowc.m4 (gl_FUNC_MBRTOWC, gl_PREREQ_MBRTOWC): New macros.
22366         * modules/mbrtowc: New file.
22367         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_MBRTOWC and
22368         HAVE_MBRTOWC.
22369         * modules/wchar (Makefile.am): Substitute GNULIB_MBRTOWC and
22370         HAVE_MBRTOWC.
22371         * doc/posix-functions/mbrtowc.texi: Document the new module.
22372
22373 2008-12-18  Bruno Haible  <bruno@clisp.org>
22374
22375         New module 'wctob'.
22376         * lib/wchar.in.h (wctob): New declaration.
22377         * lib/wctob.c: New file.
22378         * m4/wctob.m4: New file.
22379         * modules/wctob: New file.
22380         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCTOB and
22381         HAVE_WCTOB.
22382         * modules/wchar (Makefile.am): Substitute GNULIB_WCTOB and HAVE_WCTOB.
22383         * doc/posix-functions/wctob.texi: Document the new module.
22384
22385 2008-12-18  Bruno Haible  <bruno@clisp.org>
22386
22387         * m4/mbsinit.m4 (gl_FUNC_MBSINIT): Invoke gl_REPLACE_WCHAR_H.
22388         * m4/btowc.m4 (gl_FUNC_BTOWC): Likewise.
22389
22390 2008-12-18  Simon Josefsson  <simon@josefsson.org>
22391
22392         * lib/flock.c: Use proper #if symbol in check.  Reported by "Tom
22393         G. Christensen" <tgc@jupiterrise.com>.
22394
22395         * lib/flock.c: Need to include errno.h.  Reported by "Tom
22396         G. Christensen" <tgc@jupiterrise.com>.
22397
22398         * lib/flock.c: Need to include string.h.  Reported by "Tom
22399         G. Christensen" <tgc@jupiterrise.com> and Eric Blake
22400         <ebb9@byu.net>.
22401
22402 2008-12-18  Bruno Haible  <bruno@clisp.org>
22403
22404         * m4/locale-ja.m4: New file, from GNU gettext.
22405
22406 2008-12-17  Bruno Haible  <bruno@clisp.org>
22407
22408         * m4/mbrtowc.m4 (AC_FUNC_MBRTOWC): Don't override in autoconf >= 2.60.
22409         Suggested by Eric Blake.
22410
22411 2008-12-17  Bruno Haible  <bruno@clisp.org>
22412
22413         * m4/errno_h.m4 (AC_COMPUTE_INT): Provide fallback definition.
22414
22415 2008-12-17  Bruno Haible  <bruno@clisp.org>
22416
22417         * lib/mbsinit.c: Include verify.h. Verify an assumption.
22418         * modules/mbsinit (Depends-on): Add verify.
22419         Suggested by Paul Eggert.
22420
22421 2008-12-17  Bruno Haible  <bruno@clisp.org>
22422
22423         * m4/mbrtowc.m4 (AC_FUNC_MBRTOWC): Renamed from gl_FUNC_MBRTOWC.
22424         * m4/mbfile.m4 (gl_MBFILE): Use AC_FUNC_MBRTOWC instead of
22425         gl_FUNC_MBRTOWC.
22426         * m4/mbiter.m4 (gl_MBITER): LIkewise.
22427         * m4/mbscasecmp.m4 (gl_PREREQ_MBSCASECMP): Likewise.
22428         * m4/mbscasestr.m4 (gl_PREREQ_MBSCASESTR): Likewise.
22429         * m4/mbschr.m4 (gl_PREREQ_MBSCHR): Likewise.
22430         * m4/mbscspn.m4 (gl_PREREQ_MBSCSPN): Likewise.
22431         * m4/mbslen.m4 (gl_PREREQ_MBSLEN): Likewise.
22432         * m4/mbsncasecmp.m4 (gl_PREREQ_MBSNCASECMP): Likewise.
22433         * m4/mbsnlen.m4 (gl_PREREQ_MBSNLEN): Likewise.
22434         * m4/mbspbrk.m4 (gl_PREREQ_MBSPBRK): Likewise.
22435         * m4/mbspcasecmp.m4 (gl_PREREQ_MBSPCASECMP): Likewise.
22436         * m4/mbsrchr.m4 (gl_PREREQ_MBSRCHR): Likewise.
22437         * m4/mbssep.m4 (gl_PREREQ_MBSSEP): Likewise.
22438         * m4/mbsspn.m4 (gl_PREREQ_MBSSPN): Likewise.
22439         * m4/mbsstr.m4 (gl_PREREQ_MBSSTR): Likewise.
22440         * m4/mbstok_r.m4 (gl_PREREQ_MBSTOK_R): Likewise.
22441         * m4/mbswidth.m4 (gl_MBSWIDTH): Likewise.
22442         * m4/quotearg.m4 (gl_QUOTEARG): Likewise.
22443         * modules/trim (configure.ac): Likewise.
22444
22445 2008-12-17  Bruno Haible  <bruno@clisp.org>
22446
22447         * modules/btowc-tests: New file.
22448         * tests/test-btowc1.sh: New file.
22449         * tests/test-btowc2.sh: New file.
22450         * tests/test-btowc.c: New file.
22451
22452         New module 'btowc'.
22453         * lib/wchar.in.h (btowc): New declaration.
22454         * lib/btowc.c: New file.
22455         * m4/btowc.m4: New file.
22456         * modules/btowc: New file.
22457         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_BTOWC and
22458         HAVE_BTOWC.
22459         * modules/wchar (Makefile.am): Substitute GNULIB_BTOWC and HAVE_BTOWC.
22460         * doc/posix-functions/btowc.texi: Document the new module.
22461
22462 2008-12-17  Bruno Haible  <bruno@clisp.org>
22463
22464         New module 'mbsinit'.
22465         * lib/wchar.in.h (mbsinit): New declaration.
22466         * lib/mbsinit.c: New file.
22467         * m4/mbsinit.m4: New file.
22468         * modules/mbsinit: New file.
22469         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_MBSINIT and
22470         HAVE_MBSINIT.
22471         * modules/wchar (Makefile.am): Substitute GNULIB_MBSINIT and
22472         HAVE_MBSINIT.
22473         * doc/posix-functions/mbsinit.texi: Document the new module.
22474
22475 2008-12-16  Bruno Haible  <bruno@clisp.org>
22476
22477         * lib/unistd.in.h: Add comment.
22478         * tests/test-environ.c: Don't include <stdlib.h>.
22479
22480 2008-12-16  Bruno Haible  <bruno@clisp.org>
22481
22482         * lib/parse-duration.h (parse_duration): Document return value
22483         convention.
22484         * lib/parse-duration.c: Include specification header first. Add
22485         comments.
22486         (_): Remove macro.
22487         (parse_year_month_day, parse_hour_minute_second): Move side effects
22488         outside of strchr call.
22489         (parse_non_iso8601): Move side effects outside of isspace call.
22490         (parse_duration): Don't test errno is res != BAD_TIME. Remove fprintf
22491         call.
22492
22493 2008-12-16  Bruno Haible  <bruno@clisp.org>
22494
22495         * tests/test-parse-duration.sh: Produce no output when the test
22496         succeeds.
22497
22498 2008-12-16  Bruno Haible  <bruno@clisp.org>
22499
22500         * tests/test-parse-duration.sh: Fix quoting of $tmp and $tmpf
22501         expressions.
22502
22503 2008-12-15  Bruno Haible  <bruno@clisp.org>
22504
22505         * doc/glibc-functions/fgetxattr.texi: Tweak wording.
22506         * doc/glibc-functions/flistxattr.texi: Likewise.
22507         * doc/glibc-functions/fopencookie.texi: Likewise.
22508         * doc/glibc-functions/fremovexattr.texi: Likewise.
22509         * doc/glibc-functions/fsetxattr.texi: Likewise.
22510         * doc/glibc-functions/getxattr.texi: Likewise.
22511         * doc/glibc-functions/lgetxattr.texi: Likewise.
22512         * doc/glibc-functions/listxattr.texi: Likewise.
22513         * doc/glibc-functions/llistxattr.texi: Likewise.
22514         * doc/glibc-functions/lremovexattr.texi: Likewise.
22515         * doc/glibc-functions/lsetxattr.texi: Likewise.
22516         * doc/glibc-functions/removexattr.texi: Likewise.
22517         * doc/glibc-functions/setxattr.texi: Likewise.
22518         * doc/posix-functions/open_memstream.texi: Likewise.
22519
22520 2008-12-15  Eric Blake  <ebb9@byu.net>
22521
22522         Update doc for cygwin 1.7.
22523         * doc/posix-functions/faccessat.texi: Cygwin 1.7 added several new
22524         functions.
22525         * doc/posix-functions/fchmodat.texi: Likewise.
22526         * doc/posix-functions/fchownat.texi: Likewise.
22527         * doc/posix-functions/fdopendir.texi: Likewise.
22528         * doc/posix-functions/fmemopen.texi: Likewise.
22529         * doc/posix-functions/freeaddrinfo.texi: Likewise.
22530         * doc/posix-functions/fstatat.texi: Likewise.
22531         * doc/posix-functions/futimens.texi: Likewise.
22532         * doc/posix-functions/gai_strerror.texi: Likewise.
22533         * doc/posix-functions/getaddrinfo.texi: Likewise.
22534         * doc/posix-functions/getnameinfo.texi: Likewise.
22535         * doc/posix-functions/if_freenameindex.texi: Likewise.
22536         * doc/posix-functions/if_indextoname.texi: Likewise.
22537         * doc/posix-functions/if_nameindex.texi: Likewise.
22538         * doc/posix-functions/if_nametoindex.texi: Likewise.
22539         * doc/posix-functions/insque.texi: Likewise.
22540         * doc/posix-functions/linkat.texi: Likewise.
22541         * doc/posix-functions/llrint.texi: Likewise.
22542         * doc/posix-functions/llrintf.texi: Likewise.
22543         * doc/posix-functions/llrintl.texi: Likewise.
22544         * doc/posix-functions/lockf.texi: Likewise.
22545         * doc/posix-functions/lrintl.texi: Likewise.
22546         * doc/posix-functions/mkdirat.texi: Likewise.
22547         * doc/posix-functions/mkfifoat.texi: Likewise.
22548         * doc/posix-functions/mknodat.texi: Likewise.
22549         * doc/posix-functions/mq_close.texi: Likewise.
22550         * doc/posix-functions/mq_getattr.texi: Likewise.
22551         * doc/posix-functions/mq_notify.texi: Likewise.
22552         * doc/posix-functions/mq_open.texi: Likewise.
22553         * doc/posix-functions/mq_receive.texi: Likewise.
22554         * doc/posix-functions/mq_send.texi: Likewise.
22555         * doc/posix-functions/mq_setattr.texi: Likewise.
22556         * doc/posix-functions/mq_timedreceive.texi: Likewise.
22557         * doc/posix-functions/mq_timedsend.texi: Likewise.
22558         * doc/posix-functions/mq_unlink.texi: Likewise.
22559         * doc/posix-functions/open_memstream.texi: Likewise.
22560         * doc/posix-functions/openat.texi: Likewise.
22561         * doc/posix-functions/posix_fadvise.texi: Likewise.
22562         * doc/posix-functions/posix_fallocate.texi: Likewise.
22563         * doc/posix-functions/posix_madvise.texi: Likewise.
22564         * doc/posix-functions/posix_memalign.texi: Likewise.
22565         * doc/posix-functions/posix_openpt.texi: Likewise.
22566         * doc/posix-functions/readlinkat.texi: Likewise.
22567         * doc/posix-functions/remque.texi: Likewise.
22568         * doc/posix-functions/renameat.texi: Likewise.
22569         * doc/posix-functions/rintl.texi: Likewise.
22570         * doc/posix-functions/sem_unlink.texi: Likewise.
22571         * doc/posix-functions/shm_open.texi: Likewise.
22572         * doc/posix-functions/shm_unlink.texi: Likewise.
22573         * doc/posix-functions/signgam.texi: Likewise.
22574         * doc/posix-functions/sigset.texi: Likewise.
22575         * doc/posix-functions/stpcpy.texi: Likewise.
22576         * doc/posix-functions/stpncpy.texi: Likewise.
22577         * doc/posix-functions/strerror.texi: Likewise.
22578         * doc/posix-functions/strtod.texi: Likewise.
22579         * doc/posix-functions/symlinkat.texi: Likewise.
22580         * doc/posix-functions/unlinkat.texi: Likewise.
22581         * doc/posix-functions/utimensat.texi: Likewise.
22582         * doc/glibc-functions/bindresvport.texi: Likewise.
22583         * doc/glibc-functions/dn_expand.texi: Likewise.
22584         * doc/glibc-functions/exp10.texi: Likewise.
22585         * doc/glibc-functions/exp10f.texi: Likewise.
22586         * doc/glibc-functions/fgetxattr.texi: Likewise.
22587         * doc/glibc-functions/flistxattr.texi: Likewise.
22588         * doc/glibc-functions/fopencookie.texi: Likewise.
22589         * doc/glibc-functions/freeifaddrs.texi: Likewise.
22590         * doc/glibc-functions/fremovexattr.texi: Likewise.
22591         * doc/glibc-functions/fsetxattr.texi: Likewise.
22592         * doc/glibc-functions/getifaddrs.texi: Likewise.
22593         * doc/glibc-functions/getxattr.texi: Likewise.
22594         * doc/glibc-functions/lgetxattr.texi: Likewise.
22595         * doc/glibc-functions/listxattr.texi: Likewise.
22596         * doc/glibc-functions/llistxattr.texi: Likewise.
22597         * doc/glibc-functions/lremovexattr.texi: Likewise.
22598         * doc/glibc-functions/lsetxattr.texi: Likewise.
22599         * doc/glibc-functions/pow10.texi: Likewise.
22600         * doc/glibc-functions/pow10f.texi: Likewise.
22601         * doc/glibc-functions/rcmd_af.texi: Likewise.
22602         * doc/glibc-functions/removexattr.texi: Likewise.
22603         * doc/glibc-functions/res_init.texi: Likewise.
22604         * doc/glibc-functions/res_mkquery.texi: Likewise.
22605         * doc/glibc-functions/res_query.texi: Likewise.
22606         * doc/glibc-functions/res_querydomain.texi: Likewise.
22607         * doc/glibc-functions/res_send.texi: Likewise.
22608         * doc/glibc-functions/rresvport_af.texi: Likewise.
22609         * doc/glibc-functions/setxattr.texi: Likewise.
22610         * doc/glibc-functions/strcasestr.texi: Likewise.
22611
22612 2008-12-15  Bruno Haible  <bruno@clisp.org>
22613
22614         Fix compilation error on OSF/1 4.0.
22615         * lib/sys_select.in.h: When invoked from OSF/1 <sys/types.h> or
22616         <sys/time.h>, simply delegate to the system header.
22617         Reported by Daniel Richard G. <oss@teragram.com>.
22618
22619 2008-12-15  Bruno Haible  <bruno@clisp.org>
22620
22621         * doc/posix-functions/openat.texi: Mention the 'openat' module.
22622         * doc/posix-functions/fchmodat.texi: Likewise.
22623         * doc/posix-functions/fchownat.texi: Likewise.
22624         * doc/posix-functions/fdopendir.texi: Likewise.
22625         * doc/posix-functions/fstatat.texi: Likewise.
22626         * doc/posix-functions/mkdirat.texi: Likewise.
22627         * doc/posix-functions/unlinkat.texi: Likewise.
22628
22629 2008-12-14  Bruno Haible  <bruno@clisp.org>
22630
22631         Update doc for POSIX:2008.
22632         * doc/posix-functions/faccessat.texi: New file.
22633         * doc/posix-functions/fchmodat.texi: New file.
22634         * doc/posix-functions/fchownat.texi: New file.
22635         * doc/posix-functions/fdopendir.texi: New file.
22636         * doc/posix-functions/fstatat.texi: New file.
22637         * doc/posix-functions/futimens.texi: New file.
22638         * doc/posix-functions/linkat.texi: New file.
22639         * doc/posix-functions/mkdirat.texi: New file.
22640         * doc/posix-functions/mkfifoat.texi: New file.
22641         * doc/posix-functions/mknodat.texi: New file.
22642         * doc/posix-functions/open_wmemstream.texi: New file.
22643         * doc/posix-functions/openat.texi: New file.
22644         * doc/posix-functions/psiginfo.texi: New file.
22645         * doc/posix-functions/pthread_mutex_consistent.texi: New file.
22646         * doc/posix-functions/pthread_mutexattr_getrobust.texi: New file.
22647         * doc/posix-functions/pthread_mutexattr_setrobust.texi: New file.
22648         * doc/posix-functions/readlinkat.texi: New file.
22649         * doc/posix-functions/renameat.texi: New file.
22650         * doc/posix-functions/strerror_l.texi: New file.
22651         * doc/posix-functions/symlinkat.texi: New file.
22652         * doc/posix-functions/unlinkat.texi: New file.
22653         * doc/posix-functions/utimensat.texi: New file.
22654         * doc/gnulib.texi (Function Substitutes): Add these subsections.
22655
22656 2008-12-14  Bruno Haible  <bruno@clisp.org>
22657
22658         Update doc for POSIX:2008.
22659         * doc/posix-functions/alphasort.texi: Renamed from
22660         doc/glibc-functions/alphasort.texi.
22661         * doc/posix-functions/dirfd.texi: Renamed from
22662         doc/glibc-functions/dirfd.texi.
22663         * doc/posix-functions/dprintf.texi: Renamed from
22664         doc/glibc-functions/dprintf.texi.
22665         * doc/posix-functions/duplocale.texi: Renamed from
22666         doc/glibc-functions/duplocale.texi.
22667         * doc/posix-functions/fexecve.texi: Renamed from
22668         doc/glibc-functions/fexecve.texi.
22669         * doc/posix-functions/fmemopen.texi: Renamed from
22670         doc/glibc-functions/fmemopen.texi.
22671         * doc/posix-functions/freelocale.texi: Renamed from
22672         doc/glibc-functions/freelocale.texi.
22673         * doc/posix-functions/getdate_err.texi: Renamed from
22674         doc/glibc-functions/getdate_err.texi.
22675         * doc/posix-functions/isalnum_l.texi: Renamed from
22676         doc/glibc-functions/isalnum_l.texi.
22677         * doc/posix-functions/isalpha_l.texi: Renamed from
22678         doc/glibc-functions/isalpha_l.texi.
22679         * doc/posix-functions/isblank_l.texi: Renamed from
22680         doc/glibc-functions/isblank_l.texi.
22681         * doc/posix-functions/iscntrl_l.texi: Renamed from
22682         doc/glibc-functions/iscntrl_l.texi.
22683         * doc/posix-functions/isdigit_l.texi: Renamed from
22684         doc/glibc-functions/isdigit_l.texi.
22685         * doc/posix-functions/isgraph_l.texi: Renamed from
22686         doc/glibc-functions/isgraph_l.texi.
22687         * doc/posix-functions/islower_l.texi: Renamed from
22688         doc/glibc-functions/islower_l.texi.
22689         * doc/posix-functions/isprint_l.texi: Renamed from
22690         doc/glibc-functions/isprint_l.texi.
22691         * doc/posix-functions/ispunct_l.texi: Renamed from
22692         doc/glibc-functions/ispunct_l.texi.
22693         * doc/posix-functions/isspace_l.texi: Renamed from
22694         doc/glibc-functions/isspace_l.texi.
22695         * doc/posix-functions/isupper_l.texi: Renamed from
22696         doc/glibc-functions/isupper_l.texi.
22697         * doc/posix-functions/iswalnum_l.texi: Renamed from
22698         doc/glibc-functions/iswalnum_l.texi.
22699         * doc/posix-functions/iswalpha_l.texi: Renamed from
22700         doc/glibc-functions/iswalpha_l.texi.
22701         * doc/posix-functions/iswblank_l.texi: Renamed from
22702         doc/glibc-functions/iswblank_l.texi.
22703         * doc/posix-functions/iswcntrl_l.texi: Renamed from
22704         doc/glibc-functions/iswcntrl_l.texi.
22705         * doc/posix-functions/iswctype_l.texi: Renamed from
22706         doc/glibc-functions/iswctype_l.texi.
22707         * doc/posix-functions/iswdigit_l.texi: Renamed from
22708         doc/glibc-functions/iswdigit_l.texi.
22709         * doc/posix-functions/iswgraph_l.texi: Renamed from
22710         doc/glibc-functions/iswgraph_l.texi.
22711         * doc/posix-functions/iswlower_l.texi: Renamed from
22712         doc/glibc-functions/iswlower_l.texi.
22713         * doc/posix-functions/iswprint_l.texi: Renamed from
22714         doc/glibc-functions/iswprint_l.texi.
22715         * doc/posix-functions/iswpunct_l.texi: Renamed from
22716         doc/glibc-functions/iswpunct_l.texi.
22717         * doc/posix-functions/iswspace_l.texi: Renamed from
22718         doc/glibc-functions/iswspace_l.texi.
22719         * doc/posix-functions/iswupper_l.texi: Renamed from
22720         doc/glibc-functions/iswupper_l.texi.
22721         * doc/posix-functions/iswxdigit_l.texi: Renamed from
22722         doc/glibc-functions/iswxdigit_l.texi.
22723         * doc/posix-functions/isxdigit_l.texi: Renamed from
22724         doc/glibc-functions/isxdigit_l.texi.
22725         * doc/posix-functions/mbsnrtowcs.texi: Renamed from
22726         doc/glibc-functions/mbsnrtowcs.texi.
22727         * doc/posix-functions/mkdtemp.texi: Renamed from
22728         doc/glibc-functions/mkdtemp.texi.
22729         * doc/posix-functions/newlocale.texi: Renamed from
22730         doc/glibc-functions/newlocale.texi.
22731         * doc/posix-functions/nl_langinfo_l.texi: Renamed from
22732         doc/glibc-functions/nl_langinfo_l.texi.
22733         * doc/posix-functions/open_memstream.texi: Renamed from
22734         doc/glibc-functions/open_memstream.texi.
22735         * doc/posix-functions/opterr.texi: Renamed from
22736         doc/glibc-functions/opterr.texi.
22737         * doc/posix-functions/optind.texi: Renamed from
22738         doc/glibc-functions/optind.texi.
22739         * doc/posix-functions/optopt.texi: Renamed from
22740         doc/glibc-functions/optopt.texi.
22741         * doc/posix-functions/psignal.texi: Renamed from
22742         doc/glibc-functions/psignal.texi.
22743         * doc/posix-functions/scandir.texi: Renamed from
22744         doc/glibc-functions/scandir.texi.
22745         * doc/posix-functions/sched_get_priority_min.texi: Renamed from
22746         doc/glibc-functions/sched_get_priority_min.texi.
22747         * doc/posix-functions/signgam.texi: Renamed from
22748         doc/glibc-functions/signgam.texi.
22749         * doc/posix-functions/stpcpy.texi: Renamed from
22750         doc/glibc-functions/stpcpy.texi.
22751         * doc/posix-functions/stpncpy.texi: Renamed from
22752         doc/glibc-functions/stpncpy.texi.
22753         * doc/posix-functions/strcasecmp_l.texi: Renamed from
22754         doc/glibc-functions/strcasecmp_l.texi.
22755         * doc/posix-functions/strcoll_l.texi: Renamed from
22756         doc/glibc-functions/strcoll_l.texi.
22757         * doc/posix-functions/strfmon_l.texi: Renamed from
22758         doc/glibc-functions/strfmon_l.texi.
22759         * doc/posix-functions/strftime_l.texi: Renamed from
22760         doc/glibc-functions/strftime_l.texi.
22761         * doc/posix-functions/strncasecmp_l.texi: Renamed from
22762         doc/glibc-functions/strncasecmp_l.texi.
22763         * doc/posix-functions/strndup.texi: Renamed from
22764         doc/glibc-functions/strndup.texi.
22765         * doc/posix-functions/strnlen.texi: Renamed from
22766         doc/glibc-functions/strnlen.texi.
22767         * doc/posix-functions/strsignal.texi: Renamed from
22768         doc/glibc-functions/strsignal.texi.
22769         * doc/posix-functions/strxfrm_l.texi: Renamed from
22770         doc/glibc-functions/strxfrm_l.texi.
22771         * doc/posix-functions/timer_gettime.texi: Renamed from
22772         doc/glibc-functions/timer_gettime.texi.
22773         * doc/posix-functions/tolower_l.texi: Renamed from
22774         doc/glibc-functions/tolower_l.texi.
22775         * doc/posix-functions/toupper_l.texi: Renamed from
22776         doc/glibc-functions/toupper_l.texi.
22777         * doc/posix-functions/towctrans_l.texi: Renamed from
22778         doc/glibc-functions/towctrans_l.texi.
22779         * doc/posix-functions/towlower_l.texi: Renamed from
22780         doc/glibc-functions/towlower_l.texi.
22781         * doc/posix-functions/towupper_l.texi: Renamed from
22782         doc/glibc-functions/towupper_l.texi.
22783         * doc/posix-functions/uselocale.texi: Renamed from
22784         doc/glibc-functions/uselocale.texi.
22785         * doc/posix-functions/vdprintf.texi: Renamed from
22786         doc/glibc-functions/vdprintf.texi.
22787         * doc/posix-functions/wcpcpy.texi:
22788         Renamed from doc/glibc-functions/wcpcpy.texi.
22789         * doc/posix-functions/wcpncpy.texi: Renamed from
22790         doc/glibc-functions/wcpncpy.texi.
22791         * doc/posix-functions/wcscasecmp.texi: Renamed from
22792         doc/glibc-functions/wcscasecmp.texi.
22793         * doc/posix-functions/wcscasecmp_l.texi: Renamed from
22794         doc/glibc-functions/wcscasecmp_l.texi.
22795         * doc/posix-functions/wcscoll_l.texi: Renamed from
22796         doc/glibc-functions/wcscoll_l.texi.
22797         * doc/posix-functions/wcsdup.texi: Renamed from
22798         doc/glibc-functions/wcsdup.texi.
22799         * doc/posix-functions/wcsncasecmp.texi: Renamed from
22800         doc/glibc-functions/wcsncasecmp.texi.
22801         * doc/posix-functions/wcsncasecmp_l.texi: Renamed from
22802         doc/glibc-functions/wcsncasecmp_l.texi.
22803         * doc/posix-functions/wcsnlen.texi: Renamed from
22804         doc/glibc-functions/wcsnlen.texi.
22805         * doc/posix-functions/wcsnrtombs.texi: Renamed from
22806         doc/glibc-functions/wcsnrtombs.texi.
22807         * doc/posix-functions/wcsxfrm_l.texi: Renamed from
22808         doc/glibc-functions/wcsxfrm_l.texi.
22809         * doc/posix-functions/wctrans_l.texi: Renamed from
22810         doc/glibc-functions/wctrans_l.texi.
22811         * doc/posix-functions/wctype_l.texi: Renamed from
22812         doc/glibc-functions/wctype_l.texi.
22813         * doc/gnulib.texi (Function Substitutes): Add these subsections.
22814         (Glibc ctype.h, Glibc dirent.h, Glibc getopt.h, Glibc math.h,
22815         Glibc sched.h, Glibc signal.h, Glibc stdio.h, Glibc stdlib.h,
22816         Glibc string.h, Glibc time.h, Glibc unistd.h, Glibc wchar.h): Remove
22817         these subsections.
22818         (Glibc langinfo.h, Glibc locale.h, Glibc monetary.h, Glibc wctype.h):
22819         Remove sections.
22820
22821 2008-12-14  Bruno Haible  <bruno@clisp.org>
22822
22823         Update doc for POSIX:2008.
22824         * doc/posix-functions/*.texi: Update URL of POSIX specification.
22825
22826 2008-12-14  Bruno Haible  <bruno@clisp.org>
22827
22828         Update doc for POSIX:2008.
22829         * doc/pastposix-functions/bcmp.texi: Renamed from
22830         doc/posix-functions/bcmp.texi.
22831         * doc/pastposix-functions/bcopy.texi: Renamed from
22832         doc/posix-functions/bcopy.texi.
22833         * doc/pastposix-functions/bsd_signal.texi: Renamed from
22834         doc/posix-functions/bsd_signal.texi.
22835         * doc/pastposix-functions/bzero.texi: Renamed from
22836         doc/posix-functions/bzero.texi.
22837         * doc/pastposix-functions/ecvt.texi: Renamed from
22838         doc/posix-functions/ecvt.texi.
22839         * doc/pastposix-functions/fcvt.texi: Renamed from
22840         doc/posix-functions/fcvt.texi.
22841         * doc/pastposix-functions/ftime.texi: Renamed from
22842         doc/posix-functions/ftime.texi.
22843         * doc/pastposix-functions/gcvt.texi: Renamed from
22844         doc/posix-functions/gcvt.texi.
22845         * doc/pastposix-functions/getcontext.texi: Renamed from
22846         doc/posix-functions/getcontext.texi.
22847         * doc/pastposix-functions/gethostbyaddr.texi: Renamed from
22848         doc/posix-functions/gethostbyaddr.texi.
22849         * doc/pastposix-functions/gethostbyname.texi: Renamed from
22850         doc/posix-functions/gethostbyname.texi.
22851         * doc/pastposix-functions/getwd.texi: Renamed from
22852         doc/posix-functions/getwd.texi.
22853         * doc/pastposix-functions/h_errno.texi: Renamed from
22854         doc/posix-functions/h_errno.texi.
22855         * doc/pastposix-functions/index.texi: Renamed from
22856         doc/posix-functions/index.texi.
22857         * doc/pastposix-functions/makecontext.texi: Renamed from
22858         doc/posix-functions/makecontext.texi.
22859         * doc/pastposix-functions/mktemp.texi: Renamed from
22860         doc/posix-functions/mktemp.texi.
22861         * doc/pastposix-functions/pthread_attr_getstackaddr.texi: Renamed from
22862         doc/posix-functions/pthread_attr_getstackaddr.texi.
22863         * doc/pastposix-functions/pthread_attr_setstackaddr.texi: Renamed from
22864         doc/posix-functions/pthread_attr_setstackaddr.texi.
22865         * doc/pastposix-functions/rindex.texi: Renamed from
22866         doc/posix-functions/rindex.texi.
22867         * doc/pastposix-functions/scalb.texi: Renamed from
22868         doc/posix-functions/scalb.texi.
22869         * doc/pastposix-functions/setcontext.texi: Renamed from
22870         doc/posix-functions/setcontext.texi.
22871         * doc/pastposix-functions/swapcontext.texi: Renamed from
22872         doc/posix-functions/swapcontext.texi.
22873         * doc/pastposix-functions/ualarm.texi: Renamed from
22874         doc/posix-functions/ualarm.texi.
22875         * doc/pastposix-functions/usleep.texi: Renamed from
22876         doc/posix-functions/usleep.texi.
22877         * doc/pastposix-functions/vfork.texi: Renamed from
22878         doc/posix-functions/vfork.texi.
22879         * doc/pastposix-functions/wcswcs.texi: Renamed from
22880         doc/posix-functions/wcswcs.texi.
22881         * doc/gnulib.texi (Legacy Function Substitutes): New chapter.
22882         (Function Substitutes): Update.
22883
22884 2008-12-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
22885
22886         * modules/relocatable-prog-wrapper (Depends-on): Add errno, needed by
22887         m4/strerror.m4.
22888
22889 2008-12-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
22890             Bruno Haible  <bruno@clisp.org>
22891
22892         * modules/unilbrk/tables (Depends-on): Add unilbrk/base.
22893
22894 2008-12-13  Bruno Haible  <bruno@clisp.org>
22895
22896         * modules/strtoull (Depends-on): Remove unistd.
22897
22898 2008-12-11  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
22899
22900         * modules/strtoull (Depends-on): Add stdlib.
22901
22902 2008-12-11  Simon Josefsson  <simon@josefsson.org>
22903
22904         * m4/manywarnings.m4 (gl_MANYWARN_ALL_GCC): Add more warnings.
22905
22906 2008-12-10  Jim Meyering  <meyering@redhat.com>
22907
22908         gl_ASSERT: don't say assertions are disabled when they're not
22909         * m4/assert.m4 (gl_ASSERT): Do not make configure report
22910         "checking whether to enable assertions... no", when they are in
22911         fact enabled.  This is solely a bug in the output of configure.
22912         In spite of saying "no", NDEBUG was not defined in that case.
22913         Also, as noted by Eric Blake, leave assertions enabled upon
22914         --enable-assert=INVALID.
22915
22916 2008-12-10  Bruno Haible  <bruno@clisp.org>
22917
22918         Change MODULES.html to refer to POSIX:2008 where possible.
22919         * MODULES.html.sh (POSIX2008_URL): New variable.
22920         (posix_headers): Remove sys/timeb, ucontext.
22921         (posix2001_headers): New variable.
22922         (posix_functions): Remove bcmp, bcopy, bsd_signal, bzero, ecvt, fcvt,
22923         ftime, gcvt, getcontext, gethostbyaddr, gethostbyname, getwd, h_errno,
22924         index, makecontext, mktemp, pthread_attr_getstackaddr,
22925         pthread_attr_setstackaddr, rindex, scalb, setcontext, swapcontext,
22926         ualarm, usleep, vfork, wcswcs. Add the new POSIX:2008 functions.
22927         (posix2001_functions): New variable.
22928         (func_module): Use URLs to POSIX:2008 where possible and to POSIX:2001
22929         otherwise.
22930
22931 2008-12-09  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
22932
22933         add missing include to parse-duration.c
22934         * lib/parse-duration.c: #include "xalloc.h", for xstrdup.
22935         * modules/parse-duration (Depends-on): Add xalloc.
22936
22937         fix sed script reading maint.mk
22938         * top/maint.mk (MYSELF): New macro, define as $(srcdir)/$(ME).
22939         (syntax-check-rules): Use it.
22940
22941 2008-12-09  Bruno Haible  <bruno@clisp.org>
22942
22943         * m4/ldexpl.m4 (gl_FUNC_LDEXPL_WORKS): Add another check, that fails on
22944         MacOS X 10.4/PowerPC.
22945         Reported by Simon Josefsson.
22946
22947 2008-12-08  Jim Meyering  <meyering@redhat.com>
22948
22949         work around mingw's lack of some S_IF definitions
22950         * lib/fts.c (S_IFLNK, S_IFSOCK): Define if not already defined.
22951         Reported by Simon Josefsson.
22952
22953 2008-12-08  Bruno Haible  <bruno@clisp.org>
22954
22955         * m4/signbitl.m4 (gl_SIGNBIT_TEST_PROGRAM): Add a link check of signbit
22956         applied to variables. Needed on MacOS X 10.4/PowerPC.
22957         Reported by Simon Josefsson.
22958
22959 2008-12-08  William Pursell  <bill.pursell@gmail.com>  (tiny change)
22960         and Eric Blake  <ebb9@byu.net>
22961
22962         assert: honor --enable-assert
22963         * m4/assert.m4 (gl_ASSERT): Synchronize with autoconf 2.64, in
22964         order to honor --enable-assert, rather than treating it as a
22965         synonym for --disable-assert.
22966
22967 2008-12-08  Jim Meyering  <meyering@redhat.com>
22968
22969         * lib/posixtm.c: Remove now-useless declaration of mktime.
22970
22971         * build-aux/announce-gen (get_tool_versions): Accept .xz tarballs.
22972
22973 2008-12-07  Bruno Haible  <bruno@clisp.org>
22974
22975         * tests/test-lock.c (test_lock, test_rwlock, test_recursive_lock,
22976         test_once): Mark functions as static.
22977         * tests/test-tls.c (test_tls): Likewise.
22978
22979 2008-12-07  Bruno Haible  <bruno@clisp.org>
22980
22981         * lib/striconveha.h (uniconv_register_autodetect): Renamed from
22982         iconv_register_autodetect.
22983
22984 2008-12-07  Jim Meyering  <meyering@redhat.com>
22985
22986         posixtm.c: avoid a warning
22987         * lib/posixtm.c (posixtime): Don't initialize tm0.
22988         It's no longer needed to placate gcc4's -Wuninitialized,
22989         and the attempt to placate would elicit a new warning.
22990
22991         unicodeio.c: mark unused parameters
22992         * lib/unicodeio.c (exit_failure_callback): Mark unused parameter.
22993         (fallback_failure_callback): Likewise.
22994
22995 2008-12-07  Bruno Haible  <bruno@clisp.org>
22996
22997         * gnulib-tool (func_create_testdir): When building the tests
22998         subdirectory, ignore the modules gnumakefile and maintainer-makefile.
22999         Reported by Simon Josefsson.
23000
23001 2008-12-07  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
23002
23003         * doc/manywarnings.texi, doc/gnulib-intro.texi: Fix typos.
23004
23005 2008-12-06  Bruno Haible  <bruno@clisp.org>
23006
23007         * lib/c-stack.h (c_stack_action): Clarify possible side effects.
23008         Suggested by Eric Blake.
23009
23010 2008-12-06  Bruno Haible  <bruno@clisp.org>
23011
23012         Fix a c-stack test failure on MacOS X.
23013         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Require
23014         AC_CANONICAL_HOST. Define FAULT_YIELDS_SIGBUS. If set, install a signal
23015         handler for SIGBUS as well.
23016         * lib/c-stack.c (c_stack_action): If FAULT_YIELDS_SIGBUS is set,
23017         install a signal handler for SIGBUS as well.
23018         Reported by Bruce Dugan <bld0401@gmail.com> via Eric Blake.
23019
23020 2008-12-06  Bruno Haible  <bruno@clisp.org>
23021
23022         Advocacy documentation.
23023         * doc/gnulib-intro.texi (Benefits): New section.
23024         * doc/gnulib.texi: Update.
23025
23026 2008-12-06  Bruno Haible  <bruno@clisp.org>
23027
23028         Document the 'manywarnings' module.
23029         * doc/manywarnings.texi: New file.
23030         * doc/gnulib.texi: Include it.
23031
23032 2008-12-05  Eric Blake  <ebb9@byu.net>
23033
23034         tests: silence some gcc warnings
23035         * tests/test-getdate.c (LOG) [!DEBUG]: Mark no-op void.
23036         * tests/uniwidth/test-uc_width2.c (finish_interval): Avoid printf
23037         type mismatches.
23038
23039 2008-12-03  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
23040             Bruno Haible  <bruno@clisp.org>
23041
23042         * m4/openmp.m4 (AC_OPENMP): Do not define with Autoconf 2.62 or newer.
23043
23044 2008-11-29  Jim Meyering  <meyering@redhat.com>
23045
23046         unicodeio.c: mark unused parameters
23047         * lib/unicodeio.c (exit_failure_callback): Mark unused parameter.
23048         (fallback_failure_callback): Likewise.
23049
23050         fts: fix a thinko
23051         * lib/fts.c (s_ifmt_shift_bits): Remove function.  Not needed after all.
23052         (set_stat_type): Return S_IF*-valued "type" directly.
23053         Prompted by James Youngman's spotting a related bug.
23054         Confirmed by further testing through find.
23055
23056         fts: provide dirent.d_type via FTSENT.fts_statp, when possible
23057         * lib/fts.c (D_TYPE): Define.
23058         (DT_UNKNOWN, DT_BLK, DT_CHR) [HAVE_STRUCT_DIRENT_D_TYPE]: Define.
23059         (DT_DIR, DT_FIFO, DT_LNK, DT_REG, DT_SOCK): Likewise.
23060         (s_ifmt_shift_bits): New function.
23061         (set_stat_type): New function.
23062         (fts_build): When not calling fts_stat, call set_stat_type
23063         to propagate dirent.d_type info to fts_read caller.
23064         * lib/fts_.h (FTSENT) [FTS_DEFER_STAT]: Mention that
23065         fts_statp->st_mode type information may be valid.
23066
23067 2008-11-28  Simon Josefsson  <simon@josefsson.org>
23068
23069         * lib/sys_time.in.h: Add extern "C" block for C++.  Suggested by
23070         Brian Dessent <brian@dessent.net>.  Reported by Sam Steingold
23071         <sds@gnu.org>.
23072
23073 2008-11-20  Bruno Haible  <bruno@clisp.org>
23074
23075         Attempt to work around an AIX 5.3, 6.1 compiler bug with include_next.
23076         * lib/math.in.h: Use INCLUDE_NEXT_AS_FIRST_DIRECTIVE instead of
23077         INCLUDE_NEXT.
23078         * m4/include_next.m4 (gl_INCLUDE_NEXT): Set also
23079         INCLUDE_NEXT_AS_FIRST_DIRECTIVE.
23080         * modules/math (Makefile.am): Substitute
23081         INCLUDE_NEXT_AS_FIRST_DIRECTIVE instead of INCLUDE_NEXT.
23082         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
23083
23084 2008-11-18  Alexandre Duret-Lutz  <adl@lrde.epita.fr>
23085             Bruno Haible  <bruno@clisp.org>
23086
23087         * lib/stdint.in.h: Define all type macros so that their expansion is
23088         a single typedef'ed token. Fixes a compilation failure in Boost which
23089         does "using ::int8_t;".
23090
23091 2008-11-18  Simon Josefsson  <simon@josefsson.org>
23092
23093         * m4/manywarnings.m4: New file with gl_MANYWARN_COMPLEMENT and
23094         gl_MANYWARN_ALL_GCC.
23095         * m4/warnings.m4: Removed gl_WARN_SUPPORTED and
23096         gl_WARN_COMPLEMENT.  Suggested by Bruno Haible <bruno@clisp.org>.
23097         * modules/manywarnings: New file.
23098         * MODULES.html.sh: Mention manywarnings module.
23099
23100 2008-11-18  Bruno Haible  <bruno@clisp.org>
23101
23102         * doc/gnulib-tool.texi (Unit tests): New section.
23103
23104 2008-11-18  Simon Josefsson  <simon@josefsson.org>
23105
23106         * top/maint.mk (refresh-po): Fix sed regexp to avoid problems with
23107         paths like 'lib/po/foo.po'.
23108
23109 2008-11-17  Simon Josefsson  <simon@josefsson.org>
23110
23111         * m4/warnings.m4: Improve code.  Reported by Ralf Wildenhues
23112         <Ralf.Wildenhues@gmx.de> and Paolo Bonzini <bonzini@gnu.org>.
23113
23114 2008-11-17  Simon Josefsson  <simon@josefsson.org>
23115
23116         * m4/warnings.m4: Use CPPFLAGS to really check whether the
23117         parameter works.
23118
23119 2008-11-17  Simon Josefsson  <simon@josefsson.org>
23120
23121         * m4/warnings.m4: Add gl_WARN_COMPLEMENT and gl_WARN_SUPPORTED.
23122
23123 2008-11-17  Bruce Korb  <bkorb@gnu.org>
23124
23125         * modules/parse-duration-tests: New file.
23126         * tests/test-parse-duration.sh: New file.
23127         * tests/test-parse-duration.c: New file.
23128
23129         New module 'parse-duration'.
23130         * lib/parse-duration.h: New file.
23131         * lib/parse-duration.c: New file.
23132         * modules/parse-duration: New file.
23133
23134 2008-11-17  Bruno Haible  <bruno@clisp.org>
23135
23136         * tests/test-select-out.sh: Comment out the first pipe test.
23137         Reported by Simon Josefsson.
23138
23139 2008-11-17  Bruno Haible  <bruno@clisp.org>
23140
23141         * modules/getaddrinfo (Depends-on): Add servent, hostent.
23142         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Use gl_SERVENT and
23143         gl_HOSTENT.
23144
23145 2008-11-17  Bruno Haible  <bruno@clisp.org>
23146
23147         * m4/sockets.m4 (gl_SOCKETS): After trying -lsocket, try also
23148         -lnetwork and -lnet. Needed for Haiku and BeOS.
23149
23150 2008-11-16  Bruno Haible  <bruno@clisp.org>
23151
23152         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Fix indentation.
23153
23154 2008-11-16  Bruno Haible  <bruno@clisp.org>
23155
23156         Avoid test failure on Haiku.
23157         * tests/test-fsync.c: Include <errno.h>.
23158         (main): Don't require that fsync (0) fails.
23159
23160 2008-11-15  Bruno Haible  <bruno@clisp.org>
23161
23162         New module 'hostent'.
23163         * modules/hostent: New file.
23164         * m4/hostent.m4: New file, based on code in m4/getaddrinfo.m4.
23165
23166 2008-11-15  Bruno Haible  <bruno@clisp.org>
23167
23168         New module 'servent'.
23169         * modules/servent: New file.
23170         * m4/servent.m4: New file, based on code in m4/getaddrinfo.m4.
23171
23172 2008-11-15  Bruno Haible  <bruno@clisp.org>
23173
23174         Avoid generating same test program with two different rules.
23175         * modules/frexp-nolibm-tests (Makefile.am): Rename test program from
23176         test-frexp to test-frexp-nolibm.
23177         * modules/frexpl-nolibm-tests (Makefile.am): Rename test program from
23178         test-frexpl to test-frexpl-nolibm.
23179
23180 2008-11-15  Bruno Haible  <bruno@clisp.org>
23181
23182         * modules/frexpl-tests (Makefile.am): Link test-frexpl with
23183         $(FREXPL_LIBM).
23184
23185 2008-11-15  Bruno Haible  <bruno@clisp.org>
23186
23187         * lib/netdb.in.h: Activate the definitions also when the system's
23188         <netdb.h> has 'struct addrinfo'.
23189         * m4/netdb_h.m4 (gl_HEADER_NETDB): Replace netdb.h also when it lacks
23190         EAI_OVERFLOW or AI_NUMERICSERV.
23191         * doc/posix-headers/netdb.texi: Document the problem.
23192
23193 2008-11-15  Bruno Haible  <bruno@clisp.org>
23194
23195         * tests/test-sched.c: Test also the existence of the SCHED_* macros.
23196
23197         Make the 'sched' module work on platforms where <sched.h> exists but
23198         is incomplete (such as Haiku).
23199         * lib/sched.in.h; Include the system's <sched.h> if it exists.
23200         (SCHED_FIFO, SCHED_RR, SCHED_OTHER): New macros.
23201         * m4/sched_h.m4 (gl_SCHED_H): Test whether <sched.h> exists and also
23202         defines SCHED_FIFO, SCHED_RR, SCHED_OTHER. Set HAVE_SCHED_H,
23203         HAVE_STRUCT_SCHED_PARAM.
23204         * modules/sched (Depends-on): Add include_next.
23205         (Makefile.am): Substitute HAVE_SCHED_H, INCLUDE_NEXT,
23206         PRAGMA_SYSTEM_HEADER, NEXT_SCHED_H, HAVE_STRUCT_SCHED_PARAM.
23207         * doc/posix-headers/sched.texi: Document the issue.
23208
23209 2008-11-13  Jim Meyering  <meyering@redhat.com>
23210
23211         test-argp-2: avoid test failure when PACKAGE_BUGREPORT is defined
23212         * tests/test-argp-2.sh: When PACKAGE_BUGREPORT was defined, this
23213         test would fail due to the difference in the Report bugs to ...
23214         line.  The expected address is empty, "<>", while the actual
23215         would contain e.g., "<bug-tar@gnu.org>".  Filter out any address.
23216
23217 2008-11-12  Bruno Haible  <bruno@clisp.org>
23218
23219         lstat: don't compile lstat.c on systems lacking lstat
23220         * m4/lstat.m4 (gl_FUNC_LSTAT): Don't compile lstat.c on systems
23221         which don't have lstat; this is handled by lib/sys_stat.in.h already.
23222         Reported by Daniel P. Berrange via Jim Meyering.
23223
23224 2008-11-12  Jim Meyering  <meyering@redhat.com>
23225
23226         * lib/unicodeio.c (unicode_to_mb): Correct spelling of u8_uctomb.
23227
23228 2008-11-12  Simon Josefsson  <simon@josefsson.org>
23229
23230         * modules/warnings (configure.ac): Do AC_SUBST([WARN_CFLAGS]) here
23231         instead.
23232
23233 2008-11-12  Bruno Haible  <bruno@clisp.org>
23234
23235         * lib/unicodeio.c: Include unistr.h.
23236         (utf8_wctomb): Remove function.
23237         (unicode_to_mb): Use utf8_uctomb instead of utf8_wctomb.
23238
23239 2008-11-12  Simon Josefsson  <simon@josefsson.org>
23240
23241         * m4/warnings.m4 (gl_WARN_INIT): Remove, suggested by Ralf
23242         Wildenhues <Ralf.Wildenhues@gmx.de> and Bruno Haible
23243         <bruno@clisp.org>.
23244         * modules/warnings (configure.ac): Don't call gl_WARN_INIT.
23245
23246 2008-11-12  Simon Josefsson  <simon@josefsson.org>
23247
23248         * doc/warnings.texi: New file, from Bruno Haible <bruno@clisp.org>.
23249         * doc/gnulib.texi: Add section for warnings.
23250
23251 2008-11-11  Bruno Haible  <bruno@clisp.org>
23252
23253         * lib/sockets.h: Add a comment.
23254
23255 2008-11-11  Karl Berry  <karl@gnu.org>
23256
23257         * config/srclist.txt (fdl.texi): add, syncing from gnustandards.
23258
23259 2008-11-11  Eric Blake  <ebb9@byu.net>
23260
23261         fdl.texi: avoid git symlinks
23262         * doc/fdl.texi: Copy, rather than link, fdl-1.3.texi.
23263
23264 2008-11-11  Paolo Bonzini  <bonzini@gnu.org>
23265
23266         * m4/warnings.m4 (gl_WARN_ADD): Don't AC_SUBST the empty string.
23267
23268 2008-11-11  Paolo Bonzini  <bonzini@gnu.org>
23269
23270         * m4/warnings.m4 (gl_WARN_INIT): Substitute WARN_CFLAGS.
23271         (gl_WARN_ADD): Substitute $2 if literal.
23272
23273 2008-11-11  Paolo Bonzini  <bonzini@gnu.org>
23274
23275         * m4/warning.m4: Remove.
23276
23277 2008-11-11  Paolo Bonzini  <bonzini@gnu.org>
23278
23279         * m4/warnings.m4: Almost complete rewrite. :-)
23280
23281 2008-11-10  Simon Josefsson  <simon@josefsson.org>
23282
23283         * modules/warnings: New module.
23284         * m4/warnings.m4: New file.
23285         * MODULES.html.sh: Mention warnings module.
23286         With review improvements from Paolo Bonzini <bonzini@gnu.org> and
23287         Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
23288
23289 2008-11-10  Eric Blake  <ebb9@byu.net>
23290
23291         fdl.texi: make a symlink to the latest version
23292         * doc/standards.texi: Revert today's earlier change.
23293         * doc/fdl-1.2.texi: Rename from old fdl.texi...
23294         * doc/fdl.texi: ...and replace this with a symlink to the newer
23295         fdl-1.3.texi.
23296
23297 2008-11-10  Bruno Haible  <bruno@clisp.org>
23298
23299         * tests/test-select-fd.c (main): Accept the result file name as fourth
23300         argument.
23301         * tests/test-select-in.sh: Pass t-select-in.tmp as fourth argument.
23302         * tests/test-select-out.sh: Pass t-select-out.tmp as fourth argument.
23303
23304 2008-11-10  Bruno Haible  <bruno@clisp.org>
23305
23306         * lib/netdb.in.h: Use HAVE_STRUCT_ADDRINFO, HAVE_DECL_GETADDRINFO,
23307         HAVE_DECL_FREEADDRINFO, HAVE_DECL_GAI_STRERROR, HAVE_DECL_GETNAMEINFO
23308         as autoconf-substituted macros.
23309         * m4/netdb_h.m4 (gl_NETDB_H_DEFAULTS): Initialize these variables to 1.
23310         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Require
23311         gl_NETDB_H_DEFAULTS. Set these variables.
23312         * modules/netdb (Makefile.am): Substitute these variables.
23313
23314 2008-11-10  Eric Blake  <ebb9@byu.net>
23315
23316         standards.texi: include correct file for FDL 1.3
23317         * doc/standards.texi (GNU Free Documentation License): Change
23318         include file to pull in FDL 1.3, not 1.2.
23319
23320         fdl.texi: revert accidental change to license
23321         * doc/fdl.texi: This is FDL 1.2, not 1.3.
23322
23323 2008-11-10  Bruno Haible  <bruno@clisp.org>
23324
23325         * m4/printf.m4 (gl_PRINTF_ENOMEM): Guess yes on Haiku. Use the
23326         cross-compiling guesses also when the native compile gives no result.
23327
23328 2008-11-10  Bruno Haible  <bruno@clisp.org>
23329
23330         * lib/spawni.c (__spawni): Force variable into the stack.
23331
23332 2008-11-10  Bruno Haible  <bruno@clisp.org>
23333
23334         Add support for Haiku.
23335         * lib/fbufmode.c (fbufmode): Test a symbol that is not only defined on
23336         glibc and BeOS, but also on Haiku.
23337         * lib/fpurge.c (fpurge): Likewise.
23338         * lib/freadable.c (freadable): Likewise.
23339         * lib/freadahead.c (freadahead): Likewise.
23340         * lib/freading.c (freading): Likewise.
23341         * lib/freadptr.c (freadptr): Likewise.
23342         * lib/freadseek.c (freadptrinc): Likewise.
23343         * lib/fseeko.c (rpl_fseeko): Likewise.
23344         * lib/fseterr.c (fseterr): Likewise.
23345         * lib/fwritable.c (fwritable): Likewise.
23346         * lib/fwriting.c (fwriting): Likewise.
23347         Reported by Ingo Weinhold <ingo_weinhold@gmx.de>.
23348
23349 2008-11-10  Ingo Weinhold  <ingo_weinhold@gmx.de>
23350
23351         * lib/config.charset: Treat Haiku like BeOS.
23352
23353 2008-11-10  Ingo Weinhold  <ingo_weinhold@gmx.de>
23354
23355         * lib/binary-io.h (O_BINARY, O_TEXT): Treat Haiku like BeOS.
23356         * lib/fcntl.in.h (O_BINARY, O_TEXT): Likewise.
23357
23358 2008-11-08  Bruno Haible  <bruno@clisp.org>
23359
23360         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_H): Avoid using AC_CHECK_DECL inside
23361         AC_CACHE_CHECK.
23362
23363 2008-11-08  Bruno Haible  <bruno@clisp.org>
23364
23365         * modules/select-tests (configure.ac): Check for unistd.h, sys/wait.h.
23366
23367 2008-11-08  Bruno Haible  <bruno@clisp.org>
23368
23369         * tests/test-select-fd.c: New file.
23370         * tests/test-select-in.sh: New file.
23371         * tests/test-select-out.sh: New file.
23372         * tests/test-select-stdin.c: New file.
23373         * modules/select-tests (Files): Add the new files.
23374         (Depends-on): Add gettimeofday.
23375         (Makefile.am): Add test-select-in.sh, test-select-out.sh to TESTS.
23376         Set TESTS_ENVIRONMENT. Add test-select-fd, test-select-stdin to
23377         check_PROGRAMS. Define test_select_fd_LDADD, test_select_stdin_LDADD.
23378
23379 2008-11-06  Alexander V. Lukyanov  <lav@netis.ru>
23380             Bruno Haible  <bruno@clisp.org>
23381
23382         * lib/sys_stat.in.h: Enclose function definitions in extern "C".
23383
23384 2008-10-12  Giuseppe Scrivano  <gscrivano@gnu.org>
23385
23386         * build-aux/pmccabe2html: Added support for C++ source files.
23387
23388 2008-11-05  Ben Pfaff  <blp@gnu.org>
23389
23390         Fix lib/close.c build on Windows.
23391         * modules/close (Files): Add lib/w32sock.h.
23392
23393 2008-11-05  Joel E. Denny  <jdenny@ces.clemson.edu>
23394
23395         Accept Bison's NEWS format.
23396         * build-aux/announce-gen (print_news_deltas): Tweak
23397         $re_prefix.
23398
23399 2008-11-04  Bruno Haible  <bruno@clisp.org>
23400
23401         * modules/random_r (Maintainer): Add glibc.
23402
23403 2008-11-04  Simon Josefsson  <simon@josefsson.org>
23404
23405         * doc/alloca-opt.texi: Change license to GFDLv1.3+, as suggested
23406         by karl@freefriends.org (Karl Berry).
23407         * doc/alloca.texi: Likewise.
23408         * doc/c-ctype.texi: Likewise.
23409         * doc/c-strcase.texi: Likewise.
23410         * doc/c-strcaseeq.texi: Likewise.
23411         * doc/c-strcasestr.texi: Likewise.
23412         * doc/c-strstr.texi: Likewise.
23413         * doc/c-strtod.texi: Likewise.
23414         * doc/c-strtold.texi: Likewise.
23415         * doc/ctime.texi: Likewise.
23416         * doc/error.texi: Likewise.
23417         * doc/fdl.texi: Likewise.
23418         * doc/gcd.texi: Likewise.
23419         * doc/getdate.texi: Likewise.
23420         * doc/gnulib-intro.texi: Likewise.
23421         * doc/gnulib-tool.texi: Likewise.
23422         * doc/gnulib.texi: Likewise.
23423         * doc/inet_ntoa.texi: Likewise.
23424         * doc/maintain.texi: Likewise.
23425         * doc/make-stds.texi: Likewise.
23426         * doc/quote.texi: Likewise.
23427         * doc/regexprops-generic.texi: Likewise.
23428         * doc/standards.texi: Likewise.
23429         * doc/verify.texi: Likewise.
23430         * doc/visibility.texi: Likewise.
23431         * doc/gnulib.texi (GNU Free Documentation License): Include
23432         fdl-1.3.texi instead of fdl.texi.
23433
23434 2008-11-04  Simon Josefsson  <simon@josefsson.org>
23435
23436         * doc/fdl-1.3.texi: New file, from
23437         <http://www.gnu.org/licenses/fdl-1.3.texi>.
23438         * modules/fdl-1.3: Add.
23439         * MODULES.html.sh: Add fdl-1.3.
23440
23441 2008-11-03  Bruno Haible  <bruno@clisp.org>
23442
23443         Make determination of absolute name of header file work with AIX xlc.
23444         * m4/include_next.m4 (gl_CHECK_NEXT_HEADERS): Require
23445         AC_CANONICAL_HOST. On AIX, use "$CPP -C" rather than "$CPP" for
23446         preprocessing.
23447         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Likewise.
23448         Reported by Gary V. Vaughan <gary@thewrittenword.com>.
23449
23450 2008-11-03  Simon Josefsson  <simon@josefsson.org>
23451
23452         * top/maint.mk (COVERAGE_CCOPTS): Use --coverage instead of
23453         -fprofile-arcs -ftest-coverage.  Suggested by Ludovic Courtès
23454         <ludo@gnu.org>.
23455
23456 2008-11-02  Bruno Haible  <bruno@clisp.org>
23457
23458         Mark 'strpbrk' obsolete.
23459         * modules/strpbrk (Status, Notice): New sections.
23460         * modules/strtok_r (Depends-on): Add strpbrk.
23461
23462 2008-11-02  Bruno Haible  <bruno@clisp.org>
23463
23464         Mark 'strdup' obsolete.
23465         * modules/strdup (Status, Notice): New sections.
23466         * modules/findprog (Depends-on): Add strdup.
23467         * modules/getaddrinfo (Depends-on): Likewise.
23468         * modules/localename (Depends-on): Likewise.
23469         * modules/relocatable-lib (Depends-on): Likewise.
23470         * modules/relocatable-lib-lgpl (Depends-on): Likewise.
23471         * modules/relocatable-prog (Depends-on): Likewise.
23472         * modules/trim (Depends-on): Likewise.
23473         * modules/unictype/gen-ctype (Depends-on): Likewise.
23474         * modules/unilbrk/gen-lbrk (Depends-on): Likewise.
23475
23476 2008-11-02  Bruno Haible  <bruno@clisp.org>
23477
23478         Mark 'strcspn' obsolete.
23479         * modules/strcspn (Status, Notice): New sections.
23480
23481 2008-11-02  Bruno Haible  <bruno@clisp.org>
23482
23483         Mark 'rmdir' obsolete.
23484         * modules/rmdir (Status, Notice): New sections.
23485         * modules/clean-temp (Depends-on): Add rmdir.
23486         * modules/openat (Depends-on): Likewise.
23487
23488 2008-11-02  Bruno Haible  <bruno@clisp.org>
23489
23490         Mark 'raise' obsolete.
23491         * modules/raise (Status, Notice): New sections.
23492         (Include): Specify <signal.h>.
23493         * modules/stdio (Depends-on): Add raise.
23494         * modules/write (Depends-on): Likewise.
23495
23496 2008-11-02  Bruno Haible  <bruno@clisp.org>
23497
23498         Mark 'memset' obsolete.
23499         * modules/memset (Status, Notice): New sections.
23500
23501 2008-11-02  Bruno Haible  <bruno@clisp.org>
23502
23503         Mark 'memmove' obsolete.
23504         * modules/memmove (Status, Notice): New sections.
23505         * modules/argp (Depends-on): Add memmove.
23506         * modules/argz (Depends-on): Likewise.
23507         * modules/canonicalize (Depends-on): Likewise.
23508         * modules/canonicalize-lgpl (Depends-on): Likewise.
23509         * modules/fts (Depends-on): Likewise.
23510         * modules/getcwd (Depends-on): Likewise.
23511         * modules/human (Depends-on): Likewise.
23512         * modules/regex (Depends-on): Likewise.
23513         * modules/striconveh (Depends-on): Likewise.
23514         * modules/trim (Depends-on): Likewise.
23515         * modules/unistr/u8-move (Depends-on): Likewise.
23516         * modules/unistr/u16-move (Depends-on): Likewise.
23517         * modules/unistr/u32-move (Depends-on): Likewise.
23518
23519 2008-11-02  Bruno Haible  <bruno@clisp.org>
23520
23521         Mark 'memcpy' obsolete.
23522         * modules/memcpy (Status, Notice): New sections.
23523
23524 2008-11-02  Bruno Haible  <bruno@clisp.org>
23525
23526         Mark 'memcmp' obsolete.
23527         * modules/memcmp (Status, Notice): New sections.
23528         * modules/argmatch (Depends-on): Add memchr.
23529         * modules/backupfile (Depends-on): Likewise.
23530         * modules/c-strcasestr (Depends-on): Likewise.
23531         * modules/crypto/des (Depends-on): Likewise.
23532         * modules/csharpcomp (Depends-on): Likewise.
23533         * modules/fnmatch (Depends-on): Likewise.
23534         * modules/git-merge-changelog (Depends-on): Likewise.
23535         * modules/isnand (Depends-on): Likewise.
23536         * modules/isnand-nolibm (Depends-on): Likewise.
23537         * modules/isnanf (Depends-on): Likewise.
23538         * modules/isnanf-nolibm (Depends-on): Likewise.
23539         * modules/isnanl (Depends-on): Likewise.
23540         * modules/isnanl-nolibm (Depends-on): Likewise.
23541         * modules/mbchar (Depends-on): Likewise.
23542         * modules/memcoll (Depends-on): Likewise.
23543         * modules/quotearg (Depends-on): Likewise.
23544         * modules/regex (Depends-on): Likewise.
23545         * modules/relocatable-prog (Depends-on): Likewise.
23546         * modules/same (Depends-on): Likewise.
23547         * modules/signbit (Depends-on): Likewise.
23548         * modules/strcasestr-simple (Depends-on): Likewise.
23549         * modules/unictype/gen-ctype (Depends-on): Likewise.
23550         * modules/unilbrk/gen-lbrk (Depends-on): Likewise.
23551         * modules/uniname/uniname (Depends-on): Likewise.
23552         * modules/unistr/u8-cmp (Depends-on): Likewise.
23553
23554 2008-11-02  Bruno Haible  <bruno@clisp.org>
23555
23556         Mark 'memchr' obsolete.
23557         * modules/memchr (Status, Notice): New sections.
23558         * modules/argp (Depends-on): Add memchr.
23559         * modules/base64 (Depends-on): Likewise.
23560         * modules/c-strcasestr (Depends-on): Likewise.
23561         * modules/chdir-long (Depends-on): Likewise.
23562         * modules/fnmatch (Depends-on): Likewise.
23563         * modules/getsubopt (Depends-on): Likewise.
23564         * modules/git-merge-changelog (Depends-on): Likewise.
23565         * modules/glob (Depends-on): Likewise.
23566         * modules/strcasestr-simple (Depends-on): Likewise.
23567         * modules/strnlen (Depends-on): Likewise.
23568
23569 2008-11-02  Bruno Haible  <bruno@clisp.org>
23570
23571         Mark 'atexit' obsolete.
23572         * modules/atexit (Status, Notice): New sections.
23573         * modules/chdir-long (Depends-on): Add atexit.
23574         * modules/wait-process (Depends-on): Likewise.
23575
23576 2008-11-02  Bruno Haible  <bruno@clisp.org>
23577
23578         * gnulib-tool: New option --with-obsolete.
23579         (func_usage): Document it.
23580         (func_modules_transitive_closure): Drop obsolete dependencies if
23581         incobsolete is not true.
23582         (func_import): Read and save the incobsolete variable to the cache.
23583
23584 2008-11-02  Bruno Haible  <bruno@clisp.org>
23585
23586         * modules/TEMPLATE-EXTENDED: New field 'Status'.
23587         * gnulib-tool: New option --extract-status.
23588         (func_usage): Document it.
23589         (sed_extract_prog): Recognize it.
23590         (func_get_status): New function.
23591
23592 2008-10-30  Simon Josefsson  <simon@josefsson.org>
23593
23594         * modules/sockets (License): Change from LGPL to LGPLv2+.
23595
23596 2008-10-28  Simon Josefsson  <simon@josefsson.org>
23597
23598         * top/maint.mk: Add coverage rules, inspired by scripts in gnupdf.
23599
23600 2008-10-28  Simon Josefsson  <simon@josefsson.org>
23601
23602         * MODULES.html.sh (Support for systems lacking POSIX:2001):
23603         Mention times and sys_times.
23604         * modules/sys_times, modules/sys_times-tests: New modules.
23605         * modules/times, modules/times-tests: Likewise
23606         * m4/sys_times_h.m4: New file.
23607         * lib/sys_times.in.h: Likewise
23608         * lib/times.c: Likewise.
23609         * tests/test-sys_times.c: Likewise.
23610         * tests/test-times.c: Likewise.
23611         * doc/posix-headers/sys_times.texi: Update.
23612         * doc/posix-functions/times.texi: Update.
23613
23614 2008-10-28  Jim Meyering  <meyering@redhat.com>
23615
23616         * modules/tempname (Depends-on): Add lstat.
23617
23618         * modules/lstat (License): Relicense: LGPL -> LGPLv2+.
23619
23620 2008-10-28  Simon Josefsson  <simon@josefsson.org>
23621
23622         * gnulib-tool (func_emit_tests_Makefile_am): Revert last commit.
23623         * modules/argp-tests (test_argp_LDADD): Set EXEEXT here instead,
23624         using idiom used elsewhere in gnulib.
23625
23626 2008-10-27  Jim Meyering  <meyering@redhat.com>
23627
23628         * modules/gethostname (License): Relicense: LGPL -> LGPLv2+.
23629
23630 2008-10-27  Simon Josefsson  <simon@josefsson.org>
23631
23632         * gnulib-tool (func_emit_tests_Makefile_am): Set EXEEXT in
23633         TESTS_ENVIRONMENT, for shell scripts that needs to call built
23634         programs.
23635         * tests/test-argp-2.sh: Use $EXEEXT when needed.
23636
23637 2008-10-27  Simon Josefsson  <simon@josefsson.org>
23638
23639         * lib/sys_stat.in.h (lstat): Fix declaration for mingw.
23640
23641 2008-10-27  Bruno Haible  <bruno@clisp.org>
23642
23643         * tests/test-lstat.c: Include <stdio.h>.
23644
23645 2008-10-27  Simon Josefsson  <simon@josefsson.org>
23646
23647         * modules/lstat-tests: New module.
23648         * tests/test-lstat.c: New file.
23649
23650 2008-10-26  Jim Meyering  <meyering@redhat.com>
23651
23652         * lib/mkdir.c (rpl_mkdir) [_WIN32...]: Mark mode as an unused parameter.
23653
23654 2008-10-26  Simon Josefsson  <simon@josefsson.org>
23655             Bruno Haible  <bruno@clisp.org>
23656
23657         Fix a clash between the type DATADIR on Windows and the macro DATADIR.
23658         * modules/configmake (Include): Add a note that the include must come
23659         after all system headers.
23660         * lib/javaversion.c: Include configmake.h after all other includes.
23661
23662 2008-10-26  Bruno Haible  <bruno@clisp.org>
23663
23664         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Set default of
23665         HAVE_STRUCT_RANDOM_DATA to 1.
23666         (gl_STDLIB_H): Simplify.
23667
23668 2008-10-26  Simon Josefsson  <simon@josefsson.org>
23669
23670         * m4/stdlib_h.m4: Check for struct random_data.  Initialize and
23671         substitute HAVE_STRUCT_RANDOM_DATA.
23672         * lib/stdlib.in.h [!HAVE_STRUCT_RANDOM_DATA]: Provide struct
23673         random_data.
23674         * modules/stdlib (Makefile.am): Substitute
23675         HAVE_STRUCT_RANDOM_DATA.
23676
23677 2008-10-26  Simon Josefsson  <simon@josefsson.org>
23678
23679         * doc/gnulib.texi (@copying): Use GFDLv1.2+.
23680         * doc/gnulib-intro.texi (Copyright): Likewise.
23681
23682 2008-10-26  Simon Josefsson  <simon@josefsson.org>
23683
23684         * doc/gnulib.texi (Header files): C++ fixes, based on Bruno's
23685         findings.
23686
23687 2008-10-25  Ben Pfaff  <blp@cs.stanford.edu>
23688             Bruno Haible  <bruno@clisp.org>
23689
23690         * lib/unistd.in.h: Include <winsock2.h>.
23691         (socket, connect,accept, bind, getpeername, getsockname, getsockopt,
23692         listen, recv, send, recvfrom, sendto, setsockopt, shutdown, select):
23693         Provide dummy declarations.
23694         (gethostname): Override.
23695         * lib/sys_socket.in.h (gethostname): Provide dummy declaration.
23696         * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): Invoke
23697         gl_PREREQ_SYS_H_WINSOCK2.
23698         * modules/gethostname (Files): Add m4/sys_socket_h.m4.
23699         * doc/posix-functions/gethostname.texi: More details.
23700
23701 2008-10-25  Bruno Haible  <bruno@clisp.org>
23702
23703         * m4/sys_socket_h.m4 (gl_PREREQ_SYS_H_WINSOCK2): Require
23704         gl_UNISTD_H_DEFAULTS, gl_SYS_IOCTL_H_DEFAULTS only if they exist.
23705         * modules/sys_socket (Files): Remove m4/unistd_h.m4, m4/sys_ioctl_h.m4.
23706
23707         * lib/sys_socket.in.h (HAVE__GL_CLOSE_FD_MAYBE_SOCKET); Move macro from
23708         here ...
23709         * lib/unistd.in.h (HAVE__GL_CLOSE_FD_MAYBE_SOCKET); ... to here.
23710         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_H_DEFAULTS): Remove invocation of
23711         gl_UNISTD_H_DEFAULTS.
23712
23713 2008-10-25  Eric Blake  <ebb9@byu.net>
23714
23715         signbit: avoid spurious compiler failure
23716         * m4/signbit.m4 (gl_SIGNBIT_TEST_PROGRAM): Move non-constant
23717         declarations inside function.
23718
23719 2008-10-24  Simon Josefsson  <simon@josefsson.org>
23720             Bruno Haible  <bruno@clisp.org>
23721
23722         * lib/stdlib.in.h (@GNULIB_RANDOM_R@): Include stdint.h.
23723         * modules/random_r (Depends-on): Add stdint.
23724
23725 2008-10-24  Bruno Haible  <bruno@clisp.org>
23726
23727         * modules/intprops (License): Change to LGPLv2+, with approval by Paul
23728         Eggert.
23729         * modules/strerror (License): Likewise.
23730
23731 2008-10-24  Jim Meyering  <meyering@redhat.com>
23732
23733         sys_socket: fix typo that inhibited expansion of @GNULIB_SEND@
23734         * modules/sys_socket (Depends-on) [Depends-on]: Fix typo.
23735
23736 2008-10-24  Eric Blake  <ebb9@byu.net>
23737
23738         getgroups: fix compilation when getgroups is available
23739         * lib/getgroups.c (includes): Include <unistd.h> for getgroups,
23740         but with <config.h> override of getgroups disabled.
23741
23742 2008-10-24  Simon Josefsson  <simon@josefsson.org>
23743
23744         * doc/gnulib.texi (Header files): Add note about C++ problems.
23745         Explained by Bruno Haible <bruno@clisp.org>.
23746
23747 2008-10-23  Bruno Haible  <bruno@clisp.org>
23748
23749         Define a dummy SA_NODEFER macro on Interix.
23750         * lib/signal.in.h (SA_NODEFER): Define fallback.
23751         Reported by Aleksey Cheusov <cheusov@tut.by> via
23752         Thomas Klausner <wiz@netbsd.org> and Eric Blake.
23753
23754 2008-10-23  Bruno Haible  <bruno@clisp.org>
23755
23756         * modules/freadahead (License): Change to LGPLv2+.
23757         Suggested by Simon Josefsson.
23758
23759 2008-10-23  Jim Meyering  <meyering@redhat.com>
23760
23761         random_r: new module
23762         * modules/random_r: New file.
23763         * m4/random_r.m4: New file.
23764         * lib/random_r.c: New file, from glibc.
23765         * modules/random_r-tests: New file.
23766         * tests/test-random_r.c: New file.
23767         * lib/stdlib.in.h (srandom_r, initstate_r, setstate_r, random_r):
23768          Declare.
23769         (RAND_MAX): Define.
23770         * m4/stdlib_h.m4: Define and AC_SUBST GNULIB_RANDOM_R and HAVE_RANDOM_R.
23771         * modules/stdlib: Substitute them, too.
23772         * MODULES.html.sh (Extra functions based on POSIX:2001) [Misc]: Add it.
23773         * doc/glibc-functions/initstate_r.texi: Mention the new module.
23774         * doc/glibc-functions/random_r.texi: Likewise.
23775         * doc/glibc-functions/setstate_r.texi: Likewise.
23776         * doc/glibc-functions/srandom_r.texi: Likewise.
23777         * config/srclist.txt: Mention it.
23778
23779 2008-10-23  David Lutterkort  <lutter@redhat.com>
23780
23781         * modules/selinux-h: Search for LIB_SELINUX and mark it as a
23782         link requirement
23783
23784 2008-10-23  Jim Meyering  <meyering@redhat.com>
23785
23786         selinux-h: mark parameters of stub functions as intentionally unused
23787         * lib/se-selinux.in.h: Mark parameters as _UNUSED_PARAMETER_.
23788         * lib/se-context.in.h: Likewise.
23789
23790 2008-10-22  Simon Josefsson  <simon@josefsson.org>
23791
23792         * lib/sys_socket.in.h (FD_ISSET): Fix warnings under mingw.
23793
23794 2008-10-22  Simon Josefsson  <simon@josefsson.org>
23795
23796         * m4/getgroups.m4: Avoid invoking test with wrong parameters.
23797
23798 2008-10-22  Eric Blake  <ebb9@byu.net>
23799
23800         glthread/thread: avoid compiler warning
23801         * lib/glthread/thread.c (gl_thread_exit_func) [USE_WIN32_THREADS]:
23802         Add unreachable abort to silence compiler.
23803
23804 2008-10-22  Eric Blake  <ebb9@byu.net>
23805
23806         netdb: also supply struct addrinfo for cygwin 1.5.x
23807         * m4/netdb_h.m4 (gl_HEADER_NETDB): Check for incomplete header on
23808         older cygwin.
23809         * lib/netdb.in.h [!HAVE_STRUCT_ADDRINFO]: Also supply contents for
23810         cygwin.
23811         * doc/posix-headers/netdb.texi (netdb.h): Document this.
23812
23813 2008-10-22  Bruno Haible  <bruno@clisp.org>
23814
23815         * users.txt: Update entry about pspp.
23816
23817 2008-10-21  Bruno Haible  <bruno@clisp.org>
23818
23819         Simplification.
23820         * lib/sys_socket.in.h (_gl_close_fd_maybe_socket): Remove declaration.
23821         * lib/close.c (_gl_close_fd_maybe_socket): Make static.
23822
23823         Simplification.
23824         * lib/ioctl.c (ioctl): Don't undefine.
23825         * lib/socket.c (socket): Don't undefine.
23826
23827         Remove unused module indicator macros.
23828         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_MODULE_INDICATOR): Don't define
23829         GNULIB_$1 as a C macro.
23830
23831         * doc/posix-functions/close.texi: Undo last change.
23832         * doc/posix-functions/ioctl.texi: Merge the two paragraphs about
23833         Windows platforms.
23834
23835 2008-10-21  Bruno Haible  <bruno@clisp.org>
23836
23837         Add gethostname() declaration to <unistd.h>.
23838         * lib/unistd.in.h (gethostname): New declaration.
23839         * lib/gethostname.c: Include <unistd.h>.
23840         * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): Require
23841         gl_UNISTD_H_DEFAULTS. Set HAVE_GETHOSTNAME.
23842         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_GETHOSTNAME
23843         and HAVE_GETHOSTNAME.
23844         * modules/gethostname (Depends-on): Add unistd.
23845         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
23846         (Include): Specify <unistd.h>.
23847         * modules/unistd (Makefile.am): Substitute GNULIB_GETHOSTNAME and
23848         HAVE_GETHOSTNAME.
23849         * tests/test-gethostname.c: Include <unistd.h> first.
23850
23851 2008-10-21  Bruno Haible  <bruno@clisp.org>
23852
23853         * modules/poll-tests (Depends-on): Add sys_ioctl, ioctl.
23854         * modules/select-tests (Depends-on): Likewise.
23855         Reported by Simon Josefsson.
23856
23857 2008-10-21  Simon Josefsson  <simon@josefsson.org>
23858
23859         * lib/close.c: Add _gl_close_fd_maybe_socket from winsock.c.
23860         * lib/accept.c: New file, based on winsock.c.
23861         * lib/bind.c: New file, based on winsock.c.
23862         * lib/connect.c: New file, based on winsock.c.
23863         * lib/getpeername.c: New file, based on winsock.c.
23864         * lib/getsockname.c: New file, based on winsock.c.
23865         * lib/getsockopt.c: New file, based on winsock.c.
23866         * lib/ioctl.c: New file, based on winsock.c.
23867         * lib/listen.c: New file, based on winsock.c.
23868         * lib/recv.c: New file, based on winsock.c.
23869         * lib/recvfrom.c: New file, based on winsock.c.
23870         * lib/send.c: New file, based on winsock.c.
23871         * lib/sendto.c: New file, based on winsock.c.
23872         * lib/setsockopt.c: New file, based on winsock.c.
23873         * lib/shutdown.c: New file, based on winsock.c.
23874         * lib/socket.c: New file, based on winsock.c.
23875         * lib/w32sock.h: New file, based on winsock.c.
23876         * lib/winsock.c: Remove file.
23877         * modules/accept: Likewise.
23878         * modules/bind: Likewise.
23879         * modules/connect: Likewise.
23880         * modules/getpeername: Likewise.
23881         * modules/getsockname: Likewise.
23882         * modules/getsockopt: Likewise.
23883         * modules/ioctl: Likewise.
23884         * modules/listen: Likewise.
23885         * modules/recv: Likewise.
23886         * modules/recvfrom: Likewise.
23887         * modules/send: Likewise.
23888         * modules/sendto: Likewise.
23889         * modules/setsockopt: Likewise.
23890         * modules/shutdown: Likewise.
23891         * modules/socket: Use socket.c instead of winsock.c.
23892         * modules/sys_socket: Remove (unneeded?) dependency on winsock.c.
23893         * doc/posix-functions/accept.texi: Doc fix.
23894         * doc/posix-functions/bind.texi: Doc fix.
23895         * doc/posix-functions/close.texi: Doc fix.
23896         * doc/posix-functions/connect.texi: Doc fix.
23897         * doc/posix-functions/getpeername.texi: Doc fix.
23898         * doc/posix-functions/getsockname.texi: Doc fix.
23899         * doc/posix-functions/getsockopt.texi: Doc fix.
23900         * doc/posix-functions/ioctl.texi: Doc fix.
23901         * doc/posix-functions/listen.texi: Doc fix.
23902         * doc/posix-functions/recv.texi: Doc fix.
23903         * doc/posix-functions/recvfrom.texi: Doc fix.
23904         * doc/posix-functions/send.texi: Doc fix.
23905         * doc/posix-functions/sendto.texi: Doc fix.
23906         * doc/posix-functions/setsockopt.texi: Doc fix.
23907         * doc/posix-functions/shutdown.texi: Doc fix.
23908         * doc/posix-functions/socket.texi: Doc fix.
23909
23910 2008-10-20  Bruno Haible  <bruno@clisp.org>
23911
23912         Take into account the role of SIGABRT_COMPAT on Windows 2008.
23913         * lib/sigprocmask.c (SIGABRT_COMPAT, SIGABRT_COMPAT_MASK): New macros.
23914         (sigismember, sigaddset, sigdelset, sigfillset, rpl_signal): Handle it
23915         as an alias for SIGABRT.
23916         * lib/sigaction.c (SIGABRT_COMPAT): New macro.
23917         (sigaction): Map it to SIGABRT.
23918         Reported by Ramiro Polla <ramiro.polla@gmail.com> via Eric Blake.
23919
23920 2008-10-20  Bruno Haible  <bruno@clisp.org>
23921
23922         * lib/fts.c: Don't include lstat.h.
23923         * lib/openat.c: Include <sys/stat.h> instead of lstat.h.
23924
23925         Move the lstat() declaration to <sys/stat.h>.
23926         * lib/lstat.h: Remove file.
23927         * lib/sys_stat.in.h: Add special invocation convention.
23928         (lstat): New declaration.
23929         * lib/lstat.c (orig_lstat): New function.
23930         (rpl_lstat): Use orig_lstat instead of lstat.
23931         * m4/lstat.m4 (gl_FUNC_LSTAT): Require gl_SYS_STAT_H_DEFAULTS and
23932         AC_C_INLINE. Set REPLACE_LSTAT.
23933         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Initialize GNULIB_LSTAT
23934         and REPLACE_LSTAT.
23935         * modules/lstat (Files): Remove lib/lstat.h.
23936         (configure.ac): Invoke gl_SYS_STAT_MODULE_INDICATOR.
23937         (Include): Specify <sys/stat.h> instead of lstat.h.
23938         * modules/sys_stat (Makefile.am): Substitute GNULIB_LSTAT and
23939         REPLACE_LSTAT.
23940         * NEWS: Mention the change.
23941
23942 2008-10-20  Bruno Haible  <bruno@clisp.org>
23943
23944         * modules/posix_spawn-tests: New file.
23945         * tests/test-posix_spawn3.c: New file.
23946
23947 2008-10-20  Bruno Haible  <bruno@clisp.org>
23948
23949         * modules/posix_spawnp-tests (Depends-on): Add sys_wait.
23950         * tests/test-posix_spawn1.c (WTERMSIG, WCOREDUMP, WEXITSTATUS,
23951         WIFSIGNALED, WIFEXITED, WIFSTOPPED): Remove fallback definitions.
23952         * tests/test-posix_spawn2.c (WTERMSIG, WCOREDUMP, WEXITSTATUS,
23953         WIFSIGNALED, WIFEXITED, WIFSTOPPED): Likewise.
23954
23955 2008-10-20  Bruno Haible  <bruno@clisp.org>
23956
23957         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_WORKS): Test against another bug
23958         of posix_spawn on AIX 5.3.
23959
23960 2008-10-20  Bruno Haible  <bruno@clisp.org>
23961
23962         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_WORKS): Make the check on MacOS X.
23963
23964 2008-10-20  Bruno Haible  <bruno@clisp.org>
23965
23966         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_WORKS): Use AC_LANG_SOURCE instead
23967         of AC_LANG_PROGRAM.
23968
23969 2008-10-20  Simon Josefsson  <simon@josefsson.org>
23970
23971         * lib/netdb.in.h: Don't define GNU specific constants until they
23972         are supported or needed.  Reported by Bruno Haible
23973         <bruno@clisp.org>.
23974
23975 2008-10-20  Simon Josefsson  <simon@josefsson.org>
23976
23977         * lib/canon-host.c: Include netdb.h instead of getaddrinfo.h.
23978
23979 2008-10-20  Simon Josefsson  <simon@josefsson.org>
23980
23981         * lib/getaddrinfo.h: Remove file.
23982         * modules/getaddrinfo: Reflect move from getaddrinfo.h to netdb.h.
23983         * m4/getaddrinfo.m4: Call gl_HEADER_NETDB.  Don't check for netdb.h.
23984         * lib/netdb.in.h: Add declarations from getaddrinfo.h.
23985         * m4/netdb_h.m4: Initialize GNULIB_GETADDRINFO to 0.
23986         * modules/netdb: Substitute GNULIB_GETADDRINFO.
23987         * lib/getaddrinfo.c: Include netdb.h instead of getaddrinfo.h.
23988         * tests/test-getaddrinfo.c: Likewise.
23989         * lib/gai_strerror.c: Likewise.  Also drop HAVE_NETDB_H check.
23990         * NEWS: Mention change.
23991
23992 2008-10-19  Bruno Haible  <bruno@clisp.org>
23993
23994         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_WORKS): Remove unneeded code.
23995
23996 2008-10-19  Bruno Haible  <bruno@clisp.org>
23997
23998         * lib/wait-process.c: Include simply <sys/wait.h>.
23999         (waitpid, WTERMSIG, WCOREDUMP, WEXITSTATUS, WIFSIGNALED, WIFEXITED,
24000         WIFSTOPPED): Remove fallback definitions.
24001         * modules/wait-process (Depends-on): Add sys_wait.
24002
24003         New module 'sys_wait'.
24004         * modules/sys_wait: New file.
24005         * lib/sys_wait.in.h: New file, partially copied from
24006         lib/wait-process.c.
24007         * m4/sys_wait_h.m4: New file.
24008         * doc/posix-headers/sys_wait.texi: Mention the new module.
24009
24010 2008-10-19  Bruno Haible  <bruno@clisp.org>
24011
24012         * m4/wait-process.m4 (gl_WAIT_PROCESS): Remove test for unistd.h.
24013
24014 2008-10-19  Bruno Haible  <bruno@clisp.org>
24015
24016         Assume that waitpid() fills an 'int' status, not a 'union wait'.
24017         * lib/wait-process.c (WAIT_T): Remove type.
24018         (WTERMSIG, WCOREDUMP, WEXITSTATUS): Define fallbacks using bit masks.
24019         (wait_subprocess): Update.
24020
24021 2008-10-19  Bruno Haible  <bruno@clisp.org>
24022
24023         New module 'atoll'.
24024         * modules/atoll: New file.
24025         * lib/stdlib.in.h (atoll): New declaration.
24026         * lib/atoll.c: New file, from glibc with modifications.
24027         * m4/atoll.m4: New file.
24028         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_ATOLL,
24029         HAVE_ATOLL.
24030         * modules/stdlib (Makefile.am): Substitute GNULIB_ATOLL, HAVE_ATOLL.
24031         * doc/posix-functions/atoll.texi: Mention the new module.
24032
24033 2008-10-19  Bruno Haible  <bruno@clisp.org>
24034
24035         Add strtoull() declaration to <stdlib.h>.
24036         * lib/stdlib.in.h (strtoull): New declaration.
24037         * m4/strtoull.m4 (gl_FUNC_STRTOLL): Require gl_STDLIB_H_DEFAULTS.
24038         Set HAVE_STRTOULL.
24039         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_STRTOULL,
24040         HAVE_STRTOULL.
24041         * modules/strtoull (Depends-on): Add stdlib.
24042         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
24043         * modules/stdlib (Makefile.am): Substitute GNULIB_STRTOULL,
24044         HAVE_STRTOULL.
24045
24046 2008-10-19  Bruno Haible  <bruno@clisp.org>
24047
24048         Add strtoll() declaration to <stdlib.h>.
24049         * lib/stdlib.in.h (strtoll): New declaration.
24050         * m4/strtoll.m4 (gl_FUNC_STRTOLL): Require gl_STDLIB_H_DEFAULTS.
24051         Set HAVE_STRTOLL.
24052         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_STRTOLL,
24053         HAVE_STRTOLL.
24054         * modules/strtoll (Depends-on): Add stdlib.
24055         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
24056         * modules/stdlib (Makefile.am): Substitute GNULIB_STRTOLL, HAVE_STRTOLL.
24057
24058 2008-10-19  Bruno Haible  <bruno@clisp.org>
24059
24060         * modules/bcopy (Depends-on): Add strings.
24061         (Include): Specify <strings.h>.
24062
24063 2008-10-19  Bruno Haible  <bruno@clisp.org>
24064
24065         * doc/posix-functions/atexit.texi: Update doc regarding mingw.
24066
24067 2008-10-19  Bruno Haible  <bruno@clisp.org>
24068
24069         * lib/openat-die.c (openat_save_fail, openat_restore_fail): Rename
24070         the parameter from 'errno' to 'errnum'. Fixes a compilation error on
24071         mingw.
24072
24073 2008-10-19  Bruno Haible  <bruno@clisp.org>
24074
24075         * lib/atanl.c: Don't include isnanl.h.
24076         * lib/cosl.c: Likewise.
24077         * lib/ldexpl.c: Likewise.
24078         * lib/logl.c: Likewise.
24079         * lib/sinl.c: Likewise.
24080         * lib/sqrtl.c: Likewise.
24081         * lib/tanl.c: Likewise.
24082
24083         Move the isnanf(), isnand(), isnanl() declarations to <math.h>.
24084         * lib/isnanf.h: Remove file.
24085         * lib/isnand.h: Remove file.
24086         * lib/isnanl.h: Remove file.
24087         * lib/math.in.h: Include the contents of lib/isnanf.h, lib/isnand.h,
24088         lib/isnanl.h. Use HAVE_ISNANF, HAVE_ISNAND, HAVE_ISNANL as substituted
24089         macros.
24090         * m4/isnanf.m4 (gl_FUNC_ISNANF): Require gl_MATH_H_DEFAULTS. Set
24091         HAVE_ISNANF, don't define it as a C macro.
24092         * m4/isnand.m4 (gl_FUNC_ISNAND): Require gl_MATH_H_DEFAULTS. Set
24093         HAVE_ISNAND, don't define it as a C macro.
24094         * m4/isnanl.m4 (gl_FUNC_ISNANL): Require gl_MATH_H_DEFAULTS. Set
24095         HAVE_ISNANL, don't define it as a C macro.
24096         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_ISNAN[FDL] and
24097         HAVE_ISNAN[FDL].
24098         * modules/isnanf (Files): Remove lib/isnanf.h.
24099         (Depends-on): Add math.
24100         (configure.ac): Invoke gl_MATH_MODULE_INDICATOR.
24101         (Include): Specify <math.h> instead of isnanf.h.
24102         * modules/isnand (Files): Remove lib/isnand.h.
24103         (Depends-on): Add math.
24104         (configure.ac): Invoke gl_MATH_MODULE_INDICATOR.
24105         (Include): Specify <math.h> instead of isnand.h.
24106         * modules/isnanl (Files): Remove lib/isnanl.h.
24107         (Depends-on): Add math.
24108         (configure.ac): Invoke gl_MATH_MODULE_INDICATOR.
24109         (Include): Specify <math.h> instead of isnanl.h.
24110         * modules/math (Makefile.am): Substitute GNULIB_ISNAN[FDL] and
24111         HAVE_ISNAN[FDL].
24112         * tests/test-isnanf.c: Include <math.h> instead of isnanf.h.
24113         * tests/test-isnand.c: Include <math.h> instead of isnand.h.
24114         * tests/test-isnanl.c: Include <math.h> instead of isnanl.h.
24115         * NEWS: Mention the change.
24116
24117 2008-10-18  Bruno Haible  <bruno@clisp.org>
24118
24119         Add getusershell(), setusershell(), endusershell() declarations to
24120         <unistd.h>.
24121         * lib/unistd.in.h (getusershell, setusershell, endusershell): New
24122         declarations.
24123         * lib/getusershell.c: Include unistd.h.
24124         * m4/getusershell.m4 (gl_FUNC_GETUSERSHELL): Require
24125         gl_UNISTD_H_DEFAULTS and AC_USE_SYSTEM_EXTENSIONS. Set
24126         HAVE_GETUSERSHELL.
24127         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_GETUSERSHELL
24128         and HAVE_GETUSERSHELL.
24129         * modules/getusershell (Depends-on): Add unistd, extensions.
24130         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
24131         (Include): Specify <unistd.h>.
24132         * modules/unistd (Makefile.am): Substitute GNULIB_GETUSERSHELL and
24133         HAVE_GETUSERSHELL.
24134
24135 2008-10-18  Bruno Haible  <bruno@clisp.org>
24136
24137         Add a getloadavg() declaration to <stdlib.h>.
24138         * lib/stdlib.in.h; Include <sys/loadavg.h> when needed for the
24139         getloadavg declaration.
24140         (getloadavg): New declaration.
24141         * lib/getloadavg.c: Include <stdlib.h> first.
24142         * m4/getloadavg.m4 (gl_GETLOADAVG): Require gl_STDLIB_H_DEFAULTS and
24143         AC_USE_SYSTEM_EXTENSIONS. Test whether sys/loadavg.h exists. Set
24144         HAVE_SYS_LOADAVG_H and HAVE_DECL_GETLOADAVG.
24145         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_GETLOADAVG,
24146         HAVE_SYS_LOADAVG_H, HAVE_DECL_GETLOADAVG.
24147         * modules/getloadavg (Depends-on): Add stdlib, extensions.
24148         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
24149         (Include): Specify <stdlib.h>.
24150         * modules/stdlib (Makefile.am): Substitute GNULIB_GETLOADAVG,
24151         HAVE_SYS_LOADAVG_H, HAVE_DECL_GETLOADAVG.
24152
24153 2008-10-18  Bruno Haible  <bruno@clisp.org>
24154
24155         * lib/dirchownmod.c: Don't include lchmod.h.
24156
24157         Move the lchmod() declaration to <sys/stat.h>.
24158         * lib/lchmod.h: Remove file.
24159         * lib/sys_stat.in.h: Add placeholder for GL_LINK_WARNING.
24160         (lchmod): New declaration, moved here from lib/lchown.h.
24161         * m4/lchmod.m4 (gl_FUNC_LCHMOD): Require gl_SYS_STAT_H_DEFAULTS and
24162         AC_USE_SYSTEM_EXTENSIONS. Set HAVE_LCHMOD.
24163         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Initialize GNULIB_LCHMOD
24164         and HAVE_LCHMOD.
24165         * modules/lchmod (Files): Remove lib/lchmod.h.
24166         (Depends-on): Add sys_stat, extensions.
24167         (configure.ac): Invoke gl_SYS_STAT_MODULE_INDICATOR.
24168         (Include): Specify <sys/stat.h> instead of lchmod.h.
24169         * modules/sys_stat (Depends-on): Add link-warning.
24170         (Makefile.am): Substitute GNULIB_LCHMOD, HAVE_LCHMOD, and the
24171         definition of GL_LINK_WARNING.
24172         * NEWS: Mention the change.
24173
24174 2008-10-18  Bruno Haible  <bruno@clisp.org>
24175
24176         * lib/fchdir.c: Don't include dirfd.h.
24177         * lib/fts.c: Likewise.
24178         * lib/getcwd.c: Likewise.
24179         * lib/glob.c: Likewise.
24180
24181         Move the dirfd() declaration to <dirent.h>.
24182         * lib/dirfd.h: Remove file.
24183         * lib/dirent.in.h: Add placeholder for GL_LINK_WARNING.
24184         (dirfd): New declaration.
24185         * lib/dirfd.c: Include <dirent.h> instead of dirfd.h.
24186         * m4/dirfd.m4 (gl_FUNC_DIRFD): Require gl_DIRENT_H_DEFAULTS and
24187         AC_USE_SYSTEM_EXTENSIONS. Invoke gl_REPLACE_DIRENT_H. Set
24188         HAVE_DECL_DIRFD.
24189         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): Initialize GNULIB_DIRFD and
24190         HAVE_DECL_DIRFD.
24191         * modules/dirfd (Files): Remove lib/dirfd.h.
24192         (Depends-on): Add dirent, extensions.
24193         (configure.ac): Invoke gl_DIRENT_MODULE_INDICATOR.
24194         (Include): Specify <dirent.h> instead of dirfd.h.
24195         * modules/dirent (Depends-on): Add link-warning.
24196         (Makefile.am): Substitute GNULIB_DIRFD, HAVE_DECL_DIRFD, and
24197         definition of GL_LINK_WARNING.
24198         * NEWS: Mention the change.
24199
24200 2008-10-18  Bruno Haible  <bruno@clisp.org>
24201
24202         Move the euidaccess() declaration to <unistd.h>.
24203         * lib/euidaccess.h: Remove file.
24204         * lib/unistd.in.h (euidaccess): New declaration.
24205         * lib/euidaccess.c: Don't include euidaccess.h.
24206         * m4/euidaccess.m4 (gl_FUNC_EUIDACCESS): Require gl_UNISTD_H_DEFAULTS.
24207         Don't check whether euidaccess is declared. Set HAVE_EUIDACCESS.
24208         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_EUIDACCESS
24209         and HAVE_EUIDACCESS.
24210         * modules/euidaccess (Files): Remove lib/euidaccess.h.
24211         (Depends-on): Add unistd.
24212         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
24213         (Include): Specify <unistd.h> instead of euidaccess.h.
24214         * modules/unistd (Makefile.am): Substitute GNULIB_EUIDACCESS and
24215         HAVE_EUIDACCESS.
24216         * NEWS: Mention the change.
24217
24218 2008-10-18  Bruno Haible  <bruno@clisp.org>
24219
24220         * lib/xgetdomainname.c: Include <unistd.h> instead of getdomainname.h.
24221
24222         Move the getdomainname() declaration to <unistd.h>.
24223         * lib/getdomainname.h: Remove file.
24224         * lib/unistd.in.h (getdomainname): New declaration.
24225         * lib/getdomainname.c: Include <unistd.h> instead of getdomainname.h.
24226         * m4/getdomainname.m4 (gl_FUNC_GETDOMAINNAME): Require
24227         gl_UNISTD_H_DEFAULTS and AC_USE_SYSTEM_EXTENSIONS. Set
24228         HAVE_GETDOMAINNAME.
24229         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
24230         GNULIB_GETDOMAINNAME and HAVE_GETDOMAINNAME.
24231         * modules/getdomainname (Files): Remove lib/getdomainname.h.
24232         (Depends-on): Add unistd, extensions.
24233         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
24234         (Includes): Specify <unistd.h> instead of getdomainname.h.
24235         * modules/unistd (Makefile.am): Substitute GNULIB_GETDOMAINNAME and
24236         HAVE_GETDOMAINNAME.
24237         * NEWS: Mention the change.
24238
24239 2008-10-18  Bruno Haible  <bruno@clisp.org>
24240
24241         * modules/dirent: New file.
24242         * m4/dirent_h.m4: New file.
24243         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Require gl_DIRENT_H_DEFAULTS.
24244         Invoke gl_REPLACE_DIRENT_H. Don't assign DIRENT_H directly.
24245         * modules/fchdir (Files): Remove lib/dirent.in.h.
24246         (Depends-on): Add dirent.
24247         (Makefile.am): Move rules to modules/dirent.
24248         * doc/posix-headers/dirent.texi: Mention the new module.
24249
24250 2008-10-18  Bruno Haible  <bruno@clisp.org>
24251
24252         Avoid -Wunused-parameter warnings in public gnulib header files.
24253         * m4/gnulib-common.m4 (gl_COMMON_BODY): Define _UNUSED_PARAMETER_ as a
24254         macro.
24255         * lib/unistr.h (u32_mbtouc_unsafe, u32_mbtouc): Use it.
24256
24257 2008-10-18  Bruno Haible  <bruno@clisp.org>
24258
24259         * doc/glibc-functions/dirfd.texi: Mention the module 'dirfd'.
24260         * doc/glibc-functions/error.texi: Mention the module 'error'.
24261         * doc/glibc-functions/euidaccess.texi: Mention the module 'euidaccess'.
24262         * doc/glibc-functions/getdomainname.texi: Mention the module
24263         'getdomainname'.
24264         * doc/glibc-functions/getloadavg.texi: Mention the module 'getloadavg'.
24265         * doc/glibc-functions/getpagesize.texi: Mention the module
24266         'getpagesize'.
24267         * doc/glibc-functions/getusershell.texi: Mention the module
24268         'getusershell'.
24269         * doc/glibc-functions/isnanl.texi: Mention the module 'isnanl'.
24270         * doc/glibc-functions/lchmod.texi: Mention the module 'lchmod'.
24271         * doc/glibc-functions/mempcpy.texi: Mention the module 'mempcpy'.
24272         * doc/glibc-functions/memrchr.texi: Mention the module 'memrchr'.
24273         * doc/glibc-functions/mkdtemp.texi: Mention the module 'mkdtemp'.
24274         * doc/glibc-functions/rpmatch.texi: Mention the module 'rpmatch'.
24275         * doc/glibc-functions/stpcpy.texi: Mention the module 'stpcpy'.
24276         * doc/glibc-functions/stpncpy.texi: Mention the module 'stpncpy'.
24277         * doc/glibc-functions/strchrnul.texi: Mention the module 'strchrnul'.
24278         * doc/glibc-functions/strndup.texi: Mention the module 'strndup'.
24279         * doc/glibc-functions/strnlen.texi: Mention the module 'strnlen'.
24280         * doc/glibc-functions/strsep.texi: Mention the module 'strsep'.
24281         * doc/glibc-functions/timegm.texi: Mention the module 'timegm'.
24282         * doc/glibc-functions/vasprintf.texi: Mention the module 'vasprintf'.
24283
24284 2008-10-17  Bruno Haible  <bruno@clisp.org>
24285
24286         * m4/signbit.m4 (gl_SIGNBIT_TEST_PROGRAM): On platforms other than
24287         HP-UX and IRIX, use -0.0L.
24288         * tests/test-ceill.c (minus_zero): Likewise.
24289         * tests/test-floorl.c (minus_zero): Likewise.
24290         * tests/test-frexpl.c (minus_zero): Likewise.
24291         * tests/test-isnan.c (minus_zerol): Likewise.
24292         * tests/test-isnanl.h (minus_zero): Likewise.
24293         * tests/test-ldexpl.c (minus_zero): Likewise.
24294         * tests/test-roundl.c (minus_zero): Likewise.
24295         * tests/test-signbit.c (minus_zerol): Likewise.
24296         * tests/test-snprintf-posix.h (minus_zerol): Likewise.
24297         * tests/test-sprintf-posix.h (minus_zerol): Likewise.
24298         * tests/test-truncl.c (minus_zero): Likewise.
24299         * tests/test-vasnprintf-posix.c (minus_zerol): Likewise.
24300         * tests/test-vasprintf-posix.c (minus_zerol): Likewise.
24301         Reported by Markus Armbruster <armbru@redhat.com> via Jim Meyering
24302         and by Nelson H. F. Beebe <beebe@math.utah.edu> via Eric Blake.
24303
24304 2008-10-17  Bruno Haible  <bruno@clisp.org>
24305
24306         Avoid gcc warnings because of #pragma GCC system_header on older gcc.
24307         * lib/arpa_inet.in.h: Encloses reference to PRAGMA_SYSTEM_HEADER so
24308         that it gets activated only for gcc >= 3.0.
24309         * lib/dirent.in.h: Likewise.
24310         * lib/errno.in.h: Likewise.
24311         * lib/fcntl.in.h: Likewise.
24312         * lib/float.in.h: Likewise.
24313         * lib/iconv.in.h: Likewise.
24314         * lib/inttypes.in.h: Likewise.
24315         * lib/locale.in.h: Likewise.
24316         * lib/math.in.h: Likewise.
24317         * lib/netdb.in.h: Likewise.
24318         * lib/netinet_in.in.h: Likewise.
24319         * lib/search.in.h: Likewise.
24320         * lib/signal.in.h: Likewise.
24321         * lib/spawn.in.h: Likewise.
24322         * lib/stdarg.in.h: Likewise.
24323         * lib/stdint.in.h: Likewise.
24324         * lib/stdio.in.h: Likewise.
24325         * lib/stdlib.in.h: Likewise.
24326         * lib/string.in.h: Likewise.
24327         * lib/strings.in.h: Likewise.
24328         * lib/sys_file.in.h: Likewise.
24329         * lib/sys_ioctl.in.h: Likewise.
24330         * lib/sys_select.in.h: Likewise.
24331         * lib/sys_socket.in.h: Likewise.
24332         * lib/sys_stat.in.h: Likewise.
24333         * lib/sys_time.in.h: Likewise.
24334         * lib/sysexits.in.h: Likewise.
24335         * lib/time.in.h: Likewise.
24336         * lib/unistd.in.h: Likewise.
24337         * lib/wchar.in.h: Likewise.
24338         * lib/wctype.in.h: Likewise.
24339         Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
24340
24341 2008-10-17  Jim Meyering  <meyering@redhat.com>
24342
24343         ignore-value: don't depend on inline module
24344         * modules/ignore-value (Depends-on): Remove 'inline'.
24345         (configure.ac): Instead, add AC_REQUIRE([AC_C_INLINE]) here.
24346         Suggestion from Bruno Haible.
24347
24348 2008-10-17  Bruno Haible  <bruno@clisp.org>
24349
24350         New implementation of condition variables for Win32.
24351         * lib/glthread/cond.h (struct gl_waitqueue_link): New type.
24352         (gl_linked_waitqueue_t): New type.
24353         (gl_cond_t): Use it.
24354         * lib/glthread/cond.c (struct gl_waitqueue_element): New type.
24355         (gl_waitqueue_init, gl_waitqueue_add, gl_waitqueue_remove,
24356         gl_waitqueue_notify_first, gl_waitqueue_notify_all): New functions.
24357         (glthread_cond_init_func, glthread_cond_wait_func,
24358         glthread_cond_timedwait_func, glthread_cond_signal_func,
24359         glthread_cond_broadcast_func, glthread_cond_destroy_func):
24360         Reimplemented on the basis of gl_linked_waitqueue_t.
24361         * lib/glthread/lock.h (gl_carray_waitqueue_t): Renamed from
24362         gl_waitqueue_t.
24363         (gl_rwlock_t): Update.
24364         * lib/glthread/lock.c (gl_waitqueue_t): Alias to gl_carray_waitqueue_t.
24365
24366 2008-10-17  Simon Josefsson  <simon@josefsson.org>
24367
24368         * modules/recvfrom (Depends-on): Add dependency on getpeername.
24369         Reported by Yoann Vandoorselaere <yoann@prelude-ids.org>.
24370
24371 2008-10-17  Jim Meyering  <meyering@redhat.com>
24372
24373         ignore-value: new module
24374         * modules/ignore-value: New file.
24375         * lib/ignore-value.h: New file.
24376         * MODULES.html.sh (Compiler warning management): New section,
24377         just for this module.  More to come.
24378
24379 2008-10-16  Paul Eggert  <eggert@cs.ucla.edu>
24380
24381         open-safer.c: avoid 'signed and unsigned in conditional...' warning
24382         * lib/open-safer.c (open_safer): Use an "if/else" statement in place
24383         of the ternary operator.  Reported by Reuben Thomas <rrt@sc3d.org>.
24384
24385 2008-10-16  Jim Meyering  <meyering@redhat.com>
24386
24387         openat-die.c: avoid 'no previous prototype' warning
24388         * lib/openat-die.c: Include "openat.h".
24389         Reported by Reuben Thomas <rrt@sc3d.org>.
24390
24391 2008-10-16  Simon Josefsson  <simon@josefsson.org>
24392
24393         * m4/netdb_h.m4: Assume that if netdb.h exists, it works.
24394         * lib/netdb.in.h: Fix typo.
24395         Reported by Bruno Haible  <bruno@clisp.org>
24396
24397         * lib/netdb.in.h: Include sys/socket.h for platforms without
24398         netdb.h, to get structures like hostent on MinGW.
24399         * modules/netdb (Depends-on): Add sys_socket.
24400
24401 2008-10-15  Simon Josefsson  <simon@josefsson.org>
24402
24403         * modules/netdb, modules/netdb-tests: New file.
24404         * m4/netdb_h.m4: New file.
24405         * lib/netdb.in.h: Add, currently just an empty file pending
24406         definitions.
24407         * tests/test-netdb.c: New file.
24408         * doc/posix-headers/netdb.texi: Mention that we replace it if
24409         needed.
24410         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
24411         netdb.
24412
24413 2008-10-15  Simon Josefsson  <simon@josefsson.org>
24414
24415         * doc/gnulib.texi (Getaddrinfo and WINVER): Sync documentation
24416         with code.
24417
24418 2008-10-13  Bruno Haible  <bruno@clisp.org>
24419
24420         * lib/glthread/cond.c (glthread_cond_wait_func,
24421         glthread_cond_timedwait_func): Add a comment.
24422
24423 2008-10-13  Yoann Vandoorselaere  <yoann@prelude-ids.org>
24424
24425         * tests/test-poll.c: Include <sys/ioctl.h>, for ioctl().
24426         * tests/test-select.c: Likewise,
24427
24428 2008-10-13  Bruno Haible  <bruno@clisp.org>
24429
24430         * lib/glthread/cond.c (glthread_cond_wait_func,
24431         glthread_cond_timedwait_func): Fix variable name.
24432         Reported by Yoann Vandoorselaere <yoann@prelude-ids.org>.
24433
24434 2008-10-13  Paolo Bonzini  <bonzini@gnu.org>
24435
24436         fix getaddrinfo emulation for systems with struct sockaddr.sa_len
24437         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Detect
24438         struct sockaddr.sa_len.
24439         * lib/getaddrinfo.c (getaddrinfo): Set it if appropriate.
24440
24441 2008-10-13  Simon Josefsson  <simon@josefsson.org>
24442
24443         * build-aux/pmccabe2html: Add css and css_url parameters.
24444
24445 2008-10-12  Bruno Haible  <bruno@clisp.org>
24446
24447         * tests/test-sameacls.c (main) [AIX]: Clear type argument before
24448         calling aclx_get.
24449         Reported by Rainer Tammer <tammer@tammer.net>.
24450
24451 2008-10-12  Bruno Haible  <bruno@clisp.org>
24452
24453         Use msvcrt aware primitives for creation/termination of Win32 threads.
24454         * lib/glthread/thread.c: Include <process.h>.
24455         (glthread_create_func): Use _beginthreadex instead of CreateThread.
24456         (wrapper_func): Update signature.
24457         (gl_thread_exit_func): Use _endthreadex instead of EndThread.
24458
24459 2008-10-11  Yoann Vandoorselaere  <yoann@prelude-ids.org>
24460             Bruno Haible  <bruno@clisp.org>
24461
24462         Provide a Win32 implementation of the 'cond' module.
24463         * lib/glthread/cond.h [USE_WIN32]: New implementation.
24464         * lib/glthread/cond.c (glthread_cond_init_func,
24465         glthread_cond_wait_func, glthread_cond_timedwait_func,
24466         glthread_cond_signal_func, glthread_cond_broadcast_func,
24467         glthread_cond_destroy_func) [USE_WIN32]: New functions.
24468         * modules/cond (Dependencies): Add gettimeofday.
24469
24470 2008-10-11  Bruno Haible  <bruno@clisp.org>
24471
24472         Make sleep work on older versions of mingw.
24473         * m4/sleep.m4 (gl_FUNC_SLEEP): Test whether 'sleep' is declared, not
24474         only whether it exists.
24475         * doc/posix-functions/sleep.texi: Mention the problem with older
24476         versions of mingw.
24477
24478 2008-10-11  Bruno Haible  <bruno@clisp.org>
24479
24480         New module 'shutdown'.
24481         * modules/shutdown: New file.
24482         * lib/sys_socket.in.h (shutdown): New declaration.
24483         * lib/winsock.c (shutdown): New function.
24484         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_H_DEFAULTS): Initialize
24485         GNULIB_SHUTDOWN.
24486         * modules/sys_socket (Makefile.am): Substitute GNULIB_SHUTDOWN.
24487         * doc/posix-functions/shutdown.texi: Document the new module.
24488
24489 2008-10-11  Jim Meyering  <meyering@redhat.com>
24490
24491         * lib/fclose.c: Fix typo in comment: s/close/fclose/.
24492
24493 2008-10-11  Bruno Haible  <bruno@clisp.org>
24494
24495         New module 'fclose'.
24496         * modules/fclose: New file.
24497         * lib/stdio.in.h (fclose): New declaration.
24498         * lib/fclose.c: New file.
24499         * m4/fclose.m4: New file.
24500         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize GNULIB_FCLOSE,
24501         REPLACE_FCLOSE.
24502         * m4/close.m4 (gl_REPLACE_CLOSE): Invoke gl_REPLACE_FCLOSE.
24503         * modules/stdio (Makefile.am): Substitute GNULIB_FCLOSE,
24504         REPLACE_FCLOSE.
24505         * modules/close (Depends-on): fclose.
24506         * doc/posix-functions/fclose.texi: Mention the problem on Windows.
24507
24508 2008-10-11  Bruno Haible  <bruno@clisp.org>
24509
24510         * lib/winsock.c (_gl_close_fd_maybe_socket): If closesocket fails,
24511         set errno and don't call _close.
24512
24513 2008-10-10  Bruno Haible  <bruno@clisp.org>
24514
24515         * lib/copy-acl.c (qcopy_acl) [CYGWIN]: Call chmod before setting the
24516         ACL, not afterwards. Fixes test failure on Cygwin.
24517
24518 2008-10-09  Ben Pfaff  <blp@gnu.org>
24519
24520         * build-aux/announce-gen: Fix gnulib version related part of usage
24521         message.  Die with a useful error message if no tarballs are
24522         found.
24523
24524 2008-10-10  Jim Meyering  <meyering@redhat.com>
24525
24526         bootstrap: use git's --depth=N option only if it's supported
24527         * build-aux/bootstrap: Work with git-1.4.4.4, which does not
24528         recognize the --depth option.  Reported by Pádraig Brady.
24529
24530 2008-10-09  Bruno Haible  <bruno@clisp.org>
24531
24532         New module 'ioctl'.
24533         * modules/ioctl: New file.
24534         * lib/sys_socket.in.h (ioctl): Remove declaration.
24535         * lib/winsock.c: Include <sys/ioctl.h>.
24536         (rpl_ioctl): Define only of the gnulib module 'ioctl' is present.
24537         * m4/sys_socket_h.m4 (gl_PREREQ_SYS_H_WINSOCK2): Require
24538         gl_SYS_IOCTL_H_DEFAULTS. Set also SYS_IOCTL_H_HAVE_WINSOCK2_H.
24539         * modules/sys_socket (Files): Add m4/sys_ioctl_h.m4.
24540         * doc/posix-functions/ioctl.texi: Mention the new module.
24541
24542 2008-10-09  Bruno Haible  <bruno@clisp.org>
24543
24544         New module 'sys_ioctl'.
24545         * lib/sys_ioctl.in.h: New file.
24546         * m4/sys_ioctl_h.m4: New file.
24547         * modules/sys_ioctl: New file.
24548         * doc/glibc-headers/sys_ioctl.texi: Mention the new module.
24549
24550 2008-10-09  Bruno Haible  <bruno@clisp.org>
24551
24552         * lib/sys_socket.in.h (ioctl): Make signature POSIX compliant.
24553         * lib/winsock.c: Include <stdarg.h>.
24554         (rpl_ioctl): Change to second argument 'int' and then varargs.
24555
24556 2008-10-09  Bruno Haible  <bruno@clisp.org>
24557
24558         * m4/close.m4 (gl_FUNC_CLOSE): Arrange to replace the close() function
24559         when the sys_socket module is present and the system has <winsock2.h>.
24560
24561 2008-10-09  Bruno Haible  <bruno@clisp.org>
24562
24563         * doc/posix-functions/close.texi: Mention module 'close' instead of
24564         module 'sys_socket'.
24565
24566 2008-10-09  Bruno Haible  <bruno@clisp.org>
24567
24568         * doc/glibc-headers/sys_ioctl.texi: New file.
24569         * doc/gnulib.texi: Include it.
24570
24571 2008-10-09  Paolo Bonzini  <bonzini@gnu.org>
24572             Bruno Haible  <bruno@clisp.org>
24573
24574         Combine the two replacements of 'close'.
24575         * lib/sys_socket.in.h (close): Define to a reminder to include
24576         <unistd.h>.
24577         (_gl_close_fd_maybe_socket): New declaration.
24578         (HAVE__GL_CLOSE_FD_MAYBE_SOCKET): New macro.
24579         * lib/winsock.c (close): Remove undefinition.
24580         (_gl_close_fd_maybe_socket): Renamed from rpl_close. Define only when
24581         needed for the gnulib module 'close'.
24582         * lib/unistd.in.h (close): If the gnulib module 'close' is not used,
24583         define to an error symbol or to a warning, if suitable.
24584         * lib/close.c: Include <sys/socket.h>.
24585         (rpl_close): Invoke _gl_close_fd_maybe_socket when gnulib defines it.
24586         * m4/sys_socket_h.m4 (gl_PREREQ_SYS_H_WINSOCK2): Set also
24587         UNISTD_H_HAVE_WINSOCK2_H.
24588         (gl_SYS_SOCKET_H_DEFAULTS): Require gl_UNISTD_H_DEFAULTS.
24589         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
24590         UNISTD_H_HAVE_WINSOCK2_H.
24591         * modules/sys_socket (Files): Add m4/unistd_h.m4.
24592         (configure.ac): Set a module indicator.
24593         (Makefile.am): Substitute GNULIB_CLOSE.
24594         * modules/unistd (Makefile.am): Substitute UNISTD_H_HAVE_WINSOCK2_H.
24595         * modules/poll-tests (Depends-on): Add close.
24596         * modules/select-tests (Depends-on): Likewise.
24597
24598 2008-10-09  Paolo Bonzini  <bonzini@gnu.org>
24599             Bruno Haible  <bruno@clisp.org>
24600
24601         New module 'close'.
24602         * modules/close: New file.
24603         * lib/unistd.in.h (close): Move declaration out of the
24604         FCHDIR_REPLACEMENT scope.
24605         (_gl_unregister_fd): New declaration.
24606         * lib/close.c: New file.
24607         * lib/fchdir.c (rpl_close): Remove function.
24608         * m4/close.m4: New file.
24609         * m4/fchdir.m4 (gl_FUNC_FCHDIR): When replacing fchdir, also replace
24610         close.
24611         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_CLOSE and
24612         REPLACE_CLOSE.
24613         * modules/unistd (Makefile.am): Substitute GNULIB_CLOSE and
24614         REPLACE_CLOSE.
24615         * modules/fchdir (Depends-on): Add close.
24616
24617 2008-10-09  Paolo Bonzini  <bonzini@gnu.org>
24618             Bruno Haible  <bruno@clisp.org>
24619
24620         * lib/fcntl.in.h (open): Simplify conditionals.
24621         (_gl_register_fd): New declaration.
24622         * lib/fchdir.c (rpl_open): Remove function.
24623         * lib/open.c: When FCHDIR_REPLACEMENT is defined, compile the file
24624         also.
24625         (open): When FCHDIR_REPLACEMENT is defined, invoke _gl_register_fd.
24626         * m4/fchdir.m4 (gl_FUNC_FCHDIR): When replacing fchdir, also replace
24627         open.
24628
24629 2008-10-09  Jim Meyering  <meyering@redhat.com>
24630
24631         GNUmakefile: use the more name-space-friendly "_version"
24632         * top/GNUmakefile (_dummy): Update.
24633         (_version): Rename from "version".
24634
24635 2008-10-09  Paolo Bonzini  <bonzini@gnu.org>
24636             Bruno Haible  <bruno@clisp.org>
24637
24638         * lib/fchdir.c (_gl_unregister_fd): New functions, extracted from
24639         rpl_close.
24640         (_gl_register_fd): New function, extracted from rpl_open.
24641         (rpl_close, rpl_closedir): Use _gl_unregister_fd.
24642         (rpl_open, rpl_opendir): Use _gl_register_fd.
24643
24644 2008-10-09  Paolo Bonzini  <bonzini@gnu.org>
24645
24646         Fix organization of 'open' replacement.
24647         * m4/open.m4 (gl_REPLACE_OPEN): New macro.
24648         (gl_FUNC_OPEN): Use it.
24649         (gl_PREREQ_OPEN): Add a : to make the body non-empty.
24650
24651 2008-10-08  Bruno Haible  <bruno@clisp.org>
24652
24653         * modules/getdate-tests (test_getdata_LDADD): Add LIBINTL.
24654
24655 2008-10-08  Simon Josefsson  <simon@josefsson.org>
24656
24657         * m4/sys_socket_h.m4: Don't AC_LIBOBJ(winsock).  The file is
24658         AC_LIBOBJ'ed by each gnulib module that needs it (e.g., socket,
24659         listen).
24660
24661 2008-10-08  Eric Blake  <ebb9@byu.net>
24662
24663         GNUmakefile: add 'make version' target
24664         * top/GNUmakefile (_curr-ver): Split version update rules...
24665         (version): ...into a target.
24666
24667 2008-10-07  Bruno Haible  <bruno@clisp.org>
24668
24669         Use a more portable replacement expression for -0.0L.
24670         * m4/signbit.m4 (gl_SIGNBIT_TEST_PROGRAM): Use -LDBL_MIN * LDBL_MIN
24671         instead of -0.0L. Fix m4 quotation.
24672
24673         * tests/test-signbit.c: Include <float.h>.
24674         (minus_zero): New variable.
24675         (test_signbitl): Use minus_zero instead of -zero.
24676         * modules/signbit-tests (Depends-on): Add float.
24677
24678         * tests/test-ceill.c: Include <float.h>.
24679         (zero): Remove variable.
24680         (minus_zero): New variable.
24681         (main): Use minus_zero instead of -zero.
24682         * modules/ceill-tests (Depends-on): Add float.
24683
24684         * tests/test-floorl.c: Include <float.h>.
24685         (zero): Remove variable.
24686         (minus_zero): New variable.
24687         (main): Use minus_zero instead of -zero.
24688         * modules/floorl-tests (Depends-on): Add float.
24689
24690         * tests/test-roundl.c: Include <float.h>.
24691         (zero): Remove variable.
24692         (minus_zero): New variable.
24693         (main): Use minus_zero instead of -zero.
24694         * modules/roundl-tests (Depends-on): Add float.
24695
24696         * tests/test-truncl.c: Include <float.h>.
24697         (zero): Remove variable.
24698         (minus_zero): New variable.
24699         (main): Use minus_zero instead of -zero.
24700         * modules/truncl-tests (Depends-on): Add float.
24701
24702         * tests/test-frexpl.c (zero): Remove variable.
24703         (minus_zero): New variable.
24704         (main): Use minus_zero instead of -zero.
24705         * modules/frexpl-tests (Depends-on): Add float.
24706
24707         * tests/test-isnan.c (zerol): Remove variable.
24708         (minus_zerol): New variable.
24709         (test_long_double): Use minus_zerol instead of -zerol.
24710         * modules/isnan-tests (Depends-on): Add float.
24711
24712         * tests/test-isnanl.h (zero): Remove variable.
24713         (minus_zero): New variable.
24714         (main): Use minus_zero instead of -zero.
24715         * modules/isnanl-nolibm-tests (Depends-on): Add float.
24716         * modules/isnanl-tests (Depends-on): Add float.
24717
24718         * tests/test-ldexpl.c (zero): Remove variable.
24719         (minus_zero): New variable.
24720         (main): Use minus_zero instead of -zero.
24721         * modules/ldexpl-tests (Depends-on): Add float.
24722
24723         * tests/test-snprintf-posix.h (zerol): Remove variable.
24724         (minus_zerol): New variable.
24725         (test_function): Use minus_zerol instead of -zerol.
24726         * modules/snprintf-posix-tests (Depends-on): Add float.
24727         * modules/vsnprintf-posix-tests (Depends-on): Add float.
24728
24729         * tests/test-sprintf-posix.h (zerol): Remove variable.
24730         (minus_zerol): New variable.
24731         (test_function): Use minus_zerol instead of -zerol.
24732         * modules/sprintf-posix-tests (Depends-on): Add float.
24733         * modules/vsprintf-posix-tests (Depends-on): Add float.
24734
24735         * tests/test-vasnprintf-posix.c (zerol): Remove variable.
24736         (minus_zerol): New variable.
24737         (test_function): Use minus_zerol instead of -zerol.
24738         * modules/vasnprintf-posix-tests (Depends-on): Add float.
24739
24740         * tests/test-vasprintf-posix.c (zerol): Remove variable.
24741         (minus_zerol): New variable.
24742         (test_function): Use minus_zerol instead of -zerol.
24743         * modules/vasprintf-posix-tests (Depends-on): Add float.
24744
24745 2008-10-07  Simon Josefsson  <simon@josefsson.org>
24746
24747         * MODULES.html.sh (Support for building documentation): Mention
24748         pmccabe2html.  Sort entries.
24749
24750         Add pmccabe2html module, from gnupdf.
24751         * build-aux/pmccabe.css: New file.
24752         * build-aux/pmccabe2html: New file.
24753         * m4/pmccabe2html.m4: New file.
24754         * modules/pmccabe2html: New file.
24755
24756 2008-10-07  Richard W.M. Jones <rjones@redhat.com>
24757
24758         flock: new module
24759         * MODULES.html.sh: Add to list of modules.
24760         * lib/flock.c: flock implementation for Windows and Unix systems
24761         which have fcntl.
24762         * doc/glibc-functions/flock.texi: Update documentation.
24763         * lib/sys_file.in.h: <sys/file.h> header file.
24764         * m4/flock.m4: M4 macros.
24765         * m4/sys_file_h.m4: M4 macros for replacement sys/file.h.
24766         * modules/flock: flock module.
24767         * modules/flock-tests: flock tests module.
24768         * modules/sys_file: sys/file.h module.
24769         * tests/test-flock.c: test suite for flock.
24770
24771 2008-10-06  Jim Meyering  <meyering@redhat.com>
24772
24773         bootstrap: check for LT_INIT more portably still ;-)
24774         * build-aux/bootstrap: Don't rely on \>, since it's not portable.
24775         Spotted by Bruno Haible.
24776
24777 2008-10-06  Eric Blake  <ebb9@byu.net>
24778
24779         test-signbit: avoid tripping Irix cc bug on -0.0L
24780         * tests/test-signbit.c (minus_zerol): Delete, and replace with
24781         '-zerol'.  This may break on HP-UX/hppa, but at least makes the
24782         entire testsuite consistent and avoids an Irix 6.2 bug.
24783
24784 2008-10-05  Bruno Haible  <bruno@clisp.org>
24785             Jim Meyering  <jim@meyering.net>
24786
24787         Add an option for ignoring EPIPE during close_stdout.
24788         * lib/closeout.h: Include <stdbool.h>.
24789         (close_stdout_set_ignore_EPIPE): New declaration.
24790         * lib/closeout.c: Include <stdbool.h>.
24791         (ignore_EPIPE): New variable.
24792         (close_stdout_set_ignore_EPIPE): New function.
24793         (close_stdout): Ignore EPIPE error if ignore_EPIPE is set.
24794         * lib/close-stream.c (close_stream): Mention the possible EPIPE
24795         failure.
24796         * modules/closeout (Depends-on): Add stdbool.
24797
24798 2008-10-05  Bruno Haible  <bruno@clisp.org>
24799
24800         * modules/accept: New file.
24801         * modules/bind: New file.
24802         * modules/connect: New file.
24803         * modules/getpeername: New file.
24804         * modules/getsockname: New file.
24805         * modules/getsockopt: New file.
24806         * modules/listen: New file.
24807         * modules/recv: New file.
24808         * modules/recvfrom: New file.
24809         * modules/send: New file.
24810         * modules/sendto: New file.
24811         * modules/setsockopt: New file.
24812         * modules/socket: New file.
24813         * lib/sys_socket.in.h: Include the GL_LINK_WARNING definition.
24814         (socket, connect, accept, bind, getpeername, getsockname, getsockopt,
24815         listen, recv, send, recvfrom, sendto, setsockopt): Declare only when
24816         the particular module is requested. Add a link warning when the
24817         particular module is not requested.
24818         * lib/winsock.c (rpl_socket, rpl_connect, rpl_accept, rpl_bind,
24819         rpl_getpeername, rpl_getsockname, rpl_getsockopt, rpl_listen, rpl_recv,
24820         rpl_send, rpl_recvfrom, rpl_sendto, rpl_setsockopt): Define only when
24821         the particular module is requested.
24822         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_MODULE_INDICATOR,
24823         gl_SYS_SOCKET_H_DEFAULTS): New macros.
24824         (gl_HEADER_SYS_SOCKET): Require gl_SYS_SOCKET_H_DEFAULTS.
24825         * modules/sys_socket (Depends-on): Add link-warning.
24826         (Makeifle.am): Substitute GNULIB_SOCKET, GNULIB_CONNECT, GNULIB_ACCEPT,
24827         GNULIB_BIND, GNULIB_GETPEERNAME, GNULIB_GETSOCKNAME, GNULIB_GETSOCKOPT,
24828         GNULIB_LISTEN, GNULIB_RECV, GNULIB_SEND, GNULIB_RECVFROM,
24829         GNULIB_SENDTO, GNULIB_SETSOCKOPT, and the definition of
24830         GL_LINK_WARNING.
24831         * doc/posix-functions/accept.texi: Mention the new module 'accept'.
24832         * doc/posix-functions/bind.texi: Mention the new module 'bind'.
24833         * doc/posix-functions/connect.texi: Mention the new module 'connect'.
24834         * doc/posix-functions/getpeername.texi: Mention the new module
24835         'getpeername'.
24836         * doc/posix-functions/getsockname.texi: Mention the new module
24837         'getsockname'.
24838         * doc/posix-functions/getsockopt.texi: Mention the new module
24839         'getsockopt'.
24840         * doc/posix-functions/listen.texi: Mention the new module 'listen'.
24841         * doc/posix-functions/recv.texi: Mention the new module 'recv'.
24842         * doc/posix-functions/recvfrom.texi: Mention the new module 'recvfrom'.
24843         * doc/posix-functions/send.texi: Mention the new module 'send'.
24844         * doc/posix-functions/sendto.texi: Mention the new module 'sendto'.
24845         * doc/posix-functions/setsockopt.texi: Mention the new module
24846         'setsockopt'.
24847         * doc/posix-functions/socket.texi: Mention the new module 'socket'.
24848         * modules/poll-tests (Depends-on): Add socket, bind, getsockopt,
24849         listen, connect, accept.
24850         * modules/select-tests (Depends-on): Likewise.
24851
24852 2008-10-05  Bruno Haible  <bruno@clisp.org>
24853
24854         * lib/winsock.c (strerror): Remove unused #undef.
24855         (rpl_close): Remove unused local variable.
24856
24857         * modules/sys_socket (Depends-on); Add errno.
24858
24859 2008-10-05  Bruno Haible  <bruno@clisp.org>
24860
24861         * lib/sys_select.in.h: Include the GL_LINK_WARNING definition.
24862         (select): Add a link warning when the 'select' module is not used.
24863         * modules/sys_select (Depends-on): Add link-warning.
24864         (Makefile.am): Substitute the definition of GL_LINK_WARNING.
24865         Suggested by Paolo Bonzini.
24866
24867 2008-10-05  Jim Meyering  <meyering@redhat.com>
24868
24869         bootstrap: check for LT_INIT more portably
24870         * build-aux/bootstrap: Avoid using grep -E, since it's not
24871         portable enough.  Suggestion from Bruno Haible.
24872
24873 2008-10-05  Bruno Haible  <bruno@clisp.org>
24874
24875         * doc/posix-headers/sys_select.texi: Mention 'struct timeval' problem
24876         as being fixed by gnulib.
24877
24878 2008-10-05  Bruno Haible  <bruno@clisp.org>
24879
24880         * modules/select-tests: New file, mostly copied from
24881         modules/sys_select-tests.
24882         * tests/test-select.c: New file, mostly copied from
24883         tests/test-sys_select.c.
24884         * tests/test-sys_select.c: Move most of the code to tests/test-select.c.
24885         * modules/sys_select-tests (Depends-on): Remove all dependencies.
24886         (Makefile.am): Remove test_sys_select_LDADD.
24887
24888         * lib/sys_select.in.h (select): If GNULIB_SELECT is not set, define it
24889         to an undefined symbol, for an error message.
24890         * m4/sys_select_h.m4 (gl_SYS_SELECT_MODULE_INDICATOR): New macro.
24891         (gl_SYS_SELECT_H_DEFAULTS): New macro.
24892         (gl_HEADER_SYS_SELECT): Require it. Don't require compilation of
24893         winsock-select.c here.
24894         * modules/sys_select (Files): Remove lib/winsock-select.c.
24895         (Depends-on): Remove alloca.
24896         (Makefile.am): Substitute GNULIB_SELECT.
24897         * modules/select: New file.
24898         * doc/posix-functions/select.texi: Update.
24899
24900 2008-10-05  Bruno Haible  <bruno@clisp.org>
24901
24902         * lib/spawn_faction_addclose.c (__sysconf): Use getdtablesize always.
24903         * lib/spawn_faction_adddup2.c (__sysconf): Likewise.
24904         * lib/spawn_faction_addopen.c (__sysconf): Likewise.
24905         * modules/posix_spawn_file_actions_addclose (Depends-on): Add
24906         getdtablesize.
24907         * modules/posix_spawn_file_actions_adddup2 (Depends-on): Likewise.
24908         * modules/posix_spawn_file_actions_addopen (Depends-on): Likewise.
24909
24910 2008-10-05  Bruno Haible  <bruno@clisp.org>
24911
24912         * modules/getdtablesize-tests: New file.
24913         * tests/test-getdtablesize.c: New file.
24914
24915         New module 'getdtablesize'.
24916         * lib/unistd.in.h (getdtablesize): New declaration.
24917         * lib/getdtablesize.c: New file.
24918         * m4/getdtablesize.m4: New file.
24919         * modules/getdtablesize: New file.
24920         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
24921         GNULIB_GETDTABLESIZE, HAVE_GETDTABLESIZE.
24922         * modules/unistd (Makefile.am): Substitute GNULIB_GETDTABLESIZE,
24923         HAVE_GETDTABLESIZE.
24924         * doc/glibc-functions/getdtablesize.texi: Mention the new module.
24925
24926 2008-10-05  Bruno Haible  <bruno@clisp.org>
24927
24928         * modules/sched (Makefile.am): Fix typo.
24929         Reported by Simon Josefsson.
24930
24931 2008-10-05  Jim Meyering  <meyering@redhat.com>
24932
24933         bootstrap: check for LT_INIT, too
24934         * build-aux/bootstrap: Both AC_PROG_LIBTOOL and AM_PROG_LIBTOOL
24935         are deprecated.  Suggestion from Ralf Wildenhues.
24936
24937 2008-10-05  Bruno Haible  <bruno@clisp.org>
24938
24939         * lib/spawn.in.h (POSIX_SPAWN_*): Use the system's values, rather than
24940         overriding them by ours.
24941         (POSIX_SPAWN_USEVFORK): Use the next free bit position.
24942
24943 2008-10-05  Jim Meyering  <meyering@redhat.com>
24944
24945         bootstrap: check for AC_PROG_LIBTOOL as well as AM_PROG_LIBTOOL
24946         * build-aux/bootstrap: Check for AC_PROG_LIBTOOL, as well as the
24947         obsolete AM_PROG_LIBTOOL.  Spotted by Debarshi Ray <rishi@gnu.org>.
24948
24949 2008-10-04  Bruno Haible  <bruno@clisp.org>
24950
24951         * modules/dup2 (License): Change to LGPLv2+.
24952         * modules/sleep (License): Likewise.
24953         * modules/perror (License): Likewise.
24954         * modules/fopen (License): Change to LGPLv2+, with approval by Eric
24955         Blake.
24956         * modules/signal (License): Likewise.
24957         * modules/sigprocmask (License): Likewise.
24958         * modules/raise (License): Change to LGPLv2+, with approval by Jim
24959         Meyering.
24960
24961 2008-10-04  Bruno Haible  <bruno@clisp.org>
24962
24963         * lib/spawn.in.h (POSIX_SPAWN_*): Undefine before redefining.
24964         Reported by Rainer Tammer <tammer@tammer.net>.
24965
24966 2008-10-03  Paolo Bonzini  <bonzini@gnu.org>
24967             Bruno Haible  <bruno@clisp.org>
24968
24969         * lib/errno.in.h (EWOULDBLOCK) [win32]: Define to EAGAIN.
24970         * lib/winsock.c (set_winsock_errno): Map WSAEWOULDBLOCK to EWOULDBLOCK.
24971         * lib/strerror.c (rpl_strerror): Remove error string for EWOULDBLOCK.
24972
24973 2008-10-03  Kamil Dudka  <kdudka@redhat.com>
24974
24975         filevercmp: new module
24976         * lib/filevercmp.h: New function filevercmp comparing version strings.
24977         * lib/filevercmp.c: Implementation of filevercmp function.
24978         * modules/filevercmp: Module metadata.
24979         * tests/test-filevercmp.c: Unit test for new module.
24980         * modules/filevercmp-tests: Unit test metadata.
24981         * MODULES.html.sh: Add filevercmp module.
24982
24983 2008-10-03  Bruno Haible  <bruno@clisp.org>
24984
24985         * lib/c-ctype.h: Add comment.
24986         Reported by Jim Meyering.
24987
24988 2008-10-02  Bruno Haible  <bruno@clisp.org>
24989
24990         * modules/posix_spawn-internal (Depends-on): Add 'open'.
24991
24992 2008-10-02  Paolo Bonzini  <bonzini@gnu.org>
24993
24994         * build-aux/bootstrap: Allow renaming bootstrap, and change the
24995         name of bootstrap.conf accordingly.
24996
24997 2008-10-02  Paolo Bonzini  <bonzini@gnu.org>
24998
24999         * build-aux/bootstrap: Install git-merge-changelog configuration
25000         items into .gitconfig if needed.
25001
25002 2008-10-02  Paolo Bonzini  <bonzini@gnu.org>
25003
25004         * build-aux/bootstrap: Recognize `gnulib' being a submodule in a
25005         git repository, and initialize/update it accordingly.
25006
25007 2008-10-02  Richard W.M. Jones  <rjones@redhat.com>
25008
25009         * modules/fsync-tests: New file.
25010         * tests/test-fsync.c: New file.
25011
25012         New module 'fsync'.
25013         * lib/fsync.c: New file.
25014         * m4/fsync.m4: New file.
25015         * modules/fsync: New file.
25016         * lib/unistd.in.h (fsync): New declaration.
25017         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Define and AC_SUBST both
25018         GNULIB_FSYNC and HAVE_FSYNC.
25019         * modules/unistd: Substitute GNULIB_FSYNC and HAVE_FSYNC.
25020         * MODULES.html.sh (posix_functions): Add fsync.
25021         * doc/posix-functions/fsync.texi: Mention the new module.
25022
25023 2008-10-02  Jim Meyering  <meyering@redhat.com>
25024
25025         fts.c: sync with similar code from coreutils' remove.c
25026         * lib/fts.c (dirent_inode_sort_may_be_useful): Merge from coreutils.
25027         Guard also with "#if defined __linux__", since for now at least,
25028         this code is Linux-kernel-specific.
25029
25030 2008-10-02  Jim Meyering  <meyering@redhat.com>
25031
25032         fts: bug fixes
25033         * lib/fts.c: Remove unnecessary "defined" in cpp directive.
25034         Include <sys/vfs.h>, not <sys/statfs.h>.
25035
25036         * m4/fts.m4 (gl_FUNC_FTS_CORE): Fix typo s/vfs/vfs.h/.
25037         Include <sys/vfs.h>, not <sys/statfs.h>.
25038
25039 2008-10-01  Bruno Haible  <bruno@clisp.org>
25040
25041         Avoid the broken posix_spawn function on AIX 5.3 and 6.1.
25042         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_WORKS): New macro.
25043         (gl_POSIX_SPAWN_BODY): Invoke it. Set REPLACE_POSIX_SPAWN if needed.
25044         * doc/posix-functions/posix_spawn.texi: Mention the AIX bugs.
25045         * doc/posix-functions/posix_spawnp.texi: Likewise.
25046         * m4/execute.m4 (gl_EXECUTE): Invoke gl_POSIX_SPAWN_WORKS, to check
25047         whether posix_spawn actually works.
25048         * m4/pipe.m4 (gl_PIPE): Likewise.
25049         * modules/execute (Files): Add m4/posix_spawn.m4.
25050         * modules/pipe (Files): Add m4/posix_spawn.m4.
25051         Reported and analyzed by Rainer Tammer <tammer@tammer.net>.
25052
25053 2008-10-01  Jim Meyering  <meyering@redhat.com>
25054
25055         remove trailing spaces
25056         * NEWS: Likewise.
25057         * lib/poll.c (poll): Likewise.
25058         * lib/sys_socket.in.h (SHUT_RDWR): Likewise.
25059         * lib/winsock.c (rpl_close): Likewise.
25060         * m4/memcmp.m4 (gl_FUNC_MEMCMP): Likewise.
25061         * modules/yield: Likewise.
25062         * tests/test-poll.c (connect_to_socket, poll1): Likewise.
25063         * tests/test-sys_select.c (connect_to_socket): Likewise.
25064
25065         fts.c: adjust a new interface to be more generally useful
25066         * lib/fts.c (dirent_inode_sort_may_be_useful): Take an FD parameter.
25067         (fts_build): Adjust caller.
25068
25069 2008-09-30  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
25070
25071         * modules/cond-tests: New file.
25072         * tests/test-cond.c: New file.
25073
25074 2008-09-30  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
25075             Bruno Haible  <bruno@clisp.org>
25076
25077         * modules/cond (Dependencies): Add errno, time.
25078         * lib/glthread/cond.h: Include <time.h>.
25079         (gl_cond_define, gl_cond_define_initialized): Use the same definition
25080         across platforms.
25081
25082 2008-09-30  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
25083             Bruno Haible  <bruno@clisp.org>
25084
25085         * m4/thread.m4 (gl_THREAD): Fix detection of pthread_atfork function.
25086
25087 2008-09-30  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
25088             Bruno Haible  <bruno@clisp.org>
25089
25090         * modules/tls-tests (Depends-on): Add thread, yield.
25091         (configure.ac): Remove all checks.
25092         (test_tls_LDADD): Use YIELD_LIB instead of LIBSCHED.
25093         * tests/test-tls.c (gl_thread_t, gl_thread_join, gl_thread_yield,
25094         gl_thread_self): Remove definitions. Include glthread/thread.h and
25095         glthread/yield.h instead.
25096         (test_tls): Pass an additional NULL argument to gl_thread_join.
25097
25098 2008-09-30  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
25099             Bruno Haible  <bruno@clisp.org>
25100
25101         * modules/lock-tests (Depends-on): Add thread, yield.
25102         (configure.ac): Remove all checks.
25103         (test_lock_LDADD): Use YIELD_LIB instead of LIBSCHED.
25104         * tests/test-lock.c (gl_thread_t, gl_thread_join, gl_thread_yield,
25105         gl_thread_self): Remove definitions. Include glthread/thread.h and
25106         glthread/yield.h instead.
25107         (test_lock, test_rwlock, test_recursive_lock, test_once): Pass an
25108         additional NULL argument to gl_thread_join.
25109
25110 2008-09-30  Bruno Haible  <bruno@clisp.org>
25111
25112         Fix the Win32 implementation of the 'thread' module.
25113         * lib/glthread/thread.h [USE_WIN32_THREADS] (gl_thread_t): Change to a
25114         pointer type.
25115         (gl_thread_self): Invoke gl_thread_self_func.
25116         (gl_thread_self_func): New declaration.
25117         * lib/glthread/thread.c [USE_WIN32_THREADS] (self_key): New variable.
25118         (do_init_self_key, init_self_key): New functions.
25119         (struct gl_thread_struct): Renamed from 'struct thread_extra'.
25120         Remove some fields.
25121         (running_threads, running_lock): Remove variables.
25122         (get_current_thread_handle): New function.
25123         (gl_thread_self_func, wrapper_func, glthread_create_func,
25124         glthread_join_func, gl_thread_exit_func): Largely rewritten and
25125         simplified.
25126
25127 2008-09-30  Bruno Haible  <bruno@clisp.org>
25128
25129         * lib/winsock-select.c (win32_poll_handle): Add shortcut for regular
25130         files.
25131
25132 2008-09-30  Jim Meyering  <meyering@redhat.com>
25133
25134         fts.m4: correct the test for statfs.f_type
25135         * m4/fts.m4 (gl_FUNC_FTS_CORE): Include <sys/statfs.h>
25136         when checking for statfs.f_type.
25137
25138 2008-09-15  Simon Josefsson  <simon@josefsson.org>
25139
25140         tests: avoid some compiler warnings
25141         * tests/test-memchr.c (main): Pass NULL indirectly.
25142         * tests/test-getdate.c (main): Remove unused variable 'ret'.
25143
25144 2008-09-29  OndÅ™ej Vašík  <ovasik@redhat.com>
25145
25146         getdate.y: disallow countable dayshifts like "4 yesterday ago"
25147         * lib/getdate.y (relative_time_table) [tDAY_SHIFT]: New type for
25148         exactly specified dayshifts.
25149         (dayshift): New rule.
25150         (rel): Add dayshift.
25151         (relative_time_table) [tomorrow, yesterday, today, now]:
25152         Use tDAY_SHIFT in place of tDAY_UNIT.
25153         * tests/test-getdate.c: Add tests for now-disallowed countable
25154         dayshifts, e.g., "4 yesterday ago".
25155
25156 2008-09-29  Bruno Haible  <bruno@clisp.org>
25157
25158         * tests/test-posix_spawn1.c: Renamed from tests/test-posix_spawn.c.
25159         * tests/test-posix_spawn1.in.sh: Renamed from
25160         tests/test-posix_spawn.in.sh.
25161         * tests/test-posix_spawn2.c: New file.
25162         * tests/test-posix_spawn2.in.sh: New file.
25163         * modules/posix_spawnp-tests (Files): Update.
25164         (Makefile.am): Update. Add test-posix_spawn2 to the tests.
25165
25166 2008-09-29  Bruno Haible  <bruno@clisp.org>
25167
25168         Propagate effects of putenv/setenv/unsetenv to child processes.
25169         * lib/execute.c (execute): Use spawnvpe instead of spawnvp.
25170         * lib/pipe.c (create_pipe): Likewise.
25171
25172 2008-09-29  Bruno Haible  <bruno@clisp.org>
25173
25174         Enable use of shell scripts as executables in mingw.
25175         * lib/execute.c (execute): When spawnv fails with error ENOEXEC,
25176         run the program as a shell script.
25177         * lib/pipe.c (create_pipe): Likewise.
25178         * lib/w32spawn.h (prepare_spawn): Add a hidden element in front of the
25179         resulting array.
25180
25181 2008-09-29  Eric Blake  <ebb9@byu.net>
25182
25183         * m4/arpa_inet_h.m4 (gl_REPLACE_ARPA_INET_H): Fix typo.
25184
25185 2008-08-24  Paolo Bonzini  <bonzini@gnu.org>
25186
25187         * doc/posix-functions/accept.texi: Update mingw problems.
25188         * doc/posix-functions/bind.texi: Update mingw problems.
25189         * doc/posix-functions/close.texi: Update mingw problems.
25190         * doc/posix-functions/connect.texi: Update mingw problems.
25191         * doc/posix-functions/getpeername.texi: Update mingw problems.
25192         * doc/posix-functions/getsockname.texi: Update mingw problems.
25193         * doc/posix-functions/getsockopt.texi: Update mingw problems.
25194         * doc/posix-functions/ioctl.texi: Update mingw problems.
25195         * doc/posix-functions/listen.texi: Update mingw problems.
25196         * doc/posix-functions/recv.texi: Update mingw problems.
25197         * doc/posix-functions/recvfrom.texi: Update mingw problems.
25198         * doc/posix-functions/select.texi: Update mingw problems.
25199         * doc/posix-functions/send.texi: Update mingw problems.
25200         * doc/posix-functions/sendto.texi: Update mingw problems.
25201         * doc/posix-functions/setsockopt.texi: Update mingw problems.
25202         * doc/posix-functions/socket.texi: Update mingw problems.
25203
25204 2008-09-29  Paolo Bonzini  <bonzini@gnu.org>
25205             Bruno Haible  <bruno@clisp.org>
25206
25207         * lib/sys_select.in.h: Include sys/time.h.
25208         * m4/sys_select.h.m4: Test that struct timeval is fully defined.
25209         * modules/sys_select: Depend on sys_time.
25210         * tests/test-sys_select.c: Test that sys/select.h defines struct
25211         timeval fully.
25212
25213 2008-09-29  Bruno Haible  <bruno@clisp.org>
25214
25215         * lib/sys_socket.in.h: Wrap the definitions in 'extern "C"'.
25216         * lib/sys_select.in.h: Likewise.
25217
25218 2008-09-29  Bruno Haible  <bruno@clisp.org>
25219
25220         * lib/winsock.c (rpl_close, rpl_socket): Remove unused variables.
25221
25222 2008-09-29  Bruno Haible  <bruno@clisp.org>
25223
25224         * m4/sockets.m4 (gl_SOCKETS): Check also for the need to use -lsocket.
25225         Set LIBSOCKET instead of augmenting LIBS.
25226         * modules/sockets (Link): New section.
25227         * modules/sockets-tests (test_sockets_LDADD): New variable.
25228         * modules/sys_select-tests (test_sys_select_LDADD): New variable.
25229         * modules/poll-tests (test_poll_LDADD): New variable.
25230         * NEWS: Document the change.
25231
25232 2008-09-29  Bruno Haible  <bruno@clisp.org>
25233
25234         * m4/arpa_inet_h.m4 (gl_REPLACE_ARPA_INET_H): New macro.
25235         * m4/inet_ntop.m4 (gl_INET_NTOP): Invoke it instead of assigning
25236         ARPA_INET_H directly.
25237         * m4/inet_pton.m4 (gl_INET_PTON): Likewise.
25238
25239 2008-09-28  Bruno Haible  <bruno@clisp.org>
25240
25241         * m4/sys_socket_h.m4 (gl_PREREQ_SYS_H_WINSOCK2): New macro, extracted
25242         from gl_HEADER_SYS_SOCKET.
25243         (gl_HEADER_SYS_SOCKET): Invoke it.
25244         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
25245
25246 2008-09-28  Bruno Haible  <bruno@clisp.org>
25247
25248         * doc/posix-headers/sys_select.texi: Mention 'struct timeval' problem.
25249         * tests/test-sys_select.c: Include <sys/time.h>, for struct timeval.
25250         Needed on OSF/1 4.0.
25251
25252 2008-09-28  Bruno Haible  <bruno@clisp.org>
25253
25254         Override open more carefully.
25255         * lib/open.c (orig_open): New function.
25256         (rpl_open): Use orig_open instead of open.
25257         * lib/fcntl.in.h: Add special invocation convention.
25258         * m4/open.m4 (gl_PREREQ_OPEN): New macro.
25259         (gl_FUNC_OPEN): Invoke it.
25260
25261         Override freopen more carefully.
25262         * lib/freopen.c (orig_freopen): New function.
25263         (rpl_freopen): Use orig_freopen instead of freopen.
25264         * m4/freopen.m4 (gl_PREREQ_FREOPEN): New macro.
25265         (gl_FUNC_FREOPEN): Invoke it.
25266
25267         Override fopen more carefully.
25268         * lib/fopen.c (orig_fopen): New function.
25269         (rpl_fopen): Use orig_fopen instead of fopen.
25270         * m4/fopen.m4 (gl_PREREQ_FOPEN): New macro.
25271         (gl_FUNC_FOPEN): Invoke it.
25272         Needed on AIX. Reported by Rainer Tammer <tammer@tammer.net>.
25273
25274 2008-09-28  Bruno Haible  <bruno@clisp.org>
25275
25276         * lib/pipe.h (create_pipe_out, create_pipe_bidi): Add comment about
25277         SIGPIPE.
25278
25279 2008-09-28  Bruno Haible  <bruno@clisp.org>
25280
25281         * tests/test-sigaction.c (handler, main): Disable the check whether
25282         SA_RESETHAND has reverted the installed handler to SIG_DFL. Needed on
25283         glibc systems with LinuxThreads.
25284
25285 2008-09-28  Bruno Haible  <bruno@clisp.org>
25286
25287         * doc/posix-functions/freopen.texi: Mention the trailing slash problem.
25288
25289         * lib/stdio.in.h (fopen, freopen): Undefine before redefining. Needed
25290         with AIX xlc.
25291         * lib/fcntl.in.h (open): Likewise.
25292         Reported by Rainer Tammer <tammer@tammer.net>.
25293
25294 2008-09-28  Bruno Haible  <bruno@clisp.org>
25295
25296         * modules/posix_spawnp-tests: New file.
25297         * tests/test-posix_spawn.c: New file.
25298         * tests/test-posix_spawn.in.sh: New file.
25299
25300         New module 'posix_spawnp'.
25301         * modules/posix_spawnp: New file.
25302         * lib/spawnp.c: New file, from GNU libc with modifications.
25303         * doc/posix-functions/posix_spawnp.texi: Mention the new module.
25304
25305         New module 'posix_spawn'.
25306         * modules/posix_spawn: New file.
25307         * lib/spawn.c: New file, from GNU libc with modifications.
25308         * doc/posix-functions/posix_spawn.texi: Mention the new module.
25309
25310         New module 'posix_spawnattr_destroy'.
25311         * modules/posix_spawnattr_destroy: New file.
25312         * lib/spawnattr_destroy.c: New file, from GNU libc with modifications.
25313         * doc/posix-functions/posix_spawnattr_destroy.texi: Mention the new
25314         module.
25315
25316         New module 'posix_spawnattr_setsigmask'.
25317         * modules/posix_spawnattr_setsigmask: New file.
25318         * lib/spawnattr_setsigmask.c: New file, from GNU libc with
25319         modifications.
25320         * doc/posix-functions/posix_spawnattr_setsigmask.texi: Mention the
25321         new module.
25322
25323         New module 'posix_spawnattr_getsigmask'.
25324         * modules/posix_spawnattr_getsigmask: New file.
25325         * lib/spawnattr_getsigmask.c: New file, from GNU libc with
25326         modifications.
25327         * doc/posix-functions/posix_spawnattr_getsigmask.texi: Mention the
25328         new module.
25329
25330         New module 'posix_spawnattr_setsigdefault'.
25331         * modules/posix_spawnattr_setsigdefault: New file.
25332         * lib/spawnattr_setdefault.c: New file, from GNU libc with
25333         modifications.
25334         * doc/posix-functions/posix_spawnattr_setsigdefault.texi: Mention the
25335         new module.
25336
25337         New module 'posix_spawnattr_getsigdefault'.
25338         * modules/posix_spawnattr_getsigdefault: New file.
25339         * lib/spawnattr_getdefault.c: New file, from GNU libc with
25340         modifications.
25341         * doc/posix-functions/posix_spawnattr_getsigdefault.texi: Mention the
25342         new module.
25343
25344         New module 'posix_spawnattr_setschedpolicy'.
25345         * modules/posix_spawnattr_setschedpolicy: New file.
25346         * lib/spawnattr_setschedpolicy.c: New file, from GNU libc with
25347         modifications.
25348         * doc/posix-functions/posix_spawnattr_setschedpolicy.texi: Mention the
25349         new module.
25350
25351         New module 'posix_spawnattr_getschedpolicy'.
25352         * modules/posix_spawnattr_getschedpolicy: New file.
25353         * lib/spawnattr_getschedpolicy.c: New file, from GNU libc with
25354         modifications.
25355         * doc/posix-functions/posix_spawnattr_getschedpolicy.texi: Mention the
25356         new module.
25357
25358         New module 'posix_spawnattr_setschedparam'.
25359         * modules/posix_spawnattr_setschedparam: New file.
25360         * lib/spawnattr_setschedparam.c: New file, from GNU libc with
25361         modifications.
25362         * doc/posix-functions/posix_spawnattr_setschedparam.texi: Mention the
25363         new module.
25364
25365         New module 'posix_spawnattr_getschedparam'.
25366         * modules/posix_spawnattr_getschedparam: New file.
25367         * lib/spawnattr_getschedparam.c: New file, from GNU libc with
25368         modifications.
25369         * doc/posix-functions/posix_spawnattr_getschedparam.texi: Mention the
25370         new module.
25371
25372         New module 'posix_spawnattr_setpgroup'.
25373         * modules/posix_spawnattr_setpgroup: New file.
25374         * lib/spawnattr_setpgroup.c: New file, from GNU libc with
25375         modifications.
25376         * doc/posix-functions/posix_spawnattr_setpgroup.texi: Mention the new
25377         module.
25378
25379         New module 'posix_spawnattr_getpgroup'.
25380         * modules/posix_spawnattr_getpgroup: New file.
25381         * lib/spawnattr_getpgroup.c: New file, from GNU libc with
25382         modifications.
25383         * doc/posix-functions/posix_spawnattr_getpgroup.texi: Mention the new
25384         module.
25385
25386         New module 'posix_spawnattr_setflags'.
25387         * modules/posix_spawnattr_setflags: New file.
25388         * lib/spawnattr_setflags.c: New file, from GNU libc with modifications.
25389         * doc/posix-functions/posix_spawnattr_setflags.texi: Mention the new
25390         module.
25391
25392         New module 'posix_spawnattr_getflags'.
25393         * modules/posix_spawnattr_getflags: New file.
25394         * lib/spawnattr_getflags.c: New file, from GNU libc with modifications.
25395         * doc/posix-functions/posix_spawnattr_getflags.texi: Mention the new
25396         module.
25397
25398         New module 'posix_spawnattr_init'.
25399         * modules/posix_spawnattr_init: New file.
25400         * lib/spawnattr_init.c: New file, from GNU libc with modifications.
25401         * doc/posix-functions/posix_spawnattr_init.texi: Mention the new
25402         module.
25403
25404         New module 'posix_spawn_file_actions_destroy'.
25405         * modules/posix_spawn_file_actions_destroy: New file.
25406         * lib/spawn_faction_destroy.c: New file, from GNU libc with
25407         modifications.
25408         * doc/posix-functions/posix_spawn_file_actions_destroy.texi: Mention
25409         the new module.
25410
25411         New module 'posix_spawn_file_actions_addopen'.
25412         * modules/posix_spawn_file_actions_addopen: New file.
25413         * lib/spawn_faction_addopen.c: New file, from GNU libc with
25414         modifications.
25415         * doc/posix-functions/posix_spawn_file_actions_addopen.texi: Mention
25416         the new module.
25417
25418         New module 'posix_spawn_file_actions_adddup2'.
25419         * modules/posix_spawn_file_actions_adddup2: New file.
25420         * lib/spawn_faction_adddup2.c: New file, from GNU libc with
25421         modifications.
25422         * doc/posix-functions/posix_spawn_file_actions_adddup2.texi: Mention
25423         the new module.
25424
25425         New module 'posix_spawn_file_actions_addclose'.
25426         * modules/posix_spawn_file_actions_addclose: New file.
25427         * lib/spawn_faction_addclose.c: New file, from GNU libc with
25428         modifications.
25429         * doc/posix-functions/posix_spawn_file_actions_addclose.texi: Mention
25430         the new module.
25431
25432         New module 'posix_spawn_file_actions_init'.
25433         * modules/posix_spawn_file_actions_init: New file.
25434         * lib/spawn_faction_init.c: New file, from GNU libc with modifications.
25435         * doc/posix-functions/posix_spawn_file_actions_init.texi: Mention the
25436         new module.
25437
25438         New module 'posix_spawn-internal'.
25439         * modules/posix_spawn-internal: New file.
25440         * lib/spawn_int.h: New file, from GNU libc with modifications.
25441         * lib/spawni.c: New file, from GNU libc with modifications.
25442         * m4/posix_spawn.m4: New file.
25443
25444         New module 'spawn'.
25445         * modules/spawn: New file.
25446         * lib/spawn.in.h: New file, from GNU libc with modifications.
25447         * m4/spawn_h.m4: New file.
25448         * doc/posix-headers/spawn.texi: Mention the new module.
25449
25450 2008-09-28  Bruno Haible  <bruno@clisp.org>
25451
25452         * modules/sched-tests: New file.
25453         * tests/test-sched.c: New file.
25454
25455         New module 'sched'.
25456         * modules/sched: New file.
25457         * lib/sched.in.h: New file.
25458         * m4/sched_h.m4: New file.
25459         * doc/posix-headers/sched.texi: Mention the new module.
25460
25461 2008-09-27  Eric Blake  <ebb9@byu.net>
25462
25463         Fix previous patch, and tweak references to $0.
25464         * posix-modules: Call func_gnulib_dir before using $gnulib_dir.
25465         (func_version, func_gnulib_dir): Don't call this program
25466         gnulib-tool.
25467         (func_gnulib_dir, func_tmpdir, func_fatal_error): Avoid shell bugs
25468         with using $0 in function.
25469         * gnulib-tool (func_gnulib_dir, func_tmpdir): Likewise.
25470         (func_fatal_error): Reuse the name the user invoked us with.
25471
25472 2008-09-27  Bruno Haible  <bruno@clisp.org>
25473
25474         * m4/iconv_h.m4 (gl_REPLACE_ICONV_H): New macro.
25475         (gl_ICONV_H_DEFAULTS): Initialize ICONV_H here...
25476         (gl_ICONV_H): Not here.
25477         * m4/iconv_open.m4 (gl_REPLACE_ICONV_OPEN): Invoke gl_REPLACE_ICONV_H
25478         instead of assigning ICONV_H directly.
25479
25480         * m4/wchar.m4 (gl_REPLACE_WCHAR_H): New macro.
25481         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Invoke it instead of assigning
25482         WCHAR_H directly.
25483
25484 2008-09-27  Bruno Haible  <bruno@clisp.org>
25485
25486         * lib/arpa_inet.in.h: Include the GL_LINK_WARNING anchor.
25487         * modules/arpa_inet (Depends-on): Add link-warning.
25488         (Makefile.am): Insert the definition of GL_LINK-WARNING.
25489         * modules/unistd (Makefile.am): Likewise.
25490
25491 2008-09-26  Bruno Haible  <bruno@clisp.org>
25492
25493         * posix-modules (cvsdatestamp, last_checkin_date, version): Remove
25494         variables.
25495         (func_version): Essentially copied from gnulib-tool.
25496         (func_exit, func_gnulib_dir, func_tmpdir, func_fatal_error,
25497         func_readlink): Copied from gnulib-tool.
25498
25499 2008-09-26  Bruno Haible  <bruno@clisp.org>
25500
25501         * gnulib-tool (func_version): Change directory to $gnulib_dir before
25502         invoking git-version-gen.
25503
25504 2008-09-26  Bruno Haible  <bruno@clisp.org>
25505
25506         * posix-modules: Update to directory names changed on 2008-01-19.
25507         Remove commas in output before splitting into words. No more need to
25508         avoid 'ftruncate' since 2007-02-19.
25509
25510 2008-09-26  Bruno Haible  <bruno@clisp.org>
25511
25512         * doc/posix-headers/errno.texi: Remove mention of module 'EOVERFLOW'.
25513
25514 2008-09-26  Bruno Haible  <bruno@clisp.org>
25515
25516         * lib/fwriteerror.c (do_fwriteerror): Ignore error EPIPE.
25517         * modules/fwriteerror (Depends-on): Add errno.
25518
25519 2008-09-26  Bruno Haible  <bruno@clisp.org>
25520
25521         * tests/test-vc-list-files-git.sh: Explain reason for skipping test.
25522         * tests/test-vc-list-files-cvs.sh: Likewise.
25523
25524 2008-09-26  Bruno Haible  <bruno@clisp.org>
25525
25526         * doc/posix-headers/sys_resource.texi: Reorder items.
25527
25528 2008-09-26  Jim Meyering  <meyering@redhat.com>
25529
25530         fts: tweak inode comparison function
25531         * lib/fts.c (fts_compare_ino): Sort on increasing, not decreasing
25532         inode numbers, as documented.
25533
25534         fts: sort dirent entries on inode number before traversing
25535         This avoids a quadratic, seek-related performance penalty when
25536         operating on a directory containing many entries (measurable at 10k;
25537         3.5 hours at 2 million entries with a cold cache) on certain types
25538         of file systems, including ext3 and ext4, but not tmpfs.
25539         * lib/fts.c (DT_MUST_BE, NOT_AN_INODE_NUMBER, D_INO): Define.
25540         (FTS_INODE_SORT_DIR_ENTRIES_THRESHOLD): Define if not defined.
25541         (S_MAGIC_TMPFS, S_MAGIC_NFS): Define.
25542         (fs_handles_readdir_ordered_dirents_efficiently): New function.
25543         (dirent_inode_sort_may_be_useful, fts_compare_ino): Likewise.
25544         (fts_build): Set the stat.st_ino member from D_INO.
25545         If it is likely to be useful, sort dirent entries on inode number.
25546
25547         * m4/fts.m4 (gl_FUNC_FTS_CORE): Check for fstatfs, sys/vfs.h,
25548         and the struct statfs.f_type member.
25549         * modules/fts (Depends-on): Add d-ino.
25550
25551 2008-09-26  Bruno Haible  <bruno@clisp.org>
25552
25553         * modules/sigpipe-die (Depends-on): Add sigpipe.
25554
25555         * lib/stdio.in.h (fprintf, vfprintf, printf, vprintf, fputc, putc,
25556         putchar, fputs, puts, fwrite): Replace when REPLACE_STDIO_WRITE_FUNCS
25557         and GNULIB_STDIO_H_SIGPIPE are set.
25558         * lib/stdio-write.c: New file.
25559         * m4/stdio_h.m4 (gl_STDIO_H): Set GNULIB_FPRINTF, GNULIB_PRINTF,
25560         GNULIB_VFPRINTF, GNULIB_VPRINTF, GNULIB_FPUTC, GNULIB_PUTC,
25561         GNULIB_PUTCHAR, GNULIB_FPUTS, GNULIB_PUTS, GNULIB_FWRITE,
25562         REPLACE_STDIO_WRITE_FUNCS.
25563         (gl_STDIO_H_DEFAULTS): Initialize GNULIB_FPRINTF, GNULIB_PRINTF,
25564         GNULIB_VFPRINTF, GNULIB_VPRINTF, GNULIB_FPUTC, GNULIB_PUTC,
25565         GNULIB_PUTCHAR, GNULIB_FPUTS, GNULIB_PUTS, GNULIB_FWRITE,
25566         GNULIB_STDIO_H_SIGPIPE, REPLACE_STDIO_WRITE_FUNCS.
25567         * modules/stdio (Files): Add lib/stdio-write.c.
25568         (Makefile.am): Substitute GNULIB_FPRINTF, GNULIB_PRINTF,
25569         GNULIB_VFPRINTF, GNULIB_VPRINTF, GNULIB_FPUTC, GNULIB_PUTC,
25570         GNULIB_PUTCHAR, GNULIB_FPUTS, GNULIB_PUTS, GNULIB_FWRITE,
25571         GNULIB_STDIO_H_SIGPIPE, REPLACE_STDIO_WRITE_FUNCS.
25572         * m4/fprintf-posix.m4 (gl_REPLACE_FPRINTF): Define
25573         REPLACE_FPRINTF_POSIX.
25574         * m4/printf-posix-rpl.m4 (gl_REPLACE_PRINTF): Define
25575         REPLACE_PRINTF_POSIX.
25576         * m4/vfprintf-posix.m4 (gl_REPLACE_VFPRINTF): Define
25577         REPLACE_VFPRINTF_POSIX.
25578         * m4/vprintf-posix.m4 (gl_REPLACE_VPRINTF): Define
25579         REPLACE_VPRINTF_POSIX.
25580         * doc/posix-functions/fprintf.texi: Mention the sigpipe module and the
25581         SIGPIPE issue.
25582         * doc/posix-functions/fputc.texi: Likewise.
25583         * doc/posix-functions/fputs.texi: Likewise.
25584         * doc/posix-functions/fwrite.texi: Likewise.
25585         * doc/posix-functions/printf.texi: Likewise.
25586         * doc/posix-functions/putc.texi: Likewise.
25587         * doc/posix-functions/putchar.texi: Likewise.
25588         * doc/posix-functions/puts.texi: Likewise.
25589         * doc/posix-functions/vfprintf.texi: Likewise.
25590         * doc/posix-functions/vprintf.texi: Likewise.
25591
25592         * modules/safe-write (Depends-on): Add write.
25593
25594         * modules/sigpipe-tests: New file.
25595         * tests/test-sigpipe.c: New file.
25596         * tests/test-sigpipe.sh: New file.
25597
25598         * modules/write: New file.
25599         * lib/unistd.in.h: Include <sys/types.h>.
25600         (write): New declaration.
25601         * lib/write.c: New file.
25602         * m4/write.m4: New file.
25603         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
25604         GNULIB_UNISTD_H_SIGPIPE, GNULIB_WRITE, REPLACE_WRITE.
25605         * modules/unistd (Makefile.am): Substitute GNULIB_UNISTD_H_SIGPIPE,
25606         GNULIB_WRITE, REPLACE_WRITE.
25607         * doc/posix-functions/write.texi: Mention the write, sigpipe modules
25608         and the SIGPIPE issue.
25609
25610         * lib/signal.in.h (SIGPIPE): Define to a replacement value.
25611         (raise): New declaration.
25612         * lib/sigprocmask.c (SIGPIPE_handler): New variable.
25613         (ext_signal): New function.
25614         (rpl_raise): New function.
25615         * m4/signal_h.m4 (gl_SIGNAL_H_DEFAULTS): Initialize
25616         GNULIB_SIGNAL_H_SIGPIPE.
25617         * modules/signal (Makefile.am): Substitute GNULIB_SIGNAL_H_SIGPIPE.
25618         * doc/posix-headers/signal.texi: Mention the SIGPIPE issue.
25619
25620         * modules/sigpipe: New file.
25621         * m4/sigpipe.m4: New file.
25622
25623 2008-09-25  Derek Price  <derek@ximbiot.com>
25624             Bruno Haible  <bruno@clisp.org>
25625
25626         * gnulib-tool (func_import): Report all license incompatibilities, not
25627         just the first one.
25628
25629 2008-09-25  Bruno Haible  <bruno@clisp.org>
25630
25631         * gnulib-tool (func_import): When computing the edits, consider not
25632         only the Makefile.ams that exist but also those that will be generated.
25633
25634 2008-09-25  Simon Josefsson  <simon@josefsson.org>
25635
25636         * modules/sys_select-tests (Depends-on): Remove sys_select itself,
25637         fixes gnulib-tool --test warning about duplicate dependency.
25638
25639 2008-09-25  Bruno Haible  <bruno@clisp.org>
25640
25641         * gnulib-tool: Don't ask the user to perform edits in the generated
25642         Makefile.ams.
25643         (func_emit_lib_Makefile_am): Emit empty SUBDIRS. Execute edits that
25644         apply to the Makefile.am being generated.
25645         (func_emit_tests_Makefile_am): Execute edits that apply to the
25646         Makefile.am being generated.
25647         (func_import): Setup list of Makefile.am edits before emitting the
25648         Makefile.ams, not at the end.
25649         (func_create_testdir): Update.
25650         Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
25651
25652 2008-09-25  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
25653
25654         * gnulib-tool (func_import): Store the --tests-base option in the
25655         comment in gnulib-cache.m4.
25656
25657 2008-09-24  Paolo Bonzini  <bonzini@gnu.org>
25658
25659         * NEWS: Document increased portability that sys_select now provides.
25660
25661         * lib/sys_select.in.h: Install select wrapper.
25662         * lib/sys_socket.in.h: Use more descriptive name when there is no
25663         select wrapper.
25664         * lib/winsock-select.c: New.
25665         * m4/sys_select_h.m4: Compile lib/winsock-select.c if WinSock is used.
25666         Require gl_HEADER_SYS_SOCKET.
25667         * modules/sys_select: Depend on alloca, add lib/winsock-select.c.
25668         * modules/sys_select-tests: Copy dependencies from modules/poll-tests.
25669         * tests/test-sys_select.c: Add functional tests.
25670
25671 2008-09-24  Eric Blake  <ebb9@byu.net>
25672
25673         open, fopen: close fd leak in last patch
25674         * lib/open.c (rpl_open): Close fd before returning error.
25675         * lib/fopen.c (rpl_fopen): Close fd before returning error.
25676         * doc/posix-functions/open.texi (open): Document that Irix also
25677         has the bug.
25678         * doc/posix-functions/fopen.texi (fopen): Likewise.
25679         Reported by Paolo Bonzini.
25680
25681 2008-09-24  Bruno Haible  <bruno@clisp.org>
25682
25683         Ensure that a filename ending in a slash cannot be used to access a
25684         non-directory.
25685         * lib/open.c (rpl_open): When the filename ends in a slash, use fstat()
25686         to check whether it's really a directory.
25687         * lib/fopen.c: Include fcntl.h, unistd.h.
25688         (rpl_fopen): When the filename ends in a slash, use open(), fstat(),
25689         and fdopen().
25690         * modules/fopen (Depends-on): Add unistd.
25691         * tests/test-open.c (main): Try to open "/dev/null/" as a directory.
25692         * tests/test-fopen.c (main): Likewise.
25693         * doc/posix-functions/open.texi: Mention the HP-UX, Solaris bug.
25694         * doc/posix-functions/fopen.texi: Likewise.
25695         Reported by Eric Blake.
25696
25697 2008-09-23  Eric Blake  <ebb9@byu.net>
25698
25699         c-stack: avoid compiler optimizations when provoking overflow
25700         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Make
25701         recursion harder to optimize, to ensure a stack overflow occurs.
25702         * tests/test-c-stack.c (recurse): Likewise.
25703         Borrowed from libsigsegv.
25704
25705         c-stack: work around Irix sigaltstack bug
25706         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Check
25707         whether sigaltstack uses wrong end of stack_t (copied in part from
25708         libsigsegv).
25709         * lib/c-stack.c (c_stack_action) [!HAVE_LIBSIGSEGV]: Work around
25710         Irix bug, without requiring an over-allocation.
25711         * doc/posix-functions/sigaltstack.texi (sigaltstack): Document the
25712         bug.
25713
25714         fopen: document mingw bug on directories
25715         * doc/posix-functions/fopen.texi (fopen): Mention mingw bug for
25716         not allowing a stream visiting a directory, even though reading
25717         from such a stream is not portable.
25718
25719 2008-09-23  Paolo Bonzini  <bonzini@gnu.org>
25720
25721         * lib/poll.c: Rewrite.
25722         * modules/poll: Depend on alloca.
25723
25724 2008-09-23  Paolo Bonzini  <bonzini@gnu.org>
25725
25726         * lib/sys_socket.in.h: Do not implement rpl_setsockopt here,
25727         instead define prototypes for a full set of wrappers.  Ensure
25728         that Cygwin does not use the compatibility code, which is only
25729         for MinGW.
25730         * lib/winsock.c: New.
25731         * m4/sys_socket_h.m4: Compile lib/winsock.c if WinSock is being used.
25732         * modules/sys_socket: Add lib/winsock.c.
25733
25734         * modules/poll-tests: Add errno and perror.
25735         * tests/test-poll.c: Use ioctl, not ioctlsocket.
25736
25737 2008-09-23  Paolo Bonzini  <bonzini@gnu.org>
25738
25739         * tests/test-poll.c: Downgrade minimum needed Winsock version.
25740
25741 2008-09-23  Bruno Haible  <bruno@clisp.org>
25742
25743         * doc/posix-functions/*: Add info about functions missing on IRIX 5.3.
25744         * doc/glibc-functions/*: Likewise.
25745
25746 2008-09-23  Simon Josefsson  <simon@josefsson.org>
25747
25748         * tests/test-perror.sh (tmpfiles): Cleanup temporary files on
25749         success.
25750
25751 2008-09-22  Eric Blake  <ebb9@byu.net>
25752             Bruno Haible  <bruno@clisp.org>
25753
25754         vasnprintf: fix x86/glibc regression on printf("%La", 0.0L)
25755         * lib/vasnprintf.c (VASNPRINTF): Support 0.0 on platforms that
25756         supply %A but mishandle pseudo-NaN.
25757         Reported by Simon Josefsson.
25758
25759 2008-09-21  Bruno Haible  <bruno@clisp.org>
25760
25761         * tests/test-lock.c (main): Tweak skip message.
25762         * tests/test-tls.c (main): Likewise.
25763
25764 2008-09-21  Bruno Haible  <bruno@clisp.org>
25765
25766         * m4/sigaction.m4 (gl_SIGACTION): Remove unnecessary AC_SUBST. Check
25767         whether 'struct sigaction' has sa_sigaction here...
25768         (gl_PREREQ_SIG_HANDLER_H): ... not here.
25769         (gl_PREREQ_SIGACTION): Remove unnecessary AC_SUBST.
25770
25771 2008-09-21  Bruno Haible  <bruno@clisp.org>
25772
25773         * MODULES.html.sh (Support for obsolete systems lacking ANSI C 89): New
25774         section.
25775         (Support for systems lacking ANSI C 89): Move stdlib, exit, strtol,
25776         strtoul, memchr, memcmp, memcpy, memmove, memset, strcspn, strpbrk to
25777         the new section.
25778         (Support for obsolete systems lacking POSIX:2001): New section.
25779         (String handling <string.h>): Move strdup to the new section.
25780         Suggested by Simon Josefsson and Paolo Bonzini.
25781
25782 2008-09-21  Bruno Haible  <bruno@clisp.org>
25783
25784         * tests/test-vasnprintf-posix.c (test_function): Allow 3-digit
25785         exponents in %e and %g results on 'long double'. Needed for mingw's
25786         improved *printf functions.
25787         * tests/test-vasprintf-posix.c (test_function): Likewise.
25788         * tests/test-snprintf-posix.h (test_function): Likewise.
25789         * tests/test-sprintf-posix.h (test_function): Likewise.
25790         Reported by Eric Blake.
25791
25792 2008-09-21  Bruno Haible  <bruno@clisp.org>
25793
25794         * tests/test-snprintf-posix.h (test_function): Remove useless ASSERTs.
25795         * tests/test-sprintf-posix.h (test_function): Likewise.
25796
25797 2008-09-21  Bruno Haible  <bruno@clisp.org>
25798
25799         * modules/getpass (Depends-on): Add strdup-posix.
25800
25801         New module 'strdup-posix'.
25802         * modules/strdup-posix: New file.
25803         * m4/strdup.m4 (gl_FUNC_STRDUP_POSIX): New macro.
25804         * lib/string.in.h (strdup): Replace if REPLACE_STRDUP is 1.
25805         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
25806         REPLACE_STRDUP.
25807         * modules/string (Makefile.am): Substitute REPLACE_STRDUP.
25808         * doc/posix-functions/strdup.texi: Mention module strdup-posix.
25809         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
25810         strdup-posix.
25811
25812         * modules/strdup (Depends-on): Remove malloc-posix.
25813
25814 2008-09-20  Bruno Haible  <bruno@clisp.org>
25815
25816         * lib/fstrcmp.c: Add data about branch probabilities, from Ralf
25817         Wildenhues.
25818
25819 2008-09-20  Bruno Haible  <bruno@clisp.org>
25820
25821         Ensure that wint_t gets defined on IRIX 5.3.
25822         * lib/wchar.in.h (wint_t): Define if not defined by the system.
25823         * lib/wctype.in.h (wint_t): Likewise.
25824         (__wctype_wint_t): Remove type.
25825         (isw*): Use wint_t instead of __wctype_wint_t.
25826         * m4/wchar.m4 (gl_WCHAR_H): Invoke gt_TYPE_WINT_T and set HAVE_WINT_T.
25827         * modules/wchar (Files): Add m4/wint_t.m4.
25828         (Makefile.am): Substitute HAVE_WINT_T.
25829         * tests/test-wchar.c: Check that wchar_t and wint_t are defined.
25830         * tests/test-wctype.c: Check that wint_t is defined.
25831         * doc/posix-headers/wchar.texi: Mention the IRIX 5 problem.
25832         * doc/posix-headers/wctype.texi: Likewise.
25833         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
25834
25835 2008-09-18  Bruno Haible  <bruno@clisp.org>
25836
25837         * gnulib-tool (func_exit): Update comment.
25838
25839 2008-09-18  Simon Josefsson  <simon@josefsson.org>
25840
25841         * modules/getaddrinfo (Depends-on): Remove strdup, this module
25842         assumes strdup exists and does not depend on strdup to return
25843         ENOMEM on out of memory conditions.
25844
25845 2008-09-18  Bruno Haible  <bruno@clisp.org>
25846
25847         * lib/vasnprintf.c (VASNPRINTF): When printing Â±0.0L in
25848         NEED_PRINTF_INFINITE_LONG_DOUBLE case with 'e' format, always use two
25849         digits for the exponent.
25850
25851 2008-09-18  Jim Meyering  <meyering@redhat.com>
25852             Bruno Haible  <bruno@clisp.org>
25853
25854         * lib/vasnprintf.c (decimal_point_char): Define also if
25855         NEED_PRINTF_INFINITE_LONG_DOUBLE.
25856
25857 2008-09-16  Bruno Haible  <bruno@clisp.org>
25858         and Eric Blake  <ebb9@byu.net>
25859
25860         vasnprintf: support Irix 5.3
25861         * lib/vasnprintf.c (VASNPRINTF): Also handle -0.0L on platforms
25862         that mishandle long double infinity.
25863         Reported by Tom G. Christensen.
25864
25865 2008-09-16  Bruno Haible  <bruno@clisp.org>
25866
25867         * doc/glibc-functions/scandir.texi: Mention the function is missing on
25868         Solaris 9.
25869         * doc/glibc-functions/alphasort.texi: Likewise.
25870         Reported by Michael Haubenwallner <michael.haubenwallner@salomon.at>.
25871
25872 2008-09-16  Jim Meyering  <meyering@redhat.com>
25873
25874         posix-shell.m4: reject opensolaris's "sh (AT&T Research) 1993-12-28 s+"
25875         * m4/posix-shell.m4 (gl_POSIX_SHELL): Reject a shell that lets
25876         a umask modification leak out of a subshell.  Otherwise, the
25877         opensolaris /bin/sh would be accepted and thus cause unwarranted
25878         failures in the coreutils test suite.
25879
25880 2008-09-16  Paolo Bonzini  <bonzini@gnu.org>
25881
25882         * tests/test-poll.c (connect_to_socket): Allow non-blocking connect
25883         to succeed.
25884
25885 2008-09-16  Jim Meyering  <meyering@redhat.com>
25886
25887         avoid spurious test failure when library is built without ACL support
25888         * m4/acl.m4 (USE_ACL): Define as a shell variable, too, for...
25889         * modules/acl-tests (Makefile.am) [TESTS_ENVIRONMENT]: Add USE_ACL.
25890         * tests/test-file-has-acl.sh: Skip if USE_ACL == 0.
25891         * tests/test-copy-acl.sh: Likewise.
25892
25893 2008-09-15  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
25894
25895         * lib/fstrcmp.c (fstrcmp_bounded): Use a second, less quick upper bound
25896         based on character occurrence counts.
25897
25898 2008-09-15  Eric Blake  <ebb9@byu.net>
25899
25900         tests: avoid some compiler warnings
25901         * tests/test-memchr.c (main): Pass NULL indirectly.
25902         * tests/test-closein.c (main): Avoid unused variable.
25903
25904 2008-09-15  Bruno Haible  <bruno@clisp.org>
25905
25906         * m4/errno_h.m4 (gl_HEADER_ERRNO_H_BODY): Test for all the macros that
25907         are missing on OpenBSD 4.0 individually.
25908         Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
25909
25910 2008-09-15  Bruno Haible  <bruno@clisp.org>
25911
25912         * doc/posix-headers/errno.texi: Mention the Cygwin problem.
25913         * doc/posix-functions/strerror.texi: Mention also Cygwin.
25914         * doc/posix-functions/perror.texi: Likewise.
25915         * m4/errno_h.m4 (gl_HEADER_ERRNO_H_BODY): Test also whether ECANCELED
25916         is missing.
25917         Reported by Eric Blake.
25918
25919         * lib/errno.in.h: Use replacement values >= 2000.
25920         Reported by Eric Blake.
25921
25922 2008-09-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
25923
25924         * lib/fstrcmp.c (EXTRA_CONTEXT_FIELDS): Add field 'edit_count_limit'.
25925         (EARLY_ABORT): Return true when the edit_count has grown too beyond the
25926         limit.
25927         (fstrcmp_bounded): Initialize the edit_count_limit. Return 0 when
25928         compareseq was aborted.
25929
25930 2008-09-14  Bruno Haible  <bruno@clisp.org>
25931
25932         * lib/fstrcmp.c (EXTRA_CONTEXT_FIELDS): Combine xvec_edit_count and
25933         yvec_edit_count.
25934         (NOTE_DELETE, NOTE_INSERT): Increment the combined edit count.
25935         (fstrcmp_bounded): Simplify result computation accordingly.
25936
25937 2008-09-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
25938
25939         * lib/fstrcmp.h (fstrcmp_bounded): New declaration.
25940         (fstrcmp): Define in terms of fstrcmp_bounded.
25941         * lib/fstrcmp.c (fstrcmp_bounded): Renamed from fstrcmp. Add
25942         lower_bound argument.
25943         Return quickly if the result is certainly < lower_bound.
25944         * tests/test-fstrcmp.c (check_fstrcmp): Test also fstrcmp_bounded.
25945
25946 2008-09-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
25947
25948         * lib/diffseq.h (EARLY_ABORT): New macro.
25949         (compareseq): Change return type to bool. Return true when EARLY_ABORT
25950         evaluates to true.
25951
25952 2008-09-14  Bruno Haible  <bruno@clisp.org>
25953
25954         * modules/perror-tests: New file.
25955         * tests/test-perror.sh: New file.
25956         * tests/test-perror.c: New file.
25957
25958         New module 'perror'.
25959         * lib/stdio.in.h (perror): New declaration.
25960         * lib/perror.c: New file.
25961         * m4/perror.m4: New file.
25962         * modules/perror: New file.
25963         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add perror.
25964         * doc/posix-functions/perror.texi: Mention the perror module.
25965         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize GNULIB_PERROR,
25966         REPLACE_PERROR.
25967         * modules/stdio (Makefile.am): Substitute GNULIB_PERROR,
25968         REPLACE_PERROR.
25969
25970 2008-09-14  Bruno Haible  <bruno@clisp.org>
25971
25972         * modules/stdio (Makefile.am): Reorder to match the order in
25973         lib/stdio.in.h.
25974         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Likewise.
25975
25976 2008-09-13  Bruno Haible  <bruno@clisp.org>
25977
25978         * lib/sys_socket.in.h (EINPROGRESS, ...): Remove definitions.
25979
25980 2008-09-13  Bruno Haible  <bruno@clisp.org>
25981
25982         Extend strerror to cover the added errno values.
25983         * lib/strerror.c: Include errno.h and winsock2.h if it exists.
25984         (rpl_strerror): Provide error messages for the added errno values and
25985         for the WSA* values.
25986         * m4/strerror.m4 (gl_FUNC_STRERROR): Test REPLACE_STRERROR.
25987         (gl_FUNC_STRERROR_SEPARATE): If errno.h is replaced, always replace
25988         strerror.
25989         (gl_PREREQ_STRERROR): Test whether winsock2.h exists.
25990         * modules/strerror (Depends-on): Add errno.
25991         * doc/posix-functions/strerror.texi: Document the change.
25992         * tests/test-strerror.c (main): Check also the string for ETIMEDOUT
25993         and EOVERFLOW.
25994
25995 2008-09-13  Bruno Haible  <bruno@clisp.org>
25996
25997         * modules/EOVERFLOW: Remove file.
25998         * m4/eoverflow.m4: Remove file.
25999         * modules/EOVERFLOW-tests: Remove file.
26000         * tests/test-EOVERFLOW.c: Remove file.
26001         * modules/fprintf-posix (Depends-on): Replace EOVERFLOW with errno.
26002         * modules/ftell (Depends-on): Likewise.
26003         * modules/getdelim (Depends-on): Likewise.
26004         * modules/getugroups (Depends-on): Likewise.
26005         * modules/poll (Depends-on): Likewise.
26006         * modules/snprintf (Depends-on): Likewise.
26007         * modules/sprintf-posix (Depends-on): Likewise.
26008         * modules/vasnprintf (Depends-on): Likewise.
26009         * modules/vasprintf (Depends-on): Likewise.
26010         * modules/vfprintf-posix (Depends-on): Likewise.
26011         * modules/vsnprintf (Depends-on): Likewise.
26012         * modules/vsprintf-posix (Depends-on): Likewise.
26013         * modules/xvasprintf (Depends-on): Likewise.
26014         * modules/unistdio/u8-vasnprintf (Depends-on): Likewise.
26015         * modules/unistdio/u8-vasprintf (Depends-on): Likewise.
26016         * modules/unistdio/u8-vsnprintf (Depends-on): Likewise.
26017         * modules/unistdio/u8-vsprintf (Depends-on): Likewise.
26018         * modules/unistdio/u8-u8-vasnprintf (Depends-on): Likewise.
26019         * modules/unistdio/u8-u8-vasprintf (Depends-on): Likewise.
26020         * modules/unistdio/u8-u8-vsnprintf (Depends-on): Likewise.
26021         * modules/unistdio/u8-u8-vsprintf (Depends-on): Likewise.
26022         * modules/unistdio/u16-u16-vasnprintf (Depends-on): Likewise.
26023         * modules/unistdio/u16-u16-vasprintf (Depends-on): Likewise.
26024         * modules/unistdio/u16-u16-vsnprintf (Depends-on): Likewise.
26025         * modules/unistdio/u16-u16-vsprintf (Depends-on): Likewise.
26026         * modules/unistdio/u16-vasnprintf (Depends-on): Likewise.
26027         * modules/unistdio/u16-vasprintf (Depends-on): Likewise.
26028         * modules/unistdio/u16-vsnprintf (Depends-on): Likewise.
26029         * modules/unistdio/u16-vsprintf (Depends-on): Likewise.
26030         * modules/unistdio/u32-vasnprintf (Depends-on): Likewise.
26031         * modules/unistdio/u32-vasprintf (Depends-on): Likewise.
26032         * modules/unistdio/u32-vsnprintf (Depends-on): Likewise.
26033         * modules/unistdio/u32-vsprintf (Depends-on): Likewise.
26034         * modules/unistdio/u32-u32-vasnprintf (Depends-on): Likewise.
26035         * modules/unistdio/u32-u32-vasprintf (Depends-on): Likewise.
26036         * modules/unistdio/u32-u32-vsnprintf (Depends-on): Likewise.
26037         * modules/unistdio/u32-u32-vsprintf (Depends-on): Likewise.
26038         * modules/unistdio/ulc-fprintf (Depends-on): Likewise.
26039         * modules/unistdio/ulc-vasnprintf (Depends-on): Likewise.
26040         * modules/unistdio/ulc-vasprintf (Depends-on): Likewise.
26041         * modules/unistdio/ulc-vfprintf (Depends-on): Likewise.
26042         * modules/unistdio/ulc-vsnprintf (Depends-on): Likewise.
26043         * modules/unistdio/ulc-vsprintf (Depends-on): Likewise.
26044         * MODULES.html.sh: Remove EOVERFLOW.
26045         * NEWS: Mention the change.
26046
26047 2008-09-13  Bruno Haible  <bruno@clisp.org>
26048
26049         * modules/errno-tests: New file.
26050         * tests/test-errno.c: New file, incorporating tests/test-EOVERFLOW.c.
26051
26052         * lib/errno.in.h: New file.
26053         * m4/errno_h.m4: New file, borrowing from m4/eoverflow.m4.
26054         * modules/errno: New file.
26055         * doc/posix-headers/errno.texi: Update documentation.
26056         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add errno.
26057
26058 2008-09-13  Bruno Haible  <bruno@clisp.org>
26059
26060         * tests/test-poll.c: Use #if for native Windows, rather than testing
26061         __MSVCRT__.
26062
26063 2008-09-13  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
26064             Bruno Haible  <bruno@clisp.org>
26065
26066         * lib/glob.c: Don't include <pwd.h> on native Windows.
26067         (WINDOWS32): New macro.
26068         (glob) [WINDOW32]: Provide a reasonable replacement for getenv("HOME").
26069
26070 2008-09-13  Bruno Haible  <bruno@clisp.org>
26071
26072         * lib/glthread/cond.h [USE_SOLARIS_THREADS]
26073         (ETIMEDOUT): Remove macro.
26074         (glthread_cond_timedwait_multithreaded): New declaration.
26075         (glthread_cond_timedwait): Use it.
26076         * lib/glthread/cond.c [USE_SOLARIS_THREADS]
26077         (glthread_cond_timedwait_multithreaded): New function.
26078
26079 2008-09-12  Paolo Bonzini  <bonzini@gnu.org>
26080
26081         * modules/poll-tests: Do not check for io.h.
26082         * tests/test-poll.c: Check for __MSVCRT__ instead.
26083
26084 2008-09-12  Paolo Bonzini  <bonzini@gnu.org>
26085
26086         * lib/sys_socket.in.h (EINPROGRESS): Define for Winsock case.
26087         * modules/poll-tests: Add inet_pton, stdbool, sockets.
26088         * tests/test-poll.c: Use them.  Use _pipe on Windows.
26089
26090 2008-09-12  Paolo Bonzini  <bonzini@gnu.org>
26091
26092         * modules/poll-tests: New.
26093         * tests/test-poll.c: New.
26094
26095 2008-09-12  Eric Blake  <ebb9@byu.net>
26096
26097         frexp: test for NetBSD failure on -0.0
26098         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Enhance test, since some, but
26099         not all, bugs from NetBSD 3.0 have been fixed.
26100         * doc/posix-functions/frexp.texi (frexp): Document bug.
26101         Reported by Thomas Klausner.
26102
26103         signbit: work around bug of HP-UX 10.20 cc with -0.0 literal
26104         * m4/signbit.m4 (gl_SIGNBIT_TEST_PROGRAM): Rewrite test to avoid
26105         literal -0.0.
26106         Reported by Jonathan C. Patschke <jp@centtech.com>.
26107
26108 2008-09-11  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
26109
26110         * lib/glthread/cond.h: Use dummy implementation also if
26111         USE_WIN32_THREADS.
26112
26113 2008-09-11  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
26114
26115         * modules/fnmatch-posix (License): Change to LGPLv2+.
26116         * modules/fnmatch-gnu (License): Likewise.
26117
26118 2008-09-11  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
26119
26120         * lib/poll.c (poll): Fix polling unconnected server sockets on WIN32.
26121
26122 2008-09-11  Jim Meyering  <meyering@redhat.com>
26123
26124         * users.txt: Add gtk-vnc.
26125
26126 2008-09-08  Simon Josefsson  <simon@josefsson.org>
26127
26128         * tests/test-bitrotate.c: Test 8/16-bit rotates with 0 and maximum
26129         rotate amounts.
26130
26131         * lib/bitrotate.h: Doc fix, mention that N can be wider than minimally
26132         required for 16-bit and 8-bit rotates.
26133         * lib/bitrotate.h (rotl64, rotr64, rotl32, rotl32, rotl16, rotr16,
26134         rotl8, rotr8): Use UINT64_MAX, UINT32_MAX, UINT16_MAX, and
26135         UINT8_MAX instead of hard-coded constants.
26136         Suggested by Paul Eggert.
26137
26138 2008-09-07  Bruno Haible  <bruno@clisp.org>
26139
26140         * tests/test-striconveh.c (main): Check behaviour when converting from
26141         UTF-7.
26142
26143         Make striconveh work better with stateful encodings.
26144         * lib/striconveh.c (iconv_carefully, iconv_carefully_1): Don't assume
26145         that iconv does not increment the inptr when returning -1/EINVAL.
26146
26147 2008-09-07  Bruno Haible  <bruno@clisp.org>
26148
26149         * build-aux/config.rpath: Update according to libtool-2.2.6.
26150         * build-aux/config.libpath: Likewise.
26151
26152 2008-09-06  Bruno Haible  <bruno@clisp.org>
26153
26154         * lib/freadahead.c (freadahead): Add conditional for SLOW_BUT_NO_HACKS.
26155         * lib/freadptr.c (freadptr): Likewise.
26156         * lib/freadseek.c (freadptrinc): Likewise.
26157         Reported by Simon Josefsson.
26158
26159 2008-09-06  Bruno Haible  <bruno@clisp.org>
26160
26161         * modules/freadptr (License): Change to LGPLv2+.
26162         * modules/freadseek (License): Likewise.
26163         Suggested by Eric Blake.
26164
26165         * modules/memchr2 (License): Change to LGPLv2+.
26166         Approved by Eric Blake.
26167
26168 2008-09-04  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
26169             Bruno Haible  <bruno@clisp.org>
26170
26171         Make gnulib-tool work with native 'sed' on AIX.
26172         * gnulib-tool (sed_noop): New variable.
26173         (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am, func_import,
26174         func_add_or_update, func_create_testdir): Use it to initialize sed
26175         script variables.
26176         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
26177
26178 2008-09-04  Albert Chin  <bug-gnulib@mlists.thewrittenword.com>
26179             Bruno Haible  <bruno@clisp.org>
26180
26181         * m4/include_next.m4 (gl_INCLUDE_NEXT): Add check whether #include_next
26182         also works after #include directives.
26183
26184 2008-09-04  OndÅ™ej Vašík  <ovasik@redhat.com>
26185
26186         getdate.y: reject an out-of-range timezone value
26187         * lib/getdate.y (time_zone_hhmm): Reject any TZ offset that is outside
26188         the range [-24...+24].  When specified with only one or two digits,
26189         * tests/test-getdate.c: Tests for the fix.
26190         * doc/getdate.texi: Document this change.
26191
26192 2008-09-03  Bruno Haible  <bruno@clisp.org>
26193
26194         * doc/glibc-functions/strverscmp.texi: Mention the strverscmp module.
26195
26196 2008-09-02  Simon Josefsson  <simon@josefsson.org>
26197
26198         * lib/bitrotate.h (rotl64, rotr64): Add.  Suggested by Bruce Korb
26199         <bruce.korb@gmail.com> with ideas from Ben Pfaff
26200         <blp@cs.stanford.edu>, Bruno Haible <bruno@clisp.org> and Eric
26201         Blake <ebb9@byu.net>.
26202
26203         * tests/test-bitrotate.c: Add more test vectors.
26204
26205 2008-09-02  Eric Blake  <ebb9@byu.net>
26206
26207         vasnprintf-posix: handle large precision via %.*d
26208         * lib/vasnprintf.c (VASNPRINTF): Don't pass precision to snprintf
26209         when handling it ourselves.
26210         * tests/test-vasnprintf-posix.c (test_function): Add test.
26211         * tests/test-snprintf-posix.h (test_function): Likewise.
26212         * tests/test-sprintf-posix.h (test_function): Likewise.
26213         * tests/test-vasprintf-posix.c (test_function): Likewise.
26214         Reported by Alain Guibert.
26215
26216 2008-09-01  Eric Blake  <ebb9@byu.net>
26217
26218         c-stack: make configure-time check more robust
26219         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Check for
26220         successful sigaction call.
26221         Reported by Tom G. Christensen.
26222
26223 2008-09-01  Bruno Haible  <bruno@clisp.org>
26224
26225         New module 'findprog-lgpl'.
26226         * modules/findprog-lgpl: New file.
26227         * lib/findprog-lgpl.c: New file.
26228         * lib/findprog.c: Compile nothing in findprog.c if findprog-lgpl.c is
26229         also compiled. Consider the possibly defined symbol IN_FINDPROG_LGPL
26230         to decide whether to use strdup or xstrdup, concatenated_filename or
26231         xconcatenated_filename.
26232
26233 2008-09-01  Bruno Haible  <bruno@clisp.org>
26234
26235         Split module 'concat-filename' into 'concat-filename' (LGPL) and
26236         'xconcat-filename' (GPL).
26237         * modules/concat-filename (Depends-on): Add malloc-posix, remove xalloc.
26238         (License): Change to LGPLv2+.
26239         * modules/xconcat-filename: New file.
26240         * lib/concat-filename.h (concatenated_filename): Change specification.
26241         (xconcatenated_filename): New declaration.
26242         * lib/concat-filename.c: Include errno.h, stdlib.h, not xalloc.h.
26243         (concatenated_filename): Use malloc instead of xalloc. Handle out-of-
26244         memory situations.
26245         * lib/xconcat-filename.c: New file.
26246         * NEWS: Mention the change.
26247         * lib/findprog.c: Include concat-filename.h, not filename.h.
26248         (find_in_path): Use xconcatenated_filename instead of
26249         concatenated_filename.
26250         * lib/javacomp.c: Include concat-filename.h, not filename.h.
26251         (is_envjavac_gcj43_usable, is_envjavac_oldgcj_14_14_usable,
26252         is_envjavac_oldgcj_14_13_usable, is_envjavac_nongcj_usable,
26253         is_gcj_present, is_gcj43_usable, is_oldgcj_14_14_usable,
26254         is_oldgcj_14_13_usable, is_javac_usable): Use xconcatenated_filename
26255         instead of concatenated_filename.
26256         * lib/javaexec.c: Include concat-filename.h, not filename.h.
26257         (execute_java_class): Use xconcatenated_filename instead of
26258         concatenated_filename.
26259         * modules/findprog (Depends-on): Add xconcat-filename, remove filename.
26260         * modules/javacomp (Depends-on): Likewise.
26261         * modules/javaexec (Depends-on): Likewise.
26262
26263 2008-09-01  Bruno Haible  <bruno@clisp.org>
26264
26265         Split module 'filename' into 'filename' and 'concat-filename'.
26266         * modules/filename: Keep only lib/filename.h.
26267         (License): Change to LGPLv2+.
26268         * modules/concat-filename: New file, extracted from modules/filename.
26269         * lib/filename.h (concatenated_filename): Remove declaration.
26270         * lib/concat-filename.h: New file, extracted from lib/filename.h.
26271         * lib/concat-filename.c: Include concat-filename.h.
26272         * NEWS: Mention the change.
26273
26274 2008-09-01  Simon Josefsson  <simon@josefsson.org>
26275
26276         * lib/bitrotate.h (rotl8, rotr8): Add.
26277
26278         * modules/bitrotate (configure.ac): Need
26279         AC_REQUIRE([AC_C_INLINE]).
26280         (Description): Mention stdint.h.  Reported by Bruno Haible
26281         <bruno@clisp.org>.
26282
26283         * lib/bitrotate.h (rotr16, rotl16): Fix mask value.  Reported by
26284         Paolo Bonzini <bonzini@gnu.org>.
26285
26286 2008-08-31  Bruno Haible  <bruno@clisp.org>
26287
26288         Assume Solaris specific bi-arch conventions on Solaris systems.
26289         * m4/lib-prefix.m4 (AC_LIB_PREPARE_MULTILIB): On Solaris in 64-bit
26290         mode, set acl_libdirstem to lib/64. Also set acl_libdirstem2.
26291         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): If acl_libdirstem does not
26292         work, try acl_libdirstem2 as fallback. Otherwise treat acl_libdirstem2
26293         like acl_libdirstem.
26294         (AC_LIB_LINKFLAGS_FROM_LIBS): Treat acl_libdirstem2 like
26295         acl_libdirstem.
26296         * NEWS: Mention the change.
26297         Reported by Ben Taylor <bentaylor.solx86@gmail.com>.
26298
26299 2008-08-31  Jim Meyering  <meyering@redhat.com>
26300
26301         * lib/strftime.h: Add comments describing the two added arguments.
26302
26303         remove duplicate #include directives
26304         * lib/chdir-long.c [TEST_CHDIR]: Remove duplicate #include <stdio.h>.
26305         * lib/putenv.c: Remove duplicate #include <stdlib.h>.
26306
26307 2008-08-31  Bruno Haible  <bruno@clisp.org>
26308
26309         New module 'sigpipe-die'.
26310         * modules/sigpipe-die: New file.
26311         * lib/sigpipe-die.h: New file.
26312         * lib/sigpipe-die.c: New file.
26313         * MODULES.html.sh (Signal handling): Add sigpipe-die.
26314
26315 2008-08-31  Bruno Haible  <bruno@clisp.org>
26316
26317         Don't override previously installed signal handlers.
26318         * lib/fatal-signal.c (saved_sigactions): New variable.
26319         (uninstall_handlers): Reset the signal to the saved handler, not
26320         to SIG_DFL (except when ignored).
26321         (install_handlers): Save the previous handlers.
26322
26323 2008-08-30  Bruno Haible  <bruno@clisp.org>
26324
26325         * gnulib-tool (func_reset_sigpipe): New function.
26326         (func_get_automake_snippet, func_modules_transitive_closure,
26327         func_import): Invoke it before a join command that reads from stdin,
26328         to avoid "echo: write error: Broken pipe" error messages on stderr.
26329         Reported by Sam Steingold <sds@gnu.org>.
26330
26331 2008-08-30  Bruno Haible  <bruno@clisp.org>
26332
26333         * m4/fopen.m4 (gl_FUNC_FOPEN): Test against bug with trailing slash.
26334         Code copied from m4/open.m4.
26335         * lib/fopen.c (rpl_fopen): Return NULL if the mode specifies write
26336         access and the filename ends in a slash. Code copied from lib/open.c.
26337         * doc/posix-functions/fopen.texi: Document bug with trailing slash.
26338         * tests/test-fopen.c (main): Check against bug with trailing slash.
26339
26340 2008-08-29  Bruno Haible  <bruno@clisp.org>
26341
26342         Avoid some "gcc -pedantic" warnings.
26343         * m4/include_next.m4 (gl_INCLUDE_NEXT): Set also PRAGMA_SYSTEM_HEADER.
26344         * lib/arpa_inet.in.h: Use PRAGMA_SYSTEM_HEADER.
26345         * lib/dirent.in.h: Likewise.
26346         * lib/fcntl.in.h: Likewise.
26347         * lib/float.in.h: Likewise.
26348         * lib/iconv.in.h: Likewise.
26349         * lib/inttypes.in.h: Likewise.
26350         * lib/locale.in.h: Likewise.
26351         * lib/math.in.h: Likewise.
26352         * lib/netinet_in.in.h: Likewise.
26353         * lib/search.in.h: Likewise.
26354         * lib/signal.in.h: Likewise.
26355         * lib/stdarg.in.h: Likewise.
26356         * lib/stdint.in.h: Likewise.
26357         * lib/stdio.in.h: Likewise.
26358         * lib/stdlib.in.h: Likewise.
26359         * lib/string.in.h: Likewise.
26360         * lib/strings.in.h: Likewise.
26361         * lib/sys_select.in.h: Likewise.
26362         * lib/sys_socket.in.h: Likewise.
26363         * lib/sys_stat.in.h: Likewise.
26364         * lib/sys_time.in.h: Likewise.
26365         * lib/sysexits.in.h: Likewise.
26366         * lib/time.in.h: Likewise.
26367         * lib/unistd.in.h: Likewise.
26368         * lib/wchar.in.h: Likewise.
26369         * lib/wctype.in.h: Likewise.
26370         * modules/arpa_inet (Makefile.am): Also substitute PRAGMA_SYSTEM_HEADER.
26371         * modules/fchdir (Makefile.am): Likewise.
26372         * modules/fcntl (Makefile.am): Likewise.
26373         * modules/float (Makefile.am): Likewise.
26374         * modules/iconv_open (Makefile.am): Likewise.
26375         * modules/inttypes (Makefile.am): Likewise.
26376         * modules/locale (Makefile.am): Likewise.
26377         * modules/math (Makefile.am): Likewise.
26378         * modules/netinet_in (Makefile.am): Likewise.
26379         * modules/search (Makefile.am): Likewise.
26380         * modules/signal (Makefile.am): Likewise.
26381         * modules/stdarg (Makefile.am): Likewise.
26382         * modules/stdint (Makefile.am): Likewise.
26383         * modules/stdio (Makefile.am): Likewise.
26384         * modules/stdlib (Makefile.am): Likewise.
26385         * modules/string (Makefile.am): Likewise.
26386         * modules/strings (Makefile.am): Likewise.
26387         * modules/sys_select (Makefile.am): Likewise.
26388         * modules/sys_socket (Makefile.am): Likewise.
26389         * modules/sys_stat (Makefile.am): Likewise.
26390         * modules/sys_time (Makefile.am): Likewise.
26391         * modules/sysexits (Makefile.am): Likewise.
26392         * modules/time (Makefile.am): Likewise.
26393         * modules/unistd (Makefile.am): Likewise.
26394         * modules/wchar (Makefile.am): Likewise.
26395         * modules/wctype (Makefile.am): Likewise.
26396         Reported by Reuben Thomas <rrt@sc3d.org>.
26397
26398 2008-08-29  Bruno Haible  <bruno@clisp.org>
26399
26400         * m4/include_next.m4 (gl_INCLUDE_NEXT): Don't define HAVE_INCLUDE_NEXT
26401         any more.
26402
26403 2008-08-29  Simon Josefsson  <simon@josefsson.org>
26404
26405         * MODULES.html.sh (Misc): Add bitrotate.
26406
26407         * modules/bitrotate: New file.
26408
26409         * lib/bitrotate.h: New file.
26410
26411         * modules/bitrotate-tests: New file.
26412
26413         * tests/test-bitrotate.c: New file.
26414
26415         * modules/crypto/gc-arctwo, modules/crypto/arctwo: Add dependency
26416         on the bitrotate module.
26417
26418         * lib/arctwo.c: Use new bitrotate module.
26419
26420 2008-08-29  Jim Meyering  <meyering@redhat.com>
26421
26422         bootstrap: merge changes from coreutils
26423         * build-aux/bootstrap (cp_mark_as_generated): Preserve perms
26424         of copied files.  Remove a kludge, now that this is fixed.
26425         * build-aux/bootstrap: Fix unportable expr usage. (by Ralf Wildenhues)
26426         * build-aux/bootstrap: Remove $bt and $bt2 also when not using gettext.
26427         * build-aux/bootstrap: Remove coreutils-specific SUBDIRS-related code.
26428
26429 2008-08-29  Bruno Haible  <bruno@clisp.org>
26430
26431         * MODULES.html.sh: Remove --cvs-urls option.
26432
26433 2008-08-28  Jose E. Marchesi  <jemarch@gnu.org>  (tiny change)
26434
26435         maint.mk: adjust to file name change
26436         * top/maint.mk: s/Makefile.cfg/cfg.mk/.
26437
26438 2008-08-28  Jim Meyering  <meyering@redhat.com>
26439
26440         * modules/getndelim2 (License): Relicense to LGPLv2+.
26441         Approved by Richard Stallman for the version of 1995, and by
26442         Paul Eggert, Bruno Haible, Eric Blake for their contributions.
26443
26444 2008-08-27  Paolo Bonzini  <bonzini@gnu.org>
26445
26446         * lib/getdelim.c (flockfile, funlockfile): Make all of them
26447         dummy if one is not available.  Do not touch them if
26448         USE_UNLOCKED_IO, instead letting unlocked-io.h do that.
26449         (getc_maybe_unlocked): New.
26450         * m4/getdelim.m4 (gl_PREREQ_GETDELIM): Check for getc_unlocked.
26451
26452 2008-08-26  Eric Blake  <ebb9@byu.net>
26453
26454         doc/INSTALL: resync from autoconf
26455         * doc/Makefile (INSTALL, INSTALL.ISO, INSTALL.UTF-8): Simplify.
26456         (INSTALL_PRELUDE): Delete; this is done more efficiently by
26457         moving...
26458         * install.texi [!autoconf]: ...here.  Resync from autoconf.
26459         * INSTALL: Regenerate.
26460         * INSTALL.ISO: New file.
26461         * INSTALL.UTF-8: Likewise.
26462
26463 2008-08-26  Jim Meyering  <meyering@redhat.com>
26464
26465         GNUmakefile: cfg.mk definitions override default autoreconf-rerun policy
26466         * top/GNUmakefile (_is-dist-target, _is-install-target): Make
26467         these definitions conditional, so that they may be overridden, too.
26468
26469 2008-08-26  Bruno Haible  <bruno@clisp.org>
26470
26471         Generate INSTALL file variants with prettier quotes.
26472         * doc/Makefile (INSTALL_PRELUDE): New macro.
26473         (INSTALL): Use it.
26474         (INSTALL.ISO, INSTALL.UTF-8): New rules.
26475
26476 2008-08-26  Bruno Haible  <bruno@clisp.org>
26477
26478         Run makeinfo in an English locale.
26479         * doc/Makefile (MAKEINFO): New variable.
26480
26481 2008-08-26  Bruno Haible  <bruno@clisp.org>
26482
26483         * doc/Makefile (INSTALL): Use --no-validate instead of --no-warn.
26484         Suggested by Eric Blake.
26485
26486 2008-08-25  Bruno Haible  <bruno@clisp.org>
26487
26488         * doc/Makefile (INSTALL): Generate with @firstparagraphindent set.
26489
26490 2008-08-25  Eric Blake  <ebb9@byu.net>
26491
26492         c-stack: test that stack overflow can be caught
26493         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Also check
26494         that platform allows handling stack overflow; at least OS/2 EMX
26495         has sigaltstack, but crashes before transferring control to
26496         handler on stack overflow.
26497         * lib/c-stack.c [HAVE_SIGALTSTACK]: Adjust conditions to also
26498         check for HAVE_STACK_OVERFLOW_HANDLING.
26499         Reported by Elbert Pol.
26500
26501 2008-08-25  Bruno Haible  <bruno@clisp.org>
26502
26503         * doc/posix-functions/strftime.texi: Fix description of strftime
26504         module.
26505
26506 2008-08-24  Bruno Haible  <bruno@clisp.org>
26507
26508         * tests/uniwidth/test-uc_width2.c: New file.
26509         * tests/uniwidth/test-uc_width2.sh: New file.
26510         * modules/uniwidth/width-tests (Files): Add the new files.
26511         (TESTS): Add uniwidth/test-uc_width2.sh.
26512         (TESTS_ENVIRONMENT): New variable.
26513         (check_PROGRAMS): Add test-uc_width2.
26514         (test_uc_width2_SOURCES): New variable.
26515
26516         Fix uc_width(0x00AB) bug, introduced on 2007-07-08.
26517         * lib/uniwidth/width.c (nonspacing_table_data): Set bit for 0x00AD,
26518         not 0x00AB.
26519         Reported by Alexander V. Lukyanov <lav@netis.ru>.
26520
26521 2008-08-22  Eric Blake  <ebb9@byu.net>
26522
26523         test-lock, test-tls: mention why a test is skipped
26524         * tests/test-lock.c (main) [!USE_*_THREADS]: Print why test is
26525         skipped.
26526         * tests/test-tls.c (main) [!USE_*_THREADS]: Likewise.
26527
26528         count-one-bits: relax license
26529         * modules/count-one-bits (License): Relicense to LGPLv2+.
26530         Suggested by Ludovic Courtès, approved by Ben Pfaff.
26531
26532 2008-08-22  Andreas Schwab  <schwab@suse.de>
26533
26534         * m4/obstack-printf-posix.m4 (gl_FUNC_OBSTACK_PRINTF_POSIX):
26535         Remove spurious space in assignment.
26536
26537 2008-08-21  Simon Josefsson  <simon@josefsson.org>
26538
26539         * m4/autobuild.m4: Use TZ=UTC0 instead of TZ=UTC.  Reported by
26540         Paul Eggert <eggert@CS.UCLA.EDU>.
26541
26542 2008-08-20  Paolo Bonzini  <bonzini@gnu.org>
26543
26544         * modules/gettext: Add m4/threadlib.m4.
26545
26546 2008-08-19  Eric Blake  <ebb9@byu.net>
26547
26548         test-c-stack: fix compilation failure on FreeBSD 5.0
26549         * tests/test-c-stack.c [HAVE_SETRLIMIT]: Include prerequisite
26550         headers before <sys/resource.h>.
26551         * doc/posix-headers/sys_resource.texi (sys/resource.h): Document
26552         the bug.
26553         Reported by Nelson H. F. Beebe.
26554
26555         strverscmp: migrate from "strverscmp.h" to <string.h>
26556         * modules/string (Makefile.am): Add new hooks.
26557         * modules/strverscmp (Files): Remove strverscmp.h.
26558         (Depends-on): Add string.
26559         (configure.ac): Add indicator.
26560         (Include): Mention new header.
26561         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Provide new
26562         defaults.
26563         * m4/strverscmp.m4 (gl_FUNC_STRVERSCMP): Inform string module of
26564         results.
26565         * lib/strverscmp.h: Delete.
26566         * lib/string.in.h (strverscmp): Provide declaration, when needed.
26567         * tests/test-strverscmp.c (includes): Adjust client.
26568         * lib/check-version.c (includes): Likewise.
26569         * NEWS: Document the change.
26570
26571         strverscmp: add unit test
26572         * modules/strverscmp-tests: New file.
26573         * tests/test-strverscmp.c: Likewise.
26574
26575 2008-08-19  Simon Josefsson  <simon@josefsson.org>
26576
26577         * lib/gc-gnulib.c: Indentation cleanup.  Add some comments
26578         regarding Windows crypto stuff, from Mono.
26579
26580 2008-08-19  Adam Strzelecki <ono@java.pl>  (tiny change)
26581
26582         * lib/gc-gnulib.c: Use CRYPT_VERIFY_CONTEXT.  Try to use Intel CSP
26583         if present, for intel RND.  Return error on failures.
26584
26585 2008-08-18  Ben Pfaff  <blp@gnu.org>
26586
26587         gitlog-to-changelog: give better diagnostic for failed pipe-open
26588         * build-aux/gitlog-to-changelog: Improve error message: suggest
26589         that the version of Git may be too old.
26590
26591 2008-08-18  Simon Josefsson  <simon@josefsson.org>
26592
26593         * m4/autobuild.m4: Use TZ=UTC to avoid time zone complexity.  Use
26594         ISO 8601 format.  Suggested by Greg Troxel <gdt@ir.bbn.com>.
26595
26596 2008-08-18  Bruno Haible  <bruno@clisp.org>
26597
26598         * lib/glthread/thread.h [USE_SOLARIS_THREADS]: Use thread_in_use(), not
26599         pthread_in_use().
26600
26601 2008-08-18  Bruno Haible  <bruno@clisp.org>
26602
26603         * lib/glthread/threadlib.c: Include <pthread.h>.
26604
26605 2008-08-18  Bruno Haible  <bruno@clisp.org>
26606
26607         * lib/glthread/lock.h [USE_SOLARIS_THREADS]: Fix
26608         glthread_recursive_lock_* macros.
26609         * lib/glthread/lock.c (glthread_recursive_lock_destroy_multithreaded):
26610         Fix syntax error.
26611
26612 2008-08-18  Bruno Haible  <bruno@clisp.org>
26613
26614         * lib/glthread/thread.c: Avoid forcing a context switch right after
26615         thread creation.
26616
26617 2008-08-17  Bruno Haible  <bruno@clisp.org>
26618
26619         * lib/glthread/thread.c: New file, based on code from tests/test-lock.c.
26620         * lib/glthread/thread.h: Provide Win32 specific implementation.
26621         * modules/thread (Files): Add lib/glthread/thread.c.
26622         (Depends-on): Add lock.
26623         (Makefile.am): Add glthread/thread.c to lib_SOURCES.
26624
26625 2008-08-17  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
26626
26627         New module 'yield'.
26628         * modules/yield: New file.
26629         * lib/glthread/yield.h: New file.
26630         * m4/yield.m4: New file.
26631         * MODULES.html.sh (Multithreading): Add yield.
26632
26633 2008-08-17  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
26634
26635         New module 'thread'.
26636         * modules/thread: New file.
26637         * lib/glthread/thread.h: New file.
26638         * m4/thread.m4: New file.
26639         * MODULES.html.sh (Multithreading): Add thread.
26640
26641 2008-08-17  Bruno Haible  <bruno@clisp.org>
26642
26643         * lib/glthread/lock.h: Include <stdlib.h> always.
26644         * lib/glthread/tls.h: Likewise.
26645         * lib/glthread/cond.h: Likewise.
26646
26647 2008-08-17  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
26648
26649         New module 'cond'.
26650         * modules/cond: New file.
26651         * lib/glthread/cond.h: New file.
26652         * lib/glthread/cond.c: New file.
26653         * m4/cond.m4: New file.
26654         * MODULES.html.sh (Multithreading): Add cond.
26655
26656 2008-08-16  Eric Blake  <ebb9@byu.net>
26657
26658         c-stack: fix regression on Irix 5.3 from 2008-06-21
26659         * m4/c-stack.m4 (gl_PREREQ_C_STACK): Move check for
26660         sa_sigaction...
26661         * m4/sigaction.m4 (gl_PREREQ_SIG_HANDLER_H): ...here.
26662         (gl_PREREQ_SIGACTION): Depend on sig-handler.h prereq's.
26663         * m4/signal_h.m4 (gl_SIGNAL_H_DEFAULTS): Set the default.
26664         * modules/signal (Makefile.am): Use the value.
26665         * lib/signal.in.h (sa_sigaction) [HAVE_SIGACTION
26666         && !HAVE_STRUCT_SIGACTION_SA_SIGACTION]: Define.
26667         * doc/posix-headers/signal.texi (signal.h): Document this
26668         portability issue.
26669         * doc/posix-functions/sigaction.texi (sigaction): Likewise.
26670         Reported by Tom G. Christensen.
26671
26672 2008-08-17  Bruno Haible  <bruno@clisp.org>
26673
26674         New module 'threadlib'.
26675         * modules/threadlib: New file.
26676         * lib/glthread/threadlib.c: New file, extracted from
26677         lib/glthread/lock.c.
26678         * lib/glthread/lock.c (dummy_thread_func, glthread_in_use): Remove
26679         functions.
26680         * m4/threadlib.m4: New file, from m4/lock.m4, renaming gl_LOCK to
26681         gl_THREADLIB and gl_LOCK_EARLY to gl_THREADLIB_EARLY.
26682         * m4/lock.m4 (gl_LOCK_EARLY, gl_LOCK_EARLY_BODY, gl_LOCK_BODY): Remove
26683         macros.
26684         (gl_LOCK): Just require gl_THREADLIB and perform checks for lock.h.
26685         (gl_DISABLE_THREADS): Remove macro.
26686         * modules/lock (Files): Remove build-aux/config.rpath.
26687         (Depends-on): Remove havelib. Add threadlib.
26688         (configure.ac-early): Remove section.
26689         * m4/tls.m4 (gl_TLS): Require gl_THREADLIB instead of gl_LOCK.
26690         * modules/tls (Depends-on): Remove lock. Add threadlib.
26691         (Link): New section, copied from threadlib.
26692         * MODULES.html.sh (Multithreading): Add threadlib.
26693
26694 2008-08-14  Bruno Haible  <bruno@clisp.org>
26695
26696         * lib/glthread/lock.h (glthread_lock_lock, glthread_lock_unlock,
26697         glthread_lock_destroy, glthread_rwlock_rdlock, glthread_rwlock_wrlock,
26698         glthread_rwlock_unlock, glthread_rwlock_destroy,
26699         glthread_recursive_lock_lock, glthread_recursive_lock_unlock,
26700         glthread_recursive_lock_destroy): Define as macros always.
26701         * lib/glthread/lock.c (glthread_lock_lock_func): Renamed from
26702         glthread_lock_lock.
26703         (glthread_lock_unlock_func): Renamed from glthread_lock_unlock.
26704         (glthread_lock_destroy_func): Renamed from glthread_lock_destroy.
26705         (glthread_rwlock_rdlock_func): Renamed from glthread_rwlock_rdlock.
26706         (glthread_rwlock_wrlock_func): Renamed from glthread_rwlock_wrlock.
26707         (glthread_rwlock_unlock_func): Renamed from glthread_rwlock_unlock.
26708         (glthread_rwlock_destroy_func): Renamed from glthread_rwlock_destroy.
26709         (glthread_recursive_lock_lock_func): Renamed from
26710         glthread_recursive_lock_lock.
26711         (glthread_recursive_lock_unlock_func): Renamed from
26712         glthread_recursive_lock_unlock.
26713         (glthread_recursive_lock_destroy_func): Renamed from
26714         glthread_recursive_lock_destroy.
26715
26716 2008-08-14  Bruno Haible  <bruno@clisp.org>
26717
26718         * lib/glthread/lock.h: Renamed from lib/lock.h.
26719         * lib/glthread/lock.c: Renamed from lib/lock.c. Update includes.
26720         * lib/glthread/tls.h: Renamed from lib/tls.h.
26721         * lib/glthread/tls.c: Renamed from lib/tls.c. Update includes.
26722         * lib/fstrcmp.c: Update includes.
26723         * lib/strsignal.c: Update includes.
26724         * modules/lock (Files, Makefile.am): Update.
26725         (Include): Change to "glthread/lock.h".
26726         * modules/tls (Files, Makefile.am): Update.
26727         (Include): Change to "glthread/tls.h".
26728         * tests/test-lock.c: Update includes.
26729         * tests/test-tls.c: Update includes.
26730         * NEWS: Mention the renamed header files.
26731
26732 2008-08-11  Jim Meyering  <meyering@redhat.com>
26733
26734         * lib/fts_.h: Fix grammar (insert a missing "is") in a comment.
26735
26736 2008-08-11  Eric Blake  <ebb9@byu.net>
26737
26738         test-c-stack: avoid C99-ism
26739         * tests/test-c-stack.c (main): Fix whitespace, move declaration
26740         before statement.
26741         Reported by Alain Guibert.
26742
26743 2008-08-10  Jim Meyering  <meyering@redhat.com>
26744
26745         ensure that return value of uinttostr et al are not ignored
26746         * lib/inttostr.h (__GNUC_PREREQ): Define.
26747         (__attribute_warn_unused_result__): Define.
26748         (offtostr, imaxtostr, umaxtostr, uinttostr): Apply the attribute.
26749
26750 2008-08-07  Paolo Bonzini  <bonzini@gnu.org>
26751
26752         * lib/lock.c (glthread_recursive_lock_init_multithreaded)
26753         [!PTHREAD_RECURSIVE_MUTEX_INITIALIZER]: Fix typo.
26754
26755 2008-08-07  Jim Meyering  <meyering@redhat.com>
26756
26757         * m4/inet_pton.m4: Fix typo in comment: s/inet_ntop/inet_pton/.
26758
26759         * modules/mkstemp (License): Relicense under LGPLv2+.
26760         * modules/tempname (License): Likewise.
26761
26762 2008-08-06  Bruno Haible  <bruno@clisp.org>
26763
26764         * lib/poll.c (poll): Further micro-optimization.
26765
26766 2008-08-06  Jim Meyering  <meyering@redhat.com>
26767
26768         inet_pton.c: use locale-independent tolower
26769         * lib/inet_pton.c: Include <c-ctype.h> rather than <ctype.h>.
26770         (inet_pton6): Use c_tolower rather than tolower.
26771         * modules/inet_pton (Depends-on): Add c-ctype.
26772
26773 2008-08-06  Paolo Bonzini  <bonzini@gnu.org>
26774
26775         * lib/poll.c (poll): Avoid division when timeout is 0, cache
26776         _SC_OPEN_MAX, avoid repeated access to errno.  Check for nfd < 0.
26777
26778 2008-08-06  Jim Meyering  <meyering@redhat.com>
26779
26780         * modules/inet_pton (License): Relicense under LGPLv2+.
26781
26782 2008-08-03  Bruno Haible  <bruno@clisp.org>
26783
26784         Additional non-aborting API for lock and tls.
26785         * lib/lock.h: Include <errno.h>.
26786         (glthread_lock_init): New macro/function.
26787         (gl_lock_init): Define as wrapper around glthread_lock_init.
26788         (glthread_lock_lock): New macro/function.
26789         (gl_lock_lock): Define as wrapper around glthread_lock_lock.
26790         (glthread_lock_unlock): New macro/function.
26791         (gl_lock_unlock): Define as wrapper around glthread_lock_unlock.
26792         (glthread_lock_destroy): New macro/function.
26793         (gl_lock_destroy): Define as wrapper around glthread_lock_destroy.
26794         (glthread_rwlock_init): New macro/function.
26795         (gl_rwlock_init): Define as wrapper around glthread_rwlock_init.
26796         (glthread_rwlock_rdlock): New macro/function.
26797         (gl_rwlock_rdlock): Define as wrapper around glthread_rwlock_rdlock.
26798         (glthread_rwlock_wrlock): New macro/function.
26799         (gl_rwlock_wrlock): Define as wrapper around glthread_rwlock_wrlock.
26800         (glthread_rwlock_unlock): New macro/function.
26801         (gl_rwlock_unlock): Define as wrapper around glthread_rwlock_unlock.
26802         (glthread_rwlock_destroy): New macro/function.
26803         (gl_rwlock_destroy): Define as wrapper around glthread_rwlock_destroy.
26804         (glthread_recursive_lock_init): New macro/function.
26805         (gl_recursive_lock_init): Define as wrapper around
26806         glthread_recursive_lock_init.
26807         (glthread_recursive_lock_lock): New macro/function.
26808         (gl_recursive_lock_lock): Define as wrapper around
26809         glthread_recursive_lock_lock.
26810         (glthread_recursive_lock_unlock): New macro/function.
26811         (gl_recursive_lock_unlock): Define as wrapper around
26812         glthread_recursive_lock_unlock.
26813         (glthread_recursive_lock_destroy): New macro/function.
26814         (gl_recursive_lock_destroy): Define as wrapper around
26815         glthread_recursive_lock_destroy.
26816         (glthread_once): New macro/function.
26817         (gl_once): Define as wrapper around glthread_once.
26818         Update function declarations.
26819         * lib/lock.c (glthread_rwlock_init_multithreaded): Renamed from
26820         glthread_rwlock_init. Return error code.
26821         (glthread_rwlock_rdlock_multithreaded): Renamed from
26822         glthread_rwlock_rdlock. Return error code.
26823         (glthread_rwlock_wrlock_multithreaded): Renamed from
26824         glthread_rwlock_wrlock. Return error code.
26825         (glthread_rwlock_unlock_multithreaded): Renamed from
26826         glthread_rwlock_unlock. Return error code.
26827         (glthread_rwlock_destroy_multithreaded): Renamed from
26828         glthread_rwlock_destroy. Return error code.
26829         (glthread_recursive_lock_init_multithreaded): Renamed from
26830         glthread_recursive_lock_init. Return error code.
26831         (glthread_recursive_lock_lock_multithreaded): Renamed from
26832         glthread_recursive_lock_lock. Return error code.
26833         (glthread_recursive_lock_unlock_multithreaded): Renamed from
26834         glthread_recursive_lock_unlock. Return error code.
26835         (glthread_recursive_lock_destroy_multithreaded): Renamed from
26836         glthread_recursive_lock_destroy. Return error code.
26837         (glthread_once_call): Make static.
26838         (glthread_once_multithreaded): Renamed from glthread_once.
26839         * lib/tls.h: Include <errno.h>.
26840         (glthread_tls_key_init): New macro/function.
26841         (gl_tls_key_init): Define as wrapper around glthread_tls_key_init.
26842         (glthread_tls_set): New macro/function.
26843         (gl_tls_set): Define as wrapper around glthread_tls_set.
26844         (glthread_tls_key_destroy): New macro/function.
26845         (gl_tls_key_destroy): Define as wrapper around glthread_tls_key_destroy.
26846         Update function declarations.
26847         * lib/tls.c (glthread_tls_get_multithreaded): Renamed from
26848         glthread_tls_get.
26849         Suggested by Yoann Vandoorselaere <yoann@prelude-ids.org>.
26850
26851 2008-08-04  Eric Blake  <ebb9@byu.net>
26852
26853         gnumakefile: use space, not TAB, outside of targets
26854         * top/GNUmakefile (_dummy): Fix whitespace error in prior edit.
26855
26856 2008-08-02  Jim Meyering  <meyering@redhat.com>
26857
26858         getdate.y: avoid locale-dependent date parsing failure
26859         In Turkish locales, getdate would fail to recognize keywords
26860         containing a lowercase "i".  The solution is not to rely on
26861         locale-sensitive case-conversion.
26862         * lib/getdate.y: Include <c-ctype.h> rather than <ctype.h>.
26863         (lookup_word): Use c_toupper in place of toupper.
26864         (yylex, get_date): Use c_ prefixed variants of isspace and isalpha, too.
26865         Reported by Vefa Bicakci <bicave@superonline.com> in
26866         <http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/14184>.
26867         * modules/getdate (Depends-on): Add c-ctype.
26868
26869 2008-08-02  Bruno Haible  <bruno@clisp.org>
26870
26871         * gnulib-tool (func_import): When updating or creating a .gitignore
26872         file, prepend each added line with a slash, and ignore leading slashes
26873         from the existing lines.
26874         Reported by Joel E. Denny <jdenny@ces.clemson.edu>.
26875
26876 2008-08-02  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
26877
26878         Portability fix for GNU make 3.79.1.
26879         * top/GNUmakefile: Avoid 'else COND', which older GNU make
26880         versions do not understand.
26881
26882 2008-08-01  Bruno Haible  <bruno@clisp.org>
26883
26884         Work around bug of HP-UX 10.20 cc with -0.0 literal.
26885         * tests/test-isnanf.h (zero): New variable.
26886         (main): Avoid literal -0.0f.
26887         * tests/test-isnand.h (zero): New variable.
26888         (main): Avoid literal -0.0.
26889         * tests/test-isnanl.h (zero): New variable.
26890         (main): Avoid literal -0.0L.
26891         * tests/test-isnan.c (zerof, zerod, zerol): New variables.
26892         (test_float, test_double, test_long_double): Avoid literals -0.0f,
26893         -0.0, -0.0L.
26894         * tests/test-signbit.c (test_signbitf): Avoid literal -0.0f.
26895         (test_signbitd): Avoid literal -0.0.
26896         (test_signbitl): Avoid literal -0.0L.
26897         * tests/test-ceilf1.c (zero): New variable.
26898         (main): Avoid literal -0.0f.
26899         * tests/test-ceill.c (zero): New variable.
26900         (main): Avoid literal -0.0L.
26901         * tests/test-floorf1.c (zero): New variable.
26902         (main): Avoid literal -0.0f.
26903         * tests/test-floorl.c (zero): New variable.
26904         (main): Avoid literal -0.0L.
26905         * tests/test-roundf1.c (zero): New variable.
26906         (main): Avoid literal -0.0f.
26907         * tests/test-round1.c (zero): New variable.
26908         (main): Avoid literal -0.0.
26909         * tests/test-roundl.c (zero): New variable.
26910         (main): Avoid literal -0.0L.
26911         * tests/test-truncf1.c (zero): New variable.
26912         (main): Avoid literal -0.0f.
26913         * tests/test-trunc1.c (zero): New variable.
26914         (main): Avoid literal -0.0.
26915         * tests/test-truncl.c (zero): New variable.
26916         (main): Avoid literal -0.0L.
26917         * tests/test-frexp.c (zero): New variable.
26918         (main): Avoid literal -0.0.
26919         * tests/test-frexpl.c (zero): New variable.
26920         (main): Avoid literal -0.0L.
26921         * tests/test-ldexpl.c (zero): New variable.
26922         (main): Avoid literal -0.0L.
26923         * tests/test-snprintf-posix.h (have_minus_zero): Avoid literal -0.0.
26924         (zerod, zerol): New variables.
26925         (test_function): Avoid literals -0.0, -0.0L.
26926         * tests/test-sprintf-posix.h (have_minus_zero): Avoid literal -0.0.
26927         (zerod, zerol): New variables.
26928         (test_function): Avoid literals -0.0, -0.0L.
26929         * tests/test-vasnprintf-posix.c (have_minus_zero): Avoid literal -0.0.
26930         (zerod, zerol): New variables.
26931         (test_function): Avoid literals -0.0, -0.0L.
26932         * tests/test-vasprintf-posix.c (have_minus_zero): Avoid literal -0.0.
26933         (zerod, zerol): New variables.
26934         (test_function): Avoid literals -0.0, -0.0L.
26935         * tests/test-strtod.c (zero): New variable.
26936         (main): Avoid literal -0.0.
26937         Reported by Jonathan C. Patschke <jp@centtech.com>.
26938
26939 2008-07-31  Jim Meyering  <meyering@redhat.com>
26940
26941         sha256.h: correct definition of SHA224_DIGEST_SIZE
26942         * lib/sha256.h (SHA224_DIGEST_SIZE): Define to 28, not 24.
26943         Reported by Paulie Pena IV <paulie4@gmail.com>.
26944         Define as 224 / 8, rather than as a literal.
26945         (SHA256_DIGEST_SIZE): Define as 256/8 rather than equivalent literal.
26946         * lib/sha512.h (SHA384_DIGEST_SIZE): Likewise, define as equiv: 384/8.
26947         (SHA512_DIGEST_SIZE): Likewise, define as equivalent quotient: 512/8.
26948
26949 2008-07-31  Bruno Haible  <bruno@clisp.org>
26950
26951         * lib/regex_internal.h (BITSET_WORD_BITS): Make first conditional work
26952         on HP-UX 10.20 with "cc -Ae". Fix second conditional.
26953         Reported by Jonathan Patschke <jp@centtech.com>.
26954
26955 2008-07-31  Bruno Haible  <bruno@clisp.org>
26956
26957         * gnulib-tool (func_import): Make change from 2008-06-23 more robust.
26958         Reported by Paolo Bonzini <bonzini@gnu.org>.
26959
26960 2008-07-30  Eric Blake  <ebb9@byu.net>
26961
26962         test-strtod: allow compilation without -lm
26963         * tests/test-strtod.c (main): Avoid link dependence on fabs.
26964         Reported by Dennis Clarke <blastwave@gmail.com>.
26965
26966 2008-07-28  Jim Meyering  <meyering@redhat.com>
26967
26968         bootstrap: work also when there are no .po files in po/
26969         * build-aux/bootstrap (update_po_files): Complete the change
26970         that I began in bc960df8c789c878f1c1c54a28a3c2648dead8d9.
26971
26972 2008-07-27  Jim Meyering  <meyering@redhat.com>
26973
26974         * users.txt: Add zile.
26975
26976 2008-07-26  Ben Pfaff  <blp@gnu.org>
26977
26978         Add missing dependencies on new m4/exponent[fdl].m4 files.
26979         * modules/isnanf-nolibm: Add m4/exponentf.m4.
26980         * modules/isnand-nolibm: Add m4/exponentd.m4.
26981         * modules/isnanl-nolibm: Add m4/exponentl.m4.
26982         * modules/signbit-tests: Use m4/exponent[fdl].m4 instead of
26983         m4/isnan[fdl].m4, because the macros actually used moved.
26984         Reported by Jim Meyering.
26985
26986 2008-07-14  Ben Pfaff  <blp@gnu.org>
26987
26988         Add isinf module.
26989         * lib/isinf.c: New file.
26990         * lib/math.in.h: Define isinf macro if we have decided to replace
26991         it.
26992         * m4/isinf.m4: New file.
26993         * m4/math_h.m4: Initialize and substitute variables for isinf
26994         module.
26995         * modules/isinf: New file.
26996         * modules/isinf-tests: New file.
26997         * modules/math: Add substitutions for new module.
26998         * tests/test-isinf.c: New file.
26999         * doc/posix-functions/isinf.texi: Mention new module.
27000         * MODULES.html.sh: Mention new module.
27001
27002 2008-07-14  Ben Pfaff  <blp@gnu.org>
27003
27004         Factor out some macros for use by additional modules.
27005         * m4/isnanf.m4 (gl_FLOAT_EXPONENT_LOCATION): Move into new file
27006         exponentf.m4.
27007         * m4/isnand.m4 (gl_DOUBLE_EXPONENT_LOCATION): Move into new file
27008         exponentd.m4.
27009         * m4/isnanl.m4 (gl_LONG_DOUBLE_EXPONENT_LOCATION): Move into new
27010         file exponentl.m4.
27011         * m4/exponentf.m4: New file.
27012         * m4/exponentd.m4: New file.
27013         * m4/exponentl.m4: New file.
27014         * modules/isnanf: Use new file m4/exponentf.m4.
27015         * modules/isnand: Use new file m4/exponentd.m4.
27016         * modules/isnanl: Use new file m4/exponentl.m4.
27017
27018 2008-07-23  Ulrich Drepper  <drepper@redhat.com>
27019
27020         mktime.c: normalize tp->tm_isdst value to -1/0/1.
27021         * lib/mktime.c (__mktime_internal): Normalize tp->tm_isdst value.
27022         Reported by Michael Ringe <Michael.Ringe@gmx.de> in
27023         <http://sourceware.org/bugzilla/show_bug.cgi?id=6723>.
27024
27025         * lib/canonicalize-lgpl.c (__realpath): Avoid buffer overflow after
27026         readlink on platforms without PATH_MAX.
27027
27028 2008-07-21  Eric Blake  <ebb9@byu.net>
27029
27030         Warn, not fail, on stale version.
27031         * top/GNUmakefile (_curr-ver): Tone down previous patch.
27032
27033         Don't allow installation with stale devel version number.
27034         * top/GNUmakefile (_is-install-target): New macro.
27035         (_curr-ver): Forbid installation with stale version number.
27036
27037 2008-07-20  Bruno Haible  <bruno@clisp.org>
27038
27039         * modules/c-stack-tests (Makefile.am): Add LIBSIGSEGV to
27040         TESTS_ENVIRONMENT.
27041         * tests/test-c-stack2.sh: React differently if LIBSIGSEGV is in use.
27042
27043 2008-07-20  Bruno Haible  <bruno@clisp.org>
27044
27045         * lib/c-stack.h (c_stack_action): Add documentation.
27046         * lib/c-stack.c (c_stack_action): Remove incomplete documentation.
27047
27048 2008-07-20  Bruno Haible  <bruno@clisp.org>
27049
27050         * modules/canonicalize-lgpl (License): Relicense under LGPLv2+.
27051         * modules/readlink (License): Likewise.
27052
27053 2008-07-17  Eric Blake  <ebb9@byu.net>
27054
27055         * modules/c-stack (Link): Fix typo.
27056
27057         Make c-stack use libsigsegv, when available.
27058         * modules/c-stack (Depends-on): Add libsigsegv.
27059         * modules/c-stack-tests (Makefile.am): Link with libsigsegv, if
27060         needed.
27061         * lib/c-stack.c (SIGSTKSZ): Define fallback.
27062         (segv_handler, overflow_handler, c_stack_action)
27063         [HAVE_LIBSIGSEGV && !HAVE_XSI_STACK_OVERFLOW_HEURISTIC]: Add new
27064         implementation when libsigsegv is available, but only when using
27065         the library is necessary.
27066         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Add
27067         comment, explaining why XSI check fails on Linux.
27068         (gl_PREREQ_C_STACK): Supply LIBCSTACK, LTLIBCSTACK.
27069         * tests/test-c-stack2.sh: Tweak skip message.
27070         * NEWS: Document new link-time requirements.
27071
27072 2008-07-16  Eric Blake  <ebb9@byu.net>
27073
27074         c-stack: Expose false positives when not using libsigsegv.
27075         * modules/c-stack-tests (Files): Expand test.
27076         * tests/test-c-stack.c (main): Add means to conditionally trigger
27077         non-overflow SIGSEGV.
27078         * tests/test-c-stack2.sh: New file.
27079
27080 2008-07-14  Bruno Haible  <bruno@clisp.org>
27081
27082         * m4/libsigsegv.m4: Remove unneeded AC_PREREQ.
27083         Reported by Eric Blake.
27084
27085 2008-07-14  Sam Steingold  <sds@gnu.org>
27086             Bruno Haible  <bruno@clisp.org>
27087
27088         New module libsigsegv.
27089         * modules/libsigsegv: New file.
27090         * m4/libsigsegv.m4: New file, from GNU clisp sigsegv.m4 with
27091         modifications.
27092         * MODULES.html.sh (Signal handling): New section.
27093
27094 2008-07-14  Bruno Haible  <bruno@clisp.org>
27095
27096         * modules/unictype/ctype-* (Description): Add the word "function".
27097         Improves the resulting doc in MODULES.html.
27098
27099 2008-07-12  Ben Pfaff  <blp@gnu.org>
27100
27101         Add longlong module.
27102         * modules/longlong: New file.
27103
27104 2008-07-12  Bruno Haible  <bruno@clisp.org>
27105
27106         * m4/isnan.m4 (gl_ISNAN): When the replacement is used, set ISNAN_LIBM
27107         to empty.
27108
27109 2008-07-10  Ben Pfaff  <blp@gnu.org>
27110
27111         Add isnan module.
27112         * doc/posix-functions/isnan.texi: Mention new module.
27113         * lib/math.in.h: Define isnan macro if we have decided to replace
27114         it.
27115         * m4/isnan.m4: New file.
27116         * m4/isnanl.m4 (gl_FUNC_ISNANL): Factor out some code into new
27117         macro gl_BUILD_ISNANL so that isnan.m4 can use that functionality
27118         also.
27119         (gl_FUNC_ISNANL_NO_LIBM): Factor out same code, to reduce
27120         redundancy.
27121         * m4/math_h.m4: Initialize and substitute variables for isnan
27122         module.
27123         * modules/isnan: New file.
27124         * modules/isnan-tests: New file.
27125         * modules/math: Add substitutions for new module.
27126         * tests/test-isnan.c: New file.
27127         * MODULES.html.sh: Mention new module.
27128
27129 2008-07-10  Ben Pfaff  <blp@gnu.org>
27130
27131         Add isnanf module.
27132         * lib/isnanf.m4: New file.
27133         * m4/isnanf.m4 (gl_FUNC_ISNANF): New macro.
27134         (gl_HAVE_ISNANF_IN_LIBM): New macro.
27135         (gl_BUILD_ISNANF): New macro used by gl_FUNC_ISNANF,
27136         gl_FUNC_ISNANF_NO_LIBM, and gl_FUNC_ISNAN.
27137         * modules/isnanf: New file.
27138         * modules/isnanf-tests: New file.
27139         * modules/isnanf-nolibm-tests: Add tests/test-isnanf.h to list of
27140         files.
27141         * tests/test-isnanf-nolibm.c: factored most of its contents into
27142         new file tests/test-isnanf.h.
27143         * tests/test-isnanf.h: New file.
27144         * tests/test-isnanf.c: New file.
27145         * MODULES.html.sh: Mention new module.
27146         * doc/glibc-functions/isnanf.texi: Mention new module.
27147
27148 2008-07-10  Ben Pfaff  <blp@gnu.org>
27149
27150         Add isnand module.
27151         * lib/isnand.h: New file.
27152         * m4/isnand.m4 (gl_FUNC_ISNAND): New macro.
27153         (gl_FUNC_ISNAND_NO_LIBM): Split partially into new macro
27154         gl_HAVE_ISNAND_NO_LIBM so that gl_FUNC_ISNAND can use that
27155         functionality also.
27156         (gl_BUILD_ISNAND): New macro used by gl_FUNC_ISNAND,
27157         gl_FUNC_ISNAND_NO_LIBM, and gl_FUNC_ISNAN.
27158         (gl_HAVE_ISNAND_IN_LIBM): New macro.
27159         * modules/isnand: New file.
27160         * modules/isnand-tests: New file.
27161         * modules/isnand-nolibm-tests: Add tests/test-isnand.h to list of
27162         files.
27163         * tests/test-isnand-nolibm.c: factored most of its contents into
27164         new file tests/test-isnand.h.
27165         * tests/test-isnand.h: New file.
27166         * tests/test-isnand.c: New file.
27167         * MODULES.html.sh: Mention new module.
27168
27169 2008-07-10  Ben Pfaff  <blp@gnu.org>
27170
27171         * lib/isnanf.h: Rename lib/isnanf-nolibm.h.
27172         * lib/isnand.h: Rename lib/isnand-nolibm.h.
27173         * tests/test-isnanf.c: Rename tests/test-isnanf-nolibm.c.
27174         * tests/test-isnand.c: Rename tests/test-isnand-nolibm.c.
27175         * modules/isnanf-nolibm: Update references to renamed files.
27176         * modules/isnand-nolibm: Likewise.
27177         * modules/isnanf-nolibm-tests: Likewise.
27178         * modules/isnand-nolibm-tests: Likewise.
27179         * lib/frexp.c: Likewise.
27180         * lib/isfinite.c: Likewise.
27181         * lib/signbitd.c: Likewise.
27182         * lib/signbitf.c: Likewise.
27183         * lib/vasnprintf.c: Likewise.
27184         * tests/test-ceilf1.c: Likewise.
27185         * tests/test-ceilf2.c: Likewise.
27186         * tests/test-floorf1.c: Likewise.
27187         * tests/test-floorf2.c: Likewise.
27188         * tests/test-frexp.c: Likewise.
27189         * tests/test-round1.c: Likewise.
27190         * tests/test-round2.c: Likewise.
27191         * tests/test-roundf1.c: Likewise.
27192         * tests/test-strtod.c: Likewise.
27193         * tests/test-trunc1.c: Likewise.
27194         * tests/test-trunc2.c: Likewise.
27195         * tests/test-truncf1.c: Likewise.
27196         * tests/test-truncf2.c: Likewise.
27197         * NEWS: Mention the renamed header files.
27198
27199 2008-07-11  Jim Meyering  <meyering@redhat.com>
27200
27201         vc-list-files: make the last-resort awk code more portable
27202         * build-aux/vc-list-files: Don't rely on awk's "sub" command.
27203         /bin/awk from OpenSolaris 11's SUNWesu version 2008.03.22.10.56
27204         does not support it.
27205
27206 2008-07-10  Eric Blake  <ebb9@byu.net>
27207
27208         Work with tar's bootstrap.
27209         * gnulib-tool (func_emit_initmacro_end): Use m4_defn in the case
27210         where LIBSOURCES_DIR contains .#bootmp but must not be treated as
27211         an m4 comment.
27212
27213 2008-07-09  Jim Meyering  <meyering@redhat.com>
27214
27215         posix-shell.m4: fix typo that made this test malfunction
27216         * m4/posix-shell.m4: Remove capitalization in variable name.
27217
27218 2008-07-08  Bruno Haible  <bruno@clisp.org>
27219
27220         * m4/onceonly.m4: Update comments.
27221         Reported by Ben Pfaff <blp@cs.stanford.edu>.
27222
27223 2008-07-04  Jim Meyering  <meyering@redhat.com>
27224
27225         * users.txt: Add vc-dwim.
27226         (bison, coreutils): Use the gitweb URL.
27227
27228 2008-07-03  Jim Meyering  <meyering@redhat.com>
27229
27230         * users.txt: Add libffcall.  From Sam Steingold.
27231
27232 2008-07-03  OndÅ™ej Vašík  <ovasik@redhat.com>
27233
27234         getdate.y: do not ignore TZ with relative day, month or year offset
27235         * lib/getdate.y (get_date): Move the tz-handling block to follow the
27236         relative-date-handling, since otherwise, the latter would clobber the
27237         sole output (an updated Start value) of the tz-handling block.
27238         * tests/test-getdate.c: Tests for the fix
27239
27240 2008-07-03  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
27241
27242         Recognize 'foo_LIBRARIES += libgnu.a'.
27243         * gnulib-tool (func_emit_lib_Makefile_am): Recognize if a
27244         makefile snippet has already specified an installation location,
27245         also using '+='.
27246
27247 2008-07-02  OndÅ™ej Vašík  <ovasik@redhat.com>
27248
27249         getdate.y: factor out common actions
27250         * lib/getdate.y (apply_relative_time, set_hhmmss): New functions.
27251         Use them in place of open-coded actions.
27252
27253 2008-07-01  Simon Josefsson  <simon@josefsson.org>
27254
27255         Add self-test for getdate module.
27256         * modules/getdate-tests: New file.
27257         * tests/test-getdate.c: New file.
27258
27259 2008-06-29  Bruno Haible  <bruno@clisp.org>
27260
27261         * gnulib-tool (func_import): Put gnulib-comp.m4 into .cvsignore or
27262         .gitignore.
27263         Reported by Sylvain Beucler <beuc@beuc.net>.
27264
27265 2008-06-29  Bruno Haible  <bruno@clisp.org>
27266
27267         * doc/gnulib-tool.texi (VCS Issues): Mention --no-vc-files option.
27268         * m4/gnulib-tool.m4: Update to match current gnulib-tool.
27269
27270 2008-06-29  Bruno Haible  <bruno@clisp.org>
27271
27272         * gnulib-tool (func_import): Recommend to put gnulib-cache.m4 into
27273         EXTRA_DIST.
27274         Reported by Sylvain Beucler <beuc@beuc.net>.
27275
27276 2008-06-26  Jim Meyering  <meyering@redhat.com>
27277
27278         make several modules depend on the "open" module
27279         This provides slightly increased consistency when opening-for-write
27280         the name of a non-directory spelled with a trailing slash.
27281         * modules/chdir-safer: Likewise.
27282         * modules/chown: Likewise.
27283         * modules/clean-temp: Likewise.
27284         * modules/copy-file: Likewise.
27285         * modules/fchdir: Likewise.
27286         * modules/fcntl-safer: Likewise.
27287         * modules/pipe: Likewise.
27288         * modules/utime: Likewise.
27289         Prompted by Eric Blake and Bruno Haible.
27290
27291 2008-06-24  Andreas Schwab  <schwab@suse.de>
27292
27293         * m4/getdate.m4 (gl_C_COMPOUND_LITERALS): Don't test whether compound
27294         literals can be used as initializers for global variables.
27295
27296 2008-06-23  Eric Blake  <ebb9@byu.net>
27297
27298         Make gnulib-cache.m4 easier to diff.
27299         * gnulib-tool (func_import): Allow newlines when reading cached
27300         gl_MODULES, and generate newlines when creating gnulib-cache.m4.
27301
27302 2008-06-23  Bruno Haible  <bruno@clisp.org>
27303
27304         * m4/signalblocking.m4 (gl_PREREQ_SIG_HANDLER_H): Remove macro.
27305         (gl_PREREQ_SIGPROCMASK): Don't invoke it.
27306         * m4/sigaction.m4 (gl_PREREQ_SIG_HANDLER_H): New macro, moved here from
27307         m4/signalblocking.m4.
27308         (gl_PREREQ_SIGACTION): Don't invoke it.
27309         * m4/nanosleep.m4 (gl_PREREQ_NANOSLEEP): Invoke
27310         gl_PREREQ_SIG_HANDLER_H.
27311         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Likewise.
27312         Don't check for sigaction here.
27313
27314 2008-06-23  Bruno Haible  <bruno@clisp.org>
27315
27316         * lib/fatal-signal.c (fatal_signal_handler): Update comment.
27317         (install_handlers): Don't set the SA_RESETHAND flag.
27318
27319 2008-06-23  Bruno Haible  <bruno@clisp.org>
27320
27321         * m4/sigaction.m4: Comment fixes.
27322         * lib/signal.in.h: Likewise.
27323
27324 2008-06-23  Eric Blake  <ebb9@byu.net>
27325
27326         Fix typo.
27327         * tests/test-sigaction.c (MASK_SA_FLAGS): Add missing operator.
27328
27329         Avoid SA_ namespace.
27330         * tests/test-sigaction.c (MASK_SA_FLAGS): Rename from SA_MASK.
27331         Reported by Ralf Wildenhues.
27332
27333         Avoid test failure due to SA_RESTORER.
27334         * tests/test-sigaction.c (SA_MASK): New macro.
27335         (main): Avoid failing due to extension flags being set.
27336         Reported by Jim Meyering.
27337
27338         Revert use of sig-handler.h in sigprocmask.c.
27339         * modules/sigprocmask (Files): Don't rely on sig-handler.h, since
27340         it requires the existence of struct sigaction.
27341         * lib/sigprocmask.c (handler_t): Restore typedef.
27342         (rpl_signal, old_handlers): Use local type.
27343
27344 2008-06-22  Bruno Haible  <bruno@clisp.org>
27345
27346         * tests/test-stdint.c: Disable the INTMAX_MAX preprocessor test
27347         conditionally.
27348         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
27349
27350 2008-06-22  Bruno Haible  <bruno@clisp.org>
27351
27352         * doc/posix-functions/siginterrupt.texi: Move note.
27353
27354         * lib/signal.in.h (SA_RESTART): New macro.
27355         * lib/sigaction.c: Update comment.
27356
27357         * m4/sigaction.m4 (gl_SIGACTION): Require gl_SIGNAL_H_DEFAULTS.
27358
27359         * m4/signalblocking.m4 (gl_PREREQ_SIG_HANDLER_H): New macro.
27360         (gl_PREREQ_SIGPROCMASK): Invoke it.
27361         * m4/sigaction.m4 (gl_PREREQ_SIGACTION): Likewise.
27362
27363         * lib/nanosleep.c (rpl_nanosleep): Setup newact only when it is needed.
27364
27365         * lib/sigprocmask.c: Update a comment.
27366
27367 2008-06-21  Eric Blake  <ebb9@byu.net>
27368
27369         Use sigaction module rather than signal().
27370         * modules/c-stack (Depends-on): Add sigaction.
27371         * modules/fatal-signal (Depends-on): Likewise.
27372         * modules/nanosleep (Depends-on): Likewise.
27373         * modules/sigprocmask (Files): Add sig-handler.h.
27374         * modules/sigaction (Files): Likewise.
27375         * lib/sig-handler.h (get_handler): New file, suggested by Paul
27376         Eggert.
27377         * lib/c-stack.c (SIGACTION_WORKS): Simplify conditions.
27378         (c_stack_action) [!SIGACTION_WORKS]: Use sigaction, not signal.
27379         * lib/fatal-signal.c (uninstall_handlers, install_handlers)
27380         (init_fatal_signals): Likewise.
27381         * lib/nanosleep.c (rpl_nanosleep): Likewise.
27382         (siginterrupt): Delete fallback.
27383         * lib/sigprocmask.c (handler_t, old_handlers): Use sa_handler_t
27384         instead.
27385         * m4/nanosleep.m4 (gl_PREREQ_NANOSLEEP): Drop check for
27386         siginterrupt.
27387
27388         New module sigaction, for mingw.
27389         * modules/sigaction: New module...
27390         * modules/sigaction-tests: ...and its test.
27391         * m4/sigaction.m4: New file.
27392         * lib/sigaction.c: Likewise.
27393         * tests/test-sigaction.c: Likewise.
27394         * m4/signal_h.m4 (gl_SIGNAL_H_DEFAULTS): Add sigaction variables.
27395         * modules/signal (Makefile.am): Likewise.
27396         * lib/signal.in.h (!@HAVE_SIGACTION@): Define replacements when
27397         needed.
27398         * doc/posix-headers/signal.texi (signal.h): Mention provided
27399         types.
27400         * doc/posix-functions/siginterrupt.texi (siginterrupt): Mention
27401         that sigaction is preferable.
27402         * doc/posix-functions/sigaction.texi (sigaction): Mention new
27403         module.
27404         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
27405         sigaction.
27406
27407         Improve robustness of sigprocmask by overriding signal.
27408         * lib/signal.in.h (rpl_signal): Override signal when sigprocmask
27409         is in use.
27410         * lib/sigprocmask.c (blocked_handler): Reinstall block handler.
27411         (SIGKILL, SIGSTOP): Provide fallbacks.
27412         (rpl_signal): Implement.
27413         (old_handlers, blocked_set): Mark volatile, since sigprocmask and
27414         signal can be called inside handlers.
27415
27416         Fix nanosleep module on mingw.
27417         * modules/nanosleep (Depends-on): Add sys_select.
27418         * lib/nanosleep.c (HAVE_SYS_SELECT_H): Rely on gnulib module.
27419
27420         Fix licensing of sigprocmask.
27421         * modules/raise (License): Relicense as LGPL.
27422
27423 2008-06-21  Bruno Haible  <bruno@clisp.org>
27424
27425         * lib/propername.c (proper_name_utf8): Don't use the transliterated
27426         result if it contains question marks.
27427         Reported by Michael Geng <linux@michaelgeng.de>.
27428
27429 2008-06-19  Bruno Haible  <bruno@clisp.org>
27430
27431         Fix CVS-ism.
27432         * doc/gnulib.texi: Include updated-stamp.texi.
27433         * doc/Makefile (GNULIB_TEXI_FILES): New variable.
27434         (updated-stamp.texi): New rule.
27435         (gnulib.info): Depend on it.
27436         * doc/.gitignore: Add updated-stamp.texi.
27437         Based on a patch by Thien-Thi Nguyen <ttn@gnuvola.org>.
27438
27439 2008-06-19  Bruno Haible  <bruno@clisp.org>
27440
27441         * doc/Makefile (gnulib.info): Update and simplify dependencies.
27442         Reported by Thien-Thi Nguyen <ttn@gnuvola.org>.
27443
27444 2008-06-19  Eric Blake  <ebb9@byu.net>
27445
27446         Fix VPATH 'make dist' with GNU make and non-VCS tarball.
27447         * top/GNUmakefile (_curr-ver): Don't use $(srcdir) unnecessarily.
27448         Reported by Stepan Kasal.
27449
27450 2008-06-18  Bruno Haible  <bruno@clisp.org>
27451
27452         * lib/fatal-signal.c (init_fatal_signals): Add comment.
27453         Reported by Eric Blake.
27454
27455 2008-06-18  Eric Blake  <ebb9@byu.net>
27456
27457         Work around cygwin 1.5.25 strsignal bug.
27458         * tests/test-strsignal.c: Allow for const char *.
27459         * doc/glibc-functions/strsignal.texi (strsignal): Document the bug.
27460
27461 2008-06-18  Simon Josefsson  <simon@josefsson.org>
27462
27463         * users.txt: Update URL to article and add author/date
27464         information.
27465
27466 2008-06-17  Bruno Haible  <bruno@clisp.org>
27467
27468         New macro gl_DISABLE_THREADS.
27469         * m4/lock.m4 (gl_LOCK_EARLY_BODY): Use value gl_use_threads_default
27470         if the user did not pass --enable-threads or --disable-threads option.
27471         (gl_DISABLE_THREADS): New macro.
27472         Reported by Eric Blake <ebb9@byu.net>.
27473
27474 2008-06-17  Bruno Haible  <bruno@clisp.org>
27475
27476         * lib/tls.h (gl_tls_key_init): Evaluate the destructor argument also
27477         when the macro ignores it.
27478         Based on a patch by Eric Blake <ebb9@byu.net>.
27479
27480 2008-06-17  Bruno Haible  <bruno@clisp.org>
27481
27482         * modules/tls (License): Change to LGPLv2+.
27483         Reported by Eric Blake.
27484
27485 2008-06-17  Eric Blake  <ebb9@byu.net>
27486
27487         Simplify c-stack prerequisites.
27488         * lib/c-stack.c (includes): Remove unused <sys/resource.h>.
27489         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Posix 200x
27490         no longer requires <ucontext.h> to exist.  Optimize setrlimit
27491         check.
27492         (gl_PREREQ_C_STACK): Remove check for unused getcontext and
27493         <sys/resource.h>.
27494
27495         Move c-stack test into testsuite.
27496         * modules/c-stack-tests: New file.
27497         * lib/c-stack.c [DEBUG]: Move test program...
27498         * tests/test-c-stack.c: ...into this new file.  Skip rather than
27499         fail test if sigaltstack is lacking.
27500         * tests/test-c-stack.sh: New driver file.
27501
27502 2008-06-16  Eric Blake  <ebb9@byu.net>
27503
27504         Use raise module consistently.
27505         * modules/fatal-signal (Depends-on): Add raise.
27506         * modules/sigprocmask (Depends-on): Likewise.
27507         * lib/fatal-signal.c (fatal_signal_handler): Rely on raise.
27508         * lib/sigprocmask.c (sigprocmask): Likewise.
27509         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Likewise.
27510         * m4/signalblocking.m4 (gl_PREREQ_SIGPROCMASK): Likewise.
27511
27512         Fix compliance bug in sigpending.
27513         * lib/sigprocmask.c (sigpending): Return pending array via
27514         parameter, not return value.
27515
27516 2008-06-14  Eric Blake  <ebb9@byu.net>
27517
27518         Improve obstack-printf test code.
27519         * tests/test-obstack-printf.c (test_function): Fix comment, and
27520         simplify usage of obstack_* in macros.  Add a test for coverage.
27521         Reported by Bruno Haible.
27522
27523 2008-06-14  Bruno Haible  <bruno@clisp.org>
27524
27525         * lib/obstack_printf.c (obstack_vprintf): Define the stack-allocated
27526         array size as a constant, not as a const variable.
27527         * m4/obstack-printf.m4 (gl_FUNC_OBSTACK_PRINTF): Require
27528         AC_USE_SYSTEM_EXTENSIONS.
27529         * m4/obstack-printf-posix.m4 (gl_FUNC_OBSTACK_PRINTF_POSIX): Likewise.
27530         Test whether the obstack_printf function actually exists.
27531         * modules/obstack-printf (Depends-on): Add extensions.
27532         (Include): Remove obstack.h.
27533         * modules/obstack-printf-posix (Depends-on): Add extensions.
27534         (Include): Remove obstack.h.
27535
27536 2008-06-13  Eric Blake  <ebb9@byu.net>
27537
27538         Add obstack-printf and obstack-printf-posix modules.
27539         * modules/obstack-printf: New file.
27540         * modules/obstack-printf-posix: Likewise.
27541         * MODULES.html.sh (Misc): Mention them.
27542         * doc/glibc-functions/obstack_printf.texi (obstack_printf):
27543         Likewise.
27544         * doc/glibc-functions/obstack_vprintf.texi (obstack_vprintf):
27545         Likewise.
27546         * modules/stdio (Makefile.am): Accomodate new modules.
27547         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Likewise.
27548         * lib/stdio.in.h (rpl_obstack_printf, rpl_obstack_vprintf):
27549         Declare.
27550         * lib/obstack_printf.c (obstack_printf, obstack_vprintf): New
27551         functions.
27552         * m4/obstack-printf.m4 (gl_OBSTACK_PRINTF)
27553         (gl_REPLACE_OBSTACK_PRINTF): New macros
27554         * m4/obstack-printf-posix.m4 (gl_OBSTACK_PRINTF_POSIX): Likewise.
27555         * tests/test-obstack-printf.c: New file.
27556         * modules/obstack-printf-tests: Likewise.
27557         * modules/obstack-printf-posix-tests: Likewise.
27558
27559 2008-06-11  Bruno Haible  <bruno@clisp.org>
27560
27561         * m4/open.m4 (gl_FUNC_OPEN): Add test against trailing slash bug.
27562         * lib/open.c: Include errno.h.
27563         (open): Fail when attempting to write to a file that has a trailing
27564         slash.
27565         * tests/test-open.c (main): Test against trailing slash bug.
27566         * doc/posix-functions/open.texi: Mention the trailing slash bug.
27567
27568 2008-06-10  Bruno Haible  <bruno@clisp.org>
27569
27570         * tests/test-vc-list-files-git.sh: Make double use of 'exit'. Needed
27571         for $? to work inside the trap command, with various /bin/sh-s.
27572         * tests/test-vc-list-files-cvs.sh: Likewise.
27573
27574 2008-06-10  Bruno Haible  <bruno@clisp.org>
27575
27576         * lib/acl-internal.h: Don't include gettext.h here.
27577         * lib/set-mode-acl.c: Include gettext.h here.
27578         * lib/copy-acl.c: Likewise.
27579
27580 2008-06-10  Bruno Haible  <bruno@clisp.org>
27581
27582         * lib/wait-process.h (wait_subprocess): Add termsigp argument.
27583         * lib/wait-process.c (wait_subprocess): Likewise.
27584         * lib/execute.h (execute): Add termsigp argument.
27585         * lib/execute.c (execute): Likewise.
27586         * lib/csharpcomp.c (compile_csharp_using_pnet,
27587         compile_csharp_using_mono, compile_csharp_using_sscli): Update.
27588         * lib/csharpexec.c (execute_csharp_using_pnet,
27589         execute_csharp_using_mono, execute_csharp_using_sscli): Update.
27590         * lib/javacomp.c (compile_using_envjavac, compile_using_gcj,
27591         compile_using_javac, compile_using_jikes, is_envjavac_gcj,
27592         is_envjavac_gcj43, is_gcj_present, is_gcj_43, is_javac_present,
27593         is_jikes_present): Update.
27594         * lib/javaexec.c (execute_java_class): Update.
27595         * lib/javaversion.c (execute_and_read_line): Update.
27596         * NEWS: Document the changes.
27597         Reported by Eric Blake.
27598
27599 2008-06-10  Eric Blake  <ebb9@byu.net>
27600
27601         Add missing include.
27602         * tests/test-strstr.c (includes): Add <signal.h>.
27603         * tests/test-strcasestr.c (includes): Likewise.
27604         * tests/test-memmem.c (includes): Likewise.
27605
27606 2008-06-10  Bruno Haible  <bruno@clisp.org>
27607
27608         * lib/wait-process.c (wait_subprocess): Add an assertion.
27609
27610 2008-06-10  Bruno Haible  <bruno@clisp.org>
27611
27612         * lib/wait-process.c (wait_subprocess): Try to fix waitid() based code.
27613
27614 2008-06-10  Bruno Haible  <bruno@clisp.org>
27615
27616         * tests/test-memmem.c (main): Reset SIGALRM to default handling before
27617         using alarm().
27618         * tests/test-strcasestr.c (main): Likewise.
27619         * tests/test-strstr.c (main): Likewise.
27620
27621 2008-06-09  Bruno Haible  <bruno@clisp.org>
27622
27623         Work around the Solaris 10 ACE ACLs ABI change.
27624         * lib/acl-internal.h (acl_nontrivial, acl_ace_nontrivial): Don't
27625         declare if ACL_NO_TRIVIAL is present.
27626         (ACE_ACCESS_ALLOWED_ACE_TYPE, ACE_ACCESS_DENIED_ACE_TYPE,
27627         NEW_ACE_OWNER, NEW_ACE_GROUP, NEW_ACE_IDENTIFIER_GROUP, ACE_EVERYONE,
27628         NEW_ACE_READ_DATA, NEW_ACE_WRITE_DATA, NEW_ACE_EXECUTE): New macros.
27629         * lib/file-has-acl.c (acl_nontrivial, acl_ace_nontrivial): Don't
27630         define if ACL_NO_TRIVIAL is present.
27631         (acl_ace_nontrivial): Detect whether the old or new ABI is in use,
27632         and use the current ABI.
27633         (file_has_acl): Use same #if condition as elsewhere.
27634         * lib/set-mode-acl.c (qset_acl): Detect whether the old or new ABI is
27635         in use, and use the current ABI.
27636         * doc/acl-resources.txt: More doc about newer Solaris 10 versions.
27637         Reported by Jim Meyering.
27638
27639 2008-06-09  Eric Blake  <ebb9@byu.net>
27640
27641         Work around environments that (stupidly) ignore SIGALRM.
27642         * m4/strstr.m4 (gl_FUNC_STRSTR): Reset SIGALRM to default handling
27643         before using alarm().
27644         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
27645         * m4/memmem.m4 (gl_FUNC_MEMMEM): Likewise.
27646         Reported by Ian Beckwith <ianb@erislabs.net>.
27647
27648         Produce autobuild blurb earlier in log.
27649         * modules/autobuild (configure.ac-early): Move AB_INIT here.
27650
27651 2008-06-09  Jim Meyering  <meyering@redhat.com>
27652         and OndÅ™ej Vašík  <ovasik@redhat.com>
27653
27654         utimens.c: correct kernel bug work-around
27655         OndÅ™ej Vašík found that the invalid return value of 280 indicates
27656         failure, not success, and the kernel bug we're trying to work
27657         around affects not just the utimensat call, but also the fallback
27658         futimens call.
27659         * lib/utimens.c (gl_futimens) [HAVE_UTIMENSAT]: Simulate failure,
27660         not success.
27661         [HAVE_FUTIMENS]: Use the same work-around, here.
27662
27663 2008-06-09  Jim Meyering  <meyering@redhat.com>
27664
27665         add more guards around definition of ACE_-related code
27666         * lib/file-has-acl.c (acl_ace_nontrivial): Define only if
27667         ALLOW and ACE_OWNER are also defined.
27668
27669 2008-06-08  Bruno Haible  <bruno@clisp.org>
27670
27671         * lib/acl-internal.h: Add me as co-author.
27672         * lib/file-has-acl.c: Likewise.
27673         * lib/set-mode-acl.c: Likewise.
27674         * lib/copy-acl.c: Likewise.
27675
27676 2008-06-08  Bruno Haible  <bruno@clisp.org>
27677
27678         Add support for AIX ACLs.
27679         * lib/acl-internal.h (acl_nontrivial): New declaration.
27680         * lib/file-has-acl.c (acl_nontrivial): New function.
27681         (file_has_acl): Add implementation using AIX 4 ACL API.
27682         * lib/set-mode-acl.c (qset_acl): Likewise.
27683         * lib/copy-acl.c (qcopy_acl): Likewise.
27684
27685 2008-06-08  Bruno Haible  <bruno@clisp.org>
27686
27687         Add support for HP-UX ACLs.
27688         * lib/acl-internal.h (acl_nontrivial): New declaration.
27689         * lib/file-has-acl.c (acl_nontrivial): New function.
27690         (file_has_acl): Add implementation using HP-UX 11 ACL API.
27691         * lib/set-mode-acl.c (qset_acl): Likewise.
27692         * lib/copy-acl.c (qcopy_acl): Likewise.
27693
27694 2008-06-08  Bruno Haible  <bruno@clisp.org>
27695
27696         Add support for Cygwin ACLs.
27697         * lib/acl-internal.h (MODE_INSIDE_ACL): New macro for Solaris-like API.
27698         * lib/set-mode-acl.c (qset_acl) [!MODE_INSIDE_ACL]: Don't optimize away
27699         the chmod_or_fchmod call.
27700         * lib/copy-acl.c (qcopy_acl) [!MODE_INSIDE_ACL]: Likewise.
27701
27702 2008-06-08  Bruno Haible  <bruno@clisp.org>
27703
27704         Fix bug with setuid modes in Solaris 10+ code.
27705         * lib/set-mode-acl.c (qset_acl): Call chmod_or_fchmod when acl_set
27706         succeeded, when the mode contains some special bits.
27707
27708 2008-06-08  Bruno Haible  <bruno@clisp.org>
27709
27710         Add support for Solaris 7..10 ACLs.
27711         * lib/acl-internal.h (acl_nontrivial, acl_ace_nontrivial): New
27712         declarations.
27713         * lib/file-has-acl.c (acl_nontrivial, acl_ace_nontrivial): New
27714         functions.
27715         (file_has_acl): Add implementation using Solaris 7..10 ACL API.
27716         * lib/set-mode-acl.c (qset_acl): Likewise.
27717         * lib/copy-acl.c (qcopy_acl): Likewise.
27718
27719 2008-06-08  Bruno Haible  <bruno@clisp.org>
27720
27721         * lib/acl-internal.h (acl_extended_nontrivial) [MacOS X]: New
27722         declaration.
27723         * lib/file-has-acl.c (acl_extended_nontrivial) [MacOS X]: New function.
27724         (acl_access_nontrivial): Remove MacOS X case.
27725         (file_has_acl): Use acl_extended_nontrivial.
27726         * lib/copy-acl.c (qcopy_acl): Likewise.
27727
27728 2008-06-08  Bruno Haible  <bruno@clisp.org>
27729
27730         * lib/set-mode-acl.c (qset_acl): Trivial code simplifications.
27731
27732 2008-06-08  Jim Meyering  <meyering@redhat.com>
27733
27734         * modules/acl (Maintainer): Add Bruno Haible.
27735
27736 2008-06-07  Bruno Haible  <bruno@clisp.org>
27737
27738         Improve support for Tru64 ACLs.
27739         * lib/file-has-acl.c (file_has_acl): Don't test the ACL_TYPE_DEFAULT
27740         ACL on OSF/1.
27741
27742 2008-06-07  Bruno Haible  <bruno@clisp.org>
27743
27744         Add support for MacOS X ACLs.
27745         * lib/file-has-acl.c (file_has_acl): Use ACL_TYPE_EXTENDED instead of
27746         ACL_TYPE_ACCESS and ACL_TYPE_DEFAULT.
27747         * lib/set-mode-acl.c (qset_acl): Likewise.
27748         * lib/copy-acl.c (qcopy_acl): Likewise.
27749
27750 2008-06-07  Bruno Haible  <bruno@clisp.org>
27751
27752         Fix memory leak introduced on 2008-05-22.
27753         * lib/set-mode-acl.c (qset_acl) [!MODE_INSIDE_ACL]: Free ACLs after
27754         use.
27755
27756 2008-06-07  Bruno Haible  <bruno@clisp.org>
27757
27758         * lib/set-mode-acl.c (qset_acl): Use acl_init(), not acl_from_text(),
27759         to construct an empty ACL.
27760
27761 2008-06-07  Bruno Haible  <bruno@clisp.org>
27762
27763         * lib/set-mode-acl.c (chmod_or_fchmod): Document return value
27764         precisely.
27765         * lib/copy-acl.c (qcopy_acl): Trivial code simplifications.
27766
27767 2008-06-07  Bruno Haible  <bruno@clisp.org>
27768
27769         * lib/copy-acl.c (qcopy_acl): Make the #if branches independent.
27770         * lib/set-mode-acl.c (qset_acl): Choose better local variable names.
27771
27772 2008-06-07  Bruno Haible  <bruno@clisp.org>
27773
27774         * doc/posix-functions/_setjmp.texi: Explain the use of this function
27775         regardless of POSIX.
27776         * doc/posix-functions/_longjmp.texi: Likewise.
27777         * doc/posix-functions/setjmp.texi: Mention HP-UX as not counting as a
27778         SystemV platform in this case.
27779
27780 2008-06-06  Eric Blake  <ebb9@byu.net>
27781
27782         Document abort() bugs.
27783         * doc/posix-functions/abort.texi (abort): Mention anomalies.
27784
27785         * doc/posix-functions/setjmp.texi (setjmp): Mingw has setjmp.
27786         * doc/posix-functions/sigsetjmp.texi (sigsetjmp): Cygwin has
27787         sigsetjmp.
27788         * doc/posix-functions/siglongjmp.texi (siglongjmp): Cygwin has
27789         siglongjmp, but only as a macro.
27790         * doc/posix-functions/_longjmp.texi (_longjmp): Mention that this
27791         is obsolete.
27792         * doc/posix-functions/_setjmp.texi (_setjmp): Likewise.
27793
27794         Tweak documentation to cover cygwin argz bugs.
27795         * m4/argz.m4 (gl_FUNC_ARGZ): Mention date of last known cygwin
27796         argz bug fix; no code change needed since no cygwin releases
27797         occurred between the last fix and the bug being tested.
27798         * doc/glibc-functions/argz_add.texi (argz_add): Document the argz
27799         module and recently fixed cygwin bugs.
27800         * doc/glibc-functions/argz_add_sep.texi (argz_add_sep): Likewise.
27801         * doc/glibc-functions/argz_append.texi (argz_append): Likewise.
27802         * doc/glibc-functions/argz_count.texi (argz_count): Likewise.
27803         * doc/glibc-functions/argz_create.texi (argz_create): Likewise.
27804         * doc/glibc-functions/argz_create_sep.texi (argz_create_sep):
27805         Likewise.
27806         * doc/glibc-functions/argz_delete.texi (argz_delete): Likewise.
27807         * doc/glibc-functions/argz_extract.texi (argz_extract): Likewise.
27808         * doc/glibc-functions/argz_insert.texi (argz_insert): Likewise.
27809         * doc/glibc-functions/argz_next.texi (argz_next): Likewise.
27810         * doc/glibc-functions/argz_replace.texi (argz_replace): Likewise.
27811         * doc/glibc-functions/argz_stringify.texi (argz_stringify):
27812         Likewise.
27813
27814         Avoid gcc warning on cygwin.
27815         * lib/copy-acl.c (qcopy_acl) [!HAVE_ACL_GET_FILE &&
27816         !ACL_NO_TRIVIAL]: Avoid unused variable.
27817
27818 2008-06-05  Eric Blake  <ebb9@byu.net>
27819
27820         Be tolerant of UNKNOWN version in gnulib-tool test dir.
27821         * top/GNUmakefile (_dummy): Warn rather than reconfigure if
27822         git-version-gen fails to come up with a version.
27823         Reported by Simon Josefsson.
27824
27825 2008-06-05  Jim Meyering  <meyering@redhat.com>
27826             Paul Eggert  <eggert@cs.ucla.edu>
27827
27828         utimens.c: work around a probable Linux kernel bug
27829         * lib/utimens.c (gl_futimens) [HAVE_UTIMENSAT]: Work around what
27830         appears to be a kernel bug that causes utimensat to return 280
27831         instead of 0, indicating success.
27832
27833 2008-06-04  Bruno Haible  <bruno@clisp.org>
27834
27835         * lib/copy-acl.c (qcopy_acl): Call qset_acl, not set_acl. Fixes
27836         2008-06-01 commit.
27837
27838 2008-06-04  Bruno Haible  <bruno@clisp.org>
27839
27840         * lib/acl-internal.h (acl_access_nontrivial): New declaration.
27841         * lib/file-has-acl.c (acl_access_nontrivial): New function.
27842         (file_has_acl): Use it. Save errno afterwards.
27843         * lib/copy-acl.c (qcopy_acl): Use acl_access_nontrivial.
27844
27845 2008-06-03  Bruno Haible  <bruno@clisp.org>
27846
27847         * lib/file-has-acl.c (file_has_acl): Put Solaris 10 code after POSIX-
27848         draft code. Simplify #ifs.
27849         * lib/set-mode-acl.c (qset_acl): Don't test for symlink if !USE_ACL.
27850         Put Solaris code after POSIX-draft code. Fix comments regarding
27851         Solaris 10, HP-UX. Mention Cygwin.
27852         * lib/copy-acl.c (qcopy_acl): Simplify #ifs.
27853
27854 2008-06-03  Eric Blake  <ebb9@byu.net>
27855
27856         Provide fallback for older kernels.
27857         * lib/utimens.c (gl_futimens) [HAVE_UTIMENSAT, HAVE_FUTIMENS]:
27858         Provide runtime fallback if kernel lacks support.
27859         Reported by Mike Frysinger.
27860
27861 2008-06-02  Bruno Haible  <bruno@clisp.org>
27862
27863         * lib/acl-internal.h (ACL_NOT_WELL_SUPPORTED): Include EOPNOTSUPP if
27864         it exists.
27865
27866 2008-06-02  Bruno Haible  <bruno@clisp.org>
27867
27868         * lib/acl_entries.c (acl_entries): Rewrite to use acl_get_entry.
27869         * lib/copy-acl.c (qcopy_acl): Update comment.
27870
27871 2008-06-02  Bruno Haible  <bruno@clisp.org>
27872
27873         * lib/acl-entries.h: Enclose most definitions in #ifs for POSIX-draft
27874         like ACL APIs.
27875
27876 2008-06-02  Bruno Haible  <bruno@clisp.org>
27877
27878         * tests/test-file-has-acl.sh: Use different code for Cygwin.
27879         * tests/test-set-mode-acl.sh: Likewise.
27880         * tests/test-copy-acl.sh: Likewise.
27881         * tests/test-copy-file.sh: Likewise.
27882
27883 2008-06-02  Bruno Haible  <bruno@clisp.org>
27884
27885         * tests/test-file-has-acl.sh: Remove unused code.
27886
27887 2008-06-01  Bruno Haible  <bruno@clisp.org>
27888
27889         * lib/copy-acl.c (qcopy_acl): New function, extracted from copy_acl.
27890         (copy_acl): Just a wrapper around qcopy_acl that emits the error
27891         messages.
27892         * lib/set-mode-acl.c (qset_acl): Document return value precisely.
27893
27894 2008-06-01  Bruno Haible  <bruno@clisp.org>
27895
27896         * m4/acl.m4 (gl_FUNC_ACL): Separate the POSIX-like and the Solaris
27897         tests. Test for libpacl, needed for OSF/1. Test for extended ACLs,
27898         needed for MacOS X. Test for HP-UX API. Test for newer and older AIX
27899         APIs.
27900         * modules/acl-tests (configure.ac): Remove tests now contained in
27901         m4/acl.m4.
27902
27903 2008-06-02  Jim Meyering  <meyering@redhat.com>
27904
27905         announce-gen: use a better key-server host name
27906         * build-aux/announce-gen (main): Recommend keys.gnupg.net, since
27907         it may be more consistently reliable.  Suggested by Werner Koch
27908         in <http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/13717>.
27909
27910 2008-06-01  Bruno Haible  <bruno@clisp.org>
27911
27912         * lib/stdio-impl.h (fp_ub): Use fp_. Needed for DragonFly BSD.
27913         Reported by Voroskoi Andras <voroskoi@gmail.com>.
27914
27915 2008-06-01  Voroskoi Andras  <voroskoi@gmail.com>  (tiny change)
27916
27917         * lib/stdio-impl.h [__DragonFly__]: Fix typo.
27918
27919 2008-06-01  Bruno Haible  <bruno@clisp.org>
27920
27921         New ACL tests.
27922         * tests/test-file-has-acl.sh: New file.
27923         * tests/test-file-has-acl.c: New file.
27924         * tests/test-set-mode-acl.sh: New file.
27925         * tests/test-set-mode-acl.c: New file.
27926         * tests/test-copy-acl.sh: New file, based on tests/test-copy-file.sh.
27927         * tests/test-copy-acl.c: New file.
27928         * modules/acl-tests: New file, based on modules/copy-file-tests.
27929         * modules/copy-file-tests (Files): Remove tests/test-sameacls.c.
27930         (Depends-on): Add acl-tests.
27931         (configure.ac): Remove checks.
27932         (Makefile.am): Don't create test-sameacls program here any more.
27933
27934 2008-06-01  Bruno Haible  <bruno@clisp.org>
27935
27936         * tests/test-copy-file.sh: Portability fixes for Solaris, HP-UX, IRIX.
27937         * tests/test-sameacls.c: Include progname.h.
27938         (main): Invoke set_program_name. Portability fixes for MacOS X,
27939         Solaris, HP-UX.
27940
27941 2008-06-01  Bruno Haible  <bruno@clisp.org>
27942
27943         * lib/freadahead.c (freadahead) [__DragonFly__]: Use the __sreadahead
27944         function.
27945         Reported by VOROSKOI Andras <voroskoi@gmail.com>.
27946
27947 2008-06-01  Bruno Haible  <bruno@clisp.org>
27948
27949         * modules/rpmatch (Depends-on): Add strdup.
27950
27951 2008-06-01  Bruno Haible  <bruno@clisp.org>
27952
27953         * lib/pipe.c: Include unistd-safer.h.
27954         (create_pipe): Ensure the returned file descriptors are not in {0,1,2}.
27955         * modules/pipe (Depends-on): Add unistd-safer.
27956
27957 2008-05-30  Simon Josefsson  <simon@josefsson.org>
27958
27959         * modules/autobuild (configure.ac): Call AB_INIT.
27960
27961 2008-05-30  Simon Josefsson  <simon@josefsson.org>
27962
27963         * tests/test-getaddrinfo.c: Don't print debug messages by default.
27964         Suggested by Bruno Haible <bruno@clisp.org>.
27965
27966 2008-05-30  Simon Josefsson  <simon@josefsson.org>
27967
27968         * tests/test-base64.c: Cast size_t to unsigned long when invoking
27969         printf.  Use %lu instead of %d.  Reported by Bruno Haible
27970         <bruno@clisp.org>.
27971
27972 2008-05-29  Eric Blake  <ebb9@byu.net>
27973
27974         Prefer new POSIX 200x interfaces over futimesat.
27975         * m4/utimens.m4 (gl_UTIMENS): Check for futimens, utimensat.
27976         * lib/utimens.c (gl_futimens): Use them for nanosecond resolution
27977         when available.
27978         [HAVE_BUGGY_NFS_TIME_STAMPS]: Allow C89 compilation.
27979
27980 2008-05-28  Bruno Haible  <bruno@clisp.org>
27981
27982         * modules/stpcpy (License): Change to LGPLv2+.
27983         Requested by David Lutterkort <dlutter@redhat.com>.
27984
27985 2008-05-27  Bruno Haible  <bruno@clisp.org>
27986
27987         * lib/localename.c (SUBLANG_TIBETAN_BHUTAN): Force value 2. Needed for
27988         current mingw.
27989         Reported by Jose E. Marchesi <jemarch@gnu.org>.
27990
27991 2008-05-27  Bruno Haible  <bruno@clisp.org>
27992
27993         * modules/iconv_open (Link): New section, from module 'iconv'.
27994         * modules/striconv (Link): Likewise.
27995         * modules/striconveh (Link): Likewise.
27996         * modules/xstriconv (Link): Likewise.
27997         * modules/unicodeio (Link): Likewise.
27998         * modules/propername (Link): Likewise.
27999         Reported by Jim Meyering.
28000
28001 2008-05-26  Jim Meyering  <meyering@redhat.com>
28002
28003         sha256: do not artificially restrict buffer length to be < 2^32
28004         * lib/sha256.h (struct sha256_ctx) [buflen]: Change type from
28005         uint32_t to size_t.
28006         * lib/sha256.c (sha256_conclude_ctx): Change type of a local
28007         to match.
28008
28009         avoid unaligned access errors, e.g., on sparc
28010         * lib/sha512.c (sha512_conclude_ctx): Use set_uint64 rather than
28011         direct access through a possibly-unaligned uint64* pointer.
28012         * lib/sha256.c (sha256_conclude_ctx): Use set_uint32 rather than
28013         direct access through a possibly-unaligned uint32* pointer.
28014         Prompted by this patch from Tom "spot" Callaway:
28015         http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/13638
28016
28017         sha512.c: fix typo in comment
28018         * lib/sha512.c (sha512_conclude_ctx): Length is 128-bit, not 64-bit.
28019
28020 2008-05-25  Bruno Haible  <bruno@clisp.org>
28021
28022         * lib/set-mode-acl.c: Renamed from lib/acl.c.
28023         * modules/acl (Files): Add lib/set-mode-acl.c, remove lib/acl.c.
28024         (Makefile.am): Update lib_SOURCES.
28025
28026 2008-05-25  Bruno Haible  <bruno@clisp.org>
28027
28028         * m4/acl.m4 (gl_FUNC_ACL): Don't set LIB_ACL_TRIVIAL.
28029
28030 2008-05-25  Jim Meyering  <meyering@redhat.com>
28031
28032         useless-if-before-free: freed expr may have white-space differences
28033         * build-aux/useless-if-before-free: Recognize cases in which the
28034         freed expression differs from the tested one in embedded white
28035         space, e.g., if (p[i + 1]) free(p[i+1]).  Correct thinko in prev:
28036         $1 was used, so we can't make any regexp shy.  Improved tests now
28037         detect this.
28038
28039         useless-if-before-free: accept white space in the expression.
28040         * build-aux/useless-if-before-free: For now, any white space
28041         in the expression must be identical in the free argument.
28042
28043         useless-if-before-free: efficiency tweak
28044         * build-aux/useless-if-before-free: Make the expression-matching
28045         regexp "shy".
28046         Make the *outer* regexp shy, not the expr-matching one.
28047
28048         update code-in-comment to accept cast of free arg
28049         * build-aux/useless-if-before-free: Update regexp.
28050
28051 2008-05-25  Bruno Haible  <bruno@clisp.org>
28052
28053         * tests/test-sameacls.c: Renamed from tests/test-copy-file-sameacls.c.
28054         * modules/copy-file-tests (Files, Makefile.am): Update.
28055         * tests/test-copy-file.c (func_test_copy): Update.
28056
28057 2008-05-24  Andreas Färber  <andreas.faerber@web.de>  (tiny change)
28058
28059         * lib/stdbool.in.h [__HAIKU__]: Disable __BEOS__ workarounds.
28060
28061 2008-05-23  Bruno Haible  <bruno@clisp.org>
28062
28063         Improve support for ACLs on OSF/1.
28064         * lib/acl.c (qset_acl): For OSF/1, use a string that ends in a comma.
28065         Remove fallback for unknown flavors of ACLs.
28066
28067 2008-05-22  Bruno Haible  <bruno@clisp.org>
28068
28069         Add support for ACLs on OSF/1.
28070         * lib/acl-internal.h (acl_get_fd, acl_set_fd): New inline function
28071         replacements.
28072         (acl_free_text): New macro fallback.
28073         * lib/acl_entries.c (acl_entries): Use acl_free_text instead of
28074         acl_free.
28075         * m4/acl.m4 (gl_FUNC_ACL): Look also in libpacl library. Test for
28076         acl_free_text function. Require AC_C_INLINE.
28077
28078 2008-05-22  Bruno Haible  <bruno@clisp.org>
28079
28080         Make copy_acl work on MacOS X 10.5.
28081         * lib/acl-internal.h (MODE_INSIDE_ACL): New macro.
28082         (ACL_NOT_WELL_SUPPORTED): On MacOS X, also handle ENOENT.
28083         * lib/acl.c (qset_acl): Add different code branch for !MODE_INSIDE_ACL.
28084         If MODE_INSIDE_ACL, don't assume that every system has the same text
28085         representation for ACLs as FreeBSD.
28086         * lib/copy-acl.c (copy_acl): Add support for platforms with
28087         !MODE_INSIDE_ACL.
28088         * lib/file-has-acl.c (file_has_acl): Likewise.
28089         * m4/acl.m4 (gl_FUNC_ACL): Test for some functions that are witness of
28090         FreeBSD, MacOS X, or IRIX, respectively.
28091
28092 2008-05-22  Bruno Haible  <bruno@clisp.org>
28093
28094         * lib/acl.h: Don't include <sys/acl.h>.
28095         (GETACLCNT): Move fallback to lib/acl-internal.h.
28096         * lib/acl-internal.h: Include <sys/acl.h> here.
28097         (GETACLCNT): New macro fallback, moved here from lib/acl.h.
28098
28099 2008-05-22  Bruno Haible  <bruno@clisp.org>
28100
28101         Split off copy_acl function to separate file.
28102         * lib/copy-acl.c: New file, extracted from lib/acl.c.
28103         * lib/acl.c (copy_acl): Moved function to separate file.
28104         * m4/acl.m4 (gl_FUNC_ACL): Remove unconditional AC_LIBOBJs.
28105         * modules/acl (Files): Add lib/copy-acl.c.
28106         (Makefiles.am): Augment lib_SOURCES.
28107
28108 2008-05-22  Bruno Haible  <bruno@clisp.org>
28109
28110         * modules/copy-file-tests: New file.
28111         * tests/test-copy-file.sh: New file.
28112         * tests/test-copy-file.c: New file.
28113         * tests/test-copy-file-sameacls.c: New file.
28114
28115 2008-05-22  Eric Blake  <ebb9@byu.net>
28116
28117         Avoid gcc warning.
28118         * tests/test-memcmp.c (main): Pass NULL indirectly.
28119
28120 2008-05-21  Bruno Haible  <bruno@clisp.org>
28121
28122         Add reference doc about ACLs.
28123         * doc/acl-resources.txt: New file.
28124         * doc/acl-cygwin.txt: New file.
28125
28126 2008-05-21  Bruno Haible  <bruno@clisp.org>
28127
28128         Avoid one more warning from gcc.
28129         * lib/vasnprintf.c (IF_LINT): Update comments.
28130         (VASNPRINTF): Use it also for the 'prefix' array initializer.
28131
28132 2008-05-21  Jim Meyering  <meyering@redhat.com>
28133
28134         avoid a warning from gcc
28135         * lib/vasnprintf.c (IF_LINT): Define.
28136         (scale10_round_decimal_long_double):
28137         Use it to avoid a "may be used uninitialized" warning.
28138         (scale10_round_decimal_double): Likewise.
28139
28140 2008-05-21  Simon Josefsson  <simon@josefsson.org>
28141
28142         * m4/memcmp.m4: When cross-compiling, assume memcmp works if it is
28143         declared.
28144
28145 2008-05-20  Bruno Haible  <bruno@clisp.org>
28146
28147         * tests/test-memcmp.c (main): Test also the sign of the result. Test
28148         against two known bugs; code taken from autoconf's AC_FUNC_MEMCMP.
28149
28150 2008-05-20  Simon Josefsson  <simon@josefsson.org>
28151
28152         * modules/memcmp-tests: New file.
28153         * tests/test-memcmp.c: New file.
28154
28155 2008-05-19  Bruno Haible  <bruno@clisp.org>
28156
28157         * modules/propername (Notice, configure.ac): Put quoted "..." into
28158         --keyword option.
28159         * lib/propername.h: Update comments accordingly.
28160         Reported by Eric Blake.
28161
28162 2008-05-19  Martin Lambers  <marlam@marlam.de>  (tiny change)
28163
28164         * modules/getpass-gnu (Depends-on): Add fseeko.
28165
28166 2008-05-19  Simon Josefsson  <simon@josefsson.org>
28167
28168         * modules/base64-tests: New file.
28169
28170 2008-05-19  Bo Borgerson <gigabo@gmail.com>
28171
28172         * lib/base64.c (base64_decode_ctx): If a decode context structure
28173         was passed in use it to ignore newlines.  If a context structure
28174         was _not_ passed in, continue to treat newlines as garbage (this
28175         is the historical behavior).  Formerly base64_decode.
28176         (base64_decode_alloc_ctx): Formerly base64_decode_alloc.  Now
28177         takes a decode context structure.
28178         * lib/base64.h (base64_decode): Macro for four-argument calls.
28179         (base64_decode_alloc): Likewise.
28180         * lib/base64.c (base64_decode_ctx): If a decode context structure
28181         was passed in use it to ignore newlines.  If a context structure
28182         was _not_ passed in, continue to treat newlines as garbage (this
28183         is the historical behavior).  Formerly base64_decode.
28184         (base64_decode_alloc_ctx): Formerly base64_decode_alloc.  Now
28185         takes a decode context structure.
28186         * lib/base64.h (base64_decode): Macro for four-argument calls.
28187         (base64_decode_alloc): Likewise.
28188
28189 2008-05-19  Jim Meyering  <meyering@redhat.com>
28190
28191         avoid a warning from gcc
28192         * lib/trim.c (IF_LINT): Define.
28193         (trim2): Use it to avoid a "may be used uninitialized" warning.
28194
28195         Fix doc typo.
28196         * doc/glibc-functions/getpass.texi (getpass): s/PATH_MAX/PASS_MAX/.
28197
28198 2008-05-19  Bruno Haible  <bruno@clisp.org>
28199
28200         * doc/glibc-functions/getpass.texi: Document limits of other
28201         implementations.
28202
28203 2008-05-19  Simon Josefsson  <simon@josefsson.org>
28204             Bruno Haible <bruno@clisp.org>
28205
28206         * doc/glibc-functions/getpass.texi: Document gnulib implementation.
28207
28208 2008-05-18  Bruno Haible  <bruno@clisp.org>
28209
28210         * modules/propername: New file, from GNU gettext.
28211         * lib/propername.h: New file, from GNU gettext.
28212         * lib/propername.c: New file, from GNU gettext.
28213         * MODULES.html.sh (Internationalization functions): Add propername.
28214
28215 2008-05-16  Jim Meyering  <meyering@redhat.com>
28216             Bruno Haible  <bruno@clisp.org>
28217
28218         Avoid some warnings from "gcc -Wshadow".
28219         * lib/vasnprintf.c (exp, remainder): Define to different identifiers.
28220
28221 2008-05-15  Eric Blake  <ebb9@byu.net>
28222
28223         Extend previous patch to cygwin 1.7.0.
28224         * m4/memmem.m4 (gl_FUNC_MEMMEM): When cross-compiling, assume a
28225         fast implementation in cygwin >= 1.7.0.
28226         * m4/strstr.m4 (gl_FUNC_STRSTR): Likewise.
28227         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
28228
28229 2008-05-15  Bruno Haible  <bruno@clisp.org>
28230
28231         * m4/memmem.m4 (gl_FUNC_MEMMEM): When cross-compiling, assume a fast
28232         implementation in glibc >= 2.9.
28233         * m4/strstr.m4 (gl_FUNC_STRSTR): Likewise.
28234         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
28235
28236 2008-05-15  Bruno Haible  <bruno@clisp.org>
28237
28238         * MODULES.html.sh (Internationalization functions): Remove linebreak.
28239         (Unicode string functions): Add unilbrk/*.
28240         Reported by Karl Berry.
28241
28242 2008-05-15  Eric Blake  <ebb9@byu.net>
28243
28244         Fix violation of <stdbool.h> replacement in regex.
28245         * lib/regcomp.c (re_compile_internal): Avoid implicit cast to bool.
28246         * lib/regexec.c (re_search_internal): Likewise.
28247         Reported by Heinrich Mislik <Heinrich.Mislik@univie.ac.at>.
28248
28249 2008-05-15  Jim Meyering  <meyering@redhat.com>
28250
28251         avoid distracting test output when git or cvs is not found
28252         * tests/test-vc-list-files-cvs.sh: Suppress 'init' error output.
28253         * tests/test-vc-list-files-git.sh: Likewise.
28254
28255 2008-05-15  Eric Blake  <ebb9@byu.net>
28256
28257         Glibc finally accepted the memmem speedup code, bugzilla #5514.
28258         * doc/glibc-functions/memmem.texi (memmem): Mention last broken
28259         glibc version.
28260         * doc/glibc-functions/strcasestr.texi (strcasestr): Likewise.
28261         * doc/posix-functions/strstr.texi (strstr): Likewise.
28262         * lib/str-two-way.h (MAX): Sychronize with glibc.
28263
28264 2008-05-15  Paolo Bonzini  <bonzini@gnu.org>
28265
28266         * lib/regcomp.c (optimize_utf8): Add a note on why we test
28267         opr.ctx_type.
28268         (calc_first): Initialize constraint field.
28269         (duplicate_node_closure): Use it instead of special casing ANCHORS.
28270         Fix grammar.
28271         (duplicate_node): Merge constraint field for all node types.
28272         (calc_eclosure_iter): Look at constraint field for all node types.
28273         * lib/regex_internal.c (create_cd_newstate): Don't look at
28274         opr.ctx_type.
28275
28276 2008-05-14  Bruno Haible  <bruno@clisp.org>
28277
28278         Help GCC to do better code generation.
28279         * lib/eealloc.h (eemalloc) [GCC >= 3]: Declare with attribute 'malloc'.
28280         * lib/pagealign_alloc.h (pagealign_alloc, pagealign_xalloc): Likewise.
28281         * lib/xalloc.h (ATTRIBUTE_MALLOC): New macro.
28282         (xmalloc, xzalloc, xcalloc, xmemdup, xstrdup, xnmalloc, xcharalloc):
28283         Declare with attribute 'malloc' if supported.
28284
28285 2008-05-14  Lasse Collin  <lasse.collin@tukaani.org>
28286
28287         use "echo STR|wc -c" rather than unportable "expr length STR"
28288         * build-aux/mktempd (mktempd): Vendor-supplied expr from at least
28289         OpenBSD 4.3 and Solaris 10 do not honor expr's "length" function.
28290
28291 2008-05-14  Jim Meyering  <meyering@redhat.com>
28292
28293         use dd ibs=$n count=1 ... rather than less-portable head -c$n
28294         * build-aux/mktempd (rand_bytes): head's -cN option is not accepted
28295         by Solaris 10's /bin/head or by the one from HP-UX 11.x.
28296         Reported in http://sourceforge.net/forum/message.php?msg_id=4960334
28297         via Collin Lasse.
28298
28299 2008-05-14  Eric Blake  <ebb9@byu.net>
28300
28301         Avoid quadratic growth in gl_LIBSOURCES.
28302         * gnulib-tool (func_emit_initmacro_done): s/\(m4_append\)_uniq/\1/.
28303         Suggested by Bruno Haible.
28304
28305         Test xmemdup0.
28306         * modules/xmemdup0-tests: New file.
28307         * tests/test-xmemdup0.c: Likewise.
28308
28309 2008-05-13  Eric Blake  <ebb9@byu.net>
28310
28311         Split xmemdup0 into its own module.
28312         * modules/xmemdup0: New file.
28313         * lib/xmemdup0.h: Likewise.
28314         * lib/xmemdup0.c: Likewise.
28315         * MODULES.html.sh (Memory management functions): Add xmemdup0.
28316         * lib/xalloc.h (xmemdup0): Remove.
28317         * lib/xmalloc.c (xmemdup0): Likewise.
28318
28319 2008-05-13  Eric Blake  <ebb9@byu.net>
28320             Bruno Haible  <bruno@clisp.org>
28321
28322         Reduce number of forks required during autoconf.
28323         * gnulib-tool (func_emit_initmacro_start): Prepare gl_LIBSOURCES_LIST
28324         and gl_LIBSOURCES_DIR.
28325         (func_emit_initmacro_end): Use them here in a single m4_syscmd...
28326         (func_emit_initmacro_done) <gl_LIBSOURCES>: ...rather than in one
28327         m4_syscmd per file.
28328         <m4_foreach_w>: Move...
28329         * m4/gnulib-common.m4 (m4_foreach_w): ...here.
28330
28331 2008-05-13  Eric Blake  <ebb9@byu.net>
28332
28333         * gnulib-tool: Fix various comment typos.
28334
28335 2008-05-12  Bruno Haible  <bruno@clisp.org>
28336
28337         Tailor the linebreaking algorithm.
28338         * lib/unilbrk/tables.c (unilbrk_table): Change (IS,AL) entry.
28339
28340 2008-05-12  Bruno Haible  <bruno@clisp.org>
28341
28342         Update to Unicode 5.0.0.
28343         * lib/unilbrk/tables.h (LBP_*): Add LBP_WJ, LBP_H2, LBP_H3, LBP_JL,
28344         LBP_JV, LBP_JT. Redistribute values.
28345         (unilbrk_table): Change size.
28346         * lib/unilbrk/tables.c (unilbrk_table): Change size. Update to match
28347         Unicode TR#14 rev. 22.
28348         * lib/unilbrk/gen-lbrk.c (LBP_*): Add LBP_WJ, LBP_H2, LBP_H3, LBP_JL,
28349         LBP_JV, LBP_JT. Redistribute values.
28350         (get_lbp): Update to match Unicode TR#14 rev. 21/22 and Unicode 5.0.0.
28351         (debug_output_lbp, fill_org_lbp, debug_output_org_lbp, output_lbp):
28352         Update.
28353         * lib/unilbrk/lbrkprop1.h: Regenerated.
28354         * lib/unilbrk/lbrkprop2.h: Regenerated.
28355         * lib/unilbrk/u8-possible-linebreaks.c (u8_possible_linebreaks):
28356         Change handling of LBP_CM after LBP_ZW. Update for new value of LBP_BK.
28357         * lib/unilbrk/u16-possible-linebreaks.c (u16_possible_linebreaks):
28358         Likewise.
28359         * lib/unilbrk/u32-possible-linebreaks.c (u32_possible_linebreaks):
28360         Likewise.
28361         * tests/unilbrk/test-u8-possible-linebreaks.c (main): Update expected
28362         result.
28363         * tests/unilbrk/test-u16-possible-linebreaks.c (main): Likewise.
28364         * tests/unilbrk/test-u32-possible-linebreaks.c (main): Likewise.
28365         * tests/unilbrk/test-ulc-possible-linebreaks.c (main): Likewise.
28366         * tests/unilbrk/test-u8-width-linebreaks.c (main): Likewise.
28367         * tests/unilbrk/test-u16-width-linebreaks.c (main): Likewise.
28368         * tests/unilbrk/test-u32-width-linebreaks.c (main): Likewise.
28369
28370 2008-05-11  Bruno Haible  <bruno@clisp.org>
28371
28372         * lib/unilbrk/gen-lbrk.c (output_lbp): Fix whitespace.
28373
28374 2008-05-11  Bruno Haible  <bruno@clisp.org>
28375
28376         * lib/unilbrk/gen-lbrk.c: New file, from GNU gettext (gen-lbrkprop.c).
28377         * modules/unilbrk/gen-lbrk: New file.
28378
28379 2008-05-11  Bruno Haible  <bruno@clisp.org>
28380
28381         * m4/sha256.m4 (gl_SHA256): Require AC_C_INLINE.
28382         * m4/sha512.m4 (gl_SHA512): Likewise.
28383
28384 2008-05-11  Jim Meyering  <meyering@redhat.com>
28385
28386         New modules: crypto/sha256, crypto/sha512 (from coreutils)
28387         * modules/crypto/sha256: New file.
28388         * modules/crypto/sha512: Likewise.
28389         * lib/sha256.c: Likewise.
28390         * lib/sha256.h: Likewise.
28391         * lib/sha512.c: Likewise.
28392         * lib/sha512.h: Likewise.
28393         * lib/u64.h: Likewise.
28394         * m4/sha256.m4: Likewise.
28395         * m4/sha512.m4: Likewise.
28396         * MODULES.html.sh (Cryptographic computations (low-level)): List them.
28397
28398 2008-05-10  Bruno Haible  <bruno@clisp.org>
28399
28400         * MODULES.html.sh (Environment variables <stdlib.h>): Add unsetenv.
28401         (Input/Output <stdio.h>): Add xprintf.
28402         (Signal handling <signal.h>): Add strsignal.
28403         (Cryptographic computations (high-level)): Add crypto/gc-camellia.
28404         (Core language properties): Add func.
28405         (Mathematics <math.h>): Add ceil, floor, frexp-nolibm.
28406         (Support for systems lacking POSIX:2001): Add environ, EOVERFLOW,
28407         strings.
28408         (Enhancements for POSIX:2001 functions): Add iconv_open-utf.
28409         (Input/output): New section.
28410         (File system functions): Add openat-die, stat-macros.
28411         (Networking functions): Add sockets.
28412         (Unicode string functions): Add unictype/*.
28413         (Support for building libraries and executables): Add gperf.
28414         (Support for building documentation): Add agpl-3.0.
28415         (Misc): Add nocrash.
28416
28417 2008-05-10  Bruno Haible  <bruno@clisp.org>
28418
28419         * modules/unictype/gen-ctype: New file.
28420
28421 2008-05-10  Jim Meyering  <meyering@redhat.com>
28422
28423         Make chdir-safer.c more efficient on a system with no symlinks.
28424         * lib/chdir-safer.c (chdir_no_follow): Skip lstat and fstat calls
28425         also if ELOOP is zero.  Suggested by Bruno Haible.
28426
28427         Make chdir-safer.c slightly safer.
28428         * lib/chdir-safer.c (chdir_no_follow): Test HAVE_WORKING_O_NOFOLLOW,
28429         not O_NOFOLLOW, in case the latter is nonzero and open ignores it.
28430
28431         Avoid compile failure on systems without ELOOP (like mingw).
28432         * lib/chdir-safer.c (ELOOP): Define if not already defined.
28433         Reported by Bruno Haible.
28434
28435 2008-05-10  Bruno Haible  <bruno@clisp.org>
28436
28437         * lib/unilbrk/ulc-common.c: Include c-strcaseeq.h instead of streq.h.
28438         (is_utf8_encoding): Use a case-insensitive comparison.
28439         * modules/unilbrk/ulc-common (Depends-on): Add c-strcaseeq. Remove
28440         streq.
28441
28442 2008-05-10  Bruno Haible  <bruno@clisp.org>
28443
28444         * lib/unilbrk/ulc-common.c: Don't include <stdlib.h>.
28445         (iconv_string_length, iconv_string_keeping_offsets): Remove functions.
28446         * lib/unilbrk/ulc-common.h (iconv_string_length,
28447         iconv_string_keeping_offsets): Remove declarations.
28448         * lib/unilbrk/ulc-possible-linebreaks.c: Include <string.h>, uniconv.h.
28449         Don't include <iconv.h>, streq.h, xsize.h.
28450         (ulc_possible_linebreaks): Use u8_conv_from_encoding for doing the
28451         conversion.
28452         * lib/unilbrk/ulc-width-linebreaks.c: Include uniconv.h. Don't include
28453         <iconv.h>, streq.h, xsize.h.
28454         (ulc_width_linebreaks): Use u8_conv_from_encoding for doing the
28455         conversion.
28456         * modules/unilbrk/ulc-common (Depends-on): Remove iconv.
28457         * modules/unilbrk/ulc-possible-linebreaks (Depends-on): Add
28458         uniconv/u8-conv-from-enc. Remove iconv_open, streq, xsize.
28459         * modules/unilbrk/ulc-width-linebreaks (Depends-on): Likewise.
28460
28461 2008-05-10  Bruno Haible  <bruno@clisp.org>
28462
28463         * modules/unilbrk/ulc-width-linebreaks-tests: New file.
28464         * tests/unilbrk/test-ulc-width-linebreaks.c: New file.
28465
28466         * modules/unilbrk/u32-width-linebreaks-tests: New file.
28467         * tests/unilbrk/test-u32-width-linebreaks.c: New file.
28468
28469         * modules/unilbrk/u16-width-linebreaks-tests: New file.
28470         * tests/unilbrk/test-u16-width-linebreaks.c: New file.
28471
28472         * modules/unilbrk/u8-width-linebreaks-tests: New file.
28473         * tests/unilbrk/test-u8-width-linebreaks.c: New file.
28474
28475         * modules/unilbrk/ulc-possible-linebreaks-tests: New file.
28476         * tests/unilbrk/test-ulc-possible-linebreaks.c: New file.
28477
28478         * modules/unilbrk/u32-possible-linebreaks-tests: New file.
28479         * tests/unilbrk/test-u32-possible-linebreaks.c: New file.
28480
28481         * modules/unilbrk/u16-possible-linebreaks-tests: New file.
28482         * tests/unilbrk/test-u16-possible-linebreaks.c: New file.
28483
28484         * modules/unilbrk/u8-possible-linebreaks-tests: New file.
28485         * tests/unilbrk/test-u8-possible-linebreaks.c: New file.
28486
28487 2008-05-10  Bruno Haible  <bruno@clisp.org>
28488
28489         Split up 'linebreak' module.
28490         * lib/unilbrk.h: New file, based on lib/linebreak.h.
28491         * lib/unilbrk/lbrkprop1.h: New file, extracted from lib/lbrkprop.h.
28492         * lib/unilbrk/lbrkprop2.h: New file, renamed from lib/lbrkprop.h with
28493         modifications.
28494         * lib/unilbrk/tables.h: New file, extracted from lib/linebreak.c.
28495         * lib/unilbrk/tables.c: New file, extracted from lib/linebreak.c.
28496         * lib/unilbrk/u8-possible-linebreaks.c: New file, extracted from
28497         lib/linebreak.c.
28498         * lib/unilbrk/u16-possible-linebreaks.c: New file, extracted from
28499         lib/linebreak.c.
28500         * lib/unilbrk/u32-possible-linebreaks.c: New file, extracted from
28501         lib/linebreak.c.
28502         * lib/unilbrk/ulc-common.h: New file, extracted from lib/linebreak.c.
28503         * lib/unilbrk/ulc-common.c: New file, extracted from lib/linebreak.c.
28504         * lib/unilbrk/ulc-possible-linebreaks.c: New file, extracted from
28505         lib/linebreak.c.
28506         * lib/unilbrk/u8-width-linebreaks.c: New file, extracted from
28507         lib/linebreak.c.
28508         * lib/unilbrk/u16-width-linebreaks.c: New file, extracted from
28509         lib/linebreak.c.
28510         * lib/unilbrk/u32-width-linebreaks.c: New file, extracted from
28511         lib/linebreak.c.
28512         * lib/unilbrk/ulc-width-linebreaks.c: New file, extracted from
28513         lib/linebreak.c.
28514         * modules/unilbrk/base: New file.
28515         * modules/unilbrk/tables: New file.
28516         * modules/unilbrk/u8-possible-linebreaks: New file.
28517         * modules/unilbrk/u16-possible-linebreaks: New file.
28518         * modules/unilbrk/u32-possible-linebreaks: New file.
28519         * modules/unilbrk/ulc-common: New file.
28520         * modules/unilbrk/ulc-possible-linebreaks: New file.
28521         * modules/unilbrk/u8-width-linebreaks: New file.
28522         * modules/unilbrk/u16-width-linebreaks: New file.
28523         * modules/unilbrk/u32-width-linebreaks: New file.
28524         * modules/unilbrk/ulc-width-linebreaks: New file.
28525         * lib/linebreak.h: Remove file.
28526         * lib/linebreak.c: Remove file.
28527         * m4/linebreak.m4: Remove file.
28528         * modules/linebreak: Remove file.
28529         * NEWS: Mention the changes.
28530
28531 2008-05-09  Eric Blake  <ebb9@byu.net>
28532
28533         Add xmemdup0.
28534         * lib/xalloc.h (xmemdup0): New prototype and C++ typesafe
28535         implementation.
28536         * lib/xmalloc.c (xmemdup0): New C implementation.
28537
28538 2008-05-08  Bruno Haible  <bruno@clisp.org>
28539
28540         * m4/wctype.m4 (gl_WCTYPE_H): Correct indentation.
28541
28542 2008-05-07  Eric Blake  <ebb9@byu.net>
28543
28544         Support cross-compilation of <wctype.h>.
28545         * m4/wctype.m4 (gl_WCTYPE_H): Fix improper nesting in
28546         AC_CACHE_CHECK.
28547
28548 2008-05-06  Soren Hansen  <soren@ubuntu.com>  (tiny change)
28549
28550         * build-aux/vc-list-files: Add support for bzr.
28551
28552 2008-05-03  Jim Meyering  <meyering@redhat.com>
28553
28554         avoid failed assertion with tight malloc
28555         * tests/test-getndelim2.c: Correct an off-by-one assertion.
28556
28557 2008-05-03  Simon Josefsson  <simon@josefsson.org>
28558
28559         * m4/inet_pton.m4: Set HAVE_DECL_INET_PTON to 0 when declarations
28560         are needed from arpa/inet.h.
28561         * m4/inet_ntop.m4: Likewise, for HAVE_DECL_INET_NTOP.
28562         Reported by Bruno Haible.
28563
28564 2008-05-02  Jim Meyering  <meyering@redhat.com>
28565
28566         avoid compilation error on FreeBSD 6
28567         * tests/test-getaddrinfo.c [!defined EAI_NODATA] (EAI_NODATA): Define.
28568
28569 2008-05-01  Jim Meyering  <meyering@redhat.com>
28570
28571         useless-if-before-free: correct --help's exit status description
28572         * build-aux/useless-if-before-free (usage): Like grep, exit 0
28573         for one or more matches, etc.  Reported by Bruno Haible.
28574
28575         vc-list-files: make the stand-alone gnulib test work
28576         * modules/vc-list-files-tests (configure.ac):
28577         Define and AC_SUBST abs_aux_dir.
28578         (Makefile.am) [TESTS_ENVIRONMENT]: Rather than passing
28579         $(abs_top_srcdir) to each script and having each of them
28580         duplicate the work of setting PATH, set PATH here, using
28581         the new variable, abs_aux_dir instead.
28582         * tests/test-vc-list-files-cvs.sh: Don't set PATH here.
28583         * tests/test-vc-list-files-git.sh: Likewise.
28584         Reported by Bruno Haible.
28585
28586 2008-05-01  Bruno Haible  <bruno@clisp.org>
28587
28588         * lib/getndelim2.c (getndelim2): Fix newsize computation during
28589         reallocation. Rename 'done' to 'found_delimiter'.
28590
28591 2008-05-01  Jim Meyering  <meyering@redhat.com>
28592
28593         vc-list-files: accommodate /bin/sh like the one from Solaris 10
28594         * build-aux/vc-list-files: Use `...`, not $(...).
28595
28596 2008-04-30  Jim Meyering  <meyering@redhat.com>
28597
28598         add tests for vc-list-files
28599         * modules/vc-list-files-tests: New module.
28600         * tests/test-vc-list-files-cvs.sh: New file.
28601         * tests/test-vc-list-files-git.sh: New file.
28602
28603         avoid a warning from gcc
28604         * lib/getndelim2.c (IF_LINT): Define.
28605         (getndelim2): Use it to avoid a "may be used uninitialized" warning.
28606
28607         vc-list-files: work properly with build-aux/cvsu, too
28608         * build-aux/vc-list-files: Hoist the "./"-removing code to apply
28609         to all cvs-based clauses.
28610
28611         vc-list-files: work properly in the CVS+awk case, too
28612         * build-aux/vc-list-files: In the CVS+awk case, remove "./" prefix.
28613
28614         vc-list-files: avoid use of ${*-*} that fails when /bin/sh is dash
28615         * build-aux/vc-list-files: Simplify ${*-*} to $dir, since we no longer
28616         take more than one file argument, so .  Add quotes, just in case $dir
28617         ever contains a shell meta-character.  Prompted by Soren Hansen in
28618         <http://thread.gmane.org/gmane.comp.emulators.libvirt/6221/focus=6240>.
28619
28620 2008-04-29  Eric Blake  <ebb9@byu.net>
28621
28622         Optimize getndelim2 to use block operations when possible.
28623         * modules/getndelim2 (Depends-on): Add stdbool, freadptr,
28624         freadseek, and memchr2.
28625         * lib/getndelim2.c (getndelim2): Use them for block reads.
28626
28627 2008-04-29  Bruno Haible  <bruno@clisp.org>
28628
28629         * m4/inet_ntop.m4 (gl_INET_NTOP): Require gl_USE_SYSTEM_EXTENSIONS.
28630         * m4/inet_pton.m4 (gl_INET_PTON): Likewise.
28631         * modules/inet_ntop (Depends-on): Add extensions.
28632         * modules/inet_pton (Depends-on): Likewise.
28633         Reported by Simon Josefsson.
28634
28635 2008-04-29  Jim Meyering  <meyering@redhat.com>
28636
28637         When the is more than one match in a block, match all of them.
28638         * build-aux/useless-if-before-free: Iterate through each block
28639         until there are no more matches.
28640
28641         Fix broken useless-if-before-free script.
28642         * build-aux/useless-if-before-free: Fix typo: missing "?" after
28643         the expression to match cast of argument to free-like function.
28644
28645 2008-04-29  Eric Blake  <ebb9@byu.net>
28646
28647         Use new header.
28648         * lib/getaddrinfo.c (includes): s/"inet_ntop.h"/<arpa/inet.h>/.
28649
28650 2008-04-29  Jim Meyering  <meyering@redhat.com>
28651
28652         Avoid test segfault on x86_64 due to lack of inet_ntop declaration.
28653         * tests/test-getaddrinfo.c: Include <arpa/inet.h>, now guaranteed
28654         by gnulib to exist and to declare e.g., inet_ntop.
28655         Don't include "inet_ntop.h", now removed.
28656
28657         * m4/arpa_inet_h.m4: Remove trailing blanks.
28658
28659 2008-04-29  Eric Blake  <ebb9@byu.net>
28660
28661         Silence valgrind on safe reads beyond potential array bounds.
28662         * lib/rawmemchr.valgrind: New file.
28663         * lib/strchrnul.valgrind: Likewise.
28664         * modules/rawmemchr (Files): Distribute new file.
28665         * modules/strchrnul (Files): Likewise.
28666         Suggested by Bruno Haible.
28667
28668 2008-04-29  Bruno Haible  <bruno@clisp.org>
28669
28670         * lib/arpa_inet.in.h: Include system's <arpa/inet.h> if it exists.
28671         (inet_ntop, inet_pton): Change portability warning's wording.
28672         * m4/arpa_inet_h.m4 (gl_HEADER_ARPA_INET): Set HAVE_ARPA_INET_H.
28673         Invoke gl_CHECK_NEXT_HEADERS.
28674         (gl_ARPA_INET_H_DEFAULTS): Initialize ARPA_INET_H.
28675         * m4/inet_ntop.m4 (gl_INET_NTOP): Require gl_ARPA_INET_H_DEFAULTS and
28676         set ARPA_INET_H.
28677         * m4/inet_pton.m4 (gl_INET_PTON): Likewise.
28678         * modules/arpa_inet (Description): No longer only for systems that
28679         lack it.
28680         (Depends-on): Add include_next.
28681         (Makeile.am): Substitute INCLUDE_NEXT, NEXT_ARPA_INET_H,
28682         HAVE_ARPA_INET_H.
28683
28684 2008-04-29  Jim Meyering  <meyering@redhat.com>
28685
28686         * modules/mkdir (License): Re-license as LGPLv2+.
28687
28688 2008-04-29  Bruno Haible  <bruno@clisp.org>
28689
28690         * modules/rawmemchr (Maintainer): Set to Eric.
28691         * modules/strchrnul (Maintainer): Likewise.
28692
28693 2008-04-29  Simon Josefsson  <simon@josefsson.org>
28694
28695         * m4/arpa_inet_h.m4 (gl_ARPA_INET_H_DEFAULTS): Set
28696         HAVE_DECL_INET_NTOP and HAVE_DECL_INET_PTON.
28697
28698         * modules/arpa_inet (arpa/inet.h): Use them.
28699
28700 2008-04-28  Eric Blake  <ebb9@byu.net>
28701
28702         Test getndelim2.
28703         * modules/getndelim2-tests: New file.
28704         * tests/test-getndelim2.c: Likewise.
28705         * lib/getndelim2.c (getndelim2): Never return 0.  Lock the
28706         stream.
28707         * m4/getndelim2.m4 (gl_GETNDELIM2): Check for lock functions.
28708
28709         * MODULES.html.sh: Document new module.
28710
28711 2008-04-20  Bruno Haible  <bruno@clisp.org>
28712
28713         * lib/c-stack.c (die): Use raise.
28714         * modules/c-stack (Depends-on): Add raise.
28715
28716 2008-04-28  Bruno Haible  <bruno@clisp.org>
28717
28718         Expect rpmatch to be declared.
28719         * lib/yesno.c (rpmatch): Remove declaration.
28720
28721         Declare rpmatch.
28722         * lib/stdlib.in.h (rpmatch): New declaration.
28723         * lib/rpmatch.c: Include <stdlib.h> first.
28724         * m4/rpmatch.m4 (gl_FUNC_RPMATCH): Require AC_USE_SYSTEM_EXTENSIONS and
28725         gl_STDLIB_H_DEFAULTS. Set HAVE_RPMATCH.
28726         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_RPMATCH,
28727         HAVE_RPMATCH.
28728         * modules/rpmatch (Depends-on): Add stdlib, extensions.
28729         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
28730         (Include): Set to <stdlib.h>.
28731         * modules/stdlib (Makefile.am): Substitute GNULIB_RPMATCH and
28732         HAVE_RPMATCH.
28733         * NEWS: Document the change.
28734
28735 2008-04-28  Bruno Haible  <bruno@clisp.org>
28736
28737         Change rpmatch to use nl_langinfo when appropriate.
28738         * lib/rpmatch.c: Include stdbool.h, string.h, langinfo.h.
28739         (N_): New macro.
28740         (localized_pattern): New function/macro.
28741         (try): Remove match, nomatch arguments. Copy the pattern into safe
28742         memory before caching it.
28743         (rpmatch): Use localized_pattern. Add translator comments.
28744         * m4/rpmatch.m4 (gl_PREREQ_RPMATCH): Test for nl_langinfo and YESEXPR.
28745         Suggested by Eric Blake.
28746         * modules/rpmatch (Depends-on): Add stdbool.
28747
28748 2008-04-28  Eric Blake  <ebb9@byu.net>
28749
28750         Add rawmemchr module, matching glibc.
28751         * modules/string (Makefile.am): New indicator.
28752         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Set it.
28753         * lib/string.in.h (rawmemchr): Declare when appropriate.
28754         * modules/rawmemchr: New file.
28755         * m4/rawmemchr.m4: Likewise.
28756         * lib/rawmemchr.c: Likewise.
28757         * modules/rawmemchr-tests: Likewise.
28758         * tests/test-rawmemchr.c: Likewise.
28759         * doc/glibc-functions/rawmemchr.texi (rawmemchr): Document
28760         module.
28761         * modules/strchrnul (Depends-on): Add rawmemchr.
28762         * lib/strchrnul.c (strchrnul): Optimize a corner case.
28763
28764         Whitespace cleanup.
28765         * tests/test-strchrnul.c: Reindent.
28766         * lib/strchrnul.c: Likewise.
28767
28768         Optimize and test strchrnul.
28769         * lib/strchrnul.c (strchrnul): Rewrite to do parallel search.
28770         * modules/strchrnul-tests: New file.
28771         * tests/test-strchrnul.c: Likewise.
28772
28773         Remove intprops dependency.
28774         * modules/memchr (Depends-on): Remove intprops.
28775         * modules/memrchr (Depends-on): Likewise.
28776         * modules/memchr2 (Depends-on): Likewise.
28777         * lib/memchr.c (__memchr): Hand-inline the TYPE_MAXIMUM check.
28778         * lib/memrchr.c (__memrchr): Likewise.
28779         * lib/memrchr2.c (memchr2): Likewise.
28780         Reported by Simon Josefsson.
28781
28782 2008-04-28  Simon Josefsson  <simon@josefsson.org>
28783
28784         * m4/sys_socket_h.m4: Move AC_REQUIRE([AC_C_INLINE]) to top.
28785         Suggested by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
28786
28787 2008-04-28  Simon Josefsson  <simon@josefsson.org>
28788
28789         * lib/inet_ntop.h, lib/inet_pton.h: Remove files.
28790
28791         * lib/inet_ntop.c: Include arpa/inet.h instead of inet_ntop.h.
28792
28793         * lib/inet_pton.c: Include arpa/inet.h instead of inet_pton.h.
28794
28795         * lib/arpa_inet.in.h [@GNULIB_INET_NTOP@]: Inline inet_ntop.h
28796         declarations.
28797         [@GNULIB_INET_PTON@]: Inline inet_pton.h declarations.
28798
28799         * m4/inet_pton.m4: Don't check for header files.
28800
28801         * m4/inet_ntop.m4: Don't check for header files.
28802
28803 2008-04-28  Simon Josefsson  <simon@josefsson.org>
28804
28805         * m4/sys_socket_h.m4: Require AC_C_INLINE when necessary.
28806         * lib/sys_socket.in.h (setsockopt): Use proper win32 tests (don't
28807         trigger for cygwin).
28808         Reported by Bruno Haible  <bruno@clisp.org>.
28809
28810 2008-04-28  Bruno Haible  <bruno@clisp.org>
28811
28812         * doc/posix-functions/strdup.texi: Mention mingw problem.
28813
28814 2008-04-27  Bruno Haible  <bruno@clisp.org>
28815
28816         * modules/stat-time-tests (Depends-on): Add sleep.
28817         * tests/test-stat-time.c (force_unlink): New function.
28818         (cleanup): Use it.
28819         (test_mtime): Remove the ctime related tests.
28820         (test_ctime): New function, containing the ctime related tests.
28821         (main): Call test_ctime, except on native Windows platforms.
28822
28823 2008-04-27  Bruno Haible  <bruno@clisp.org>
28824
28825         * lib/rpmatch.c (rpmatch): Add some comments.
28826         Reported by James Youngman <jay@gnu.org>.
28827
28828 2008-04-27  Bruno Haible  <bruno@clisp.org>
28829
28830         * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS): Also test the behaviour on
28831         quiet NaNs.
28832
28833 2008-04-27  Bruno Haible  <bruno@clisp.org>
28834
28835         Make test-yesno.sh work on mingw.
28836         * tests/test-yesno.sh: Postprocess the output to convert CR/LF to LF.
28837         * tests/test-yesno.c: Include yesno.h first. Include binary-io.h.
28838         (main): Set stdin to binary mode.
28839         * modules/yesno-tests (Depends-on): Add binary-io.
28840
28841 2008-04-27  Bruno Haible  <bruno@clisp.org>
28842
28843         Fix 'isfinite' on x86, x86_64, ia64 platforms.
28844         * tests/test-isfinite.c (test_isfinitel): Also test the behavior on
28845         argument that lie outside the IEEE 854 domain.
28846         * m4/isfinite.m4 (gl_ISFINITEL_WORKS): New macro.
28847         (gl_ISFINITE): Use it.
28848         * doc/posix-functions/isfinite.texi: Document the fixed bugs.
28849
28850 2008-04-27  Bruno Haible  <bruno@clisp.org>
28851
28852         Allow local renaming in config.h.
28853         * lib/memrchr.c (memrchr): Don't undefine outside libc.
28854
28855 2008-04-27  Bruno Haible  <bruno@clisp.org>
28856
28857         * lib/memchr.c (__memchr): Change type of 'i'.
28858         * lib/memchr2.c (memchr2): Likewise.
28859
28860 2008-04-26  Eric Blake  <ebb9@byu.net>
28861         and Bruno Haible  <bruno@clisp.org>
28862
28863         Optimize and test memrchr.
28864         * modules/memrchr (Depends-on): Add intprops.
28865         * lib/memrchr.c (__memrchr): Avoid false positives in loop.
28866         * modules/memrchr-tests: New file.
28867         * tests/test-memrchr.c: New file.
28868
28869 2008-04-26  Bruno Haible  <bruno@clisp.org>
28870
28871         Add tentative support for DragonFly BSD.
28872         * lib/stdio-impl.h: Add macros for DragonFly BSD.
28873         * lib/fbufmode.c (fbufmode): Update conditionals. Use fp_ instead of
28874         fp.
28875         * lib/fflush.c (clear_ungetc_buffer, disable_seek_optimization,
28876         restore_seek_optimization, update_fpos_cache, rpl_fflush: Likewise.
28877         * lib/fpurge.c (fpurge): Likewise.
28878         * lib/freadable.c (freaadable): Likewise.
28879         * lib/freadahead.c (freadahead): Likewise.
28880         * lib/freading.c (freading): Likewise.
28881         * lib/freadptr.c (freadptr): Likewise.
28882         * lib/freadseek.c (freadptrinc): Likewise.
28883         * lib/fseeko.c (fseeko): Likewise.
28884         * lib/fseterr.c (fseterr): Likewise.
28885         * lib/fwritable.c (fwritable): Likewise.
28886         * lib/fwriting.c (fwriting): Likewise.
28887
28888 2008-04-26  Bruno Haible  <bruno@clisp.org>
28889
28890         * lib/stdio-impl.h: New file.
28891         * lib/fbufmode.c: Include stdio-impl.h.
28892         (fbufmode): Use fp_, remove redundant #defines.
28893         * lib/fflush.c: Include stdio-impl.h.
28894         (clear_ungetc_buffer): Remove redundant #defines.
28895         * lib/fpurge.c: Include stdio-impl.h.
28896         (fpurge): Remove redundant #defines.
28897         * lib/freadable.c: Include stdio-impl.h.
28898         (freadable): Remove redundant #defines.
28899         * lib/freadahead.c: Include stdio-impl.h.
28900         (freadahead): Remove redundant #defines.
28901         * lib/freading.c: Include stdio-impl.h.
28902         (freading): Remove redundant #defines.
28903         * lib/freadptr.c: Include stdio-impl.h.
28904         (freadptr): Remove redundant #defines.
28905         * lib/freadseek.c: Include stdio-impl.h.
28906         (freadptrinc): Remove redundant #defines.
28907         * lib/fseeko.c: Include stdio-impl.h.
28908         (rpl_fseeko): Remove redundant #defines.
28909         * lib/fseterr.c: Include stdio-impl.h.
28910         (fseterr): Remove redundant #defines.
28911         * lib/fwritable.c: Include stdio-impl.h.
28912         (fwritable: Remove redundant #defines.
28913         * lib/fwriting.c: Include stdio-impl.h.
28914         (fwriting): Remove redundant #defines.
28915         * modules/fbufmode (Files): Add lib/stdio-impl.h.
28916         * modules/fflush (Files): Likewise.
28917         * modules/fpurge (Files): Likewise.
28918         * modules/freadable (Files): Likewise.
28919         * modules/freadahead (Files): Likewise.
28920         * modules/freading (Files): Likewise.
28921         * modules/freadptr (Files): Likewise.
28922         * modules/freadseek (Files): Likewise.
28923         * modules/fseeko (Files): Likewise.
28924         * modules/fseterr (Files): Likewise.
28925         * modules/fwritable (Files): Likewise.
28926         * modules/fwriting (Files): Likewise.
28927
28928 2008-04-26  Bruno Haible  <bruno@clisp.org>
28929
28930         * lib/fflush.c (clear_ungetc_buffer, disable_seek_optimization,
28931         restore_seek_optimization, update_fpos_cache): New functions, extracted
28932         from rpl_fflush.
28933         (rpl_fflush): Use them.
28934         * m4/fflush.m4 (gl_PREREQ_FFLUSH): New macro.
28935         (gl_REPLACE_FFLUSH): Use it.
28936
28937 2008-04-26  Bruno Haible  <bruno@clisp.org>
28938
28939         * tests/test-xstrtol.sh: Work around limitation of an old 'tr' program
28940         on Solaris.
28941         * tests/test-xstrtoimax.sh: Likewise.
28942         * tests/test-xstrtoumax.sh: Likewise.
28943         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
28944
28945 2008-04-26  Bruno Haible  <bruno@clisp.org>
28946
28947         * modules/memchr-tests: New file.
28948         * tests/test-memchr.c; New file, based on tests/test-memchr2.c.
28949
28950 2008-04-26  Eric Blake  <ebb9@byu.net>
28951             Bruno Haible  <bruno@clisp.org>
28952
28953         * lib/memchr.c: Include intprops.h.
28954         (__memchr): Optimize parallel detection of matching bytes. Rename local
28955         variables. Add explanatory comments.
28956
28957 2008-04-26  Bruno Haible  <bruno@clisp.org>
28958
28959         Fix module 'memchr', broken since 2000-10-28.
28960         * lib/memchr.c: Outside glibc, define memchr, not __memchr.
28961
28962 2008-04-26  Bruno Haible  <bruno@clisp.org>
28963
28964         * lib/memchr2.c (memchr2): Rename local variables. Add explanatory
28965         comments.
28966
28967 2008-04-25  Eric Blake  <ebb9@byu.net>
28968
28969         Use native fstatat on cygwin 1.7.0.
28970         * m4/openat.m4 (gl_FUNC_OPENAT): Make sure lstat check is made
28971         first.
28972
28973 2008-04-23  Eric Blake  <ebb9@byu.net>
28974
28975         Improve memchr2 performance.
28976         * lib/memchr2.c (memchr2): Further optimize parallel detection of
28977         NUL bytes.
28978         * modules/memchr2 (Depends-on): Use intprops.h.
28979
28980 2008-04-23  Simon Josefsson  <simon@josefsson.org>
28981
28982         * lib/sys_socket.in.h (setsockopt): Be more type safe by declaring
28983         an inline function instead of a CPP macro.  Patch by Ben Pfaff
28984         <blp@cs.stanford.edu>.
28985
28986 2008-04-23  Simon Josefsson  <simon@josefsson.org>
28987
28988         * lib/arpa_inet.in.h: New file.
28989
28990         * modules/arpa_inet (Files): Add lib/arpa_inet.in.h.
28991         (Makefile.am): Sed in substitute header file.
28992
28993         * m4/arpa_inet_h.m4: Add gl_ARPA_INET_H_DEFAULTS and
28994         gl_ARPA_INET_MODULE_INDICATOR.  Use them.
28995
28996         * modules/inet_ntop (configure.ac): Use
28997         gl_ARPA_INET_MODULE_INDICATOR.
28998
28999         * modules/inet_pton (configure.ac): Use
29000         gl_ARPA_INET_MODULE_INDICATOR.
29001
29002 2008-04-22  Jim Meyering  <meyering@redhat.com>
29003
29004         * modules/verify (License): Re-license as LGPLv2+.
29005
29006 2008-04-22  Simon Josefsson  <simon@josefsson.org>
29007
29008         * lib/sys_socket.in.h: Define setsockopt macro to cast fourth
29009         parameter to void* as per POSIX standard (MinGW uses char*).
29010
29011 2008-04-21  Bruno Haible  <bruno@clisp.org>
29012
29013         * lib/wctype.in.h (iswalnum, iswalpha, iswblank, iswcntrl, iswdigit,
29014         iswgraph, iswlower, iswprint, iswpunct, iswspace, iswupper, iswxdigit):
29015         Define to replacements if REPLACE_ISWCNTRL is 1.
29016         * m4/wctype.m4 (gl_WCTYPE_H): Test whether the isw* functions work.
29017         If not, set WCTYPE_H to nonempty and REPLACE_ISWCNTRL to 1.
29018         * modules/wctype (Makefile.am): Substitute REPLACE_ISWCNTRL.
29019         * doc/posix-functions/iswalnum.texi: Mention the 'wctype' module and
29020         what it fixes.
29021         * doc/posix-functions/iswalpha.texi: Likewise.
29022         * doc/posix-functions/iswblank.texi: Likewise.
29023         * doc/posix-functions/iswcntrl.texi: Likewise.
29024         * doc/posix-functions/iswdigit.texi: Likewise.
29025         * doc/posix-functions/iswgraph.texi: Likewise.
29026         * doc/posix-functions/iswlower.texi: Likewise.
29027         * doc/posix-functions/iswprint.texi: Likewise.
29028         * doc/posix-functions/iswpunct.texi: Likewise.
29029         * doc/posix-functions/iswspace.texi: Likewise.
29030         * doc/posix-functions/iswupper.texi: Likewise.
29031         * doc/posix-functions/iswxdigit.texi: Likewise.
29032         Reported by Alain Guibert.
29033
29034 2008-04-21  Bruno Haible  <bruno@clisp.org>
29035
29036         * m4/vsnprintf.m4 (gl_FUNC_VSNPRINTF): Fix typo in last commit.
29037         Patch by Alain Guibert.
29038
29039 2008-04-21  Bruno Haible  <bruno@clisp.org>
29040
29041         Fix test failures on mingw.
29042         * tests/test-xstrtol.c (print_no_progname): New function.
29043         (main): Install it in error_print_progname hook.
29044         * tests/test-xstrtol.sh: Convert CR/LF to NL in output.
29045         * tests/test-xstrtoimax.sh: Likewise.
29046         * tests/test-xstrtoumax.sh: Likewise.
29047
29048 2008-04-21  Bruno Haible  <bruno@clisp.org>
29049
29050         Fix test failure on mingw.
29051         * tests/test-argp-2.sh (func_compare): Remove CRs from sed's output.
29052
29053 2008-04-21  Bruno Haible  <bruno@clisp.org>
29054
29055         * lib/localename.c (SUBLANG_TIBETAN_PRC, SUBLANG_TIBETAN_BHUTAN):
29056         Actually assign a value.
29057
29058 2008-04-20  Bruno Haible  <bruno@clisp.org>
29059
29060         Fix conflict between modules 'canonicalize' and 'canonicalize-lgpl',
29061         take 2.
29062         * lib/canonicalize.c (canonicalize_file_name): Elide if the
29063         'canonicalize-lgpl' module is also used.
29064         * lib/canonicalize-lgpl.c: Undo last change.
29065         * modules/canonicalize-lgpl (configure.ac): Invoke gl_MODULE_INDICATOR.
29066
29067 2008-04-20  Bruno Haible  <bruno@clisp.org>
29068
29069         * lib/mkdir.c (mkdir): Undefine after the includes, not right after
29070         config.h. Provide _mkdir based fallback for mingw.
29071         * lib/sys_stat.in.h (mkdir): Define through an 'extern' declaration
29072         if REPLACE_MKDIR is 1. Otherwise, test for mingw directly.
29073         * m4/mkdir-slash.m4 (gl_FUNC_MKDIR_TRAILING_SLASH): Require
29074         gl_SYS_STAT_H_DEFAULTS. When doing the replacement, set REPLACE_MKDIR
29075         rather than defining mkdir in config.h.
29076         * m4/sys_stat_h.m4 (gl_SYS_STAT_MODULE_INDICATOR): New macro.
29077         (gl_SYS_STAT_H_DEFAULTS): New macro.
29078         (gl_HEADER_SYS_STAT_H): Require it. Don't set HAVE_DECL_MKDIR and
29079         HAVE_IO_H any more.
29080         * modules/sys_stat (Makefile.am): Substitute REPLACE_MKDIR instead of
29081         HAVE_DECL_MKDIR and HAVE_IO_H.
29082
29083 2008-04-20  Bruno Haible  <bruno@clisp.org>
29084
29085         * lib/isapipe.c: Port to native Windows platforms.
29086
29087 2008-04-20  Bruno Haible  <bruno@clisp.org>
29088
29089         * lib/gc-gnulib.c: Include <windows.h> before <wincrypt.h>.
29090
29091 2008-04-21  Eric Blake  <ebb9@byu.net>
29092
29093         Work around preprocessors that don't handle UINTMAX_MAX.
29094         * lib/memchr2.c (memchr2): Avoid embedded #if.
29095         Reported by Alain Guibert, fix suggested by Bruno Haible.
29096
29097 2008-04-21  Simon Josefsson  <simon@josefsson.org>
29098
29099         * doc/posix-functions/strftime.texi (strftime): Explain better
29100         Windows incompatibility.  Suggested by Micah Cowan
29101         <micah@cowan.name>.
29102
29103 2008-04-20  Bruno Haible  <bruno@clisp.org>
29104
29105         * modules/uniconv/u32-conv-to-enc (Depends-on): Add unistr/u32-mblen,
29106         unistr/u8-mblen.
29107
29108 2008-04-20  Bruno Haible  <bruno@clisp.org>
29109
29110         Fix test failure on platforms with non-GNU iconv.
29111         * lib/uniconv/u16-conv-to-enc.c (u16_to_u8_lenient): New function.
29112         (U_TO_U8): Use it, rather than u16_to_u8.
29113         * lib/uniconv/u-conv-to-enc.h (FUNC): Allow an incomplete sequence of
29114         units at the end of the input string.
29115         * modules/uniconv/u16-conv-to-enc (Depends-on): Update.
29116
29117 2008-04-20  Bruno Haible  <bruno@clisp.org>
29118
29119         * tests/uniconv/test-u8-conv-to-enc.c (main): Accept result == NULL
29120         when the resulting length is 0.
29121         * tests/uniconv/test-u16-conv-to-enc.c (main): Likewise.
29122
29123 2008-04-20  Bruno Haible  <bruno@clisp.org>
29124
29125         * m4/roundf.m4 (gl_FUNC_ROUNDF): Add test whether roundf actually
29126         works.
29127         * doc/posix-functions/roundf.texi: Mention roundf bug on mingw.
29128
29129 2008-04-20  Bruno Haible  <bruno@clisp.org>
29130
29131         * tests/test-tsearch.c (main): Don't use initstate if it is missing.
29132         * modules/tsearch-tests (configure.ac): Test for initstate function.
29133
29134 2008-04-20  Bruno Haible  <bruno@clisp.org>
29135
29136         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Also provided a substitute
29137         for nlink_t if missing.
29138         * tests/test-sys_stat.c: Check the existence of the nlink_t type.
29139
29140 2008-04-19  Bruno Haible  <bruno@clisp.org>
29141
29142         Work around snprintf bug on Linux libc5.
29143         * m4/printf.m4 (gl_SNPRINTF_SIZE1): New macro.
29144         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Invoke
29145         gl_SNPRINTF_SIZE1.
29146         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
29147         * m4/snprintf.m4 (gl_FUNC_SNPRINTF): Likewise. Replace snprintf if
29148         that test failed.
29149         * m4/vsnprintf.m4 (gl_FUNC_VSNPRINTF): Likewise.
29150         * lib/vasnprintf.c (USE_SNPRINTF): Set to 0 on Linux libc5 systems.
29151         * modules/snprintf (Files): Add m4/printf.m4.
29152         * modules/vsnprintf (Files): Likewise.
29153         * doc/posix-functions/snprintf.texi: Document Linux libc5 problem.
29154         * doc/posix-functions/vsnprintf.texi: Likewise.
29155
29156 2008-04-19  Bruno Haible  <bruno@clisp.org>
29157
29158         * lib/vasnprintf.c (floorlog10l, floorlog10): Reduce maximum error
29159         from 0.0058 to less than 10^-7.
29160
29161 2008-04-19  Bruno Haible  <bruno@clisp.org>
29162
29163         Fix rounding when a precision is given.
29164         * lib/vasnprintf.c (is_borderline): New function.
29165         (VASNPRINTF): For %e and %g, consider replacing the digits 10....0 with
29166         9...9x.
29167         * tests/test-vasnprintf-posix.c (test_function): Test rounding with %f,
29168         %e, %g.
29169         * tests/test-vasprintf-posix.c (test_function): Likewise.
29170         * tests/test-snprintf-posix.h (test_function): Likewise.
29171         * tests/test-sprintf-posix.h (test_function): Likewise.
29172         * tests/test-fprintf-posix.h (test_function): Test rounding with %f.
29173         * tests/test-printf-posix.h (test_function): Likewise.
29174         * tests/test-printf-posix.output: Update.
29175         Reported by John Darrington <john@darrington.wattle.id.au> via
29176         Ben Pfaff <blp@cs.stanford.edu>.
29177
29178 2008-04-18  Simon Josefsson  <simon@josefsson.org>
29179
29180         * doc/posix-functions/strftime.texi (strftime): Clarify platform.
29181         Suggested by Bruno Haible <bruno@clisp.org>.
29182
29183 2008-04-17  Bruno Haible  <bruno@clisp.org>
29184
29185         * lib/lock.h (gl_lock_destroy, gl_rwlock_destroy,
29186         gl_recursive_lock_destroy): Provide no-op definitions for the dummy
29187         implementation.
29188         Patch by Bruce Merry <bmerry@gmail.com>.
29189
29190 2008-04-17  Simon Josefsson  <simon@josefsson.org>
29191
29192         * doc/posix-functions/strftime.texi (strftime): Mention that %e
29193         doesn't work under Windows.
29194
29195 2008-04-16  Bruno Haible  <bruno@clisp.org>
29196
29197         * lib/localename.c (LANG_MAORI, LANG_QUECHUA, LANG_SOTHO, LANG_UIGHUR):
29198         New macros.
29199         (SUBLANG_BOSNIAN_BOSNIA_HERZEGOVINA_LATIN,
29200         SUBLANG_BOSNIAN_BOSNIA_HERZEGOVINA_CYRILLIC,
29201         SUBLANG_CROATIAN_CROATIA, SUBLANG_CROATIAN_BOSNIA_HERZEGOVINA_LATIN,
29202         SUBLANG_MONGOLIAN_CYRILLIC_MONGOLIA, SUBLANG_MONGOLIAN_PRC,
29203         SUBLANG_QUECHUA_BOLIVIA, SUBLANG_QUECHUA_ECUADOR, SUBLANG_QUECHUA_PERU,
29204         SUBLANG_RUSSIAN_RUSSIA, SUBLANG_RUSSIAN_MOLDAVIA, SUBLANG_SPANISH_US,
29205         SUBLANG_TIBETAN_PRC, SUBLANG_TIBETAN_BHUTAN, SUBLANG_UIGHUR_PRC): New
29206         macros.
29207         (gl_locale_name_from_win32_LANGID): Refine code for Croatian/Bosnian,
29208         Mongolian, Russian, Spanish, Tibetan. Add code for Maori, Quechua,
29209         Northern Sotho, Uighur.
29210
29211 2008-04-16  Bruno Haible  <bruno@clisp.org>
29212
29213         * lib/localename.c (SUBLANG_SINDHI_INDIA): New macro.
29214         (SUBLANG_SINDHI_PAKISTAN): Change value from 1 to 2.
29215         (gl_locale_name_from_win32_LANGID): Fix code for Sindhi.
29216         Reported by Daniel Bergström <daniel@octocode.com>.
29217
29218 2007-12-25  KJK::Hyperion  <hackbunny@reactos.com>
29219             Bruno Haible  <bruno@clisp.org>
29220
29221         * lib/localename.c (gl_locale_name_canonicalize) [WIN32_NATIVE]: New
29222         function.
29223         (gl_locale_name_from_win32_LANGID, gl_locale_name_from_win32_LCID):
29224         New functions, mostly extracted from gl_locale_name_default.
29225         (gl_locale_name_default): Use gl_locale_name_from_win32_LCID.
29226
29227 2008-04-16  Eric Blake  <ebb9@byu.net>
29228
29229         Adjust strtod detection to catch glibc 2.7 bug.
29230         * m4/strtod.m4 (gl_FUNC_STRTOD): Test "nan()" behavior.
29231         Reported by John Gatewood Ham.
29232
29233 2008-04-16  Bruno Haible  <bruno@clisp.org>
29234
29235         Add tentative support for Linux libc5.
29236         * lib/fbufmode.c (fbufmode) [__GNU_LIBRARY__==1]: Reuse glibc2 code.
29237         * lib/fpurge.c (fpurge): Likewise.
29238         * lib/freadable.c (freadable): Likewise.
29239         * lib/freadahead.c (freadahead): Likewise.
29240         * lib/freading.c (freading): Likewise.
29241         * lib/freadptr.c (freadptr): Likewise.
29242         * lib/freadseek.c (freadptrinc): Likewise.
29243         * lib/fseeko.c (rpl_fseeko): Likewise.
29244         * lib/fseterr.c (fseterr): Likewise.
29245         * lib/fwritable.c (fwritable): Likewise.
29246         * lib/fwriting.c (fwriting): Likewise.
29247         Reported by Alain Guibert <alguibert+bts@free.fr>.
29248
29249 2008-04-15  Bruno Haible  <bruno@clisp.org>
29250
29251         * modules/mathl (configure.ac): Define module indicator.
29252
29253 2008-04-15  Bruno Haible  <bruno@clisp.org>
29254
29255         * lib/logl.c (logl): Remove unused variables.
29256
29257 2008-04-15  Bruno Haible  <bruno@clisp.org>
29258
29259         * lib/uniconv/u-conv-to-enc.h (FUNC): Fix return value when U_TO_U8
29260         fails.
29261
29262 2008-04-15  Bruno Haible  <bruno@clisp.org>
29263
29264         * lib/trim.c (trim2): Fix argument of isspace() macro.
29265
29266 2008-04-15  Paolo Bonzini  <bonzini@gnu.org>
29267
29268         * lib/tanl.c (kernel_tanl): Rename flag to invert, initialize it
29269         to 0.
29270         * lib/trigl.c (ieee754_rem_pio2l): Fix range checks.
29271
29272 2008-04-14  Bruno Haible  <bruno@clisp.org>
29273
29274         * m4/calloc.m4 (_AC_FUNC_CALLOC_IF): Fix underquoting of
29275         AC_LANG_PROGRAM argument.
29276         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS): Likewise.
29277         * m4/gethrxtime.m4 (gl_ARITHMETIC_HRTIME_T): Likewise.
29278         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Likewise.
29279         * m4/inttypes.m4 (gl_INTTYPES_H): Likewise.
29280         * m4/math_h.m4 (gl_MATH_H): Likewise.
29281         * m4/mbstate_t.m4 (AC_TYPE_MBSTATE_T): Likewise.
29282         * m4/memmem.m4 (gl_FUNC_MEMMEM): Likewise.
29283         * m4/netinet_in_h.m4 (gl_HEADER_NETINET_IN): Likewise.
29284         * m4/physmem.m4 (gl_SYS__SYSTEM_CONFIGURATION): Likewise.
29285         * m4/putenv.m4 (gl_FUNC_PUTENV): Likewise.
29286         * m4/regex.m4 (gl_REGEX): Likewise.
29287         * m4/stdint.m4 (gl_INTEGER_TYPE_SUFFIX): Likewise.
29288         * m4/stdio_h.m4 (gl_STDIN_LARGE_OFFSET): Likewise.
29289         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
29290         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE): Likewise.
29291         * m4/strndup.m4 (gl_FUNC_STRNDUP): Likewise.
29292         * m4/strstr.m4 (gl_FUNC_STRSTR): Likewise.
29293         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
29294         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Likewise.
29295
29296 2008-04-14  Jim Meyering  <meyering@redhat.com>
29297
29298         test-strtod: fix typos: s/abs/fabs/
29299         * tests/test-strtod.c (main): Use fabs, not narrowing-to-int "abs".
29300
29301 2008-04-13  Bruno Haible  <bruno@clisp.org>
29302
29303         Fix conflict between modules 'canonicalize' and 'canonicalize-lgpl'.
29304         * lib/canonicalize-lgpl.c: Elide the contents if the 'canonicalize'
29305         module is also used and while not building the reloc-wrapper.
29306
29307 2008-04-13  Bruno Haible  <bruno@clisp.org>
29308
29309         * tests/test-getaddrinfo.c (simple): Ignore EAI_NODATA error.
29310
29311 2008-04-13  Bruno Haible  <bruno@clisp.org>
29312
29313         Fix AIX compilation failure introduced on 2008-04-02.
29314         * tests/test-frexp.c (exp): Undefine before redefining.
29315         * tests/test-frexpl.c (exp): Likewise.
29316
29317 2008-04-13  Bruno Haible  <bruno@clisp.org>
29318
29319         Work around a HP-UX stdio bug.
29320         * tests/test-ftell.c (main): Disable the fseek/ftell test on HP-UX.
29321         * tests/test-ftello.c (main): Likewise.
29322         * doc/posix-functions/ftell.texi: Mention HP-UX bug.
29323         * doc/posix-functions/ftello.texi: Likewise.
29324
29325 2008-04-13  Bruno Haible  <bruno@clisp.org>
29326
29327         Make test-signbit pass on HP-UX/hppa.
29328         * tests/test-signbit.c (minus_zerol): New variable.
29329         (test_signbitl): Use it.
29330
29331 2008-04-13  Bruno Haible  <bruno@clisp.org>
29332
29333         Make truncl work on OSF/1 4.0.
29334         * m4/truncl.m4 (gl_FUNC_TRUNCL): Test whether truncl actually works.
29335         Set REPLACE_TRUNCL, not HAVE_DECL_TRUNCL.
29336         * lib/math.in.h (truncl): Test REPLACE_TRUNCL, not HAVE_DECL_TRUNCL.
29337         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_TRUNCL, not
29338         HAVE_DECL_TRUNCL.
29339         * modules/math (Makefile.am): Substitute REPLACE_TRUNCL, not
29340         HAVE_DECL_TRUNCL.
29341         * doc/posix-functions/truncl.texi: Document the OSF/1 4.0 problem.
29342
29343 2008-04-13  Bruno Haible  <bruno@clisp.org>
29344
29345         * lib/unictype.h: Remove trailing comma from enumeration definitions.
29346
29347 2008-04-13  Bruno Haible  <bruno@clisp.org>
29348
29349         * lib/count-one-bits.h (COUNT_ONE_BITS): Rewrite verification
29350         expression, so as to avoid HP-UX 11 cc compiler bug.
29351
29352 2008-04-13  Bruno Haible  <bruno@clisp.org>
29353
29354         * m4/regex.m4 (gl_PREREQ_REGEX): Also check for <libintl.h>.
29355
29356 2008-04-13  Bruno Haible  <bruno@clisp.org>
29357
29358         * lib/git-merge-changelog.c: Remove empty declaration outside of
29359         functions.
29360
29361 2008-04-13  Bruno Haible  <bruno@clisp.org>
29362
29363         * modules/quotearg-tests (Makefile.am): Define test_quotearg_LDADD.
29364
29365 2008-04-13  Bruno Haible  <bruno@clisp.org>
29366
29367         * doc/posix-headers/sys_socket.texi: Document the problem on EMX.
29368         * lib/sys_socket.in.h (SHUT_RD, SHUT_WR, SHUT_RDWR): Define if missing.
29369         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Replace <sys/socket.h>
29370         also if it exists but lacks definitions of the SHUT_* macros.
29371         * modules/sys_socket (Description): Update.
29372         Reported by Elbert Pol <e.pol@chello.nl>.
29373
29374 2008-04-13  Bruno Haible  <bruno@clisp.org>
29375
29376         * lib/localcharset.c (OS2): Don't redefine if already defined.
29377         Reported by Elbert Pol <e.pol@chello.nl>.
29378
29379 2008-04-13  Bruno Haible  <bruno@clisp.org>
29380
29381         * lib/binary-io.h [__EMX__]: Include <io.h>.
29382         Reported by Elbert Pol <e.pol@chello.nl>.
29383
29384 2008-04-12  Bruno Haible  <bruno@clisp.org>
29385
29386         * lib/fpucw.h: Enable the definitions also for x86_64.
29387         Needed for NetBSD/x86_64.
29388         Reported by Thomas Klausner <tk@giga.or.at>.
29389
29390 2008-04-12  Bruno Haible  <bruno@clisp.org>
29391
29392         * tests/test-strtod.c: Include isnand.h.
29393         (main): Use isnand instead of isnan.
29394         Reported by Jim Meyering.
29395
29396 2008-04-12  Bruno Haible  <bruno@clisp.org>
29397
29398         * m4/isnanf.m4 (gl_ISNANF_WORKS): Add a test for a special NaN.
29399         Reported by Nelson H. F. Beebe <beebe@math.utah.edu>.
29400
29401 2008-04-12  Jim Meyering  <meyering@redhat.com>
29402
29403         * m4/math_h.m4 (gl_MATH_H): Fix typos.
29404
29405 2008-04-12  Bruno Haible  <bruno@clisp.org>
29406
29407         * lib/freadptr.c (freadptr) [__EMX__]: Fix wrong assertion.
29408         Reported by Elbert Pol <e.pol@chello.nl>.
29409
29410 2008-04-12  Eric Blake  <ebb9@byu.net>
29411
29412         Work around Solaris 10 math.h bug.
29413         * m4/math_h.m4 (gl_MATH_H): Check for bug.
29414         (gl_MATH_H_DEFAULTS): Set up default.
29415         * modules/math (Makefile.am): Replace new indicators.
29416         * lib/math.in.h (NAN, HUGE_VAL): Provide replacements.
29417         * tests/test-math.c (main): Test this.
29418         * m4/strtod.m4 (gl_FUNC_STRTOD): Don't rely on HUGE_VAL.
29419         * doc/posix-headers/math.texi (math.h): Mention bug.
29420         Reported by Nelson H. F. Beebe and Jim Meyering.
29421
29422 2008-04-11  Bruno Haible  <bruno@clisp.org>
29423
29424         Adapt to future versions of Apple GCC.
29425         * lib/argp-fmtstream.h (ARGP_FS_EI): Don't test __GNUC_GNU_INLINE__.
29426         Reported by Peter O'Gorman <peter@pogma.com>.
29427
29428 2008-04-11  Bruno Haible  <bruno@clisp.org>
29429
29430         * tests/test-getaddrinfo.c (simple): Ignore EAI_NONAME error.
29431
29432 2008-04-11  Bruno Haible  <bruno@clisp.org>
29433
29434         * modules/strsignal-tests (Makefile.am): Define test_strsignal_LDADD.
29435
29436         * modules/getaddrinfo-tests (Makefile.am): Define
29437         test_getaddrinfo_LDADD.
29438
29439 2008-04-11  Bruno Haible  <bruno@clisp.org>
29440
29441         * lib/strsignal.c (_sys_siglist): Don't declare if already declared.
29442         (init): Fix syntax error.
29443         * m4/strsignal.m4 (gl_PREREQ_STRSIGNAL): Check whether _sys_siglist
29444         is declared.
29445
29446 2008-04-11  Bruno Haible  <bruno@clisp.org>
29447
29448         * lib/glob.c: Include <stdbool.h>. Needed at least with IRIX cc.
29449         * modules/glob (Depends-on): Add stdbool.
29450
29451 2008-04-11  Bruno Haible  <bruno@clisp.org>
29452
29453         * lib/trim.c: Include <string.h>.
29454
29455 2008-04-11  Eric Blake  <ebb9@byu.net>
29456
29457         Avoid compile failure on OS/2.
29458         * lib/regex_internal.h (internal_function): Disable optimization
29459         on OS/2 (__EMX__), where it caused compiler error.
29460         Reported by Elbert Pol.
29461
29462 2008-04-11  Bruno Haible  <bruno@clisp.org>
29463
29464         Flush the standard error stream before aborting. Needed on mingw.
29465         * tests/test-argmatch.c (ASSERT): Call fflush(stderr) before abort().
29466         * tests/test-array_list.c (ASSERT): Likewise.
29467         * tests/test-array_oset.c (ASSERT): Likewise.
29468         * tests/test-avltree_list.c (ASSERT): Likewise.
29469         * tests/test-avltree_oset.c (ASSERT): Likewise.
29470         * tests/test-avltreehash_list.c (ASSERT): Likewise.
29471         * tests/test-binary-io.c (ASSERT): Likewise.
29472         * tests/test-byteswap.c (ASSERT): Likewise.
29473         * tests/test-c-ctype.c (ASSERT): Likewise.
29474         * tests/test-c-strcasecmp.c (ASSERT): Likewise.
29475         * tests/test-c-strcasestr.c (ASSERT): Likewise.
29476         * tests/test-c-strncasecmp.c (ASSERT): Likewise.
29477         * tests/test-c-strstr.c (ASSERT): Likewise.
29478         * tests/test-canonicalize-lgpl.c (ASSERT): Likewise.
29479         * tests/test-canonicalize.c (ASSERT): Likewise.
29480         * tests/test-carray_list.c (ASSERT): Likewise.
29481         * tests/test-ceilf1.c (ASSERT): Likewise.
29482         * tests/test-ceilf2.c (ASSERT): Likewise.
29483         * tests/test-ceill.c (ASSERT): Likewise.
29484         * tests/test-count-one-bits.c (ASSERT): Likewise.
29485         * tests/test-fbufmode.c (ASSERT): Likewise.
29486         * tests/test-fflush2.c (ASSERT): Likewise.
29487         * tests/test-floorf1.c (ASSERT): Likewise.
29488         * tests/test-floorf2.c (ASSERT): Likewise.
29489         * tests/test-floorl.c (ASSERT): Likewise.
29490         * tests/test-fopen.c (ASSERT): Likewise.
29491         * tests/test-fpending.c (ASSERT): Likewise.
29492         * tests/test-fprintf-posix.c (ASSERT): Likewise.
29493         * tests/test-fpurge.c (ASSERT): Likewise.
29494         * tests/test-freadable.c (ASSERT): Likewise.
29495         * tests/test-freadahead.c (ASSERT): Likewise.
29496         * tests/test-freading.c (ASSERT): Likewise.
29497         * tests/test-freadptr.c (ASSERT): Likewise.
29498         * tests/test-freadptr2.c (ASSERT): Likewise.
29499         * tests/test-freadseek.c (ASSERT): Likewise.
29500         * tests/test-freopen.c (ASSERT): Likewise.
29501         * tests/test-frexp.c (ASSERT): Likewise.
29502         * tests/test-frexpl.c (ASSERT): Likewise.
29503         * tests/test-fseek.c (ASSERT): Likewise.
29504         * tests/test-fseeko.c (ASSERT): Likewise.
29505         * tests/test-fstrcmp.c (ASSERT): Likewise.
29506         * tests/test-ftell.c (ASSERT): Likewise.
29507         * tests/test-ftello.c (ASSERT): Likewise.
29508         * tests/test-func.c (ASSERT): Likewise.
29509         * tests/test-fwritable.c (ASSERT): Likewise.
29510         * tests/test-fwriting.c (ASSERT): Likewise.
29511         * tests/test-getdelim.c (ASSERT): Likewise.
29512         * tests/test-getline.c (ASSERT): Likewise.
29513         * tests/test-i-ring.c (ASSERT): Likewise.
29514         * tests/test-iconv-utf.c (ASSERT): Likewise.
29515         * tests/test-iconv.c (ASSERT): Likewise.
29516         * tests/test-isfinite.c (ASSERT): Likewise.
29517         * tests/test-isnand.c (ASSERT): Likewise.
29518         * tests/test-isnanf.c (ASSERT): Likewise.
29519         * tests/test-isnanl.h (ASSERT): Likewise.
29520         * tests/test-ldexpl.c (ASSERT): Likewise.
29521         * tests/test-linked_list.c (ASSERT): Likewise.
29522         * tests/test-linkedhash_list.c (ASSERT): Likewise.
29523         * tests/test-localename.c (ASSERT): Likewise.
29524         * tests/test-lseek.c (ASSERT): Likewise.
29525         * tests/test-mbscasecmp.c (ASSERT): Likewise.
29526         * tests/test-mbscasestr1.c (ASSERT): Likewise.
29527         * tests/test-mbscasestr2.c (ASSERT): Likewise.
29528         * tests/test-mbscasestr3.c (ASSERT): Likewise.
29529         * tests/test-mbscasestr4.c (ASSERT): Likewise.
29530         * tests/test-mbschr.c (ASSERT): Likewise.
29531         * tests/test-mbscspn.c (ASSERT): Likewise.
29532         * tests/test-mbsncasecmp.c (ASSERT): Likewise.
29533         * tests/test-mbspbrk.c (ASSERT): Likewise.
29534         * tests/test-mbspcasecmp.c (ASSERT): Likewise.
29535         * tests/test-mbsrchr.c (ASSERT): Likewise.
29536         * tests/test-mbsspn.c (ASSERT): Likewise.
29537         * tests/test-mbsstr1.c (ASSERT): Likewise.
29538         * tests/test-mbsstr2.c (ASSERT): Likewise.
29539         * tests/test-mbsstr3.c (ASSERT): Likewise.
29540         * tests/test-memchr2.c (ASSERT): Likewise.
29541         * tests/test-memmem.c (ASSERT): Likewise.
29542         * tests/test-open.c (ASSERT): Likewise.
29543         * tests/test-printf-frexp.c (ASSERT): Likewise.
29544         * tests/test-printf-frexpl.c (ASSERT): Likewise.
29545         * tests/test-printf-posix.c (ASSERT): Likewise.
29546         * tests/test-quotearg.c (ASSERT): Likewise.
29547         * tests/test-rbtree_list.c (ASSERT): Likewise.
29548         * tests/test-rbtree_oset.c (ASSERT): Likewise.
29549         * tests/test-rbtreehash_list.c (ASSERT): Likewise.
29550         * tests/test-round1.c (ASSERT): Likewise.
29551         * tests/test-roundf1.c (ASSERT): Likewise.
29552         * tests/test-roundl.c (ASSERT): Likewise.
29553         * tests/test-signbit.c (ASSERT): Likewise.
29554         * tests/test-sleep.c (ASSERT): Likewise.
29555         * tests/test-snprintf-posix.c (ASSERT): Likewise.
29556         * tests/test-snprintf.c (ASSERT): Likewise.
29557         * tests/test-sprintf-posix.c (ASSERT): Likewise.
29558         * tests/test-stat-time.c (ASSERT): Likewise.
29559         * tests/test-strcasestr.c (ASSERT): Likewise.
29560         * tests/test-strerror.c (ASSERT): Likewise.
29561         * tests/test-striconv.c (ASSERT): Likewise.
29562         * tests/test-striconveh.c (ASSERT): Likewise.
29563         * tests/test-striconveha.c (ASSERT): Likewise.
29564         * tests/test-strsignal.c (ASSERT): Likewise.
29565         * tests/test-strstr.c (ASSERT): Likewise.
29566         * tests/test-strtod.c (ASSERT): Likewise.
29567         * tests/test-trunc1.c (ASSERT): Likewise.
29568         * tests/test-trunc2.c (ASSERT): Likewise.
29569         * tests/test-truncf1.c (ASSERT): Likewise.
29570         * tests/test-truncf2.c (ASSERT): Likewise.
29571         * tests/test-truncl.c (ASSERT): Likewise.
29572         * tests/test-vasnprintf-posix.c (ASSERT): Likewise.
29573         * tests/test-vasnprintf-posix2.c (ASSERT): Likewise.
29574         * tests/test-vasnprintf.c (ASSERT): Likewise.
29575         * tests/test-vasprintf-posix.c (ASSERT): Likewise.
29576         * tests/test-vasprintf.c (ASSERT): Likewise.
29577         * tests/test-vfprintf-posix.c (ASSERT): Likewise.
29578         * tests/test-vprintf-posix.c (ASSERT): Likewise.
29579         * tests/test-vsnprintf-posix.c (ASSERT): Likewise.
29580         * tests/test-vsnprintf.c (ASSERT): Likewise.
29581         * tests/test-vsprintf-posix.c (ASSERT): Likewise.
29582         * tests/test-wcwidth.c (ASSERT): Likewise.
29583         * tests/test-xfprintf-posix.c (ASSERT): Likewise.
29584         * tests/test-xprintf-posix.c (ASSERT): Likewise.
29585         * tests/test-xvasprintf.c (ASSERT): Likewise.
29586         * tests/uniconv/test-u16-conv-from-enc.c (ASSERT): Likewise.
29587         * tests/uniconv/test-u16-conv-to-enc.c (ASSERT): Likewise.
29588         * tests/uniconv/test-u16-strconv-from-enc.c (ASSERT): Likewise.
29589         * tests/uniconv/test-u16-strconv-to-enc.c (ASSERT): Likewise.
29590         * tests/uniconv/test-u32-conv-from-enc.c (ASSERT): Likewise.
29591         * tests/uniconv/test-u32-conv-to-enc.c (ASSERT): Likewise.
29592         * tests/uniconv/test-u32-strconv-from-enc.c (ASSERT): Likewise.
29593         * tests/uniconv/test-u32-strconv-to-enc.c (ASSERT): Likewise.
29594         * tests/uniconv/test-u8-conv-from-enc.c (ASSERT): Likewise.
29595         * tests/uniconv/test-u8-conv-to-enc.c (ASSERT): Likewise.
29596         * tests/uniconv/test-u8-strconv-from-enc.c (ASSERT): Likewise.
29597         * tests/uniconv/test-u8-strconv-to-enc.c (ASSERT): Likewise.
29598         * tests/unictype/test-bidi_byname.c (ASSERT): Likewise.
29599         * tests/unictype/test-bidi_name.c (ASSERT): Likewise.
29600         * tests/unictype/test-bidi_of.c (ASSERT): Likewise.
29601         * tests/unictype/test-bidi_test.c (ASSERT): Likewise.
29602         * tests/unictype/test-block_list.c (ASSERT): Likewise.
29603         * tests/unictype/test-block_of.c (ASSERT): Likewise.
29604         * tests/unictype/test-block_test.c (ASSERT): Likewise.
29605         * tests/unictype/test-categ_and.c (ASSERT): Likewise.
29606         * tests/unictype/test-categ_and_not.c (ASSERT): Likewise.
29607         * tests/unictype/test-categ_byname.c (ASSERT): Likewise.
29608         * tests/unictype/test-categ_name.c (ASSERT): Likewise.
29609         * tests/unictype/test-categ_none.c (ASSERT): Likewise.
29610         * tests/unictype/test-categ_of.c (ASSERT): Likewise.
29611         * tests/unictype/test-categ_or.c (ASSERT): Likewise.
29612         * tests/unictype/test-categ_test_withtable.c (ASSERT): Likewise.
29613         * tests/unictype/test-combining.c (ASSERT): Likewise.
29614         * tests/unictype/test-decdigit.c (ASSERT): Likewise.
29615         * tests/unictype/test-digit.c (ASSERT): Likewise.
29616         * tests/unictype/test-mirror.c (ASSERT): Likewise.
29617         * tests/unictype/test-numeric.c (ASSERT): Likewise.
29618         * tests/unictype/test-pr_byname.c (ASSERT): Likewise.
29619         * tests/unictype/test-pr_test.c (ASSERT): Likewise.
29620         * tests/unictype/test-predicate-part1.h (ASSERT): Likewise.
29621         * tests/unictype/test-scripts.c (ASSERT): Likewise.
29622         * tests/unictype/test-sy_c_ident.c (ASSERT): Likewise.
29623         * tests/unictype/test-sy_java_ident.c (ASSERT): Likewise.
29624         * tests/unistdio/test-u16-asnprintf1.c (ASSERT): Likewise.
29625         * tests/unistdio/test-u16-vasnprintf1.c (ASSERT): Likewise.
29626         * tests/unistdio/test-u16-vasnprintf2.c (ASSERT): Likewise.
29627         * tests/unistdio/test-u16-vasnprintf3.c (ASSERT): Likewise.
29628         * tests/unistdio/test-u16-vasprintf1.c (ASSERT): Likewise.
29629         * tests/unistdio/test-u16-vsnprintf1.c (ASSERT): Likewise.
29630         * tests/unistdio/test-u16-vsprintf1.c (ASSERT): Likewise.
29631         * tests/unistdio/test-u32-asnprintf1.c (ASSERT): Likewise.
29632         * tests/unistdio/test-u32-vasnprintf1.c (ASSERT): Likewise.
29633         * tests/unistdio/test-u32-vasnprintf2.c (ASSERT): Likewise.
29634         * tests/unistdio/test-u32-vasnprintf3.c (ASSERT): Likewise.
29635         * tests/unistdio/test-u32-vasprintf1.c (ASSERT): Likewise.
29636         * tests/unistdio/test-u32-vsnprintf1.c (ASSERT): Likewise.
29637         * tests/unistdio/test-u32-vsprintf1.c (ASSERT): Likewise.
29638         * tests/unistdio/test-u8-asnprintf1.c (ASSERT): Likewise.
29639         * tests/unistdio/test-u8-vasnprintf1.c (ASSERT): Likewise.
29640         * tests/unistdio/test-u8-vasnprintf2.c (ASSERT): Likewise.
29641         * tests/unistdio/test-u8-vasnprintf3.c (ASSERT): Likewise.
29642         * tests/unistdio/test-u8-vasprintf1.c (ASSERT): Likewise.
29643         * tests/unistdio/test-u8-vsnprintf1.c (ASSERT): Likewise.
29644         * tests/unistdio/test-u8-vsprintf1.c (ASSERT): Likewise.
29645         * tests/unistdio/test-ulc-asnprintf1.c (ASSERT): Likewise.
29646         * tests/unistdio/test-ulc-vasnprintf1.c (ASSERT): Likewise.
29647         * tests/unistdio/test-ulc-vasnprintf2.c (ASSERT): Likewise.
29648         * tests/unistdio/test-ulc-vasnprintf3.c (ASSERT): Likewise.
29649         * tests/unistdio/test-ulc-vasprintf1.c (ASSERT): Likewise.
29650         * tests/unistdio/test-ulc-vsnprintf1.c (ASSERT): Likewise.
29651         * tests/unistdio/test-ulc-vsprintf1.c (ASSERT): Likewise.
29652         * tests/uniwidth/test-u16-strwidth.c (ASSERT): Likewise.
29653         * tests/uniwidth/test-u16-width.c (ASSERT): Likewise.
29654         * tests/uniwidth/test-u32-strwidth.c (ASSERT): Likewise.
29655         * tests/uniwidth/test-u32-width.c (ASSERT): Likewise.
29656         * tests/uniwidth/test-u8-strwidth.c (ASSERT): Likewise.
29657         * tests/uniwidth/test-u8-width.c (ASSERT): Likewise.
29658         * tests/uniwidth/test-uc_width.c (ASSERT): Likewise.
29659         Reported by Eric Blake.
29660
29661 2008-04-11  Bruno Haible  <bruno@clisp.org>
29662
29663         * lib/wchar.in.h: Tweak comment.
29664
29665 2008-04-11  Bruno Haible  <bruno@clisp.org>
29666
29667         Fix __GNUC_STDC_INLINE__ predefine with Apple GCC on MacOS X 10.5.
29668         * gnulib-tool (func_emit_initmacro_start): Emit an invocation of
29669         gl_COMMON.
29670         * m4/gnulib-common.m4 (gl_COMMON, gl_COMMON_BODY): New macros.
29671
29672 2008-04-11  Bruno Haible  <bruno@clisp.org>
29673
29674         * modules/git-merge-changelog (git_merge_changelog_LDADD): Add LIBINTL.
29675
29676 2008-04-11  Simon Josefsson  <simon@josefsson.org>
29677
29678         * lib/gc-gnulib.c: On Windows, use CryptGenRandom from CSP instead
29679         of attempting to use non-existing /dev/*random.  Based on patch
29680         from Adam Strzelecki <ono@java.pl> in
29681         <http://lists.gnu.org/archive/html/help-gsasl/2008-02/msg00000.html>.
29682
29683 2008-04-08  Bruno Haible  <bruno@clisp.org>
29684
29685         Add tentative support for emx+gcc.
29686         * lib/fbufmode.c (fbufmode) [__EMX__]: Add conditional code.
29687         * lib/fpurge.c (fpurge): Likewise.
29688         * lib/freadable.c (freadable): Likewise.
29689         * lib/freadahead.c (freadahead): Likewise.
29690         * lib/freading.c (freading): Likewise.
29691         * lib/freadptr.c (freadptr): Likewise.
29692         * lib/freadseek.c (freadptrinc): Likewise.
29693         * lib/fseeko.c (rpl_fseeko): Likewise.
29694         * lib/fseterr.c (fseterr): Likewise.
29695         * lib/fwritable.c (fwritable): Likewise.
29696         * lib/fwriting.c (fwriting): Likewise.
29697         * m4/fpending.m4 (gl_FUNC_FPENDING): Add a variant for emx+gcc.
29698
29699 2008-04-09  Eric Blake  <ebb9@byu.net>
29700
29701         Avoid some autoconf warnings.
29702         * m4/regex.m4 (gl_REGEX): s/AC_HELP_STRING/AS_HELP_STRING/.
29703         * m4/acl.m4 (gl_FUNC_ACL): Likewise.
29704         * m4/afs.m4 (gl_AFS): Likewise.
29705         * m4/gc-random.m4 (gl_GC_RANDOM): Likewise.
29706         * m4/include_next.m4 (gl_INCLUDE_NEXT): s/AC_FOREACH/m4_foreach_w/.
29707         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Likewise.
29708         * m4/stdint.m4 (gl_STDINT_BITSIZEOF, gl_CHECK_TYPES_SIGNED)
29709         (gl_INTEGER_TYPE_SUFFIX): Likewise.
29710         * m4/onceonly_2_57.m4 (AC_CHECK_HEADERS_ONCE, AC_CHECK_FUNCS_ONCE)
29711         (AC_CHECK_DECLS_ONCE): Likewise.
29712         Rename file...
29713         * m4/onceonly.m4: ...to this, and delete 2.54 variant, now that
29714         gnulib-tool requires autoconf 2.59 or better.
29715         * gnulib-tool (func_get_filelist): s/\(onceonly\)_2_57.m4/\1.m4/.
29716
29717 2008-04-08  Eric Blake  <ebb9@byu.net>
29718
29719         Use 'git describe --match' if present (added in git 1.5.5).
29720         * build-aux/git-version-gen: Limit result to tags that match 'v*'
29721         if possible.
29722
29723 2008-04-08  Bruno Haible  <bruno@clisp.org>
29724
29725         Add tentative support for OpenServer.
29726         * lib/fbufmode.c (fbufmode): Add conditional define for _flag, _base,
29727         _ptr, _cnt.
29728         * lib/fpurge.c (fpurge): Likewise.
29729         * lib/freadable.c (freadable): Likewise.
29730         * lib/freadahead.c (freadahead): Likewise.
29731         * lib/freading.c (freading): Likewise.
29732         * lib/freadptr.c (freadptr): Likewise.
29733         * lib/freadseek.c (freadptrinc): Likewise.
29734         * lib/fseeko.c (rpl_fseeko): Likewise.
29735         * lib/fseterr.c (fseterr): Likewise.
29736         * lib/fwritable.c (fwritable): Likewise.
29737         * lib/fwriting.c (fwriting): Likewise.
29738         Reported by Roger Cornelius <rac@tenzing.org> and
29739         Brian K. White <brian@aljex.com>.
29740
29741 2008-04-06  Jim Meyering  <meyering@redhat.com>
29742
29743         * gnulib-tool (func_add_or_update): s/backuped/backed up/ in diagnostic
29744
29745 2008-04-06  Bruno Haible  <bruno@clisp.org>
29746
29747         Avoid possible error with non-ASCII bytes in UTF-8 locales.
29748         * tests/test-fprintf-posix.sh: Use "LC_ALL=C tr" instead of "tr".
29749         * tests/test-printf-posix.sh: Likewise.
29750         * tests/test-vfprintf-posix.sh: Likewise.
29751         * tests/test-vprintf-posix.sh: Likewise.
29752         * tests/test-xprintf-posix.sh: Likewise.
29753
29754 2008-04-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
29755
29756         * m4/double-slash-root.m4 (gl_DOUBLE_SLASH_ROOT): Fix quoting,
29757         hide error from 'ls', needed on OS/2.
29758         Report by Elbert Pol <elbert.pol@gmail.com>.
29759
29760 2008-04-04  Eric Blake  <ebb9@byu.net>
29761
29762         Make test-fseeko.c failures meaningful.
29763         * tests/test-fseeko.c: Print line number on failure.
29764         * tests/test-fseek.c: Likewise.
29765         Reported by Nelson H. F. Beebe.
29766
29767         Improve strtod bug detection check.
29768         * m4/strtod.m4 (gl_FUNC_STRTOD): Also check for hex-float parsing,
29769         required for Solaris 10.
29770         Reported by Bob Friesenhahn and Nelson H. F. Beebe.
29771
29772 2008-04-04  Bruno Haible  <bruno@clisp.org>
29773
29774         * modules/relocatable-prog-wrapper (Files): Add m4/environ.m4. Needed
29775         by m4/setenv.m4.
29776
29777 2008-04-03  Eric Blake  <ebb9@byu.net>
29778
29779         Ensure sane .version contents.
29780         * top/GNUmakefile (_dummy): Also delete .version when rebuilding
29781         version string.
29782         * build-aux/git-version-gen: Improve documentation.
29783
29784         Make GNU make output nicer.
29785         * top/GNUmakefile [!_have-Makefile]: Add dependency on
29786         MAKECMDGOALS to enforce message for all command line targets.  Set
29787         srcdir for use in maint.mk.
29788
29789         Another maintainer tweak.
29790         * top/GNUmakefile (_is-dist-target): Allow maintainer-distcheck as
29791         a target that regenerates version.
29792
29793 2008-04-03  Jim Meyering  <meyering@redhat.com>
29794
29795         vc-list-files: don't cause coreutils "make po-check" failure
29796         * build-aux/vc-list-files: Skip postprocessing when $2 is '.'
29797
29798 2008-04-03  Eric Blake  <ebb9@byu.net>
29799
29800         Allow VPATH usage of vc-list-files.
29801         * build-aux/vc-list-files (scriptversion): Add timestamp.
29802         (options): Add --help, --version, -C.
29803         (CVS): Support installed cvsu.
29804
29805 2008-04-02  Bruno Haible  <bruno@clisp.org>
29806
29807         Avoid some "statement with no effect" warnings from gcc.
29808         * tests/test-wctype.c (main): Explicitly ignore unused values.
29809         Reported by Jim Meyering.
29810
29811 2008-04-02  Jim Meyering  <meyering@redhat.com>
29812
29813         Avoid some warnings from "gcc -Wshadow".
29814         * tests/test-frexp.c (exp): Define to a different identifier.
29815         * tests/test-frexpl.c (exp): Likewise.
29816
29817 2008-04-03  Jim Meyering  <meyering@redhat.com>
29818
29819         bootstrap: remove dangling *.[ch] symlinks from lib
29820         * build-aux/bootstrap [dangling symlink removal]: Move find's
29821         -depth option to precede all others, to avoid a warning.
29822         Remove *.[ch] files too, and from "$source_base" (usually lib/).
29823
29824 2008-04-02  Bruno Haible  <bruno@clisp.org>
29825
29826         Avoid some warnings from "gcc -Wshadow".
29827         * tests/tests-vfprintf-posix.c (my_fprintf): Move after test_function.
29828         * tests/tests-vprintf-posix.c (my_printf): Move after test_function.
29829         * tests/tests-vsnprintf-posix.c (my_snprintf): Move after test_function.
29830         * tests/tests-vsprintf-posix.c (my_sprintf): Move after test_function.
29831         Reported by Jim Meyering.
29832
29833 2008-04-01  Bruno Haible  <bruno@clisp.org>
29834
29835         Fix test to work on IRIX 6.5 with cc.
29836         * tests/test-math.c (numeric_equal): New function.
29837         (main): Use it.
29838
29839 2008-04-01  Bruno Haible  <bruno@clisp.org>
29840
29841         * doc/posix-headers/math.texi: Refine documentation of NAN problem.
29842
29843 2008-04-01  Bruno Haible  <bruno@clisp.org>
29844
29845         * tests/test-vasnprintf-posix.c: Include nan.h instead of <math.h>.
29846         (test_function): Use NaNd, NaNl instead of NAN or 0.0L/0.0L.
29847         * modules/vasnprintf-posix-tests (Files): Add tests/nan.h.
29848         (Depends-on): Remove math.
29849
29850         * tests/test-vasprintf-posix.c: Include nan.h instead of <math.h>.
29851         (test_function): Use NaNd, NaNl instead of NAN or 0.0L/0.0L.
29852         * modules/vasprintf-posix-tests (Files): Add tests/nan.h.
29853         (Depends-on): Remove math.
29854
29855         * tests/test-snprintf-posix.h: Include nan.h instead of <math.h>.
29856         (test_function): Use NaNd, NaNl instead of NAN or 0.0L/0.0L.
29857         * modules/snprintf-posix-tests (Files): Add tests/nan.h.
29858         (Depends-on): Remove math.
29859         * modules/vsnprintf-posix-tests (Files): Add tests/nan.h.
29860         (Depends-on): Remove math.
29861
29862         * tests/test-sprintf-posix.h: Include nan.h instead of <math.h>.
29863         (test_function): Use NaNd, NaNl instead of NAN or 0.0L/0.0L.
29864         * modules/sprintf-posix-tests (Files): Add tests/nan.h.
29865         (Depends-on): Remove math.
29866         * modules/vsprintf-posix-tests (Files): Add tests/nan.h.
29867         (Depends-on): Remove math.
29868
29869         * tests/test-round1.c: Include nan.h.
29870         (main): Use NaNd instead of NAN.
29871         * modules/round-tests (Files): Add tests/nan.h.
29872
29873         * tests/test-trunc1.c: Include nan.h.
29874         (main): Use NaNd instead of NAN.
29875         * modules/trunc-tests (Files): Add tests/nan.h.
29876
29877         * tests/test-roundf1.c: Include nan.h.
29878         (main): Use NaNf instead of NAN.
29879         * modules/roundf-tests (Files): Add tests/nan.h.
29880
29881         * tests/test-truncf1.c: Include nan.h.
29882         (main): Use NaNf instead of NAN.
29883         * modules/truncf-tests (Files): Add tests/nan.h.
29884
29885         * tests/test-ceilf1.c: Include nan.h.
29886         (main): Use NaNf instead of NAN.
29887         * modules/ceilf-tests (Files): Add tests/nan.h.
29888
29889         * tests/test-floorf1.c: Include nan.h.
29890         (main): Use NaNf instead of NAN.
29891         * modules/floorf-tests (Files): Add tests/nan.h.
29892
29893         * tests/test-isnanf.c: Include nan.h instead of <math.h>.
29894         (main): Use NaNf instead of NAN.
29895         * modules/isnanf-nolibm-tests (Files): Add tests/nan.h.
29896
29897         * tests/test-isnand.c: Include nan.h instead of <math.h>.
29898         (main): Use NaNd instead of NAN.
29899         * modules/isnand-nolibm-tests (Files): Add tests/nan.h.
29900
29901         * tests/test-frexp.c: Include nan.h.
29902         (main): Use NaNd instead of NAN.
29903         * modules/frexp-tests (Files): Add tests/nan.h.
29904
29905         * lib/isnan.c: Don't include <math.h>.
29906         (FUNC): Don't use NAN macro.
29907         * modules/isnand-nolibm (Depends-on): Remove math.
29908         * modules/isnanf-nolibm (Depends-on): Remove math.
29909         * modules/isnanl (Depends-on): Remove math.
29910         * modules/isnanl-nolibm (Depends-on): Remove math.
29911
29912         * tests/nan.h: New file.
29913
29914 2008-04-01  Eric Blake  <ebb9@byu.net>
29915
29916         Fix typos.
29917         * tests/test-strtod.c (main): s/FLT_/DBL_/ for minimum and epsilon
29918         values to be the right type.
29919
29920         For now, cater to gnulib strtod inaccuracies.
29921         * tests/test-strtod.c (main): Allow 1-ulp error on expected
29922         fractional results.  While not as nice from a QoI perspective, it
29923         is a quicker patch than correctly implementing decimal to binary
29924         rounding.
29925
29926 2008-03-31  Eric Blake  <ebb9@byu.net>
29927
29928         Guarantee a definition of NAN.
29929         * lib/math.in.h (NAN): Define if missing.
29930         * tests/test-math.c (main): Test it.
29931         * doc/posix-headers/math.texi (math.h): Document this.
29932         * lib/isnan.c (rpl_isnand): Use it.
29933         * tests/test-ceilf1.c (NaN): Delete, and use NAN instead.
29934         * tests/test-floorf1.c (NaN): Likewise.
29935         * tests/test-frexp.c (NaN): Likewise.
29936         * tests/test-isnand.c (NaN): Likewise.
29937         * tests/test-isnanf.c (NaN): Likewise.
29938         * tests/test-round1.c (NaN): Likewise.
29939         * tests/test-roundf1.c (NaN): Likewise.
29940         * tests/test-snprintf-posix.h (NaN): Likewise.
29941         * tests/test-sprintf-posix.h (NaN): Likewise.
29942         * tests/test-trunc1.c (NaN): Likewise.
29943         * tests/test-truncf1.c (NaN): Likewise.
29944         * tests/test-vasnprintf-posix.c (NaN): Likewise.
29945         * tests/test-vasprintf-posix.c (NaN): Likewise.
29946         * modules/isnand-nolibm (Depends-on): Add math.
29947         * modules/isnanf-nolibm (Depends-on): Likewise.
29948         * modules/isnanl (Depends-on): Likewise.
29949         * modules/isnanl-nolibm (Depends-on): Likewise.
29950         * modules/snprintf-posix-tests (Depends-on): Likewise.
29951         * modules/sprintf-posix-tests (Depends-on): Likewise.
29952         * modules/vsnprintf-posix-tests (Depends-on): Likewise.
29953         * modules/vsprintf-posix-tests (Depends-on): Likewise.
29954         * modules/vasnprintf-posix-tests (Depends-on): Likewise.
29955         * modules/vasprintf-posix-tests (Depends-on): Likewise.
29956
29957 2008-03-31  Bruno Haible  <bruno@clisp.org>
29958
29959         * tests/test-strtod.c (main): Update results for OSF/1 platforms.
29960         * doc/posix-functions/strtod.texi: Likewise.
29961
29962 2008-03-31  Bruno Haible  <bruno@clisp.org>
29963
29964         * tests/test-strtod.c (main): Don't use C99 syntax.
29965
29966 2008-03-31  Bruno Haible  <bruno@clisp.org>
29967
29968         * tests/test-strtod.c (main): Don't test NAN macro. Needed for Solaris.
29969         Reported by Eric Blake.
29970
29971 2008-03-31  Jim Meyering  <meyering@redhat.com>
29972
29973         Don't compare actual signbit return values.
29974         * tests/test-strtod.c (main): Rather, compare only their
29975         zero/non-zero nature.
29976
29977 2008-03-31  Eric Blake  <ebb9@byu.net>
29978
29979         More strtod documentation.
29980         * doc/posix-functions/strtod.texi (strtod): Interpret more test
29981         failures as distinct bugs.
29982
29983 2008-03-30  Paul Eggert  <eggert@cs.ucla.edu>
29984
29985         * lib/wchar.in.h [defined __need_mbstate_t]: Just include <wchar.h>.
29986         Problem reported by Erik Benada in
29987         <http://lists.gnu.org/archive/html/bug-gnulib/2008-03/msg00249.html>.
29988
29989 2008-03-30  Bruno Haible  <bruno@clisp.org>
29990
29991         * tests/test-strtod.c: Add comments about which assertion fails on which
29992         platform.
29993         * doc/posix-functions/strtod.texi: Add info about many more platforms.
29994
29995 2008-03-30  Eric Blake  <ebb9@byu.net>
29996
29997         Test signbit behavior on zeros.
29998         * tests/test-signbit.c (test_signbitf): Add tests for zero.
29999         (test_signbitd, test_signbitl): Likewise.
30000
30001         More strtod touchups.
30002         * tests/test-strtod.c (main): Ignore tests for signbit on NaN, and
30003         sign of negative underflow, for now.  Use .5, not .1.
30004         * doc/posix-functions/strtod.texi (strtod): Mention these
30005         limitations.
30006         Reported by Jim Meyering.
30007
30008 2008-03-30  Bruno Haible  <bruno@clisp.org>
30009
30010         * lib/striconveh.h (mem_iconveh, str_iconveh): Optimize the conversion
30011         from UTF-8 to UTF-8//TRANSLIT in the same way as from UTF-8 to UTF-8.
30012
30013 2008-03-30  Bruno Haible  <bruno@clisp.org>
30014
30015         Avoid failure when attempting to return empty iconv results on some
30016         platforms.
30017         * lib/striconveh.c (mem_cd_iconveh_internal): In the final memory
30018         allocation, don't report ENOMEM when the resulting string is empty.
30019
30020 2008-03-30  Bruno Haible  <bruno@clisp.org>
30021
30022         Fix buffer overrun.
30023         * lib/vasnprintf.c (VASNPRINTF): If !USE_SNPRINTF && pad_ourselves:
30024         Don't consider the width for tmp_length. Check count against tmp_length
30025         before doing the padding. Ensure enough allocation during padding.
30026
30027 2008-03-30  Eric Blake  <ebb9@byu.net>
30028
30029         strtod touchups.
30030         * lib/strtod.c (strtod): Avoid compiler warnings.
30031         Reported by Jim Meyering.
30032
30033 2008-03-30  Bruno Haible  <bruno@clisp.org>
30034
30035         * lib/unistdio/u-vsprintf.h (EOVERFLOW): Remove fallback.
30036         * modules/unistdio/ulc-vsprintf (Depends-on): Add EOVERFLOW.
30037         * modules/unistdio/u8-vsprintf (Depends-on): Add EOVERFLOW.
30038         * modules/unistdio/u8-u8-vsprintf (Depends-on): Add EOVERFLOW.
30039         * modules/unistdio/u16-vsprintf (Depends-on): Add EOVERFLOW.
30040         * modules/unistdio/u16-u16-vsprintf (Depends-on): Add EOVERFLOW.
30041         * modules/unistdio/u32-vsprintf (Depends-on): Add EOVERFLOW.
30042         * modules/unistdio/u32-u32-vsprintf (Depends-on): Add EOVERFLOW.
30043
30044         * lib/unistdio/u-vsnprintf.h (EOVERFLOW): Remove fallback.
30045         * modules/unistdio/ulc-vsnprintf (Depends-on): Add EOVERFLOW.
30046         * modules/unistdio/u8-vsnprintf (Depends-on): Add EOVERFLOW.
30047         * modules/unistdio/u8-u8-vsnprintf (Depends-on): Add EOVERFLOW.
30048         * modules/unistdio/u16-vsnprintf (Depends-on): Add EOVERFLOW.
30049         * modules/unistdio/u16-u16-vsnprintf (Depends-on): Add EOVERFLOW.
30050         * modules/unistdio/u32-vsnprintf (Depends-on): Add EOVERFLOW.
30051         * modules/unistdio/u32-u32-vsnprintf (Depends-on): Add EOVERFLOW.
30052
30053         * lib/unistdio/u-vasprintf.h (EOVERFLOW): Remove fallback.
30054         * modules/unistdio/ulc-vasprintf (Depends-on): Add EOVERFLOW.
30055         * modules/unistdio/u8-vasprintf (Depends-on): Add EOVERFLOW.
30056         * modules/unistdio/u8-u8-vasprintf (Depends-on): Add EOVERFLOW.
30057         * modules/unistdio/u16-vasprintf (Depends-on): Add EOVERFLOW.
30058         * modules/unistdio/u16-u16-vasprintf (Depends-on): Add EOVERFLOW.
30059         * modules/unistdio/u32-vasprintf (Depends-on): Add EOVERFLOW.
30060         * modules/unistdio/u32-u32-vasprintf (Depends-on): Add EOVERFLOW.
30061
30062         * lib/unistdio/ulc-vfprintf.c (EOVERFLOW): Remove fallback.
30063         * modules/unistdio/ulc-vfprintf (Depends-on): Add EOVERFLOW.
30064
30065         * lib/unistdio/ulc-fprintf.c (EOVERFLOW): Remove fallback.
30066         * modules/unistdio/ulc-fprintf (Depends-on): Add EOVERFLOW.
30067
30068         * lib/xvasprintf.c (EOVERFLOW): Remove fallback.
30069         * modules/xvasprintf (Depends-on): Add EOVERFLOW.
30070
30071         * lib/vsprintf.c (EOVERFLOW): Remove fallback.
30072         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Drop gl_EOVERFLOW.
30073         * modules/vsprintf-posix (Depends-on): Add EOVERFLOW.
30074
30075         * lib/vsnprintf.c (EOVERFLOW): Remove fallback.
30076         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Drop gl_EOVERFLOW.
30077         * modules/vsnprintf (Depends-on): Add EOVERFLOW.
30078
30079         * lib/vfprintf.c (EOVERFLOW): Remove fallback.
30080         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Drop gl_EOVERFLOW.
30081         * modules/vfprintf-posix (Depends-on): Add EOVERFLOW.
30082
30083         * lib/vasprintf.c (EOVERFLOW): Remove fallback.
30084         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Drop gl_EOVERFLOW.
30085         * modules/vasprintf (Depends-on): Add EOVERFLOW.
30086
30087         * lib/vasnprintf.c (EOVERFLOW): Remove fallback.
30088         * m4/vasnprintf.m4 (gl_FUNC_VASNPRINTF): Drop gl_EOVERFLOW.
30089         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Drop gl_EOVERFLOW.
30090         * modules/vasnprintf (Files): Remove m4/eoverflow.m4.
30091         (Depends-on): Add EOVERFLOW.
30092         * modules/unistdio/ulc-vasnprintf (Files): Remove m4/eoverflow.m4.
30093         (Depends-on): Add EOVERFLOW.
30094         * modules/unistdio/u8-vasnprintf (Files): Remove m4/eoverflow.m4.
30095         (Depends-on): Add EOVERFLOW.
30096         * modules/unistdio/u8-u8-vasnprintf (Files): Remove m4/eoverflow.m4.
30097         (Depends-on): Add EOVERFLOW.
30098         * modules/unistdio/u16-vasnprintf (Files): Remove m4/eoverflow.m4.
30099         (Depends-on): Add EOVERFLOW.
30100         * modules/unistdio/u16-u16-vasnprintf (Files): Remove m4/eoverflow.m4.
30101         (Depends-on): Add EOVERFLOW.
30102         * modules/unistdio/u32-vasnprintf (Files): Remove m4/eoverflow.m4.
30103         (Depends-on): Add EOVERFLOW.
30104         * modules/unistdio/u32-u32-vasnprintf (Files): Remove m4/eoverflow.m4.
30105         (Depends-on): Add EOVERFLOW.
30106
30107         * lib/sprintf.c (EOVERFLOW): Remove fallback.
30108         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Drop gl_EOVERFLOW.
30109         * modules/sprintf-posix (Depends-on): Add EOVERFLOW.
30110
30111         * lib/snprintf.c (EOVERFLOW): Remove fallback.
30112         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Drop gl_EOVERFLOW.
30113         * modules/snprintf (Depends-on): Add EOVERFLOW.
30114
30115         * lib/poll.c (EOVERFLOW): Remove fallback.
30116         * modules/poll (Depends-on): Add EOVERFLOW.
30117
30118         * lib/getugroups.c (EOVERFLOW): Remove fallback.
30119         * modules/getugroups (Depends-on): Add EOVERFLOW.
30120
30121         * lib/getdelim.c (EOVERFLOW): Remove fallback.
30122         * modules/getdelim (Depends-on): Add EOVERFLOW.
30123
30124         * lib/ftell.c (EOVERFLOW): Remove fallback.
30125         * modules/ftell (Depends-on): Add EOVERFLOW.
30126
30127         * lib/fprintf.c (EOVERFLOW): Remove fallback.
30128         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Drop gl_EOVERFLOW.
30129         * modules/fprintf-posix (Depends-on): Add EOVERFLOW.
30130
30131         * lib/c-stack.c (EOVERFLOW): Remove unused fallback.
30132
30133         * modules/EOVERFLOW-tests: New file.
30134         * tests/test-EOVERFLOW.c: New file.
30135
30136         * modules/EOVERFLOW: New file.
30137         * doc/posix-headers/errno.texi: Mention EOVERFLOW portability problem.
30138
30139 2008-03-30  Bruno Haible  <bruno@clisp.org>
30140
30141         Fix bug introduced on 2007-06-10.
30142         * lib/vasnprintf.c (VASNPRINTF): When performing zero-padding, use
30143         spaces instead of 0 digits for 's' also when ENABLE_UNISTDIO.
30144
30145 2008-03-30  Bruno Haible  <bruno@clisp.org>
30146
30147         Improve freadseek's efficiency after ungetc.
30148         * lib/freadseek.c: Include freadahead.h.
30149         (freadptrinc): New function, extracted from freadseek.
30150         (freadseek): Use it in a loop. Use freadahead to determine the number
30151         of loop iterations.
30152         * modules/freadseek (Depends-on): Add freadahead.
30153         (configure.ac): Require AC_C_INLINE.
30154
30155 2008-03-30  Bruno Haible  <bruno@clisp.org>
30156
30157         * lib/freadseek.c (freadseek): Don't ignore the return value of
30158         freadptr.
30159
30160 2008-03-29  Eric Blake  <ebb9@byu.net>
30161
30162         Add hex float support.
30163         * modules/strtod (Depends-on): Add c-ctype.
30164         (Link): Mention POW_LIB.
30165         * lib/strtod.c (strtod): Recognize hex floats.  Don't allow
30166         whitespace between 'e' and exponent.
30167         * tests/test-strtod.c (main): Enable hex float tests.
30168         * doc/posix-functions/strtod.texi (strtod): Document what gnulib
30169         now provides.
30170
30171         Document various strtod bugs, with some fixes.
30172         * doc/posix-functions/strtod.texi (strtod): Document bugs with
30173         "-0x", "inf", "nan", and hex constants.
30174         * doc/posix-functions/atof.texi (atof): Likewise.
30175         * modules/stdlib (Makefile.am): Support strtod.
30176         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Likewise.
30177         * m4/strtod.m4 (gl_FUNC_STRTOD): Fit in stdlib framework, and
30178         detect additional strtod bugs.
30179         * lib/stdlib.in.h (rpl_strtod): Add declarations.
30180         * lib/strtod.c (strtod): Return -0.0 on negative underflow.  Use
30181         bool where appropriate.  Parse 'inf' and 'nan'.
30182         * tests/test-strtod.c: New file.
30183         * modules/strtod (Depends-on): Add stdbool, stdlib.
30184         (configure.ac): Turn on module indicator.
30185         * modules/strtod-tests: New module.
30186
30187 2008-03-29  Eric Blake  <ebb9@byu.net>
30188
30189         Fix ftell on mingw.
30190         * lib/ftell.c (EOVERFLOW): Define if the system lacks it.
30191         * modules/ftell-tests (Depends-on): Add binary-io.
30192         * modules/ftello-tests (Depends-on): Likewise.
30193         * tests/test-ftell.c (main): Enhance test to cover behavior after
30194         ungetc.  Enforce binary mode.
30195         * tests/test-ftello.c (main): Likewise.
30196
30197         Pass test-freadseek on cygwin.
30198         * modules/freadseek (Depends-on): Use freadptr, not freadahead.
30199         * lib/freadseek.c (freadseek): Don't increment beyond bounds of
30200         ungetc buffer.
30201
30202         * tests/test-fflush2.c (main): Fix typo.
30203
30204 2008-03-29  Bruno Haible  <bruno@clisp.org>
30205
30206         * tests/test-fflush2.c (main): Temporarily disable the contents of
30207         this test.
30208         * m4/fflush.m4 (gl_FUNC_FFLUSH): Add a TODO.
30209         Reported by Eric Blake.
30210
30211 2008-03-28  Simon Josefsson  <simon@josefsson.org>
30212
30213         * lib/gc.h (enum Gc_hash): Add GC_SHA224.
30214         (GC_SHA224_DIGEST_SIZE): Add.
30215
30216         * lib/gc-libgcrypt.c (gc_hash_open): Handle SHA-224.
30217         (gc_hash_digest_length): Likewise.
30218         (gc_hash_buffer): Likewise.
30219
30220 2008-03-25  Bruno Haible  <bruno@clisp.org>
30221
30222         * doc/gnulib-tool.texi (gettextize and autopoint): Explain in more
30223         detail which gettext release to use.
30224         Reported by Simon Josefsson.
30225
30226 2008-03-26  Jim Meyering  <meyering@redhat.com>
30227
30228         gnumakefile: remove file from $(top_builddir), not from $(top_srcdir)
30229         * modules/gnumakefile (clean-GNUmakefile): Also, use
30230         test ... && ... || : syntax rather than if-then ... fi.
30231
30232         gnumakefile: Don't double-quote-expand $(VPATH) value.
30233         * modules/gnumakefile (clean-GNUmakefile): Use single quotes.
30234
30235 2008-03-24  Eric Blake  <ebb9@byu.net>
30236
30237         Alter GNUmakefile to install into top directory.
30238         * modules/maintainer-makefile: Split, and add dependency...
30239         * modules/gnumakefile: to this new module.
30240         * build-aux/GNUmakefile: Move...
30241         * top/GNUmakefile: ...here.
30242         * build-aux/maint.mk: Move...
30243         * top/maint.mk: ...here.
30244         * MODULES.html.sh (Support for maintaining...): Document new
30245         module.
30246
30247 2008-03-23  Bruno Haible  <bruno@clisp.org>
30248
30249         * gnulib-tool: New options --vc-files, --no-vc-files.
30250         (func_usage): Document them.
30251         (vc_files): New variable.
30252         (func_import): Consider vc_files.
30253         (func_create_testdir): Set vc_files to empty.
30254         Suggested by Jim Meyering and Karl Berry.
30255
30256 2008-03-23  Bruno Haible  <bruno@clisp.org>
30257
30258         Fix regex compilation error on HP-UX 11.
30259         * m4/regex.m4 (gl_PREREQ_REGEX): Require AC_TYPE_MBSTATE_T.
30260         * modules/regex (Files): Add m4/mbstate_t.m4.
30261         Reported by Ton Voon <ton.voon@altinity.com>.
30262
30263 2008-03-23  Bruno Haible  <bruno@clisp.org>
30264
30265         * doc/gnulib-tool.texi (gettextize and autopoint): New section.
30266
30267 2008-03-23  Eric Blake  <ebb9@byu.net>
30268             Bruno Haible  <bruno@clisp.org>
30269
30270         Install files from top/ in the destination directory.
30271         * gnulib-tool (func_get_automake_snippet): Synthesize an EXTRA_DIST
30272         augmentation also for the files from top/.
30273         (func_import, func_create_testdir): Rewrite file names:
30274         top/filename -> filename.
30275
30276 2008-03-23  Bruno Haible  <bruno@clisp.org>
30277
30278         Tweak "gnulib --version" output.
30279         * gnulib-tool (func_version): Replace "-dirty" suffix with "-modified".
30280
30281 2008-03-23  Bruno Haible  <bruno@clisp.org>
30282
30283         Tweak "gnulib --version" output.
30284         * gnulib-tool (func_version): Use date of last commit to ChangeLog,
30285         rather than contents of ChangeLog, when possible.
30286
30287 2008-03-21  Eric Blake  <ebb9@byu.net>
30288
30289         More --version tweaks.
30290         * gnulib-tool (func_version): Obey GNU Coding Standards.  Output
30291         date of last ChangeLog entry.
30292
30293 2008-03-21  Jim Meyering  <meyering@redhat.com>
30294
30295         * build-aux/GNUmakefile (_have-git-version-gen): Split long line.
30296
30297 2008-03-20  Eric Blake  <ebb9@byu.net>
30298
30299         VPATH fix.
30300         * build-aux/GNUmakefile (_have_git-version-gen): Look in correct dir.
30301
30302 2008-03-20  Simon Josefsson  <simon@josefsson.org>
30303
30304         * build-aux/GNUmakefile: Make git-version-gen optional.  Add
30305         _build-aux variable.  Suggested by Eric Blake <ebb9@byu.net>.
30306
30307 2008-03-20  Eric Blake  <ebb9@byu.net>
30308
30309         Sync GNUmakefile with coreutils.
30310         * build-aux/GNUmakefile (have-Makefile): Rename...
30311         (_have-Makefile): ...to this, for namespace consideration.
30312         (GNUmakefile.cfg): Include, if present.
30313         (_autoreconf): Define a default.
30314         (_is-dist-target): New rule for rebuilds to pick up intra-release
30315         version.
30316         (maint-cfg.mk): Rename...
30317         (cfg.mk): ...to this.
30318
30319 2008-03-18  Jim Meyering  <meyering@redhat.com>
30320
30321         New script and module: mktempd
30322         * MODULES.html.sh (maint+release support): Add mktempd.
30323         * build-aux/mktempd: New file.
30324         * modules/mktempd: New file.
30325
30326 2008-03-15  Jim Meyering  <meyering@redhat.com>
30327
30328         Undo last change.
30329         * lib/sha1.c, lib/md5.c: 63 != ~63.
30330         Reported by Andreas Schwab.
30331
30332         sha1.c, md5.c: Hoist a redundant expression.
30333         * lib/sha1.c (sha1_process_bytes): AND-off the low bits in
30334         "ctx->buflen" only once, before calling *_process_block.
30335         * lib/md5.c (md5_process_bytes): Likewise.
30336
30337 2008-03-14  Eric Blake  <ebb9@byu.net>
30338
30339         Bump copyright year in files generated by gnulib-tool.
30340         * gnulib-tool (func_emit_copyright_notice): Extract copyright from
30341         gnulib-tool, rather than hard-coding it.
30342
30343         Fix 'gnulib-tool --version' output to work with git.
30344         * gnulib-tool (func_gnulib_dir): New function, extracted from...
30345         (startup): ...here.
30346         (func_version): Use it to invoke git-version-gen, rather than
30347         relying on CVS keyword expansion.  Modernize wording.
30348         (cvsdatestamp, last_checkin_date, version): Kill unused
30349         variables.
30350
30351 2008-03-12  Jim Meyering  <meyering@redhat.com>
30352
30353         Recognize optional cast of the argument to free.
30354         * build-aux/useless-if-before-free: Update regexps.
30355
30356         * build-aux/bootstrap (gnulib_tool): Remove trailing blanks.
30357
30358 2008-03-11  Bruno Haible  <bruno@clisp.org>
30359
30360         Extend AC_LIB_LINKFLAGS to the situation of several libraries provided
30361         by a single package.
30362         * m4/lib-link.m4 (AC_LIB_FROMPACKAGE): New macro.
30363         (AC_LIB_LINKFLAGS_BODY): Use the information stored by
30364         AC_LIB_FROMPACKAGE. Use AC_ARG_WITH instead of AC_LIB_ARG_WITH.
30365         Reported by Sam Steingold <sds@gnu.org>.
30366
30367 2008-03-12  Sergey Poznyakoff  <gray@gnu.org.ua>
30368
30369         * build-aux/bootstrap (version_controlled_file): Adapt for SVN
30370         repositories.
30371
30372 2008-03-11  Bruno Haible  <bruno@clisp.org>
30373
30374         Avoid conflicts between local macro definitions.
30375         * m4/lib-link.m4 (AC_LIB_LINKFLAGS, AC_LIB_HAVE_LINKFLAGS,
30376         AC_LIB_LINKFLAGS_BODY): Use pushdef/popdef instead of define/undefine.
30377
30378 2008-03-10  Peter O'Gorman  <bug-gnulib@mlists.thewrittenword.com>
30379             Bruno Haible  <bruno@clisp.org>
30380
30381         Make va_copy work with some version of xlc on AIX 5.1.
30382         * lib/stdarg.in.h: New file.
30383         * m4/stdarg.m4 (gl_STDARG_H): Initialize STDARG_H and NEXT_STDARG_H.
30384         On AIX, use a <stdarg.h> file substitute.
30385         * modules/stdarg (Files): Add lib/stdarg.in.h.
30386         (Depends-on): Add include_next.
30387         (Makefile.am): Build a stdarg.h substitute if requested.
30388         * doc/posix-functions/va_copy.texi: Document the platforms lacking it.
30389
30390 2008-03-10  Bruno Haible  <bruno@clisp.org>
30391
30392         * m4/include_next.m4 (gl_CHECK_NEXT_HEADERS): Document a restriction.
30393         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Likewise.
30394         Reported by Peter O'Gorman <bug-gnulib@mlists.thewrittenword.com>.
30395
30396 2008-03-10  Bruno Haible  <bruno@clisp.org>
30397
30398         * modules/stdlib (Depends-on): Add include_next, remove
30399         absolute-header.
30400
30401 2008-03-09  Bruno Haible  <bruno@clisp.org>
30402
30403         * lib/freadahead.h (freadahead): Document more precisely.
30404         * lib/freadahead.c (freadahead): When an ungetc is in effect, return
30405         the sum of both buffer sizes.
30406         * tests/test-freadahead.c (main): Also test behaviour after ungetc.
30407         * NEWS: Document the change.
30408
30409 2008-03-09  Bruno Haible  <bruno@clisp.org>
30410
30411         Extend freadptr to return also the buffer size.
30412         * lib/freadptr.h (freadptr): Add sizep argument.
30413         * lib/freadptr.c: Include freadptr.h, not freadahead.h.
30414         (freadptr): Add sizep argument. Determine buffer size like freadahead
30415         does.
30416         * tests/test-freadptr.c: Don't include freadahead.h.
30417         (main): Adapt for new calling convention of freadptr.
30418         * tests/test-freadptr2.c: New file, based on tests/test-freadahead.c.
30419         * tests/test-freadptr2.sh: New file, based on tests/test-freadahead.sh.
30420         * modules/freadptr-tests (Files): Add tests/test-freadptr2.c,
30421         tests/test-freadptr2.sh.
30422         (Depends): Remove freadahead.
30423         (TESTS): Add test-freadptr2.sh.
30424         (check_PROGRAMS): Add test-freadptr2.
30425
30426 2008-03-09  Bruno Haible  <bruno@clisp.org>
30427
30428         * doc/Makefile (%.pdf): Explain how to remedy the save_size error.
30429         Report and solution by Simon Josefsson.
30430
30431 2008-03-06  Bruno Haible  <bruno@clisp.org>
30432
30433         Make fflush after ungetc work on BSD platforms.
30434         * lib/fflush.c (rpl_fflush): Discard ungetc buffer if possible.
30435         * tests/test-fflush2.c: New file.
30436         * tests/test-fflush2.sh: New file.
30437         * modules/fflush-tests (Files): Add tests/test-fflush2.sh,
30438         tests/test-fflush2.c.
30439         (Makefile.am): Build test-fflush2 and run test-fflush2.sh.
30440         * doc/posix-functions/fflush.texi: Document fflush after ungetc bug.
30441
30442 2008-03-06  Eric Blake  <ebb9@byu.net>
30443
30444         Likewise for ftello.
30445         * modules/ftello (Dependencies): Add extensions.
30446         * m4/ftello.m4 (gl_FUNC_FTELLO): Require AC_USE_SYSTEM_EXTENSIONS.
30447
30448 2008-03-06  Bruno Haible  <bruno@clisp.org>
30449
30450         * modules/fseeko (Dependencies): Add extensions.
30451         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Require AC_USE_SYSTEM_EXTENSIONS.
30452         Needed on glibc systems.
30453
30454 2008-03-06  Bruno Haible  <bruno@clisp.org>
30455
30456         * doc/gnulib-tool.texi (@nosuchmodulenote): Avoid line break inside
30457         email address.
30458         Reported by Thien-Thi Nguyen <ttn@gnuvola.org>.
30459
30460 2008-03-06  Bruno Haible  <bruno@clisp.org>
30461
30462         * users.txt: Add libgnupdf.
30463
30464 2008-03-06  Thien-Thi Nguyen  <ttn@gnuvola.org>  (tiny change)
30465
30466         * doc/gnulib-tool.texi (@nosuchmodulenote): New macro.
30467         (Header File Substitutes, Function Substitutes,
30468         Glibc Header File Substitutes, Glibc Function Substitutes): Use it.
30469         (Build robot for gnulib): Fix typo.
30470
30471 2008-03-06  Bruno Haible  <bruno@clisp.org>
30472
30473         * doc/gnulib-tool.texi (VCS Issues): Small updates.
30474         Reported by Thien-Thi Nguyen <ttn@gnuvola.org>.
30475
30476 2008-03-06  Bruno Haible  <bruno@clisp.org>
30477
30478         * doc/func.texi: New file, extracted from doc/gnulib.texi.
30479         * doc/gnulib.texi: Include it.
30480
30481 2008-03-06  Simon Josefsson  <simon@josefsson.org>
30482
30483         * modules/func (License): Change license to unlimited; there was
30484         no LGPL parts in the module anyway.
30485
30486 2008-03-06  Simon Josefsson  <simon@josefsson.org>
30487
30488         * modules/__func__: Renamed to modules/func.
30489         * modules/__func__-tests: Renamed to modules/func-tests.
30490         * tests/test-__func__.c: Renamed to tests/test-func.c.
30491         * m4/__func__.m4: Renamed to m4/func.m4.
30492         * doc/gnulib.texi (__func__): Section renamed to func.
30493         Suggested by Eric Blake <ebb9@byu.net>.
30494
30495 2008-03-06  Simon Josefsson  <simon@josefsson.org>
30496
30497         * doc/gnulib.texi (__func__): Use C99 terminology when talking
30498         about __func__.  Make example self-contained.  Suggested by Eric
30499         Blake <ebb9@byu.net>.
30500
30501         * tests/test-__func__.c (main): Avoid extraneous () around __func.
30502         Suggested by Eric Blake <ebb9@byu.net>.
30503
30504 2008-03-06  Simon Josefsson  <simon@josefsson.org>
30505
30506         * modules/__func__: New file.
30507         * modules/__func__-tests: New file.
30508         * tests/test-__func__.c: New file.
30509         * m4/__func__.m4: New file.
30510         * doc/gnulib.texi (__func__): Document __func__ module.
30511
30512 2008-03-05  Simon Josefsson  <simon@josefsson.org>
30513
30514         * modules/byteswap (License): Re-license as LGPLv2+.
30515
30516 2008-03-05  Simon Josefsson  <simon@josefsson.org>
30517
30518         * doc/Makefile: Add pdf target.
30519
30520 2008-03-05  Simon Josefsson  <simon@josefsson.org>
30521
30522         * modules/inline (License): Use 'unlimited', since there are only
30523         *.m4 files in this module.
30524
30525 2008-03-03  John E. Malmberg  <wb8tyw@qsl.net>  (tiny change)
30526             Bruno Haible  <bruno@clisp.org>
30527
30528         Add support for HP C 7.1 on OpenVMS 8.3.
30529         * lib/alloca.in.h (alloca): Define as alias for DEC C on VMS.
30530
30531 2008-03-03  John E. Malmberg  <wb8tyw@qsl.net>  (tiny change)
30532
30533         Update VMS specifics.
30534         * lib/getopt.c [VMS]: Remove include of unixlib.h.
30535
30536 2008-03-02  Jim Meyering  <meyering@redhat.com>
30537
30538         Remove the last dependency on the "free" module.
30539         * m4/readutmp.m4 (gl_READUTMP): Don't require gl_FUNC_FREE.
30540         Reported by Bob Proulx.
30541
30542         * lib/getdelim.c (getdelim): Don't leak memory upon failed realloc.
30543
30544         Remove useless "if" tests before free.  Deprecate "free" module.
30545         * doc/posix-functions/free.texi: Mention that this
30546         module is no longer useful.
30547         * modules/free (Notice): Say this module is obsolete.
30548         * modules/readutmp (Depends-on): Remove free.
30549         * lib/save-cwd.c (free_cwd): Remove useless "if" before free.
30550         * lib/putenv.c (putenv): Likewise.
30551         * lib/gc-gnulib.c (gc_cipher_close): Likewise.
30552         * lib/getaddrinfo.c (freeaddrinfo): Likewise.
30553         * tests/test-c-strcasestr.c (main): Likewise.
30554         * tests/test-c-strstr.c (main): Likewise.
30555         * tests/test-mbscasestr1.c (main): Likewise.
30556         * tests/test-mbscasestr2.c (main): Likewise.
30557         * tests/test-mbsstr1.c (main): Likewise.
30558         * tests/test-mbsstr2.c (main): Likewise.
30559         * tests/test-memmem.c (main): Likewise.
30560         * tests/test-strcasestr.c (main): Likewise.
30561         * tests/test-striconv.c (main): Likewise.
30562         * tests/test-striconveh.c (main): Likewise.
30563         * tests/test-striconveha.c (main): Likewise.
30564         * tests/test-strstr.c (main): Likewise.
30565
30566         * build-aux/git-version-gen: Adjust a comment and the Usage string.
30567
30568         bootstrap: sync from coreutils again
30569         * build-aux/bootstrap: Remove dangling m4/*.m4 symlinks.
30570
30571 2008-03-01  Jim Meyering  <meyering@redhat.com>
30572
30573         bootstrap: sync from coreutils
30574         * build-aux/bootstrap (update_po_files): Copy a .po file into place
30575         also when the target doesn't exist.
30576
30577 2008-03-01  Eric Blake  <ebb9@byu.net>
30578
30579         Fix bugs in last patch.
30580         * lib/memchr2.c (memchr2): Fix typo.
30581         * tests/test-memchr2.c: Test previous bug, and don't use GNU
30582         extension.
30583         Reported by Bruce Korb.
30584
30585         New module 'memchr2'.
30586         * modules/memchr2: New file.
30587         * modules/memchr2-tests: Likewise.
30588         * lib/memchr2.h: Likewise.
30589         * lib/memchr2.c: Likewise, based on memchr.c.
30590         * tests/test-memchr2.c: New test.
30591         * MODULES.html.sh (String handling): Add memchr2.
30592
30593 2008-02-29  Bruno Haible  <bruno@clisp.org>
30594
30595         * modules/freadseek-tests: New file.
30596         * tests/test-freadseek.sh: New file.
30597         * tests/test-freadseek.c: New file.
30598
30599         New module 'freadseek'.
30600         * modules/freadseek: New file.
30601         * lib/freadseek.h: New file.
30602         * lib/freadseek.c: New file.
30603         * MODULES.html.sh (File stream based Input/Output): Add freadseek.
30604
30605 2008-02-29  Sergey Poznyakoff  <gray@gnu.org.ua>
30606
30607         * users.txt: Add anubis, cpio, mailfromd, mailutils, radius,
30608         wydawca.
30609
30610         * m4/argp.m4 (gl_ARGP): Use AC_TRY_LINK to test if
30611         program_invocation_name and program_invocation_short_name are
30612         present.
30613
30614 2008-02-28  Bruno Haible  <bruno@clisp.org>
30615
30616         * tests/test-freadptr.c: Add a test for behaviour after ungetc.
30617         * tests/test-freadptr.sh: Also test non-seekable stdin.
30618
30619 2008-02-28  Sergey Poznyakoff  <gray@gnu.org.ua>
30620
30621         * build-aux/bootstrap (source_base, m4_base)
30622         (doc_base, tests_base): New variables.
30623         (gnulib_tool_options): Do not hardcode base directories, use
30624         the above variables instead.
30625
30626 2008-02-28  Atsushi SAKAI  <sakaia@jp.fujitsu.com>
30627
30628         * lib/xsize.h: Fix typo in comment: s/tupe/type/.
30629
30630 2008-02-28  Bruno Haible  <bruno@clisp.org>
30631
30632         * modules/freadptr-tests: New file.
30633         * tests/test-freadptr.sh: New file.
30634         * tests/test-freadptr.c: New file.
30635
30636         New module 'freadptr'.
30637         * modules/freadptr: New file.
30638         * lib/freadptr.h: New file.
30639         * lib/freadptr.c: New file.
30640         * MODULES.html.sh (File stream based Input/Output): Add freadptr.
30641
30642 2008-02-26  Karl Berry  <karl@freefriends.org>
30643
30644         Sync from Libtool:
30645         * libltdl/argz.c (argz_add, argz_count): New functions.
30646         * libltdl/argz.in.h: Declare them.
30647         Report by Juan Manuel Guerrero <juan.guerrero@gmx.de>.
30648
30649 2008-02-22  Bruno Haible  <bruno@clisp.org>
30650
30651         * m4/time_r.m4 (gl_TIME_R): Also check that localtime_r's return type
30652         is a pointer type.  Needed for HP-UX 10.
30653         * doc/posix-functions/localtime_r.texi: Mention HP-UX 10.
30654         * doc/posix-functions/gmtime_r.texi: Likewise.
30655         Reported by Peter O'Gorman <bug-gnulib@mlists.thewrittenword.com>.
30656
30657 2008-02-24  Bruno Haible  <bruno@clisp.org>
30658
30659         * modules/environ-tests: New file.
30660         * tests/test-environ.c: New file.
30661
30662         New module 'environ'.
30663         * modules/environ: New file.
30664         * lib/unistd.in.h (environ): New declaration.
30665         * m4/environ.m4: New file.
30666         (gt_CHECK_VAR_DECL): Moved here from m4/setenv.m4. Undefine gt_cv_var
30667         after use.
30668         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_ENVIRON and
30669         HAVE_DECL_ENVIRON.
30670         * modules/unistd (Makefile.am): Substitute also GNULIB_ENVIRON and
30671         HAVE_DECL_ENVIRON.
30672         * doc/posix-functions/environ.texi: Mention module 'environ'. Remove
30673         wrong claim that 'environ' is missing on some systems.
30674         * modules/execute (Depends-on): Add environ.
30675         * lib/execute.c (environ): Remove fallback declaration.
30676         * modules/pipe (Depends-on): Add environ.
30677         * lib/pipe.c (environ): Remove fallback declaration.
30678         * modules/setenv (Depends-on): Add environ.
30679         * lib/setenv.c (environ): Remove fallback declaration.
30680         * modules/unsetenv (Depends-on): Add environ.
30681         * lib/unsetenv.c (environ): Remove fallback declaration.
30682         * m4/setenv.m4 (gt_CHECK_VAR_DECL): Remove macro. Moved to
30683         m4/environ.m4.
30684         (gl_PREREQ_SETENV): Require gl_ENVIRON instead of testing for environ.
30685         (gl_PREREQ_UNSETENV): Likewise.
30686
30687 2008-02-24  Bruno Haible  <bruno@clisp.org>
30688
30689         * doc/posix-functions/environ.texi: Document the MacOS X problem.
30690
30691 2008-02-20  Bob Proulx  <bob@proulx.com>
30692
30693         Enable use of older two part flavor 'git describe'.
30694         * build-aux/git-version-gen: If using the older two part flavor of
30695         git version then recreate the third part now present in the
30696         newer three part flavor of git describe.
30697
30698 2008-02-20  Martin Buchholz  <martin@xemacs.org>  (tiny change)
30699
30700         * lib/fts.c (fts_build): Typo correction to comment.
30701
30702 2008-02-17  Bruno Haible  <bruno@clisp.org>
30703
30704         * lib/git-merge-changelog.c (main) [split_merged_entry]: Avoid
30705         generating no-op conflicts.
30706
30707 2008-02-17  Bruno Haible  <bruno@clisp.org>
30708
30709         Speed up by 10%.
30710         * lib/git-merge-changelog.c (main): Use the iterator to iterate through
30711         result_entries, rather than an index-based loop.
30712
30713 2008-02-17  Bruno Haible  <bruno@clisp.org>
30714
30715         Speed up by 25%.
30716         * lib/git-merge-changelog.c (struct entry): New fields 'hashcode',
30717         'hashcode_cached'.
30718         (entry_create): New function.
30719         (entry_hashcode): Use the cached hashcode if possible.
30720         (read_changelog_file, try_split_merged_entry): Use entry_create.
30721
30722 2008-02-17  Bruno Haible  <bruno@clisp.org>
30723
30724         Speed up from O(n^2) to O(n) for long ChangeLog files.
30725         * lib/git-merge-changelog.c: Include gl_rbtreehash_list.h.
30726         (read_changelog_file): Change implementation of entries_reversed list
30727         to rbtreehash.
30728         * modules/git-merge-changelog (Depends-on): Add rbtreehash-list.
30729
30730 2008-02-17  Bruno Haible  <bruno@clisp.org>
30731
30732         New option --split-merged-entry.
30733         * lib/git-merge-changelog.c (FSTRCMP_STRICTER_THRESHOLD): New macro.
30734         (find_paragraph_end, try_split_merged_entry): New functions.
30735         (long_options): Add option --split-merged-entry.
30736         (usage): Document option --split-merged-entry.
30737         (main): Implement option --split-merged-entry.
30738         Reported by Eric Blake.
30739
30740 2008-02-17  Bruno Haible  <bruno@clisp.org>
30741
30742         * lib/git-merge-changelog.c: Include c-strstr.h.
30743         (main): Support the "git pull --rebase" situation.
30744         * modules/git-merge-changelog (Depends-on): Add c-strstr.
30745         Reported by Eric Blake.
30746
30747 2008-02-16  Eric Blake  <ebb9@byu.net>
30748
30749         Avoid doubling \ in common case of "c-maybe" quoting style.
30750         * lib/quotearg.c (quotearg_buffer_restyled): Don't escape \ when
30751         eliding outer quotes.
30752         * lib/quotearg.h: Document this.
30753         * tests/test-quotearg.c (result_strings, inputs, results_g)
30754         (flag_results, locale_results): Test it by adding a new string to
30755         each test group.
30756         (compare_strings): Test new string.
30757
30758 2008-02-13  Eric Blake  <ebb9@byu.net>
30759
30760         Avoid trigraph quoting in default output.
30761         * lib/quotearg.h (enum quoting_flags): Add QA_SPLIT_TRIGRAPHS.
30762         * lib/quotearg.c (quotearg_buffer_restyled): Don't quote trigraphs
30763         unless explicitly requested.
30764         * tests/test-quotearg.c (flag_results, main): Add additional tests.
30765
30766 2008-02-13  Lasse Collin  <lasse.collin@tukaani.org>
30767
30768         Don't rely on signed integer overflowing to negative value.
30769         * lib/getugroups.c (getugroups): Include <limits.h>.
30770         Instead, compare against INT_MAX, and increment only if the test passes.
30771
30772 2008-02-13  Jim Meyering  <meyering@redhat.com>
30773         and Eric Blake  <ebb9@byu.net>
30774
30775         Avoid shadowing warning and compile errors on Linux.
30776         * tests/test-quotearg.c [ENABLE_NLS]: Disable <libintl.h>
30777         forwarding macros on Linux.
30778         (dcgettext): Define a stub, for Linux.
30779         (results_g, main): Avoid warnings.
30780
30781 2008-02-12  Eric Blake  <ebb9@byu.net>
30782
30783         Silence warning in last patch.
30784         * lib/quotearg.c (quotearg_buffer_restyled): Add missing const.
30785
30786         Quotearg part 4: add tests, fix c-maybe colon quoting.
30787         * lib/quotearg.h: Improve documentation.
30788         * lib/quotearg.c (quotearg_buffer_restyled): Don't add extra
30789         escapes when adding outer quotes.  When quoting trigraphs, use
30790         valid C notation.  When quoting NUL, omit extra characters if next
30791         character is not digit.  Alter prototype.
30792         (quotearg_buffer, quotearg_alloc_mem, quotearg_n_options): Adjust
30793         callers.
30794         * modules/quotearg-tests: New module.
30795         * tests/test-quotearg.c: New test.
30796
30797 2008-02-07  Eric Blake  <ebb9@byu.net>
30798
30799         Quotearg part 3: add flag to control outer quote elision.
30800         * lib/quotearg.h (c_maybe_quoting_style): New style.
30801         (enum quoting_flags): Better documentation of flags.
30802         * lib/quotearg.c (quoting_style_args, quoting_style_vals): Add
30803         c-maybe style.
30804         (quotearg_buffer_restyled): Handle new flag to elide outer
30805         quotes.
30806
30807         Quotearg part 2: add flag that can control NUL elision.
30808         * lib/quotearg.h (set_quoting_flags): New prototype.
30809         * lib/quotearg.c (struct quoting_options): Add flag field.
30810         (set_quoting_flags): New function.
30811         (quotearg_buffer_restyled): Add flags parameter.
30812         (quotearg_alloc_mem): Set the flag if length cannot be returned.
30813         (quotearg_n_options): Set the flag, since length cannot be
30814         returned.
30815         (quoting_options_from_style): Default flags correctly.
30816
30817         Quotearg part 1: more wrappers, restore quotearg_char state.
30818         * lib/quotearg.h (quotearg_alloc_mem, quotearg_n_mem)
30819         (quotearg_mem, quotearg_style_mem, quotearg_char_mem)
30820         (quotearg_colon_mem): New wrappers.
30821         * lib/quotearg.c (quotearg_alloc, quotearg_char): Rewrite...
30822         (quotearg_alloc_mem, quotearg_char_mem): ...in terms of these new
30823         functions.
30824         (quotearg_n_mem, quotearg_mem, quotearg_style_mem)
30825         (quotearg_colon_mem): New functions.
30826
30827 2008-02-11  Bruno Haible  <bruno@clisp.org>
30828
30829         * modules/git-merge-changelog (Makefile.am): Don't use -L and -l for a
30830         library in the current directory: it does not work with parallel make.
30831         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
30832
30833 2008-02-11  Bruno Haible  <bruno@clisp.org>
30834
30835         * .gitattributes: New file.
30836
30837 2008-02-11  Jim Meyering  <meyering@redhat.com>
30838
30839         useless-if-before-free: Fix reversed exit values.
30840         * build-aux/useless-if-before-free: Use correct values
30841         for EXIT_MATCH and EXIT_NO_MATCH.
30842
30843         * build-aux/useless-if-before-free: Close stdout carefully.
30844
30845 2008-02-10  Bruno Haible  <bruno@clisp.org>
30846
30847         New module 'git-merge-changelog'.
30848         * modules/git-merge-changelog: New file.
30849         * lib/git-merge-changelog.c: New file.
30850
30851 2008-02-10  Jim Meyering  <meyering@redhat.com>
30852
30853         useless-if-before-free: New option: --list (-l).
30854
30855         useless-if-before-free: Don't exit immediately upon open failure.
30856         * build-aux/useless-if-before-free: Exit 2 for errors.
30857         Upon failure to open a file, don't exit immediately.
30858         Rather, just warn and continue with any remaining files.
30859
30860 2008-02-10  Bruno Haible  <bruno@clisp.org>
30861
30862         New abstract list operation 'node_set_value'.
30863         * lib/gl_list.h (gl_list_node_set_value): New function.
30864         (struct gl_list_implementation): New field node_set_value.
30865         * lib/gl_list.c (gl_list_node_set_value): New function.
30866         * lib/gl_array_list.c (gl_array_node_set_value): New function.
30867         (gl_array_list_implementation): Update.
30868         * lib/gl_carray_list.c (gl_carray_node_set_value): New function.
30869         (gl_carray_list_implementation): Update.
30870         * lib/gl_anylinked_list2.h (gl_linked_node_set_value): New function.
30871         * lib/gl_linked_list.c (gl_linked_list_implementation): Update.
30872         * lib/gl_linkedhash_list.c (gl_linkedhash_list_implementation): Update.
30873         * lib/gl_anytree_list2.h (gl_tree_node_set_value): New function.
30874         * lib/gl_avltree_list.c (gl_avltree_list_implementation): Update.
30875         * lib/gl_rbtree_list.c (gl_rbtree_list_implementation): Update.
30876         * lib/gl_avltreehash_list.c (gl_avltreehash_list_implementation):
30877         Update.
30878         * lib/gl_rbtreehash_list.c (gl_rbtreehash_list_implementation): Update.
30879         * lib/gl_sublist.c (gl_sublist_node_set_value): New function.
30880         (gl_sublist_list_implementation): Update.
30881
30882 2008-02-10  Bruno Haible  <bruno@clisp.org>
30883
30884         * lib/diffseq.h: Write "ELEMENT const" instead of "const ELEMENT".
30885         Needed when ELEMENT is #defined to 'some_type *'.
30886
30887 2008-02-10  Jim Meyering  <meyering@redhat.com>
30888
30889         New script and module: useless-if-before-free
30890         * MODULES.html.sh (maint+release support): Add useless-if-before-free.
30891         * build-aux/useless-if-before-free: New file.
30892         * modules/useless-if-before-free: New file.
30893
30894         * build-aux/gitlog-to-changelog: Use committer date, not author date.
30895
30896         xstrtol_error: Fix typo.
30897         * lib/xstrtol-error.c (xstrtol_error): The parameter was unused:
30898         s/exit_failure/exit_status/.
30899
30900 2008-02-09  Jim Meyering  <meyering@redhat.com>
30901
30902         New script and module: gitlog-to-changelog
30903         * MODULES.html.sh (maint+release support): Add gitlog-to-changelog.
30904         * modules/gitlog-to-changelog: New file.
30905         * build-aux/gitlog-to-changelog: New file.
30906
30907 2008-02-08  Jim Meyering  <meyering@redhat.com>
30908
30909         Avoid two "parameter unused" warnings.
30910         * lib/stat-time.h (get_stat_birthtime_ns, get_stat_birthtime):
30911         Mark "st" as used.
30912
30913         Use "git COMMAND", not "git-COMMAND".
30914         * build-aux/bootstrap (version_controlled_file): s/git-rm/git-rm/.
30915         * build-aux/announce-gen (get_tool_versions): Correct a diagnostic.
30916         * build-aux/git-version-gen: Use "git status", not "git-status".
30917
30918 2008-02-07  Bruno Haible  <bruno@clisp.org>
30919
30920         * lib/vasnprintf.c (VASNPRINTF): Don't use %n on native Woe32 systems.
30921         Avoids a crash on Windows Vista.
30922         Reported by Adam Strzelecki <ono@java.pl> via
30923         Simon Josefsson <simon@josefsson.org>.
30924
30925 2008-02-06  Bruno Haible  <bruno@clisp.org>
30926
30927         Fix *printf behaviour regarding the left-adjust flag on HP-UX 10.20.
30928         * m4/printf.m4 (gl_PRINTF_FLAG_LEFTADJUST): New macro.
30929         * lib/vasnprintf.c (VASNPRINTF): Handle NEED_PRINTF_FLAG_LEFTADJUST.
30930         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_FLAG_LEFTADJUST): New macro.
30931         (gl_PREREQ_VASNPRINTF_WITH_EXTRAS): Invoke it.
30932         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
30933         gl_PRINTF_FLAG_LEFTADJUST and test its result. Invoke
30934         gl_PREREQ_VASNPRINTF_FLAG_LEFTADJUST.
30935         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
30936         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
30937         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
30938         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
30939         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
30940         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
30941         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
30942         * tests/test-vasnprintf-posix.c (test_function): Add testcases for the
30943         left-adjust flag.
30944         * tests/test-snprintf-posix.h (test_function): Likewise.
30945         * tests/test-sprintf-posix.h (test_function): Likewise.
30946         * tests/test-vasprintf-posix.c (test_function): Likewise.
30947         * doc/posix-functions/fprintf.texi: Update.
30948         * doc/posix-functions/printf.texi: Update.
30949         * doc/posix-functions/snprintf.texi: Update.
30950         * doc/posix-functions/sprintf.texi: Update.
30951         * doc/posix-functions/vfprintf.texi: Update.
30952         * doc/posix-functions/vprintf.texi: Update.
30953         * doc/posix-functions/vsnprintf.texi: Update.
30954         * doc/posix-functions/vsprintf.texi: Update.
30955         Reported by Peter Fales <psfales@alcatel-lucent.com>.
30956
30957 2008-02-06  Bruno Haible  <bruno@clisp.org>
30958
30959         Fix bug introduced on 2008-01-26.
30960         * lib/isnan.c (FUNC): Set to rpl_isnand, not rpl_isnan.
30961
30962 2008-02-06  Bruno Haible  <bruno@clisp.org>
30963
30964         Fix bug introduced on 2007-06-10.
30965         * lib/vasnprintf.c (VASNPRINTF): Perform zero-padding also if
30966         !NEED_PRINTF_FLAG_ZERO.
30967
30968 2008-02-05  Peter O'Gorman <pogma@thewrittenword.com>
30969
30970         getloadavg: use libperfstat on AIX5
30971         * lib/getloadavg.c, m4/getloadavg.m4 [aix]: Use libperfstat
30972
30973 2008-02-03  Bruno Haible  <bruno@clisp.org>
30974
30975         * lib/diffseq.h: Add comments about required #includes.
30976         Reported by Michael Biggs <gnulib@doubleplum.net>.
30977
30978 2008-02-01  Bruno Haible  <bruno@clisp.org>
30979
30980         * users.txt: Add gnuit.
30981
30982 2008-01-31  Bruno Haible  <bruno@clisp.org>
30983
30984         * lib/md4.c (set_uint32): Mark as inline.
30985         * lib/md5.c (set_uint32): Likewise.
30986         * lib/sha1.c (set_uint32): Likewise.
30987         * m4/md4.m4 (gl_MD4): Require AC_C_INLINE.
30988         * m4/md5.m4 (gl_MD5): Likewise.
30989         * m4/sha1.m4 (gl_SHA1): Likewise.
30990
30991 2008-01-31  Jim Meyering  <meyering@redhat.com>
30992
30993         Use "sizeof VAR", rather than a literal "4".
30994         * lib/md5.c (md5_read_ctx): Use sizeof ctx->A, not 4.
30995         * lib/md4.c (md4_read_ctx): Likewise.
30996         * lib/sha1.c (sha1_read_ctx): Likewise.
30997
30998 2008-01-31  Simon Josefsson  <simon@josefsson.org>
30999
31000         * tests/test-sha1.c: New file, based on test-md5.c.
31001
31002         * modules/crypto/sha1-tests: New file.
31003
31004 2008-01-31  Simon Josefsson  <simon@josefsson.org>
31005
31006         * lib/sha1.h (SHA1_DIGEST_SIZE): Define.
31007
31008 2008-01-31  Jim Meyering  <meyering@redhat.com>
31009
31010         Prefer "sizeof v" over the equivalent "4".
31011         * lib/md4.c (set_uint32): Use "sizeof v" as memcpy length, not 4.
31012         * lib/md5.c (set_uint32): Likewise.
31013         * lib/sha1.c (set_uint32): Likewise.
31014
31015 2008-01-31  Simon Josefsson  <simon@josefsson.org>
31016
31017         * lib/sha1.c (set_uint32): Mark function as static.
31018
31019 2008-01-31  Simon Josefsson  <simon@josefsson.org>
31020
31021         md2: clarify comments to say that alignment is not required.
31022         * lib/md2.h: Remove warning about alignment in comment.
31023         * lib/md2.c (md2_read_ctx, md2_finish_ctx): Doc fix, alignment has
31024         never been required.
31025
31026 2008-01-31  Simon Josefsson  <simon@josefsson.org>
31027
31028         md4: adapt alignment constraint fix from sha1.
31029         * lib/md4.c (set_uint32): New function, from sha1.c
31030         (md4_read_ctx): Use it.
31031         (md4_finish_ctx): Doc fix.
31032         * lib/md4.h: Doc fix.
31033
31034 2008-01-31  Simon Josefsson  <simon@josefsson.org>
31035
31036         md5: adapt alignment constraint fix from sha1.
31037         * lib/md5.c (set_uint32): New function, from sha1.c
31038         (md5_read_ctx): Use it.
31039         (md5_finish_ctx): Doc fix.
31040         * lib/md5.h: Doc fix.
31041
31042 2008-01-30  Peter Palfrader  <weasel@debian.org>
31043
31044         sha1: remove the result buffer alignment constraint
31045         * lib/sha1.c (set_uint32): New function.
31046         (sha1_read_ctx): Rewrite to remove the result buffer alignment
31047         constraint.
31048         (sha1_finish_ctx): Remove comment warning about alignment constraint.
31049         * lib/sha1.h: Likewise.
31050
31051 2008-01-30  Andreas Schwab  <schwab@suse.de>
31052             Bruno Haible  <bruno@clisp.org>
31053
31054         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Include <float.h> and ensure a
31055         correct definition of LDBL_MIN_EXP.
31056
31057 2008-01-30  Karl Berry  <karl@gnu.org>
31058
31059         * config/srclist-update: try to preserve x bit on updates.
31060         * config/srclistvars.sh: update for karl.
31061
31062 2008-01-29  Jim Meyering  <meyering@redhat.com>
31063
31064         vasnprintf.c: Avoid warning about unused label
31065         * lib/vasnprintf.c (VASNPRINTF) [!USE_SNPRINTF]: Guard the
31066         "overflow" label definition and associated code with the
31067         same cpp condition that guards the sole use of that label.
31068
31069 2008-01-26  Bruno Haible  <bruno@clisp.org>
31070
31071         * m4/isnanl.m4 (gl_HAVE_ISNANL_NO_LIBM, gl_HAVE_ISNANL_IN_LIBM,
31072         gl_FUNC_ISNANL_WORKS): Test the GCC >= 4.0 built-in.
31073         * lib/isnanl.h (isnanl): Use the GCC >= 4.0 built-in.
31074         * lib/isnanl-nolibm.h (isnanl): Likewise.
31075         Reported by Paul Eggert <eggert@cs.ucla.edu>.
31076
31077 2008-01-26  Bruno Haible  <bruno@clisp.org>
31078
31079         * m4/isnand.m4 (gl_FUNC_ISNAND_NO_LIBM): Test the GCC >= 4.0 built-in.
31080         * lib/isnand.h (isnand): Use the GCC >= 4.0 built-in.
31081
31082 2008-01-26  Bruno Haible  <bruno@clisp.org>
31083
31084         * m4/isnanf.m4 (gl_HAVE_ISNANF_NO_LIBM, gl_ISNANF_WORKS): Test the
31085         GCC >= 4.0 built-in.
31086         * lib/isnanf.h (isnanf): Use the GCC >= 4.0 built-in.
31087
31088 2008-01-26  Bruno Haible  <bruno@clisp.org>
31089
31090         Rename isnan, applicable to 'double' only, to isnand.
31091         * modules/isnand-nolibm: Renamed from modules/isnan-nolibm.
31092         (Files): Add lib/isnand.h, lib/isnand.c. Remove lib/isnan.h.
31093         (configure.ac): Update.
31094         (Include): Replace "isnan.h" with "isnand.h".
31095         * m4/isnand.m4: Renamed from m4/isnan.m4.
31096         (gl_FUNC_ISNAND_NO_LIBM): Renamed from gl_FUNC_ISNAN_NO_LIBM. Set
31097         HAVE_ISNAND_IN_LIBC instead of HAVE_ISNAN_IN_LIBC. Build isnand.c
31098         instead of isnan.c.
31099         * lib/isnand.h: Renamed from lib/isnan.h. Test HAVE_ISNAND_IN_LIBC
31100         instead of HAVE_ISNAN_IN_LIBC.
31101         (isnand): Renamed from isnan.
31102         * lib/isnand.c: New file.
31103         * modules/isnand-nolibm-tests: Renamed from modules/isnan-nolibm-tests.
31104         (Files): Add tests/test-isnand.c. Remove tests/test-isnan.c.
31105         (Makefile.am): Update.
31106         * tests/test-isnand.c: Renamed from tests/test-isnan.c.
31107         Include isnand.h instead of isnan.h.
31108         (main): Test isnand instead of isnan.
31109         * modules/fprintf-posix (Depends-on): Add isnand-nolibm, remove
31110         isnan-nolibm.
31111         * modules/frexp (Depends-on): Likewise.
31112         * modules/frexp-tests (Depends-on): Likewise.
31113         * modules/frexp-nolibm (Depends-on): Likewise.
31114         * modules/frexp-nolibm-tests (Depends-on): Likewise.
31115         * modules/isfinite (Depends-on): Likewise.
31116         * modules/round-tests (Depends-on): Likewise.
31117         * modules/signbit (Depends-on): Likewise.
31118         * modules/signbit-tests (Depends-on): Likewise.
31119         * modules/snprintf-posix (Depends-on): Likewise.
31120         * modules/sprintf-posix (Depends-on): Likewise.
31121         * modules/trunc-tests (Depends-on): Likewise.
31122         * modules/unistdio/u8-vasnprintf (Depends-on): Likewise.
31123         * modules/unistdio/u8-u8-vasnprintf (Depends-on): Likewise.
31124         * modules/unistdio/u16-vasnprintf (Depends-on): Likewise.
31125         * modules/unistdio/u16-u16-vasnprintf (Depends-on): Likewise.
31126         * modules/unistdio/u32-vasnprintf (Depends-on): Likewise.
31127         * modules/unistdio/u32-u32-vasnprintf (Depends-on): Likewise.
31128         * modules/unistdio/ulc-vasnprintf (Depends-on): Likewise.
31129         * modules/vasnprintf-posix (Depends-on): Likewise.
31130         * modules/vasprintf-posix (Depends-on): Likewise.
31131         * modules/vfprintf-posix (Depends-on): Likewise.
31132         * modules/vsnprintf-posix (Depends-on): Likewise.
31133         * modules/vsprintf-posix (Depends-on): Likewise.
31134         * lib/frexp.c: Include isnand.h instead of isnan.h.
31135         (ISNAN): Set to isnand instead of isnan.
31136         * lib/isfinite.c: Include isnand.h instead of isnan.h.
31137         (gl_isfinited): Use isnand instead of isnan.
31138         * lib/signbitd.c: Include isnand.h instead of isnan.h.
31139         (gl_signbitd): Use isnand instead of isnan.
31140         * lib/vasnprintf.c: Include isnand.h instead of isnan.h.
31141         (is_infinite_or_zero, VASNPRINTF): Use isnand instead of isnan.
31142         * tests/test-frexp.c: Include isnand.h instead of isnan.h.
31143         (main): Use isnand instead of isnan.
31144         * tests/test-round1.c: Include isnand.h.
31145         (main): Use isnand instead of isnan.
31146         * tests/test-round2.c: Include isnand.h instead of isnan.h.
31147         (ISNAN): Set to isnand instead of isnan.
31148         * tests/test-trunc1.c: Include isnand.h.
31149         (main): Use isnand instead of isnan.
31150         * tests/test-trunc2.c: Include isnand.h instead of isnan.h.
31151         (equal): Use isnand instead of isnan.
31152         * MODULES.html.sh (Mathematics <math.h>): Replace isnan-nolibm with
31153         isnand-nolibm.
31154         * NEWS: Mention the change.
31155
31156 2008-01-25  Paul Eggert  <eggert@cs.ucla.edu>
31157             Bruno Haible  <bruno@clisp.org>
31158
31159         * m4/signbit.m4 (gl_SIGNBIT): Require a macro definition. Test whether
31160         the GCC builtins for signbits are present and set
31161         REPLACE_SIGNBIT_USING_GCC if so.
31162         * lib/math.in.h (signbit): Define using GCC builtins if
31163         REPLACE_SIGNBIT_USING_GCC is set.
31164         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize
31165         REPLACE_SIGNBIT_USING_GCC.
31166         * modules/math (Makefile.am): Substitute REPLACE_SIGNBIT_USING_GCC.
31167
31168 2008-01-25  Jim Meyering  <meyering@redhat.com>
31169
31170         Prefer <config.h> over "config.h".  See autoconf doc for explanation.
31171         * lib/poll.c: Include <config.h>, not "config.h".
31172         * tests/test-getaddrinfo.c: Likewise.
31173
31174 2008-01-25  Simon Josefsson  <simon@josefsson.org>
31175
31176         * modules/sockets-tests: New file.
31177
31178 2008-01-24  Simon Josefsson  <simon@josefsson.org>
31179
31180         * modules/sockets: New module, can be used to call WSA_Startup and
31181         WSA_Cleanup when needed.
31182
31183         * lib/sockets.h, lib/sockets.c: New files.
31184
31185         * m4/sockets.m4: New file.
31186
31187         * tests/test-sockets.c: New file.
31188
31189 2008-01-19  Bruno Haible  <bruno@clisp.org>
31190
31191         * doc/posix-headers: Renamed from doc/headers.
31192         * doc/posix-functions: Renamed from doc/functions.
31193         * doc/gnulib.texi: Update.
31194
31195 2008-01-19  Bruno Haible  <bruno@clisp.org>
31196
31197         * doc/glibc-functions/strcasestr.texi: Include contents of
31198         doc/functions/strcasestr.texi, fixing the list of platforms.
31199         * doc/functions/strcasestr.texi: Remove file.
31200
31201 2008-01-19  Bruno Haible  <bruno@clisp.org>
31202
31203         * doc/glibc-functions/memmem.texi: Include contents of
31204         doc/functions/memmem.texi.
31205         * doc/functions/memmem.texi: Remove file.
31206
31207 2008-01-18  Bruno Haible  <bruno@clisp.org>
31208
31209         * doc/glibc-functions/*.texi: New files.
31210         * doc/gnulib.texi (Glibc Function Substitutes): Completely rewritten
31211         to use the new files.
31212
31213 2008-01-17  Bruno Haible  <bruno@clisp.org>
31214
31215         * tests/test-gethostname.c (main): Fix printf statement.
31216
31217 2008-01-17  Simon Josefsson  <simon@josefsson.org>
31218
31219         * modules/gethostname-tests: New file.
31220
31221         * tests/test-gethostname.c: New file.
31222
31223 2008-01-17  Simon Josefsson  <simon@josefsson.org>
31224
31225         * lib/gethostname.c: Include string.h unconditionally, strncpy is
31226         used by the UNAME case.  Reported by Bruno Haible
31227         <bruno@clisp.org>.
31228
31229 2008-01-17  Eric Blake  <ebb9@byu.net>
31230
31231         Convert c-strcasestr to be more efficient.
31232         * modules/c-strcasestr (Files): Use Two-Way, not KMP.
31233         (Depends-on): Add c-strcase, remove malloca, strnlen.
31234         * tests/test-c-strcasestr.c (main): Enhance test.
31235         * lib/c-strcasestr.c (c_strcasestr): Rewrite to new algorithm.
31236
31237 2007-01-16  Paolo Bonzini  <bonzini@gnu.org>
31238
31239         * build-aux/bootstrap (MSGID_BUGS_ADDRESS): New overridable variable.
31240         Use it in creating po/Makevars.
31241
31242 2008-01-15  Simon Josefsson  <simon@josefsson.org>
31243
31244         * lib/gc-libgcrypt.c (gc_init): Disable secure memory by default.
31245         Applications that requires it should initialize libgcrypt
31246         manually.
31247
31248 2008-01-16  Simon Josefsson  <simon@josefsson.org>
31249
31250         * lib/gethostname.c [!HAVE_UNAME]: Need string.h for strcpy.
31251
31252 2008-01-15  Paul Eggert  <eggert@cs.ucla.edu>
31253
31254         Fix problem with getdate on mingw32 reported by Simon Josefsson
31255         in <http://lists.gnu.org/archive/html/bug-gnulib/2008-01/msg00192.html>.
31256         * lib/getdate.y (get_date): Check "HAVE_DECL_TZNAME", not "defined
31257         tzname", when deciding whether to declare tzname.
31258         * lib/strftime.c (tzname): Likewise.
31259
31260 2008-01-15  Bruno Haible  <bruno@clisp.org>
31261
31262         Work around a MacOS X 10.5 bug in frexpl().
31263         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Also check denormalized numbers.
31264         * doc/functions/frexpl.texi: Document the bug.
31265         Reported by Elias Pipping <pipping@gentoo.org>.
31266
31267 2008-01-14  Eric Blake  <ebb9@byu.net>
31268
31269         Touch up previous patch.
31270         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE): Fix typo.
31271         * doc/functions/strcasestr.texi (strcasestr): Document OpenBSD bug.
31272
31273         Convert strcasestr module to use Two-Way algorithm.
31274         * modules/strcasestr-simple: New module, based on the old
31275         strcasestr, but with Two-Way rather than KMP.
31276         * modules/strcasestr (Depends-on): Change to strcasestr-simple.
31277         * lib/string.in.h (rpl_strcasestr): Declare.
31278         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Check for linear
31279         performance.
31280         * lib/strcasestr.c (strcasestr): Simplify, and avoid malloc.
31281         * modules/string (Makefile.am): Support strcasestr.
31282         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Likewise.
31283         * modules/strcasestr-tests (Depends-on): Check for alarm.
31284         * tests/test-strcasestr.c: Augment test.
31285         * lib/str-two-way.h: Clean up stray macro.
31286         * NEWS: Document new module.
31287         * MODULES.html.sh (string handling): Likewise.
31288         * doc/functions/strcasestr.texi: New file.
31289         * doc/gnulib.texi (Function Substitutes): New node.  Move memmem
31290         here, since it is not a POSIX function.
31291
31292 2008-01-14  Colin Watson  <cjwatson@debian.org>
31293             Bruno Haible  <bruno@clisp.org>
31294
31295         * m4/strsignal.m4 (gl_FUNC_STRSIGNAL): Also check whether strsignal
31296         works fine; if not, set REPLACE_STRSIGNAL.
31297         (gl_PREREQ_STRSIGNAL): Require AC_DECL_SYS_SIGLIST.
31298         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
31299         REPLACE_STRSIGNAL.
31300         * lib/string.in.h (strsignal): Consider REPLACE_STRSIGNAL.
31301         * modules/string (Makefile.am): Substitute REPLACE_STRSIGNAL.
31302         * tests/test-strsignal.c (main): Check out-of-range signal numbers.
31303
31304 2008-01-14  Bruno Haible  <bruno@clisp.org>
31305
31306         * modules/strsignal (Include): Change to <string.h>.
31307
31308 2008-01-14  Colin Watson  <cjwatson@debian.org>
31309
31310         * modules/argp (Notice): Add a notice recommending to change
31311         XGETTEXT_OPTIONS.
31312         (configure.ac): Invoke AM_XGETTEXT_OPTION if it exists.
31313
31314 2008-01-13  Colin Watson  <cjwatson@debian.org>
31315
31316         * modules/strsignal-tests: New file.
31317         * tests/test-strsignal.c: New file.
31318
31319         * lib/strsignal.c: New file, from glibc with modifications.
31320         * lib/siglist.h: New file, from glibc with modifications.
31321         * lib/string.in.h (strsignal): New declaration.
31322         * m4/strsignal.m4: New file.
31323         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
31324         GNULIB_STRSIGNAL and HAVE_DECL_STRSIGNAL.
31325         * modules/strsignal: New file.
31326         * modules/string (Makefile.am): Substitute GNULIB_STRSIGNAL and
31327         HAVE_DECL_STRSIGNAL.
31328
31329 2008-01-13  Bruno Haible  <bruno@clisp.org>
31330
31331         * m4/locale-fr.m4 (gt_LOCALE_FR, gt_LOCALE_FR_UTF8): Check that the
31332         locale encoding is not ASCII. Needed for OpenBSD 4.0.
31333         * m4/locale-tr.m4 (gt_LOCALE_TR_UTF8): Likewise.
31334         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): Likewise.
31335
31336 2008-01-13  Bruno Haible  <bruno@clisp.org>
31337
31338         * lib/argp-fmtstream.h (__attribute__): Don't redefine if
31339         __STRICT_ANSI__ is set: it's not needed by any version of gcc.
31340         * lib/argp.h (__attribute__): Likewise.
31341         * lib/c-stack.c (__attribute__): Likewise.
31342         * lib/error.h (__attribute__): Likewise.
31343         * lib/fts.c (__attribute__): Likewise.
31344         * lib/openat.h (__attribute__): Likewise.
31345         * lib/stdio.in.h (__attribute__): Likewise.
31346         * lib/string.in.h (__attribute__): Likewise.
31347         * lib/utimens.c (__attribute__): Likewise.
31348         * lib/vasnprintf.h (__attribute__): Likewise.
31349         * lib/xalloc.h (__attribute__): Likewise.
31350         * lib/xprintf.h (__attribute__): Likewise.
31351         * lib/xstrtol.h (__attribute__): Likewise.
31352         * lib/xvasprintf.h (__attribute__): Likewise.
31353
31354 2008-01-12  Bruno Haible  <bruno@clisp.org>
31355
31356         * doc/gnulib.texi (Glibc Header File Substitutes): New chapter.
31357         * doc/glibc-headers/a.out.texi: New file.
31358         * doc/glibc-headers/aliases.texi: New file.
31359         * doc/glibc-headers/alloca.texi: New file.
31360         * doc/glibc-headers/ar.texi: New file.
31361         * doc/glibc-headers/argp.texi: New file.
31362         * doc/glibc-headers/argz.texi: New file.
31363         * doc/glibc-headers/byteswap.texi: New file.
31364         * doc/glibc-headers/crypt.texi: New file.
31365         * doc/glibc-headers/endian.texi: New file.
31366         * doc/glibc-headers/envz.texi: New file.
31367         * doc/glibc-headers/err.texi: New file.
31368         * doc/glibc-headers/error.texi: New file.
31369         * doc/glibc-headers/execinfo.texi: New file.
31370         * doc/glibc-headers/fpu_control.texi: New file.
31371         * doc/glibc-headers/fstab.texi: New file.
31372         * doc/glibc-headers/fts.texi: New file.
31373         * doc/glibc-headers/getopt.texi: New file.
31374         * doc/glibc-headers/ieee754.texi: New file.
31375         * doc/glibc-headers/ifaddrs.texi: New file.
31376         * doc/glibc-headers/libintl.texi: New file.
31377         * doc/glibc-headers/mcheck.texi: New file.
31378         * doc/glibc-headers/mntent.texi: New file.
31379         * doc/glibc-headers/obstack.texi: New file.
31380         * doc/glibc-headers/paths.texi: New file.
31381         * doc/glibc-headers/printf.texi: New file.
31382         * doc/glibc-headers/pty.texi: New file.
31383         * doc/glibc-headers/resolv.texi: New file.
31384         * doc/glibc-headers/shadow.texi: New file.
31385         * doc/glibc-headers/sysexits.texi: New file.
31386         * doc/glibc-headers/ttyent.texi: New file.
31387
31388 2008-01-12  Jim Meyering  <meyering@redhat.com>
31389
31390         announce-gen: emit Gnulib's git-based version string.
31391         * build-aux/announce-gen: Remove option: --gnulib-snapshot-time-stamp=S.
31392         New option --gnulib-version=V, where V is expected to be
31393         the output of running git describe in the gnulib directory.
31394         (get_tool_versions): Request feedback on xdelta.  I suspect it's
31395         not useful, and plan to stop publishing an xdelta file with each
31396         coreutils release.
31397
31398         * build-aux/announce-gen: Also check for lzma-compressed files.
31399
31400 2008-01-11  Bruno Haible  <bruno@clisp.org>
31401
31402         * tests/test-memmem.c (main): Increase maximum allowed time.
31403         * tests/test-strstr.c (main): Likewise.
31404
31405 2008-01-11  Bruno Haible  <bruno@clisp.org>
31406
31407         * doc/functions/memmem.texi: Add more precisions about platforms.
31408         * doc/functions/strstr.texi: Likewise.
31409
31410 2008-01-10  Eric Blake  <ebb9@byu.net>
31411
31412         * m4/strstr.m4: Delete cruft from copy-n-paste.
31413         Reported by Bruno Haible.
31414
31415 2008-01-10  Bruno Haible  <bruno@clisp.org>
31416
31417         Make c-strstr rely on strstr.
31418         * lib/c-strstr.c: Don't include str-kmp.h.
31419         (c_strstr): Define in terms of strstr.
31420         * modules/c-strstr (Files): Remove lib/str-kmp.h.
31421         (Depends-on): Remove stdbool, malloca, strnlen. Add strstr.
31422
31423 2008-01-10  Bruno Haible  <bruno@clisp.org>
31424
31425         * doc/gnulib.texi (String Functions in C Locale): New section.
31426         * doc/c-ctype.texi: New file.
31427         * doc/c-strcase.texi: New file.
31428         * doc/c-strcaseeq.texi: New file.
31429         * doc/c-strcasestr.texi: New file.
31430         * doc/c-strstr.texi: New file.
31431         * doc/c-strtod.texi: New file.
31432         * doc/c-strtold.texi: New file.
31433
31434 2008-01-10  Eric Blake  <ebb9@byu.net>
31435
31436         * lib/relocatable.h: Fix a comment.
31437
31438 2008-01-10  Eric Blake  <ebb9@byu.net>
31439
31440         Share two-way algorithm.
31441         * lib/str-two-way.h: New file, merged from...
31442         * lib/memmem.c: ...here...
31443         * lib/strstr.c: ...and here.
31444         * modules/memmem (Files): Use it.
31445         * modules/strstr (Files): Likewise.
31446
31447         Avoid quadratic strstr implementations.
31448         * lib/strstr.c: New file.
31449         * m4/strstr.m4: Likewise.
31450         * modules/strstr: Likewise.
31451         * modules/strstr-tests: Likewise.
31452         * tests/test-strstr.c: Likewise.
31453         * lib/string.in.h (rpl_strstr): Declare.
31454         (memmem) [GNULIB_POSIXCHECK]: Document speed issue.
31455         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Support strstr.
31456         * modules/string (Makefile.am): Likewise.
31457         * MODULES.html.sh (string handling): Mention new module.
31458         * doc/functions/strstr.texi (strstr): Document the bug.
31459
31460 2008-01-10  Bruno Haible  <bruno@clisp.org>
31461
31462         * lib/relocatable.h (relocate): State whether result is freshly
31463         allocated or not.
31464         * lib/relocatable.c (relocate): Return a freshly allocated string
31465         instead of a pointer to a privately held string.
31466         Reported by Sylvain Beucler <beuc@gnu.org>.
31467
31468 2008-01-10  Colin Watson  <cjwatson@debian.org>
31469
31470         * lib/canonicalize-lgpl.c [!_LIBC]: Fix typo in #if directive:
31471         s/S_ISNLK/S_ISLNK/.
31472
31473 2008-01-09  Bruno Haible  <bruno@clisp.org>
31474
31475         * doc/functions/memmem.texi: Use the same structure as snprintf.texi
31476         and other files.
31477         * m4/memmem.m4 (gl_FUNC_MEMMEM): Say "guessing no" instead of "no"
31478         if it's only a guess.
31479         * modules/memmem: Simplify by depending on memmem-simple.
31480
31481 2008-01-09  Bruno Haible  <bruno@clisp.org>
31482
31483         Work around OpenBSD 4.0 tdelete() bug.
31484         * m4/tsearch.m4 (gl_FUNC_TSEARCH): Also check tdelete's return value.
31485         * lib/search.in.h: If REPLACE_TSEARCH is 1, define tsearch etc. as
31486         macros and don't redefine the enum values.
31487         * m4/search_h.m4 (gl_SEARCH_H_DEFAULTS): Initialize REPLACE_TSEARCH.
31488         * modules/search (Makefile.am): Also substitute REPLACE_TSEARCH.
31489         * doc/functions/tdelete.texi: Document the OpenBSD 4.0 bug.
31490
31491 2008-01-09  Bruno Haible  <bruno@clisp.org>
31492
31493         * tests/test-wcwidth.c: Include <string.h> and localcharset.h.
31494         (main): Don't perform the tests if setlocale did not install a UTF-8
31495         locale. Needed on OpenBSD 4.0.
31496         * modules/wcwidth-tests (Depends-on): Add localcharset.
31497
31498 2008-01-09  Paul Eggert  <eggert@cs.ucla.edu>
31499
31500         gl_FUNC_ALLOCA no longer defines HAVE_ALLOCA_H unconditionally.
31501         See <http://lists.gnu.org/archive/html/bug-gnulib/2007-12/msg00149.html>.
31502         * NEWS: announce this.
31503         * m4/alloca.m4 (gl_FUNC_ALLOCA): Don't define HAVE_ALLOCA_H.
31504
31505 2008-01-09  Simon Josefsson  <simon@josefsson.org>
31506         and Eric Blake  <ebb9@byu.net>
31507
31508         Add memmem-simple module.
31509         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE): New macro.
31510         (gl_FUNC_MEMMEM): Separate performance from presence checks.
31511         * modules/memmem-simple: New file.
31512         * modules/memmem (Description): Tweak.
31513         * MODULES.html.sh (string handling): Mention new module.
31514         * doc/functions/memmem.texi (memmem): Distinguish which flaws are
31515         addressed by memmem-simple.
31516         * NEWS: Document the difference.
31517
31518 2008-01-09  Eric Blake  <ebb9@byu.net>
31519
31520         Give gcc some memmem optimization hints.
31521         * lib/string.in.h (memmem, memrchr, strchrnul, strnlen, strpbrk)
31522         (strcasestr): Declare as pure.
31523         * modules/memmem (Maintainer): Claim my implementation.
31524
31525 2008-01-09  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
31526
31527         Support AIX 6.1 and higher.
31528         * build-aux/config.libpath: Likewise.
31529         * build-aux/config.rpath: Likewise.
31530
31531 2008-01-08  Jim Meyering  <meyering@redhat.com>
31532             Bruno Haible  <bruno@clisp.org>
31533
31534         * lib/printf-parse.c (PRINTF_PARSE): Handle a size specifier "q"
31535         on MacOS X and a size specifier "I64" on mingw. Needed for PRIdMAX.
31536         Reported by Peter Fales in
31537         <http://lists.gnu.org/archive/html/bug-coreutils/2007-12/msg00148.html>.
31538
31539 2008-01-08  Bruno Haible  <bruno@clisp.org>
31540
31541         * modules/unictype/category-of (Depends-on): Add
31542         unictype/category-none.
31543         * modules/unictype/category-and-tests (Depends-on): Add
31544         unictype/category-{L,N,Lu,Nd}.
31545         * modules/unictype/category-and-not-tests (Depends-on): Likewise.
31546         * modules/unictype/category-or-tests (Depends-on): Add
31547         unictype/category-{L,N}.
31548         * modules/unictype/category-name-tests (Depends-on): Add
31549         unictype/category-{Z,Nl}.
31550         Reported by Simon Josefsson.
31551
31552 2008-01-08  Bruno Haible  <bruno@clisp.org>
31553
31554         * lib/str-kmp.h (knuth_morris_pratt_unibyte): Document the calling
31555         convention better.
31556         * lib/mbsstr.c (knuth_morris_pratt_multibyte): Likewise.
31557         * lib/mbscasestr.c (knuth_morris_pratt_multibyte): Likewise.
31558         Reported by Peter Miller <millerp@canb.auug.org.au>.
31559
31560 2008-01-08  Eric Blake  <ebb9@byu.net>
31561
31562         Rewrite memmem to guarantee linear complexity without malloc.
31563         * lib/memmem.c (memmem): Use Two-Way rather than
31564         Knuth-Morris-Pratt, to allow O(1) space usage.
31565         (critical_factorization, two_way_short_needle)
31566         (two_way_long_needle): New functions.
31567         (knuth_morris_pratt): Delete.
31568         * modules/memmem (Depends-on): No longer need malloca or stdbool.
31569         Add stdint.
31570         * tests/test-memmem.c (main): Add tests for periodic needle and
31571         sublinear performance.
31572         * doc/functions/memmem.texi (memmem): Document other deficiencies
31573         in cygwin and older glibc.
31574
31575 2008-01-08  Bruno Haible  <bruno@clisp.org>
31576
31577         * modules/memmem-tests (Makefile.am): Remove TESTS_ENVIRONMENT
31578         augmentation.
31579
31580 2008-01-08  Mike Frysinger  <vapier@gentoo.org>
31581
31582         Add a configure time option: --disable-acl.
31583         * m4/acl.m4 (gl_FUNC_ACL): Wrap all ACL logic in a call to
31584         AC_ARG_ENABLE(acl).
31585
31586 2008-01-06  Simon Josefsson  <simon@josefsson.org>
31587
31588         * tests/test-localename.c: Don't include obsolete "setenv.h".
31589
31590         * modules/localename-tests (Depends-on): Need unsetenv.
31591
31592 2008-01-08  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
31593
31594         * DEPENDENCIES: Require Texinfo version 4.6 or newer.
31595
31596 2008-01-06  Colin Watson  <cjwatson@debian.org>
31597
31598         * users.txt: Add man-db.
31599
31600 2008-01-07  Bruno Haible  <bruno@clisp.org>
31601
31602         * doc/gnulib-intro.texi (Library vs Reusable Code): Restore the
31603         previous section name.
31604
31605 2008-01-07  Bruno Haible  <bruno@clisp.org>
31606
31607         * lib/progname.c (set_program_name): Don't strip off a leading
31608         "lt-" prefix outside a .libs directory.
31609         Suggested by Paul Eggert.
31610
31611 2008-01-01  Sylvain Beucler  <beuc@gnu.org>
31612             Bruno Haible  <bruno@clisp.org>
31613
31614         Improve memory cleanup in 'relocatable' module.
31615         * lib/relocatable.h (compute_curr_prefix): Change return type to
31616         'char *'.
31617         * lib/relocatable.c (compute_curr_prefix): Change return type to
31618         'char *'. Free curr_installdir after use.
31619         (relocate): Free curr_prefix_better after use.
31620         * lib/progreloc.c (prepare_relocate): Free curr_prefix after use.
31621
31622 2008-01-01  Bruno Haible  <bruno@clisp.org>
31623
31624         * tests/test-wcwidth.c (main): Relax test of U+2060. Avoids a test
31625         failure on older glibc systems.
31626         Reported by Peter Fales <psfales@alcatel-lucent.com>.
31627
31628 2008-01-05  Eric Blake  <ebb9@byu.net>
31629
31630         Avoid quadratic system memmem.
31631         * m4/memmem.m4 (gl_FUNC_MEMMEM): Check for quadratic memmem.
31632         Reported by Ralf Wildenhues.
31633
31634         Fix memmem test for mingw.
31635         * modules/memmem-tests (configure.ac): Check for alarm.
31636         * tests/test-memmem.c (main): Avoid alarm on platforms that lack
31637         it.
31638         * doc/functions/memmem.texi: New file.
31639         * doc/gnulib.texi (Function Substitutes): Add memmem.
31640         Reported by Bruno Haible.
31641
31642 2008-01-04  Bruno Haible  <bruno@clisp.org>
31643
31644         * m4/strcase.m4 (gl_FUNC_STRCASECMP, gl_FUNC_STRNCASECMP):
31645         Require gl_HEADER_STRINGS_H_DEFAULTS, not
31646         gl_HEADER_STRING_H_DEFAULTS.
31647
31648 2008-01-04  Eric Blake  <ebb9@byu.net>
31649
31650         Shorten duration of memmem test.
31651         * tests/test-memmem.c (main): Use alarm to declare failure if test
31652         is taking too long.
31653         Reported by Ralf Wildenhues.
31654
31655 2007-12-21  Simon Josefsson  <simon@josefsson.org>
31656
31657         * modules/relocatable-prog-wrapper (Depends-on): Add intprops and
31658         string, needed by strerror.
31659
31660 2008-01-03  Colin Watson  <cjwatson@debian.org>
31661             Bruno Haible  <bruno@clisp.org>
31662
31663         * doc/gnulib-tool.texi (Localization): New section.
31664
31665 2008-01-02  Bruno Haible  <bruno@clisp.org>
31666
31667         * lib/memmem.c (knuth_morris_pratt, memmem): Change all 'char *'
31668         variables to 'unsigned char *' type.
31669         Reported by Paul Eggert.
31670
31671 2008-01-02  Jim Meyering  <jim@meyering.net>
31672
31673         * lib/version-etc.c (COPYRIGHT_YEAR): Increase for new year.
31674
31675 2007-12-31  Jim Meyering  <jim@meyering.net>
31676
31677         Avoid use of private FTS type name.
31678         * lib/fts.c (fts_sort): Use FTSENT rather than "struct _ftsent".
31679
31680 2007-12-30  Karl Berry  <karl@gnu.org>
31681
31682         * doc/gnulib.texi (Library vs. Reusable Code): remove period, to
31683         work around defect in Texinfo and/or the standalone Info browser.
31684
31685 2007-12-30  Bruno Haible  <bruno@clisp.org>
31686
31687         Unify 5 copies of the KMP code.
31688         * lib/str-kmp.h: New file.
31689         * lib/c-strcasestr.c: Include str-kmp.h.
31690         (knuth_morris_pratt): Remove function.
31691         (c_strcasestr): Update.
31692         * lib/c-strstr.c: Include str-kmp.h.
31693         (knuth_morris_pratt): Remove function.
31694         (c_strcasestr): Update.
31695         * lib/mbscasestr.c: Include str-kmp.h.
31696         (knuth_morris_pratt_unibyte): Remove function.
31697         * lib/mbsstr.c: Include str-kmp.h.
31698         (knuth_morris_pratt_unibyte): Remove function.
31699         * lib/strcasestr.c: Include str-kmp.h.
31700         (knuth_morris_pratt): Remove function.
31701         (strcasestr): Update.
31702         * modules/c-strcasestr (Files): Add lib/str-kmp.h.
31703         * modules/c-strstr (Files): Likewise.
31704         * modules/mbscasestr (Files): Likewise.
31705         * modules/mbsstr (Files): Likewise.
31706         * modules/strcasestr (Files): Likewise.
31707         Suggested by Paul Eggert.
31708
31709 2007-12-30  Bruno Haible  <bruno@clisp.org>
31710
31711         * lib/xmalloca.c (xmmalloca): Don't define if HAVE_ALLOCA is not
31712         defined.
31713
31714 2007-12-30  Bruno Haible  <bruno@clisp.org>
31715
31716         * lib/xmalloca.h: Include xalloc.h.
31717         (xnmalloca): New macro.
31718
31719 2007-12-30  Bruno Haible  <bruno@clisp.org>
31720
31721         * lib/malloca.h (nmalloca): New macro.
31722         * lib/c-strcasestr.c (knuth_morris_pratt): Use it.
31723         * lib/c-strstr.c (knuth_morris_pratt): Likewise.
31724         * lib/mbscasestr.c (knuth_morris_pratt_unibyte,
31725         knuth_morris_pratt_multibyte): Likewise.
31726         * lib/mbsstr.c (knuth_morris_pratt_unibyte,
31727         knuth_morris_pratt_multibyte): Likewise.
31728         * lib/memmem.c (knuth_morris_pratt): Likewise.
31729         * lib/strcasestr.c (knuth_morris_pratt): Likewise.
31730
31731 2007-12-25  Bruno Haible  <bruno@clisp.org>
31732
31733         Fixup after 2007-10-17 commit. Ensure that 'glob' stays under LGPLv2+.
31734         * lib/glob.c: Don't include openat.h.
31735         (link_exists2_p): Add back the code that deals with the
31736         !GLOB_ALTDIRFUNC case.
31737         (link_exists_p) [!_LIBC && !HAVE_FSTATAT]: Just call link_exists2_p and
31738         let it do the filename concatenation.
31739         * m4/glob.m4 (gl_PREREQ_GLOB): Add check for fstatat.
31740         * modules/glob (Depends-on): Remove openat.
31741
31742 2007-12-31  Bruno Haible  <bruno@clisp.org>
31743
31744         * modules/dirfd (License): Change to LGPLv2+.
31745         Approved by Jim Meyering.
31746
31747 2007-12-29  Paul Eggert  <eggert@cs.ucla.edu>
31748
31749         * lib/memmem.c (knuth_morris_pratt): Check for size_t overflow
31750         when multiplying M by sizeof (size_t).
31751
31752 2007-12-10  Martin Lambers  <marlam@marlam.de>
31753
31754         Override getpagesize on mingw.
31755         * lib/getpagesize.c: New file.
31756         * m4/getpagesize.m4 (gl_FUNC_GETPAGESIZE): Enable replacement on mingw.
31757         * modules/getpagesize (Files): Add lib/getpagesize.c.
31758         * lib/unistd.in.h (getpagesize): Declare if we are using a replacement.
31759         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
31760         REPLACE_GETPAGESIZE.
31761         * modules/unistd (Makefile.am): Substitute REPLACE_GETPAGESIZE.
31762
31763 2007-12-25  Bruno Haible  <bruno@clisp.org>
31764
31765         * modules/localcharset (Notice): New field.
31766         (configure.ac): Define LOCALCHARSET_TESTS_ENVIRONMENT.
31767         Suggested by Ben Pfaff <blp@cs.stanford.edu>.
31768
31769 2007-12-25  Paul Eggert  <eggert@cs.ucla.edu>
31770             Bruno Haible  <bruno@clisp.org>
31771
31772         Avoid using the syntax symbol() in formatted documentation.
31773         * MODULES.html.sh (func_module): When replacing symbol() with a
31774         hyperlink, remove the parentheses. Show an error if some remain.
31775         Recognize and render the '...' syntax.
31776         * doc/alloca-opt.texi: Remove parentheses from symbol reference.
31777         Rework. Add paragraph about GCC's inlining.
31778         * doc/alloca.texi: Likewise.
31779         * doc/error.texi: Remove parentheses from symbol reference.
31780         * doc/gnulib-intro.texi: Likewise.
31781         * doc/gnulib.texi (alloca, alloca-opt): New nodes.
31782         * modules/fnmatch (Description): Reword to say "the ... function".
31783         * modules/full-read (Description): Likewise.
31784         * modules/full-write (Description): Likewise.
31785         * modules/safe-read (Description): Likewise.
31786         * modules/safe-write (Description): Likewise.
31787         * modules/strchrnul (Description): Likewise.
31788         * modules/trim (Description): Likewise.
31789         * modules/error (Description): Remove parentheses from symbol
31790         references.
31791         * modules/verror (Description): Likewise.
31792         Reported by Karl Berry.
31793
31794 2007-12-25  Bruno Haible  <bruno@clisp.org>
31795
31796         Fixup after 2007-10-16 commit.
31797         * lib/glob.c (glob_in_dir): Don't use ISO C99 syntax.
31798
31799 2007-12-24  Bruno Haible  <bruno@clisp.org>
31800
31801         Make --enable-relocatable work with DESTDIR.
31802         * build-aux/install-reloc: Accept another argument 'destdir'. Use it
31803         to compute installdir from destprog.
31804         * m4/relocatable.m4 (gl_RELOCATABLE_BODY): In INSTALL_PROGRAM_ENV,
31805         also set the RELOC_DESTDIR variable.
31806         Reported by Ð›ÐµÐ²Ð°ÑˆÐµÐ² Ð˜Ð²Ð°Ð½ <octagram@bluebottle.com>.
31807
31808 2007-12-24  Bruno Haible  <bruno@clisp.org>
31809
31810         Fix link error due to xalloc_die().
31811         * lib/progreloc.c: When NO_XMALLOC is defined, use areadlink instead
31812         of xreadlink.
31813         * lib/relocwrapper.c: Update comments.
31814         * build-aux/install-reloc: Remove xreadlink.c from file list.
31815         * modules/relocatable-prog-wrapper (Files): Remove xreadlink.h and
31816         xreadlink.c.
31817         Reported by Ð›ÐµÐ²Ð°ÑˆÐµÐ² Ð˜Ð²Ð°Ð½ <octagram@bluebottle.com>.
31818
31819 2007-12-24  Bruno Haible  <bruno@clisp.org>
31820
31821         Split setenv module into setenv and unsetenv. Get rid of setenv.h.
31822         * lib/setenv.h: Remove file.
31823         * lib/stdlib.in.h (setenv, unsetenv): New declarations, moved here from
31824         lib/setenv.h.
31825         * modules/setenv (Files): Remove lib/setenv.h, lib/unsetenv.c.
31826         (Depends-on): Add stdlib.
31827         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR. Don't invoke
31828         gl_FUNC_UNSETENV.
31829         (Include): Replace setenv.h with <stdlib.h>.
31830         * modules/unsetenv: New file.
31831         * lib/setenv.c: Include <stdlib.h> first, after alloca.h.
31832         * lib/unsetenv.c: Include <stdlib.h> first.
31833         * m4/setenv.m4 (gl_FUNC_SETENV, gl_FUNC_SETENV_SEPARATE): Require
31834         gl_STDLIB_H_DEFAULTS. Conditionally set HAVE_SETENV to 0.
31835         (gl_FUNC_UNSETENV): Require gl_STDLIB_H_DEFAULTS. Conditionally set
31836         HAVE_UNSETENV to 0. Set VOID_UNSETENV as an AC_SUBSTed variable.
31837         * modules/stdlib (Makefile.am): Substitute also GNULIB_SETENV,
31838         HAVE_SETENV, GNULIB_UNSETENV, HAVE_UNSETENV, VOID_UNSETENV.
31839         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_SETENV,
31840         HAVE_SETENV, GNULIB_UNSETENV, HAVE_UNSETENV, VOID_UNSETENV.
31841         * doc/functions/unsetenv.texi: Update.
31842         * modules/xsetenv (Depends-on): Add unsetenv.
31843         * modules/getdate (Depends-on): Likewise.
31844         * lib/xsetenv.h: Include <stdlib.h> instead of setenv.h.
31845         * lib/xsetenv.c: Don't include setenv.h.
31846         * lib/getdate.y: Likewise.
31847         * lib/relocwrapper.c: Likewise.
31848         * modules/relocatable-prog-wrapper (Files): Remove lib/setenv.h.
31849         (Depends-on): Add stdlib.
31850         * NEWS: Mention the changes.
31851         Reported by Ð›ÐµÐ²Ð°ÑˆÐµÐ² Ð˜Ð²Ð°Ð½ <octagram@bluebottle.com>.
31852
31853 2007-12-23  Bruno Haible  <bruno@clisp.org>
31854
31855         * lib/memmem.c (memmem): Use lowercase variable names. Tab
31856         indentation.
31857
31858 2007-12-23  Bruno Haible  <bruno@clisp.org>
31859
31860         * lib/c-strcasestr.c: Add more comments.
31861         * lib/c-strstr.c: Likewise.
31862         * lib/mbscasestr.c: Likewise.
31863         * lib/mbsstr.c: Likewise.
31864         * lib/strcasestr.c: Likewise.
31865         * lib/memmem.c: Likewise.
31866
31867 2007-12-23  Bruno Haible  <bruno@clisp.org>
31868
31869         * tests/test-memmem.c: Include <string.h> first.
31870
31871 2007-12-22  Bruno Haible  <bruno@clisp.org>
31872
31873         * gnulib-tool (func_create_testdir): Change $auxdir while generating
31874         the contents of $testsbase.
31875         Reported by Ralf Wildenhues.
31876
31877 2007-12-22  Bruno Haible  <bruno@clisp.org>
31878
31879         * gnulib-tool (func_emit_tests_Makefile_am): Replace local_ldadd with
31880         two variables local_ldadd_before, local_ldadd_last.
31881
31882 2007-12-20  Eric Blake  <ebb9@byu.net>
31883
31884         Work around circular library issue when cross-compiling.
31885         * lib/progname.c (set_program_name): Use strncmp, not memcmp, so
31886         that progname.o does not need to pull in rpl_memcmp.
31887
31888 2007-12-19  Eric Blake  <ebb9@byu.net>
31889
31890         Fix memmem to avoid O(n^2) worst-case complexity.
31891         * lib/memmem.c (knuth_morris_pratt): New function.
31892         (memmem): Use it if first few naive iterations fail.
31893         * m4/memmem.m4 (gl_FUNC_MEMMEM): Detect cygwin bug.
31894         * modules/memcmp (License): Set to LGPLv2+, not LGPL.
31895         * modules/memchr (License): Likewise.
31896         * modules/memmem (Depends-on): Add memcmp, memchr, stdbool, and
31897         malloca.
31898         * tests/test-memmem.c: Rewrite, borrowing ideas from
31899         test-mbsstr1.c; the old version wouldn't even compile!
31900         * modules/memmem-tests: New file.
31901         * lib/string.in.h (rpl_memmem): Add declaration.
31902         * modules/string (Makefile.am): Substitute REPLACE_MEMMEM.
31903         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Default for
31904         REPLACE_MEMMEM.
31905
31906 2007-12-18  Paul Eggert  <eggert@cs.ucla.edu>
31907
31908         Fix problem with _GL_JUST_INCLUDE_SYSTEM_INTTYPES_H on VMS.
31909         * lib/stdint.in.h (_GL_JUST_INCLUDE_SYSTEM_INTTYPES_H): Define
31910         before any system include files, and undef after them all.  This
31911         should fix a problem on VMS reported by John E. Malmberg in
31912         <http://lists.gnu.org/archive/html/bug-gnulib/2007-12/msg00118.html>.
31913
31914 2007-12-17  Eric Blake  <ebb9@byu.net>
31915
31916         Revert addition of verify, for BSD/OS.
31917         * lib/fseeko.c [!HAVE_FSEEKO]: Allow off_t > long, even though it
31918         can't handle large files, for the sake of obsolete platforms.
31919         * modules/fseeko (Depends-on): Remove verify.
31920         * doc/functions/fseeko.texi (fseeko): Document BSD/OS limitation.
31921         * doc/functions/ftello.texi (ftello): Likewise.
31922         * doc/functions/fgetpos.texi (fgetpos): Likewise.
31923         Reported by Larry Jones.
31924
31925 2007-12-17  Petr Salinger  <Petr.Salinger@seznam.cz>
31926
31927         getcwd.c: Use a more readable witness: HAVE_OPENAT_SUPPORT
31928         * lib/getcwd.c: Define and use HAVE_OPENAT_SUPPORT, in place of AT_FDCWD.
31929
31930 2007-12-17  Jim Meyering  <meyering@redhat.com>
31931
31932         Port to GNU/kFreeBSD - FreeBSD kernel + GNU libc,
31933         which has no openat syscall, yet <fcntl.h> does define AT_FDCWD.
31934         * lib/getcwd.c: Undef AT_FDCWD if there is no openat function.
31935         * modules/getcwd (Depends-on): Add openat.
31936         Reported by Petr Salinger.
31937
31938 2007-12-17  Bruno Haible  <bruno@clisp.org>
31939
31940         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Use GL_NOCRASH to
31941         avoid a segmentation fault of the configure test on x86_64 systems.
31942
31943 2007-12-15  Jim Meyering  <meyering@redhat.com>
31944
31945         * build-aux/gnupload (GPG): Don't hard-code absolute name of gpg binary.
31946
31947 2007-12-13  Eric Blake  <ebb9@byu.net>
31948
31949         Another fseek test.
31950         * tests/test-fseek.c (main): Also test ungetc handling.
31951         * tests/test-fseeko.c (main): Likewise.
31952         * modules/fseeko (Depends-on): Add verify.
31953         * lib/fseeko.c [!HAVE_FSEEKO]: Verify that off_t is not too
31954         large.
31955         Reported by Larry Jones.
31956
31957         Fix fseeko on mingw.
31958         * lib/fseeko.c (rpl_fseeko) [_IOERR]: Reset EOF flag on successful
31959         seek.
31960
31961         Beef up fseek tests.
31962         * tests/test-fseek.c (main): Also test eof handling.
31963         * tests/test-fseeko.c (main): Likewise.
31964         Reported by Larry Jones.
31965
31966 2007-12-13  Larry Jones  <lawrence.jones@siemens.com>  (tiny change)
31967
31968         Fix fseeko on BSD-based platforms.
31969         * lib/fseeko.c (rpl_fseeko) [__sferror]: Reset EOF flag on
31970         successful seek.
31971
31972 2007-12-12  Eric Blake  <ebb9@byu.net>
31973
31974         Allow circular dependency of separate libtests.a
31975         * gnulib-tool (func_emit_tests_Makefile_am): Add AM_LIBTOOLFLAGS
31976         when use_libtests.
31977
31978 2007-12-11  Eric Blake  <ebb9@byu.net>
31979
31980         Fix bug with -0.0L in previous patch.
31981         * lib/isnan.c (rpl_isnanl): Make robust to -0.0L and pad bits.
31982         * tests/test-isnan.c (main): Also test on zeroes.
31983         * tests/test-isnanf.c (main): Likewise.
31984         * tests/test-isnanl.h (main): Likewise.
31985
31986         Detect pseudo-denormals on x86 even when cross-compiling.
31987         * lib/isnan.c (rpl_isnanl) [!KNOWN_EXPBIT0_LOCATION
31988         && USE_LONG_DOUBLE && x86]: Add one more check to filter out
31989         invalid bit patterns that happen to satisfy ==.
31990
31991         Avoid link failures with separate libtests.a.
31992         * gnulib-tool (func_emit_tests_Makefile_am): Also list local_ldadd
31993         last, to satisfy circular dependencies.
31994
31995 2007-12-11  Eric Blake  <ebb9@byu.net>
31996         and Bruno Haible  <bruno@clisp.org>
31997
31998         Fix OpenBSD 4.0 <float.h> handling of long double.
31999         * m4/float_h.m4 (gl_FLOAT_H): Also claim OpenBSD is broken.
32000         * lib/float.in.h [__OpenBSD__]: Add fixes for OpenBSD.
32001         * doc/headers/float.texi (float.h): Document OpenBSD bug.
32002
32003 2007-12-11  Jim Meyering  <meyering@redhat.com>
32004
32005         * users.txt: Add libvirt.
32006
32007         Support versions of autoconf prior to 2.59c.
32008         * gnulib-tool (func_emit_initmacro_done): Define m4_foreach_w
32009         if it is not already defined.
32010
32011 2007-12-09  Bruno Haible  <bruno@clisp.org>
32012
32013         Let 'gnulib-tool --import' collect sources needed for the tests in
32014         tests/ rather than in lib/.
32015         * gnulib-tool (func_emit_tests_Makefile_am): Accept use_libtests
32016         argument. If true, add rules to generate libtests.a, and put libtests.a
32017         into $(LDADD). Consider source files in subdirectories and set
32018         uses_subdirs.
32019         (func_emit_initmacro_start, func_emit_initmacro_end,
32020         func_emit_initmacro_done): Pass all arguments explicitly.
32021         (func_import): Determine two module lists main_modules,
32022         testsrelated_modules. Determine use_libtests. Determine two variables
32023         sed_transform_main_lib_file, sed_transform_testsrelated_lib_file
32024         instead of just sed_transform_lib_file. Determine two variables
32025         main_files and testsrelated_files. Compute 'files' as the union of
32026         both. Adjust sed_rewrite_old_files, sed_rewrite_new_files,
32027         func_add_or_update. In the generated gnulib-comp.m4, collect the
32028         object files for tests/ in different variables than those for lib/.
32029         Substitute LIBTESTS_LIBDEPS.
32030         (func_create_testdir): Combine the uses_subdirs results from
32031         func_emit_lib_Makefile_am and from func_emit_tests_Makefile_am.
32032
32033 2007-12-09  Bruno Haible  <bruno@clisp.org>
32034
32035         * gnulib-tool (func_emit_tests_Makefile_am): Expand references to
32036         the build-aux directory.
32037
32038 2007-12-09  Bruno Haible  <bruno@clisp.org>
32039
32040         * gnulib-tool (func_emit_tests_Makefile_am): Remove redundant code
32041         introduced on 2006-09-09.
32042
32043 2007-12-07  Jim Meyering  <meyering@redhat.com>
32044
32045         Let these macros work also with autoconf-2.59.
32046         * m4/getline.m4 (gl_FUNC_GETLINE): Require only autoconf-2.59.  2.60
32047         is not needed, since gnulib now permits use of AC_CHECK_DECLS_ONCE.
32048         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Likewise.
32049
32050 2007-12-06  Jim Meyering  <meyering@redhat.com>
32051
32052         Avoid a configure-time syntax error in gl_FUNC_ACL.
32053         * m4/acl.m4 (gl_FUNC_ACL): Be careful to check for the acl_trivial
32054         function in each branch, before testing the cache variable.
32055
32056 2007-12-04  Eric Blake  <ebb9@byu.net>
32057
32058         Make scripts executable.
32059         * build-aux/config.guess: Add execute permissions.
32060         * build-aux/config.sub: Likewise.
32061         * build-aux/gendocs.sh: Likewise.
32062
32063         Fix frexp on mingw.
32064         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Detect mingw bug when
32065         cross-compiling.
32066         * doc/functions/frexp.texi (frexp): Document the bug.
32067
32068         Make cygwin fseeko check more reliable.
32069         * m4/stdio_h.m4 (gl_STDIN_LARGE_OFFSET) [__CYGWIN__]: Use cygwin
32070         version numbers, rather than unrelated feature check.
32071         * doc/functions/fseeko.texi (fseeko): Tweak failure report.
32072         * doc/functions/ftello.texi (ftello): Likewise.
32073         Reported by Bruno Haible.
32074
32075         * m4/strerror.m4: Bump version number.
32076
32077 2007-12-03  Bruno Haible  <bruno@clisp.org>
32078
32079         * doc/functions/mprotect.texi: Mention the mingw problem.
32080
32081 2007-12-03  Eric Blake  <ebb9@byu.net>
32082
32083         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE): Ensure
32084         REPLACE_STRERROR is initialized before this macro.
32085
32086 2007-12-03  Paul Eggert  <eggert@cs.ucla.edu>
32087
32088         Add support for Solaris 10 ACLs.  Also, ACLs are Gnulib, not Autoconf.
32089         * modules/acl (configure.ac): Rename AC_FUNC_ACL to gl_FUNC_ACL.
32090         * m4/acl.m4 (gl_FUNC_ACL): Renamed from AC_FUNC_ACL.  On Solaris,
32091         put -lsec in even for programs other than 'ls'.  This fixes a problem
32092         for gettext reported by Bruno Haible in
32093         <http://lists.gnu.org/archive/html/bug-gnulib/2007-12/msg00007.html>.
32094         * lib/acl.c (copy_acl, qset_acl) [USE_ACL && defined ACL_NO_TRIVIAL]:
32095         Add support for Solaris 10.  This isn't efficient, but should get the
32096         job done for now.
32097
32098 2007-12-03  James Youngman  <jay@gnu.org>
32099
32100         * doc/regexprops-generic.texi: change "an close-group" to "a
32101         close-group" and "illegal" to "not allowed".
32102
32103 2007-11-23  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
32104
32105         * lib/unictype/pr_byname.c: Include unictype/pr_byname.h instead of
32106         pr_byname.h. Needed for the rare case when the maintainer has done
32107         "make maintainer-clean" in the source directory and then attempts a
32108         build outside the source directory.
32109         * lib/unictype/scripts.c: Include unictype/scripts_byname.h instead of
32110         scripts_byname.h.
32111
32112 2007-12-02  Martin Lambers <marlam@marlam.de>
32113             Bruno Haible  <bruno@clisp.org>
32114
32115         * lib/getpagesize.h: Remove file.
32116         * lib/unistd.in.h: Include declaration of getpagesize here.
32117         * m4/getpagesize.m4 (gl_FUNC_GETPAGESIZE): Renamed from gl_GETPAGESIZE.
32118         Invoke gl_UNISTD_H_DEFAULTS. Set HAVE_GETPAGESIZE, HAVE_OS_H,
32119         HAVE_SYS_PARAM_H.
32120         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_GETPAGESIZE,
32121         HAVE_GETPAGESIZE, HAVE_OS_H, HAVE_SYS_PARAM_H.
32122         * modules/getpagesize (Files): Remove lib/getpagesize.h.
32123         (Depends-on): Add unistd.
32124         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
32125         (Include): Use <unistd.h> instead of getpagesize.h.
32126         * modules/unistd (Makefile.am): Substitute also GNULIB_GETPAGESIZE,
32127         HAVE_GETPAGESIZE, HAVE_OS_H, HAVE_SYS_PARAM_H.
32128         * m4/pagealign_alloc.m4 (gl_PREREQ_PAGEALIGN_ALLOC): Remove
32129         gl_GETPAGESIZE invocation, already handled by module dependency.
32130         * lib/pagealign_alloc.c: Don't include getpagesize.h.
32131
32132 2007-12-02  Bruno Haible  <bruno@clisp.org>
32133
32134         * modules/strings-tests: New file.
32135         * tests/test-strings.c: New file.
32136
32137         Move declarations of str{,n}casecmp from <string.h> to <strings.h>.
32138         * lib/strings.in.h: New file.
32139         * lib/string.in.h (strcasecmp, strncasecmp): Remove declarations.
32140         * m4/strings_h.m4: New file.
32141         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Remove initialization
32142         of HAVE_STRCASECMP, HAVE_DECL_STRNCASECMP.
32143         * modules/strings: New file.
32144         * modules/string (Makefile.am): Update.
32145         * modules/strcase (Include): Mention <strings.h>, not <string.h>.
32146         Reported by Karl Berry.
32147
32148 2007-12-01  Eric Blake  <ebb9@byu.net>
32149
32150         * m4/stdio_h.m4 (gl_STDIN_LARGE_OFFSET) [__CYGWIN__]: Rewrite to
32151         accomodate fix in cygwin 1.5.25.
32152
32153 2007-12-01  Jim Meyering  <meyering@redhat.com>
32154
32155         Fix a bug that inhibited much of the utf8-optimization in regcomp.c.
32156         * lib/regcomp.c (optimize_utf8): Fix a typo, s/idx/ctx_type/,
32157         that would inhibit utf8-optimization of a regexp containing line-
32158         or buffer-anchors, e.g., `^', `$'.
32159
32160 2007-11-30  Bruno Haible  <bruno@clisp.org>
32161
32162         * lib/lock.h (gl_recursive_lock_init) [PTHREAD &&
32163         PTHREAD_RECURSIVE_MUTEX_INITIALIZER]: Call
32164         glthread_recursive_lock_init.
32165         * lib/lock.c (glthread_recursive_lock_init)
32166         [PTHREAD_RECURSIVE_MUTEX_INITIALIZER]: New function.
32167         Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
32168
32169 2007-11-28  Paul Eggert  <eggert@cs.ucla.edu>
32170
32171         New function qset_acl, like set_acl but with syscall semantics.
32172         * lib/acl.h (qset_acl): New decl.
32173         * lib/acl.c (qset_acl): New function.
32174         (set_acl): Use new function.  Use more-consistent diagnostics.
32175
32176 2007-11-28  Jim Meyering  <meyering@redhat.com>
32177
32178         * modules/physmem (License): Change from GPL to LGPLv2+.
32179
32180 2007-11-26  Bruno Haible  <bruno@clisp.org>
32181
32182         * lib/vasnprintf.c (decode_long_double): Don't abort if the
32183         'long double' type has excess precision.
32184         Reported by Jim Meyering in
32185         <http://lists.gnu.org/archive/html/bug-gnulib/2007-11/msg00120.html>.
32186
32187 2007-11-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
32188
32189         * doc/fdl.texi, doc/gpl-3.0.texi, doc/lgpl-3.0.texi:
32190         Sync from <http://gnu.org/licenses>.
32191         * modules/agpl-3.0, doc/agpl-3.0.texi: New module,
32192         with license text from same location.
32193         * doc/maintain.texi, doc/standards.texi:  Sync from
32194         <http://savannah.gnu.org/projects/gnustandards>.
32195
32196 2007-11-22  OndÅ™ej Vašík  <ovasik@redhat.com>
32197         and Jim Meyering  <meyering@redhat.com>
32198
32199         Adjust getdate' grammar to accept a slightly more regular language.
32200         E.g., accept "YYYYMMDD +N days" as well as "YYYYMMDD N days".
32201         Before, the former was rejected.
32202         * lib/getdate.y (digits_to_date_time): New function, factored
32203         out of ...
32204         (number): ...here.  Just call digits_to_date_time.
32205         (hybrid): New non-terminal to handle an <unsigned number,
32206         signed relative offset> sequence consistently.
32207
32208 2007-11-18  Jim Meyering  <meyering@redhat.com>
32209
32210         Pull my changes from coreutils:
32211         bootstrap: fix typo to enable use of $gnulib_tool_option_extras.
32212         * build-aux/bootstrap (gnulib_tool_options): Add a space before the
32213         use of $gnulib_tool_option_extras, so that it's separated from the
32214         preceding argument.
32215
32216         Fix bootstrap failure to handle files like lib/uniwidth/cjk.h.
32217         * build-aux/bootstrap (cp_mark_as_generated): Create any required
32218         parent destination directories before copying a file into place.
32219
32220 2007-11-18  Sergey Poznyakoff  <gray@gnu.org.ua>
32221
32222         bootstrap: work also with 4-argument variant of AC_INIT
32223         * build-aux/bootstrap (gnulib_extra_files): Adjust sed command.
32224
32225 2007-11-16  Paul Eggert  <eggert@cs.ucla.edu>
32226
32227         Port test-getaddrinfo to Solaris.
32228         Problem reported by Bruno Haible in
32229         <http://lists.gnu.org/archive/html/bug-gnulib/2007-03/msg00171.html>.
32230         * tests/test-getaddrinfo.c (simple): Add a comment asking for an
32231         explanation of setting 'hints'.
32232         Don't reject an implementation merely because it returns EAI_SERVICE.
32233         (EAI_SERVICE): Define to 0 if not defined.
32234
32235 2007-11-15  Paul Eggert  <eggert@cs.ucla.edu>
32236
32237         The license of gnu-make and posix-shell is now "GPLed build tool".
32238         * modules/gnu-make (License): Likewise.
32239         * modules/posix-shell (License): Likewise.
32240
32241         New module posix-shell, for determining a POSIX shell
32242         or perhaps something that is close enough to a POSIX shell.
32243         * m4/posix-shell.m4: New file.
32244         * modules/posix-shell: New file.
32245
32246         * MODULES.html.sh: Mention new module.
32247
32248         New module gnu-make, for determining whether we're using GNU Make.
32249         * m4/gnu-make.m4: New file.
32250         * modules/gnu-make: New file.
32251         * MODULES.html.sh: Mention new module.
32252
32253 2007-11-14  Jim Meyering  <meyering@redhat.com>
32254
32255         Define a sometimes-link-required function using ARGMATCH_DIE_DECL.
32256         * tests/test-argmatch.c (ARGMATCH_DIE_DECL): When defined,
32257         use this macro to create a function _definition_.
32258         Remove useless "#undef ARGMATCH_DIE".
32259
32260 2007-11-14  Bruno Haible  <bruno@clisp.org>
32261
32262         * lib/config.charset: Update for OpenBSD 4.1.
32263         Reported and helped by Ben Pfaff <blp@cs.stanford.edu>.
32264
32265 2007-11-12  Paul Eggert  <eggert@cs.ucla.edu>
32266
32267         Document 64-bit #if problems in stdint.texi.
32268         * doc/headers/stdint.texi (stdint.h): Mention problems with
32269         64-bit-#if, and how to work around them.
32270
32271         Don't insist on 'long long int' support in the preprocessor.  It
32272         breaks too many things.  For example, PRIdMAX still uses a 'long
32273         long int' format with the latest Sun compiler, even though
32274         HAVE_LONG_LONG_INT isn't defined due to that compiler's
32275         preprocessor problem.  This causes the latest coreutils to dump
32276         core on Solaris 10 sparc with the Sun C compiler.
32277         Instead, fix the 2007-10-16 problem in a different way, by evaluating
32278         the troublesome expressions at configure-time, not at #if-time.
32279         * m4/longlong.m4 (_AC_TYPE_LONG_LONG_SNIPPET): Don't test the
32280         preprocessor.
32281         * m4/inttypes.m4 (gl_INTTYPES_H): Move the #if checks into
32282         compile-time C checks, done at 'configure'-time.
32283         (gl_INTTYPES_CHECK_LONG_LONG_INT_CONDITION): New macro.
32284         * modules/inttypes (Makefile): Substitute the new symbols that
32285         gl_INTTYPES_H now generates.
32286         * lib/inttypes.in.h: Don't use constants wider than 'long' in #if.
32287
32288 2007-11-12  Bruno Haible  <bruno@clisp.org>
32289
32290         Tests for Unicode character classification functions.
32291
32292         * modules/unictype/bidicategory-byname-tests: New file.
32293         * modules/unictype/bidicategory-name-tests: New file.
32294         * modules/unictype/bidicategory-of-tests: New file.
32295         * modules/unictype/bidicategory-test-tests: New file.
32296         * modules/unictype/block-list-tests: New file.
32297         * modules/unictype/block-of-tests: New file.
32298         * modules/unictype/block-test-tests: New file.
32299         * modules/unictype/category-C-tests: New file.
32300         * modules/unictype/category-Cc-tests: New file.
32301         * modules/unictype/category-Cf-tests: New file.
32302         * modules/unictype/category-Cn-tests: New file.
32303         * modules/unictype/category-Co-tests: New file.
32304         * modules/unictype/category-Cs-tests: New file.
32305         * modules/unictype/category-L-tests: New file.
32306         * modules/unictype/category-Ll-tests: New file.
32307         * modules/unictype/category-Lm-tests: New file.
32308         * modules/unictype/category-Lo-tests: New file.
32309         * modules/unictype/category-Lt-tests: New file.
32310         * modules/unictype/category-Lu-tests: New file.
32311         * modules/unictype/category-M-tests: New file.
32312         * modules/unictype/category-Mc-tests: New file.
32313         * modules/unictype/category-Me-tests: New file.
32314         * modules/unictype/category-Mn-tests: New file.
32315         * modules/unictype/category-N-tests: New file.
32316         * modules/unictype/category-Nd-tests: New file.
32317         * modules/unictype/category-Nl-tests: New file.
32318         * modules/unictype/category-No-tests: New file.
32319         * modules/unictype/category-P-tests: New file.
32320         * modules/unictype/category-Pc-tests: New file.
32321         * modules/unictype/category-Pd-tests: New file.
32322         * modules/unictype/category-Pe-tests: New file.
32323         * modules/unictype/category-Pf-tests: New file.
32324         * modules/unictype/category-Pi-tests: New file.
32325         * modules/unictype/category-Po-tests: New file.
32326         * modules/unictype/category-Ps-tests: New file.
32327         * modules/unictype/category-S-tests: New file.
32328         * modules/unictype/category-Sc-tests: New file.
32329         * modules/unictype/category-Sk-tests: New file.
32330         * modules/unictype/category-Sm-tests: New file.
32331         * modules/unictype/category-So-tests: New file.
32332         * modules/unictype/category-Z-tests: New file.
32333         * modules/unictype/category-Zl-tests: New file.
32334         * modules/unictype/category-Zp-tests: New file.
32335         * modules/unictype/category-Zs-tests: New file.
32336         * modules/unictype/category-and-not-tests: New file.
32337         * modules/unictype/category-and-tests: New file.
32338         * modules/unictype/category-byname-tests: New file.
32339         * modules/unictype/category-name-tests: New file.
32340         * modules/unictype/category-none-tests: New file.
32341         * modules/unictype/category-of-tests: New file.
32342         * modules/unictype/category-or-tests: New file.
32343         * modules/unictype/category-test-withtable-tests: New file.
32344         * modules/unictype/combining-class-tests: New file.
32345         * modules/unictype/ctype-alnum-tests: New file.
32346         * modules/unictype/ctype-alpha-tests: New file.
32347         * modules/unictype/ctype-blank-tests: New file.
32348         * modules/unictype/ctype-cntrl-tests: New file.
32349         * modules/unictype/ctype-digit-tests: New file.
32350         * modules/unictype/ctype-graph-tests: New file.
32351         * modules/unictype/ctype-lower-tests: New file.
32352         * modules/unictype/ctype-print-tests: New file.
32353         * modules/unictype/ctype-punct-tests: New file.
32354         * modules/unictype/ctype-space-tests: New file.
32355         * modules/unictype/ctype-upper-tests: New file.
32356         * modules/unictype/ctype-xdigit-tests: New file.
32357         * modules/unictype/decimal-digit-tests: New file.
32358         * modules/unictype/digit-tests: New file.
32359         * modules/unictype/mirror-tests: New file.
32360         * modules/unictype/numeric-tests: New file.
32361         * modules/unictype/property-alphabetic-tests: New file.
32362         * modules/unictype/property-ascii-hex-digit-tests: New file.
32363         * modules/unictype/property-bidi-arabic-digit-tests: New file.
32364         * modules/unictype/property-bidi-arabic-right-to-left-tests: New file.
32365         * modules/unictype/property-bidi-block-separator-tests: New file.
32366         * modules/unictype/property-bidi-boundary-neutral-tests: New file.
32367         * modules/unictype/property-bidi-common-separator-tests: New file.
32368         * modules/unictype/property-bidi-control-tests: New file.
32369         * modules/unictype/property-bidi-embedding-or-override-tests: New file.
32370         * modules/unictype/property-bidi-eur-num-separator-tests: New file.
32371         * modules/unictype/property-bidi-eur-num-terminator-tests: New file.
32372         * modules/unictype/property-bidi-european-digit-tests: New file.
32373         * modules/unictype/property-bidi-hebrew-right-to-left-tests: New file.
32374         * modules/unictype/property-bidi-left-to-right-tests: New file.
32375         * modules/unictype/property-bidi-non-spacing-mark-tests: New file.
32376         * modules/unictype/property-bidi-other-neutral-tests: New file.
32377         * modules/unictype/property-bidi-pdf-tests: New file.
32378         * modules/unictype/property-bidi-segment-separator-tests: New file.
32379         * modules/unictype/property-bidi-whitespace-tests: New file.
32380         * modules/unictype/property-byname-tests: New file.
32381         * modules/unictype/property-combining-tests: New file.
32382         * modules/unictype/property-composite-tests: New file.
32383         * modules/unictype/property-currency-symbol-tests: New file.
32384         * modules/unictype/property-dash-tests: New file.
32385         * modules/unictype/property-decimal-digit-tests: New file.
32386         * modules/unictype/property-default-ignorable-code-point-tests: New file.
32387         * modules/unictype/property-deprecated-tests: New file.
32388         * modules/unictype/property-diacritic-tests: New file.
32389         * modules/unictype/property-extender-tests: New file.
32390         * modules/unictype/property-format-control-tests: New file.
32391         * modules/unictype/property-grapheme-base-tests: New file.
32392         * modules/unictype/property-grapheme-extend-tests: New file.
32393         * modules/unictype/property-grapheme-link-tests: New file.
32394         * modules/unictype/property-hex-digit-tests: New file.
32395         * modules/unictype/property-hyphen-tests: New file.
32396         * modules/unictype/property-id-continue-tests: New file.
32397         * modules/unictype/property-id-start-tests: New file.
32398         * modules/unictype/property-ideographic-tests: New file.
32399         * modules/unictype/property-ids-binary-operator-tests: New file.
32400         * modules/unictype/property-ids-trinary-operator-tests: New file.
32401         * modules/unictype/property-ignorable-control-tests: New file.
32402         * modules/unictype/property-iso-control-tests: New file.
32403         * modules/unictype/property-join-control-tests: New file.
32404         * modules/unictype/property-left-of-pair-tests: New file.
32405         * modules/unictype/property-line-separator-tests: New file.
32406         * modules/unictype/property-logical-order-exception-tests: New file.
32407         * modules/unictype/property-lowercase-tests: New file.
32408         * modules/unictype/property-math-tests: New file.
32409         * modules/unictype/property-non-break-tests: New file.
32410         * modules/unictype/property-not-a-character-tests: New file.
32411         * modules/unictype/property-numeric-tests: New file.
32412         * modules/unictype/property-other-alphabetic-tests: New file.
32413         * modules/unictype/property-other-default-ignorable-code-point-tests: New file.
32414         * modules/unictype/property-other-grapheme-extend-tests: New file.
32415         * modules/unictype/property-other-id-continue-tests: New file.
32416         * modules/unictype/property-other-id-start-tests: New file.
32417         * modules/unictype/property-other-lowercase-tests: New file.
32418         * modules/unictype/property-other-math-tests: New file.
32419         * modules/unictype/property-other-uppercase-tests: New file.
32420         * modules/unictype/property-paired-punctuation-tests: New file.
32421         * modules/unictype/property-paragraph-separator-tests: New file.
32422         * modules/unictype/property-pattern-syntax-tests: New file.
32423         * modules/unictype/property-pattern-white-space-tests: New file.
32424         * modules/unictype/property-private-use-tests: New file.
32425         * modules/unictype/property-punctuation-tests: New file.
32426         * modules/unictype/property-quotation-mark-tests: New file.
32427         * modules/unictype/property-radical-tests: New file.
32428         * modules/unictype/property-sentence-terminal-tests: New file.
32429         * modules/unictype/property-soft-dotted-tests: New file.
32430         * modules/unictype/property-space-tests: New file.
32431         * modules/unictype/property-terminal-punctuation-tests: New file.
32432         * modules/unictype/property-test-tests: New file.
32433         * modules/unictype/property-titlecase-tests: New file.
32434         * modules/unictype/property-unassigned-code-value-tests: New file.
32435         * modules/unictype/property-unified-ideograph-tests: New file.
32436         * modules/unictype/property-uppercase-tests: New file.
32437         * modules/unictype/property-variation-selector-tests: New file.
32438         * modules/unictype/property-white-space-tests: New file.
32439         * modules/unictype/property-xid-continue-tests: New file.
32440         * modules/unictype/property-xid-start-tests: New file.
32441         * modules/unictype/property-zero-width-tests: New file.
32442         * modules/unictype/scripts-tests: New file.
32443         * modules/unictype/syntax-c-ident-tests: New file.
32444         * modules/unictype/syntax-c-whitespace-tests: New file.
32445         * modules/unictype/syntax-java-ident-tests: New file.
32446         * modules/unictype/syntax-java-whitespace-tests: New file.
32447         * tests/unictype/test-bidi_byname.c: New file.
32448         * tests/unictype/test-bidi_name.c: New file.
32449         * tests/unictype/test-bidi_of.c: New file.
32450         * tests/unictype/test-bidi_test.c: New file.
32451         * tests/unictype/test-block_list.c: New file.
32452         * tests/unictype/test-block_of.c: New file.
32453         * tests/unictype/test-block_test.c: New file.
32454         * tests/unictype/test-categ_and.c: New file.
32455         * tests/unictype/test-categ_and_not.c: New file.
32456         * tests/unictype/test-categ_byname.c: New file.
32457         * tests/unictype/test-categ_name.c: New file.
32458         * tests/unictype/test-categ_none.c: New file.
32459         * tests/unictype/test-categ_of.c: New file.
32460         * tests/unictype/test-categ_or.c: New file.
32461         * tests/unictype/test-categ_test_withtable.c: New file.
32462         * tests/unictype/test-combining.c: New file.
32463         * tests/unictype/test-decdigit.c: New file.
32464         * tests/unictype/test-digit.c: New file.
32465         * tests/unictype/test-mirror.c: New file.
32466         * tests/unictype/test-numeric.c: New file.
32467         * tests/unictype/test-pr_byname.c: New file.
32468         * tests/unictype/test-pr_test.c: New file.
32469         * tests/unictype/test-predicate-part1.h: New file.
32470         * tests/unictype/test-predicate-part2.h: New file.
32471         * tests/unictype/test-scripts.c: New file.
32472         * tests/unictype/test-sy_c_ident.c: New file.
32473         * tests/unictype/test-sy_java_ident.c: New file.
32474
32475         * tests/unictype/test-categ_C.c: New file, generated by gen-ctype.c
32476         for Unicode 5.0.0.
32477         * tests/unictype/test-categ_Cc.c: Likewise.
32478         * tests/unictype/test-categ_Cf.c: Likewise.
32479         * tests/unictype/test-categ_Cn.c: Likewise.
32480         * tests/unictype/test-categ_Co.c: Likewise.
32481         * tests/unictype/test-categ_Cs.c: Likewise.
32482         * tests/unictype/test-categ_L.c: Likewise.
32483         * tests/unictype/test-categ_Ll.c: Likewise.
32484         * tests/unictype/test-categ_Lm.c: Likewise.
32485         * tests/unictype/test-categ_Lo.c: Likewise.
32486         * tests/unictype/test-categ_Lt.c: Likewise.
32487         * tests/unictype/test-categ_Lu.c: Likewise.
32488         * tests/unictype/test-categ_M.c: Likewise.
32489         * tests/unictype/test-categ_Mc.c: Likewise.
32490         * tests/unictype/test-categ_Me.c: Likewise.
32491         * tests/unictype/test-categ_Mn.c: Likewise.
32492         * tests/unictype/test-categ_N.c: Likewise.
32493         * tests/unictype/test-categ_Nd.c: Likewise.
32494         * tests/unictype/test-categ_Nl.c: Likewise.
32495         * tests/unictype/test-categ_No.c: Likewise.
32496         * tests/unictype/test-categ_P.c: Likewise.
32497         * tests/unictype/test-categ_Pc.c: Likewise.
32498         * tests/unictype/test-categ_Pd.c: Likewise.
32499         * tests/unictype/test-categ_Pe.c: Likewise.
32500         * tests/unictype/test-categ_Pf.c: Likewise.
32501         * tests/unictype/test-categ_Pi.c: Likewise.
32502         * tests/unictype/test-categ_Po.c: Likewise.
32503         * tests/unictype/test-categ_Ps.c: Likewise.
32504         * tests/unictype/test-categ_S.c: Likewise.
32505         * tests/unictype/test-categ_Sc.c: Likewise.
32506         * tests/unictype/test-categ_Sk.c: Likewise.
32507         * tests/unictype/test-categ_Sm.c: Likewise.
32508         * tests/unictype/test-categ_So.c: Likewise.
32509         * tests/unictype/test-categ_Z.c: Likewise.
32510         * tests/unictype/test-categ_Zl.c: Likewise.
32511         * tests/unictype/test-categ_Zp.c: Likewise.
32512         * tests/unictype/test-categ_Zs.c: Likewise.
32513         * tests/unictype/test-ctype_alnum.c: Likewise.
32514         * tests/unictype/test-ctype_alpha.c: Likewise.
32515         * tests/unictype/test-ctype_blank.c: Likewise.
32516         * tests/unictype/test-ctype_cntrl.c: Likewise.
32517         * tests/unictype/test-ctype_digit.c: Likewise.
32518         * tests/unictype/test-ctype_graph.c: Likewise.
32519         * tests/unictype/test-ctype_lower.c: Likewise.
32520         * tests/unictype/test-ctype_print.c: Likewise.
32521         * tests/unictype/test-ctype_punct.c: Likewise.
32522         * tests/unictype/test-ctype_space.c: Likewise.
32523         * tests/unictype/test-ctype_upper.c: Likewise.
32524         * tests/unictype/test-ctype_xdigit.c: Likewise.
32525         * tests/unictype/test-decdigit.h: Likewise.
32526         * tests/unictype/test-digit.h: Likewise.
32527         * tests/unictype/test-numeric.h: Likewise.
32528         * tests/unictype/test-pr_alphabetic.c: Likewise.
32529         * tests/unictype/test-pr_ascii_hex_digit.c: Likewise.
32530         * tests/unictype/test-pr_bidi_arabic_digit.c: Likewise.
32531         * tests/unictype/test-pr_bidi_arabic_right_to_left.c: Likewise.
32532         * tests/unictype/test-pr_bidi_block_separator.c: Likewise.
32533         * tests/unictype/test-pr_bidi_boundary_neutral.c: Likewise.
32534         * tests/unictype/test-pr_bidi_common_separator.c: Likewise.
32535         * tests/unictype/test-pr_bidi_control.c: Likewise.
32536         * tests/unictype/test-pr_bidi_embedding_or_override.c: Likewise.
32537         * tests/unictype/test-pr_bidi_eur_num_separator.c: Likewise.
32538         * tests/unictype/test-pr_bidi_eur_num_terminator.c: Likewise.
32539         * tests/unictype/test-pr_bidi_european_digit.c: Likewise.
32540         * tests/unictype/test-pr_bidi_hebrew_right_to_left.c: Likewise.
32541         * tests/unictype/test-pr_bidi_left_to_right.c: Likewise.
32542         * tests/unictype/test-pr_bidi_non_spacing_mark.c: Likewise.
32543         * tests/unictype/test-pr_bidi_other_neutral.c: Likewise.
32544         * tests/unictype/test-pr_bidi_pdf.c: Likewise.
32545         * tests/unictype/test-pr_bidi_segment_separator.c: Likewise.
32546         * tests/unictype/test-pr_bidi_whitespace.c: Likewise.
32547         * tests/unictype/test-pr_combining.c: Likewise.
32548         * tests/unictype/test-pr_composite.c: Likewise.
32549         * tests/unictype/test-pr_currency_symbol.c: Likewise.
32550         * tests/unictype/test-pr_dash.c: Likewise.
32551         * tests/unictype/test-pr_decimal_digit.c: Likewise.
32552         * tests/unictype/test-pr_default_ignorable_code_point.c: Likewise.
32553         * tests/unictype/test-pr_deprecated.c: Likewise.
32554         * tests/unictype/test-pr_diacritic.c: Likewise.
32555         * tests/unictype/test-pr_extender.c: Likewise.
32556         * tests/unictype/test-pr_format_control.c: Likewise.
32557         * tests/unictype/test-pr_grapheme_base.c: Likewise.
32558         * tests/unictype/test-pr_grapheme_extend.c: Likewise.
32559         * tests/unictype/test-pr_grapheme_link.c: Likewise.
32560         * tests/unictype/test-pr_hex_digit.c: Likewise.
32561         * tests/unictype/test-pr_hyphen.c: Likewise.
32562         * tests/unictype/test-pr_id_continue.c: Likewise.
32563         * tests/unictype/test-pr_id_start.c: Likewise.
32564         * tests/unictype/test-pr_ideographic.c: Likewise.
32565         * tests/unictype/test-pr_ids_binary_operator.c: Likewise.
32566         * tests/unictype/test-pr_ids_trinary_operator.c: Likewise.
32567         * tests/unictype/test-pr_ignorable_control.c: Likewise.
32568         * tests/unictype/test-pr_iso_control.c: Likewise.
32569         * tests/unictype/test-pr_join_control.c: Likewise.
32570         * tests/unictype/test-pr_left_of_pair.c: Likewise.
32571         * tests/unictype/test-pr_line_separator.c: Likewise.
32572         * tests/unictype/test-pr_logical_order_exception.c: Likewise.
32573         * tests/unictype/test-pr_lowercase.c: Likewise.
32574         * tests/unictype/test-pr_math.c: Likewise.
32575         * tests/unictype/test-pr_non_break.c: Likewise.
32576         * tests/unictype/test-pr_not_a_character.c: Likewise.
32577         * tests/unictype/test-pr_numeric.c: Likewise.
32578         * tests/unictype/test-pr_other_alphabetic.c: Likewise.
32579         * tests/unictype/test-pr_other_default_ignorable_code_point.c: Likewise.
32580         * tests/unictype/test-pr_other_grapheme_extend.c: Likewise.
32581         * tests/unictype/test-pr_other_id_continue.c: Likewise.
32582         * tests/unictype/test-pr_other_id_start.c: Likewise.
32583         * tests/unictype/test-pr_other_lowercase.c: Likewise.
32584         * tests/unictype/test-pr_other_math.c: Likewise.
32585         * tests/unictype/test-pr_other_uppercase.c: Likewise.
32586         * tests/unictype/test-pr_paired_punctuation.c: Likewise.
32587         * tests/unictype/test-pr_paragraph_separator.c: Likewise.
32588         * tests/unictype/test-pr_pattern_syntax.c: Likewise.
32589         * tests/unictype/test-pr_pattern_white_space.c: Likewise.
32590         * tests/unictype/test-pr_private_use.c: Likewise.
32591         * tests/unictype/test-pr_punctuation.c: Likewise.
32592         * tests/unictype/test-pr_quotation_mark.c: Likewise.
32593         * tests/unictype/test-pr_radical.c: Likewise.
32594         * tests/unictype/test-pr_sentence_terminal.c: Likewise.
32595         * tests/unictype/test-pr_soft_dotted.c: Likewise.
32596         * tests/unictype/test-pr_space.c: Likewise.
32597         * tests/unictype/test-pr_terminal_punctuation.c: Likewise.
32598         * tests/unictype/test-pr_titlecase.c: Likewise.
32599         * tests/unictype/test-pr_unassigned_code_value.c: Likewise.
32600         * tests/unictype/test-pr_unified_ideograph.c: Likewise.
32601         * tests/unictype/test-pr_uppercase.c: Likewise.
32602         * tests/unictype/test-pr_variation_selector.c: Likewise.
32603         * tests/unictype/test-pr_white_space.c: Likewise.
32604         * tests/unictype/test-pr_xid_continue.c: Likewise.
32605         * tests/unictype/test-pr_xid_start.c: Likewise.
32606         * tests/unictype/test-pr_zero_width.c: Likewise.
32607         * tests/unictype/test-sy_c_whitespace.c: Likewise.
32608         * tests/unictype/test-sy_java_whitespace.c: Likewise.
32609
32610 2007-11-12  Bruno Haible  <bruno@clisp.org>
32611
32612         Unicode character classification functions.
32613         * lib/unictype.h: New file.
32614         * modules/unictype/base: New file.
32615         * modules/unictype/category-L: New file.
32616         * modules/unictype/category-Lu: New file.
32617         * modules/unictype/category-Ll: New file.
32618         * modules/unictype/category-Lt: New file.
32619         * modules/unictype/category-Lm: New file.
32620         * modules/unictype/category-Lo: New file.
32621         * modules/unictype/category-M: New file.
32622         * modules/unictype/category-Mn: New file.
32623         * modules/unictype/category-Mc: New file.
32624         * modules/unictype/category-Me: New file.
32625         * modules/unictype/category-N: New file.
32626         * modules/unictype/category-Nd: New file.
32627         * modules/unictype/category-Nl: New file.
32628         * modules/unictype/category-No: New file.
32629         * modules/unictype/category-P: New file.
32630         * modules/unictype/category-Pc: New file.
32631         * modules/unictype/category-Pd: New file.
32632         * modules/unictype/category-Ps: New file.
32633         * modules/unictype/category-Pe: New file.
32634         * modules/unictype/category-Pi: New file.
32635         * modules/unictype/category-Pf: New file.
32636         * modules/unictype/category-Po: New file.
32637         * modules/unictype/category-S: New file.
32638         * modules/unictype/category-Sm: New file.
32639         * modules/unictype/category-Sc: New file.
32640         * modules/unictype/category-Sk: New file.
32641         * modules/unictype/category-So: New file.
32642         * modules/unictype/category-Z: New file.
32643         * modules/unictype/category-Zs: New file.
32644         * modules/unictype/category-Zl: New file.
32645         * modules/unictype/category-Zp: New file.
32646         * modules/unictype/category-C: New file.
32647         * modules/unictype/category-Cc: New file.
32648         * modules/unictype/category-Cf: New file.
32649         * modules/unictype/category-Cs: New file.
32650         * modules/unictype/category-Co: New file.
32651         * modules/unictype/category-Cn: New file.
32652         * modules/unictype/category-or: New file.
32653         * modules/unictype/category-of: New file.
32654         * modules/unictype/category-test: New file.
32655         * modules/unictype/category-test-withtable: New file.
32656         * modules/unictype/category-byname: New file.
32657         * modules/unictype/category-none: New file.
32658         * modules/unictype/category-and: New file.
32659         * modules/unictype/category-and-not: New file.
32660         * modules/unictype/category-name: New file.
32661         * modules/unictype/combining-class: New file.
32662         * modules/unictype/category-all: New file.
32663         * modules/unictype/bidicategory-all: New file.
32664         * modules/unictype/bidicategory-byname: New file.
32665         * modules/unictype/bidicategory-name: New file.
32666         * modules/unictype/bidicategory-of: New file.
32667         * modules/unictype/bidicategory-test: New file.
32668         * modules/unictype/decimal-digit: New file.
32669         * modules/unictype/digit: New file.
32670         * modules/unictype/numeric: New file.
32671         * modules/unictype/mirror: New file.
32672         * modules/unictype/property-white-space: New file.
32673         * modules/unictype/property-alphabetic: New file.
32674         * modules/unictype/property-other-alphabetic: New file.
32675         * modules/unictype/property-not-a-character: New file.
32676         * modules/unictype/property-default-ignorable-code-point: New file.
32677         * modules/unictype/property-other-default-ignorable-code-point: New
32678         file.
32679         * modules/unictype/property-deprecated: New file.
32680         * modules/unictype/property-logical-order-exception: New file.
32681         * modules/unictype/property-variation-selector: New file.
32682         * modules/unictype/property-private-use: New file.
32683         * modules/unictype/property-unassigned-code-value: New file.
32684         * modules/unictype/property-uppercase: New file.
32685         * modules/unictype/property-other-uppercase: New file.
32686         * modules/unictype/property-lowercase: New file.
32687         * modules/unictype/property-other-lowercase: New file.
32688         * modules/unictype/property-titlecase: New file.
32689         * modules/unictype/property-soft-dotted: New file.
32690         * modules/unictype/property-id-start: New file.
32691         * modules/unictype/property-other-id-start: New file.
32692         * modules/unictype/property-id-continue: New file.
32693         * modules/unictype/property-other-id-continue: New file.
32694         * modules/unictype/property-xid-start: New file.
32695         * modules/unictype/property-xid-continue: New file.
32696         * modules/unictype/property-pattern-white-space: New file.
32697         * modules/unictype/property-pattern-syntax: New file.
32698         * modules/unictype/property-join-control: New file.
32699         * modules/unictype/property-grapheme-base: New file.
32700         * modules/unictype/property-grapheme-extend: New file.
32701         * modules/unictype/property-other-grapheme-extend: New file.
32702         * modules/unictype/property-grapheme-link: New file.
32703         * modules/unictype/property-bidi-control: New file.
32704         * modules/unictype/property-bidi-left-to-right: New file.
32705         * modules/unictype/property-bidi-hebrew-right-to-left: New file.
32706         * modules/unictype/property-bidi-arabic-right-to-left: New file.
32707         * modules/unictype/property-bidi-european-digit: New file.
32708         * modules/unictype/property-bidi-eur-num-separator: New file.
32709         * modules/unictype/property-bidi-eur-num-terminator: New file.
32710         * modules/unictype/property-bidi-arabic-digit: New file.
32711         * modules/unictype/property-bidi-common-separator: New file.
32712         * modules/unictype/property-bidi-block-separator: New file.
32713         * modules/unictype/property-bidi-segment-separator: New file.
32714         * modules/unictype/property-bidi-whitespace: New file.
32715         * modules/unictype/property-bidi-non-spacing-mark: New file.
32716         * modules/unictype/property-bidi-boundary-neutral: New file.
32717         * modules/unictype/property-bidi-pdf: New file.
32718         * modules/unictype/property-bidi-embedding-or-override: New file.
32719         * modules/unictype/property-bidi-other-neutral: New file.
32720         * modules/unictype/property-hex-digit: New file.
32721         * modules/unictype/property-ascii-hex-digit: New file.
32722         * modules/unictype/property-ideographic: New file.
32723         * modules/unictype/property-unified-ideograph: New file.
32724         * modules/unictype/property-radical: New file.
32725         * modules/unictype/property-ids-binary-operator: New file.
32726         * modules/unictype/property-ids-trinary-operator: New file.
32727         * modules/unictype/property-zero-width: New file.
32728         * modules/unictype/property-space: New file.
32729         * modules/unictype/property-non-break: New file.
32730         * modules/unictype/property-iso-control: New file.
32731         * modules/unictype/property-format-control: New file.
32732         * modules/unictype/property-dash: New file.
32733         * modules/unictype/property-hyphen: New file.
32734         * modules/unictype/property-punctuation: New file.
32735         * modules/unictype/property-line-separator: New file.
32736         * modules/unictype/property-paragraph-separator: New file.
32737         * modules/unictype/property-quotation-mark: New file.
32738         * modules/unictype/property-sentence-terminal: New file.
32739         * modules/unictype/property-terminal-punctuation: New file.
32740         * modules/unictype/property-currency-symbol: New file.
32741         * modules/unictype/property-math: New file.
32742         * modules/unictype/property-other-math: New file.
32743         * modules/unictype/property-paired-punctuation: New file.
32744         * modules/unictype/property-left-of-pair: New file.
32745         * modules/unictype/property-combining: New file.
32746         * modules/unictype/property-composite: New file.
32747         * modules/unictype/property-decimal-digit: New file.
32748         * modules/unictype/property-numeric: New file.
32749         * modules/unictype/property-diacritic: New file.
32750         * modules/unictype/property-extender: New file.
32751         * modules/unictype/property-ignorable-control: New file.
32752         * modules/unictype/property-test: New file.
32753         * modules/unictype/property-byname: New file.
32754         * modules/unictype/property-all: New file.
32755         * modules/unictype/scripts: New file.
32756         * modules/unictype/scripts-all: New file.
32757         * modules/unictype/block-of: New file.
32758         * modules/unictype/block-test: New file.
32759         * modules/unictype/block-list: New file.
32760         * modules/unictype/block-all: New file.
32761         * modules/unictype/syntax-c-whitespace: New file.
32762         * modules/unictype/syntax-java-whitespace: New file.
32763         * modules/unictype/syntax-c-ident: New file.
32764         * modules/unictype/syntax-java-ident: New file.
32765         * modules/unictype/ctype-alnum: New file.
32766         * modules/unictype/ctype-alpha: New file.
32767         * modules/unictype/ctype-cntrl: New file.
32768         * modules/unictype/ctype-digit: New file.
32769         * modules/unictype/ctype-graph: New file.
32770         * modules/unictype/ctype-lower: New file.
32771         * modules/unictype/ctype-print: New file.
32772         * modules/unictype/ctype-punct: New file.
32773         * modules/unictype/ctype-space: New file.
32774         * modules/unictype/ctype-upper: New file.
32775         * modules/unictype/ctype-xdigit: New file.
32776         * modules/unictype/ctype-blank: New file.
32777         * lib/unictype/bidi_byname.c: New file.
32778         * lib/unictype/bidi_name.c: New file.
32779         * lib/unictype/bidi_of.c: New file.
32780         * lib/unictype/bidi_test.c: New file.
32781         * lib/unictype/bitmap.h: New file.
32782         * lib/unictype/block_test.c: New file.
32783         * lib/unictype/blocks.c: New file.
32784         * lib/unictype/categ_C.c: New file.
32785         * lib/unictype/categ_Cc.c: New file.
32786         * lib/unictype/categ_Cf.c: New file.
32787         * lib/unictype/categ_Cn.c: New file.
32788         * lib/unictype/categ_Co.c: New file.
32789         * lib/unictype/categ_Cs.c: New file.
32790         * lib/unictype/categ_L.c: New file.
32791         * lib/unictype/categ_Ll.c: New file.
32792         * lib/unictype/categ_Lm.c: New file.
32793         * lib/unictype/categ_Lo.c: New file.
32794         * lib/unictype/categ_Lt.c: New file.
32795         * lib/unictype/categ_Lu.c: New file.
32796         * lib/unictype/categ_M.c: New file.
32797         * lib/unictype/categ_Mc.c: New file.
32798         * lib/unictype/categ_Me.c: New file.
32799         * lib/unictype/categ_Mn.c: New file.
32800         * lib/unictype/categ_N.c: New file.
32801         * lib/unictype/categ_Nd.c: New file.
32802         * lib/unictype/categ_Nl.c: New file.
32803         * lib/unictype/categ_No.c: New file.
32804         * lib/unictype/categ_P.c: New file.
32805         * lib/unictype/categ_Pc.c: New file.
32806         * lib/unictype/categ_Pd.c: New file.
32807         * lib/unictype/categ_Pe.c: New file.
32808         * lib/unictype/categ_Pf.c: New file.
32809         * lib/unictype/categ_Pi.c: New file.
32810         * lib/unictype/categ_Po.c: New file.
32811         * lib/unictype/categ_Ps.c: New file.
32812         * lib/unictype/categ_S.c: New file.
32813         * lib/unictype/categ_Sc.c: New file.
32814         * lib/unictype/categ_Sk.c: New file.
32815         * lib/unictype/categ_Sm.c: New file.
32816         * lib/unictype/categ_So.c: New file.
32817         * lib/unictype/categ_Z.c: New file.
32818         * lib/unictype/categ_Zl.c: New file.
32819         * lib/unictype/categ_Zp.c: New file.
32820         * lib/unictype/categ_Zs.c: New file.
32821         * lib/unictype/categ_and.c: New file.
32822         * lib/unictype/categ_and_not.c: New file.
32823         * lib/unictype/categ_byname.c: New file.
32824         * lib/unictype/categ_name.c: New file.
32825         * lib/unictype/categ_none.c: New file.
32826         * lib/unictype/categ_of.c: New file.
32827         * lib/unictype/categ_or.c: New file.
32828         * lib/unictype/categ_test.c: New file.
32829         * lib/unictype/combining.c: New file.
32830         * lib/unictype/ctype_alnum.c: New file.
32831         * lib/unictype/ctype_alpha.c: New file.
32832         * lib/unictype/ctype_blank.c: New file.
32833         * lib/unictype/ctype_cntrl.c: New file.
32834         * lib/unictype/ctype_digit.c: New file.
32835         * lib/unictype/ctype_graph.c: New file.
32836         * lib/unictype/ctype_lower.c: New file.
32837         * lib/unictype/ctype_print.c: New file.
32838         * lib/unictype/ctype_punct.c: New file.
32839         * lib/unictype/ctype_space.c: New file.
32840         * lib/unictype/ctype_upper.c: New file.
32841         * lib/unictype/ctype_xdigit.c: New file.
32842         * lib/unictype/decdigit.c: New file.
32843         * lib/unictype/digit.c: New file.
32844         * lib/unictype/identsyntaxmap.h: New file.
32845         * lib/unictype/mirror.c: New file.
32846         * lib/unictype/numeric.c: New file.
32847         * lib/unictype/pr_alphabetic.c: New file.
32848         * lib/unictype/pr_ascii_hex_digit.c: New file.
32849         * lib/unictype/pr_bidi_arabic_digit.c: New file.
32850         * lib/unictype/pr_bidi_arabic_right_to_left.c: New file.
32851         * lib/unictype/pr_bidi_block_separator.c: New file.
32852         * lib/unictype/pr_bidi_boundary_neutral.c: New file.
32853         * lib/unictype/pr_bidi_common_separator.c: New file.
32854         * lib/unictype/pr_bidi_control.c: New file.
32855         * lib/unictype/pr_bidi_embedding_or_override.c: New file.
32856         * lib/unictype/pr_bidi_eur_num_separator.c: New file.
32857         * lib/unictype/pr_bidi_eur_num_terminator.c: New file.
32858         * lib/unictype/pr_bidi_european_digit.c: New file.
32859         * lib/unictype/pr_bidi_hebrew_right_to_left.c: New file.
32860         * lib/unictype/pr_bidi_left_to_right.c: New file.
32861         * lib/unictype/pr_bidi_non_spacing_mark.c: New file.
32862         * lib/unictype/pr_bidi_other_neutral.c: New file.
32863         * lib/unictype/pr_bidi_pdf.c: New file.
32864         * lib/unictype/pr_bidi_segment_separator.c: New file.
32865         * lib/unictype/pr_bidi_whitespace.c: New file.
32866         * lib/unictype/pr_byname.c: New file.
32867         * lib/unictype/pr_byname.gperf: New file.
32868         * lib/unictype/pr_combining.c: New file.
32869         * lib/unictype/pr_composite.c: New file.
32870         * lib/unictype/pr_currency_symbol.c: New file.
32871         * lib/unictype/pr_dash.c: New file.
32872         * lib/unictype/pr_decimal_digit.c: New file.
32873         * lib/unictype/pr_default_ignorable_code_point.c: New file.
32874         * lib/unictype/pr_deprecated.c: New file.
32875         * lib/unictype/pr_diacritic.c: New file.
32876         * lib/unictype/pr_extender.c: New file.
32877         * lib/unictype/pr_format_control.c: New file.
32878         * lib/unictype/pr_grapheme_base.c: New file.
32879         * lib/unictype/pr_grapheme_extend.c: New file.
32880         * lib/unictype/pr_grapheme_link.c: New file.
32881         * lib/unictype/pr_hex_digit.c: New file.
32882         * lib/unictype/pr_hyphen.c: New file.
32883         * lib/unictype/pr_id_continue.c: New file.
32884         * lib/unictype/pr_id_start.c: New file.
32885         * lib/unictype/pr_ideographic.c: New file.
32886         * lib/unictype/pr_ids_binary_operator.c: New file.
32887         * lib/unictype/pr_ids_trinary_operator.c: New file.
32888         * lib/unictype/pr_ignorable_control.c: New file.
32889         * lib/unictype/pr_iso_control.c: New file.
32890         * lib/unictype/pr_join_control.c: New file.
32891         * lib/unictype/pr_left_of_pair.c: New file.
32892         * lib/unictype/pr_line_separator.c: New file.
32893         * lib/unictype/pr_logical_order_exception.c: New file.
32894         * lib/unictype/pr_lowercase.c: New file.
32895         * lib/unictype/pr_math.c: New file.
32896         * lib/unictype/pr_non_break.c: New file.
32897         * lib/unictype/pr_not_a_character.c: New file.
32898         * lib/unictype/pr_numeric.c: New file.
32899         * lib/unictype/pr_other_alphabetic.c: New file.
32900         * lib/unictype/pr_other_default_ignorable_code_point.c: New file.
32901         * lib/unictype/pr_other_grapheme_extend.c: New file.
32902         * lib/unictype/pr_other_id_continue.c: New file.
32903         * lib/unictype/pr_other_id_start.c: New file.
32904         * lib/unictype/pr_other_lowercase.c: New file.
32905         * lib/unictype/pr_other_math.c: New file.
32906         * lib/unictype/pr_other_uppercase.c: New file.
32907         * lib/unictype/pr_paired_punctuation.c: New file.
32908         * lib/unictype/pr_paragraph_separator.c: New file.
32909         * lib/unictype/pr_pattern_syntax.c: New file.
32910         * lib/unictype/pr_pattern_white_space.c: New file.
32911         * lib/unictype/pr_private_use.c: New file.
32912         * lib/unictype/pr_punctuation.c: New file.
32913         * lib/unictype/pr_quotation_mark.c: New file.
32914         * lib/unictype/pr_radical.c: New file.
32915         * lib/unictype/pr_sentence_terminal.c: New file.
32916         * lib/unictype/pr_soft_dotted.c: New file.
32917         * lib/unictype/pr_space.c: New file.
32918         * lib/unictype/pr_terminal_punctuation.c: New file.
32919         * lib/unictype/pr_test.c: New file.
32920         * lib/unictype/pr_titlecase.c: New file.
32921         * lib/unictype/pr_unassigned_code_value.c: New file.
32922         * lib/unictype/pr_unified_ideograph.c: New file.
32923         * lib/unictype/pr_uppercase.c: New file.
32924         * lib/unictype/pr_variation_selector.c: New file.
32925         * lib/unictype/pr_white_space.c: New file.
32926         * lib/unictype/pr_xid_continue.c: New file.
32927         * lib/unictype/pr_xid_start.c: New file.
32928         * lib/unictype/pr_zero_width.c: New file.
32929         * lib/unictype/scripts.c: New file.
32930         * lib/unictype/sy_c_ident.c: New file.
32931         * lib/unictype/sy_c_whitespace.c: New file.
32932         * lib/unictype/sy_java_ident.c: New file.
32933         * lib/unictype/sy_java_whitespace.c: New file.
32934
32935         * lib/unictype/bidi_of.h: New file, generated by gen-ctype.c for
32936         Unicode 5.0.0.
32937         * lib/unictype/blocks.h: Likewise.
32938         * lib/unictype/categ_C.h: Likewise.
32939         * lib/unictype/categ_Cc.h: Likewise.
32940         * lib/unictype/categ_Cf.h: Likewise.
32941         * lib/unictype/categ_Cn.h: Likewise.
32942         * lib/unictype/categ_Co.h: Likewise.
32943         * lib/unictype/categ_Cs.h: Likewise.
32944         * lib/unictype/categ_L.h: Likewise.
32945         * lib/unictype/categ_Ll.h: Likewise.
32946         * lib/unictype/categ_Lm.h: Likewise.
32947         * lib/unictype/categ_Lo.h: Likewise.
32948         * lib/unictype/categ_Lt.h: Likewise.
32949         * lib/unictype/categ_Lu.h: Likewise.
32950         * lib/unictype/categ_M.h: Likewise.
32951         * lib/unictype/categ_Mc.h: Likewise.
32952         * lib/unictype/categ_Me.h: Likewise.
32953         * lib/unictype/categ_Mn.h: Likewise.
32954         * lib/unictype/categ_N.h: Likewise.
32955         * lib/unictype/categ_Nd.h: Likewise.
32956         * lib/unictype/categ_Nl.h: Likewise.
32957         * lib/unictype/categ_No.h: Likewise.
32958         * lib/unictype/categ_P.h: Likewise.
32959         * lib/unictype/categ_Pc.h: Likewise.
32960         * lib/unictype/categ_Pd.h: Likewise.
32961         * lib/unictype/categ_Pe.h: Likewise.
32962         * lib/unictype/categ_Pf.h: Likewise.
32963         * lib/unictype/categ_Pi.h: Likewise.
32964         * lib/unictype/categ_Po.h: Likewise.
32965         * lib/unictype/categ_Ps.h: Likewise.
32966         * lib/unictype/categ_S.h: Likewise.
32967         * lib/unictype/categ_Sc.h: Likewise.
32968         * lib/unictype/categ_Sk.h: Likewise.
32969         * lib/unictype/categ_Sm.h: Likewise.
32970         * lib/unictype/categ_So.h: Likewise.
32971         * lib/unictype/categ_Z.h: Likewise.
32972         * lib/unictype/categ_Zl.h: Likewise.
32973         * lib/unictype/categ_Zp.h: Likewise.
32974         * lib/unictype/categ_Zs.h: Likewise.
32975         * lib/unictype/categ_of.h: Likewise.
32976         * lib/unictype/combining.h: Likewise.
32977         * lib/unictype/ctype_alnum.h: Likewise.
32978         * lib/unictype/ctype_alpha.h: Likewise.
32979         * lib/unictype/ctype_blank.h: Likewise.
32980         * lib/unictype/ctype_cntrl.h: Likewise.
32981         * lib/unictype/ctype_digit.h: Likewise.
32982         * lib/unictype/ctype_graph.h: Likewise.
32983         * lib/unictype/ctype_lower.h: Likewise.
32984         * lib/unictype/ctype_print.h: Likewise.
32985         * lib/unictype/ctype_punct.h: Likewise.
32986         * lib/unictype/ctype_space.h: Likewise.
32987         * lib/unictype/ctype_upper.h: Likewise.
32988         * lib/unictype/ctype_xdigit.h: Likewise.
32989         * lib/unictype/decdigit.h: Likewise.
32990         * lib/unictype/digit.h: Likewise.
32991         * lib/unictype/mirror.h: Likewise.
32992         * lib/unictype/numeric.h: Likewise.
32993         * lib/unictype/pr_alphabetic.h: Likewise.
32994         * lib/unictype/pr_ascii_hex_digit.h: Likewise.
32995         * lib/unictype/pr_bidi_arabic_digit.h: Likewise.
32996         * lib/unictype/pr_bidi_arabic_right_to_left.h: Likewise.
32997         * lib/unictype/pr_bidi_block_separator.h: Likewise.
32998         * lib/unictype/pr_bidi_boundary_neutral.h: Likewise.
32999         * lib/unictype/pr_bidi_common_separator.h: Likewise.
33000         * lib/unictype/pr_bidi_control.h: Likewise.
33001         * lib/unictype/pr_bidi_embedding_or_override.h: Likewise.
33002         * lib/unictype/pr_bidi_eur_num_separator.h: Likewise.
33003         * lib/unictype/pr_bidi_eur_num_terminator.h: Likewise.
33004         * lib/unictype/pr_bidi_european_digit.h: Likewise.
33005         * lib/unictype/pr_bidi_hebrew_right_to_left.h: Likewise.
33006         * lib/unictype/pr_bidi_left_to_right.h: Likewise.
33007         * lib/unictype/pr_bidi_non_spacing_mark.h: Likewise.
33008         * lib/unictype/pr_bidi_other_neutral.h: Likewise.
33009         * lib/unictype/pr_bidi_pdf.h: Likewise.
33010         * lib/unictype/pr_bidi_segment_separator.h: Likewise.
33011         * lib/unictype/pr_bidi_whitespace.h: Likewise.
33012         * lib/unictype/pr_combining.h: Likewise.
33013         * lib/unictype/pr_composite.h: Likewise.
33014         * lib/unictype/pr_currency_symbol.h: Likewise.
33015         * lib/unictype/pr_dash.h: Likewise.
33016         * lib/unictype/pr_decimal_digit.h: Likewise.
33017         * lib/unictype/pr_default_ignorable_code_point.h: Likewise.
33018         * lib/unictype/pr_deprecated.h: Likewise.
33019         * lib/unictype/pr_diacritic.h: Likewise.
33020         * lib/unictype/pr_extender.h: Likewise.
33021         * lib/unictype/pr_format_control.h: Likewise.
33022         * lib/unictype/pr_grapheme_base.h: Likewise.
33023         * lib/unictype/pr_grapheme_extend.h: Likewise.
33024         * lib/unictype/pr_grapheme_link.h: Likewise.
33025         * lib/unictype/pr_hex_digit.h: Likewise.
33026         * lib/unictype/pr_hyphen.h: Likewise.
33027         * lib/unictype/pr_id_continue.h: Likewise.
33028         * lib/unictype/pr_id_start.h: Likewise.
33029         * lib/unictype/pr_ideographic.h: Likewise.
33030         * lib/unictype/pr_ids_binary_operator.h: Likewise.
33031         * lib/unictype/pr_ids_trinary_operator.h: Likewise.
33032         * lib/unictype/pr_ignorable_control.h: Likewise.
33033         * lib/unictype/pr_iso_control.h: Likewise.
33034         * lib/unictype/pr_join_control.h: Likewise.
33035         * lib/unictype/pr_left_of_pair.h: Likewise.
33036         * lib/unictype/pr_line_separator.h: Likewise.
33037         * lib/unictype/pr_logical_order_exception.h: Likewise.
33038         * lib/unictype/pr_lowercase.h: Likewise.
33039         * lib/unictype/pr_math.h: Likewise.
33040         * lib/unictype/pr_non_break.h: Likewise.
33041         * lib/unictype/pr_not_a_character.h: Likewise.
33042         * lib/unictype/pr_numeric.h: Likewise.
33043         * lib/unictype/pr_other_alphabetic.h: Likewise.
33044         * lib/unictype/pr_other_default_ignorable_code_point.h: Likewise.
33045         * lib/unictype/pr_other_grapheme_extend.h: Likewise.
33046         * lib/unictype/pr_other_id_continue.h: Likewise.
33047         * lib/unictype/pr_other_id_start.h: Likewise.
33048         * lib/unictype/pr_other_lowercase.h: Likewise.
33049         * lib/unictype/pr_other_math.h: Likewise.
33050         * lib/unictype/pr_other_uppercase.h: Likewise.
33051         * lib/unictype/pr_paired_punctuation.h: Likewise.
33052         * lib/unictype/pr_paragraph_separator.h: Likewise.
33053         * lib/unictype/pr_pattern_syntax.h: Likewise.
33054         * lib/unictype/pr_pattern_white_space.h: Likewise.
33055         * lib/unictype/pr_private_use.h: Likewise.
33056         * lib/unictype/pr_punctuation.h: Likewise.
33057         * lib/unictype/pr_quotation_mark.h: Likewise.
33058         * lib/unictype/pr_radical.h: Likewise.
33059         * lib/unictype/pr_sentence_terminal.h: Likewise.
33060         * lib/unictype/pr_soft_dotted.h: Likewise.
33061         * lib/unictype/pr_space.h: Likewise.
33062         * lib/unictype/pr_terminal_punctuation.h: Likewise.
33063         * lib/unictype/pr_titlecase.h: Likewise.
33064         * lib/unictype/pr_unassigned_code_value.h: Likewise.
33065         * lib/unictype/pr_unified_ideograph.h: Likewise.
33066         * lib/unictype/pr_uppercase.h: Likewise.
33067         * lib/unictype/pr_variation_selector.h: Likewise.
33068         * lib/unictype/pr_white_space.h: Likewise.
33069         * lib/unictype/pr_xid_continue.h: Likewise.
33070         * lib/unictype/pr_xid_start.h: Likewise.
33071         * lib/unictype/pr_zero_width.h: Likewise.
33072         * lib/unictype/scripts.h: Likewise.
33073         * lib/unictype/scripts_byname.gperf: Likewise.
33074         * lib/unictype/sy_c_ident.h: Likewise.
33075         * lib/unictype/sy_c_whitespace.h: Likewise.
33076         * lib/unictype/sy_java_ident.h: Likewise.
33077         * lib/unictype/sy_java_whitespace.h: Likewise.
33078
33079         * lib/unictype/Makefile: New file.
33080         * lib/unictype/gen-ctype.c: New file, based on gen-unicode-ctype.c in
33081         glibc.
33082         * lib/unictype/3level.h: New file, copied from glibc.
33083         * lib/unictype/3levelbit.h: New file.
33084
33085 2007-11-11  Bruno Haible  <bruno@clisp.org>
33086
33087         * modules/gperf: New file.
33088         * modules/iconv_open (Depends-on): Add it.
33089         (Makefile.am): Remove the GPERF definition.
33090
33091 2007-11-11  Bruno Haible  <bruno@clisp.org>
33092
33093         * m4/round.m4 (gl_FUNC_ROUND): Test against NetBSD 3.0 bug.
33094         * doc/functions/round.texi: Mention the NetBSD 3.0 bug.
33095
33096 2007-11-11  Bruno Haible  <bruno@clisp.org>
33097
33098         * tests/test-argmatch.c (ARGMATCH_DIE): Undefine.
33099         (usage): Remove function.
33100
33101 2007-11-11  Bruno Haible  <bruno@clisp.org>
33102
33103         * m4/roundf.m4 (gl_FUNC_ROUNDF): Use gl_FUNC_FLOORF_LIBS and
33104         gl_FUNC_CEILF_LIBS.
33105         * m4/round.m4 (gl_FUNC_ROUND): Use gl_FUNC_FLOOR_LIBS and
33106         gl_FUNC_CEIL_LIBS.
33107         * m4/roundl.m4 (gl_FUNC_ROUNDL): Use gl_FUNC_FLOORL_LIBS and
33108         gl_FUNC_CEILL_LIBS.
33109         * modules/roundf (Files): Add m4/floorf.m4, m4/ceilf.m4.
33110         * modules/round (Files): Add m4/floor.m4, m4/ceil.m4.
33111         * modules/roundl (Files): Add m4/floorl.m4, m4/ceill.m4.
33112
33113 2007-11-11  Bruno Haible  <bruno@clisp.org>
33114
33115         * m4/roundf.m4 (gl_FUNC_ROUNDF): Handle the case that floorf and
33116         roundf were declared but do not exist on functions.
33117         * m4/roundl.m4 (gl_FUNC_ROUNDL): Handle the case that floorl and
33118         roundl were declared but do not exist on functions.
33119         * lib/round.c (HAVE_FLOOR_AND_CEIL): Use HAVE_FLOORF_AND_CEILF and
33120         HAVE_FLOORL_AND_CEILL, respectively.
33121         Needed for Sun C on Solaris 10.
33122
33123 2007-11-11  Bruno Haible  <bruno@clisp.org>
33124
33125         * m4/roundf.m4 (gl_FUNC_ROUNDF): Set REPLACE_ROUNDF instead of
33126         HAVE_DECL_ROUNDF. Remove redundant AC_SUBST.
33127         * m4/round.m4 (gl_FUNC_ROUND): Set REPLACE_ROUND instead of
33128         HAVE_DECL_ROUND. Remove redundant AC_SUBST.
33129         * m4/roundl.m4 (gl_FUNC_ROUNDL): Set REPLACE_ROUNDL instead of
33130         HAVE_DECL_ROUNDL. Remove redundant AC_SUBST.
33131         * lib/math.in.h (roundf): Use REPLACE_ROUNDF instead of
33132         HAVE_DECL_ROUNDF.
33133         (round): Use REPLACE_ROUND instead of HAVE_DECL_ROUND.
33134         (roundl): Use REPLACE_ROUNDL instead of HAVE_DECL_ROUNDL.
33135         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_ROUND* instead
33136         of HAVE_DECL_ROUND*.
33137         * modules/math (Makefile.am): Update.
33138
33139 2007-11-10  Bruno Haible  <bruno@clisp.org>
33140
33141         * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_PARSE): Use same check for
33142         ptrdiff_t as m4/intl.m4.
33143
33144 2007-11-10  Jim Meyering  <meyering@redhat.com>
33145
33146         Avoid link failure for the argmatch test.
33147         * tests/test-argmatch.c (usage): Define function to avoid a link
33148         failure: argmatch_die requires a usage function.
33149
33150 2007-11-09  Bruno Haible  <bruno@clisp.org>
33151
33152         * doc/functions/snprintf.texi: Mention BeOS deficiency.
33153         * doc/functions/vsnprintf.texi: Likewise.
33154         * lib/vasnprintf.c (VASNPRINTF): Ensure that we never call snprintf
33155         with a size argument < 2.
33156
33157 2007-11-09  Bruno Haible  <bruno@clisp.org>
33158
33159         * lib/vasnprintf.c (VASNPRINTF): Increase reallocation of snprintf
33160         buffer. Fixes an inefficiency introduced on 2007-11-03.
33161
33162 2007-11-09  Bruno Haible  <bruno@clisp.org>
33163
33164         * m4/locale-tr.m4 (gt_LOCALE_TR_UTF8) [BeOS]: Make this test return
33165         none instead of tr_TR. Fixes a failure of test-c-strcasecmp.c.
33166
33167 2007-11-08  Jim Meyering  <meyering@redhat.com>
33168
33169         Change cache variable name prefix "jm_" to "gl_" everywhere.
33170         * m4/d-type.m4, m4/jm-winsz1.m4, m4/jm-winsz2.m4, m4/link-follow.m4:
33171         * m4/putenv.m4, m4/strtoimax.m4, m4/strtoumax.m4, m4/unlink-busy.m4:
33172         * m4/uptime.m4: s/gl_/jm_/
33173
33174 2007-11-07  Bruno Haible  <bruno@clisp.org>
33175
33176         Update to GNU gettext 0.17.
33177         * m4/intl.m4: Update to GNU gettext 0.17.
33178         * m4/po.m4: Likewise.
33179         * modules/gettext (Files): Remove m4/ulonglong.m4.
33180         (configure.ac): Require gettext infrastructure from version 0.17.
33181
33182 2007-11-06  Bruno Haible  <bruno@clisp.org>
33183
33184         * lib/fbufmode.c (fbufmode) [QNX]: Use numerical values for flags; the
33185         symbolic values are not defined in a public header.
33186         * lib/freadable.c (freadable) [QNX]: Likewise.
33187         * lib/freadahead.c (freadahead) [QNX]: Likewise.
33188         * lib/freading.c (freading) [QNX]: Likewise.
33189         * lib/fseterr.c (fseterr) [QNX]: Likewise.
33190         * lib/fwritable.c (fwritable) [QNX]: Likewise.
33191         * lib/fwriting.c (fwriting) [QNX]: Likewise.
33192         * lib/fpurge.c (fpurge) [QNX]: Likewise. Add a return statement.
33193         Reported by Alain Magloire.
33194
33195         * m4/fpending.m4 (gl_FUNC_FPENDING): Add a variant for QNX.
33196
33197 2007-11-05  Bruno Haible  <bruno@clisp.org>
33198
33199         * lib/vasnprintf.c (VASNPRINTF): Expand the NEED_PRINTF_DIRECTIVE_A
33200         code when NEED_PRINTF_LONG_DOUBLE or NEED_PRINTF_DOUBLE is set.
33201         Needed on Cygwin, where !NEED_PRINTF_DIRECTIVE_A && NEED_PRINTF_DOUBLE.
33202         Reported by Eric Blake.
33203
33204 2007-10-27  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
33205             Bruno Haible  <bruno@clisp.org>
33206
33207         * modules/malloc (configure.ac): Define GNULIB_MALLOC_GNU always.
33208         * modules/realloc (configure.ac): Define GNULIB_REALLOC_GNU always.
33209         * lib/realloc.c (SYSTEM_MALLOC_GLIBC_COMPATIBLE): New macro.
33210         (malloc): Undefine also before including <stdlib.h>.
33211         (rpl_realloc): Turn malloc(0) into malloc(1) if necessary.
33212         Needed on OSF/1 4.0.
33213
33214 2007-11-05  Jim Meyering  <meyering@redhat.com>
33215
33216         git-version-gen: sync from coreutils.
33217         * build-aux/git-version-gen: Add comments.
33218         Change the first '-' to '.' in the snapshot version string,
33219         e.g., 6.9-377-08144 -> 6.9.377-08144
33220         Remove first parameter.
33221         Don't declare a version "-dirty" merely because a time
33222         stamp has changed.
33223
33224 2007-11-04  Bruno Haible  <bruno@clisp.org>
33225
33226         * lib/lock.h: Protect all macro definitions containing an 'if'
33227         statement through a "do { ... } while (0)".
33228         * lib/tls.h: Likewise.
33229
33230 2007-11-04  Bruno Haible  <bruno@clisp.org>
33231
33232         * lib/vasnprintf.c (DCHAR_IS_TCHAR, DCHAR_CPY): Undefine at the end.
33233
33234 2007-11-04  Bruno Haible  <bruno@clisp.org>
33235
33236         * m4/printf.m4 (gl_PRINTF_ENOMEM): Use GL_NOCRASH.
33237         * modules/fprintf-posix (Depends-on): Add nocrash.
33238         * modules/snprintf-posix (Depends-on): Likewise.
33239         * modules/sprintf-posix (Depends-on): Likewise.
33240         * modules/vasnprintf-posix (Depends-on): Likewise.
33241         * modules/vasprintf-posix (Depends-on): Likewise.
33242         * modules/vfprintf-posix (Depends-on): Likewise.
33243         * modules/vsnprintf-posix (Depends-on): Likewise.
33244         * modules/vsprintf-posix (Depends-on): Likewise.
33245         * modules/unistdio/u8-vasnprintf (Depends-on): Likewise.
33246         * modules/unistdio/u8-u8-vasnprintf (Depends-on): Likewise.
33247         * modules/unistdio/u16-vasnprintf (Depends-on): Likewise.
33248         * modules/unistdio/u16-u16-vasnprintf (Depends-on): Likewise.
33249         * modules/unistdio/u32-vasnprintf (Depends-on): Likewise.
33250         * modules/unistdio/u32-u32-vasnprintf (Depends-on): Likewise.
33251         * modules/unistdio/ulc-vasnprintf (Depends-on): Likewise.
33252
33253 2007-11-04  Bruno Haible  <bruno@clisp.org>
33254
33255         * modules/nocrash: New file.
33256         * m4/nocrash.m4: New file, taken from GNU clisp. Code taken from
33257         GNU libsigsegv, with permission of GNU libsigsegv's copyright holders.
33258
33259 2007-11-04  Bruno Haible  <bruno@clisp.org>
33260
33261         * tests/test-vasnprintf-posix.c (test_function): Add some tests of
33262         precision handling.
33263         * tests/test-vasprintf-posix.c (test_function): Likewise.
33264         * tests/test-snprintf-posix.h (test_function): Likewise.
33265         * tests/test-sprintf-posix.h (test_function): Likewise.
33266
33267         Fix *printf behaviour for large precisions on mingw and BeOS.
33268         * m4/printf.m4 (gl_PRINTF_PRECISION): New macro.
33269         * lib/vasnprintf.c (VASNPRINTF): Handle NEED_PRINTF_UNBOUNDED_PRECISION.
33270         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_PRECISION): New macro.
33271         (gl_PREREQ_VASNPRINTF_WITH_EXTRAS): Invoke it.
33272         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
33273         gl_PRINTF_PRECISION and test its result. Invoke
33274         gl_PREREQ_VASNPRINTF_PRECISION.
33275         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
33276         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
33277         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
33278         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
33279         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
33280         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
33281         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
33282         * doc/functions/fprintf.texi: Update.
33283         * doc/functions/printf.texi: Update.
33284         * doc/functions/snprintf.texi: Update.
33285         * doc/functions/sprintf.texi: Update.
33286         * doc/functions/vfprintf.texi: Update.
33287         * doc/functions/vprintf.texi: Update.
33288         * doc/functions/vsnprintf.texi: Update.
33289         * doc/functions/vsprintf.texi: Update.
33290
33291 2007-11-04  Bruno Haible  <bruno@clisp.org>
33292
33293         * lib/vasnprintf.c (scale10_round_decimal_decoded): Fix shift loop.
33294
33295 2007-11-04  Bruno Haible  <bruno@clisp.org>
33296
33297         * modules/relocatable-prog (Files): Add m4/lib-ld.m4.
33298         Reported by Sylvain Beucler <beuc@gnu.org>.
33299
33300 2007-11-03  Bruno Haible  <bruno@clisp.org>
33301
33302         * tests/test-fprintf-posix2.sh: New file.
33303         * tests/test-fprintf-posix2.c: New file.
33304         * modules/fprintf-posix-tests (Files): Add them.
33305         (TESTS): Add test-fprintf-posix2.sh.
33306         (configure.ac): Check for getrlimit and setrlimit.
33307         (check_PROGRAMS): Add test-fprintf-posix2.
33308
33309         * tests/test-printf-posix2.sh: New file.
33310         * tests/test-printf-posix2.c: New file.
33311         * modules/printf-posix-tests (Files): Add them.
33312         (TESTS): Add test-printf-posix2.sh.
33313         (configure.ac): Check for getrlimit and setrlimit.
33314         (check_PROGRAMS): Add test-printf-posix2.
33315
33316         Fix *printf behaviour in out-of-memory situations on MacOS X and *BSD.
33317         * m4/printf.m4 (gl_PRINTF_ENOMEM): New macro.
33318         * lib/vasnprintf.c: Implement NEED_PRINTF_DOUBLE.
33319         (decode_double): New function, copied from decode_long_double.
33320         (scale10_round_decimal_decoded): New function, extracted from
33321         scale10_round_decimal_long_double.
33322         (scale10_round_decimal_long_double): Use it.
33323         (scale10_round_decimal_double): New function.
33324         (floorlog10): New function.
33325         (VASNPRINTF): Handle NEED_PRINTF_DOUBLE case.
33326         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_ENOMEM): New macro.
33327         (gl_PREREQ_VASNPRINTF_WITH_EXTRAS): Invoke it.
33328         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
33329         gl_PRINTF_ENOMEM and test its result. Invoke
33330         gl_PREREQ_VASNPRINTF_ENOMEM.
33331         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
33332         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
33333         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
33334         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
33335         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
33336         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
33337         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
33338         * modules/fprintf-posix (Depends-on): Add frexp-nolibm.
33339         * modules/snprintf-posix (Depends-on): Likewise.
33340         * modules/sprintf-posix (Depends-on): Likewise.
33341         * modules/vasnprintf-posix (Depends-on): Likewise.
33342         * modules/vasprintf-posix (Depends-on): Likewise.
33343         * modules/vfprintf-posix (Depends-on): Likewise.
33344         * modules/vsnprintf-posix (Depends-on): Likewise.
33345         * modules/vsprintf-posix (Depends-on): Likewise.
33346         * doc/functions/fprintf.texi: Update.
33347         * doc/functions/printf.texi: Update.
33348         * doc/functions/snprintf.texi: Update.
33349         * doc/functions/sprintf.texi: Update.
33350         * doc/functions/vfprintf.texi: Update.
33351         * doc/functions/vprintf.texi: Update.
33352         * doc/functions/vsnprintf.texi: Update.
33353         * doc/functions/vsprintf.texi: Update.
33354
33355 2007-11-03  Bruno Haible  <bruno@clisp.org>
33356
33357         * modules/frexp-nolibm-tests: New file.
33358
33359         * modules/frexp-nolibm: New file.
33360         * m4/frexp.m4 (gl_FUNC_FREXP_NO_LIBM): New macro.
33361
33362 2007-11-03  Bruno Haible  <bruno@clisp.org>
33363
33364         * lib/vasnprintf.c (VASNPRINTF): Don't assume that snprintf's return
33365         value is C99 compliant.
33366         Needed for OSF/1 5.1.
33367
33368 2007-11-03  Bruno Haible  <bruno@clisp.org>
33369
33370         Fix out-of-memory handling of vasnprintf.
33371         * lib/printf-parse.c: Include <errno.h>.
33372         (PRINTF_PARSE): When failing, set errno to EINVAL or ENOMEM.
33373         * lib/vasnprintf.c (VASNPRINTF): When PRINTF_PARSE fails, assume errno
33374         is already set.
33375
33376 2007-11-02  Eric Blake  <ebb9@byu.net>
33377
33378         Fix tests on cygwin.
33379         * modules/xprintf-posix-tests (Makefile.am): Link against -lintl.
33380
33381 2007-11-01  Bruno Haible  <bruno@clisp.org>
33382
33383         * lib/stdlib.in.h (putenv): Remove the "not POSIX compliant everywhere"
33384         warning.
33385         * doc/functions/putenv.texi: Clarify that the 'putenv' module is not
33386         needed for POSIX compatibility.
33387
33388 2007-11-01  Paul Eggert  <eggert@cs.ucla.edu>
33389
33390         * m4/putenv.m4 (gl_FUNC_PUTENV): Also mention that we're checking
33391         for compatibility with GNU.
33392
33393 2007-11-01  Bruno Haible  <bruno@clisp.org>
33394
33395         * lib/putenv.c: Include <stdlib.h>. Remove rpl_putenv declaration.
33396         (putenv): Renamed from rpl_putenv. Change argument type from
33397         'const char *' to 'char *'.
33398         * m4/putenv.m4 (gl_FUNC_PUTENV): Require gl_STDLIB_H_DEFAULTS. Instead
33399         of defining putenv in config.h, just set REPLACE_PUTENV.
33400         * modules/putenv (Depends-on): Add stdlib.
33401         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
33402         (Include): Use <stdlib.h>.
33403         * lib/stdlib.in.h (putenv): New declaration.
33404         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_PUTENV and
33405         REPLACE_PUTENV.
33406         * modules/stdlib (Makefile.am): Substitute GNULIB_PUTENV and
33407         REPLACE_PUTENV.
33408         Needed for MacOS X 10.5.0.
33409         Reported by Peter O'Gorman <peter@pogma.com>.
33410
33411 2007-11-01  Jim Meyering  <meyering@redhat.com>
33412
33413         Treat an empty date string exactly like "0".
33414         * lib/getdate.y (get_date): Once any isspace or TZ= prefix is consumed,
33415         if the remaining date string (to be parsed) is empty, use "0".
33416         Reported by Mischa Molhoek and discussed in this thread:
33417         <http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/11726>.
33418
33419 2007-10-31  Bruno Haible  <bruno@clisp.org>
33420
33421         * m4/intmax_t.m4 (gl_AC_TYPE_INTMAX_T, gt_AC_TYPE_INTMAX_T): Use
33422         AC_TYPE_LONG_LONG_INT instead of gl_AC_TYPE_LONG_LONG.
33423         * m4/uintmax_t.m4 (gl_AC_TYPE_UINTMAX_T): Use
33424         AC_TYPE_UNSIGNED_LONG_LONG_INT instead of gl_AC_TYPE_UNSIGNED_LONG_LONG.
33425         * m4/longlong.m4 (gl_AC_TYPE_LONG_LONG): Remove macro.
33426         * m4/ulonglong.m4 (gl_AC_TYPE_UNSIGNED_LONG_LONG): Remove macro.
33427
33428 2007-10-31  Bruno Haible  <bruno@clisp.org>
33429
33430         * m4/longlong.m4 (_AC_TYPE_LONG_LONG_SNIPPET): New macro, extracted
33431         from AC_TYPE_LONG_LONG_INT and AC_TYPE_UNSIGNED_LONG_LONG_INT.
33432         (AC_TYPE_LONG_LONG_INT): Use it.
33433         (AC_TYPE_UNSIGNED_LONG_LONG_INT): Moved here from m4/ulonglong.m4. Use
33434         it as well.
33435         * m4/ulonglong.m4 (AC_TYPE_UNSIGNED_LONG_LONG_INT): Remove macro; moved
33436         to m4/longlong.m4.
33437         * modules/stdint (Files): Remove m4/ulonglong.m4.
33438         * modules/strtoull (Files): Use m4/longlong.m4 instead of
33439         m4/ulonglong.m4.
33440         * modules/strtoumax (Files): Likewise.
33441
33442 2007-10-30  Bruno Haible  <bruno@clisp.org>
33443
33444         * modules/xvasprintf-posix: New file.
33445         Suggested by Eric Blake.
33446
33447 2007-10-30  Bruno Haible  <bruno@clisp.org>
33448
33449         * modules/xprintf-posix-tests: New file.
33450         * tests/test-xprintf-posix.sh: New file.
33451         * tests/test-xprintf-posix.c: New file.
33452         * tests/test-xfprintf-posix.c: New file.
33453
33454         * modules/xprintf-posix: New file.
33455
33456 2007-10-30  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
33457
33458         * modules/fbufmode-tests (MOSTLYCLEANFILES): Remove temp files.
33459         * modules/freadable-tests (MOSTLYCLEANFILES): Likewise.
33460         * modules/fwritable-tests (MOSTLYCLEANFILES): Likewise.
33461
33462 2007-10-29  Bruno Haible  <bruno@clisp.org>
33463
33464         * m4/floorf.m4 (gl_FUNC_FLOORF_LIBS): Rename the cache variable to
33465         contain the special marker '_cv_'.
33466         * m4/floor.m4 (gl_FUNC_FLOOR_LIBS): Likewise.
33467         * m4/floorl.m4 (gl_FUNC_FLOORL_LIBS): Likewise.
33468         * m4/ceilf.m4 (gl_FUNC_CEILF_LIBS): Likewise.
33469         * m4/ceil.m4 (gl_FUNC_CEIL_LIBS): Likewise.
33470         * m4/ceill.m4 (gl_FUNC_CEILL_LIBS): Likewise.
33471         Reported by Ralf Wildenhues.
33472
33473 2007-10-29  Bruno Haible  <bruno@clisp.org>
33474
33475         * gnulib-tool (func_import): When --lgpl is not specified, set
33476         sed_transform_lib_file to convert LGPL and GPLv2+ copyright headers to
33477         GPLv3.
33478         Reported by Simon Josefsson.
33479
33480 2007-10-28  Bruno Haible  <bruno@clisp.org>
33481
33482         * lib/math.in.h: Test REPLACE_ISFINITE instead of HAVE_DECL_ISFINITE.
33483         * m4/isfinite.m4 (gl_ISFINITE): Initialize REPLACE_ISFINITE instead of
33484         HAVE_DECL_ISFINITE.
33485         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Update.
33486         * modules/math (Makefile.am): Substitute REPLACE_ISFINITE instead of
33487         HAVE_DECL_ISFINITE.
33488
33489 2007-10-28  Bruno Haible  <bruno@clisp.org>
33490
33491         * lib/stdint.in.h (_STDINT_MAX): Subtract 1 from an unused signed
33492         integer shift in the signed case. Fixes warnings with OSF/1 5.1 cc.
33493
33494 2007-10-28  Bruno Haible  <bruno@clisp.org>
33495
33496         Fix link errors with Sun C 5.0 on Solaris 10.
33497         * m4/floorf.m4 (gl_FUNC_FLOORF): Consider also the case that the
33498         function is declared but not present in the compiler's libm.
33499         * m4/floorl.m4 (gl_FUNC_FLOORL): Likewise.
33500         * m4/ceilf.m4 (gl_FUNC_CEILF): Likewise.
33501         * m4/ceill.m4 (gl_FUNC_CEILL: Likewise.
33502         * lib/math.in.h: Test REPLACE_CEILF instead of HAVE_DECL_CEILF.
33503         Test REPLACE_CEILL instead of HAVE_DECL_CEILL.
33504         Test REPLACE_FLOORF instead of HAVE_DECL_FLOORF.
33505         Test REPLACE_FLOORL instead of HAVE_DECL_FLOORL.
33506         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Update.
33507         * modules/math (Makefile.am): Substitute REPLACE_CEILF instead of
33508         HAVE_DECL_CEILF, REPLACE_CEILL instead of HAVE_DECL_CEILL,
33509         REPLACE_FLOORF instead of HAVE_DECL_FLOORF, REPLACE_FLOORL instead of
33510         HAVE_DECL_FLOORL.
33511
33512 2007-10-28  Bruno Haible  <bruno@clisp.org>
33513
33514         * m4/floorl.m4 (gl_FUNC_FLOORL_LIBS): New macro, extracted from
33515         gl_FUNC_FLOORL. Cache the result.
33516         (gl_FUNC_FLOORL): Use it.
33517         * m4/ceill.m4 (gl_FUNC_CEILL_LIBS): New macro, extracted from
33518         gl_FUNC_CEILL. Cache the result.
33519         (gl_FUNC_CEILL): Use it.
33520
33521         * m4/floor.m4 (gl_FUNC_FLOOR_LIBS): New macro, extracted from
33522         gl_FUNC_FLOOR. Cache the result.
33523         (gl_FUNC_FLOOR): Use it.
33524         * m4/ceil.m4 (gl_FUNC_CEIL_LIBS): New macro, extracted from
33525         gl_FUNC_CEIL. Cache the result.
33526         (gl_FUNC_CEIL): Use it.
33527
33528         * m4/floorf.m4 (gl_FUNC_FLOORF_LIBS): New macro, extracted from
33529         gl_FUNC_FLOORF. Cache the result.
33530         (gl_FUNC_FLOORF): Use it.
33531         * m4/ceilf.m4 (gl_FUNC_CEILF_LIBS): New macro, extracted from
33532         gl_FUNC_CEILF. Cache the result.
33533         (gl_FUNC_CEILF): Use it.
33534
33535 2007-10-28  Bruno Haible  <bruno@clisp.org>
33536
33537         * gnulib-tool: Allow specifying the LGPL version number through
33538         --lgpl=2 or --lgpl=3.
33539         (func_usage): Document --lgpl with argument.
33540         Handle --lgpl=... arguments.
33541         (func_import): Recognize also gl_LGPL calls with an argument. When
33542         --lgpl=2 is used and the module's license is just LGPL, report an
33543         error. Set sed_transform_lib_file according to the lgpl variable. In
33544         the generated files, use --lgpl or gl_LGPL invocations with argument,
33545         if necessary.
33546         * doc/gnulib-intro.texi (Copyright): Explain how to get modules under
33547         an LGPv2+ license.
33548         * doc/gnulib-tool.texi (Modified imports): Update explanation of
33549         gl_LGPL macro.
33550
33551 2007-10-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
33552             Bruno Haible  <bruno@clisp.org>
33553
33554         * lib/unistr.h (u8_uctomb_aux): Declare also if !HAVE_INLINE.
33555         (u16_uctomb_aux): Likewise.
33556         * lib/unistr/u8-uctomb-aux.c (u8_uctomb_aux): Define also if
33557         !HAVE_INLINE.
33558         * lib/unistr/u16-uctomb-aux.c (u16_uctomb_aux): Likewise
33559
33560 2007-10-28  Bruno Haible  <bruno@clisp.org>
33561
33562         * modules/error: Add a notice recommending to change XGETTEXT_OPTIONS.
33563         Invoke AM_GETTEXT_OPTION if it exists.
33564         * modules/vasprintf: Likewise.
33565         * modules/verror: Likewise.
33566         * modules/xprintf: Likewise.
33567         * modules/xvasprintf: Likewise.
33568
33569 2007-10-27  Ben Pfaff  <blp@gnu.org>
33570
33571         * lib/math.in.h: Define isfinite macro and prototypes for
33572         gl_isfinitef, gl_isfinited, gl_isfinitel if we are providing
33573         implementations.
33574         * m4/math_h.m4: New substitutions for isfinite module.
33575         * lib/isfinite.c: New file.
33576         * m4/isfinite.m4: New file.
33577         * modules/math: Replace isfinite-related @VARS@ in math.in.h.
33578         * modules/isfinite: New file.
33579         * modules/isfinite-tests: New file.
33580         * tests/tests-isfinite.c: New file.
33581         * doc/functions/isfinite.texi: Mention isfinite module.
33582         * MODULES.html.sh: Mention new module.
33583
33584 2007-10-27  Ben Pfaff  <blp@gnu.org>
33585
33586         Ralf Wildenhues reported that Tru64 4.0D declares the round
33587         functions but does not have definitions.
33588         * m4/check-math-lib.m4 (gl_CHECK_MATH_LIB): If the target function
33589         cannot be found in any library, set the output variable to
33590         "missing" instead of "".
33591         * m4/round.m4: Also use our substitute if we cannot find round in
33592         any library, even if it is declared.
33593         * m4/roundf.m4: Likewise for roundf.
33594         * m4/roundl.m4: Likewise for roundl.
33595         * lib/math.in.h: Undefine roundf, round, roundl before defining
33596         their replacements, to allow for hypothetical systems where these
33597         may be defined as macros but not available in libraries.
33598
33599 2007-10-27  Bruno Haible  <bruno@clisp.org>
33600
33601         * doc/gnulib.texi: Invoke @firstparagraphindent.
33602         * doc/gnulib-tool.texi (Simple update): Mention possible incompatible
33603         changes in gnulib.
33604         (Source changes): New section.
33605
33606 2007-10-26  Bruno Haible  <bruno@clisp.org>
33607
33608         * m4/gnulib-common.m4 (AC_C_RESTRICT): New overriding definition,
33609         borrowed from autoconf.
33610
33611 2007-10-26  Bruno Haible  <bruno@clisp.org>
33612
33613         * lib/strerror.c (rpl_strerror): Return "Unknown error ..." also if
33614         strerror returned the empty string. Needed on HP-UX 11.00.
33615
33616 2007-10-24  Micah Cowan  <micah@cowan.name>
33617
33618         Remove vestiges of cvs-gnulib-checkout process.  Now we use git.
33619         * build-aux/bootstrap: Remove support for now-unnecessary option,
33620         --cvs-user, and envvars CVS_USER, CVS_RSH.
33621
33622 2007-10-24  Jim Meyering  <meyering@redhat.com>
33623
33624         Avoid diagnostics from sha1sum when there is no cached checksum.
33625         * build-aux/bootstrap (update_po_files): Skip the sha1sum check
33626         if the po.s1 file hasn't been created yet.
33627
33628         * build-aux/bootstrap: Sync from coreutils:
33629         2007-10-24  Jim Meyering  <meyering@redhat.com>
33630         Get gnulib from the git repository, not from an obsolete cvs one.
33631         * build-aux/bootstrap: Suggestion from Micah Cowan.
33632         2007-10-04  Jim Meyering  <jim@meyering.net>
33633         * build-aux/bootstrap (slurp): Adapt to _.h -> .in.h name change.
33634         (update_po_files): Work also when there are no .po files in po/.
33635
33636 2007-10-24  Paul Eggert  <eggert@cs.ucla.edu>
33637
33638         * README: Append ".git" to git and cg examples.
33639         Problem reported by Benoit Sigoure.
33640
33641 2007-10-23  Micah Cowan  <micah@cowan.name>
33642
33643         * users.txt: Add wget.
33644
33645 2007-10-23  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
33646
33647         Fix linking of some unistdio tests on FreeBSD.
33648         * modules/unistdio/u16-vsnprintf-tests
33649         (test_u16_vsprintf1_LDADD): Add @LIBINTL@.
33650         * modules/unistdio/u16-vsprintf-tests
33651         (test_u16_vsnprintf1_LDADD): Likewise.
33652         * modules/unistdio/u32-vsnprintf-tests
33653         (test_u32_vsnprintf1_LDADD): Likewise.
33654         * modules/unistdio/u32-vsprintf-tests
33655         (test_u32_vsprintf1_LDADD): Likewise.
33656         * modules/unistdio/u8-vsnprintf-tests
33657         (test_u8_vsnprintf1_LDADD): Likewise.
33658         * modules/unistdio/u8-vsprintf-tests
33659         (test_u8_vsprintf1_LDADD): Likewise.
33660         * modules/unistdio/ulc-vsnprintf-tests
33661         (test_ulc_vsnprintf1_LDADD): Likewise.
33662         * modules/unistdio/ulc-vsprintf-tests
33663         (test_ulc_vsprintf1_LDADD): Likewise.
33664
33665         Fix linking of some uniconv tests on FreeBSD.
33666         * modules/uniconv/u16-conv-from-enc-tests
33667         (test_u16_conv_from_enc_LDADD): Link $(LDADD) before @LIBICONV@.
33668         * modules/uniconv/u16-conv-to-enc-tests
33669         (test_u16_conv_to_enc_LDADD): Likewise.
33670         * modules/uniconv/u16-strconv-from-enc-tests
33671         (test_u16_strconv_from_enc_LDADD): Likewise.
33672         * modules/uniconv/u16-strconv-to-enc-tests
33673         (test_u16_strconv_to_enc_LDADD): Likewise.
33674         * modules/uniconv/u32-conv-from-enc-tests
33675         (test_u32_conv_from_enc_LDADD): Likewise.
33676         * modules/uniconv/u32-conv-to-enc-tests
33677         (test_u32_conv_to_enc_LDADD): Likewise.
33678         * modules/uniconv/u32-strconv-from-enc-tests
33679         (test_u32_strconv_from_enc_LDADD): Likewise.
33680         * modules/uniconv/u32-strconv-to-enc-tests
33681         (test_u32_strconv_to_enc_LDADD): Likewise.
33682         * modules/uniconv/u8-conv-from-enc-tests
33683         (test_u8_conv_from_enc_LDADD): Likewise.
33684         * modules/uniconv/u8-conv-to-enc-tests
33685         (test_u8_conv_to_enc_LDADD): Likewise.
33686         * modules/uniconv/u8-strconv-from-enc-tests
33687         (test_u8_strconv_from_enc_LDADD): Likewise.
33688         * modules/uniconv/u8-strconv-to-enc-tests
33689         (test_u8_strconv_to_enc_LDADD): Likewise.
33690
33691 2007-10-22  Bruno Haible  <bruno@clisp.org>
33692
33693         * lib/stdint.in.h: Add check that intmax_t and uintmax_t have the same
33694         size.
33695
33696 2007-10-22  Eric Blake  <ebb9@byu.net>
33697
33698         Tweak x*printf documentation.
33699         * lib/xprintf.c (xprintf, xvprintf, xfprintf, xvfprintf): Adjust
33700         variable name and comments.
33701         Suggested by Bruno Haible.
33702
33703 2007-10-22  Bruno Haible  <bruno@clisp.org>
33704
33705         * lib/acl.c (copy_acl): Fix file name in comment.
33706
33707 2007-10-22  Paul Eggert  <eggert@cs.ucla.edu>
33708
33709         Fix Tru64 problem with stdbool.h.
33710         * lib/stdbool.in.h (false, true):
33711         [! (defined __cplusplus || defined __BEOS__) && !defined __GNUC__]:
33712         Don't declare as an enum in this situation; it runs afoul of Tru64.
33713         Problem reported by Steven M. Schweda in
33714         <http://lists.gnu.org/archive/html/bug-autoconf/2007-10/msg00019.html>.
33715
33716 2007-10-22  Eric Blake  <ebb9@byu.net>
33717
33718         Also wrap vf?printf.
33719         * lib/xprintf.h (xvprintf, xvfprintf): New declarations.
33720         * lib/xprintf.c (xprintf, xfprintf): Work for C89.
33721         (xvprintf, xvfprintf): New functions.
33722
33723 2007-10-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
33724
33725         * modules/fstrcmp-tests (test_fstrcmp_LDADD): New, add
33726         @LIBINTL@ for FreeBSD 6.2, $(LIBTHREAD) for AIX 4.3.3.
33727
33728         * lib/uniconv/u16-conv-to-enc.c (U_MBLEN): Define.
33729         * lib/uniconv/u32-conv-to-enc.c (U_MBLEN): Likewise.
33730
33731 2007-10-22  Paul Eggert  <eggert@cs.ucla.edu>
33732
33733         * lib/acl.c (copy_acl): Adjust to IRIX 6.5.  Problem reported
33734         by Bruno Haible.
33735
33736 2007-10-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
33737
33738         * lib/getloadavg.c
33739         [defined (__osf__) && (defined (__alpha) || defined (__alpha__)]:
33740         Undef `sys' after including sys/table.h, for Tru64 4.0D.
33741
33742         * tests/test-i-ring.c: Work for C89.
33743
33744 2007-10-22  Bruno Haible  <bruno@clisp.org>
33745
33746         * m4/ulonglong.m4 (AC_TYPE_UNSIGNED_LONG_LONG_INT): Use -1ull, not
33747         -1u, in preprocessor expression, so that we don't test for the bug
33748         in HP-UX 11.00 cpp.  Testing for this bug caused problems; see
33749         <http://lists.gnu.org/archive/html/bug-gnulib/2007-10/msg00329.html>.
33750
33751 2007-10-22  Eric Blake  <ebb9@byu.net>
33752
33753         * tests/test-yesno.sh: Silence stderr during test.
33754
33755 2007-10-22  Simon Josefsson  <simon@josefsson.org>
33756
33757         * modules/crypto/gc-camellia: New file.
33758
33759         * m4/gc-camellia.m4: New file.
33760
33761         * lib/gc-libgcrypt.c (gc_cipher_open): Support Camellia.
33762
33763         * lib/gc.h (enum Gc_cipher): Add GC_CAMELLIA128, GC_CAMELLIA256.
33764
33765 2007-10-22  Simon Josefsson  <simon@josefsson.org>
33766
33767         * build-aux/maint.mk (gzip_rsyncable): Don't fail if gzip sends
33768         --help to stdout.  Reported by sms@antinode.org (Steven
33769         M. Schweda).
33770
33771 2007-10-22  Simon Josefsson  <simon@josefsson.org>
33772
33773         * users.txt: Fix link to libksba.
33774
33775 2007-10-21  Ben Pfaff  <blp@gnu.org>
33776
33777         * modules/roundf-tests: Add dependency on floorf, ceilf to allow
33778         round.c roundf implementation that depends on floorf and ceilf to
33779         be tested unconditionally.
33780
33781 2007-10-21  Ben Pfaff  <blp@gnu.org>
33782
33783         * m4/check-libm-func.m4: Removed.
33784         * m4/check-math-lib.m4: New file.
33785         * m4/round.m4: Rewrite to use gl_CHECK_MATH_LIB.
33786         * m4/roundf.m4: Ditto, and fix lack of HAVE_DECL_ROUNDF
33787         definition and lack of AC_LIBOBJ([roundf]).
33788         * m4/roundl.m4: Ditto, and similarly for roundl.
33789         * modules/round: Reference new m4 file.
33790         * modules/roundf: Ditto.
33791         * modules/roundl: Ditto.
33792         * tests/test-round2.c (main): Use ROUND instead of round.
33793         Bug report from Bruno Haible.
33794
33795 2007-10-21  Bruno Haible  <bruno@clisp.org>
33796
33797         * lib/printf-parse.c: Don't assume <stdint.h> exists in IN_LIBASPRINTF
33798         context.
33799
33800 2007-10-21  Bruno Haible  <bruno@clisp.org>
33801
33802         * tests/test-wcwidth.c (main): Allow negative result for some control
33803         characters.
33804
33805         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Check also the width of U+200B.
33806         Needed on OSF/1 5.1.
33807
33808 2007-10-21  Bruno Haible  <bruno@clisp.org>
33809
33810         * tests/test-floorf1.c: Include isnanf.h.
33811         (main): Use isnanf() instead of isnan().
33812         * tests/test-ceilf1.c: Include isnanf.h.
33813         (main): Use isnanf() instead of isnan().
33814         * tests/test-truncf1.c: Include isnanf.h.
33815         (main): Use isnanf() instead of isnan().
33816         * tests/test-roundf1.c: Include isnanf.h.
33817         (main): Use isnanf() instead of isnan().
33818
33819 2007-10-21  Eric Blake  <ebb9@byu.net>
33820
33821         * users.txt: Update URL for m4.
33822
33823 2007-10-21  Bruno Haible  <bruno@clisp.org>
33824
33825         * users.txt: Add clisp. Update URLs to Simon Josefsson's projects.
33826
33827 2007-10-21  Bruno Haible  <bruno@clisp.org>
33828
33829         * gnulib-tool (func_create_megatestdir): Determine the cvsdate from
33830         Git's management files if the CVS files are not present.
33831
33832 2007-10-20  Bruno Haible  <bruno@clisp.org>
33833
33834         * lib/count-one-bits.h (COUNT_ONE_BITS): Use the builtin also for
33835         gcc-3.4.x.
33836
33837 2007-10-20  Ben Pfaff  <blp@gnu.org>
33838
33839         * lib/math.in.h: Declare round, roundf, roundl if we are providing
33840         implementations.
33841         * m4/math_h.m4: New substitutions for round, roundf, roundl modules.
33842         * lib/round.c: New file.
33843         * lib/roundf.c: New file.
33844         * lib/roundl.c: New file.
33845         * m4/round.m4: New file.
33846         * m4/roundf.m4: New file.
33847         * m4/roundl.m4: New file.
33848         * m4/check-libm-func-m4: New file.
33849         * modules/math: Replace round, roundf, roundl related @VARS@ in
33850         math.in.h.
33851         * modules/round: New file.
33852         * modules/round-tests: New file.
33853         * modules/roundf: New file.
33854         * modules/roundf-tests: New file.
33855         * modules/roundl: New file.
33856         * modules/roundl-tests: New file.
33857         * tests/test-round1.c: New file.
33858         * tests/test-round2.c: New file.
33859         * tests/test-roundf1.c: New file.
33860         * tests/test-roundf2.c: New file.
33861         * tests/test-roundl.c: New file.
33862         * doc/functions/round.texi: Mention round module.
33863         * doc/functions/roundf.texi: Mention roundf module.
33864         * doc/functions/roundl.texi: Mention roundl module.
33865         * MODULES.html.sh: Mention new modules.
33866         Thanks to Bruno Haible for suggestions.
33867
33868 2007-10-20  Jim Meyering  <meyering@redhat.com>
33869
33870         * lib/xprintf.c: Include <config.h> unconditionally.
33871
33872         Change xprintf's license to GPL.
33873         * modules/xprintf (License): s/LGPL/GPL/, since this module
33874         depends on modules (exit and exitfail) which are GPL.
33875         Suggestion from Bruno Haible.
33876
33877         xprintf fixes.
33878         * lib/xprintf.c (xprintf, xfprintf): Use va_end.
33879         Use a clearer diagnostic.
33880         Patch from Bruno Haible.
33881
33882 2007-10-20  Bruno Haible  <bruno@clisp.org>
33883
33884         * lib/vasnprintf.c (VASNPRINTF): Don't report overflow if the available
33885         length is INT_MAX and sizeof (DCHAR_T) > sizeof (TCHAR_T).
33886         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
33887
33888 2007-10-20  Bruno Haible  <bruno@clisp.org>
33889
33890         * tests/test-floorf2.c (correct_result_p): Don't rely on excess
33891         precision in the comparison result > x - 1 or similar.
33892         * tests/test-ceilf2.c (correct_result_p): Likewise.
33893         * tests/test-truncf2.c (correct_result_p): Likewise.
33894         * tests/test-trunc2.c (correct_result_p): Likewise.
33895         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
33896
33897 2007-10-20  Bruno Haible  <bruno@clisp.org>
33898
33899         * modules/ceil: New file.
33900         * m4/ceil.m4: New file.
33901         * doc/functions/ceil.texi: Mention the 'ceil' module.
33902
33903 2007-10-20  Bruno Haible  <bruno@clisp.org>
33904
33905         * modules/floor: New file.
33906         * m4/floor.m4: New file.
33907         * doc/functions/floor.texi: Mention the 'floor' module.
33908
33909 2007-10-20  Bruno Haible  <bruno@clisp.org>
33910
33911         * modules/ceilf-tests (Depends-on): Add fprintf-posix. Needed for use
33912         of %a.
33913         * modules/floorf-tests (Depends-on): Likewise.
33914         * modules/truncf-tests (Depends-on): Likewise.
33915         * modules/trunc-tests (Depends-on): Likewise.
33916         Reported by Ben Pfaff.
33917
33918 2007-10-19  Jim Meyering  <meyering@redhat.com>
33919
33920         * lib/xprintf.c (xprintf, xfprintf): Test err < 0, not just "err".
33921         Don't bother testing specific errno values.  Just test ferror.
33922
33923         New module: xprintf
33924         * modules/xprintf, lib/xprintf.c, lib/xprintf.h: New files.
33925
33926 2007-10-19  Bruno Haible  <bruno@clisp.org>
33927
33928         * modules/csharpexec (Makefile.am): Use @FOO@ syntax instead of $(FOO)
33929         syntax.
33930         * modules/javaexec (Makefile.am): Likewise.
33931         * modules/relocatable-prog (Makefile.am): Likewise.
33932         Suggested by Jim Meyering.
33933
33934 2007-10-18  Bruno Haible  <bruno@clisp.org>
33935
33936         * lib/vasnprintf.c (VASNPRINTF): Don't use %n on glibc >= 2.3 systems.
33937         Reported by Jim Meyering.
33938
33939 2007-10-18  Eric Blake  <ebb9@byu.net>
33940
33941         * modules/filenamecat-tests (Makefile.am): Link against -lintl.
33942
33943 2007-10-18  Bruno Haible  <bruno@clisp.org>
33944
33945         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_N, gl_SNPRINTF_DIRECTIVE_N): Put
33946         the format string into writable memory. Needed in Fortify conditions.
33947
33948 2007-10-18  Colin Watson <cjwatson@debian.org>  (tiny change)
33949             Bruno Haible  <bruno@clisp.org>
33950
33951         * lib/trim.c: Include config.h unconditionally. Include trim.h always.
33952         Include ctype.h always. Include stdlib.h, not mbuiter.h, for MB_CUR_MAX.
33953         * modules/trim (Depends-on): Add mbchar.
33954         (configure.ac): Add gl_FUNC_MBRTOWC.
33955         (Makefile.am): Augment lib_SOURCES.
33956
33957 2007-10-17  Paul Eggert  <eggert@cs.ucla.edu>
33958
33959         Modify glob.c to use fstatat and dirfd, to simplify it.
33960         Suggested by Eric Blake.
33961         * lib/glob.c (__fxstatat64) [!_LIBC]: New macro.
33962         Don't include <stdbool.h>; not used.
33963         (link_exists2_p, glob_in_dir) [!_LIBC]: No longer a special case.
33964         (link_exists_p): Simplify implementation, since we can now assume
33965         dirfd and fstatat.
33966         * modules/glob (Depends-on): Add dirfd, openat.  Remove stdbool.
33967
33968 2007-10-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
33969
33970         * gnulib-tool (func_get_dependencies): Fix sed script to
33971         match only tests.
33972
33973 2007-10-17  Bruno Haible  <bruno@clisp.org>
33974
33975         * m4/locale-fr.m4 (gt_LOCALE_FR, gt_LOCALE_FR_UTF8): On Cygwin, don't
33976         allow locale names without encoding suffix.
33977         * m4/locale-tr.m4 (gt_LOCALE_TR_UTF8): Likewise.
33978         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): Likewise.
33979
33980 2007-10-16  Bruno Haible  <bruno@clisp.org>
33981
33982         * lib/getcwd.c (__getcwd): Define with explicit rpl_ prefix.
33983         * lib/getgroups.c (getgroups): Likewise.
33984         * lib/gettimeofday.c (localtime, gmtime, tzset): Likewise.
33985
33986 2007-10-16  Bruno Haible  <bruno@clisp.org>
33987
33988         * modules/absolute-header (License): Change from LGPL to LGPLv2+.
33989         * modules/malloc-posix (License): Likewise.
33990         * modules/realloc-posix (License): Likewise.
33991         * modules/calloc-posix (License): Likewise.
33992         * modules/intprops (License): Change from GPL to LGPL, with
33993         Paul Eggert's approval.
33994
33995 2007-10-16  Paul Eggert  <eggert@cs.ucla.edu>
33996
33997         Merge glibc changes into lib/glob.c.
33998
33999         * lib/glob.c (glob_in_dir): Sync with glibc/posix/glob.c, dated
34000         2007-10-15 04:59:03 UTC.  Here are the changes:
34001
34002         2007-10-14  Ulrich Drepper  <drepper@redhat.com>
34003
34004         * lib/glob.c: Reimplement link_exists_p to use fstatat64.
34005
34006         * lib/glob.c: Add some branch prediction throughout.
34007
34008         2007-10-07  Ulrich Drepper  <drepper@redhat.com>
34009
34010         [BZ #5103]
34011         * lib/glob.c (glob): Recognize patterns starting \/.
34012
34013         2007-02-14  Jakub Jelinek  <jakub@redhat.com>
34014
34015         [BZ #3996]
34016         * lib/glob.c (attribute_hidden): Define if not defined.
34017         (glob): Unescape dirname, filename or username when needed and not
34018         GLOB_NOESCAPE.  Handle \/ correctly.  Handle GLOB_MARK if filename
34019         is NULL.  Handle unescaped [ in pattern without closing ].
34020         Don't pass GLOB_CHECK down to recursive glob for directories.
34021         (__glob_pattern_type): New function.
34022         (__glob_pattern_p): Implement using __glob_pattern_type.
34023         (glob_in_dir): Handle GLOB_NOCHECK patterns containing no meta
34024         characters and backslashes if not GLOB_NOESCAPE or unterminated [.
34025         Remove unreachable code.
34026
34027         2006-09-30  Ulrich Drepper  <drepper@redhat.com>
34028
34029         * lib/glob.c (glob_in_dir): Add some comments and asserts to
34030         explain why there are no leaks.
34031
34032         2006-09-25  Jakub Jelinek  <jakub@redhat.com>
34033
34034         [BZ #3253]
34035         * lib/glob.c (glob_in_dir): Don't alloca one struct globlink at a
34036         time, rather allocate increasingly bigger arrays of pointers, if
34037         possible with alloca, if too large with malloc.
34038
34039 2007-10-16  Paul Eggert  <eggert@cs.ucla.edu>
34040
34041         Check for 64-bit int errors in HP-UX 10.20 preprocessor.
34042         Problem reported by H.Merijn Brand in
34043         <http://lists.gnu.org/archive/html/bug-tar/2007-10/msg00018.html>.
34044         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Check preprocessor too.
34045         * m4/ulonglong.m4 (AC_TYPE_UNSIGNED_LONG_LONG_INT): Likewise.
34046
34047 2007-10-15  Bruno Haible  <bruno@clisp.org>
34048
34049         * lib/fchdir.c (close, open, closedir, opendir, dup, dup2): Define
34050         with explicit rpl_ prefix.
34051         * lib/fopen.c (fopen): Likewise.
34052         * lib/freopen.c (freopen): Likewise.
34053         * lib/iconv.c (iconv): Likewise.
34054         * lib/iconv_close.c (iconv_close): Likewise.
34055
34056 2007-10-15  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
34057
34058         * m4/iconv_open (gl_FUNC_ICONV_OPEN_UTF): Fix cache variable name.
34059
34060 2007-10-15  Bruno Haible  <bruno@clisp.org>
34061
34062         * m4/getaddrinfo.m4 (gl_GETADDRINFO, gl_PREREQ_GETADDRINFO): Use
34063         <stddef.h> instead of <stdlib.h> since we only need NULL.
34064         Reported by Ben Pfaff <blp@cs.stanford.edu>.
34065
34066 2007-10-15  Bruno Haible  <bruno@clisp.org>
34067
34068         * doc/gnulib-tool.texi (Initial import): Swap order of -I directives.
34069         Replace paragraph talking about LIBOBJS.
34070         Reported by Colin Watson <cjwatson@debian.org>.
34071
34072 2007-10-15  Bruno Haible  <bruno@clisp.org>
34073
34074         * m4/getaddrinfo.m4 (gl_GETADDRINFO, gl_PREREQ_GETADDRINFO): Include
34075         <stdlib.h> before using NULL.
34076
34077 2007-10-15  Simon Josefsson  <simon@josefsson.org>
34078
34079         * m4/getaddrinfo.m4: Use NULL rather than 0 for pointers.
34080         Reported by Albert Chin <china@thewrittenword.com>.
34081
34082 2007-10-14  Bruno Haible  <bruno@clisp.org>
34083
34084         * modules/iconv_open-utf-tests: New file.
34085         * tests/test-iconv-utf.c: New file.
34086
34087         Enhance iconv_open to support UTF-16BE, UTF-16LE, UTF-32BE, UTF-32LE.
34088         * modules/iconv_open-utf: New file.
34089         * lib/iconv.in.h (_ICONV_UTF8_UTF*, _ICONV_UTF*_UTF8): New macros.
34090         (iconv, iconv_close): New declarations.
34091         * lib/iconv_open.c: Include c-strcase.h. Don't require ICONV_FLAVOR to
34092         be defined.
34093         (iconv_open): Add special handling of conversion between UTF-8 and
34094         UTF-{16,32}{BE,LE}.
34095         * lib/iconv.c: New file, incorporating code from GNU libiconv 1.11.
34096         * lib/iconv_close.c: New file.
34097         * m4/iconv_open.m4 (gl_REPLACE_ICONV_OPEN): New macro, extracted from
34098         gl_FUNC_ICONV_OPEN.
34099         (gl_FUNC_ICONV_OPEN): Use it.
34100         (gl_FUNC_ICONV_OPEN_UTF): New macro.
34101         * m4/iconv_h.m4 (gl_ICONV_H_DEFAULTS): Initialize also REPLACE_ICONV
34102         and REPLACE_ICONV_UTF.
34103         * modules/iconv_open (Depends-on): Add c-strcase.
34104         (Makefile.am): Substitute also REPLACE_ICONV, REPLACE_ICONV_UTF,
34105         ICONV_CONST.
34106         * doc/functions/iconv_open.texi: Mention the iconv_open-utf module.
34107
34108 2007-10-13  Albert Chin  <china@thewrittenword.com>
34109             Bruno Haible  <bruno@clisp.org>
34110
34111         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Perform the test for getaddrinfo
34112         through a link check that includes <netdb.h>. Needed for OSF/1 5.1.
34113
34114 2007-10-13  Bruno Haible  <bruno@clisp.org>
34115
34116         * lib/argp-fmtstream.h (ARGP_FS_EI): If __GNUC_STDC_INLINE__ is
34117         defined, use the ISO C99 inline semantics.
34118         * lib/argp.h (ARGP_EI): Likewise.
34119
34120 2007-10-13  Bruno Haible  <bruno@clisp.org>
34121
34122         Handle 'inline' change in gcc 4.3.0.
34123         * lib/argp-fmtstream.h (argp_fmtstream_putc, argp_fmtstream_puts,
34124         argp_fmtstream_write, argp_fmtstream_set_lmargin,
34125         argp_fmtstream_set_rmargin, argp_fmtstream_set_wmargin,
34126         argp_fmtstream_point): Disable 'extern' declaration if the function
34127         definition is going to be provided inline.
34128         (ARGP_FS_EI): If __GNUC_STDC_INLINE__ is defined, use the GNU C inline
34129         semantics, not the ISO C99 inline semantics.
34130         * lib/argp.h (argp_usage, _option_is_short, _option_is_end): Disable
34131         'extern' declaration if the function definition is going to be provided
34132         inline.
34133         (ARGP_EI): Don't assume GNU C. If __GNUC_STDC_INLINE__ is defined, use
34134         the GNU C inline semantics, not the ISO C99 inline semantics. With
34135         GCC 4.2, avoid a warning.
34136
34137 2007-10-13  Bruno Haible  <bruno@clisp.org>
34138
34139         * lib/freading.h (freading): Enable the use of __freading for
34140         glibc >= 2.7.
34141         * lib/freading.c (freading): Likewise.
34142
34143 2007-10-12  Paul Eggert  <eggert@cs.ucla.edu>
34144
34145         * lib/argp-fmtstream.h (ARGP_FS_EI): Work around GCC 4.2.1 diagnostic
34146         "warning: C99 inline functions are not supported; using GNU89".
34147
34148 2007-10-12  Bruno Haible  <bruno@clisp.org>
34149
34150         * lib/ceil.c (FUNC): Avoid rounding errors for values near a power
34151         of 2.
34152         * tests/test-ceilf2.c: New file.
34153         * modules/ceilf-tests: (Files, Depends-on, Makefile.am): Add new test.
34154
34155         * tests/test-ceilf1.c: Renamed from tests/test-ceilf.c.
34156         * modules/ceilf-tests: Update.
34157
34158 2007-10-12  Bruno Haible  <bruno@clisp.org>
34159
34160         * lib/floor.c (FUNC): Avoid rounding errors for values near a power
34161         of 2.
34162         * tests/test-floorf2.c: New file.
34163         * modules/floorf-tests: (Files, Depends-on, Makefile.am): Add new test.
34164
34165         * tests/test-floorf1.c: Renamed from tests/test-floorf.c.
34166         * modules/floorf-tests: Update.
34167
34168 2007-10-12  Bruno Haible  <bruno@clisp.org>
34169
34170         * tests/test-trunc2.c: New file.
34171         * modules/trunc-tests: (Files, Depends-on, Makefile.am): Add new test.
34172
34173         * tests/test-trunc1.c: Renamed from tests/test-trunc.c.
34174         * modules/trunc-tests: Update.
34175
34176 2007-10-12  Bruno Haible  <bruno@clisp.org>
34177
34178         * lib/trunc.c (FUNC): Avoid rounding errors for values near a power
34179         of 2.
34180         * tests/test-truncf2.c: New file.
34181         * modules/truncf-tests: (Files, Depends-on, Makefile.am): Add new test.
34182
34183         * tests/test-truncf1.c: Renamed from tests/test-truncf.c.
34184         * modules/truncf-tests: Update.
34185
34186 2007-10-11  Eric Blake  <ebb9@byu.net>
34187
34188         Don't claim strerror is broken on Interix.
34189         * doc/functions/strerror.texi (strerror): Known broken systems are
34190         now Solaris 8, and not Interix.
34191         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE): No longer filter out
34192         Interix on cross-compile.
34193         Reported by Martin Koeppe in
34194         http://lists.gnu.org/archive/html/bug-gnulib/2007-10/msg00005.html.
34195
34196 2007-10-11  Bruno Haible  <bruno@clisp.org>
34197
34198         * modules/i-ring-tests: New file.
34199         * tests/test-i-ring.c: Renamed from lib/i-ring-test.c. Use ASSERT
34200         instead of assert.
34201
34202 2007-10-11  Bruno Haible  <bruno@clisp.org>
34203
34204         * modules/filenamecat-tests: New file.
34205         * tests/test-filenamecat.c: New file, extracted from lib/filenamecat.c.
34206         * lib/filenamecat.c: Remove test code.
34207
34208 2007-10-11  Paul Eggert  <eggert@cs.ucla.edu>
34209
34210         Simplify and modernize strerror substitute, partly to fix Solaris 8 bug.
34211
34212         * lib/strerror.c: Include <string.h> always, to test interface,
34213         and to remove the need for the dummy.
34214         Include intprops.h to compute width instead of doing it ourselves
34215         and missing a CHAR_BIT declaration, which broke tar 1.19 on Solaris 8.
34216         (strerror): Define it to return NULL if there's no system strerror.
34217         (rpl_strerror): Use INT_STRLEN_BOUND to compute bound.
34218         Omit !HAVE_STRERROR code.  We don't need to worry about supporting
34219         ancient pre-strerror Unix systems well any more.  Saying "unknown
34220         system error" is enough.
34221         * lib/string.in.h (strerror): Simplify the ifdef to reflect the
34222         simpler strerror.c implementation.
34223         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE, gl_PREREQ_STDERROR):
34224         Simplify the tests to reflect the simpler strerror implementation.
34225         * modules/strerror (Depends-on): Add intprops.
34226
34227 2007-10-09  Eric Blake  <ebb9@byu.net>
34228
34229         Silence test-fpending.
34230         * modules/fpending-tests (Files): Add wrapper script.
34231         * tests/test-fpending.sh: New file.
34232
34233 2007-10-09  Bruno Haible  <bruno@clisp.org>
34234
34235         * MODULES.html.sh (func_module): Don't create a hyperlink for
34236         function names like 'printf_frexp'.
34237         (Misc): Add crc, memxor.
34238         (Characteristics of floating types): New section.
34239         (Mathematics): Add ceilf, ceill, floorf, floorl, frexpl-nolibm,
34240         isnanf-nolibm, signbit, trunc, truncf, truncl.
34241         (Enhancements for ISO C 99 functions): New subsection Input/output.
34242         (Support for systems lacking POSIX:2001): Add arpa_inet, calloc-posix,
34243         fcntl, fopen, freopen, fseek, fseeko, ftell, ftello, iconv_open,
34244         locale, malloc-posix, netinet_in, open, realloc-posix, signal, sleep.
34245         (Compatibility checks for POSIX:2001 functions): Add clock-time.
34246         (Enhancements for POSIX:2001 functions): Add chdir-long.
34247         (File system functions): Add areadlink, chdir-safer, read-file.
34248         Remove cycle-check.
34249         (File system as inode set): New section.
34250         (Date and time): Add gethrxtime.
34251         (Multithreading): Add openmp.
34252         (Internationalization functions): Add localename.
34253         (Unicode string functions): Add unistr/u*-mbsnlen.
34254         (Support for maintaining and releasing projects): Add git-version-gen.
34255         (Lone files): Remove directories.
34256
34257 2007-10-08  Ben Pfaff  <blp@gnu.org>
34258
34259         * lib/xmalloca.h: Fix typo in comment.
34260
34261 2007-10-08  Paul Eggert  <eggert@cs.ucla.edu>
34262
34263         * lib/xnanosleep.c (xnanosleep): Don't assume GCC 4.3.0 behavior
34264         when avoiding problems with integer overflow.  Use a portable test
34265         instead.
34266
34267 2007-10-08  Simon Josefsson  <simon@josefsson.org>
34268
34269         * modules/dummy (License): Change to LGPLv2+.
34270         * modules/float (License): Likewise
34271         * modules/realloc (License): Likewise
34272         * modules/stdlib (License): Likewise
34273
34274 2007-10-07  Bruno Haible  <bruno@clisp.org>
34275
34276         * trunc.c (TWO_MANT_DIG): Change type to DOUBLE.
34277         * floor.c (TWO_MANT_DIG): Likewise.
34278         * ceil.c (TWO_MANT_DIG): Likewise.
34279         Reported by Ben Pfaff.
34280
34281 2007-10-07  Bruno Haible  <bruno@clisp.org>
34282
34283         Avoid gcc warnings "declaration of 'exp' shadows a global declaration".
34284         * lib/math.in.h (frexp, frexpl): Change parameter name to 'expptr'.
34285         * lib/frexp.c (FUNC): Likewise.
34286         * lib/printf-frexp.h (printf_frexp): Likewise.
34287         * lib/printf-frexpl.h (printf_frexpl): Likewise.
34288         * lib/printf-frexp.c (FUNC): Likewise.
34289         Suggested by Jim Meyering.
34290
34291 2007-10-07  Jim Meyering  <meyering@redhat.com>
34292
34293         Make xnanosleep's integer overflow test more robust.
34294         * lib/xnanosleep.c (xnanosleep): Declare a temporary to be "volatile",
34295         so that gcc-4.3.0 doesn't optimize away this test for overflow.
34296
34297 2007-10-07  Bruno Haible  <bruno@clisp.org>
34298
34299         * NEWS: Mention the license change.
34300
34301         * doc/gnulib-intro.texi (Copyright): Update the meaning of the license
34302         abbreviations in the modules files.
34303
34304         Change copyright notice from GPLv2+ to GPLv3+.
34305         * README: Change copyright notice.
34306         * MODULES.html.sh: Likewise.
34307         * build-aux/bootstrap.conf: Likewise.
34308         * build-aux/config.libpath: Likewise.
34309         * build-aux/csharpcomp.sh.in: Likewise.
34310         * build-aux/csharpexec.sh.in: Likewise.
34311         * build-aux/install-reloc: Likewise.
34312         * build-aux/javacomp.sh.in: Likewise.
34313         * build-aux/javaexec.sh.in: Likewise.
34314         * build-aux/ldd.sh.in: Likewise.
34315         * build-aux/reloc-ldflags: Likewise.
34316         * build-aux/relocatable.sh.in: Likewise.
34317         * build-aux/x-to-1.in: Likewise.
34318         * check-module: Likewise.
34319         * config/srclistvars.sh: Likewise.
34320         * gnulib-tool: Likewise.
34321         * lib/acl-internal.h: Likewise.
34322         * lib/acl.c: Likewise.
34323         * lib/acl.h: Likewise.
34324         * lib/acl_entries.c: Likewise.
34325         * lib/areadlink-with-size.c: Likewise.
34326         * lib/areadlink.c: Likewise.
34327         * lib/areadlink.h: Likewise.
34328         * lib/argmatch.c: Likewise.
34329         * lib/argmatch.h: Likewise.
34330         * lib/argp-ba.c: Likewise.
34331         * lib/argp-eexst.c: Likewise.
34332         * lib/argp-fmtstream.c: Likewise.
34333         * lib/argp-fmtstream.h: Likewise.
34334         * lib/argp-fs-xinl.c: Likewise.
34335         * lib/argp-help.c: Likewise.
34336         * lib/argp-namefrob.h: Likewise.
34337         * lib/argp-parse.c: Likewise.
34338         * lib/argp-pin.c: Likewise.
34339         * lib/argp-pv.c: Likewise.
34340         * lib/argp-pvh.c: Likewise.
34341         * lib/argp-xinl.c: Likewise.
34342         * lib/argp.h: Likewise.
34343         * lib/at-func.c: Likewise.
34344         * lib/atanl.c: Likewise.
34345         * lib/backupfile.c: Likewise.
34346         * lib/backupfile.h: Likewise.
34347         * lib/basename.c: Likewise.
34348         * lib/binary-io.h: Likewise.
34349         * lib/byteswap.in.h: Likewise.
34350         * lib/c-stack.c: Likewise.
34351         * lib/c-stack.h: Likewise.
34352         * lib/c-strcasestr.c: Likewise.
34353         * lib/c-strcasestr.h: Likewise.
34354         * lib/c-strstr.c: Likewise.
34355         * lib/c-strstr.h: Likewise.
34356         * lib/c-strtod.c: Likewise.
34357         * lib/calloc.c: Likewise.
34358         * lib/canon-host.c: Likewise.
34359         * lib/canon-host.h: Likewise.
34360         * lib/canonicalize-lgpl.c: Likewise.
34361         * lib/canonicalize.c: Likewise.
34362         * lib/canonicalize.h: Likewise.
34363         * lib/ceil.c: Likewise.
34364         * lib/ceilf.c: Likewise.
34365         * lib/ceill.c: Likewise.
34366         * lib/chdir-long.c: Likewise.
34367         * lib/chdir-long.h: Likewise.
34368         * lib/chdir-safer.c: Likewise.
34369         * lib/chdir-safer.h: Likewise.
34370         * lib/chown.c: Likewise.
34371         * lib/classpath.c: Likewise.
34372         * lib/classpath.h: Likewise.
34373         * lib/clean-temp.c: Likewise.
34374         * lib/clean-temp.h: Likewise.
34375         * lib/cloexec.c: Likewise.
34376         * lib/close-stream.c: Likewise.
34377         * lib/closein.c: Likewise.
34378         * lib/closein.h: Likewise.
34379         * lib/closeout.c: Likewise.
34380         * lib/closeout.h: Likewise.
34381         * lib/concat-filename.c: Likewise.
34382         * lib/copy-file.c: Likewise.
34383         * lib/copy-file.h: Likewise.
34384         * lib/count-one-bits.h: Likewise.
34385         * lib/crc.c: Likewise.
34386         * lib/crc.h: Likewise.
34387         * lib/creat-safer.c: Likewise.
34388         * lib/csharpcomp.c: Likewise.
34389         * lib/csharpcomp.h: Likewise.
34390         * lib/csharpexec.c: Likewise.
34391         * lib/csharpexec.h: Likewise.
34392         * lib/cycle-check.c: Likewise.
34393         * lib/cycle-check.h: Likewise.
34394         * lib/diacrit.c: Likewise.
34395         * lib/diacrit.h: Likewise.
34396         * lib/diffseq.h: Likewise.
34397         * lib/dirchownmod.c: Likewise.
34398         * lib/dirent.in.h: Likewise.
34399         * lib/dirfd.c: Likewise.
34400         * lib/dirfd.h: Likewise.
34401         * lib/dirname.c: Likewise.
34402         * lib/dirname.h: Likewise.
34403         * lib/dummy.c: Likewise.
34404         * lib/dup-safer.c: Likewise.
34405         * lib/dup2.c: Likewise.
34406         * lib/eealloc.h: Likewise.
34407         * lib/error.c: Likewise.
34408         * lib/error.h: Likewise.
34409         * lib/euidaccess.c: Likewise.
34410         * lib/exclude.c: Likewise.
34411         * lib/exclude.h: Likewise.
34412         * lib/execute.c: Likewise.
34413         * lib/execute.h: Likewise.
34414         * lib/exitfail.c: Likewise.
34415         * lib/exitfail.h: Likewise.
34416         * lib/expl.c: Likewise.
34417         * lib/fatal-signal.c: Likewise.
34418         * lib/fatal-signal.h: Likewise.
34419         * lib/fbufmode.c: Likewise.
34420         * lib/fbufmode.h: Likewise.
34421         * lib/fchdir.c: Likewise.
34422         * lib/fchmodat.c: Likewise.
34423         * lib/fchownat.c: Likewise.
34424         * lib/fcntl--.h: Likewise.
34425         * lib/fcntl-safer.h: Likewise.
34426         * lib/fcntl.in.h: Likewise.
34427         * lib/fd-safer.c: Likewise.
34428         * lib/fflush.c: Likewise.
34429         * lib/file-has-acl.c: Likewise.
34430         * lib/file-set.c: Likewise.
34431         * lib/file-type.c: Likewise.
34432         * lib/file-type.h: Likewise.
34433         * lib/fileblocks.c: Likewise.
34434         * lib/filemode.c: Likewise.
34435         * lib/filemode.h: Likewise.
34436         * lib/filename.h: Likewise.
34437         * lib/filenamecat.c: Likewise.
34438         * lib/filenamecat.h: Likewise.
34439         * lib/findprog.c: Likewise.
34440         * lib/findprog.h: Likewise.
34441         * lib/float.in.h: Likewise.
34442         * lib/floor.c: Likewise.
34443         * lib/floorf.c: Likewise.
34444         * lib/floorl.c: Likewise.
34445         * lib/fopen-safer.c: Likewise.
34446         * lib/fopen.c: Likewise.
34447         * lib/fpending.c: Likewise.
34448         * lib/fpending.h: Likewise.
34449         * lib/fprintf.c: Likewise.
34450         * lib/fprintftime.h: Likewise.
34451         * lib/fpucw.h: Likewise.
34452         * lib/fpurge.c: Likewise.
34453         * lib/fpurge.h: Likewise.
34454         * lib/freadable.c: Likewise.
34455         * lib/freadable.h: Likewise.
34456         * lib/freadahead.c: Likewise.
34457         * lib/freadahead.h: Likewise.
34458         * lib/freading.c: Likewise.
34459         * lib/freading.h: Likewise.
34460         * lib/free.c: Likewise.
34461         * lib/freopen.c: Likewise.
34462         * lib/frexp.c: Likewise.
34463         * lib/frexpl.c: Likewise.
34464         * lib/fseek.c: Likewise.
34465         * lib/fseterr.c: Likewise.
34466         * lib/fseterr.h: Likewise.
34467         * lib/fstatat.c: Likewise.
34468         * lib/fstrcmp.c: Likewise.
34469         * lib/fstrcmp.h: Likewise.
34470         * lib/fsusage.c: Likewise.
34471         * lib/fsusage.h: Likewise.
34472         * lib/ftell.c: Likewise.
34473         * lib/ftello.c: Likewise.
34474         * lib/fts-cycle.c: Likewise.
34475         * lib/fts.c: Likewise.
34476         * lib/fts_.h: Likewise.
34477         * lib/full-read.c: Likewise.
34478         * lib/full-read.h: Likewise.
34479         * lib/full-write.c: Likewise.
34480         * lib/full-write.h: Likewise.
34481         * lib/fwritable.c: Likewise.
34482         * lib/fwritable.h: Likewise.
34483         * lib/fwriteerror.c: Likewise.
34484         * lib/fwriteerror.h: Likewise.
34485         * lib/fwriting.c: Likewise.
34486         * lib/fwriting.h: Likewise.
34487         * lib/gcd.c: Likewise.
34488         * lib/gcd.h: Likewise.
34489         * lib/getcwd.c: Likewise.
34490         * lib/getdate.h: Likewise.
34491         * lib/getdate.y: Likewise.
34492         * lib/getdomainname.c: Likewise.
34493         * lib/getdomainname.h: Likewise.
34494         * lib/getgroups.c: Likewise.
34495         * lib/gethostname.c: Likewise.
34496         * lib/gethrxtime.c: Likewise.
34497         * lib/gethrxtime.h: Likewise.
34498         * lib/getloadavg.c: Likewise.
34499         * lib/getndelim2.c: Likewise.
34500         * lib/getndelim2.h: Likewise.
34501         * lib/getnline.c: Likewise.
34502         * lib/getnline.h: Likewise.
34503         * lib/getopt.c: Likewise.
34504         * lib/getopt.in.h: Likewise.
34505         * lib/getopt1.c: Likewise.
34506         * lib/getopt_int.h: Likewise.
34507         * lib/getpagesize.h: Likewise.
34508         * lib/getsubopt.c: Likewise.
34509         * lib/gettime.c: Likewise.
34510         * lib/getugroups.c: Likewise.
34511         * lib/getugroups.h: Likewise.
34512         * lib/getusershell.c: Likewise.
34513         * lib/gl_anyavltree_list1.h: Likewise.
34514         * lib/gl_anyavltree_list2.h: Likewise.
34515         * lib/gl_anyhash_list1.h: Likewise.
34516         * lib/gl_anyhash_list2.h: Likewise.
34517         * lib/gl_anylinked_list1.h: Likewise.
34518         * lib/gl_anylinked_list2.h: Likewise.
34519         * lib/gl_anyrbtree_list1.h: Likewise.
34520         * lib/gl_anyrbtree_list2.h: Likewise.
34521         * lib/gl_anytree_list1.h: Likewise.
34522         * lib/gl_anytree_list2.h: Likewise.
34523         * lib/gl_anytree_oset.h: Likewise.
34524         * lib/gl_anytreehash_list1.h: Likewise.
34525         * lib/gl_anytreehash_list2.h: Likewise.
34526         * lib/gl_array_list.c: Likewise.
34527         * lib/gl_array_list.h: Likewise.
34528         * lib/gl_array_oset.c: Likewise.
34529         * lib/gl_array_oset.h: Likewise.
34530         * lib/gl_avltree_list.c: Likewise.
34531         * lib/gl_avltree_list.h: Likewise.
34532         * lib/gl_avltree_oset.c: Likewise.
34533         * lib/gl_avltree_oset.h: Likewise.
34534         * lib/gl_avltreehash_list.c: Likewise.
34535         * lib/gl_avltreehash_list.h: Likewise.
34536         * lib/gl_carray_list.c: Likewise.
34537         * lib/gl_carray_list.h: Likewise.
34538         * lib/gl_linked_list.c: Likewise.
34539         * lib/gl_linked_list.h: Likewise.
34540         * lib/gl_linkedhash_list.c: Likewise.
34541         * lib/gl_linkedhash_list.h: Likewise.
34542         * lib/gl_list.c: Likewise.
34543         * lib/gl_list.h: Likewise.
34544         * lib/gl_oset.c: Likewise.
34545         * lib/gl_oset.h: Likewise.
34546         * lib/gl_rbtree_list.c: Likewise.
34547         * lib/gl_rbtree_list.h: Likewise.
34548         * lib/gl_rbtree_oset.c: Likewise.
34549         * lib/gl_rbtree_oset.h: Likewise.
34550         * lib/gl_rbtreehash_list.c: Likewise.
34551         * lib/gl_rbtreehash_list.h: Likewise.
34552         * lib/gl_sublist.c: Likewise.
34553         * lib/gl_sublist.h: Likewise.
34554         * lib/group-member.c: Likewise.
34555         * lib/group-member.h: Likewise.
34556         * lib/hard-locale.c: Likewise.
34557         * lib/hard-locale.h: Likewise.
34558         * lib/hash-pjw.c: Likewise.
34559         * lib/hash-pjw.h: Likewise.
34560         * lib/hash-triple.c: Likewise.
34561         * lib/hash.c: Likewise.
34562         * lib/hash.h: Likewise.
34563         * lib/human.c: Likewise.
34564         * lib/human.h: Likewise.
34565         * lib/i-ring.c: Likewise.
34566         * lib/i-ring.h: Likewise.
34567         * lib/idcache.c: Likewise.
34568         * lib/imaxabs.c: Likewise.
34569         * lib/imaxdiv.c: Likewise.
34570         * lib/inet_pton.c: Likewise.
34571         * lib/inet_pton.h: Likewise.
34572         * lib/intprops.h: Likewise.
34573         * lib/inttostr.c: Likewise.
34574         * lib/inttostr.h: Likewise.
34575         * lib/inttypes.in.h: Likewise.
34576         * lib/isapipe.c: Likewise.
34577         * lib/isdir.c: Likewise.
34578         * lib/isnan.c: Likewise.
34579         * lib/isnan.h: Likewise.
34580         * lib/isnanf.c: Likewise.
34581         * lib/isnanf.h: Likewise.
34582         * lib/isnanl-nolibm.h: Likewise.
34583         * lib/isnanl.c: Likewise.
34584         * lib/isnanl.h: Likewise.
34585         * lib/javacomp.c: Likewise.
34586         * lib/javacomp.h: Likewise.
34587         * lib/javaexec.c: Likewise.
34588         * lib/javaexec.h: Likewise.
34589         * lib/javaversion.c: Likewise.
34590         * lib/javaversion.h: Likewise.
34591         * lib/javaversion.java: Likewise.
34592         * lib/lbrkprop.h: Likewise.
34593         * lib/lchmod.h: Likewise.
34594         * lib/lchown.c: Likewise.
34595         * lib/ldexpl.c: Likewise.
34596         * lib/linebreak.c: Likewise.
34597         * lib/linebreak.h: Likewise.
34598         * lib/linebuffer.c: Likewise.
34599         * lib/linebuffer.h: Likewise.
34600         * lib/locale.in.h: Likewise.
34601         * lib/logl.c: Likewise.
34602         * lib/long-options.c: Likewise.
34603         * lib/long-options.h: Likewise.
34604         * lib/lstat.c: Likewise.
34605         * lib/lstat.h: Likewise.
34606         * lib/math.in.h: Likewise.
34607         * lib/mbchar.c: Likewise.
34608         * lib/mbchar.h: Likewise.
34609         * lib/mbfile.h: Likewise.
34610         * lib/mbiter.h: Likewise.
34611         * lib/mbscasecmp.c: Likewise.
34612         * lib/mbscasestr.c: Likewise.
34613         * lib/mbschr.c: Likewise.
34614         * lib/mbscspn.c: Likewise.
34615         * lib/mbslen.c: Likewise.
34616         * lib/mbsncasecmp.c: Likewise.
34617         * lib/mbsnlen.c: Likewise.
34618         * lib/mbspbrk.c: Likewise.
34619         * lib/mbspcasecmp.c: Likewise.
34620         * lib/mbsrchr.c: Likewise.
34621         * lib/mbssep.c: Likewise.
34622         * lib/mbsspn.c: Likewise.
34623         * lib/mbsstr.c: Likewise.
34624         * lib/mbstok_r.c: Likewise.
34625         * lib/mbswidth.c: Likewise.
34626         * lib/mbswidth.h: Likewise.
34627         * lib/mbuiter.h: Likewise.
34628         * lib/memcasecmp.c: Likewise.
34629         * lib/memcasecmp.h: Likewise.
34630         * lib/memchr.c: Likewise.
34631         * lib/memcmp.c: Likewise.
34632         * lib/memcoll.c: Likewise.
34633         * lib/memcoll.h: Likewise.
34634         * lib/memcpy.c: Likewise.
34635         * lib/memrchr.c: Likewise.
34636         * lib/mkancesdirs.c: Likewise.
34637         * lib/mkdir-p.c: Likewise.
34638         * lib/mkdir-p.h: Likewise.
34639         * lib/mkdir.c: Likewise.
34640         * lib/mkdirat.c: Likewise.
34641         * lib/mkdtemp.c: Likewise.
34642         * lib/mkstemp-safer.c: Likewise.
34643         * lib/mkstemp.c: Likewise.
34644         * lib/modechange.c: Likewise.
34645         * lib/modechange.h: Likewise.
34646         * lib/mountlist.c: Likewise.
34647         * lib/mountlist.h: Likewise.
34648         * lib/mpsort.c: Likewise.
34649         * lib/nanosleep.c: Likewise.
34650         * lib/obstack.c: Likewise.
34651         * lib/obstack.h: Likewise.
34652         * lib/open-safer.c: Likewise.
34653         * lib/open.c: Likewise.
34654         * lib/openat-die.c: Likewise.
34655         * lib/openat-priv.h: Likewise.
34656         * lib/openat-proc.c: Likewise.
34657         * lib/openat.c: Likewise.
34658         * lib/openat.h: Likewise.
34659         * lib/pagealign_alloc.c: Likewise.
34660         * lib/pagealign_alloc.h: Likewise.
34661         * lib/physmem.c: Likewise.
34662         * lib/physmem.h: Likewise.
34663         * lib/pipe-safer.c: Likewise.
34664         * lib/pipe.c: Likewise.
34665         * lib/pipe.h: Likewise.
34666         * lib/posixtm.c: Likewise.
34667         * lib/posixtm.h: Likewise.
34668         * lib/posixver.c: Likewise.
34669         * lib/printf-frexp.c: Likewise.
34670         * lib/printf-frexp.h: Likewise.
34671         * lib/printf-frexpl.c: Likewise.
34672         * lib/printf-frexpl.h: Likewise.
34673         * lib/printf.c: Likewise.
34674         * lib/progname.c: Likewise.
34675         * lib/progname.h: Likewise.
34676         * lib/progreloc.c: Likewise.
34677         * lib/putenv.c: Likewise.
34678         * lib/quote.c: Likewise.
34679         * lib/quote.h: Likewise.
34680         * lib/quotearg.c: Likewise.
34681         * lib/quotearg.h: Likewise.
34682         * lib/raise.c: Likewise.
34683         * lib/readline.c: Likewise.
34684         * lib/readline.h: Likewise.
34685         * lib/readlink.c: Likewise.
34686         * lib/readtokens.c: Likewise.
34687         * lib/readtokens.h: Likewise.
34688         * lib/readtokens0.c: Likewise.
34689         * lib/readtokens0.h: Likewise.
34690         * lib/readutmp.c: Likewise.
34691         * lib/readutmp.h: Likewise.
34692         * lib/realloc.c: Likewise.
34693         * lib/relocwrapper.c: Likewise.
34694         * lib/rename-dest-slash.c: Likewise.
34695         * lib/rename.c: Likewise.
34696         * lib/rmdir.c: Likewise.
34697         * lib/rpmatch.c: Likewise.
34698         * lib/safe-read.c: Likewise.
34699         * lib/safe-read.h: Likewise.
34700         * lib/safe-write.c: Likewise.
34701         * lib/safe-write.h: Likewise.
34702         * lib/same-inode.h: Likewise.
34703         * lib/same.c: Likewise.
34704         * lib/same.h: Likewise.
34705         * lib/save-cwd.c: Likewise.
34706         * lib/save-cwd.h: Likewise.
34707         * lib/savedir.c: Likewise.
34708         * lib/savedir.h: Likewise.
34709         * lib/savewd.c: Likewise.
34710         * lib/savewd.h: Likewise.
34711         * lib/search.in.h: Likewise.
34712         * lib/setenv.c: Likewise.
34713         * lib/setenv.h: Likewise.
34714         * lib/settime.c: Likewise.
34715         * lib/sh-quote.c: Likewise.
34716         * lib/sh-quote.h: Likewise.
34717         * lib/sig2str.c: Likewise.
34718         * lib/sig2str.h: Likewise.
34719         * lib/signal.in.h: Likewise.
34720         * lib/signbitd.c: Likewise.
34721         * lib/signbitf.c: Likewise.
34722         * lib/signbitl.c: Likewise.
34723         * lib/sigprocmask.c: Likewise.
34724         * lib/sincosl.c: Likewise.
34725         * lib/sleep.c: Likewise.
34726         * lib/sprintf.c: Likewise.
34727         * lib/sqrtl.c: Likewise.
34728         * lib/stat-time.h: Likewise.
34729         * lib/stdio--.h: Likewise.
34730         * lib/stdio-safer.h: Likewise.
34731         * lib/stdlib--.h: Likewise.
34732         * lib/stdlib-safer.h: Likewise.
34733         * lib/stdlib.in.h: Likewise.
34734         * lib/stpcpy.c: Likewise.
34735         * lib/stpncpy.c: Likewise.
34736         * lib/strchrnul.c: Likewise.
34737         * lib/strcspn.c: Likewise.
34738         * lib/strerror.c: Likewise.
34739         * lib/strftime.c: Likewise.
34740         * lib/strftime.h: Likewise.
34741         * lib/striconveh.c: Likewise.
34742         * lib/striconveh.h: Likewise.
34743         * lib/striconveha.c: Likewise.
34744         * lib/striconveha.h: Likewise.
34745         * lib/stripslash.c: Likewise.
34746         * lib/strnlen1.c: Likewise.
34747         * lib/strnlen1.h: Likewise.
34748         * lib/strtod.c: Likewise.
34749         * lib/strtoimax.c: Likewise.
34750         * lib/strtok_r.c: Likewise.
34751         * lib/strtol.c: Likewise.
34752         * lib/strtoll.c: Likewise.
34753         * lib/strtoul.c: Likewise.
34754         * lib/strtoull.c: Likewise.
34755         * lib/sysexits.in.h: Likewise.
34756         * lib/tempname.c: Likewise.
34757         * lib/tempname.h: Likewise.
34758         * lib/timespec.h: Likewise.
34759         * lib/tls.c: Likewise.
34760         * lib/tls.h: Likewise.
34761         * lib/tmpdir.c: Likewise.
34762         * lib/tmpdir.h: Likewise.
34763         * lib/tmpfile-safer.c: Likewise.
34764         * lib/tmpfile.c: Likewise.
34765         * lib/trigl.c: Likewise.
34766         * lib/trigl.h: Likewise.
34767         * lib/trim.c: Likewise.
34768         * lib/trim.h: Likewise.
34769         * lib/trunc.c: Likewise.
34770         * lib/truncf.c: Likewise.
34771         * lib/truncl.c: Likewise.
34772         * lib/tsearch.c: Likewise.
34773         * lib/unicodeio.c: Likewise.
34774         * lib/unicodeio.h: Likewise.
34775         * lib/unistd--.h: Likewise.
34776         * lib/unistd-safer.h: Likewise.
34777         * lib/unistdio/ulc-fprintf.c: Likewise.
34778         * lib/unistdio/ulc-vfprintf.c: Likewise.
34779         * lib/unlinkdir.c: Likewise.
34780         * lib/unlinkdir.h: Likewise.
34781         * lib/unlocked-io.h: Likewise.
34782         * lib/unsetenv.c: Likewise.
34783         * lib/userspec.c: Likewise.
34784         * lib/utime.c: Likewise.
34785         * lib/utimecmp.c: Likewise.
34786         * lib/utimecmp.h: Likewise.
34787         * lib/utimens.c: Likewise.
34788         * lib/verify.h: Likewise.
34789         * lib/verror.c: Likewise.
34790         * lib/verror.h: Likewise.
34791         * lib/version-etc-fsf.c: Likewise.
34792         * lib/version-etc.c: Likewise.
34793         * lib/version-etc.h: Likewise.
34794         * lib/vfprintf.c: Likewise.
34795         * lib/vprintf.c: Likewise.
34796         * lib/vsprintf.c: Likewise.
34797         * lib/w32spawn.h: Likewise.
34798         * lib/wait-process.c: Likewise.
34799         * lib/wait-process.h: Likewise.
34800         * lib/wcwidth.c: Likewise.
34801         * lib/write-any-file.c: Likewise.
34802         * lib/xalloc-die.c: Likewise.
34803         * lib/xalloc.h: Likewise.
34804         * lib/xasprintf.c: Likewise.
34805         * lib/xgetcwd.c: Likewise.
34806         * lib/xgetcwd.h: Likewise.
34807         * lib/xgetdomainname.c: Likewise.
34808         * lib/xgetdomainname.h: Likewise.
34809         * lib/xgethostname.c: Likewise.
34810         * lib/xmalloc.c: Likewise.
34811         * lib/xmalloca.c: Likewise.
34812         * lib/xmalloca.h: Likewise.
34813         * lib/xmemcoll.c: Likewise.
34814         * lib/xnanosleep.c: Likewise.
34815         * lib/xreadlink.c: Likewise.
34816         * lib/xreadlink.h: Likewise.
34817         * lib/xsetenv.c: Likewise.
34818         * lib/xsetenv.h: Likewise.
34819         * lib/xstriconv.c: Likewise.
34820         * lib/xstriconv.h: Likewise.
34821         * lib/xstrndup.c: Likewise.
34822         * lib/xstrndup.h: Likewise.
34823         * lib/xstrtod.c: Likewise.
34824         * lib/xstrtod.h: Likewise.
34825         * lib/xstrtol-error.c: Likewise.
34826         * lib/xstrtol.c: Likewise.
34827         * lib/xstrtol.h: Likewise.
34828         * lib/xtime.h: Likewise.
34829         * lib/xvasprintf.c: Likewise.
34830         * lib/xvasprintf.h: Likewise.
34831         * lib/yesno.c: Likewise.
34832         * lib/yesno.h: Likewise.
34833         * posix-modules: Likewise.
34834         * tests/test-alloca-opt.c: Likewise.
34835         * tests/test-arcfour.c: Likewise.
34836         * tests/test-arctwo.c: Likewise.
34837         * tests/test-argmatch.c: Likewise.
34838         * tests/test-argp-2.sh: Likewise.
34839         * tests/test-argp.c: Likewise.
34840         * tests/test-arpa_inet.c: Likewise.
34841         * tests/test-array_list.c: Likewise.
34842         * tests/test-array_oset.c: Likewise.
34843         * tests/test-atexit.c: Likewise.
34844         * tests/test-avltree_list.c: Likewise.
34845         * tests/test-avltree_oset.c: Likewise.
34846         * tests/test-avltreehash_list.c: Likewise.
34847         * tests/test-base64.c: Likewise.
34848         * tests/test-binary-io.c: Likewise.
34849         * tests/test-byteswap.c: Likewise.
34850         * tests/test-c-ctype.c: Likewise.
34851         * tests/test-c-strcasecmp.c: Likewise.
34852         * tests/test-c-strcasestr.c: Likewise.
34853         * tests/test-c-strncasecmp.c: Likewise.
34854         * tests/test-c-strstr.c: Likewise.
34855         * tests/test-canonicalize-lgpl.c: Likewise.
34856         * tests/test-canonicalize.c: Likewise.
34857         * tests/test-carray_list.c: Likewise.
34858         * tests/test-ceilf.c: Likewise.
34859         * tests/test-ceill.c: Likewise.
34860         * tests/test-count-one-bits.c: Likewise.
34861         * tests/test-crc.c: Likewise.
34862         * tests/test-dirname.c: Likewise.
34863         * tests/test-fbufmode.c: Likewise.
34864         * tests/test-fcntl.c: Likewise.
34865         * tests/test-fflush.c: Likewise.
34866         * tests/test-floorf.c: Likewise.
34867         * tests/test-floorl.c: Likewise.
34868         * tests/test-fopen.c: Likewise.
34869         * tests/test-fprintf-posix.c: Likewise.
34870         * tests/test-fprintf-posix.h: Likewise.
34871         * tests/test-fpurge.c: Likewise.
34872         * tests/test-freadable.c: Likewise.
34873         * tests/test-freadahead.c: Likewise.
34874         * tests/test-freading.c: Likewise.
34875         * tests/test-freopen.c: Likewise.
34876         * tests/test-frexp.c: Likewise.
34877         * tests/test-frexpl.c: Likewise.
34878         * tests/test-fseek.c: Likewise.
34879         * tests/test-fseeko.c: Likewise.
34880         * tests/test-fseterr.c: Likewise.
34881         * tests/test-fstrcmp.c: Likewise.
34882         * tests/test-ftell.c: Likewise.
34883         * tests/test-ftello.c: Likewise.
34884         * tests/test-fwritable.c: Likewise.
34885         * tests/test-fwriting.c: Likewise.
34886         * tests/test-getaddrinfo.c: Likewise.
34887         * tests/test-getpass.c: Likewise.
34888         * tests/test-gettimeofday.c: Likewise.
34889         * tests/test-hmac-md5.c: Likewise.
34890         * tests/test-hmac-sha1.c: Likewise.
34891         * tests/test-iconv.c: Likewise.
34892         * tests/test-iconvme.c: Likewise.
34893         * tests/test-inttypes.c: Likewise.
34894         * tests/test-isnan.c: Likewise.
34895         * tests/test-isnanf.c: Likewise.
34896         * tests/test-isnanl-nolibm.c: Likewise.
34897         * tests/test-isnanl.c: Likewise.
34898         * tests/test-isnanl.h: Likewise.
34899         * tests/test-ldexpl.c: Likewise.
34900         * tests/test-linked_list.c: Likewise.
34901         * tests/test-linkedhash_list.c: Likewise.
34902         * tests/test-locale.c: Likewise.
34903         * tests/test-localename.c: Likewise.
34904         * tests/test-lock.c: Likewise.
34905         * tests/test-lseek.c: Likewise.
34906         * tests/test-malloca.c: Likewise.
34907         * tests/test-math.c: Likewise.
34908         * tests/test-mbscasecmp.c: Likewise.
34909         * tests/test-mbscasestr1.c: Likewise.
34910         * tests/test-mbscasestr2.c: Likewise.
34911         * tests/test-mbscasestr3.c: Likewise.
34912         * tests/test-mbscasestr4.c: Likewise.
34913         * tests/test-mbschr.c: Likewise.
34914         * tests/test-mbscspn.c: Likewise.
34915         * tests/test-mbsncasecmp.c: Likewise.
34916         * tests/test-mbspbrk.c: Likewise.
34917         * tests/test-mbspcasecmp.c: Likewise.
34918         * tests/test-mbsrchr.c: Likewise.
34919         * tests/test-mbsspn.c: Likewise.
34920         * tests/test-mbsstr1.c: Likewise.
34921         * tests/test-mbsstr2.c: Likewise.
34922         * tests/test-mbsstr3.c: Likewise.
34923         * tests/test-md5.c: Likewise.
34924         * tests/test-memmem.c: Likewise.
34925         * tests/test-netinet_in.c: Likewise.
34926         * tests/test-open.c: Likewise.
34927         * tests/test-printf-frexp.c: Likewise.
34928         * tests/test-printf-frexpl.c: Likewise.
34929         * tests/test-printf-posix.c: Likewise.
34930         * tests/test-printf-posix.h: Likewise.
34931         * tests/test-rbtree_list.c: Likewise.
34932         * tests/test-rbtree_oset.c: Likewise.
34933         * tests/test-rbtreehash_list.c: Likewise.
34934         * tests/test-read-file.c: Likewise.
34935         * tests/test-rijndael.c: Likewise.
34936         * tests/test-search.c: Likewise.
34937         * tests/test-signbit.c: Likewise.
34938         * tests/test-sleep.c: Likewise.
34939         * tests/test-snprintf-posix.c: Likewise.
34940         * tests/test-snprintf-posix.h: Likewise.
34941         * tests/test-snprintf.c: Likewise.
34942         * tests/test-sprintf-posix.c: Likewise.
34943         * tests/test-sprintf-posix.h: Likewise.
34944         * tests/test-stat-time.c: Likewise.
34945         * tests/test-stdbool.c: Likewise.
34946         * tests/test-stdint.c: Likewise.
34947         * tests/test-stdio.c: Likewise.
34948         * tests/test-stdlib.c: Likewise.
34949         * tests/test-stpncpy.c: Likewise.
34950         * tests/test-strcasestr.c: Likewise.
34951         * tests/test-striconv.c: Likewise.
34952         * tests/test-striconveh.c: Likewise.
34953         * tests/test-striconveha.c: Likewise.
34954         * tests/test-string.c: Likewise.
34955         * tests/test-sys_select.c: Likewise.
34956         * tests/test-sys_socket.c: Likewise.
34957         * tests/test-sys_stat.c: Likewise.
34958         * tests/test-sys_time.c: Likewise.
34959         * tests/test-sysexits.c: Likewise.
34960         * tests/test-time.c: Likewise.
34961         * tests/test-tls.c: Likewise.
34962         * tests/test-trunc.c: Likewise.
34963         * tests/test-truncf.c: Likewise.
34964         * tests/test-truncl.c: Likewise.
34965         * tests/test-unistd.c: Likewise.
34966         * tests/test-vasnprintf-posix.c: Likewise.
34967         * tests/test-vasnprintf-posix2.c: Likewise.
34968         * tests/test-vasnprintf.c: Likewise.
34969         * tests/test-vasprintf-posix.c: Likewise.
34970         * tests/test-vasprintf.c: Likewise.
34971         * tests/test-verify.c: Likewise.
34972         * tests/test-vfprintf-posix.c: Likewise.
34973         * tests/test-vprintf-posix.c: Likewise.
34974         * tests/test-vsnprintf-posix.c: Likewise.
34975         * tests/test-vsnprintf.c: Likewise.
34976         * tests/test-vsprintf-posix.c: Likewise.
34977         * tests/test-wchar.c: Likewise.
34978         * tests/test-wctype.c: Likewise.
34979         * tests/test-wcwidth.c: Likewise.
34980         * tests/test-xstrtol.c: Likewise.
34981         * tests/test-xvasprintf.c: Likewise.
34982         * tests/uniconv/test-u16-conv-from-enc.c: Likewise.
34983         * tests/uniconv/test-u16-conv-to-enc.c: Likewise.
34984         * tests/uniconv/test-u16-strconv-from-enc.c: Likewise.
34985         * tests/uniconv/test-u16-strconv-to-enc.c: Likewise.
34986         * tests/uniconv/test-u32-conv-from-enc.c: Likewise.
34987         * tests/uniconv/test-u32-conv-to-enc.c: Likewise.
34988         * tests/uniconv/test-u32-strconv-from-enc.c: Likewise.
34989         * tests/uniconv/test-u32-strconv-to-enc.c: Likewise.
34990         * tests/uniconv/test-u8-conv-from-enc.c: Likewise.
34991         * tests/uniconv/test-u8-conv-to-enc.c: Likewise.
34992         * tests/uniconv/test-u8-strconv-from-enc.c: Likewise.
34993         * tests/uniconv/test-u8-strconv-to-enc.c: Likewise.
34994         * tests/uniname/test-uninames.c: Likewise.
34995         * tests/unistdio/test-u16-asnprintf1.c: Likewise.
34996         * tests/unistdio/test-u16-asnprintf1.h: Likewise.
34997         * tests/unistdio/test-u16-printf1.h: Likewise.
34998         * tests/unistdio/test-u16-vasnprintf1.c: Likewise.
34999         * tests/unistdio/test-u16-vasnprintf2.c: Likewise.
35000         * tests/unistdio/test-u16-vasnprintf3.c: Likewise.
35001         * tests/unistdio/test-u16-vasprintf1.c: Likewise.
35002         * tests/unistdio/test-u16-vsnprintf1.c: Likewise.
35003         * tests/unistdio/test-u16-vsprintf1.c: Likewise.
35004         * tests/unistdio/test-u32-asnprintf1.c: Likewise.
35005         * tests/unistdio/test-u32-asnprintf1.h: Likewise.
35006         * tests/unistdio/test-u32-printf1.h: Likewise.
35007         * tests/unistdio/test-u32-vasnprintf1.c: Likewise.
35008         * tests/unistdio/test-u32-vasnprintf2.c: Likewise.
35009         * tests/unistdio/test-u32-vasnprintf3.c: Likewise.
35010         * tests/unistdio/test-u32-vasprintf1.c: Likewise.
35011         * tests/unistdio/test-u32-vsnprintf1.c: Likewise.
35012         * tests/unistdio/test-u32-vsprintf1.c: Likewise.
35013         * tests/unistdio/test-u8-asnprintf1.c: Likewise.
35014         * tests/unistdio/test-u8-asnprintf1.h: Likewise.
35015         * tests/unistdio/test-u8-printf1.h: Likewise.
35016         * tests/unistdio/test-u8-vasnprintf1.c: Likewise.
35017         * tests/unistdio/test-u8-vasnprintf2.c: Likewise.
35018         * tests/unistdio/test-u8-vasnprintf3.c: Likewise.
35019         * tests/unistdio/test-u8-vasprintf1.c: Likewise.
35020         * tests/unistdio/test-u8-vsnprintf1.c: Likewise.
35021         * tests/unistdio/test-u8-vsprintf1.c: Likewise.
35022         * tests/unistdio/test-ulc-asnprintf1.c: Likewise.
35023         * tests/unistdio/test-ulc-asnprintf1.h: Likewise.
35024         * tests/unistdio/test-ulc-printf1.h: Likewise.
35025         * tests/unistdio/test-ulc-vasnprintf1.c: Likewise.
35026         * tests/unistdio/test-ulc-vasnprintf2.c: Likewise.
35027         * tests/unistdio/test-ulc-vasnprintf3.c: Likewise.
35028         * tests/unistdio/test-ulc-vasprintf1.c: Likewise.
35029         * tests/unistdio/test-ulc-vsnprintf1.c: Likewise.
35030         * tests/unistdio/test-ulc-vsprintf1.c: Likewise.
35031         * tests/uniwidth/test-u16-strwidth.c: Likewise.
35032         * tests/uniwidth/test-u16-width.c: Likewise.
35033         * tests/uniwidth/test-u32-strwidth.c: Likewise.
35034         * tests/uniwidth/test-u32-width.c: Likewise.
35035         * tests/uniwidth/test-u8-strwidth.c: Likewise.
35036         * tests/uniwidth/test-u8-width.c: Likewise.
35037         * tests/uniwidth/test-uc_width.c: Likewise.
35038         * config/srclist-update: Likewise.
35039         (fixlicense): Update to GPLv3+.
35040
35041         Change copyright notice from LGPLv2.1+ to LGPLv3+.
35042         * tests/test-tsearch.c: Change copyright notice.
35043
35044         Change copyright notice from LGPLv2.0+ to LGPLv3+.
35045         * lib/c-strcaseeq.h: Change copyright notice.
35046         * lib/streq.h: Likewise.
35047         * lib/uniconv.h: Likewise.
35048         * lib/uniconv/u-conv-from-enc.h: Likewise.
35049         * lib/uniconv/u-conv-to-enc.h: Likewise.
35050         * lib/uniconv/u-strconv-from-enc.h: Likewise.
35051         * lib/uniconv/u-strconv-to-enc.h: Likewise.
35052         * lib/uniconv/u16-conv-from-enc.c: Likewise.
35053         * lib/uniconv/u16-conv-to-enc.c: Likewise.
35054         * lib/uniconv/u16-strconv-from-enc.c: Likewise.
35055         * lib/uniconv/u16-strconv-from-locale.c: Likewise.
35056         * lib/uniconv/u16-strconv-to-enc.c: Likewise.
35057         * lib/uniconv/u16-strconv-to-locale.c: Likewise.
35058         * lib/uniconv/u32-conv-from-enc.c: Likewise.
35059         * lib/uniconv/u32-conv-to-enc.c: Likewise.
35060         * lib/uniconv/u32-strconv-from-enc.c: Likewise.
35061         * lib/uniconv/u32-strconv-from-locale.c: Likewise.
35062         * lib/uniconv/u32-strconv-to-enc.c: Likewise.
35063         * lib/uniconv/u32-strconv-to-locale.c: Likewise.
35064         * lib/uniconv/u8-conv-from-enc.c: Likewise.
35065         * lib/uniconv/u8-conv-to-enc.c: Likewise.
35066         * lib/uniconv/u8-strconv-from-enc.c: Likewise.
35067         * lib/uniconv/u8-strconv-from-locale.c: Likewise.
35068         * lib/uniconv/u8-strconv-to-enc.c: Likewise.
35069         * lib/uniconv/u8-strconv-to-locale.c: Likewise.
35070         * lib/uniname.h: Likewise.
35071         * lib/uniname/uniname.c: Likewise.
35072         * lib/unistdio.h: Likewise.
35073         * lib/unistdio/u-asnprintf.h: Likewise.
35074         * lib/unistdio/u-asprintf.h: Likewise.
35075         * lib/unistdio/u-printf-args.c: Likewise.
35076         * lib/unistdio/u-printf-args.h: Likewise.
35077         * lib/unistdio/u-printf-parse.h: Likewise.
35078         * lib/unistdio/u-snprintf.h: Likewise.
35079         * lib/unistdio/u-sprintf.h: Likewise.
35080         * lib/unistdio/u-vasprintf.h: Likewise.
35081         * lib/unistdio/u-vsnprintf.h: Likewise.
35082         * lib/unistdio/u-vsprintf.h: Likewise.
35083         * lib/unistdio/u16-asnprintf.c: Likewise.
35084         * lib/unistdio/u16-asprintf.c: Likewise.
35085         * lib/unistdio/u16-printf-parse.c: Likewise.
35086         * lib/unistdio/u16-snprintf.c: Likewise.
35087         * lib/unistdio/u16-sprintf.c: Likewise.
35088         * lib/unistdio/u16-u16-asnprintf.c: Likewise.
35089         * lib/unistdio/u16-u16-asprintf.c: Likewise.
35090         * lib/unistdio/u16-u16-snprintf.c: Likewise.
35091         * lib/unistdio/u16-u16-sprintf.c: Likewise.
35092         * lib/unistdio/u16-u16-vasnprintf.c: Likewise.
35093         * lib/unistdio/u16-u16-vasprintf.c: Likewise.
35094         * lib/unistdio/u16-u16-vsnprintf.c: Likewise.
35095         * lib/unistdio/u16-u16-vsprintf.c: Likewise.
35096         * lib/unistdio/u16-vasnprintf.c: Likewise.
35097         * lib/unistdio/u16-vasprintf.c: Likewise.
35098         * lib/unistdio/u16-vsnprintf.c: Likewise.
35099         * lib/unistdio/u16-vsprintf.c: Likewise.
35100         * lib/unistdio/u32-asnprintf.c: Likewise.
35101         * lib/unistdio/u32-asprintf.c: Likewise.
35102         * lib/unistdio/u32-printf-parse.c: Likewise.
35103         * lib/unistdio/u32-snprintf.c: Likewise.
35104         * lib/unistdio/u32-sprintf.c: Likewise.
35105         * lib/unistdio/u32-u32-asnprintf.c: Likewise.
35106         * lib/unistdio/u32-u32-asprintf.c: Likewise.
35107         * lib/unistdio/u32-u32-snprintf.c: Likewise.
35108         * lib/unistdio/u32-u32-sprintf.c: Likewise.
35109         * lib/unistdio/u32-u32-vasnprintf.c: Likewise.
35110         * lib/unistdio/u32-u32-vasprintf.c: Likewise.
35111         * lib/unistdio/u32-u32-vsnprintf.c: Likewise.
35112         * lib/unistdio/u32-u32-vsprintf.c: Likewise.
35113         * lib/unistdio/u32-vasnprintf.c: Likewise.
35114         * lib/unistdio/u32-vasprintf.c: Likewise.
35115         * lib/unistdio/u32-vsnprintf.c: Likewise.
35116         * lib/unistdio/u32-vsprintf.c: Likewise.
35117         * lib/unistdio/u8-asnprintf.c: Likewise.
35118         * lib/unistdio/u8-asprintf.c: Likewise.
35119         * lib/unistdio/u8-printf-parse.c: Likewise.
35120         * lib/unistdio/u8-snprintf.c: Likewise.
35121         * lib/unistdio/u8-sprintf.c: Likewise.
35122         * lib/unistdio/u8-u8-asnprintf.c: Likewise.
35123         * lib/unistdio/u8-u8-asprintf.c: Likewise.
35124         * lib/unistdio/u8-u8-snprintf.c: Likewise.
35125         * lib/unistdio/u8-u8-sprintf.c: Likewise.
35126         * lib/unistdio/u8-u8-vasnprintf.c: Likewise.
35127         * lib/unistdio/u8-u8-vasprintf.c: Likewise.
35128         * lib/unistdio/u8-u8-vsnprintf.c: Likewise.
35129         * lib/unistdio/u8-u8-vsprintf.c: Likewise.
35130         * lib/unistdio/u8-vasnprintf.c: Likewise.
35131         * lib/unistdio/u8-vasprintf.c: Likewise.
35132         * lib/unistdio/u8-vsnprintf.c: Likewise.
35133         * lib/unistdio/u8-vsprintf.c: Likewise.
35134         * lib/unistdio/ulc-asnprintf.c: Likewise.
35135         * lib/unistdio/ulc-asprintf.c: Likewise.
35136         * lib/unistdio/ulc-printf-parse.c: Likewise.
35137         * lib/unistdio/ulc-snprintf.c: Likewise.
35138         * lib/unistdio/ulc-sprintf.c: Likewise.
35139         * lib/unistdio/ulc-vasnprintf.c: Likewise.
35140         * lib/unistdio/ulc-vasprintf.c: Likewise.
35141         * lib/unistdio/ulc-vsnprintf.c: Likewise.
35142         * lib/unistdio/ulc-vsprintf.c: Likewise.
35143         * lib/unistr.h: Likewise.
35144         * lib/unistr/u-cpy-alloc.h: Likewise.
35145         * lib/unistr/u-cpy.h: Likewise.
35146         * lib/unistr/u-endswith.h: Likewise.
35147         * lib/unistr/u-move.h: Likewise.
35148         * lib/unistr/u-set.h: Likewise.
35149         * lib/unistr/u-startswith.h: Likewise.
35150         * lib/unistr/u-stpcpy.h: Likewise.
35151         * lib/unistr/u-stpncpy.h: Likewise.
35152         * lib/unistr/u-strcat.h: Likewise.
35153         * lib/unistr/u-strcpy.h: Likewise.
35154         * lib/unistr/u-strcspn.h: Likewise.
35155         * lib/unistr/u-strdup.h: Likewise.
35156         * lib/unistr/u-strlen.h: Likewise.
35157         * lib/unistr/u-strncat.h: Likewise.
35158         * lib/unistr/u-strncpy.h: Likewise.
35159         * lib/unistr/u-strnlen.h: Likewise.
35160         * lib/unistr/u-strpbrk.h: Likewise.
35161         * lib/unistr/u-strspn.h: Likewise.
35162         * lib/unistr/u-strstr.h: Likewise.
35163         * lib/unistr/u-strtok.h: Likewise.
35164         * lib/unistr/u16-check.c: Likewise.
35165         * lib/unistr/u16-chr.c: Likewise.
35166         * lib/unistr/u16-cmp.c: Likewise.
35167         * lib/unistr/u16-cpy-alloc.c: Likewise.
35168         * lib/unistr/u16-cpy.c: Likewise.
35169         * lib/unistr/u16-endswith.c: Likewise.
35170         * lib/unistr/u16-mblen.c: Likewise.
35171         * lib/unistr/u16-mbsnlen.c: Likewise.
35172         * lib/unistr/u16-mbtouc-aux.c: Likewise.
35173         * lib/unistr/u16-mbtouc-unsafe-aux.c: Likewise.
35174         * lib/unistr/u16-mbtouc-unsafe.c: Likewise.
35175         * lib/unistr/u16-mbtouc.c: Likewise.
35176         * lib/unistr/u16-mbtoucr.c: Likewise.
35177         * lib/unistr/u16-move.c: Likewise.
35178         * lib/unistr/u16-next.c: Likewise.
35179         * lib/unistr/u16-prev.c: Likewise.
35180         * lib/unistr/u16-set.c: Likewise.
35181         * lib/unistr/u16-startswith.c: Likewise.
35182         * lib/unistr/u16-stpcpy.c: Likewise.
35183         * lib/unistr/u16-stpncpy.c: Likewise.
35184         * lib/unistr/u16-strcat.c: Likewise.
35185         * lib/unistr/u16-strchr.c: Likewise.
35186         * lib/unistr/u16-strcmp.c: Likewise.
35187         * lib/unistr/u16-strcpy.c: Likewise.
35188         * lib/unistr/u16-strcspn.c: Likewise.
35189         * lib/unistr/u16-strdup.c: Likewise.
35190         * lib/unistr/u16-strlen.c: Likewise.
35191         * lib/unistr/u16-strmblen.c: Likewise.
35192         * lib/unistr/u16-strmbtouc.c: Likewise.
35193         * lib/unistr/u16-strncat.c: Likewise.
35194         * lib/unistr/u16-strncmp.c: Likewise.
35195         * lib/unistr/u16-strncpy.c: Likewise.
35196         * lib/unistr/u16-strnlen.c: Likewise.
35197         * lib/unistr/u16-strpbrk.c: Likewise.
35198         * lib/unistr/u16-strrchr.c: Likewise.
35199         * lib/unistr/u16-strspn.c: Likewise.
35200         * lib/unistr/u16-strstr.c: Likewise.
35201         * lib/unistr/u16-strtok.c: Likewise.
35202         * lib/unistr/u16-to-u32.c: Likewise.
35203         * lib/unistr/u16-to-u8.c: Likewise.
35204         * lib/unistr/u16-uctomb-aux.c: Likewise.
35205         * lib/unistr/u16-uctomb.c: Likewise.
35206         * lib/unistr/u32-check.c: Likewise.
35207         * lib/unistr/u32-chr.c: Likewise.
35208         * lib/unistr/u32-cmp.c: Likewise.
35209         * lib/unistr/u32-cpy-alloc.c: Likewise.
35210         * lib/unistr/u32-cpy.c: Likewise.
35211         * lib/unistr/u32-endswith.c: Likewise.
35212         * lib/unistr/u32-mblen.c: Likewise.
35213         * lib/unistr/u32-mbsnlen.c: Likewise.
35214         * lib/unistr/u32-mbtouc-unsafe.c: Likewise.
35215         * lib/unistr/u32-mbtouc.c: Likewise.
35216         * lib/unistr/u32-mbtoucr.c: Likewise.
35217         * lib/unistr/u32-move.c: Likewise.
35218         * lib/unistr/u32-next.c: Likewise.
35219         * lib/unistr/u32-prev.c: Likewise.
35220         * lib/unistr/u32-set.c: Likewise.
35221         * lib/unistr/u32-startswith.c: Likewise.
35222         * lib/unistr/u32-stpcpy.c: Likewise.
35223         * lib/unistr/u32-stpncpy.c: Likewise.
35224         * lib/unistr/u32-strcat.c: Likewise.
35225         * lib/unistr/u32-strchr.c: Likewise.
35226         * lib/unistr/u32-strcmp.c: Likewise.
35227         * lib/unistr/u32-strcpy.c: Likewise.
35228         * lib/unistr/u32-strcspn.c: Likewise.
35229         * lib/unistr/u32-strdup.c: Likewise.
35230         * lib/unistr/u32-strlen.c: Likewise.
35231         * lib/unistr/u32-strmblen.c: Likewise.
35232         * lib/unistr/u32-strmbtouc.c: Likewise.
35233         * lib/unistr/u32-strncat.c: Likewise.
35234         * lib/unistr/u32-strncmp.c: Likewise.
35235         * lib/unistr/u32-strncpy.c: Likewise.
35236         * lib/unistr/u32-strnlen.c: Likewise.
35237         * lib/unistr/u32-strpbrk.c: Likewise.
35238         * lib/unistr/u32-strrchr.c: Likewise.
35239         * lib/unistr/u32-strspn.c: Likewise.
35240         * lib/unistr/u32-strstr.c: Likewise.
35241         * lib/unistr/u32-strtok.c: Likewise.
35242         * lib/unistr/u32-to-u16.c: Likewise.
35243         * lib/unistr/u32-to-u8.c: Likewise.
35244         * lib/unistr/u32-uctomb.c: Likewise.
35245         * lib/unistr/u8-check.c: Likewise.
35246         * lib/unistr/u8-chr.c: Likewise.
35247         * lib/unistr/u8-cmp.c: Likewise.
35248         * lib/unistr/u8-cpy-alloc.c: Likewise.
35249         * lib/unistr/u8-cpy.c: Likewise.
35250         * lib/unistr/u8-endswith.c: Likewise.
35251         * lib/unistr/u8-mblen.c: Likewise.
35252         * lib/unistr/u8-mbsnlen.c: Likewise.
35253         * lib/unistr/u8-mbtouc-aux.c: Likewise.
35254         * lib/unistr/u8-mbtouc-unsafe-aux.c: Likewise.
35255         * lib/unistr/u8-mbtouc-unsafe.c: Likewise.
35256         * lib/unistr/u8-mbtouc.c: Likewise.
35257         * lib/unistr/u8-mbtoucr.c: Likewise.
35258         * lib/unistr/u8-move.c: Likewise.
35259         * lib/unistr/u8-next.c: Likewise.
35260         * lib/unistr/u8-prev.c: Likewise.
35261         * lib/unistr/u8-set.c: Likewise.
35262         * lib/unistr/u8-startswith.c: Likewise.
35263         * lib/unistr/u8-stpcpy.c: Likewise.
35264         * lib/unistr/u8-stpncpy.c: Likewise.
35265         * lib/unistr/u8-strcat.c: Likewise.
35266         * lib/unistr/u8-strchr.c: Likewise.
35267         * lib/unistr/u8-strcmp.c: Likewise.
35268         * lib/unistr/u8-strcpy.c: Likewise.
35269         * lib/unistr/u8-strcspn.c: Likewise.
35270         * lib/unistr/u8-strdup.c: Likewise.
35271         * lib/unistr/u8-strlen.c: Likewise.
35272         * lib/unistr/u8-strmblen.c: Likewise.
35273         * lib/unistr/u8-strmbtouc.c: Likewise.
35274         * lib/unistr/u8-strncat.c: Likewise.
35275         * lib/unistr/u8-strncmp.c: Likewise.
35276         * lib/unistr/u8-strncpy.c: Likewise.
35277         * lib/unistr/u8-strnlen.c: Likewise.
35278         * lib/unistr/u8-strpbrk.c: Likewise.
35279         * lib/unistr/u8-strrchr.c: Likewise.
35280         * lib/unistr/u8-strspn.c: Likewise.
35281         * lib/unistr/u8-strstr.c: Likewise.
35282         * lib/unistr/u8-strtok.c: Likewise.
35283         * lib/unistr/u8-to-u16.c: Likewise.
35284         * lib/unistr/u8-to-u32.c: Likewise.
35285         * lib/unistr/u8-uctomb-aux.c: Likewise.
35286         * lib/unistr/u8-uctomb.c: Likewise.
35287         * lib/unitypes.h: Likewise.
35288         * lib/uniwidth.h: Likewise.
35289         * lib/uniwidth/cjk.h: Likewise.
35290         * lib/uniwidth/u16-strwidth.c: Likewise.
35291         * lib/uniwidth/u16-width.c: Likewise.
35292         * lib/uniwidth/u32-strwidth.c: Likewise.
35293         * lib/uniwidth/u32-width.c: Likewise.
35294         * lib/uniwidth/u8-strwidth.c: Likewise.
35295         * lib/uniwidth/u8-width.c: Likewise.
35296         * lib/uniwidth/width.c: Likewise.
35297
35298 2007-10-07  Bruno Haible  <bruno@clisp.org>
35299
35300         * lib/inttypes.in.h: Change copyright notice from LGPL to GPL.
35301         The file is still under LGPL (see modules/inttypes).
35302
35303 2007-10-06  Bruno Haible  <bruno@clisp.org>
35304
35305         * modules/trunc (Dependencies): Add 'extensions'.
35306         * m4/trunc.m4 (gl_FUNC_TRUNC): Require gl_USE_SYSTEM_EXTENSIONS.
35307         Reported by Ben Pfaff <blp@gnu.org>.
35308
35309 2007-10-06  Bruno Haible  <bruno@clisp.org>
35310
35311         * modules/freopen-tests: New file.
35312         * tests/test-freopen.c: New file.
35313
35314         * modules/fopen-tests: New file.
35315         * tests/test-fopen.c: New file.
35316
35317         * modules/fopen: New file.
35318         * lib/fopen.c: New file.
35319         * m4/fopen.m4: New file.
35320         * modules/freopen: New file.
35321         * lib/freopen.c: New file.
35322         * m4/freopen.m4: New file.
35323         * lib/stdio.in.h (fopen, freopen): New declarations.
35324         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize also GNULIB_FOPEN,
35325         GNULIB_FREOPEN, REPLACE_FOPEN, REPLACE_FREOPEN.
35326         * modules/stdio (Makefile.am): Substitute also GNULIB_FOPEN,
35327         GNULIB_FREOPEN, REPLACE_FOPEN, REPLACE_FREOPEN.
35328         * doc/functions/fopen.texi: Mention the 'fopen' module.
35329         * doc/functions/freopen.texi: Mention the 'freopen' module.
35330
35331 2007-10-06  Bruno Haible  <bruno@clisp.org>
35332
35333         * modules/open-tests: New file.
35334         * tests/test-open.c: New file.
35335
35336         * modules/open: New file.
35337         * lib/open.c: New file.
35338         * m4/open.m4: New file.
35339         * lib/fchdir.c (open): If the gnulib module 'open' is used, do what
35340         lib/open.c does.
35341         * lib/fcntl.in.h (open): Declare also if replaced by the 'open' module.
35342         * m4/fcntl_h.m4 (gl_FCNTL_MODULE_INDICATOR, gl_FCNTL_H_DEFAULTS): New
35343         macros.
35344         (gl_FCNTL_H): Require gl_FCNTL_H_DEFAULTS.
35345         * modules/fcntl (Makefile.am): Also substitute GNULIB_OPEN and
35346         REPLACE_OPEN.
35347         * doc/functions/open.texi: Mention the 'open' module.
35348
35349 2007-10-04  Bruno Haible  <bruno@clisp.org>
35350
35351         * modules/ceill-tests: New file.
35352         * tests/test-ceill.c: New file.
35353
35354         * modules/ceill: New file.
35355         * lib/ceill.c: Replace entire file.
35356         * m4/ceill.m4: New file.
35357         * lib/math.in.h (ceill): Replace declaration.
35358         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_CEILL.
35359         * modules/math (Makefile.am): Substitute also GNULIB_CEILL.
35360         * doc/functions/ceill.texi: Mention the 'ceill' module.
35361         * modules/mathl (Files): Remove lib/ceill.c.
35362         (Depends-on): Add ceill.
35363
35364 2007-10-04  Bruno Haible  <bruno@clisp.org>
35365
35366         * modules/ceilf-tests: New file.
35367         * tests/test-ceilf.c: New file.
35368
35369         * modules/ceilf: New file.
35370         * lib/ceil.c: New file.
35371         * lib/ceilf.c: New file.
35372         * m4/ceilf.m4: New file.
35373         * lib/math.in.h (ceilf): New declaration.
35374         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_CEILF and
35375         HAVE_DECL_CEILF.
35376         * modules/math (Makefile.am): Substitute also GNULIB_CEILF and
35377         HAVE_DECL_CEILF.
35378         * doc/functions/ceilf.texi: Mention the 'ceilf' module.
35379
35380 2007-10-04  Bruno Haible  <bruno@clisp.org>
35381
35382         * modules/floorl-tests: New file.
35383         * tests/test-floorl.c: New file.
35384
35385         * modules/floorl: New file.
35386         * lib/floorl.c: Replace entire file.
35387         * m4/floorl.m4: New file.
35388         * lib/math.in.h (floorl): Replace declaration.
35389         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_FLOORL.
35390         * modules/math (Makefile.am): Substitute also GNULIB_FLOORL.
35391         * doc/functions/floorl.texi: Mention the 'floorl' module.
35392         * modules/mathl (Files): Remove lib/floorl.c.
35393         (Depends-on): Add floorl.
35394
35395 2007-10-04  Bruno Haible  <bruno@clisp.org>
35396
35397         * modules/floorf-tests: New file.
35398         * tests/test-floorf.c: New file.
35399
35400         * modules/floorf: New file.
35401         * lib/floor.c: New file.
35402         * lib/floorf.c: New file.
35403         * m4/floorf.m4: New file.
35404         * lib/math.in.h (floorf): New declaration.
35405         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_FLOORF and
35406         HAVE_DECL_FLOORF.
35407         * modules/math (Makefile.am): Substitute also GNULIB_FLOORF and
35408         HAVE_DECL_FLOORF.
35409         * doc/functions/floorf.texi: Mention the 'floorf' module.
35410
35411 2007-10-04  Benoit Sigoure  <tsuna@lrde.epita.fr>
35412             Bruno Haible  <bruno@clisp.org>
35413
35414         Advertise for the Git server instead of the CVS server.
35415         * doc/gnulib-intro.texi (Steady Development): Mention the Git
35416         repository instead of the CVS one.
35417         * doc/gnulib-tool.texi (VCS Issues): Renamed from "CVS Issues". Talk
35418         about all VCS systems generically.
35419         * doc/gnulib.texi (Introduction): Capitalize `Git'.
35420
35421 2007-10-04  Bruno Haible  <bruno@clisp.org>
35422
35423         * doc/gnulib.texi (Function Substitutes): Explain what an absent module
35424         means.
35425         Reported by Benoît Sigoure <tsuna@lrde.epita.fr>.
35426
35427 2007-10-04  Bruno Haible  <bruno@clisp.org>
35428
35429         * modules/truncl-tests: New file.
35430         * tests/test-truncl.c: New file.
35431
35432         * modules/truncl: New file.
35433         * lib/truncl.c: New file.
35434         * m4/truncl.m4: New file.
35435         * lib/math.in.h (truncl): New declaration.
35436         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_TRUNCL and
35437         HAVE_DECL_TRUNCL.
35438         * modules/math (Makefile.am): Substitute also GNULIB_TRUNCL and
35439         HAVE_DECL_TRUNCL.
35440         * doc/functions/truncl.texi: Mention the 'truncl' module.
35441
35442 2007-10-04  Bruno Haible  <bruno@clisp.org>
35443
35444         * modules/truncf-tests: New file.
35445         * tests/test-truncf.c: New file.
35446
35447         * modules/truncf: New file.
35448         * lib/trunc.c: Make paramerizable through USE_* macros.
35449         * lib/truncf.c: New file.
35450         * m4/truncf.m4: New file.
35451         * lib/math.in.h (truncf): New declaration.
35452         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_TRUNCF and
35453         HAVE_DECL_TRUNCF.
35454         * modules/math (Makefile.am): Substitute also GNULIB_TRUNCF and
35455         HAVE_DECL_TRUNCF.
35456         * doc/functions/truncf.texi: Mention the 'truncf' module.
35457
35458 2007-10-03  Bruno Haible  <bruno@clisp.org>
35459
35460         * gnulib-tool (func_get_automake_snippet): Synthesize an EXTRA_DIST
35461         augmentation also for tests modules.
35462         * modules/argp-tests (Makefile.am): Remove EXTRA_DIST augmentation.
35463         * modules/atexit-tests (Makefile.am): Likewise.
35464         * modules/binary-io-tests (Makefile.am): Likewise.
35465         * modules/c-strcase-tests (Makefile.am): Likewise.
35466         * modules/canonicalize-lgpl-tests (Makefile.am): Likewise.
35467         * modules/canonicalize-tests (Makefile.am): Likewise.
35468         * modules/closein-tests (Makefile.am): Likewise.
35469         * modules/fprintf-posix-tests (Makefile.am): Likewise.
35470         * modules/freadahead-tests (Makefile.am): Likewise.
35471         * modules/fseek-tests (Makefile.am): Likewise.
35472         * modules/fseeko-tests (Makefile.am): Likewise.
35473         * modules/ftell-tests (Makefile.am): Likewise.
35474         * modules/ftello-tests (Makefile.am): Likewise.
35475         * modules/isnanl-nolibm-tests (Makefile.am): Likewise.
35476         * modules/isnanl-tests (Makefile.am): Likewise.
35477         * modules/lseek-tests (Makefile.am): Likewise.
35478         * modules/mbscasecmp-tests (Makefile.am): Likewise.
35479         * modules/mbscasestr-tests (Makefile.am): Likewise.
35480         * modules/mbschr-tests (Makefile.am): Likewise.
35481         * modules/mbscspn-tests (Makefile.am): Likewise.
35482         * modules/mbsncasecmp-tests (Makefile.am): Likewise.
35483         * modules/mbspbrk-tests (Makefile.am): Likewise.
35484         * modules/mbspcasecmp-tests (Makefile.am): Likewise.
35485         * modules/mbsrchr-tests (Makefile.am): Likewise.
35486         * modules/mbsspn-tests (Makefile.am): Likewise.
35487         * modules/mbsstr-tests (Makefile.am): Likewise.
35488         * modules/printf-posix-tests (Makefile.am): Likewise.
35489         * modules/snprintf-posix-tests (Makefile.am): Likewise.
35490         * modules/sprintf-posix-tests (Makefile.am): Likewise.
35491         * modules/tsearch-tests (Makefile.am): Likewise.
35492         * modules/uniname/uniname-tests (Makefile.am): Likewise.
35493         * modules/unistdio/u16-vasnprintf-tests (Makefile.am): Likewise.
35494         * modules/unistdio/u32-vasnprintf-tests (Makefile.am): Likewise.
35495         * modules/unistdio/u8-vasnprintf-tests (Makefile.am): Likewise.
35496         * modules/unistdio/ulc-vasnprintf-tests (Makefile.am): Likewise.
35497         * modules/vasnprintf-posix-tests (Makefile.am): Likewise.
35498         * modules/vfprintf-posix-tests (Makefile.am): Likewise.
35499         * modules/vprintf-posix-tests (Makefile.am): Likewise.
35500         * modules/vsnprintf-posix-tests (Makefile.am): Likewise.
35501         * modules/vsprintf-posix-tests (Makefile.am): Likewise.
35502         * modules/xstrtoimax-tests (Makefile.am): Likewise.
35503         * modules/xstrtol-tests (Makefile.am): Likewise.
35504         * modules/xstrtoumax-tests (Makefile.am): Likewise.
35505         * modules/yesno-tests (Makefile.am): Likewise.
35506
35507 2007-10-03  Bruno Haible  <bruno@clisp.org>
35508
35509         * modules/trunc-tests: New file.
35510         * tests/test-trunc.c: New file.
35511
35512         * modules/trunc: New file.
35513         * lib/trunc.c: New file.
35514         * m4/trunc.m4: New file.
35515         * lib/math.in.h (trunc): New declaration.
35516         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_TRUNC and
35517         HAVE_DECL_TRUNC.
35518         * modules/math (Makefile.am): Substitute also GNULIB_TRUNC and
35519         HAVE_DECL_TRUNC.
35520         * doc/functions/trunc.texi: Mention the 'trunc' module.
35521
35522 2007-10-03  Bruno Haible  <bruno@clisp.org>
35523
35524         * tests/test-fpending.c: New file, mostly copied
35525         from coreutils/lib/t-fpending.c.
35526         * modules/fpending-tests: New file.
35527
35528 2007-10-03  Bruno Haible  <bruno@clisp.org>
35529
35530         Port the stdio extensions to QNX (untested).
35531         * lib/fseterr.c (fseterr): Add support for QNX.
35532         * lib/fbufmode.c (fbufmode): Likewise.
35533         * lib/freadable.c (freadable): Likewise.
35534         * lib/fwritable.c (fwritable): Likewise.
35535         * lib/freading.c (freading): Likewise.
35536         * lib/fwriting.c (fwriting): Likewise.
35537         * lib/freadahead.c (freadahed): Likewise.
35538         * lib/fpurge.c (fpurge): Likewise.
35539         * lib/fseeko.c (rpl_fseeko): Likewise.
35540
35541 2007-10-03  Bruno Haible  <bruno@clisp.org>
35542             Jim Meyering  <jim@meyering.net>
35543             Eric Blake  <ebb9@byu.net>
35544
35545         * doc/relocatable.texi: Use @command instead of @program.
35546
35547 2007-10-02  Jim Meyering  <jim@meyering.net>
35548
35549         Perform one more "_.h" -> ".in.h" substitution.
35550         * modules/unistd (Makefile.am) [unistd.h]: Use unistd.h.in
35551         instead of unistd_.h here, too.
35552
35553 2007-10-01  Bruno Haible  <bruno@clisp.org>
35554
35555         * gnulib-tool (func_emit_initmacro_done): Special case for alloca.c.
35556         Needed for the alloca-opt module.
35557
35558 2007-09-30  Bruno Haible  <bruno@clisp.org>
35559
35560         * lib/alloca.in.h: Renamed from lib/alloca_.h.
35561         * modules/alloca-opt (Files, Makefile.am): Use alloca.in.h instead of
35562         alloca_.h.
35563         * lib/argz.in.h: Renamed from lib/argz_.h.
35564         * modules/argz (Files, Makefile.am): Use argz.in.h instead of argz_.h.
35565         * lib/byteswap.in.h: Renamed from lib/byteswap_.h.
35566         * modules/byteswap (Files, Makefile.am): Use byteswap.in.h instead of
35567         byteswap_.h.
35568         * lib/dirent.in.h: Renamed from lib/dirent_.h.
35569         * modules/fchdir (Files, Makefile.am): Use dirent.in.h instead of
35570         dirent_.h.
35571         * lib/fcntl.in.h: Renamed from lib/fcntl_.h.
35572         * modules/fcntl (Files, Makefile.am): Use fcntl.in.h instead of
35573         fcntl_.h.
35574         * lib/float.in.h: Renamed from lib/float_.h.
35575         * modules/float (Files, Makefile.am): Use float.in.h instead of
35576         float_.h.
35577         * lib/fnmatch.in.h: Renamed from lib/fnmatch_.h.
35578         * modules/fnmatch (Files, Makefile.am): Use fnmatch.in.h instead of
35579         fnmatch_.h.
35580         * lib/getopt.in.h: Renamed from lib/getopt_.h.
35581         * modules/getopt (Files, Makefile.am): Use getopt.in.h instead of
35582         getopt_.h.
35583         * lib/glob.in.h: Renamed from lib/glob_.h.
35584         * modules/glob (Files, Makefile.am): Use glob.in.h instead of glob_.h.
35585         * lib/iconv.in.h: Renamed from lib/iconv_.h.
35586         * modules/iconv_open (Files, Makefile.am): Use iconv.in.h instead of
35587         iconv_.h.
35588         * lib/inttypes.in.h: Renamed from lib/inttypes_.h.
35589         * modules/inttypes (Files, Makefile.am): Use inttypes.in.h instead of
35590         inttypes_.h.
35591         * lib/locale.in.h: Renamed from lib/locale_.h.
35592         * modules/locale (Files, Makefile.am): Use locale.in.h instead of
35593         locale_.h.
35594         * lib/math.in.h: Renamed from lib/math_.h.
35595         * modules/math (Files, Makefile.am): Use math.in.h instead of math_.h.
35596         * lib/netinet_in.in.h: Renamed from lib/netinet_in_.h.
35597         * modules/netinet_in (Files, Makefile.am): Use netinet_in.in.h instead
35598         of netinet_in_.h. Add dependency.
35599         * lib/poll.in.h: Renamed from lib/poll_.h.
35600         * modules/poll (Files, Makefile.am): Use poll.in.h instead of poll_.h.
35601         * lib/search.in.h: Renamed from lib/search_.h.
35602         * modules/search (Files, Makefile.am): Use search.in.h instead of
35603         search_.h.
35604         * lib/signal.in.h: Renamed from lib/signal_.h.
35605         * modules/signal (Files, Makefile.am): Use signal.in.h instead of
35606         _signal.h.
35607         * lib/stdbool.in.h: Renamed from lib/stdbool_.h.
35608         * modules/stdbool (Files, Makefile.am): Use stdbool.in.h instead of
35609         stdbool_.h.
35610         * lib/stdint.in.h: Renamed from lib/stdint_.h.
35611         * modules/stdint (Files, Makefile.am): Use stdint.in.h instead of
35612         stdint_.h.
35613         * lib/stdio.in.h: Renamed from lib/stdio_.h.
35614         * modules/stdio (Files, Makefile.am): Use stdio.in.h instead of
35615         stdio_.h.
35616         * lib/stdlib.in.h: Renamed from lib/stdlib_.h.
35617         * modules/stdlib (Files, Makefile.am): Use stdlib.in.h instead of
35618         stdlib_.h.
35619         * lib/string.in.h: Renamed from lib/string_.h.
35620         * modules/string (Files, Makefile.am): Use string.in.h instead of
35621         string_.h.
35622         * doc/gnulib-tool.texi (Initial import): Update.
35623         * lib/sys_select.in.h: Renamed from lib/sys_select_.h.
35624         * modules/sys_select (Files, Makefile.am): Use sys_select.in.h instead
35625         of sys_select_.h. Add dependency.
35626         * lib/sys_socket.in.h: Renamed from lib/sys_socket_.h.
35627         * modules/sys_socket (Files, Makefile.am): Use sys_socket.in.h instead
35628         of sys_socket_.h.
35629         * lib/sys_stat.in.h: Renamed from lib/sys_stat_.h.
35630         * modules/sys_stat (Files, Makefile.am): Use sys_stat.in.h instead of
35631         sys_stat_.h.
35632         * lib/sys_time.in.h: Renamed from lib/sys_time_.h.
35633         * modules/sys_time (Files, Makefile.am): Use sys_time.in.h instead of
35634         sys_time_.h.
35635         * lib/sysexits.in.h: Renamed from lib/sysexits_.h.
35636         * modules/sysexits (Files, Makefile.am): Use sysexits.in.h instead of
35637         sysexits_.h.
35638         * lib/time.in.h: Renamed from lib/time_.h.
35639         * modules/time (Files, Makefile.am): Use time.in.h instead of time_.h.
35640         * lib/unistd.in.h: Renamed from lib/unistd_.h.
35641         * modules/unistd (Files, Makefile.am): Use unistd.in.h instead of
35642         unistd_.h.
35643         * lib/wchar.in.h: Renamed from lib/wchar_.h.
35644         * modules/wchar (Files, Makefile.am): Use wchar.in.h instead of
35645         wchar_.h.
35646         * lib/wctype.in.h: Renamed from lib/wctype_.h.
35647         * modules/wctype (Files, Makefile.am): Use wctype.in.h instead of
35648         wctype_.h.
35649         * build-aux/bootstrap (slurp): Update.
35650         * lib/.cppi-disable: Update.
35651
35652 2007-09-30  Bruno Haible  <bruno@clisp.org>
35653
35654         * tests/test-getaddrinfo.c (AF_UNSPEC): Provide a fallback definition.
35655         Needed on BeOS.
35656
35657 2007-09-30  Bruno Haible  <bruno@clisp.org>
35658
35659         * modules/dirname-tests (check_PROGRAMS): Renamed from noinst_PROGRAMS.
35660
35661 2007-09-29  Bruno Haible  <bruno@clisp.org>
35662
35663         * lib/stdio_.h (getdelim, getline): Add identifiers. Doc tweak.
35664
35665 2007-09-29  Bruno Haible  <bruno@clisp.org>
35666
35667         * lib/xreadlink.c (xreadlink): Simplify to a wrapper around areadlink.
35668         * modules/xreadlink (Depends-on): Add areadlink, remove readlink etc.
35669         * build-aux/install-reloc: Compile also areadlink.c.
35670         * modules/relocatable-prog-wrapper (Files): Add lib/areadlink.[hc].
35671
35672 2007-09-29  Bruno Haible  <bruno@clisp.org>
35673
35674         * gnulib-tool (func_emit_initmacro_done): Indentation.
35675
35676 2007-09-29  Bruno Haible  <bruno@clisp.org>
35677
35678         * README: Add CVS checkout update instructions.
35679         Info from Bob Proulx <bob@proulx.com>.
35680
35681 2007-09-28  Eric Blake  <ebb9@byu.net>
35682
35683         Provide move-if-change.
35684         * build-aux/move-if-change: New file, based on best practice
35685         rather than any canonical upstream location.
35686
35687 2007-09-28  Jim Meyering  <jim@meyering.net>
35688
35689         Fix canonicalize loop-detection corner case.
35690         Do not attempt to stat the symlink values stored via seen_triple.
35691         Without this, coreutils' tests/misc/readlink-fp-loop test would fail
35692         on linux-2.6.18, (but not 2.6.22).
35693         * lib/canonicalize.c (seen_triple): Use triple_compare_ino_str, not
35694         triple_compare.  The former compares dev,ino,filename, while the latter
35695         would actually stat dirname(filename) when dev and ino were equal.
35696         * lib/hash-triple.c: Install <string.h>.
35697         (STREQ): Define.
35698         (triple_compare_ino_str): New function.
35699         * lib/hash-triple.h (triple_compare_ino_str): Declare it.
35700
35701 2007-09-28  Eric Blake  <ebb9@byu.net>
35702
35703         Enforce that AC_REPLACE_FUNCS files exist.
35704         * gnulib-tool (func_emit_initmacro_done): Make AC_LIBSOURCES
35705         override check for typos.
35706
35707         Fix test-closein on Solaris 10.
35708         * tests/test-closein.c (main): Don't assume stdin can be inherited
35709         closed on all systems.
35710         * tests/test-closein.sh: Likewise.
35711         Reported by Piotr Tarnowski.
35712
35713 2007-09-28  Jim Meyering  <jim@meyering.net>
35714
35715         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Fix typo in comment.
35716
35717 2007-09-27  Jim Meyering  <jim@meyering.net>
35718
35719         canonicalize: Avoid a false-positive cycle failure.
35720         * modules/canonicalize (Depends-on): Add file-set and hash-triple.
35721         Sort.  Remove cycle-check.
35722         * lib/canonicalize.c: Include file-set.h and hash-triple.h,
35723         not cycle-check.h.
35724         (seen_triple): New function.
35725         (canonicalize_filename_mode): Use it instead of cycle-check.
35726         * tests/test-canonicalize.c: Add a test for this bug.
35727         * tests/test-canonicalize.sh: Set up and run the test.
35728
35729         New module, file-set, from coreutils.
35730         * modules/file-set: Define it.
35731         * lib/file-set.c, lib/file-set.h: Implement.
35732
35733         New module, hash-triple, from coreutils.
35734         * modules/hash-triple: Define it.
35735         * lib/hash-triple.c, lib/hash-triple.h: Implement.
35736
35737 2007-09-25  Eric Blake  <ebb9@byu.net>
35738
35739         Fix strerror on Interix.
35740         * lib/string_.h (strerror): Declare replacement.
35741         * doc/functions/strerror.texi (strerror): Document the Interix
35742         shortcoming.
35743         * modules/string (Makefile.am): Support new hooks.
35744         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Add new hooks.
35745         * m4/strerror.m4 (gl_FUNC_STRERROR): Defer to
35746         gl_FUNC_STRERROR_SEPARATE.
35747         (gl_FUNC_STRERROR_SEPARATE): Check for Interix bug.
35748         * lib/strerror.c (rpl_strerror): Provide replacement.
35749         * modules/strerror (Depends-on): Add string.
35750         (configure.ac): Detect use of module.
35751         * tests/test-strerror.c: New file.
35752         * modules/strerror-tests: New test module.
35753         * modules/argp (Depends-on): Add strerror.
35754         * modules/error (Depends-on): Likewise.
35755         Reported by Martin Koeppe.
35756
35757 2007-09-24  Bruno Haible  <bruno@clisp.org>
35758
35759         * README: Update git instructions.
35760
35761 2007-09-24  Eric Blake  <ebb9@byu.net>
35762
35763         Revert fpending breakage from 2007-09-08.
35764         * m4/fpending.m4 (gl_FUNC_FPENDING): Don't require existence of
35765         __fpending.c.
35766
35767 2007-09-24  Jim Meyering  <jim@meyering.net>
35768
35769         filenamecat.c: Add a test.
35770         * lib/filenamecat.c (main) [TEST_FILE_NAME_CONCAT]: Add a test
35771         showing how the function works when DIR is the empty string.
35772
35773 2007-09-21  Simon Josefsson  <simon@josefsson.org>
35774
35775         * tests/test-canonicalize.sh: Turn on executable bit.
35776
35777 2007-09-19  Eric Blake  <ebb9@byu.net>
35778
35779         * README: Update CVS instructions.
35780
35781 2007-09-18  Bruno Haible  <bruno@clisp.org>
35782
35783         * modules/areadlink: New file.
35784         * lib/areadlink.h (areadlink): New declaration.
35785         * lib/areadlink.c: New file, based on lib/xreadlink.c.
35786
35787 2007-09-17  Jim Meyering  <jim@meyering.net>
35788
35789         * lib/savewd.c (ESTALE) [!defined]: Define.
35790         Reported to be required on Interix by Martin Koeppe.
35791
35792 2007-09-17  Bruno Haible  <bruno@clisp.org>
35793
35794         * gnulib-tool (func_version): Use $version.
35795
35796 2007-09-16  Bruno Haible  <bruno@clisp.org>
35797
35798         * m4/printf.m4 (gl_PRINTF_LONG_DOUBLE, gl_PRINTF_INFINITE,
35799         gl_PRINTF_INFINITE_LONG_DOUBLE): Increase buf's size from 100 to 10000.
35800         Needed on glibc-2.6.1 with -fstack-protector -D_FORTIFY_SOURCE=2.
35801         Reported by Greg Schafer <gschafer@zip.com.au>.
35802
35803 2007-09-15  Bruno Haible  <bruno@clisp.org>
35804
35805         * gnulib-tool (sed): Try a little harder to make bash understand the
35806         alias.
35807         Reported by Bruce Korb <bruce.korb@gmail.com>.
35808
35809 2007-09-13  Eric Blake  <ebb9@byu.net>
35810
35811         * ChangeLog: Remove conflict markers.
35812
35813 2007-09-13  Simon Josefsson  <simon@josefsson.org>
35814
35815         * lib/gc-gnulib.c (gc_hash_open): Catch NULL calloc return value.
35816         Reported by Bruno Haible <bruno@clisp.org>.
35817
35818 2007-09-12  Bruno Haible  <bruno@clisp.org>
35819
35820         * m4/lock.m4: Don't provide an AC_USE_SYSTEM_EXTENSIONS definition.
35821         (gl_LOCK_EARLY_BODY): Use AC_GNU_SOURCE when AC_USE_SYSTEM_EXTENSIONS
35822         is not defined.
35823
35824 2007-09-12  Eric Blake  <ebb9@byu.net>
35825
35826         Track CVS Autoconf on AC_USE_SYSTEM_EXTENSIONS.
35827         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS): Update to CVS
35828         Autoconf definition.
35829         * modules/euidaccess (Depends-on): Add extensions, for
35830         AC_USE_SYSTEM_EXTENSIONS with autoconf <= 2.59.
35831         * modules/fnmatch (Depends-on): Likewise.
35832         * modules/getaddrinfo (Depends-on): Likewise.
35833         * modules/getdelim (Depends-on): Likewise.
35834         * modules/getline (Depends-on): Likewise.
35835         * modules/getsubopt (Depends-on): Likewise.
35836         * modules/gettext (Depends-on): Likewise.
35837         * modules/group-member (Depends-on): Likewise.
35838         * modules/mbchar (Depends-on): Likewise.
35839         * modules/memmem (Depends-on): Likewise.
35840         * modules/mempcpy (Depends-on): Likewise.
35841         * modules/memrchr (Depends-on): Likewise.
35842         * modules/pagealign_alloc (Depends-on): Likewise.
35843         * modules/readutmp (Depends-on): Likewise.
35844         * modules/stpcpy (Depends-on): Likewise.
35845         * modules/stpncpy (Depends-on): Likewise.
35846         * modules/strchrnul (Depends-on): Likewise.
35847         * modules/strndup (Depends-on): Likewise.
35848         * modules/strsep (Depends-on): Likewise.
35849         * modules/strverscmp (Depends-on): Likewise.
35850         * modules/vasprintf (Depends-on): Likewise.
35851         * modules/wcwidth (Depends-on): Likewise.
35852         * m4/euidaccess.m4 (gl_FUNC_EUIDACCESS): AC_GNU_SOURCE will be
35853         obsolete in Autoconf 2.62; use AC_USE_SYSTEM_EXTENSIONS instead.
35854         * m4/fnmatch.m4 (gl_FUNC_FNMATCH_GNU): Likewise.
35855         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDR_INFO): Likewise.
35856         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Likewise.
35857         * m4/getline.m4 (gl_FUNC_GETLINE): Likewise.
35858         * m4/getsubopt.m4 (gl_FUNC_GETSUBOPT): Likewise.
35859         * m4/glob.m4 (gl_PREREQ_GLOB): Likewise.
35860         * m4/group-member.m4 (gl_FUNC_GROUP_MEMBER): Likewise.
35861         * m4/mbchar.m4 (gl_MBCHAR): Likewise.
35862         * m4/memmem.m4 (gl_FUNC_MEMMEM): Likewise.
35863         * m4/mempcpy.m4 (gl_FUNC_MEMPCPY): Likewise.
35864         * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Likewise.
35865         * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Likewise.
35866         * m4/pagealign_alloc.m4 (gl_PAGEALIGN_ALLOC): Likewise.
35867         * m4/readutmp.m4 (gl_READUTMP): Likewise.
35868         * m4/regex.m4 (gl_PREREQ_REGEX): Likewise.
35869         * m4/stpcpy.m4 (gl_FUNC_STPCPY): Likewise.
35870         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Likewise.
35871         * m4/strchrnul.m4 (gl_FUNC_STRCHRNUL): Likewise.
35872         * m4/strndup.m4 (gl_FUNC_STRNDUP): Likewise.
35873         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Likewise.
35874         * m4/strsep.m4 (gl_FUNC_STRSEP): Likewise.
35875         * m4/strverscmp.m4 (gl_FUNC_STRVERSCMP): Likewise.
35876         * m4/vasprintf.m4 (gl_PREREQ_VASPRINTF_H): Likewise.
35877         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Likewise.
35878         * m4/lock.m4 (gl_LOCK_EARLY_BODY): Likewise, but provide fallback,
35879         so that lock.m4 can be used in gettext without extensions module.
35880
35881 2007-09-11  Bruno Haible  <bruno@clisp.org>
35882
35883         * m4/isc-posix.m4: Remove file.
35884         Suggested by Eric Blake.
35885
35886 2007-09-11  Eric Blake  <ebb9@byu.net>
35887
35888         * ChangeLog: Restore lines accidentally truncated 2007-04-06.
35889
35890 2007-09-10  Bruno Haible  <bruno@clisp.org>
35891
35892         * posix-modules: Fix typo in error message.
35893         Reported by Matt <mkraai@beckman.com>.
35894
35895 2007-09-09  Bruno Haible  <bruno@clisp.org>
35896
35897         * doc/functions/getdelim.texi: Update list of platforms lacking the
35898         function.
35899         * doc/functions/getline.texi: Likewise.
35900
35901 2007-09-09  Jim Meyering  <jim@meyering.net>
35902
35903         * lib/hash.c (hash_initialize): Detect calloc failure.
35904         Reported by Bruno Haible.
35905
35906 2007-09-09  Bruno Haible  <bruno@clisp.org>
35907
35908         * lib/canonicalize-lgpl.c (__realpath): Set errno to ENOMEM when
35909         malloc or realloc fails.
35910
35911 2007-09-09  Bruno Haible  <bruno@clisp.org>
35912
35913         * modules/getcwd (Depends-on): Add malloc-posix.
35914         * modules/glob (Depends-on): Likewise.
35915         * modules/putenv (Depends-on): Likewise.
35916         * modules/strdup (Depends-on): Likewise.
35917         * modules/getdelim (Depends-on): Add realloc-posix.
35918         * modules/read-file (Depends-on): Likewise.
35919
35920 2007-09-09  Bruno Haible  <bruno@clisp.org>
35921
35922         * m4/malloc.m4 (gl_CHECK_MALLOC_POSIX): New macro.
35923         (gl_FUNC_MALLOC_POSIX): Require it.
35924         * m4/realloc.m4 (gl_FUNC_REALLOC_POSIX): Likewise.
35925         * m4/calloc.m4 (gl_FUNC_CALLOC_POSIX): Likewise.
35926         * modules/realloc (Files): Add m4/malloc.m4.
35927         * modules/calloc (Files): Likewise.
35928
35929 2007-09-09  Bruno Haible  <bruno@clisp.org>
35930
35931         * modules/malloc-posix: New file.
35932         * modules/malloc (Depends-on): Add malloc-posix.
35933         * lib/malloc.c: Include errno.h.
35934         (rpl_malloc): Merge the requirements of a glibc-compatible malloc
35935         and a POSIX-compatible malloc into a single function. Set ENOMEM
35936         when returning NULL.
35937         * m4/malloc.m4: New file.
35938         * doc/functions/malloc.texi: Mention the malloc-posix module.
35939         * lib/stdlib_.h (malloc): New declaration.
35940         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize
35941         GNULIB_MALLOC_POSIX and HAVE_MALLOC_POSIX.
35942         * modules/stdlib (stdlib.h): Substitute also GNULIB_MALLOC_POSIX
35943         and HAVE_MALLOC_POSIX.
35944
35945 2007-09-09  Bruno Haible  <bruno@clisp.org>
35946
35947         * modules/realloc-posix: New file.
35948         * modules/realloc (Depends-on): Add realloc-posix.
35949         * lib/realloc.c: Include errno.h.
35950         (rpl_realloc): Merge the requirements of a glibc-compatible realloc
35951         and a POSIX-compatible realloc into a single function. Set ENOMEM
35952         when returning NULL.
35953         * m4/realloc.m4: New file.
35954         * doc/functions/realloc.texi: Mention the realloc-posix module.
35955         * lib/stdlib_.h (realloc): New declaration.
35956         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize
35957         GNULIB_REALLOC_POSIX and HAVE_REALLOC_POSIX.
35958         * modules/stdlib (stdlib.h): Substitute also GNULIB_REALLOC_POSIX
35959         and HAVE_REALLOC_POSIX.
35960
35961 2007-09-09  Bruno Haible  <bruno@clisp.org>
35962
35963         * modules/calloc-posix: New file.
35964         * modules/calloc (Depends-on): Add calloc-posix.
35965         * lib/calloc.c: Include errno.h.
35966         (rpl_calloc): Merge the requirements of a glibc-compatible calloc
35967         and a POSIX-compatible calloc into a single function. Set ENOMEM
35968         when returning NULL.
35969         * m4/calloc.m4 (gl_FUNC_CALLOC_POSIX): New macro.
35970         * doc/functions/calloc.texi: Mention the calloc-posix module.
35971         * lib/stdlib_.h (calloc): New declaration.
35972         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize
35973         GNULIB_CALLOC_POSIX and HAVE_CALLOC_POSIX.
35974         * modules/stdlib (stdlib.h): Substitute also GNULIB_CALLOC_POSIX
35975         and HAVE_CALLOC_POSIX.
35976
35977 2007-09-09  Bruno Haible  <bruno@clisp.org>
35978
35979         Allow for modules to show an arbitrary notice.
35980         * modules/TEMPLATE-EXTENDED: Add 'Notice' field.
35981         * gnulib-tool: New option --extract-notice.
35982         (func_usage): Document it.
35983         (sed_extract_prog): Update.
35984         (func_get_notice): New function.
35985         (func_modules_notice): New function.
35986         (func_import, func_create_testdir): Invoke it.
35987         Suggested by Jim Meyering.
35988
35989 2007-09-09  Bruno Haible  <bruno@clisp.org>
35990
35991         * gnulib-tool: New options --verbose, --quiet.
35992         (func_usage): Document them.
35993         (verbose): New variable.
35994         (func_execute_command): New function.
35995         (func_import): Don't show the module list and the file list if
35996         $verbose < 0.
35997         (func_create_testdir): Likewise. Use func_execute_command.
35998         (func_create_megatestdir): Use func_execute_command.
35999
36000 2007-09-08  Bruno Haible  <bruno@clisp.org>
36001
36002         * gnulib-tool (func_import): Prefer rsync over wget when available,
36003         for fetching the PO files.
36004
36005 2007-09-08  Bruno Haible  <bruno@clisp.org>
36006
36007         * posix-modules: New file. Portions copied from gnulib-tool.
36008         * doc/gnulib.texi (POSIX Substitutes Library): New chapter.
36009
36010 2007-09-08  Jim Meyering  <jim@meyering.net>
36011
36012         Rename __fpending.c -> fpending.c and __fpending.h -> fpending.h
36013         * lib/fpending.h: Rename from __fpending.h.
36014         * lib/fpending.c: Rename from __fpending.c.
36015         Include "fpending.h", not "__fpending.h".
36016         * lib/__fpending.h, lib/__fpending.c: Remove files.
36017         * modules/fpending (Files): Reflect new file names.
36018         * lib/close-stream.c: Include "fpending.h", not "__fpending.h".
36019
36020 2007-09-08  Bruno Haible  <bruno@clisp.org>
36021
36022         * m4/inttypes-h.m4: Remove stub file.
36023
36024 2007-09-07  Simon Josefsson  <simon@josefsson.org>
36025
36026         * doc/headers/stdint.texi: Discuss #include_next issue.
36027
36028 2007-09-06  Paul Eggert  <eggert@cs.ucla.edu>
36029
36030         * build-aux/bootstrap: Remove obsolete comment about wget --help.
36031
36032 2007-09-06  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
36033
36034         * m4/time_h.m4 (gl_CHECK_TYPE_STRUCT_TIMESPEC): Fix misspelling
36035         in variable name.
36036
36037 2007-09-03  Jim Meyering  <jim@meyering.net>
36038
36039         New module: git-version-gen.
36040         * modules/git-version-gen: New file.
36041
36042         Import changes from coreutils for bootstrap script.
36043
36044         * build-aux/bootstrap (WGET_COMMAND): Remove code to set this variable.
36045
36046         bootstrap: uses rsync to download the .po files
36047         * build-aux/bootstrap (po_download_command_format): New global.
36048         (download_po_files): Use rsync.
36049         (update_po_files): Don't remove .po files after download,
36050         so future rsync runs can take advantage of the copies.
36051
36052         * build-aux/bootstrap (gnulib_tool): Make sha1sum check quietly.
36053
36054         Solve the unnecessary-.po-file-regeneration problem once and for all.
36055         * build-aux/bootstrap (download_po_files): New function, renamed from
36056         get_translations.  Now, downloads, but doesn't update LINGUAS.
36057         (update_po_files): New function.
36058
36059         bootstrap: Ignore more.
36060         * build-aux/bootstrap (symlink_to_dir): Add a directory name like
36061         uniwidth to e.g., lib/.gitignore.
36062         (slurp): Handle the sys_stat_.h -> sys mapping, too.
36063
36064         * build-aux/bootstrap: New setting: vc_ignore.
36065         (insert_sorted_if_absent): Create $file if absent.
36066         Adapt to new, possibly empty, list: $vc_ignore.
36067
36068         bootstrap: generate more ignorable names
36069         * build-aux/bootstrap (slurp): When generating ignorable names,
36070         also map .sin to .sed, .gperf to .c, and .y to .c.
36071
36072 2007-09-03  Jim Meyering  <jim@meyering.net>
36073
36074         * build-aux/git-version-gen: New file, from coreutils.  For details, see
36075         http://git.sv.gnu.org/gitweb/?p=coreutils.git;a=commitdiff;h=bfe49f506
36076
36077 2007-09-02  Bruno Haible  <bruno@clisp.org>
36078
36079         Fix mis-recognition of 'mcs' on QNX 6.
36080         * m4/csharpcomp.m4 (gt_CSHARPCOMP): Test whether the "mcs --version"
36081         output contains the string "Mono".
36082         * lib/csharpcomp.c (compile_csharp_using_mono): Likewise.
36083         Reported by <kraai@ftbfs.org> at <https://savannah.gnu.org/bugs/?18337>.
36084
36085 2007-09-01  Bruno Haible  <bruno@clisp.org>
36086
36087         Fix collision between uniwidth/* and linebreak modules.
36088         * lib/linebreak.h (locale_charset, uc_width, u8_width, u16_width,
36089         u32_width): Remove declarations.
36090         * lib/linebreak.c: Include uniwidth.h, uniwidth/cjk.h, streq.h.
36091         (u32_mbtouc_unsafe, streq9, streq8, streq7, streq6, streq5, streq4,
36092         streq3, streq2, streq1, streq0): Remove functions.
36093         (STREQ): Remove macro.
36094         (is_cjk_encoding): Remove function.
36095         (nonspacing_table_data, nonspacing_table_ind): Remove constants.
36096         (uc_width, u8_width, u16_width, u32_width): Remove functions.
36097         * modules/linebreak (Depends-on): Add streq, uniwidth/width.
36098         * NEWS: Document the change.
36099
36100 2007-09-01  Bruno Haible  <bruno@clisp.org>
36101
36102         * lib/streq.h: Add double-inclusion guard.
36103
36104 2007-09-01  Karl Berry  <karl@gnu.org>
36105
36106         * MODULES.html.sh: Rename mreadlink_with_size to areadlink_with_size.
36107
36108 2007-08-28  Jim Meyering  <jim@meyering.net>
36109
36110         Rename mreadlink_with_size to areadlink_with_size.
36111         * NEWS: Document the change.
36112         * lib/mreadlink-with-size.c (mreadlink_with_size): Rename this to...
36113         * lib/areadlink-with-size.c (areadlink_with_size): ...this.
36114         * lib/mreadlink.h: Rename this to...
36115         * lib/areadlink.h: ...this.
36116         * modules/mreadlink-with-size: Rename this to...
36117         * modules/areadlink-with-size: ...this.
36118         * lib/canonicalize.c: Reflect the renaming.
36119         * modules/canonicalize: Likewise.
36120
36121 2007-08-26  Bruno Haible  <bruno@clisp.org>
36122
36123         * gnulib-tool (func_import): When deciding which files to remove,
36124         consider also dangling symbolic links.
36125         Reported by Eric Blake.
36126
36127 2007-08-26  Bruno Haible  <bruno@clisp.org>
36128
36129         * gnulib-tool (func_ln_if_changed): Use "test -h", not "test -L".
36130
36131 2007-08-23  Simon Josefsson  <simon@josefsson.org>
36132
36133         * lib/readline.c: Don't include getline.h, the prototype is now
36134         found in stdio.h.
36135
36136 2007-08-23  Jim Meyering  <jim@meyering.net>
36137
36138         Getdelim touchup.
36139         * lib/getdelim.c (getdelim): Don't bother to save/restore errno
36140         around the funlockfile call, since funlockfile never sets errno.
36141         Don't set errno upon failed realloc.
36142
36143 2007-08-22  Eric Blake  <ebb9@byu.net>
36144
36145         Getline touchups.
36146         * lib/getdelim.c (getdelim): Revert regression that required *n to
36147         be 0 when *lineptr is NULL.  Preserve errno across funlockfile.
36148         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Check for declaration of
36149         getdelim, rather than whether implementation is missing.
36150         * m4/getline.m4 (gl_FUNC_GETLINE): Likewise for getline.
36151         * lib/stdio_.h (getline): Also declare if replacement is
36152         required.
36153         * doc/functions/getdelim.texi: New file.
36154         * doc/functions/getline.texi: Likewise.
36155         * doc/gnulib.texi (Function Substitutes): Add new files.
36156         Reported by Bruno Haible.
36157
36158 2007-08-22  Ludovic Courtès  <ludo@gnu.org>
36159
36160         * users.txt: Add Guile.
36161
36162 2007-08-22  Eric Blake  <ebb9@byu.net>
36163
36164         * tests/test-getdelim.c (main): Use remove, not unlink.
36165         * tests/test-getline.c (main): Likewise.
36166
36167         Move getline and getdelim into stdio.h, per POSIX 200x.
36168         * modules/getline (Files): Remove getline.h.
36169         (Depends-on): Add stdio.
36170         (configure.ac): Add module indicator.
36171         * modules/getdelim (Files): Remove getdelim.h.
36172         (Depends-on): Add stdio.
36173         (configure.ac): Add module indicator.
36174         * modules/stdio (Makefile.am): Work with new indicators.
36175         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Add new defaults.
36176         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Work with stdio needs.
36177         * m4/getline.m4 (gl_FUNC_GETLINE): Likewise.
36178         * lib/getdelim.h: Delete.
36179         * lib/getline.h: Delete.
36180         * lib/stdio_.h (getdelim, getline): Declare.
36181         * modules/getdelim-tests: New module.
36182         * modules/getline-tests: Likewise.
36183         * tests/test-getdelim.c: New file.
36184         * tests/test-getline.c: Likewise.
36185         * NEWS: Document the change.
36186         * lib/getline.c: Update choice of header.
36187         * lib/csharpcomp.c: Likewise.
36188         * lib/getpass.c: Likewise.
36189         * lib/javacomp.c: Likewise.
36190         * lib/javaversion.c: Likewise.
36191         * lib/yesno.c: Likewise.
36192         * lib/getdelim.c: Likewise.
36193         (getdelim): Set errno on failure, and avoid memory leak.
36194
36195 2007-08-19  Bruno Haible  <bruno@clisp.org>
36196
36197         * modules/closein (Depends-on): Add freadahead.
36198         * lib/closein.c: Include freadahead.h.
36199         (close_stdin): Skip the fseeko and fflush calls if freadahead(stdin)
36200         is zero.
36201
36202 2007-08-19  Bruno Haible  <bruno@clisp.org>
36203
36204         * modules/freadahead-tests: New file.
36205         * tests/test-freadahead.sh: New file.
36206         * tests/test-freadahead.c: New file.
36207
36208         * modules/freadahead: New file.
36209         * lib/freadahead.h: New file.
36210         * lib/freadahead.c: New file.
36211         * MODULES.html.sh (File stream based Input/Output): Add freadahead,
36212         fbufmode, fpurge, freadable, fwritable.
36213
36214 2007-08-19  Eric Blake  <ebb9@byu.net>
36215
36216         Test yesno in combination with closein.
36217         * lib/yesno.c (yesno): Document use of stdin.
36218         * modules/yesno-tests (Files): New module.
36219         * tests/test-yesno.c (main): New file.
36220         * tests/test-yesno.sh: Likewise.
36221
36222 2007-08-19  Bruno Haible  <bruno@clisp.org>
36223
36224         * lib/fbufmode.c (fbufmode): Add tentative support for Solaris/AMD64.
36225         * lib/fseeko.c (rpl_fseeko): Likewise.
36226         * lib/fseterr.c (fseterr): Likewise.
36227
36228 2007-08-19  Bruno Haible  <bruno@clisp.org>
36229
36230         * tests/test-lseek.c (main): Disable a test for BeOS.
36231         * doc/functions/lseek.texi: Document the BeOS bug.
36232
36233 2007-08-19  Bruno Haible  <bruno@clisp.org>
36234             Eric Blake  <ebb9@byu.net>
36235
36236         * lib/lseek.c: Include <sys/stat.h>.
36237         (rpl_lseek): Add workaround code also for Unix platforms.
36238         Needed for BeOS.
36239         * m4/lseek.m4 (gl_FUNC_LSEEK): When cross-compiling, fail on BeOS.
36240         * doc/functions/lseek.texi: Document BeOS definiency.
36241
36242 2007-08-18  Bruno Haible  <bruno@clisp.org>
36243
36244         * modules/fstrcmp-tests: New file.
36245         * tests/test-fstrcmp.c: New file.
36246
36247 2007-08-18  Bruno Haible  <bruno@clisp.org>
36248
36249         * modules/fstrcmp: New file, from GNU gettext with modifications.
36250         * lib/fstrcmp.h: New file, from GNU gettext.
36251         * lib/fstrcmp.c: New file, from GNU gettext.
36252         * MODULES.html.sh (String handling): Add fstrcmp.
36253
36254 2007-08-18  Bruno Haible  <bruno@clisp.org>
36255
36256         * lib/diffseq.h (struct context): Change type of 'heuristic' field to
36257         'bool'.
36258         (diag, compareseq): Remove const from the ctxt argument.
36259         (USE_HEURISTIC): Undefine at the end.
36260
36261 2007-08-18  Jim Meyering  <jim@meyering.net>
36262
36263         New file: lib/idcache.h
36264         * NEWS: Mention the addition.
36265         * modules/idcache (Files): Add lib/idcache.h
36266         * lib/idcache.c: Include "idcache.h".
36267         Don't include <sys/types.h>.
36268         Add a FIXME comment.
36269         Move file-scoped "static" declarations to the top.
36270         * lib/idcache.h: New file.  Include <sys/types.h> here, instead.
36271
36272 2007-08-17  Bruno Haible  <bruno@clisp.org>
36273         and Paul Eggert  <eggert@cs.ucla.edu>
36274
36275         * MODULES.html.sh: Add diffseq.
36276         * modules/diffseq: New file.
36277         * lib/diffseq.h: New file, from GNU gettext with a few minor changes,
36278         extracted from GNU gettext's fstrcmp.c and GNU diff's analyze.c.
36279
36280 2007-08-15  Paul Eggert  <eggert@cs.ucla.edu>
36281
36282         Import changes from coreutils for bootstrap script.
36283
36284         2007-07-21  Paul Eggert  <eggert@cs.ucla.edu>
36285
36286         * build-aux/bootstrap (slurp): Work even in environments where
36287         "ls" defaults to "ls -A".  Put in a FIXME, though, since the
36288         current code does not slurp files whose names start with ".", and
36289         this looks like it might be a troublesome area.
36290
36291         2007-07-11  Jim Meyering  <jim@meyering.net>
36292
36293         If there's a GPL vN copyright comment, require that N == 3.
36294
36295         2007-07-08  Jim Meyering  <jim@meyering.net>
36296
36297         Run the coreutils-specific code only if tests/Makefile.am.in exists.
36298         * build-aux/bootstrap (mam_template): Move definition out of loop.
36299
36300         Create symlinks for gl/{lib,m4}/*, just as for gnulib/{lib,m4}/*.
36301
36302         * build-aux/bootstrap (symlink_to_dir): Rename function from
36303         symlink_to_gnulib.  Add a directory parameter.  Update all
36304         callers.
36305         (cp_mark_as_generated): Also check for -- and link to -- files in
36306         gl/.
36307
36308         2007-07-08  Jim Meyering  <jim@meyering.net>
36309
36310         Adapt to deeper hierarchy in gnulib.
36311         * build-aux/bootstrap (symlink_to_dir): If the destination
36312         directory doesn't exist, create it. This is required at least for
36313         "lib/uniwidth/cjk.h".
36314
36315         2007-05-15  Jim Meyering  <jim@meyering.net>
36316
36317         * build-aux/bootstrap: Now that generated Makefile.am files
36318         are no longer under version control, they must be created at
36319         bootstrap time.
36320
36321 2007-08-14  Ben Pfaff  <blp@gnu.org>
36322
36323         * lib/count-one-bits.h: Add comments.  From Bruno Haible.
36324
36325 2007-08-14  Paul Eggert  <eggert@cs.ucla.edu>
36326
36327         * lib/count-one-bits.h: Don't include <limits.h>; no longer needed
36328         given the changes below.
36329         (COUNT_ONE_BITS): Use 'verify' rather than 'verify_true'.  Work
36330         even on hosts that have padding bits beyond the supported 64.
36331
36332 2007-08-10  Paul Eggert  <eggert@cs.ucla.edu>
36333
36334         * NEWS: In xstrtol, remove STRTOL_FATAL_ERROR and add xstrtol_fatal.
36335         * lib/xstrtol.h: Don't include exitfail.h; that's now internal to
36336         xstrtol.c.  Include getopt.h, since xstrtol_fatal's signature
36337         depends on it.
36338         (xstrtol_error): Remove.
36339         (xstrtol_fatal): New decl, replacing the functionality of xstrtol_error
36340         but with a different signature.
36341         (ATTRIBUTE_NORETURN, __attribute__): New macros.
36342         * lib/xstrtol-error.c: Include exitfail.h.
36343         (xstrtol_fatal): New function, with a different signature from the
36344         old xstrtol_error, so that the caller need not worry about passing
36345         in an exit status, or about storage management of the option argument.
36346         (xstrtol_error): Now a static function.  Redo signature to
36347         implement xstrtol_fatal.  Output the correct number of hyphens in
36348         front of the option so that the caller need not worry about
36349         storage management.
36350         (N_): New macro.
36351         (_): Remove; not used now.
36352         * modules/xstrtol: Depend on getopt.
36353         * tests/test-xstrtol.c (main): Use new xstrtol_error function instead
36354         of old STRTOL_FATAL_ERROR macro.
36355         * tests/test-xstrtol.sh (t-xstrtol.xo): Adjust to match new behavior
36356         of test program.
36357         * tests/test-xstrtoimax.sh (t-xstrtoimax.xo): Likewise.
36358         * tests/test-xstrtoumax.sh (t-xstrtoumax.xo): Likewise.
36359
36360 2007-08-08  Eric Blake  <ebb9@byu.net>
36361
36362         * lib/xstrtol-error.c: Add missing include.
36363
36364         Move xstrtol messages into gnulib domain, when --pobase is used.
36365         * lib/xstrtol.h (_STRTOL_ERROR): Move messages out of macro...
36366         * lib/xstrtol-error.c (xstrtol_error): ...into new file.
36367         * modules/xstrtol (Files): Distribute new file.
36368         * m4/xstrtol.m4 (gl_XSTRTOL): Build new file.
36369         * lib/xstrtol.c (TESTING_XSTRTO): Move tests...
36370         * tests/test-xstrtol.c: ...into new file.
36371         * tests/test-xstrtoul.c: Also test xstrtoul.
36372         * tests/test-xstrtoimax.c: Also test xstrtoimax.
36373         * tests/test-xstrtoumax.c: Also test xstrtoumax.
36374         * tests/test-xstrtol.sh: Drive the tests.
36375         * tests/test-xstrtoimax.sh: Likewise.
36376         * tests/test-xstrtoumax.sh: Likewise.
36377         * modules/xstrtol-tests: New module.
36378         * modules/xstrtoimax-tests: Likewise.
36379         * modules/xstrtoumax-tests: Likewise.
36380
36381 2007-08-08  Jim Meyering  <jim@meyering.net>
36382
36383         New function: mfile_name_concat.
36384         * lib/filenamecat.c (mfile_name_concat): New function, just like
36385         file_name_concat, but return NULL upon failure rather than exiting
36386         with a diagnostic.
36387         * lib/filenamecat.h: Declare it.
36388
36389 2007-08-07  Bruno Haible  <bruno@clisp.org>
36390
36391         * m4/inttypes.m4 (gl_INTTYPES_H): Use GL_TRIGGER_STDC_LIMIT_MACROS
36392         instead of __STDC_LIMIT_MACROS_TRIGGER. This avoids a redefinition
36393         warning from gcc.
36394         Reported by Eric Blake.
36395
36396 2007-08-07  Simon Josefsson  <simon@josefsson.org>
36397
36398         * modules/crypto/arctwo (License): Use the synonymous term "LGPLv2+".
36399         * modules/crypto/arcfour (License): Likewise.
36400         * modules/crypto/des-tests (License): Likewise.
36401         * modules/crypto/gc-arctwo-tests (License): Likewise.
36402         * modules/crypto/gc-des-tests (License): Likewise.
36403         * modules/crypto/gc-hmac-md5-tests (License): Likewise.
36404         * modules/crypto/gc-hmac-sha1-tests (License): Likewise.
36405         * modules/crypto/gc-md2-tests (License): Likewise.
36406         * modules/crypto/gc-md4-tests (License): Likewise.
36407         * modules/crypto/gc-md5-tests (License): Likewise.
36408         * modules/crypto/gc-pbkdf2-sha1-tests (License): Likewise.
36409         * modules/crypto/gc-rijndael-tests (License): Likewise.
36410         * modules/crypto/gc-sha1-tests (License): Likewise.
36411         * modules/crypto/gc-tests (License): Likewise.
36412         * modules/crypto/hmac-md5 (License): Likewise.
36413         * modules/crypto/hmac-sha1 (License): Likewise.
36414         * modules/crypto/md2-tests (License): Likewise.
36415         * modules/crypto/md4-tests (License): Likewise.
36416         * modules/crypto/md5 (License): Likewise.
36417         * modules/crypto/rijndael (License): Likewise.
36418         * modules/crypto/sha1 (License): Likewise.
36419         * modules/memxor (License): Likewise.
36420
36421 2007-08-06  Paul Eggert  <eggert@cs.ucla.edu>
36422         and Bruno Haible  <bruno@clisp.org>
36423
36424         * NEWS: Describe interface changes to human, xstrtol.
36425         * lib/human.h: Include <xstrtol.h>.
36426         (human_options): Return enum strtol_error, not int.  Remove
36427         bool arg; take int * instead.
36428         * lib/human.c: Don't include "gettext.h".
36429         (_): Remove; no longer used.
36430         Don't include <xstrtol.h>, since human.h does it.
36431         (human_options): Adjust to abovementioned interface changes.
36432         Do not report error to stderr; that's now the caller's
36433         responsibility.
36434         * lib/xstrtol.c (main) [defined TESTING_XSTRTO]: Adjust to
36435         interface change.
36436         * lib/xstrtol.h (_STRTOL_ERROR): Take Option, Arg rather than
36437         Str, Argument_type_string.  All uses changed.  Put " argument"
36438         in diagnostics to make them clearer.  Change wording of suffix
36439         message for clarity.
36440         (STRTOL_FATAL_ERROR): Take Option, Arg rather than Str,
36441         Argument_type_string.
36442         (STRTOL_FATAL_WARN): Remove; no longer used.
36443         * modules/human (Depends-on): Remove gettext-h.
36444
36445 2007-08-06  Simon Josefsson  <simon@josefsson.org>
36446
36447         * build-aux/maint.mk, build-aux/GNUmakefile: Relicense to GPLv3+.
36448
36449 2007-07-31  Bruno Haible  <bruno@clisp.org>
36450
36451         * m4/stdint.m4 (gl_STDINT_H): Test whether WCHAR_MIN and WCHAR_MAX
36452         are defined by <stdint.h> (as opposed to <wchar.h>, as on Dragonfly).
36453         Reported by Joerg Sonnenberger <joerg@britannica.bec.de>.
36454
36455 2007-07-31  Bruno Haible  <bruno@clisp.org>
36456
36457         * lib/fflush.c (rpl_fflush): On BSD systems, use the __SNPT flag.
36458         Suggested by Joerg Sonnenberger <joerg@britannica.bec.de>.
36459
36460 2007-07-30  Bruno Haible  <bruno@clisp.org>
36461
36462         * modules/base64 (License): Use the synonymous term "LGPLv2+".
36463         * modules/c-ctype (License): Likewise.
36464         * modules/c-strcase (License): Likewise.
36465         * modules/check-version (License): Likewise.
36466         * modules/iconv (License): Likewise.
36467         * modules/iconv_open (License): Likewise.
36468         * modules/read-file (License): Likewise.
36469         * modules/striconv (License): Likewise.
36470         * modules/strverscmp (License): Likewise.
36471         * modules/vasprintf (License): Likewise.
36472         * modules/crypto/des (License): Likewise.
36473         * modules/crypto/gc (License): Likewise.
36474         * modules/crypto/gc-arcfour (License): Likewise.
36475         * modules/crypto/gc-arctwo (License): Likewise.
36476         * modules/crypto/gc-des (License): Likewise.
36477         * modules/crypto/gc-hmac-md5 (License): Likewise.
36478         * modules/crypto/gc-hmac-sha1 (License): Likewise.
36479         * modules/crypto/gc-md2 (License): Likewise.
36480         * modules/crypto/gc-md4 (License): Likewise.
36481         * modules/crypto/gc-md5 (License): Likewise.
36482         * modules/crypto/gc-pbkdf2-sha1 (License): Likewise.
36483         * modules/crypto/gc-random (License): Likewise.
36484         * modules/crypto/gc-rijndael (License): Likewise.
36485         * modules/crypto/gc-sha1 (License): Likewise.
36486         * modules/crypto/md2 (License): Likewise.
36487         * modules/crypto/md4 (License): Likewise.
36488
36489 2007-07-30  Jim Meyering  <jim@meyering.net>
36490
36491         * lib/fts.c (fts_read): Upon failure to chdir into a subdirectory,
36492         set fts_info to FTS_DNR, not to FTS_ERR, so that the caller knows
36493         it has valid stat data.  This bug would cause du not to count the
36494         sizes of inaccessible directories.
36495         Patch by Bryan Mason <bmason@redhat.com>, via Jose Maria Plans
36496         in <http://bugzilla.redhat.com/250077>.
36497
36498 2007-07-25  Peter O'Gorman  <peter@pogma.com>
36499             Bruno Haible  <bruno@clisp.org>
36500
36501         * m4/include_next.m4 (gl_INCLUDE_NEXT): Test whether #include_next
36502         really works. Needed because AIX 4.3 "xlc -E" doesn't understand
36503         #include_next, gives a diagnostic about it, but reports no error in
36504         the exit code.
36505         Reported by Gary V. Vaughan <gary@thewrittenword.com>.
36506
36507 2007-07-24  Ben Pfaff  <blp@gnu.org>
36508
36509         Improve name: "count-one-bits" is better than "popcount".
36510         * MODULES.html.sh: Update name.
36511         * lib/popcount.h: Renamed lib/count-one-bits.h.
36512         (popcount): Renamed count_one_bits.
36513         (popcountl): Renamed count_one_bits_l.
36514         (popcountll): Renamed count_one_bits_ll.
36515         * m4/popcount.m4: Renamed m4/count-one-bits.m4.
36516         * modules/popcount: Renamed module/count-one-bits.
36517         * modules/popcount-tests: Renamed module/count-one-bits-tests.
36518         * tests/test-popcount.c: Renamed tests/test-count-one-bits.c.
36519
36520 2007-07-23  Ben Pfaff  <blp@gnu.org>
36521
36522         * lib/popcount.h (popcount32): Reduce size of constants, to allow
36523         better code generation, and add U to large constants to avoid
36524         warnings, in non-GCC case.
36525         Suggested by Bruno Haible.
36526
36527 2007-07-23  Ben Pfaff  <blp@gnu.org>
36528
36529         * lib/popcount.h: Use verify_true instead of if...abort.
36530         * modules/popcount: Depend on verify module.
36531         Suggested by Jim Meyering.
36532
36533 2007-07-23  Bruno Haible  <bruno@clisp.org>
36534
36535         * gnulib-tool (func_import): Create a .cvsignore file also when the
36536         directory is not yet in CVS but the toplevel directory is. When
36537         creating a .cvsignore file, add ".deps" and ".dirstamp" to it.
36538         Reported by Karl Berry.
36539
36540 2007-07-22  Ben Pfaff  <blp@gnu.org>
36541
36542         * lib/popcount.h: Use faster, branchless algorithm for non-GCC
36543         case.
36544         Suggested by Eric Blake.
36545
36546 2007-07-22  Ben Pfaff  <blp@gnu.org>
36547
36548         New module: popcount.
36549         * MODULES.html.sh: Add popcount.
36550         * modules/popcount: New file.
36551         * modules/popcount-tests: New file.
36552         * tests/test-popcount.c: New file.
36553         * lib/popcount.h: New file.
36554         * m4/popcount.m4: New file.
36555
36556 2007-07-22  Paul Eggert  <eggert@cs.ucla.edu>
36557
36558         * build-aux/announce-gen: Update to GPLv3.
36559
36560         * build-aux/config.guess: Update from config.
36561
36562 2007-07-21  Bruno Haible  <bruno@clisp.org>
36563
36564         * lib/error.c (_) [ENABLE_NLS]: Define to gettext.
36565         * lib/verror.c (_) [ENABLE_NLS]: Likewise.
36566
36567 2007-07-20  Jim Meyering  <jim@meyering.net>
36568
36569         * check-module: Diagnose a self-dependency.
36570
36571 2007-07-19  Bruno Haible  <bruno@clisp.org>
36572
36573         * gnulib-tool (func_import): Don't abort if pobase or po_domain is
36574         empty.
36575         Reported by Eric Blake.
36576
36577 2007-07-18  Bruno Haible  <bruno@clisp.org>
36578
36579         * gnulib-tool: New options --po-base, --po-domain.
36580         (func_usage): Document them.
36581         (pobase, po_domain): New variables.
36582         (func_emit_lib_Makefile_am): Augment AM_CPPFLAGS, defining
36583         DEFAULT_TEXT_DOMAIN.
36584         (func_emit_po_Makevars, func_emit_po_POTFILES_in): New functions.
36585         (func_import): Consider pobase and po_domain. Create a po/ directory.
36586         (func_create_testdir): Set pobase and po_domain to empty.
36587         * build-aux/po/Makefile.in.in: New file, from GNU gettext 0.16.1.
36588         * build-aux/po/remove-potcdate.sin: New file, from GNU gettext 0.16.1.
36589
36590 2007-07-18  Bruno Haible  <bruno@clisp.org>
36591
36592         * gnulib-tool (func_get_automake_snippet): Synthesize also an
36593         EXTRA_DIST augmentation for files in build-aux/.
36594
36595 2007-07-16  Bruno Haible  <bruno@clisp.org>
36596
36597         * modules/lseek (License): Use the synonymous term "LGPLv2+".
36598         * modules/getdelim (License): Likewise.
36599
36600 2007-07-16  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
36601
36602         * modules/arpa_inet (License): Use the synonymous term LGPLv2+.
36603         * modules/d-type (License): Likewise.
36604         * modules/extensions (License): Likewise.
36605         * modules/fnmatch (License): Likewise.
36606         * modules/fseeko (License): Likewise.
36607         * modules/getaddrinfo (License): Likewise.
36608         * modules/getline (License): Likewise.
36609         * modules/getlogin_r (License): Likewise.
36610         * modules/getpass (License): Likewise.
36611         * modules/gettimeofday (License): Likewise.
36612         * modules/glob (License): Likewise.
36613         * modules/inet_ntop (License): Likewise.
36614         * modules/malloc (License): Likewise.
36615         * modules/malloca (License): Likewise.
36616         * modules/memmem (License): Likewise.
36617         * modules/mempcpy (License): Likewise.
36618         * modules/memset (License): Likewise.
36619         * modules/minmax (License): Likewise.
36620         * modules/mktime (License): Likewise.
36621         * modules/netinet_in (License): Likewise.
36622         * modules/pathmax (License): Likewise.
36623         * modules/poll (License): Likewise.
36624         * modules/regex (License): Likewise.
36625         * modules/snprintf (License): Likewise.
36626         * modules/stdbool (License): Likewise.
36627         * modules/stdint (License): Likewise.
36628         * modules/stdio (License): Likewise.
36629         * modules/strcase (License): Likewise.
36630         * modules/strcasestr (License): Likewise.
36631         * modules/strdup (License): Likewise.
36632         * modules/string (License): Likewise.
36633         * modules/strndup (License): Likewise.
36634         * modules/strnlen (License): Likewise.
36635         * modules/strpbrk (License): Likewise.
36636         * modules/strptime (License): Likewise.
36637         * modules/strsep (License): Likewise.
36638         * modules/sys_select (License): Likewise.
36639         * modules/sys_socket (License): Likewise.
36640         * modules/sys_stat (License): Likewise.
36641         * modules/sys_time (License): Likewise.
36642         * modules/time (License): Likewise.
36643         * modules/time_r (License): Likewise.
36644         * modules/timegm (License): Likewise.
36645         * modules/unistd (License): Likewise.
36646         * modules/vsnprintf (License): Likewise.
36647         * modules/wctype (License): Likewise.
36648
36649 2007-07-16  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
36650
36651         * modules/argz (License): LGPLv2+.
36652
36653 2007-07-15  Karl Berry  <karl@gnu.org>
36654
36655         * doc/gnulib.texi: revise node structure per new fdl.texi.
36656
36657 2007-07-14  Bruno Haible  <bruno@clisp.org>
36658
36659         * lib/uniname/gen-uninames.lisp (main): Emit a "do not edit" line to
36660         the output file.
36661         * lib/uniname/uninames.h: Regenerated.
36662
36663 2007-07-14  Karl Berry  <karl@gnu.org>
36664
36665         * doc/*gpl*.texi, doc/fdl.texi: new versions, consistently
36666         omitting sectioning and index commands.
36667
36668 2007-07-13  Bruno Haible  <bruno@clisp.org>
36669
36670         New gnulib-tool option --more-symlinks.
36671         * gnulib-tool (func_usage): Document --more-symlinks.
36672         (do_copyrights): New variable.
36673         Recognize option --more-symlinks.
36674         (func_import): Don't add a copyright notice transform to
36675         sed_transform_lib_file if do_copyrights is empty.
36676
36677 2007-07-13  Bruno Haible  <bruno@clisp.org>
36678
36679         * lib/vasnprintf.c (decimal_point_char): Define also if
36680         (NEED_PRINTF_LONG_DOUBLE || NEED_PRINTF_INFINITE_DOUBLE)
36681         && !NEED_PRINTF_DIRECTIVE_A.
36682         Reported by Clemens Koller <clemens.koller@anagramm.de> via
36683         Gary V. Vaughan <gary@gnu.org>.
36684
36685 2007-07-13  Paul Eggert  <eggert@cs.ucla.edu>
36686
36687         * lib/inttypes_.h: Undo previous change, since it was fixed
36688         in a different way in the 2007-07-02 fix to m4/inttypes.m4.
36689
36690 2007-07-13  Bruno Haible  <bruno@clisp.org>
36691
36692         * lib/stdint_.h: Fix typo: _GL_JUST_INCLUDE_SYSTEM_INTTYPES_H was
36693         misspelled as _GL_JUST_INCLUDE_ABSOLUTE_INTTYPES_H.
36694
36695 2007-07-13  Jim Meyering  <jim@meyering.net>
36696
36697         df: Don't fail for Tru64's "file-on-file mount".
36698         * m4/fsusage.m4 (gl_FSUSAGE): Reject Tru64's buggy statvfs,
36699         so we fall through and use statfs instead.  Details here:
36700         <http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/10878>
36701         Reported by Albert Chin.
36702
36703 2007-07-13  Bruno Haible  <bruno@clisp.org>
36704
36705         * modules/alloca-opt (License): Use the synonymous term "LGPLv2+".
36706         * modules/configmake (License): Likewise.
36707         * modules/gettext (License): Likewise.
36708         * modules/gettext-h (License): Likewise.
36709         * modules/include_next (License): Likewise.
36710         * modules/link-warning (License): Likewise.
36711         * modules/localcharset (License): Likewise.
36712         * modules/localename (License): Likewise.
36713         * modules/lock (License): Likewise.
36714         * modules/relocatable-lib-lgpl (License): Likewise.
36715         * modules/size_max (License): Likewise.
36716         * modules/vasnprintf (License): Likewise.
36717         * modules/wchar (License): Likewise.
36718         * modules/xsize (License): Likewise.
36719
36720 2007-07-13  Bruno Haible  <bruno@clisp.org>
36721
36722         * gnulib-tool (func_import): Treat LGPLv2 as synonymous to LGPL.
36723         (func_create_testdir): Handle copying terms "GPLv2+" and "LGPLv2+".
36724
36725 2007-07-12  Bruno Haible  <bruno@clisp.org>
36726
36727         * doc/gnulib-intro.texi (Copyright): Clarify the license abbreviations
36728         in the modules files.
36729
36730 2007-07-11  Karl Berry  <karl@gnu.org>
36731
36732         * MODULES.html.sh (func_module): use
36733          sed -e '\|^'"${includefile}"'$|d'
36734          instead of /.../d, to avoid errors on $includefile's containing /.
36735
36736 2007-07-10  Sergey Poznyakoff  <gray@gnu.org.ua>
36737
36738         * gnulib-tool (func_import): Avoid duplication of --avoid
36739         statements
36740         (func_dest_tmpfilename,func_create_testdir): Translate `-' in file
36741         names to `_' in variable names.
36742
36743 2007-07-10  Eric Blake  <ebb9@byu.net>
36744
36745         * lib/version-etc.c (version_etc_va): Default to GPLv3+.
36746         * NEWS: Document this change.
36747
36748 2007-07-08  Bruno Haible  <bruno@clisp.org>
36749
36750         Update to Unicode 5.0.
36751         * lib/uniwidth/width.c (nonspacing_table_data): Add U+00AD,
36752         U+0350..U+035F, U+05A2, U+05BA, U+05C5, U+05C7, U+0600..U+0603,
36753         U+0610..U+0615, U+0656..U+065E, U+07EB..U+07F3, U+0A01, U+0AE2..U+0AE3,
36754         U+0CBC. Remove U+0CBF, U+0CC6. Add U+0CE2..U+0CE3, U+135F,
36755         U+17B4..U+17B5, U+17DD. Remove U+180E. Add U+1920..U+1922,
36756         U+1927..U+192B, U+1932, U+1939..U+193B, U+1A17..U+1A18, U+1B00..U+1B03,
36757         U+1B34, U+1B36..U+1B3A, U+1B3C, U+1B42, U+1B6B..U+1B73, U+1DC0..U+1DCA,
36758         U+1DFE..U+1DFF, U+20EB..U+20EF, U+A802, U+A806, U+A80B, U+A825..U+A826,
36759         U+10A01..U+10A03, U+10A05..U+10A06, U+10A0C..U+10A0F, U+10A38..U+10A3A,
36760         U+10A3F, U+1D242..U+1D244.
36761         (nonspacing_table_ind): Update.
36762         (uc_width): Assign width 0 to U+E0100..U+E01EF. Assign width 1 to
36763         U+4DC0..U+4DFF. Assign width 2 to U+2329..U+232A, U+FE10..U+FE1F.
36764
36765 2007-07-08  Bruno Haible  <bruno@clisp.org>
36766
36767         Update to Unicode 5.0.
36768         * lib/uniname/gen-uninames.lisp (main): Add the range 0x12xxx to the
36769         code transform. Extend the name index field of unicode_name_to_code and
36770         unicode_code_to_name from 16 to 24 bits.
36771         * lib/uniname/uniname.c (unicode_character_name,
36772         unicode_name_character): Add the range 0x12xxx to the code transform.
36773         * lib/uniname/uninames.h: Regenerated.
36774         * tests/uniname/UnicodeDataNames.txt: Update to Unicode 5.0.
36775
36776 2007-07-07  Bruno Haible  <bruno@clisp.org>
36777
36778         * modules/wcwidth-tests: New file.
36779         * tests/test-wcwidth.c: New file.
36780
36781         Work around MacOS X wcwidth() bug.
36782         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Test against MacOS X 10.3 bug.
36783         * lib/wcwidth.c: Include localcharset.h, streq.h, uniwidth.h.
36784         (rpl_wcwidth): Special-case the UTF-8 locales. Fall back to the
36785         original wcwidth in non-UTF-8 locales.
36786         * modules/wcwidth (Depends-on): Add localcharset, streq,
36787         uniwidth/width.
36788         * doc/functions/wcwidth.texi: Update.
36789
36790 2007-07-07  Bruno Haible  <bruno@clisp.org>
36791
36792         * lib/wchar_.h: Include the GL_LINK_WARNING macro.
36793         (wcwidth): New declaration.
36794         * m4/wchar.m4 (gl_WCHAR_MODULE_INDICATOR, gl_WCHAR_H_DEFAULTS): New
36795         macros.
36796         (gl_WCHAR_H): Require gl_WCHAR_H_DEFAULTS. Don't set WCHAR_H to empty
36797         here. Prepare for creating <wchar.h> unconditionally.
36798         * modules/wchar (Depends-on): Add link-warning.
36799         (Makefile.am): Substitute also GNULIB_WCWIDTH, HAVE_DECL_WCWIDTH,
36800         REPLACE_WCWIDTH, and GL_LINK_WARNING.
36801         * lib/wcwidth.h: Remove file.
36802         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Require gl_WCHAR_H_DEFAULTS. Set
36803         HAVE_DECL_WCWIDTH, REPLACE_WCWIDTH, WCHAR_H.
36804         * modules/wcwidth (Files): Remove lib/wcwidth.h.
36805         (configure.ac): Invoke gl_WCHAR_MODULE_INDICATOR.
36806         (Include): Replace wcwidth.h with <wchar.h>.
36807         * lib/wcwidth.c: Include <wchar.h> instead of wcwidth.h.
36808         * lib/mbchar.h: Don't include wcwidth.h.
36809         * lib/mbswidth.c: Likewise.
36810         * NEWS: Mention the change.
36811
36812 2007-07-07  Bruno Haible  <bruno@clisp.org>
36813
36814         * lib/wcwidth.c: New file, extracted from lib/wcwidth.h.
36815         * lib/wcwidth.h: Don't include wctype.h. Replace inline function
36816         definition with an external declaration.
36817         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Use wcwidth.c when wcwidth is not
36818         defined as a function. Remove AC_C_INLINE requirement.
36819         * modules/wcwidth (Files): Add lib/wcwidth.c.
36820         (Makefile.am): Remove redundant statement.
36821
36822 2007-07-07  Bruno Haible  <bruno@clisp.org>
36823
36824         * MODULES.html.sh (Unicode string functions): Add the new modules.
36825
36826         * tests/uniwidth/test-u32-strwidth.c: New file.
36827         * modules/uniwidth/u32-strwidth-tests: New file.
36828
36829         * lib/uniwidth/u32-strwidth.c: New file.
36830         * modules/uniwidth/u32-strwidth: New file.
36831
36832         * tests/uniwidth/test-u16-strwidth.c: New file.
36833         * modules/uniwidth/u16-strwidth-tests: New file.
36834
36835         * lib/uniwidth/u16-strwidth.c: New file.
36836         * modules/uniwidth/u16-strwidth: New file.
36837
36838         * tests/uniwidth/test-u8-strwidth.c: New file.
36839         * modules/uniwidth/u8-strwidth-tests: New file.
36840
36841         * lib/uniwidth/u8-strwidth.c: New file.
36842         * modules/uniwidth/u8-strwidth: New file.
36843
36844         * tests/uniwidth/test-u32-width.c: New file.
36845         * modules/uniwidth/u32-width-tests: New file.
36846
36847         * lib/uniwidth/u32-width.c: New file.
36848         * modules/uniwidth/u32-width: New file.
36849
36850         * tests/uniwidth/test-u16-width.c: New file.
36851         * modules/uniwidth/u16-width-tests: New file.
36852
36853         * lib/uniwidth/u16-width.c: New file.
36854         * modules/uniwidth/u16-width: New file.
36855
36856         * tests/uniwidth/test-u8-width.c: New file.
36857         * modules/uniwidth/u8-width-tests: New file.
36858
36859         * lib/uniwidth/u8-width.c: New file.
36860         * modules/uniwidth/u8-width: New file.
36861
36862         * tests/uniwidth/test-uc_width.c: New file.
36863         * modules/uniwidth/width-tests: New file.
36864
36865         * lib/uniwidth/width.c: New file, from GNU libiconv.
36866         * lib/uniwidth/cjk.h: New file, from GNU libiconv.
36867         * modules/uniwidth/width: New file.
36868
36869         * lib/uniwidth.h: New file, from GNU libiconv.
36870         * modules/uniwidth/base: New file.
36871
36872 2007-07-07  Bruno Haible  <bruno@clisp.org>
36873
36874         * lib/uniname.h: New file, from GNU gettext.
36875         * lib/uniname/gen-uninames.lisp: New file, from GNU gettext.
36876         * lib/uniname/uninames.h: New file, from GNU gettext.
36877         * lib/uniname/uniname.c: New file, from GNU gettext.
36878         * tests/uniname/test-uninames.sh: New file.
36879         * tests/uniname/test-uninames.c: New file, from GNU gettext.
36880         * tests/uniname/UnicodeDataNames.txt: New file, from GNU gettext.
36881         * modules/uniname/base: New file.
36882         * modules/uniname/uniname: New file.
36883         * modules/uniname/uniname-tests: New file.
36884         * MODULES.html.sh (Unicode string functions): Add the new modules.
36885
36886 2007-07-06  Bruno Haible  <bruno@clisp.org>
36887
36888         * doc/Makefile (TEXI2HTML): Specify a --reference-limit.
36889
36890 2007-07-06  Bruno Haible  <bruno@clisp.org>
36891
36892         * lib/sys_time_.h: Use a recursion-safe inclusion guard rather than
36893         a split double-inclusion guard. Needed for cygwin, where <sys/time.h>
36894         includes <cygwin/sys_time.h> which includes <sys/select.h> which
36895         include <sys/time.h>.
36896         Reported by Eric Blake.
36897
36898 2007-07-06  Eric Blake  <ebb9@byu.net>
36899
36900         Fix testing canonicalize on cygwin.
36901         * modules/canonicalize-lgpl-tests (test_canonicalize_lgpl_LDADD):
36902         Revert patch from 2007-06-19.
36903         * tests/test-canonicalize-lgpl.c (main): Instead, skip test when
36904         canonicalize module is also in use.
36905         * tests/test-canonicalize.c: New file.
36906         * tests/test-canonicalize.sh: Likewise.
36907         * modules/canonicalize-tests: Likewise.
36908
36909 2007-07-06  Jim Meyering  <jim@meyering.net>
36910
36911         * lib/getugroups.c (getugroups): Detect getgrent failure.
36912         Adjust comment to reflect reality: this function may return -1.
36913
36914 2007-07-05  Sergey Poznyakoff  <gray@gnu.org.ua>
36915
36916         * build-aux/bootstrap (TP_URL,get_translations): Update to use
36917         the new TP address.
36918         (usage): Fix typo
36919         (gnulib_mk): New variable.
36920
36921 2007-07-05  Jim Meyering  <jim@meyering.net>
36922
36923         Don't let endgrent clobber errno, no matter how improbable.
36924         * lib/getugroups.c (getugroups): Save and restore errno around
36925         endgrent call.
36926
36927         Close the group DB even when failing with 2^31 or more members.
36928         * lib/getugroups.c (getugroups): Don't return without calling endgrent.
36929
36930 2007-07-04  Jim Meyering  <jim@meyering.net>
36931
36932         * lib/getugroups.h: New file.
36933         * lib/getugroups.c: Include "getugroups.h".
36934         Remove uses of "register" keyword.
36935         Move local variable, "cp", down into scope where used.
36936         Give "username" parameter the "const" attribute.
36937         * modules/getugroups (Files): Add lib/getugroups.h
36938
36939 2007-07-04  Karl Berry  <karl@gnu.org>
36940
36941         * MODULES.html.sh (func_all_modules): Complete rename of
36942         gpl/lgpl to gpl-2.0 and lgpl-2.1, and add gpl-3.0.
36943
36944 2007-07-02  Bruno Haible  <bruno@clisp.org>
36945
36946         * m4/inttypes.m4 (gl_INTTYPES_H): Define __STDC_LIMIT_MACROS in C++
36947         mode, when inttypes.h comes from gnulib.
36948         Reported by Joel E. Denny <jdenny@ces.clemson.edu>.
36949
36950 2007-07-02  Simon Josefsson  <simon@josefsson.org>
36951
36952         * NEWS: Mention lgpl module name change.
36953
36954         * modules/lgpl-2.1: Renamed from lgpl.
36955
36956         * NEWS: Mention gpl module name change.
36957
36958         * modules/gpl-3.0: New file, based on gpl-2.0.
36959
36960         * modules/gpl-2.0: Renamed from gpl.
36961
36962         * modules/gpl: Fix filename, doc/gpl.texi is now found at
36963         doc/gpl-2.0.texi.
36964
36965 2007-07-02  Paul Eggert  <eggert@cs.ucla.edu>
36966
36967         * lib/inttypes_.h [defined __cplusplus&&!defined __STDC_LIMIT_MACROS]:
36968         #define __STDC_LIMIT_MACROS temporarily while including
36969         <stdint.h>, so that __STDC_LIMIT_MACROS is defined.
36970         Problem reported by Joel E. Denny in
36971         <http://lists.gnu.org/archive/html/bug-gnulib/2007-07/msg00008.html>.
36972
36973 2007-07-01  Bruno Haible  <bruno@clisp.org>
36974
36975         * lib/unistdio.h: New file.
36976         * lib/unistdio/u-asnprintf.h: New file.
36977         * lib/unistdio/u-asprintf.h: New file.
36978         * lib/unistdio/u-printf-args.c: New file.
36979         * lib/unistdio/u-printf-args.h: New file.
36980         * lib/unistdio/u-printf-parse.h: New file.
36981         * lib/unistdio/u-snprintf.h: New file.
36982         * lib/unistdio/u-sprintf.h: New file.
36983         * lib/unistdio/u-vasprintf.h: New file.
36984         * lib/unistdio/u-vsnprintf.h: New file.
36985         * lib/unistdio/u-vsprintf.h: New file.
36986         * lib/unistdio/ulc-asnprintf.c: New file.
36987         * lib/unistdio/ulc-asprintf.c: New file.
36988         * lib/unistdio/ulc-fprintf.c: New file, based on lib/fprintf.c.
36989         * lib/unistdio/ulc-printf-parse.c: New file.
36990         * lib/unistdio/ulc-snprintf.c: New file.
36991         * lib/unistdio/ulc-sprintf.c: New file.
36992         * lib/unistdio/ulc-vasnprintf.c: New file.
36993         * lib/unistdio/ulc-vasprintf.c: New file.
36994         * lib/unistdio/ulc-vfprintf.c: New file, based on lib/vfprintf.c.
36995         * lib/unistdio/ulc-vsnprintf.c: New file.
36996         * lib/unistdio/ulc-vsprintf.c: New file.
36997         * lib/unistdio/u8-asnprintf.c: New file.
36998         * lib/unistdio/u8-asprintf.c: New file.
36999         * lib/unistdio/u8-printf-parse.c: New file.
37000         * lib/unistdio/u8-snprintf.c: New file.
37001         * lib/unistdio/u8-sprintf.c: New file.
37002         * lib/unistdio/u8-vasnprintf.c: New file.
37003         * lib/unistdio/u8-vasprintf.c: New file.
37004         * lib/unistdio/u8-vsnprintf.c: New file.
37005         * lib/unistdio/u8-vsprintf.c: New file.
37006         * lib/unistdio/u8-u8-asnprintf.c: New file.
37007         * lib/unistdio/u8-u8-asprintf.c: New file.
37008         * lib/unistdio/u8-u8-snprintf.c: New file.
37009         * lib/unistdio/u8-u8-sprintf.c: New file.
37010         * lib/unistdio/u8-u8-vasnprintf.c: New file.
37011         * lib/unistdio/u8-u8-vasprintf.c: New file.
37012         * lib/unistdio/u8-u8-vsnprintf.c: New file.
37013         * lib/unistdio/u8-u8-vsprintf.c: New file.
37014         * lib/unistdio/u16-asnprintf.c: New file.
37015         * lib/unistdio/u16-asprintf.c: New file.
37016         * lib/unistdio/u16-printf-parse.c: New file.
37017         * lib/unistdio/u16-snprintf.c: New file.
37018         * lib/unistdio/u16-sprintf.c: New file.
37019         * lib/unistdio/u16-vasnprintf.c: New file.
37020         * lib/unistdio/u16-vasprintf.c: New file.
37021         * lib/unistdio/u16-vsnprintf.c: New file.
37022         * lib/unistdio/u16-vsprintf.c: New file.
37023         * lib/unistdio/u16-u16-asnprintf.c: New file.
37024         * lib/unistdio/u16-u16-asprintf.c: New file.
37025         * lib/unistdio/u16-u16-snprintf.c: New file.
37026         * lib/unistdio/u16-u16-sprintf.c: New file.
37027         * lib/unistdio/u16-u16-vasnprintf.c: New file.
37028         * lib/unistdio/u16-u16-vasprintf.c: New file.
37029         * lib/unistdio/u16-u16-vsnprintf.c: New file.
37030         * lib/unistdio/u16-u16-vsprintf.c: New file.
37031         * lib/unistdio/u32-asnprintf.c: New file.
37032         * lib/unistdio/u32-asprintf.c: New file.
37033         * lib/unistdio/u32-printf-parse.c: New file.
37034         * lib/unistdio/u32-snprintf.c: New file.
37035         * lib/unistdio/u32-sprintf.c: New file.
37036         * lib/unistdio/u32-vasnprintf.c: New file.
37037         * lib/unistdio/u32-vasprintf.c: New file.
37038         * lib/unistdio/u32-vsnprintf.c: New file.
37039         * lib/unistdio/u32-vsprintf.c: New file.
37040         * lib/unistdio/u32-u32-asnprintf.c: New file.
37041         * lib/unistdio/u32-u32-asprintf.c: New file.
37042         * lib/unistdio/u32-u32-snprintf.c: New file.
37043         * lib/unistdio/u32-u32-sprintf.c: New file.
37044         * lib/unistdio/u32-u32-vasnprintf.c: New file.
37045         * lib/unistdio/u32-u32-vasprintf.c: New file.
37046         * lib/unistdio/u32-u32-vsnprintf.c: New file.
37047         * lib/unistdio/u32-u32-vsprintf.c: New file.
37048         * tests/unistdio/test-ulc-asnprintf1.c: New file.
37049         * tests/unistdio/test-ulc-asnprintf1.h: New file.
37050         * tests/unistdio/test-ulc-printf1.h: New file.
37051         * tests/unistdio/test-ulc-vasnprintf1.c: New file.
37052         * tests/unistdio/test-ulc-vasnprintf2.c: New file.
37053         * tests/unistdio/test-ulc-vasnprintf2.sh: New file.
37054         * tests/unistdio/test-ulc-vasnprintf3.c: New file.
37055         * tests/unistdio/test-ulc-vasnprintf3.sh: New file.
37056         * tests/unistdio/test-ulc-vasprintf1.c: New file.
37057         * tests/unistdio/test-ulc-vsnprintf1.c: New file.
37058         * tests/unistdio/test-ulc-vsprintf1.c: New file.
37059         * tests/unistdio/test-u8-asnprintf1.c: New file.
37060         * tests/unistdio/test-u8-asnprintf1.h: New file.
37061         * tests/unistdio/test-u8-printf1.h: New file.
37062         * tests/unistdio/test-u8-vasnprintf1.c: New file.
37063         * tests/unistdio/test-u8-vasnprintf2.c: New file.
37064         * tests/unistdio/test-u8-vasnprintf2.sh: New file.
37065         * tests/unistdio/test-u8-vasnprintf3.c: New file.
37066         * tests/unistdio/test-u8-vasnprintf3.sh: New file.
37067         * tests/unistdio/test-u8-vasprintf1.c: New file.
37068         * tests/unistdio/test-u8-vsnprintf1.c: New file.
37069         * tests/unistdio/test-u8-vsprintf1.c: New file.
37070         * tests/unistdio/test-u16-asnprintf1.c: New file.
37071         * tests/unistdio/test-u16-asnprintf1.h: New file.
37072         * tests/unistdio/test-u16-printf1.h: New file.
37073         * tests/unistdio/test-u16-vasnprintf1.c: New file.
37074         * tests/unistdio/test-u16-vasnprintf2.c: New file.
37075         * tests/unistdio/test-u16-vasnprintf2.sh: New file.
37076         * tests/unistdio/test-u16-vasnprintf3.c: New file.
37077         * tests/unistdio/test-u16-vasnprintf3.sh: New file.
37078         * tests/unistdio/test-u16-vasprintf1.c: New file.
37079         * tests/unistdio/test-u16-vsnprintf1.c: New file.
37080         * tests/unistdio/test-u16-vsprintf1.c: New file.
37081         * tests/unistdio/test-u32-asnprintf1.c: New file.
37082         * tests/unistdio/test-u32-asnprintf1.h: New file.
37083         * tests/unistdio/test-u32-printf1.h: New file.
37084         * tests/unistdio/test-u32-vasnprintf1.c: New file.
37085         * tests/unistdio/test-u32-vasnprintf2.c: New file.
37086         * tests/unistdio/test-u32-vasnprintf2.sh: New file.
37087         * tests/unistdio/test-u32-vasnprintf3.c: New file.
37088         * tests/unistdio/test-u32-vasnprintf3.sh: New file.
37089         * tests/unistdio/test-u32-vasprintf1.c: New file.
37090         * tests/unistdio/test-u32-vsnprintf1.c: New file.
37091         * tests/unistdio/test-u32-vsprintf1.c: New file.
37092         * modules/unistdio/base: New file.
37093         * modules/unistdio/u-printf-args: New file.
37094         * modules/unistdio/ulc-asnprintf: New file.
37095         * modules/unistdio/ulc-asprintf: New file.
37096         * modules/unistdio/ulc-fprintf: New file.
37097         * modules/unistdio/ulc-printf-parse: New file.
37098         * modules/unistdio/ulc-snprintf: New file.
37099         * modules/unistdio/ulc-sprintf: New file.
37100         * modules/unistdio/ulc-vasnprintf: New file.
37101         * modules/unistdio/ulc-vasprintf: New file.
37102         * modules/unistdio/ulc-vfprintf: New file.
37103         * modules/unistdio/ulc-vsnprintf: New file.
37104         * modules/unistdio/ulc-vsprintf: New file.
37105         * modules/unistdio/u8-asnprintf: New file.
37106         * modules/unistdio/u8-asprintf: New file.
37107         * modules/unistdio/u8-printf-parse: New file.
37108         * modules/unistdio/u8-snprintf: New file.
37109         * modules/unistdio/u8-sprintf: New file.
37110         * modules/unistdio/u8-vasnprintf: New file.
37111         * modules/unistdio/u8-vasprintf: New file.
37112         * modules/unistdio/u8-vsnprintf: New file.
37113         * modules/unistdio/u8-vsprintf: New file.
37114         * modules/unistdio/u8-u8-asnprintf: New file.
37115         * modules/unistdio/u8-u8-asprintf: New file.
37116         * modules/unistdio/u8-u8-snprintf: New file.
37117         * modules/unistdio/u8-u8-sprintf: New file.
37118         * modules/unistdio/u8-u8-vasnprintf: New file.
37119         * modules/unistdio/u8-u8-vasprintf: New file.
37120         * modules/unistdio/u8-u8-vsnprintf: New file.
37121         * modules/unistdio/u8-u8-vsprintf: New file.
37122         * modules/unistdio/u16-asnprintf: New file.
37123         * modules/unistdio/u16-asprintf: New file.
37124         * modules/unistdio/u16-printf-parse: New file.
37125         * modules/unistdio/u16-snprintf: New file.
37126         * modules/unistdio/u16-sprintf: New file.
37127         * modules/unistdio/u16-vasnprintf: New file.
37128         * modules/unistdio/u16-vasprintf: New file.
37129         * modules/unistdio/u16-vsnprintf: New file.
37130         * modules/unistdio/u16-vsprintf: New file.
37131         * modules/unistdio/u16-u16-asnprintf: New file.
37132         * modules/unistdio/u16-u16-asprintf: New file.
37133         * modules/unistdio/u16-u16-snprintf: New file.
37134         * modules/unistdio/u16-u16-sprintf: New file.
37135         * modules/unistdio/u16-u16-vasnprintf: New file.
37136         * modules/unistdio/u16-u16-vasprintf: New file.
37137         * modules/unistdio/u16-u16-vsnprintf: New file.
37138         * modules/unistdio/u16-u16-vsprintf: New file.
37139         * modules/unistdio/u32-asnprintf: New file.
37140         * modules/unistdio/u32-asprintf: New file.
37141         * modules/unistdio/u32-printf-parse: New file.
37142         * modules/unistdio/u32-snprintf: New file.
37143         * modules/unistdio/u32-sprintf: New file.
37144         * modules/unistdio/u32-vasnprintf: New file.
37145         * modules/unistdio/u32-vasprintf: New file.
37146         * modules/unistdio/u32-vsnprintf: New file.
37147         * modules/unistdio/u32-vsprintf: New file.
37148         * modules/unistdio/u32-u32-asnprintf: New file.
37149         * modules/unistdio/u32-u32-asprintf: New file.
37150         * modules/unistdio/u32-u32-snprintf: New file.
37151         * modules/unistdio/u32-u32-sprintf: New file.
37152         * modules/unistdio/u32-u32-vasnprintf: New file.
37153         * modules/unistdio/u32-u32-vasprintf: New file.
37154         * modules/unistdio/u32-u32-vsnprintf: New file.
37155         * modules/unistdio/u32-u32-vsprintf: New file.
37156         * modules/unistdio/ulc-asnprintf-tests: New file.
37157         * modules/unistdio/ulc-vasnprintf-tests: New file.
37158         * modules/unistdio/ulc-vasprintf-tests: New file.
37159         * modules/unistdio/ulc-vsnprintf-tests: New file.
37160         * modules/unistdio/ulc-vsprintf-tests: New file.
37161         * modules/unistdio/u8-asnprintf-tests: New file.
37162         * modules/unistdio/u8-vasnprintf-tests: New file.
37163         * modules/unistdio/u8-vasprintf-tests: New file.
37164         * modules/unistdio/u8-vsnprintf-tests: New file.
37165         * modules/unistdio/u8-vsprintf-tests: New file.
37166         * modules/unistdio/u16-asnprintf-tests: New file.
37167         * modules/unistdio/u16-vasnprintf-tests: New file.
37168         * modules/unistdio/u16-vasprintf-tests: New file.
37169         * modules/unistdio/u16-vsnprintf-tests: New file.
37170         * modules/unistdio/u16-vsprintf-tests: New file.
37171         * modules/unistdio/u32-asnprintf-tests: New file.
37172         * modules/unistdio/u32-vasnprintf-tests: New file.
37173         * modules/unistdio/u32-vasprintf-tests: New file.
37174         * modules/unistdio/u32-vsnprintf-tests: New file.
37175         * modules/unistdio/u32-vsprintf-tests: New file.
37176         * MODULES.html.sh (Unicode string functions): Add the new modules.
37177
37178 2007-07-01  Bruno Haible  <bruno@clisp.org>
37179
37180         * lib/sprintf.c (sprintf): Limit the available length estimation,
37181         to avoid address wraparound.
37182         * lib/vsprintf.c (vsprintf): Likewise.
37183         * modules/sprintf-posix (Dependencies): Add stdint.
37184         * modules/vsprintf-posix (Dependencies): Likewise.
37185
37186 2007-07-01  Bruno Haible  <bruno@clisp.org>
37187
37188         * gnulib-tool (self_abspathname): Determine PATH_SEPARATOR and handle
37189         Windows PATH as well. Conservative double-quoting. Comments.
37190
37191 2007-07-01  Bruno Haible  <bruno@clisp.org>
37192             Eric Blake  <ebb9@byu.net>
37193             Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
37194
37195         * gnulib-tool (self_abspathname): Fix algorithm to cope with
37196         empty components in $PATH, denoting '.'.
37197
37198 2007-07-01  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
37199
37200         * gnulib-tool: Fix indentation.
37201         (func_create_megatestdir): Likewise.
37202         Report by Bruno Haible.
37203
37204 2007-06-30  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
37205
37206         Sync from Automake.
37207         * build-aux/gnupload: Fix shell portability issues with for loops.
37208         Report by Karl Berry.
37209
37210 2007-06-29  Simon Josefsson  <simon@josefsson.org>
37211
37212         * build-aux/maint.mk (POURL): Use translationproject.org.
37213
37214 2007-06-27  Simon Josefsson  <simon@josefsson.org>
37215             Bruno Haible  <bruno@clisp.org>
37216
37217         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Require gl_HEADER_SYS_SOCKET
37218         before using HAVE_WS2TCPIP_H. Check for gai_strerror through an
37219         explicit link test, rather than AC_REPLACE_FUNCS - for mingw.
37220         (gl_PREREQ_GETADDRINFO): Require gl_HEADER_SYS_SOCKET before using
37221         HAVE_SYS_SOCKET_H and HAVE_WS2TCPIP_H.
37222
37223 2007-06-27  Bruno Haible  <bruno@clisp.org>
37224
37225         * build-aux/config.rpath: Upgrade to libtool-1.5.24.
37226         * build-aux/config.libpath: Upgrade to libtool-1.5.24.
37227
37228 2007-06-26  Karl Berry  <karl@gnu.org>
37229
37230         * MODULES.html.sh: remove xreadlink-with-size.
37231
37232 2007-06-23  Paul Eggert  <eggert@cs.ucla.edu>
37233
37234         * lib/time_.h: Port to Solaris 8 with Sun Studio 11, using a
37235         method that I hope also handles the double-include problem noted
37236         by Bruno Haible in
37237         <http://lists.gnu.org/archive/html/bug-gnulib/2007-05/msg00186.html>.
37238
37239 2007-06-23  Bruno Haible  <bruno@clisp.org>
37240
37241         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
37242         Don't let the 'mostlyclean' target fail if the last subdirectory could
37243         not be removed.
37244         Reported by Karl Berry.
37245
37246 2007-06-23  Bruno Haible  <bruno@clisp.org>
37247
37248         * gnulib-tool (echo): Add a speedier workaround for ksh.
37249         * tests/test-echo.sh: Likewise.
37250
37251 2007-06-23  Bruno Haible  <bruno@clisp.org>
37252
37253         * gnulib-tool (echo): Add workarounds also for bash versions < 2.04.
37254         * tests/test-echo.sh: Likewise.
37255
37256 2007-06-23  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
37257
37258         * gnulib-tool (IFS): Initialize early, so we don't set it to
37259         empty later.
37260         (self_abspathname): Rewrite algorithm to set it, reindent.
37261         (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am)
37262         (func_create_megatestdir): Merge some sed scripts.
37263
37264 2007-06-23  Paul Eggert  <eggert@cs.ucla.edu>
37265
37266         * m4/include_next.m4 (gl_CHECK_NEXT_HEADERS): Check some typos
37267         exposed by Sun Studio 11 cc on Solaris 8.
37268
37269 2007-06-22  Bruno Haible  <bruno@clisp.org>
37270
37271         * gnulib-tool (echo): Ensure the echo primitive does not interpret
37272         backslashes.
37273         * tests/test-echo.sh: New file.
37274
37275 2007-06-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
37276
37277         * gnulib-tool (func_add_or_update, func_create_testdir): Do not
37278         simplify `sed_replace_build_aux' scripts, they are portable but
37279         echoing them with `echo' is not.
37280         Report and analysis by Fernando Ferreira <fernando.prog@netcabo.pt>.
37281
37282 2007-06-21  Karl Berry  <karl@gnu.org>
37283
37284         * config/srclist.txt: guess we can't handle the licenses via
37285         srclist at the moment.
37286
37287 2007-06-21  Paul Eggert  <eggert@cs.ucla.edu>
37288
37289         * MODULES.html.sh: Add include_next.
37290         * modules/include_next: New file.
37291
37292 2007-06-20  Paul Eggert  <eggert@cs.ucla.edu>
37293
37294         * m4/include_next.m4 (gl_INCLUDE_NEXT): Define and AC_SUBST
37295         INCLUDE_NEXT.
37296         (gl_CHECK_NEXT_HEADERS): New macro.
37297         * m4/fcntl_h.m4 (gl_FCNTL_H): use gl_CHECK_NEXT_HEADERS instead of
37298         the obsolescent gl_ABSOLUTE_HEADER.
37299         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Likewise.
37300         * m4/float_h.m4 (gl_FLOAT_H): Likewise.
37301         * m4/iconv_h.m4 (gl_ICONV_H): Likewise.
37302         * m4/inttypes.m4 (gl_INTTYPES_H): Likewise.
37303         * m4/locale_h.m4 (gl_LOCALE_H): Likewise.
37304         * m4/math_h.m4 (gl_MATH_H): Likewise.
37305         * m4/netinet_in_h.m4 (gl_HEADER_NETINET_IN): Likewise.
37306         * m4/search_h.m4 (gl_SEARCH_H): Likewise.
37307         * m4/signal_h.m4 (gl_SIGNAL_H): Likewise.
37308         * m4/stdint.m4 (gl_STDINT_H): Likewise.
37309         * m4/stdio_h.m4 (gl_STDIO_H): Likewise.
37310         * m4/stdlib_h.m4 (gl_STDLIB_H): Likewise.
37311         * m4/string_h.m4 (gl_HEADER_STRING_H_BODY): Likewise.
37312         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
37313         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Likewise.
37314         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Likewise.
37315         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Likewise.
37316         * m4/sysexits.m4 (gl_SYSEXITS): Likewise.
37317         * m4/time_h.m4 (gl_HEADER_TIME_H_BODY): Likewise.
37318         * m4/unistd_h.m4 (gl_UNISTD_H): Likewise.
37319         * m4/wchar.m4 (gl_WCHAR_H): Likewise.
37320         * m4/wctype.m4 (gl_WCTYPE_H): Likewise.
37321         * m4/inttypes.m4 (gl_INTTYPES_H): Define
37322         _GL_JUST_INCLUDE_SYSTEM_INTTYPES_H to avoid the problem of unclean
37323         builds, since ABSOLUTE_INTTYPES_H is no longer being defined.
37324         * m4/stdint.m4 (gl_STDINT_H): Likewise, for
37325         _GL_JUST_INCLUDE_SYSTEM_STDINT_H.
37326         * lib/fcntl_.h: Use @INCLUDE_NEXT@ @NEXT_foo_H@
37327         rather than @HAVE_INCLUDE_NEXT@ and @ABSOLUTE_foo_H@.
37328         * lib/float_.h: Likewise.
37329         * lib/inttypes_.h: Likewise.
37330         * lib/math_.h: Likewise.
37331         * lib/search_.h: Likewise.
37332         * lib/signal_.h: Likewise.
37333         * lib/stdint_.h: Likewise.
37334         * lib/stdio_.h: Likewise.
37335         * lib/stdlib_.h: Likewise.
37336         * lib/string_.h: Likewise.
37337         * lib/sys_stat_.h: Likewise.
37338         * lib/sys_time_.h: Likewise.
37339         * lib/time_.h: Likewise.
37340         * lib/unistd_.h: Likewise.
37341         * lib/wchar_.h: Likewise.
37342         * lib/wctype_.h: Likewise.
37343         * lib/dirent_.h: Likewise.
37344         * lib/iconv_.h: Likewise.
37345         * lib/locale_.h: Likewise.
37346         * lib/netinet_in_.h: Likewise.
37347         * lib/sys_select_.h: Likewise.
37348         * lib/sys_socket_.h: Likewise.
37349         * lib/sysexits_.h: Likewise.
37350         * modules/fcntl (Depends-on): Depend on include_next, not
37351         absolute_header.
37352         (Makefile): Substitute INCLUDE_NEXT and NEXT_foo_H, not
37353         HAVE_INCLUDE_NEXT and ABSOLUTE_foo_H.
37354         * modules/fchdir: Likewise.
37355         * modules/float: Likewise.
37356         * modules/iconv_open: Likewise.
37357         * modules/inttypes: Likewise.
37358         * modules/locale: Likewise.
37359         * modules/math: Likewise.
37360         * modules/netinet_in: Likewise.
37361         * modules/search: Likewise.
37362         * modules/signal: Likewise.
37363         * modules/stdint: Likewise.
37364         * modules/stdio: Likewise.
37365         * modules/stdlib: Likewise.
37366         * modules/string: Likewise.
37367         * modules/sys_select: Likewise.
37368         * modules/sys_socket: Likewise.
37369         * modules/sys_stat: Likewise.
37370         * modules/sys_time: Likewise.
37371         * modules/sysexits: Likewise.
37372         * modules/time: Likewise.
37373         * modules/unistd: Likewise.
37374         * modules/wchar: Likewise.
37375         * modules/wctype: Likewise.
37376         * modules/sys_stat: Change maintainer to "all".
37377         * modules/unistd: Likewise.
37378
37379 2007-06-20  Karl Berry  <karl@gnu.org>
37380
37381         * config/srclist.txt: track www changes in license files.
37382
37383 2007-06-20  Sergey Poznyakoff  <gray@gnu.org.ua>
37384
37385         * build-aux/bootstrap: Remove stray dot.
37386         Make sure build_aux settings are honored when linking
37387         gnulib_extra_files.
37388
37389 2007-06-19  Eric Blake  <ebb9@byu.net>
37390
37391         * modules/canonicalize-lgpl-tests (test_canonicalize_lgpl_LDADD):
37392         Allow compilation on cygwin.
37393
37394 2007-06-19  Jim Meyering  <jim@meyering.net>
37395
37396         xreadlink-with-size: Remove module.  No longer used.
37397         Ex-callers now use xreadlink or mreadlink-with-size.
37398         * modules/xreadlink-with-size: Remove module.
37399         * lib/xreadlink-with-size.c: Remove file.
37400         * lib/xreadlink.h (xreadlink_with_size): Remove prototype.
37401         (xreadlink): Remove inaccurate comment.  The one in xreadlink.c,
37402         just before the function definition *is* accurate.
37403
37404         Eliminate one way canonicalize_filename_mode could exit.
37405         * lib/canonicalize.c (canonicalize_filename_mode):
37406         Use mreadlink_with_size, not xreadlink_with_size.
37407
37408 2007-06-18  Paul Eggert  <eggert@cs.ucla.edu>
37409
37410         Detect porting problems to FreeBSD/arm, which has time_t wider than
37411         long int.  Original problem reported for GNU diff by Xin Li in
37412         <http://lists.gnu.org/archive/html/bug-gnu-utils/2007-06/msg00091.html>.
37413         * modules/getdate (Depends-on): Add intprops, verify.
37414         * lib/getdate.y: Include intprops.h, verify.h.  Verify that time_t
37415         is an integer type no wider than long int.
37416
37417 2007-06-18  Jim Meyering  <jim@meyering.net>
37418
37419         New module: mreadlink-with-size.
37420         * MODULES.html.sh: Add mreadlink-with-size.
37421         * modules/mreadlink-with-size: New module
37422         * modules/canonicalize (Depends-on): Depend on mreadlink-with-size,
37423         not xreadlink-with-size.
37424         * lib/mreadlink-with-size.c, lib/mreadlink.h: New files.
37425
37426 2007-06-16  Bruno Haible  <bruno@clisp.org>
37427
37428         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Catch the MacOS X 10.4 bug.
37429         * doc/functions/frexpl.texi: Document the MacOS X 10.4 bug.
37430         Reported by Gary V. Vaughan <gary@gnu.org>.
37431
37432 2007-06-15  Paul Eggert  <eggert@cs.ucla.edu>
37433
37434         Revamp lchown so that it lives in unistd.h where it belongs.
37435         * lib/lchown.h: Remove.
37436         * lib/dirchownmod.c: Don't include lib/lchown.h.
37437         * lib/fchownat.c: Likewise.
37438         * lib/openat.c: Likewise.
37439         * lib/lchown.c (REPLACE_CHOWN): Define to 0 if the system chown
37440         does not follow symlinks.
37441         (EOPNOTSUPP): Define if not defined.
37442         * lib/unistd_.h (chown): Do not replace if REPLADE_CHOWN
37443         is defined to 0.
37444         (lchown): New decl.
37445         * m4/lchown.m4 (gl_FUNC_LCHOWN): Require gl_UNISTD_H_DEFAULTS.
37446         Do not check for lchown decl.
37447         Set REPLACE_LCHOWN.
37448         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Set GNULIB_LCHOWN,
37449         REPLACE_LCHOWN.
37450         * modules/chown: Make it clear it follows symlinks.
37451         * modules/lchown: Make it clear it doesn't follow symlinks.
37452         (Files): Remove lib/lchown.h
37453         (Depends-on): Add unistd.
37454         (configure.ac): Add gl_UNISTD_MODULE_INDICATOR([lchown]).
37455         (Include): Include <unistd.h>, not "lchown.h".
37456         * modules/unistd (unistd.h): Substitude GNULIB_LCHOWN and
37457         REPLACE_LCHOWN.
37458
37459 2007-06-15  Jim Meyering  <jim@meyering.net>
37460
37461         Change license (GPL to LGPL) of fsusage and dependents.
37462         * modules/fsusage (License): Change to LGPL.
37463         * modules/full-read (License): Likewise.
37464         * modules/full-write (License): Likewise.
37465         * modules/safe-read (License): Likewise.
37466         * modules/safe-write (License): Likewise.
37467
37468 2007-06-14  Ben Pfaff  <blp@gnu.org>
37469
37470         Missing part of allocsa -> malloca transition.
37471         * modules/relocatable-prog-wrapper: gl_ALLOCSA should be
37472         gl_MALLOCA.
37473
37474 2007-06-12  Bruno Haible  <bruno@clisp.org>
37475
37476         * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS): Guess no when cross-compiling
37477         to ia64, x86_64, i386.
37478         Reported by Eric Blake.
37479
37480 2007-06-12  Bruno Haible  <bruno@clisp.org>
37481
37482         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Guess no also when
37483         cross-compiling to x86_64.
37484
37485 2007-06-12  Paul Eggert  <eggert@cs.ucla.edu>
37486
37487         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Fix POSIX sed portability
37488         glitch reported by Ralf Wildenhues in
37489         <http://lists.gnu.org/archive/html/bug-gnulib/2007-06/msg00114.html>.
37490
37491         * m4/regex.m4 (gl_REGEX): Catch a bug with [[:alnum:]_-] reported by
37492         Vin Shelton.
37493
37494 2007-06-11  Bruno Haible  <bruno@clisp.org>
37495
37496         * lib/printf-args.c (PRINTF_FETCHARGS) [ENABLE_UNISTDIO]: Fix NULL
37497         replacement string.
37498         Reported by Eric Blake.
37499
37500 2007-06-10  Bruno Haible  <bruno@clisp.org>
37501
37502         Prepare vasnprintf code for use with Unicode strings.
37503         * lib/printf-args.h (PRINTF_FETCHARGS): New macro.
37504         (arg_type) [ENABLE_UNISTDIO]: Define TYPE_U8_STRING, TYPE_U16_STRING,
37505         TYPE_U32_STRING.
37506         (argument) [ENABLE_UNISTDIO]: Add a_u8_string, a_u16_string,
37507         a_u32_string variants.
37508         (PRINTF_FETCHARGS): Renamed from printf_fetchargs.
37509         * lib/printf-args.c: Don't include config.h and the specification
37510         header if PRINTF_FETCHARGS is already defined.
37511         (PRINTF_FETCHARGS): Renamed from printf_fetchargs.
37512         (PRINTF_FETCHARGS) [ENABLE_UNISTDIO]: Add code for TYPE_U8_STRING,
37513         TYPE_U16_STRING, TYPE_U32_STRING.
37514         * lib/printf-parse.h [ENABLE_UNISTDIO] (u8_directive, u8_directives,
37515         u16_directive, u16_directives, u32_directive, u32_directives): New
37516         types.
37517         (ulc_printf_parse, u8_printf_parse, u16_printf_parse, u32_printf_parse):
37518         New declarations.
37519         * lib/printf-parse.c: Don't include config.h and the specification
37520         header if PRINTF_PARSE is already defined. Eliminate the set of
37521         parameters for WIDE_CHAR_VERSION; the user of this file must provide
37522         them now. Include c-ctype.h.
37523         (PRINTF_PARSE) [ENABLE_UNISTDIO]: Add code implementing the 'U'
37524         directive and CHAR_T_ONLY_ASCII.
37525         * lib/vasnprintf.c: Don't include config.h and the specification header
37526         if VASNPRINTF is already defined.
37527         (DCHAR_IS_TCHAR, DCHAR_CPY): New macros.
37528         (VASNPRINTF): Use PRINTF_FETCHARGS instead of printf_fetchargs. Use
37529         DCHAR_CPY. Handle the case that DCHAR_T and FCHAR_T are not the same
37530         type. Handle the case that TCHAR_T and FCHAR_T are not of the same
37531         size. Handle the case that DCHAR_T and TCHAR_T are not the same type,
37532         add a conversion from TCHAR_T[] to DCHAR_T[], and rework the padding
37533         code accordingly.
37534         (VASNPRINTF) [ENABLE_UNISTDIO]: Implement the 'U' directive. Enable
37535         pad_ourselves also in this case, with the 'c' and 's' directives, and
37536         with a different notion of "width".
37537         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_WITH_EXTRAS): New macros.
37538
37539 2007-06-10  Bruno Haible  <bruno@clisp.org>
37540
37541         * modules/unistr/u32-mbsnlen: New file.
37542         * lib/unistr/u32-mbsnlen.c: New file.
37543
37544         * modules/unistr/u16-mbsnlen: New file.
37545         * lib/unistr/u16-mbsnlen.c: New file.
37546
37547         * modules/unistr/u8-mbsnlen: New file.
37548         * lib/unistr/u8-mbsnlen.c: New file.
37549
37550         * lib/unistr.h (u8_mbsnlen, u16_mbsnlen, u32_mbsnlen): New
37551         declarations.
37552
37553 2007-06-10  Bruno Haible  <bruno@clisp.org>
37554
37555         * lib/string_.h (mbsnlen): New declaration.
37556         * lib/mbsnlen.c: New file.
37557         * m4/mbsnlen.m4: New file.
37558         * modules/mbsnlen: New file.
37559         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Set GNULIB_MBSNLEN.
37560         * modules/string (string.h): Substitute GNULIB_MBSNLEN.
37561         * MODULES.html.sh (Internationalization functions): Add mbsnlen.
37562
37563 2007-06-10  Bruno Haible  <bruno@clisp.org>
37564
37565         * lib/mbslen.c: Include <stdlib.h>, needed for MB_CUR_MAX.
37566
37567 2007-06-10  Bruno Haible  <bruno@clisp.org>
37568
37569         * lib/mbiter.h: Include <stddef.h>, needed for ptrdiff_t.
37570         * lib/mbuiter.h: Likewise.
37571
37572 2007-06-10  Bruno Haible  <bruno@clisp.org>
37573
37574         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF): Check for _snprintf
37575         declaration.
37576
37577 2007-06-10  Karl Berry  <karl@gnu.org>
37578
37579         * config/srclist.txt: remove gettext entries, Bruno prefers
37580         to update individually.
37581
37582 2007-06-10  Bruno Haible  <bruno@clisp.org>
37583
37584         * lib/vasnprintf.c (VASNPRINTF) [!USE_SNPRINTF]: Remove variable
37585         'maxlen'. Ensure only length + width bytes are allocated, not
37586         length + 1 + width.
37587
37588 2007-06-09  Bruno Haible  <bruno@clisp.org>
37589
37590         * lib/vasnprintf.c (FCHAR_T, DCHAR_T, TCHAR_T): New macros.
37591         (CHAR_T): Remove macro.
37592         (VASNPRINTF): Update.
37593
37594 2007-06-09  Bruno Haible  <bruno@clisp.org>
37595
37596         * MODULES.html.sh (Unicode string functions): Add the new modules.
37597
37598         * modules/uniconv/u32-conv-to-enc: New file.
37599         * lib/uniconv/u32-conv-to-enc.c: New file.
37600         * modules/uniconv/u32-conv-to-enc-tests: New file.
37601         * tests/uniconv/test-u32-conv-to-enc.c: New file.
37602
37603         * modules/uniconv/u16-conv-to-enc: New file.
37604         * lib/uniconv/u16-conv-to-enc.c: New file.
37605         * lib/uniconv/u-conv-to-enc.h: New file.
37606         * modules/uniconv/u16-conv-to-enc-tests: New file.
37607         * tests/uniconv/test-u16-conv-to-enc.c: New file.
37608
37609         * modules/uniconv/u8-conv-to-enc: New file.
37610         * lib/uniconv/u8-conv-to-enc.c: New file.
37611         * modules/uniconv/u8-conv-to-enc-tests: New file.
37612         * tests/uniconv/test-u8-conv-to-enc.c: New file.
37613
37614         * lib/uniconv.h (u8_conv_to_encoding, u16_conv_to_encoding,
37615         u32_conv_to_encoding): New declarations.
37616
37617 2007-06-09  Bruno Haible  <bruno@clisp.org>
37618
37619         * tests/uniconv/test-u32-strconv-to-enc.c (main): Remove unused code.
37620
37621 2007-06-09  Bruno Haible  <bruno@clisp.org>
37622
37623         Rename 'allocsa' -> 'malloca', 'freesa' -> 'freea'.
37624         * modules/malloca: Renamed from modules/allocsa, updated.
37625         * lib/malloca.h: Renamed from lib/allocsa.h, updated.
37626         * lib/malloca.c: Renamed from lib/allocsa.c, updated.
37627         * lib/malloca.valgrind: Renamed from lib/allocsa.valgrind, updated.
37628         * m4/malloca.m4: Renamed from m4/allocsa.m4, updated.
37629         * modules/malloca-tests: Renamed from modules/allocsa-tests, updated.
37630         * tests/test-malloca.c: Renamed from tests/test-allocsa.c, updated.
37631         * modules/xmalloca: Renamed from modules/xallocsa, updated.
37632         * lib/xmalloca.h: Renamed from lib/xallocsa.h, updated.
37633         * lib/xmalloca.c: Renamed from lib/xallocsa.c, updated.
37634         * modules/c-strcasestr (Depends-on): Update.
37635         * lib/c-strcasestr.c: Update.
37636         * modules/c-strstr (Depends-on): Update.
37637         * lib/c-strstr.c: Update.
37638         * modules/canonicalize-lgpl (Depends-on): Update.
37639         * lib/canonicalize-lgpl.c: Update.
37640         * modules/clean-temp (Depends-on): Update.
37641         * lib/clean-temp.c: Update.
37642         * modules/csharpcomp (Depends-on): Update.
37643         * lib/csharpcomp.c: Update.
37644         * modules/csharpexec (Depends-on): Update.
37645         * lib/csharpexec.c: Update.
37646         * modules/javacomp (Depends-on): Update.
37647         * lib/javacomp.c: Update.
37648         * modules/javaexec (Depends-on): Update.
37649         * lib/javaexec.c: Update.
37650         * modules/mbscasestr (Depends-on): Update.
37651         * lib/mbscasestr.c: Update.
37652         * modules/mbsstr (Depends-on): Update.
37653         * lib/mbsstr.c: Update.
37654         * modules/setenv (Depends-on): Update.
37655         * lib/setenv.c: Update.
37656         * modules/strcasestr (Depends-on): Update.
37657         * lib/strcasestr.c: Update.
37658         * modules/striconveha (Depends-on): Update.
37659         * lib/striconveha.c: Update.
37660         * modules/relocatable-prog-wrapper (Files): Update.
37661         * lib/relocwrapper.c: Update.
37662         * build-aux/install-reloc: Update.
37663         * MODULES.html.sh (Memory management functions <stdlib.h>): Update.
37664
37665 2007-06-08  Bruno Haible  <bruno@clisp.org>
37666
37667         Port to uClibc.
37668         * lib/fbufmode.c (fbufmode): Add special code for uClibc.
37669         * lib/fpurge.c (fpurge): Likewise.
37670         * lib/freading.c (freading): Likewise.
37671         * lib/fseeko.c (rpl_fseeko): Likewise.
37672         * lib/fseterr.c (fseterr): Likewise.
37673         * lib/fwriting.c (fwriting): Likewise.
37674         * tests/test-fflush.c (main): Avoid a failure on uClibc.
37675
37676 2007-06-08  Bruno Haible  <bruno@clisp.org>
37677
37678         * m4/intlmacosx.m4: New file, extracted from gettext.m4.
37679         * m4/gettext.m4 (gt_INTL_MACOSX): Remove macro, moved to intlmacosx.m4.
37680         * modules/gettext (Files): Add m4/intlmacosx.m4.
37681
37682 2007-06-07  Bruno Haible  <bruno@clisp.org>
37683
37684         * modules/localename-tests: New file.
37685         * tests/test-localename.c: New file.
37686
37687         New module 'localename'.
37688         * lib/localename.h: New file.
37689         * lib/localename.c: New file, from GNU gettext.
37690         * m4/localename.m4: New file.
37691         * modules/localename: New file.
37692
37693 2007-06-07  Bruno Haible  <bruno@clisp.org>
37694
37695         Work around the lack of <wchar.h> on some builds of uClibc.
37696         * doc/headers/wchar.texi: Update.
37697         * lib/wchar_.h: Include <wchar.h> only if it exists.
37698         * m4/wchar.m4 (gl_WCHAR_H): Check for <wchar.h>. Set HAVE_WCHAR_H.
37699         * m4/stdint.m4 (gl_STDINT_H): Check for <wchar.h>.
37700         (gl_STDINT_TYPE_PROPERTIES): Don't try to include <wchar.h> if it
37701         doesn't exist.
37702         * modules/wchar (wchar.h): Substitute HAVE_WCHAR_H.
37703         * modules/mbfile (Depends-on): Add wchar.
37704         * modules/mbiter (Depends-on): Likewise.
37705         * modules/mbuiter (Depends-on): Likewise.
37706         Reported by Simon Josefsson.
37707
37708 2007-06-06  Paul Eggert  <eggert@cs.ucla.edu>
37709
37710         Work around problem reported by Steven M. Schweda in
37711         <http://lists.gnu.org/archive/html/bug-tar/2007-06/msg00002.html>:
37712         Tru64 5.1B with the Compaq compiler environment installed declares
37713         an 'isblank' function but does not define it in the C library.
37714         * lib/fnmatch.c (isblank): Check for HAVE_ISBLANK, too.
37715         * lib/regex_internal.h (isblank): Likewise.
37716         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Check for isblank existence.
37717         * m4/regex.m4 (gl_PREREQ_REGEX): Likewise.
37718
37719 2007-06-05  Bruno Haible  <bruno@clisp.org>
37720
37721         Fix *printf so that it recognizes non-IEEE numbers on i386, x86_64,
37722         ia64.
37723         * modules/printf-safe: New file.
37724         * modules/fprintf-posix (Depends-on): Add printf-safe.
37725         * modules/printf-posix (Depends-on): Likewise.
37726         * modules/snprintf-posix (Depends-on): Likewise.
37727         * modules/sprintf-posix (Depends-on): Likewise.
37728         * modules/vasnprintf-posix (Depends-on): Likewise.
37729         * modules/vasprintf-posix (Depends-on): Likewise.
37730         * modules/vfprintf-posix (Depends-on): Likewise.
37731         * modules/vprintf-posix (Depends-on): Likewise.
37732         * modules/vsnprintf-posix (Depends-on): Likewise.
37733         * modules/vsprintf-posix (Depends-on): Likewise.
37734         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Require
37735         AC_C_BIGENDIAN. Define CHECK_PRINTF_SAFE if printf-safe is used. Test
37736         non-IEEE numbers on i386, x86_64, ia64. When cross-compiling, guess
37737         "no" on i386, x86_64, ia64.
37738         * tests/test-snprintf-posix.h (LDBL80_WORDS): New macro.
37739         (test_function): Check result of %La, %Lf, %Le, %Lg on non-IEEE numbers
37740         on i386, x86_64, ia64.
37741         * tests/test-sprintf-posix.h (LDBL80_WORDS): New macro.
37742         (test_function): Check result of %La, %Lf, %Le, %Lg on non-IEEE numbers
37743         on i386, x86_64, ia64.
37744         * tests/test-vasnprintf-posix.c: Include float.h.
37745         (LDBL80_WORDS): New macro.
37746         (test_function): Check result of %La, %Lf, %Le, %Lg on non-IEEE numbers
37747         on i386, x86_64, ia64.
37748         * tests/test-vasprintf-posix.c: Include float.h.
37749         (LDBL80_WORDS): New macro.
37750         (test_function): Check result of %La, %Lf, %Le, %Lg on non-IEEE numbers
37751         on i386, x86_64, ia64.
37752         * tests/test-snprintf-posix.c: Include float.h.
37753         * tests/test-sprintf-posix.c: Likewise.
37754         * tests/test-vsnprintf-posix.c: Likewise.
37755         * tests/test-vsprintf-posix.c: Likewise.
37756
37757 2007-06-05  Bruno Haible  <bruno@clisp.org>
37758
37759         Fix isnanl so that it recognizes non-IEEE numbers on i386, x86_64, ia64.
37760         * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS): Require AC_C_BIGENDIAN. Test
37761         non-IEEE numbers on i386, x86_64, ia64.
37762         (gl_LONG_DOUBLE_EXPONENT_LOCATION): Require AC_C_BIGENDIAN.
37763         * lib/isnan.c (FUNC): Add special code for i386, x86_64, ia64.
37764         * tests/test-isnanl.h: Include float.h.
37765         (main): Check also non-IEEE numbers on i386, x86_64, ia64.
37766
37767 2007-06-05  Bruno Haible  <bruno@clisp.org>
37768
37769         * lib/vasnprintf.c (VASNPRINTF): Do the extra handling of NaN and Inf
37770         also the %a / %A. Handle the %a / %A code before this extra handling.
37771
37772 2007-06-05  Bruno Haible  <bruno@clisp.org>
37773
37774         * lib/vasnprintf.c [NEED_PRINTF_LONG_DOUBLE ||
37775         NEED_PRINTF_INFINITE_LONG_DOUBLE]: Include fpucw.h.
37776
37777 2007-06-05  Bruno Haible  <bruno@clisp.org>
37778
37779         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_INFINITE_LONG_DOUBLE): Fix
37780         typo in variable name.
37781
37782 2007-06-05  Eric Blake  <ebb9@byu.net>
37783
37784         * m4/lseek.m4 (gl_FUNC_LSEEK): Work when cross-compiling.
37785         Reported by Simon Josefsson.
37786
37787 2007-06-04  Bruno Haible  <bruno@clisp.org>
37788
37789         Avoid test failures on some PowerPC platforms.
37790         * tests/test-printf-frexpl.c (MIN_NORMAL_EXP, MIN_SUBNORMAL_EXP):
37791         Define differently for PowerPC.
37792         * tests/test-frexpl.c (MIN_NORMAL_EXP): Likewise.
37793         Reported by Gary V. Vaughan <gary@gnu.org>.
37794
37795 2007-06-02  Bruno Haible  <bruno@clisp.org>
37796
37797         Fix test-stdint failure on FreeBSD/ia64.
37798         * m4/stdint.m4 (gl_STDINT_H): Check the values of PTRDIFF_MIN,
37799         PTRDIFF_MAX, SIG_ATOMIC_MIN, SIG_ATOMIC_MAX, SIZE_MAX, WCHAR_MIN,
37800         WCHAR_MAX, WINT_MIN, WINT_MAX entirely, not only for plausibility.
37801         * doc/headers/stdint.texi: Update.
37802
37803 2007-06-01  Bruno Haible  <bruno@clisp.org>
37804
37805         * tests/test-binary-io.c (main): Pass a third argument to open().
37806         Reported by Gary V. Vaughan <gary@gnu.org>.
37807
37808 2007-06-01  Bruno Haible  <bruno@clisp.org>
37809
37810         * doc/functions/frexpl.texi: Update for mingw.
37811
37812 2007-06-01  Bruno Haible  <bruno@clisp.org>
37813
37814         * tests/test-lseek.c (main): Disable test of errno for invalid third
37815         argument.
37816         * doc/functions/lseek.texi: Update.
37817         Reported by Gary V. Vaughan <gary@gnu.org>.
37818
37819 2007-05-28  Bruno Haible  <bruno@clisp.org>
37820
37821         * m4/intl.m4 (AM_INTL_SUBDIR): Substitute variables WOE32, WINDRES.
37822
37823 2007-05-31  Eric Blake  <ebb9@byu.net>
37824
37825         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Guess no on mingw when
37826         cross compiling.
37827
37828 2007-05-30  Eric Blake  <ebb9@byu.net>
37829         and Bruno Haible  <bruno@clisp.org>
37830
37831         Work around mingw test failures exposed by m4-1.4.9b.
37832         * m4/stdint.m4 (gl_STDINT_H): Detect mingw bug.
37833         * tests/test-unistd.c: Disable uid_t and git_t tests for the
37834         moment.
37835
37836 2007-05-30  Bruno Haible  <bruno@clisp.org>
37837
37838         * tests/test-lseek.c: Explicitly close file descriptors 0 and 1 before
37839         assuming that they are closed. Needed on HP-UX 11.
37840
37841 2007-05-29  Bruno Haible  <bruno@clisp.org>
37842
37843         Fix a problem with #include_next.
37844         * lib/dirent_.h: Split the double-inclusion guard.
37845         * lib/fcntl_.h: Likewise.
37846         * lib/float_.h: Likewise.
37847         * lib/iconv_.h: Likewise.
37848         * lib/inttypes_.h: Likewise.
37849         * lib/locale_.h: Likewise.
37850         * lib/math_.h: Likewise.
37851         * lib/netinet_in_.h: Likewise.
37852         * lib/search_.h: Likewise.
37853         * lib/signal_.h: Likewise.
37854         * lib/stdint_.h: Likewise.
37855         * lib/stdio_.h: Likewise.
37856         * lib/stdlib_.h: Likewise.
37857         * lib/string_.h: Likewise.
37858         * lib/sys_select_.h: Likewise.
37859         * lib/sys_socket_.h: Likewise.
37860         * lib/sys_stat_.h: Likewise.
37861         * lib/sys_time_.h: Likewise.
37862         * lib/sysexits_.h: Likewise.
37863         * lib/time_.h: Likewise.
37864         * lib/unistd_.h: Likewise.
37865         * lib/wchar_.h: Likewise.
37866         * lib/wctype_.h: Likewise.
37867
37868 2007-05-29  Bruno Haible  <bruno@clisp.org>
37869
37870         * tests/test-unistd.c: Disable the tests for useconds_t and intptr_t
37871         for the moment.
37872
37873 2007-05-29  Bruno Haible  <bruno@clisp.org>
37874
37875         * m4/isnan.m4 (gl_DOUBLE_EXPONENT_LOCATION): Silence the AC_C_BIGENDIAN
37876         invocation.
37877         Reported by Eric Blake.
37878
37879 2007-05-29  Bruno Haible  <bruno@clisp.org>
37880
37881         * m4/isnanf.m4 (gl_FLOAT_EXPONENT_LOCATION): Fix typo in cross-
37882         compiling case.
37883
37884 2007-05-29  Eric Blake  <ebb9@byu.net>
37885             Bruno Haible  <bruno@clisp.org>
37886
37887         * m4/isnanf.m4 (gl_FUNC_ISNANF_NO_LIBM): Avoid syntax error on
37888         cross compiles.
37889
37890 2007-05-28  Eric Blake  <ebb9@byu.net>
37891
37892         * modules/closein-tests (test_closein_LDADD): Support test on
37893         cygwin with libtool.
37894
37895 2007-05-28  Bruno Haible  <bruno@clisp.org>
37896
37897         * tests/uniconv/test-u16-conv-from-enc.c: Remove #ifdef HAVE_CONFIG_H.
37898         * tests/uniconv/test-u16-strconv-from-enc.c: Likewise.
37899         * tests/uniconv/test-u16-strconv-to-enc.c: Likewise.
37900         * tests/uniconv/test-u32-conv-from-enc.c: Likewise.
37901         * tests/uniconv/test-u32-strconv-from-enc.c: Likewise.
37902         * tests/uniconv/test-u32-strconv-to-enc.c: Likewise.
37903         * tests/uniconv/test-u8-conv-from-enc.c: Likewise.
37904         * tests/uniconv/test-u8-strconv-from-enc.c: Likewise.
37905         * tests/uniconv/test-u8-strconv-to-enc.c: Likewise.
37906
37907 2007-05-28  Eric Blake  <ebb9@byu.net>
37908
37909         Unconditionally include <config.h> in unit tests.
37910         * tests/test-alloca-opt.c: Remove #ifdef HAVE_CONFIG_H.
37911         * tests/test-allocsa.c, tests/test-arcfour.c,
37912         tests/test-arctwo.c, tests/test-argmatch.c, tests/test-argp.c,
37913         tests/test-array_list.c, tests/test-array_oset.c,
37914         tests/test-atexit.c, test-avltree_list.c, test-avltree_oset.c,
37915         test-avltreehash_list.c, test-base64.c, test-binary-io.c,
37916         test-c-ctype.c, test-c-strcasecmp.c, test-c-strcasestr.c,
37917         test-c-strncasecmp.c, test-c-strstr.c, test-canonicalize-lgpl.c,
37918         test-carray_list.c, test-crc.c, test-des.c, test-dirname.c,
37919         test-fflush.c, test-fprintf-posix.c, test-gc-arcfour.c,
37920         test-gc-arctwo.c, test-gc-des.c, test-gc-hmac-md5.c,
37921         test-gc-hmac-sha1.c, test-gc-md2.c, test-gc-md4.c, test-gc-md5.c,
37922         test-gc-pbkdf2-sha1.c, test-gc-rijndael.c, test-gc-sha1.c,
37923         test-gc.c, test-getpass.c, test-hmac-md5.c, test-hmac-sha1.c,
37924         test-iconv.c, test-linked_list.c, test-linkedhash_list.c,
37925         test-lock.c, test-mbscasecmp.c, test-mbscasestr1.c,
37926         test-mbscasestr2.c, test-mbscasestr3.c, test-mbscasestr4.c,
37927         test-mbschr.c, test-mbscspn.c, test-mbsncasecmp.c, test-mbspbrk.c,
37928         test-mbspcasecmp.c, test-mbsrchr.c, test-mbsspn.c, test-mbsstr1.c,
37929         test-mbsstr2.c, test-mbsstr3.c, test-md2.c, test-md4.c,
37930         test-md5.c, test-memmem.c, test-printf-posix.c,
37931         test-rbtree_list.c, test-rbtree_oset.c, test-rbtreehash_list.c,
37932         test-read-file.c, test-rijndael.c, test-snprintf-posix.c,
37933         test-snprintf.c, test-sprintf-posix.c, test-stdint.c,
37934         test-strcasestr.c, test-striconv.c, test-striconveh.c,
37935         test-striconveha.c, test-tls.c, test-vasnprintf-posix.c,
37936         test-vasnprintf-posix2.c, test-vasnprintf.c,
37937         test-vasprintf-posix.c, test-vasprintf.c, test-verify.c,
37938         test-vfprintf-posix.c, test-vprintf-posix.c,
37939         test-vsnprintf-posix.c, test-vsnprintf.c, test-vsprintf-posix.c,
37940         test-xvasprintf.c: Likewise.
37941
37942 2007-05-28  Bruno Haible  <bruno@clisp.org>
37943
37944         * gnulib-tool (func_import): Remember the --with-tests command-line
37945         option through the macro gl_WITH_TESTS in the gnulib-cache.m4.
37946         Reported by Eric Blake.
37947
37948 2007-05-28  Bruno Haible  <bruno@clisp.org>
37949
37950         * modules/ftell-tests: New file.
37951         * tests/test-ftell.c: New file, based on tests/test-ftello.c.
37952         * tests/test-ftell.sh: New file, based on tests/test-ftello.sh.
37953
37954         * lib/ftell.c: New file.
37955         * modules/ftell: New file.
37956         * m4/ftell.m4: New file.
37957         * doc/functions/ftell.texi: Update.
37958         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_FTELL,
37959         REPLACE_FTELL.
37960         * lib/stdio_.h (rpl_ftell): New declaration.
37961         * modules/stdio (Makefile.am): Substitute also GNULIB_FTELL,
37962         REPLACE_FTELL.
37963
37964 2007-05-28  Eric Blake  <ebb9@byu.net>
37965
37966         * lib/allocsa.h (safe_alloca): Avoid compiler warning.
37967
37968 2007-05-28  Bruno Haible  <bruno@clisp.org>
37969
37970         * modules/fseek-tests: New file.
37971         * tests/test-fseek.c: New file, based on tests/test-fseeko.c.
37972         * tests/test-fseek.sh: New file, based on tests/test-fseeko.sh.
37973
37974         * lib/fseek.c: New file.
37975         * modules/fseek: New file.
37976         * m4/fseek.m4: New file.
37977         * doc/functions/fseek.texi: Update.
37978         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_FSEEK,
37979         REPLACE_FSEEK.
37980         * lib/stdio_.h (rpl_fseek): New declaration.
37981         * modules/stdio (Makefile.am): Substitute also GNULIB_FSEEK,
37982         REPLACE_FSEEK.
37983
37984 2007-05-28  Bruno Haible  <bruno@clisp.org>
37985
37986         * lib/stdio_.h (fflush): More comments.
37987
37988 2007-05-28  Bruno Haible  <bruno@clisp.org>
37989
37990         * m4/lseek.m4 (gl_FUNC_LSEEK): When not cross-compiling, perform a real
37991         runtime test.
37992
37993 2007-05-28  Eric Blake  <ebb9@byu.net>
37994
37995         Improve lseek module.
37996         * lib/lseek.c (rpl_lseek): Detect EBADF on mingw.
37997         * lib/unistd_.h (lseek): Scale back link warning message.
37998         * tests/test-lseek.c: Beef up test.
37999         * tests/test-lseek.sh: Exercise more facets of lseek.
38000         Reported by Bruno Haible.
38001
38002 2007-05-28  Bruno Haible  <bruno@clisp.org>
38003
38004         * tests/test-unistd.c: Test all the types that <unistd.h> is expected
38005         to define.
38006
38007 2007-05-27  Bruno Haible  <bruno@clisp.org>
38008
38009         * m4/iconv.m4 (AM_ICONV_LINK): Fix 2007-03-31 patch.
38010
38011 2007-05-27  Bruno Haible  <bruno@clisp.org>
38012
38013         * modules/openmp: New file.
38014         * m4/openmp.m4: New file, taken from autoconf's CVS with changes by
38015         Noah Misch.
38016
38017 2007-05-26  Bruno Haible  <bruno@clisp.org>
38018
38019         * modules/chdir-long (Depends-on): Add fchdir.
38020         * modules/chdir-safer (Depends-on): Likewise.
38021         * modules/fts (Depends-on): Likewise.
38022         * modules/fts-lgpl (Depends-on): Likewise.
38023         * modules/openat (Depends-on): Likewise.
38024         * modules/savewd (Depends-on): Likewise.
38025
38026 2007-05-24  Eric Blake  <ebb9@byu.net>
38027
38028         Fix lseek on mingw.
38029         * modules/lseek: New module.
38030         * m4/lseek.m4: New file.
38031         * lib/lseek.c: New file.
38032         * modules/lseek-tests: New file.
38033         * tests/test-lseek.c: New file.
38034         * tests/test-lseek.sh: New file.
38035         * MODULES.html.sh: Document lseek module.
38036         * modules/fflush (Depends-on): Add lseek, fseeko.
38037         * modules/fseeko (Depends-on): Likewise.
38038         * modules/ftello (Depends-on): Likewise.
38039         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Replace fseek[o] if lseek is
38040         broken.
38041         * m4/ftello.m4 (gl_FUNC_FTELLO): Replace ftell[o] if lseek is
38042         broken.
38043         * m4/fflush.m4 (gl_REPLACE_FFLUSH): Trigger fseeko module.
38044         * lib/fseeko.c (rpl_fseeko): Quit early on non-seekable files.
38045         * lib/ftello.c (rpl_ftello): Likewise.
38046         * tests/test-fseeko.c (main): Test this.
38047         * tests/test-fseeko.sh: Likewise.
38048         * tests/test-ftello.c (main): Likewise.
38049         * tests/test-ftello.sh: Likewise.
38050         * lib/stdio_.h (fseek, ftell): Simplify, since missing fseeko now
38051         implies replacing fseek.
38052         * modules/stdio (Makefile.am): No longer need HAVE_FSEEKO,
38053         HAVE_FTELLO.
38054         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add lseek info.
38055         * modules/unistd (Makefile.am): Likewise.
38056         * lib/unistd_.h (lseek): Declare a replacement.
38057         * doc/functions/lseek.texi (lseek): Document this fix.
38058         * doc/functions/fseek.texi (fseek): Likewise.
38059         * doc/functions/ftell.texi (ftell): Likewise.
38060
38061 2007-05-24  Bruno Haible  <bruno@clisp.org>
38062
38063         * tests/test-vasnprintf-posix.c (test_function): Allow up to 50 bytes
38064         in the printed representation of a NaN.
38065         * tests/test-vasprintf-posix.c (test_function): Likewise.
38066         * tests/test-snprintf-posix.h (test_function): Likewise.
38067         * tests/test-sprintf-posix.h (test_function): Likewise.
38068         Reported by Eric Blake.
38069
38070 2007-05-23  Eric Blake  <ebb9@byu.net>
38071
38072         Fix fseeko/ftello on cygwin 1.5.24.
38073         * doc/functions/fseeko.texi (fseeko): Document the fix.
38074         * doc/functions/ftello.texi (ftello): Document the fix.
38075         * doc/functions/stdin.texi (stdin): Document the cygwin bug.
38076         * doc/functions/stdout.text (stdout): New file.
38077         * doc/functions/stderr.text (stderr): New file.
38078         * doc/gnulib.texi (Function Substitutes): Use new files.
38079         * tests/test-fseeko.c (main): Check for broken fseeko on cygwin
38080         prior to 1.7.0.
38081         * tests/test-ftello.c (main): Likewise for ftello.
38082         * tests/test-fseeko.sh: New file.
38083         * tests/test-ftello.sh: New file.
38084         * modules/fseeko-tests (Makefile.am): Ensure test-fseeko is run
38085         with seekable stdin.
38086         * modules/ftello-tests (Makefile.am): Likewise for test-ftello.
38087         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Detect the cygwin bug.
38088         (gl_REPLACE_FSEEKO): New macro.
38089         * m4/ftello.m4 (gl_FUNC_FTELLO, gl_REPLACE_FTELLO): Likewise.
38090         * modules/fseeko (Files): Distribute fseeko.c.
38091         * modules/ftello (Files): Distribute ftello.c.
38092         * lib/fseeko.c (rpl_fseeko) [__CYGWIN__]: Convert stdin to 64-bit
38093         mode.
38094         * lib/ftello.c (rpl_ftello): New file.
38095         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Allow replacement of
38096         fseeko, ftello.
38097         (gl_STDIN_LARGE_OFFSET): New macro.
38098         * modules/stdio (Makefile.am): Perform the replacement.
38099         * lib/stdio_.h (rpl_fseeko, rpl_ftello): Define when needed.
38100
38101 2007-05-23  Bruno Haible  <bruno@clisp.org>
38102
38103         * lib/stdio_.h (fseeko, ftello): Provide a link warning only if
38104         GNULIB_POSIXCHECK is defined.
38105
38106 2007-05-21  Bruno Haible  <bruno@clisp.org>
38107
38108         * m4/printf.m4 (gl_PRINTF_INFINITE, gl_PRINTF_INFINITE_LONG_DOUBLE):
38109         Check also the output for NaN arguments. When cross-compiling, guess
38110         no on IRIX.
38111         * lib/vasnprintf.c: Update comments.
38112         * tests/test-vasnprintf-posix.c (strisnan): New function.
38113         (test_function): Use it.
38114         * tests/test-vasprintf-posix.c (strisnan): New function.
38115         (test_function): Use it.
38116         * tests/test-snprintf-posix.h (strisnan): New function.
38117         (test_function): Use it.
38118         * tests/test-sprintf-posix.h (strisnan): New function.
38119         (test_function): Use it.
38120         Reported by Eric Blake.
38121
38122 2007-05-20  Bruno Haible  <bruno@clisp.org>
38123
38124         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Add test for large finite
38125         numbers that fails on BeOS.
38126         * doc/functions/frexpl.texi: Update.
38127
38128 2007-05-20  Jim Meyering  <jim@meyering.net>
38129
38130         * NEWS: Mention the incompatible change (s/futimens/gl_futimens/)
38131         forced upon us by glibc-2.6.
38132
38133 2007-05-20  Bruno Haible  <bruno@clisp.org>
38134
38135         Fix *printf result for NaN, Inf on AIX, Solaris, OSF/1.
38136         * m4/printf.m4 (gl_PRINTF_INFINITE): Update cross-compiling guesses.
38137         (gl_PRINTF_INFINITE_LONG_DOUBLE): New macro.
38138         * lib/vasnprintf.c: Use NEED_PRINTF_INFINITE_DOUBLE instead of
38139         NEED_PRINTF_INFINITE.
38140         (is_infinitel): New function.
38141         (VASNPRINTF): Handle NEED_PRINTF_INFINITE_LONG_DOUBLE case.
38142         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_INFINITE_DOUBLE): Renamed from
38143         gl_PREREQ_VASNPRINTF_INFINITE.
38144         (gl_PREREQ_VASNPRINTF_INFINITE_LONG_DOUBLE): New macro.
38145         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
38146         gl_PRINTF_INFINITE_LONG_DOUBLE and test its result. Invoke
38147         gl_PREREQ_VASNPRINTF_INFINITE_DOUBLE and
38148         gl_PREREQ_VASNPRINTF_INFINITE_LONG_DOUBLE instead of
38149         gl_PREREQ_VASNPRINTF_INFINITE.
38150         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
38151         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
38152         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
38153         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
38154         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
38155         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
38156         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
38157         * doc/functions/fprintf.texi: Update.
38158         * doc/functions/printf.texi: Update.
38159         * doc/functions/snprintf.texi: Update.
38160         * doc/functions/sprintf.texi: Update.
38161         * doc/functions/vfprintf.texi: Update.
38162         * doc/functions/vprintf.texi: Update.
38163         * doc/functions/vsnprintf.texi: Update.
38164         * doc/functions/vsprintf.texi: Update.
38165
38166 2007-05-20  Bruno Haible  <bruno@clisp.org>
38167
38168         * m4/frexpl.m4 (gl_FUNC_FREXPL_NO_LIBM): Set REPLACE_FREXPL if frexpl
38169         was not found in libc.
38170         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Likewise.
38171
38172 2007-05-20  Bruno Haible  <bruno@clisp.org>
38173
38174         * tests/test-vasnprintf-posix.c (test_function): Allow NaN to be
38175         printed as "-nan" instead of "nan".
38176         * tests/test-vasprintf-posix.c (test_function): Likewise.
38177         * tests/test-snprintf-posix.h (test_function): Likewise.
38178         * tests/test-sprintf-posix.h (test_function): Likewise.
38179         Needed for HP-UX 11.
38180
38181 2007-05-20  Jim Meyering  <jim@meyering.net>
38182
38183         Fix buggy test for the fchownat-deref bug.
38184         * m4/openat.m4 (gl_FUNC_FCHOWNAT_DEREF_BUG): Create the dangling
38185         symlink required for the run-test.  Without it, this test would
38186         always declare that fchownat doesn't work, and client code would
38187         unnecessarily use the replacement function with fixed libc.
38188         (gl_FUNC_FCHOWNAT): Eliminate a variable that wasn't initialized.
38189         Reported by Greg Schafer.
38190
38191 2007-05-19  Bruno Haible  <bruno@clisp.org>
38192
38193         * m4/isnanf.m4 (gl_ISNANF_WORKS): New macro.
38194         (gl_FUNC_ISNANF_NO_LIBM): Invoke it.
38195         * lib/isnan.c (FUNC): Use run-time expressions for SGI compiler.
38196         Needed for IRIX 6.5 and Solaris 2.5.1.
38197
38198 2007-05-19  Bruno Haible  <bruno@clisp.org>
38199
38200         * tests/test-vasnprintf-posix.c (have_minus_zero): New function.
38201         (test_function): Skip tests involving -0.0 on platforms where
38202         -0.0 = 0.0.
38203         * tests/test-vasprintf-posix.c (have_minus_zero): New function.
38204         (test_function): Skip tests involving -0.0 on platforms where
38205         -0.0 = 0.0.
38206         * tests/test-snprintf-posix.h (have_minus_zero): New function.
38207         (test_function): Skip tests involving -0.0 on platforms where
38208         -0.0 = 0.0.
38209         * tests/test-sprintf-posix.h (have_minus_zero): New function.
38210         (test_function): Skip tests involving -0.0 on platforms where
38211         -0.0 = 0.0.
38212         * tests/test-fprintf-posix.h (test_function): Remove all -0.0 related
38213         tests.
38214         * tests/test-printf-posix.h (test_function): Likewise.
38215         * tests/test-printf-posix.output: Remove all -0.0 related results.
38216         Needed for IRIX 6.5.
38217
38218 2007-05-19  Bruno Haible  <bruno@clisp.org>
38219
38220         * tests/test-vasnprintf-posix.c (test_function): Allow NaN to be
38221         printed as "nan0x7fffffff" instead of "nan".
38222         * tests/test-vasprintf-posix.c (test_function): Likewise.
38223         * tests/test-snprintf-posix.h (test_function): Likewise.
38224         * tests/test-sprintf-posix.h (test_function): Likewise.
38225         * tests/test-fprintf-posix.h (NaN): Remove macro.
38226         (test_function): Remove all NaN related tests.
38227         * tests/test-printf-posix.h (NaN): Remove macro.
38228         (test_function): Remove all NaN related tests.
38229         * tests/test-printf-posix.output: Remove all NaN related results.
38230         Needed for IRIX 6.5.
38231
38232 2007-05-19  Bruno Haible  <bruno@clisp.org>
38233
38234         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Fix C89 syntax error in test code.
38235         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Likewise.
38236
38237 2007-05-19  Bruno Haible  <bruno@clisp.org>
38238
38239         * lib/float_.h: New file.
38240         * m4/float_h.m4: New file.
38241         * modules/float: New file.
38242         * modules/isnanl (Dependencies): Add float.
38243         * modules/isnanl-nolibm (Dependencies): Likewise.
38244         * modules/mathl (Dependencies): Likewise.
38245         * modules/printf-frexpl (Dependencies): Likewise.
38246         * modules/signbit (Dependencies): Likewise.
38247         * modules/vasnprintf (Dependencies): Likewise.
38248         * doc/headers/float.texi: Update.
38249
38250 2007-05-19  Jim Meyering  <jim@meyering.net>
38251
38252         * lib/utimens.c (gl_futimens): Rename from futimens,
38253         now that glibc-2.6 declares futimens.
38254         * lib/utimens.h: Likewise.
38255
38256 2007-05-19  Bruno Haible  <bruno@clisp.org>
38257
38258         Avoid test failures on mingw.
38259         * tests/test-fprintf-posix.sh: Convert CR/LF to LF in output.
38260         * tests/test-printf-posix.sh: Likewise.
38261         * tests/test-vfprintf-posix.sh: Likewise.
38262         * tests/test-vprintf-posix.sh: Likewise.
38263
38264 2007-05-19  Bruno Haible  <bruno@clisp.org>
38265
38266         Fix *printf result for NaN, Inf, -0.0 on mingw.
38267         * m4/printf.m4 (gl_PRINTF_INFINITE): New macro.
38268         * lib/vasnprintf.c: Include math.h and isnan.h.
38269         (is_infinite_or_zero): New function.
38270         (VASNPRINTF): Fix also the handling of infinite or zero 'double'
38271         values in the %f, %F, %e, %E, %g, %G directives.
38272         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_INFINITE): New macro.
38273         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
38274         gl_PRINTF_INFINITE and test its result. Invoke
38275         gl_PREREQ_VASNPRINTF_INFINITE.
38276         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
38277         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
38278         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
38279         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
38280         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
38281         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
38282         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
38283         * doc/functions/fprintf.texi: Update.
38284         * doc/functions/printf.texi: Update.
38285         * doc/functions/snprintf.texi: Update.
38286         * doc/functions/sprintf.texi: Update.
38287         * doc/functions/vfprintf.texi: Update.
38288         * doc/functions/vprintf.texi: Update.
38289         * doc/functions/vsnprintf.texi: Update.
38290         * doc/functions/vsprintf.texi: Update.
38291
38292 2007-05-19  Bruno Haible  <bruno@clisp.org>
38293
38294         * lib/vasnprintf.c (convert_to_decimal): Add an extra_zeroes argument.
38295         (scale10_round_decimal_long_double): Inline scale10_round_long_double.
38296         Instead of multiplying with 10^k, set extra_zeroes to k.
38297         (scale10_round_long_double): Remove function.
38298
38299 2007-05-18  Bruno Haible  <bruno@clisp.org>
38300
38301         * lib/vasnprintf.c (VASNPRINTF) [NEED_PRINTF_FLAG_ZERO]: Fix logic bug
38302         introduced on 2007-05-06.
38303
38304 2007-05-18  Bruno Haible  <bruno@clisp.org>
38305
38306         * tests/test-vasnprintf-posix.c (test_function): Also test the %e and
38307         %g directives.
38308         * tests/test-vasprintf-posix.c (test_function): Likewise.
38309         * tests/test-snprintf-posix.h (test_function): Likewise.
38310         * tests/test-sprintf-posix.h (test_function): Likewise.
38311
38312 2007-05-18  Bruno Haible  <bruno@clisp.org>
38313
38314         * tests/test-vasnprintf-posix.c (SIZEOF): New macro.
38315         (strmatch): New function.
38316         (test_function): Test the %f directive on numbers of various exponents.
38317         * tests/test-vasprintf-posix.c (SIZEOF): New macro.
38318         (strmatch): New function.
38319         (test_function): Test the %f directive on numbers of various exponents.
38320         * tests/test-snprintf-posix.h (strmatch): New function.
38321         (test_function): Test the %f directive on numbers of various exponents.
38322         * tests/test-sprintf-posix.h (strmatch): New function.
38323         (test_function): Test the %f directive on numbers of various exponents.
38324         * tests/test-snprintf-posix.c (SIZEOF): New macro.
38325         * tests/test-sprintf-posix.c (SIZEOF): New macro.
38326         * tests/test-vsnprintf-posix.c (SIZEOF): New macro.
38327         * tests/test-vsprintf-posix.c (SIZEOF): New macro.
38328
38329 2007-05-18  Bruno Haible  <bruno@clisp.org>
38330
38331         Add support for 'long double' number output.
38332         * m4/printf.m4 (gl_PRINTF_LONG_DOUBLE): New macro.
38333         * lib/vasnprintf.c: Include math.h and float+.h.
38334         (mp_limb_t): New type.
38335         (GMP_LIMB_BITS): New macro.
38336         (mp_twolimb_t): New type.
38337         (GMP_TWOLIMB_BITS): New macro.
38338         (mpn_t): New type.
38339         (multiply, divide, convert_to_decimal, decode_long_double,
38340         scale10_round_long_double, scale10_round_decimal_long_double,
38341         floorlog10l): New functions.
38342         (VASNPRINTF) [NEED_PRINTF_LONG_DOUBLE]: Implement 'long double' support
38343         for the %f, %F, %e, %E, %g, %G directives.
38344         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_LONG_DOUBLE): New macro.
38345         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
38346         gl_PRINTF_LONG_DOUBLE and test its result. Invoke
38347         gl_PREREQ_VASNPRINTF_LONG_DOUBLE.
38348         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
38349         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
38350         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
38351         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
38352         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
38353         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
38354         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
38355         * modules/fprintf-posix (Depends-on): Add frexpl-nolibm.
38356         * modules/snprintf-posix (Depends-on): Likewise.
38357         * modules/sprintf-posix (Depends-on): Likewise.
38358         * modules/vasnprintf-posix (Depends-on): Likewise.
38359         * modules/vasprintf-posix (Depends-on): Likewise.
38360         * modules/vfprintf-posix (Depends-on): Likewise.
38361         * modules/vsnprintf-posix (Depends-on): Likewise.
38362         * modules/vsprintf-posix (Depends-on): Likewise.
38363         * modules/vasnprintf (Files): Add lib/float+.h.
38364         * doc/functions/fprintf.texi: Update.
38365         * doc/functions/printf.texi: Update.
38366         * doc/functions/snprintf.texi: Update.
38367         * doc/functions/sprintf.texi: Update.
38368         * doc/functions/vfprintf.texi: Update.
38369         * doc/functions/vprintf.texi: Update.
38370         * doc/functions/vsnprintf.texi: Update.
38371         * doc/functions/vsprintf.texi: Update.
38372
38373 2007-05-18  Bruno Haible  <bruno@clisp.org>
38374
38375         * lib/vasnprintf.c (USE_SNPRINTF): Define to 0 on BeOS.
38376
38377 2007-05-18  Bruno Haible  <bruno@clisp.org>
38378
38379         * lib/vasnprintf.c (VASNPRINTF) [WIN32]: Use %I64d instead of %lld
38380         for printing 64-bit integers. Needed for mingw.
38381
38382 2007-05-18  Bruno Haible  <bruno@clisp.org>
38383
38384         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Invoke
38385         gl_FUNC_FREXPL_WORKS.
38386         * modules/printf-frexpl (Files): Add m4/frexpl.m4.
38387
38388 2007-05-18  Bruno Haible  <bruno@clisp.org>
38389
38390         * modules/frexpl-nolibm-tests: New file.
38391
38392         * modules/frexpl-nolibm: New file.
38393         * m4/frexpl.m4 (gl_FUNC_FREXPL_NO_LIBM): New macro.
38394
38395 2007-05-17  Paul Eggert  <eggert@cs.ucla.edu>
38396
38397         * lib/dirent_.h: Prefer #include_next <foo.h> to #include
38398         @ABSOLUTE_FOO_H@ if @HAVE_INCLUDE_NEXT@.  This works better with
38399         GCC 4.2, which otherwise issues a lot of warnings.
38400         * lib/iconv_.h, lib/locale_.h, lib/netinet_in_.h, lib/sys_select_.h:
38401         * lib/sys_socket_.h, lib/sys_stat_.h, lib/sysexits_.h, lib/unistd_.h:
38402         Likewise.
38403         * modules/fchdir (dirent.h): Substitute @HAVE_INCLUDE_NEXT@.
38404         * modules/iconv_open (iconv.h): Likewise.
38405         * modules/locale (locale.h): Likewise.
38406         * modules/netinet_in (netinet/in.h): Likewise.
38407         * modules/sys_select (sys_select.h): Likewise.
38408         * modules/sys_socket (sys/socket.h): Likewise.
38409         * modules/sys_stat (sys/stat.h): Likewise.
38410         * modules/sysexits (sysexits.h): Likewise.
38411         * modules/unistd (unistd.h): Likewise.
38412
38413 2007-05-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
38414
38415         * modules/closein-tests (Makefile.am): Distribute
38416         `test-closein.sh'.
38417
38418 2007-05-17  Bruno Haible  <bruno@clisp.org>
38419
38420         * tests/test-printf-posix.output: Renamed from
38421         tests/test-fprintf-posix.out.
38422         * modules/fprintf-posix-tests: Update.
38423         * modules/printf-posix-tests: Update.
38424         * modules/vfprintf-posix-tests: Update.
38425         * modules/vprintf-posix-tests: Update.
38426         * tests/test-fprintf-posix.sh: Update.
38427         * tests/test-printf-posix.sh: Update.
38428         * tests/test-vfprintf-posix.sh: Update.
38429         * tests/test-vprintf-posix.sh: Update.
38430         Reported by Ralf Wildenhues.
38431
38432 2007-05-16  Paul Eggert  <eggert@cs.ucla.edu>
38433
38434         * lib/fcntl_.h: Prefer #include_next <foo.h> to #include
38435         @ABSOLUTE_FOO_H@ if @HAVE_INCLUDE_NEXT@.  This works better with
38436         GCC 4.2, which otherwise issues a lot of warnings.
38437         * lib/inttypes_.h, lib/math_.h, lib/search_.h, lib/signal_.h:
38438         * lib/stdint_.h, lib/stdio_.h, lib/stdlib_.h, lib/string_.h:
38439         * lib/sys_time_.h, lib/time_.h, lib/wchar_.h, lib/wctype_.h: Likewise.
38440         * lib/stdlib_.h: Don't bother with #pragma GCC system_header, as
38441         it should no longer be needed.
38442         * lib/string_.h: Likewise.
38443         * modules/absolute-header (HAVE_INCLUDE_NEXT): New 'make' define.
38444         * modules/fcntl (fcntl.h): Substitute @HAVE_INCLUDE_NEXT@.
38445         * modules/inttypes (inttypes.h): Likewise.
38446         * modules/math (math.h): Likewise.
38447         * modules/search (search.h): Likewise.
38448         * modules/signal (signal.h): Likewise.
38449         * modules/stdint (stdint.h): Likewise.
38450         * modules/stdio (stdio.h): Likewise.
38451         * modules/stdlib (stdlib.h): Likewise.
38452         * modules/string (string.h): Likewise.
38453         * modules/sys_time (sys/time.h): Likewise.
38454         * modules/time (time.h): Likewise.
38455         * modules/wchar (wchar.h): Likewise.
38456         * modules/wctype (wtype.h): Likewise.
38457
38458 2007-05-16  Thien-Thi Nguyen  <ttn@gnuvola.org>  (tiny change)
38459
38460         * doc/gnulib-tool.texi (CVS Issues): Fix typo.
38461
38462 2007-05-13  Bruno Haible  <bruno@clisp.org>
38463
38464         * stpcpy.m4 (gl_FUNC_STPCPY): Require AC_C_RESTRICT.
38465         * stpncpy.m4 (gl_FUNC_STPNCPY): Likewise.
38466         * strsep.m4 (gl_FUNC_STRSEP): Likewise.
38467         * strtok_r.m4 (gl_FUNC_STRTOK_R): Likewise.
38468         (gl_PREREQ_STRTOK_R): Don't require it here.
38469
38470 2007-05-13  Bruno Haible  <bruno@clisp.org>
38471
38472         * lib/stdlib_.h (mkdtemp, mkstemp): Comment out argument name. Needed
38473         when used in C++ mode.
38474
38475 2007-05-12  Bruno Haible  <bruno@clisp.org>
38476
38477         * lib/linebuffer.h: Tweak doc.
38478         * lib/linebuffer.c: Likewise.
38479
38480 2007-05-12  James Youngman  <jay@gnu.org>
38481
38482         * lib/linebuffer.c (readlinebuffer_delim): New function,
38483         like readlinebuffer, but use a caller-specified delimiter.
38484         (readlinebuffer): Just call readlinebuffer_delim with '\n'
38485         as the delimiter.
38486         * lib/linebuffer.h (readlinebuffer_delim): Declare it.
38487
38488 2007-05-12  Sergey Poznyakoff  <gray@gnu.org.ua>
38489
38490         * m4/openat.m4 (gl_FUNC_OPENAT): Do not require openat-die.
38491         * modules/openat (Files): Remove openat-die.c.
38492         (Depends-on): Add openat-die.
38493         * modules/openat-die: New module.
38494
38495 2007-05-06  Bruno Haible  <bruno@clisp.org>
38496
38497         * m4/printf.m4 (gl_PRINTF_FLAG_GROUPING, gl_VSNPRINTF_ZEROSIZE_C99):
38498         Update with info about Cygwin.
38499         * doc/functions/fprintf.texi: Update.
38500         * doc/functions/printf.texi: Update.
38501         * doc/functions/snprintf.texi: Update.
38502         * doc/functions/sprintf.texi: Update.
38503         * doc/functions/vfprintf.texi: Update.
38504         * doc/functions/vprintf.texi: Update.
38505         * doc/functions/vsnprintf.texi: Update.
38506         * doc/functions/vsprintf.texi: Update.
38507         Reported by Eric Blake.
38508
38509 2007-05-06  Bruno Haible  <bruno@clisp.org>
38510
38511         * lib/vasnprintf.c (VASNPRINTF) [NEED_PRINTF_FLAG_ZERO]: Perform the
38512         padding ourselves for the floating-point directives.
38513         * m4/printf.m4 (gl_PRINTF_FLAG_ZERO): New macro.
38514         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_FLAG_ZERO): New macro.
38515         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Invoke
38516         gl_PRINTF_FLAG_ZERO and test its result. Invoke
38517         gl_PREREQ_VASNPRINTF_FLAG_ZERO.
38518         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
38519         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Likewise.
38520         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
38521         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
38522         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
38523         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
38524         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
38525         * tests/test-snprintf-posix.h (test_function): Also check the width
38526         and some flags in the %f directive.
38527         * tests/test-sprintf-posix.h (test_function): Likewise.
38528         * tests/test-vasnprintf-posix.c (test_function): Likewise.
38529         * tests/test-vasprintf-posix.c (test_function): Likewise.
38530         * doc/functions/fprintf.texi: Update.
38531         * doc/functions/printf.texi: Update.
38532         * doc/functions/snprintf.texi: Update.
38533         * doc/functions/sprintf.texi: Update.
38534         * doc/functions/vfprintf.texi: Update.
38535         * doc/functions/vprintf.texi: Update.
38536         * doc/functions/vsnprintf.texi: Update.
38537         * doc/functions/vsprintf.texi: Update.
38538
38539 2007-05-06  Bruno Haible  <bruno@clisp.org>
38540
38541         * lib/vasnprintf.c (VASNPRINTF) [NEED_PRINTF_FLAG_GROUPING]: Don't
38542         pass the ' flag character to sprintf or snprintf.
38543         * m4/printf.m4 (gl_PRINTF_FLAG_GROUPING): New macro.
38544         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_FLAG_GROUPING): New macro.
38545         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Invoke
38546         gl_PRINTF_FLAG_GROUPING and test its result. Invoke
38547         gl_PREREQ_VASNPRINTF_FLAG_GROUPING.
38548         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
38549         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Likewise.
38550         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
38551         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
38552         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
38553         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
38554         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
38555         * tests/test-snprintf-posix.h (test_function): Also check the grouping
38556         flag.
38557         * tests/test-sprintf-posix.h (test_function): Likewise.
38558         * tests/test-vasnprintf-posix.c (test_function): Likewise.
38559         * tests/test-vasprintf-posix.c (test_function): Likewise.
38560         * doc/functions/fprintf.texi: Update.
38561         * doc/functions/printf.texi: Update.
38562         * doc/functions/snprintf.texi: Update.
38563         * doc/functions/sprintf.texi: Update.
38564         * doc/functions/vfprintf.texi: Update.
38565         * doc/functions/vprintf.texi: Update.
38566         * doc/functions/vsnprintf.texi: Update.
38567         * doc/functions/vsprintf.texi: Update.
38568
38569 2007-05-01  Bruno Haible  <bruno@clisp.org>
38570
38571         * tests/test-argp-2.sh (func_compare): Drop .exe suffix.
38572
38573 2007-05-03  Paul Eggert  <eggert@cs.ucla.edu>
38574
38575         * m4/d-ino.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_INO): Use better
38576         comment for D_INO_IN_DIRENT.  Problem reported by James Youngman.
38577
38578 2007-05-02  Paul Eggert  <eggert@cs.ucla.edu>
38579
38580         * m4/d-ino.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_INO): Test whether
38581         readdir returns garbage in d_ino.  Problem reported by Kaz Sasayama in
38582         <http://lists.gnu.org/archive/html/bug-gnulib/2007-05/msg00021.html>.
38583
38584 2007-05-02  Sergey Poznyakoff  <gray@gnu.org.ua>
38585
38586         * lib/argp-help.c (struct hol_entry): New member `ord'.
38587         (HOL_ENTRY_PTRCMP): Use ord for comparison
38588         (hol_sort): Initialize ord.
38589
38590 2007-05-01  Bruno Haible  <bruno@clisp.org>
38591
38592         * doc/functions/_Exit_C99.texi: Renamed from doc/functions/_Exit.texi.
38593         Reported by Eric Blake.
38594         * doc/gnulib.texi (Function Substitutes): Update.
38595
38596 2007-05-01  Bruno Haible  <bruno@clisp.org>
38597
38598         * doc/functions.texi: Remove file, now redundant through
38599         doc/functions/*.texi.
38600
38601 2007-05-01  Bruno Haible  <bruno@clisp.org>
38602
38603         * modules/argp (Depends-on): Add sleep.
38604
38605 2007-05-01  Bruno Haible  <bruno@clisp.org>
38606
38607         * modules/sleep-tests: New file.
38608         * tests/test-sleep.c: New file.
38609
38610         * modules/sleep: New file.
38611         * lib/sleep.c: New file.
38612         * m4/sleep.m4: New file.
38613         * lib/unistd_.h (sleep): New declaration.
38614         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_SLEEP,
38615         HAVE_SLEEP.
38616         * modules/unistd (Makefile.am): Substitute GNULIB_SLEEP, HAVE_SLEEP.
38617         * doc/functions/sleep.texi: Document the sleep module.
38618
38619 2007-05-01  Bruno Haible  <bruno@clisp.org>
38620
38621         * lib/sigprocmask.h: Remove file.
38622         * lib/signal_.h: Incorporate the previous contents of sigprocmask.h.
38623         * lib/sigprocmask.c: Include <signal.h> instead of sigprocmask.h.
38624         * m4/signal_h.m4 (gl_SIGNAL_H_DEFAULTS): Substitute GNULIB_SIGPROCMASK,
38625         HAVE_POSIX_SIGNALBLOCKING, HAVE_SIGSET_T.
38626         * m4/signalblocking.m4 (gl_SIGNALBLOCKING): Require
38627         gl_SIGNAL_H_DEFAULTS. Set HAVE_POSIX_SIGNALBLOCKING as a shell variable.
38628         (gl_PREREQ_SIGPROCMASK): Require gl_SIGNAL_H_DEFAULTS. Set
38629         HAVE_SIGSET_T as a shell variable.
38630         * modules/signal (Makefile.am): Substitute GNULIB_SIGPROCMASK,
38631         HAVE_POSIX_SIGNALBLOCKING, HAVE_SIGSET_T into signal.h.
38632         * modules/sigprocmask (Files): Remove lib/sigprocmask.h.
38633         (Depends-on): Add signal. Remove verify.
38634         (configure.ac): Invoke gl_SIGNAL_MODULE_INDICATOR.
38635         (Include): Mention <signal.h> instead of sigprocmask.h.
38636         * NEWS: Mention the change.
38637         * lib/fatal-signal.c: Don't include sigprocmask.h.
38638
38639 2007-05-01  Bruno Haible  <bruno@clisp.org>
38640
38641         * modules/signal: New file.
38642         * lib/signal_.h: New file.
38643         * m4/signal_h.m4: New file.
38644
38645 2007-05-01  Bruno Haible  <bruno@clisp.org>
38646
38647         * lib/wctype_.h: Test HAVE_ISWCNTRL at configure time.
38648         * m4/wctype.m4 (gl_WCTYPE_H): Substitute HAVE_ISWCNTRL.
38649         * modules/wctype (Makefile.am): Substitute HAVE_ISWCNTRL instead of
38650         HAVE_WCTYPE_CTMP_BUG into wctype.h.
38651
38652 2007-05-01  Bruno Haible  <bruno@clisp.org>
38653
38654         * lib/sys_stat_.h: Test HAVE_LSTAT, HAVE_DECL_MKDIR, HAVE_IO_H at
38655         configure time.
38656         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Substitute HAVE_LSTAT,
38657         HAVE_DECL_MKDIR, HAVE_IO_H via AC_SUBST.
38658         * modules/sys_stat (Makefile.am): Substitute their values into
38659         sys/stat.h.
38660
38661 2007-05-01  Bruno Haible  <bruno@clisp.org>
38662
38663         * lib/glob_.h: Test HAVE_SYS_CDEFS_H at configure time.
38664         * m4/glob.m4 (gl_PREREQ_GLOB): Substitute HAVE_SYS_CDEFS_H via AC_SUBST.
38665         * modules/glob (Makefile.am): Put HAVE_SYS_CDEFS_H value into glob.h.
38666
38667 2007-05-01  Bruno Haible  <bruno@clisp.org>
38668
38669         * doc/header/assert.texi: Undo last change: don't mention the gnulib
38670         'assert' module here.
38671
38672 2007-05-01  Bruno Haible  <bruno@clisp.org>
38673
38674         * doc/functions/*.texi: New files.
38675         * doc/functions/google-ranking.txt: New file.
38676         * doc/gnulib.texi (Function Substitutes): New chapter.
38677         (ctime, inet_ntoa): Remove sections.
38678         * doc/ctime.texi: Remove file.
38679         * doc/inet_ntoa.texi: Remove file.
38680         * doc/Makefile (gnulib.info, gnulib.html, gnulib.dvi): Update
38681         dependencies.
38682         (%.info): New rule, specifying a --reference-limit.
38683
38684 2007-05-01  Bruno Haible  <bruno@clisp.org>
38685
38686         * MODULES.html.sh (posix_functions): Remove 'exec', 'toc'.
38687
38688 2007-05-01  Bruno Haible  <bruno@clisp.org>
38689
38690         * modules/mkdir (Depends-on): Add sys_stat, because sys_stat provides
38691         the portability of 'mkdir' to mingw systems.
38692
38693 2007-05-01  Bruno Haible  <bruno@clisp.org>
38694
38695         * doc/headers/google-ranking.txt: New file.
38696
38697 2007-04-30  Eric Blake  <ebb9@byu.net>
38698
38699         Prefer fseeko to fseek.
38700         * modules/getpass (Depends-on): Add fseeko.
38701         * lib/getpass.c (getpass): Use fseeko, not fseek.
38702
38703 2007-04-30  Sergey Poznyakoff  <gray@gnu.org.ua>
38704
38705         * lib/argp-help.c (hol_entry_cmp): Option sorting algorithm
38706         assumes the sorting is stable, while most qsort implementations
38707         are not.  Use argument addresses to ensure they never compare as
38708         equal.
38709
38710         * tests/test-argp-2.sh (usage-indent test): Fix output
38711         (func_compare): Restore diff options
38712         * tests/test-argp.c: Restore #include "progname.h"
38713
38714 2007-04-29  Bruno Haible  <bruno@clisp.org>
38715
38716         * m4/printf.m4 (gl_VSNPRINTF_ZEROSIZE_C99): New macro.
38717         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Invoke
38718         gl_VSNPRINTF_ZEROSIZE_C99. Test gl_cv_func_vsnprintf_zerosize_c99.
38719         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
38720         * modules/snprintf-posix-tests (Files): Add tests/test-snprintf.c.
38721         (configure.ac): Define CHECK_SNPRINTF_POSIX.
38722         (TESTS, check_PROGRAMS): Add test-snprintf.
38723         * modules/vsnprintf-posix-tests (Files): Add tests/test-vsnprintf.c.
38724         (configure.ac): Define CHECK_VSNPRINTF_POSIX.
38725         (TESTS, check_PROGRAMS): Add test-vsnprintf.
38726         * tests/test-snprintf.c (main) [!CHECK_SNPRINTF_POSIX]: Disable
38727         assertions that fail on HP-UX, OSF/1, or IRIX.
38728         * tests/test-vsnprintf.c (main) [!CHECK_VSNPRINTF_POSIX]: Likewise.
38729
38730 2007-04-29  Bruno Haible  <bruno@clisp.org>
38731
38732         * MODULES.html.sh (posix_functions): Remove 'contents'.
38733
38734 2007-04-29  Karl Berry  <karl@gnu.org>
38735
38736         * config/srclist.txt (gendocs_template_min): new entry.
38737
38738 2007-04-29  Bruno Haible  <bruno@clisp.org>
38739
38740         Work around fpurge bug on BSD systems.
38741         * modules/fpurge (Makefile.am): Compile fpurge.c unconditionally.
38742         * m4/fpurge.m4 (gl_FUNC_FPURGE): Don't invoke AC_LIBOBJ.
38743         * lib/fpurge.h (fpurge): Don't handle __fpurge wrapper here. Define
38744         fpurge to rpl_fpurge if the system already has this function.
38745         * lib/fpurge.c (fpurge): Handle also the __fpurge wrapper case and
38746         the case where the system already has this function. Correct invariants
38747         on BSD systems.
38748         * lib/fseeko.c (rpl_fseeko): Update recognition of preceding fflush on
38749         BSD systems.
38750
38751 2007-04-29  Sergey Poznyakoff  <gray@gnu.org.ua>
38752
38753         * lib/argp-help.c (hol_cluster_cmp): Reverse comparison.  Change
38754         proposed by Sven Verdoolaege.
38755
38756         * tests/test-argp.c: Fix option ordering.  Test deeply clustered
38757         options.
38758         * tests/test-argp-2.sh (func_compare): Use diff instead of cmp.
38759         (usage and help tests): Update
38760
38761 2007-04-29  Bruno Haible  <bruno@clisp.org>
38762
38763         * tests/test-fflush.c (main): Use a file of size 17, not 10.
38764         Print more information in case of failure. Disable a test on BeOS.
38765
38766 2007-04-29  Bruno Haible  <bruno@clisp.org>
38767
38768         * tests/**/test-*.[hc] (ASSERT): Use fprintf to show the line number.
38769         This helps debugging on systems on which no gdb is available.
38770
38771 2007-04-29  Bruno Haible  <bruno@clisp.org>
38772
38773         * lib/freading.h: Improve comments.
38774         * lib/fwriting.h: Likewise.
38775         * tests/test-freading.c (main): Don't check freading immediately after
38776         repositioning. Needed for glibc.
38777
38778 2007-04-29  Bruno Haible  <bruno@clisp.org>
38779
38780         * lib/freading.c (freading): Trivial simplification.
38781
38782 2007-04-28  Bruno Haible  <bruno@clisp.org>
38783
38784         * tests/test-fwriting.c (main): Also test the interaction between
38785         fflush and fwriting.
38786         * modules/fwriting-tests (Depends-on): Add fflush.
38787
38788         * tests/test-freading.c (main): Also test the interaction between
38789         fflush and freading.
38790         * modules/freading-tests (Depends-on): Add fflush.
38791
38792 2007-04-28  Bruno Haible  <bruno@clisp.org>
38793
38794         * lib/stdio_.h (fseek, ftell): Provide link warnings suggesting to use
38795         fseeko and ftello.
38796         Suggested by Eric Blake.
38797
38798 2007-04-28  Jim Meyering  <jim@meyering.net>
38799
38800         Avoid false-negative in gl_STDINT_H's C99 conformance test.
38801         * m4/stdint.m4 (gl_STDINT_H): When checking whether stdint.h conforms
38802         to C99, include all of gl_STDINT_INCLUDES, not just <stddef.h>.
38803
38804 2007-04-27  Eric Blake  <ebb9@byu.net>
38805
38806         * doc/headers/assert.texi (assert.h): Document assert module use.
38807
38808 2007-04-27  Bruno Haible  <bruno@clisp.org>
38809
38810         * doc/headers/*.texi: New files.
38811         * doc/gnulib.texi (Header File Substitutes): New chapter.
38812         * doc/Makefile (gnulib.info, gnulib.html, gnulib.dvi): Specify
38813         dependencies.
38814         (standards.info ,standards.html, standards.dvi): Update dependencies.
38815         (mostlyclean, clean): New targets.
38816
38817 2007-04-27  Bruno Haible  <bruno@clisp.org>
38818
38819         * lib/sysexits_.h: Renamed from lib/sysexit_.h.
38820         * modules/sysexits (Files, Makefile.am): Update.
38821
38822         * lib/sys_socket_.h: Renamed from lib/socket_.h.
38823         * modules/sys_socket (Files, Makefile.am): Update.
38824
38825         * lib/sys_stat_.h: Renamed from lib/stat_.h.
38826         * modules/sys_stat (Files, Makefile.am): Update.
38827
38828 2007-04-27  Eric Blake  <ebb9@byu.net>
38829
38830         * lib/freading.h: Improve comments.
38831         * lib/fwriting.h: Likewise.
38832         * lib/fflush.c: Likewise.
38833
38834         Fix closein for mingw.
38835         * modules/closein-tests: Add tests for closein.
38836         * tests/test-closein.c: New file.
38837         * tests/test-closein.sh: Likewise.
38838         * lib/unistd_.h [!SEEK_CUR]: Mingw also needs stdlib.h for _exit.
38839         * lib/closein.c (close_stdin): Don't fflush non-seekable streams.
38840
38841 2007-04-27  Bruno Haible  <bruno@clisp.org>
38842
38843         * lib/inttypes_.h [_DECC]: Don't use #include_next if the compiler
38844         version is < 6.
38845         * lib/math_.h [__DECC]: Likewise.
38846         * lib/stdio_.h [__DECC]: Likewise.
38847         * lib/stdlib_.h [__DECC]: Likewise.
38848         * lib/string_.h [__DECC]: Likewise.
38849         * lib/time_.h [__DECC]: Likewise.
38850         * lib/wchar_.h [__DECC]: Likewise.
38851         * lib/wctype_.h [__DECC]: Likewise.
38852
38853 2007-04-27  Bruno Haible  <bruno@clisp.org>
38854
38855         * tests/test-fbufmode.c (main): Relax test, to avoid failure on mingw.
38856
38857 2007-04-27  Bruno Haible  <bruno@clisp.org>
38858
38859         * lib/fflush.c: Add comments.
38860         * modules/fpurge-tests (Depends-on): Add fflush.
38861         * modules/freadable-tests (Depends-on): Likewise.
38862         * modules/fwritable-tests (Depends-on): Likewise.
38863
38864 2007-04-27  Charles Wilson  <libtool@cwilson.fastmail.fm>
38865
38866         * m4/argz.m4 (gl_FUNC_ARGZ): Use !HAVE_WORKING_ARGZ instead of
38867         SYSTEM_ARGZ_IS_BROKEN.  Also, minor stylistic improvements.
38868         Report by Bruno Haible <bruno@clisp.org>.
38869
38870 2007-04-26  Eric Blake  <ebb9@byu.net>
38871
38872         Fix fflush on mingw.
38873         * modules/fflush (Depends-on): Add freading.
38874         * lib/fflush.c (rpl_fflush): Use freading to avoid losing buffered
38875         but unread data.
38876
38877 2007-04-26  Eric Blake  <ebb9@byu.net>
38878         and Bruno Haible  <bruno@clisp.org>
38879
38880         Implement freading and fwriting.
38881         * lib/freading.c: New file.
38882         * lib/freading.h: Likewise.
38883         * m4/freading.m4: Likewise.
38884         * modules/freading: Likewise.
38885         * modules/freading-tests: Likewise.
38886         * tests/test-freading.c: Likewise.
38887         * lib/fwriting.c: New file.
38888         * lib/fwriting.h: Likewise.
38889         * m4/fwriting.m4: Likewise.
38890         * modules/fwriting: Likewise.
38891         * modules/fwriting-tests: Likewise.
38892         * tests/test-fwriting.c: Likewise.
38893         * MODULES.html.sh (File stream based Input/Output): Mention them.
38894
38895 2007-04-26  Bruno Haible  <bruno@clisp.org>
38896
38897         * lib/stdio_.h (fseeko, ftello): Check that off_t has the same size as
38898         'long' when we assume it.
38899         Suggested by Eric Blake.
38900
38901 2007-04-26  Bruno Haible  <bruno@clisp.org>
38902
38903         Ensure fseeko, ftello are declared on glibc systems.
38904         * modules/fflush (configure.ac-early): Require AC_FUNC_FSEEKO.
38905         * modules/fseeko (configure.ac-early): Likewise.
38906         * modules/ftello (configure.ac-early): Likewise.
38907         * m4/fflush.m4 (gl_REPLACE_FFLUSH): Don't define HAVE_FSEEKO, rely on
38908         AC_FUNC_FSEEKO for this.
38909         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Inline gl_CHECK_FSEEKO.
38910         (gl_CHECK_FSEEKO): Remove macro.
38911
38912 2007-04-26  Bruno Haible  <bruno@clisp.org>
38913
38914         * tests/test-fflush.c (main): Also check the ftell result after
38915         fflush and fseek/fseeko.
38916         * lib/fflush.c (rpl_fflush): For BSD implementations, update the
38917         file descriptor position cache in the stream.
38918         * lib/fseeko.c (rpl_fseeko): Likewise.
38919
38920 2007-04-26  Bruno Haible  <bruno@clisp.org>
38921
38922         * modules/fflush-tests (Depends-on): Add fseeko.
38923
38924 2007-04-25  Charles Wilson  <libtool@cwilson.fastmail.fm>
38925             Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
38926
38927         * lib/argz_.h: ensure error_t definition is obtained in same
38928         mechanism system argz.h would have.
38929         * m4/argz.m4 (gl_FUNC_ARGZ): add new test to check if $host's
38930         argz facilities are known bad.  Err on the side of caution if
38931         cross-compiling.
38932
38933 2007-04-25  Eric Blake  <ebb9@byu.net>
38934
38935         * lib/fpurge.c (includes): Use stdlib.h for free.
38936         * tests/test-fflush.c (main): Also test fflush-fseeko.
38937
38938 2007-04-25  Bruno Haible  <bruno@clisp.org>
38939
38940         Make fflush+fseek POSIX-compliant on FreeBSD and MacOS X.
38941         * lib/fseeko.c: New file.
38942         * lib/stdio_.h: Include <sys/types.h> when off_t is needed.
38943         (fseeko, fseek): Define to replacements if REPLACE_FFLUSH.
38944         * m4/fseeko.m4 (gl_CHECK_FSEEKO): New macro, extracted from
38945         gl_FUNC_FSEEKO.
38946         (gl_FUNC_FSEEKO): Invoke it.
38947         * m4/fflush.m4 (gl_REPLACE_FFLUSH): Arrange to compile fseeko.c. Invoke
38948         gl_CHECK_FSEEKO. Define HAVE_FSEEKO.
38949         * modules/fflush (Files): Add lib/fseeko.c, m4/fseeko.m4.
38950
38951 2007-04-25  Bruno Haible  <bruno@clisp.org>
38952
38953         * modules/fflush (Depends-on): Add ftello.
38954
38955 2007-04-25  Bruno Haible  <bruno@clisp.org>
38956
38957         * modules/ftello-tests: New file.
38958         * tests/test-ftello.c: New file.
38959
38960         * modules/ftello: New file.
38961         * m4/ftello.m4: New file.
38962         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_FTELLO,
38963         HAVE_FTELLO.
38964         * lib/stdio_.h (ftello): New declaration.
38965         * modules/stdio (Makefile.am): Substitute also GNULIB_FTELLO,
38966         HAVE_FTELLO.
38967
38968 2007-04-25  Bruno Haible  <bruno@clisp.org>
38969
38970         * modules/fseeko-tests: New file.
38971         * tests/test-fseeko.c: New file.
38972
38973         * modules/fseeko: New file.
38974         * m4/fseeko.m4: New file.
38975         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_FSEEKO,
38976         HAVE_FSEEKO.
38977         * lib/stdio_.h (fseeko): New declaration.
38978         * modules/stdio (Makefile.am): Substitute also GNULIB_FSEEKO,
38979         HAVE_FSEEKO.
38980
38981 2007-04-25  Bruno Haible  <bruno@clisp.org>
38982
38983         * lib/stdio_.h (fflush): Add support for GNULIB_POSIXCHECK.
38984
38985 2007-04-25  Bruno Haible  <bruno@clisp.org>
38986
38987         * lib/unistd_.h: Include <stdio.h> if needed to get the SEEK_* macros.
38988         * tests/test-stdio.c: Check that the various SEEK_* macros are defined.
38989         * tests/test-unistd.c: Likewise.
38990         * tests/test-fcntl.c: Likewise.
38991
38992 2007-04-23  Eric Blake  <ebb9@byu.net>
38993
38994         * lib/fflush.c: Fix missing include.
38995         Reported by Bruno Haible.
38996
38997 2007-04-23  Bruno Haible  <bruno@clisp.org>
38998
38999         * lib/fpurge.c (fpurge) [glibc, BSD]: Free a malloc()ed ungetc buffer.
39000         Reported by Eric Blake.
39001
39002 2007-04-23  Bruno Haible  <bruno@clisp.org>
39003
39004         * lib/fbufmode.c (fbufmode): Port to Solaris/SPARC64.
39005
39006 2007-04-23  Bruno Haible  <bruno@clisp.org>
39007
39008         * lib/fseterr.c (fseterr): Don't hardcode the value of _IOERR.
39009
39010 2007-04-23  Bruno Haible  <bruno@clisp.org>
39011
39012         * tests/test-fbufmode.c (main): Be prepared to a failure of setvbuf.
39013         Needed on HP-UX 11.
39014
39015 2007-04-16  Eric Blake  <ebb9@byu.net>
39016
39017         Make fflush rely on fpurge.
39018         * lib/fflush.c (rpl_fflush): Rely on fpurge module, rather than
39019         open coding all variants.
39020         * modules/fflush (Depends-on): Add fpurge and unistd.
39021         * modules/fflush-tests (Depends-on): Unistd is no longer extra.
39022         * m4/fflush.m4 (gl_REPLACE_FFLUSH): Simplify.
39023
39024         Fix --with-tests compilation on cygwin.
39025         * modules/argmatch-tests (Makefile.am): List gnulib library first
39026         in LDADD.
39027         * modules/argp-tests (Makefile.am): Likewise.
39028         * modules/array-list-tests (Makefile.am): Likewise.
39029         * modules/array-oset-tests (Makefile.am): Likewise.
39030         * modules/avltree-list-tests (Makefile.am): Likewise.
39031         * modules/avltree-oset-tests (Makefile.am): Likewise.
39032         * modules/avltreehash-list-tests (Makefile.am): Likewise.
39033         * modules/carray-list-tests (Makefile.am): Likewise.
39034         * modules/dirname-tests (Makefile.am): Likewise.
39035         * modules/frexp-tests (Makefile.am): Likewise.
39036         * modules/isnanl-tests (Makefile.am): Likewise.
39037         * modules/linked-list-tests (Makefile.am): Likewise.
39038         * modules/linkedhash-list-tests (Makefile.am): Likewise.
39039         * modules/lock-tests (Makefile.am): Likewise.
39040         * modules/rbtree-list-tests (Makefile.am): Likewise.
39041         * modules/rbtree-oset-tests (Makefile.am): Likewise.
39042         * modules/rbtreehash-list-tests (Makefile.am): Likewise.
39043         * modules/tls-tests (Makefile.am): Likewise.
39044         * modules/tsearch-tests (Makefile.am): Likewise.
39045         * modules/xvasprintf-tests (Makefile.am): Likewise.
39046
39047         Fix fpurge for cygwin.
39048         * lib/fpurge.c (fpurge): Fix order of operation flub, and return a
39049         value.
39050         * modules/fpurge-tests (Depends-on): Clean up trash.
39051
39052 2007-04-16  Simon Josefsson  <simon@josefsson.org>
39053
39054         * lib/gc-libgcrypt.c (gc_hash_open): Shut up compiler warnings.
39055
39056         * m4/autobuild.m4: Re-indent.
39057
39058 2007-04-13  Bruno Haible  <bruno@clisp.org>
39059
39060         * modules/fpurge-tests: New file.
39061         * tests/test-fpurge.c: New file.
39062
39063         * modules/fpurge: New file.
39064         * lib/fpurge.h: New file.
39065         * lib/fpurge.c: New file.
39066         * m4/fpurge.m4: New file.
39067
39068 2007-04-13  Bruno Haible  <bruno@clisp.org>
39069
39070         * modules/fbufmode-tests: New file.
39071         * tests/test-fbufmode.c: New file.
39072
39073         * modules/fbufmode: New file.
39074         * lib/fbufmode.h: New file.
39075         * lib/fbufmode.c: New file.
39076         * m4/fbufmode.m4: New file.
39077
39078 2007-04-13  Bruno Haible  <bruno@clisp.org>
39079
39080         * modules/fwritable-tests: New file.
39081         * tests/test-fwritable.c: New file.
39082
39083         * modules/fwritable: New file.
39084         * lib/fwritable.h: New file.
39085         * lib/fwritable.c: New file.
39086         * m4/fwritable.m4: New file.
39087
39088 2007-04-13  Bruno Haible  <bruno@clisp.org>
39089
39090         * modules/freadable-tests: New file.
39091         * tests/test-freadable.c: New file.
39092
39093         * modules/freadable: New file.
39094         * lib/freadable.h: New file.
39095         * lib/freadable.c: New file.
39096         * m4/freadable.m4: New file.
39097
39098 2007-04-13  Bruno Haible  <bruno@clisp.org>
39099
39100         * modules/fflush-tests (Makefile.am): Remove EXTRA_DIST. Augment
39101         MOSTLYCLEANFILES.
39102
39103 2007-04-13  Paul Eggert  <eggert@cs.ucla.edu>
39104
39105         * build-aux/bootstrap (gnulib_tool_option_extras): New var, used by
39106         gzip bootstrap.conf to avoid dragging in i18n machinery.
39107         (gnulib_tool_option): Use it.
39108
39109 2007-04-13  Bruno Haible  <bruno@clisp.org>
39110
39111         * tests/test-vasnprintf-posix.c (test_function): Add tests for %f and
39112         %F directives.
39113         * tests/test-vasprintf-posix.c (test_function): Likewise.
39114         * tests/test-snprintf-posix.h (test_function): Likewise.
39115         * tests/test-sprintf-posix.h (test_function): Likewise.
39116         * tests/test-fprintf-posix.h (test_function): Likewise.
39117         * tests/test-printf-posix.h (test_function): Likewise.
39118         * tests/test-fprintf-posix.out: Likewise.
39119
39120 2007-04-13  Bruno Haible  <bruno@clisp.org>
39121
39122         * modules/lock-tests (configure.ac): For LIBSCHED, try also -lposix4.
39123         * modules/tls-tests (configure.ac): Likewise.
39124         Reported by Arto C. Nirkko <anirkko@insel.ch>.
39125
39126 2007-04-13  Bruno Haible  <bruno@clisp.org>
39127
39128         * lib/tls.c (glthread_tls_get): Fix return type.
39129         Patch by Arto C. Nirkko <anirkko@insel.ch>.
39130
39131 2007-04-12  Eric Blake  <ebb9@byu.net>
39132
39133         * modules/gettime (Depends-on): Remove gettime.
39134         Reported by Dmitry V. Levin.
39135
39136 2007-04-12  Bruno Haible  <bruno@clisp.org>
39137
39138         * modules/fflush (Include): Mention <stdio.h>.
39139         * modules/strtoimax (Include): Mention <inttypes.h>.
39140         * modules/strtoumax (Include): Likewise.
39141
39142 2007-04-12  Eric Blake  <ebb9@byu.net>
39143
39144         * .cvsignore: New file.
39145         * .gitignore: Likewise.
39146
39147 2007-04-12  Bruno Haible  <bruno@clisp.org>
39148
39149         * modules/iconv-tests (test_iconv_LDADD): Mention -liconv after LDADD,
39150         not before, since $(LDADD) often contains libgnu.a.
39151         * modules/striconv-tests (test_striconv_LDADD): Likewise.
39152         * modules/striconveh-tests (test_striconveh_LDADD): Likewise.
39153         * modules/striconveha-tests (test_striconveha_LDADD): Likewise.
39154         Needed on Cygwin.
39155
39156 2007-04-12  Eric Blake  <ebb9@byu.net>
39157
39158         Work around glibc's failure to flush stdin on fclose.
39159         * lib/closein.c (close_stdin): Flush stdin before closing.
39160
39161         Work around glibc's failure to reset seekable stdin on exit.
39162         * modules/closein: New module.
39163         * lib/closein.c: New file.
39164         * lib/closein.h: Likewise.
39165         * m4/closein.m4: Likewise.
39166         * MODULES.html.sh (File stream based Input/Output): Document it.
39167
39168 2007-04-12  Simon Josefsson  <simon@josefsson.org>
39169
39170         * gnulib-tool: Rename generated 'autobuild' script to
39171         'do-autobuild' in --create-megatestdir output.
39172
39173         * doc/gnulib.texi (Build robot for gnulib): Fix.
39174
39175 2007-04-12  Simon Josefsson  <simon@josefsson.org>
39176
39177         * modules/sysexits (Depends-on): Add absolute-header.
39178
39179 2007-04-12  Eric Blake  <ebb9@byu.net>
39180
39181         No need to preserve errno on success.
39182         * lib/fflush.c (rpl_fflush): Simplify errno tracking.
39183         Reported by Bruno Haible.
39184
39185 2007-04-12  Simon Josefsson  <simon@josefsson.org>
39186
39187         * MODULES.html.sh (Support for maintaining and releasing
39188         projects): Add autobuild.  Suggested by Eric Blake <ebb9@byu.net>.
39189
39190 2007-04-12  Simon Josefsson  <simon@josefsson.org>
39191
39192         * gnulib-tool (func_modules_add_dummy): Respect --avoid=dummy.
39193
39194 2007-04-12  Simon Josefsson  <simon@josefsson.org>
39195
39196         * modules/autobuild: New module.
39197
39198         * m4/autobuild.m4: New file.
39199
39200 2007-04-11  Bruno Haible  <bruno@clisp.org>
39201
39202         * lib/vasnprintf.c (VASNPRINTF): Implement the %F directive using the
39203         %f directive, if NEED_PRINTF_DIRECTIVE_F is defined.
39204         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_F): New macro.
39205         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_DIRECTIVE_F): New macro.
39206         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
39207         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
39208         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
39209         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Invoke
39210         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
39211         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
39212         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Invoke
39213         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
39214         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
39215         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Invoke
39216         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
39217         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
39218         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Invoke
39219         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
39220         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
39221         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Invoke
39222         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
39223         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
39224         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Invoke
39225         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
39226         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
39227         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Invoke
39228         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
39229         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
39230         Reported by Eric Blake.
39231
39232 2007-04-11  Bruno Haible  <bruno@clisp.org>
39233
39234         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_A): Fix test. It always failed.
39235
39236 2007-04-10  Bruno Haible  <bruno@clisp.org>
39237
39238         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_A): Add a test for correct result
39239         for NaN and Infinity. Needed on FreeBSD 6.1.
39240         * tests/test-vasnprintf-posix.c (test_function): Undo last change
39241         regarding results for "%010a" of Infinity and NaN.
39242         * tests/test-vasprintf-posix.c (test_function): Likewise.
39243         * tests/test-snprintf-posix.h (test_function): Likewise.
39244         * tests/test-sprintf-posix.h (test_function): Likewise.
39245         * tests/test-fprintf-posix.h (test_function): Likewise.
39246         * tests/test-printf-posix.h (test_function): Likewise.
39247         * tests/test-fprintf-posix.out: Likewise.
39248
39249 2007-04-10  Bruno Haible  <bruno@clisp.org>
39250
39251         * modules/locale-tests: New file.
39252         * tests/test-locale.c: New file.
39253
39254         * modules/locale: New file.
39255         * lib/locale_.h: New file.
39256         * m4/locale_h.m4: New file.
39257
39258 2007-04-10  Paul Eggert  <eggert@cs.ucla.edu>
39259             Bruno Haible  <bruno@clisp.org>
39260
39261         * m4/signbit.m4 (gl_SIGNBIT): When the sign bit position could not
39262         be determined, test for availability of the copysignf, copysign,
39263         copysignl functions.
39264         * lib/signbitf.c (gl_signbitf): Use copysignf if available in libc.
39265         * lib/signbitd.c (gl_signbitd): Use copysign if available in libc.
39266         * lib/signbitl.c (gl_signbitl): Use copysignl if available in libc.
39267
39268 2007-04-09  Eric Blake  <ebb9@byu.net>
39269
39270         * lib/stdio_.h [REPLACE_FFLUSH]: Declare rpl_fflush.
39271         * modules/stdio (Makefile.am): Support fflush.
39272         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Likewise.
39273         * modules/fflush: New file.
39274         * lib/fflush.c: Likewise.
39275         * m4/fflush.m4: Likewise.
39276         * modules/fflush-tests: New test.
39277         * tests/test-fflush.c: Likewise.
39278         * MODULES.html.sh (Input/output <stdio.h>): Document new module.
39279
39280 2007-04-06  Bruno Haible  <bruno@clisp.org>
39281
39282         * lib/vasnprintf.c: Include <math.h>. Don't include float+.h.
39283         (VASNPRINTF): Use signbit for faster determination whether to print a
39284         minus sign.
39285         * modules/vasnprintf (Files): Remove lib/float+.h.
39286         * modules/fprintf-posix (Depends-on): Add signbit.
39287         * modules/snprintf-posix (Depends-on): Likewise.
39288         * modules/sprintf-posix (Depends-on): Likewise.
39289         * modules/vasnprintf-posix (Depends-on): Likewise.
39290         * modules/vasprintf-posix (Depends-on): Likewise.
39291         * modules/vfprintf-posix (Depends-on): Likewise.
39292         * modules/vsnprintf-posix (Depends-on): Likewise.
39293         * modules/vsprintf-posix (Depends-on): Likewise.
39294
39295 2007-04-06  Bruno Haible  <bruno@clisp.org>
39296
39297         * tests/test-frexp.c (main): Test also the sign bit of zero results.
39298         * tests/test-frexpl.c (main): Likewise.
39299         * tests/test-ldexpl.c (main): Likewise.
39300         * modules/frexp-tests (Depends-on): Add signbit.
39301         * modules/frexpl-tests (Depdends-on): Likewise.
39302         * modules/ldexpl-tests (Depdends-on): Likewise.
39303
39304 2007-04-06  Bruno Haible  <bruno@clisp.org>
39305
39306         * modules/signbit-tests: New file.
39307         * tests/test-signbit.c: New file.
39308
39309         * modules/signbit: New file.
39310         * lib/signbitf.c: New file.
39311         * lib/signbitd.c: New file.
39312         * lib/signbitl.c: New file.
39313         * m4/signbit.m4: New file.
39314         * lib/math_.h (gl_signbitf, gl_signbitd, gl_signbitl): New declarations.
39315         (signbit): New macro.
39316         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_SIGNBIT and
39317         REPLACE_SIGNBIT.
39318         * modules/math (Makefile.am) Substibute also GNULIB_SIGNBIT and
39319         REPLACE_FREXPL into math.h.
39320
39321 2007-04-06  Bruno Haible  <bruno@clisp.org>
39322
39323         * modules/isnanf-nolibm-tests: New file.
39324         * tests/test-isnanf.c: New file.
39325
39326         * modules/isnanf-nolibm: New file.
39327         * lib/isnanf.h: New file.
39328         * lib/isnanf.c: New file.
39329         * lib/isnan.c: Consider the USE_FLOAT macro.
39330         * m4/isnanf.m4: New file.
39331
39332 2007-04-06  Bruno Haible  <bruno@clisp.org>
39333
39334         * modules/gettext-h (configure.ac): AC_SUBST LIBINTL and LTLIBINTL.
39335         (Link): New section.
39336
39337         * modules/canonicalize-lgpl-tests (Makefile.am): Undo last change.
39338
39339 2007-04-06  Bruno Haible  <bruno@clisp.org>
39340
39341         Assume the 'long double' type.
39342         * m4/longdouble.m4: Remove file.
39343         * config/srclist.txt: Don't mention longdouble.m4.
39344         * lib/allocsa.h: Assume HAVE_LONG_DOUBLE to be true.
39345         * lib/float+.h: Likewise.
39346         * lib/frexp.c: Likewise.
39347         * lib/printf-args.h: Likewise.
39348         * lib/printf-args.c: Likewise.
39349         * lib/printf-frexp.c: Likewise.
39350         * lib/printf-parse.c: Likewise.
39351         * lib/vasnprintf.c: Likewise.
39352         * m4/allocsa.m4: Remove gt_TYPE_LONGDOUBLE invocation.
39353         * m4/intl.m4: Likewise.
39354         * m4/isnanl.m4: Likewise.
39355         * m4/printf.m4: Likewise.
39356         * m4/printf-frexpl.m4: Likewise.
39357         * m4/vasnprintf.m4: Likewise.
39358         * modules/allocsa (Files): Remove m4/longdouble.m4.
39359         * modules/gettext (Files): Likewise.
39360         * modules/relocatable-prog-wrapper (Files): Likewise.
39361         * modules/vasnprintf (Files): Likewise.
39362         * modules/isnanl (Files): Likewise.
39363         (Include): Simplify.
39364         * modules/isnanl-nolibm (Files): Remove m4/longdouble.m4.
39365         (Include): Simplify.
39366         * modules/printf-frexpl (Files): Remove m4/longdouble.m4.
39367         (Include): Simplify.
39368         * modules/snprintf-posix-tests (Files): Remove m4/longdouble.m4.
39369         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
39370         * modules/sprintf-posix-tests (Files): Remove m4/longdouble.m4.
39371         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
39372         * modules/vasnprintf-posix-tests (Files): Remove m4/longdouble.m4.
39373         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
39374         * modules/vasprintf-posix-tests (Files): Remove m4/longdouble.m4.
39375         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
39376         * modules/vsnprintf-posix-tests (Files): Remove m4/longdouble.m4.
39377         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
39378         * modules/vsprintf-posix-tests (Files): Remove m4/longdouble.m4.
39379         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
39380         * tests/test-isnanl-nolibm.c: Assume HAVE_LONG_DOUBLE to be true.
39381         * tests/test-isnanl.c: Likewise.
39382         * tests/test-snprintf-posix.h: Likewise.
39383         * tests/test-sprintf-posix.h: Likewise.
39384         * tests/test-vasnprintf-posix.c: Likewise.
39385         * tests/test-vasnprintf-posix2.c: Likewise.
39386         * tests/test-vasprintf-posix.c: Likewise.
39387
39388 2007-04-06  Bruno Haible  <bruno@clisp.org>
39389
39390         Fix problem with Compaq (ex-DEC) Desktop C compiler on Tru64.
39391         * lib/math_.h [__DECC]: Include the overridden include file through
39392         #include_next, outside the double-inclusion guard.
39393         * lib/stdio_.h [__DECC]: Likewise.
39394         * lib/stdlib_.h [__DECC]: Likewise.
39395         * lib/string_.h [__DECC]: Likewise.
39396         * lib/time_.h [__DECC]: Likewise.
39397         * lib/wchar_.h [__DECC]: Likewise.
39398         * lib/wctype_.h [__DECC]: Likewise.
39399         * lib/inttypes_.h [__DECC]: Likewise.
39400         Reported by Albert Chin <china@thewrittenword.com> in
39401         <http://lists.gnu.org/archive/html/bug-gnulib/2007-04/msg00088.html>.
39402
39403 2007-04-04  Eric Blake  <ebb9@byu.net>
39404
39405         * m4/stdint.m4 (gl_STDINT_H): Detect WINT_MAX bug in cygwin
39406         1.5.x.
39407
39408 2007-04-04  Bruno Haible  <bruno@clisp.org>
39409
39410         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_A): Add a test for correct
39411         rounding. Don't assume that FreeBSD 6 and NetBSD 4 pass this test.
39412
39413 2007-04-04  Bruno Haible  <bruno@clisp.org>
39414
39415         * tests/test-vasnprintf-posix.c (test_function): Allow two possible
39416         results for "%010a" of Infinity and NaN.
39417         * tests/test-vasprintf-posix.c (test_function): Likewise.
39418         * tests/test-snprintf-posix.h (test_function): Likewise.
39419         * tests/test-sprintf-posix.h (test_function): Likewise.
39420         * tests/test-fprintf-posix.h (test_function): Remove these tests.
39421         * tests/test-printf-posix.h (test_function): Likewise.
39422         * tests/test-fprintf-posix.out: Update.
39423         Needed for FreeBSD 6.1.
39424
39425 2007-04-04  Bruno Haible  <bruno@clisp.org>
39426
39427         * DEPENDENCIES: Remove mentions of tar and gzip, since they are not
39428         directly used by the gnulib modules nor by gnulib-tool.
39429
39430 2007-04-04  Paul Eggert  <eggert@cs.ucla.edu>
39431
39432         * DEPENDENCIES: Give overall description of version dependency
39433         desirability.  Use more-typical names for apps.
39434         Add shell, coreutils, diffutils, grep, tar, gzip.
39435
39436 2007-04-04  Simon Josefsson  <simon@josefsson.org>
39437
39438         * MODULES.html.sh: Rename crypto modules.  Remove iconvme.
39439
39440 2007-04-04  Karl Berry  <karl@gnu.org>
39441
39442         * MODULES.html.sh (func_module): missing '.
39443
39444 2007-04-03  Bruno Haible  <bruno@clisp.org>
39445
39446         * modules/argmatch-tests (Makefile.am): New variable
39447         test_argmatch_LDADD.
39448         * modules/argp-tests (Makefile.am): New variable test_argp_LDADD.
39449         * modules/array-list-tests (Makefile.am): New variable
39450         test_array_list_LDADD.
39451         * modules/array-oset-tests (Makefile.am): New variable
39452         test_array_oset_LDADD.
39453         * modules/avltree-list-tests (Makefile.am): New variable
39454         test_avltree_list_LDADD.
39455         * modules/avltree-oset-tests (Makefile.am): New variable
39456         test_avltree_oset_LDADD.
39457         * modules/avltreehash-list-tests (Makefile.am): New variable
39458         test_avltreehash_list_LDADD.
39459         * modules/canonicalize-lgpl-tests (Makefile.am): New variable
39460         test_canonicalize_lgpl_LDADD.
39461         * modules/carray-list-tests (Makefile.am): New variable
39462         test_carray_list_LDADD.
39463         * modules/dirname-tests (Makefile.am): New variable
39464         test_dirname_LDADD.
39465         * modules/linked-list-tests (Makefile.am): New variable
39466         test_linked_list_LDADD.
39467         * modules/linkedhash-list-tests (Makefile.am): New variable
39468         test_linkedhash_list_LDADD.
39469         * modules/rbtree-list-tests (Makefile.am): New variable
39470         test_rbtree_list_LDADD.
39471         * modules/rbtree-oset-tests (Makefile.am): New variable
39472         test_rbtree_oset_LDADD.
39473         * modules/rbtreehash-list-tests (Makefile.am): New variable
39474         test_rbtreehash_list_LDADD.
39475         * modules/xvasprintf-tests (Makefile.am): New variable
39476         test_xvasprintf_LDADD.
39477         Reported by Eric Blake.
39478
39479 2007-04-03  Eric Blake  <ebb9@byu.net>
39480
39481         * DEPENDENCIES: Weaken m4 requirements.
39482
39483 2007-04-03  Bruno Haible  <bruno@clisp.org>
39484
39485         * modules/frexp-tests (configure.ac): Remove AC_SUBST.
39486         * modules/isnanl-tests (configure.ac): Likewise.
39487
39488 2007-04-03  Ben Pfaff  <blp@gnu.org>
39489
39490         * modules/iconv_open: Add $(srcdir)/ to source directory
39491         references in Makefile fragments that call gperf, to fix VPATH
39492         builds.
39493
39494 2007-04-03  Bruno Haible  <bruno@clisp.org>
39495
39496         * modules/ldexpl (Depends-on): Add isnanl, remove isnanl-nolibm.
39497         * lib/ldexpl.c: Undo last change.
39498
39499 2007-04-03  Bruno Haible  <bruno@clisp.org>
39500
39501         * modules/printf-frexpl (Depends-on): Undo last change.
39502         (Files): Add m4/ldexpl.m4.
39503
39504 2007-04-03  Bruno Haible  <bruno@clisp.org>
39505
39506         * m4/isnanl.m4 (gl_FUNC_ISNANL): Substitute ISNANL_LIBM.
39507         * modules/isnanl (Link): New section.
39508
39509         * m4/frexp.m4 (gl_FUNC_FREXP): Substitute FREXP_LIBM.
39510         * modules/frexp (Link): New section.
39511
39512         * m4/frexpl.m4 (gl_FUNC_FREXPL): Substitute FREXPL_LIBM.
39513         * modules/frexpl (Link): New section.
39514
39515         * m4/ldexpl.m4 (gl_FUNC_LDEXPL): Substitute LDEXPL_LIBM.
39516         * modules/ldexpl (Link): New section.
39517
39518 2007-04-03  Bruno Haible  <bruno@clisp.org>
39519
39520         * modules/TEMPLATE-EXTENDED: New file.
39521         * gnulib-tool (func_all_modules, func_verify_module): Exclude it.
39522
39523 2007-04-03  Bruno Haible  <bruno@clisp.org>
39524
39525         * DEPENDENCIES: New file.
39526         Suggested by Simon Josefsson.
39527
39528 2007-04-03  Bruno Haible  <bruno@clisp.org>
39529
39530         * doc/gnulib.texi: Escape @.
39531
39532 2007-04-03  James Youngman  <jay@gnu.org>
39533         and Paul Eggert  <eggert@cs.ucla.edu>
39534
39535         * lib/stat-time.h (get_stat_birthtime): Check for zero-valued
39536         birthtime on all systems that have birthtime, not just those which
39537         use st_birthtimensec rather than st_birthtim.  Putting zero in
39538         st_birthtim.tv_sec is how (for example) FreeBSD/x86 6.1 indicates
39539         that the birth time is not available for files on an NFS mount.
39540
39541 2007-04-03  Simon Josefsson  <simon@josefsson.org>
39542
39543         * modules/memxor: Move back from crypto/, suggested by Bruno.
39544         * modules/crypto/hmac-sha1: Fix memxor dependency.
39545
39546         * modules/crypto/gc: Moved from ../.
39547
39548 2007-04-02  Eric Blake  <ebb9@byu.net>
39549
39550         * lib/ldexpl.c (includes): Avoid libm.
39551
39552         * modules/printf-frexpl (Depends-on): Depend on ldexpl.
39553
39554 2007-04-02  Bruno Haible  <bruno@clisp.org>
39555
39556         * lib/sysexit_.h (EX_OK): Disable the EX_OK definition from <unistd.h>
39557         on IRIX.
39558
39559 2007-04-02  Bruno Haible  <bruno@clisp.org>
39560
39561         * m4/intdiv0.m4 (gt_INTDIV0): Avoid performing the test for real on
39562         x86 or x86_64 platforms running MacOS X.
39563         Reported by Ryan Schmidt <@ryandesign.com>.
39564
39565 2007-04-02  Bruno Haible  <bruno@clisp.org>
39566
39567         * m4/intdiv0.m4 (gt_INTDIV0): When cross-compiling, treat x86_64 like
39568         i386.
39569
39570 2007-04-01  Simon Josefsson  <simon@josefsson.org>
39571
39572         * modules/crypto/arcfour: Moved from ../.
39573         * modules/crypto/arcfour-tests: Moved from ../.
39574         * modules/crypto/arctwo: Moved from ../.
39575         * modules/crypto/arctwo-tests: Moved from ../.
39576         * modules/crypto/des: Moved from ../.
39577         * modules/crypto/des-tests: Moved from ../.
39578         * modules/crypto/gc-arcfour: Moved from ../.
39579         * modules/crypto/gc-arcfour-tests: Moved from ../.
39580         * modules/crypto/gc-arctwo: Moved from ../.
39581         * modules/crypto/gc-arctwo-tests: Moved from ../.
39582         * modules/crypto/gc-des: Moved from ../.
39583         * modules/crypto/gc-des-tests: Moved from ../.
39584         * modules/crypto/gc-hmac-md5: Moved from ../.
39585         * modules/crypto/gc-hmac-md5-tests: Moved from ../.
39586         * modules/crypto/gc-hmac-sha1: Moved from ../.
39587         * modules/crypto/gc-hmac-sha1-tests: Moved from ../.
39588         * modules/crypto/gc-md2: Moved from ../.
39589         * modules/crypto/gc-md2-tests: Moved from ../.
39590         * modules/crypto/gc-md4: Moved from ../.
39591         * modules/crypto/gc-md4-tests: Moved from ../.
39592         * modules/crypto/gc-md5: Moved from ../.
39593         * modules/crypto/gc-md5-tests: Moved from ../.
39594         * modules/crypto/gc-pbkdf2-sha1: Moved from ../.
39595         * modules/crypto/gc-pbkdf2-sha1-tests: Moved from ../.
39596         * modules/crypto/gc-random: Moved from ../.
39597         * modules/crypto/gc-rijndael: Moved from ../.
39598         * modules/crypto/gc-rijndael-tests: Moved from ../.
39599         * modules/crypto/gc-sha1: Moved from ../.
39600         * modules/crypto/gc-sha1-tests: Moved from ../.
39601         * modules/crypto/gc-tests: Moved from ../.
39602         * modules/crypto/hmac-md5: Moved from ../.
39603         * modules/crypto/hmac-md5-tests: Moved from ../.
39604         * modules/crypto/hmac-sha1: Moved from ../.
39605         * modules/crypto/hmac-sha1-tests: Moved from ../.
39606         * modules/crypto/md2: Moved from ../.
39607         * modules/crypto/md2-tests: Moved from ../.
39608         * modules/crypto/md4: Moved from ../.
39609         * modules/crypto/md4-tests: Moved from ../.
39610         * modules/crypto/md5: Moved from ../.
39611         * modules/crypto/md5-tests: Moved from ../.
39612         * modules/crypto/memxor: Moved from ../.
39613         * modules/crypto/rijndael: Moved from ../.
39614         * modules/crypto/rijndael-tests: Moved from ../.
39615         * modules/crypto/sha1: Moved from ../.
39616
39617 2007-03-30  James Youngman  <jay@gnu.org>
39618
39619         * tests/test-stat-time.c (prepare_test): use chmod() rather than
39620         rename() to change the ctime of a file (because ctime is unaffected
39621         by rename on jfs2 on AIX 5.1).
39622         (main): Start by doing cleanup, in case a previous run failed leaving
39623         test files behind.
39624
39625 2007-03-31  Bruno Haible  <bruno@clisp.org>
39626
39627         Support old proprietary implementations of iconv.
39628         * modules/iconv_open: New file.
39629         * lib/iconv_.h: New file.
39630         * m4/iconv_h.m4: New file.
39631         * lib/iconv_open.c: New file.
39632         * lib/iconv_open-aix.gperf: New file.
39633         * lib/iconv_open-hpux.gperf: New file.
39634         * lib/iconv_open-irix.gperf: New file.
39635         * lib/iconv_open-osf.gperf: New file.
39636         * m4/iconv_open.m4: New file.
39637         * modules/linebreak (Depends-on): Add iconv_open.
39638         * modules/striconv (Depends-on): Likewise.
39639         * modules/striconveh (Depends-on): Likewise.
39640         * modules/unicodeio (Depends-on): Likewise.
39641         * lib/striconveh.h (mem_cd_iconveh, str_cd_iconveh): Allow cd to be
39642         (iconv_t)(-1).
39643         * lib/striconveh.c (mem_cd_iconveh_internal): Use an indirect
39644         conversion if cd is (iconv_t)(-1).
39645         (mem_iconveh, str_iconveh): Don't fail just because a direct conversion
39646         is not possible.
39647
39648 2007-03-31  Bruno Haible  <bruno@clisp.org>
39649
39650         * tests/test-striconveha.c (main): Don't expect "autodetect_jp" to
39651         work on Solaris either. Protect also second use of "autodetect_jp".
39652
39653 2007-03-31  Bruno Haible  <bruno@clisp.org>
39654
39655         * m4/frexpl.m4 (gl_FUNC_FREXPL): Set HAVE_DECL_FREXPL to 0 when
39656         the function is not present.
39657
39658 2007-03-31  Bruno Haible  <bruno@clisp.org>
39659
39660         * m4/ldexpl.m4 (gl_FUNC_LDEXPL): Set HAVE_DECL_LDEXPL to 0 when
39661         the function is not present.
39662
39663 2007-03-31  Bruno Haible  <bruno@clisp.org>
39664
39665         * m4/iconv.m4 (AM_ICONV_LINK): Fix 2007-03-29 patch. Test also against
39666         a bug in HP-UX iconv_open().
39667
39668 2007-03-31  Bruno Haible  <bruno@clisp.org>
39669
39670         * MODULES.html.sh (func_module): Don't show gnulib-common.m4.
39671         (Mathematics <math.h>): New section, add fpieee.
39672         (Input/output <stdio.h>): Add fseterr.
39673         (Mathematics <math.h>): New section, add printf-frexp.
39674         (Container data structures): Add sublist.
39675         (Core language properties): Add fpucw, inline.
39676         (Functions for greatest-width integer types <inttypes.h>): Add
39677         imaxabs, imaxdiv, inttypes.
39678         (Mathematics <math.h>): Add frexp, frexpl, isnan-nolibm, isnanl,
39679         isnanl-nolibm, ldexp.
39680         (Mathematics <math.h>): New section, add printf-frexpl.
39681         (Support for systems lacking POSIX:2001): Add fprintf-posix,
39682         printf-posix, snprintf-posix, sprintf-posix, string, search, socklen,
39683         sys_select, sys_socket, vasnprintf-posix, vasprintf-posix,
39684         vfprintf-posix, vprintf-posix, vsnprintf-posix, vsprintf-posix.
39685         (Unicode string functions): Add unistr/u*-mbtoucr.
39686         (Java): Add javacomp-script, javaexec-script.
39687         (C#): Add csharpcomp-script, csharpexec-script.
39688         (Support for building libraries and executables): Add havelib,
39689         relocatable-*.
39690         (Support for maintaining and releasing projects): Renamed from
39691         'Support for maintaining and release projects'. Add announce-gen.
39692
39693 2007-03-31  Bruno Haible  <bruno@clisp.org>
39694
39695         * README: Talk primarily about git.
39696         (git and CVS): Renamed from CVS.
39697         * doc/gnulib.texi (Introduction, Build robot for gnulib): Mention that
39698         gnulib is available through git.
39699         * doc/gnulib-tool.texi (CVS Issues): Mention git and svn as well.
39700
39701 2007-03-30  Bruno Haible  <bruno@clisp.org>
39702
39703         * lib/alloca_.h: Change prefix of double-inclusion guard macro to _GL_.
39704         * lib/poll_.h: Likewise.
39705         * lib/stat_.h: Likewise.
39706         * lib/sys_time_.h: Likewise.
39707         * lib/sysexit_.h: Likewise.
39708         * lib/glob_.h: Prefix double-inclusion guard macro with _GL_.
39709         * lib/stdbool_.h: Likewise.
39710         * lib/byteswap_.h: Add double-inclusion guard.
39711
39712 2007-03-30  Sergey Poznyakoff  <gray@mirddin.farlep.net>
39713
39714         * lib/sysexit_.h: Prefix double-inclusion guard macro with _GNULIB.
39715
39716 2007-03-30  Karl Berry  <karl@gnu.org>
39717
39718         * config/srclist-update: double space after USA in the license
39719         substitution, since that's how it's usually (?) written.
39720
39721 2007-03-30  Paul Eggert  <eggert@cs.ucla.edu>
39722
39723         * lib/write-any-file.c (can_write_any_file): Fix else-else bug
39724         reported by Bruno Haible.
39725
39726 2007-03-29  Bruno Haible  <bruno@clisp.org>
39727
39728         * m4/iconv.m4 (AM_ICONV_LINK): Require AC_CANONICAL_HOST. Test against
39729         a bug in AIX iconv().
39730
39731 2007-03-29  Bruno Haible  <bruno@clisp.org>
39732
39733         * modules/ldexpl-tests: New file.
39734         * tests/test-ldexpl.c: New file.
39735
39736 2007-03-29  Bruno Haible  <bruno@clisp.org>
39737
39738         * lib/ldexpl.c: Include fpucw.h.
39739         (ldexpl): Use BEGIN/END_LONG_DOUBLE_ROUNDING. Skip the last unneeded
39740         multiplication.
39741         * modules/ldexpl (Depends-on): Add fpucw.
39742
39743 2007-03-29  Bruno Haible  <bruno@clisp.org>
39744
39745         * modules/ldexpl: New file.
39746         * m4/ldexpl.m4: New file.
39747         * lib/math_.h (ldexpl): Define to a replacement if REPLACE_LDEXPL is
39748         set.
39749         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize also GNULIB_LDEXPL,
39750         REPLACE_LDEXPL.
39751         * modules/math (Makefile.am): Substitute also GNULIB_LDEXPL,
39752         REPLACE_LDEXPL.
39753         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Invoke
39754         gl_FUNC_LDEXPL_WORKS.
39755         * m4/mathl.m4 (gl_FUNC_LONG_DOUBLE_MATH): Remove test for ldexpl.
39756         * modules/mathl (Files): Remove lib/ldexpl.c.
39757         (Depends-on): Add ldexpl.
39758
39759 2007-03-29  Bruno Haible  <bruno@clisp.org>
39760
39761         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Declare frexpl.
39762
39763 2007-03-29  Bruno Haible  <bruno@clisp.org>
39764
39765         * tests/test-striconveh.c (main): Don't assume that a direct conversion
39766         between ISO-8859-1 and ISO-8859-2 is possible. Needed for OSF/1, IRIX
39767         and possibly also HP-UX.
39768         * tests/test-striconveha.c (main): Don't expect "autodetect_jp" to
39769         work on AIX, IRIX, HP-UX, OSF/1.
39770         * tests/uniconv/test-u16-conv-from-enc.c (main): Likewise.
39771         * tests/uniconv/test-u16-strconv-from-enc.c (main): Likewise.
39772         * tests/uniconv/test-u32-conv-from-enc.c (main): Likewise.
39773         * tests/uniconv/test-u32-strconv-from-enc.c (main): Likewise.
39774         * tests/uniconv/test-u8-conv-from-enc.c (main): Likewise.
39775         * tests/uniconv/test-u8-strconv-from-enc.c (main): Likewise.
39776
39777 2007-03-29  Bruno Haible  <bruno@clisp.org>
39778
39779         * tests/test-stat-time.c: Include <fcntl.h>, not <sys/fcntl.h>.
39780
39781 2007-03-29  Paul Eggert  <eggert@cs.ucla.edu>
39782
39783         * lib/acl-internal.h (acl_get_fd, acl_set_fd): undef before defining,
39784         to work around a problem on OSF/1 5.1 reported by Bruno Haible.
39785
39786 2007-03-29  Eric Blake  <ebb9@byu.net>
39787
39788         * lib/acl-internal.h: Remove redundant include.
39789         (ACL_NOT_WELL_SUPPORTED): Also filter on EBUSY, returned by
39790         Cygwin when a file is locked.
39791
39792 2007-03-29  Bruno Haible  <bruno@clisp.org>
39793
39794         * lib/vasprintf.c [IN_LIBASPRINTF]: Include different specification
39795         file.
39796         * lib/asprintf.c [IN_LIBASPRINTF]: Likewise.
39797
39798 2007-03-29  Paul Eggert  <eggert@cs.ucla.edu>
39799
39800         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Don't bother to
39801         try to remove a parent directory if the child couldn't be removed
39802         (except for the first rmdir, which could fail because the child
39803         doesn't exist).  Problem reported by Jeff Blaine in
39804         <http://lists.gnu.org/archive/html/bug-tar/2007-03/msg00014.html>.
39805
39806 2007-03-28  Bruno Haible  <bruno@clisp.org>
39807
39808         * lib/striconveh.c (utf8conv_carefully): New function.
39809         (mem_cd_iconveh_internal): Invoke it.
39810
39811 2007-03-28  Bruno Haible  <bruno@clisp.org>
39812
39813         * lib/striconveh.c (mem_cd_iconveh_internal): Use u8_mbtoucr instead
39814         of u8_mbtouc in order to distinguish invalid and incomplete UTF-8
39815         input.
39816         * modules/striconveh (Depends-on): Add unistr/u8-mbtoucr. Replace
39817         utf8-ucs4 with unistr/u8-mbtouc. Replace ucs4-utf8 with
39818         unistr/u8-uctomb.
39819
39820 2007-03-28  Bruno Haible  <bruno@clisp.org>
39821
39822         * modules/unistr/u8-mbtoucr: New file.
39823         * lib/unistr/u8-mbtoucr.c: New file.
39824         * modules/unistr/u16-mbtoucr: New file.
39825         * lib/unistr/u16-mbtoucr.c: New file.
39826         * modules/unistr/u16-mbtoucr: New file.
39827         * lib/unistr/u16-mbtoucr.c: New file.
39828         * lib/unistr.h (u8_mbtoucr, u16_mbtoucr, u32_mbtoucr): New declarations.
39829
39830 2007-03-27  Simon Josefsson  <simon@josefsson.org>
39831             Bruno Haible  <bruno@clisp.org>
39832
39833         * m4/vasprintf.m4: Convert AC_SUBST into shell variable for
39834         REPLACE_VASPRINTF.  Set HAVE_VASPRINTF.  Add
39835         AC_REQUIRE([gl_STDIO_H_DEFAULTS]).
39836
39837         * m4/stdio_h.m4: Add stubs for vasprintf too.
39838
39839         * modules/stdio: Support vasprintf in sed command.
39840
39841         * modules/vasprintf: Depend on stdio for prototypes.  Remove
39842         vasprintf.h.  Add stdio module indicator.
39843
39844         * lib/stdio_.h: Declare asprintf and vasprintf, based on
39845         vasprintf.h.
39846
39847         * lib/vasprintf.h: File removed.
39848
39849         * lib/asprintf.c: Use stdio.h instead of vasprintf.h.
39850         * lib/vasprintf.c: Ditto.
39851         * lib/xvasprintf.c: Ditto.
39852         * tests/test-vasprintf-posix.c: Ditto.
39853         * tests/test-vasprintf.c: Ditto.
39854
39855 2007-03-27  Bruno Haible  <bruno@clisp.org>
39856
39857         Make vasnprintf multithread-safe.
39858         * lib/vasnprintf.c (decimal_point_char): New function.
39859         (VASNPRINTF): Use it.
39860         Suggested by Simon Josefsson.
39861
39862 2007-03-27  Eric Blake  <ebb9@byu.net>
39863
39864         Support sub-second birthtime on cygwin.
39865         * m4/stat-time.m4 (gl_STAT_BIRTHTIME): Also check for st_birthtim.
39866         * lib/stat-time.h (STAT_TIMESPEC): Adjust comments.
39867         (get_stat_birthtime): Also work with st_birthtim.
39868
39869 2007-03-27  Paul Eggert  <eggert@cs.ucla.edu>
39870
39871         * lib/stat-time.h (USE_BIRTHTIME): Remove.
39872         (get_stat_atime_ns, get_stat_ctime_ns, get_stat_mtime_ns):
39873         (get_stat_birthtime_ns): Do not try to use "spare" fields.
39874         (get_stat_birthtime_ns): Simplify compile-time tests.
39875         (get_stat_birthtime): Change the API to look like
39876         get_stat_mtime etc., except return a negative tv_nsec on error.
39877         * m4/stat-time.m4 (gl_STAT_TIME, gl_STAT_BIRTHTIME):
39878         Don't check for "spare" fields.
39879         (gl_STAT_BIRTHTIME): Don't check for struct stat.st_birthtimespec.tv_sec
39880         or for struct stat.st_birthtime, as these tests aren't used.
39881         * tests/test-stat-time.c (test_birthtime): Adjust to new API.
39882
39883 2007-03-27  Bruno Haible  <bruno@clisp.org>
39884
39885         * lib/stat-time.h: Include <sys/stat.h>.
39886
39887 2007-03-27  James Youngman  <jay@gnu.org>
39888
39889         * lib/stat-time.h (get_stat_birthtime): New function for
39890           retrieving st_birthtime as provided by UFS2 (hence *BSD).
39891         * m4/stat-time.m4 (gl_STAT_BIRTHTIME): Probe for st_birthtime
39892           and its variants.
39893         * modules/stat-time (configure.ac): call gl_STAT_BIRTHTIME.
39894         * modules/stat-time-test: New file.
39895         * tests/test-stat-time.c: New test, devised by Bruno Haible.
39896
39897 2007-03-26  Bruno Haible  <bruno@clisp.org>
39898
39899         Better support of signalling NaNs.
39900         * lib/atanl.c: Include isnanl.h.
39901         (atanl): Perform test for NaN at the beginning of the function and
39902         through a call to isnanl.
39903         * lib/cosl.c: Include isnanl.h.
39904         (cosl): Perform test for NaN at the beginning of the function and
39905         through a call to isnanl.
39906         * lib/ldexpl.c: Include isnanl.h.
39907         (ldexpl): Perform test for NaN through a call to isnanl.
39908         * lib/logl.c: Include isnanl.h.
39909         (logl): Perform test for NaN at the beginning of the function and
39910         through a call to isnanl.
39911         * lib/sinl.c: Include isnanl.h.
39912         (sinl): Perform test for NaN at the beginning of the function and
39913         through a call to isnanl.
39914         * lib/sqrtl.c: Include isnanl.h.
39915         (sqrtl): Perform test for NaN at the beginning of the function and
39916         through a call to isnanl.
39917         * lib/tanl.c: Include isnanl.h.
39918         (tanl): Perform test for NaN at the beginning of the function and
39919         through a call to isnanl.
39920         * lib/trigl.c (ieee754_rem_pio2l): Remove test for NaN.
39921         * modules/mathl (Depends-on): Add isnanl.
39922
39923 2007-03-26  Eric Blake  <ebb9@byu.net>
39924
39925         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_DIRECTIVE_A): Fix
39926         regression in logic sense of previous patch.
39927
39928 2007-03-26  Bruno Haible  <bruno@clisp.org>
39929
39930         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_DIRECTIVE_A): Don't use
39931         unportable shell command "if ! ...".
39932         Reported by Ralf Wildenhues.
39933
39934 2007-03-25  Bruno Haible  <bruno@clisp.org>
39935
39936         * lib/sysexit_,h: If HAVE_SYSEXITS_H is defined, include the original
39937         <sysexits.h> file, and only add EX_CONFIG.
39938         * m4/sysexits.m4 (gl_SYSEXITS): If <sysexits.h> exists, check its
39939         absolute file name and whether it is sufficient. Substitute also
39940         HAVE_SYSEXITS_H and ABSOLUTE_SYSEXITS_H.
39941         * modules/sysexits (Makefile.am): Substitute HAVE_SYSEXITS_H and
39942         ABSOLUTE_SYSEXITS_H into sysexits.h.
39943
39944 2007-03-25  Bruno Haible  <bruno@clisp.org>
39945
39946         * lib/getaddrinfo.c (getaddrinfo): Don't access hints->ai_flags when
39947         hints is NULL.
39948
39949 2007-03-25  Bruno Haible  <bruno@clisp.org>
39950
39951         * lib/uniconv/u8-conv-from-enc.c (u8_conv_from_encoding): Add a cast.
39952         * lib/uniconv/u8-strconv-to-enc.c (u8_strconv_to_encoding): Likewise.
39953
39954 2007-03-25  Bruno Haible  <bruno@clisp.org>
39955
39956         * lib/vasnprintf.c: Include langinfo.h.
39957         (VASNPRINTF): Prefer nl_langinfo over localeconv, since it's more
39958         multithread-safe.
39959         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_DIRECTIVE_A): New macro.
39960         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke it.
39961         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
39962         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
39963         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
39964         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
39965         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
39966         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX: Likewise.
39967         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
39968         Reported by Simon Josefsson.
39969
39970 2007-03-25  Bruno Haible  <bruno@clisp.org>
39971
39972         * lib/printf-parse.c [!IN_LIBINTL]: Include <stdint.h>, for intmax_t.
39973         (PRINTF_PARSE): Make the support for size specifier 'j' unconditional.
39974         * modules/vasnprintf (Depends-on): Add stdint.
39975
39976 2007-03-25  Bruno Haible  <bruno@clisp.org>
39977
39978         * modules/fpieee: New file.
39979         * m4/fpieee.m4: New file.
39980         * modules/isnan-nolibm (Depends-on): Add fpieee.
39981         * modules/isnanl-nolibm (Depends-on): Add fpieee.
39982         * modules/isnanl (Depends-on): Add fpieee.
39983
39984 2007-03-25  Bruno Haible  <bruno@clisp.org>
39985
39986         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Test also finite numbers.
39987
39988 2007-03-25  Bruno Haible  <bruno@clisp.org>
39989
39990         Avoid test failures on IRIX 6.5.
39991         * tests/test-frexpl.c (MIN_NORMAL_EXP): New macro.
39992         (main): Use it.
39993         * tests/test-printf-frexpl.c (MIN_NORMAL_EXP, MIN_SUBNORMAL_EXP): New
39994         macros.
39995         (main): Use them.
39996
39997 2007-03-25  Bruno Haible  <bruno@clisp.org>
39998
39999         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): New macro.
40000         (gl_FUNC_FREXPL): Invoke it. Set REPLACE_FREXPL to 1 if it frexpl
40001         exists but doesn't work.
40002         * lib/math_.h (frexpl): Define as a replacement macro if REPLACE_FREXPL
40003         is set. Don't provide a prototype if REPLACE_FREXPL is not set.
40004         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_FREXPL.
40005         * modules/math (Makefile.am) Substibute also REPLACE_FREXPL into math.h.
40006
40007 2007-03-25  Bruno Haible  <bruno@clisp.org>
40008
40009         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Add check whether frexp(inf)
40010         returns inf. Needed on IRIX 6.5.
40011
40012 2007-03-25  Bruno Haible  <bruno@clisp.org>
40013
40014         * tests/test-frexpl.c: Include isnanl-nolibm.h.
40015         (main): Use isnanl instead of x != x idiom.
40016         * modules/frexpl-tests (Depends-on): Add isnanl-nolibm.
40017
40018         * tests/test-frexp.c: Include isnan.h.
40019         (main): Use isnan instead of x != x idiom.
40020         * modules/frexp-tests (Depends-on): Add isnan-nolibm.
40021
40022 2007-03-25  Bruno Haible  <bruno@clisp.org>
40023
40024         * tests/test-frexp.c (NaN): New function/macro.
40025         (main): Use it instead of 0.0 / 0.0.
40026         * tests/test-isnan.c (NaN): New function/macro.
40027         (main): Use it instead of 0.0 / 0.0.
40028         * tests/test-vasnprintf-posix.c (NaN): New function/macro.
40029         (test_function): Use it instead of 0.0 / 0.0.
40030         * tests/test-vasprintf-posix.c (NaN): New function/macro.
40031         (test_function): Use it instead of 0.0 / 0.0.
40032         * tests/test-snprintf-posix.h (NaN): New function/macro.
40033         (test_function): Use it instead of 0.0 / 0.0.
40034         * tests/test-sprintf-posix.h (NaN): New function/macro.
40035         (test_function): Use it instead of 0.0 / 0.0.
40036         * tests/test-fprintf-posix.h (NaN): New function/macro.
40037         (test_function): Use it instead of 0.0 / 0.0.
40038         * tests/test-printf-posix.h (NaN): New function/macro.
40039         (test_function): Use it instead of 0.0 / 0.0.
40040
40041         * lib/isnan.c (FUNC): Work around a DEC C compiler bug.
40042
40043 2007-03-25  Bruno Haible  <bruno@clisp.org>
40044
40045         * lib/glob_.h: Include <sys/stat.h>. Avoids warnings on AIX 5.1.
40046
40047 2007-03-25  Bruno Haible  <bruno@clisp.org>
40048
40049         * lib/regexec.c (merge_state_with_log): Make static.
40050
40051 2007-03-25  Bruno Haible  <bruno@clisp.org>
40052
40053         * lib/trigl.c (kernel_rem_pio2): Make static.
40054
40055 2007-03-25  Bruno Haible  <bruno@clisp.org>
40056
40057         * lib/sincosl.c (sincosl_table): Make static.
40058
40059 2007-03-25  Bruno Haible  <bruno@clisp.org>
40060
40061         * lib/argp.h (__restrict): Define to empty, rather than to 'restrict',
40062         if the compiler does not support C99.
40063
40064 2007-03-25  Bruno Haible  <bruno@clisp.org>
40065
40066         * modules/time (Makefile.am): Ensure all rule action lines start with a
40067         tab.
40068
40069 2007-03-24  Bruno Haible  <bruno@clisp.org>
40070
40071         * modules/tsearch-tests: New file.
40072         * tests/test-tsearch.sh: New file.
40073         * tests/test-tsearch.c: New file, mostly copied from glibc.
40074
40075         * modules/search-tests: New file.
40076         * tests/test-search.c: New file.
40077
40078         * modules/search: New file.
40079         * lib/search_.h: New file, incorporating lib/tsearch.h.
40080         * m4/search_h.m4: New file.
40081         * lib/tsearch.h: Remove file.
40082         * lib/tsearch.c: Include search.h instead of tsearch.h.
40083         * m4/tsearch.m4 (gl_FUNC_TSEARCH): Require gl_SEARCH_H_DEFAULTS. Set
40084         HAVE_TSEARCH.
40085         * modules/tsearch (Files): Remove lib/tsearch.h.
40086         (Depends-on): Add search.
40087         (configure.ac): Invoke gl_SEARCH_MODULE_INDICATOR.
40088         (Include): Change tsearch.h into search.h.
40089
40090 2007-03-24  Bruno Haible  <bruno@clisp.org>
40091
40092         * modules/fpucw: New file.
40093         * lib/fpucw.h: New file.
40094         * lib/frexp.c: Include fpucw.h.
40095         (DECL_ROUNDING, BEGIN_ROUNDING, END_ROUNDING): New macros.
40096         (FUNC): Use them.
40097         * lib/printf-frexp.c: Include fpucw.h.
40098         (DECL_ROUNDING, BEGIN_ROUNDING, END_ROUNDING): New macros.
40099         (FUNC): Use them.
40100         * lib/vasnprintf.c: Include fpucw.h.
40101         (VASNPRINTF): Invoke BEGIN/END_LONG_DOUBLE_ROUNDING around the
40102         'long double' calculations.
40103         * tests/test-frexpl.c: Include fpucw.h.
40104         (main): Invoke BEGIN_LONG_DOUBLE_ROUNDING.
40105         * tests/test-printf-frexpl.c: Include fpucw.h.
40106         (main): Invoke BEGIN_LONG_DOUBLE_ROUNDING.
40107         * modules/frexpl (Depends-on): Add fpucw.
40108         * modules/printf-frexpl (Depends-on): Likewise.
40109         * modules/fprintf-posix (Depends-on): Likewise.
40110         * modules/snprintf-posix (Depends-on): Likewise.
40111         * modules/sprintf-posix (Depends-on): Likewise.
40112         * modules/vasnprintf-posix (Depends-on): Likewise.
40113         * modules/vasprintf-posix (Depends-on): Likewise.
40114         * modules/vfprintf-posix (Depends-on): Likewise.
40115         * modules/vsnprintf-posix (Depends-on): Likewise.
40116         * modules/vsprintf-posix (Depends-on): Likewise.
40117         * modules/frexpl-tests (Depends-on): Likewise.
40118         * modules/printf-frexpl-tests (Depends-on): Likewise.
40119
40120 2007-03-24  Bruno Haible  <bruno@clisp.org>
40121
40122         * lib/float+.h: New file.
40123         * lib/isnan.c: Include float+.h.
40124         (SIZE): New macro.
40125         (FUNC): Compare only SIZE bytes of the value.
40126         * lib/vasnprintf.c: Include float+.h.
40127         (VASNPRINTF): When comparing agains +0.0L or +0.0, compare only
40128         SIZEOF_LDBL or SIZEOF_DBL bytes.
40129         * modules/isnan-nolibm (Files): Add lib/float+.h.
40130         * modules/isnanl-nolibm (Files): Add lib/float+.h.
40131         * modules/isnanl (Files): Add lib/float+.h.
40132         * modules/vasnprintf (Files): Add lib/float+.h.
40133
40134 2007-03-24  Bruno Haible  <bruno@clisp.org>
40135
40136         * lib/vasnprintf.c [!HAVE_LONG_DOUBLE]: Include printf-frexp.h. Don't
40137         include isnanl-nolibm.h.
40138
40139 2007-03-24  Bruno Haible  <bruno@clisp.org>
40140
40141         * tests/test-read-file.c (main): Don't produce spurious output for
40142         expected situations. Make the test fail if it encountered unexpected
40143         results.
40144
40145 2007-03-24  Bruno Haible  <bruno@clisp.org>
40146
40147         * m4/locale-fr.m4 (gt_LOCALE_FR): Remove the special-casing of NetBSD,
40148         since its fr_FR.ISO8859-1 locale wouldn't pass the tests.
40149
40150 2007-03-24  Bruno Haible  <bruno@clisp.org>
40151
40152         * m4/locale-fr.m4 (gt_LOCALE_FR, gt_LOCALE_FR_UTF8): Fix last change.
40153
40154 2007-03-24  Bruno Haible  <bruno@clisp.org>
40155
40156         * modules/unistr/base (Depends-on): Remove utf8-ucs4-unsafe,
40157         utf16-ucs4-unsafe, utf8-ucs4, utf16-ucs4, ucs4-utf8, ucs4-utf16.
40158
40159         * modules/unistr/u8-mbtouc: Add source files from module utf8-ucs4.
40160         * modules/utf8-ucs4: Turn into a symbolic link to module
40161         unistr/u8-mbtouc.
40162
40163         * modules/unistr/u8-mbtouc-unsafe: Add source files from module
40164         utf8-ucs4-unsafe.
40165         * modules/utf8-ucs4-unsafe: Turn into a symbolic link to module
40166         unistr/u8-mbtouc-unsafe.
40167
40168         * modules/unistr/u16-mbtouc: Add source files from module utf16-ucs4.
40169         * modules/utf16-ucs4: Turn into a symbolic link to module
40170         unistr/u16-mbtouc.
40171
40172         * modules/unistr/u16-mbtouc-unsafe: Add source files from module
40173         utf16-ucs4-unsafe.
40174         * modules/utf16-ucs4-unsafe: Turn into a symbolic link to module
40175         unistr/u16-mbtouc-unsafe.
40176
40177         * modules/unistr/u8-uctomb: Add source files from module utf4-utf8.
40178         * modules/ucs4-utf8: Turn into a symbolic link to module
40179         unistr/u8-ubtomb.
40180
40181         * modules/unistr/u16-uctomb: Add source files from module utf4-utf16.
40182         * modules/ucs4-utf16: Turn into a symbolic link to module
40183         unistr/u16-ubtomb.
40184
40185 2007-03-24  Bruno Haible  <bruno@clisp.org>
40186
40187         * lib/unistr/u8-mbtouc-aux.c: Renamed from lib/unistr/utf8-ucs4.c.
40188         Enable the function only if HAVE_INLINE.
40189         * lib/unistr/u8-mbtouc-unsafe-aux.c: Renamed from
40190         lib/unistr/utf8-ucs4-unsafe.c. Enable the function only if HAVE_INLINE.
40191         * lib/unistr/u16-mbtouc-aux.c: Renamed from lib/unistr/utf16-ucs4.c.
40192         Enable the function only if HAVE_INLINE.
40193         * lib/unistr/u16-mbtouc-unsafe-aux.c: Renamed from
40194         lib/unistr/utf16-ucs4-unsafe.c. Enable the function only if HAVE_INLINE.
40195         * lib/unistr/u8-uctomb-aux.c: Renamed from lib/unistr/ucs4-utf8.c.
40196         Enable the function only if HAVE_INLINE.
40197         * lib/unistr/u16-uctomb-aux.c: Renamed from lib/unistr/ucs4-utf16.c.
40198         Enable the function only if HAVE_INLINE.
40199         * modules/utf8-ucs4: Update.
40200         * modules/utf8-ucs4-unsafe: Update.
40201         * modules/utf16-ucs4: Update.
40202         * modules/utf16-ucs4-unsafe: Update.
40203         * modules/ucs4-utf8: Update.
40204         * modules/ucs4-utf16: Update.
40205
40206 2007-03-24  Bruno Haible  <bruno@clisp.org>
40207
40208         * lib/utf8-ucs4.h: Remove file.
40209         * lib/utf8-ucs4-unsafe.h: Remove file.
40210         * lib/utf16-ucs4.h: Remove file.
40211         * lib/utf16-ucs4-unsafe.h: Remove file.
40212         * lib/ucs4-utf8.h: Remove file.
40213         * lib/ucs4-utf16.h: Remove file.
40214         * lib/unistr.h: Include their previous contents.
40215         * m4/utf-ucs4.m4: Remove file.
40216         * m4/ucs4-utf.m4: Remove file.
40217         * modules/utf8-ucs4 (Files): Remove lib/utf8-ucs4.h.
40218         (Depends-on): Add unistr/base.
40219         (configure.ac): Remove gl_UTF_UCS4.
40220         (Makefile.am): Update.
40221         (Include): Change to unistr.h.
40222         * modules/utf8-ucs4-unsafe (Files): Remove lib/utf8-ucs4-unsafe.h.
40223         (Depends-on): Add unistr/base.
40224         (configure.ac): Remove gl_UTF_UCS4.
40225         (Makefile.am): Update.
40226         (Include): Change to unistr.h.
40227         * modules/utf16-ucs4 (Files): Remove lib/utf16-ucs4.h.
40228         (Depends-on): Add unistr/base.
40229         (configure.ac): Remove gl_UTF_UCS4.
40230         (Makefile.am): Update.
40231         (Include): Change to unistr.h.
40232         * modules/utf16-ucs4-unsafe (Files): Remove lib/utf16-ucs4-unsafe.h.
40233         (Depends-on): Add unistr/base.
40234         (configure.ac): Remove gl_UTF_UCS4.
40235         (Makefile.am): Update.
40236         (Include): Change to unistr.h.
40237         * modules/ucs4-utf8 (Files): Remove lib/ucs4-utf8.h.
40238         (Depends-on): Add unistr/base.
40239         (configure.ac): Remove gl_UCS4_UTF.
40240         (Makefile.am): Update.
40241         (Include): Change to unistr.h.
40242         * modules/ucs4-utf16 (Files): Remove lib/ucs4-utf16.h.
40243         (Depends-on): Add unistr/base.
40244         (configure.ac): Remove gl_UCS4_UTF.
40245         (Makefile.am): Update.
40246         (Include): Change to unistr.h.
40247         * lib/unistr/utf8-ucs4.c: Include unistr.h instead of utf8-ucs4.h.
40248         * lib/unistr/utf8-ucs4-unsafe.c: Include unistr.h instead of
40249         utf8-ucs4-unsafe.h.
40250         * lib/unistr/utf16-ucs4.c: Include unistr.h instead of utf16-ucs4.h.
40251         * lib/unistr/utf16-ucs4-unsafe.c: Include unistr.h instead of
40252         utf16-ucs4-unsafe.h.
40253         * lib/unistr/ucs4-utf8.c: Include unistr.h instead of ucs4-utf8.h.
40254         * lib/unistr/ucs4-utf16.c: Include unistr.h instead of ucs4-utf16.h.
40255         * lib/unistr/u8-chr.c: Don't include ucs4-utf8.h.
40256         * lib/unistr/u8-strchr.c: Likewise.
40257         * lib/unistr/u8-strrchr.c: Likewise.
40258         * lib/unistr/u16-chr.c: Don't include ucs4-utf16.h.
40259         * lib/unistr/u16-strchr.c: Likewise.
40260         * lib/unistr/u16-strrchr.c: Likewise.
40261         * lib/striconveh.c: Update.
40262         * lib/linebreak.c: Update.
40263
40264 2007-03-24  Bruno Haible  <bruno@clisp.org>
40265
40266         * lib/argp-help.c (fill_in_uparams, canon_doc_option): Cast the
40267         arguments of isspace, isalpha, isalnum, isdigit to 'unsigned char'.
40268
40269 2007-03-22  Bruno Haible  <bruno@clisp.org>
40270
40271         * lib/strptime.c (__strptime_internal): Use ANSI C syntax.
40272
40273 2007-03-23  Paul Eggert  <eggert@cs.ucla.edu>
40274
40275         * MODULES.html.sh (File system functions): New module write-any-file.
40276         * modules/write-any-file, lib/write-any-file.c, lib/write-any-file.h:
40277         * m4/write-any-file.m4: New files.
40278
40279 2007-03-23  Eric Blake  <ebb9@byu.net>
40280
40281         * gnulib-tool: Rearrange space-tab sequences, since some editors
40282         like to eat them.
40283
40284 2007-03-23  Eric Blake  <ebb9@byu.net>
40285
40286         * lib/version-etc.c (version_etc_va): Update license wording to
40287         be more concise.  Recommended by Richard Stallman.
40288
40289 2007-03-22  Bruno Haible  <bruno@clisp.org>
40290
40291         * lib/poll.c (MSG_PEEK): New fallback definition.
40292
40293 2007-03-22  Bruno Haible  <bruno@clisp.org>
40294
40295         * modules/sys_socket-tests (configure.ac): Check for shutdown function.
40296         * tests/test-sys_socket.c (a): Test only if shutdown() exists.
40297         (main): Update.
40298         Fixes a compilation error on BeOS.
40299
40300 2007-03-22  Bruno Haible  <bruno@clisp.org>
40301
40302         * modules/frexpl-tests: New file.
40303         * tests/test-frexpl.c: New file.
40304
40305         * modules/frexpl: New file.
40306         * m4/frexpl.m4: New file.
40307         * modules/math (Makefile.am): Also substitute GNULIB_FREXPL into math.h.
40308         * lib/math_.h (frexpl): Test GNULIB_FREXPL instead of GNULIB_MATHL.
40309         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_FREXPL.
40310         * modules/mathl (Files): Remove lib/frexpl.c, lib/frexp.c.
40311         (Depends-on): Add frexpl. Remove isnanl-nolibm.
40312         * m4/mathl.m4 (gl_FUNC_LONG_DOUBLE_MATH): Don't test for frexpl.
40313
40314 2007-03-22  Bruno Haible  <bruno@clisp.org>
40315
40316         * lib/frexpl.c: Share code with lib/frexp.c.
40317         * modules/mathl (Files): Add lib/frexp.c.
40318         (Depends-on): Add isnanl-nolibm.
40319
40320 2007-03-22  Bruno Haible  <bruno@clisp.org>
40321
40322         * modules/printf-frexp (Files): Add m4/frexp.m4.
40323         * m4/printf-frexp.m4 (gl_FUNC_PRINTF_FREXP): Define HAVE_FREXP_IN_LIBC
40324         only if the found frexp function actually works.
40325
40326 2007-03-22  Bruno Haible  <bruno@clisp.org>
40327
40328         * lib/frexp.c: Remove older implementation that uses divisions.
40329
40330 2007-03-21  Bruno Haible  <bruno@clisp.org>
40331
40332         * modules/frexp-tests: New file.
40333         * tests/test-frexp.c: New file.
40334
40335         * modules/frexp: New file.
40336         * lib/frexp.c: New file.
40337         * m4/frexp.m4: New file.
40338         * lib/math_.h (frexp): New declaration.
40339         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Also initialize GNULIB_FREXP and
40340         REPLACE_FREXP.
40341         * modules/math (math.h): Also substitute GNULIB_FREXP, REPLACE_FREXP.
40342
40343 2007-03-21  Bruno Haible  <bruno@clisp.org>
40344
40345         * modules/isnanl-tests: New file.
40346         * tests/test-isnanl.c: New file.
40347
40348         * modules/isnanl: New file.
40349         * lib/isnanl.h: New file.
40350         * m4/isnanl.m4 (gl_FUNC_ISNANL): New macro.
40351         (gl_FUNC_ISNANL_NO_LIBM): Invoke gl_HAVE_ISNANL_NO_LIBM,
40352         gl_FUNC_ISNANL_WORKS.
40353         (gl_HAVE_ISNANL_NO_LIBM, gl_HAVE_ISNANL_IN_LIBM, gl_FUNC_ISNANL_WORKS):
40354         New macros.
40355
40356 2007-03-21  Bruno Haible  <bruno@clisp.org>
40357
40358         * modules/isnanl-nolibm (Files): Add lib/isnanl-nolibm.h, remove
40359         lib/isnanl.h.
40360         (Include): Update.
40361         * lib/isnanl-nolibm.h: Renamed from lib/isnanl.h.
40362         * lib/vasnprintf.c: Update.
40363         * modules/isnanl-nolibm-tests (Files): Add tests/test-isnanl-nolibm.c,
40364         tests/test-isnanl.h, remove tests/test-isnanl.c.
40365         (Makefile.am): Update.
40366         * tests/test-isnanl-nolibm.c: New file.
40367         * tests/test-isnanl.h: New file.
40368         * tests/test-isnanl.c: Remove file.
40369
40370 2007-03-21  Jim Meyering  <jim@meyering.net>
40371
40372         When trying to open ".", treat ESTALE like EACCES.
40373         * lib/savewd.c (savewd_save): Resort to forking not just upon
40374         failure with EACCES, but also when errno is ESTALE.
40375
40376 2007-03-20  Bruno Haible  <bruno@clisp.org>
40377
40378         * lib/string_.h (strndup): Enable declaration also if HAVE_STRNDUP.
40379         Needed on AIX 5.1. Reported by Matthew Woehlke.
40380
40381 2007-03-19  Paul Eggert  <eggert@cs.ucla.edu>
40382
40383         Suggestions by Bruno Haible:
40384         * lib/acl-internal.h: Include "gettext.h" rather than rolling
40385         our own.
40386         (ACL_NOT_WELL_SUPPORTED): Parenthesize arg when used.
40387         * modules/acl (Depends-on): Add gettext.
40388
40389 2007-03-19  Bruno Haible  <bruno@clisp.org>
40390
40391         * modules/iconvme: Remove file.
40392         * lib/iconvme.h: Remove file.
40393         * lib/iconvme.c: Remove file.
40394         * m4/iconvme.m4: Remove file.
40395
40396 2007-03-19  Bruno Haible  <bruno@clisp.org>
40397
40398         * doc/relocatable-maint.texi: Break long shell script line.
40399         Suggested by Thien-Thi Nguyen <ttn@gnuvola.org>.
40400
40401 2007-03-19  Paul Eggert  <eggert@cs.ucla.edu>
40402
40403         Add limited support for Solaris 10 ZFS-style ACLs: just enough to
40404         handle file_has_acl.
40405         * lib/acl-internal.h, lib/acl_entries.c, lib/file-has-acl.c: New files.
40406         * lib/acl.c: Move header inclusions and related macro defns into
40407         lib/acl-internal.h.
40408         (S_ISLNK): Remove defn, since that's now done for us.
40409         (file_has_acl): Move to lib/file-has-acl.c.
40410         Call acl_trivial if available.  This is the crucial part of the fix.
40411         (acl_entries): Move to lib/acl_entries.c.  Now extern, since it's
40412         shared within the library.  Rewrite a bit, partly to make it compatible
40413         with the GNU coding style.
40414         * m4/acl.m4 (AC_FUNC_ACL): Add AC_LIBOBJ([file-has-acl]).
40415         Remove unnecessary double-quotes.
40416         Don't test for acl_to_text; the build will catch that.
40417         Replace acl_entries if it doesn't exist and it is needed.
40418         Check for -lsec and acl_trivial (as used on Solaris 10).
40419         * modules/acl (Files): Add lib/acl-internal.h, lib/acl_entries.c,
40420         lib/file-has-acl.c.
40421         (Depends-on): Add sys_stat, for S_ISLNK.
40422
40423 2007-03-19  Ben Pfaff  <blp@gnu.org>
40424
40425         * doc/gnulib.texi: Fix typos.
40426         Suggested by Thien-Thi Nguyen <ttn@gnuvola.org>.
40427
40428 2007-03-19  Paul Eggert  <eggert@cs.ucla.edu>
40429
40430         * lib/getcwd.c (__getcwd): Remove redundant comparison of buf to NULL.
40431         If size is zero here, buf must be zero.
40432
40433 2007-03-19  Simon Josefsson  <simon@josefsson.org>
40434
40435         * des.c: Remove weak_keys_chksum.  Reported by Bruno Haible
40436         <bruno@clisp.org>.
40437
40438 2007-03-18  Bruno Haible  <bruno@clisp.org>
40439
40440         * lib/vasnprintf.c (VASNPRINTF): Undo first part of last patch.
40441         Suggested by Eric Blake.
40442
40443 2007-03-18  Ben Pfaff  <blp@gnu.org>
40444
40445         * doc/relocatable.texi: Recommend using as prefix a directory
40446         that does not exist and will never be created.  Based on
40447         discussion with Bruno Haible, Ralf Wildenhues, Matthew Woehlke,
40448         and others.
40449
40450 2007-03-17  Bruno Haible  <bruno@clisp.org>
40451
40452         * lib/fchownat.c: Include lchown.h.
40453
40454 2007-03-17  Bruno Haible  <bruno@clisp.org>
40455
40456         Fix endless loop when the given allocated size was > INT_MAX.
40457         * lib/vasnprintf.c (EOVERFLOW): New fallback definition.
40458         (VASNPRINTF): Fail with EOVERFLOW when the given allocated size is
40459         larger than INT_MAX, or when it grow to a value larger than INT_MAX.
40460         * lib/vsprintf.c (vsprintf): Don't pass a size > INT_MAX to vasnprintf.
40461         * lib/sprintf.c (sprintf): Likewise.
40462
40463 2007-03-17  Bruno Haible  <bruno@clisp.org>
40464
40465         * tests/test-argp-2.sh (func_compare): Output a context diff.
40466
40467 2007-03-17  Bruno Haible  <bruno@clisp.org>
40468
40469         * m4/locale-fr.m4 (gt_LOCALE_FR, gt_LOCALE_FR_UTF8): Check also the
40470         locale's decimal-point character.
40471
40472 2007-03-17  Bruno Haible  <bruno@clisp.org>
40473
40474         * lib/vasnprintf.c (VASNPRINTF): Clear out the memory used for arg_mem
40475         before comparing it. Needed because on some platforms (e.g. x86) a
40476         'long double' occupies less bytes than sizeof (long double).
40477
40478 2007-03-17  Bruno Haible  <bruno@clisp.org>
40479
40480         * tests/test-crc.c (main): Make printf statements 64-bit clean.
40481         * tests/test-gc-pbkdf2-sha1.c (main): Likewise.
40482         * tests/test-getaddrinfo.c (simple): Likewise.
40483         * tests/test-read-file.c (main): Likewise.
40484
40485 2007-03-17  Bruno Haible  <bruno@clisp.org>
40486
40487         * tests/test-dirname.c (main): Make printf statements 64-bit clean.
40488
40489 2007-03-17  Bruno Haible  <bruno@clisp.org>
40490
40491         * tests/test-xvasprintf.c (test_xvasprintf, test_xasprintf): Remove
40492         unused variable.
40493
40494 2007-03-17  Bruno Haible  <bruno@clisp.org>
40495
40496         * tests/test-c-strcasecmp.c: Include c-strcase.h.
40497         * tests/test-c-strncasecmp.c: Likewise.
40498
40499 2007-03-17  Bruno Haible  <bruno@clisp.org>
40500
40501         * modules/stdlib (Depends-on): Add unistd.
40502         * lib/stdlib_.h: Include <unistd.h> if mkstemp is desired.
40503         Needed for MacOS X 10.3.
40504
40505 2007-03-17  Bruno Haible  <bruno@clisp.org>
40506
40507         * lib/unistr/u-strdup.h: Include <stdlib.h>.
40508
40509 2007-03-17  Bruno Haible  <bruno@clisp.org>
40510
40511         * lib/unistr/u-cpy-alloc.h: Include <stdlib.h>.
40512
40513 2007-03-17  Bruno Haible  <bruno@clisp.org>
40514
40515         * gnulib-tool (func_import): Update .cvsignore and .gitignore files
40516         to reflect files copied from gnulib (with or without modifications).
40517         Suggested by Jim Meyering.
40518
40519 2007-03-17  Eric Blake  <ebb9@byu.net>
40520
40521         * NEWS: Document stdlib change from 2007-02-18.
40522
40523 2007-03-17  Jim Meyering  <jim@meyering.net>
40524
40525         Detect use of AC_CONFIG_AUX_DIR also when its argument is quoted.
40526         * build-aux/bootstrap: Put ""s around use of $build_aux, in case
40527         someone uses a name containing shell meta-characters.
40528         Reported by Alfred M. Szmidt.
40529
40530         * build-aux/bootstrap: Don't use \> in grep regexp.  For HP-UX.
40531
40532 2007-03-16  Alfred M. Szmidt  <ams@gnu.org>
40533
40534         * build-aux/bootstrap (with_gettext): New variable.  Run autopoint
40535         and copy gettext configuration files only if configure.ac contains
40536         a use of AM_GNU_GETTEXT_VERSION.
40537
40538 2007-03-16  Alfred M. Szmidt  <ams@gnu.org>
40539
40540         * build-aux/bootstrap (gnulib_name): New variable.
40541         (gnulib_tool_options): Use it.
40542
40543 2007-03-13  Simon Josefsson  <simon@josefsson.org>
40544
40545         * tests/test-des.c: Use new namespace.
40546
40547 2007-03-15  Bruno Haible  <bruno@clisp.org>
40548
40549         * lib/dummy.c (gl_dummy_symbol): Renamed from 'dummy'.
40550         Reported by James Youngman <jay@gnu.org>.
40551
40552 2007-03-15  Bruno Haible  <bruno@clisp.org>
40553
40554         * lib/glob.c (glob): Add 'restrict' so that prototype matches the
40555         declared prototype. Needed with cc on OSF/1 5.1.
40556
40557 2007-03-15  Bruno Haible  <bruno@clisp.org>
40558
40559         * lib/gl_list.h (gl_listelement_dispose_fn): New type.
40560         (gl_list_create_empty, gl_list_create): Add dispose_fn argument.
40561         (struct gl_list_implementation): Add dispose_fn argument to the
40562         'create_empty', 'create' methods.
40563         (struct gl_list_impl_base): Add field 'dispose_fn'.
40564         * lib/gl_list.c (gl_list_create_empty, gl_list_create): Add dispose_fn
40565         argument.
40566         * lib/gl_array_list.c (gl_array_create_empty, gl_array_create): Add
40567         dispose_fn argument.
40568         (gl_array_remove_node, gl_array_remove_at, gl_array_list_free): Call
40569         dispose_fn on the dropped values.
40570         * lib/gl_carray_list.c (gl_carray_create_empty, gl_carray_create): Add
40571         dispose_fn argument.
40572         (gl_carray_remove_at, gl_carray_list_free): Call dispose_fn on the
40573         dropped values.
40574         * lib/gl_anyavltree_list2.h (gl_tree_create): Add dispose_fn argument.
40575         (gl_tree_remove_node): Call dispose_fn on the dropped value.
40576         * lib/gl_anyrbtree_list2.h (gl_tree_create): Add dispose_fn argument.
40577         (gl_tree_remove_node): Call dispose_fn on the dropped value.
40578         * lib/gl_anytree_list2.h (gl_tree_create_empty): Add dispose_fn
40579         argument.
40580         (gl_tree_list_free): Call dispose_fn on the dropped values.
40581         * lib/gl_anytreehash_list2.h (gl_tree_list_free): Call dispose_fn on
40582         the dropped values.
40583         * lib/gl_anylinked_list2.h (gl_linked_create_empty, gl_linked_create):
40584         Add dispose_fn argument.
40585         (gl_linked_remove_node, gl_linked_remove_at, gl_linked_list_free):
40586         Call dispose_fn on the dropped values.
40587         * lib/gl_sublist.c (gl_sublist_create_empty, gl_sublist_create_fill):
40588         Add dispose_fn argument.
40589         (gl_sublist_create): Initialize the 'dispose_fn' field.
40590         * lib/clean-temp.c (create_temp_dir, register_fd): Update.
40591         * tests/test-array_list.c (main): Update.
40592         * tests/test-carray_list.c (main): Update.
40593         * tests/test-avltree_list.c (main): Update.
40594         * tests/test-rbtree_list.c (main): Update.
40595         * tests/test-avltreehash_list.c (main): Update.
40596         * tests/test-rbtreehash_list.c (main): Update.
40597         * tests/test-linked_list.c (main): Update.
40598         * tests/test-linkedhash_list.c (main): Update.
40599         * tests/test-array_oset.c (main): Update.
40600
40601 2007-03-15  Bruno Haible  <bruno@clisp.org>
40602
40603         * lib/gl_oset.h (gl_setelement_dispose_fn): New type.
40604         (gl_oset_create_empty): Add dispose_fn argument.
40605         (struct gl_oset_implementation): Add dispose_fn argument to
40606         'create_empty' method.
40607         (struct gl_oset_impl_base): Add dispose_fn field.
40608         * lib/gl_oset.c (gl_oset_create_empty): Add dispose_fn argument.
40609         * lib/gl_array_oset.c (gl_array_create_empty): Add dispose_fn argument.
40610         (gl_array_remove_at, gl_array_free): Call dispose_fn on the dropped
40611         values.
40612         * lib/gl_anytree_oset.h (gl_tree_create_empty): Add dispose_fn argument.
40613         (gl_tree_oset_free): Call dispose_fn on the dropped values.
40614         * lib/gl_avltree_oset.c (gl_tree_remove_node): Call dispose_fn on the
40615         dropped value.
40616         * lib/gl_rbtree_oset.c (gl_tree_remove_node): Call dispose_fn on the
40617         dropped value.
40618         * tests/test-array_oset.c (main): Update.
40619         * tests/test-avltree_oset.c (main): Update.
40620         * tests/test-rbtree_oset.c (main): Update.
40621         * lib/gl_anytreehash_list1.h (add_to_bucket): Update.
40622
40623 2007-03-13  Bruno Haible  <bruno@clisp.org>
40624
40625         * tests/test-stdbool.c (i): Update after last patch.
40626
40627 2007-03-12  Bruno Haible  <bruno@clisp.org>
40628
40629         * lib/quotearg.c: Include <wctype.h> early, before the definition of
40630         the iswprint macro. Needed on Solaris 2.5.1.
40631
40632 2007-03-12  Bruno Haible  <bruno@clisp.org>
40633
40634         * tests/test-printf-frexp.c (main): Declare x as volatile.
40635
40636 2007-03-12  Simon Josefsson  <simon@josefsson.org>
40637
40638         * doc/gnulib.texi (Build robot for gnulib): New section.
40639
40640 2007-03-12  Jim Meyering  <jim@meyering.net>
40641
40642         * build-aux/bootstrap: New file.
40643         * build-aux/bootstrap.conf: New file, from coreutils.
40644
40645 2007-03-11  Bruno Haible  <bruno@clisp.org>
40646
40647         * m4/cycle-check.m4 (gl_CYCLE_CHECK): Require AC_C_INLINE.
40648
40649 2007-03-12  Simon Josefsson  <simon@josefsson.org>
40650
40651         * lib/des.h, lib/des.c, lib/gc-gnulib.c: Use gl_ namespace, to
40652         avoid collisions with 'des_setkey'.  Reported by Bruno Haible
40653         <bruno@clisp.org>.  Also change 'tripledes_' to '3des_'.
40654
40655 2007-03-11  Bruno Haible  <bruno@clisp.org>
40656
40657         * m4/locale-tr.m4 (gt_LOCALE_TR_UTF8): If the test program fails to
40658         compile, set LOCALE_TR_UTF8 to 'none' instead of empty.
40659
40660 2007-03-11  Bruno Haible  <bruno@clisp.org>
40661
40662         * lib/stdint_.h (INT64_MIN, INTMAX_MIN): Avoid using the ~INT..._MAX
40663         formula. Needed for SunPRO C 5.0.
40664
40665 2007-03-11  Bruno Haible  <bruno@clisp.org>
40666
40667         * modules/long-options (Depends-on): Add getopt.
40668
40669 2007-03-11  Bruno Haible  <bruno@clisp.org>
40670
40671         * modules/modechange (Depends-on): Add stdbool.
40672
40673 2007-03-11  Bruno Haible  <bruno@clisp.org>
40674
40675         * modules/i-ring (Depends-on): Add stdbool.
40676
40677 2007-03-11  Bruno Haible  <bruno@clisp.org>
40678
40679         * modules/gc-des (Depends-on): Add stdbool.
40680
40681 2007-03-11  Bruno Haible  <bruno@clisp.org>
40682
40683         * m4/mktime.m4 (gl_PREREQ_MKTIME): Require AC_C_INLINE.
40684
40685 2007-03-11  Bruno Haible  <bruno@clisp.org>
40686
40687         * m4/mempcpy.m4 (gl_FUNC_MEMPCPY): Require AC_C_RESTRICT.
40688
40689 2007-03-11  Bruno Haible  <bruno@clisp.org>
40690
40691         * lib/unistr/u32-mbtouc-unsafe.c (u32_mbtouc_unsafe): Fix syntax error.
40692
40693 2007-03-11  Bruno Haible  <bruno@clisp.org>
40694
40695         * lib/vasnprintf.c (sprintf): Undefine.
40696
40697 2007-03-11  Bruno Haible  <bruno@clisp.org>
40698
40699         * lib/isnan.c (rpl_isnan, rpl_isnanl): Work around bug regarding
40700         initializers in SunPRO C and Compaq C compilers.
40701
40702 2007-03-11  Bruno Haible  <bruno@clisp.org>
40703
40704         * lib/gl_array_oset.c (gl_array_iterator_next): Make pointer
40705         decrementing code ANSI C compliant.
40706
40707 2007-03-11  Bruno Haible  <bruno@clisp.org>
40708
40709         * lib/dummy.c [__sun]: Define a dummy variable, not just a typedef.
40710         Needed for Solaris 2.5.1 ranlib and SunPRO C 5.0.
40711
40712 2007-03-11  Bruno Haible  <bruno@clisp.org>
40713
40714         * tests/test-stdbool.c (s, d, e, xlcbug): Disable checks that gnulib's
40715         <stdbool.h> substitute doesn't pass.
40716
40717 2007-03-11  Bruno Haible  <bruno@clisp.org>
40718
40719         * lib/vasnprintf.c (snprintf): Undefine. Avoids an endless recursion.
40720
40721 2007-03-11  Bruno Haible  <bruno@clisp.org>
40722
40723         * gnulib-tool (func_create_megatestdir): Create also an autobuild
40724         script, for submission to autobuild.josefsson.org.
40725
40726 2007-03-10  Bruno Haible  <bruno@clisp.org>
40727
40728         * modules/canonicalize-lgpl-tests: New file.
40729         * tests/test-canonicalize-lgpl.sh: New file.
40730         * tests/test-canonicalize-lgpl.c: New file.
40731
40732         * modules/c-strcase-tests: New file.
40733         * tests/test-c-strcase.sh: New file.
40734         * tests/test-c-strcasecmp.c: New file.
40735         * tests/test-c-strncasecmp.c: New file.
40736
40737         * modules/atexit-tests: New file.
40738         * tests/test-atexit.sh: New file.
40739         * tests/test-atexit.c: New file.
40740
40741 2007-03-10  Bruno Haible  <bruno@clisp.org>
40742
40743         * tests/test-binary-io.sh: Use temporary filenames that are not so
40744         likely to clash with those of other tests (in a parallel make).
40745         * tests/test-binary-io.c: Likewise.
40746
40747 2007-03-10  Bruno Haible  <bruno@clisp.org>
40748
40749         * lib/fseterr.c (fseterr): Port to Solaris/SPARC64. Deactivate the
40750         fallback; use #error instead.
40751         Suggested by Simon Josefsson.
40752
40753 2007-03-10  Bruno Haible  <bruno@clisp.org>
40754
40755         * gnulib-tool (func_create_testdir): Treat MOSTLYCLEANFILES like
40756         CLEANFILES. Put spaces in each line of $cleaned_files, not only the
40757         first and the last.
40758
40759 2007-03-10  Bruno Haible  <bruno@clisp.org>
40760
40761         * lib/stdint_.h (uint_least64_t): Fix typo in last patch.
40762
40763 2007-03-10  Bruno Haible  <bruno@clisp.org>
40764
40765         * modules/snprintf-posix-tests (EXTRA_DIST): New variable. Needed for
40766         "make distcheck".
40767         * modules/sprintf-posix-tests (EXTRA_DIST): Likewise.
40768         * modules/vsnprintf-posix-tests (EXTRA_DIST): Likewise.
40769         * modules/vsprintf-posix-tests (EXTRA_DIST): Likewise.
40770
40771 2007-03-10  Bruno Haible  <bruno@clisp.org>
40772
40773         * modules/allocsa-tests (test_allocsa_SOURCES): Remove redundant
40774         variable.
40775         * modules/dirname-tests (test_dirname_SOURCES): Remove redundant
40776         variable.
40777
40778 2007-03-09  Eric Blake  <ebb9@byu.net>
40779         and Matthew Woehlke  <mw_triad@users.sourceforge.net>  (tiny change)
40780
40781         * lib/stdint_.h (int64_t, uint64_t): Don't undefine if 64-bit
40782         types are not being provided by gnulib.
40783         (GL_INT64_T, GL_UINT64_T): New witnesses of whether gnulib 64-bit
40784         types are supported.
40785
40786 2007-03-10  Bruno Haible  <bruno@clisp.org>
40787
40788         * lib/stdio_.h (__attribute__): New macro.
40789         (fprintf, vfprintf, printf, vprintf, snprintf, vsnprintf, sprintf,
40790         vsprintf): Specify __attribute__ __format__ for GCC.
40791         Suggested by Eric Blake.
40792
40793 2007-03-09  Bruno Haible  <bruno@clisp.org>
40794
40795         * modules/printf-posix-tests: New file.
40796         * tests/test-printf-posix.sh: New file.
40797         * tests/test-printf-posix.c: New file.
40798
40799         * modules/printf-posix: New file.
40800         * lib/printf.c: New file.
40801         * m4/printf-posix-rpl.m4: New file.
40802         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_PRINTF_POSIX,
40803         REPLACE_PRINTF.
40804         * lib/stdio_.h (printf): New declaration.
40805         (format, __format__, ____printf____, ____scanf____, ____strftime____,
40806         ____strfmon____): New macros.
40807         * modules/stdio (Makefile.am): Substitute also GNULIB_PRINTF_POSIX,
40808         REPLACE_PRINTF.
40809
40810 2007-03-09  Bruno Haible  <bruno@clisp.org>
40811
40812         * tests/test-vasnprintf-posix2.sh: New file.
40813         * tests/test-vasnprintf-posix2.c: New file.
40814         * modules/vasnprintf-posix-tests (Files): Add them and m4/locale-fr.m4.
40815         (configure.ac): Invoke gt_LOCALE_FR and gt_LOCALE_FR_UTF8.
40816         (Makefile.am): Activate test-vasnprintf-posix2.sh.
40817
40818         * lib/vasnprintf.c (VASNPRINTF): For the 'a' and 'A' directives, use
40819         a locale dependent decimal point, rather than always '.'.
40820
40821 2007-03-09  Eric Blake  <ebb9@byu.net>
40822
40823         * lib/stdlib_.h (EXIT_FAILURE): GNU code expects this to be 1, in
40824         spite of platforms like Tandem/NSK that define it to -1.
40825
40826 2007-03-08  Bruno Haible  <bruno@clisp.org>
40827
40828         * modules/vprintf-posix-tests: New file.
40829         * tests/test-vprintf-posix.sh: New file.
40830         * tests/test-vprintf-posix.c: New file.
40831         * tests/test-printf-posix.h: New file.
40832
40833         * modules/vprintf-posix: New file.
40834         * lib/vprintf.c: New file.
40835         * m4/vprintf-posix.m4: New file.
40836         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_VPRINTF_POSIX,
40837         REPLACE_VPRINTF.
40838         * lib/stdio_.h (vprintf): New declaration.
40839         * modules/stdio (Makefile.am): Substitute also GNULIB_VPRINTF_POSIX,
40840         REPLACE_VPRINTF.
40841
40842 2007-03-08  Bruno Haible  <bruno@clisp.org>
40843
40844         * modules/fprintf-posix-tests: New file.
40845         * tests/test-fprintf-posix.sh: New file.
40846         * tests/test-fprintf-posix.c: New file.
40847
40848         * modules/fprintf-posix: New file.
40849         * lib/fprintf.c: New file.
40850         * m4/fprintf-posix.m4: New file.
40851         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_FPRINTF_POSIX,
40852         REPLACE_FPRINTF.
40853         * lib/stdio_.h (fprintf): New declaration.
40854         * modules/stdio (Makefile.am): Substitute also GNULIB_FPRINTF_POSIX,
40855         REPLACE_FPRINTF.
40856
40857 2007-03-08  Bruno Haible  <bruno@clisp.org>
40858
40859         * modules/vfprintf-posix-tests: New file.
40860         * tests/test-vfprintf-posix.sh: New file.
40861         * tests/test-vfprintf-posix.c: New file.
40862         * tests/test-fprintf-posix.h: New file.
40863         * tests/test-fprintf-posix.out: New file.
40864
40865         * modules/vfprintf-posix: New file.
40866         * lib/vfprintf.c: New file.
40867         * m4/vfprintf-posix.m4: New file.
40868         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_VFPRINTF_POSIX,
40869         REPLACE_VFPRINTF.
40870         * lib/stdio_.h (vfprintf): New declaration.
40871         * modules/stdio (Makefile.am): Substitute also GNULIB_VFPRINTF_POSIX,
40872         REPLACE_VFPRINTF.
40873
40874 2007-03-08  Bruno Haible  <bruno@clisp.org>
40875
40876         * lib/stdio_.h: Treat __need___FILE like __need_FILE.
40877
40878 2007-03-08  Bruno Haible  <bruno@clisp.org>
40879
40880         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Use 'case' statements
40881         instead of 'expr' invocations.
40882         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
40883         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
40884         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
40885         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
40886         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
40887         Suggested by Paul Eggert.
40888
40889 2007-03-08  Bruno Haible  <bruno@clisp.org>
40890
40891         * modules/fseterr-tests: New file.
40892         * tests/test-fseterr.c: New file.
40893
40894         * modules/fseterr: New file.
40895         * lib/fseterr.h: New file.
40896         * lib/fseterr.c: New file.
40897
40898 2007-03-08  Bruno Haible  <bruno@clisp.org>
40899
40900         * lib/fnmatch_.h: Convert tabs in the middle of lines to spaces.
40901         * lib/getopt_.h: Likewise.
40902         * lib/mbswidth.h: Likewise.
40903         * lib/setenv.h: Likewise.
40904         * lib/vasnprintf.h: Likewise.
40905         * lib/vasprintf.h: Likewise.
40906         * lib/verror.h: Likewise.
40907         * lib/xsetenv.h: Likewise.
40908         * lib/xvasprintf.h: Likewise.
40909
40910 2007-03-08  Jim Meyering  <jim@meyering.net>
40911
40912         * users.txt: Add parted.
40913
40914         * ChangeLog: Restore 1500 lines mistakenly removed from the end.
40915
40916 2007-03-07  Bruno Haible  <bruno@clisp.org>
40917
40918         * m4/printf.m4: Make the shell script snippets copy&pastable.
40919
40920 2007-03-02  Bruno Haible  <bruno@clisp.org>
40921
40922         * lib/netinet_in_.h: New file.
40923         * m4/netinet_in_h.m4 (gl_HEADER_NETINET_IN): Test whether netinet/in.h
40924         is self-contained. Set ABSOLUTE_NETINET_IN_H, HAVE_NETINET_IN_H.
40925         * modules/netinet_in (Files): Add lib/netinet_in_.h.
40926         (Depends-on): Add absolute-header.
40927         (Makefile.am): Substitute ABSOLUTE_NETINET_IN_H, HAVE_NETINET_IN_H
40928         into netinet/in.h.
40929
40930 2007-03-03  Bruno Haible  <bruno@clisp.org>
40931
40932         * lib/sys_select_.h: New file.
40933         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SELECT): Test whether sys/select.h
40934         is self-contained. Set ABSOLUTE_SYS_SELECT_H, HAVE_SYS_SELECT_H.
40935         * modules/sys_select (Files): Add lib/sys_select_.h.
40936         (Depends-on): Add absolute-header.
40937         (Makefile.am): Substitute ABSOLUTE_SYS_SELECT_H, HAVE_SYS_SELECT_H
40938         into sys/select.h.
40939
40940 2007-03-02  Bruno Haible  <bruno@clisp.org>
40941
40942         * lib/socket_.h: If sys/socket.h exists, include that and <sys/types.h>
40943         before it. Turn HAVE_WINSOCK2_H and HAVE_WS2TCPIP_H into configute-time
40944         values.
40945         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Test also whether
40946         <sys/socket.h> is self-contained. Set ABSOLUTE_SYS_SOCKET_H,
40947         HAVE_SYS_SOCKET_H, HAVE_WINSOCK2_H, HAVE_WS2TCPIP_H.
40948         * modules/sys_socket (Depends-on): Add absolute-header.
40949         (Makefile.am): Substitute ABSOLUTE_SYS_SOCKET_H, HAVE_SYS_SOCKET_H,
40950         HAVE_WINSOCK2_H, HAVE_WS2TCPIP_H into sys/socket.h.
40951         (Include): Remove requirement of inclusion of <sys/types.h>.
40952
40953 2007-03-02  Bruno Haible  <bruno@clisp.org>
40954
40955         * lib/byteswap_.h (bswap_32): Fix formula.
40956
40957 2007-03-06  Bruno Haible  <bruno@clisp.org>
40958
40959         * modules/sprintf-posix-tests: New file.
40960         * tests/test-sprintf-posix.c: New file.
40961
40962         * modules/sprintf-posix: New file.
40963         * lib/sprintf.c: New file.
40964         * m4/sprintf-posix.m4: New file.
40965         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_SPRINTF_POSIX,
40966         REPLACE_SPRINTF.
40967         * lib/stdio_.h (sprintf): New declaration.
40968         * modules/stdio (Makefile.am): Substitute also GNULIB_SPRINTF_POSIX,
40969         REPLACE_SPRINTF.
40970
40971 2007-03-06  Bruno Haible  <bruno@clisp.org>
40972
40973         * modules/vsprintf-posix-tests: New file.
40974         * tests/test-vsprintf-posix.c: New file.
40975         * tests/test-sprintf-posix.h: New file.
40976
40977         * modules/vsprintf-posix: New file.
40978         * lib/vsprintf.c: New file.
40979         * m4/vsprintf-posix.m4: New file.
40980         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_VSPRINTF_POSIX,
40981         REPLACE_VSPRINTF.
40982         * lib/stdio_.h (vsprintf): New declaration.
40983         * modules/stdio (Makefile.am): Substitute also GNULIB_VSPRINTF_POSIX,
40984         REPLACE_VSPRINTF.
40985
40986 2007-03-06  Bruno Haible  <bruno@clisp.org>
40987
40988         * modules/vsnprintf (Depend-on): Remove minmax.
40989
40990 2007-03-06  Bruno Haible  <bruno@clisp.org>
40991
40992         * modules/snprintf-posix-tests: New file.
40993         * tests/test-snprintf-posix.c: New file.
40994
40995         * modules/snprintf-posix: New file.
40996         * m4/snprintf-posix.m4: New file.
40997         * m4/snprintf.m4 (gl_REPLACE_SNPRINTF): New macro, extracted from
40998         gl_FUNC_SNPRINTF.
40999         (gl_FUNC_SNPRINTF): Invoke it.
41000         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also REPLACE_SNPRINTF.
41001         * lib/stdio_.h (snprintf): Define as a replacement if REPLACE_SNPRINTF
41002         is set.
41003         * modules/stdio (Makefile.am): Substitute also REPLACE_SNPRINTF.
41004
41005 2007-03-06  Bruno Haible  <bruno@clisp.org>
41006
41007         * modules/vsnprintf-posix-tests: New file.
41008         * tests/test-vsnprintf-posix.c: New file.
41009         * tests/test-snprintf-posix.h: New file.
41010
41011         * modules/vsnprintf-posix: New file.
41012         * m4/vsnprintf-posix.m4: New file.
41013         * m4/vsnprintf.m4 (gl_REPLACE_VSNPRINTF): New macro, extracted from
41014         gl_FUNC_VSNPRINTF.
41015         (gl_FUNC_VSNPRINTF): Invoke it.
41016         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also REPLACE_VSNPRINTF.
41017         * lib/stdio_.h (vsnprintf): Define as a replacement if
41018         REPLACE_VSNPRINTF is set.
41019         * modules/stdio (Makefile.am): Substitute also REPLACE_VSNPRINTF.
41020
41021 2007-03-06  Bruno Haible  <bruno@clisp.org>
41022
41023         * m4/vasnprintf.m4 (gl_REPLACE_VASNPRINTF): Test for vasnprintf here.
41024         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): ... not here.
41025
41026 2007-03-06  Bruno Haible  <bruno@clisp.org>
41027
41028         * lib/math_.h (acosl): Declare also if HAVE_DECL_ACOSL is set.
41029         (asinl): Declare also if HAVE_DECL_ASINL is set.
41030         (atanl): Declare also if HAVE_DECL_ATANL is set.
41031         (ceill): Declare also if HAVE_DECL_CEILL is set.
41032         (cosl): Declare also if HAVE_DECL_COSL is set.
41033         (expl): Declare also if HAVE_DECL_EXPL is set.
41034         (floorl): Declare also if HAVE_DECL_FLOORL is set.
41035         (frexpl): Declare also if HAVE_DECL_FREXPL is set.
41036         (ldexpl): Declare also if HAVE_DECL_LDEXPL is set.
41037         (logl): Declare also if HAVE_DECL_LOGL is set.
41038         (sinl): Declare also if HAVE_DECL_SINL is set.
41039         (sqrtl): Declare also if HAVE_DECL_SQRTL is set.
41040         (tanl): Declare also if HAVE_DECL_TANL is set.
41041         * modules/math (Makefile.am): Substitute the values of HAVE_DECL_*.
41042         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Set HAVE_DECL_* to 1.
41043         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Fix tests for the
41044         declaration of frexpl, ldexpl.
41045         * modules/printf-frexpl (Depends-on): Add math.
41046         * lib/printf-frexp.c (frexpl, ldexpl): Undo last change.
41047
41048 2007-03-05  Bruno Haible  <bruno@clisp.org>
41049
41050         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Also test whether
41051         frexpl and ldexpl are declared.
41052         * lib/printf-frexp.c (frexpl, ldexpl): Provide fallback declarations.
41053
41054 2007-03-05  Bruno Haible  <bruno@clisp.org>
41055
41056         * gnulib-tool (func_get_automake_snippet): Don't synthesize an
41057         EXTRA_lib_SOURCES augmentation for the relocatable-prog-wrapper module.
41058
41059 2007-03-05  Bruno Haible  <bruno@clisp.org>
41060
41061         * lib/stdio_.h: Include <stddef.h>.
41062
41063 2007-03-05  Bruno Haible  <bruno@clisp.org>
41064
41065         * m4/printf.m4 (gl_SNPRINTF_DIRECTIVE_N): New macro.
41066
41067 2007-03-05  Bruno Haible  <bruno@clisp.org>
41068
41069         * m4/printf.m4: Update with info about OpenBSD 3.9, HP-UX 10.20,
41070         NetBSD 4, from Ralf Wildenhues.
41071
41072 2007-03-04  Bruno Haible  <bruno@clisp.org>
41073
41074         * lib/vasprintf.h: Update #if logic for the case when the functions
41075         exist but are overridden.
41076
41077 2007-03-04  Bruno Haible  <bruno@clisp.org>
41078
41079         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_A): Exclude two buggy
41080         implementations: glibc-2.4 and MacOS X 10.3.
41081         * tests/test-vasnprintf-posix.c (test_function): Test also the case
41082         that exhibits the bugs in glibc-2.4 and MacOS X 10.3.
41083         * tests/test-vasprintf-posix.c (test_function): Likewise.
41084
41085 2007-03-04  Bruno Haible  <bruno@clisp.org>
41086
41087         * modules/vasprintf-posix-tests: New file.
41088         * tests/test-vasprintf-posix.c: New file.
41089
41090         * modules/vasprintf-posix: New file.
41091         * lib/vasprintf.h (asprintf, vasprintf): Rename if REPLACE_VASPRINTF is
41092         defined.
41093         * m4/vasprintf-posix.m4: New file.
41094         * m4/vasprintf.m4 (gl_REPLACE_VASPRINTF): New macro, extracted from
41095         gl_FUNC_VASPRINTF.
41096         (gl_FUNC_VASPRINTF): Invoke it.
41097         * m4/vasnprintf.m4 (gl_REPLACE_VASNPRINTF): Define REPLACE_VASNPRINTF
41098         here.
41099         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Not here.
41100
41101 2007-03-04  Bruno Haible  <bruno@clisp.org>
41102
41103         * lib/sys_time_.h: Rename GETTIMEOFDAY_REPLACEMENT to
41104         REPLACE_GETTIMEOFDAY.
41105         * modules/sys_time (Makefile.am): Likewise.
41106         * m4/sys_time_h.m4: Likewise.
41107         * m4/gettimeofday.m4: Likewise.
41108
41109 2007-03-04  Bruno Haible  <bruno@clisp.org>
41110
41111         * modules/vasnprintf-posix-tests: New file.
41112         * tests/test-vasnprintf-posix.c: New file.
41113
41114         * modules/vasnprintf-posix: New file.
41115         * lib/vasnprintf.c: Include isnan.h, isnanl.h, printf-frexp.h,
41116         printf-frexpl.h.
41117         (VASNPRINTF): Handle the 'a' and 'A' directives here, if needed.
41118         * lib/vasnprintf.h (asnprintf, vasnprintf): Rename if
41119         REPLACE_VASNPRINTF is defined.
41120         * m4/vasnprintf.m4 (gl_REPLACE_VASNPRINTF): New macro, extracted from
41121         gl_FUNC_VASNPRINTF.
41122         (gl_FUNC_VASNPRINTF): Invoke it.
41123         * m4/vasnprintf-posix.m4: New file.
41124         * m4/printf.m4: New file.
41125
41126 2007-03-04  Bruno Haible  <bruno@clisp.org>
41127
41128         Compile progreloc.c only if --enable-relocatable is specified.
41129         * m4/relocatable.m4 (gl_RELOCATABLE): Arrange to compile progreloc.c
41130         if --enable-relocatable was specified.
41131         * modules/relocatable-prog (Makefile.am): Remove progreloc.c from
41132         lib_SOURCES.
41133
41134 2007-03-04  Jim Meyering  <jim@meyering.net>
41135
41136         * lib/acl.c (ACL_NOT_WELL_SUPPORTED): New macro.
41137         Use it consistently, rather than enumerating errno constants.
41138
41139 2007-03-04  Bruno Haible  <bruno@clisp.org>
41140
41141         * modules/xvasprintf-tests: New file.
41142         * tests/test-xvasprintf.c: New file.
41143
41144         * modules/vasprintf-tests: New file.
41145         * tests/test-vasprintf.c: New file.
41146
41147         * modules/vasnprintf-tests: New file.
41148         * tests/test-vasnprintf.c: New file.
41149
41150         * modules/vsnprintf-tests: New file.
41151         * tests/test-vsnprintf.c: New file.
41152
41153         * modules/snprintf-tests: New file.
41154         * tests/test-snprintf.c: New file.
41155
41156 2007-03-04  Bruno Haible  <bruno@clisp.org>
41157
41158         Compile relocatable.c only if --enable-relocatable is specified.
41159         * m4/relocatable-lib.m4 (gl_RELOCATABLE_LIBRARY_BODY): Renamed from
41160         gl_RELOCATABLE_LIBRARY.
41161         (gl_RELOCATABLE_LIBRARY, gl_RELOCATABLE_LIBRARY_SEPARATE): New macros.
41162         * m4/relocatable.m4 (gl_RELOCATABLE): Invoke gl_RELOCATABLE_LIBRARY.
41163         (gl_RELOCATABLE_BODY): Require gl_RELOCATABLE_LIBRARY_BODY instead of
41164         gl_RELOCATABLE_LIBRARY.
41165         * modules/relocatable-lib (configure.ac): Invoke gl_RELOCATABLE_LIBRARY.
41166         (Makefile.am): Remove lib_SOURCES.
41167         * modules/relocatable-lib-lgpl (configure.ac): Invoke
41168         gl_RELOCATABLE_LIBRARY.
41169         (Makefile.am): Remove lib_SOURCES.
41170         * modules/relocatable-prog (Makefile.am): Don't compile relocatable.c
41171         always.
41172         * modules/relocatable-prog-wrapper (configure.ac): Invoke
41173         gl_RELOCATABLE_LIBRARY_SEPARATE instead of gl_RELOCATABLE_LIBRARY.
41174
41175 2007-03-04  Bruno Haible  <bruno@clisp.org>
41176
41177         * modules/argmatch-tests: New file.
41178         * tests/test-argmatch.c: New file.
41179
41180         * tests/test-allocsa.c (main): Halve the number of loop runs.
41181
41182         * modules/alloca-opt-tests: New file.
41183         * tests/test-alloca-opt.c: New file.
41184
41185 2007-03-04  Jim Meyering  <jim@meyering.net>
41186
41187         Work around difference between Linux ACLs and Solaris 10 ZFS.
41188         * lib/acl.c (set_acl): Revert to using chmod_or_fchmod also
41189         for EINVAL.
41190
41191 2007-03-03  Bruno Haible  <bruno@clisp.org>
41192
41193         * modules/relocatable-prog (Depends-on): Add back progreloc's
41194         dependencies: canonicalize-lgpl, xalloc, xreadlink, stdbool, unistd.
41195
41196 2007-03-03  Bruno Haible  <bruno@clisp.org>
41197
41198         * modules/relocatable-lib-lgpl: Renamed from modules/relocatable-lib.
41199         * modules/relocatable-lib: New file.
41200
41201 2007-03-03  Bruno Haible  <bruno@clisp.org>
41202
41203         * modules/relocatable-prog: Renamed from modules/relocatable.
41204         * doc/relocatable-maint.texi: Talk about module 'relocatable-prog'.
41205
41206 2007-03-03  Bruno Haible  <bruno@clisp.org>
41207
41208         * modules/relocatable-script (Files): Add doc/relocatable.texi,
41209         m4/relocatable-lib.m4.
41210         (Depends-on): Remove 'relocatable'.
41211         (configure.ac): Add gl_RELOCATABLE_NOP.
41212
41213 2007-03-03  Bruno Haible  <bruno@clisp.org>
41214
41215         * modules/relocatable-prog-wrapper: New file.
41216         * modules/relocatable (Depends-on): Add it. Remove all other
41217         dependencies except progname.
41218         (Files): Remove build-aux/install-reloc, lib/relocwrapper.c.
41219
41220         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE): New macro.
41221         (gl_FUNC_STRERROR): Nop.
41222         * lib/strerror.c: Compile the file only if !HAVE_STRERROR.
41223
41224         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE): New macro.
41225         * lib/setenv.c: Compile the file only if _LIBC || !HAVE_SETENV.
41226
41227         * m4/readlink.m4 (gl_FUNC_READLINK_SEPARATE): New macro.
41228         (gl_FUNC_READLINK): Update.
41229
41230         * m4/canonicalize-lgpl.m4 (gl_CANONICALIZE_LGPL_SEPARATE): New macro.
41231
41232 2007-03-03  Bruno Haible  <bruno@clisp.org>
41233
41234         * lib/xreadlink.c: Include <unistd.h> unconditionally.
41235         * modules/xreadlink (Depends-on): Add unistd.
41236         * modules/xreadlink-with-size (Depends-on): Likewise.
41237
41238 2007-03-03  Bruno Haible  <bruno@clisp.org>
41239
41240         * m4/setenv.m4 (gl_FUNC_SETENV, gl_FUNC_UNSETENV): New macros,
41241         extracted from gt_FUNC_SETENV.
41242         (gt_FUNC_SETENV): Remove macro.
41243         * modules/setenv (configure.ac): Add gl_FUNC_SETENV, gl_FUNC_UNSETENV,
41244         remove gt_FUNC_SETENV.
41245
41246 2007-03-03  Bruno Haible  <bruno@clisp.org>
41247
41248         * m4/relocatable-lib.m4 (gl_RELOCATABLE_LIBRARY): Define
41249         ENABLE_RELOCATABLE here.
41250         * m4/relocatable.m4 (gl_RELOCATABLE_BODY): Don't define it here.
41251
41252 2007-03-03  Bruno Haible  <bruno@clisp.org>
41253
41254         * modules/rbtreehash-list-tests (Depends-on): Add progname.
41255         * tests/test-rbtreehash_list.c: Include progname.h.
41256         (main): Call set_program_name.
41257
41258         * modules/rbtree-oset-tests (Depends-on): Add progname.
41259         * tests/test-rbtree_oset.c: Include progname.h.
41260         (main): Call set_program_name.
41261
41262         * modules/rbtree-list-tests (Depends-on): Add progname.
41263         * tests/test-rbtree_list.c: Include progname.h.
41264         (main): Call set_program_name.
41265
41266         * modules/linked-list-tests (Depends-on): Add progname.
41267         * tests/test-linked_list.c: Include progname.h.
41268         (main): Call set_program_name.
41269
41270 2007-03-03  Bruno Haible  <bruno@clisp.org>
41271
41272         * lib/glob-libc.h (_Restrict_): New macro, copied from lib/regex.h.
41273         All uses of __restrict changed to _Restrict_.
41274         * lib/glob_.h (__restrict): Remove macro.
41275
41276 2007-03-02  Bruno Haible  <bruno@clisp.org>
41277
41278         * modules/gettext (configure.ac): Require gettext infrastructure
41279         from version 0.16.1.
41280
41281 2007-03-02  Bruno Haible  <bruno@clisp.org>
41282
41283         * modules/linkedhash-list-tests (Depends-on): Add progname.
41284         * tests/test-linkedhash_list.c: Include progname.h.
41285         (main): Call set_program_name.
41286
41287         * modules/carray-list-tests (Depends-on): Add progname.
41288         * tests/test-carray_list.c: Include progname.h.
41289         (main): Call set_program_name.
41290
41291         * modules/avltreehash-list-tests (Depends-on): Add progname.
41292         * tests/test-avltreehash_list.c: Include progname.h.
41293         (main): Call set_program_name.
41294
41295         * modules/avltree-oset-tests (Depends-on): Add progname.
41296         * tests/test-avltree_oset.c: Include progname.h.
41297         (main): Call set_program_name.
41298
41299         * modules/avltree-list-tests (Depends-on): Add progname.
41300         * tests/test-avltree_list.c: Include progname.h.
41301         (main): Call set_program_name.
41302
41303         * modules/array-oset-tests (Depends-on): Add progname.
41304         * tests/test-array_oset.c: Include progname.h.
41305         (main): Call set_program_name.
41306
41307         * modules/array-list-tests (Depends-on): Add progname.
41308         * tests/test-array_list.c: Include progname.h.
41309         (main): Call set_program_name.
41310
41311         * modules/argp-tests (Depends-on): Add progname.
41312         * tests/test-argp.c: Include argp.h first. Include progname.h.
41313         (main): Call set_program_name.
41314
41315 2007-03-02  Paul Eggert  <eggert@cs.ucla.edu>
41316
41317         * doc/gnulib-tool.texi (Initial import): Reword description of
41318         _FILE_OFFSET_BITS and _GNU_SOURCE, since they sometimes have a
41319         limited effect even if defined after the first system include.
41320
41321 2007-03-01  Bruno Haible  <bruno@clisp.org>
41322
41323         * build-aux/config.libpath: Update to libtool-1.5.22.
41324         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
41325
41326 2007-03-01  Bruno Haible  <bruno@clisp.org>
41327
41328         * doc/relocatable-maint.texi: Recommend to set foo_CPPFLAGS, not
41329         foo_CFLAGS.
41330         Reported by Ralf Wildenhues.
41331
41332 2007-03-01  Bruno Haible  <bruno@clisp.org>
41333
41334         * build-aux/install-reloc: Remove object files left over by some
41335         compilers.
41336         Reported by Ralf Wildenhues.
41337
41338 2007-03-01  Bruno Haible  <bruno@clisp.org>
41339
41340         * build-aux/install-reloc: Break long lines.
41341
41342 2007-03-01  Bruno Haible  <bruno@clisp.org>
41343
41344         * doc/relocatable.texi: Document that it may not work on OpenBSD.
41345         Reported by Ralf Wildenhues.
41346
41347 2007-03-01  Bruno Haible  <bruno@clisp.org>
41348
41349         * doc/gnulib-tool.texi (Initial import): Remove paragraph about
41350         include ordering constraints.
41351
41352 2007-03-01  Paul Eggert  <eggert@cs.ucla.edu>
41353
41354         Followup to the 2007-02-12 patch, using suggestions from Bruno Haible in
41355         <http://lists.gnu.org/archive/html/bug-gnulib/2007-02/msg00136.html>.
41356         * doc/gnulib-tool.texi (Initial import): Mention _FILE_OFFSET_BITS
41357         as another example.
41358         * lib/time_.h: Fix misspelling.
41359         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP):
41360         Require gl_HEADER_TIME_H_DEFAULTS.
41361         * m4/strptime.m4 (gl_FUNC_STRPTIME): Likewise.
41362         * m4/time_r.m4 (gl_TIME_R): Likewise.
41363         * m4/timegm.m4 (gl_FUNC_TIMEGM): Likewise.
41364
41365 2007-03-01  Bruno Haible  <bruno@clisp.org>
41366
41367         * m4/utimecmp.m4 (gl_UTIMECMP): Don't require gl_TIMESPEC.
41368         * m4/utimens.m4 (gl_UTIMENS): Likewise.
41369
41370 2007-03-01  Jim Meyering  <jim@meyering.net>
41371
41372         * modules/xreadlink (Maintainer): Add my name.
41373         * modules/xreadlink-with-size (Depends-on): Alphabetize.
41374
41375 2007-02-26  Ben Pfaff  <blp@cs.stanford.edu>
41376             Bruno Haible  <bruno@clisp.org>
41377
41378         * build-aux/install-reloc: Compile also c-ctype.c.
41379         * build-aux/relocatable.sh.in: New file.
41380         * doc/relocatable.texi: New file.
41381         * doc/relocatable-maint.texi: New file.
41382         * doc/gnulib.texi: Include relocatable-maint.texi.
41383         * lib/progreloc.c: Include unistd.h unconditionally.
41384         * lib/relocwrapper.c: Include unistd.h unconditionally.
41385         Include c-ctype.h.
41386         (add_dotbin): Use c_tolower.
41387         * m4/relocatable-lib.m4: New file, extracted from m4/relocatable.m4.
41388         (gl_RELOCATABLE_LIBRARY): Renamed from AC_RELOCATABLE_LIBRARY.
41389         (gl_RELOCATABLE_NOP): Renamed from AC_RELOCATABLE_NOP.
41390         * m4/relocatable.m4 (AC_RELOCATABLE_LIBRARY, AC_RELOCATABLE_NOP): Move
41391         to m4/relocatable-lib.m4.
41392         (gl_RELOCATABLE): Renamed from AC_RELOCATABLE. Set also
41393         RELOCATABLE_CONFIG_H_DIR, RELOCATABLE_SRC_DIR, RELOCATABLE_BUILD_DIR.
41394         (gl_RELOCATABLE_BODY): Renamed from AC_RELOCATABLE_BODY. Don't
41395         require obsolete macro AC_EXEEXT. Don't check for unistd.h. Don't set
41396         SET_RELOCATABLE. Instead set RELOCATABLE_LDFLAGS, INSTALL_PROGRAM_ENV.
41397         * modules/relocatable: New file.
41398         * modules/relocatable-lib: New file.
41399         * modules/relocatable-script: New file.
41400
41401 2007-02-28  Bruno Haible  <bruno@clisp.org>
41402
41403         Import --enable-relocatable infrastructure.
41404         * build-aux/config.libpath: New file, from GNU gettext.
41405         * build-aux/install-reloc: New file, from GNU gettext.
41406         * build-aux/reloc-ldflags: New file, from GNU gettext.
41407         * lib/relocatable.h: New file, from GNU gettext.
41408         * lib/relocatable.c: New file, from GNU gettext.
41409         * lib/relocwrapper.c: New file, from GNU gettext.
41410         * m4/relocatable.m4: New file, from GNU gettext.
41411
41412 2007-02-28  Bruno Haible  <bruno@clisp.org>
41413
41414         * MODULES.html.sh (File system functions): Add xreadlink-with-size.
41415
41416         * modules/xreadlink: New file, from GNU gettext with modifications.
41417         * lib/xreadlink.c: New file, from GNU gettext.
41418         * lib/xreadlink.h: Add comments.
41419         (xreadlink): New declaration.
41420
41421         * modules/xreadlink-with-size: Renamed from modules/xreadlink.
41422         (Files): Remove m4/xreadlink.m4. Replace lib/xreadlink.c with
41423         lib/xreadlink-with-size.c.
41424         (configure.ac): Remove gl_XREADLINK invocation.
41425         (Makefile.am): Augment lib_SOURCES.
41426         * m4/xreadlink.m4: Remove file.
41427         * lib/xreadlink-with-size.c: Renamed from lib/xreadlink.c.
41428         (xreadlink_with_size): Renamed from xreadink.
41429         * lib/xreadlink.h (xreadlink_with_size): Renamed from xreadink.
41430         * modules/canonicalize (Depends-on): Replace xreadlink with
41431         xreadlink-with-size.
41432         * lib/canonicalize.c (canonicalize_filename_mode): Update.
41433
41434 2007-02-25  Jim Meyering  <jim@meyering.net>
41435
41436         * build-aux/announce-gen: When complaining about excess arguments,
41437         list them.
41438
41439 2007-02-25  Paul Eggert  <eggert@cs.ucla.edu>
41440
41441         * README: Document signed integer overflow situation more
41442         accurately.
41443
41444 2007-02-25  Bruno Haible  <bruno@clisp.org>
41445
41446         * lib/vasnprintf.c (VASNPRINTF): Fix estimate of size needed for a
41447         'a' or 'A' conversion.
41448
41449 2007-02-25  Bruno Haible  <bruno@clisp.org>
41450
41451         * modules/filename: Renamed from modules/pathname.
41452         (Files): Replace lib/pathname.h with lib/filename.h. Replace
41453         lib/concatpath.c with lib/concat-filename.c.
41454         (Makefile.am): Update.
41455         (Include): Replace pathname.h with filename.h.
41456         * lib/filename.h: Renamed from lib/pathname.h.
41457         (concatenated_filename): Renamed from concatenated_pathname.
41458         * lib/concat-filename.c: Renamed from lib/concatpath.c.
41459         (concatenated_filename): Renamed from concatenated_pathname.
41460         * lib/findprog.c: Include filename.h instead of pathname.h.
41461         (find_in_path): Update.
41462         * lib/javacomp.c: Include filename.h instead of pathname.h.
41463         (is_envjavac_gcj43_usable, is_envjavac_oldgcj_14_14_usable,
41464         is_envjavac_oldgcj_14_13_usable, is_envjavac_nongcj_usable,
41465         is_gcj_present, is_gcj43_usable, is_oldgcj_14_14_usable,
41466         is_oldgcj_14_13_usable, is_javac_usable): Update.
41467         * lib/javaexec.c: Include filename.h instead of pathname.h.
41468         (execute_java_class): Update.
41469         * modules/findprog: Update.
41470         * modules/javacomp: Update.
41471         * modules/javaexec: Update.
41472         * MODULES.html.sh (File system functions): Add 'filename', remove
41473         'pathname'.
41474
41475 2007-02-25  Bruno Haible  <bruno@clisp.org>
41476
41477         * modules/printf-frexpl-tests: New file.
41478         * tests/test-printf-frexpl.c: New file.
41479
41480         * modules/printf-frexpl: New file.
41481         * lib/printf-frexpl.h: New file.
41482         * lib/printf-frexpl.c: New file.
41483         * m4/printf-frexpl.m4: New file.
41484
41485 2007-02-25  Bruno Haible  <bruno@clisp.org>
41486
41487         * modules/printf-frexp-tests: New file.
41488         * tests/test-printf-frexp.c: New file.
41489
41490         * modules/printf-frexp: New file.
41491         * lib/printf-frexp.h: New file.
41492         * lib/printf-frexp.c: New file.
41493         * m4/printf-frexp.m4: New file.
41494
41495 2007-02-25  Bruno Haible  <bruno@clisp.org>
41496
41497         Assume automake >= 1.10 for the tests.
41498         * modules/arcfour-tests (TESTS): Remove $(EXEEXT) suffix.
41499         * modules/arctwo-tests: Likewise.
41500         * modules/argp-tests: Likewise.
41501         * modules/avltree-list-tests: Likewise.
41502         * modules/avltree-oset-tests: Likewise.
41503         * modules/avltreehash-list-tests: Likewise.
41504         * modules/carray-list-tests: Likewise.
41505         * modules/crc-tests: Likewise.
41506         * modules/des-tests: Likewise.
41507         * modules/gc-arcfour-tests: Likewise.
41508         * modules/gc-arctwo-tests: Likewise.
41509         * modules/gc-des-tests: Likewise.
41510         * modules/gc-hmac-md5-tests: Likewise.
41511         * modules/gc-hmac-sha1-tests: Likewise.
41512         * modules/gc-md2-tests: Likewise.
41513         * modules/gc-md4-tests: Likewise.
41514         * modules/gc-md5-tests: Likewise.
41515         * modules/gc-pbkdf2-sha1-tests: Likewise.
41516         * modules/gc-rijndael-tests: Likewise.
41517         * modules/gc-sha1-tests: Likewise.
41518         * modules/gc-tests: Likewise.
41519         * modules/getaddrinfo-tests: Likewise.
41520         * modules/hmac-md5-tests: Likewise.
41521         * modules/hmac-sha1-tests: Likewise.
41522         * modules/linked-list-tests: Likewise.
41523         * modules/linkedhash-list-tests: Likewise.
41524         * modules/lock-tests: Likewise.
41525         * modules/md2-tests: Likewise.
41526         * modules/md4-tests: Likewise.
41527         * modules/md5-tests: Likewise.
41528         * modules/rbtree-list-tests: Likewise.
41529         * modules/rbtree-oset-tests: Likewise.
41530         * modules/rbtreehash-list-tests: Likewise.
41531         * modules/read-file-tests: Likewise.
41532         * modules/rijndael-tests: Likewise.
41533         * modules/stdint-tests: Likewise.
41534         * modules/tls-tests: Likewise.
41535
41536 2007-02-24  Bruno Haible  <bruno@clisp.org>
41537
41538         * lib/isnanl.h (isnanl): Define through isnan if isnan is a macro.
41539         * m4/isnan.m4 (gl_FUNC_ISNAN_NO_LIBM): Don't check for isnan as a
41540         function; instead check whether isnan with a double argument links.
41541         * m4/isnanl.m4 (gl_FUNC_ISNANL_NO_LIBM): Don't check for isnanl as a
41542         function; instead check whether isnan with a 'long double' argument
41543         links.
41544         Reported by Eric Blake <ebb9@byu.net>.
41545
41546 2007-02-24  Bruno Haible  <bruno@clisp.org>
41547
41548         * lib/isnan.c: Support the 'long double' case if USE_LONG_DOUBLE is
41549         defined.
41550         * lib/isnanl.c: Remove all code. Just include isnan.c.
41551         * modules/isnanl-nolibm (Files): Add lib/isnan.c.
41552
41553 2007-02-25  Jim Meyering  <jim@meyering.net>
41554
41555         Avoid conflicting types for 'unsetenv' on FreeBSD.
41556         * lib/putenv.c (_unsetenv): Rename from "unsetenv", to avoid
41557         conflicting with FreeBSD's (5.0 and 6.1) function declaration
41558         in stdlib.h.
41559
41560 2007-02-24  Bruno Haible  <bruno@clisp.org>
41561
41562         * modules/isnanl-nolibm-tests: New file.
41563         * tests/test-isnanl.c: New file.
41564
41565         * modules/isnanl-nolibm: New file.
41566         * lib/isnanl.h: New file.
41567         * lib/isnanl.c: New file.
41568         * m4/isnanl.m4: New file.
41569
41570 2007-02-24  Bruno Haible  <bruno@clisp.org>
41571
41572         * modules/isnan-nolibm-tests: New file.
41573         * tests/test-isnan.c: New file.
41574
41575         * modules/isnan-nolibm: New file.
41576         * lib/isnan.h: New file.
41577         * lib/isnan.c: New file.
41578         * m4/isnan.m4: New file.
41579
41580 2007-02-24  Bruno Haible  <bruno@clisp.org>
41581
41582         * lib/frexpl.c (frexpl): Correct return values for x = 1.0L. Don't
41583         assume that an exponent fits in 20 bits.
41584
41585 2007-02-24  Jim Meyering  <jim@meyering.net>
41586
41587         * m4/regex.m4: Update the description of the configure-time option,
41588         --without-included-regex, to state accurately what the defaults are,
41589         and perhaps to give people an idea why using this option is risky.
41590
41591 2007-02-24  Paul Eggert  <eggert@cs.ucla.edu>
41592
41593         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Check for a nanosleep that
41594         loops on small arguments.  This attempts to avoid the problem
41595         Bruno Haible reported for AIX 4.3.2 in
41596         <http://lists.gnu.org/archive/html/bug-gnulib/2007-02/msg00309.html>.
41597
41598 2007-02-23  Bruno Haible  <bruno@clisp.org>
41599
41600         * m4/perl.m4 (gl_PERL): Require version 5.005, not 5.003.
41601         Needed for help2man.
41602
41603 2007-02-23  Karl Berry  <karl@gnu.org>
41604
41605         * doc/gnulib-tool.texi (CVS Issues): mention that when foo_.h
41606         exists, foo.h should be cvs-ignored, not committed.
41607
41608 2007-02-23  Eric Blake  <ebb9@byu.net>
41609
41610         * lib/getdate.h (includes):  Include <time.h>, not "timespec.h".
41611         * lib/stat-time.h (includes): Likewise.
41612         * lib/utimecmp.c (includes): Likewise.
41613         * lib/utimens.h (includes): Likewise.
41614         * lib/getdate.y (includes): Also include "timespec.h" for use
41615         internal to the module.
41616         * modules/utimens (Depends-on): Revert yesterday's patch.
41617         * modules/nanosleep (Depends-on): Add missing dependency.
41618
41619 2007-02-22  Bruno Haible  <bruno@clisp.org>
41620
41621         * lib/glob.c: Don't include getlogin_r.h.
41622
41623 2007-02-22  Jim Meyering  <jim@meyering.net>
41624
41625         * modules/utimens (Depends-on): Add timespec, required for
41626         utimens.h's inclusion of timespec.h.
41627
41628 2007-02-21  Paul Eggert  <eggert@cs.ucla.edu>
41629
41630         * lib/getcwd.c (__getcwd): Undo previous change; it mishandled
41631         long unreadable paths in GNU/Linux.  Problem reported by Andreas
41632         Schwab in
41633         <http://lists.gnu.org/archive/html/bug-gnulib/2007-02/msg00261.html>.
41634         I'll try to think of a better way to fix the Solaris problem.
41635
41636         * lib/getcwd.c (__getcwd): Don't assume getcwd (NULL, 0) works
41637         like glibc; on Solaris 10, it fails with errno == EINVAL.
41638         POSIX says the behavior is unspecified if the first argument is NULL,
41639         so play it safe and never pass NULL to the system getcwd.
41640
41641 2007-02-21  Jim Meyering  <jim@meyering.net>
41642
41643         * lib/gettimeofday.c (rpl_gettimeofday): Remove declaration
41644         of gettimeofday.  It would conflict with the one now always
41645         provided via sys_time_.h.  Reported by Matthew Woehlke, as
41646         an IRIX 6.5 build failure.
41647
41648 2007-02-20  Paul Eggert  <eggert@cs.ucla.edu>
41649
41650         Minor fixups to port to Solaris 10 with Sun C 5.8.
41651         * lib/getcwd.c [!_LIBC]: Include dirfd.h, since we use dirfd.
41652         * modules/getcwd (Depends-on): Add dirfd.
41653         * lib/putenv.c (putenv): #undef it.
41654         (rpl_putenv): New decl.
41655         (malloc, free): Include <stdlib.h> rather than prototyping separately.
41656
41657 2007-02-20  Bruno Haible  <bruno@clisp.org>
41658
41659         * modules/stdio-tests: New file.
41660         * tests/test-stdio.c: New file.
41661
41662         * modules/vsnprintf (Files): Remove lib/vsnprintf.h.
41663         (Depends-on): Add stdio.
41664         (configure.ac): Invoke gl_STDIO_MODULE_INDICATOR.
41665         (Include): Use <stdio.h> instead of vsnprintf.h.
41666         * m4/vsnprintf.m4 (gl_FUNC_VSNPRINTF): Require gl_STDIO_H_DEFAULTS. Set
41667         HAVE_DECL_VSNPRINTF.
41668         * lib/vsnprintf.c: Include <stdio.h> instead of vsnprintf.h.
41669
41670         * modules/snprintf (Files): Remove lib/snprintf.h.
41671         (Depends-on): Add stdio.
41672         (configure.ac): Invoke gl_STDIO_MODULE_INDICATOR.
41673         (Include): Use <stdio.h> instead of snprintf.h.
41674         * m4/snprintf.m4 (gl_FUNC_SNPRINTF): Require gl_STDIO_H_DEFAULTS. Set
41675         HAVE_DECL_SNPRINTF.
41676         * lib/snprintf.c: Include <stdio.h> instead of snprintf.h.
41677         * lib/getaddrinfo.c: Likewise.
41678
41679         * modules/stdio: New file.
41680         * lib/stdio_.h: New file, incorporating snprintf.h and vsnprintf.h.
41681         * lib/snprintf.h: Remove file.
41682         * lib/vsnprintf.h: Remove file.
41683         * lib/.cppi-disable: Remove snprintf.h.
41684         * m4/stdio_h.m4: New file.
41685         * MODULES.html.sh (Support for systems lacking ISO C 99): Add stdio.
41686
41687 2007-02-20  Jim Meyering  <jim@meyering.net>
41688
41689         * lib/ftruncate.c [HAVE_CHSIZE]: Document that this code is
41690         used by e.g., mingw.  From Bruno Haible.
41691
41692 2007-02-19  Bruno Haible  <bruno@clisp.org>
41693
41694         * lib/string_.h: Use "#pragma GCC system_header" to suppress some gcc
41695         warnings.
41696         Reported by Ben Pfaff <blp@cs.stanford.edu>.
41697
41698 2007-02-19  Bruno Haible  <bruno@clisp.org>
41699
41700         * m4/ftruncate.m4 (gl_FUNC_FTRUNCATE): Don't request a complaint mail
41701         from mingw users.
41702
41703 2007-02-19  Bruno Haible  <bruno@clisp.org>
41704
41705         * lib/stdlib_.h: Use "#pragma GCC system_header" to suppress some gcc
41706         warnings.
41707         Reported by Joel E. Denny <jdenny@ces.clemson.edu> via Paul Eggert.
41708
41709 2007-02-19  Jim Meyering  <jim@meyering.net>
41710
41711         Don't use FD after a successful "fdopendir (fd)".
41712         * lib/getcwd.c (__getcwd) [AT_FDCWD]: fdopendir (fd) usually closes fd.
41713         Reset it by calling dirfd on the just-obtained DIR*.
41714
41715         * m4/ftruncate.m4: Adjust comment to give this module a 3-year reprieve.
41716         Prompted by a report from Bruno Haible that mingw lacks ftruncate.
41717
41718 2007-02-18  Bruno Haible  <bruno@clisp.org>
41719
41720         * lib/readlink.c: Include <unistd.h>.
41721         * m4/readlink.m4 (gl_FUNC_READLINK): Require gl_UNISTD_H_DEFAULTS. Set
41722         HAVE_READLINK.
41723         * modules/readlink (Depends-on): Add unistd.
41724         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
41725         (Include): Add <unistd.h>.
41726
41727         * lib/getlogin_r.h: Remove file.
41728         * lib/getlogin_r.c: Include <unistd.h> instead of getlogin_r.h.
41729         * m4/getlogin_r.m4 (gl_GETLOGIN_R_SUBSTITUTE): Remove macro.
41730         (gl_GETLOGIN_R): Inline it here. Require gl_UNISTD_H_DEFAULTS. Set
41731         HAVE_DECL_GETLOGIN_R.
41732         * modules/getlogin_r (Files): Remove lib/getlogin_r.h.
41733         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
41734         (Include): Use <unistd.h> instead of getlogin_r.h.
41735
41736         * lib/getcwd.h: Remove file.
41737         * lib/getcwd.c: Include <unistd.h> instead of getcwd.h.
41738         * lib/xgetcwd.c: Likewise.
41739         * m4/getcwd.m4 (gl_FUNC_GETCWD): Require gl_UNISTD_H_DEFAULTS. Set
41740         REPLACE_GETCWD. Don't define __GETCWD_PREFIX.
41741         * modules/getcwd (Files): Remove lib/getcwd.h.
41742         (Depends-on): Add unistd.
41743         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
41744         (Include): Use <unistd.h> instad of getcwd.h.
41745
41746         * lib/ftruncate.c: Include <unistd.h> first.
41747         * m4/ftruncate.m4 (gl_FUNC_FTRUNCATE): Require gl_UNISTD_H_DEFAULTS.
41748         Set HAVE_FTRUNCATE.
41749         * modules/ftruncate (Depends-on): Add unistd.
41750         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
41751
41752         * lib/fchdir.c: Include <unistd.h> first.
41753         * lib/dirent_.h: Test REPLACE_FCHDIR, not FCHDIR_REPLACEMENT.
41754         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Require gl_UNISTD_H_DEFAULTS instead
41755         of gl_HEADER_UNISTD_DEFAULTS. Set REPLACE_FCHDIR. Don't set UNISTD_H.
41756         * modules/fchdir (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
41757         (Makefile.am): Substitute also REPLACE_FCHDIR into dirent.h.
41758
41759         * lib/dup2.c: Include <unistd.h> first.
41760         * m4/dup2.m4 (gl_FUNC_DUP2): Require gl_UNISTD_H_DEFAULTS. Set
41761         HAVE_DUP2.
41762         * modules/dup2 (Depends-on): Add unistd.
41763         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
41764
41765         * lib/chown.c: Include <unistd.h> first. Undefine chown later.
41766         * m4/chown.m4 (gl_FUNC_CHOWN): Require gl_UNISTD_H_DEFAULTS. Set
41767         REPLACE_CHOWN. Don't define chown as a macro here.
41768         * modules/chown (Depends-on): Add unistd.
41769         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
41770
41771         * lib/unistd_.h: Test HAVE_UNISTD_H determined at configure time.
41772         Add definition for GL_LINK_WARNING.
41773         (chown, dup2): New declarations.
41774         (fchdir): Test REPLACE_FCHDIR, not FCHDIR_REPLACEMENT. Provide optional
41775         link warning.
41776         (ftruncate): New declaration.
41777         (getcwd): New declaration, taken from old getcwd.h.
41778         (getlogin_r): New declaration, taken from old getlogin_r.h.
41779         (readlink): New declaration.
41780         * m4/unistd_h.m4 (gl_UNISTD_H): Renamed from gl_HEADER_UNISTD. Don't
41781         set UNISTD_H. Inline gl_PREREQ_UNISTD. Set HAVE_UNISTD_H.
41782         (gl_PREREQ_UNISTD): Remove macro.
41783         (gl_UNISTD_MODULE_INDICATOR): New macro.
41784         (gl_UNISTD_H_DEFAULTS): Renamed from gl_HEADER_UNISTD_DEFAULTS. Set
41785         many new variables. Don't set UNISTD_H.
41786         * modules/unistd (Description): Change.
41787         (Depends-on): Add link-warning.
41788         (configure.ac): Update.
41789         (Makefile.am): Create unistd.h always. Substitute many new variables
41790         into it.
41791
41792 2007-02-18  Bruno Haible  <bruno@clisp.org>
41793
41794         * lib/stdlib_.h (getsubopt): New declaration, copied from getsubopt.h.
41795         * modules/stdlib (stdlib.h): Also substitute GNULIB_GETSUBOPT and
41796         HAVE_GETSUBOPT.
41797         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Also initialize
41798         GNULIB_GETSUBOPT and HAVE_GETSUBOPT.
41799         * lib/getsubopt.h: Remove file.
41800         * modules/getsubopt (Files): Remove lib/getsubopt.h.
41801         (Depends-on): Add stdlib.
41802         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
41803         (Includes): Use <stdlib.h> instead of getsubopt.h.
41804         * m4/getsubopt.m4 (gl_FUNC_GETSUBOPT): Require gl_STDLIB_H_DEFAULTS.
41805         Set HAVE_GETSUBOPT.
41806         * lib/getsubopt.c: Don't include getsubopt.h.
41807
41808 2007-02-18  Bruno Haible  <bruno@clisp.org>
41809
41810         * modules/fchdir (Depends-on): Add dup2.
41811
41812 2007-02-18  Bruno Haible  <bruno@clisp.org>
41813
41814         * lib/stdlib_.h: Handle glibc's special invocation convention
41815         specially.
41816
41817 2007-02-18  Bruno Haible  <bruno@clisp.org>
41818
41819         * modules/stdlib-tests: New file.
41820         * tests/test-stdlib.c: New file.
41821
41822         * modules/mkstemp (Files): Remove lib/mkstemp.h.
41823         (Depends-on): Add stdlib.
41824         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
41825         (Includes): Use <stdlib.h> instead of mkstemp.h.
41826         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Require gl_STDLIB_H_DEFAULTS. Set
41827         REPLACE_MKSTEMP. Remove definition of __MKSTEMP_PREFIX.
41828         * lib/mkstemp.c: Don't include mkstemp.h.
41829         * lib/mkstemp-safer.c: Include <stdlib.h> instead of mkstemp.h.
41830         * lib/stdlib--.h: Don't include mkstemp.h.
41831
41832         * modules/mkdtemp (Files): Remove lib/mkdtemp.h.
41833         (Depends-on): Add stdlib.
41834         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
41835         (Includes): Use <stdlib.h> instead of mkdtemp.h.
41836         * m4/mkdtemp.m4 (gt_FUNC_MKDTEMP): Require gl_STDLIB_H_DEFAULTS. Set
41837         HAVE_MKDTEMP.
41838         * lib/mkdtemp.c: Don't include mkdtemp.h.
41839         * lib/clean-temp.c: Don't include mkdtemp.h.
41840
41841         * modules/exit (Files): Remove lib/exit.h.
41842         (Depends-on): Add stdlib.
41843         (Makefile.am): Remove lib_SOURCES.
41844         (Include): Use <stdlib.h> instead of exit.h.
41845         * lib/argmatch.c: Don't include exit.h.
41846         * lib/execute.c: Likewise.
41847         * lib/pagealign_alloc.c: Likewise.
41848         * lib/pipe.c: Likewise.
41849         * lib/wait-process.c: Likewise.
41850         * lib/copy-file.c: Include <stdlib.h> instead of exit.h.
41851         * lib/exitfail.c: Likewise.
41852         * lib/savewd.c: Likewise.
41853         * lib/xsetenv.c: Likewise.
41854
41855         * modules/stdlib: New file.
41856         * lib/stdlib_.h: New file, incorporating exit.h, mkdtemp.h, mkstemp.h
41857         and extra comments about mkstemp().
41858         * lib/exit.h: Remove file.
41859         * lib/mkdtemp.h: Remove file.
41860         * lib/mkstemp.h: Remove file.
41861         * m4/stdlib_h.m4: New file.
41862         * MODULES.html.sh (Support for systems lacking ANSI C 89): Add stdlib.
41863
41864 2007-02-18  Bruno Haible  <bruno@clisp.org>
41865
41866         * modules/math-tests: New file.
41867         * tests/test-math.c: New file.
41868
41869         * modules/math: New file.
41870         * modules/mathl (Files): Remove lib/mathl.h.
41871         (Depends-on): Add math.
41872         (Makefile.am): Don't mention mathl.h.
41873         (Include): Use <math.h> instead of mathl.h.
41874         * lib/math_.h: New file.
41875         * lib/mathl.h: Remove file.
41876         * lib/acosl.c: Include <config.h> and <math.h> first. Don't include
41877         mathl.h.
41878         * lib/asinl.c: Likewise.
41879         * lib/atanl.c: Likewise.
41880         * lib/ceill.c: Likewise.
41881         * lib/cosl.c: Likewise.
41882         * lib/expl.c: Likewise.
41883         * lib/floorl.c: Likewise.
41884         * lib/frexpl.c: Likewise.
41885         * lib/ldexpl.c: Likewise.
41886         * lib/logl.c: Likewise.
41887         * lib/sincosl.c: Likewise.
41888         * lib/sinl.c: Likewise.
41889         * lib/sqrtl.c: Likewise.
41890         * lib/tanl.c: Likewise.
41891         * lib/trigl.c: Likewise.
41892         * m4/math_h.m4: New file.
41893         * MODULES.html.sh (Mathematics): Add math.
41894
41895 2007-02-17  Bruno Haible  <bruno@clisp.org>
41896
41897         * modules/wctype-tests: New file.
41898         * tests/test-wctype.c: New file.
41899
41900         * modules/wchar-tests: New file.
41901         * tests/test-wchar.c: New file.
41902
41903         * modules/unistd-tests: New file.
41904         * tests/test-unistd.c: New file.
41905
41906         * modules/time-tests: New file.
41907         * tests/test-time.c: New file.
41908
41909         * modules/sysexits-tests: New file.
41910         * tests/test-sysexits.c: New file.
41911
41912         * modules/sys_time-tests: New file.
41913         * tests/test-sys_time.c: New file.
41914
41915         * modules/sys_stat-tests: New file.
41916         * tests/test-sys_stat.c: New file.
41917
41918         * modules/sys_socket-tests: New file.
41919         * tests/test-sys_socket.c: New file.
41920
41921         * modules/sys_select-tests: New file.
41922         * tests/test-sys_select.c: New file.
41923
41924         * modules/string-tests: New file.
41925         * tests/test-string.c: New file.
41926
41927         * modules/stdbool-tests: New file.
41928         * tests/test-stdbool.c: New file.
41929
41930         * modules/netinet_in-tests: New file.
41931         * tests/test-netinet_in.c: New file.
41932
41933         * modules/inttypes-tests: New file.
41934         * tests/test-inttypes.c: New file.
41935
41936         * modules/fcntl-tests: New file.
41937         * tests/test-fcntl.c: New file.
41938
41939         * modules/byteswap-tests: New file.
41940         * tests/test-byteswap.c: New file.
41941
41942         * modules/arpa_inet-tests: New file.
41943         * tests/test-arpa_inet.c: New file.
41944
41945 2007-02-17  Bruno Haible  <bruno@clisp.org>
41946
41947         * lib/inttypes_.h: Add definition for GL_LINK_WARNING.
41948         (imaxabs, imaxdiv, strtoimax, strtoumax): Don't declare the function
41949         if the corresponding module is not enabled. Emit link warnings if
41950         the function is used nevertheless.
41951         * m4/inttypes.m4 (gl_INTTYPES_H): Never use the existing <inttypes.h>.
41952         Don't AC_SUBST HAVE_DECL_IMAXABS, HAVE_DECL_IMAXDIV,
41953         HAVE_DECL_STRTOIMAX, HAVE_DECL_STRTOUMAX.
41954         (gl_INTTYPES_MODULE_INDICATOR, gl_INTTYPES_H_DEFAULTS): New macros.
41955         * modules/inttypes (Depends-on): Add link-warning.
41956         (Makefile.am): Copy the contents of build-aux/link-warning.h into
41957         inttypes.h. Substitute also GNULIB_IMAXABS, GNULIB_IMAXDIV,
41958         GNULIB_STRTOIMAX, GNULIB_STRTOUMAX.
41959         * modules/imaxabs (configure.ac): Invoke gl_INTTYPES_MODULE_INDICATOR.
41960         * modules/imaxdiv (configure.ac): Likewise.
41961         * modules/strtoimax (configure.ac): Likewise.
41962         * modules/strtoumax (configure.ac): Likewise.
41963
41964 2007-02-17  Bruno Haible  <bruno@clisp.org>
41965
41966         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Include the contents of
41967         gl_STRING_MODULE_INDICATOR_DEFAULTS.
41968         (gl_STRING_MODULE_INDICATOR_DEFAULTS): Remove macro.
41969         (gl_HEADER_STRING_H_BODY, gl_STRING_MODULE_INDICATOR): Update.
41970
41971 2007-02-17  Bruno Haible  <bruno@clisp.org>
41972
41973         * modules/link-warning: New file.
41974         * build-aux/link-warning.h: New file, extracted from lib/string_.h.
41975         * lib/string_.h (GL_LINK_WARNING): Remove definition.
41976         * modules/string (Depends-on): Add link-warning.
41977         (Makefile.am): Copy the contents of build-aux/link-warning.h into
41978         string.h.
41979         * MODULES.html.sh (Support for building libraries and executables): Add
41980         link-warning.
41981
41982 2007-02-17  Bruno Haible  <bruno@clisp.org>
41983
41984         * lib/string_.h (memmem, mempcpy, memrchr, stpcpy, stpncpy, strcasecmp,
41985         strncasecmp, strchr, strchrnul, strdup, strndup, strnlen, strcspn,
41986         strpbrk, strspn, strrchr, strsep, strstr, strcasestr, strtok_r): Break
41987         long lines.
41988
41989 2007-02-17  Ben Pfaff  <blp@cs.stanford.edu>
41990             Bruno Haible  <bruno@clisp.org>
41991
41992         * modules/tmpfile: New file.
41993         * lib/tmpfile.c: New file.
41994         * m4/tmpfile.m4: New file.
41995         * MODULES.html.sh (func_all_modules): New section "Input/output".
41996
41997 2007-02-15  Bruno Haible  <bruno@clisp.org>
41998
41999         * lib/clean-temp.c [WIN32 && !CYGWIN]: Include <windows.h>.
42000         (supports_delete_on_close): New function.
42001         (open_temp, fopen_temp): Use _O_TEMPORARY when supported.
42002
42003 2007-02-14  Bruno Haible  <bruno@clisp.org>
42004
42005         * modules/mbspcasecmp-tests: New file.
42006         * tests/test-mbspcasecmp.sh: New file.
42007         * tests/test-mbspcasecmp.c: New file.
42008
42009         New module mbspcasecmp.
42010         * modules/mbspcasecmp: New file.
42011         * lib/mbspcasecmp.c: New file.
42012         * lib/string_.h (strncasecmp): Change warning message.
42013         (mbspcasecmp): New declaration.
42014         * m4/mbspcasecmp.m4: New file.
42015         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
42016         GNULIB_MBSPCASECMP.
42017         * modules/string (string.h): Also substitute GNULIB_MBSPCASECMP.
42018         * MODULES.html.sh (Internationalization functions): Add mbspcasecmp.
42019
42020 2007-02-14  Bruno Haible  <bruno@clisp.org>
42021
42022         * modules/mbsncasecmp-tests: New file.
42023         * tests/test-mbsncasecmp.sh: New file.
42024         * tests/test-mbsncasecmp.c: New file.
42025
42026         New module mbsncasecmp.
42027         * modules/mbsncasecmp: New file.
42028         * lib/mbsncasecmp.c: New file.
42029         * lib/string_.h (mbsncasecmp): New declaration.
42030         * m4/mbsncasecmp.m4: New file.
42031         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
42032         GNULIB_MBSNCASECMP.
42033         * modules/string (string.h): Also substitute GNULIB_MBSNCASECMP.
42034         * MODULES.html.sh (Internationalization functions): Add mbsncasecmp.
42035
42036 2007-02-14  Paul Eggert  <eggert@cs.ucla.edu>
42037
42038         * lib/exclude.c (FNM_EXTMATCH): Define if system does not.
42039         Verify that it doesn't overlap with our flags.
42040         (fnmatch_no_wildcards): Don't use strcasecmp or strncasecmp, which
42041         do not have the desired effect in multibyte locales; instead, use
42042         mbscasecmp.
42043         * modules/exclude (Depends-on): Depend on mbscasecmp, not strcase.
42044         Add dependency on xalloc.  Depend on fnmatch, not fnmatch-gnu, since
42045         we don't require GNU fnmatch ourselves (if our users require it, they
42046         should do so explicitly).
42047
42048         Fix regex code so it doesn't rely on strcasecmp.
42049         * lib/regex_internal.h: Include <langinfo.h> only if _LIBC is defined.
42050         Otherwise, include gnulib's langinfo.h.
42051         * lib/regcomp.c (init_dfa): Don't use strcasecmp, as it can have
42052         undesirable behavior in non-C locales.  Instead, rely on localecharset.
42053         * m4/regex.m4 (gl_PREREQ_REGEX): Don't require AM_LANGINFO_CODESET.
42054         * modules/regex (FILES): Remove m4/codeset.m4.
42055         (Depends-on): Add localcharset.  Remove strcase.
42056
42057 2007-02-13  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
42058
42059         * m4/unlinkdir.m4 (gl_UNLINKDIR): Fix m4 quoting bug.
42060         * m4/unlink-busy.m4 (gl_FUNC_UNLINK_BUSY_TEXT): Likewise.
42061
42062 2007-02-13  Bruno Haible  <bruno@clisp.org>
42063
42064         * m4/intdiv0.m4 (gt_INTDIV0): Assume ANSI C. Fix underquoting bug.
42065         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
42066
42067 2007-02-12  Bruno Haible  <bruno@clisp.org>
42068
42069         * lib/string_.h (memmem, mempcpy, memrchr, stpcpy, stpncpy, strchrnul,
42070         strdup, strndup, strnlen, strpbrk, strsep, strtok_r): If
42071         GNULIB_POSIXCHECK and the gnulib module not enabled, provoke a link-
42072         time warning rather than a link error.
42073
42074 2007-02-12  Bruno Haible  <bruno@clisp.org>
42075
42076         * m4/locale-fr.m4 (gt_LOCALE_FR): Fix m4 quoting bug.
42077         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): Likewise.
42078         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
42079
42080 2007-02-12  Paul Eggert  <eggert@cs.ucla.edu>
42081
42082         * lib/string_.h (strncasecmp): Fix typo: this macro takes 3
42083         args, not 2.
42084
42085 2007-02-12  Paul Eggert  <eggert@cs.ucla.edu>
42086
42087         New module 'time', so that apps can include <time.h> as per
42088         POSIX and GNU instead of separate include files like time_r.h
42089         and timegm.h.  This implementation tries out a simpler approach
42090         for replacing decls in standard include files (as compared to
42091         the string module), somewhat as an experiment.
42092
42093         * config/srclist.txt: Comment out mktime.c for now.
42094         * doc/gnulib-tool.texi (Initial import): Don't use time_r as an example
42095         since it doesn't apply any more.  Use generic wording instead.
42096         * MODULES.html.sh (Support for systems lacking POSIX:2001): New module
42097         'time'.
42098         * lib/time_.h, m4/time_h.m4, modules/time: New files.
42099         * lib/strptime.h, lib/time_r.h, lib/timegm.h: Remove.
42100         * lib/mktime.c: Include config.h depending on _LIBC, not HAVE_CONFIG_H.
42101         Don't include <sys/types.h>; no longer needed since we assume C89.
42102         * lib/mktime.c: Don't include "time_r.h"; no longer needed.
42103         * lib/strftime.c: Likewise.
42104         * lib/time_r.c: Likewise.
42105         * lib/nanosleep.c (nanosleep): #undef after include files, not before.
42106         * lib/nanosleep.c: Include <time.h> first, to check interface.
42107         * lib/strptime.c: Likewise.
42108         * lib/time_r.c: Likewise.
42109         * lib/timegm.c: Likewise.
42110         * lib/strptime.c: Don't include strptime.h or time_r.h; no longer
42111         needed.
42112         * lib/timegm.c: Don't include timegm.h; no longer needed.
42113         * lib/timespec.h: Don't include <sys/time.h> before <time.h>;
42114         time.h now handles any problems in that area.
42115         (struct timespec, nanosleep): Remove; time.h now arranges for these.
42116         * lib/xnanosleep.c: Don't include timespec.h; no longer needed now
42117         that time.h defines struct timespec.
42118         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Check that nanosleep is declared.
42119         Set REPLACE_NANOSLEEP.  Don't AC_DEFINE nanosleep; the time module now
42120         handles that.
42121         * m4/strptime.m4 (gl_FUNC_STPRTIME): Set REPLACE_STRPTIME.
42122         * m4/time_r.m4 (gl_TIME_R): Don't define HAVE_TIME_R_POSIX; no longer
42123         needed.  Set REPLACE_LOCALTIME.
42124         * m4/timegm.m4 (gl_FUNC_TIMEGM): Set REPLACE_TIMEGM.
42125         * m4/timespec.m4 (gl_CHECK_TYPE_STRUCT_TIMESPEC): Move to time_h.m4.
42126         (gl_TIMESPEC): Don't check for sys/time.h or struct timespec or
42127         nanosleep; time_h.m4 now does that.  Don't require
42128         gl_USE_SYSTEM_EXTENSIONS; no longer needed directly, and the time
42129         module handles this now.
42130         * modules/getdate (Depends-on): Remove timespec.  Add time.
42131         * modules/nanosleep (Depends-on): Likewise.
42132         * modules/stat-time (Depends-on): Likewise.
42133         * modules/nanosleep (Include): Include time.h, not timespec.h.
42134         * modules/strptime (Files): Remove lib/strptime.h.
42135         (Depends-on): Add extensions, time.
42136         (Include): Include time.h, not strptime.h.
42137         * modules/time_r (Files): Remove lib/time_r.h.
42138         (Depends-on): Add time.
42139         (Include): Include time.h, not time_r.h.
42140         * modules/timegm: Likewise.
42141         * modules/timespec (Description): Now does timespec-related decls
42142         of our own, instead of struct timespec itself.
42143         (Depends-on): Add time; remove extensions.
42144         (Maintainer): Add self.
42145         * modules/utimecmp (Depends-on): Add time; remove timespec.
42146         * modules/utimens (Depends-on): Likewise.
42147         * modules/xnanosleep (Depends-on): Likewise.
42148
42149 2007-02-11  Bruno Haible  <bruno@clisp.org>
42150
42151         * lib/c-strstr.c: Include allocsa.h.
42152         (knuth_morris_pratt): Use allocsa/freesa instead of malloc/free.
42153         * lib/c-strcasestr.c: Include allocsa.h.
42154         (knuth_morris_pratt): Use allocsa/freesa instead of malloc/free.
42155         * lib/strcasestr.c: Include allocsa.h.
42156         (knuth_morris_pratt): Use allocsa/freesa instead of malloc/free.
42157         * lib/mbsstr.c: Include allocsa.h.
42158         (knuth_morris_pratt_unibyte, knuth_morris_pratt_multibyte): Use
42159         allocsa/freesa instead of malloc/free.
42160         * lib/mbscasestr.c: Include allocsa.h.
42161         (knuth_morris_pratt_unibyte, knuth_morris_pratt_multibyte): Use
42162         allocsa/freesa instead of malloc/free.
42163         * modules/c-strstr (Depends-on): Add allocsa.
42164         * modules/c-strcasestr (Depends-on): Likewise.
42165         * modules/strcasestr (Depends-on): Likewise.
42166         * modules/mbsstr (Depends-on): Likewise.
42167         * modules/mbscasestr (Depends-on): Likewise.
42168
42169 2007-02-11  Bruno Haible  <bruno@clisp.org>
42170
42171         * lib/mbsspn.c (mbsspn): Fix bug. Remove unnecessary strlen call.
42172
42173         * modules/mbsspn-tests: New file.
42174         * tests/test-mbsspn.sh: New file.
42175         * tests/test-mbsspn.c: New file.
42176
42177 2007-02-11  Bruno Haible  <bruno@clisp.org>
42178
42179         * lib/mbspbrk.c (mbspbrk): Remove unneeded cast.
42180
42181         * modules/mbspbrk-tests: New file.
42182         * tests/test-mbspbrk.sh: New file.
42183         * tests/test-mbspbrk.c: New file.
42184
42185 2007-02-11  Bruno Haible  <bruno@clisp.org>
42186
42187         * lib/mbscspn.c (mbscspn): Remove unnecessary strlen call and
42188         unneeded cast.
42189
42190         * modules/mbscspn-tests: New file.
42191         * tests/test-mbscspn.sh: New file.
42192         * tests/test-mbscspn.c: New file.
42193
42194 2007-02-11  Bruno Haible  <bruno@clisp.org>
42195
42196         * modules/mbscasecmp-tests: New file.
42197         * tests/test-mbscasecmp.sh: New file.
42198         * tests/test-mbscasecmp.c: New file.
42199
42200 2007-02-11  Bruno Haible  <bruno@clisp.org>
42201
42202         Ensure O(n) worst-case complexity of mbscasestr.
42203         * lib/mbscasestr.c: Include stdbool.h.
42204         (knuth_morris_pratt_unibyte, knuth_morris_pratt_multibyte): New
42205         functions.
42206         (mbscasestr): Add some bookkeeping. Invoke knuth_morris_pratt_* when
42207         the bookkeeping indicates that it's worth it.
42208         * modules/mbscasestr (Depends-on): Add stdbool, mbslen, strnlen.
42209
42210         * modules/mbscasestr-tests: New file.
42211         * tests/test-mbscasestr1.c: New file.
42212         * tests/test-mbscasestr2.sh: New file.
42213         * tests/test-mbscasestr2.c: New file.
42214         * tests/test-mbscasestr3.sh: New file.
42215         * tests/test-mbscasestr3.c: New file.
42216         * tests/test-mbscasestr4.sh: New file.
42217         * tests/test-mbscasestr4.c: New file.
42218         * m4/locale-tr.m4: New file.
42219
42220 2007-02-11  Bruno Haible  <bruno@clisp.org>
42221
42222         Ensure O(n) worst-case complexity of mbsstr.
42223         * lib/mbsstr.c: Include stdbool.h.
42224         (knuth_morris_pratt_unibyte, knuth_morris_pratt_multibyte): New
42225         functions.
42226         (mbsstr): Add some bookkeeping. Invoke knuth_morris_pratt_* when the
42227         bookkeeping indicates that it's worth it.
42228         * modules/mbsstr (Depends-on): Add stdbool, mbslen, strnlen.
42229
42230         * modules/mbsstr-tests: New file.
42231         * tests/test-mbsstr1.c: New file.
42232         * tests/test-mbsstr2.sh: New file.
42233         * tests/test-mbsstr2.c: New file.
42234         * tests/test-mbsstr3.sh: New file.
42235         * tests/test-mbsstr3.c: New file.
42236         * m4/locale-fr.m4: New file.
42237
42238 2007-02-11  Bruno Haible  <bruno@clisp.org>
42239
42240         * lib/mbsrchr.c (mbsrchr): Fix bug.
42241
42242         * modules/mbsrchr-tests: New file.
42243         * tests/test-mbsrchr.sh: New file.
42244         * tests/test-mbsrchr.c: New file.
42245
42246 2007-02-11  Bruno Haible  <bruno@clisp.org>
42247
42248         * lib/mbschr.c (mbschr): Fix bug.
42249
42250         * modules/mbschr-tests: New file.
42251         * tests/test-mbschr.sh: New file.
42252         * tests/test-mbschr.c: New file.
42253         * m4/locale-zh.m4: New file.
42254
42255 2007-02-11  Bruno Haible  <bruno@clisp.org>
42256
42257         Support for copying multibyte string iterators.
42258         * lib/mbiter.h: Include <string.h>.
42259         (mbiter_multi_copy): New function.
42260         (mbi_copy): New macro.
42261         * lib/mbuiter.h: Include <string.h>.
42262         (mbuiter_multi_copy): New function.
42263         (mbui_copy): New macro.
42264
42265 2007-02-11  Bruno Haible  <bruno@clisp.org>
42266
42267         New module mbslen.
42268         * modules/mbslen: New file.
42269         * lib/mbslen.c: New file.
42270         * lib/string_.h (mbslen): New declaration.
42271         * m4/mbslen.m4: New file.
42272         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
42273         GNULIB_MBSLEN.
42274         * modules/string (string.h): Also substitute GNULIB_MBSLEN.
42275         * MODULES.html.sh (Internationalization functions): Add mbslen.
42276
42277 2007-02-11  Bruno Haible  <bruno@clisp.org>
42278
42279         Ensure O(n) worst-case complexity of strcasestr substitute.
42280         * lib/strcasestr.c: Include stdbool.h.
42281         (knuth_morris_pratt): New function.
42282         (strcasestr): Add some bookkeeping. Invoke knuth_morris_pratt when the
42283         bookkeeping indicates that it's worth it.
42284         * modules/strcasestr (Depends-on): Add stdbool, strnlen.
42285
42286         * modules/strcasestr-tests: New file.
42287         * tests/test-strcasestr.c: New file.
42288
42289 2007-02-11  Bruno Haible  <bruno@clisp.org>
42290
42291         Ensure O(n) worst-case complexity of c_strcasestr.
42292         * lib/c-strcasestr.c: Include stdbool.h, string.h.
42293         (knuth_morris_pratt): New function.
42294         (c_strcasestr): Add some bookkeeping. Invoke knuth_morris_pratt when
42295         the bookkeeping indicates that it's worth it.
42296         * modules/c-strcasestr (Depends-on): Add stdbool, strnlen.
42297
42298         * modules/c-strcasestr-tests: New file.
42299         * tests/test-c-strcasestr.c: New file.
42300
42301 2007-02-11  Bruno Haible  <bruno@clisp.org>
42302
42303         Ensure O(n) worst-case complexity of c_strstr.
42304         * lib/c-strstr.c: Include stdbool.h, string.h.
42305         (knuth_morris_pratt): New function.
42306         (c_strstr): Add some bookkeeping. Invoke knuth_morris_pratt when the
42307         bookkeeping indicates that it's worth it.
42308         * modules/c-strstr (Depends-on): Add stdbool, strnlen.
42309
42310         * lib/c-strstr.c: Complete rewrite for maintainability.
42311
42312         * modules/c-strstr-tests: New file.
42313         * tests/test-c-strstr.c: New file.
42314
42315 2007-02-11  Bruno Haible  <bruno@clisp.org>
42316
42317         * m4/javacomp.m4 (gt_JAVACOMP): Work around a 'tr' bug in coreutils
42318         5.2.1 and earlier, whereby \055 was treated just like the range
42319         delimiter '-'.
42320         Reported by Joel E. Denny <jdenny@ces.clemson.edu>.
42321
42322 2007-02-08  Bruno Haible  <bruno@clisp.org>
42323
42324         * modules/regex (Depends-on): Add stdbool.
42325         Reported by Dalibor Topic <robilad@kaffe.org>.
42326
42327 2007-02-05  Paul Eggert  <eggert@cs.ucla.edu>
42328
42329         * m4/regex.m4 (gl_REGEX): Check for glibc bug #3957.
42330         Prefer returning from main to exiting from it.
42331         Remove unnecessary parens after sizeof.
42332
42333 2007-02-05  Bruno Haible  <bruno@clisp.org>
42334
42335         New module mbssep.
42336         * modules/mbssep: New file.
42337         * lib/mbssep.c: New file.
42338         * lib/string_.h (strsep): Add a conditional link warning.
42339         (mbssep): New declaration.
42340         * m4/mbssep.m4: New file.
42341         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
42342         GNULIB_MBSSEP.
42343         * modules/string (string.h): Also substitute GNULIB_MBSSEP.
42344         * MODULES.html.sh (Internationalization functions): Add mbssep.
42345
42346 2007-02-05  Bruno Haible  <bruno@clisp.org>
42347
42348         * lib/strsep.c (strsep): Fix actions in case of no delimiters.
42349         Optimize search in case of 1 delimiter.
42350
42351 2007-02-05  Paolo Bonzini  <bonzini@gnu.org>
42352
42353         * lib/acl.h: Include sys/types.h before sys/acl.h.
42354
42355 2007-02-05  Paolo Bonzini  <bonzini@gnu.org>
42356
42357         Merge upstream fix for glibc bugzilla #3957:
42358
42359         2007-02-05  Jakub Jelinek  <jakub@redhat.com>
42360
42361         * lib/regcomp.c (parse_bracket_exp): Set '\n' bit rather than '\0'
42362         bit for RE_HAT_LISTS_NOT_NEWLINE.
42363         (build_charclass_op): Remove bogus comment.
42364
42365 2007-02-05  Simon Josefsson  <simon@josefsson.org>
42366
42367         * lib/gc.h, lib/gc-libgcrypt.c: Support SHA-256/384/512.
42368
42369 2007-02-04  Paul Eggert  <eggert@cs.ucla.edu>
42370
42371         * lib/getsubopt.c [!_LIBC]: Include config.h and getsubopt.h.
42372         * lib/memmem.c [!defined _LIBC]: Include config.h.
42373
42374 2007-02-04  Bruno Haible  <bruno@clisp.org>
42375
42376         * lib/string_.h (GL_LINK_WARNING2): Put the word "warning:" into the
42377         warning message.
42378
42379 2007-02-04  Bruno Haible  <bruno@clisp.org>
42380
42381         New module mbstok_r.
42382         * modules/mbstok_r: New file.
42383         * lib/mbstok_r.c: New file.
42384         * lib/string_.h (strtok_r): Change argument names to match the
42385         comments. Add a conditional link warning.
42386         (mbstok_r): New declaration.
42387         * m4/mbstok_r.m4: New file.
42388         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
42389         GNULIB_MBSTOK_R.
42390         * modules/string (string.h): Also substitute GNULIB_MBSTOK_R.
42391         * MODULES.html.sh (Internationalization functions): Add mbstok_r.
42392
42393 2007-02-04  Bruno Haible  <bruno@clisp.org>
42394
42395         New module mbsspn.
42396         * modules/mbsspn: New file.
42397         * lib/mbsspn.c: New file.
42398         * lib/string_.h (strspn): Add a conditional link warning.
42399         (mbsspn): New declaration.
42400         * m4/mbsspn.m4: New file.
42401         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
42402         GNULIB_MBSSPN.
42403         * modules/string (string.h): Also substitute GNULIB_MBSSPN.
42404         * MODULES.html.sh (Internationalization functions): Add mbsspn.
42405
42406 2007-02-04  Bruno Haible  <bruno@clisp.org>
42407
42408         New module mbspbrk.
42409         * modules/mbspbrk: New file.
42410         * lib/mbspbrk.c: New file.
42411         * lib/string_.h (strpbrk): Add a conditional link warning.
42412         (mbspbrk): New declaration.
42413         * m4/mbspbrk.m4: New file.
42414         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
42415         GNULIB_MBSPBRK.
42416         * modules/string (string.h): Also substitute GNULIB_MBSPBRK.
42417         * MODULES.html.sh (Internationalization functions): Add mbspbrk.
42418
42419 2007-02-04  Bruno Haible  <bruno@clisp.org>
42420
42421         New module mbscspn.
42422         * modules/mbscspn: New file.
42423         * lib/mbscspn.c: New file.
42424         * lib/string_.h (strcspn): Add a conditional link warning.
42425         (mbscspn): New declaration.
42426         * m4/mbscspn.m4: New file.
42427         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
42428         GNULIB_MBSCSPN.
42429         * modules/string (string.h): Also substitute GNULIB_MBSCSPN.
42430         * MODULES.html.sh (Internationalization functions): Add mbscspn.
42431
42432 2007-02-04  Bruno Haible  <bruno@clisp.org>
42433
42434         New module mbscasestr, reduced goal of strcasestr.
42435         * modules/mbscasestr: New file.
42436         * lib/mbscasestr.c: New file, copied from lib/strcasestr.c.
42437         (mbscasestr): Renamed from strcasestr.
42438         * lib/strcasestr.c: Don't include mbuiter.h.
42439         (strcasestr): Remove support for multibyte locales.
42440         * lib/string_.h (strcasestr): Don`t rename. Declare only if missing.
42441         Change the conditional link warning.
42442         (mbscasestr): New declaration.
42443         * m4/mbscasestr.m4: New file.
42444         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Enable the replacement only if
42445         the system does not have strcasestr. Set HAVE_STRCASESTR instead of
42446         REPLACE_STRCASESTR.
42447         (gl_PREREQ_STRCASESTR): Don't require gl_FUNC_MBRTOWC.
42448         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
42449         HAVE_STRCASESTR instead of REPLACE_STRCASESTR.
42450         (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize GNULIB_MBSCASESTR.
42451         * modules/string (string.h): Also substitute GNULIB_MBSCASESTR.
42452         Substitute HAVE_STRCASESTR instead of REPLACE_STRCASESTR.
42453         * modules/strcasestr (Files): Remove m4/mbrtowc.m4.
42454         (Depends-on): Remove mbuiter.
42455         * MODULES.html.sh (Internationalization functions): Add mbscasestr.
42456
42457 2007-02-04  Bruno Haible  <bruno@clisp.org>
42458
42459         Simplify handling of strncasecmp.
42460         * lib/string_.h (strncasecmp): Remove test for GNULIB_STRCASE. Change
42461         the conditional link warning.
42462         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
42463         HAVE_STRCASECMP, not REPLACE_STRCASECMP.
42464         (gl_STRING_MODULE_INDICATOR_DEFAULTS): Don't initialize GNULIB_STRCASE.
42465         * modules/strcase (configure.ac): Don't invoke
42466         gl_STRING_MODULE_INDICATOR.
42467         * modules/string (string.h): Don't substitute GNULIB_STRCASE.
42468
42469 2007-02-04  Bruno Haible  <bruno@clisp.org>
42470
42471         New module mbscasecmp, reduced goal of strcasecmp.
42472         * modules/mbscasecmp: New file.
42473         * lib/mbscasecmp.c: New file, copied from lib/strcasecmp.c.
42474         (mbscasecmp): Renamed from strcasecmp.
42475         * lib/strcasecmp.c: Don't include mbuiter.h.
42476         (strcasecmp): Remove support for multibyte locales.
42477         * lib/string_.h (strcasecmp): Don`t rename. Declare only if missing.
42478         Change the conditional link warning.
42479         (mbscasecmp): New declaration.
42480         * m4/mbscasecmp.m4: New file.
42481         * m4/strcase.m4 (gl_FUNC_STRCASECMP): Enable the replacement only if
42482         the system lacks strcasecmp. Set HAVE_STRCASECMP instead of
42483         REPLACE_STRCASECMP.
42484         (gl_PREREQ_STRCASECMP): Don't require gl_FUNC_MBRTOWC.
42485         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
42486         GNULIB_MBSCASECMP.
42487         * modules/string (string.h): Also substitute GNULIB_MBSCASECMP.
42488         Substitute HAVE_STRCASECMP instead of REPLACE_STRCASECMP.
42489         * modules/strcase (Files): Remove m4/mbrtowc.m4.
42490         (Depends-on): Remove mbuiter.
42491         * MODULES.html.sh (Internationalization functions): Add mbscasecmp.
42492
42493 2007-02-04  Bruno Haible  <bruno@clisp.org>
42494
42495         New module mbsstr. Remove module strstr.
42496         * modules/mbsstr: New file.
42497         * modules/strstr: Remove file.
42498         * lib/mbsstr.c: Renamed from lib/strstr.c.
42499         (mbsstr): Renamed from strstr.
42500         * lib/string_.h (strstr): Remove declaration. Change the conditional
42501         link warning.
42502         (mbsstr): New declaration.
42503         * m4/mbsstr.m4: New file.
42504         * m4/strstr.m4: Remove file.
42505         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Don't initialize
42506         REPLACE_STRSTR.
42507         (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize GNULIB_MBSSTR.
42508         Don't initialize GNULIB_STRSTR.
42509         * modules/string (string.h): Also substitute GNULIB_MBSSTR. Don't
42510         substitute GNULIB_STRSTR and REPLACE_STRSTR.
42511         * MODULES.html.sh (Internationalization functions): Add mbsstr.
42512         (Support for systems lacking ANSI C 89): Remove strstr.
42513
42514 2007-02-04  Bruno Haible  <bruno@clisp.org>
42515
42516         New module mbsrchr.
42517         * modules/mbsrchr: New file.
42518         * lib/mbsrchr.c: New file.
42519         * lib/string_.h (strrchr): Add a conditional link warning.
42520         (mbsrchr): New declaration.
42521         * m4/mbsrchr.m4: New file.
42522         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
42523         GNULIB_MBSRCHR.
42524         * modules/string (string.h): Also substitute GNULIB_MBSRCHR.
42525         * MODULES.html.sh (Internationalization functions): Add mbsrchr.
42526
42527 2007-02-04  Bruno Haible  <bruno@clisp.org>
42528
42529         New module mbschr.
42530         * modules/mbschr: New file.
42531         * lib/mbschr.c: New file.
42532         * lib/string_.h (strchr): Add a conditional link warning.
42533         (mbschr): New declaration.
42534         * m4/mbschr.m4: New file.
42535         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
42536         GNULIB_MBSCHR.
42537         * modules/string (string.h): Also substitute GNULIB_MBSCHR.
42538         * MODULES.html.sh (Internationalization functions): Add mbschr.
42539
42540 2007-02-04  Paul Eggert  <eggert@cs.ucla.edu>
42541
42542         * lib/stdbool_.h: Mention that bool bit-fields aren't supported.
42543
42544         * modules/stdarg (configure.ac-early): Require AC_PROG_CC_STDC.
42545
42546 2007-02-04  Bruno Haible  <bruno@clisp.org>
42547
42548         New module description section 'configure.ac-early'.
42549         * gnulib-tool (sed_extract_prog): Recognize configure.ac-early.
42550         (func_get_autoconf_early_snippet): New function.
42551         (func_import, func_create_testdir): Use it. Remove special cases for
42552         modules 'extensions' and 'lock'.
42553         * modules/extensions (configure.ac-early): Require
42554         gl_USE_SYSTEM_EXTENSIONS.
42555         * modules/lock (configure.ac-early): Require gl_LOCK_EARLY.
42556
42557 2007-02-04  Bruno Haible  <bruno@clisp.org>
42558
42559         Make use of gcj-4.3's -fsource and -ftarget option.
42560         * m4/javacomp.m4 (gt_JAVACOMP): Test whether gcj is in version >= 4.3,
42561         and if so try the options -fsource and -ftarget.
42562         * lib/javacomp.c (compile_using_gcj): Add fsource_option,
42563         source_version, ftarget_option, target_version arguments.
42564         (is_envjavac_gcj43, is_envjavac_gcj43_usable): New functions.
42565         (is_envjavac_oldgcj_14_14_usable): Renamed from
42566         is_envjavac_gcj_14_14_usable.
42567         (is_envjavac_oldgcj_14_13_usable): Renamed from
42568         is_envjavac_gcj_14_13_usable.
42569         (is_gcj_present): Update.
42570         (is_gcj_43, is_gcj43_usable): New functions.
42571         (is_oldgcj_14_14_usable): Renamed from is_gcj_14_14_usable. Update.
42572         (is_oldgcj_14_13_usable): Renamed from is_gcj_14_13_usable. Update.
42573         (compile_java_class): Test whether gcj is in version >= 4.3, and if so
42574         try the options -fsource and -ftarget.
42575
42576 2007-02-03  Paul Eggert  <eggert@cs.ucla.edu>
42577
42578         * lib/xalloc.h (x2nrealloc): Fix an unlikely bug in the overflow
42579         checking code.  Set N = ceil (1.5 * N) rather than to a slightly
42580         larger value.
42581
42582 2007-02-03  Jim Meyering  <jim@meyering.net>
42583
42584         Give tools a better chance to allocate space for very large buffers.
42585         * lib/xalloc.h (x2nrealloc): Use 3/2, not 2, as buffer size factor.
42586
42587         Make pwd and readlink work also when run with an unreadable parent dir
42588         on systems with openat support.
42589         * lib/getcwd.c (__getcwd) [HAVE_PARTLY_WORKING_GETCWD]: Use the system
42590         provided getcwd function, even when we have openat support.
42591         Reported by Dmitry V. Levin in <http://bugzilla.redhat.com/227168>.
42592
42593 2007-02-02  Bruno Haible  <bruno@clisp.org>
42594
42595         * lib/string_.h (memmem, mempcpy, memrchr, stpcpy, stpncpy, strchrnul,
42596         strdup, strndup, strnlen, strpbrk, strsep, strtok_r): Provoke a link
42597         error only if GNULIB_POSIXCHECK is defined. Needed to avoid artificial
42598         portability problems if one of these functions is only used on specific
42599         platforms.
42600         Reported by Paul Eggert.
42601
42602 2007-02-02  Paul Eggert  <eggert@cs.ucla.edu>
42603
42604         Avoid mempcpy in the regex code, as the string.h mempcpy stuff
42605         is causing more trouble than it's curing.
42606         * lib/regex_internal.h (__mempcpy): Remove.
42607         * lib/regcomp.c (regerror): Rewrite to avoid the need for mempcpy
42608         (and make the code a tad smaller to boot).
42609         * m4/regex.m4 (gl_PREREQ_REGEX): Don't check for mempcpy.
42610
42611 2007-02-02  Jim Meyering  <jim@meyering.net>
42612
42613         * modules/arpa_inet: Put AC_PROG_MKDIR_P in the configure.ac:
42614         section, not in the Makefile.am: one.
42615
42616 2007-02-02  Eric Blake  <ebb9@byu.net>
42617
42618         * lib/strchrnul.c: Always include config.h first.
42619
42620         * modules/mountlist (Depends-on): Revert 2007-01-31 change,
42621         gnulib strstr is not necessary here.
42622
42623 2007-02-02  Simon Josefsson  <simon@josefsson.org>
42624
42625         * m4/socklen.m4: Fix typo.
42626
42627 2007-02-02  Eric Blake  <ebb9@byu.net>
42628
42629         * modules/arpa_inet (Makefile.am): Use MKDIR_P to avoid races.
42630         * modules/netinet_in (Makefile.am): Likewise.
42631
42632 2007-02-01  Bruno Haible  <bruno@clisp.org>
42633
42634         * lib/string_.h (GL_LINK_WARNING): New macro.
42635         (strcasecmp, strstr, strcasestr): If provided by the system,
42636         conditionally define as a macro that leads to a warning instead of to
42637         an error.
42638         (strncasecmp): Conditionally define as a macro that leads to a warning.
42639
42640 2007-02-01  Karl Berry  <karl@gnu.org>
42641
42642         * config/srclist.txt (strtok_r.c): lose sync, no more strtok_r.h.
42643
42644 2007-02-01  Bruno Haible  <bruno@clisp.org>
42645
42646         * MODULES.html.sh (Unicode string functions): Update after 2007-01-27
42647         renamings.
42648
42649 2007-02-01  Eric Blake  <ebb9@byu.net>
42650
42651         * modules/regex (Depends-on): Revert dependence on mempcpy.
42652         * lib/regex_internal.h [! _LIBC && !__mempcpy]: Undo string
42653         module's definition of mempcpy.
42654         Reported by Paul Eggert.
42655
42656 2007-02-01  Paul Eggert  <eggert@cs.ucla.edu>
42657
42658         * lib/string_.h: If the gnulib module XYZ is not present, undefine
42659         the symbol XYZ before redefining it.  This fixes a problem with
42660         programs that don't use XYZ, when compiled on systems that define
42661         XYZ to something else.
42662
42663 2007-01-31  Paul Eggert  <eggert@cs.ucla.edu>
42664
42665         * lib/mkdir-p.c (make_dir_parents): Close a race condition that
42666         occurs when "mkdir -m foo" creates a setgid directory that is (1)
42667         writeable to group or other and (2) is intended to have a special
42668         mode bit that is set or cleared.  In such a case, the directory
42669         should be neither group- nor other-writeable until the special
42670         mode bits are right.
42671
42672 2007-01-31  Eric Blake  <ebb9@byu.net>
42673
42674         * modules/mountlist (Depends-on): Add strstr.
42675
42676         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR): Correct m4 usage
42677         bug.
42678         * modules/string (Makefile.am): Remove redundant replacement.
42679         * modules/regex (Depends-on): Add mempcpy.
42680
42681 2007-01-31  Bruno Haible  <bruno@clisp.org>
42682
42683         New module description field 'Link'.
42684         * gnulib-tool (func_usage): Document --extract-link-directive.
42685         (sed_extract_prog): Recognize 'Link' directive.
42686         (func_get_link_directive): New function.
42687         (func_import): Show summary of link directives.
42688         Handle --extract-link-directive option.
42689         * modules/acl (Link): New section.
42690         * modules/clock-time (Link): New section.
42691         * modules/euidaccess (Link): New section.
42692         * modules/gettext (Link): New section.
42693         * modules/iconv (Link): New section.
42694         * modules/lock (Link): New section.
42695         * modules/nanosleep (Link): New section.
42696         * modules/readline (Link): New section.
42697
42698 2007-01-27  Bruno Haible  <bruno@clisp.org>
42699
42700         Enforce the use of gnulib modules for unportable <string.h> functions.
42701         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR): New macro.
42702         (gl_STRING_MODULE_INDICATOR_DEFAULTS): New macro.
42703         (gl_HEADER_STRING_H_BODY): Require it.
42704         * lib/string_.h: If the gnulib module XYZ is not present, redefine
42705         the symbol XYZ to one that gives a link error.
42706         * modules/string (Makefile.am): Also substitute the GNULIB_* variables.
42707         * modules/memmem (configure.ac): Invoke gl_STRING_MODULE_INDICATOR.
42708         * modules/mempcpy (configure.ac): Likewise.
42709         * modules/memrchr (configure.ac): Likewise.
42710         * modules/stpcpy (configure.ac): Likewise.
42711         * modules/stpncpy (configure.ac): Likewise.
42712         * modules/strcase (configure.ac): Likewise.
42713         * modules/strcasestr (configure.ac): Likewise.
42714         * modules/strchrnul (configure.ac): Likewise.
42715         * modules/strdup (configure.ac): Likewise.
42716         * modules/strndup (configure.ac): Likewise.
42717         * modules/strnlen (configure.ac): Likewise.
42718         * modules/strpbrk (configure.ac): Likewise.
42719         * modules/strsep (configure.ac): Likewise.
42720         * modules/strstr (configure.ac): Likewise.
42721         * modules/strtok_r (configure.ac): Likewise.
42722
42723 2007-01-31  Jean-Louis Martineau  <martineau@zmanda.com>  (tiny change)
42724
42725         * lib/gai_strerror.c (values): Add EAI_OVERFLOW.
42726
42727 2007-01-30  Jim Meyering  <jim@meyering.net>
42728
42729         * lib/mpsort.c (mpsort): Remove spurious "return" in void function.
42730
42731 2007-01-29  Bruno Haible  <bruno@clisp.org>
42732
42733         * lib/allocsa.h: Use '#if HAVE_*' instead of '#ifdef HAVE_*'.
42734         * lib/execute.c: Likewise.
42735         * lib/pipe.c: Likewise.
42736         * lib/printf-args.h: Likewise.
42737         * lib/printf-args.c: Likewise.
42738         * lib/printf-parse.c: Likewise.
42739         * lib/vasnprintf.c: Likewise.
42740
42741 2007-01-29  Eric Blake  <ebb9@byu.net>
42742
42743         * lib/memrchr.c: Assume <string.h> unconditionally, to pull in
42744         declaration.
42745
42746 2007-01-29  Paul Eggert  <eggert@cs.ucla.edu>
42747
42748         * lib/strptime.h (strptime): Use 'restrict' for args where
42749         POSIX requires this.
42750         * lib/strptime.c (strptime): Likewise.
42751         Change license notice from LGPL to GPL, since gnulib-tool will
42752         change this as needed.
42753         Include <config.h> if _LIBC is not defined, not if HAVE_CONFIG_H is
42754         defined.
42755         Include "strptime.h" first, to check interface.
42756         Do not #undef _LIBC and _NL_CURRENT.
42757         Do not include <stdlib.h>; no longer needed.
42758         Include "time_r.h" and declare ptime_locale_status
42759         only if _LIBC is not defined.
42760         (__P): Remove unused macro.
42761         (match_string): Bring back glibc version, but use it only if _LIBC
42762         is defined.
42763         (__strptime_internal): Compile tm_gmtoff code if _LIBC is defined, too.
42764         Remove unnecessary assertion and abort() call.
42765         Use #ifdef _NL_CURRENT rather than #if 0, for benefit of glibc.
42766         * m4/strptime.m4: Fix serial number comment.
42767         (gl_FUNC_STRPTIME): Require AC_C_RESTRICT, gl_TM_GMTOFF.
42768         * modules/strptime (Files): Add m4/tm_gmtoff.m4.
42769         (Depends-on): Add time_r.
42770
42771 2007-01-29  Bruno Haible  <bruno@clisp.org>
42772
42773         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
42774         strptime.
42775         * modules/strptime (Depends-on): Add stdbool.
42776         * lib/strptime.h: Include <time.h> always. Add comments.
42777
42778 2007-01-29  Yoann Vandoorselaere  <yoann@prelude-ids.org>
42779
42780         * modules/strptime: New file.
42781         * lib/strptime.h: New file.
42782         * lib/strptime.c: New file.
42783         * m4/strptime.m4: New file.
42784
42785 2007-01-28  Paul Eggert  <eggert@cs.ucla.edu>
42786
42787         * MODULES.html.sh: New module mpsort.
42788         * lib/mpsort.c, lib/mpsort.h, m4/mpsort.m4, modules/mpsort: New files.
42789
42790         * lib/regex.h (_Restrict_): Renamed from __restrict, to avoid
42791         a circularity problem with HP-UX ia64 reported by Bob Proulx in
42792         <http://lists.gnu.org/archive/html/bug-gnulib/2007-01/msg00394.html>.
42793         All uses changed.
42794         (_Restrict_arr_): Renamed from __restrict_arr, for similar reasons.
42795         All uses changed.
42796         * lib/regcomp.c, lib/regexec.c: Change all uses from __restrict
42797         to _Restrict_.
42798         * lib/regexec.c (regexec): Declare pmatch with _Restrict_arr_, so that
42799         the parameter matches the prototype.
42800
42801 2007-01-28  Jim Meyering  <jim@meyering.net>
42802
42803         * modules/sys_time (Makefile.am) [MOSTLYCLEANFILES]: Do use
42804         sys/time.h here, reverting that part of the previous patch:
42805         <http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/8959>.
42806
42807 2007-01-28  Bruno Haible  <bruno@clisp.org>
42808
42809         * modules/sys_time (Makefile.am): Build sys/time.h only when it's the
42810         value of $(SYS_TIME_H).
42811         [MOSTLYCLEANFILES]: Now that sys/time.h is created only when needed,
42812         remove it conditionally, too. [added by Jim Meyering]
42813         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Set SYS_TIME_H.
42814         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY):
42815         (gl_FUNC_GETTIMEOFDAY_CLOBBER): Set SYS_TIME_H when setting
42816         GETTIMEOFDAY_REPLACEMENT to 1.
42817
42818 2007-01-28  Bruno Haible  <bruno@clisp.org>
42819
42820         * m4/unistd_h.m4 (gl_HEADER_UNISTD_DEFAULTS): New macro.
42821         (gl_HEADER_UNISTD): Require it. Don't set UNISTD_H to empty here.
42822         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Require gl_HEADER_UNISTD_DEFAULTS.
42823         Set UNISTD_H instead of UNISTD_H2.
42824         * modules/fchdir (BUILT_SOURCES): Drop $(UNISTD_H2).
42825
42826 2007-01-28  Bruno Haible  <bruno@clisp.org>
42827
42828         * modules/mbchar (Makefile.am): Add mbchar.c to lib_SOURCES.
42829         * m4/mbchar.m4 (gl_MBCHAR): Remove AC_LIBOBJ invocation.
42830
42831 2007-01-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
42832
42833         * gnulib-tool (func_emit_lib_Makefile_am, func_add_or_update)
42834         (func_create_testdir): Ensure C locale for `grep' and `tr'
42835         character ranges.
42836         (func_create_megatestdir): Avoid one `grep'.  Fix bug in
42837         ACLOCAL_AMFLAGS parsing state machine.
42838
42839 2007-01-27  Bruno Haible  <bruno@clisp.org>
42840
42841         * modules/unistr/base: Update.
42842
42843 2007-01-27  Bruno Haible  <bruno@clisp.org>
42844
42845         Rename u32-mbtouc -> u32-mbtouc-unsafe, u32-mbtouc-safe -> u32-mbtouc,
42846         u32_mbtouc -> u32_mbtouc_unsafe, u32_mbtouc_safe -> u32_mbtouc.
42847         * modules/unistr/u32-mbtouc-unsafe: Renamed from
42848         modules/unistr/u32-mbtouc.
42849         * lib/unistr/u32-mbtouc-unsafe.c: Renamed from lib/unistr/u32-mbtouc.c.
42850         * lib/unistr.h: Update.
42851         * lib/linebreak.c: Update.
42852         * modules/unistr/u32-mbtouc: Renamed from
42853         modules/unistr/u32-mbtouc-safe.
42854         * lib/unistr/u32-mbtouc.c: Renamed from lib/unistr/u32-mbtouc-safe.c.
42855         * lib/unistr.h: Update.
42856         * lib/unistr/u32-to-u8.c: Update.
42857         * lib/unistr/u32-to-u16.c: Update.
42858
42859 2007-01-27  Bruno Haible  <bruno@clisp.org>
42860
42861         Rename utf16-ucs4 -> utf16-ucs4-unsafe, utf16-ucs4-safe -> utf16-ucs4,
42862         u16_mbtouc -> u16_mbtouc_unsafe, u16_mbtouc_safe -> u16_mbtouc.
42863         * modules/utf16-ucs4-unsafe: Renamed from modules/utf16-ucs4.
42864         * lib/utf16-ucs4-unsafe.h: Renamed from lib/utf16-ucs4.h.
42865         * lib/unistr/utf16-ucs4-unsafe.c: Renamed from lib/unistr/utf16-ucs4.c.
42866         * modules/unistr/u16-mbtouc-unsafe: Renamed from
42867         modules/unistr/u16-mbtouc.
42868         * lib/unistr/u16-mbtouc-unsafe.c: Renamed from lib/unistr/u16-mbtouc.c.
42869         * lib/unistr.h: Update.
42870         * lib/linebreak.c: Update.
42871         * modules/linebreak: Update.
42872         * modules/utf16-ucs4: Renamed from modules/utf16-ucs4-safe.
42873         * lib/utf16-ucs4.h: Renamed from lib/utf16-ucs4-safe.h.
42874         * lib/unistr/utf16-ucs4.c: Renamed from lib/unistr/utf16-ucs4-safe.c.
42875         * modules/unistr/u16-mbtouc: Renamed from
42876         modules/unistr/u16-mbtouc-safe.
42877         * lib/unistr/u16-mbtouc.c: Renamed from lib/unistr/u16-mbtouc-safe.c.
42878         * lib/unistr.h: Update.
42879         * lib/unistr/u16-to-u8.c: Update.
42880         * modules/unistr/u16-to-u8: Update.
42881         * lib/unistr/u16-to-u32.c: Update.
42882         * modules/unistr/u16-to-u32: Update.
42883
42884 2007-01-27  Bruno Haible  <bruno@clisp.org>
42885
42886         Rename utf8-ucs4 -> utf8-ucs4-unsafe, utf8-ucs4-safe -> utf8-ucs4,
42887         u8_mbtouc -> u8_mbtouc_unsafe, u8_mbtouc_safe -> u8_mbtouc.
42888         * modules/utf8-ucs4-unsafe: Renamed from modules/utf8-ucs4.
42889         * lib/utf8-ucs4-unsafe.h: Renamed from lib/utf8-ucs4.h.
42890         * lib/unistr/utf8-ucs4-unsafe.c: Renamed from lib/unistr/utf8-ucs4.c.
42891         * modules/unistr/u8-mbtouc-unsafe: Renamed from
42892         modules/unistr/u8-mbtouc.
42893         * lib/unistr/u8-mbtouc-unsafe.c: Renamed from lib/unistr/u8-mbtouc.c.
42894         * lib/unistr.h: Update.
42895         * lib/striconveh.c: Update.
42896         * modules/striconveh: Update.
42897         * lib/linebreak.c: Update.
42898         * modules/linebreak: Update.
42899         * modules/utf8-ucs4: Renamed from modules/utf8-ucs4-safe.
42900         * lib/utf8-ucs4.h: Renamed from lib/utf8-ucs4-safe.h.
42901         * lib/unistr/utf8-ucs4.c: Renamed from lib/unistr/utf8-ucs4-safe.c.
42902         * modules/unistr/u8-mbtouc: Renamed from modules/unistr/u8-mbtouc-safe.
42903         * lib/unistr/u8-mbtouc.c: Renamed from lib/unistr/u8-mbtouc-safe.c.
42904         * lib/unistr.h: Update.
42905         * lib/striconveh.c: Update.
42906         * modules/striconveh: Update.
42907         * lib/unistr/u8-to-u16.c: Update.
42908         * modules/unistr/u8-to-u16: Update.
42909         * lib/unistr/u8-to-u32.c: Update.
42910         * modules/unistr/u8-to-u32: Update.
42911
42912 2007-01-27  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
42913
42914         Sync from Libtool.
42915         * lib/argz.c: Do not include strings.h nor memory.h, include
42916         string.h unconditionally.  Patch by Simon Josefsson.
42917
42918 2007-01-27  Bruno Haible  <bruno@clisp.org>
42919
42920         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): New macro, extracted
42921         from gl_HEADER_STRING_H_BODY.
42922         (gl_HEADER_STRING_H_BODY): Require it.
42923         * m4/memmem.m4 (gl_FUNC_MEMMEM): Require gl_HEADER_STRING_H_DEFAULTS.
42924         * m4/mempcpy.m4 (gl_FUNC_MEMPCPY): Likewise.
42925         * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Likewise.
42926         * m4/stpcpy.m4 (gl_FUNC_STPCPY): Likewise.
42927         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Likewise.
42928         * m4/strcase.m4 (gl_FUNC_STRCASECMP, gl_FUNC_STRNCASECMP): Likewise.
42929         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
42930         * m4/strchrnul.m4 (gl_FUNC_STRCHRNUL): Likewise.
42931         * m4/strdup.m4 (gl_FUNC_STRDUP): Likewise.
42932         * m4/strndup.m4 (gl_FUNC_STRNDUP): Likewise.
42933         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Likewise.
42934         * m4/strpbrk.m4 (gl_FUNC_STRPBRK): Likewise.
42935         * m4/strsep.m4 (gl_FUNC_STRSEP): Likewise.
42936         * m4/strstr.m4 (gl_FUNC_STRSTR): Likewise.
42937         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Likewise.
42938
42939 2007-01-27  Bruno Haible  <bruno@clisp.org>
42940
42941         * gnulib-tool (func_emit_lib_Makefile_am): If $for_test is true, turn
42942         check_PROGRAMS into noinst_PROGRAMS.
42943         (func_emit_tests_Makefile_am): Likewise. Also don't initialize
42944         check_PROGRAMS in this case.
42945         (func_import): Set for_test to false.
42946         (func_create_testdir): Set for_test to true.
42947
42948 2007-01-27  Yoann Vandoorselaere <yoann.v@prelude-ids.com>
42949             Bruno Haible  <bruno@clisp.org>
42950
42951         * modules/strcasestr (Files): Remove lib/strcasestr.h.
42952         (Depends-on): Add string.
42953         (Includes): Use <string.h> instead of strcasestr.h.
42954         * modules/string (Makefile.am): Also substitute the value of
42955         REPLACE_STRCASESTR.
42956         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Don't define strcasestr here;
42957         assume strcasestr is declared in <string.h> not <strings.h>. Also
42958         set REPLACE_STRCASESTR.
42959         * m4/string_h.m4 (gl_HEADER_STRING_H_BODY): Provide a default value for
42960         REPLACE_STRCASESTR.
42961         * lib/strcasestr.h: Remove file.
42962         * lib/strcasestr.c: Include <string.h> instead of strcasestr.h.
42963         * lib/string_.h (strcasestr): New declaration.
42964
42965 2007-01-27  Bruno Haible  <bruno@clisp.org>
42966
42967         * lib/string_.h: Use 'extern'.
42968
42969 2007-01-27  Jim Meyering  <jim@meyering.net>
42970
42971         * lib/regex_internal.c (re_string_reconstruct): Remove declaration
42972         of set-but-not-used local, "q".
42973
42974         * lib/mempcpy.c: Include <config.h> before <string.h>.
42975         This fixes a compilation error on HP-UX, due to the system's
42976         "restrict"-using mempcpy prototype.
42977
42978 2007-01-26  Bruno Haible  <bruno@clisp.org>
42979
42980         Small optimization.
42981         * lib/javacomp.c: Include c-strstr.h.
42982          (is_envjavac_gcj): Use c_strstr instead of strstr.
42983         * modules/javacomp (Depends-on): Add c-strstr, remove strstr.
42984
42985 2007-01-26  Bruno Haible  <bruno@clisp.org>
42986
42987         * MODULES.html.sh (Unicode string functions): Add the new modules.
42988
42989         * modules/uniconv/u32-strconv-to-locale: New file.
42990         * lib/uniconv/u32-strconv-to-locale.c: New file.
42991
42992         * modules/uniconv/u16-strconv-to-locale: New file.
42993         * lib/uniconv/u16-strconv-to-locale.c: New file.
42994
42995         * modules/uniconv/u8-strconv-to-locale: New file.
42996         * lib/uniconv/u8-strconv-to-locale.c: New file.
42997
42998         * modules/uniconv/u32-strconv-from-locale: New file.
42999         * lib/uniconv/u32-strconv-from-locale.c: New file.
43000
43001         * modules/uniconv/u16-strconv-from-locale: New file.
43002         * lib/uniconv/u16-strconv-from-locale.c: New file.
43003
43004         * modules/uniconv/u8-strconv-from-locale: New file.
43005         * lib/uniconv/u8-strconv-from-locale.c: New file.
43006
43007         * modules/uniconv/u32-strconv-to-enc: New file.
43008         * lib/uniconv/u32-strconv-to-enc.c: New file.
43009         * modules/uniconv/u32-strconv-to-enc-tests: New file.
43010         * tests/uniconv/test-u32-strconv-to-enc.c: New file.
43011
43012         * modules/uniconv/u16-strconv-to-enc: New file.
43013         * lib/uniconv/u16-strconv-to-enc.c: New file.
43014         * lib/uniconv/u-strconv-to-enc.h: New file.
43015         * modules/uniconv/u16-strconv-to-enc-tests: New file.
43016         * tests/uniconv/test-u16-strconv-to-enc.c: New file.
43017
43018         * modules/uniconv/u8-strconv-to-enc: New file.
43019         * lib/uniconv/u8-strconv-to-enc.c: New file.
43020         * modules/uniconv/u8-strconv-to-enc-tests: New file.
43021         * tests/uniconv/test-u8-strconv-to-enc.c: New file.
43022
43023         * modules/uniconv/u32-strconv-from-enc: New file.
43024         * lib/uniconv/u32-strconv-from-enc.c: New file.
43025         * modules/uniconv/u32-strconv-from-enc-tests: New file.
43026         * tests/uniconv/test-u32-strconv-from-enc.c: New file.
43027
43028         * modules/uniconv/u16-strconv-from-enc: New file.
43029         * lib/uniconv/u16-strconv-from-enc.c: New file.
43030         * modules/uniconv/u16-strconv-from-enc-tests: New file.
43031         * tests/uniconv/test-u16-strconv-from-enc.c: New file.
43032
43033         * modules/uniconv/u8-strconv-from-enc: New file.
43034         * lib/uniconv/u8-strconv-from-enc.c: New file.
43035         * lib/uniconv/u-strconv-from-enc.h: New file.
43036         * modules/uniconv/u8-strconv-from-enc-tests: New file.
43037         * tests/uniconv/test-u8-strconv-from-enc.c: New file.
43038
43039         * modules/uniconv/u32-conv-from-enc: New file.
43040         * lib/uniconv/u32-conv-from-enc.c: New file.
43041         * modules/uniconv/u32-conv-from-enc-tests: New file.
43042         * tests/uniconv/test-u32-conv-from-enc.c: New file.
43043
43044         * modules/uniconv/u16-conv-from-enc: New file.
43045         * lib/uniconv/u16-conv-from-enc.c: New file.
43046         * lib/uniconv/u-conv-from-enc.h: New file.
43047         * modules/uniconv/u16-conv-from-enc-tests: New file.
43048         * tests/uniconv/test-u16-conv-from-enc.c: New file.
43049
43050         * modules/uniconv/u8-conv-from-enc: New file.
43051         * lib/uniconv/u8-conv-from-enc.c: New file.
43052         * modules/uniconv/u8-conv-from-enc-tests: New file.
43053         * tests/uniconv/test-u8-conv-from-enc.c: New file.
43054
43055         * modules/uniconv/base: New file.
43056         * lib/uniconv.h: New file.
43057
43058 2007-01-26  Paul Eggert  <eggert@cs.ucla.edu>
43059
43060         * doc/gnulib-tool.texi (Initial import): Update to match current
43061         behavior with strdup module.
43062         * lib/.cppi-disable: Remove strcase.h, strdup.h, strndup.h, strnlen.h.
43063         * lib/memmem.h: Remove; all uses removed.  This is now done
43064         by <string.h>.
43065         * lib/mempcpy.h: Likewise.
43066         * lib/memrchr.h: Likewise.
43067         * lib/stpcpy.h: Likewise.
43068         * lib/stpncpy.h: Likewise.
43069         * lib/strcase.h: Likewise.
43070         * lib/strchrnul.h: Likewise.
43071         * lib/strdup.h: Likewise.
43072         * lib/strndup.h: Likewise.
43073         * lib/strnlen.h: Likewise.
43074         * lib/strpbrk.h: Likewise.
43075         * lib/strsep.h: Likewise.
43076         * lib/strstr.h: Likewise.
43077         * lib/strtok_r.h: Likewise.
43078         * lib/string_.h: New file.
43079         * lib/argp-namefrob.h: Don't include no-longer-existent include files.
43080         Rely on <string.h> instead.
43081         * lib/canon-host.c: Likewise.
43082         * lib/chdir-long.c: Likewise.
43083         * lib/concatpath.c: Likewise.
43084         * lib/exclude.c: Likewise.
43085         * lib/fchdir.c: Likewise.
43086         * lib/getaddrinfo.c: Likewise.
43087         * lib/getcwd.c: Likewise.
43088         * lib/getsubopt.c: Likewise.
43089         * lib/glob.c: Likewise.
43090         * lib/hard-locale.c: Likewise.
43091         * lib/iconvme.c: Likewise.
43092         * lib/javacomp.c: Likewise.
43093         * lib/mempcpy.c: Likewise.
43094         * lib/memrchr.c: Likewise.
43095         * lib/regex_internal.h: Likewise.
43096         * lib/stpncpy.c: Likewise.
43097         * lib/strcasecmp.c: Likewise.
43098         * lib/strchrnul.c: Likewise.
43099         * lib/strdup.c: Likewise.
43100         * lib/striconv.c: Likewise.
43101         * lib/striconveh.c: Likewise.
43102         * lib/striconveha.c: Likewise.
43103         * lib/strncasecmp.c: Likewise.
43104         * lib/strndup.c: Likewise.
43105         * lib/strnlen.c: Likewise.
43106         * lib/strsep.c: Likewise.
43107         * lib/strstr.c: Likewise.
43108         * lib/strtok_r.c: Likewise.
43109         * lib/userspec.c: Likewise.
43110         * lib/w32spawn.h: Likewise.
43111         * lib/xstrndup.c: Likewise.
43112         * lib/mountlist.c (strstr): Remove decl.
43113         * m4/string_h.m4: New file.
43114         * m4/memmem.m4 (gl_FUNC_MEMMEM): Set HAVE_DECL_MEMMEM if necessary.
43115         * m4/mempcpy.m4 (gl_FUNC_MEMPCPY): Set HAVE_MEMPCPY if necessary.
43116         * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Set HAVE_MEMRCHR
43117         * m4/stpcpy.m4 (gl_FUNC_STPCPY): Set HAVE_STPCPY if necessary.
43118         * m4/stpncpy.m4 (gl_PREREQ_STPNCPY): Set HAVE_STPNCPY if necessary.
43119         * m4/strcase.m4 (gl_FUNC_STRCASECMP):
43120         Set REPLACE_STRCASECMP if necessary.
43121         (gl_FUNC_STRNCASECMP): Set HAVE_DECL_STRNCASECMP if necessary.
43122         * m4/strchrnul.m4 (gl_FUNC_STRCHRNUL): Set HAVE_STRCHRNUL if necessary.
43123         * m4/strdup.m4 (gl_FUNC_STRDUP): Set HAVE_DECL_STRDUP if necessary.
43124         * m4/strndup.m4 (gl_FUNC_STRNDUP): Set HAVE_DECL_STRNLEN and
43125         HAVE_DECL_STRDUP if necessary.
43126         (gl_PREREQ_STRNLEN): Don't bother to check for strnlen decl,
43127         since gl_FUNC_STRNDUP does that now.
43128         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Set HAVE_DECL_STRNLEN if necessary.
43129         Check for decl here...
43130         (gl_PREREQ_STRNLEN): ... not here.
43131         * m4/strpbrk.m4 (gl_FUNC_STRPBRK): Set HAVE_STRPBRK if necessary.
43132         * m4/strsep.m4 (gl_FUNC_STRSEP): Set HAVE_STRSEP if necessary.
43133         * m4/strstr.m4 (gl_FUNC_STRSTR): Set REPLACE_STRSTR if necessary.
43134         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Set HAVE_DECL_STRTOK_R if
43135         necessary.
43136         * modules/string: New file.
43137         * modules/memmem (Files): Remove special-purpose include file.
43138         (Depends-on): Add string.
43139         (Include): Include <string.h>, not the removed file.
43140         * modules/mempcpy: Likewise.
43141         * modules/memrchr: Likewise.
43142         * modules/stpcpy: Likewise.
43143         * modules/stpncpy: Likewise.
43144         * modules/strcase: Likewise.
43145         * modules/strchrnul: Likewise.
43146         * modules/strdup: Likewise.
43147         * modules/strndup: Likewise.
43148         * modules/strnlen: Likewise.
43149         * modules/strpbrk: Likewise.
43150         * modules/strsep: Likewise.
43151         * modules/strstr: Likewise.
43152         * modules/strtok_r: Likewise.
43153         * tests/test-dirname.c: Don't include "strdup.h", since
43154         <string.h> now suffices.
43155         * tests/test-memmem.c: Don't include "memmem.h", since
43156         <string.h> now suffices.
43157
43158 2007-01-25  Bruno Haible  <bruno@clisp.org>
43159
43160         * lib/striconveh.c (mem_cd_iconveh_internal): Ignore *lengthp if
43161         *resultp is 0.
43162
43163         * lib/unistr/u16-to-u8.c (u16_to_u8): Fix u8_uctomb invocation.
43164         * lib/unistr/u32-to-u8.c (u32_to_u8): Likewise.
43165         * lib/unistr/u8-to-u16.c (u8_to_u16): Fix u16_uctomb invocation.
43166         * lib/unistr/u32-to-u16.c (u32_to_u16): Likewise.
43167
43168         * modules/unistr/u8-to-u16 (Depends-on): Add missing modules.
43169         * modules/unistr/u8-to-u32 (Depends-on): Add missing modules.
43170         * modules/unistr/u16-to-u8 (Depends-on): Add missing modules.
43171         * modules/unistr/u16-to-u32 (Depends-on): Add missing modules.
43172         * modules/unistr/u32-to-u8 (Depends-on): Add missing modules.
43173         * modules/unistr/u32-to-u16 (Depends-on): Add missing modules.
43174
43175 2007-01-24  Bruno Haible  <bruno@clisp.org>
43176
43177         Don't AC_REQUIRE autoconf macros that invoke AC_LIBOBJ. See
43178         <http://lists.gnu.org/archive/html/bug-gnulib/2006-10/msg00279.html>.
43179         * m4/argp.m4 (gl_ARGP): Invoke, don't require, gl_GETOPT_SUBSTITUTE.
43180         * m4/fts.m4 (gl_FUNC_FTS, gl_FUNC_FTS_LGPL): Invoke, don't require,
43181         gl_FUNC_FTS_CORE.
43182         (gl_FUNC_FTS_CORE): Invoke, don't require, gl_FUNC_OPENAT.
43183         * m4/lstat.m4 (gl_FUNC_LSTAT): Invoke, don't require,
43184         AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
43185         * m4/memcmp.m4 (gl_FUNC_MEMCMP): Invoke, don't require, AC_FUNC_MEMCMP.
43186         * m4/mktime.m4 (gl_FUNC_MKTIME): Invoke, don't require, AC_FUNC_MKTIME.
43187         * m4/openat.m4 (gl_FUNC_OPENAT): Invoke, don't require,
43188         gl_FUNC_FCHOWNAT.
43189         * m4/strftime.m4 (gl_FUNC_GNU_STRFTIME): Invoke, don't require,
43190         gl_FUNC_STRFTIME.
43191         * m4/strtod.m4 (gl_FUNC_STRTOD): Invoke, don't require, AC_FUNC_STRTOD.
43192         Reported by Ralf Wildenhues.
43193
43194 2007-01-24  Bruno Haible  <bruno@clisp.org>
43195
43196         Drop AC_REQUIRE calls that are redundant with the module dependencies.
43197         * m4/canon-host.m4 (gl_PREREQ_CANON_HOST): Don't require
43198         gl_GETADDRINFO.
43199         * m4/chdir-long.m4 (gl_PREREQ_CHDIR_LONG): Don't require AM_STDBOOL_H,
43200         gl_FUNC_MEMPCPY, gl_FUNC_OPENAT, gl_FUNC_MEMRCHR.
43201         * m4/openat.m4 (gl_PREREQ_OPENAT): Don't require gl_SAVE_CWD.
43202
43203 2007-01-24  Paul Eggert  <eggert@cs.ucla.edu>
43204
43205         * m4/fnmatch.m4 (_AC_FUNC_FNMATCH_IF): Add test for glibc bug 361.
43206         Don't use 'exit'; just return from 'main'.
43207         (_AC_LIBOBJ_FNMATCH): Check for headers and functions just once.
43208
43209         * lib/fnmatch_.h: Readjust white space and comments to match
43210         glibc, to avoid spurious diffs.
43211
43212 2007-01-23  Paul Eggert  <eggert@cs.ucla.edu>
43213
43214         * lib/fnmatch_loop.c (internal_fnmatch) [!_LIBC]: #if-out the
43215         2004-12-01 change by Jakub Jelinek, since this code won't compile
43216         if !LIBC.  Problem reported by Bob Proulx.
43217
43218 2007-01-23  Bruno Haible  <bruno@clisp.org>
43219
43220         * lib/striconveh.c: Include c-strcaseeq.h.
43221         (mem_iconveh, str_iconveh): Use STRCASEEQ instead of c_strcasecmp.
43222         * modules/striconveh (Depends-on): Add c-strcaseeq.
43223
43224 2007-01-23  Bruno Haible  <bruno@clisp.org>
43225
43226         * MODULES.html.sh (String handling): Add streq, c-strcaseeq.
43227
43228         * modules/c-strcaseeq: New file.
43229         * lib/c-strcaseeq.h: New file.
43230
43231         * modules/streq: New file.
43232         * lib/streq.h: New file.
43233
43234 2007-01-23  Bruno Haible  <bruno@clisp.org>
43235
43236         * modules/striconveha-tests: New file.
43237         * tests/test-striconveha.c: New file.
43238
43239         * lib/striconveha.h: Include <stdbool.h>.
43240         (mem_iconveha, str_iconveha): Add 'transliterate' argument.
43241         * lib/striconveha.c: Include allocsa.h, strdup.h, c-strcase.h.
43242         (mem_iconveha_notranslit): Renamed from mem_iconveha.
43243         (mem_iconveha): New function.
43244         (str_iconveha_notranslit): Renamed from str_iconveha.
43245         (str_iconveha): New function.
43246         * modules/striconveha (Depends-on): Add stdbool, allocsa, strdup,
43247         c-strcase.
43248
43249 2007-01-23  Bruno Haible  <bruno@clisp.org>
43250
43251         * lib/striconveha.c (mem_iconveha): Fix endless recursion. Try all
43252         encodings without forgiving before trying any encoding with handler.
43253         (str_iconveha): Try all encodings without forgiving before trying any
43254         encoding with handler.
43255
43256 2007-01-23  Paul Eggert  <eggert@cs.ucla.edu>
43257
43258         Import the following changes from libc.
43259
43260         2005-10-14  Ulrich Drepper  <drepper@redhat.com>
43261
43262         * lib/fnmatch_loop.c: Adjust for changed secondary hash function.
43263
43264         2004-12-01  Jakub Jelinek  <jakub@redhat.com>
43265
43266         * lib/fnmatch_loop.c (internal_fnmatch): Clear is_seqval after
43267         normal_bracket label.
43268
43269         2004-09-01  Jakub Jelinek  <jakub@redhat.com>
43270
43271         [BZ #361]
43272         * lib/fnmatch_loop.c (FCT): For backslash between brackets, branch
43273         to normal_bracket after fetching the next character.
43274
43275 2007-01-22  Bruno Haible  <bruno@clisp.org>
43276
43277         * lib/striconveh.h (mem_cd_iconveh, mem_iconveh): Add 'offsets'
43278         argument.
43279         * lib/striconveh.c (iconv_carefully_1): New function.
43280         (mem_cd_iconveh_internal, mem_cd_iconveh, mem_iconveh): Add 'offsets'
43281         argument.
43282         (str_cd_iconveh): Update.
43283         * lib/striconveha.h (mem_iconveha): Add 'offsets' argument.
43284         * lib/striconveha.c (mem_iconveha): Add 'offsets' argument.
43285         * tests/test-striconveh.c (MAGIC): New macro.
43286         (new_offsets): New function.
43287         (main): Test call with and without offsets.
43288
43289 2007-01-22  Bruno Haible  <bruno@clisp.org>
43290
43291         * modules/sys_stat (Makefile.am): Use @MKDIR_P@ instead of $(MKDIR_P).
43292         * modules/sys_select (Makefile.am): Likewise.
43293         * modules/sys_socket (Makefile.am): Likewise.
43294         * modules/sys_time (Makefile.am): Likewise.
43295
43296 2007-01-22  Paul Eggert  <eggert@cs.ucla.edu>
43297
43298         * modules/gettimeofday (License): Change from GPL to LGPL, since
43299         gettimeofday is a library function.
43300
43301 2007-01-22  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
43302
43303         * lib/poll.c (rpl_poll): Don't check against FD_SETSIZE under Win32.
43304
43305 2007-01-21  Bruno Haible  <bruno@clisp.org>
43306
43307         * m4/gnulib-common.m4 (AC_PROG_MKDIR_P): New macro.
43308
43309 2007-01-21  Bruno Haible  <bruno@clisp.org>
43310
43311         * modules/striconveha: New file.
43312         * lib/striconveha.h: New file.
43313         * lib/striconveha.c: New file.
43314         * MODULES.html.sh (Internationalization functions): Add striconveha.
43315         * lib/striconv.c (str_iconv): Optimize the case of an empty input
43316         string.
43317         * lib/striconveh.c (mem_iconveh, str_iconveh): Likewise.
43318
43319 2007-01-21  Bruno Haible  <bruno@clisp.org>
43320
43321         * lib/striconv.c (str_iconv): Guarantee errno is set when strdup fails.
43322         * lib/striconveh.c (str_iconveh): Likewise.
43323
43324 2007-01-21  Bruno Haible  <bruno@clisp.org>
43325
43326         * lib/striconveh.h (mem_iconveh): New declaration.
43327         * lib/striconveh.c (mem_iconveh): New function.
43328         * tests/test-striconveh.c (main): Add tests for mem_iconveh.
43329
43330 2007-01-21  Bruno Haible  <bruno@clisp.org>
43331
43332         * lib/xstriconv.h (xmem_cd_iconv): Change specification.
43333
43334         * lib/striconveh.h (mem_cd_iconveh): Change specification.
43335         * lib/striconveh.c (mem_cd_iconveh): Don't free the user-supplied
43336         original result buffer.
43337         (str_cd_iconveh): Update.
43338         * tests/test-striconveh.c (main): Update.
43339
43340         * lib/striconv.h (mem_cd_iconv): Change specification.
43341         * lib/striconv.c (mem_cd_iconv): Don't free the user-supplied original
43342         result buffer.
43343         (str_cd_iconv): Update.
43344         * tests/test-striconv.c (main): Update.
43345
43346 2007-01-21  Bruno Haible  <bruno@clisp.org>
43347
43348         * gnulib-tool: Fix test whether sed is GNU sed supporting --posix.
43349
43350 2007-01-20  Jim Meyering  <jim@meyering.net>
43351
43352         * lib/userspec.c (parse_with_separator): If a user or group string
43353         starts with "+", skip the corresponding name-to-ID look-up, since
43354         such a look-up must fail: user and group names may not include "+".
43355
43356 2007-01-19  Paul Eggert  <eggert@cs.ucla.edu>
43357
43358         * lib/poll.c: Include sys/time.h and time.h unconditionally,
43359         since we now assume the sys_time module.
43360         * m4/poll.m4 (gl_PREREQ_POLL): Don't require AC_HEADER_TIME or
43361         check for sys/time.h; no longer needed.
43362         * modules/poll (Depends-on): Depend on sys_time.
43363
43364 2007-01-18  Bruno Haible  <bruno@clisp.org>
43365
43366         * m4/mktime.m4 (AC_FUNC_MKTIME): Remove test for <sys/time.h>.
43367         * m4/strftime.m4 (gl_FUNC_STRFTIME): Likewise.
43368
43369         * m4/tempname.m4 (gl_PREREQ_TEMPNAME): Remove tests for sys/time.h and
43370         gettimeofday.
43371
43372         * tests/test-gettimeofday.c: Include <time.h>.
43373         (dummy): Remove variable.
43374
43375         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Renamed from
43376         gl_HEADER_SYS_TIME_H.
43377         (gl_HEADER_SYS_TIME_H): New macro.
43378
43379         * lib/sys_time_.h: Test GETTIMEOFDAY_REPLACEMENT instead of
43380         HAVE_GETTIMEOFDAY_POSIX_SIGNATURE and GETTIMEOFDAY_CLOBBERS_LOCALTIME.
43381         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY,
43382         gl_FUNC_GETTIMEOFDAY_CLOBBER): Set GETTIMEOFDAY_REPLACEMENT instead of
43383         HAVE_GETTIMEOFDAY_POSIX_SIGNATURE and GETTIMEOFDAY_CLOBBERS_LOCALTIME.
43384         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H): Initialize
43385         GETTIMEOFDAY_REPLACEMENT instead of HAVE_GETTIMEOFDAY_POSIX_SIGNATURE
43386         and GETTIMEOFDAY_CLOBBERS_LOCALTIME.
43387         * modules/sys_time (sys/time.h): Substitute GETTIMEOFDAY_REPLACEMENT
43388         instead of HAVE_GETTIMEOFDAY_POSIX_SIGNATURE and
43389         GETTIMEOFDAY_CLOBBERS_LOCALTIME.
43390
43391         * m4/gettimeofday.m4 (gl_GETTIMEOFDAY_REPLACE_LOCALTIME): Undo the
43392         last change; it caused a compilation error when cross-compiling to
43393         Cygwin.
43394
43395 2007-01-18  Jim Meyering  <jim@meyering.net>
43396
43397         Use "$(MKDIR_P) sys", not race-prone "test -d sys || mkdir sys".
43398         * modules/sys_stat (Makefile.am): Use "$(MKDIR_P) sys", rather
43399         than the race-prone "test -d sys || mkdir sys".
43400         (configure.ac): Use AC_PROG_MKDIR_P.
43401         * modules/sys_select: Likewise.
43402         * modules/sys_socket: Likewise.
43403         * modules/sys_time: Likewise.
43404
43405 2007-01-18  Eric Blake  <ebb9@byu.net>
43406
43407         * m4/gettimeofday.m4 (gl_GETTIMEOFDAY_REPLACE_LOCALTIME): Also
43408         replace gettimeofday.
43409         * lib/gettimeofday.c (rpl_gettimeofday): Declare with replacement
43410         name, to avoid infinite recursion.
43411
43412 2007-01-17  Paul Eggert  <eggert@cs.ucla.edu>
43413
43414         * MODULES.html.sh (Support for systems lacking POSIX:2001): New
43415         module sys_time.
43416         * lib/gethrxtime.c: Include <sys/time.h>, since we can no longer
43417         assume timespec.h defines struct timeval.
43418         * lib/settime.c: Likewise.
43419         * lib/utimens.c: Likewise.
43420         * lib/gettime.c (gettime): Remove test against HAVE_GETTIMEOFDAY,
43421         since we now assume the gettimeofday module.
43422         * lib/tempname.c (__gen_tempname): Likewise.
43423         * lib/gettimeofday.h: Remove.
43424         * lib/gettimeofday.c: Include <sys/time.h> instead of "gettimeofday.h".
43425         Don't include <sys/types.h> and <stdlib.h>; shouldn't be needed.
43426         Include <time.h>, for 'time()'.
43427         (localtime_buffer_addr): Also use this workaround if
43428         TZSET_CLOBBERS_LOCALTIME.  Set to a dummy static variable by default,
43429         to simplify the uses.  All uses changed.
43430         (localtime, gmtime, tzset, gettimeofday): Reformat slightly so
43431         that #undef is inside {}, and 'const' follows type name consistently.
43432         (tzset): Define replacement only if TZSET_CLOBBERS_LOCALTIME.
43433         (gettimeofday): Do not use the maximum possible value for
43434         tv->tv_usec, since that might break usages other than ls.c.
43435         Instead, we'll leave ls.c alone.  This undoes today's patch
43436         by Bruno.  Add a compile-time warning for 1s-clock resolution;
43437         we've never observed the problem but might as well keep the
43438         canary.
43439         * lib/nanosleep.c: Include timespec.h first, for interface check.
43440         * lib/nanosleep.c: Include <sys/time.h> unconditionally, since we
43441         now assume the sys_time module.
43442         * lib/tempname.c: Likewise.
43443         * lib/timespec.h: Likewise.
43444         * lib/nanosleep.c: Don't worry about TIME_WITH_SYS_TIME; no longer
43445         needed.
43446         * lib/strftime.c: Likewise.
43447         * lib/timespec.h: Likewise.
43448         * lib/posixtm.c: Include posixtm.h first, for interface check.
43449         Don't worry about TM_IN_SYS_TIME; that's wayyy obsolete.
43450         * lib/posixtm.h: Include stdbool.h and time.h, for proper interface.
43451         * lib/strftime.c: Don't include <sys/types.h>; shouldn't be needed.
43452         * lib/sys_time_.h: New file.
43453         * lib/timespec.h (struct timespec): Use long int, not long.
43454         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY):
43455         (gl_FUNC_GETTIMEOFDAY_CLOBBER, gl_PREREQ_GETTIMEOFDAY):
43456         Remove obsolescent call to AC_HEADER_TIME.
43457         * m4/mktime.m4 (AC_FUNC_MKTIME): Likewise.
43458         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
43459         * m4/strftime.m4 (gl_FUNC_STRFTIME): Likewise.
43460         * m4/timespec.m4 (gl_TIMESPEC, gl_CHECK_TYPE_STRUCT_TIMESPEC):
43461         Likewise.
43462         * m4/tzset.m4 (gl_FUNC_TZSET_CLOBBER): Likewise.
43463         * m4/utimbuf.m4 (gl_CHECK_TYPE_STRUCT_UTIMBUF): Likewise.
43464         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY): Move sys/time.h tests
43465         into the sys_time module.  Check for gettimeofday just once.
43466         Prefix our variables with gl_, not with ac_ or jm_.  Tighten test
43467         for gettimeofday signature to just check the signature.  Merely
43468         compile it, since linking doesn't test signature.  Improve test for
43469         whether gettimeofday.o is actually needed.
43470         (gl_FUNC_GETTIMEOFDAY_CLOBBER): Renamed from
43471         AC_FUNC_GETTIMEOFDAY_CLOBBER.  All uses changed.  Use
43472         AC_RUN_IFELSE rather than AC_TRY_RUN.  If clobbering, set
43473         and define GETTIMEOFDAY_CLOBBERS_LOCALTIME.
43474         (gl_GETTIMEOFDAY_REPLACE_LOCALTIME): Don't define
43475         GETTIMEOFDAY_CLOBBERS_LOCALTIME; that's gl_FUNC_GETTIMEOFDAY_CLOBBER's
43476         job.  Don't define tzset; that's gl_FUNC_TZSET_CLOBBER's job.
43477         * m4/mktime.m4 (AC_FUNC_MKTIME): Just include <time.h> rather
43478         than worrying about sys/time.h.
43479         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP):
43480         Don't bother worrying about TIME_WITH_SYS_TIME.
43481         * m4/stat-time.m4 (gl_STAT_TIME): Likewise.
43482         * m4/posixtm.m4 (gl_POSIXTM): Remove obsolescent call to AC_STRUCT_TM.
43483         * m4/sys_time_h.m4: New file.
43484         * m4/tzset.m4 (gl_FUNC_TZSET_CLOBBER): Require gl_HEADER_SYS_TIME_H.
43485         Don't include sys/time.h.  Return from main rather than exiting.
43486         Define TZSET_CLOBBERS_LOCALTIME, for consistency with other names;
43487         all uses changed.
43488         * modules/gethrxtime (Depends-on): Add sys_time.
43489         * modules/gettime (Depends-on): Likewise.
43490         * modules/gettimeofday (Depends-on): Likewise.
43491         * modules/nanosleep (Depends-on): Likewise.
43492         * modules/settime (Depends-on): Likewise.
43493         * modules/tempname (Depends-on): Likewise.
43494         * modules/utimens (Depends-on): Likewise.
43495         * modules/gettimeofday (Files): Remove lib/gettimeofday.h.
43496         (Include:) Change back to <sys/time.h>.
43497         (Maintainer:) Add self.
43498         * modules/sys_time: New file.
43499         * modules/tempname (Depends-on): Add gettimeofday.
43500         * tests/test-gettimeofday.c: Include <sys/time.h>
43501         rather than gettimeofday.h.
43502
43503 2007-01-17  Bruno Haible  <bruno@clisp.org>
43504
43505         * gnulib-tool (func_get_license): Revert last patch. Instead, let
43506         the license default to GPL.
43507         (func_create_testdir): Don't complain if a module is LGPL and its
43508         tests module depends on GPLed modules.
43509
43510 2007-01-17  Bruno Haible  <bruno@clisp.org>
43511
43512         * lib/gettimeofday.c (gettimeofday): Add code for the case
43513         HAVE_GETTIMEOFDAY && !GETTIMEOFDAY_CLOBBERS_LOCALTIME. Use the
43514         maximum possible value for tv->tv_usec, rather than the minimum one.
43515
43516 2005-10-08  Martin Lambers  <marlam@marlam.de>
43517 2005-10-08  Paul Eggert  <eggert@cs.ucla.edu>
43518 2007-01-16  Bruno Haible  <bruno@clisp.org>
43519
43520         * modules/gettimeofday (Files): Add lib/gettimeofday.h.
43521         (configure.ac): Remove AC_FUNC_GETTIMEOFDAY_CLOBBER. Add
43522         gl_FUNC_GETTIMEOFDAY.
43523         (Include): Add gettimeofday.h.
43524         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY): New macro.
43525         (AC_FUNC_GETTIMEOFDAY_CLOBBER): Don't invoke gl_PREREQ_GETTIMEOFDAY.
43526         (gl_GETTIMEOFDAY_REPLACE_LOCALTIME): Define
43527         GETTIMEOFDAY_CLOBBERS_LOCALTIME. Invoke gl_PREREQ_GETTIMEOFDAY here.
43528         (gl_PREREQ_GETTIMEOFDAY): Check for <sys/timeb.h> and _ftime.
43529         * lib/gettimeofday.h: New file.
43530         * lib/gettimeofday.c: Include <sys/timeb.h>.
43531         (localtime_buffer_addr, rpl_localtime, rpl_gmtime, rpl_tzset): Define
43532         only if GETTIMEOFDAY_CLOBBERS_LOCALTIME.
43533         (rpl_gettimeofday) [!HAVE_GETTIMEOFDAY]: Use _ftime() when available;
43534         fall back on time().
43535
43536         * tests/test-gettimeofday.c: New file.
43537         * modules/gettimeofday-tests: New file.
43538
43539 2007-01-16  Eric Blake  <ebb9@byu.net>
43540
43541         * modules/fnmatch (Depends-on): Depend on wchar.
43542         * lib/fnmatch.c (WIDE_CHAR_SUPPORT): Assume <wchar.h>.
43543         * m4/fnmatch.m4: Likewise.
43544         * modules/mbchar (Makefile.am): Assume <wchar.h>.
43545         * m4/mbchar.m4: Likewise.
43546         * modules/mbswidth (Depends-on): Depend on wchar.
43547         * lib/mbswidth.c: Assume <wchar.h>.
43548         * m4/mbswidth.m4: Likewise.
43549         * modules/quotearg (Depends-on): Depend on wchar.
43550         * lib/quotearg.c: Assume <wchar.h>.
43551         * m4/quotearg.m4: Likewise.
43552         * modules/regex (Depends-on): Depend on wchar.
43553         * lib/regex_internal.h: Assume <wchar.h>.
43554         * m4/regex.m4: Likewise.
43555         * modules/stdint (Depends-on): Depend on wchar.
43556         * lib/stdint_.h [!defined WCHAR_MIN]: Assume <wchar.h>.
43557         * m4/stdint.m4: Likewise.
43558         * tests/test-stdint.c [HAVE_WINT_T]: Likewise.
43559         * modules/strftime (Depends-on): Depend on wchar.
43560         * lib/strftime.c (DO_MULTIBYTE): Assume <wchar.h>.
43561         * modules/strtol (Depends-on): Depend on wchar.
43562         * lib/strtol.c: Assume <wchar.h>.
43563         * modules/wcwidth (Depends-on): Depend on wchar.
43564         * lib/wcwidth.h: Assume <wchar.h>.
43565         * m4/wcwidth.m4: Likewise.
43566
43567 2007-01-16  Bruno Haible  <bruno@clisp.org>
43568
43569         * modules/csharpexec-script: New, created from...
43570         * modules/csharpexec: ... this.
43571
43572 2007-01-16  Paolo Bonzini  <bonzini@gnu.org>
43573
43574         * modules/javaexec-script: New, created from...
43575         * modules/javaexec: ... this.
43576
43577 2007-01-16  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
43578
43579         * modules/poll (Dependencies): Add sys_select.
43580
43581 2007-01-15  Jim Meyering  <jim@meyering.net>
43582
43583         * m4/readutmp.m4 (gl_READUTMP): Work around AIX 4.3 struct-
43584         redefinition bug when using both <utmp.h> and <utmpx.h> headers.
43585         * lib/readutmp.h: Likewise.  Reported by Daniel Richard G. in
43586         <http://article.gmane.org/gmane.comp.gnu.core-utils.bugs/9415>.
43587
43588 2007-01-15  Bruno Haible  <bruno@clisp.org>
43589
43590         * modules/striconveh: New file.
43591         * lib/striconveh.h: New file.
43592         * lib/striconveh.c: New file.
43593         * MODULES.html.sh (Internationalization functions): Add striconveh.
43594
43595         * modules/striconveh-tests: New file.
43596         * tests/test-striconveh.c: New file.
43597
43598 2007-01-15  Bruno Haible  <bruno@clisp.org>
43599
43600         * lib/striconv.c (str_cd_iconv): Use the first algorithm if iconv is
43601         not from GNU libiconv or GNU libc.
43602
43603 2007-01-15  Bruno Haible  <bruno@clisp.org>
43604
43605         * doc/gnulib-intro.texi (Copyright): Explain the different license
43606         terms for module descriptions, autoconf macros, tests, documentation.
43607
43608 2007-01-14  Bruno Haible  <bruno@clisp.org>
43609
43610         * modules/striconv-tests: New file.
43611         * tests/test-striconv.c: New file.
43612
43613 2007-01-14  Bruno Haible  <bruno@clisp.org>
43614
43615         * modules/iconv-tests: New file.
43616         * tests/test-iconv.c: New file.
43617
43618 2007-01-14  Bruno Haible  <bruno@clisp.org>
43619
43620         * gnulib-tool (func_get_license): For test modules, use the license of
43621         the main module.
43622
43623 2007-01-14  Bruno Haible  <bruno@clisp.org>
43624
43625         * modules/iconv (Include): Clarify that <iconv.h> can only be included
43626         if iconv is found to exist.
43627
43628 2007-01-14  Bruno Haible  <bruno@clisp.org>
43629
43630         * modules/c-ctype-tests: New file.
43631         * tests/test-c-ctype.c: New file.
43632
43633 2007-01-14  Bruno Haible  <bruno@clisp.org>
43634
43635         * modules/binary-io-tests: New file.
43636         * tests/test-binary-io.sh: New file.
43637         * tests/test-binary-io.c: New file.
43638
43639 2007-01-14  Bruno Haible  <bruno@clisp.org>
43640
43641         * modules/array-oset-tests: New file.
43642         * tests/test-array_oset.c: New file.
43643
43644 2007-01-14  Bruno Haible  <bruno@clisp.org>
43645
43646         * modules/array-list-tests: New file.
43647         * tests/test-array_list.c: New file.
43648
43649 2007-01-14  Bruno Haible  <bruno@clisp.org>
43650
43651         * gnulib-tool (func_create_testdir): Don't unnecessarily run configure
43652         and make.
43653         Reported by Simon Josefsson in
43654         <http://lists.gnu.org/archive/html/bug-gnulib/2007-01/msg00139.html>
43655
43656 2007-01-14  Bruno Haible  <bruno@clisp.org>
43657
43658         * modules/allocsa-tests: New file.
43659         * tests/test-allocsa.c: New file.
43660
43661 2007-01-14  Bruno Haible  <bruno@clisp.org>
43662
43663         * modules/fchdir (Depends-on): Add absolute-header.
43664         * modules/unistd (Depends-on): Likewise.
43665
43666 2006-12-30  Bruno Haible  <bruno@clisp.org>
43667
43668         * modules/fchdir: New file.
43669         * modules/unistd (Files): Add lib/unistd_.h.
43670         (Makefile.am): Generate unistd.h from unistd_.h.
43671         * lib/fchdir.c: New file.
43672         * lib/dirent_.h: New file.
43673         * lib/unistd_.h: New file.
43674         * lib/fcntl_.h (open) [FCHDIR_REPLACEMENT]: New replacement.
43675         * m4/fchdir.m4: New file.
43676         * m4/unistd_h.m4 (gl_PREREQ_UNISTD): New macro.
43677         (gl_HEADER_UNISTD): Invoke it.
43678         * lib/dup-safer.c (dup_safer) [FCHDIR_REPLACEMENT]: Use the dup
43679         function.
43680         * lib/backupfile.c (opendir, closedir): Undefine.
43681         * lib/chown.c (open, close): Undefine.
43682         * lib/clean-temp.c (open, close): Undefine.
43683         * lib/copy-file.c (open, close): Undefine.
43684         * lib/execute.c (open, close): Undefine.
43685         * lib/fsusage.c (open, close): Undefine.
43686         * lib/gc-gnulib.c (open, close): Undefine.
43687         * lib/getcwd.c (opendir, closedir): Undefine.
43688         * lib/glob.c (opendir, closedir): Undefine.
43689         * lib/javacomp.c (open, close): Undefine.
43690         * lib/mountlist.c (open, close, opendir, closedir): Undefine.
43691         * lib/openat-proc.c (open, close): Undefine.
43692         * lib/pagealign_alloc.c (open, close): Undefine.
43693         * lib/pipe.c (open, close): Undefine.
43694         * lib/progreloc.c (open, close): Undefine.
43695         * lib/savedir.c (opendir, closedir): Undefine.
43696         * lib/utime.c (open, close): Undefine.
43697         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add fchdir.
43698
43699 2007-01-10  Bruno Haible  <bruno@clisp.org>
43700
43701         * lib/striconv.c (mem_cd_iconv): Align the temporary buffer.
43702
43703 2007-01-12  Eric Blake  <ebb9@byu.net>
43704
43705         Provide a robust <wchar.h>.  Further simplifications are now
43706         possible in other modules, but not included here.
43707         * modules/wchar: New module.
43708         * m4/wchar.m4: New file.
43709         * lib/wchar_.h: Likewise.
43710         * modules/mbchar (Depends-on): Depend on wchar, as the first use
43711         of the new module.
43712         * MODULES.html.sh (Extended multibyte and wide character utilities):
43713         New section.
43714
43715 2007-01-12  Paul Eggert  <eggert@cs.ucla.edu>
43716
43717         * lib/xreadlink.c (SYMLINK_MAX) [!defined SYMLINK_MAX]: Define
43718         to a reasonable default for memory allocation.
43719         (xreadlink): Don't allocate a huge buffer, to work around a buggy
43720         file system that reports garbage st_size values for symlinks.
43721         Problem reported by Liyang Hu.
43722
43723 2007-01-11  Simon Josefsson  <simon@josefsson.org>
43724
43725         * gnulib-tool (func_all_modules): Exclude all .* files (e.g.,
43726         Emacs .#* auto-save files).
43727
43728 2007-01-11  Bruno Haible  <bruno@clisp.org>
43729
43730         * gnulib-tool (func_all_modules): Exclude all files inside the CVS
43731         directory.
43732
43733 2007-01-10  Paul Eggert  <eggert@cs.ucla.edu>
43734
43735         Use @...@ consistently in lib/wctype_.h.
43736         * lib/wctype_.h [HAVE_WINT_T]: Go back to using @...@, but rely
43737         on it being set to 1 or 0.
43738         * m4/wctype.m4 (gl_WCTYPE_H): Set HAVE_WINT_T to 1 or 0, and
43739         go back to AC_SUBSTing it.
43740         * modules/wctype (Makefile.am): Undo previous change.
43741
43742 2007-01-10  Eric Blake  <ebb9@byu.net>
43743
43744         * lib/wctype_.h [HAVE_WINT_T]: Rely on AC_DEFINE.
43745         * m4/wctype.m4 (gl_WCTYPE_H): No need to AC_SUBST(HAVE_WINT_T).
43746         * modules/wctype (Makefile.am): Likewise.
43747         Reported by Chris McGuire.
43748
43749 2007-01-10  Jim Meyering  <jim@meyering.net>
43750
43751         fts.c: a small readability/maintainability improvement
43752         * lib/fts.c (fts_read): Make this code slightly more readable and
43753         maintainable by hoisting the "sp->fts_cur = p" assignments to
43754         immediately follow the statements that set P.  Derived from
43755         the patch by Miloslav Trmac in http://bugzilla.redhat.com/222089.
43756
43757 2007-01-10  Eric Blake  <ebb9@byu.net>
43758
43759         * lib/wctype_.h [HAVE_WINT_T]: Include <stddef.h> before
43760         <wchar.h>, to work around BSDI bug in BSD/OS 4.0.1.
43761         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Likewise.
43762         * m4/wint_t.m4 (gt_TYPE_WINT_T): Likewise.
43763         Reported by Chris McGuire.
43764
43765 2007-01-09  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
43766
43767         * gnulib-tool (func_all_modules): Use POSIX conforming escaping
43768         in sed script.
43769
43770 2007-01-09  Bruno Haible  <bruno@clisp.org>
43771
43772         * MODULES.html.sh: Accept options --cvs-urls, --git-urls.
43773         (repo_url_prefix, repo_url_suffix, repo_url_suffix_repl): New
43774         variables.
43775         (func_module): Use them.
43776
43777 2007-01-09  Bruno Haible  <bruno@clisp.org>
43778
43779         * modules/unistr/base: New file.
43780         * lib/unistr.h: New file.
43781
43782         * modules/unistr/u8-to-u16: New file.
43783         * lib/unistr/u8-to-u16.c: New file.
43784
43785         * modules/unistr/u8-to-u32: New file.
43786         * lib/unistr/u8-to-u32.c: New file.
43787
43788         * modules/unistr/u16-to-u8: New file.
43789         * lib/unistr/u16-to-u8.c: New file.
43790
43791         * modules/unistr/u16-to-u32: New file.
43792         * lib/unistr/u16-to-u32.c: New file.
43793
43794         * modules/unistr/u32-to-u8: New file.
43795         * lib/unistr/u32-to-u8.c: New file.
43796
43797         * modules/unistr/u32-to-u16: New file.
43798         * lib/unistr/u32-to-u16.c: New file.
43799
43800         * modules/unistr/u8-check: New file.
43801         * modules/unistr/u16-check: New file.
43802         * modules/unistr/u32-check: New file.
43803         * lib/unistr/u8-check.c: New file.
43804         * lib/unistr/u16-check.c: New file.
43805         * lib/unistr/u32-check.c: New file.
43806
43807         * modules/unistr/u8-chr: New file.
43808         * modules/unistr/u16-chr: New file.
43809         * modules/unistr/u32-chr: New file.
43810         * lib/unistr/u8-chr.c: New file.
43811         * lib/unistr/u16-chr.c: New file.
43812         * lib/unistr/u32-chr.c: New file.
43813
43814         * modules/unistr/u8-cmp: New file.
43815         * modules/unistr/u16-cmp: New file.
43816         * modules/unistr/u32-cmp: New file.
43817         * lib/unistr/u8-cmp.c: New file.
43818         * lib/unistr/u16-cmp.c: New file.
43819         * lib/unistr/u32-cmp.c: New file.
43820
43821         * modules/unistr/u8-cpy: New file.
43822         * modules/unistr/u16-cpy: New file.
43823         * modules/unistr/u32-cpy: New file.
43824         * lib/unistr/u8-cpy.c: New file.
43825         * lib/unistr/u16-cpy.c: New file.
43826         * lib/unistr/u32-cpy.c: New file.
43827         * lib/unistr/u-cpy.h: New file.
43828
43829         * modules/unistr/u8-cpy-alloc: New file.
43830         * modules/unistr/u16-cpy-alloc: New file.
43831         * modules/unistr/u32-cpy-alloc: New file.
43832         * lib/unistr/u8-cpy-alloc.c: New file.
43833         * lib/unistr/u16-cpy-alloc.c: New file.
43834         * lib/unistr/u32-cpy-alloc.c: New file.
43835         * lib/unistr/u-cpy-alloc.h: New file.
43836
43837         * modules/unistr/u8-endswith: New file.
43838         * modules/unistr/u16-endswith: New file.
43839         * modules/unistr/u32-endswith: New file.
43840         * lib/unistr/u8-endswith.c: New file.
43841         * lib/unistr/u16-endswith.c: New file.
43842         * lib/unistr/u32-endswith.c: New file.
43843         * lib/unistr/u-endswith.h: New file.
43844
43845         * modules/unistr/u8-mblen: New file.
43846         * modules/unistr/u16-mblen: New file.
43847         * modules/unistr/u32-mblen: New file.
43848         * lib/unistr/u8-mblen.c: New file.
43849         * lib/unistr/u16-mblen.c: New file.
43850         * lib/unistr/u32-mblen.c: New file.
43851
43852         * modules/unistr/u8-mbtouc: New file.
43853         * modules/unistr/u16-mbtouc: New file.
43854         * modules/unistr/u32-mbtouc: New file.
43855         * lib/unistr/u8-mbtouc.c: New file.
43856         * lib/unistr/u16-mbtouc.c: New file.
43857         * lib/unistr/u32-mbtouc.c: New file.
43858
43859         * modules/unistr/u8-mbtouc-safe: New file.
43860         * modules/unistr/u16-mbtouc-safe: New file.
43861         * modules/unistr/u32-mbtouc-safe: New file.
43862         * lib/unistr/u8-mbtouc-safe.c: New file.
43863         * lib/unistr/u16-mbtouc-safe.c: New file.
43864         * lib/unistr/u32-mbtouc-safe.c: New file.
43865
43866         * modules/unistr/u8-move: New file.
43867         * modules/unistr/u16-move: New file.
43868         * modules/unistr/u32-move: New file.
43869         * lib/unistr/u8-move.c: New file.
43870         * lib/unistr/u16-move.c: New file.
43871         * lib/unistr/u32-move.c: New file.
43872         * lib/unistr/u-move.h: New file.
43873
43874         * modules/unistr/u8-next: New file.
43875         * modules/unistr/u16-next: New file.
43876         * modules/unistr/u32-next: New file.
43877         * lib/unistr/u8-next.c: New file.
43878         * lib/unistr/u16-next.c: New file.
43879         * lib/unistr/u32-next.c: New file.
43880
43881         * modules/unistr/u8-prev: New file.
43882         * modules/unistr/u16-prev: New file.
43883         * modules/unistr/u32-prev: New file.
43884         * lib/unistr/u8-prev.c: New file.
43885         * lib/unistr/u16-prev.c: New file.
43886         * lib/unistr/u32-prev.c: New file.
43887
43888         * modules/unistr/u8-set: New file.
43889         * modules/unistr/u16-set: New file.
43890         * modules/unistr/u32-set: New file.
43891         * lib/unistr/u8-set.c: New file.
43892         * lib/unistr/u16-set.c: New file.
43893         * lib/unistr/u32-set.c: New file.
43894         * lib/unistr/u-set.h: New file.
43895
43896         * modules/unistr/u8-startswith: New file.
43897         * modules/unistr/u16-startswith: New file.
43898         * modules/unistr/u32-startswith: New file.
43899         * lib/unistr/u8-startswith.c: New file.
43900         * lib/unistr/u16-startswith.c: New file.
43901         * lib/unistr/u32-startswith.c: New file.
43902         * lib/unistr/u-startswith.h: New file.
43903
43904         * modules/unistr/u8-stpcpy: New file.
43905         * modules/unistr/u16-stpcpy: New file.
43906         * modules/unistr/u32-stpcpy: New file.
43907         * lib/unistr/u8-stpcpy.c: New file.
43908         * lib/unistr/u16-stpcpy.c: New file.
43909         * lib/unistr/u32-stpcpy.c: New file.
43910         * lib/unistr/u-stpcpy.h: New file.
43911
43912         * modules/unistr/u8-stpncpy: New file.
43913         * modules/unistr/u16-stpncpy: New file.
43914         * modules/unistr/u32-stpncpy: New file.
43915         * lib/unistr/u8-stpncpy.c: New file.
43916         * lib/unistr/u16-stpncpy.c: New file.
43917         * lib/unistr/u32-stpncpy.c: New file.
43918         * lib/unistr/u-stpncpy.h: New file.
43919
43920         * modules/unistr/u8-strcat: New file.
43921         * modules/unistr/u16-strcat: New file.
43922         * modules/unistr/u32-strcat: New file.
43923         * lib/unistr/u8-strcat.c: New file.
43924         * lib/unistr/u16-strcat.c: New file.
43925         * lib/unistr/u32-strcat.c: New file.
43926         * lib/unistr/u-strcat.h: New file.
43927
43928         * modules/unistr/u8-strchr: New file.
43929         * modules/unistr/u16-strchr: New file.
43930         * modules/unistr/u32-strchr: New file.
43931         * lib/unistr/u8-strchr.c: New file.
43932         * lib/unistr/u16-strchr.c: New file.
43933         * lib/unistr/u32-strchr.c: New file.
43934
43935         * modules/unistr/u8-strcmp: New file.
43936         * modules/unistr/u16-strcmp: New file.
43937         * modules/unistr/u32-strcmp: New file.
43938         * lib/unistr/u8-strcmp.c: New file.
43939         * lib/unistr/u16-strcmp.c: New file.
43940         * lib/unistr/u32-strcmp.c: New file.
43941
43942         * modules/unistr/u8-strcpy: New file.
43943         * modules/unistr/u16-strcpy: New file.
43944         * modules/unistr/u32-strcpy: New file.
43945         * lib/unistr/u8-strcpy.c: New file.
43946         * lib/unistr/u16-strcpy.c: New file.
43947         * lib/unistr/u32-strcpy.c: New file.
43948         * lib/unistr/u-strcpy.h: New file.
43949
43950         * modules/unistr/u8-strcspn: New file.
43951         * modules/unistr/u16-strcspn: New file.
43952         * modules/unistr/u32-strcspn: New file.
43953         * lib/unistr/u8-strcspn.c: New file.
43954         * lib/unistr/u16-strcspn.c: New file.
43955         * lib/unistr/u32-strcspn.c: New file.
43956         * lib/unistr/u-strcspn.h: New file.
43957
43958         * modules/unistr/u8-strdup: New file.
43959         * modules/unistr/u16-strdup: New file.
43960         * modules/unistr/u32-strdup: New file.
43961         * lib/unistr/u8-strdup.c: New file.
43962         * lib/unistr/u16-strdup.c: New file.
43963         * lib/unistr/u32-strdup.c: New file.
43964         * lib/unistr/u-strdup.h: New file.
43965
43966         * modules/unistr/u8-strlen: New file.
43967         * modules/unistr/u16-strlen: New file.
43968         * modules/unistr/u32-strlen: New file.
43969         * lib/unistr/u8-strlen.c: New file.
43970         * lib/unistr/u16-strlen.c: New file.
43971         * lib/unistr/u32-strlen.c: New file.
43972         * lib/unistr/u-strlen.h: New file.
43973
43974         * modules/unistr/u8-strmblen: New file.
43975         * modules/unistr/u16-strmblen: New file.
43976         * modules/unistr/u32-strmblen: New file.
43977         * lib/unistr/u8-strmblen.c: New file.
43978         * lib/unistr/u16-strmblen.c: New file.
43979         * lib/unistr/u32-strmblen.c: New file.
43980
43981         * modules/unistr/u8-strmbtouc: New file.
43982         * modules/unistr/u16-strmbtouc: New file.
43983         * modules/unistr/u32-strmbtouc: New file.
43984         * lib/unistr/u8-strmbtouc.c: New file.
43985         * lib/unistr/u16-strmbtouc.c: New file.
43986         * lib/unistr/u32-strmbtouc.c: New file.
43987
43988         * modules/unistr/u8-strncat: New file.
43989         * modules/unistr/u16-strncat: New file.
43990         * modules/unistr/u32-strncat: New file.
43991         * lib/unistr/u8-strncat.c: New file.
43992         * lib/unistr/u16-strncat.c: New file.
43993         * lib/unistr/u32-strncat.c: New file.
43994         * lib/unistr/u-strncat.h: New file.
43995
43996         * modules/unistr/u8-strncmp: New file.
43997         * modules/unistr/u16-strncmp: New file.
43998         * modules/unistr/u32-strncmp: New file.
43999         * lib/unistr/u8-strncmp.c: New file.
44000         * lib/unistr/u16-strncmp.c: New file.
44001         * lib/unistr/u32-strncmp.c: New file.
44002
44003         * modules/unistr/u8-strncpy: New file.
44004         * modules/unistr/u16-strncpy: New file.
44005         * modules/unistr/u32-strncpy: New file.
44006         * lib/unistr/u8-strncpy.c: New file.
44007         * lib/unistr/u16-strncpy.c: New file.
44008         * lib/unistr/u32-strncpy.c: New file.
44009         * lib/unistr/u-strncpy.h: New file.
44010
44011         * modules/unistr/u8-strnlen: New file.
44012         * modules/unistr/u16-strnlen: New file.
44013         * modules/unistr/u32-strnlen: New file.
44014         * lib/unistr/u8-strnlen.c: New file.
44015         * lib/unistr/u16-strnlen.c: New file.
44016         * lib/unistr/u32-strnlen.c: New file.
44017         * lib/unistr/u-strnlen.h: New file.
44018
44019         * modules/unistr/u8-strpbrk: New file.
44020         * modules/unistr/u16-strpbrk: New file.
44021         * modules/unistr/u32-strpbrk: New file.
44022         * lib/unistr/u8-strpbrk.c: New file.
44023         * lib/unistr/u16-strpbrk.c: New file.
44024         * lib/unistr/u32-strpbrk.c: New file.
44025         * lib/unistr/u-strpbrk.h: New file.
44026
44027         * modules/unistr/u8-strrchr: New file.
44028         * modules/unistr/u16-strrchr: New file.
44029         * modules/unistr/u32-strrchr: New file.
44030         * lib/unistr/u8-strrchr.c: New file.
44031         * lib/unistr/u16-strrchr.c: New file.
44032         * lib/unistr/u32-strrchr.c: New file.
44033
44034         * modules/unistr/u8-strspn: New file.
44035         * modules/unistr/u16-strspn: New file.
44036         * modules/unistr/u32-strspn: New file.
44037         * lib/unistr/u8-strspn.c: New file.
44038         * lib/unistr/u16-strspn.c: New file.
44039         * lib/unistr/u32-strspn.c: New file.
44040         * lib/unistr/u-strspn.h: New file.
44041
44042         * modules/unistr/u8-strstr: New file.
44043         * modules/unistr/u16-strstr: New file.
44044         * modules/unistr/u32-strstr: New file.
44045         * lib/unistr/u8-strstr.c: New file.
44046         * lib/unistr/u16-strstr.c: New file.
44047         * lib/unistr/u32-strstr.c: New file.
44048         * lib/unistr/u-strstr.h: New file.
44049
44050         * modules/unistr/u8-strtok: New file.
44051         * modules/unistr/u16-strtok: New file.
44052         * modules/unistr/u32-strtok: New file.
44053         * lib/unistr/u8-strtok.c: New file.
44054         * lib/unistr/u16-strtok.c: New file.
44055         * lib/unistr/u32-strtok.c: New file.
44056         * lib/unistr/u-strtok.h: New file.
44057
44058         * modules/unistr/u8-uctomb: New file.
44059         * modules/unistr/u16-uctomb: New file.
44060         * modules/unistr/u32-uctomb: New file.
44061         * lib/unistr/u8-uctomb.c: New file.
44062         * lib/unistr/u16-uctomb.c: New file.
44063         * lib/unistr/u32-uctomb.c: New file.
44064
44065         * MODULES.html.sh (Unicode string functions): Add the new modules.
44066
44067 2007-01-08  Bruno Haible  <bruno@clisp.org>
44068
44069         * gnulib-tool (func_all_modules): Use find, not ls, to traverse the
44070         modules directory. Filter out CVS, ChangeLog, COPYING, README also from
44071         subdirectories.
44072
44073 2007-01-08  Karl Berry  <karl@gnu.org>
44074
44075         * doc/error.texi: mention that main() fns must set program_name
44076         when progname is used.
44077
44078 2007-01-08  Paul Eggert  <eggert@cs.ucla.edu>
44079
44080         * m4/wctype.m4 (gl_WCTYPE_H): Compute ABSOLUTE_WCTYPE_H even if
44081         WCTYPE_H is empty, for the benefit of builds from non-distclean
44082         directories.  Problem reported by Eric Blake in
44083         <http://lists.gnu.org/archive/html/bug-gnulib/2007-01/msg00157.html>.
44084
44085 2007-01-08  Bruno Haible  <bruno@clisp.org>
44086
44087         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME): Remove
44088         PROVIDE_CANONICALIZE_FILENAME_MODE macro definition.
44089         * lib/canonicalize.h: Test GNULIB_CANONICALIZE instead of
44090         PROVIDE_CANONICALIZE_FILENAME_MODE.
44091         * modules/canonicalize (configure.ac): Use gl_MODULE_INDICATOR.
44092
44093 2007-01-08  Bruno Haible  <bruno@clisp.org>
44094
44095         * m4/fts.m4 (gl_FUNC_FTS_LGPL): Remove _LGPL_PACKAGE macro definition.
44096         * lib/fts_.h (_LGPL_PACKAGE): Remove macro.
44097         Use !GNULIB_FTS instead of _LGPL_PACKAGE.
44098         * lib/fts.c: Likewise.
44099         * modules/fts (configure.ac): Use gl_MODULE_INDICATOR.
44100
44101 2006-12-25  Bruno Haible  <bruno@clisp.org>
44102
44103         * modules/utf8-ucs4-safe: New file.
44104         * lib/utf8-ucs4-safe.h: New file.
44105         * lib/unistr/utf8-ucs4-safe.c: New file.
44106
44107         * modules/utf16-ucs4-safe: New file.
44108         * lib/utf16-ucs4-safe.h: New file.
44109         * lib/unistr/utf16-ucs4-safe.c: New file.
44110
44111         * MODULES.html.sh (Unicode string functions): Add the new modules.
44112
44113 2007-01-08  Bruno Haible  <bruno@clisp.org>
44114
44115         * modules/utf8-ucs4 (Files, lib_SOURCES): Add unistr/utf8-ucs4.c.
44116         (Depends-on): Add unitypes.
44117         * lib/utf8-ucs4.h: Add double-inclusion guard. Include unitypes.h.
44118         (u8_mbtouc_aux): Move out to separate file.
44119         (u8_mbtouc): Use ucs4_t, uint8_t types.
44120         * lib/unistr/utf8-ucs4.c: New file.
44121
44122         * modules/utf16-ucs4 (Files, lib_SOURCES): Add unistr/utf16-ucs4.c.
44123         (Depends-on): Add unitypes.
44124         * lib/utf16-ucs4.h: Add double-inclusion guard. Include unitypes.h.
44125         (u16_mbtouc_aux): Move out to separate file.
44126         (u16_mbtouc): Use ucs4_t, uint16_t types.
44127         * lib/unistr/utf16-ucs4.c: New file.
44128
44129         * modules/ucs4-utf8 (Files, lib_SOURCES): Add unistr/ucs4-utf8.c.
44130         (Depends-on): Add unitypes.
44131         * lib/ucs4-utf8.h: Add double-inclusion guard. Include unitypes.h.
44132         (u8_uctomb_aux): Move out to separate file.
44133         (u8_uctomb): Use ucs4_t, uint8_t types.
44134         * lib/unistr/ucs4-utf8.c: New file.
44135
44136         * modules/ucs4-utf16 (Files, lib_SOURCES): Add unistr/ucs4-utf16.c.
44137         (Depends-on): Add unitypes.
44138         * lib/ucs4-utf16.h: Add double-inclusion guard. Include unitypes.h.
44139         (u16_uctomb_aux): Move out to separate file.
44140         (u16_uctomb): Use ucs4_t, uint16_t types.
44141         * lib/unistr/ucs4-utf16.c: New file.
44142
44143 2006-12-25  Bruno Haible  <bruno@clisp.org>
44144
44145         * modules/unitypes: New file.
44146         * lib/unitypes.h: New file.
44147         * MODULES.html.sh (func_all_modules): New section "Unicode string
44148         functions". Move ucs4-utf8, ucs4-utf16, utf8-ucs4, utf16-ucs4 to
44149         this section. Add unitypes.
44150
44151 2007-01-08  Bruno Haible  <bruno@clisp.org>
44152
44153         Avoid variable names that conflict with those from libtool.
44154         * m4/lib-link.m4 (AC_LIB_RPATH, AC_LIB_LINKFLAGS_BODY,
44155         AC_LIB_LINKFLAGS_FROM_LIBS): Rename libext to acl_libext,
44156         shlibext to acl_shlibext, libname_spec to acl_libname_spec,
44157         library_names_spec to acl_library_names_spec, hardcode_* to
44158         acl_hardcode_*.
44159         Reported by Ralf Wildenhues.
44160
44161 2007-01-08  Bruno Haible  <bruno@clisp.org>
44162
44163         * m4/gc-arcfour.m4 (gl_GC_ARCFOUR): Remove GC_USE_ARCFOUR macro
44164         definition.
44165         * m4/gc-arctwo.m4 (gl_GC_ARCTWO): Remove GC_USE_ARCTWO macro
44166         definition.
44167         * m4/gc-des.m4 (gl_GC_DES): Remove GC_USE_DES macro definition.
44168         * m4/gc-hmac-md5.m4 (gl_GC_HMAC_MD5): Remove GC_USE_HMAC_MD5 macro
44169         definition.
44170         * m4/gc-hmac-sha1.m4 (gl_GC_HMAC_SHA1): Remove GC_USE_HMAC_SHA1 macro
44171         definition.
44172         * m4/gc-md2.m4 (gl_GC_MD2): Remove GC_USE_MD2 macro definition.
44173         * m4/gc-md4.m4 (gl_GC_MD4): Remove GC_USE_MD4 macro definition.
44174         * m4/gc-md5.m4 (gl_GC_MD5): Remove GC_USE_MD5 macro definition.
44175         * m4/gc-random.m4 (gl_GC_RANDOM): Remove GC_USE_RANDOM macro
44176         definition.
44177         * m4/gc-rijndael.m4 (gl_GC_RIJNDAEL): Remove GC_USE_RIJNDAEL macro
44178         definition.
44179         * m4/gc-sha1.m4 (gl_GC_SHA1): Remove GC_USE_SHA1 macro definition.
44180         * lib/gc-gnulib.c: Use GNULIB_GC_<algorithm> instead of
44181         GC_USE_<algorithm>.
44182         * lib/gc-libgcrypt.c: Likewise.
44183         * modules/gc-arcfour (configure.ac): Use gl_MODULE_INDICATOR.
44184         * modules/gc-arctwo (configure.ac): Likewise.
44185         * modules/gc-des (configure.ac): Likewise.
44186         * modules/gc-hmac-md5 (configure.ac): Likewise.
44187         * modules/gc-hmac-sha1 (configure.ac): Likewise.
44188         * modules/gc-md2 (configure.ac): Likewise.
44189         * modules/gc-md4 (configure.ac): Likewise.
44190         * modules/gc-md5 (configure.ac): Likewise.
44191         * modules/gc-random (configure.ac): Likewise.
44192         * modules/gc-rijndael (configure.ac): Likewise.
44193         * modules/gc-sha1 (configure.ac): Likewise.
44194
44195 2007-01-08  Bruno Haible  <bruno@clisp.org>
44196
44197         * m4/close-stream.m4 (gl_CLOSE_STREAM): Remove GNULIB_CLOSE_STREAM
44198         macro definition.
44199         * m4/fcntl-safer.m4 (gl_FCNTL_SAFER): Remove GNULIB_FCNTL_SAFER macro
44200         definition.
44201         * m4/stdio-safer.m4 (gl_FOPEN_SAFER): Remove GNULIB_FOPEN_SAFER macro
44202         definition.
44203         * modules/close-stream (configure.ac): Invoke gl_MODULE_INDICATOR.
44204         * modules/fcntl-safer (configure.ac): Likewise.
44205         * modules/fopen-safer (configure.ac): Likewise.
44206         * modules/fwriteerror (configure.ac): Likewise. Remove explicit
44207         GNULIB_FWRITEERROR macro definition.
44208
44209 2007-01-08  Bruno Haible  <bruno@clisp.org>
44210
44211         * m4/gnulib-common.m4: New file.
44212         * gnulib-tool (func_get_autoconf_snippet): Undo last change.
44213         (func_get_filelist): Add m4/gnulib-common.m4.
44214
44215 2007-01-08  Bruno Haible  <bruno@clisp.org>
44216
44217         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): Simplify the sorting
44218         command.
44219
44220 2007-01-08  Jim Meyering  <jim@meyering.net>
44221
44222         Use a more robust test for a "can't happen" condition.
44223         * lib/fts.c (fts_read): Revert the change of 2006-11-22, since it
44224         narrowed the st_size value.  Presuming the "can't happen" condition
44225         is true, that narrowing could conceivably convert an invalid st_size
44226         value into a valid one.  Instead, use a change based on Matthew
44227         Woehlke's original patch.
44228
44229         Slight readability improvement: use an assert-like macro
44230         in place of literal "abort ()" uses.
44231         * lib/fts.c (fts_assert): Define.
44232         (fts_set_stat_required, cwd_advance_fd, fts_read, fd_ring_check):
44233         Use this macro instead of a bare 'abort'.
44234
44235 2007-01-05  Paul Eggert  <eggert@cs.ucla.edu>
44236
44237         Don't worry about using IRIX 5.3's wctype.h broken definitions;
44238         simply work around them.
44239         * lib/wctype_.h: Remove test for HAVE_WCTYPE_CTMP_BUG.
44240         (iswalnum, iswalpha, iswblank, iswcntrl, iswdigit, iswgraph, iswlower):
44241         (iswprint, iswpunct, iswspace, iswupper, iswxdigit): Undef before
44242         declaring.
44243         Don't bother to define as macros, since the standard doesn't require it.
44244         * m4/wctype.m4 (WCTYPE_H, ABSOLUTE_WCTYPE_H): Simplify, since we no
44245         longer worry about IRIX 5.3.
44246         (HAVE_WCTYPE_CTMP_BUG): Remove.
44247
44248 2007-01-04  Paul Eggert  <eggert@cs.ucla.edu>
44249
44250         * lib/wctype_.h (_ctmp_) [HAVE_WCTYPE_CTMP_BUG]: Now of type wchar_t,
44251         not wint_t.  Also, include <ctype.h>, to fix another IRIX bug.
44252         * m4/wctype.m4 (gl_WCTYPE_H): Likewise.
44253         Problems reported by Georg Schwarz for IRIX 5.3.
44254
44255         * gnulib-tool (autoconf_minversion): Take the maximum version number
44256         found, not the minimum.  Problem reported by James Youngman.
44257
44258 2007-01-03  Karl Berry  <karl@gnu.org>
44259
44260         * doc/error.texi: new file, explaining interaction with progname.
44261         * doc/gnulib.texi: include it.  Update copyright.
44262
44263 2007-01-03  Simon Josefsson  <simon@josefsson.org>
44264
44265         * gnulib-tool (func_create_testdir): Run AC_CANONICAL_BUILD and
44266         AC_CANONICAL_HOST, to improve autobuild outputs.
44267
44268 2007-01-03  Paolo Bonzini  <bonzini@gnu.org>
44269             Yoann Vandoorselaere <yoann.v@prelude-ids.com>
44270
44271         * lib/poll.c (poll): Use recv on Mac OS X to distinguish connected
44272         sockets, server sockets, and other file descriptors.  Count errors
44273         to compute the return value.  Reorder the code a bit to be easier
44274         to follow.  Don't set event bits that were not requested (except
44275         POLLERR and POLLHUP).
44276
44277 2007-01-01  Bruno Haible  <bruno@clisp.org>
44278
44279         * modules/lchmod (Include): Require lchmod.h, not lchown.h.
44280
44281 2007-01-03  Jim Meyering  <jim@meyering.net>
44282
44283         * modules/fts-lgpl (Depends-on): Add i-ring.  Reported by Bruno Haible.
44284
44285 2007-01-02  Bruno Haible  <bruno@clisp.org>
44286
44287         * modules/settime (Include): Require timespec.h.
44288         * modules/nanosleep (Include): Likewise.
44289
44290 2007-01-01  Bruno Haible  <bruno@clisp.org>
44291
44292         * gnulib-tool (func_emit_copyright_notice): Bump year.
44293         (func_get_autoconf_snippet): Emit a GNULIB_<modulename> macro.
44294
44295 2007-01-01  Bruno Haible  <bruno@clisp.org>
44296
44297         Improve support for OpenBSD.
44298         * build-aux/config.rpath (libname_spec): Export.
44299         (library_names_spec): New variable. Export.
44300         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): Extract libname_spec and
44301         library_names_spec from the config.rpath output. Locate shared library
44302         through the name pattern in library_names_spec.
44303
44304 2007-01-01  Eric Blake  <ebb9@byu.net>
44305
44306         * lib/version-etc.c (COPYRIGHT_YEAR): Bump for new year.
44307
44308 2006-12-30  Paul Eggert  <eggert@cs.ucla.edu>
44309
44310         * gnulib-tool (SORT): Remove, since we no longer assume GNU sort.
44311         Rewrite so as not to assume GNU sort or "tail -1".  Also, don't
44312         assume the C locale, and avoid an "eval" that could cause trouble.
44313         Problem with SORT reported by Bob Proulx.
44314
44315         * lib/getpagesize.h (getpagesize) [defined __amigaos4__]:
44316         Define.  Trivial patch from Henning Nielsen Lund, originally
44317         sent to bug-grep@gnu.org today.
44318
44319 2006-12-29  Paul Eggert  <eggert@cs.ucla.edu>
44320
44321         * lib/acl.h: Include sys/types.h and sys/stat.h, for mode_t and
44322         struct stat.  Problem reported by Henning Nielsen Lund.
44323         * lib/acl.c: Include acl.h first, to check interface.  Don't
44324         bother to include sys/types.h and sys/stat.h again.
44325
44326 2006-12-28  Paul Eggert  <eggert@cs.ucla.edu>
44327
44328         Import the following change from libc; problem reported by
44329         Sven Verdoolaege.
44330
44331         2005-10-13  Ulrich Drepper  <drepper@redhat.com>
44332
44333         [BZ #1373]
44334         * lib/argp.h: Remove __NTH for __argp_usage inline function.
44335
44336 2006-12-28  Jim Meyering  <jim@meyering.net>
44337
44338         * build-aux/announce-gen: Do not assume that the package
44339         builds any of tar.gz, tar.bz2, and .xdelta files.
44340         Suggestion from Simon Josefsson.
44341
44342 2006-12-28  Simon Josefsson  <simon@josefsson.org>
44343
44344         * modules/announce-gen: New file.
44345
44346 2006-12-27  Paul Eggert  <eggert@cs.ucla.edu>
44347
44348         * lib/mbchar.h: Just include <wctype.h>; the wctype module
44349         handles its gotchas now.
44350         * lib/mbswidth.c: Likewise.
44351         * lib/wcwidth.h: Likewise.
44352         * m4/mbchar.m4 (gl_MBCHAR): Don't bother checking for wctype.h
44353         and iswcntrl; the wctype module does this stuff now.
44354         * m4/mbswidth.m4 (gl_MBSWIDTH): Likewise.
44355         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Likewise.
44356         * modules/mbchar (Depends-on): Add wctype.
44357         * modules/mbswidth (Depends-on): Likewise.
44358         * modules/wcwidth (Depends-on): Likewise.
44359
44360 2006-12-27  Eric Blake  <ebb9@byu.net>
44361
44362         * lib/fnmatch.c: Reinstate inclusion of <wchar.h>, since this
44363         module uses more than what <wctype.h> is required to provide.
44364
44365 2006-12-26  Eric Blake  <ebb9@byu.net>
44366
44367         * gnulib-tool (sed_extract_prog): Avoid space-tab.
44368
44369 2006-12-26  Eric Blake  <ebb9@byu.net>
44370
44371         * modules/absolute-header: New module.
44372         * modules/fcntl (Depends-on): Depend on it.
44373         * modules/inttypes (Depends-on): Likewise.
44374         * modules/stdint (Depends-on): Likewise.
44375         * modules/sys_stat (Depends-on): Likewise.
44376         * modules/wctype (Depends-on): Likewise.
44377         * MODULES.html.sh (Support for building libraries and
44378         executables): Document it.
44379
44380 2006-12-25  Paul Eggert  <eggert@cs.ucla.edu>
44381
44382         * gnulib-tool (SED): Remove, undoing previous change.
44383         The problem was that it broke coreutils on Solaris, because
44384         "sed --posix" leaked into a makefile.
44385         (sed): New alias, if 'alias' and GNU sed.
44386
44387 2006-12-24  Jim Meyering  <jim@meyering.net>
44388
44389         Work around an fchownat bug in glibc-2.4:
44390         http://lists.ubuntu.com/archives/ubuntu-users/2006-September/093218.html
44391         This bug would cause "chown -RP ... DIR" to follow symlinks in DIR,
44392         in spite of the -P option.
44393         * m4/openat.m4 (gl_FUNC_FCHOWNAT, gl_FUNC_FCHOWNAT_DEREF_BUG):
44394         New macros.
44395         (gl_PREREQ_OPENAT): Require gl_FUNC_FCHOWNAT.
44396         * modules/openat (Files): Add lib/fchownat.c.
44397         * lib/openat.c (fchownat): Don't define here.  Move to...
44398         * lib/fchownat.c: ...this new file.
44399
44400 2006-12-23  Paul Eggert  <eggert@cs.ucla.edu>
44401
44402         Fix bug reported by Bruno Haible in
44403         <http://lists.gnu.org/archive/html/bug-gnulib/2006-12/msg00228.html>
44404         where quotearg.c didn't compile on Mac OS X 10.2 because it
44405         lacks <wchar.h> and wint_t.
44406         * lib/wctype_.h (__wctype_wint_t): New type.
44407         Include <stdio.h>, <time.h>, <wchar.h> only if HAVE_WINT_T.
44408         (iswalnum, iswalpha, iswblank, iswcntrl, iswdigit, iswgraph):
44409         (iswlower, iswprint, iswpunct, iswspace, iswupper, ixwxdigit):
44410         Arg is now of type __wctype_wint_t, not wint_t.
44411         * m4/wctype.m4 (gl_WCTYPE_H): Require gt_TYPE_WINT_T, and
44412         substitute HAVE_WINT_T.
44413         * modules/wctype (Files): Add m4/wint_t.m4.
44414         (wctype.h): Substitute HAVE_WINT_T.
44415
44416 2006-12-23  Bruno Haible  <bruno@clisp.org>
44417
44418         * lib/safe-read.h [C++]: Wrap declarations in extern "C".
44419
44420 2006-12-23  Bruno Haible  <bruno@clisp.org>
44421
44422         * lib/canonicalize-lgpl.c (__realpath): Test HAVE_READLINK instead of
44423         S_ISLNK.
44424         Needed because gnulib's sys/stat.h replacement defines S_ISLNK on
44425         mingw.
44426
44427 2006-12-22  Bruno Haible  <bruno@clisp.org>
44428
44429         * lib/copy-file.c: Include acl.h.
44430         (copy_file_preserving) [USE_ACL]: Use copy_acl instead of chmod.
44431         Close the file descriptors only after being done with copy_acl.
44432         * modules/copy-file (Depends-on): Add acl.
44433
44434 2006-12-22  Bruno Haible  <bruno@clisp.org>
44435
44436         * gnulib-tool (SED): New variable.
44437         Use $SED instead of sed everywhere.
44438
44439 2006-12-22  Bruno Haible  <bruno@clisp.org>
44440
44441         * modules/no-c++: New file.
44442         * m4/no-c++.m4: New file.
44443         * MODULES.html.sh (Support for building libraries and executables):
44444         Add no-c++.
44445
44446 2006-12-22  Paul Eggert  <eggert@cs.ucla.edu>
44447
44448         * m4/mktime.m4 (AC_FUNC_MKTIME): Sync from Autoconf.
44449         Include <limits.h>, and use its INT_MAX to rewrite the
44450         j loop so that it does not overflow 'int'.  Problem reported by
44451         Ralf Wildenhues in
44452         <http://lists.gnu.org/archive/html/bug-gnulib/2006-12/msg00084.html>.
44453         Play it safe by shifting left by 1 rather than multiplying by 2,
44454         as GCC is less likely to optimize this away when the value
44455         is signed (when it assumes overflow leads to undefined behavior).
44456         Also, don't assume time_t uses two's complement.
44457
44458 2006-12-21  Paul Eggert  <eggert@cs.ucla.edu>
44459
44460         * MODULES.html.sh: New module wctype.
44461         * lib/wctype_.h, m4/wctype.m4, modules/wctype: New files.
44462         * lib/fnmatch.c: Don't bother to include <wchar.h> before
44463         <wctype.h>, since the new wctype module should fix this.
44464         * lib/quotearg.c: Include <wctype.h> unconditionally, since
44465         the wctype module should arrange for it.
44466         * lib/regex_internal.h: Likewise.
44467         * m4/quotearg.m4 (gl_QUOTEARG): Don't check for wctype.h or iswprint,
44468         since the wctype module should handle this now.
44469         * m4/regex.m4 (gl_PREREQ_REGEX): Don't check for wctype.h.
44470         * modules/fnmatch (Depends-on): Add wctype.
44471         * modules/quotearg (Depends-on): Likewise.
44472         * modules/regex (Depends-on): Likewise.
44473
44474 2006-12-19  Bruno Haible  <bruno@clisp.org>
44475
44476         * lib/strdup.h [C++]: Wrap definitions in extern "C".
44477         Suggested by Lorenzo Bettini <bettini@dsi.unifi.it>.
44478
44479 2006-12-19  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
44480
44481         * modules/savewd (Depends-on): Fix dependency on fcntl.
44482
44483 2006-12-18  Paul Eggert  <eggert@cs.ucla.edu>
44484
44485         * m4/stdint.m4 (gl_STDINT_H): Set STDINT_H to empty if stdint.h
44486         conforms to C99, rather than relying on the user's environment
44487         setting of STDINT_H.
44488
44489 2006-12-18  Paul Eggert  <eggert@cs.ucla.edu>
44490         and Eric Blake  <ebb9@byu.net>
44491
44492         * lib/dirname.h (DOUBLE_SLASH_IS_DISTINCT_ROOT): Default to 0, not 1.
44493         This is more consistent with the other defines here.
44494         * m4/double-slash-root.m4 (gl_DOUBLE_SLASH_ROOT):
44495         Port to z/OS.  Problem reported by Paul Gilmartin.
44496         Change local vars to use gl_ prefix rather than ac_.
44497         Don't define DOUBLE_SLASH_IS_DISTINCT_ROOT to 0, for consistency
44498         with other defines.
44499         * modules/double-slash-root: New module.
44500         * modules/dirname (Files): Remove m4/double-slash-root.m4.
44501         (Depends-on): Add double-slash-root.
44502         * MODULES.html.sh (File system functions): Mention new module.
44503
44504 2006-12-14  Paul Eggert  <eggert@cs.ucla.edu>
44505
44506         * lib/yesno.c [!ENABLE_NLS]: Don't include getline.h.
44507         (yesno) [!ENABLE_NLS]: Don't invoke getline or rpmatch.
44508         This is for the benefit of gzip, which doesn't do i18n.
44509
44510 2006-12-12  Jim Meyering  <jim@meyering.net>
44511
44512         * m4/acl.m4 (gl_ACL_GET_FILE): Fix logic error.
44513         Reported by Andreas Schwab <schwab@suse.de>.
44514
44515 2006-12-12  Bruno Haible  <bruno@clisp.org>
44516
44517         Merge these changes.
44518         2006-09-05  Bruno Haible  <bruno@clisp.org>
44519         * lib/iconvme.c (iconv_string): No need to save and restore errno when
44520         iconv_alloc succeeded.
44521         (iconv_alloc): Don't assume that malloc() or realloc(), when failing,
44522         sets errno to ENOMEM. (malloc on GNU/kFreeBSD doesn't.) No need to
44523         test for " && dest " at the end - dest is always != NULL there. Call
44524         iconv with 4xNULL arguments initially, to reset the state. Call iconv
44525         with 2xNULL arguments, also to flush the state storage. Handle the
44526         IRIX iconv behaviour. Realloc the final result, to throw away unused
44527         memory.
44528
44529 2006-12-11  Paul Eggert  <eggert@cs.ucla.edu>
44530
44531         * m4/openat.m4 (gl_FUNC_OPENAT): Don't compile mkdirat
44532         and fchmodat unconditionally, since glibc 2.4 has them.
44533         Problem reported by Arkadiusz Miskiewicz.
44534
44535 2006-12-10  Bruno Haible  <bruno@clisp.org>
44536
44537         * gnulib-tool (func_import): Show the include files only for those
44538         modules that are copied and specified.
44539         Reported by Karl Berry.
44540
44541 2006-12-08  Jim Meyering  <jim@meyering.net>
44542
44543         * build-aux/announce-gen ($VERSION): Don't use of $Revision...$.
44544         Instead, use Emacs' time-stamp write hook.  Note that the time is UTC.
44545
44546         * build-aux/announce-gen: Add two new options, both optional:
44547         --bootstrap-tools=TOOL_LIST
44548               a comma-separated list of tools, e.g.,
44549               autoconf,automake,bison,gnulib
44550         --gnulib-snapshot-date=DATE
44551               if gnulib is in the bootstrap tool list,
44552               then report this as the snapshot date.
44553               If not specified, use the current date/time.
44554               If you specify a date here, be sure it's UTC.
44555
44556 2006-12-05  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
44557
44558         * tests/test-argp-2.sh: Fix test to match actual output.
44559         (func_compare): Fix sed script to be portable.
44560
44561 2006-12-05  Paul Eggert  <eggert@cs.ucla.edu>
44562
44563         * lib/utimens.c (futimens) [HAVE_BUGGY_NFS_TIME_STAMPS]: Add a
44564         workaround for this case.  It is not autoconfigured now; offhand
44565         it's hard to see how to autoconfigure it.
44566
44567 2006-12-03  Paul Eggert  <eggert@cs.ucla.edu>
44568
44569         * lib/mkdir-p.c (make_dir_parents): Fix race condition when making
44570         a directory that is about to be chowned.  Such a directory's
44571         initial file permissions should permit the owner only and this
44572         should not be changed until after the chown, since the group and
44573         other bits would be incorrect if they granted permission before
44574         the chown.
44575
44576         Fix porting problem for iswctype reported by Georg Schwarz in:
44577         http://lists.gnu.org/archive/html/bug-coreutils/2006-12/msg00017.html
44578         * lib/fnmatch.c (WIDE_CHAR_SUPPORT): Require HAVE_ISWCTYPE, too.
44579         * lib/regex_internal.h (RE_ENABLE_I18N): Likewise.
44580         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Check for iswctype, too.
44581         * m4/regex.m4 (gl_PREREQ_REGEX): Likewise.
44582
44583 2006-12-03  Jim Meyering  <jim@meyering.net>
44584
44585         * lib/fts.c (fts_load): Don't set sp->fts_dev here, since
44586         p->fts_statp may not yet be defined.
44587         (fts_read): Instead, set it in the caller, once p->fts_statp is
44588         sure to be defined, and corresponds to a top-level directory.
44589         This bug made du -x fail.  Here's the coreutils test case:
44590         http://git.sv.gnu.org/gitweb/?p=coreutils.git;a=commit;h=ba45154d8e9f
44591         Reported by Mike Frysinger.
44592
44593 2006-12-01  Jim Meyering  <jim@meyering.net>
44594
44595         * modules/savewd (Depends-on): Add fcntl_h to avoid self-test
44596         build failure due to missing definition of HAVE_WORKING_O_NOFOLLOW.
44597         Reported by Simon Josefsson.
44598
44599 2006-11-30  Jim Meyering  <jim@meyering.net>
44600
44601         * m4/warning.m4: Use the all-permissive copyright notice
44602         recommended by RMS (rather than LGPL).
44603         * m4/vararrays.m4: Likewise.
44604         * m4/flexmember.m4: Likewise.
44605
44606 2006-11-29  Bruno Haible  <bruno@clisp.org>
44607
44608         * gnulib-tool (func_emit_lib_Makefile_am): Initialize also
44609         noinst_LIBRARIES. Augment noinst_LIBRARIES and noinst_LTLIBRARIES
44610         using +=.
44611         Reported by Simon Josefsson <simon@josefsson.org>.
44612
44613 2006-11-28  James Youngman <jay@gnu.org>
44614
44615         * README: Advise users that they might find the bug-gnulib@gnu.org
44616         and autotools-announce@gnu.org mailing lists useful.
44617
44618 2006-11-28  Bruno Haible  <bruno@clisp.org>
44619
44620         * m4/ptrdiff_max.m4: Remove file.
44621
44622 2006-11-21  Bruno Haible  <bruno@clisp.org>
44623
44624         * m4/eoverflow.m4 (gl_EOVERFLOW): Use AC_COMPUTE_INT instead of
44625         _AC_COMPUTE_INT.
44626         (AC_COMPUTE_INT): Add fallback definition for autoconf < 2.61.
44627         * m4/ptrdiff_max.m4 (gl_PTRDIFF_MAX): Use AC_COMPUTE_INT instead of
44628         _AC_COMPUTE_INT.
44629         (AC_COMPUTE_INT): Add fallback definition for autoconf < 2.61.
44630         * m4/size_max.m4 (gl_SIZE_MAX): Use AC_COMPUTE_INT instead of
44631         _AC_COMPUTE_INT.
44632         (AC_COMPUTE_INT): Add fallback definition for autoconf < 2.61.
44633
44634 2006-11-28  Jim Meyering  <jim@meyering.net>
44635
44636         * lib/regcomp.c (parse_branch): Rename local, exp->expr, to avoid
44637         warning from "gcc -Wshadow" about shadowing the builtin.
44638
44639 2006-11-27  Bruno Haible  <bruno@clisp.org>
44640
44641         * m4/stdint.m4 (gl_STDINT_BITSIZEOF): Use AC_COMPUTE_INT instead of
44642         _AC_COMPUTE_INT.
44643         (AC_COMPUTE_INT): Add fallback definition for autoconf < 2.61.
44644
44645 2006-11-27  Bruno Haible  <bruno@clisp.org>
44646             Paul Eggert  <eggert@cs.ucla.edu>
44647
44648         * lib/regex.h (__restrict_arr): Redo logic of #if, for clarity.
44649
44650 2006-11-26  Bruno Haible  <bruno@clisp.org>
44651
44652         * gnulib-tool (func_emit_lib_Makefile_am): Initialize also
44653         noinst_LTLIBRARIES.
44654
44655 2006-11-27  Paul Eggert  <eggert@cs.ucla.edu>
44656             Bruno Haible  <bruno@clisp.org>
44657
44658         * lib/gettext.h (_LIBGETTEXT_HAVE_VARIABLE_SIZE_ARRAYS): Define to 0
44659         if compiling with "gcc -ansi".
44660
44661 2006-11-26  Paul Eggert  <eggert@cs.ucla.edu>
44662
44663         Fix some incompatibilities with gcc -ansi -pedantic.
44664         * lib/regex.h (__restrict_arr): Don't use the [restrict] syntax
44665         if compiling pedantically with GCC, unless it's C99 or later.
44666         Don't trust sys/cdefs.h's definition of __restrict_arr, either, as
44667         it mishandles gcc -ansi -pedantic as well.
44668         * lib/regex_internal.h (re_token_t): Don't use enum bitfields
44669         if gcc -pedantic.
44670         * lib/regexec.c (check_node_accept_bytes): Don't use auto
44671         initializers for struct if -pedantic, unless it's C99 or later.
44672
44673 2006-11-25  Nix  <nix@esperi.org.uk>  (tiny change)
44674
44675         * m4/fcntl_h.m4 (gl_FCNTL_H): Test the atime, not the mtime.
44676         Don't close an fd more than once. Identical atimes indicate
44677         success, not failure.
44678
44679 2006-11-22  Robinson Mittmann <bob@hoplon.com>  (tiny change)
44680
44681         * lib/sincosl.c (kernel_sinl): Fix typo in threshold.
44682
44683 2006-11-23  Jim Meyering  <jim@meyering.net>
44684
44685         * build-aux/announce-gen: New file.  From coreutils.
44686
44687 2006-11-22  Jim Meyering  <jim@meyering.net>
44688
44689         Work around a compile-time error from the HP-UX 11.00 /bin/cc.
44690         * lib/fts.c (enum Fts_stat): Give this previously-anon enum a name.
44691         (fts_read): Use a temporary to narrow the overused st_size member
44692         before using it in a switch statement.  Reported by Matthew Woehlke.
44693
44694         * m4/clock_time.m4 (gl_CLOCK_TIME): Quote AC_SUBST argument.
44695         * m4/euidaccess.m4 (gl_PREREQ_EUIDACCESS): Likewise.
44696
44697 2006-11-20  Bruno Haible  <bruno@clisp.org>
44698
44699         * gettext.m4 (AM_GNU_GETTEXT): Revert 2005-07-28 patch: Use
44700         changequote instead of pairs of brackets.
44701         Reported by Andreas Schwab <schwab@suse.de>.
44702
44703 2006-11-21  Jim Meyering  <jim@meyering.net>
44704
44705         * lib/fts.c (fts_safe_changedir): Move a declaration "up",
44706         so as to remain compatible with older compilers.
44707         Patch from Michael Deutschmann.
44708
44709 2006-11-20  Paul Eggert  <eggert@cs.ucla.edu>
44710
44711         * MODULES.html.sh (File system functions): Add openat.
44712
44713         * lib/openat.h (rpl_fstatat): New macro, if
44714         [HAVE_OPENAT && ! LSTAT_FOLLOWS_SLASHED_SYMLINK.
44715         (fstatat): Define to rpl_fstatat under the same conditions,
44716         unless COMPILING_FSTATAT.
44717         * m4/openat.m4 (gl_FUNC_OPENAT): Compile fstatat.c too, if fstatat
44718         seems to have the bug.
44719         * lib/fstatat.c: New file.
44720         * modules/openat (Files): Add it.
44721
44722 2006-11-20  Bruno Haible  <bruno@clisp.org>
44723
44724         * Makefile: New file.
44725
44726 2006-11-20  Jim Meyering  <jim@meyering.net>
44727
44728         The beginnings of syntax-related checks for gnulib.
44729         * lib/Makefile: New file.
44730         * lib/t-idcache: New script.  Ensure that the two halves of
44731         idcache.c stay in sync.
44732
44733         * lib/idcache.c: Adjust comments in user- and group- portions to
44734         be more accurate, and to be consistent with one another.
44735
44736 2006-11-20  Jim Meyering  <jim@meyering.net>
44737
44738         * lib/idcache.c: Restore most of the 2006-11-06 patch, so as to
44739         continue using the flexible array member (thus, this module performs
44740         half as many malloc calls), with the addition that...
44741         (getgroup, getuser): Consistently record a non-match via an empty
44742         "name" string, and map an empty string match to a NULL return value.
44743         * modules/idcache (Depends-on): Re-add flexmember.
44744
44745         * lib/idcache.c (getuser): Remove all uses of the register keyword.
44746         (getuidbyname, getgroup, getgidbyname): Likewise.
44747
44748         Use cleaner syntax: NULL rather than 0.
44749         * lib/idcache.c (getuidbyname, getgidbyname): Return NULL, not 0.
44750
44751 2006-11-20  Paul Eggert  <eggert@cs.ucla.edu>
44752
44753         * lib/idcache.c: Undo most recent patch, dated 2006-11-06.
44754         It mishandled the case where the group was missing.
44755         Problem reported by Greg Schafer.
44756         * modules/idcache: Likewise.
44757
44758 2006-11-18  Jim Meyering  <jim@meyering.net>
44759
44760         * check-module (%exempt_header): Add exception for some
44761         conditionally-included headers.
44762
44763         * modules/i-ring (Depends-on): Add verify.
44764         (License): Change to LGPL.
44765
44766 2006-11-16  Paul Eggert  <eggert@cs.ucla.edu>
44767
44768         * modules/getaddinfo (Depends-on): Remove inttostr; add snprintf.
44769         * lib/getaddrinfo.c: Include snprintf.h rather than intprops.h
44770         and inttostr.h.  Use snprintf rather than uinttostr, so that
44771         LGPLed code doesn't depend on GPLed.
44772
44773 2006-11-17  Paul Eggert  <eggert@cs.ucla.edu>
44774
44775         * modules/inline (License): Change from GPL to LGPL.
44776
44777 2006-11-17  Jim Meyering  <jim@meyering.net>
44778
44779         * modules/d-type (License): Switch to LGPL.
44780
44781 2006-11-15  Bruno Haible  <bruno@clisp.org>
44782
44783         * m4/alloca.m4 (gl_FUNC_ALLOCA): Fix the AC_CACHE_CHECK message.
44784
44785 2006-11-15  Eric Blake  <ebb9@byu.net>
44786
44787         * m4/allocsa.m4 (gl_ALLOCSA): Don't invoke macro already picked up by
44788         the module dependency.
44789
44790 2006-11-15  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
44791             Bruno Haible  <bruno@clisp.org>
44792
44793         * gnulib-tool (func_create_testdir): Add license consistency check.
44794
44795 2006-11-15  Eric Blake  <ebb9@byu.net>
44796
44797         * m4/alloca.m4 (gl_FUNC_ALLOCA): Use AC_CACHE_CHECK to avoid a
44798         random "(cached)" in configure output.
44799
44800 2006-11-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
44801
44802         * m4/inttypes.m4 (gl_INTTYPES_H): Use AC_CACHE_CHECK so that the
44803         test for conforming inttypes.h is both announced and cached.
44804
44805         * MODULES.html.sh (seen_modules, seen_files): New variables.
44806         (func_module): Rewrite to use a few less gnulib-tool and sed
44807         invocations.  Avoid a couple of quadratic algorithms for ...
44808         (missed_modules, missed_files): ... these, with ...
44809         (func_append, func_tmpdir): ... these new functions, from
44810         gnulib-tool.  Analogously, install traps for cleanup.
44811
44812         * tests/test-gc.c (main): Remove unused variables.
44813         * tests/test-read-file.c: Include stdlib.h, for 'free'.
44814
44815 2006-11-14  Paul Eggert  <eggert@cs.ucla.edu>
44816
44817         * modules/inttostr (License): Change to LGPL.
44818
44819 2006-11-14  Eric Blake  <ebb9@byu.net>
44820
44821         * modules/tempname (License): Change to LGPL.
44822
44823 2006-11-14  Eric Blake  <ebb9@byu.net>
44824
44825         * doc/functions.texi (Function Portability): *printf functions on
44826         Cygwin now understand all POSIX size specifiers.
44827
44828 2006-11-14  Bruno Haible  <bruno@clisp.org>
44829
44830         * modules/c-ctype (License): Change to LGPL.
44831
44832 2006-11-12  Bruno Haible  <bruno@clisp.org>
44833
44834         * m4/lib-link.m4 (AC_LIB_LINKFLAGS, AC_LIB_HAVE_LINKFLAGS,
44835         AC_LIB_LINKFLAGS_BODY): Also set a LIB${NAME}_PREFIX variable. Needed
44836         for GNOME libraries, for which the include files are installed in
44837         subdirectories of $prefix/include.
44838
44839 2006-11-12  Bruno Haible  <bruno@clisp.org>
44840
44841         * m4/lib-link.m4: Require at least autoconf-2.54.
44842         (AC_LIB_LINKFLAGS_BODY) [autoconf < 2.61]: Turn dots into the library
44843         name to underscores for the --with option.
44844
44845 2006-11-13  Bruno Haible  <bruno@clisp.org>
44846
44847         * gnulib-tool (func_create_testdir): Set gl_source_base correctly in
44848         the tests directory.
44849         Reported by Ralf Wildenhues.
44850
44851 2006-11-13  Bruno Haible  <bruno@clisp.org>
44852
44853         * gnulib-tool (func_emit_initmacro_start): Also override AC_LIBSOURCES.
44854         (func_emit_initmacro_end): Undo the override here.
44855         (func_emit_initmacro_done): Emit a definition for gl_LIBSOURCES.
44856         Works around the famous automake error in coreutils.
44857
44858 2006-11-13  Eric Blake  <ebb9@byu.net>
44859
44860         * lib/gl_anytree_oset.h (gl_tree_search_atleast): Return the
44861         element, not its node.
44862
44863 2006-11-12  Bruno Haible  <bruno@clisp.org>
44864
44865         * gnulib-tool (func_emit_lib_Makefile_am): Replace occurrences of
44866         '$(top_srcdir)/build-aux/', taking into account the real auxdir.
44867
44868 2006-11-12  Bruno Haible  <bruno@clisp.org>
44869
44870         * gnulib-tool: New option --local-symlink.
44871         (func_usage): Document it.
44872         (lsymbolic): New variable.
44873         (func_import, func_create_testdir): If --symlink was not specified,
44874         test whether --local-symlink was specified and the file comes from
44875         the local_gnulib_dir.
44876
44877 2006-11-12  Bruno Haible  <bruno@clisp.org>
44878
44879         * gnulib-tool (func_ln): New function.
44880         (func_ln_if_changed, func_create_testdir): Use it instead of "ln -s".
44881
44882 2006-11-12  Bruno Haible  <bruno@clisp.org>
44883
44884         Finish support for source files in subdirectories.
44885         * gnulib-tool (func_emit_lib_Makefile_am): If some of the source files
44886         are in subdirectories, set uses_subdirs and add 'subdir-objects' to
44887         AUTOMAKE_OPTIONS.
44888         (func_import, func_create_testdir): Invoke AM_PROG_CC_C_O in this case.
44889
44890 2006-11-12  Bruno Haible  <bruno@clisp.org>
44891
44892         * gnulib-tool (func_get_automake_snippet): Synthesize also an
44893         EXTRA_lib_SOURCES augmentation.
44894         (func_emit_lib_Makefile_am): Initialize EXTRA_lib..._SOURCES to empty.
44895
44896 2006-11-12  Jim Meyering  <jim@meyering.net>
44897
44898         Make fts (in FTS_CWDFD mode) more efficient by caching a few open
44899         file descriptors.  This also averts a failure on systems with
44900         native openat support when a traversed directory lacks "x" access.
44901         * lib/fts_.h: Include "i-ring.h"
44902         (struct FTS) [fts_fd_ring]: New member.
44903         * lib/fts.c (RESTORE_INITIAL_CWD): Also call fd_ring_clear.
44904         (FCHDIR): Add parentheses.
44905         (fd_ring_check, fd_ring_print) [!FTS_DEBUG]: Define away.
44906         (cwd_advance_fd): Add a 3rd parameter.  Adjust all callers.
44907         When descending, rather than simply closing the previous
44908         fts_cwd_fd value, push that file descriptor onto the ring.
44909         (same_fd, fd_ring_print, fd_ring_check) [FTS_DEBUG]: New functions.
44910         (fts_open): Initialize the new fd_ring member.
44911         (fts_close): Clear the ring.
44912         (fts_safe_changedir): When possible, use our new fd_ring to skip
44913         the diropen and fstat and dev/ino comparison that would normally
44914         accompany a virtual `chdir ("..")'.
44915
44916         * modules/fts (Depends-on): Add i-ring.
44917         * modules/i-ring: New module.
44918         * lib/i-ring.c, lib/i-ring.h, lib/i-ring-test.c: New files.
44919         * m4/i-ring.m4: New file.
44920
44921 2006-11-12  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
44922
44923         * gnulib-tool (func_create_testdir): Fix replacement of
44924         `build-aux' in configure.ac.  Run autotools in gltests
44925         subdirectory.
44926         (func_create_testdir, func_create_megatestdir, test): There is
44927         no need for '--force' in most autotool invocations in a new
44928         tree.  Actually fail the whole test if any of the tools, or the
44929         configure or make stages fail.
44930
44931         Sync from Automake.
44932         * build-aux/gnupload: Revert last change.  Add pointer to upload
44933         instructions of the GNU Maintenance Instructions.
44934         Suggestion by Karl Berry.
44935
44936 2006-11-10  Jim Meyering  <jim@meyering.net>
44937
44938         * lib/fts.c [FTS_DEBUG]: Don't try to print a pointer via %s.
44939
44940 2006-11-09  Paul Eggert  <eggert@cs.ucla.edu>
44941
44942         * lib/gettext.h (dgettext, dcgettext, ngettext) [! ENABLE_NLS]:
44943         (dngettext, dcngettext, bindtextdomain) [! ENABLE_NLS]:
44944         (bind_textdomain_codeset) [! ENABLE_NLS]:
44945         Evaluate all the arguments.  That way, callers get compatible behavior
44946         if the arguments have side effects.  Also, it avoids some GCC
44947         diagnostics in some cases; Joel E. Denny reported problems when Bison
44948         was configured with --enable-gcc-warnigs.
44949
44950 2006-11-10  Jim Meyering  <jim@meyering.net>
44951
44952         * m4/inline.m4 (gl_INLINE): Check with the compiler, not cpp, so that
44953         relevant options in CFLAGS (like -O, -fno-inline) are taken into
44954         account.
44955
44956 2006-11-10  Jim Meyering  <jim@meyering.net>
44957
44958         * modules/inline: New file/module.
44959         * modules/xalloc (Files): Remove m4/inline.m4.
44960         (Depends-on): Add inline, instead.
44961         * modules/oset: Likewise.
44962         * modules/list: Likewise.
44963
44964 2006-11-09  Paul Eggert  <eggert@cs.ucla.edu>
44965
44966         * lib/stdint_.h (uintmax_t): Fix typo: int64_t -> uint64_t.
44967         Problem reported by Matthew Woehlke.
44968
44969 2006-11-09  Bruno Haible  <bruno@clisp.org>
44970
44971         * lib/tempname.c (gen_tempname): Remove variant that invokes
44972         __gen_tempname.
44973         * m4/tempname.m4 (gl_FUNC_GEN_TEMPNAME): Don't test for
44974         __gen_tempname.
44975
44976 2006-11-08  Bruno Haible  <bruno@clisp.org>
44977
44978         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Set ac_cv_type_long_long_int
44979         to 'yes' instead of 'cross-compiling'.
44980
44981 2006-11-08  Paul Eggert  <eggert@cs.ucla.edu>
44982
44983         * lib/quotearg.h (quotearg_free): New decl.
44984         * lib/quotearg.c (quotearg_free): New function.
44985         (slot0, nslots, slotvec0, slotvec):
44986         Now file-scope so that quotearg_free can get at them.
44987
44988 2006-11-08  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
44989
44990         Sync from Automake.
44991         * build-aux/gnupload: Add missing 'gnu' to example URL.
44992         Report by Karl Berry.
44993
44994 2006-11-08  Bruno Haible  <bruno@clisp.org>
44995
44996         * m4/inline.m4 (gl_INLINE): Also test __NO_INLINE__.
44997         Suggested by Paul Eggert.
44998
44999 2006-11-08  Jim Meyering  <jim@meyering.net>
45000
45001         * lib/fts.c [!_LGPL_PACKAGE]: Don't include fcntl--.h twice.
45002         It's already included if !_LIBC.
45003         (fts_safe_changedir): Add a comment.
45004
45005 2006-11-07  Paul Eggert  <eggert@cs.ucla.edu>
45006
45007         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Detect bug in
45008         Tandem NonStop Kernel (OSS) cc -O circa 2004, reported by
45009         Matthew Woehlke.
45010
45011         * lib/xalloc.h (XMALLOC, XNMALLOC, XZALLOC, XCALLOC): Move
45012         definitions up, to avoid colliding with change below.
45013         (static_inline) [HAVE_INLINE]: New macro.
45014         (xnmalloc, xnrealloc, x2nrealloc, xcharalloc):
45015         Provide extern decls when !HAVE_INLINE.  Do not define unless
45016         static_inline is defined, either by us or by xmalloc.c.  Use
45017         static_inline rather than static inline.
45018         (XCALLOC): Optimize sizeof(T) = 1 case.
45019         * lib/xmalloc.c (static_inline) [!HAVE_INLINE]: New macro.
45020
45021 2006-11-07  Bruno Haible  <bruno@clisp.org>
45022
45023         * lib/xalloc.h (XNMALLOC): Restore optimization of sizeof(T) = 1 case.
45024         * m4/xalloc.m4 (gl_PREREQ_XALLOC): Require gl_INLINE instead of
45025         AC_C_INLINE.
45026         * modules/xalloc (Files): Add m4/inline.m4.
45027
45028 2006-11-07  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
45029
45030         * README: Fix typo.
45031         * doc/gnulib.texi (Miscellaneous Notes): Likewise, rename...
45032         (Miscellanous Notes): ...from this.
45033
45034 2006-11-07  Paul Eggert  <eggert@cs.ucla.edu>
45035
45036         * m4/flexmember.m4 (AC_C_FLEXIBLE_ARRAY_MEMBER):
45037         Mention that offsetof should be used instead of sizeof.
45038         From Bruno Haible.
45039
45040 2006-11-07  Bruno Haible  <bruno@clisp.org>
45041
45042         * lib/w32spawn.h (prepare_spawn): Use XNMALLOC instead of xmalloc.
45043
45044 2006-11-06  Paul Eggert  <eggert@cs.ucla.edu>
45045
45046         Simplify xmalloc expressions. Add overflow check in xmalloc arguments.
45047         * lib/gl_anyavltree_list2.h (create_subtree_with_contents):
45048         (gl_tree_create, gl_tree_add_first, gl_tree_add_last):
45049         (gl_tree_add_before, gl_tree_add_after):
45050         Use XMALLOC instead of xmalloc, and XCALLOC instead of xzalloc.
45051         * lib/gl_anyhash_list2.h (hash_resize): Likewise.
45052         * lib/gl_anylinked_list2.h (gl_linked_create_empty, gl_linked_create):
45053         (gl_linked_add_first, gl_linked_add_last, gl_linked_add_before):
45054         (gl_linked_add_after, gl_linked_add_at): Likewise.
45055         * lib/gl_anyrbtree_list2.h (create_subtree_with_contents):
45056         (gl_tree_create, gl_tree_add_first, gl_tree_add_last):
45057         (gl_tree_add_before, gl_tree_add_after): Likewise.
45058         * lib/gl_anytree_list2.h (gl_tree_create_empty): Likewise.
45059         * lib/gl_anytree_oset.h (gl_tree_create_empty): Likewise.
45060         * lib/gl_anytreehash_list1.h (add_to_bucket): Likewise.
45061
45062 2006-11-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
45063
45064         * lib/gl_oset.h: Use C comment style, not C++ comment style.
45065
45066 2006-11-06  Bruno Haible  <bruno@clisp.org>
45067
45068         * m4/inline.m4: New file.
45069         * m4/gl_list.m4 (gl_LIST): Require gl_INLINE.
45070         * modules/list (Files): Add m4/inline.m4.
45071         * modules/oset (Files): Likewise.
45072
45073 2006-11-06  Paul Eggert  <eggert@cs.ucla.edu>
45074
45075         * lib/idcache.c: Include <stddef.h>, for offsetof.
45076         (struct userid.name): Change from char * to a flexible array member.
45077         All uses changed.
45078         * modules/idcache (Depends-on): Add flexmember.
45079
45080         * MODULES.html.sh (Core language properties): New module flexmember.
45081         * modules/flexmember, m4/flexmember.m4: New files.
45082
45083         * lib/xalloc.h (xnmalloc, xnrealloc, x2nrealloc): Now static
45084         inline functions that are identical with the old xnmalloc_inline,
45085         xnrealloc_inline, x2nrealloc_inline of lib/xmalloc.c.  This is so
45086         that we can avoid some unnecessary integer multiplications and
45087         divisions in the common case where the element size is known at
45088         compile time.
45089         (XNMALLOC) [HAVE_INLINE]: Remove special case, which is no longer
45090         needed.
45091         (xnboundedmalloc): Remove.
45092         (XMALLOC, XNMALLOC, XZALLOC, XCALLOC): Use lower-case letters for
45093         arguments, for consistency with rest of this header.
45094         (xcharalloc): Rewrite using XNMALLOC.
45095         * lib/xmalloc.c (xnmalloc_inline, xnmalloc, xnrealloc_inline):
45096         (xnrealloc, x2nrealloc_inline, x2nrealloc): Remove.  The *_inline
45097         versions have been moved to lib/xalloc.h and renamed to be the
45098         non-*_inline versions.
45099         (xmalloc, xrealloc): Implement without reference to the xnmalloc
45100         and xnrealloc functions, since those functions are now inline and
45101         now call us.
45102         (x2realloc): Invoke x2realloc, not x2realloc_inline, to accommodate
45103         renaming described above.
45104         * m4/xalloc.m4 (gl_PREREQ_XMALLOC): Remove AC_C_INLINE since
45105         xmalloc.c no longer uses inline directly.  gl_PREREQ_XALLOC now
45106         captures the dependency in AC_C_INLINE.
45107
45108         New module canonicalize-lgpl, proposed by Charles Wilson in
45109         <http://lists.gnu.org/archive/html/bug-gnulib/2006-11/msg00020.html>
45110         with a few small changes afterwards.
45111         * MODULES.html.sh (File system functions): New module
45112         canonicalize-lgpl.
45113         * lib/canonicalize.h: Add comments for canonicalize_filename_mode
45114         and canonicalize_file_name.
45115         * lib/canonicalize-lgpl.c, m4/canonicalize-lgpl.m4:
45116         * modules/canonicalize-lgpl: New files.
45117
45118 2006-11-05  Bruno Haible  <bruno@clisp.org>
45119
45120         * gnulib-tool (func_import, func_create_testdir): Create directories
45121         also for files in subdirectories of lib/.
45122
45123 2006-11-05  Bruno Haible  <bruno@clisp.org>
45124
45125         * lib/gl_array_list.c (gl_array_iterator_next): Make pointer decrement
45126         ANSI C compliant.
45127
45128 2006-11-03  Bruno Haible  <bruno@clisp.org>
45129
45130         Simplify xmalloc expressions. Add overflow check in xmalloc arguments.
45131         * m4/xalloc.m4 (gl_PREREQ_XALLOC): Require AC_C_INLINE.
45132         * lib/xalloc.h (XMALLOC, XNMALLOC, XZALLOC, XCALLOC): New macros.
45133         (xnboundedmalloc): New inline function.
45134         * lib/classpath.c (new_classpath): Use XNMALLOC instead of xmalloc.
45135         * lib/clean-temp.c (create_temp_dir): Use XNMALLOC, XMALLOC instead of
45136         xmalloc.
45137         * lib/concatpath.c (concatenated_pathname): Use XNMALLOC instead of
45138         xmalloc.
45139         * lib/fatal-signal.c (at_fatal_signal): Use XNMALLOC instead of xmalloc.
45140         * lib/findprog.c (find_in_path): Use XNMALLOC instead of xmalloc.
45141         * lib/gl_array_list.c (gl_array_create_empty): Use XMALLOC instead of
45142         xmalloc.
45143         (gl_array_create): Use XNMALLOC, XMALLOC instead of xmalloc.
45144         * lib/gl_array_oset.c (gl_array_create_empty): Use XNMALLOC instead of
45145         xmalloc.
45146         * lib/gl_avltree_oset.c (gl_tree_add_first, gl_tree_add_before,
45147         gl_tree_add_after): Use XMALLOC instead of xmalloc.
45148         * lib/gl_carray_list.c (gl_carray_create_empty): Use XMALLOC instead of
45149         xmalloc.
45150         (gl_carray_create): Use XNMALLOC, XMALLOC instead of xmalloc.
45151         * lib/gl_rbtree_oset.c (gl_tree_add_first, gl_tree_add_before,
45152         gl_tree_add_after): Use XMALLOC instead of xmalloc.
45153         * lib/gl_sublist.c (gl_sublist_create): Use XMALLOC instead of xmalloc.
45154         * lib/pagealign_alloc.c (new_memnode): Use XMALLOC instead of xmalloc.
45155         * lib/sh-quote.c (shell_quote_argv): Use XNMALLOC instead of xmalloc.
45156         * lib/xvasprintf.c (xstrcat): Use XNMALLOC instead of xmalloc.
45157
45158 2006-11-03  Bruno Haible  <bruno@clisp.org>
45159
45160         * lib/c-ctype.h [C++]: Define functions without name mangling.
45161         * lib/fwriteerror.h [C++]: Likewise.
45162         * lib/gcd.h [C++]: Likewise.
45163         * lib/linebreak.h [C++]: Likewise.
45164
45165 2006-11-03  Paul Eggert  <eggert@cs.ucla.edu>
45166
45167         * lib/canonicalize.h: (canonicalize_mode_t, CAN_EXISTING):
45168         (CAN_ALL_BUT_LAST, CAN_MISSING, canonicalize_filename_mode):
45169         Define only if PROVIDE_CANONICALIZE_FILENAME_MODE is defined.
45170         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME):
45171         Check for functions and headers just once.
45172         Check for declaration of canonicalize_file_name.
45173         Define PROVIDE_CANONICALIZE_FILENAME_MODE.
45174
45175 2006-11-02  Charles Wilson  <cygwin@cwilson.fastmail.fm>
45176
45177         * gnulib-tool (func_import): Fix typo in actioncmd.
45178
45179 2006-11-02  Bruno Haible  <bruno@clisp.org>
45180
45181         * gnulib-tool (func_get_automake_snippet): Interpret a backslash-
45182         newline sequence in the Makefile.am snippet as a space, like "make"
45183         does.
45184         Reported by Roger Persson <perrog@gmail.com>.
45185
45186 2006-11-01  Bruno Haible  <bruno@clisp.org>
45187
45188         * m4/strcase.m4 (gl_FUNC_STRNCASECMP): Check whether strncasecmp is
45189         already declared in <string.h>.
45190         * lib/strcase.h (strncasecmp): Don't declare it if yes.
45191
45192 2006-11-01  Bruno Haible  <bruno@clisp.org>
45193
45194         * m4/strcase.m4 (gl_FUNC_STRCASECMP): Don't define strcasecmp here.
45195         * lib/strcase.h: Include <string.h>.
45196         (strcasecmp): Define to rpl_strcasecmp here.
45197
45198 2006-11-01  Bruno Haible  <bruno@clisp.org>
45199
45200         * lib/printf-parse.c (PRINTF_PARSE): Cast malloc/realloc results.
45201
45202 2006-11-01  Eric Blake  <ebb9@byu.net>
45203
45204         * lib/mkstemp-safer.c (mkstemp_safer): Allow C++ compilation.
45205
45206         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Allow C++ configuration.
45207
45208 2006-10-29  Bruno Haible  <bruno@clisp.org>
45209
45210         Make it compile in C++ mode.
45211         * lib/full-write.c (full_rw): Add a cast.
45212
45213 2006-11-01  Bruno Haible  <bruno@clisp.org>
45214
45215         * gnulib-tool (func_get_automake_snippet): Change sed_combine_lines to
45216         be POSIX compliant.
45217         Reported by Roger Persson <perrog@gmail.com>.
45218
45219 2006-11-01  Eric Blake  <ebb9@byu.net>
45220
45221         * lib/getopt_.h: Fix comments.
45222
45223 2006-10-31  Eric Blake  <ebb9@byu.net>
45224
45225         * modules/tmpdir (Depends-on): Add sys_stat.
45226         * modules/mkdtemp (Depends-on): Add tempname, drop unistd.
45227         * lib/mkdtemp.c (gen_tempname): Remove; tempname covers this.
45228         * lib/tmpdir.c (S_ISDIR): Simplify, thanks to sys_stat.
45229         * m4/mkdtemp.m4 (gl_PREREQ_MKDTEMP): Simplify, thanks to
45230         tempname.
45231
45232 2006-10-31  Paul Eggert  <eggert@cs.ucla.edu>
45233
45234         Avoid some C++ diagnostics reported by Bruno Haible.
45235         * lib/quotearg.c (clone_quoting_options): Use xmemdup rather than
45236         xmalloc.
45237         (quotearg_alloc): Use xcharalloc rather than xmalloc.
45238         (struct slotvec): Move to top level.
45239         (quotearg_n_options): Rewrite to avoid xmalloc.
45240         * lib/xalloc.h (xcharalloc): New function.
45241         * (xrealloc, xnrealloc, x2realloc, x2nrealloc, xmemdup):
45242         [defined __cplusplus]: Add function template that provides result
45243         type propagation.  This part of the change is from Bruno Haible.
45244
45245 2006-10-29  Bruno Haible  <bruno@clisp.org>
45246
45247         Make it compile in C++ mode.
45248         * lib/striconv.c (mem_cd_iconv): Cast malloc/realloc result.
45249         * lib/strnlen1.c (strnlen1): Cast memchr result.
45250         * lib/mbchar.h (mb_copy): Rename arguments to 'new_mbc', 'old_mbc'.
45251         * lib/clean-temp.c (string_equals, string_hash): Add casts.
45252         (create_temp_dir): Rename local variable 'template'.
45253         (compile_csharp_using_sscli): Add cast.
45254         * lib/fatal-signal.c (at_fatal_signal): Cast xmalloc result.
45255         * lib/findprog.c (find_in_path): Likewise.
45256         * lib/linebreak.c (mbs_width_linebreaks): Cast malloc result.
45257         * lib/wait-process.c (register_slave_subprocess): Likewise.
45258
45259 2006-10-22  Bruno Haible  <bruno@clisp.org>
45260
45261         * modules/tsearch: New file.
45262         * lib/tsearch.h: New file.
45263         * lib/tsearch.c: New file, from glibc-2.5 with small modifications.
45264         * m4/tsearch.m4: New file.
45265         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add tsearch.
45266
45267 2006-10-29  Eric Blake  <ebb9@byu.net>
45268
45269         * lib/arcfour.c: Assume config.h.
45270         * lib/arctwo.c: Likewise.
45271         * lib/base64.c: Likewise.
45272         * lib/check-version.c: Likewise.
45273         * lib/crc.c: Likewise.
45274         * lib/des.c: Likewise.
45275         * lib/gc-gnulib.c: Likewise.
45276         * lib/gc-libgcrypt.c: Likewise.
45277         * lib/gc-pbkdf2-sha1.c: Likewise.
45278         * lib/getaddrinfo.c: Likewise.
45279         * lib/getdelim.c: Likewise.
45280         * lib/getline.c: Likewise.
45281         * lib/hmac-md5.c: Likewise.
45282         * lib/hmac-sha1.c: Likewise.
45283         * lib/iconvme.c: Likewise.
45284         * lib/md2.c: Likewise.
45285         * lib/md4.c: Likewise.
45286         * lib/memxor.c: Likewise.
45287         * lib/read-file.c: Likewise.
45288         * lib/readline.c: Likewise.
45289         * lib/rijndael-alg-fst.c: Likewise.
45290         * lib/rijndael-api-fst.c: Likewise.
45291         * lib/xgetdomainname.c: Likewise.
45292
45293 2006-10-28  Eric Blake  <ebb9@byu.net>
45294
45295         * lib/xstrndup.c: Assume config.h.
45296
45297 2006-10-27  Paul Eggert  <eggert@cs.ucla.edu>
45298
45299         Move stat.h-substitute stuff from lib/stat-macros.h to lib/stat_.h.
45300         stat-macros.h is now for our own macros, whereas stat_h is for
45301         macros in the <sys/stat.h> name space.
45302         * lib/stat-macros.h: Remove copyright notice, as this file is now tiny.
45303         (STAT_MACROS_H): Remove.
45304         (S_IFMT, S_ISBLK, S_ISCHR, S_ISDIR, S_ISFIFO, S_ISLNK, S_ISNAM):
45305         (S_ISMPB, S_ISMPC, S_ISNWK, S_ISREG, S_ISSOCK, S_ISDOOR, S_ISPORT):
45306         (S_TYPEISMQ, S_TYPEISTMO, S_TYPEISSEM, S_TYPEISSHM, S_ISCTG, S_ISOFD):
45307         (S_ISOFL, S_ISWHT, S_ISUID, S_ISGID, S_ISVTX, S_IRUSR, S_IRGRP):
45308         (S_IROTH, S_IWUSR, S_IWGRP, S_IWOTH, S_IXUSR, S_IXGRP, S_IXOTH):
45309         (S_IRWXU, S_IRWXG, S_IRWXO, S_IXUGO, S_IRWXUGO):
45310         Move these macros to ...
45311         * lib/stat_.h: here.  Don't include stat-macros.h.
45312         * lib/canonicalize.c: Don't include stat-macros.h.
45313         * lib/chown.c: Likewise.
45314         * lib/euidaccess.c: Likewise.
45315         * lib/file-type.c: Likewise.
45316         * lib/filemode.c: Likewise.
45317         * lib/glob.c: Likewise.
45318         * lib/isapipe.c: Likewise.
45319         * lib/lchown.c: Likewise.
45320         * lib/lstat.c: Likewise.
45321         * lib/mkdir-p.c: Likewise.
45322         * lib/rmdir.c: Likewise.
45323         * m4/lchown.m4 (gl_FUNC_LCHOWN): Don't require gl_STAT_MACROS.
45324         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Don't check for io.h
45325         unless mkdir isn't declared, to speed up 'configure'.
45326         Always create sys/stat.h, since it's unlikely any real sys/stat.h
45327         would define all the S_* symbols.
45328         * modules/canonicalize (Depends-on):
45329         Depend on sys_stat, not stat-macros.
45330         * modules/chown: Likewise.
45331         * modules/euidaccess: Likewise.
45332         * modules/filemode: Likewise.
45333         * modules/file-type: Likewise.
45334         * modules/glob: Likewise.
45335         * modules/isapipe: Likewise.
45336         * modules/lchown: Likewise.
45337         * modules/lstat: Likewise.
45338         * modules/mkancesdirs: Likewise.
45339         * modules/rmdir: Likewise.
45340         * modules/mkdir-p (Depends-on): Also depend on sys_stat.
45341         * modules/modechange: Likewise.
45342         * modules/stat-macros (Files): Remove m4/stat-macros.m4.
45343         (configure.ac): Remove gl_STAT_MACROS.
45344         * modules/sys_stat (Depends-on): Remove stat-macros.
45345
45346 2006-10-27  Bruno Haible  <bruno@clisp.org>
45347
45348         * m4/signed.m4: Remove file.
45349         * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_ARGS_: Remove bh_C_SIGNED
45350         invocation.
45351         * modules/vasnprintf (Files): Remove m4/signed.m4.
45352
45353 2006-10-27  Bruno Haible  <bruno@clisp.org>
45354
45355         Update to GNU gettext 0.16.
45356         * modules/gettext (Files): Add m4/intl.m4, m4/intldir.m4. Remove
45357         m4/inttypes-h.m4, m4/signed.m4.
45358         * m4/gettext.m4: Update to GNU gettext 0.16.
45359         * m4/intl.m4: New file, from GNU gettext.
45360         * m4/intldir.m4: New file, from GNU gettext.
45361         * config/srclist.txt: Update
45362
45363 2006-10-27  Eric Blake  <ebb9@byu.net>
45364
45365         * MODULES.html.sh: Document tempname.
45366         * modules/mkstemp (Depends-on): Add tempname, and drop transitive
45367         dependencies.
45368         (Files): Move lib/tempname.c...
45369         * modules/tempname: ...to this new module.
45370         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Remove tempname checks.
45371         (gl_PREREQ_TEMPNAME): Move...
45372         * m4/tempname.m4: ...to this new file.
45373         * lib/mkstemp.c (includes) [!_LIBC]: Use tempname.h.
45374         * modules/sys_stat (Depends-on): Add stat-macros.
45375         * lib/stat_.h (includes): Pick up stat macros.
45376         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Replace <sys/stat.h>
45377         if stat macros are broken.
45378         * lib/tempname.c (includes): No need to include "stat-macros.h".
45379         (__gen_tempname) [!_LIBC]: Expose as gen_tempname.
45380         (direxists, __path_search) [!_LIBC]: Don't compile these in
45381         gnulib; the tmpdir module covers that.
45382         * lib/tempname.h: New file.
45383
45384 2006-10-26  Paul Eggert  <eggert@cs.ucla.edu>
45385
45386         * COPYING: Explain how gnulib-tool converts licence headers.
45387         Almost all wording by Eric Blake.
45388
45389 2006-10-25  Paul Eggert  <eggert@cs.ucla.edu>
45390
45391         * lib/mbchar.h (is_basic_table): Make read-only.
45392         * lib/mbchar.c (is_basic_table): Likewise.
45393         Reported by John Darrington.
45394
45395 2006-10-25  Bruno Haible  <bruno@clisp.org>
45396
45397         * lib/progname.h (set_program_name): Undefine before defining.
45398
45399 2006-10-25  Bruno Haible  <bruno@clisp.org>
45400
45401         * lib/gettext.h (_LIBGETTEXT_HAVE_VARIABLE_SIZE_ARRAYS): Define to
45402         false for non-gcc C++ compilers.
45403         Reported by Nelson H. F. Beebe <beebe@math.utah.edu>.
45404
45405 2006-10-24  Bruno Haible  <bruno@clisp.org>
45406
45407         * lib/striconv.c (mem_cd_iconv, str_cd_iconv): Treat all non-GNU
45408         iconv implementations like Irix iconv.
45409
45410 2006-10-24  Paul Eggert  <eggert@cs.ucla.edu>
45411
45412         * modules/vararrays: New file.
45413         * m4/vararrays.m4: New file, taken from diffutils.
45414         * MODULES.html.sh: New module vararrays.
45415
45416 2006-10-24  Karl Berry  <karl@gnu.org>
45417
45418         * doc/gnulib-intro.texi: --- instead of --; non-naive naive.
45419         Don't call GNU Unix.
45420
45421 2006-10-24  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
45422
45423         * users.txt: Add Libtool.
45424
45425         Sync from Libtool:
45426
45427         2006-10-24  Paul Eggert  <eggert@cs.ucla.edu>
45428
45429         * lib/argz.c: Remove check for HAVE_CONFIG_H, to conform
45430         to gnulib's policy of including config.h unconditionally.
45431
45432 2006-10-24  Bruno Haible  <bruno@clisp.org>
45433
45434         * modules/wcwidth (Files): Add m4/wint_t.m4.
45435         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Require gt_TYPE_WINT_T.
45436         * lib/wcwidth.h (iswprint): Use 'int' if 'wint_t' is not defined.
45437
45438 2006-10-24  Paul Eggert  <eggert@cs.ucla.edu>
45439
45440         * lib/getdate.y (yyerror): Make the arguments pointer-to-const,
45441         to pacify GCC with some -W flags enabled.  Problem reported by
45442         Bruno Haible.
45443
45444 2006-10-24  Jim Meyering  <jim@meyering.net>
45445
45446         * MODULES.html.sh: Remove uinttostr.  It's not a module.
45447         Reported by Karl Berry.
45448
45449 2006-10-23  Bruno Haible  <bruno@clisp.org>
45450
45451         * lib/fts.c (fts_build): Move variable declaration, for C89 compliance.
45452
45453 2006-10-24  Bruno Haible  <bruno@clisp.org>
45454
45455         * lib/gl_list.h: Use C comment style, not C++ comment style.
45456
45457 2006-10-23  Eric Blake  <ebb9@byu.net>
45458
45459         * lib/getaddrinfo.c (includes): Add missing include.
45460
45461 2006-10-23  Bruno Haible  <bruno@clisp.org>
45462             Paul Eggert  <eggert@cs.ucla.edu>
45463
45464         Ability to rename obstack_free.
45465         * lib/obstack.h (__obstack_free): New macro. Declare instead of
45466         obstack_free.
45467         (obstack_free): Invoke the __obstack_free macro.
45468         * lib/obstack.c (obstack_free): Use __obstack_free macro.
45469
45470 2006-10-23  Bruno Haible  <bruno@clisp.org>
45471             Paul Eggert  <eggert@cs.ucla.edu>
45472
45473         * lib/argp.h (argp_parse, __argp_parse): Comment out the identifiers
45474         __argc, __argv from the declaration. (They are defined as macros on
45475         mingw.)
45476
45477 2006-10-22  Bruno Haible  <bruno@clisp.org>
45478
45479         * doc/gnulib-intro.texi: New file.
45480         * doc/gnulib.texi: Include it.
45481
45482 2006-10-21  Bruno Haible  <bruno@clisp.org>
45483
45484         * doc/gnulib.texi: Split the chapter "Gnulib" into 3 chapters
45485         "Introduction", "Miscellanous Notes", "Particular Modules".
45486
45487 2006-10-21  Bruno Haible  <bruno@clisp.org>
45488
45489         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
45490         Change mostlyclean-local rule to avoid sh syntax error from bash
45491         versions 2.00..2.05 when $(MOSTLYCLEANDIRS) is empty.
45492
45493 2006-10-23  Jim Meyering  <jim@meyering.net>
45494
45495         * lib/getaddrinfo.c (getnameinfo): Use new lightweight uinttostr,
45496         in place of snprintf.
45497
45498         * modules/inttostr (Files): Add lib/uinttostr.c.
45499         * lib/uinttostr.c (inttostr): New file/function.
45500         * lib/inttostr.h (uinttostr): Declare.
45501         * m4/inttostr.m4: Add AC_LIBOBJ([uinttostr]).
45502         * MODULES.html.sh (Numeric conversion functions <stdlib.h>):
45503         Add uinttostr.
45504         * modules/getaddrinfo (Depends-on): Remove snprintf.  Add inttostr.
45505
45506 2006-10-21  Paul Eggert  <eggert@cs.ucla.edu>
45507
45508         * lib/canonicalize.c (ELOOP): Define if not already defined.
45509         Problem reported by Bruno Haible in
45510         <http://lists.gnu.org/archive/html/bug-gnulib/2006-10/msg00282.html>.
45511
45512 2006-10-21  Paul Eggert  <eggert@cs.ucla.edu>
45513
45514         * lib/stdint_.h [defined _AIX]: Don't include <sys/types.h>.
45515         Problem reported by Perry Smith and Ville Laurikari.
45516
45517         * lib/getndelim2.c (SSIZE_MAX): Use same defn that getdelim.c
45518         uses.
45519
45520 2006-10-19  Bruno Haible  <bruno@clisp.org>
45521
45522         * lib/getndelim2.c (SSIZE_MAX): Provide fallback definition. Needed
45523         for mingw.
45524
45525 2006-10-19  Bruno Haible  <bruno@clisp.org>
45526
45527         * lib/openat-priv.h (EOPNOTSUPP): Provide fallback definition.
45528         Needed for mingw.
45529
45530 2006-10-19  Bruno Haible  <bruno@clisp.org>
45531
45532         * m4/size_max.m4 (gl_SIZE_MAX): Cache the result.
45533
45534 2006-10-19  Bruno Haible  <bruno@clisp.org>
45535
45536         * m4/allocsa.m4 (gl_ALLOCSA): Invoke gl_FUNC_ALLOCA, don't AC_REQUIRE
45537         it.
45538
45539 2006-10-19  Bruno Haible  <bruno@clisp.org>
45540
45541         * m4/alloca.m4 (gl_FUNC_ALLOCA): Cache the result of the AC_EGREP_CPP
45542         invocation.
45543
45544 2006-10-19  Bruno Haible  <bruno@clisp.org>
45545
45546         * gnulib-tool (func_create_testdir): Don't include ftruncate and
45547         mountlist by default.
45548
45549 2006-10-16  Bruno Haible  <bruno@clisp.org>
45550
45551         * lib/c-strstr.c: Include c-strstr.h.
45552
45553 2006-10-18  Charles Wilson  <cygwin@cwilson.fastmail.fm>
45554
45555         * gnulib-tool: Don't clobber $sourcebase when $local_gnulib_dir ends
45556         in a slash.
45557
45558 2006-10-18  Bruno Haible  <bruno@clisp.org>
45559
45560         * lib/lock.h [C++]: Wrap definitions in extern "C".
45561
45562 2006-10-18  Bruno Haible  <bruno@clisp.org>
45563
45564         * gnulib-tool (func_emit_initmacro_end): Remove duplicates from the
45565         gl_LIBOBJS list.
45566
45567 2006-10-18  Bruno Haible  <bruno@clisp.org>
45568
45569         * lib/findprog.c (find_in_path): Avoid "gcc -Wwrite-strings" warning.
45570
45571 2006-10-19  Paul Eggert  <eggert@cs.ucla.edu>
45572
45573         * lib/xstrtol.h: Include gettext.h.
45574         (_STRTOL_ERROR): Wrap English-language formats inside gettext.
45575         Problem reported by Eric Blake.
45576         * modules/xstrtol (Depends-on): Add gettext-h.
45577
45578 2006-10-19  Paul Eggert  <eggert@cs.ucla.edu>  (tiny change)
45579
45580         * lib/strftime.c (advance): New macro.
45581         (add): Use it to avoid adding 0 to a FILE *.  FILE can be an
45582         incomplete type, so you can't add 0 to it.  Problem and patch
45583         reported by Eelco Dolstra for dietlibc.
45584
45585 2006-10-18  Jim Meyering  <jim@meyering.net>
45586
45587         * lib/readutmp.c (desirable_utmp_entry): Use "bool" as the
45588         type for a local, and rename it: s/up/user_proc/.
45589
45590 2006-10-18  Sergey Poznyakoff  <gray@gnu.org.ua>
45591
45592         * lib/readutmp.c (desirable_utmp_entry): Implement new flag:
45593         READ_UTMP_USER_PROCESS.
45594         * lib/readutmp.h (READ_UTMP_USER_PROCESS): New flag
45595
45596 2006-10-17  Paul Eggert  <eggert@cs.ucla.edu>
45597
45598         * lib/localcharset.c: Do not check HAVE_SETLOCALE.
45599         * m4/localcharset.m4 (gl_LOCALCHARSET): Don't check for setlocale.
45600
45601 2006-10-17  Eric Blake  <ebb9@byu.net>
45602
45603         * lib/sigprocmask.c (sigprocmask): Fix typo.
45604
45605         * m4/signalblocking.m4 (gl_PREREQ_SIGPROCMASK): Fix typo.
45606
45607         * modules/clean-temp (Makefile.am): Don't add to make output...
45608         (configure.ac): ...instead define SIGNAL_SAFE_LIST inside
45609         config.h.
45610
45611 2006-10-17  Bruno Haible  <bruno@clisp.org>
45612
45613         * lib/gettext.h (gettext, ngettext, pgettext, npgettext): Define
45614         differently if DEFAULT_TEXT_DOMAIN is set.
45615
45616 2006-10-16  Bruno Haible  <bruno@clisp.org>
45617
45618         * lib/clean-temp.c: Include fwriteerror.h.
45619
45620 2006-10-16  Bruno Haible  <bruno@clisp.org>
45621
45622         * getndelim2.m4 (gl_GETNDELIM2): Remove 2003-10-23 hack.
45623
45624 2006-10-16  Bruno Haible  <bruno@clisp.org>
45625
45626         * m4/signalblocking.m4 (gl_PREREQ_SIGPROCMASK): Also test for sigset_t.
45627         * lib/sigprocmask.h: Include <sys/types.h>.
45628         (sigset_t): Use the system's definition if present.
45629
45630 2006-10-17  Eric Blake  <ebb9@byu.net>
45631
45632         * lib/xvasprintf.c (includes): Assume config.h.
45633         * lib/xasprintf.c (includes): Likewise.
45634
45635 2006-10-16  Paul Eggert  <eggert@cs.ucla.edu>
45636
45637         * lib/fsusage.c (PROPAGATE_ALL_ONES): Don't assume uintmax_t is
45638         at least as wide as intmax_t.
45639
45640 2006-10-16  Alexandre Duret-Lutz  <adl@gnu.org>
45641
45642         (Imported from Automake.)
45643         * build-aux/gnupload: Update to version 1.1 of directive file.
45644
45645 2006-10-16  Eric Blake  <ebb9@byu.net>
45646
45647         * modules/configmake (Makefile.am): Add pkglibexecdir support, to
45648         match Automake 1.10a.
45649
45650 2006-10-14  Bruno Haible  <bruno@clisp.org>
45651
45652         * modules/sigprocmask: New file.
45653         * lib/sigprocmask.h: New file.
45654         * lib/sigprocmask.c: New file.
45655         * m4/signalblocking.m4 (gl_SIGNALBLOCKING): Renamed from
45656         gt_SIGNALBLOCKING. When not defining HAVE_POSIX_SIGNALBLOCKING,
45657         request sigprocmask.o.
45658         (gl_PREREQ_SIGPROCMASK): New macro.
45659         * modules/fatal-signal (Files): Remove m4/signalblocking.m4.
45660         (Depends-on): Add sigprocmask.
45661         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Don't require
45662         gt_SIGNALBLOCKING. Test for 'raise' only once.
45663         * lib/fatal-signal.c: Include sigprocmask.h.
45664         (fatal_signal_set, init_fatal_signal_set, block_fatal_signals,
45665         unblock_fatal_signals): Define always.
45666         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
45667         sigprocmask.
45668
45669 2006-10-14  Paul Eggert  <eggert@cs.ucla.edu>
45670
45671         Sync from Automake.
45672         * build-aux/install-sh (posix_mkdir): Reject FreeBSD 6.1 mkdir -p -m,
45673         which incorrectly sets the mode of an existing destination
45674         directory.  In some cases the unpatched install-sh could do the
45675         equivalent of "chmod 777 /" or "chmod 0 /" on a buggy FreeBSD
45676         system.  We hope this is rare in practice, but it's clearly worth
45677         fixing.  Problem reported by Alex Unleashed in
45678         <http://lists.gnu.org/archive/html/bug-autoconf/2006-10/msg00012.html>.
45679         Also, don't bother to check for -m bugs unless we're using -m;
45680         suggested by Stepan Kasal.
45681
45682 2006-10-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
45683
45684         Sync from Automake.
45685         * build-aux/depcomp (gcc3): Put dependency extraction flags before the
45686         `-c' flag, so they appear at the same position as in %FASTDEP%
45687         mode in depend2.am.  Fixes build failure for FreeBSD's c89,
45688         which ignores unknown options only after the first non-option.
45689         Bug report against M4 by Nelson H. F. Beebe.
45690
45691 2006-10-13  Jim Meyering  <jim@meyering.net>
45692
45693         Fix a bug in yesterday's change.
45694         * lib/fts.c (fts_open): When using FTS_XDEV|FTS_NOSTAT,
45695         p->fts_statp->st_dev would be used uninitialized.
45696         Ensures that we always call fts_stat on the very first entry.
45697         Miklos Szeredi reported that find -xdev stopped working.
45698
45699 2006-10-12  Bruno Haible  <bruno@clisp.org>
45700
45701         * gnulib-tool (func_get_automake_snippet): Append an automatically
45702         computed EXTRA_DIST augmentation.
45703         * modules/acl (Makefile.am): Remove EXTRA_DIST augmentation.
45704         * modules/alloca-opt (Makefile.am): Likewise.
45705         * modules/allocsa (Makefile.am): Likewise.
45706         * modules/arcfour (Makefile.am): Likewise.
45707         * modules/arctwo (Makefile.am): Likewise.
45708         * modules/argmatch (Makefile.am): Likewise.
45709         * modules/argz (Makefile.am): Likewise.
45710         * modules/atexit (Makefile.am): Likewise.
45711         * modules/backupfile (Makefile.am): Likewise.
45712         * modules/byteswap (Makefile.am): Likewise.
45713         * modules/c-strtod (Makefile.am): Likewise.
45714         * modules/c-strtold (Makefile.am): Likewise.
45715         * modules/calloc (Makefile.am): Likewise.
45716         * modules/canon-host (Makefile.am): Likewise.
45717         * modules/canonicalize (Makefile.am): Likewise.
45718         * modules/chdir-long (Makefile.am): Likewise.
45719         * modules/chdir-safer (Makefile.am): Likewise.
45720         * modules/check-version (Makefile.am): Likewise.
45721         * modules/chown (Makefile.am): Likewise.
45722         * modules/cloexec (Makefile.am): Likewise.
45723         * modules/close-stream (Makefile.am): Likewise.
45724         * modules/closeout (Makefile.am): Likewise.
45725         * modules/crc (Makefile.am): Likewise.
45726         * modules/csharpexec (Makefile.am): Likewise.
45727         * modules/cycle-check (Makefile.am): Likewise.
45728         * modules/des (Makefile.am): Likewise.
45729         * modules/dev-ino (Makefile.am): Likewise.
45730         * modules/dirfd (Makefile.am): Likewise.
45731         * modules/dirname (Makefile.am): Likewise.
45732         * modules/dup2 (Makefile.am): Likewise.
45733         * modules/eealloc (Makefile.am): Likewise.
45734         * modules/error (Makefile.am): Likewise.
45735         * modules/euidaccess (Makefile.am): Likewise.
45736         * modules/exclude (Makefile.am): Likewise.
45737         * modules/exitfail (Makefile.am): Likewise.
45738         * modules/fcntl-safer (Makefile.am): Likewise.
45739         * modules/fcntl (Makefile.am): Likewise.
45740         * modules/file-type (Makefile.am): Likewise.
45741         * modules/fileblocks (Makefile.am): Likewise.
45742         * modules/filemode (Makefile.am): Likewise.
45743         * modules/filenamecat (Makefile.am): Likewise.
45744         * modules/fnmatch (Makefile.am): Likewise.
45745         * modules/fopen-safer (Makefile.am): Likewise.
45746         * modules/fpending (Makefile.am): Likewise.
45747         * modules/fprintftime (Makefile.am): Likewise.
45748         * modules/free (Makefile.am): Likewise.
45749         * modules/fsusage (Makefile.am): Likewise.
45750         * modules/ftruncate (Makefile.am): Likewise.
45751         * modules/fts (Makefile.am): Likewise.
45752         * modules/gc-arcfour (Makefile.am): Likewise.
45753         * modules/gc-des (Makefile.am): Likewise.
45754         * modules/gc-hmac-md5 (Makefile.am): Likewise.
45755         * modules/gc-hmac-sha1 (Makefile.am): Likewise.
45756         * modules/gc-md4 (Makefile.am): Likewise.
45757         * modules/gc-pbkdf2-sha1 (Makefile.am): Likewise.
45758         * modules/gc-sha1 (Makefile.am): Likewise.
45759         * modules/gc (Makefile.am): Likewise.
45760         * modules/getaddrinfo (Makefile.am): Likewise.
45761         * modules/getcwd (Makefile.am): Likewise.
45762         * modules/getdelim (Makefile.am): Likewise.
45763         * modules/getdomainname (Makefile.am): Likewise.
45764         * modules/getgroups (Makefile.am): Likewise.
45765         * modules/gethostname (Makefile.am): Likewise.
45766         * modules/gethrxtime (Makefile.am): Likewise.
45767         * modules/getline (Makefile.am): Likewise.
45768         * modules/getloadavg (Makefile.am): Likewise.
45769         * modules/getlogin_r (Makefile.am): Likewise.
45770         * modules/getndelim2 (Makefile.am): Likewise.
45771         * modules/getopt (Makefile.am): Likewise.
45772         * modules/getpagesize (Makefile.am): Likewise.
45773         * modules/getpass-gnu (Makefile.am): Likewise.
45774         * modules/getpass (Makefile.am): Likewise.
45775         * modules/getsubopt (Makefile.am): Likewise.
45776         * modules/gettime (Makefile.am): Likewise.
45777         * modules/gettimeofday (Makefile.am): Likewise.
45778         * modules/getugroups (Makefile.am): Likewise.
45779         * modules/getusershell (Makefile.am): Likewise.
45780         * modules/glob (Makefile.am): Likewise.
45781         * modules/group-member (Makefile.am): Likewise.
45782         * modules/hard-locale (Makefile.am): Likewise.
45783         * modules/hash (Makefile.am): Likewise.
45784         * modules/hmac-md5 (Makefile.am): Likewise.
45785         * modules/hmac-sha1 (Makefile.am): Likewise.
45786         * modules/human (Makefile.am): Likewise.
45787         * modules/idcache (Makefile.am): Likewise.
45788         * modules/imaxabs (Makefile.am): Likewise.
45789         * modules/imaxdiv (Makefile.am): Likewise.
45790         * modules/inet_ntop (Makefile.am): Likewise.
45791         * modules/inet_pton (Makefile.am): Likewise.
45792         * modules/intprops (Makefile.am): Likewise.
45793         * modules/inttostr (Makefile.am): Likewise.
45794         * modules/inttypes (Makefile.am): Likewise.
45795         * modules/isapipe (Makefile.am): Likewise.
45796         * modules/javaversion (Makefile.am): Likewise.
45797         * modules/lchmod (Makefile.am): Likewise.
45798         * modules/lchown (Makefile.am): Likewise.
45799         * modules/localcharset (Makefile.am): Likewise.
45800         * modules/long-options (Makefile.am): Likewise.
45801         * modules/lstat (Makefile.am): Likewise.
45802         * modules/malloc (Makefile.am): Likewise.
45803         * modules/mathl (Makefile.am): Likewise.
45804         * modules/mbchar (Makefile.am): Likewise.
45805         * modules/md2 (Makefile.am): Likewise.
45806         * modules/md4 (Makefile.am): Likewise.
45807         * modules/md5 (Makefile.am): Likewise.
45808         * modules/memcasecmp (Makefile.am): Likewise.
45809         * modules/memchr (Makefile.am): Likewise.
45810         * modules/memcmp (Makefile.am): Likewise.
45811         * modules/memcoll (Makefile.am): Likewise.
45812         * modules/memcpy (Makefile.am): Likewise.
45813         * modules/memmem (Makefile.am): Likewise.
45814         * modules/memmove (Makefile.am): Likewise.
45815         * modules/mempcpy (Makefile.am): Likewise.
45816         * modules/memrchr (Makefile.am): Likewise.
45817         * modules/memset (Makefile.am): Likewise.
45818         * modules/memxor (Makefile.am): Likewise.
45819         * modules/mkancesdirs (Makefile.am): Likewise.
45820         * modules/mkdir-p (Makefile.am): Likewise.
45821         * modules/mkdir (Makefile.am): Likewise.
45822         * modules/mkdtemp (Makefile.am): Likewise.
45823         * modules/mkstemp (Makefile.am): Likewise.
45824         * modules/mktime (Makefile.am): Likewise.
45825         * modules/modechange (Makefile.am): Likewise.
45826         * modules/mountlist (Makefile.am): Likewise.
45827         * modules/nanosleep (Makefile.am): Likewise.
45828         * modules/obstack (Makefile.am): Likewise.
45829         * modules/openat (Makefile.am): Likewise.
45830         * modules/pagealign_alloc (Makefile.am): Likewise.
45831         * modules/pathmax (Makefile.am): Likewise.
45832         * modules/physmem (Makefile.am): Likewise.
45833         * modules/poll (Makefile.am): Likewise.
45834         * modules/posixtm (Makefile.am): Likewise.
45835         * modules/posixver (Makefile.am): Likewise.
45836         * modules/putenv (Makefile.am): Likewise.
45837         * modules/quote (Makefile.am): Likewise.
45838         * modules/quotearg (Makefile.am): Likewise.
45839         * modules/raise (Makefile.am): Likewise.
45840         * modules/read-file (Makefile.am): Likewise.
45841         * modules/readline (Makefile.am): Likewise.
45842         * modules/readlink (Makefile.am): Likewise.
45843         * modules/readtokens (Makefile.am): Likewise.
45844         * modules/readutmp (Makefile.am): Likewise.
45845         * modules/realloc (Makefile.am): Likewise.
45846         * modules/regex (Makefile.am): Likewise.
45847         * modules/rename-dest-slash (Makefile.am): Likewise.
45848         * modules/rename (Makefile.am): Likewise.
45849         * modules/rijndael (Makefile.am): Likewise.
45850         * modules/rmdir (Makefile.am): Likewise.
45851         * modules/rpmatch (Makefile.am): Likewise.
45852         * modules/safe-read (Makefile.am): Likewise.
45853         * modules/safe-write (Makefile.am): Likewise.
45854         * modules/same-inode (Makefile.am): Likewise.
45855         * modules/same (Makefile.am): Likewise.
45856         * modules/save-cwd (Makefile.am): Likewise.
45857         * modules/savedir (Makefile.am): Likewise.
45858         * modules/setenv (Makefile.am): Likewise.
45859         * modules/settime (Makefile.am): Likewise.
45860         * modules/sha1 (Makefile.am): Likewise.
45861         * modules/sig2str (Makefile.am): Likewise.
45862         * modules/snprintf (Makefile.am): Likewise.
45863         * modules/stat-macros (Makefile.am): Likewise.
45864         * modules/stat-time (Makefile.am): Likewise.
45865         * modules/stdbool (Makefile.am): Likewise.
45866         * modules/stdint (Makefile.am): Likewise.
45867         * modules/stdlib-safer (Makefile.am): Likewise.
45868         * modules/stpcpy (Makefile.am): Likewise.
45869         * modules/stpncpy (Makefile.am): Likewise.
45870         * modules/strcase (Makefile.am): Likewise.
45871         * modules/strcasestr (Makefile.am): Likewise.
45872         * modules/strchrnul (Makefile.am): Likewise.
45873         * modules/strcspn (Makefile.am): Likewise.
45874         * modules/strdup (Makefile.am): Likewise.
45875         * modules/strerror (Makefile.am): Likewise.
45876         * modules/strftime (Makefile.am): Likewise.
45877         * modules/strndup (Makefile.am): Likewise.
45878         * modules/strnlen (Makefile.am): Likewise.
45879         * modules/strpbrk (Makefile.am): Likewise.
45880         * modules/strsep (Makefile.am): Likewise.
45881         * modules/strstr (Makefile.am): Likewise.
45882         * modules/strtod (Makefile.am): Likewise.
45883         * modules/strtoimax (Makefile.am): Likewise.
45884         * modules/strtok_r (Makefile.am): Likewise.
45885         * modules/strtol (Makefile.am): Likewise.
45886         * modules/strtoll (Makefile.am): Likewise.
45887         * modules/strtoul (Makefile.am): Likewise.
45888         * modules/strtoull (Makefile.am): Likewise.
45889         * modules/strtoumax (Makefile.am): Likewise.
45890         * modules/strverscmp (Makefile.am): Likewise.
45891         * modules/sys_socket (Makefile.am): Likewise.
45892         * modules/sys_stat (Makefile.am): Likewise.
45893         * modules/sysexits (Makefile.am): Likewise.
45894         * modules/time_r (Makefile.am): Likewise.
45895         * modules/timegm (Makefile.am): Likewise.
45896         * modules/timespec (Makefile.am): Likewise.
45897         * modules/tmpfile-safer (Makefile.am): Likewise.
45898         * modules/trim (Makefile.am): Likewise.
45899         * modules/unistd-safer (Makefile.am): Likewise.
45900         * modules/unlinkdir (Makefile.am): Likewise.
45901         * modules/unlocked-io (Makefile.am): Likewise.
45902         * modules/userspec (Makefile.am): Likewise.
45903         * modules/utime (Makefile.am): Likewise.
45904         * modules/utimecmp (Makefile.am): Likewise.
45905         * modules/utimens (Makefile.am): Likewise.
45906         * modules/vasnprintf (Makefile.am): Likewise.
45907         * modules/vasprintf (Makefile.am): Likewise.
45908         * modules/vsnprintf (Makefile.am): Likewise.
45909         * modules/xalloc (Makefile.am): Likewise.
45910         * modules/xgetcwd (Makefile.am): Likewise.
45911         * modules/xnanosleep (Makefile.am): Likewise.
45912         * modules/xreadlink (Makefile.am): Likewise.
45913         * modules/xstrtod (Makefile.am): Likewise.
45914         * modules/xstrtol (Makefile.am): Likewise.
45915         * modules/xstrtold (Makefile.am): Likewise.
45916         * modules/yesno (Makefile.am): Likewise.
45917         * modules/getdate (Makefile.am): Don't add getdate.h to EXTRA_DIST.
45918
45919 2006-10-12  Paul Eggert  <eggert@cs.ucla.edu>
45920
45921         * modules/error (Makefile.am): Distribute files through
45922         EXTRA_DIST, not lib_SOURCES.
45923
45924 2006-10-12  Eric Blake  <ebb9@byu.net>
45925
45926         * modules/error (Makefile.am): Distribute files in /lib.
45927         * modules/obstack (Makefile.am): Likewise.
45928
45929 2006-10-12  Bruno Haible  <bruno@clisp.org>
45930
45931         * modules/acl (Makefile.am): Distribute all files in lib/ through
45932         EXTRA_DIST.
45933         * modules/arcfour (Makefile.am): Likewise.
45934         * modules/arctwo (Makefile.am): Likewise.
45935         * modules/argmatch (Makefile.am): Likewise.
45936         * modules/argz (Makefile.am): Likewise.
45937         * modules/atexit (Makefile.am): Likewise.
45938         * modules/backupfile (Makefile.am): Likewise.
45939         * modules/c-strtod (Makefile.am): Likewise.
45940         * modules/c-strtold (Makefile.am): Likewise.
45941         * modules/calloc (Makefile.am): Likewise.
45942         * modules/canon-host (Makefile.am): Likewise.
45943         * modules/canonicalize (Makefile.am): Likewise.
45944         * modules/chdir-long (Makefile.am): Likewise.
45945         * modules/chdir-safer (Makefile.am): Likewise.
45946         * modules/check-version (Makefile.am): Likewise.
45947         * modules/chown (Makefile.am): Likewise.
45948         * modules/cloexec (Makefile.am): Likewise.
45949         * modules/close-stream (Makefile.am): Likewise.
45950         * modules/closeout (Makefile.am): Likewise.
45951         * modules/crc (Makefile.am): Likewise.
45952         * modules/cycle-check (Makefile.am): Likewise.
45953         * modules/des (Makefile.am): Likewise.
45954         * modules/dirfd (Makefile.am): Likewise.
45955         * modules/dirname (Makefile.am): Likewise.
45956         * modules/dup2 (Makefile.am): Likewise.
45957         * modules/euidaccess (Makefile.am): Likewise.
45958         * modules/exclude (Makefile.am): Likewise.
45959         * modules/exitfail (Makefile.am): Likewise.
45960         * modules/fcntl-safer (Makefile.am): Likewise.
45961         * modules/file-type (Makefile.am): Likewise.
45962         * modules/fileblocks (Makefile.am): Likewise.
45963         * modules/filemode (Makefile.am): Likewise.
45964         * modules/filenamecat (Makefile.am): Likewise.
45965         * modules/fnmatch (Makefile.am): Likewise.
45966         * modules/fopen-safer (Makefile.am): Likewise.
45967         * modules/fpending (Makefile.am): Likewise.
45968         * modules/fprintftime (Makefile.am): Likewise.
45969         * modules/free (Makefile.am): Likewise.
45970         * modules/fsusage (Makefile.am): Likewise.
45971         * modules/ftruncate (Makefile.am): Likewise.
45972         * modules/fts (Makefile.am): Likewise.
45973         * modules/gc (Makefile.am): Likewise.
45974         * modules/gc-pbkdf2-sha1 (Makefile.am): Likewise.
45975         * modules/getaddrinfo (Makefile.am): Likewise.
45976         * modules/getcwd (Makefile.am): Likewise.
45977         * modules/getdelim (Makefile.am): Likewise.
45978         * modules/getdomainname (Makefile.am): Likewise.
45979         * modules/getgroups (Makefile.am): Likewise.
45980         * modules/gethostname (Makefile.am): Likewise.
45981         * modules/gethrxtime (Makefile.am): Likewise.
45982         * modules/getline (Makefile.am): Likewise.
45983         * modules/getloadavg (Makefile.am): Likewise.
45984         * modules/getlogin_r (Makefile.am): Likewise.
45985         * modules/getopt (Makefile.am): Likewise.
45986         * modules/getpass (Makefile.am): Likewise.
45987         * modules/getpass-gnu (Makefile.am): Likewise.
45988         * modules/getsubopt (Makefile.am): Likewise.
45989         * modules/gettime (Makefile.am): Likewise.
45990         * modules/gettimeofday (Makefile.am): Likewise.
45991         * modules/getugroups (Makefile.am): Likewise.
45992         * modules/getusershell (Makefile.am): Likewise.
45993         * modules/glob (Makefile.am): Likewise.
45994         * modules/group-member (Makefile.am): Likewise.
45995         * modules/hard-locale (Makefile.am): Likewise.
45996         * modules/hash (Makefile.am): Likewise.
45997         * modules/hmac-md5 (Makefile.am): Likewise.
45998         * modules/hmac-sha1 (Makefile.am): Likewise.
45999         * modules/human (Makefile.am): Likewise.
46000         * modules/idcache (Makefile.am): Likewise.
46001         * modules/imaxabs (Makefile.am): Likewise.
46002         * modules/imaxdiv (Makefile.am): Likewise.
46003         * modules/inet_ntop (Makefile.am): Likewise.
46004         * modules/inet_pton (Makefile.am): Likewise.
46005         * modules/inttostr (Makefile.am): Likewise.
46006         * modules/isapipe (Makefile.am): Likewise.
46007         * modules/lchown (Makefile.am): Likewise.
46008         * modules/long-options (Makefile.am): Likewise.
46009         * modules/lstat (Makefile.am): Likewise.
46010         * modules/malloc (Makefile.am): Likewise.
46011         * modules/mathl (Makefile.am): Likewise.
46012         * modules/mbchar (Makefile.am): Likewise.
46013         * modules/md2 (Makefile.am): Likewise.
46014         * modules/md4 (Makefile.am): Likewise.
46015         * modules/md5 (Makefile.am): Likewise.
46016         * modules/memcasecmp (Makefile.am): Likewise.
46017         * modules/memchr (Makefile.am): Likewise.
46018         * modules/memcmp (Makefile.am): Likewise.
46019         * modules/memcoll (Makefile.am): Likewise.
46020         * modules/memcpy (Makefile.am): Likewise.
46021         * modules/memmem (Makefile.am): Likewise.
46022         * modules/memmove (Makefile.am): Likewise.
46023         * modules/mempcpy (Makefile.am): Likewise.
46024         * modules/memrchr (Makefile.am): Likewise.
46025         * modules/memset (Makefile.am): Likewise.
46026         * modules/memxor (Makefile.am): Likewise.
46027         * modules/mkancesdirs (Makefile.am): Likewise.
46028         * modules/mkdir (Makefile.am): Likewise.
46029         * modules/mkdir-p (Makefile.am): Likewise.
46030         * modules/mkdtemp (Makefile.am): Likewise.
46031         * modules/mkstemp (Makefile.am): Likewise.
46032         * modules/mktime (Makefile.am): Likewise.
46033         * modules/modechange (Makefile.am): Likewise.
46034         * modules/mountlist (Makefile.am): Likewise.
46035         * modules/nanosleep (Makefile.am): Likewise.
46036         * modules/openat (Makefile.am): Likewise.
46037         * modules/pagealign_alloc (Makefile.am): Likewise.
46038         * modules/physmem (Makefile.am): Likewise.
46039         * modules/poll (Makefile.am): Likewise.
46040         * modules/posixtm (Makefile.am): Likewise.
46041         * modules/posixver (Makefile.am): Likewise.
46042         * modules/putenv (Makefile.am): Likewise.
46043         * modules/quote (Makefile.am): Likewise.
46044         * modules/quotearg (Makefile.am): Likewise.
46045         * modules/raise (Makefile.am): Likewise.
46046         * modules/read-file (Makefile.am): Likewise.
46047         * modules/readline (Makefile.am): Likewise.
46048         * modules/readlink (Makefile.am): Likewise.
46049         * modules/readtokens (Makefile.am): Likewise.
46050         * modules/readutmp (Makefile.am): Likewise.
46051         * modules/realloc (Makefile.am): Likewise.
46052         * modules/regex (Makefile.am): Likewise.
46053         * modules/rename (Makefile.am): Likewise.
46054         * modules/rename-dest-slash (Makefile.am): Likewise.
46055         * modules/rijndael (Makefile.am): Likewise.
46056         * modules/rmdir (Makefile.am): Likewise.
46057         * modules/rpmatch (Makefile.am): Likewise.
46058         * modules/safe-read (Makefile.am): Likewise.
46059         * modules/safe-write (Makefile.am): Likewise.
46060         * modules/same (Makefile.am): Likewise.
46061         * modules/save-cwd (Makefile.am): Likewise.
46062         * modules/savedir (Makefile.am): Likewise.
46063         * modules/setenv (Makefile.am): Likewise.
46064         * modules/settime (Makefile.am): Likewise.
46065         * modules/sha1 (Makefile.am): Likewise.
46066         * modules/sig2str (Makefile.am): Likewise.
46067         * modules/snprintf (Makefile.am): Likewise.
46068         * modules/stdlib-safer (Makefile.am): Likewise.
46069         * modules/stpcpy (Makefile.am): Likewise.
46070         * modules/stpncpy (Makefile.am): Likewise.
46071         * modules/strcase (Makefile.am): Likewise.
46072         * modules/strcasestr (Makefile.am): Likewise.
46073         * modules/strchrnul (Makefile.am): Likewise.
46074         * modules/strcspn (Makefile.am): Likewise.
46075         * modules/strdup (Makefile.am): Likewise.
46076         * modules/strerror (Makefile.am): Likewise.
46077         * modules/strftime (Makefile.am): Likewise.
46078         * modules/strndup (Makefile.am): Likewise.
46079         * modules/strnlen (Makefile.am): Likewise.
46080         * modules/strpbrk (Makefile.am): Likewise.
46081         * modules/strsep (Makefile.am): Likewise.
46082         * modules/strstr (Makefile.am): Likewise.
46083         * modules/strtod (Makefile.am): Likewise.
46084         * modules/strtoimax (Makefile.am): Likewise.
46085         * modules/strtok_r (Makefile.am): Likewise.
46086         * modules/strtol (Makefile.am): Likewise.
46087         * modules/strtoll (Makefile.am): Likewise.
46088         * modules/strtoul (Makefile.am): Likewise.
46089         * modules/strtoull (Makefile.am): Likewise.
46090         * modules/strtoumax (Makefile.am): Likewise.
46091         * modules/strverscmp (Makefile.am): Likewise.
46092         * modules/time_r (Makefile.am): Likewise.
46093         * modules/timegm (Makefile.am): Likewise.
46094         * modules/tmpfile-safer (Makefile.am): Likewise.
46095         * modules/unistd-safer (Makefile.am): Likewise.
46096         * modules/unlinkdir (Makefile.am): Likewise.
46097         * modules/userspec (Makefile.am): Likewise.
46098         * modules/utime (Makefile.am): Likewise.
46099         * modules/utimecmp (Makefile.am): Likewise.
46100         * modules/utimens (Makefile.am): Likewise.
46101         * modules/vasnprintf (Makefile.am): Likewise.
46102         * modules/vasprintf (Makefile.am): Likewise.
46103         * modules/vsnprintf (Makefile.am): Likewise.
46104         * modules/xalloc (Makefile.am): Likewise.
46105         * modules/xgetcwd (Makefile.am): Likewise.
46106         * modules/xnanosleep (Makefile.am): Likewise.
46107         * modules/xreadlink (Makefile.am): Likewise.
46108         * modules/xstrtod (Makefile.am): Likewise.
46109         * modules/xstrtol (Makefile.am): Likewise.
46110         * modules/xstrtold (Makefile.am): Likewise.
46111         * modules/yesno (Makefile.am): Likewise.
46112
46113 2006-10-12  Jim Meyering  <jim@meyering.net>
46114
46115         * m4/getloadavg.m4: Revert the change below.
46116
46117         * m4/getloadavg.m4 (gl_GETLOADAVG): Test for the existence of
46118         lib/getloadavg.c using "ls -L", not "test -f".  The latter would
46119         fail with a symlink, which is what coreutils' ./bootstrap now
46120         creates by default.
46121
46122 2006-10-12  Bruno Haible  <bruno@clisp.org>
46123
46124         * lib/inttypes_.h (_LONG_LONG_FORMAT_PREFIX): Don't define for MSVC or
46125         mingw.
46126         (_PRI64_PREFIX, _PRIu64_PREFIX, _SCN64_PREFIX, _SCNu64_PREFIX): Handle
46127         MSVC and mingw explicitly.
46128
46129 2006-10-11  Simon Josefsson  <jas@extundo.com>
46130             Bruno Haible  <bruno@clisp.org>
46131
46132         Add support for multiple gnulib-tool invocations in the scope of a
46133         single configure.ac file.
46134         * gnulib-tool (func_emit_lib_Makefile_am): In the _LIBADD variable,
46135         use a private [LT]LIBOBJS variant. Define a _DEPENDENCIES variable
46136         with the same contents as the _LIBADD variable.
46137         (func_emit_initmacro_start, func_emit_initmacro_end,
46138         func_emit_initmacro_done): New functions.
46139         (func_import, func_create_testdir): Invoke them. Allow the identifiers
46140         gl_LIBOBJS and gl_LTLIBOBJS.
46141
46142 2006-10-11  Bruno Haible  <bruno@clisp.org>
46143
46144         * gnulib-tool (GETTEXTPATH, AUTOHEADER, AUTOPOINT): New variables.
46145         (func_create_testdir): Don't create po/Makefile.am, don't invoke
46146         autoreconf. Instead, invoke autopoint explicitly but move back the
46147         *.m4 files from gnulib.
46148
46149 2006-10-11  Bruno Haible  <bruno@clisp.org>
46150
46151         * gnulib-tool (func_usage): Make module names after --create-testdir
46152         optional.
46153         (func_create_testdir): If no module was specified, use nearly all
46154         modules.
46155
46156 2006-10-12  Jim Meyering  <jim@meyering.net>
46157
46158         Big performance improvement for fts-based tools that use FTS_NOSTAT.
46159         Avoid spurious inode-mismatch problems on non-POSIX file systems.
46160         Details: http://article.gmane.org/gmane.comp.lib.gnulib.bugs/7416
46161         * lib/fts_.h (FTS_DEFER_STAT): Define new flag.
46162         (FTS_OPTIONMASK): Extend the mask to reflect this addition.
46163         * lib/fts.c (DT_IS_KNOWN, DT_MUST_BE): Define.
46164         (FTS_NO_STAT_REQUIRED, FTS_STAT_REQUIRED): Define.
46165         (fts_set_stat_required): New function.
46166         (fts_open): Defer the calls to fts_stat, if possible or requested.
46167         Move the code that maps a command-line fts_info value FTS_DOT to FTS_D
46168         into fts_stat itself.
46169         (fts_read): Perform any required (deferred) fts_stat call.
46170         (fts_build): Likewise, for the directory we're about to open and read.
46171         In the readdir loop, carefully decide whether each entry will require
46172         an eventual call to fts_stat, using dirent.d_type info if available.
46173         (fts_stat): Move the test for whether to honor FTS_COMFOLLOW on
46174         a command line argument into this function.  Update all callers.
46175         Map a return value of FTS_DOT to FTS_D for a command line argument.
46176         * modules/fts (Depends-on): Add d-type.  Alphabetize.
46177         Thanks to Miklos Szeredi for his tenacity and for the initial
46178         bug report about "find" failing on a FUSE-based file system.
46179
46180         * lib/fts.c (fts_open): Use consistent indentation.
46181
46182 2006-10-12  Paul Eggert  <eggert@cs.ucla.edu>
46183
46184         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS): Renamed from
46185         gl_USE_SYSTEM_EXTENSIONS, to fix a coreutils bootstrap failure
46186         reported by Jim Meyering.  All uses of cache variables renamed
46187         to match Autoconf's.
46188         (gl_USE_SYSTEM_EXTENSIONS): New macro, which simply requires
46189         the other one.
46190
46191         * m4/rename-dest-slash.m4 (gl_FUNC_RENAME_TRAILING_DEST_SLASH):
46192         Fix misspelling in diagnostic.
46193
46194 2006-10-11  Paul Eggert  <eggert@cs.ucla.edu>
46195
46196         * lib/mkdir-p.c (HAVE_FCHMOD): Define to false if not already
46197         defined.  Problem reported by Matthew Woehlke.
46198
46199         * lib/inttypes_.h (_LONG_LONG_FORMAT_PREFIX): New macro.
46200         Add support for Tandem NonStop R series.
46201         (_PRI64_PREFIX, _PRIu64_PREFIX, _SCN64_PREFIX, _SCNu64_PREFIX):
46202         Use new macro.
46203
46204         * lib/rename-dest-slash.c: Include stdbool.h but not string.h.
46205         (has_trailing_slash): Omit size arg; all callers changed.
46206         Omit 'inline', since it doesn't help performance and we'd
46207         need to configure it.
46208         Don't count //, ///, etc. as having a trailing slash.
46209         As a side effect, this removes a C99ism reported by Matthew Woehlke.
46210         (rpl_rename_dest_slash): On failure, use rename's errno rather
46211         than (in some cases) an incorrect or junk errno.
46212         Simplify code by removing need to compute length; this does
46213         cause it to make two passes instead of one over the file name,
46214         but it's worth it.
46215
46216         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Undo previous
46217         change, since Autoconf's version may no longer be appropriate now
46218         that we are using CVS Autoconf's version.  Add support for Tandem.
46219
46220 2006-10-11  Paul Eggert  <eggert@cs.ucla.edu>
46221             Bruno Haible  <bruno@clisp.org>
46222
46223         * lib/allocsa.h (sa_alignment_longlong, sa_alignment_max): Test
46224         HAVE_LONG_LONG_INT instead of HAVE_LONG_LONG.
46225         * m4/allocsa.m4 (gl_ALLOCSA): Invoke AC_TYPE_LONG_LONG_INT instead of
46226         gl_AC_TYPE_LONG_LONG.
46227
46228         * lib/printf-args.h (arg_type, argument): Test HAVE_LONG_LONG_INT
46229         instead of HAVE_LONG_LONG.
46230         * lib/printf-args.c (printf_fetchargs): Likewise.
46231         * lib/printf-parse.c (PRINTF_PARSE): Likewise.
46232         * lib/vasnprintf.c (VASNPRINTF): Likewise.
46233         * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_ARGS, gl_PREREQ_PRINTF_PARSE,
46234         gl_PREREQ_VASNPRINTF): Invoke AC_TYPE_LONG_LONG_INT instead of
46235         gl_AC_TYPE_LONG_LONG.
46236
46237 2006-10-11  Bruno Haible  <bruno@clisp.org>
46238
46239         * m4/longlong.m4: Add comments.
46240         * m4/ulonglong.m4: Likewise.
46241
46242 2006-10-10  Bruno Haible  <bruno@clisp.org>
46243
46244         Make it possible to #define stpcpy, strdup to aliases.
46245         * lib/stpcpy.c (stpcpy) [!_LIBC]: Don't undefine.
46246         * lib/strdup.c (strdup) [!_LIBC]: Don't undefine.
46247
46248 2006-10-10  Bruno Haible  <bruno@clisp.org>
46249
46250         Make it possible to #define gcd to an alias.
46251         * lib/gcd.c: Include config.h.
46252
46253 2006-10-10  Bruno Haible  <bruno@clisp.org>
46254
46255         Make it possible to #define c_isascii to an alias.
46256         * lib/c-ctype.h: Don't define the macros if NO_C_CTYPE_MACROS is
46257         defined. Undefine the macros before defining them, to avoid gcc
46258         warnings.
46259         * lib/c-ctype.c: Include config.h. Don't undefine the macros; instead,
46260         define NO_C_CTYPE_MACROS early.
46261
46262 2006-10-10  Bruno Haible  <bruno@clisp.org>
46263
46264         Make it possible to #define set_program_name to an alias.
46265         * lib/progname.c: Don't undefine set_program_name; instead, undefine
46266         ENABLE_RELOCATABLE early.
46267
46268 2006-10-10  Paul Eggert  <eggert@cs.ucla.edu>
46269
46270         Port to Tandem NSK OSS, which has 64-bit signed int but at most
46271         32-bit unsigned int.  Problem reported by Matthew Woehlke in:
46272         http://lists.gnu.org/archive/html/bug-coreutils/2006-10/msg00062.html
46273         More generally, don't assume that 64-bit signed int is available
46274         if unsigned int is, and vice versa.
46275         * lib/inttypes_.h (_PRIu64_PREFIX, _SCNu64_PREFIX): Depend on
46276         unsigned symbols, not on their signed counterparts.
46277         * lib/stdint_.h (uint64_t, uint_least64_t, uint_fast64_t, uintmax_t):
46278         (UINT64_MAX, UINT_LEAST64_MAX, UINT_FAST64_MAX, UINTMAX_MAX):
46279         (UINT64_C, UINTMAX_C):
46280         Likewise.
46281         * lib/strtoimax.c (strtoll): Depend on signed symbols, not their
46282         unsigned counterparts.
46283         (Have_long_long, Unsigned): New macros.
46284         (Int): Renamed from INT.
46285         (strtoimax): Use the new macros.
46286         * m4/stdint.m4 (gl_STDINT_H): Require AC_TYPE_UNSIGNED_LONG_LONG_INT
46287         and substitute HAVE_UNSIGNED_LONG_LONG_INT.
46288         * modules/inttypes (inttypes.h): Substitute
46289         HAVE_UNSIGNED_LONG_LONG_INT.
46290         * modules/stdint (stdint.h): Likewise.
46291         (Files): Add m4/ulonglong.m4.
46292
46293 2006-10-10  Bruno Haible  <bruno@clisp.org>
46294
46295         Fix a gcc -Wshadow warning.
46296         * lib/gl_anyhash_list2.h (hash_resize): Rename local variable 'index'
46297         to 'bucket'.
46298         * lib/gl_anylinked_list2.h (gl_linked_search_from_to,
46299         gl_linked_indexof_from_to): Likewise.
46300         * lib/gl_linkedhash_list.c (add_to_bucket, remove_from_bucket):
46301         Likewise.
46302         * lib/gl_anytreehash_list1.h (add_to_bucket, remove_from_bucket):
46303         Likewise.
46304         * lib/gl_anytreehash_list2.h (gl_tree_search_from_to): Likewise.
46305         Reported by Eric Blake.
46306
46307 2006-10-09  Paul Eggert  <eggert@cs.ucla.edu>
46308
46309         * lib/filemode.h [HAVE_DECL_STRMODE]: Include unistd.h too,
46310         for NetBSD.  Problem reported by Bruno Haible.
46311
46312 2006-10-09  Jim Meyering  <jim@meyering.net>
46313
46314         * lib/lchown.c: Include <sys/stat.h> before "stat-macros.h".
46315         Patch from Bruno Haible.
46316
46317 2006-10-09  Jim Meyering  <jim@meyering.net>
46318
46319         * lib/fts-cycle.c (leave_dir): When "leaving" a top level directory due
46320         to FTS_SKIP, don't copy the parent's uninitialized dev/ino values.
46321         Trigger with e.g., mkdir d && valgrind ./chmod u+rwx d d
46322
46323 2006-10-08  Paul Eggert  <eggert@cs.ucla.edu>
46324
46325         Don't include <config.h> twice; this doesn't work in some cases,
46326         e.g., when config.h has "#define intmax_t long long int" and
46327         we include <config.h>, <inttypes.h>, <config.h> in that order.
46328         Problem reported by Matthew Woehlke in:
46329         http://lists.gnu.org/archive/html/bug-coreutils/2006-10/msg00073.html
46330         * lib/fprintftime.c: Don't include config.h or fprintftime.h.
46331         * lib/fts-cycle.c: Don't include config.h.
46332         * lib/strftime.c: Include fprintftime.h if FPRINTFTIME is defined.
46333         * lib/xstrtoimax.c: Remove copyright notice since it's short tnow.
46334         Don't include config.h or xstrtol.h.  Define STRTOL_T_MINIMUM
46335         and STRTOL_T_MAXIMUM unconditionally, since we now assume gnulib
46336         inttypes.h.
46337         * lib/xstrtoumax.c: Likewise.
46338         * lib/xstrtol.c: Include config.h and xstrtol.h after defining
46339         __strtol and the like, so that this module is more like its siblings.
46340         (STRTOL_T_MINIMUM, STRTOL_T_MAXIMUM) [! defined STRTOL_T_MINIMUM]:
46341         Remove; no longer needed now that we assume gnulib inttypes.h.
46342
46343 2006-10-08  Bruno Haible  <bruno@clisp.org>
46344
46345         * doc/gnulib-tool.texi: Emphasize the drawbacks of the --symlink
46346         option.
46347
46348 2006-10-07  Jim Meyering  <jim@meyering.net>
46349
46350         * modules/inttypes (inttypes.h): Revert what seems to have been
46351         an inadvertent part of today's change: use "|", not "/" in the
46352         substitution for the "/"-containing string, $(ABSOLUTE_INTTYPES_H).
46353
46354 2006-10-07  Bruno Haible  <bruno@clisp.org>
46355
46356         * modules/sublist: New file.
46357
46358 2006-10-07  Bruno Haible  <bruno@clisp.org>
46359
46360         * modules/alloca-opt (alloca.h): Add a "DO NOT EDIT" comment.
46361         * modules/argz (argz.h): Likewise.
46362         * modules/arpa_inet (arpa/inet.h): Likewise.
46363         * modules/byteswap (byteswap.h): Likewise.
46364         * modules/configmake (configmake.h): Likewise.
46365         * modules/fcntl (fcntl.h): Likewise.
46366         * modules/fnmatch (fnmatch.h): Likewise.
46367         * modules/getopt (getopt.h): Likewise.
46368         * modules/glob (glob.h): Likewise.
46369         * modules/inttypes (inttypes.h): Likewise.
46370         * modules/netinet_in (netinet/in.h): Likewise.
46371         * modules/poll (poll.h): Likewise.
46372         * modules/stdbool (stdbool.h): Likewise.
46373         * modules/stdint (stdint.h): Likewise.
46374         * modules/sys_select (sys/select.h): Likewise.
46375         * modules/sys_socket (sys/socket.h): Likewise.
46376         * modules/sys_stat (sys/stat.h): Likewise.
46377         * modules/sysexits (sysexits.h): Likewise.
46378         * modules/unistd (unistd.h): Likewise.
46379         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
46380         Add a "DO NOT EDIT" comment to the generated file.
46381         (func_import): Likewise for gnulib-comp.m4.
46382
46383 2006-10-07  Bruno Haible  <bruno@clisp.org>
46384
46385         * lib/gl_sublist.h: New file.
46386         * lib/gl_sublist.c: New file.
46387
46388 2006-10-06  Paul Eggert  <eggert@cs.ucla.edu>
46389
46390         * lib/mkancesdirs.c (mkancesdirs): Pass to MAKE_DIR both the full file
46391         name (relative to the original working directory) and the file
46392         name component (relative to the temporary working directory).  All
46393         callers changed.
46394         * lib/mkancesdirs.h (mkancesdirs): Adjust prototype to match.
46395         * lib/mkdir-p.c (make_dir_parents): Likewise.
46396         * lib/mkdir-p.h (make_dir_parents): Likewise.
46397
46398 2006-10-06  Eric Blake  <ebb9@byu.net>
46399
46400         Define several macros for use by the clean-temp module.
46401         * m4/close-stream.m4 (gl_CLOSE_STREAM): Define GNULIB_CLOSE_STREAM.
46402         * m4/fcntl-safer.m4 (gl_FCNTL_SAFER): Define GNULIB_FCNTL_SAFER.
46403         * m4/stdio-safer.m4 (gl_FOPEN_SAFER): Define GNULIB_FOPEN_SAFER.
46404
46405         * lib/clean-temp.h (close_stream_temp): New declaration.
46406         * lib/clean-temp.c (includes): Pull in headers according to what
46407         other modules are in use.
46408         (close_stream_temp) [GNULIB_CLOSE_STREAM]: New function.
46409
46410 2006-10-06  Bruno Haible  <bruno@clisp.org>
46411
46412         * lib/javacomp.c (write_temp_file): Use fopen_temp, fwriteerror_temp
46413         instead of fopen, fwriteerror.
46414
46415 2006-10-06  Bruno Haible  <bruno@clisp.org>
46416
46417         * lib/clean-temp.h (cleanup_temp_file, cleanup_temp_subdir,
46418         cleanup_temp_dir_contents, cleanup_temp_dir): Change return type to
46419         int.
46420         * lib/clean-temp.c (do_unlink, do_rmdir, cleanup_temp_file,
46421         cleanup_temp_subdir, cleanup_temp_dir_contents, cleanup_temp_dir):
46422         Return an error indicator.
46423         Suggested by Eric Blake.
46424
46425 2006-10-06  Bruno Haible  <bruno@clisp.org>
46426
46427         * lib/clean-temp.c (PATH_MAX): Provide a fallback for GNU Hurd.
46428         Reported by Eric Blake.
46429
46430 2006-10-06  Bruno Haible  <bruno@clisp.org>
46431
46432         * modules/closeout (Description): Mention stderr too.
46433
46434 2006-10-06  Bruno Haible  <bruno@clisp.org>
46435         and Paul Eggert  <eggert@cs.ucla.edu>
46436
46437         * lib/closeout.c (close_stdout): Also close stderr.
46438         * lib/closeout.h: Update comment.
46439
46440 2006-10-05  Paul Eggert  <eggert@cs.ucla.edu>
46441
46442         Fix some Darwin-7.9.0 porting problems reported by Bruno Haible in
46443         <http://lists.gnu.org/archive/html/bug-coreutils/2006-10/msg00063.html>.
46444         * lib/dirchownmod.c: Include lchown.h.
46445         * lib/lchown.c: Don't include files that lchown.h now includes.
46446         Don't declare chown, since lchown.h now does that.
46447         * lib/lchown.h: Include errno.h, sys/types.h, unistd.h.
46448         (lchown): Define to rpl_chown if lchown is declared but
46449         does not exist.  Declare using a prototype if lchown is not
46450         declared.  Add a copyright notice.
46451         * lib/mkstemp.h: Include <unistd.h>.
46452         * lib/openat.c: Include lchown.h.
46453
46454         * lib/fcntl_.h (O_NOFOLLOW): Don't depend on O_NOFOLLOW_IS_INEFFECTIVE;
46455         we now test for that separately.
46456         * lib/fts.c (fts_safe_changedir): Inspect HAVE_WORKING_O_NOFOLLOW
46457         rather than O_NOFOLLOW, when testing whether it's possible to
46458         avoid a race condition reliably.
46459         * lib/savewd.c (savewd_chdir): Likewise.
46460
46461         Remove macros that are no longer needed now that stdint.h is
46462         reliable.
46463         * lib/fsusage.c (UINTMAX_MAX): Remove.
46464         * lib/human.c (SIZE_MAX, UINTMAX_MAX): Remove.
46465         * lib/utimecmp.c (SIZE_MAX): Remove.
46466
46467         * m4/lchown.m4 (gl_FUNC_LCHOWN): Check whether lchown is declared.
46468
46469         * m4/fcntl_h.m4 (gl_FCNTL_H): Define HAVE_WORKING_O_NOFOLLOW instead
46470         of O_NOFOLLOW_IS_INEFFECTIVE.  Define HAVE_WORKING_O_NOATIME if
46471         O_NOATIME works.
46472
46473 2006-10-05  Bruno Haible  <bruno@clisp.org>
46474
46475         * lib/gl_list.h (gl_sortedlist_search_from_to,
46476         gl_sortedlist_indexof_from_to): New declarations.
46477         (gl_list_implementation): New fields sortedlist_search_from_to,
46478         sortedlist_indexof_from_to.
46479         (gl_sortedlist_search_from_to, gl_sortedlist_indexof_from_to): New
46480         inline functions.
46481         * lib/gl_list.c (gl_sortedlist_search_from_to,
46482         gl_sortedlist_indexof_from_to): New functions.
46483         * lib/gl_array_list.c (gl_array_sortedlist_indexof_from_to): New
46484         function.
46485         (gl_array_sortedlist_indexof, gl_array_sortedlist_search): Use it.
46486         (gl_array_sortedlist_search_from_to): New function.
46487         (gl_array_list_implementation): Update.
46488         * lib/gl_carray_list.c (gl_carray_sortedlist_indexof_from_to): New
46489         function.
46490         (gl_carray_sortedlist_indexof, gl_carray_sortedlist_search): Use it.
46491         (gl_carray_sortedlist_search_from_to): New function.
46492         (gl_carray_list_implementation): Update.
46493         * lib/gl_anylinked_list2.h (gl_linked_sortedlist_search_from_to,
46494         gl_linked_sortedlist_indexof_from_to): New functions.
46495         * lib/gl_linked_list.c (gl_linked_list_implementation): Update.
46496         * lib/gl_linkedhash_list.c (gl_linkedhash_list_implementation): Update.
46497         * lib/gl_anytree_list2.h (gl_tree_sortedlist_search_from_to,
46498         gl_tree_sortedlist_indexof_from_to): New functions.
46499         * lib/gl_avltree_list.c (gl_avltree_list_implementation): Update.
46500         * lib/gl_avltreehash_list.c (gl_avltreehash_list_implementation):
46501         Update.
46502         * lib/gl_rbtree_list.c (gl_rbtree_list_implementation): Update.
46503         * lib/gl_rbtreehash_list.c (gl_avltreehash_list_implementation):
46504         Update.
46505
46506 2006-10-05  Bruno Haible  <bruno@clisp.org>
46507
46508         * lib/gl_list.h (gl_list_search_from, gl_list_search_from_to,
46509         gl_list_indexof_from, gl_list_indexof_from_to): New declarations.
46510         (struct gl_list_implementation): Add fields search_from_to,
46511         indexof_from_to. Remove fields search, indexof.
46512         (gl_list_search): Use the search_from_to method.
46513         (gl_list_search_from, gl_list_search_from_to): New functions.
46514         (gl_list_indexof): Use the indexof_from_to method.
46515         (gl_list_indexof_from, gl_list_indexof_from_to): New functions.
46516         * lib/gl_list.c (gl_list_search): Use the search_from_to method.
46517         (gl_list_search_from, gl_list_search_from_to): New functions.
46518         (gl_list_indexof): Use the indexof_from_to method.
46519         (gl_list_indexof_from, gl_list_indexof_from_to): New functions.
46520         * lib/gl_array_list.c (gl_array_indexof_from_to): Renamed from
46521         gl_array_indexof. Add start_index, end_index arguments.
46522         (gl_array_search_from_to): Renamed from gl_array_search. Add
46523         start_index, end_index arguments.
46524         (gl_array_remove, gl_array_list_implementation): Update.
46525         * lib/gl_carray_list.c (gl_carray_indexof_from_to): Renamed from
46526         gl_carray_indexof. Add start_index, end_index arguments.
46527         (gl_carray_search_from_to): Renamed from gl_carray_search. Add
46528         start_index, end_index arguments.
46529         (gl_carray_remove, gl_carray_list_implementation): Update.
46530         * lib/gl_anylinked_list2.h (gl_linked_search_from_to): Renamed from
46531         gl_linked_search. Add start_index, end_index arguments.
46532         (gl_linked_indexof_from_to): Renamed from gl_linked_indexof. Add
46533         start_index, end_index arguments.
46534         (gl_linked_remove): Update.
46535         * lib/gl_linked_list.c (gl_linked_list_implementation): Update.
46536         * lib/gl_linkedhash_list.c (gl_linkedhash_list_implementation): Update.
46537         * lib/gl_anytree_list1.h (iterstack_item_t): Change type of 'rightp'
46538         field to 'size_t'.
46539         * lib/gl_anytree_list2.h (gl_tree_search_from_to): Renamed from
46540         gl_tree_search. Add start_index, end_index arguments.
46541         (gl_tree_indexof_from_to): Renamed from gl_tree_indexof. Add
46542         start_index, end_index arguments.
46543         (gl_tree_remove): Update.
46544         * lib/gl_avltree_list.c (gl_avltree_list_implementation): Update.
46545         * lib/gl_rbtree_list.c (gl_rbtree_list_implementation): Update.
46546         * lib/gl_anytreehash_list1.h (compare_position_threshold): New
46547         function.
46548         * lib/gl_anytreehash_list2.h (gl_tree_search_from_to): Renamed from
46549         gl_tree_search. Add start_index, end_index arguments.
46550         (gl_tree_indexof_from_to): Renamed from gl_tree_indexof. Add
46551         start_index, end_index arguments.
46552         * lib/gl_avltreehash_list.c (gl_avltreehash_list_implementation):
46553         Update.
46554         * lib/gl_rbtreehash_list.c (gl_rbtreehash_list_implementation): Update.
46555
46556 2006-10-05  Bruno Haible  <bruno@clisp.org>
46557
46558         * modules/fwriteerror (configure.ac): Define GNULIB_FWRITEERROR.
46559
46560         * lib/clean-temp.h (open_temp, fopen_temp, close_temp, fclose_temp,
46561         fwriteerror_temp): New declarations.
46562         * lib/clean-temp.c (uintptr_t): Provide fallback definition.
46563         (descriptors): New variable.
46564         (cleanup): First, close the descriptors.
46565         (register_fd, unregister_fd, open_temp, fopen_temp, close_temp,
46566         fclose_temp, fwriteerror_temp): New functions.
46567
46568 2006-10-04  Jim Meyering  <jim@meyering.net>
46569
46570         * lib/fts.c (fts_open): Tiny comment change.
46571
46572 2006-10-04  Bruno Haible  <bruno@clisp.org>
46573
46574         Make it possible to invoke AC_GNU_SOURCE after gl_LOCK_EARLY.
46575         * m4/lock.m4 (gl_LOCK_EARLY_BODY): New macro, extracted code from
46576         gl_LOCK_BODY.
46577         (gl_LOCK_EARLY): Require gl_LOCK_EARLY_BODY, not gl_LOCK_BODY.
46578         (gl_LOCK_BODY): Remove settings of CPPFLAGS, now done in
46579         gl_LOCK_EARLY_BODY.
46580         (gl_LOCK): Require gl_LOCK_BODY.
46581
46582 2006-10-04  Bruno Haible  <bruno@clisp.org>
46583
46584         * lib/gl_oset.h (gl_setelement_threshold_fn): New type.
46585         (gl_oset_search_atleast): New declaration.
46586         (struct gl_oset_implementation): Add field 'search_atleast'.
46587         (gl_oset_search_atleast): New inline function.
46588         * lib/gl_oset.c (gl_oset_search_atleast): New function.
46589         * lib/gl_array_oset.c (gl_array_search_atleast): New function.
46590         (gl_array_oset_implementation): Update.
46591         * lib/gl_anytree_oset.h (gl_tree_search_atleast): New function.
46592         * lib/gl_avltree_oset.c (gl_avltree_oset_implementation): Update.
46593         * lib/gl_rbtree_oset.c (gl_rbtree_oset_implementation): Update.
46594
46595 2006-10-04  Bruno Haible  <bruno@clisp.org>
46596
46597         * lib/fatal-signal.c (fatal_signals) [WOE32]: Add the SIGBREAK signal.
46598
46599 2006-10-03  Bruno Haible  <bruno@clisp.org>
46600
46601         * lib/gl_rbtreehash_list.c (gl_rbtreehash_list_implementation): Renamed
46602         from gl_avltreehash_list_implementation.
46603
46604 2006-10-03  Bruno Haible  <bruno@clisp.org>
46605
46606         * lib/gl_oset.c (gl_oset_add): Fix return type.
46607
46608 2006-10-02  Paolo Bonzini  <bonzini@gnu.org>  (tiny change)
46609
46610         * lib/quotearg.c (mbstate_t) [!HAVE_MBRTOWC]: #define to int.
46611
46612 2006-10-02  Eric Blake  <ebb9@byu.net>
46613
46614         * modules/strnlen (Depends-on): Add extensions.
46615
46616 2006-10-02  Eric Blake  <ebb9@byu.net>
46617
46618         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Use autoconf's
46619         definition in 2.60+.
46620
46621 2006-10-02  Dmitry V. Levin  <ldv@altlinux.org>
46622
46623         * lib/fts.c (fts_close, fts_build, fts_palloc): Remove redundant
46624         checks.
46625
46626 2006-10-02  Bruno Haible  <bruno@clisp.org>
46627
46628         * gnulib-tool (func_emit_lib_Makefile_am): Don't add no-dependencies
46629         to the AUTOMAKE_OPTIONS.
46630         Reported by Jim Meyering.
46631
46632 2006-09-29  Paul Eggert  <eggert@cs.ucla.edu>
46633
46634         Work around bug in Solaris 10 /proc file system:
46635         /proc/self/fd/NNN/.. isn't the parent directory of
46636         the directory whose file descriptor is NNN.  This needs to
46637         be worked around at run time, not compile time, since a
46638         program might be built on Solaris 8, where things work, and
46639         run on Solaris 10.
46640         * lib/openat-priv.h (BUILD_PROC_NAME): Remove.  All callers changed
46641         to use the following interface instead:
46642         (OPENAT_BUFFER_SIZE): New macro.
46643         (openat_proc_name): New function.
46644         * lib/at-func.c (AT_FUNC_NAME): Adjust to above changes.
46645         * lib/openat.c (openat_permissive, openat_needs_fchdir, fdopendir):
46646         Likewise.
46647         * lib/openat-proc.c: New file.
46648         * modules/openat (Files): Add lib/openat-proc.c.
46649         (Depends-on): Add same-inode, stdbool.
46650         * m4/openat.m4 (gl_FUNC_OPENAT): Add AC_LIBOBJ(openat-proc).
46651
46652 2006-09-29  Bruno Haible  <bruno@clisp.org>
46653
46654         * lib/fwriteerror.h (fwriteerror_no_ebadf): New declaration.
46655         * lib/(do_fwriteerror): Renamed from fwriteerror. Add ignore_ebadf
46656         argument. Set stdout_closed before testing for ferror, not after.
46657         (fwriteerror, fwriteerror_no_ebadf): New functions.
46658
46659 2006-09-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
46660
46661         * m4/intmax.m4 (gt_TYPE_INTMAX_T): Avoid unused variables warning.
46662
46663 2006-09-28  Paolo Bonzini  <bonzini@gnu.org>
46664
46665         * lib/poll.c (rpl_poll) [__APPLE__]: Use FIONREAD instead of MSG_PEEK.
46666         * m4/poll.m4: Look for sys/ioctl.h and sys/filio.h.
46667
46668 2006-09-28  Jim Meyering  <jim@meyering.net>
46669
46670         * lib/mkdir-p.c: Include "dirchownmod.h", not "dirchownmod.c".
46671         Include <unistd.h>.
46672
46673 2006-09-28  Bruno Haible  <bruno@clisp.org>
46674
46675         * modules/avltreehash-list (Depends-on): Add stdint, remove size_max.
46676         * modules/linkedhash-list (Depends-on): Likewise.
46677         * modules/rbtreehash-list (Depends-on): Likewise.
46678
46679 2006-09-28  Bruno Haible  <bruno@clisp.org>
46680
46681         * lib/strndup.h: Simplify the redefinition of strndup.
46682         (_GL_CONCAT, _GL_XCONCAT, __STRNDUP_ID): Remove macros.
46683         * m4/strndup.m4 (gl_FUNC_STRNDUP): Don't define __STRNDUP_PREFIX.
46684
46685 2006-09-28  Bruno Haible  <bruno@clisp.org>
46686
46687         * lib/gl_avltreehash_list.c: Include <stdint.h> instead of size_max.h.
46688         * lib/gl_linkedhash_list.c: Likewise.
46689         * lib/gl_rbtreehash_list.c: Likewise.
46690
46691 2006-09-27  Paul Eggert  <eggert@cs.ucla.edu>
46692
46693         * lib/canon-host.c (canon_host_r): Work around bug in Darwin 7.9.0
46694         getaddrinfo.
46695
46696         * lib/__fpending.h: Don't include <stdio_ext.h> unless
46697         HAVE_DECL___FPENDING.  This avoids a bug with lsbcc, where
46698         it causes <stdio_ext.h> to cause a compile-time error.
46699         Problem reported by Nelson H. F. Beebe.
46700         * lib/getpass.c: Likewise, except for HAVE_DECL___FSETLOCKING instead
46701         of HAVE_DECL___PENDING.
46702
46703         * m4/fpending.m4 (gl_FUNC_FPENDING): Check for stdio_ext at most once.
46704         * m4/getpass.m4 (gl_PREREQ_GETPASS): Check for __fsetlocking's
46705         declaration.
46706
46707 2006-09-27  Jim Meyering  <jim@meyering.net>
46708
46709         This file could end up with a definition for a function
46710         named __strndup, rather than rpl_strndup on a system with
46711         incomplete weak_alias support.
46712         * lib/strndup.c (strndup): Rename from __strndup.
46713         Remove #defines that used to map __strndup to strndup.
46714         Don't use K&R prototypes.
46715         Remove LIBC-related code, since this file is not sync'd with glibc.
46716         * lib/strndup.h: Revamp, accordingly.
46717         * m4/strndup.m4: Modernize.
46718
46719 2006-09-26  Paul Eggert  <eggert@cs.ucla.edu>
46720
46721         * modules/savewd (Depends-on): Add 'raise'.
46722         * lib/savewd.c: Include <signal.h>, for 'raise'.
46723
46724 2006-09-26  Jim Meyering  <jim@meyering.net>
46725
46726         * m4/acl.m4 (AC_FUNC_ACL): Disable ACL support altogether
46727         when we detect Darwin 8.7.0's acl_get_file bug.
46728         Rearrange to perform the new (below) run-test while $LIBS
46729         contains any acl-related library.  Set USE_ACL at the end.
46730         (gl_ACL_GET_FILE): New function.
46731
46732 2006-09-26  Eric Blake  <ebb9@byu.net>
46733
46734         * lib/verror.c: Include <config.h> unconditionally.
46735
46736 2006-09-25  Paul Eggert  <eggert@cs.ucla.edu>
46737
46738         * modules/clock-time (Maintainer): Add self.
46739         * modules/getlogin_r (Depends-on): Add extensions.
46740
46741 2006-09-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
46742
46743         * modules/clock-time: New module.
46744         * modules/nanosleep (Depends-on): Add clock-time.
46745         * modules/gethrxtime (Depends-on): Likewise.
46746         * modules/gettime (Depends-on): Likewise.
46747         * modules/settime (Depends-on): Likewise.
46748
46749         * modules/fts-lgpl: Depend on openat.
46750         * modules/mkancesdirs: Depend on savewd.
46751         * modules/mkdir-p: Likewise.
46752
46753 2006-09-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
46754
46755         * m4/host-os.m4 (gl_HOST_OS): Require AC_CANONICAL_HOST.
46756
46757         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Rename cache variable from
46758         `gl_have_arbitrary_file_name_length_limit' to
46759         `gl_cv_have_arbitrary_file_name_length_limit', so that caching
46760         actually works between configure runs.
46761
46762 2006-09-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
46763             Bruno Haible  <bruno@clisp.org>
46764
46765         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Include <string.h>.
46766
46767 2006-09-25  Jim Meyering  <jim@meyering.net>
46768
46769         * m4/fcntl_h.m4 (gl_FCNTL_H): Fix typo in test for failed open.
46770         This typo caused coreutils/tests/dd/misc to fail on Darwin 8.7.0.
46771
46772 2006-09-25  Eric Blake  <ebb9@byu.net>
46773
46774         * gnulib-tool (func_import, func_create_testdir): Fix typos in
46775         exec's in 2006-09-18 patch when shuffling fds.
46776
46777 2006-09-25  Bruno Haible  <bruno@clisp.org>
46778
46779         * m4/getloadavg.m4 (gl_GETLOADAVG): Fix directory in error message.
46780         Reported by Jim Meyering.
46781
46782 2006-09-24  Jim Meyering  <jim@meyering.net>
46783
46784         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Don't use '>' to
46785         compare a pointer against a literal "0".  That caused failures with
46786         at least HP-UX's hpcc.
46787
46788 2006-09-22  Simon Josefsson  <jas@extundo.com>
46789
46790         * modules/gc-sha1:
46791         * modules/gc-md4:
46792         * modules/gc-hmac-sha1:
46793         * modules/gc-hmac-md5:
46794         * modules/gc-des:
46795         * modules/gc-arcfour: Distribute more files.
46796
46797 2006-09-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
46798
46799         * lib/gl_anylinked_list2.h [lint] (gl_linked_iterator)
46800         (gl_linked_iterator_from_to): Initialize struct completely.
46801         * lib/gl_anytree_list2.h [lint] (gl_tree_iterator): Likewise.
46802         (gl_tree_iterator_from_to): Likewise
46803         * lib/gl_anytree_oset.h [lint] (gl_tree_iterator): Likewise.
46804         * lib/gl_array_list.c [lint] (gl_array_iterator)
46805         (gl_array_iterator_from_to): Likewise.
46806         * lib/gl_array_oset.c [lint] (gl_array_iterator): Likewise.
46807         * lib/gl_carray_list.c [lint] (gl_carray_iterator)
46808         (gl_carray_iterator_from_to): Likewise.
46809
46810         * lib/gc-gnulib.c [GC_USE_HMAC_SHA1]: include hmac.h for hmac_sha1.
46811         * lib/md4.c (md4_process_block): Remove unused variable.
46812         * lib/rijndael-api-fst.c (rijndaelBlockDecrypt): GCC suggests
46813         parentheses for clarity.
46814
46815 2006-09-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
46816
46817         * modules/bison-i18n (Depends-on): Add gettext.
46818
46819 2006-09-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
46820
46821         * m4/fsusage.m4 (gl_STATFS_TRUNCATES): Avoid unused variable.
46822         * m4/getdate.m4 (gl_C_COMPOUND_LITERALS): Likewise.
46823         * m4/jm-winsz1.m4 (gl_HEADER_TIOCGWINSZ_IN_TERMIOS_H): Likewise;
46824         also add missing comma that caused broken test.
46825         * m4/link-follow.m4 (gl_AC_FUNC_LINK_FOLLOWS_SYMLINK): Include
46826         stdlib.h, for `abort'.
46827         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Avoid unused
46828         variables.
46829         * m4/mkdir-slash.m4 (gl_FUNC_MKDIR_TRAILING_SLASH): Check for and
46830         include unistd.h if present, for `rmdir'.
46831         * m4/physmem.m4 (gl_SYS__SYSTEM_CONFIGURATION): Avoid unused
46832         variables.
46833         * m4/putenv.m4 (gl_FUNC_PUTENV): Rewrite using AC_RUN_IFELSE, and
46834         in the process include standard headers for prototypes.
46835         * m4/readutmp.m4 (gl_READUTMP): Require AC_GNU_SOURCE, so utmpxname
46836         gets declared on GNU/Linux.
46837         * m4/rmdir-errno.m4 (gl_FUNC_RMDIR_NOTEMPTY): Check for and include
46838         unistd.h, for `rmdir'.
46839         * m4/time_r.m4 (gl_TIME_R): Avoid unused variables.
46840
46841         * m4/fnmatch.m4 (_AC_FUNC_FNMATCH_IF): Avoid expression that is
46842         always true.
46843         * m4/strndup.m4 (gl_FUNC_STRNDUP): include stdlib.h, for `free'.
46844
46845         * m4/sockpfaf.m4 (gl_SOCKET_FAMILIES): Avoid gcc -Wall warnings.
46846
46847 2006-09-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
46848
46849         * gnulib-tool (func_version): Create output all at once.  This
46850         may help avoid triggering unnecessary SIGPIPEs, and at any
46851         rate it doesn't hurt.
46852
46853 2006-09-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
46854             Bruno Haible  <bruno@clisp.org>
46855
46856         * m4/lock.m4 (gl_LOCK_BODY): Avoid unused variables warning.
46857         * m4/mbswidth.m4 (gl_MBSWIDTH): Likewise.
46858         * m4/signed.m4 (bh_C_SIGNED): Likewise.
46859
46860         * m4/vasprintf.m4 (gl_PREREQ_VASPRINTF_H): New macro.
46861         (gl_FUNC_VASPRINTF): Invoke it.
46862
46863 2006-09-22  Bruno Haible  <bruno@clisp.org>
46864
46865         * m4/getloadavg.m4 (gl_GETLOADAVG): Expect the directory of
46866         getloadavg.c as first argument.
46867
46868 2006-09-22  Bruno Haible  <bruno@clisp.org>
46869
46870         * gnulib-tool (func_import, func_create_testdir): Set gl_source_base
46871         at the beginning of the gl_INIT macro.
46872         * modules/getloadavg (configure.ac): Pass $gl_source_base to
46873         gl_GETLOADAVG.
46874
46875 2006-09-22  Bruno Haible  <bruno@clisp.org>
46876
46877         * gnulib-tool (func_create_megatestdir): Don't include the config-h
46878         module.
46879         Suggested by Ralf Wildenhues.
46880
46881 2006-09-20  Paul Eggert  <eggert@cs.ucla.edu>
46882
46883         Import this patch from libc:
46884
46885         2006-09-06  Jakub Jelinek  <jakub@redhat.com>
46886
46887         * lib/regex_internal.c (re_string_reconstruct): Handle
46888         offset < pstr->valid_raw_len && pstr->offsets_needed case.
46889         Ensure no bytes read before raw_mbs array.  Pass a saved copy of
46890         pstr->valid_len - 1 rather than pstr->valid_raw_len - 1 to
46891         re_string_context_at.
46892
46893         * m4/regex.m4 (gl_REGEX): Check for locale.h, since the test
46894         now requires it.
46895         (gl_PREREQ_REGEX): Don't check for locale.h any more, since
46896         gl_REGEX now does it for us.
46897         (gl_REGEX): Add test taken from
46898         http://sourceware.org/ml/libc-hacker/2006-09/msg00008.html.
46899
46900         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Require AC_SYS_LARGEFILE.
46901         Check that large offsets work.  Modernize Autoconf usages.
46902         Prefer "yes" to mean a good thing rather than a bad.
46903         Don't put "#define mkstemp" in config.h, as this might interfere
46904         with standard system headers that "#define mkstemp mkstemp64".
46905
46906         * modules/mkstemp (Depends-on): Add extensions, so that
46907         mkstemp is visible on some platforms.
46908         (Makefile.am): Add mkstemp.h to EXTRA_DIST.
46909         (Include): Change to "mkstemp.h" from <stdlib.h>.
46910         (Files): Add mkstemp.h.
46911
46912         * lib/mkstemp.h: New file, since some standard headers
46913         #define mkstemp.
46914         * lib/mkstemp.c: Revamp to put the !_LIBC code together.
46915         Include "mkstemp.h".
46916         Make the _LIBC code resemble glibc original more,
46917         e.g., use K&R style.
46918         * lib/mkstemp-safer.c: Include "mkstemp.h" instead of <stdlib.h>.
46919         (mkstemp): Remove, since mkstemp.h does this for us.
46920         * lib/stdlib--.h: Include mkstemp.h.
46921
46922         Import this patch from libc:
46923
46924         2006-04-07  Ulrich Drepper  <drepper@redhat.com>
46925
46926         * lib/tempname.c (__gen_tempname): Change attempts_min
46927         into a macro.  Use preprocessor to decide how to initialize
46928         attempts [Coverity CID 67].
46929
46930 2006-09-20  Bruno Haible  <bruno@clisp.org>
46931
46932         * lib/mkdtemp.c: Import from libc.
46933         2006-04-07  Ulrich Drepper  <drepper@redhat.com>
46934                 * sysdeps/posix/tempname.c (__gen_tempname): Change
46935                 attempts_min into a macro.  Use preprocessor to decide how to
46936                 initialize attempts [Coverity CID 67].
46937         2001-11-27  Paul Eggert  <eggert@twinsun.com>
46938                 * sysdeps/posix/tempname.c (__gen_tempname): Try at least
46939                 ATTEMPTS_MIN or TMP_MAX times, whichever is greater.
46940
46941 2006-09-19  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
46942
46943         * gnulib-tool (func_exit): New function, to allow to pass the
46944         exit status portably through the trap.  Use everywhere.
46945         (--help, --version): Signal a write error.
46946         (trap): catch SIGPIPE, for write errors.
46947         Exit at the end of the trap, with the correct exit status.
46948
46949 2006-09-19  Karl Berry  <karl@gnu.org>
46950
46951         * doc/gnulib.texi: note about the license texinfo files.
46952
46953 2006-09-19  Eric Blake  <ebb9@byu.net>
46954
46955         * gnulib-tool: Avoid space-tab.
46956
46957 2006-09-18  Paul Eggert  <eggert@cs.ucla.edu>
46958
46959         * lib/getaddrinfo.c (getaddrinfo) [defined HAVE_IPV6]: Fix typo
46960         that prevented coreutils 6.1 from building.  Problem reported
46961         by Petter Reinholdtsen.
46962
46963 2006-09-18  Paul Eggert  <eggert@cs.ucla.edu>
46964
46965         * gnulib-tool (avoidlist): Fix typo that broke options like
46966         --avoid=lock that are used by coreutils bootstrap.
46967
46968 2006-09-18  Mark D. Baushke  <mdb@gnu.org>
46969
46970         * m4/inttypes.m4 (gl_INTTYPES_H): Quote "test" args
46971         more systematically.
46972
46973 2006-09-18  Jim Meyering  <jim@meyering.net>
46974
46975         * lib/savewd.c (savewd_restore): Don't shadow: s/status/child_status/.
46976
46977 2006-09-18  Bruno Haible  <bruno@clisp.org>
46978
46979         * modules/inttypes (Files): Remove m4/inttypes-h.m4.
46980
46981 2006-09-18  Bruno Haible  <bruno@clisp.org>
46982
46983         * m4/inttypes-h.m4 (gl_HEADER_INTTYPES_H): Remove macro.
46984         * m4/inttypes-pri.m4: Require autoconf >= 2.52.
46985         (gt_INTTYPES_PRI): Invoke AC_CHECK_HEADERS on inttypes.h. Test
46986         ac_cv_header_inttypes_h instead of gl_cv_header_inttypes_h.
46987         * m4/gettext.m4: Require autoconf >= 2.52.
46988         (gt_INTL_SUBDIR_CORE): Invoke AC_CHECK_HEADERS on inttypes.h.
46989         * m4/inttypes.m4 (gl_INTTYPES_H): Test ac_cv_header_inttypes_h instead
46990         of gl_cv_header_inttypes_h.
46991
46992 2006-09-18  Bruno Haible  <bruno@clisp.org>
46993
46994         * lib/javaversion.c: Include configmake.h.
46995
46996 2006-09-18  Bruno Haible  <bruno@clisp.org>
46997
46998         * gnulib-tool (func_import, func_create_testdir): Use exec tricks to
46999         avoid that the while loops be executed in a subshell.
47000
47001 2006-09-18  Bruno Haible  <bruno@clisp.org>
47002
47003         * MODULES.html.sh (func_module): Break long lines.
47004         Suggested by Bruce Korb <bkorb@gnu.org>.
47005
47006 2006-09-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
47007
47008         Speed up by a factor of 1.12.
47009         * gnulib-tool (nl): New variable.
47010         (func_import): Rewrite include directive extraction to only read each
47011         directive once.
47012
47013 2006-09-17  Bruno Haible  <bruno@clisp.org>
47014
47015         * modules/javaversion (Makefile.am): Remove DEFS setting.
47016         (Depends-on): Add configmake, for PKGDATADIR definition.
47017
47018 2006-09-17  Bruno Haible  <bruno@clisp.org>
47019
47020         * gnulib-tool (func_create_testdir): Rewrite all files at once.
47021
47022 2006-09-17  Bruno Haible  <bruno@clisp.org>
47023
47024         * gnulib-tool (func_append): New function, stolen from libtool.m4.
47025         (func_modules_transitive_closure, func_modules_add_dummy,
47026         func_modules_to_filelist, func_import, func_create_testdir,
47027         func_create_megatestdir, ...): Use it wherever possible.
47028         Suggested by Ralf Wildenhues.
47029
47030 2006-09-16  Karl Berry  <karl@gnu.org>
47031
47032         * doc/fdl.texi (ADDENDUM): switch to @heading from @appendixsubsec,
47033         to avoid sectioning errors.
47034         * doc/lgpl.texi, gpl.texi (Copying): downcase @unnumbered title.
47035         [ifinfo]: blank line after @center-ed titles.
47036         * doc/lgpl.texi (Library Copying): Rename main node to GNU LGPL.
47037         Spell FSF address consistently with others.
47038         (These changes approved by rms.)
47039
47040 2006-09-15  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
47041
47042         Speed up by a factor of 1.61.
47043         * gnulib-tool (func_modules_transitive_closure): Rewrite to not check
47044         already checked module names again.
47045
47046 2006-09-15  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
47047
47048         Speed up by a factor of 1.13.
47049         * gnulib-tool (func_import): Rewrite all old_files at once; likewise
47050         for new_files, and the input to func_add_or_update.
47051
47052 2006-09-15  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
47053
47054         * gnulib-tool (func_all_modules, func_modules_to_filelist, func_import,
47055         func_create_testdir, ...): Change 'sort | uniq' to 'sort -u'.
47056
47057 2006-09-15  Paul Eggert  <eggert@cs.ucla.edu>
47058
47059         * modules/mkancesdirs (Depends-on): Add fcntl.
47060         * modules/savewd: New file.
47061         * MODULES.html.sh (File system functions): Add savewd.
47062
47063         * modules/configmake (Makefile.am): Add support for the
47064         Automake-supplied PKGLIBDIR, PKGINCLUDEDIR, PKGDATADIR.
47065
47066 2006-09-15  Paul Eggert  <eggert@cs.ucla.edu>
47067
47068         * m4/savewd.m4: New file.
47069
47070 2006-09-15  Paul Eggert  <eggert@cs.ucla.edu>
47071
47072         * lib/dirchownmod.c: Don't include fcntl.h; no longer needed.
47073         (dirchownmod): New arg FD.  All callers changed.
47074         Use FD rather than opening the directory ourself, as opening is
47075         now the caller's responsibility.
47076         * lib/dirchownmod.h: Likewise.
47077         * lib/mkancesdirs.c: Include <sys/types.h>, for portability to older
47078         hosts that require <sys/types.h> before <sys/stat.h>.  Include
47079         fcntl.h, savewd.h, and unistd.h, not dirname.h and stat-macros.h.
47080         (test_dir): Remove.
47081         (mkancesdirs): Return length of prefix of FILE that has already
47082         been made, or -2 if there is a child doing the work.  Redo
47083         algorithm so that it is O(N) rather than O(N**2).  Optimize away
47084         ".", and treat ".." specially since it might stray back into
47085         already-created areas.  Use a subprocess if necessary.  New arg
47086         WD; all users changed.  MAKE_DIR function should now return 1
47087         if it creates a directory that is not readable.  Return -2 if
47088         a child process is spun off.
47089         * lib/mkancesdirs.h: Include <stddef.h>, for ptrdiff_t.
47090         Adjust signature to match code.
47091         * lib/mkdir-p.c: Include dirname.h, for IS_ABSOLUTE_FILE_NAME.
47092         (make_dir_parents): Use a subprocess if necessary.  New arg WD;
47093         all users changed.
47094         * lib/savewd.c, lib/savewd.h: New files.
47095
47096 2006-09-15  Jim Meyering  <jim@meyering.net>
47097
47098         * modules/rename-dest-slash: New module.
47099         * MODULES.html.sh (posix_compat): Add it here.
47100
47101         * modules/rename: Reflect vb_FUNC_RENAME -> gl_FUNC_RENAME change.
47102
47103 2006-09-15  Jim Meyering  <jim@meyering.net>
47104
47105         * m4/rename-dest-slash.m4 (gl_FUNC_RENAME_TRAILING_DEST_SLASH): New
47106         file.
47107
47108         * m4/rename.m4 (gl_FUNC_RENAME): Rename from vb_FUNC_RENAME.
47109
47110 2006-09-15  Jim Meyering  <jim@meyering.net>
47111
47112         * lib/rename-dest-slash.c (has_trailing_slash): Use
47113         FILE_SYSTEM_PREFIX_LEN, for non-POSIX systems.
47114         (rpl_rename_dest_slash): Perform the cheaper trailing slash
47115         test before testing whether SRC is a directory.
47116         Suggestions from Bruno Haible.
47117
47118         Avoid a warning about an unused variable.
47119         * lib/regex_internal.c (re_dfa_add_node): Move declaration of "type"
47120         into the #ifdef block where it's used.
47121
47122         * lib/rename-dest-slash.c: New file.
47123
47124 2006-09-14  Bruno Haible  <bruno@clisp.org>
47125
47126         * lib/allocsa.c: Include <config.h> unconditionally.
47127         * lib/asnprintf.c: Likewise.
47128         * lib/asprintf.c: Likewise.
47129         * lib/c-strcasecmp.c: Likewise.
47130         * lib/c-strcasestr.c: Likewise.
47131         * lib/c-strncasecmp.c: Likewise.
47132         * lib/c-strstr.c: Likewise.
47133         * lib/classpath.c: Likewise.
47134         * lib/clean-temp.c: Likewise.
47135         * lib/concatpath.c: Likewise.
47136         * lib/copy-file.c: Likewise.
47137         * lib/csharpcomp.c: Likewise.
47138         * lib/csharpexec.c: Likewise.
47139         * lib/execute.c: Likewise.
47140         * lib/fatal-signal.c: Likewise.
47141         * lib/findprog.c: Likewise.
47142         * lib/fwriteerror.c: Likewise.
47143         * lib/gl_array_list.c: Likewise.
47144         * lib/gl_array_oset.c: Likewise.
47145         * lib/gl_avltree_list.c: Likewise.
47146         * lib/gl_avltree_oset.c: Likewise.
47147         * lib/gl_avltreehash_list.c: Likewise.
47148         * lib/gl_carray_list.c: Likewise.
47149         * lib/gl_linked_list.c: Likewise.
47150         * lib/gl_linkedhash_list.c: Likewise.
47151         * lib/gl_list.c: Likewise.
47152         * lib/gl_oset.c: Likewise.
47153         * lib/gl_rbtree_list.c: Likewise.
47154         * lib/gl_rbtree_oset.c: Likewise.
47155         * lib/gl_rbtreehash_list.c: Likewise.
47156         * lib/imaxabs.c: Likewise.
47157         * lib/imaxdiv.c: Likewise.
47158         * lib/javacomp.c: Likewise.
47159         * lib/javaexec.c: Likewise.
47160         * lib/javaversion.c: Likewise.
47161         * lib/linebreak.c: Likewise.
47162         * lib/localcharset.c: Likewise.
47163         * lib/lock.c: Likewise.
47164         * lib/mbchar.c: Likewise.
47165         * lib/mbswidth.c: Likewise.
47166         * lib/mkdtemp.c: Likewise.
47167         * lib/pipe.c: Likewise.
47168         * lib/printf-args.c: Likewise.
47169         * lib/printf-parse.c: Likewise.
47170         * lib/progname.c: Likewise.
47171         * lib/progreloc.c: Likewise.
47172         * lib/readlink.c: Likewise.
47173         * lib/sh-quote.c: Likewise.
47174         * lib/stpcpy.c: Likewise.
47175         * lib/stpncpy.c: Likewise.
47176         * lib/strcasecmp.c: Likewise.
47177         * lib/strcasestr.c: Likewise.
47178         * lib/strcspn.c: Likewise.
47179         * lib/striconv.c: Likewise.
47180         * lib/strncasecmp.c: Likewise.
47181         * lib/strnlen1.c: Likewise.
47182         * lib/strstr.c: Likewise.
47183         * lib/strtok_r.c: Likewise.
47184         * lib/tls.c: Likewise.
47185         * lib/tmpdir.c: Likewise.
47186         * lib/unicodeio.c: Likewise.
47187         * lib/unsetenv.c: Likewise.
47188         * lib/vasnprintf.c: Likewise.
47189         * lib/vasprintf.c: Likewise.
47190         * lib/wait-process.c: Likewise.
47191         * lib/xallocsa.c: Likewise.
47192         * lib/xsetenv.c: Likewise.
47193         * lib/xstriconv.c: Likewise.
47194
47195 2006-09-13  Simon Josefsson  <jas@extundo.com>
47196
47197         * m4/getdate.m4: Don't AC_LIBOBJ([getdate]), automake takes care of
47198         that internally, suggested by Ralf Wildenhues
47199         <Ralf.Wildenhues@gmx.de>.
47200
47201 2006-09-13  Simon Josefsson  <jas@extundo.com>
47202
47203         * gnulib-tool (func_emit_lib_Makefile_am): Use $(LIBOBJS), not
47204         @LIBOBJS@.
47205         Suggested by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
47206
47207 2006-09-13  Paul Eggert  <eggert@cs.ucla.edu>
47208
47209         * lib/_fpending.c: Include <config.h> unconditionally, since we no
47210         longer worry about uses that don't define HAVE_CONFIG_H.
47211         * lib/acl.c, lib/alloca.c, lib/argmatch.c, lib/atexit.c:
47212         * lib/backupfile.c, lib/basename.c, lib/c-stack.c, lib/c-strtod.c:
47213         * lib/calloc.c,lib/ canon-host.c, lib/canonicalize.c, lib/chdir-long.c:
47214         * lib/chdir-safer.c, lib/chown.c, lib/cloexec.c, lib/close-stream.c:
47215         * lib/closeout.c, lib/creat-safer.c, lib/cycle-check.c, lib/diacrit.c:
47216         * lib/dirchownmod.c, lib/dirfd.c, lib/dirname.c, lib/dup-safer.c:
47217         * lib/dup2.c, lib/error.c, lib/euidaccess.c, lib/exclude.c:
47218         * lib/exitfail.c, lib/fchmodat.c, lib/fchown-stub.c, lib/fd-safer.c:
47219         * lib/file-type.c, lib/fileblocks.c, lib/filemode.c, lib/filenamecat.c:
47220         * lib/fnmatch.c, lib/fopen-safer.c, lib/fprintftime.c, lib/free.c:
47221         * lib/fsusage.c, lib/ftruncate.c, lib/fts-cycle.c, lib/fts.c:
47222         * lib/full-write.c, lib/gai_strerror.c, lib/getcwd.c, lib/getdate.y:
47223         * lib/getdomainname.c, lib/getgroups.c, lib/gethostname.c:
47224         * lib/gethrxtime.c, lib/getloadavg.c, lib/getlogin_r.c:
47225         * lib/getndelim2.c, lib/getnline.c, lib/getopt.c, lib/getopt1.c:
47226         * lib/getpass.c, lib/gettime.c, lib/gettimeofday.c, lib/getugroups.c:
47227         * lib/getusershell.c, lib/glob.c, lib/group-member.c:
47228         * lib/hard-locale.c, lib/hash-pjw.c, lib/hash.c, lib/human.c:
47229         * lib/idcache.c, lib/inet_ntop.c, lib/inet_pton.c, lib/inttostr.c:
47230         * lib/isdir.c, lib/lchown.c, lib/linebuffer.c, lib/long-options.c:
47231         * lib/lstat.c, lib/malloc.c, lib/md5.c, lib/memcasecmp.c, lib/memchr.c:
47232         * lib/memcmp.c, lib/memcoll.c, lib/memcpy.c, lib/memmove.c:
47233         * lib/memrchr.c, lib/mkancesdirs.c, lib/mkdir-p.c, lib/mkdir.c:
47234         * lib/mkdirat.c, lib/mkstemp-safer.c, lib/mkstemp.c, lib/modechange.c:
47235         * lib/mountlist.c, lib/nanosleep.c, lib/obstack.c, lib/open-safer.c:
47236         * lib/openat-die.c, lib/openat.c, lib/pagealign_alloc.c, lib/physmem.c:
47237         * lib/pipe-safer.c, lib/posixtm.c, lib/posixver.c, lib/putenv.c:
47238         * lib/quote.c, lib/quotearg.c, lib/raise.c, lib/readtokens.c:
47239         * lib/readtokens0.c, lib/readutmp.c, lib/realloc.c, lib/regex.c:
47240         * lib/rename.c, lib/rmdir.c, lib/rpmatch.c, lib/safe-read.c:
47241         * lib/same.c, lib/save-cwd.c, lib/savedir.c, lib/setenv.c:
47242         * lib/settime.c, lib/sha1.c, lib/sig2str.c, lib/snprintf.c:
47243         * lib/strdup.c, lib/strerror.c, lib/strftime.c, lib/stripslash.c:
47244         * lib/strndup.c, lib/strnlen.c, lib/strpbrk.c, lib/strtod.c:
47245         * lib/strtoimax.c, lib/strtol.c, lib/strverscmp.c, lib/tempname.c:
47246         * lib/time_r.c, lib/timegm.c, lib/tmpfile-safer.c, lib/unlinkdir.c:
47247         * lib/userspec.c, lib/utime.c, lib/utimecmp.c, lib/utimens.c:
47248         * lib/version-etc-fsf.c, lib/version-etc.c, lib/xalloc-die.c:
47249         * lib/xgetcwd.c, lib/xgethostname.c, lib/xmalloc.c, lib/xmemcoll.c:
47250         * lib/xnanosleep.c, lib/xreadlink.c, lib/xstrtod.c, lib/xstrtoimax.c:
47251         * lib/xstrtol.c, lib/xstrtoumax.c, lib/yesno.c:
47252         Likewise.
47253
47254 2006-09-13  Eric Blake  <ebb9@byu.net>
47255
47256         * lib/getopt.c: Fix typo in last commit.
47257
47258 2006-09-12  Sergey Poznyakoff  <gray@gnu.org.ua>
47259
47260         * lib/argp-help.c (argp_doc): Make sure NULL is not passed to
47261         dgettext.
47262
47263 2006-09-12  Jim Meyering  <jim@meyering.net>
47264
47265         * lib/nanosleep.c: Include <sys/types.h> before sys/select.h, to avoid
47266         compilation failure (due to use of pid_t in latter) on NetBSD 1.6.
47267         Reported by Nelson H. F. Beebe.
47268
47269 2006-09-10  Sergey Poznyakoff  <gray@gnu.org.ua>
47270
47271         * lib/argp-parse.c (__argp_parse) [!_LIBC]: Make sure
47272         program_invocation_name and program_invocation_short_name are
47273         initialized.
47274         * lib/argp-namefrob.h: Move declarations of program_invocation_name
47275         and program_invocation_short_name to argp.h, so they are visible
47276         to user programs.
47277         * lib/argp.h: Likewise
47278
47279 2006-09-10  Bruno Haible  <bruno@clisp.org>
47280
47281         * modules/mkdtemp (Files): Remove m4/ulonglong.m4, m4/stdint_h.m4,
47282         m4/inttypes_h.m4, m4/uintmax_t.m4.
47283
47284 2006-09-10  Bruno Haible  <bruno@clisp.org>
47285
47286         * m4/mkdtemp.m4 (gl_PREREQ_MKDTEMP): Don't require
47287         gl_AC_TYPE_UINTMAX_T.
47288
47289 2006-09-10  Bruno Haible  <bruno@clisp.org>
47290
47291         * lib/mkdtemp.c: Include <stdint.h> always. Don't include <inttypes.h>.
47292
47293 2006-09-09  Sergey Poznyakoff  <gray@gnu.org.ua>
47294
47295         * lib/argp.h (struct argp): Document the N_("..") "\v" N_("..")
47296         convention.  Text proposed by Bruno Haible.
47297         (struct argp_option): Document the use of N_() wrappers.
47298
47299         * lib/argp-help.c (argp_doc): Split the untranslated doc string on
47300         '\v', and translate the two parts separately, instead of feeding
47301         the whole string to gettext.  This allows to exclude
47302         '\v' from the strings visible to the translator by writing doc
47303         strings as N_("..") "\v" N_("..").
47304
47305 2006-09-09  Paul Eggert  <eggert@cs.ucla.edu>
47306
47307         * config/srclist.txt: Undo latest change; the bug was fixed.
47308
47309 2006-09-09  Bruno Haible  <bruno@clisp.org>
47310
47311         * gnulib-tool (func_emit_lib_Makefile_am): Eliminate lib_LDFLAGS
47312         assignments if building a library without libtool.
47313         (func_emit_tests_Makefile_am): Likewise. Handle lib_* variables as
47314         in func_emit_lib_Makefile_am.
47315         (func_import): When building a static library libfoo.a, arrange to
47316         define variables LIBFOO_LIBDEPS and LIBFOO_LTLIBDEPS.
47317         (func_create_testdir): Likewise.
47318         * modules/gc (configure.ac, Makefile.am): If building statically,
47319         augment gl_libdeps and gl_ltlibdeps instead of lib_LDFLAGS.
47320         * modules/iconvme (configure.ac, Makefile.am): Likewise.
47321         * modules/striconv (configure.ac, Makefile.am): Likewise.
47322         Based on a suggestion by Ralf Wildenhues.
47323
47324 2006-09-08  Paul Eggert  <eggert@cs.ucla.edu>
47325
47326         * m4/mktime.m4 (AC_FUNC_MKTIME): Sync from Autoconf.
47327         Check for unistd.h too, since Autoconf doesn't assume POSIX.
47328         Also:
47329
47330         2006-09-08  Paul Eggert  <eggert@cs.ucla.edu>
47331         Add year_2050_test to catch glibc bug 2821
47332         <http://sourceware.org/bugzilla/show_bug.cgi?id=2821>.
47333
47334         2006-08-15  Paul Eggert  <eggert@cs.ucla.edu>
47335         Prefer #ifdef to #if.
47336
47337         2006-04-02  Paul Eggert  <eggert@cs.ucla.edu>
47338         Return from 'main' instead of calling 'exit'.
47339
47340 2006-09-08  Paul Eggert  <eggert@cs.ucla.edu>
47341
47342         * lib/mktime.c (guess_time_tm): Fix bug where mktime
47343         returned the maximum time_t value rather than (time_t) -1.
47344         Problem originally reported by William Bardwell
47345         <http://sourceware.org/bugzilla/show_bug.cgi?id=2821>.
47346
47347         * lib/isapipe.h (HAVE_FIFO_PIPES) [!defined HAVE_FIFO_PIPES]:
47348         Moved to here ...
47349         * lib/isapipe.c (HAVE_FIFO_PIPES) [!defined HAVE_FIFO_PIPES]:
47350         ... from here.
47351
47352 2006-09-08  Paul Eggert  <eggert@cs.ucla.edu>
47353
47354         * config/srclist.txt: Temporarily comment out mktime.c until glibc bug
47355         2821 is fixed.
47356
47357 2006-09-08  Jim Meyering  <jim@meyering.net>
47358
47359         Don't make generated files read-only.  That would bother too many
47360         people.  However, do retain the ability to work when targets are
47361         read-only: remove the destination and temporary files before writing
47362         them (when generated via sed or echo), or by using the -f option for
47363         both cp and mv commands.  Suggestion to use -f from Paul Eggert.
47364         * modules/alloca-opt, modules/argz, modules/arpa_inet:
47365         * modules/byteswap, modules/configmake, modules/fcntl:
47366         * modules/fnmatch, modules/getopt, modules/glob, modules/inttypes:
47367         * modules/localcharset, modules/netinet_in, modules/poll:
47368         * modules/stdbool, modules/stdint, modules/sys_select:
47369         * modules/sys_socket, modules/sys_stat, modules/sysexits:
47370
47371 2006-09-08  Jim Meyering  <jim@meyering.net>
47372
47373         Avoid new build failure on FreeBSD 6.0.
47374         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Include
47375         <sys/param.h> when testing whether getmntinfo uses statvfs.  Patch by
47376         Pavel Tsekov, in <http://savannah.gnu.org/bugs/?17643>.
47377
47378 2006-09-07  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
47379
47380         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Don't use plain echo.
47381
47382 2006-09-07  Jim Meyering  <jim@meyering.net>
47383
47384         Fix global typo in last change: use chmod u-w, not chmod u-x.
47385         Spotted by Paul Eggert and Bruce Korb.
47386         * modules/alloca-opt, modules/argz, modules/arpa_inet:
47387         * modules/byteswap, modules/configmake, modules/fcntl:
47388         * modules/fnmatch, modules/getopt, modules/glob, modules/inttypes:
47389         * modules/localcharset, modules/netinet_in, modules/poll:
47390         * modules/stdbool, modules/stdint, modules/sys_select:
47391         * modules/sys_socket, modules/sys_stat, modules/sysexits:
47392
47393 2006-09-06  Jim Meyering  <jim@meyering.net>
47394
47395         Make generated files be read-only.
47396         * modules/alloca-opt (Makefile.am): Work also when $@ is read-only.
47397         Ensure that each generated file is now read-only.
47398         * modules/argz: Likewise.
47399         * modules/arpa_inet: Likewise.
47400         * modules/byteswap: Likewise.
47401         * modules/configmake: Likewise.
47402         * modules/fcntl: Likewise.
47403         * modules/fnmatch: Likewise.
47404         * modules/getopt: Likewise.
47405         * modules/glob: Likewise.
47406         * modules/inttypes: Likewise.
47407         * modules/netinet_in: Likewise.
47408         * modules/poll: Likewise.
47409         * modules/stdbool: Likewise.
47410         * modules/stdint: Likewise.
47411         * modules/sys_select: Likewise.
47412         * modules/sys_socket: Likewise.
47413         * modules/sys_stat: Likewise.
47414         * modules/sysexits: Likewise.
47415         * modules/localcharset: Same as above, but continue using temporary
47416         file named "t-$@" (why different?) rather than the "$@-t" used
47417         everywhere else.
47418
47419         * modules/sysexits (Makefile.am): Replace literal occurrences
47420         of "sysexit.h" more readable, and more consistent, "$@".
47421
47422 2006-09-06  Bruno Haible  <bruno@clisp.org>
47423
47424         * modules/striconv: New file.
47425         * modules/xstriconv: New file.
47426         * MODULES.html.sh (Internationalization functions): Add striconv,
47427         xstriconv.
47428
47429 2006-09-06  Bruno Haible  <bruno@clisp.org>
47430
47431         * modules/gc (Makefile.am): Augment lib_LDFLAGS, not lib_LIBADD.
47432         * modules/iconvme (Makefile.am): Likewise. Also handle the case of
47433         not using libtool correctly.
47434
47435 2006-09-06  Bruno Haible  <bruno@clisp.org>
47436
47437         * lib/striconv.h: New file.
47438         * lib/striconv.c: New file, merging iconvme.c with GNU gettext's
47439         iconvstring.c.
47440         * lib/xstriconv.h: New file.
47441         * lib/xstriconv.c: New file.
47442
47443 2006-09-06  Bruno Haible  <bruno@clisp.org>
47444
47445         * gnulib-tool (func_emit_lib_Makefile_am): Initialize also
47446         lib_..._LDFLAGS.
47447
47448 2006-09-05  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
47449
47450         * lib/argz_.h: Sync from Libtool.
47451
47452         2006-09-04  George Bosilca <bosilca@cs.utk.edu>
47453                 and Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
47454
47455         * lib/libltdl/argz_.h: It's __cplusplus, not _cplusplus.
47456
47457 2006-09-05  Davide Angelocola  <davide.angelocola@tiscali.it>
47458
47459         * modules/trim: New file.
47460
47461 2006-09-05  Davide Angelocola  <davide.angelocola@tiscali.it>
47462
47463         * lib/trim.h: New file.
47464         * lib/trim.c: New file.
47465
47466 2006-09-05  Bruno Haible  <bruno@clisp.org>
47467
47468         * MODULES.html.sh (String handling): Add trim.
47469
47470 2006-09-04  Karl Berry  <karl@gnu.org>
47471
47472         * config/srclist.txt (signed.m4, gettext.m4): changes not propagated
47473         until next release.
47474
47475 2006-09-03  Bruno Haible  <bruno@clisp.org>
47476
47477         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): Locate mingw shared libraries
47478         correctly.
47479
47480 2006-09-01  Paul Eggert  <eggert@cs.ucla.edu>
47481
47482         * m4/getloadavg.m4 (gl_GETLOADAVG): Use CONFIGURING_GETLOADAVG,
47483         not gl_GETLOADAVG.  Omit unneeded semicolons.
47484         Problems reported by Ralf Wildenhues in
47485         <http://lists.gnu.org/archive/html/bug-gnulib/2006-09/msg00000.html>.
47486         (gl_PREREQ_GETLOADAVG): Use AC_DEFUN, not m4_define.  Put
47487         at the end, which is the usual gnulib style.
47488
47489         * m4/fstypename.m4 (gl_FSTYPENAME): Use AC_CHECK_MEMBERS instead
47490         of doing all the work ourselves.
47491         * m4/fsusage.m4 (gl_PREREQ_FSUSAGE_EXTRA): Don't check for
47492         sys/statvfs.h since the code doesn't use HAVE_SYS_STATVFS_H.
47493
47494 2006-09-01  Paul Eggert  <eggert@cs.ucla.edu>
47495
47496         * lib/getloadavg.c: Use CONFIGURING_GETLOADAVG, not gl_GETLOADAVG.
47497         Problem reported by Ralf Wildenhues in
47498         <http://lists.gnu.org/archive/html/bug-gnulib/2006-09/msg00000.html>.
47499
47500         * lib/mountlist.c: All uses of HAVE_F_FSTYPENAME_IN_STATFS replaced by
47501         HAVE_STRUCT_STATFS_F_FSTYPENAME.
47502
47503 2006-09-01  Paul Eggert  <eggert@cs.ucla.edu>
47504
47505         * gnulib-tool (func_emit_lib_Makefile_am): Fix typos in
47506         yesterday's patch by changing test -n to test -z.
47507
47508 2006-08-31  Paul Eggert  <eggert@cs.ucla.edu>
47509
47510         * modules/getloadavg (Files): Add m4/getloadavg.m4.
47511         (configure.ac): AC_FUNC_GETLOADAVG -> gl_GETLOADAVG, as
47512         the former is now obsolescent.
47513
47514         * modules/chdir-long (Depends-on): Add fcntl.
47515
47516 2006-08-31  Paul Eggert  <eggert@cs.ucla.edu>
47517
47518         * m4/fnmatch.m4: Add comment that Autoconf AC_FUNC_FNMATCH is
47519         obsolescent, and programs should use gnulib instead.
47520         * m4/getloadavg.m4: New file, with contents taken from Autoconf
47521         but with prefixes changed.
47522
47523 2006-08-31  Paul Eggert  <eggert@cs.ucla.edu>
47524
47525         * lib/getloadavg.c [defined gl_GETLOADAVG]: Don't include config.h
47526         or stdbool.h, because they might not exist while configuring.
47527
47528         * lib/chdir-long.c: Include <fcntl.h>, for O_DIRECTORY.
47529         Don't include unistd.h or limits.h; not needed, since chdir-long.h
47530         does that for us.
47531         (O_DIRECTORY): Remove.
47532
47533 2006-08-31  Eric Blake  <ebb9@byu.net>
47534
47535         * gnulib-tool: Don't let emacs change spaces to TAB.
47536
47537 2006-08-31  Bruno Haible  <bruno@clisp.org>
47538
47539         * gnulib-tool: When calling func_import more than once, do it in a
47540         subshell.
47541         Reported by Eric Blake <ebb9@byu.net>.
47542
47543 2006-08-31  Bruno Haible  <bruno@clisp.org>
47544
47545         * gnulib-tool (nl): Remove variable.
47546         (sed_transform_lib_file): Use more robust test for config-h module.
47547         (func_import): Fix typo in 2006-08-25 patch.
47548
47549 2006-08-31  Bruno Haible  <bruno@clisp.org>
47550
47551         * gnulib-tool (func_emit_lib_Makefile_am): When --makefile-name was
47552         specified, augment Makefile.am variables instead of assigning them.
47553
47554 2006-08-30  Paul Eggert  <eggert@cs.ucla.edu>
47555
47556         Work around a bug in both the Linux and SunOS 64-bit kernels:
47557         nanosleep mishandles sleeps for longer than 2**31 seconds.
47558         Problem reported by Frank v Waveren in
47559         <http://lists.gnu.org/archive/html/bug-coreutils/2006-08/msg00298.html>.
47560         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Require gl_CLOCK_TIME.
47561         Check for nanosleep bug.
47562         (LIB_NANOSLEEP): Append clock_gettime library if needed.
47563
47564 2006-08-30  Paul Eggert  <eggert@cs.ucla.edu>
47565
47566         Work around a bug in both the Linux and SunOS 64-bit kernels:
47567         nanosleep mishandles sleeps for longer than 2**31 seconds.
47568         Problem reported by Frank v Waveren in
47569         <http://lists.gnu.org/archive/html/bug-coreutils/2006-08/msg00298.html>.
47570         * lib/nanosleep.c (BILLION): New constant.
47571         (getnow) [HAVE_BUG_BIG_NANOSLEEP]: New functions.
47572         (rpl_nanosleep) [HAVE_BUG_BIG_NANOSLEEP]: Completely new
47573         implementation.
47574
47575 2006-08-30  Paul Eggert  <eggert@cs.ucla.edu>
47576
47577         * modules/nanosleep (Depends-on): Add gettime.
47578
47579 2006-08-30  Paul Eggert  <eggert@cs.ucla.edu>
47580         and Simon Josefsson  <jas@extundo.com>
47581         and Oskar Liljeblad  <oskar@osk.mine.nu>
47582
47583         * MODULES.html.sh (Support for building documentation): Add gpl, lgpl.
47584         * gnulib-tool (func_import): New license type 'unmodifiable license
47585         text'.
47586         * modules/fdl: Use it.  Longer description.
47587         * module/gpl, module/lgpl: New files.
47588
47589 2006-08-30  Jim Meyering  <jim@meyering.net>
47590
47591         * lib/isapipe.c (isapipe): Rename local s/fd/fd_pair/ to avoid
47592         shadowing the parameter.
47593
47594 2006-08-29  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
47595
47596         Sync from Libtool:
47597
47598         2006-08-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
47599
47600         * lib/libltdl/argz.c: Use `#ifdef HAVE_CONFIG_H', to facilitate code
47601         sharing with gnulib.  Report by Eric Blake.
47602
47603 2006-08-29  Paul Eggert  <eggert@cs.ucla.edu>
47604
47605         * modules/isapipe: New file.
47606         * MODULES.html.sh (File descriptor based Input/Output): Add isapipe.
47607
47608 2006-08-29  Paul Eggert  <eggert@cs.ucla.edu>
47609
47610         * modules/configmake (Makefile.am): Add a comment, and omit
47611         the CONFIGMAKE_ prefix from generated macro names.  Suggested
47612         by Bruno Haible.
47613
47614 2006-08-29  Paul Eggert  <eggert@cs.ucla.edu>
47615
47616         * m4/isapipe.m4: New file.
47617
47618 2006-08-29  Paul Eggert  <eggert@cs.ucla.edu>
47619
47620         * lib/isapipe.c, lib/isapipe.h: New files.
47621
47622 2006-08-29  Jim Meyering  <jim@meyering.net>
47623
47624         * modules/configmake (Makefile.am): Make configmake.h depend on
47625         Makefile.  Otherwise, a stale configmake.h could hang around.
47626
47627 2006-08-29  Eric Blake  <ebb9@byu.net>
47628
47629         * lib/error.c (error_at_line, print_errno_message): Match libc, after
47630         resolution of upstream bug 3044.
47631
47632 2006-08-29  Bruno Haible  <bruno@clisp.org>
47633
47634         * modules/localcharset (Depends-on): Add configmake.
47635         (Makefile.am): Remove setting of LIBDIR through DEFS.
47636
47637 2006-08-29  Bruno Haible  <bruno@clisp.org>
47638
47639         * lib/localcharset.c: Include configmake.h in order to get LIBDIR
47640         defined.
47641
47642 2006-08-28  Paul Eggert  <eggert@cs.ucla.edu>
47643
47644         * modules/fcntl: New file.
47645         * modules/chdir-safer (Depends-on): Add fcntl.
47646         * modules/fts: Likewise.
47647         * modules/mkdir-p: Likewise.
47648
47649         * modules/stdint (Makefile.am): Do not substitute ABSOLUTE_INTTYPES_H.
47650         This undoes the most recent change, since we're now addressing the
47651         problem in a different way.
47652
47653         * gnulib-tool (emit_lib_Makefile_am): Don't put $makefile_name
47654         into output, since the output might be called Makefile.am even
47655         if $makefile_name is something different.
47656         (func_import): Use $makefile_am rather than
47657         ${makefile_name-Makefile.am}, to fix a bug where makefile_name was
47658         empty.
47659
47660         * modules/inttypes (Files): Add m4/inttypes-h.m4.
47661
47662 2006-08-28  Paul Eggert  <eggert@cs.ucla.edu>
47663
47664         * m4/inttypes.m4 (gl_INTTYPES_H): Move ABSOLUTE_INTTYPES_H code here...
47665         * m4/stdint.m4 (gl_STDINT_H): ... from here.  This undoes the most
47666         recent change to stdint.m4, since we're now addressing the problem in a
47667         different way.
47668
47669 2006-08-28  Paul Eggert  <eggert@cs.ucla.edu>
47670
47671         * m4/fcntl_h.m4: New file.
47672
47673 2006-08-28  Paul Eggert  <eggert@cs.ucla.edu>
47674
47675         * lib/fcntl_.h: New file.
47676         * lib/chdir-safer.c (O_DIRECTORY, O_NOFOLLOW): Remove, now that we have
47677         the fcntl module.
47678         * lib/dirchownmod.c: Likewise.
47679         * lib/fts.c: Likewise.
47680
47681         * lib/inttypes_.h [defined _GL_JUST_INCLUDE_ABSOLUTE_INTTYPES_H]:
47682         Include @ABSOLUTE_INTTYPES_H@ if available, but do nothing else.
47683         * lib/stdint_.h (_GL_JUST_INCLUDE_ABSOLUTE_INTTYPES_H): Define
47684         just before including <inttypes.h>, to avoid circular inclusion.
47685
47686 2006-08-28  Jim Meyering  <jim@meyering.net>
47687
47688         * doc/visibility.texi: Actually read and correct the grammar of the
47689         sentence affected by yesterday's change.
47690
47691 2006-08-28  Eric Blake  <ebb9@byu.net>
47692
47693         * modules/inttypes (Makefile.am): Fix sed error when inttypes.h
47694         needs wrapper.
47695
47696 2006-08-28  Eric Blake  <ebb9@byu.net>
47697
47698         * m4/inttypes.m4 (gl_INTTYPES_H): Fix missing #endif.
47699
47700 2006-08-28  Eric Blake  <ebb9@byu.net>
47701
47702         * m4/codeset.m4 (AM_LANGINFO_CODESET): Avoid compiler warning.
47703
47704 2006-08-28  Bruno Haible  <bruno@clisp.org>
47705
47706         * modules/c-strstr: New file, from GNU gettext.
47707         * MODULES.html.sh (String handling): Add c-strstr.
47708
47709 2006-08-28  Bruno Haible  <bruno@clisp.org>
47710
47711         * m4/inttypes.m4 (gl_INTTYPES_H): Don't test for the existence of SCNX*
47712         macros.
47713         Reported by Eric Blake.
47714
47715 2006-08-28  Bruno Haible  <bruno@clisp.org>
47716
47717         * lib/vasnprintf.c (EOVERFLOW): Remove definition.
47718         (VASNPRINTF): Return a string of length > INT_MAX without failing.
47719         * lib/vasprintf.c: Include errno.h, limits.h.
47720         (EOVERFLOW): New fallback definition.
47721         (vasprintf): Test here whether the string length is > INT_MAX.
47722         * lib/vsnprintf.c: Include errno.h, limits.h.
47723         (EOVERFLOW): New fallback definition.
47724         (vsnprintf): Fix bug when generated string was too long for the buffer.
47725         Test here whether the string length is > INT_MAX.
47726
47727 2006-08-28  Bruno Haible  <bruno@clisp.org>
47728
47729         * lib/inttypes_.h (SCNX*): Remove definitions.
47730         Reported by Eric Blake.
47731
47732 2006-08-28  Bruno Haible  <bruno@clisp.org>
47733
47734         * lib/c-strstr.h: New file, from GNU gettext.
47735         * lib/c-strstr.c: New file, from GNU gettext.
47736
47737 2006-08-28  Bruno Haible  <bruno@clisp.org>
47738
47739         * gnulib-tool: Reorder some statements.
47740
47741 2006-08-28  Bruno Haible  <bruno@clisp.org>
47742
47743         * gnulib-tool: New option --makefile-name.
47744         (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am): Use
47745         $makefile_name.
47746         (func_import): Write $makefile_name to the cache file, and read it from
47747         there unless explicitly specified. Use $makefile_name as file name
47748         instead of Makefile.am. Adjust the recommendations accordingly.
47749
47750 2006-08-28  Bruno Haible  <bruno@clisp.org>
47751
47752         * gnulib-tool (func_verify_module): Check against misapplying patch.
47753
47754 2006-08-28  Bruno Haible  <bruno@clisp.org>
47755
47756         * gnulib-tool (func_relativize, func_relconcat): New functions.
47757         Give an error if --local-dir is given with --update.
47758         Remove trailing slashes from $local_gnulib_dir.
47759         (func_import): Store the relativized $local_gnulib_dir in
47760         gnulib-cache.m4, and read it from there if not specified explicitly.
47761
47762 2006-08-28  Bruno Haible  <bruno@clisp.org>
47763
47764         * gnulib-tool (func_get_tests_module): Don't assume that $gnulib_dir
47765         is the current directory. Respect also $local_gnulib_dir.
47766
47767 2006-08-28  Bruno Haible  <bruno@clisp.org>
47768             Simon Josefsson  <jas@extundo.com>
47769
47770         BeOS portability.
47771         * lib/getaddrinfo.c (PF_INET, PF_UNSPEC): New macros.
47772
47773 2006-08-27  Jim Meyering  <jim@meyering.net>
47774
47775         * doc/visibility.texi: Remove duplicate word: "pointer".
47776
47777 2006-08-26  Bruno Haible  <bruno@clisp.org>
47778
47779         * modules/inttypes (Files): Add lib/inttypes_.h, remove lib/inttypes.h.
47780         Add m4/inttypes.m4, remove m4/_inttypes_h.m4 and m4/include_next.m4.
47781         (Makefile.am): Create inttypes.h from inttypes_.h.
47782         * modules/stdint (Makefile.am): Substitute also ABSOLUTE_INTTYPES_H.
47783
47784         * modules/imaxabs: New file.
47785
47786         * modules/imaxdiv: New file.
47787
47788 2006-08-26  Bruno Haible  <bruno@clisp.org>
47789
47790         * m4/inttypes.m4: New file.
47791         * m4/_inttypes_h.m4: Remove file.
47792         * m4/inttypes-pri.m4 (gt_INTTYPES_PRI): Also AC_SUBST
47793         PRI_MACROS_BROKEN.
47794         * m4/stdint.m4 (gl_STDINT_H): Define also ABSOLUTE_INTTYPES_H.
47795
47796         * m4/imaxabs.m4: New file.
47797
47798         * m4/imaxdiv.m4: New file.
47799
47800 2006-08-26  Bruno Haible  <bruno@clisp.org>
47801
47802         * lib/inttypes_.h: New file.
47803         * lib/inttypes.h: Remove file.
47804         * lib/stdint_.h: Include <inttypes.h> through its absolute filename.
47805
47806         * lib/imaxabs.c: New file.
47807
47808         * lib/imaxdiv.c: New file.
47809
47810 2006-08-25  Paul Eggert  <eggert@cs.ucla.edu>
47811
47812         New config-h module, so that "make" output needn't be cluttered
47813         by -DHAVE_CONFIG_H.
47814         * MODULES.html.sh (Support for building libraries and executables):
47815         Add config-h.
47816         * modules/config-h: New file.
47817         * gnulib-tool (nl, sed_transform_lib_file): New vars.
47818         (func_import): Turn "#ifdef HAVE_CONFIG_H" to "#if 1" if
47819         the config-h module is used.
47820
47821         New configmake module, so that "make" output needn't be cluttered
47822         by fluff like '-DLIBDIR=\"/usr/local/lib\"'.
47823         * MODULES.html.sh (Support for building libraries and executables):
47824         Add configmake.
47825         * modules/configmake: New file.
47826
47827 2006-08-25  Paul Eggert  <eggert@cs.ucla.edu>
47828
47829         * m4/config-h.m4: New file.
47830
47831 2006-08-24  Paul Eggert  <eggert@cs.ucla.edu>
47832
47833         * config/srclist.txt: Add elisp-comp.
47834
47835 2006-08-24  Paul Eggert  <eggert@cs.ucla.edu>
47836
47837         * MODULES.html.sh (Support for building libraries and executables):
47838         Add elisp-comp.
47839         * build-aux/elisp-comp: New file.
47840         * modules/elisp-comp: New file.
47841
47842 2006-08-24  Bruno Haible  <bruno@clisp.org>
47843
47844         * gnulib-tool (func_create_testdir): Use non-default values of
47845         sourcebase and m4base.
47846
47847 2006-08-24  Bruno Haible  <bruno@clisp.org>
47848
47849         * MODULES.html.sh (Compatibility checks for POSIX:2001 functions: Fix
47850         HTML structure.
47851
47852 2006-08-23  Paul Eggert  <eggert@cs.ucla.edu>
47853
47854         * modules/openat (Depends-on): Add lchown.
47855
47856 2006-08-23  Bruno Haible  <bruno@clisp.org>
47857
47858         * gnulib-tool (func_import, func_create_testdir): Emit an invocation
47859         of gl_LOCK_EARLY instead of gl_LOCK.
47860
47861 2006-08-23  Bruno Haible  <bruno@clisp.org>
47862
47863         * m4/lock.m4 (gl_LOCK_BODY): Change the default value of gl_use_threads
47864         on OSF/1 to no.
47865         Reported by Stephen Cartwright <sgcartwr@ucalgary.ca>.
47866
47867 2006-08-23  Bruno Haible  <bruno@clisp.org>
47868
47869         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Don't consider BeOS statvfs
47870         as unusable.
47871
47872         * m4/lock.m4 (gl_LOCK_EARLY): Renamed from gl_LOCK.
47873         (gl_LOCK_BODY): Remove gl_PREREQ_LOCK invocation.
47874         (gl_LOCK): New macro.
47875
47876 2006-08-22  Simon Josefsson  <jas@extundo.com>
47877
47878         * modules/gc-md5 (Makefile.am): Need to add md5.h, after changes
47879         to md5 module.
47880
47881 2006-08-22  Simon Josefsson  <jas@extundo.com>
47882
47883         * MODULES.html.sh: Add "Support for maintaining and release
47884         projects".
47885
47886         * build-aux/gnupload: New file, from coreutils.
47887
47888 2006-08-22  Paul Eggert  <eggert@cs.ucla.edu>
47889
47890         Avoid the need for AC_LIBSOURCES in m4 macros.
47891         * modules/arcfour (EXTRA_DIST): Add arcfour.h.
47892         * modules/arctwo (EXTRA_DIST): Add arctwo.h.
47893         * modules/check-version (EXTRA_DIST): Add check-version.h.
47894         * modules/crc (EXTRA_DIST): Add crc.h.
47895         * modules/des (EXTRA_DIST): Add des.h.
47896         * modules/gc (EXTRA_DIST): Add gc.h.
47897         * modules/getdelim (EXTRA_DIST): Add getdelim.h.
47898         * modules/getline (EXTRA_DIST): Add getline.h.
47899         * modules/getlogin_r (EXTRA_DIST): Add getlogin_r.h.
47900         * modules/hmac-md5 (EXTRA_DIST): Add hmac.h.
47901         * modules/hmac-sha1 (EXTRA_DIST): Add hmac.h.
47902         * modules/md2 (EXTRA_DIST): Add md2.h.
47903         * modules/md4 (EXTRA_DIST): Add md4.h.
47904         * modules/pagealign_alloc (EXTRA_DIST): Add pagealign_alloc.h.
47905         * modules/read-file (EXTRA_DIST): Add read-file.h.
47906         * modules/readline (EXTRA_DIST): Add readline.h.
47907         * modules/rijndael (EXTRA_DIST): Add rijndael-alg-fst.h,
47908         rijndael-api-fst.h.
47909
47910 2006-08-22  Paul Eggert  <eggert@cs.ucla.edu>
47911
47912         * m4/rijndael.m4 (gl_ARCFOUR):
47913         * m4/arctwo.m4 (gl_ARCTWO):
47914         * m4/check-version.m4 (gl_CHECK_VERSION):
47915         * m4/crc.m4 (gl_CRC):
47916         * m4/des.m4 (gl_DES):
47917         * m4/gc-pbkdf2-sha1.m4 (gl_GC_PBKDF2_SHA1):
47918         * m4/gc.m4 (gl_GC):
47919         * m4/getdelim.m4 (gl_FUNC_GETDELIM):
47920         * m4/getline.m4 (gl_FUNC_GETLINE):
47921         * m4/getlogin_r.m4 (gl_GETLOGIN_R_SUBSTITUTE):
47922         * m4/hmac-md5.m4 (gl_HMAC_MD5):
47923         * m4/hmac-sha1.m4 (gl_HMAC_SHA1):
47924         * m4/md2.m4 (gl_MD2):
47925         * m4/md4.m4 (gl_MD4):
47926         * m4/pagealign_alloc.m4 (gl_PAGEALIGN_ALLOC):
47927         * m4/read-file.m4 (gl_FUNC_READ_FILE):
47928         * m4/readline.m4 (gl_FUNC_READLINE):
47929         * m4/rijndael.m4 (gl_RIJNDAEL):
47930         Don't use AC_LIBSOURCES; instead, rely on the files in ../modules/
47931         to get the necessary .h files and whatnot.
47932
47933 2006-08-22  Paul Eggert  <eggert@cs.ucla.edu>
47934
47935         * config/srclist.txt: Remove gnupload, since coreutils now syncs from
47936         gnulib rather than the other way around.
47937         * config/srclistvars.sh (COREUTILS): Remove.
47938
47939 2006-08-22  Jim Meyering  <jim@meyering.net>
47940
47941         * modules/mkdir-p (Makefile.am): Fix typo: s/lib+SOURCES/lib_SOURCES/.
47942
47943         * modules/getpass-gnu (Makefile.am): Add getpass.h to EXTRA_DIST.
47944
47945 2006-08-22  Eric Blake  <ebb9@byu.net>
47946
47947         * modules/regexprops-generic: New file.
47948         * MODULES.html.sh (Support for building documentation): List it.
47949
47950 2006-08-22  Eric Blake  <ebb9@byu.net>
47951
47952         * m4/stdint_h.m4 (gl_AC_HEADER_STDINT_H): Avoid compiler warning.
47953         * m4/inttypes_h.m4 (gl_AC_HEADER_INTTYPES_H): Likewise.
47954         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Likewise.
47955         * m4/intmax_t.m4 (gt_AC_TYPE_INTMAX_T): Likewise.
47956
47957 2006-08-22  Bruno Haible  <bruno@clisp.org>
47958
47959         * gnulib-tool (func_emit_lib_Makefile_am): Don't treat lib_LIBRARIES
47960         and lib_LTLIBRARIES like the other lib_* variables.
47961
47962 2006-08-22  Bruno Haible  <bruno@clisp.org>
47963
47964         * build-aux/x-to-1.in: New file, from GNU gettext.
47965
47966 2006-08-22  Bruno Haible  <bruno@clisp.org>
47967
47968         * m4/readutmp.m4 (gl_READUTMP): Compile readutmp.c only if <utmp.h> or
47969         <utmpx.h> exists.
47970
47971 2006-08-22  Bruno Haible  <bruno@clisp.org>
47972
47973         * lib/readutmp.h: Skip most definitions if neither <utmp.h> nor
47974         <utmpx.h> exists.
47975
47976 2006-08-21  Paul Eggert  <eggert@cs.ucla.edu>
47977
47978         BeOS portability.
47979         * lib/dirchownmod.c (dirchownmod): Don't use fchmod if it doesn't
47980         exist.
47981         Problem reported by Bruno Haible.
47982
47983 2006-08-21  Paul Eggert  <eggert@cs.ucla.edu>
47984
47985         Avoid the need for AC_LIBSOURCES in m4 macros.
47986         * modules/acl (EXTRA_DIST): Add acl.h.
47987         * modules/argmatch (Files): Add m4/argmatch.m4.
47988         (configure.ac): Add gl_ARGMATCH.
47989         (EXTRA_DIST): Renamed from lib_SOURCES, for
47990         consistency with the other modules.  Remove argmatch.c.
47991         * modules/backupfile (EXTRA_DIST): Add backupfile.h.
47992         * modules/c-strtod (EXTRA_DIST): Add c-strtod.h.
47993         * modules/c-strtold (EXTRA_DIST): Add c-strtod.c, c-strtod.h.
47994         * modules/canonhost (EXTRA_DIST): Add c-canonhost.h.
47995         * modules/canonicalize (EXTRA_DIST): Add canonicalize.h.
47996         * modules/chdir-long (EXTRA_DIST): Add chdir-long.h.
47997         * modules/chdir-safer (EXTRA_DIST): Add chdir-safer.h.
47998         * modules/cloexec (EXTRA_DIST): Add cloexec.h.
47999         * modules/close-stream (EXTRA_DIST): Add close-stream.h.
48000         * modules/closeout (EXTRA_DIST): Add closeout.h.
48001         * modules/cycle-check (EXTRA_DIST): Add cycle-check.h.
48002         * modules/dev-ino (EXTRA_DIST): Add dev-ino.h.
48003         * modules/dirfd (EXTRA_DIST): Add dirfd.h.
48004         * modules/dirname (EXTRA_DIST): Renamed from lib_SOURCES.  Add
48005         dirname.h; remove basename.c and stripslash.c.
48006         * modules/exclude (EXTRA_DIST): Add exclude.h.
48007         * modules/exitfail (EXTRA_DIST): Add exitfail.h.
48008         * modules/fcntl-safer (EXTRA_DIST): Add fcntl-safer.h fcntl--.h.
48009         * modules/file-type (EXTRA_DIST): Add file-type.h.
48010         * modules/filemode (EXTRA_DIST): Add filemode.h.
48011         * modules/filenamecat (EXTRA_DIST): Add filenamecat.h.
48012         * modules/fopen-safer (EXTRA_DIST): Add stdio-safer.h stdio--.h.
48013         * modules/fpending (EXTRA_DIST): Add __fpending.h.
48014         * modules/fprintftime (EXTRA_DIST): Add fprintftime.h.
48015         * modules/fsusage (EXTRA_DIST): Add fsusage.h.
48016         * modules/fts (EXTRA_DIST): Add fts_.h fts-cycle.c.
48017         * modules/getcwd (EXTRA_DIST): Add getcwd.h.
48018         * modules/getdate (EXTRA_DIST): Add getdate.c.
48019         * modules/gethrxtime (EXTRA_DIST): Add gethrxtime.h xtime.h.
48020         * modules/getpagesize (EXTRA_DIST): Add getpagesize.h.
48021         * modules/getpass (EXTRA_DIST): Add getpass.h.
48022         * modules/glob (EXTRA_DIST): Add glob_.h glob-libc.h.
48023         * modules/group-member (EXTRA_DIST): Add group-member.h.
48024         * modules/hard-locale (EXTRA_DIST): Add hard-locale.h.
48025         * modules/hash (EXTRA_DIST): Add hash.h.
48026         * modules/human (EXTRA_DIST): Add human.h.
48027         * modules/inttypes (EXTRA_DIST): Add inttypes.h.
48028         * modules/lchmod (EXTRA_DIST): Add lchmod.h.
48029         * modules/lchown (EXTRA_DIST): Add lchown.h.
48030         * modules/long-options (EXTRA_DIST): Add long-options.h.
48031         * modules/lstat (EXTRA_DIST): Add lstat.h.
48032         * modules/md5 (EXTRA_DIST): Add memcasecmp.h.
48033         * modules/memcoll (EXTRA_DIST): Add memcoll.h.
48034         * modules/mempcpy (EXTRA_DIST): Add mempcpy.h.
48035         * modules/memrchr (EXTRA_DIST): Add memrchr.h.
48036         * modules/memxor (EXTRA_DIST): Add memxor.h.
48037         * modules/mkancesdirs (EXTRA_DIST): Add mkancesdirs.h.
48038         * modules/mkdir-p (EXTRA_DIST): Add modechange.h.
48039         * modules/mountlist (EXTRA_DIST): Add mountlist.h.
48040         * modules/openat (EXTRA_DIST): Add at-func.c openat.h openat-priv.h.
48041         * modules/pathmax (EXTRA_DIST): Add pathmax.h.
48042         * modules/physmem (EXTRA_DIST): Add physmem.h.
48043         * modules/posixtm (EXTRA_DIST): Add posixtm.h.
48044         * modules/posixver (EXTRA_DIST): Add posixver.h.
48045         * modules/quote (EXTRA_DIST): Add quote.h.
48046         * modules/quotearg (EXTRA_DIST): Add quotearg.h.
48047         * modules/readtokens (EXTRA_DIST): Add readtokens.h.
48048         * modules/readutmp (EXTRA_DIST): Add readutmp.h.
48049         * modules/regex (EXTRA_DIST): Add regcomp.c regex.h regex_internal.c
48050         regex_internal.h regexec.c.
48051         * modules/safe-read (EXTRA_DIST): Add safe-read.h.
48052         * modules/safe-write (EXTRA_DIST): Add safe-write.h.
48053         * modules/same (EXTRA_DIST): Add same.h.
48054         * modules/same-inode (EXTRA_DIST): Add same-inode.h.
48055         * modules/save-cwd (EXTRA_DIST): Add save-cwd.h.
48056         * modules/savedir (EXTRA_DIST): Add savedir.h.
48057         * modules/sha1 (EXTRA_DIST): Add sha1.h.
48058         * modules/sig2str (EXTRA_DIST): Add sig2str.h.
48059         * modules/stat-macros (EXTRA_DIST): Add stat-macros.h.
48060         * modules/stat-time (EXTRA_DIST): Add stat-time.h.
48061         * modules/stdlib-safer (EXTRA_DIST): Add stdlib-safer.h stdlib--.h.
48062         * modules/strdup (EXTRA_DIST): Add strdup.h.
48063         * modules/strftime (EXTRA_DIST): Add strftime.h.
48064         * modules/strndup (EXTRA_DIST): Add strndup.h.
48065         * modules/strnlen (EXTRA_DIST): Add strnlen.h.
48066         * modules/strverscmp (EXTRA_DIST): Add strverscmp.h.
48067         * modules/time_r (EXTRA_DIST): Add time_r.h.
48068         * modules/timespec (EXTRA_DIST): Add timespec.h.
48069         * modules/tmpfile-safer (EXTRA_DIST): Add stdio-safer.h stdio--.h.
48070         * modules/unistd-safer (EXTRA_DIST): Add unistd-safer.h unistd--.h.
48071         * modules/unlinkdir (EXTRA_DIST): Add unlinkdir.h.
48072         * modules/unlocked-io (EXTRA_DIST): Add unlocked-io.h.
48073         * modules/userspec (EXTRA_DIST): Add userspec.h.
48074         * modules/utimecmp (EXTRA_DIST): Add utimecmp.h.
48075         * modules/utimens (EXTRA_DIST): Add utimens.h.
48076         * modules/xalloc (EXTRA_DIST): Add xalloc.h.
48077         * modules/xgetcwd (EXTRA_DIST): Add xgetcwd.h.
48078         * modules/xnanosleep (EXTRA_DIST): Add xnanosleep.h.
48079         * modules/xreadlink (EXTRA_DIST): Add xreadlink.h.
48080         * modules/xstrtod (EXTRA_DIST): Add xstrtod.h.
48081         * modules/xstrtol (EXTRA_DIST): Add xstrtol.h.
48082         * modules/xstrtold (EXTRA_DIST): Add xstrtod.c xstrtod.h.
48083         * modules/yesno (EXTRA_DIST): Add yesno.h.
48084
48085 2006-08-21  Paul Eggert  <eggert@cs.ucla.edu>
48086
48087         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS): Check for fchmod.
48088
48089         * m4/argmatch.m4: New file, from coreutils with AC_LIBSOURCES removed.
48090         * m4/dev-ino.m4, same-inode.m4: Remove.
48091
48092         * m4/_inttypes_h.m4 (gl_INTTYPES_H):
48093         * m4/acl.m4 (AC_FUNC_ACL):
48094         * m4/backupfile.m4 (gl_BACKUPFILE):
48095         * m4/c-strtod.m4 (gl_C99_STRTOLD):
48096         * m4/canon-host.m4 (gl_CANON_HOST):
48097         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME):
48098         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG):
48099         * m4/chdir-safer.m4 (gl_CHDIR_SAFER):
48100         * m4/cloexec.m4 (gl_CLOEXEC):
48101         * m4/close-stream.m4 (gl_CLOSE_STREAM):
48102         * m4/closeout.m4 (gl_CLOSEOUT):
48103         * m4/dirfd.m4 (gl_FUNC_DIRFD):
48104         * m4/dirname.m4 (gl_DIRNAME):
48105         * m4/exclude.m4 (gl_EXCLUDE):
48106         * m4/exitfail.m4 (gl_EXITFAIL):
48107         * m4/fcntl-safer.m4 (gl_FCNTL_SAFER):
48108         * m4/file-type.m4 (gl_FILE_TYPE):
48109         * m4/filemode.m4 (gl_FILEMODE):
48110         * m4/filenamecat.m4 (gl_FILE_NAME_CONCAT):
48111         * m4/fpending.m4 (gl_FUNC_FPENDING):
48112         * m4/fprintftime.m4 (gl_FPRINTFTIME):
48113         * m4/fts.m4 (gl_FUNC_FTS):
48114         * m4/getcwd.m4 (gl_FUNC_GETCWD_NULL):
48115         * m4/getdate.m4 (gl_GETDATE):
48116         * m4/gethrxtime.m4 (gl_GETHRXTIME):
48117         * m4/getpagesize.m4 (gl_GETPAGESIZE):
48118         * m4/getpass.m4 (gl_FUNC_GETPASS):
48119         * m4/gettime.m4 (gl_GETTIME):
48120         * m4/getugroups.m4 (gl_GETUGROUPS):
48121         * m4/glob.m4 (gl_GLOB_SUBSTITUTE):
48122         * m4/group-member.m4 (gl_FUNC_GROUP_MEMBER):
48123         * m4/hard-locale.m4 (gl_HARD_LOCALE):
48124         * m4/hash.m4 (gl_HASH):
48125         * m4/idcache.m4 (gl_IDCACHE):
48126         * m4/lchmod.m4 (gl_FUNC_LCHMOD):
48127         * m4/lchown.m4 (gl_FUNC_LCHOWN):
48128         * m4/long-options.m4 (gl_LONG_OPTIONS):
48129         * m4/lstat.m4 (gl_FUNC_LSTAT):
48130         * m4/md5.m4 (gl_MD5):
48131         * m4/memcasecmp.m4 (gl_MEMCASECMP):
48132         * m4/memcoll.m4 (gl_MEMCOLL):
48133         * m4/mempcpy.m4 (gl_FUNC_MEMPCPY):
48134         * m4/memrchr.m4 (gl_FUNC_MEMRCHR):
48135         * m4/memxor.m4 (gl_MEMXOR):
48136         * m4/mkancesdirs.m4 (gl_MKANCESDIRS):
48137         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS):
48138         * m4/modechange.m4 (gl_MODECHANGE):
48139         * m4/mountlist.m4 (gl_MOUNTLIST):
48140         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP):
48141         * m4/openat.m4 (gl_FUNC_OPENAT):
48142         * m4/pathmax.m4 (gl_PATHMAX):
48143         * m4/physmem.m4 (gl_PHYSMEM):
48144         * m4/posixtm.m4 (gl_POSIXTM):
48145         * m4/posixver.m4 (gl_POSIXVER):
48146         * m4/quote.m4 (gl_QUOTE):
48147         * m4/quotearg.m4 (gl_QUOTEARG):
48148         * m4/readtokens.m4 (gl_READTOKENS):
48149         * m4/readutmp.m4 (gl_READUTMP):
48150         * m4/regex.m4 (gl_REGEX):
48151         * m4/safe-read.m4 (gl_SAFE_READ):
48152         * m4/safe-write.m4 (gl_SAFE_WRITE):
48153         * m4/same.m4 (gl_SAME):
48154         * m4/save-cwd.m4 (gl_SAVE_CWD):
48155         * m4/savedir.m4 (gl_SAVEDIR):
48156         * m4/settime.m4 (gl_SETTIME):
48157         * m4/sha1.m4 (gl_SHA1):
48158         * m4/sig2str.m4 (gl_FUNC_SIG2STR):
48159         * m4/stat-macros.m4 (gl_STAT_MACROS):
48160         * m4/stat-time.m4 (gl_STAT_TIME):
48161         * m4/stdio-safer.m4 (gl_FOPEN_SAFER):
48162         * m4/stdlib-safer.m4 (gl_STDLIB_SAFER):
48163         * m4/strdup.m4 (gl_FUNC_STRDUP):
48164         * m4/strftime.m4 (gl_FUNC_GNU_STRFTIME):
48165         * m4/strndup.m4 (gl_FUNC_STRNDUP):
48166         * m4/strnlen.m4 (gl_FUNC_STRNLEN):
48167         * m4/strverscmp.m4 (gl_FUNC_STRVERSCMP):
48168         * m4/time_r.m4 (gl_TIME_R):
48169         * m4/timespec.m4 (gl_TIMESPEC):
48170         * m4/unistd-safer.m4 (gl_UNISTD_SAFER):
48171         * m4/unlinkdir.m4 (gl_UNLINKDIR):
48172         * m4/unlocked-io.m4 (gl_FUNC_GLIBC_UNLOCKED_IO):
48173         * m4/userspec.m4 (gl_USERSPEC):
48174         * m4/utimecmp.m4 (gl_UTIMECMP):
48175         * m4/utimens.m4 (gl_UTIMENS):
48176         * m4/xalloc.m4 (gl_XALLOC):
48177         * m4/xgetcwd.m4 (gl_XGETCWD):
48178         * m4/xnanosleep.m4 (gl_XNANOSLEEP):
48179         * m4/xreadlink.m4 (gl_XREADLINK):
48180         * m4/xstrtod.m4 (gl_XSTRTOD):
48181         * m4/yesno.m4 (gl_YESNO):
48182         Don't use AC_LIBSOURCES; instead, rely on the files in ../modules/
48183         to get the necessary .h files and whatnot.
48184
48185 2006-08-21  Mark D. Baushke  <mdb@gnu.org>
48186             Bruno Haible  <bruno@clisp.org>
48187
48188         * gnulib-tool (func_verify_module): Work around Sun's non-POSIX 1003.2
48189         /bin/sh understanding of '!' conditional negation.
48190
48191 2006-08-21  Jim Meyering  <jim@meyering.net>
48192
48193         * modules/openat (Depends-on): Really alphabetize.
48194
48195         * modules/acl (Depends-on): Add error and quote.
48196
48197         * check-module (find_included_lib_files): Add at-func.c to the
48198         ok-to-include-more-than-once white list.
48199
48200         * modules/openat (Depends-on): Add lstat.  Alphabetize.
48201
48202 2006-08-21  Bruno Haible  <bruno@clisp.org>
48203
48204         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
48205         Emit a pkgdata_DATA variable only if some snippets add contents to it.
48206         Reported by Martin Lambers <marlam@marlam.de>.
48207
48208 2006-08-21  Bruno Haible  <bruno@clisp.org>
48209
48210         * gnulib-tool (func_emit_lib_Makefile_am): If the snippets already
48211         specify an installation location, don't emit a noinst_LIBRARIES or
48212         noinst_LTLIBRARIES assignment.
48213
48214 2006-08-21  Bruno Haible  <bruno@clisp.org>
48215
48216         BeOS portability.
48217         * modules/mbchar (Include): Don't test HAVE_WCTYPE_H any more, since
48218         BeOS has mbrtowc() but no <wctype.h>.
48219
48220 2006-08-21  Bruno Haible  <bruno@clisp.org>
48221
48222         BeOS portability.
48223         * m4/mbchar.m4 (gl_MBCHAR): Compile mbchar.c also if <wctype.h> doesn't
48224         exist.
48225
48226 2006-08-21  Bruno Haible  <bruno@clisp.org>
48227
48228         BeOS portability.
48229         * lib/mbchar.h: Include <wctype.h> only if it exists.
48230
48231 2006-08-20  Paul Eggert  <eggert@cs.ucla.edu>
48232
48233         Remove files that are no longer needed by their respective modules.
48234         * m4/obstack.m4: Remove.
48235         * m4/strerror_r.m4: Remove.
48236         * m4/uint32_t.m4: Remove.
48237         * m4/uintptr_t.m4: Remove.
48238         * m4/ullong_max.m4: Remove.
48239         * m4/xstrtoimax.m4: Remove.
48240         * m4/xstrtoumax.m4: Remove.
48241
48242         * m4/cycle-check.m4 (gl_CYCLE_CHECK): Do not require
48243         gl_AC_TYPE_UINTMAX_T, gl_STRUCT_DEV_INO, or gl_SAME_INODE, since gnulib
48244         dependencies now capture this.
48245
48246         * m4/cycle-check.m4 (gl_CYCLE_CHECK):
48247         Do not use AC_LIBSOURCES, since gnulib modules now do this.
48248         * m4/fsusage.m4 (gl_FSUSAGE): Likewise.
48249         * m4/human.m4 (gl_HUMAN): Likewise.
48250         * m4/inttostr.m4 (gl_INTTOSTR): Likewise.
48251         * m4/xstrtol.m4 (gl_XSTRTOL): Likewise.
48252
48253         * m4/filemode.m4 (gl_FILEMODE): Require AC_STRUCT_ST_DM_MODE.
48254
48255         * m4/filemode.m4 (gl_PREREQ_FSUSAGE_EXTRA): Do not require
48256         gl_AC_TYPE_INTMAX_T or gl_AC_TYPE_UINTMAX_T, since we now require
48257         stdint.
48258         * m4/human.m4 (gl_HUMAN): Likewise.
48259         * m4/inttostr.m4 (gl_PREREQ_INTTOSTR): Likewise.
48260         * m4/mkstemp.m4 (gl_PREREQ_TEMPNAME): Likewise.
48261         * m4/strtoimax.m4 (gl_PREREQ_STRTOIMAX): Likewise.
48262         * m4/strtoumax.m4 (gl_PREREQ_STRTOUMAX): Likewise.
48263         * m4/xstrtol (gl_XSTRTOL): Likewise.
48264
48265         * m4/gethrxtime.m4 (gl_XTIME): gl_AC_TYPE_LONG_LONG ->
48266         AC_TYPE_LONG_LONG_INT.
48267         * m4/strtoimax.m4 (gl_PREREQ_STRTOIMAX): Likewise.
48268         * m4/strtoll.m4 (gl_FUNC_STRTOLL): Likewise.
48269         * m4/strtoull.m4 (gl_FUNC_STRTOULL): Likewise, for unsigned long.
48270         * m4/strtoumax.m4 (gl_PREREQ_STRTOUMAX): Likewise.
48271
48272         * m4/human.m4 (gl_HUMAN): Do not require AM_STDBOOL_H since we depend
48273         on stdbool.
48274
48275         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL_H, gl_PREREQ_XSTRTOL): Remove.
48276         (gl_PREREQ_XSTRTOUL): Remove.
48277
48278         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Check for hasmntopt.
48279
48280         * m4/posixver.m4: Fix comment since head -1 now works even in POSIX
48281         mode.
48282
48283 2006-08-20  Paul Eggert  <eggert@cs.ucla.edu>
48284
48285         Add and change modules to make it easier for coreutils to use
48286         gnulib-tool.
48287         * modules/backupfile (Files): Remove m4/d-ino.m4.
48288         (Depends-on): Add d-ino.
48289         * modules/cycle-check (Depends-on): Add stdint.
48290         (lib_SOURCES): Add cycle-check.h.
48291         * modules/d-ino: New module.
48292         * modules/d-type: New module.
48293         * modules/error (Files): Remove m4/strerror_r.m4.
48294         * modules/filemode (Files): Add m4/st_dm_mode.m4.
48295         * modules/fsuage (Files): Remove m4/ulonglong.m4, m4/stdint_h.m4,
48296         m4/inttypes_h.m4, m4/uintmax_t.m4.
48297         (Depends-on): Add stdint.
48298         (lib_SOURCES): Add fsusage.h.
48299         * modules/getcwd (Files): Remove d-ino.m4.
48300         (Depends-on): Add d-ino.
48301         * modules/getndelim2 (Depends-on): Add stdint.
48302         * modules/glob (Files): Remove m4/d-type.m4.
48303         (Depends-on): Add d-type.
48304         * modules/host-os: New module.
48305         * modules/human (Files):  Remove m4/ulonglong.m4, m4/stdint_h.m4,
48306         m4/inttypes_h.m4, m4/uintmax_t.m4.
48307         * Depends-on: Add stdint.
48308         (lib_SOURCES): Add human.h.
48309         * modules/inttostr (Files): Remove m4/intmax_t.m4,
48310         m4/inttostr.m4, m4/inttypes_h.m4, m4/longlong.m4, m4/stdint_h.m4,
48311         m4/uintmax_t.m4, m4/ulonglong.m4.
48312         (Depends-on): Add stdint.
48313         (EXTRA_DIST): Add inttostr.h.
48314         * modules/lchmod: New module.
48315         * modules/link-follow: New module.
48316         * modules/mkdir-p (Files): Remove lib/lchmod.h, m4/lchmod.m4.
48317         (Depends-on): Add lchmod.
48318         * modules/mkstemp (Files): Remove m4/ulonglong.m4,
48319         m4/stdint_h.m4, m4/inttypes_h.m4, m4/uintmax_t.m4.
48320         (Depends-on): Add stdint.
48321         * modules/obstack (Files): Remove m4/inttypes_h.m4, m4/obstack.m4,
48322         m4/stdint_h.m4, m4/uintmax_t.m4, m4/ulonglong.m4.
48323         (Depends-on): Add stdint.
48324         (configure.ac): Change gl_OBSTACK to AC_FUNC_OBSTACK.
48325         * modules/perl: New module.
48326         * modules/regex (Depends-on): Add stdint.
48327         * modules/rmdir-errno: New module.
48328         * modules/strtoimax (Files): Remove m4/stdint_h.m4, m4/inttypes_h.m4,
48329         m4/intmax_t.m4.
48330         (Depends-on): Add stdint.
48331         * modules/strtoumax (Files): Remove m4/stdint_h.m4, m4/inttypes_h.m4,
48332         m4/uintmax_t.m4.
48333         (Depends-on): Add stdint.
48334         * modules/unlink-busy: New module.
48335         * modules/utimecmp (Depends-on): Add stdint.
48336         * modules/uptime: New module.
48337         * modules/winsz-ioctl: New module.
48338         * modules/winsz-termios: New module.
48339         * modules/xnanosleep (Depends-on): Add nanosleep.
48340         * modules/ullong_max: Remove.
48341         * modules/xstrtoimax (Files): Remove m4/xstrtoimax.m4.
48342         (configure.ac): Remove gl_XSTRTOIMAX; no action needed now.
48343         * modules/xstrtol (Files): Remove m4/ulonglong.m4, m4/longlong.m4,
48344         m4/stdint_h.m4, m4/inttypes_h.m4, m4/uintmax_t.m4, m4/intmax_t.m4.
48345         (Depends-on): Add inttypes.
48346         (lib_SOURCES): Add xstrtol.h.
48347         * modules/xstrtoumax (Files): Remove m4/xstrtoumax.m4.
48348         (configure.ac): Remove gl_XSTRTOUMAX; no action needed now.
48349         * MODULES.html.sh: Move 'assert' into the assert section.
48350         Move 'dummy' into the linking section.
48351         Remove ullong_max.
48352         Add section for compatibility checks for POSIX:2001 functions,
48353         and put d-ino, d-type, link-follow, rmdir-errno, unlink-busy,
48354         winsz-ioctl, and winsz-termios into it.
48355         Add lchmod.
48356         Add top-level Misc section and put host-os, perl, and uptime
48357         into it.
48358
48359 2006-08-20  Paul Eggert  <eggert@cs.ucla.edu>
48360
48361         * lib/cycle-check.h: Include <stdint.h> unconditionally, since we
48362         now assume the stdint module.  Do not include inttypes.h.
48363         * lib/fsusage.h: Likewise.
48364         * lib/getndelim2.c: Likewise.
48365         * lib/human.h: Likewise.
48366         * lib/inttostr.h: Likewise.
48367         * lib/obstack.c: Likewise.
48368         * lib/regex_internal.h: Likewise.
48369         * lib/tempname.c: Likewise.
48370         * lib/utimecmp.c: Likewise.
48371         * lib/xstrtol.h: Likewise.
48372
48373         * lib/stat_.h: Fix typo: HAVE_FUNC_LSTAT -> HAVE_LSTAT.
48374
48375         * lib/strtoimax.c: Adjust to macro name changes in Autoconf,
48376         e.g., HAVE_LONG_LONG -> HAVE_LONG_LONG_INT.
48377         * lib/xtime.h: Likewise.
48378
48379 2006-08-19  Paul Eggert  <eggert@cs.ucla.edu>
48380
48381         * modules/openat (Files): Add lib/fchmodat.c.
48382         Fixes problem reported by Jay Youngman.
48383
48384 2006-08-19  Paul Eggert  <eggert@cs.ucla.edu>
48385
48386         * lib/fchmodat.c: New file, from coreutils.  This was inadvertently
48387         omitted in the 2006-08-17 update.  Problem reported by Jay Youngman.
48388
48389 2006-08-18  Paul Eggert  <eggert@cs.ucla.edu>
48390             Bruno Haible  <bruno@clisp.org>
48391
48392         * m4/bison-i18n.m4 (BISON_I18N): Also handle the case where yacc exists
48393         and is a script that invokes bison. Tighten the code. Add comments.
48394
48395 2006-08-18  Jim Meyering  <jim@meyering.net>
48396
48397         * m4/gethrxtime.m4 (gl_PREREQ_GETHRXTIME): Also check for
48398         CLOCK_REALTIME, since gethrxtime may revert to using clock_gettime via
48399         gettime.c.  Gabor Z. Papp reported that gethrxtime-using programs
48400         failed to link due to unresolved clock_gettime on a linux-2.4.x system.
48401
48402 2006-08-18  Bruno Haible  <bruno@clisp.org>
48403
48404         * modules/bison-i18n: New file.
48405         * MODULES.html.sh (Internationalization functions): Add it.
48406
48407 2006-08-18  Bruno Haible  <bruno@clisp.org>
48408
48409         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Also check for
48410         sys/statvfs.h. When getmntinfo was found, check its declaration and
48411         set either MOUNTED_GETMNTINFO or MOUNTED_GETMNTINFO2 depending on it.
48412
48413 2006-08-18  Bruno Haible  <bruno@clisp.org>
48414
48415         * m4/bison-i18n.m4: New file, from bison.
48416
48417 2006-08-18  Bruno Haible  <bruno@clisp.org>
48418
48419         * lib/mountlist.c [MOUNTED_GETMNTINFO2]: Include sys/statvfs.h.
48420         (ME_DUMMY): Treat "kernfs" as a dummy.
48421         (read_file_system_list) [MOUNTED_GETMNTINFO2]: Implement.
48422
48423 2006-08-17  Paul Eggert  <eggert@cs.ucla.edu>
48424
48425         Update from coreutils.
48426
48427         2006-08-15  Jim Meyering  <jim@meyering.net>
48428
48429         * m4/openat.m4 (gl_FUNC_OPENAT): Add at-func.c via AC_LIBSOURCES.
48430
48431         2006-01-17  Jim Meyering  <jim@meyering.net>
48432
48433         * m4/fts.m4 (gl_FUNC_FTS_CORE): Depend on gl_FUNC_OPENAT.
48434
48435         2006-01-11  Jim Meyering  <jim@meyering.net>
48436
48437         * m4/openat.m4 (gl_FUNC_OPENAT): Require and compile fchmodat.c.
48438         Check for the lchmod function.
48439
48440 2006-08-17  Paul Eggert  <eggert@cs.ucla.edu>
48441
48442         Update from coreutils.
48443
48444         * lib/__fpending.h: Add copyright notice.
48445         * lib/fprintftime.h: Likewise.
48446         * lib/savedir.c: Use (C) in copyright notice.
48447         * lib/savedir.h: Likewise.
48448
48449         2006-08-15  Jim Meyering  <jim@meyering.net>
48450
48451         * lib/at-func.c: New file, with the logic of all emulated at-functions.
48452         * lib/openat-priv.h: Include <errno.h> and define ENOSYS,
48453         in support of the EXPECTED_ERRNO macro.
48454         * lib/openat.c (fstatat, unlinkat, fchownat): Remove function
48455         definitions.  Instead, define the appropriate symbols and include
48456         "at-func.c".
48457         * lib/mkdirat.c (mkdirat): Likewise.
48458         * lib/fchmodat.c (fchmodat): Likewise.
48459         (ENOSYS): Remove definition.
48460         * lib/openat.c: Don't include <errno.h>, now that "openat-priv.h" does
48461         it.  Don't include "unistd--.h" -- it wasn't ever used.
48462
48463         2006-01-17  Jim Meyering  <jim@meyering.net>
48464
48465         Rewrite fts.c not to change the current working directory,
48466         by using openat, fstatat, fdopendir, etc..
48467
48468         * lib/fts.c [! _LIBC]: Include "openat.h" and "unistd--.h".
48469         (HAVE_OPENAT_SUPPORT): Define.
48470         [_LIBC] (fchdir): Don't undef or define; no longer used.
48471         (FCHDIR): Define in terms of cwd_advance_fd rather than fchdir.
48472         Now, this `function' always succeeds, and consumes its file descriptor
48473         parameter -- so callers must not close such FDs.  Update callers.
48474         (diropen_fd, opendirat, cwd_advance_fd): New functions.
48475         (diropen): Add parameter, SP.  Adjust all callers.
48476         Implement using diropen_fd, rather than open.
48477         (fts_open): Initialize new member, fts_cwd_fd.
48478         Remove fts_rft-setting code.
48479         (fts_close): Close fts_cwd_fd, if necessary.
48480         (__opendir2): Define in terms of opendir or opendirat,
48481         depending on whether the FST_NOCHDIR flag is set.
48482         (fts_build): Since fts_safe_changedir consumes its FD, and since
48483         this code must do `closedir(dirp)', dup the dirfd(dirp) argument,
48484         and close the dup'd file descriptor upon failure.
48485         (fts_stat): Use fstatat(...AT_SYMLINK_NOFOLLOW) in place of lstat.
48486         (fts_safe_changedir): Tweak semantics to reflect that this function
48487         now calls cwd_advance_fd and hence consumes its FD argument.
48488         * lib/fts_.h [struct FTS] (fts_cwd_fd): New member.
48489         [struct FTS] (fts_rft): Remove now-unused member.
48490         [struct FTS] (fts_cycle.state): Improve comment.
48491
48492         * lib/openat.c (openat_needs_fchdir): New function.
48493         * lib/openat.h (openat_needs_fchdir): Declare it.
48494
48495 2006-08-16  Paul Eggert  <eggert@cs.ucla.edu>
48496
48497         * lib/memcoll.c (memcoll): Set errno = 0 in the shortcut case, too.
48498         Problem and fix reported by Pádraig Brady in
48499         <http://lists.gnu.org/archive/html/bug-coreutils/2006-08/msg00099.html>.
48500
48501 2006-08-15  Paul Eggert  <eggert@cs.ucla.edu>
48502
48503         * modules/cycle-check (configure.ac): Add gl_CYCLE_CHECK.
48504
48505 2006-08-15  Paul Eggert  <eggert@cs.ucla.edu>
48506
48507         * lib/memcoll.c (memcoll): Optimize for the common case where the
48508         arguments are bytewise equal.
48509
48510 2006-08-15  Paul Eggert  <eggert@cs.ucla.edu>
48511
48512         * doc/regexprops-generic.texi: Add a copyright notice.
48513
48514 2006-08-15  Bruno Haible  <bruno@clisp.org>
48515
48516         * modules/tmpdir (License): Change to LGPL.
48517
48518 2006-08-15  Bruno Haible  <bruno@clisp.org>
48519
48520         * gnulib-tool (func_all_modules, func_verify_module): COPYING is not a
48521         module.
48522
48523 2006-08-14  Simon Josefsson  <jas@extundo.com>
48524
48525         * config/srclist.txt: Add gnupload.
48526
48527 2006-08-14  Paul Eggert  <eggert@cs.ucla.edu>
48528
48529         Change copyright notice from LGPL 2 to GPL 2, since that's the
48530         standard form used in the gnulib repository.
48531         * tests/test-lock.c: Likewise.
48532         * tests/test-stdint.c: Likewise.
48533         * tests/test-tls.c: Likewise.
48534
48535         * users.txt: Add bison, diffutils, libprelude, prelude-lml,
48536         prelude-manager.  User shorter URLs for GNU projects, without '?'.
48537         Add copyright notice.
48538
48539         * check-module: Add copyright notice.  Output a copyright
48540         notice if "--version" is specified.
48541         * modules/COPYING: New file.
48542         * tests/test-getaddrinfo.c: Add copyright notice.
48543         * tests/test-verify.c: Likewise.
48544
48545 2006-08-14  Paul Eggert  <eggert@cs.ucla.edu>
48546
48547         Change copyright notice from LGPL 2 to GPL 2, since that's the
48548         standard form used in the gnulib repository.
48549         * lib/lock.c: LGPL -> GPL.
48550         * lib/lock.h: Likewise.
48551         * lib/strnlen1.c: Likewise.
48552         * lib/strnlen1.h: Likewise.
48553         * lib/tls.c: Likewise.
48554         * lib/tls.h: Likewise.
48555         * lib/tmpdir.c: Likewise.
48556
48557         * lib/TODO: Remove; this belongs only in coreutils.
48558
48559 2006-08-14  Paul Eggert  <eggert@cs.ucla.edu>
48560
48561         Add copyright notices to long-enough files that lack them, since
48562         otherwise the files aren't clearly free.  Use the same notice that
48563         getdate.texi already uses.
48564         * doc/alloca-opt.texi: Add copyright notice.
48565         * doc/alloca.texi: Likewise.
48566         * doc/ctime.texi: Likewise.
48567         * doc/functions.texi: Likewise.
48568         * doc/gcd.texi: Likewise.
48569         * doc/gnulib-tool.texi: Likewise.
48570         * doc/inet_ntoa.texi: Likewise.
48571         * doc/visibility.texi: Likewise.
48572
48573         * doc/getdate.texi: Update FDL version from 1.1 to 1.2.
48574         * doc/quote.texi: Add copyright notice.
48575
48576         * doc/solaris-versions: Add SunOS 5.10, SunOS 1.x, SunOS 4.0, SunOS
48577         4.0.x, SunOS 4.1.1.1, SunOS 4.1.1_U1, SunOS 4.1.3B.  SunOS 4.1.3
48578         was Solaris 1.1A.  Remove space before B in Solaris 1.1.1B.
48579         Mention SunOS 5.11.  Mention that everything before SunOS 5.7
48580         is now obsolete, and give a pointer to the Sun list.
48581         Add copyright notice.
48582
48583 2006-08-14  Paul Eggert  <eggert@cs.ucla.edu>
48584
48585         * config/srclistvars.sh: Add copyright notice.
48586
48587 2006-08-14  Eric Blake  <ebb9@byu.net>
48588
48589         Import the following change from libc:
48590
48591         2006-08-12  Ulrich Drepper  <drepper@redhat.com>
48592
48593         Upstream bug 2997.
48594         * lib/misc/error.c: Add space between program name and message if file
48595         name is missing.
48596
48597 2006-08-12  Karl Berry  <karl@gnu.org>
48598
48599         * config/srclist.txt (ssize_t.m4, sig_atomic_t.m4, signalblocking.m4):
48600         remove, these originate in gnulib now.
48601
48602 2006-08-11  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
48603
48604         * doc/Makefile (standards.info standards.html standards.dvi):
48605         Also depend on make-stds.texi.
48606
48607 2006-08-11  Paul Eggert  <eggert@cs.ucla.edu>
48608
48609         * lib/pipe-safer.c (pipe_safer): Fix misspelling: HAVE_FUNC_PIPE ->
48610         HAVE_PIPE.  Fix a file descriptor leak when fd_safer fails.
48611
48612         * lib/regex_internal.c (re_string_skip_chars): Don't assume WEOF fits
48613         in wchar_t.  Problem reported by Eric Blake.
48614
48615         * lib/snprintf.c (snprintf): memcpy LEN bytes, not SIZE - 1, when
48616         LEN is smaller than SIZE.  Suggested by Bruno Haible.
48617         Also, help the compiler to keep LEN in a register.
48618
48619 2006-08-11  Eric Blake  <ebb9@byu.net>
48620
48621         * users.txt: Sort.  Add tar.
48622
48623 2006-08-11  Bruno Haible  <bruno@clisp.org>
48624
48625         * users.txt: New file.
48626
48627 2006-08-11  Bruno Haible  <bruno@clisp.org>
48628
48629         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Include <stdio.h> and <time.h>
48630         before <wchar.h>. Needed for OSF/1 and BSD/OS.
48631
48632 2006-08-10  Paul Eggert  <eggert@cs.ucla.edu>
48633
48634         * modules/snprintf (Depends-on): Remove minmax.
48635         (Maintainer): Add self and Bruno.
48636
48637 2006-08-10  Paul Eggert  <eggert@cs.ucla.edu>
48638
48639         * lib/.cppi-disable: Add snprintf.h, socket_.h.
48640         * lib/snprintf.c: Include <errno.h> and <limits.h>.
48641         (EOVERFLOW): Define if the system does not.
48642         Do not include "minmax.h"; it wasn't used.
48643         (snprintf): Don't assume size_t promotes to an unsigned type.
48644         Fix bug when generated string was too long for the buffer: the
48645         buffer's contents are supposed to be the initial prefix of the
48646         output.  Don't assume vasnprintf returns EOVERFLOW if the size
48647         exceeds INT_MAX; do the check ourselves.
48648
48649         Import the following changes from libc:
48650
48651         2006-06-02  Jakub Jelinek  <jakub@redhat.com>
48652
48653         * lib/posix/regex_internal.c (re_string_skip_chars): If no character
48654         has been converted at all, set *last_wc to WEOF.  If mbrtowc failed,
48655         set wc to the byte which couldn't be converted.
48656         (re_string_reconstruct): Don't clear valid_raw_len before calling
48657         re_string_skip_chars.  If wc is WEOF after re_string_skip_chars, set
48658         tip_context using re_string_context_at.
48659
48660         2006-05-02  Ulrich Drepper  <drepper@redhat.com>
48661
48662         * lib/posix/regex.h: g++ still cannot handled [restrict].
48663
48664         2006-04-21  Ulrich Drepper  <drepper@redhat.com>
48665
48666         * lib/posix/regex.h: Remove special handling for VMS.
48667
48668 2006-08-10  Jim Meyering  <jim@meyering.net>
48669
48670         * modules/same-inode: New module.
48671         * modules/dev-ino: New module.
48672         * modules/cycle-check: Depend on these modules, rather than simply
48673         including their .h files.
48674         (Makefile.am): Don't list cycle-check.[ch] here, now that they're
48675         required via m4/cycle-check.m4.
48676         * modules/same: Depend on new same-inode module, rather than
48677         including same-inode.h.
48678         * modules/chdir-safer: New file.
48679
48680         * modules/chown (Depends-on): Add stat-macros.
48681
48682 2006-08-10  Jim Meyering  <jim@meyering.net>
48683
48684         * m4/cycle-check.m4: New file.
48685         Require gl_STRUCT_DEV_INO and gl_SAME_INODE.
48686         * m4/dev-ino.m4, m4/same-inode.m4: New files.
48687
48688 2006-08-10  Eric Blake  <ebb9@byu.net>
48689
48690         * modules/verror (Depends-on): Remove bogus gl_VERROR that snuck
48691         in from original proposal.
48692
48693 2006-08-10  Eric Blake  <ebb9@byu.net>
48694         and Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
48695
48696         * gnulib-tool (func_import): Detect unexpanded macros in gnulib
48697         namespace.
48698
48699 2006-08-10  Bruno Haible  <bruno@clisp.org>
48700
48701         * gnulib-tool (func_create_testdir): Detect unexpanded macros here
48702         as well.
48703
48704 2006-08-09  Paul Eggert  <eggert@cs.ucla.edu>
48705
48706         Sync from coreutils.
48707
48708         2006-07-19  Mike Frysinger  <vapier@gentoo.org>
48709
48710         * lib/mountlist.c [ME_REMOTE]: Filter out cifs.
48711         Reported by Toralf Förster in <http://bugs.gentoo.org/141012>.
48712
48713 2006-08-09  Paul Eggert  <eggert@cs.ucla.edu>
48714
48715         * modules/restrict: Remove; no longer needed now that we assume
48716         Autoconf 2.59 or later.
48717         * MODULES.html.sh: Remove 'restrict'.
48718         * modules/argp (Depends-on): Remove 'restrict'.
48719         * modules/base64 (Depends-on): Likewise.
48720         * modules/gc (Depends-on): Likewise.
48721         * modules/getaddrinfo (Depends-on): Likewise.
48722         * modules/glob (Depends-on): Likewise.
48723         * modules/inet_ntop (Depends-on): Likewise.
48724         * modules/inet_pton (Depends-on): Likewise.
48725         * modules/memxor (Depends-on): Likewise.
48726         * modules/regex (Depends-on): Likewise.
48727         * modules/strtok_r (Depends-on): Likewise.
48728         * modules/time_r (Depends-on): Likewise.
48729
48730 2006-08-09  Paul Eggert  <eggert@cs.ucla.edu>
48731
48732         * m4/argp.m4 (gl_ARGP): Require AC_C_RESTRICT.
48733         * m4/gc.m4 (gl_PREREQ_GC): Likewise.
48734         * m4/glob.m4 (gl_PREREQ_GLOB): Likewise.
48735         * m4/inet_ntop.m4 (gl_PREREQ_INET_NTOP): Likewise.
48736         * m4/inet_pton.m4 (gl_PREREQ_INET_PTON): Likewise.
48737         * m4/memxor.m4 (gl_MEMXOR): Likewise.
48738         * m4/restrict.m4: Remove; no longer needed.  All remaining uses of
48739         gl_C_RESTRICT replaced by AC_C_RESTRICT.
48740
48741         Merge from coreutils.
48742         * m4/regex.m4 (gl_PREREQ_REGEX): Require AC_C_RESTRICT, not
48743         gl_C_RESTRICT, now that we assume Autoconf 2.59 or later.
48744         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Likewise.
48745         * m4/time_r.m4 (gl_TIME_R): Likewise.
48746
48747 2006-08-09  Karl Berry  <karl@gnu.org>
48748
48749         * config/srclist.txt: no more gettext-tools, per Bruno.
48750
48751 2006-08-08  Eric Blake  <ebb9@byu.net>
48752
48753         * modules/verror: New module.
48754         * MODULES.html.sh: Document it.
48755
48756 2006-08-08  Eric Blake  <ebb9@byu.net>
48757
48758         * lib/verror.h, lib/verror.c: New files.
48759
48760 2006-08-08  Eric Blake  <ebb9@byu.net>
48761
48762         * lib/verror.c (verror_at_line): Work around glibc bug 2997, so that
48763         verror_at_line output complies with GNU Coding Standards even when
48764         file is NULL.
48765
48766 2006-08-07  Bruno Haible  <bruno@clisp.org>
48767
48768         * lib/allocsa.h (sa_alignof) [_AIX]: Also consider 'long long' in newer
48769         versions of AIX.
48770         Reported by Ralf Wildenhues.
48771
48772 2006-08-07  Bruno Haible  <bruno@clisp.org>
48773
48774         * gnulib-tool (func_create_testdir): Wrap the set of autoconf snippets
48775         in an AC_DEFUN. Needed so that the autoconf snippets can use
48776         AC_REQUIRE.
48777
48778 2006-08-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
48779
48780         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
48781         Initialize pkgdata_DATA.
48782         * modules/javaversion (Makefile.am): Add to pkgdata_DATA, rather than
48783         overriding it.
48784
48785 2006-08-06  Eric Blake  <ebb9@byu.net>
48786
48787         * lib/error.h: Fold in some upstream changes from glibc.
48788         * lib/error.c: Likewise.
48789
48790 2006-08-04  Bruno Haible  <bruno@clisp.org>
48791
48792         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
48793         Make the mostlyclean-local rule depend on mostlyclean-generic.
48794         Reported by Jim Meyering. Solution suggested by Ralf Wildenhues.
48795
48796 2006-07-31  Bruno Haible  <bruno@clisp.org>
48797
48798         * m4/localcharset.m4 (gl_LOCALCHARSET): Remove tests for <stddef.h>,
48799         <stdlib.h>, <string.h>.
48800
48801 2006-07-30  Bruno Haible  <bruno@clisp.org>
48802
48803         * modules/readlink (License): Change to LGPL.
48804
48805 2006-07-30  Bruno Haible  <bruno@clisp.org>
48806
48807         * modules/javaversion (Makefile.am): Distribute javaversion.java and
48808         javaversion.class. Also install javaversion.class in $(pkgdatadir) and
48809         set PKGDATADIR to point to it.
48810
48811 2006-07-30  Bruno Haible  <bruno@clisp.org>
48812
48813         * modules/csharpexec (configure.ac): Comment out macro invocation.
48814         * modules/javaexec (configure.ac): Likewise.
48815         * modules/javacomp-script (configure.ac): Likewise.
48816
48817         * modules/csharpcomp-script (configure.ac): Use AC_REQUIRE.
48818
48819 2006-07-30  Bruno Haible  <bruno@clisp.org>
48820
48821         * modules/clean-temp (Depends-on): Add linkedhash-list, remove
48822         linked-list.
48823
48824 2006-07-30  Bruno Haible  <bruno@clisp.org>
48825
48826         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Assume <string.h> exists.
48827
48828 2006-07-30  Bruno Haible  <bruno@clisp.org>
48829
48830         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
48831         Initialize MOSTLYCLEANFILES to core and *.stackdump, so that core dumps
48832         get removed.
48833
48834 2006-07-29  Bruno Haible  <bruno@clisp.org>
48835
48836         Make it possible for gnulib-tool to work with locally modified or
48837         augmented gnulib repositories.
48838         * gnulib-tool (func_usage): Document --local-dir option.
48839         (local_gnulib_dir): New variable.
48840         Handle --local-dir option.
48841         (func_lookup_file): New function.
48842         (func_all_modules, func_verify_module): Look also in $local_gnulib_dir.
48843         (func_get_description, func_get_filelist, func_get_description,
48844         func_get_filelist, func_get_dependencies, func_get_autoconf_snippet,
48845         func_get_automake_snippet, func_get_include_directive,
48846         func_get_license, func_get_maintainer): Use func_lookup_file.
48847         (func_import, func_create_testdir): Use func_lookup_file.
48848
48849 2006-07-29  Bruno Haible  <bruno@clisp.org>
48850
48851         * modules/setenv (Depends-on): Add unistd.
48852
48853 2006-07-29  Bruno Haible  <bruno@clisp.org>
48854
48855         * lib/setenv.c: Undo unintended modification done on 2006-02-27.
48856
48857 2006-07-29  Bruno Haible  <bruno@clisp.org>
48858
48859         * lib/localcharset.c: Assume <stddef.h>, <stdlib.h>, <string.h> exist.
48860
48861 2006-07-29  Bruno Haible  <bruno@clisp.org>
48862
48863         * gnulib-tool (import, update): If there is no Makefile.am, look at
48864         aclocal.m4, instead of bailing out.
48865
48866 2006-07-29  Bruno Haible  <bruno@clisp.org>
48867
48868         * gnulib-tool (func_usage): Revert most of the 2006-07-15 change.
48869         Categorize the options by when they are useful.
48870
48871 2006-07-29  Bruno Haible  <bruno@clisp.org>
48872
48873         * gnulib-tool (func_usage): Document option --no-libtool.
48874         Handle option --no-libtool.
48875         (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am): Update
48876         for changed semantics of $libtool variable.
48877         (func_import): Likewise. If libtool is not used, show this through
48878         an option --no-libtool.
48879         (func_create_testdir): Update.
48880
48881 2006-07-29  Bruno Haible  <bruno@clisp.org>
48882
48883         * gnulib-tool (func_import): Extend error message about missing
48884         --doc-base.
48885
48886 2006-07-29  Bruno Haible  <bruno@clisp.org>
48887
48888         * gnulib-tool (func_import): Don't create the $docbase directory if
48889         there is no file to store there.
48890
48891 2006-07-29  Bruno Haible  <bruno@clisp.org>
48892
48893         * gnulib-tool (autoconf_minversion): If a --dir option is given and
48894         relevant, look for configure.ac there, not in the current directory.
48895         Also use a simple search for AC_PREREQ, not "autoconf --trace".
48896
48897 2006-07-29  Bruno Haible  <bruno@clisp.org>
48898
48899         * gnulib-tool (SORT): New variable.
48900         (func_usage): Undocument --assume-autoconf option.
48901         Remove --assume-autoconf option handling.
48902         (autoconf_minversion): Determine from the contents of configure.ac.
48903         (func_import): Remove autoconf_minversion handling.
48904         Suggested by Eric Blake.
48905
48906 2006-07-29  Bruno Haible  <bruno@clisp.org>
48907
48908         * doc/gnulib-tool.texi (gl_LIBTOOL): Mention --no-libtool option.
48909
48910 2006-07-29  Bruno Haible  <bruno@clisp.org>
48911
48912         * config/srclist.txt (*setenv.[ch]): Remove rules.
48913
48914 2006-07-28  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
48915
48916         * m4/inet_pton.m4, inet_ntop.m4: Check for netinet/in.h too.
48917
48918 2006-07-28  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
48919
48920         * lib/inet_ntop.h, inet_pton.h: Need to include netinet/in.h before
48921         arpa/inet.h.
48922
48923 2006-07-28  Simon Josefsson  <jas@extundo.com>
48924
48925         * modules/inet_ntop (Depends-on): Depend on arpa_inet.
48926         * modules/inet_pton (Depends-on): Likewise.
48927
48928 2006-07-28  Simon Josefsson  <jas@extundo.com>
48929
48930         * m4/netinet_in_h.m4: New file.
48931
48932 2006-07-28  Simon Josefsson  <jas@extundo.com>
48933
48934         * lib/inet_ntop.h, inet_pton.h: No need to guard netinet/in.h
48935         #include's.
48936
48937 2006-07-28  Simon Josefsson  <jas@extundo.com>
48938
48939         * lib/inet_ntop.h, inet_pton.h: No need to guard arpa/inet.h
48940         #include's.
48941
48942 2006-07-28  Paul Eggert  <eggert@cs.ucla.edu>
48943
48944         * lib/modechange.c (mode_compile): Numeric modes now affect setuid and
48945         setgid on directories only if they set these bits.
48946         * lib/modechange.h: Remove obsolete comment about masks.
48947
48948 2006-07-28  Eric Blake  <ebb9@byu.net>
48949
48950         * lib/regex_internal.h (struct re_dfa_t) [!_LIBC]: Avoid invalid C89
48951         macro expansion.
48952
48953 2006-07-28  Bruno Haible  <bruno@clisp.org>
48954
48955         * lib/inet_ntop.h, inet_pton.h: Use #if HAVE* instead of #ifdef HAVE*.
48956
48957 2006-07-28  Bruno Haible  <bruno@clisp.org>
48958
48959         * m4/mbchar.m4 (gl_MBCHAR): Also test for iswcntrl.
48960
48961 2006-07-28  Bruno Haible  <bruno@clisp.org>
48962
48963         * lib/mbchar.h (iswalnum, iswalpha, iswblank, iswcntrl, iswdigit,
48964         iswgraph, iswlower, iswprint, iswpunct, iswspace, iswupper, iswxdigit):
48965         Define fallbacks.
48966         Avoids link error on FreeBSD 4.x.
48967         Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
48968
48969         * lib/wcwidth.h (iswprint): Assume an ASCII compatible wide character
48970         encoding.
48971         * lib/mbswidth.c (iswcntrl): Likewise.
48972
48973 2006-07-27  Bruno Haible  <bruno@clisp.org>
48974
48975         * m4/stdint.m4 (gl_STDINT_H): Define __STDC_CONSTANT_MACROS during the
48976         test.
48977
48978 2006-07-27  Bruno Haible  <bruno@clisp.org>
48979
48980         * lib/stdint_.h (INT*_C, UINT*_C) [C++]: Define these if
48981         __STDC_CONSTANT_MACROS is defined, not if __STDC_LIMIT_MACROS is
48982         defined.
48983
48984 2006-07-26  Eric Blake  <ebb9@byu.net>
48985
48986         * m4/unistd-safer.m4 (gl_UNISTD_SAFER): Check for missing pipe.
48987
48988 2006-07-26  Eric Blake  <ebb9@byu.net>
48989
48990         * lib/mkstemp-safer.c [! HAVE_MKSTEMP]: Add prototype for platforms
48991         like mingw that lack mkstemp.
48992         * lib/pipe-safer.c (pipe_safer) [!HAVE_FUNC_PIPE]: Provide fallback to
48993         avoid compilation warning on mingw.
48994
48995 2006-07-26  Bruno Haible  <bruno@clisp.org>
48996
48997         * m4/stdint.m4 (gl_STDINT_H): Also verify the existence of the macros
48998         INT*_MIN, INT_LEAST*_MAX, INT_LEAST*_MIN, UINT_LEAST*_MAX,
48999         INT_FAST*_MIN, INTPTR_MIN.
49000
49001 2006-07-25  Bruno Haible  <bruno@clisp.org>
49002
49003         * modules/version-etc (Depends-on): Add stdarg.
49004
49005 2006-07-25  Bruno Haible  <bruno@clisp.org>
49006
49007         * m4/stdint.m4 (gl_INTEGER_TYPE_SUFFIX): Avoid 'eval' in front of
49008         complex commands.
49009
49010 2006-07-25  Bruno Haible  <bruno@clisp.org>
49011
49012         * lib/version-etc.c (version_etc_va): Use va_copy, assumed to be
49013         defined in <stdarg.h> or config.h.
49014
49015 2006-07-24  Paul Eggert  <eggert@cs.ucla.edu>
49016
49017         * m4/stdio-safer.m4 (gl_FOPEN_SAFER, gl_TMPFILE_SAFER): New macros.
49018         (gl_STDIO_SAFER): Remove.
49019
49020 2006-07-24  Paul Eggert  <eggert@cs.ucla.edu>
49021
49022         * MODULES.html.sh (File stream based Input/Output):
49023         Add fopen-safer, tmpfile-safer; remove stdio-safer.
49024         * modules/getusershell (Depends-on): Change stdio-safer to fopen-safer.
49025         * modules/fopen-safer, modules/tmpfile-safer: New files.
49026         * modules/stdio-safer: Remove.
49027
49028 2006-07-24  Bruno Haible  <bruno@clisp.org>
49029
49030         * modules/tmpdir: New file.
49031         * MODULES.html.sh (File system functions): Add it.
49032
49033 2006-07-24  Bruno Haible  <bruno@clisp.org>
49034
49035         * modules/javacomp (Depends-on): Add unistd, javaversion, binary-io,
49036         getline, pathname, fwriteerror, clean-temp, xvasprintf, strstr.
49037
49038 2006-07-24  Bruno Haible  <bruno@clisp.org>
49039
49040         * modules/clean-temp: New file.
49041
49042 2006-07-24  Bruno Haible  <bruno@clisp.org>
49043
49044         * m4/tmpdir.m4: New file, from GNU gettext.
49045
49046 2006-07-24  Bruno Haible  <bruno@clisp.org>
49047
49048         * lib/tmpdir.h: New file, from GNU gettext.
49049         * lib/tmpdir.c: New file, from GNU gettext.
49050
49051 2006-07-24  Bruno Haible  <bruno@clisp.org>
49052
49053         * lib/clean-temp.h: New file, from GNU gettext.
49054         * lib/clean-temp.c: New file, from GNU gettext.
49055
49056 2006-07-23  Eric Blake  <ebb9@byu.net>
49057
49058         * modules/stdio-safer (Files): Add tmpfile-safer.c.
49059         (Depends-on): Add binary-io.
49060
49061 2006-07-23  Eric Blake  <ebb9@byu.net>
49062
49063         * m4/stdio-safer.m4 (gl_STDIO_SAFER): Add tmpfile-safer.c.
49064
49065 2006-07-23  Eric Blake  <ebb9@byu.net>
49066
49067         * lib/tmpfile-safer.c: New file.
49068         * lib/stdio-safer.h (fopen_safer): Add prototype.
49069         * lib/stdio--.h (tmpfile): Make safer.
49070
49071 2006-07-23  Bruno Haible  <bruno@clisp.org>
49072
49073         * lib/gl_anylinked_list2.h (ASYNCSAFE): New macro.
49074         (gl_linked_add_first, gl_linked_add_last, gl_linked_add_before,
49075         gl_linked_add_after, gl_linked_add_at, gl_linked_remove_node,
49076         gl_linked_remove_at): Use it.
49077
49078 2006-07-22  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
49079         and Simon Josefsson <jas@extundo.com>
49080
49081         * lib/getaddrinfo.h (AI_PASSIVE): Make sure it is defined.
49082
49083         * lib/getaddrinfo.c (getaddrinfo): Support AI_PASSIVE.
49084
49085 2006-07-22  Paul Eggert  <eggert@cs.ucla.edu>
49086
49087         * modules/close-stream: New file.
49088         * modules/closeout (Description): Make it clear that it exits
49089         with a diagnostic on error.
49090         (Depends-on): Add close-stream.  Remove fpending, stdbool.
49091         * MODULES.html.sh (File stream based Input/Output): Add close-stream.
49092
49093 2006-07-22  Paul Eggert  <eggert@cs.ucla.edu>
49094
49095         * m4/close-stream.m4: New file.
49096
49097 2006-07-22  Paul Eggert  <eggert@cs.ucla.edu>
49098
49099         * lib/close-stream.c, lib/close-stream.h: New files.
49100
49101 2006-07-22  Bruno Haible  <bruno@clisp.org>
49102
49103         Merge from GNU gettext 0.15.
49104
49105         2006-05-01  Bruno Haible  <bruno@clisp.org>
49106
49107                 * build-aux/javacomp.sh.in: Update for changed javacomp.m4.
49108
49109         2006-07-22  Bruno Haible  <bruno@clisp.org>
49110
49111                 * modules/javaversion: New file.
49112                 * MODULES.html.sh (Java): Add javaversion.
49113
49114         2006-03-12  Bruno Haible  <bruno@clisp.org>
49115
49116                 * build-aux/javaexec.sh.in: Update for changed javaexec.m4.
49117
49118         2005-12-04  Bruno Haible  <bruno@clisp.org>
49119
49120                 * build-aux/csharpexec.sh.in: Add support for 'clix' launcher
49121                 (untested).
49122
49123         2006-06-21  Bruno Haible  <bruno@clisp.org>
49124
49125                 Avoid warnings from recent versions of mcs.
49126                 * build-aux/csharpcomp.sh.in (options_mcs): Don't use options
49127                 -o, -L, -r any more. Use options documented since mcs-1.0
49128                 instead. Similarly for -g.
49129
49130         2005-12-04  Bruno Haible  <bruno@clisp.org>
49131
49132                 * build-aux/csharpcomp.sh.in: Suffix for resources is
49133                 .resources, not .resource.
49134
49135         2005-07-09  Bruno Haible  <bruno@clisp.org>
49136
49137                 * build-aux/csharpcomp.sh.in (options_csc): For -l option,
49138                 add a .dll suffix.
49139                 Reported by Mark Junker <mjscod@gmx.de>.
49140
49141         2006-07-22  Bruno Haible  <bruno@clisp.org>
49142
49143                 * modules/gettext: Upgrade to gettext-0.15.
49144                 (Files): Remove m4/isc-posix.m4. Add m4/lock.m4,
49145                 m4/visibility.m4.
49146                 Replace m4/inttypes.m4 with m4/inttypes-h.m4.
49147
49148 2006-07-22  Bruno Haible  <bruno@clisp.org>
49149
49150         Merge from GNU gettext 0.15.
49151
49152         2006-03-25  Bruno Haible  <bruno@clisp.org>
49153
49154                 * lib-link.m4 (AC_LIB_LINKFLAGS_FROM_LIBS): New macro.
49155
49156         2006-07-21  Bruno Haible  <bruno@clisp.org>
49157
49158                 * javacomp.m4 (gt_JAVACOMP): Convert target_version "null" to
49159                 "1.1".
49160
49161         2006-05-09  Bruno Haible  <bruno@clisp.org>
49162
49163                 * javacomp.m4 (gt_JAVACOMP): On Cygwin, set
49164                 CLASSPATH_SEPARATOR to a semicolon. Use CLASSPATH_SEPARATOR
49165                 for the conftestver execution.
49166
49167         2006-05-01  Bruno Haible  <bruno@clisp.org>
49168
49169                 * javacomp.m4 (gt_JAVACOMP): Accept a source-version and an
49170                 optional target-version argument. Verify that the compiler
49171                 groks source of the specified source-version, or add -source
49172                 option as necessary. Verify that the compiler produces
49173                 bytecode in the specified target-version, or add -target and
49174                 -source options as necessary. Make the result of the test
49175                 available as variable CONF_JAVAC. Also log error output in
49176                 config.log.
49177
49178         2006-03-11  Bruno Haible  <bruno@clisp.org>
49179
49180                 * javacomp.m4 (gt_JAVACOMP): Treat gcj-4.x like gcj-3.x.
49181
49182         2006-05-09  Bruno Haible  <bruno@clisp.org>
49183
49184                 * javaexec.m4 (gt_JAVAEXEC): On Cygwin, set
49185                 CLASSPATH_SEPARATOR to a semicolon.
49186
49187         2006-03-12  Bruno Haible  <bruno@clisp.org>
49188
49189                 * javaexec.m4 (gt_JAVAEXEC): Make the result of the test
49190                 available as variable CONF_JAVA, for subsequent autoconf
49191                 tests. Also log error output in config.log.
49192
49193         2006-07-19  Bruno Haible  <bruno@clisp.org>
49194
49195                 * getline.m4 (AM_FUNC_GETLINE): When cross-compiling, assume
49196                 that getline works on glibc2 systems. Needed to avoid trouble
49197                 in relocatable.c.
49198                 Reported by Nils Magnus Larsgard <nmlarsgaard@atmel.no>.
49199
49200         2005-12-04  Bruno Haible  <bruno@clisp.org>
49201
49202                 * csharpexec.m4 (gt_CSHARPEXEC): Add support for 'clix'
49203                 launcher (untested).
49204
49205         2005-12-04  Bruno Haible  <bruno@clisp.org>
49206
49207                 * csharpcomp.m4 (gt_CSHARPCOMP): Also set CSHARPCOMPFLAGS.
49208
49209         2006-07-22  Bruno Haible  <bruno@clisp.org>
49210
49211                 * gettext.m4: Update from GNU gettext-0.15.
49212                 * nls.m4: Likewise.
49213                 * po.m4: Likewise.
49214                 * inttypes-pri.m4: Likewise.
49215                 * inttypes-h.m4: Renamed from inttypes.m4.
49216                 (gl_HEADER_INTTYPES_H): Renamed from gt_HEADER_INTTYPES_H.
49217
49218 2006-07-22  Bruno Haible  <bruno@clisp.org>
49219
49220         Merge from GNU gettext 0.15.
49221
49222         2005-07-05  Bruno Haible  <bruno@clisp.org>
49223
49224                 * printf-args.c (printf_fetchargs): Work around broken
49225                 definition of wint_t on mingw.
49226
49227         2005-02-12  Bruno Haible  <bruno@clisp.org>
49228
49229                 * xallocsa.h: Add extern "C" for C++.
49230
49231         2006-05-17  Bruno Haible  <bruno@clisp.org>
49232
49233                 Cygwin portability.
49234                 * progreloc.c (WIN32_NATIVE): Renamed from WIN32.
49235
49236         2006-04-30  Bruno Haible  <bruno@clisp.org>
49237
49238                 * progreloc.c: Include <mach-o/dyld.h> if available.
49239                 (find_executable): Use _NSGetExecutablePath when possible.
49240
49241         2006-05-06  Charles Wilson  <cygwin@cwilson.fastmail.fm>
49242
49243                 * progreloc.c (maybe_executable) [CYGWIN]: Use the access()
49244                 function.
49245
49246         2005-12-29  Bruno Haible  <bruno@clisp.org>
49247
49248                 * progreloc.c (set_program_name_and_installdir): Fix
49249                 compilation error.
49250
49251         2005-12-04  Bruno Haible  <bruno@clisp.org>
49252
49253                 Cygwin portability.
49254                 * progreloc.c: Include <windows.h> also on Cygwin.
49255                 (find_executable): Add support for Cygwin.
49256                 (set_program_name_and_installdir): Handle also platforms with
49257                 nonempty EXEEXT.
49258
49259         2006-07-11  Bruno Haible  <bruno@clisp.org>
49260
49261                 * javacomp.c: Fix a comment.
49262                 Reported by Jim Meyering.
49263
49264         2006-04-30  Bruno Haible  <bruno@clisp.org>
49265
49266                 * javacomp.h (compile_java_class): Add source_version,
49267                 target_version arguments.
49268                 * javacomp.c: Rewritten to choose only a compiler that
49269                 respects the specified source_version and target_version.
49270
49271         2006-06-27  Bruno Haible  <bruno@clisp.org>
49272
49273                 Assume correct S_ISDIR macro.
49274                 * mkdtemp.c: Remove test of STAT_MACROS_BROKEN.
49275
49276         2006-07-22  Bruno Haible  <bruno@clisp.org>
49277
49278                 * javaversion.h: New file, from GNU gettext.
49279                 * javaversion.c: New file, from GNU gettext.
49280                 * javaversion.java: New file, from GNU gettext.
49281                 * javaversion.class: New file, from GNU gettext.
49282
49283         2006-05-17  Bruno Haible  <bruno@clisp.org>
49284
49285                 Cygwin portability.
49286                 * javaexec.c (execute_java_class): Test for jview program
49287                 also on Cygwin.
49288
49289         2006-04-09  Bruno Haible  <bruno@clisp.org>
49290
49291                 * fatal-signal.c: Don't include string.h.
49292                 (at_fatal_signal): Use a copying loop instead of memcpy.
49293
49294         2005-12-04  Bruno Haible  <bruno@clisp.org>
49295
49296                 * csharpexec.c: Add support for 'clix' launcher (untested).
49297                 (execute_csharp_using_sscli): New function.
49298                 (execute_csharp_program): Call it.
49299
49300         2006-06-21  Bruno Haible  <bruno@clisp.org>
49301
49302                 Avoid warnings from recent versions of mcs.
49303                 * csharpcomp.c (compile_csharp_using_mono): Don't use options
49304                 -o, -L, -r any more. Use options documented since mcs-1.0
49305                 instead. Similarly for -g.
49306
49307         2005-07-09  Bruno Haible  <bruno@clisp.org>
49308
49309                 * csharpcomp.c (compile_csharp_using_sscli): For -l option,
49310                 add a .dll suffix.
49311                 Reported by Mark Junker <mjscod@gmx.de>.
49312
49313         2006-06-17  Bruno Haible  <bruno@clisp.org>
49314
49315                 * config.charset: Update for NetBSD 3.0.
49316
49317         2006-05-17  Bruno Haible  <bruno@clisp.org>
49318
49319                 Cygwin portability.
49320                 * localcharset.c (WIN32_NATIVE): Renamed from WIN32.
49321
49322         2006-05-16  Bruno Haible  <bruno@clisp.org>
49323
49324                 * localcharset.c [CYGWIN]: Include <windows.h>.
49325                 (get_charset_aliases): For Cygwin, return the same CPxxx
49326                 aliases list as under WIN32.
49327                 (locale_charset) [CYGWIN]: Try to retrieve the encoding from
49328                 the environment variables. Fall back to GetACP().
49329
49330         2006-04-05  Bruno Haible  <bruno@clisp.org>
49331
49332                 * config.charset: Update Juan Manuel Guerrero's address.
49333
49334         2005-02-12  Bruno Haible  <bruno@clisp.org>
49335
49336                 * allocsa.h: Add extern "C" for C++.
49337
49338         2005-02-10  Bruno Haible  <bruno@clisp.org>
49339
49340                 * allocsa.h (sa_alignof): Define differently with AIX xlc, to
49341                 avoid a bug of this compiler on AIX 3.2.5 dealing with enums.
49342
49343         2006-07-22  Bruno Haible  <bruno@clisp.org>
49344
49345                 * gettext.h: Update to GNU gettext-0.15.
49346
49347 2006-07-22  Bruno Haible  <bruno@clisp.org>
49348
49349         * config/srclist.txt: Resync printf-args.c, vasnprintf.c,
49350         localcharset.c, mkdtemp.c, config.rpath, lib-ld.m4, lib-link.m4,
49351         lib-prefix.m4, longdouble.m4, ssize_t.m4.
49352
49353 2006-07-21  Eric Blake  <ebb9@byu.net>
49354
49355         * modules/stdlib-safer: New file.
49356         * MODULES.html.sh (File stream based Input/Output): Add
49357         stdlib-safer.
49358
49359 2006-07-21  Eric Blake  <ebb9@byu.net>
49360
49361         * lib/stdlib-safer.h: New file from coreutils, required by
49362         stdlib--.h.
49363
49364 2006-07-20  Paul Eggert  <eggert@cs.ucla.edu>
49365
49366         * gnulib-tool (func_usage): Document --assume-autoconf='latest-stable'.
49367
49368 2006-07-20  Bruno Haible  <bruno@clisp.org>
49369
49370         * gnulib-tool: Recognize new option --assume-autoconf.
49371         (autoconf_minversion): New variable.
49372         (func_get_filelist): Use it to decide whether to add onceonly_2_57.m4.
49373
49374 2006-07-20  Bruno Haible  <bruno@clisp.org>
49375
49376         * MODULES.html.sh (func_all_modules): Add a missing func_begin_table.
49377
49378 2006-07-19  Derek R. Price  <derek@ximbiot.com>
49379
49380         * lib/getaddrinfo.h: Don't define unimplemented AI_* flags.
49381         Reindent and repaginate.
49382
49383 2006-07-19  Derek Price  <derek@ximbiot.com>
49384
49385         * doc/gnulib.texi (Libtool and Windows):  Eliminate passive voice.
49386         Correct grammar.
49387
49388 2006-07-17  Bruno Haible  <bruno@clisp.org>
49389
49390         * modules/list: New file.
49391         * modules/array-list: New file.
49392         * modules/carray-list, modules/carray-list-tests: New files.
49393         * modules/linked-list, modules/linked-list-tests: New files.
49394         * modules/avltree-list, modules/avltree-list-tests: New files.
49395         * modules/rbtree-list, modules/rbtree-list-tests: New files.
49396         * modules/linkedhash-list, modules/linkedhash-list-tests: New files.
49397         * modules/avltreehash-list, modules/avltreehash-list-tests: New files.
49398         * modules/rbtreehash-list, modules/rbtreehash-list-tests: New files.
49399         * modules/oset: New file.
49400         * modules/array-oset: New file.
49401         * modules/avltree-oset, modules/avltree-oset-tests: New files.
49402         * modules/rbtree-oset, modules/rbtree-oset-tests: New files.
49403         * tests/test-carray_list.c: New file.
49404         * tests/test-linked_list.c: New file.
49405         * tests/test-avltree_list.c: New file.
49406         * tests/test-rbtree_list.c: New file.
49407         * tests/test-linkedhash_list.c: New file.
49408         * tests/test-avltreehash_list.c: New file.
49409         * tests/test-rbtreehash_list.c: New file.
49410         * tests/test-avltree_oset.c: New file.
49411         * tests/test-rbtree_oset.c: New file.
49412         * MODULES.html.sh (Container data structures): New section.
49413
49414 2006-07-17  Bruno Haible  <bruno@clisp.org>
49415
49416         * m4/gl_list.m4: New file.
49417
49418 2006-07-17  Bruno Haible  <bruno@clisp.org>
49419
49420         * lib/gl_list.h: New file.
49421         * lib/gl_list.c: New file.
49422         * lib/gl_array_list.h: New file.
49423         * lib/gl_array_list.c: New file.
49424         * lib/gl_carray_list.h: New file.
49425         * lib/gl_carray_list.c: New file.
49426         * lib/gl_linked_list.h: New file.
49427         * lib/gl_linked_list.c: New file.
49428         * lib/gl_anylinked_list1.h: New file.
49429         * lib/gl_anylinked_list2.h: New file.
49430         * lib/gl_avltree_list.h: New file.
49431         * lib/gl_avltree_list.c: New file.
49432         * lib/gl_anyavltree_list1.h: New file.
49433         * lib/gl_anyavltree_list2.h: New file.
49434         * lib/gl_rbtree_list.h: New file.
49435         * lib/gl_rbtree_list.c: New file.
49436         * lib/gl_anyrbtree_list1.h: New file.
49437         * lib/gl_anyrbtree_list2.h: New file.
49438         * lib/gl_anytree_list1.h: New file.
49439         * lib/gl_anytree_list2.h: New file.
49440         * lib/gl_linkedhash_list.h: New file.
49441         * lib/gl_linkedhash_list.c: New file.
49442         * lib/gl_anyhash_list1.h: New file.
49443         * lib/gl_anyhash_list2.h: New file.
49444         * lib/gl_avltreehash_list.h: New file.
49445         * lib/gl_avltreehash_list.c: New file.
49446         * lib/gl_rbtreehash_list.h: New file.
49447         * lib/gl_rbtreehash_list.c: New file.
49448         * lib/gl_anytreehash_list1.h: New file.
49449         * lib/gl_anytreehash_list2.h: New file.
49450
49451         * lib/gl_oset.h: New file.
49452         * lib/gl_oset.c: New file.
49453         * lib/gl_array_oset.h: New file.
49454         * lib/gl_array_oset.c: New file.
49455         * lib/gl_avltree_oset.h: New file.
49456         * lib/gl_avltree_oset.c: New file.
49457         * lib/gl_rbtree_oset.h: New file.
49458         * lib/gl_rbtree_oset.c: New file.
49459         * lib/gl_anytree_oset.h: New file.
49460
49461 2006-07-16  Paul Eggert  <eggert@cs.ucla.edu>
49462
49463         * m4/mkancesdirs.m4: New file.
49464         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS): Mention dirchownmod.c,
49465         dirchownmod.h.  Don't require AC_FUNC_ALLOCA, gl_AFS, gl_CHDIR_SAFER;
49466         no longer needed.  Require gl_FUNC_LCHOWN, since dirchownmod.c needs
49467         it.
49468
49469 2006-07-16  Paul Eggert  <eggert@cs.ucla.edu>
49470
49471         * lib/dirchownmod.c, lib/dirchownmod.h, lib/mkancesdirs.c:
49472         * lib/mkancesdirs.h: New files.
49473         * lib/mkdir-p.c: Don't include alloca.h, stdio.h, sys/types.h,
49474         unistd.h, string.h, chdir-safer.h, dirname.h, lchmod.h, lchown.h,
49475         save-cwd.h.  Instead, include dirchownmod.h and mkancesdirs.h.
49476         (make_dir_parents): New args MAKE_ANCESTOR, OPTIONS, ANNOUNCE,
49477         MODE_BITS.  Remove options VERBOSE_FMT_STRING, CWD_ERRNO.  All
49478         callers changed.  Revamp internals significantly, by not
49479         attempting to create directories that are temporarily more
49480         permissive than the final results.  Do not attempt to use
49481         save_cwd/restore_cwd; it isn't worth it for mkdir and install.
49482         This removes some race conditions, fixes some bugs, and simplifies
49483         things.  Use new dirchownmod function to do owner and mode changes.
49484         * lib/mkdir-p.h: Likewise.
49485         * lib/modechange.c (octal_to_mode): New function.
49486         (struct mode_change): New member mentioned.
49487         (make_node_op_equals): New arg mentioned.  All callers changed.
49488         (mode_compile): Keep track of which mode bits the user has explicitly
49489         mentioned.
49490         (mode_adjust): New arg DIR, so that we implement the X op correctly.
49491         New arg PMODE_BITS, to keep track of which mode bits the user
49492         mentioned; it treats S_ISUID and S_ISGID speciall.
49493         All callers changed.
49494         * lib/modechange.h: Likewise.
49495
49496 2006-07-16  Paul Eggert  <eggert@cs.ucla.edu>
49497
49498         * MODULES.html.sh: Add mkancestors.
49499         * modules/mkancesdirs: New module.
49500         * modules/mkdir-p (Files): Remove lib/chdir-safer.c, lib/chdir-safer.h,
49501         lib/same-inode.h, m4/afs.m4, m4/chdir-safer.m4.
49502         The chdir-safer and afs files are now orphans; I'll remove them
49503         unless someone speaks up.
49504         Add lib/dirchownmod.c, lib/dirchownmod.h.
49505         (Depends-on): Remove alloca, chown, save-cwd, dirname.
49506         Add lchown, mkancesdirs.
49507         (Maintainer): Add self.
49508
49509 2006-07-15  Karl Berry  <karl@gnu.org>
49510
49511         * gnulib-tool: help message wording/arrangement.
49512
49513 2006-07-14  Simon Josefsson  <jas@extundo.com>
49514
49515         * doc/gnulib.texi (Libtool and Windows): New section.
49516
49517 2006-07-12  Simon Josefsson  <jas@extundo.com>
49518
49519         * modules/gendocs (License): Fix license, approved by Karl.
49520
49521 2006-07-12  Eric Blake  <ebb9@byu.net>
49522
49523         * MODULES.html.sh: Add gendocs.
49524
49525 2006-07-11  Eric Blake  <ebb9@byu.net>
49526
49527         * modules/fdl: New module, to install doc/fdl.texi.
49528         * MODULES.html.sh: Add new section for documentation modules.
49529         * gnulib-tool: Avoid space-tab.
49530         (--doc-base): New option, to manage files from doc.
49531
49532 2006-07-11  Eric Blake  <ebb9@byu.net>
49533
49534         * m4/absolute-header.m4: Fix comments to match recent change.
49535
49536 2006-07-11  Eric Blake  <ebb9@byu.net>
49537
49538         * gnulib-tool: List --doc-base before --tests-base.
49539
49540 2006-07-11  Derek R. Price  <derek@ximbiot.com>
49541
49542         * lib/glob.c: s/NAMLEN/_D_EXACT_NAMLEN/.
49543
49544 2006-07-11  Bruno Haible  <bruno@clisp.org>
49545
49546         * README: Mention where to put documentation.
49547
49548 2006-07-10  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
49549
49550         * doc/functions.texi, gnulib-tool.texi, gnulib.texi: Fix some typos.
49551
49552 2006-07-10  Paul Eggert  <eggert@cs.ucla.edu>
49553
49554         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Like today's change
49555         to stdint.m4.
49556
49557 2006-07-10  Paul Eggert  <eggert@cs.ucla.edu>
49558
49559         * m4/stdint.m4 (gl_STDINT_H): Like yesterday's change to
49560         absolute-header.m4.  Also, set ABSOLUTE_STDINT_H to a string
49561         "no/such/file/stdint.h" when there is no such file, so that
49562         the resulting C code can be parsed by dodgy compilers.
49563         Problems reported by Bob Proulx.
49564
49565 2006-07-10  Derek R. Price  <derek@ximbiot.com>
49566
49567         * lib/backupfile.c, dirfd.h, fts.c, getcwd.c, glob.c, glob_.h:
49568         Ignore the obsolescent !HAVE_DIRENT_H case.  Consolidate NAMLEN
49569         macros into the GNU _D_EXACT_NAMLEN.
49570         * lib/savedir.c:  Likewise.
49571         (savedirstream): Use _D_EXACT_NAMLEN in preference to strlen.
49572
49573 2006-07-10  Derek R. Price  <derek@ximbiot.com>
49574         and Paul Eggert  <eggert@cs.ucla.edu>
49575
49576         * m4/backupfile.m4, d-ino.m4, d-type.m4, dirfd.m4, fts.m4, getcwd.m4:
49577         * m4/savedir.m4:
49578         Ignore the obsolescent !HAVE_DIRENT_H case.  Consolidate NAMLEN
49579         macros into the GNU _D_EXACT_NAMLEN.
49580
49581 2006-07-09  Paul Eggert  <eggert@cs.ucla.edu>
49582
49583         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Use "" rather than <>
49584         around the absolute name, to work around a problem with the HP-UX
49585         11.23 native C compiler, reported by Bob Proulx.
49586
49587 2006-07-09  Paul Eggert  <eggert@cs.ucla.edu>
49588
49589         * doc/maintain.texi, make-stds.texi: Sync from
49590         <http://savannah.gnu.org/projects/gnustandards>.
49591
49592 2006-07-09  Paul Eggert  <eggert@cs.ucla.edu>
49593
49594         * build-aux/depcomp, build-aux/install-sh: Sync from Automake.
49595
49596 2006-07-09  Jim Meyering  <jim@meyering.net>
49597
49598         * m4/glob.m4: Remove a doubled word in a comment.
49599
49600 2006-07-09  Jim Meyering  <jim@meyering.net>
49601
49602         * lib/argp-pv.c: Remove a doubled word in a comment.
49603         * lib/check-version.c (check_version): Likewise.
49604         * lib/javacomp.c (compile_java_class): Likewise.
49605
49606 2006-07-08  Paul Eggert  <eggert@cs.ucla.edu>
49607
49608         * gnulib-tool (func_get_filelist): Don't echo m4/onceonly_2_57.m4,
49609         for the benefit of people using Autoconf 2.60.  If you want to
49610         support older Autoconf versions you can copy m4/onceonly_2_57.m4
49611         (or m4/onceonly.m4, if pre-2.57) manually.
49612
49613 2006-07-08  Jim Meyering  <jim@meyering.net>
49614
49615         * m4/link-follow.m4: Remove one of two adjacent "whether"s in a
49616         comment.
49617         * m4/getopt.m4: Remove one of two adjacent "your"s in a comment.
49618         * m4/regex.m4 (gl_REGEX): Remove one of two adjacent "the"s in a
49619         comment.
49620
49621 2006-07-08  Jim Meyering  <jim@meyering.net>
49622
49623         * lib/getndelim2.h (getndelim2): Remove doubled "after" in comment.
49624
49625 2006-07-07  Simon Josefsson  <jas@extundo.com>
49626
49627         * tests/test-crc.c: Change expected crc value, the test vector
49628         were probably computed using the old broken crc.c?
49629
49630 2006-07-06  Simon Josefsson  <jas@extundo.com>
49631
49632         * modules/sys_socket (Files): Add m4/sockpfaf.m4 (this module is
49633         now the canonical place for the M4 file).
49634
49635         * modules/getaddrinfo (Files): Remove m4/sockpfaf.m4, we get it
49636         from the sys_socket dependency now.
49637
49638         * modules/inet_pton (Files): Ditto.
49639
49640         * modules/inet_ntop (Files): Ditto.
49641
49642 2006-07-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>  (tiny change)
49643
49644         * modules/getusershell (configure.ac): Use gl_FUNC_GETUSERSHELL,
49645         not gl_PREREQ_GETUSERSHELL.
49646
49647 2006-07-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
49648
49649         * m4/_inttypes_h.m4 (gl_INTTYPES_H): Use AC_CHECK_DECLS_ONCE
49650         with only one argument, for Autoconf 2.60.
49651         * m4/fileblocks.m4 (gl_PREREQ_FILEBLOCKS): AC_CHECK_DECLS_ONCE may
49652         expand to nothing, so add a shell command to avoid syntax error.
49653         * m4/getpass.m4 (gl_PREREQ_GETPASS): Likewise.
49654
49655 2006-07-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
49656
49657         * lib/strtod.c (strtod): cast the argument of tolower to unsigned char.
49658
49659 2006-07-06  Paul Eggert  <eggert@cs.ucla.edu>
49660
49661         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Don't check for getenv decl;
49662         no longer needed.  Check for isblank decl.
49663         * m4/mkstemp.m4 (gl_PREREQ_TEMPNAME): Don't check for getenv decl.
49664         * m4/regex.m4 (gl_PREREQ_REGEX): Dheck for isblank decl instead
49665         of existence.
49666
49667 2006-07-06  Paul Eggert  <eggert@cs.ucla.edu>
49668
49669         * lib/getloadavg.c: Use __VMS, not VMS.
49670         * lib/getopt.c: Likewise.
49671         * lib/getpagesize.h: Likewise.
49672         * lib/glob.c: Remove most VMS cruft; it hasn't been tested for a while
49673         and probably does not work.
49674
49675 2006-07-06  Paul Eggert  <eggert@cs.ucla.edu>
49676
49677         * lib/.cppi-disable: Add wcwidth.
49678         * lib/fnmatch.c (ISBLANK): Remove.  All uses changed to isblank.
49679         (isblank) [! (defined isblank || HAVE_DECL_ISBLANK)]: New macro.
49680         (ISGRAPH): Remove.  All uses changed to isgraph.
49681         (FOLD) [!defined _LIBC]: Remove special case.
49682         * lib/getdate.y (lookup_word): Remove no-longer-needed call to islower.
49683         * lib/regex_internal.h (isblank): Depend on HAVE_DECL_ISBLANK, not
49684         HAVE_ISBLANK.
49685         * lib/strftime.c (TOLOWER, TOUPPER) [!defined _LIBC]: Remove special
49686         case.
49687
49688 2006-07-06  Jim Hyslop  <jhyslop@dreampossible.ca>  (tiny change)
49689
49690         * lib/getaddrinfo.c: Changes to compile under MSVC6: changed
49691         '#if WIN32_NATIVE' to '#ifdef' & moved WSAAPI macro inside
49692         brackets.  Other minor changes to suppress some compiler
49693         warnings.
49694
49695 2006-07-06  Derek R. Price  <derek@ximbiot.com>
49696         and Paul Eggert  <eggert@cs.ucla.edu>
49697
49698         * m4/backupfile.m4 (gl_BACKUPFILE): Check for dirent.h, instead
49699         of invoking obsolescent AC_HEADER_DIRENT macro.
49700         * m4/d-ino.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_INO): Likewise.
49701         * m4/d-type.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_TYPE): Likewise.
49702         * m4/dirfd.m4 (gl_FUNC_DIRFD): Likewise.
49703         * m4/fts.m4 (gl_FUNC_FTS_CORE): Likewise.
49704         * m4/getcwd.m4 (gl_PREREQ_GETCWD): Likewise.
49705         * m4/glob.m4 (gl_PREREQ_GLOB): Likewise.
49706         * m4/savedir.m4 (gl_SAVEDIR): Likewise.
49707         * m4/readdir.m4: Remove; no longer needed.
49708
49709 2006-07-06  Derek R. Price  <derek@ximbiot.com>
49710         and Paul Eggert  <eggert@cs.ucla.edu>
49711
49712         * lib/backupfile.c [HAVE_DIRENT_H && ! HAVE_NDIR_H]:
49713         Don't worry about this obsolete case any more.
49714         (HAVE_DIR): Remove.  All uses removed; we now assume you can read
49715         directories.
49716         * lib/dirfd.h [HAVE_DIRENT_H && ! HAVE_NDIR_H]: Don't
49717         worry about this obsolete case any more.
49718         * lib/fts.c: Likewise.
49719         * lib/getcwd.c: Likewise.
49720         * lib/glob.h: Likewise.
49721         * lib/savedir.c: Likewise.
49722
49723 2006-07-05  Paul Eggert  <eggert@cs.ucla.edu>
49724
49725         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Use AC_CHECK_DECLS_ONCE
49726         rather than AC_CHECK_DECLS for strtoimax and strtoumax.
49727         * m4/getusershell.m4 (gl_PREREQ_GETUSERSHELL): Remove; no longer
49728         needed.
49729         All uses removed.
49730         * m4/strtol.m4 (gl_PREREQ_STRTOL): Likewise.
49731         * m4/strtoul.m4 (gl_PREREQ_STRTOUL): Likewise.
49732         * m4/exclude.m4 (gl_EXCLUDE): Don't check for isascii; no longer
49733         needed.
49734         * m4/getdate.m4 (gl_GETDATE): Likewise.
49735         * m4/getusershell.m4 (gl_PREREQ_GETUSERSHELL): Likewise.
49736         * m4/memcasecmp.m4 (gl_MEMCASECMP): Likewise.
49737         * m4/strtod.m4 (gl_FUNC_STRTOD): Likewise.
49738         * m4/strtol.m4 (gl_PREREQ_STRTOL): Likewise.
49739         * m4/strtoul.m4 (gl_PREREQ_STRTOUL): Likewise.
49740         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Likewise.
49741         * m4/exclude.m4 (gl_EXCLUDE): Don't require AC_C_INLINE; no longer
49742         needed.
49743
49744 2006-07-05  Paul Eggert  <eggert@cs.ucla.edu>
49745
49746         * lib/memcasecmp.c: Include <limits.h>.
49747         (memcasecmp): Don't assume UCHAR_MAX <= INT_MAX.
49748         * lib/strtod.c (strtod): Don't assume isspace works on negative chars.
49749         Don't assume isdigit succeeds only on '0' through '9'.
49750
49751 2006-07-05  Eric Blake  <ebb9@byu.net>
49752
49753         * modules/getaddrinfo (Depends-on): Add snprintf.
49754
49755 2006-07-05  Eric Blake  <ebb9@byu.net>
49756
49757         * m4/sockpfaf.m4 (gl_SOCKET_FAMILIES): Use gl_HEADER_SYS_SOCKET
49758         to avoid 'header present but could not be compiled' on cygwin.
49759
49760 2006-07-05  Eric Blake  <ebb9@byu.net>
49761
49762         * lib/getaddrinfo.h (NI_NUMERICHOST, NI_NUMERICSERV): Define if
49763         missing from netdb.h.
49764         * lib/getaddrinfo.c (includes): Include inet_ntop and snprintf.
49765
49766 2006-07-05  Derek R. Price  <derek@ximbiot.com>
49767
49768         * m4/calloc.m4 (_AC_FUNC_CALLOC_IF): Don't require AC_HEADER_STDC;
49769         no longer needed.
49770         * m4/exclude.m4 (gl_EXCLUDE): Likewise.
49771         * m4/getdate.m4 (gl_GETDATE): Likewise.
49772         * m4/getusershell.m4 (gl_PREREQ_GETUSERSHELL): Likewise.
49773         * m4/memcasecmp.m4 (gl_MEMCASECMP): Likewise.
49774         * m4/strtod.m4 (gl_FUNC_STRTOD): Likewise.
49775         * m4/strtol.m4 (gl_PREREQ_STRTOL): Likewise.
49776         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Likewise.
49777
49778 2006-07-05  Derek R. Price  <derek@ximbiot.com>
49779
49780         * lib/exclude.c (IN_CTYPE_DOMAIN, is_space): Remove; no longer needed.
49781         All uses of is_space replaced by isspace.
49782         * lib/exit.h: Don't talk about STDC_HEADERS.
49783         * lib/fnmatch.c (ISASCII): Remove; no longer needed.  All uses removed.
49784         (ISPRINT, ISDIGIT, ISALNUM, ISALPHA, ISCNTRL, ISLOWER, ISPUNCT):
49785         (ISSPACE, ISUPPER, ISXDIGIT): Remove; no longer needed.  All uses
49786         replaced by isprint etc.
49787         * lib/getdate.y (IN_CTYPE_DOMAIN, ISSPACE, ISALPHA, ISLOWER): Likewise.
49788         * lib/getusershell.c (IN_CTYPE_DOMAIN, ISSPACE): Likewise.
49789         * lib/memcasecmp.c (IN_CTYPE_DOMAIN, ISLOWER, TOUPPER): Likewise.
49790         * lib/strtod.c (IN_CTYPE_DOMAIN, ISSPACE, ISDIGIT, TOLOWER): Likewise.
49791         * lib/strtol.c (IN_CTYPE_DOMAIN): Likewise.
49792         * lib/xstrtol.c (IN_CTYPE_DOMAIN, ISSPACE): Likewise.
49793
49794 2006-07-05  Bruno Haible  <bruno@clisp.org>
49795
49796         * m4/strndup.m4 (gl_FUNC_STRNDUP): When cross-compiling, check whether
49797         the function exists, before testing against AIX.
49798         Reported by Martin Lambers <marlam@marlam.de>.
49799
49800 2006-07-04  Paul Eggert  <eggert@cs.ucla.edu>
49801
49802         * modules/cycle-check (lib_SOURCES): Add same-inode.h.
49803         From Mark D. Baushke.
49804
49805 2006-07-04  Paul Eggert  <eggert@cs.ucla.edu>
49806
49807         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Prepend three slashes
49808         to the absolute name, not just one, to bypass Sun C 5.8's
49809         "warning: #include of /usr/include/... may be non-portable".
49810
49811 2006-07-04  Eric Blake  <ebb9@byu.net>
49812
49813         * modules/dirname-tests: New test module.
49814         * tests/test-dirname.c: New file, replacing dirname.c
49815         TEST_DIRNAME section that was recently deleted.
49816
49817 2006-07-04  Bruno Haible  <bruno@clisp.org>
49818
49819         Assume ANSI C header files and <ctype.h> functions.
49820         * lib/mbswidth.c (IN_CTYPE_DOMAIN, ISPRINT, ISCNTRL): Remove macros.
49821         (mbsnwidth): Use isprint, iscntrl instead.
49822
49823 2006-07-03  Paul Eggert  <eggert@cs.ucla.edu>
49824
49825         Merge from coreutils.
49826         * MODULES.html.sh: Add xstrtold.
49827         * modules/xstrtold: New file.
49828         * modules/cycle-check (Files): Add lib/same-inode.h.
49829         * modules/dirname (Files): Add m4/double-slash-root.m4.
49830         * modules/getcwd (Files): Add m4/getcwd-abort-bug.m4.
49831         * modules/mkdir-p (Files): Add lib/same-inode.h.
49832         * modules/same (Files): Add lib/same-inode.h.
49833
49834 2006-07-03  Paul Eggert  <eggert@cs.ucla.edu>
49835
49836         * m4/absolute-header.m4: Renamed from full-header-path.m4.
49837         This is to keep the terminology clean; POSIX talks about
49838         "absolute pathnames", not "full pathnames", but the GNU
49839         Coding Standards say to use "path" for something else;
49840         so use "absolute" to keep both sides happy.
49841         (gl_ABSOLUTE_HEADER): Renamed from gl_FULL_HEADER_PATH.
49842         Set gl_absolute_header, not gl_full_header_path.
49843         Set gl_cv_absolute_<header>, not gl_full_path_<header>.
49844         Define ABSOLUTE_<HEADER>, not FULL_PATH_<HEADER>.
49845         All uses changed.
49846
49847         Merge from coreutils.
49848
49849         2006-06-30  Paul Eggert  <eggert@cs.ucla.edu>
49850
49851         * m4/c-strtod.m4 (gl_C_STRTOLD): Add c-strtod.c to LIBSOURCES.
49852         Require gl_USE_SYSTEM_EXTENSIONS, not gl_C_STRTOD, since we don't
49853         want to require the building of c-strtod.o.
49854         * m4/lib-check.m4 (cu_LIB_CHECK): Remove SEQ_LIBM, since seq no longer
49855         needs -lm directly.
49856         * m4/xstrtod.m4 (gl_XSTRTOLD): New macro.
49857
49858         2006-06-19  Paul Eggert  <eggert@cs.ucla.edu>
49859
49860         * m4/lib-ignore.m4 (gl_IGNORE_UNUSED_LIBRARIES): Prefer binutils's
49861         --as-needed option if available.  Problem reported by Albert Chin in
49862         <http://lists.gnu.org/archive/html/bug-gnulib/2006-06/msg00114.html>.
49863         However, use -Wl,--as-needed, not bare --as-needed, since HP-UX 11.11
49864         cc merely issues a bunch of annoying warnings for --as-needed
49865         (this problem was reported by Bob Proulx).  Also, try linking with
49866         -lm to detect a bug in binutils 2.16 (this problem was reported
49867         by Ralf Wildenhues).
49868
49869         2006-06-18  Jim Meyering  <jim@meyering.net>
49870
49871         Test for a bug that causes glibc's getcwd to suffer a failed assertion.
49872         * m4/getcwd-abort-bug.m4 (gl_FUNC_GETCWD_ABORT_BUG): New file and
49873         macro.
49874         * m4/getcwd.m4 (gl_FUNC_GETCWD): If we detect support for getcwd_null,
49875         also check for glibc-2.4's abort-inducing bug.
49876
49877         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Fix typo.
49878         Low-probability clean-up should be to use rmdir to get rid of
49879         the just-created directory, not unlink.
49880
49881         * m4/ftruncate.m4 (gl_FUNC_FTRUNCATE): If ftruncate is missing, make
49882         configure fail, and request a bug report to inform us about it.
49883         Add a comment that, barring reports to the contrary, in 2007 we'll
49884         assume ftruncate is universally available.
49885
49886         2006-04-17  Paul Eggert  <eggert@cs.ucla.edu>
49887
49888         * m4/filemode.m4 (gl_FILEMODE): Check for strmode declaration.
49889
49890         2006-03-12  Jim Meyering  <jim@meyering.net>
49891
49892         * m4/chdir-safer.m4 (gl_CHDIR_SAFER): Add same-inode.h to the list.
49893         * m4/cycle-check.m4 (gl_CYCLE_CHECK): Likewise.
49894         * m4/same.m4 (gl_SAME): Likewise.
49895         * m4/root-dev-ino.m4 (gl_ROOT_DEV_INO): Likewise.
49896
49897         2006-03-11  Eric Blake  <ebb9@byu.net>
49898
49899         * m4/double-slash-root.m4: New file, provides gl_DOUBLE_SLASH_ROOT.
49900         * m4/dirname.m4 (gl_DIRNAME): Use gl_DOUBLE_SLASH_ROOT.
49901         * m4/dos.m4 (FILE_SYSTEM_PREFIX_LEN): Move from here to dirname.h.
49902         (FILE_SYSTEM_DRIVE_PREFIX_CAN_BE_RELATIVE): New define.
49903
49904 2006-07-03  Paul Eggert  <eggert@cs.ucla.edu>
49905
49906         * lib/stdint_.h: Include <sys/types.h> after @FULL_PATH_STDINT_H@, for
49907         MacOS X 10.4.6.  Don't mention <sys/int_types.h>.  Problems
49908         reported by Mark D. Baushke, one in
49909         <http://lists.gnu.org/archive/html/bug-gnulib/2006-07/msg00015.html>.
49910
49911         Merge from coreutils.
49912
49913         * lib/.cppi-disable: Add stdint_.h.
49914         * lib/.cvsignore: Add stdint.h.
49915
49916         2006-06-30  Paul Eggert  <eggert@cs.ucla.edu>
49917
49918         * lib/xstrtod.c (XSTRTOD, DOUBLE): New macros, so that we can support
49919         both double and long double versions.
49920         (XSTRTOD): Renamed from xstrtod.  Use DOUBLE internally.
49921         * lib/xstrtold.c: New file.
49922         * lib/xstrtod.h (xstrtold): New decl.
49923
49924         2006-05-22  Paul Eggert  <eggert@cs.ucla.edu>
49925
49926         * lib/filemode.c (setst): Remove.
49927         (strmode): Rewrite to avoid setst.  This makes the code shorter,
49928         (arguably) clearer, and the generated code is a bit smaller on my
49929         Debian GNU/Linux stable x86 host.
49930
49931         2006-04-17  Paul Eggert  <eggert@cs.ucla.edu>
49932
49933         * lib/filemode.c: Include "filemode.h" first, to test the interface.
49934         Assume that filemode.h includes sys/types.h and sys/stat.h.
49935         (HAVE_ST_DM_MODE): New macro, moved here from ls.c.
49936         (ftypelet): Reorder to put common cases first, for efficiency.
49937         Add 'P', 'w'.  Remove 'M', since it's now the caller's responsibility
49938         to do 'M'.
49939         (strmode): Renamed from mode_string, and now stores 12 bytes instead
49940         of 10, for compatibility with FreeBSD.  All callers changed.
49941         (filemodestring): Now stores 12 bytes instead of 10, and sets file
49942         types that can't be deduced solely from st_mode.  First arg is now a
49943         const pointer.
49944         * lib/filemode.h (HAVE_DECL_STRMODE): Include <string.h> for strmode.
49945         (strmode): Renamed from mode_string.
49946         (filemodestring): New decl.
49947         * lib/stat-macros.h: Don't undef S_ISDOOR, since it's never buggy.
49948         (S_ISDOOR): Don't bother with S_IFDOOR, since that code is never
49949         needed.
49950         (S_ISPORT, S_ISWHT): New macros, if not already defined.
49951
49952         2006-04-12  Paul Eggert  <eggert@cs.ucla.edu>
49953
49954         * lib/fsusage.c: Don't include <inttypes.h> or <stdint.h>, since
49955         fsusage.h now does that.  Include fsusage.h first, to test interface.
49956         Prefer statvfs if it works, since it's blessed by POSIX.  Attempt
49957         at most one method (the old code could have generated decls that
49958         didn't conform to C89, not that this was ever exercised).
49959         * lib/fsusage.h: Include <inttypes.h> and <stdint.h> if they exist.
49960
49961         2006-03-19  Jim Meyering  <jim@meyering.net>
49962
49963         Work even in a chroot where d_ino values for entries in "/"
49964         don't match the stat.st_ino values for the same names.
49965         * lib/getcwd.c (__getcwd): When no d_ino value matches the target inode
49966         number, iterate through all entries again, using lstat instead.
49967         Reported by Kenshi Muto in http://bugs.debian.org/355810, and by
49968         Zouhir Hafidi in https://bugzilla.redhat.com/bugzilla/190656.
49969
49970         * lib/getcwd.c (__getcwd): Clarify a comment.
49971         Use memcpy in place of a call to strcpy.
49972
49973         2006-03-12  Jim Meyering  <jim@meyering.net>
49974
49975         * lib/fts-cycle.c (leave_dir): If cycle-check's saved dev-ino pair
49976         matches that of the current directory (which we're about to chdir ".."
49977         out of), then save the dev-ino of the parent, instead.
49978
49979         * lib/same-inode.h (SAME_INODE): New file/macro.
49980         * lib/chdir-safer.c (SAME_INODE): Remove definition.
49981         Include "same-inode.h", instead.
49982         * lib/same.c: Likewise.
49983         * lib/cycle-check.h: Include "same-inode.h".
49984         (CYCLE_CHECK_REFLECT_CHDIR_UP): Define.
49985         * lib/cycle-check.c (SAME_INODE): Remove definition.
49986         * lib/root-dev-ino.h: Include "same-inode.h".
49987
49988         2006-03-11  Eric Blake  <ebb9@byu.net>
49989
49990         * lib/same.c (same_name): s/base_name/last_component/
49991         * lib/backupfile.c (check_extension, numbered_backup): Likewise.
49992         * lib/filenamecat.c (file_name_concat): Likewise.
49993
49994         2006-03-11  Eric Blake  <ebb9@byu.net>,
49995                     Paul Eggert  <eggert@cs.ucla.edu>
49996
49997         * lib/dirname.h (FILE_SYSTEM_PREFIX_LEN): Move here from dos.m4.
49998         [FILE_SYSTEM_ACCEPTS_DRIVE_LETTER_PREFIX]: Don't treat 1: as a
49999         drive prefix.
50000         (IS_ABSOLUTE_FILE_NAME): Treat all drive letters as absolute on
50001         platforms like cygwin with FILE_SYSTEM_DRIVE_PREFIX_IS_ABSOLUTE.
50002         (last_component): New method.
50003         * lib/dirname.c (dir_len): Determine when drive letters need a
50004         subsequent slash.  Preserve // when it is special.
50005         (dir_name): Don't append dot when drive letter is absolute.
50006         [TEST_DIRNAME]: Move into a full-blown gnulib test.
50007         * lib/basename.c (base_name): New semantics - malloc the result.
50008         Preserve // when it is special.  Preserve relative files that look
50009         like drive letters.
50010         (base_len): Preserve // when it is special.
50011         (last_component): New method, similar to old base_name semantics.
50012         * lib/stripslash.c (strip_trailing_slashes): Use last_component, not
50013         base_name.  Strip redundant slashes from ///.
50014
50015 2006-07-03  Jim Meyering  <jim@meyering.net>
50016
50017         * lib/cycle-check.h (CYCLE_CHECK_REFLECT_CHDIR_UP): Abort if this
50018         macro is used before the first cycle_check call.
50019
50020 2006-07-03  Eric Blake  <ebb9@byu.net>
50021
50022         * modules/dirname (Depends-on): Add xstrndup.
50023
50024 2006-07-02  Paul Eggert  <eggert@cs.ucla.edu>
50025
50026         * m4/stdint.m4 (gl_STDINT_H): Use more-mnemonic identifiers for
50027         test cases, so that config.log is a bit easier to follow.
50028
50029 2006-07-02  Paul Eggert  <eggert@cs.ucla.edu>
50030
50031         * lib/stdint_.h (intmax_t, uintmax_t): Prefer long to long long if
50032         both are 64 bits, since this seems to be the tradition, and this
50033         prevents gcc -Wformat from warning about usages with PRIuMAX.  If
50034         we ever run into a host that prefers long long to long in this
50035         case, we'll need another configure-time test.  Problem reported by
50036         Jim Meyering.
50037
50038 2006-07-02  Eric Blake  <ebb9@byu.net>
50039
50040         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Simplify by using AC_CHECK_DECLS.
50041
50042 2006-07-01  Paul Eggert  <eggert@cs.ucla.edu>
50043
50044         * modules/inttypes (Depends-on): No longer depends on stdint.
50045         * modules/stdint (Description): Say more about assumptions.
50046         Say that the fast types might differ.  Say macros are used.
50047         (Files): Remove m4/size_max.m4, m4/wchar_t.m4.  Add m4/longlong.m4.
50048         (Makefile.am): Revise list of substituted symbols to match
50049         new stdint.m4.
50050         * modules/stdint-tests (Files): Add m4/wchar_t.m4, m4/wint_t.m4.
50051         (configure.ac): Add gt_TYPE_WCHAR_T, gt_TYPE_WINT_T.
50052         * tests/test-stdint.c (verify_same_types)
50053         [! (__GNUC__ >= 2 && DO_PEDANTIC)]: Put in a decl, so that
50054         the code conforms to C99/C89.
50055         Test for WCHAR_MIN and WCHAR_MAX only if HAVE_WCHAR_T.
50056         Test for WINT_MIN and WINT_MAX only if HAVE_WINT_T.
50057
50058 2006-07-01  Paul Eggert  <eggert@cs.ucla.edu>
50059
50060         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Backport from Autoconf 2.60,
50061         but fix a bug, by requiring at least 64 bits.
50062         * m4/ulonglong.m4 (AC_TYPE_UNSIGNED_LONG_LONG_INT): Likewise.
50063         * m4/longlong.m4 (gl_AC_TYPE_LONG_LONG): Now just call
50064         AC_TYPE_LONG_LONG_INT.  This macro is obsolete and will go soon.
50065         * m4/ulonglong.m4 (gl_AC_TYPE_UNSIGNED_LONG_LONG) Likewise.
50066
50067         * m4/stdint.m4 (gl_STDINT_H): Rewrite to accommodate stdint_.h
50068         changes.  Make 2.59 a prerequisite.  Check and substitute for
50069         HAVE_LONG_LONG_INT.  Rely on Autoconf to check for stdint.h and
50070         inttypes.h.  Do not use special include files; just use the
50071         defaults.  Check for sys/inttypes.h and sys/bitypes.h in the usual
50072         way now.  Remove no-longer-needed tests for HAVE_LONG_64BIT,
50073         HAVE_LONG_LONG_64BIT, int8_t, int16_t, int32_t, int64_t, uint8_t,
50074         uint16_t, uint32_t uint64_t, int_least8_t, int_least16_t,
50075         int_least32_t, int_least64_t, uint_least8_t, uint_least16_t,
50076         uint_least32_t, uint_least64_t, int_fast8_t, int_fast16_t,
50077         int_fast32_t, int_fast64_t, uint_fast8_t uint_fast16_t,
50078         uint_fast32_t, uint_fast64_t, intptr_t, uintptr_t, intmax_t,
50079         uintmax_t, INT8_MIN, INT8_MAX, UINT8_MAX, INT16_MIN, INT16_MAX,
50080         UINT16_MAX, INT32_MIN, INT32_MAX, UINT32_MAX, INT64_MIN,
50081         INT64_MAX, UINT64_MAX, INT_LEAST8_MIN, INT_LEAST8_MAX,
50082         UINT_LEAST8_MAX, INT_LEAST16_MIN, INT_LEAST16_MAX,
50083         UINT_LEAST16_MAX, INT_LEAST32_MIN, INT_LEAST32_MAX,
50084         UINT_LEAST32_MAX, INT_LEAST64_MIN, INT_LEAST64_MAX,
50085         UINT_LEAST64_MAX, INT_FAST8_MIN, INT_FAST8_MAX, UINT_FAST8_MAX,
50086         INT_FAST16_MIN, INT_FAST16_MAX, UINT_FAST16_MAX, INT_FAST32_MIN,
50087         INT_FAST32_MAX, UINT_FAST32_MAX, INT_FAST64_MIN, INT_FAST64_MAX,
50088         UINT_FAST64_MAX, INTPTR_MIN, INTPTR_MAX, UINTPTR_MAX, INTMAX_MIN,
50089         INTMAX_MAX, UINTMAX_MAX, PTRDIFF_MIN, PTRDIFF_MAX, SIG_ATOMIC_MIN,
50090         SIG_ATOMIC_MAX, SIZE_MAX, WCHAR_MIN, WCHAR_MAX, WINT_MIN,
50091         WINT_MAX.  Check for C99 conformance more strictly, by detecting
50092         bugs in glibc 2.4, Solaris 10, and OpenBSD 3.9.  On the other hand do
50093         not check for things that C99 does not require, e.g., int8_t.  If
50094         a test isn't needed unless <stdint.h> isn't working, and is
50095         unlikely to be needed for any other reason, then don't do it
50096         unless <stdint.h> isn't working.  Do not check for ptrdiff_t or
50097         size_t, since we assume C89 freestanding at least.  Do not check
50098         for sig_atomic_t, wchar_t, or wint_t, since the code now does
50099         the right thing even if the types are not defined.  Instead use:
50100         (gl_STDINT_TYPE_PROPERTIES): New macro.
50101         (gl_HEADER_STDINT_H, gl_HEADER_INTTYPES_H): Remove.  Don't bother
50102         testing whether <sys/types.h> clashes, as Autoconf does this for
50103         us now.  All uses removed.
50104         (gl_STDINT_CHECK_TYPES, gl_STDINT_MISSING_BOUND):
50105         (gl_STDINT_MISSING_BOUNDS, gl_STDINT_MISSING_BOUNDS2):
50106         (gl_CHECK_TYPE_SAME):
50107         Remove; no longer needed.
50108         (gl_STDINT_BITSIZEOF): Don't bother to check whether the type
50109         exists, since we'll return 0 anyway in that case.
50110         (gl_INTEGER_TYPE_SUFFIX, gl_STDINT_INCLUDES): New macros.
50111
50112 2006-07-01  Paul Eggert  <eggert@cs.ucla.edu>
50113
50114         * lib/stdint_.h (_GL_STDINT_H): Renamed from _STDINT_H, to avoid
50115         possible collision with system files.
50116         (<stdio.h>, <time.h>, <wchar.h>) [defined __cplusplus && ! defined
50117         __STDC_CONSTANT_MACROS)]: Do not include, since we don't need
50118         WCHAR_MIN and WCHAR_MAX in this case.
50119         (<stddef.h>): Do not include; no longer needed.
50120         (<sys/types.h>): Include if @HAVE_SYS_TYPES_H@, not if
50121         (defined(__OpenBSD__) || defined(__bsdi__) || defined(__sgi)).
50122         (<sys/inttypes.h>): Include if @HAVE_SYS_INTTYPES_H@ &&
50123         !@HAVE_INTTYPES_H@, not if (defined(__FreeBSD__)
50124         && (__FreeBSD__ >= 3) && (__FreeBSD__ <= 4)).
50125         (__STDINT_H__) [@HAVE_STDINT_H@ && defined __sgi && ! defined
50126         __c99]: Define, to work around IRIX <stdint.h> incompatibility.
50127         (@FULL_PATH_STDINT_H@) [!(defined(__sgi) && @HAVE_INTTYPES_H@ &&
50128         !defined(__c99))]: Include in this case too, since it's harmless
50129         now.
50130         (<inttypes.h>) [@HAVE_INTTYPES_H@]: Include, since it's no longer
50131         dangerous to do so.
50132         (@FULL_PATH_INTTYPES_H@) [(defined(__hpux) || defined(_AIX)) &&
50133         @HAVE_INTTYPES_H@]: Do not include, since we now include <inttypes.h>.
50134         (_STDINT_MIN, _STDINT_MAX): New macros.
50135         (int8_t, uint8_t, int16_t, uint16_t, int32_t, uint32_t, int64_t):
50136         (uint64_t, int_least8_t, uint_least8_t, int_least16_t):
50137         (uint_least16_t, int_least32_t, uint_least32_t, int_least64_t):
50138         (uint_least64_t, int_fast8_t, uint_fast8_t, int_fast16_t):
50139         (uint_fast16_t, int_fast32_t, uint_fast32_t, int_fast64_t):
50140         (uint_fast64_t, intptr_t, uintptr_t, intmax_t, uintmax_t): Now
50141         macros, not typedefs; this simplifies things quite a bit.
50142         Use long int for all types narrower than int64_t.
50143         (intmax_t, uintmax_t, INTMAX_C, UINTMAX_C):
50144         Define in terms of long long int or int64_t or long int,
50145         not int64_t or int32_t.  This saves some compile-time testing.
50146         (INT8_MIN, INT8_MAX, UINT8_MAX, INT16_MIN, INT16_MAX, UINT16_MAX):
50147         (INT32_MIN, INT32_MAX, UINT32_MAX, INT64_MIN, INT64_MAX):
50148         (UINT64_MAX, INT_LEAST8_MIN, INT_LEAST8_MAX, UINT_LEAST8_MAX):
50149         (INT_LEAST16_MIN, INT_LEAST16_MAX, UINT_LEAST16_MAX):
50150         (INT_LEAST32_MIN, INT_LEAST32_MAX, UINT_LEAST32_MAX):
50151         (INT_LEAST64_MIN, INT_LEAST64_MAX, UINT_LEAST64_MAX, INT_FAST8_MIN):
50152         (INT_FAST8_MAX, UINT_FAST8_MAX, INT_FAST16_MIN, INT_FAST16_MAX):
50153         (UINT_FAST16_MAX, INT_FAST32_MIN, INT_FAST32_MAX, UINT_FAST32_MAX):
50154         (INT_FAST64_MIN, INT_FAST64_MAX, UINT_FAST64_MAX, INTPTR_MIN):
50155         (INTPTR_MAX, UINTPTR_MAX, INTMAX_MIN, INTMAX_MAX, UINTMAX_MAX):
50156         (PTRDIFF_MIN, PTRDIFF_MAX, SIG_ATOMIC_MIN, SIG_ATOMIC_MAX):
50157         (SIZE_MAX, WCHAR_MIN, WCHAR_MAX, WINT_MIN, WINT_MAX):
50158         undef any previous version and define our own version, for
50159         simplicity and consistency with the new macros for types.
50160         (PTRDIFF_MIN, PTRDIFF_MAX, SIG_ATOMIC_MIN, SIG_ATOMIC_MAX):
50161         (SIZE_MAX, WCHAR_MIN, WCHAR_MAX, WINT_MIN, WINT_MAX):
50162         Simplify definitions by using _STDINT_MIN and _STDINT_MAX
50163         where appropriate.  Rely on new symbols @PTRDIFF_T_SUFFIX@,
50164         @SIG_ATOMIC_T_SUFFIX@, @SIZE_T_SUFFIX@, @WCHAR_T_SUFFIX@,
50165         @WINT_T_SUFFIX@ to keep things simple here.
50166         (UINT8_C, UINT16_C, UINT32_C, INT64_C, UINT64_C):
50167         Simplify by assuming typical 8/16/32/64 host, since we're
50168         already doing that elsewhere anyway.
50169         Use (LONG_MAX >> 31 >> 31 == 1) rather than @HAVE_LONG_64BIT@,
50170         and assume long long int is 64 bits if available.  This
50171         speeds up 'configure'.
50172
50173 2006-07-01  Eric Blake  <ebb9@byu.net>
50174
50175         * m4/stdarg.m4 (gl_STDARG_H): Use proper AH_VERBATIM.
50176         Reported by Andreas Buening.
50177
50178 2006-07-01  Eric Blake  <ebb9@byu.net>
50179
50180         * m4/stdarg.m4 (gl_STDARG_H): Properly parenthesize gl_va_copy.
50181
50182 2006-06-30  Jim Hyslop  <jhyslop@dreampossible.ca>  (tiny change)
50183
50184         * lib/getaddrinfo.c: fixed typo
50185
50186 2006-06-29  Jim Meyering  <jim@meyering.net>
50187
50188         * modules/strftime (Maintainer): Add my name, since with the
50189         FPRINTFTIME changes strftime.c has forked from glibc.
50190
50191 2006-06-29  Eric Blake  <ebb9@byu.net>
50192
50193         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Use AC_C_INLINE.
50194
50195 2006-06-29  Eric Blake  <ebb9@byu.net>
50196
50197         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): New file.
50198
50199 2006-06-29  Eric Blake  <ebb9@byu.net>
50200
50201         * lib/stat_.h: New file.
50202
50203 2006-06-29  Eric Blake  <ebb9@byu.net>
50204
50205         * lib/stat_.h (rpl_mkdir): Declare inline, to avoid warnings about
50206         unused static function.
50207
50208 2006-06-29  Eric Blake  <ebb9@byu.net>
50209
50210         * doc/functions.texi (Function Portability): Document missing lstat
50211         on mingw.
50212
50213 2006-06-29  Eric Blake  <ebb9@byu.net>
50214
50215         * MODULES.html.sh: Add sys_stat.
50216         * modules/sys_stat: New module.
50217         * modules/mkstemp (Depends-on): Add sys_stat.
50218
50219 2006-06-29  Derek R. Price  <derek@ximbiot.com>
50220
50221         * m4/strftime.m4: Don't call AC_FUNC_STRFTIME.
50222
50223 2006-06-29  Derek R. Price  <derek@ximbiot.com>
50224
50225         * m4/c-bs-a.m4: Removed.
50226
50227 2006-06-29  Derek R. Price  <derek@ximbiot.com>
50228
50229         * lib/strftime.c: Assume strftime() exists.
50230
50231 2006-06-29  Derek Price  <derek@ximbiot.com>
50232
50233         * modules/c-bs-a: Removed - \a is C89.
50234         * MODULES.html.sh: Remove c-bs-a.
50235
50236 2006-06-29  Bruno Haible  <bruno@clisp.org>
50237
50238         * modules/wcwidth (License): Change to LGPL.
50239
50240 2006-06-28  Simon Josefsson  <jas@extundo.com>
50241
50242         * tests/test-getaddrinfo.c: Test getnameinfo too.  Call WSAStartup
50243         on _WIN32.
50244
50245         * modules/getaddrinfo (Depends-on): Add inet_ntop, needed by
50246         getnameinfo.
50247
50248 2006-06-28  Simon Josefsson  <jas@extundo.com>
50249
50250         * m4/getaddrinfo.m4: Look for getnameinfo prototypes too.
50251
50252 2006-06-28  Simon Josefsson  <jas@extundo.com>
50253
50254         * lib/getaddrinfo.c: Try to load ws2_32.dll on Windows, to find the
50255         functions there.  It will succeed on Windows XP, but on Windows
50256         2000 and (presumably) earlier, it will fail, and use the internal
50257         re-implementation.
50258         (use_win32_p): New function.
50259         (getaddrinfo): Use strtoul on servname, to support numeric ports.
50260         Support AI_NUMERICSERV to disable getservbyname.
50261         (getnameinfo): New function, only supports
50262         NI_NUMERICHOST|NI_NUMERICSERV for now.
50263
50264         * lib/getaddrinfo.h: Test and check for AI_* flags separately, MinGW
50265         only have some of them.  Add AI_NUMERICSERV.  Add prototype for
50266         getnameinfo.
50267
50268 2006-06-28  Eric Blake  <ebb9@byu.net>
50269
50270         * modules/wcwidth: New file.
50271         * modules/mbchar (Depends-on): Add wcwidth.
50272         * modules/mbswidth (Depends-on): Add wcwidth.
50273         * MODULES.html.sh: Add wcwidth.
50274
50275 2006-06-28  Eric Blake  <ebb9@byu.net>
50276
50277         * m4/mbswidth.m4 (gl_MBSDWIDTH): Move wcwidth from here...
50278         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): ...to this new file.
50279
50280 2006-06-28  Eric Blake  <ebb9@byu.net>
50281
50282         * lib/xvasprintf.h: Fix comments.
50283
50284 2006-06-28  Eric Blake  <ebb9@byu.net>
50285
50286         * lib/mbchar.h (wcwidth): Include wcwidth.h.
50287         * lib/mbswidth.c (wcwidth): Move from here...
50288         * lib/wcwidth.h: ...to this new file.
50289
50290 2006-06-28  Derek R. Price  <derek@ximbiot.com>
50291
50292         * m4/savedir.m4: Remove AC_FUNC_CLOSEDIR_VOID requirement.
50293
50294         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Don't require AC_C_CONST, since
50295         it's obsolete.
50296         * m4/strftime.m4 (gl_FUNC_GNU_STRFTIME): Likewise.
50297
50298 2006-06-28  Derek R. Price  <derek@ximbiot.com>
50299
50300         * lib/savedir.c (CLOSEDIR): Remove.  All uses changed to closedir.
50301         Autoconf 2.60 says this stuff was obsolete.
50302
50303 2006-06-28  Bruno Haible  <bruno@clisp.org>
50304
50305         * modules/wcwidth (Files): Add m4/wchar_t.m4.
50306
50307 2006-06-28  Bruno Haible  <bruno@clisp.org>
50308
50309         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Also require AC_C_INLINE and
50310         gt_TYPE_WCHAR_T.
50311
50312 2006-06-28  Bruno Haible  <bruno@clisp.org>
50313
50314         * lib/wcwidth.h: Declare nothing if !HAVE_WCHAR_T. Provide a fallback
50315         declaration for wcwidth.
50316         * lib/mbswidth.c: Restore the includes of <wchar.h> and <wctypes.h>.
50317
50318 2006-06-28  Bruno Haible  <bruno@clisp.org>
50319
50320         * lib/mkdtemp.c [MINGW]: Include <io.h>.
50321         (mkdir): Define using _mkdir.
50322
50323 2006-06-28  Bruno Haible  <bruno@clisp.org>
50324
50325         * lib/getaddrinfo.h: Fix POSIX URL.
50326         * lib/getaddrinfo.c (WIN32_NATIVE): New macro. Use it instead of
50327         _WIN32.
50328         (use_win32_p): Make static.
50329         (getaddrinfo): Reject service name if it is empty or does not consist
50330         solely of decimal digits, or if its value is > 65535.
50331         (getnameinfo): Remove useless casts.
50332
50333 2006-06-27  Simon Josefsson  <jas@extundo.com>
50334
50335         * modules/sys_select: New file, suggested by Bruno Haible, Paul
50336         Eggert and Martin Lambers.
50337
50338 2006-06-27  Simon Josefsson  <jas@extundo.com>
50339
50340         * m4/sys_select_h.m4: New file, suggested by Bruno Haible, Paul
50341         Eggert and Martin Lambers.
50342
50343 2006-06-27  Bruno Haible  <bruno@clisp.org>
50344
50345         * m4/stdint.m4 (gl_STDINT_BITSIZEOF): For nonexistent types, set the
50346         result to 0, not to empty.
50347         Reported by Martin Neitzel <neitzel@sco.gaertner.de>.
50348
50349 2006-06-27  Bruno Haible  <bruno@clisp.org>
50350
50351         * lib/stdint_.h (intmax_t, uintmax_t): Undefine before typedef.
50352
50353 2006-06-26  Simon Josefsson  <jas@extundo.com>
50354
50355         * m4/inet_ntop.m4: Don't check for sys/types.h, we assume it is
50356         present.
50357
50358 2006-06-26  Paul Eggert  <eggert@cs.ucla.edu>
50359
50360         * lib/base64.c (B64): Use _ as the formal parameter, not x, to avoid
50361         bug in IBM C V6 for AIX.  Problem reported by Larry Jones in
50362         <http://lists.gnu.org/archive/html/bug-gnulib/2006-06/msg00181.html>.
50363
50364 2006-06-26  Mark D. Baushke  <mdb@gnu.org>
50365
50366         * m4/stdint.m4 (gl_STDINT_H): Treat BSD/OS like OpenBSD.
50367
50368 2006-06-26  Bruno Haible  <bruno@clisp.org>
50369
50370         * modules/stdint (Makefile.am): Also substitute HAVE_WCHAR_H.
50371
50372 2006-06-26  Bruno Haible  <bruno@clisp.org>
50373
50374         * m4/stdint.m4 (gl_STDINT_H): Test also for <wchar.h>.
50375
50376 2006-06-26  Bruno Haible  <bruno@clisp.org>
50377
50378         * m4/stdint.m4 (gl_STDINT_H): Don't include <stdint.h> when using the
50379         SGI C compiler in pre-C99 mode.
50380         Suggested by Mark D. Baushke and Larry Jones.
50381
50382 2006-06-26  Bruno Haible  <bruno@clisp.org>
50383
50384         * lib/stdint_.h: Include <wchar.h> if necessary for WCHAR_MIN or
50385         WCHAR_MAX.
50386         Reported by Mark D. Baushke and Larry Jones.
50387
50388 2006-06-26  Bruno Haible  <bruno@clisp.org>
50389
50390         * lib/stdint_.h: Don't include <stdint.h> when using the SGI C compiler
50391         in pre-C99 mode.
50392         Suggested by Mark D. Baushke and Larry Jones.
50393
50394 2006-06-23  Simon Josefsson  <jas@extundo.com>
50395             Bruno Haible  <bruno@clisp.org>
50396
50397         * gnulib-tool (func_emit_lib_Makefile_am): Define MOSTLYCLEANDIRS.
50398         Emit mostlyclean-local rule.
50399         (func_emit_tests_Makefile_am): Likewise.
50400         * modules/sys_socket (Makefile.am): Use MOSTLYCLEANDIRS.
50401
50402 2006-06-23  Mark D. Baushke  <mdb@gnu.org>
50403
50404         * lib/stdint_.h: Treat BSD/OS like OpenBSD.
50405
50406 2006-06-23  Bruno Haible  <bruno@clisp.org>
50407
50408         * tests/test-stdint.c: Update to match ISO C 99 Technical
50409         Corrigendum 1.
50410
50411 2006-06-23  Bruno Haible  <bruno@clisp.org>
50412
50413         * m4/stdint.m4 (gl_STDINT_H): Treat IRIX like OpenBSD.
50414
50415 2006-06-23  Bruno Haible  <bruno@clisp.org>
50416
50417         * lib/stdint_.h: Treat IRIX like OpenBSD.
50418
50419 2006-06-23  Bruno Haible  <bruno@clisp.org>
50420
50421         * lib/stdint_.h (UINT8_C, UINT16_C, UINT32_C): Define according to
50422         ISO C 99 Technical Corrigendum 1.
50423
50424 2006-06-22  Simon Josefsson  <jas@extundo.com>
50425
50426         * m4/sockpfaf.m4: Include winsock2.h too, to make it work under
50427         MinGW.
50428
50429 2006-06-22  Paul Eggert  <eggert@cs.ucla.edu>
50430
50431         * lib/glob.c (collated_compare): Remove 'const' uses that weren't
50432         needed.  Some compiler complained about some of them.  Problem reported
50433         by Larry Jones in
50434         <http://lists.gnu.org/archive/html/bug-gnulib/2006-06/msg00172.html>.
50435
50436 2006-06-21  Simon Josefsson  <jas@extundo.com>
50437
50438         * tests/test-getaddrinfo.c: New file.
50439
50440         * modules/getaddrinfo-tests: New file.
50441
50442         * MODULES.html.sh: Add inet_pton.
50443
50444         * modules/inet_pton: New file.
50445
50446 2006-06-21  Simon Josefsson  <jas@extundo.com>
50447
50448         * m4/getaddrinfo.m4: Don't define WINVER.  Look for gethostbyname in
50449         -lws2_32 too.  Fixes getaddrinfo on Windows 2000, with the price
50450         of using the (limited) gnulib implementation on Windows XP.
50451
50452         * m4/inet_pton.m4: New file.
50453
50454 2006-06-21  Simon Josefsson  <jas@extundo.com>
50455
50456         * lib/getaddrinfo.c (getaddrinfo): Set ai_family in the return
50457         variable.
50458
50459         * lib/socket_.h: Don't define WINVER.
50460
50461         * lib/inet_pton.h, inet_pton.c: New file, taken from glibc but
50462         slightly modified to work in gnulib.
50463
50464 2006-06-21  Simon Josefsson  <jas@extundo.com>
50465
50466         * doc/gnulib.texi (Windows sockets): Add.
50467
50468 2006-06-21  Paul Eggert  <eggert@cs.ucla.edu>
50469
50470         * lib/read-file.c (fread_file): Start with buffer allocation of
50471         0 bytes rather than 1 byte; this simplifies the code.
50472         Don't invoke feof; it's not needed.  Refactor to avoid duplicate
50473         code to free buffer and save/restore errno.
50474         (internal_read_file): Remove unused local.
50475
50476 2006-06-20  Paul Eggert  <eggert@cs.ucla.edu>
50477
50478         * lib/openat.c (openat): Use ?:, not if, to work around GCC bug 4210
50479         <http://gcc.gnu.org/bugzilla/show_bug.cgi?id=4210>.
50480         Problem reported by Denis Excoffier in
50481         <http://lists.gnu.org/archive/html/bug-tar/2006-06/msg00023.html>.
50482
50483 2006-06-19  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
50484
50485         * modules/sys_socket, modules/socklen: Include sys/types since
50486         FreeBSD 4.x's sys/socket.h needs it.
50487
50488 2006-06-19  Simon Josefsson  <jas@extundo.com>
50489
50490         * lib/inet_ntop.c: Always build inet_ntop4, since inet_ntop6 calls it.
50491
50492 2006-06-19  Paul Eggert  <eggert@cs.ucla.edu>
50493
50494         * lib/alloca_.h (alloca) [defined alloca]: Don't define or declare.
50495
50496 2006-06-19  Bruno Haible  <bruno@clisp.org>
50497
50498         * m4/stdint.m4 (gl_STDINT_H): Enclose the values of FULL_PATH_STDINT_H
50499         and FULL_PATH_INTTYPES_H in angle brackets.
50500         Reported by Mark D. Baushke <mdb@gnu.org>.
50501
50502 2006-06-17  Eric Blake  <ebb9@byu.net>
50503
50504         * m4/rmdir-errno.m4 (gl_FUNC_FMDIR_NOTEMPTY): Assume errno.h declares
50505         errno.
50506
50507 2006-06-17  Bruno Haible  <bruno@clisp.org>
50508
50509         * m4/stdint.m4 (gl_STDINT_H) [FreeBSD >= 5]: Don't include
50510         <sys/inttypes.h>.
50511
50512 2006-06-17  Bruno Haible  <bruno@clisp.org>
50513
50514         * m4/setenv.m4 (gl_PREREQ_SETENV, gl_PREREQ_UNSETENV): Remove test
50515         whether errno is declared. Assume <errno.h> declares errno.
50516
50517 2006-06-17  Bruno Haible  <bruno@clisp.org>
50518
50519         * lib/stdint_.h [FreeBSD >= 5]: Don't include <sys/inttypes.h>.
50520
50521 2006-06-17  Bruno Haible  <bruno@clisp.org>
50522
50523         * lib/stdint_.h (_UINT8_T, _UINT32_T, _UINT64_T): New macros. Fixes a
50524         problem on Solaris 2.5.1.
50525
50526 2006-06-16  Eric Blake  <ebb9@byu.net>
50527
50528         * lib/unsetenv.c [!defined errno]: Assume errno.h declares errno.
50529         * lib/unicodeio.c [!defined errno]: Likewise.
50530         * lib/strtol.c [!defined errno]: Likewise.
50531         * lib/strtod.c [!defined errno]: Likewise.
50532
50533 2006-06-15  Eric Blake  <ebb9@byu.net>
50534
50535         * m4/ssize_t.m4 (gt_TYPE_SSIZE_T): Work in spite of -Werror.
50536
50537 2006-06-15  Eric Blake  <ebb9@byu.net>
50538
50539         * config/srclist.txt (ssize_t.m4): Lose sync.
50540
50541 2006-06-15  Bruno Haible  <bruno@clisp.org>
50542
50543         * modules/stdint (Files): Include m4/full-header-path.m4,
50544         m4/size_max.m4, m4/wchar_t.m4.
50545         (Makefile.am): Many more substitutions.
50546         * modules/stdint-tests: New file.
50547         * tests/test-stdint.c: New file.
50548
50549 2006-06-15  Bruno Haible  <bruno@clisp.org>
50550
50551         * m4/stdint.m4 (gl_STDINT_H): Rewritten to produce a complete stdint.h.
50552         (gl_HEADER_STDINT_H, gl_HEADER_INTTYPES_H, gl_STDINT_CHECK_TYPES,
50553         gl_STDINT_MISSING_BOUND, gl_STDINT_MISSING_BOUNDS,
50554         gl_STDINT_MISSING_BOUNDS2, gl_STDINT_BITSIZEOF, gl_CHECK_TYPES_SIGNED,
50555         gl_CHECK_TYPE_SAME): New macros.
50556
50557 2006-06-15  Bruno Haible  <bruno@clisp.org>
50558
50559         * m4/size_max.m4 (gl_SIZE_MAX): Make it work also when cross-compiling.
50560
50561 2006-06-15  Bruno Haible  <bruno@clisp.org>
50562
50563         * lib/stdint_.h: Rewritten to be fully auto-configured.
50564         Fixes bug on HP-UX/IA64.
50565
50566 2006-06-11  Paul Eggert  <eggert@cs.ucla.edu>
50567
50568         * lib/getdate.y (__attribute__): Don't define if already defined.
50569         Problem reported by Larry Jones.
50570         * lib/utimens.c (__attribute__): Likewise.
50571
50572 2006-06-04  Paul Eggert  <eggert@cs.ucla.edu>
50573
50574         * lib/regexec.c (group_nodes_into_DFAstates): Fix a buffer overrun
50575         reported by Andreas Schwab.
50576
50577 2006-05-30  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
50578             Bruno Haible  <bruno@clisp.org>
50579
50580         * m4/strndup.m4 (gl_FUNC_STRNDUP): Replace the AC_REPLACE_FUNCS with a
50581         check for the declaration of strnlen and a run test that exposes the
50582         AIX 5.1 strnlen bug.  In the failure case, #define strndup to
50583         rpl_strndup.
50584
50585 2006-05-30  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
50586             Bruno Haible  <bruno@clisp.org>
50587
50588         * lib/strndup.c (strndup) [!_LIBC]: Don't undefine macro definition.
50589
50590 2006-05-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
50591
50592         * m4/c-strtod.m4 (gl_C99_STRTOLD): Use a link test rather than a
50593         compile test, for Tru64 4.0D.
50594
50595 2006-05-28  Karl Berry  <karl@gnu.org>
50596
50597         * config/srclist.txt (printf-args.c): lose sync.
50598
50599 2006-05-26  Martin Lambers  <marlam@marlam.de>
50600
50601         * lib/getpass.c: Updates the test for the native W32 API, and adds
50602         missing includes, thus fixing compilation warnings.
50603
50604 2006-05-25  Sergey Poznyakoff  <gray@gnu.org.ua>
50605
50606         * lib/exclude.c (exclude_fnmatch): New function.
50607         (excluded_file_name): Call exclude_fnmatch.
50608         * lib/exclude.h (excluded_file_name): New prototype
50609
50610 2006-05-25  Paul Eggert  <eggert@cs.ucla.edu>
50611
50612         * lib/tempname.c (small_open, large_open): New macros.
50613         (__open, __open64) [!_LIBC]: Remove.
50614         (__gen_tempname): Use small_open and large_open instead of __open
50615         and __open64.  This fixes a portability bug on HP-UX 11.11i
50616         reported by Simon Wing-Tang in
50617         <http://lists.gnu.org/archive/html/bug-coreutils/2006-05/msg00114.html>.
50618
50619 2006-05-24  Bruno Haible  <bruno@clisp.org>
50620
50621         * lib/printf-args.c (printf_fetchargs): Turn NULL pointers for
50622         TYPE_STRING and TYPE_WIDE_STRING into a non-NULL replacement.
50623         Reported by Thorsten Maerz <torte@netztorte.de> via
50624         Aaron Stone <aaron@serendipity.cx>.
50625
50626 2006-05-19  Paul Eggert  <eggert@cs.ucla.edu>
50627
50628         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Rename cache variables to use
50629         gl_ rather than jm_.  Link, don't run, so that cross-compiles are
50630         allowed.  Check that resulting type is arithmetic.  Move AC_REQUIRE
50631         and AC_CHECK_HEADERS_ONCE outside of AC_CACHE_CHECK, since they're
50632         not really conditional on the cache.
50633         (gl_PREREQ_NANOSLEEP): Check for sys/select.h.
50634
50635 2006-05-19  Paul Eggert  <eggert@cs.ucla.edu>
50636
50637         * lib/nanosleep.c [HAVE_SYS_SELECT_H]: Include <sys/select.h>.
50638         Use the usual Autoconf way to include <time.h> and/or sys/time.h.
50639         (my_usleep): Don't mishandle maximum value.
50640
50641 2006-05-19  Jim Meyering  <jim@meyering.net>
50642
50643         * lib/getugroups.c: Correct an outdated comment.  From Bruno Haible.
50644
50645 2006-05-17  Bruno Haible  <bruno@clisp.org>
50646
50647         Cygwin portability.
50648         * lib/classpath.c (PATH_SEPARATOR) [CYGWIN]: Define as ':'.
50649
50650 2006-05-17  Bruno Haible  <bruno@clisp.org>
50651
50652         * lib/stdint_.h: Fix recognition of Cygwin.
50653
50654 2006-05-15  Bruno Haible  <bruno@clisp.org>
50655
50656         * build-aux/config.rpath: Improve support for Sun C 5.9 on Linux, based
50657         on libtool patch by Ralf Wildenhues.
50658
50659 2006-05-14  Paul Eggert  <eggert@cs.ucla.edu>
50660
50661         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Fix overly-picky
50662         test for C99 conformance; (bool) 0.5 is an integer constant
50663         expression, but (bool) -0.5 is not.  Problem reported by Fedor
50664         Sergeev in <http://forum.sun.com/jive/thread.jspa?threadID=96202>.
50665
50666 2006-05-11  Simon Josefsson  <jas@extundo.com>
50667
50668         * m4/xvasprintf.m4: Fix obvious typo.
50669
50670 2006-05-11  Jim Meyering  <jim@meyering.net>
50671
50672         * lib/sha1.c (sha1_buffer): Correct comment: s/MD5/SHA1/.  From
50673         James Lemley.
50674
50675 2006-05-10  Simon Josefsson  <jas@extundo.com>
50676
50677         * lib/md4.c: Typo fix, update copyright years.
50678         (K1, K2): Don't use L because it turn computations into 64-bit on
50679         64-bit platforms.
50680
50681 2006-05-10  Paul Eggert  <eggert@cs.ucla.edu>
50682
50683         * lib/crc.c (crc32_update): Remove unnecessary L suffix.
50684         * lib/md4.c (rol): Cast right-shift arg to uint32_t to prevent
50685         unwanted sign propagation, e.g., on hosts with 64-bit int.
50686         There still are some problems with reeelly weird theoretical hosts
50687         (e.g., 33-bit int) but it's not worth worrying about now.
50688         * lib/sha1.c (rol): Likewise.
50689         (K1, K2, K3, K4): Remove unnecessary L suffix.
50690
50691 2006-05-10  Bruno Haible  <bruno@clisp.org>
50692
50693         * lib/des.c: Cast to avoid warnings.
50694
50695 2006-05-09  Bruno Haible  <bruno@clisp.org>
50696
50697         * modules/xvasprintf (Files): Add m4/xvasprintf.m4.
50698         (Depends-on): Depend also on xsize, stdarg.
50699         (configure.ac): Add gl_XVASPRINTF.
50700
50701 2006-05-09  Bruno Haible  <bruno@clisp.org>
50702
50703         * m4/xvasprintf.m4: New file.
50704
50705 2006-05-09  Bruno Haible  <bruno@clisp.org>
50706
50707         * lib/xvasprintf.c: Include limits.h, string.h, xsize.h.
50708         (EOVERFLOW): Define fallback value.
50709         (xstrcat): New function.
50710         (xvasprintf): Recognize the special case of a string concatenation.
50711
50712 2006-05-08  Eric Blake  <ebb9@byu.net>
50713
50714         * gnulib-tool (func_version): Base copyright year on CVS date.
50715         (func_emit_copyright_notice): New function.
50716         (func_emit_lib_Makefile_am): Use it.
50717         (func_emit_tests_Makefile_am): Likewise.
50718         (func_import): Likewise.
50719
50720 2006-05-08  Bruno Haible  <bruno@clisp.org>
50721
50722         * modules/stdarg: New file.
50723         * MODULES.html.sh (func_all_modules): Add section for <stdarg.h>.
50724
50725 2006-05-08  Bruno Haible  <bruno@clisp.org>
50726
50727         * m4/stdarg.m4: New file, from GNU gettext.
50728
50729 2006-05-08  Bruno Haible  <bruno@clisp.org>
50730
50731         * config/srclist.txt (build-aux/config.rpath): different from latest
50732         release.
50733
50734 2006-05-08  Bruno Haible  <bruno@clisp.org>
50735
50736         * build-aux/config.rpath: Add support for Sun C 5.9 on Linux.
50737
50738 2006-05-05  Jim Meyering  <jim@meyering.net>
50739
50740         * m4/warning.m4: New file, derived from bison's file by the same name.
50741
50742 2006-05-03  Bruno Haible  <bruno@clisp.org>
50743
50744         * lib/stdint_.h: Shorter URL.
50745         * lib/inttypes.h: Likewise.
50746
50747 2006-05-02  Paul Eggert  <eggert@cs.ucla.edu>
50748
50749         * modules/inttypes (Maintainer): Change from Derek Price to 'all'.
50750
50751 2006-05-02  Paul Eggert  <eggert@cs.ucla.edu>
50752
50753         * lib/verify.h: Document the internals better.  Most of this change
50754         was written by Bruno Haible.
50755
50756 2006-05-02  Paul Eggert  <eggert@cs.ucla.edu>
50757
50758         * doc/verify.texi: New file, partly based on a proposal by
50759         Bruno Haible.
50760
50761 2006-05-02  Bruno Haible  <bruno@clisp.org>
50762
50763         * m4/full-header-path.m4 (gl_FULL_HEADER_PATH): Move the include_next
50764         test from here...
50765         * m4/_inttypes_h.m4 (gl_INTTYPES_H): ... to here.
50766
50767 2006-04-29  Bruno Haible  <bruno@clisp.org>
50768
50769         * lib/gcd.c: Use WORD_T and GCD instead of unsigned long and gcd.
50770         Suggested by Oskar Liljeblad <oskar@osk.mine.nu>.
50771
50772 2006-04-29  Bruno Haible  <bruno@clisp.org>
50773
50774         * gnulib-tool: Make --update option actually work.
50775
50776 2006-04-29  Bruno Haible  <bruno@clisp.org>
50777
50778         * doc/gcd.texi: New file.
50779         * doc/gnulib.texi: Include it.
50780
50781 2006-04-25  Paul Eggert  <eggert@cs.ucla.edu>
50782
50783         * lib/getdate.y (get_date): When adding relative date, start with the
50784         initial time, not with the result of the first mktime call.
50785
50786 2006-04-25  Bruno Haible  <bruno@clisp.org>
50787
50788         * gnulib-tool (func_import): Output the include directives in three
50789         blocks, sorted separately.
50790         Reported by Ben Pfaff <blp@cs.stanford.edu>.
50791
50792 2006-04-24  Paul Eggert  <eggert@cs.ucla.edu>
50793
50794         * m4/unlink-busy.m4 (gl_FUNC_UNLINK_BUSY_TEXT): Use prototype
50795         to define main with arguments, for C++.  Reported by Eric Blake.
50796         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC):
50797         Prefer 'int main ()' to 'int main (void)', for C++.
50798         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Likewise.
50799         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Specify a return type
50800         for 'main', for C99 and C++.
50801
50802 2006-04-24  Paul Eggert  <eggert@cs.ucla.edu>
50803
50804         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Use return, not exit.
50805         Don't assume that exit status -1 is valid.
50806         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
50807         * m4/putenv.m4 (gl_FUNC_PUTENV): Likewise.
50808         * m4/rmdir-errno.m4 (gl_FUNC_RMDIR_NOTEMPTY): Likewise.
50809         * m4/readdir.m4 (GL_FUNC_READDIR): Include <stdlib.h>.
50810         * m4/rename.m4 (vb_FUNC_RENAME): Likewise.
50811         * m4/unlink-busy.m4 (gl_FUNC_UNLINK_BUSY_TEXT): Use AC_RUN_IFELSE,
50812         not AC_TRY_RUN.  Use return, not exit.  Don't assume that
50813         functions can be used without declaring them, or that you can
50814         exit with status -1.
50815         * m4/utimes-null.m4 (gl_FUNC_UTIMES_NULL): Likewise.
50816
50817 2006-04-24  Karl Berry  <karl@gnu.org>
50818
50819         * config/srclist.txt (longdouble.m4): sync lost.
50820
50821 2006-04-24  Eric Blake  <ebb9@byu.net>
50822
50823         * m4/strerror_r.m4 (AC_FUNC_STRERROR_R): Avoid unused variable warning.
50824
50825 2006-04-24  Bruno Haible  <bruno@clisp.org>
50826
50827         * m4/poll.m4 (gl_FUNC_POLL): When cross-compiling, reject also the
50828         poll() implementation in AIX.
50829         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
50830
50831 2006-04-24  Bruno Haible  <bruno@clisp.org>
50832
50833         * m4/poll.m4 (gl_FUNC_POLL): Rearrange code, so that POLL_H gets
50834         assigned exactly once.
50835
50836 2006-04-23  Claudio Fontana  <claudio@gnu.org>
50837             Bruno Haible  <bruno@clisp.org>
50838
50839         * modules/gettext (Makefile.am): Add a -I flag for <libintl.h>.
50840         * gnulib-tool (func_emit_lib_Makefile_am): Emit empty default value
50841         for AM_CPPFLAGS.
50842
50843 2006-04-23  Bruno Haible  <bruno@clisp.org>
50844
50845         * modules/copy-file: Depend on unistd.
50846         * modules/execute: Likewise.
50847         * modules/fatal-signal: Likewise.
50848         * modules/findprog: Likewise.
50849         * modules/mkdtemp : Likewise.
50850         * modules/pipe: Likewise.
50851         * modules/wait-process: Likewise.
50852
50853 2006-04-23  Bruno Haible  <bruno@clisp.org>
50854
50855         * lib/fwriteerror.c (fwriteerror): Call fclose also when an error
50856         condition was already detected.
50857         Reported by Ben Pfaff <blp@cs.stanford.edu>.
50858
50859 2006-04-23  Bruno Haible  <bruno@clisp.org>
50860
50861         * lib/copy-file.c: Include <unistd.h> unconditionally.
50862         * lib/execute.c: Likewise.
50863         * lib/fatal-signal.c: Likewise.
50864         * lib/findprog.c: Likewise.
50865         * lib/mkdtemp.c: Likewise.
50866         * lib/pipe.h: Likewise.
50867         * lib/pipe.c: Likewise.
50868         * lib/wait-process.h: Likewise.
50869
50870 2006-04-23  Bruno Haible  <bruno@clisp.org>
50871
50872         * gnulib-tool (func_usage): Fix --import description. Document
50873         --update.
50874         (func_import): Create temporary file in a temporary directory, if
50875         --dry-run is specified. Silence errors from 'grep' when there are no
50876         m4 files in $m4dir.
50877         (func_create_testdir): Silence errors from 'grep' when there are no
50878         m4 files in $m4dir.
50879         Reported by Karl Berry <karl@freefriends.org>.
50880
50881 2006-04-20  Bruno Haible  <bruno@clisp.org>
50882
50883         * m4/argp.m4 (gl_ARGP): Don't call AC_CHECK_DECLS_ONCE with more than
50884         one argument, so that the code will be portable to Autoconf 2.60.
50885         * m4/getlogin_r.m4 (gl_PREREQ_GETLOGIN_R): Likewise.
50886         * m4/getpass.m4 (gl_PREREQ_GETPASS): Likewise.
50887         * m4/unlocked-io.m4 (gl_FUNC_GLIBC_UNLOCKED_IO): Likewise.
50888
50889 2006-04-19  Derek Price  <derek@ximbiot.com>
50890             Eric Blake  <ebb9@byu.net>
50891
50892         * m4/full-header-path.m4 (gl_FULL_HEADER_PATH): Use </full/path.h>
50893         rather than "/full/path.h".  Update comment to match.  Shorten &
50894         generalize m4_translit call via AS_TR_CPP.
50895
50896 2006-04-19  Derek Price  <derek@ximbiot.com>
50897             Eric Blake  <ebb9@byu.net>
50898
50899         * lib/inttypes.h: Correct grammar in comment.
50900
50901 2006-04-18  Derek Price  <derek@ximbiot.com>
50902             Paul Eggert  <eggert@cs.ucla.edu>
50903
50904         * modules/inttypes: New file.
50905         * modules/strtoimax, modules/strtoumax: Depend on inttypes.
50906
50907 2006-04-18  Derek Price  <derek@ximbiot.com>
50908             Paul Eggert  <eggert@cs.ucla.edu>
50909
50910         * m4/_inttypes_h.m4, m4/full-header-path.m4, m4/include_next.m4:
50911         New files.
50912
50913 2006-04-18  Derek Price  <derek@ximbiot.com>
50914             Paul Eggert  <eggert@cs.ucla.edu>
50915
50916         * lib/inttypes.h: New file.
50917         * lib/strtoimax.c: Assume <inttypes.h>.
50918
50919 2006-04-15  Paul Eggert  <eggert@cs.ucla.edu>
50920
50921         * lib/utimens.c (futimens): glibc futimesat messes up if /proc
50922         isn't mounted.  Problem reported by Kir Kolyshkin.
50923
50924 2006-04-13  Paul Eggert  <eggert@cs.ucla.edu>
50925
50926         * lib/regcomp.c (init_dfa): Don't use wchar_t or wctype_t if
50927         RE_ENABLE_I18N is not defined.  Problem reported by Mark D. Baushke via
50928         Derek R. Price.
50929         * lib/regex.h (RE_DUP_MAX): Update comment to match current
50930         implementation.
50931
50932 2006-04-12  Eric Blake  <ebb9@byu.net>
50933
50934         * modules/time_r (Makefile.am): Remove lib_SOURCES line, as this
50935         is now done automatically by the corresponding Autoconf macro.
50936
50937 2006-04-11  Paul Eggert  <eggert@cs.ucla.edu>
50938
50939         * m4/time_r.m4 (gl_TIME_R): Add AC_LIBSOURCES for time_r.c and
50940         time_r.h.
50941
50942 2006-04-09  Paul Eggert  <eggert@cs.ucla.edu>
50943
50944         Merge regex changes from libc, removing some of our
50945         POSIX-conformance changes that were rejected and redoing them in a
50946         less-intrusive way.
50947
50948         * lib/regcomp.c (re_compile_internal, init_dfa):
50949         Length arg is now size_t, not Idx.  All uses changed.
50950         (peek_token): Forward decl now says internal_function.
50951         (__re_error_msgid, __re_error_msgid_idx):
50952         Now static rather than extern with attribute_hidden.
50953         (re_compile_pattern) [!defined _LIBC]: Use K&R-style defn.
50954         For some reason libc prefers K&R style defns for external functions.
50955         (regerror) [!defined _LIBC]: Likewise.
50956         (re_set_syntax, re_compile_fastmap, regcomp, regfree, re_comp):
50957         (seek_collating_symbol_entry, lookup_collation_sequence_value):
50958         (build_range_exp, build_collating_symbol):
50959         Use K&R-style defn.
50960         (re_compile_fastmap): Use '\0' to memset, not 0.
50961         (utf8_sb_map): Make the calculations more obvious.
50962         (init_dfa, parse_bracket_exp, build_charclass_op):
50963         Call calloc and cast result, as glibc does.
50964         (init_word_char, fetch_token, peek_token, peek_token_bracket):
50965         (build_range_exp, build_collating_symbol):
50966         Now internal functions.
50967
50968         * lib/regex.c [!defined _LIBC]: Allow compiling with C++ compilers.
50969
50970         * lib/regex.h (__USE_GNU_REGEX): New macro.  Don't depend on
50971         _REGEX_SOURCE any more; depend on _GNU_SOURCE instead.
50972         Don't depend on VMS; depend on __VMS instead, for POSIX
50973         namespace cleanness.
50974         (regoff_t): Define to ssize_t, not long int.
50975
50976         Remove the REG_ macros named below.  Instead, make the old names
50977         (e.g., RE_BACKSLASH_ESCAPE_IN_LISTS) visible only if
50978         __USE_GNU_REGEX.
50979         (REG_BACKSLASH_ESCAPE_IN_LISTS):
50980         (REG_BK_PLUS_QM, REG_CHAR_CLASSES, REG_CONTEXT_INDEP_ANCHORS):
50981         (REG_CONTEXT_INDEP_OPS, REG_CONTEXT_INVALID_OPS):
50982         (REG_DOT_NEWLINE, REG_DOT_NOT_NULL, REG_HAT_LISTS_NOT_NEWLINE):
50983         (REG_INTERVALS, REG_LIMITED_OPS, REG_NEWLINE_ALT):
50984         (REG_NO_BK_BRACES, REG_NO_BK_PARENS, REG_NO_BK_REFS):
50985         (REG_NO_BK_VBAR, REG_NO_EMPTY_RANGES):
50986         (REG_UNMATCHED_RIGHT_PAREN_ORD, REG_NO_POSIX_BACKTRACKING):
50987         (REG_NO_GNU_OPS, REG_DEBUG, REG_INVALID_INTERVAL_ORD):
50988         (REG_IGNORE_CASE, REG_CARET_ANCHORS_HERE):
50989         (REG_CONTEXT_INVALID_DUP, REG_NO_SUB, REG_SYNTAX_EMACS):
50990         (REG_SYNTAX_AWK, REG_SYNTAX_GNU_AWK, REG_SYNTAX_POSIX_AWK):
50991         (REG_SYNTAX_GREP, REG_SYNTAX_EGREP, REG_SYNTAX_POSIX_EGREP):
50992         (REG_SYNTAX_ED, REG_SYNTAX_SED, _REG_SYNTAX_POSIX_COMMON):
50993         (REG_SYNTAX_POSIX_BASIC, REG_SYNTAX_POSIX_MINIMAL_BASIC):
50994         (REG_SYNTAX_POSIX_EXTENDED, REG_SYNTAX_POSIX_MINIMAL_EXTENDED):
50995         (REG_DUP_MAX, REG_UNALLOCATED, REG_REALLOCATE, REG_FIXED):
50996         (REG_NREGS):
50997         Remove.  All uses replaced by the old RE_* names.
50998         (RE_BACKSLASH_ESCAPE_IN_LISTS):
50999         (RE_BK_PLUS_QM, RE_CHAR_CLASSES, RE_CONTEXT_INDEP_ANCHORS):
51000         (RE_CONTEXT_INDEP_OPS, RE_CONTEXT_INVALID_OPS):
51001         (RE_DOT_NEWLINE, RE_DOT_NOT_NULL, RE_HAT_LISTS_NOT_NEWLINE):
51002         (RE_INTERVALS, RE_LIMITED_OPS, RE_NEWLINE_ALT):
51003         (RE_NO_BK_BRACES, RE_NO_BK_PARENS, RE_NO_BK_REFS):
51004         (RE_NO_BK_VBAR, RE_NO_EMPTY_RANGES):
51005         (RE_UNMATCHED_RIGHT_PAREN_ORD, RE_NO_POSIX_BACKTRACKING):
51006         (RE_NO_GNU_OPS, RE_DEBUG, RE_INVALID_INTERVAL_ORD):
51007         (RE_IGNORE_CASE, RE_CARET_ANCHORS_HERE):
51008         (RE_CONTEXT_INVALID_DUP, RE_NO_SUB):
51009         Don't bother having these macros be independent of each others'
51010         values, since they no longer exist in the POSIX name space.
51011
51012         Rename the following member names back to their old names,
51013         unless !__USE_GNU_REGEX.  All uses changed back.
51014         (buffer): Renamed from re_buffer.
51015         (allocated): Renamed from re_allocated.
51016         (used): Renamed from re_used.
51017         (syntax): Renamed from re_syntax.
51018         (fastmap): Renamed from re_fastmap.
51019         (translate): Renamed from re_translate.
51020         (can_be_null): Renamed from re_can_be_null.
51021         (regs_allocated): Renamed from re_regs_allocated.
51022         (fastmap_accurate): Renamed from re_fastmap_accurate.
51023         (no_sub): Renamed from re_no_sub.
51024         (not_bol): Renamed from re_not_bol.
51025         (not_eol): Renamed from re_not_eol.
51026         (newline_anchor): Renamed from re_newline_anchor.
51027         (num_regs): Renamed from rm_num_regs.
51028         (start): Renamed from rm_start.
51029         (end): Renamed from rm_end.
51030
51031         (free_state): Move up a bit.
51032
51033         * lib/regex_internal.h (inline) [__GNUC__ < 3 && defined _LIBC]:
51034         #define to be empty.
51035         (ASCII_CHARS): New macro, replacing all uses of 0x80 and/or SBC_MAX / 2
51036         when that is what is intended.
51037         (SBC_MAX): Define to UCHAR_MAX + 1, not 256.
51038         (__re_error_msgid, __re_error_msgid_idx): Remove decls; not needed.
51039         (MAX): New macro.
51040         (re_xmalloc, re_calloc, re_xrealloc, re_x2realloc): Remove.
51041         All uses changed back to re_malloc, etc.  It's now the caller's
51042         responsibility to check for overflow; all callers changed.
51043         (re_alloc_oversized, re_x2alloc_oversized, re_xnmalloc, re_xnrealloc):
51044         (re_x2nrealloc): Remove.
51045         (free_state): Remove decl.
51046
51047         * lib/regexc.c (regexec, re_match, re_search, re_match_2, re_search_2):
51048         (re_set_registers, re_exec):
51049         Use K&R-style defn.
51050
51051         2006-01-31  Roland McGrath  <roland@redhat.com>
51052
51053         * lib/regcomp.c (calc_eclosure_iter): Remove dead variables.
51054         Reported by Mike Frysinger <vapier@gentoo.org>.
51055
51056         2006-01-15  Andreas Jaeger  <aj@suse.de>
51057
51058         [BZ #1950]
51059         * lib/regex_internal.c (re_string_reconstruct): Adjust for
51060         build_wcs_upper_buffer change.
51061         (build_wcs_upper_buffer): Change return type.
51062
51063         2005-12-10  Ulrich Drepper  <drepper@redhat.com>
51064
51065         * lib/regex_internal.h: Include <stdint.h> if available.
51066
51067         2005-12-06  Paolo Bonzini  <bonzini@gnu.org>
51068
51069         * lib/regex_internal.h (SIZE_MAX): Provide a default definition.
51070
51071         2005-10-14  Ulrich Drepper  <drepper@redhat.com>
51072
51073         * lib/regcomp.c: Adjust for changed secondary hash function.
51074
51075         2005-09-30  Ulrich Drepper  <drepper@redhat.com>
51076
51077         * lib/regex.h: Pretty printing.
51078         Clean up namespace a bit.
51079
51080         2005-09-30  Jakub Jelinek  <jakub@redhat.com>
51081
51082         * lib/regexec.c (update_cur_sifted_state, check_arrival,
51083         check_arrival_add_next_nodes): Avoid using uninitialized variable.
51084
51085         2005-09-06  Paul Eggert  <eggert@cs.ucla.edu>
51086                     Ulrich Drepper  <drepper@redhat.com>
51087
51088         [BZ #1302]
51089         * lib/regex_internal.h (bitset_t): Renamed from bitset.  All uses
51090         changed.
51091         (bitset_word_t): Renamed from bitset_word.  All uses changed.
51092
51093         2005-09-22  Ulrich Drepper  <drepper@redhat.com>
51094
51095         [BZ #281]
51096         * lib/regex.h: Define RE_TRANSLATE_TYPE as unsigned char *.
51097         * lib/regcomp.c: Remove unnecessary uses of
51098         unsigned RE_TRANSLATE_TYPE.
51099         * lib/regex_internal.h: Likewise.
51100         * lib/regex_internal.c: Likewise.
51101         * lib/regexec.c: Likewise.
51102         Based on a patch by Stepan Kasal <kasal@ucw.cz>.
51103
51104         2005-09-07  Ulrich Drepper  <drepper@redhat.com>
51105
51106         * lib/regexec.c (find_recover_state): Remove unnecessary
51107         initialization.
51108         (transit_state_bkref): Make DFA a const pointer.
51109         (get_subexp): Likewise.
51110         (check_arrival): Likewise.
51111         (update_cur_sifted_state): Likewise.
51112         (re_search_internal): Likewise.
51113         (prune_impossible_nodes): Likewise.
51114         (acquire_init_state_context): Likewise.
51115         (proceed_next_node): Likewise.
51116         (set_regs): Likewise.
51117         (free_fail_stack_return): Likewise.
51118         (check_arrival_expand_ecl): Mark DFA parameter as const.
51119         (check_arrival_expand_ecl_sub): Likewise.
51120         (check_subexp_limits): Likewise.
51121         (sub_epsilon_src_nodes):  Likewise.
51122         (add_epsilon_src_nodes):  Likewise.
51123         (merge_state_array): Likewise.
51124         (update_regs): Likewise.
51125         (build_trtable): Likewise.
51126         (sift_states_backward): Mark MCTX parameter as const.
51127         (build_sifted_states): Likewise.
51128         (update_cur_sifted_state): Likewise.
51129         (sift_states_mkref): Likewise.
51130         (check_arrival_expand_ecl): Mark eclosure as const.
51131         (check_dst_limits_calc_pos_1): Likewise.
51132         * lib/regex_internal.h (re_match_context_t): Make dfa a const
51133         pointer.
51134
51135         2005-09-06  Ulrich Drepper  <drepper@redhat.com>
51136
51137         * lib/regexec.c (merge_state_with_log): Define dfa as const pointer.
51138         (transit_state_sb): Likewise.
51139         (transit_state_mb): Likewise.
51140         (sift_states_iter_mb): Likewise.
51141         (check_arrival_add_next_nodes): Likewise.
51142         (check_node_accept_bytes): Change first parameter to pointer-to-const.
51143         [_LIBC] (re_search_2_stub): Use mempcpy.
51144
51145         * lib/regex_internal.c (re_string_reconstruct): Avoid calling
51146         mbrtowc for very simple UTF-8 case.
51147
51148         * lib/regex_internal.c (re_acquire_state): Make DFA pointer arg
51149         a pointer-to-const.
51150         (re_acquire_state_context): Likewise.
51151         * lib/regex_internal.h: Adjust prototypes.
51152
51153         * lib/regex.c: Prevent using C++ compilers.
51154
51155         * lib/regex_internal.c (re_acquire_state): Minor code rearrangement.
51156         (re_acquire_state_context): Likewise.
51157
51158 2006-04-09  Paul Eggert  <eggert@cs.ucla.edu>
51159
51160         * modules/regex (Depends-on): Add ssize_t.
51161
51162 2006-04-09  Paul Eggert  <eggert@cs.ucla.edu>
51163
51164         * m4/regex.m4 (gl_REGEX): Check for new glibc interface to
51165         translation table.
51166
51167 2006-04-09  Paul Eggert  <eggert@cs.ucla.edu>
51168
51169         * doc/gnulib-tool.texi (Modified imports): pathname -> file name.
51170
51171 2006-03-29  Mark D. Baushke  <mdb@gnu.org>
51172             Bruno Haible  <bruno@clisp.org>
51173
51174         * lib/stdint_.h: On OpenBSD, don't redefine types already included in
51175         <sys/types.h> and <inttypes.h>.
51176
51177 2006-03-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
51178
51179         * m4/argz.m4 (gl_FUNC_ARGZ): If we define `error_t', also define
51180         `__error_t_defined', so argp.h will not typedef the former.
51181
51182 2006-03-25  Paul Eggert  <eggert@cs.ucla.edu>
51183
51184         * m4/regex.m4 (gl_REGEX): Don't insist on REG_SYNTAX_POSIX_EGREP,
51185         REG_SYNTAX_EMACS, and REG_IGNORE_CASE.  Settle for the traditional
51186         glibc names.  Even if glibc is changed to conform to POSIX, the
51187         traditional names will be available anyway, since regex depends on
51188         the extensions module.  Also, fix a longstanding typo in the
51189         implementation of Spencer ERE test #75 from grep 2.3.  Problems
51190         reported by Emanuele Giaquinta.  Also, change sense of cached
51191         variable, so that the message makes sense.
51192
51193 2006-03-24  Simon Josefsson  <jas@extundo.com>
51194
51195         * lib/base64.c: Fix problems reported by Eric Blake <ebb9@byu.net>,
51196         including some doc fixes.
51197         (base64_encode_alloc): Fix +1 bug on allocation failures.
51198
51199 2006-03-24  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
51200
51201         * lib/base64.c (base64_encode): Do not read past end of array with
51202         unsanitized input on systems with CHAR_BIT > 8.
51203
51204 2006-03-24  Eric Blake  <ebb9@byu.net>
51205
51206         * lib/time_r.c (copy_string_result): Remove, as it is no longer used.
51207
51208 2006-03-22  Karl Berry  <karl@gnu.org>
51209
51210         * config/srclist.txt (*setenv.[ch]): get from coreutils.
51211         * config/srclistvars.sh (COREUTILS): new var.
51212
51213 2006-03-17  Jim Meyering  <jim@meyering.net>
51214
51215         * m4/regex.m4 (gl_REGEX): Fix typo in last change:
51216         s/_REGEX_WIDE_OFFSETS/_REGEX_LARGE_OFFSETS/.
51217
51218 2006-03-16  Paul Eggert  <eggert@cs.ucla.edu>
51219
51220         * m4/regex.m4 (gl_REGEX): Don't check for off_t, since the code
51221         no longer needs it.  Instead, check that regoff_t is as least
51222         as wide as ptrdiff_t.
51223
51224         Don't define _REGEX_WIDE_OFFSETS unless using the included regex,
51225         so that our regex.h stays compatible with the installed regex.
51226         This is helpful for installers who configure --without-included-regex.
51227         Problem reported by Emanuele Giaquinta.
51228
51229 2006-03-16  Paul Eggert  <eggert@cs.ucla.edu>
51230
51231         * lib/regex.h (regoff_t) [defined _REGEX_LARGE_OFFSETS]:
51232         Typedef to long int, not to off_, as POSIX will likely change
51233         in that direction.
51234
51235 2006-03-15  Eric Blake  <ebb9@byu.net>
51236
51237         * m4/dirfd.m4 (gl_FUNC_DIRFD): Use AC_REQUIRE for AC_HEADER_DIRENT.
51238
51239 2006-03-13  Sergey Poznyakoff  <gray@gnu.org.ua>
51240
51241         * lib/argp-help.c (validate_uparams): Fix typo
51242         * lib/argp-parse.c (argp_default_options): Consistently begin help
51243         messages with a lowercase letter.
51244
51245 2006-03-11  Paul Eggert  <eggert@cs.ucla.edu>
51246
51247         * lib/time_r.h (asctime_r, ctime_r): Remove.  These functions can
51248         overrun buffers and shouldn't be used (much as gets shouldn't be
51249         used).
51250         * lib/time_r.c (asctime_r, ctime_r): Likewise.
51251
51252 2006-03-08  Simon Josefsson  <jas@extundo.com>
51253
51254         * m4/gc-random.m4: Permit 'no' as variable values and fix warnings,
51255         suggested by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
51256
51257 2006-03-08  Simon Josefsson  <jas@extundo.com>
51258
51259         * m4/gc-random.m4: Call AC_CANONICAL_HOST and use $host_os instead of
51260         $target, suggested by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
51261
51262 2006-03-08  Simon Josefsson  <jas@extundo.com>
51263
51264         * lib/gc-gnulib.c (randomize): Don't open files called 'no', they
51265         signal that configure disabled the device.
51266
51267 2006-03-08  Simon Josefsson  <jas@extundo.com>
51268
51269         * build-aux/maint.mk: Fix refresh-po, to handle no translated
51270         languages.
51271
51272 2006-03-07  Simon Josefsson  <jas@extundo.com>
51273
51274         * modules/getopt (Depends-on): Add unistd.
51275
51276         * modules/unistd: New file.
51277
51278 2006-03-07  Simon Josefsson  <jas@extundo.com>
51279
51280         * modules/gc-random: New file.
51281
51282 2006-03-07  Simon Josefsson  <jas@extundo.com>
51283
51284         * m4/unistd_h.m4: New file.
51285
51286 2006-03-07  Simon Josefsson  <jas@extundo.com>
51287
51288         * m4/readline.m4 (gl_FUNC_READLINE): Rewrite the cached part of the
51289         test to be side-effect free by storing the result in the cache
51290         variable gl_cv_lib_readline, and moving the assignment of
51291         LIBREADLINE and LTLIBREADLINE outside the COMMANDS-TO-SET-IT.
51292         From Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
51293
51294 2006-03-07  Simon Josefsson  <jas@extundo.com>
51295
51296         * m4/gc-random.m4: New file, mostly from gc.m4.  Warn instead of
51297         error on missing devices (the functions will return an error).
51298
51299         * m4/gc.m4: Move random stuff to gc-random.m4
51300
51301 2006-03-07  Simon Josefsson  <jas@extundo.com>
51302
51303         * lib/unistd_.h: New file.
51304
51305 2006-03-07  Simon Josefsson  <jas@extundo.com>
51306
51307         * lib/gc-libgcrypt.c, gc-gnulib.c: Use GC_USE_RANDOM.
51308
51309 2006-03-07  Paul Eggert  <eggert@cs.ucla.edu>
51310
51311         * m4/unistd_h.m4 (gl_HEADER_UNISTD): Rename, to match modules file.
51312         Problem reported by Juan Manuel Guerrero.
51313
51314 2006-03-07  Paul Eggert  <eggert@cs.ucla.edu>
51315
51316         * lib/c-stack.c: Include unistd.h unconditionally, since we now assume
51317         the unistd module.
51318         * lib/getlogin_r.c: Likewise.
51319         * lib/getlogin_r.h: Likewise.
51320         * lib/glob.c: Likewise.
51321         * lib/pagealign_alloc.c: Likewise.
51322         * lib/unistd_.h: Remove; no longer needed.
51323
51324 2006-03-07  Paul Eggert  <eggert@cs.ucla.edu>
51325
51326         * MODULES.html.sh (Support for systems lacking POSIX:2001):
51327         Add unistd.
51328         * modules/c-stack (Depends-on): Add unistd.
51329         * modules/getlogin_r: Likewise.
51330         * modules/glob: Likewise.
51331         * modules/pagealign_alloc: Likewise.
51332         * modules/unistd (Files): Remove lib/unistd_.h.
51333         (EXTRA_DIST): Remove.
51334         (unistd.h): Create using 'echo' rather than 'cp', so that we don't
51335         need unistd_.h.
51336         (MOSTLYCLEANFILES): Remove unistd.h-t.
51337
51338 2006-03-03  Simon Josefsson  <jas@extundo.com>
51339
51340         * build-aux/maint.mk: Add several syntax checks from CoreUtils.
51341
51342 2006-03-03  Simon Josefsson  <jas@extundo.com>
51343
51344         * build-aux/maint.mk: Add refresh-po rule, based on ideas from
51345         libidn and bison.
51346
51347 2006-03-03  Simon Josefsson  <jas@extundo.com>
51348
51349         * build-aux/maint.mk: Add indent target.
51350
51351 2006-03-03  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de> (tiny change)
51352
51353         * m4/poll.m4 (gl_FUNC_POLL): If we deem poll(2) unacceptable, use
51354         our replacement poll.h in any case, to avoid a differing
51355         declaration from a system header.  Seen on AIX.
51356
51357 2006-03-01  Simon Josefsson  <jas@extundo.com>
51358
51359         * lib/readline.c: Fix typo, tiny patch from Stepan Kasal
51360         <kasal@ucw.cz>.
51361
51362 2006-03-01  Paul Eggert  <eggert@cs.ucla.edu>
51363
51364         * modules/gettime (Depends-on): Add extensions module.
51365         * modules/nanosleep (Depends-on): Likewise.
51366         * modules/settime (Depends-on): Likewise.
51367
51368 2006-03-01  Paul Eggert  <eggert@cs.ucla.edu>
51369
51370         * m4/clock_time.m4 (gl_CLOCK_TIME): Require gl_USE_SYSTEM_EXTENSIONS,
51371         not merely AC_GNU_SOURCE, for the benefit of Solaris 10 when compiled
51372         pedantically.
51373         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
51374         * m4/timespec.m4 (gl_TIMESPEC): Likewise.
51375
51376         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Use "=" with "test",
51377         not "==".  Reported by Ralf Wildenhues.
51378
51379 2006-03-01  Karl Berry  <karl@gnu.org>
51380
51381         * doc/Copyright/request-*: new files, synced from gnuorg.
51382
51383 2006-03-01  Karl Berry  <karl@gnu.org>
51384
51385         * config/srclist.txt (Copyright/*): new entries.
51386
51387 2006-02-28  Simon Josefsson  <jas@extundo.com>
51388
51389         * lib/getopt.c: Protect #include of unistd.h, for MSVS.
51390
51391 2006-02-27  Simon Josefsson  <jas@extundo.com>
51392
51393         * lib/base64.h: Indent #define's.  From Jim Meyering
51394         <jim@meyering.net>.
51395
51396 2006-02-27  Jim Meyering  <jim@meyering.net>
51397
51398         Revert the change of 2006-02-24, so these files can continue
51399         to be sync'd from gettext.
51400         * lib/mkdtemp.c, setenv.c, unsetenv.c: *Un*-normalize inclusion
51401         of `config.h'.
51402
51403 2006-02-26  Paul Eggert  <eggert@cs.ucla.edu>
51404
51405         * modules/intprops: New file.
51406         * MODULES.html.sh (Numeric conversion functions <stdlib.h>):
51407         Add intprops.
51408         * modules/getloadavg (Files): Remove lib/intprops.h.
51409         (Depends-on): Add intprops.
51410         * modules/human: Likewise.
51411         * modules/inttostr: Likewise.
51412         * modules/openat: Likewise.
51413         * modules/sig2str: Likewise.
51414         * modules/userspec: Likewise.
51415         * modules/utimecmp: Likewise.
51416         * modules/xnanosleep: Likewise.
51417         * modules/xstrtol: Likewise.
51418
51419 2006-02-24  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>  (tiny changes)
51420
51421         * modules/xstrtod: Omit xstrtod.h, xstrtod.c; they're in LIB_SOURCES.
51422         * modules/lock-tests (TESTS): Use $(EXEEXT).
51423         * modules/tls-tests: Likewise.
51424         * modules/argp-tests: Likewise.
51425         (check_PROGRAMS): New var, replacing...
51426         (noinst_PROGRAMS, test_argp_SOURCES): Remove.
51427
51428 2006-02-24  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
51429
51430         * lib/mkdtemp.c, lib/setenv.c, lib/unsetenv.c: Normalize inclusion of
51431         `config.h'.
51432
51433 2006-02-24  Paul Eggert  <eggert@cs.ucla.edu>
51434
51435         * lib/glob.c: Say "invalid" rather than "illegal" in comments.
51436
51437 2006-02-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
51438
51439         Sync from coreutils.
51440         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS): Require gl_FUNC_LCHMOD and
51441         gl_CHDIR_SAFER.
51442
51443 2006-02-22  Jim Meyering  <jim@meyering.net>
51444
51445         Sync from coreutils.
51446         * m4/chdir-safer.m4: New file.
51447
51448 2006-02-20  Paul Eggert  <eggert@cs.ucla.edu>
51449
51450         * lib/getcwd.c (AT_FDCWD): Work around a bug in Solaris 9 and 10, where
51451         AT_FDCWD exceeds INT_MAX.
51452         * lib/openat.h (AT_FDCWD): Likewise.
51453
51454 2006-02-17  Eric Blake  <address@hidden>
51455
51456         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Fix caching error.
51457
51458 2006-02-16  Simon Josefsson  <jas@extundo.com>
51459
51460         * modules/getaddrinfo (Depends-on): Add sys_socket.
51461
51462 2006-02-15  Simon Josefsson  <jas@extundo.com>
51463
51464         * build-aux/maint.mk: Add dsyntax-check rule.
51465
51466 2006-02-15  Eric Blake  <ebb9@byu.net>
51467
51468         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Don't attempt using
51469         winsock2.h or ws2tcpip.h when sys/socket.h is present. Fixes
51470         'present but cannot compile' warnings on cygwin.
51471         * m4/socklen.m4 (gl_TYPE_SOCKLEN_T): Use gl_HEADER_SYS_SOCKET.  Don't
51472         use ws2tcpip.h if sys/socket.h works.
51473         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Use gl_HEADER_SYS_SOCKET.
51474         (gl_GETADDRINFO): Don't use ws2tcpip.h when sys/socket.h is present.
51475
51476 2006-02-14  Simon Josefsson  <jas@extundo.com>
51477
51478         * modules/maintainer-makefile (Files): Rename.
51479
51480         * build-aux/GNUmakefile: Rename Makefile.maint to maint.mk
51481         and (the local) Makefile.cfg to maint-cfg.mk.
51482
51483         * build-aux/Makefile.maint, build-aux/maint.mk: Renamed the former
51484         to the latter.
51485
51486         * modules/maintainer-makefile: New module.
51487
51488         * build-aux/Makefile.maint: New file, from GNU CoreUtils, although
51489         severaly stripped to make it possible to build it up from scratch
51490         with reliable tests.
51491
51492         * build-aux/GNUmakefile: New file, from GNU CoreUtils with some
51493         fixes to permit overriding the default actions when configure and
51494         makefile are not available.
51495
51496 2006-02-14  Paul Eggert  <eggert@cs.ucla.edu>
51497
51498         Sync from coreutils.
51499         * modules/lstat (Depends-on): Don't depend on xalloc.
51500         (License): Change from GPL to LGPL, since this is now simply a
51501         replacement for a libc function.
51502
51503 2006-02-14  Jim Meyering  <jim@meyering.net>
51504
51505         Sync from coreutils.
51506
51507         Eliminate the unwelcome (albeit unlikely) possibility of xmalloc
51508         failure on deficient systems, and simplify gnulib lgpl dependencies.
51509         * lib/lstat.c (rpl_lstat): Rewrite to use stat() in place of the
51510         xmalloc/lstat combination.  Based on a patch from Bruno Haible.
51511
51512         * lib/xalloc-die.c: Remove unused definition of N_.
51513
51514 2006-02-14  Jim Meyering  <jim@meyering.net>
51515
51516         Sync from coreutils.
51517         * m4/ls-mntd-fs.m4 (AC_FUNC_GETMNTENT): Invoke
51518         AC_CHECK_FUNCS(getmntent) unconditionally so that tests of
51519         $ac_cv_func_getmntent (e.g., in gl_LIST_MOUNTED_FILE_SYSTEMS) need not
51520         double-quote uses of that variable, to accommodate the rare case in
51521         which getmntent is available in none of the libraries checked.  This
51522         happens at least on FreeBSD 5.0.
51523
51524 2006-02-13  Simon Josefsson  <jas@extundo.com>
51525
51526         * gnulib-tool (Usage): Fix --import, from
51527         karl@freefriends.org (Karl Berry).
51528
51529 2006-02-13  Sergey Poznyakoff  <gray@gnu.org.ua>
51530
51531         * lib/argp-fmtstream.c: Restore another bugfix lost on 2005-12-12
51532
51533 2006-02-07  Sergey Poznyakoff  <gray@gnu.org.ua>
51534
51535         * lib/argp-namefrob.h: Restore changes accidentally lost during the
51536         "autoupdate" on 2005-12-12.
51537
51538 2006-02-07  Paul Eggert  <eggert@cs.ucla.edu>
51539
51540         * modules/closeout (Depends-on): Remove atexit.
51541
51542 2006-02-07  Paul Eggert  <eggert@cs.ucla.edu>
51543
51544         * lib/closeout.c (close_stdout): Don't assume 'bool' converts nonzero
51545         ints to 0 or 1, as this isn't true for the stdbool.h substitute.
51546
51547 2006-02-05  Paul Eggert  <eggert@cs.ucla.edu>
51548
51549         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Don't #define
51550         __EXTENSIONS__ if this causes compilation to fail.  Problem
51551         reported by Nelson H. F. Beebe with Solaris 10 and Sun C 5.7
51552         c89 -D_XOPEN_SOURCE -D_XOPEN_SOURCE_EXTENDED.
51553
51554 2006-01-27  Paul Eggert  <eggert@cs.ucla.edu>
51555
51556         * lib/fnmatch.c (L_): Renamed from L, to work around a bug in
51557         Mac OS X 10.3.9 with GCC 3 reported by Claudio Fontana in
51558         <http://lists.gnu.org/archive/html/bug-gnulib/2006-01/msg00074.html>.
51559         All uses changed.
51560
51561 2006-01-26  Simon Josefsson  <jas@extundo.com>
51562
51563         * lib/socket_.h: Set WINVER to 0x0501, to make sure getaddrinfo
51564         prototype is visible on mingw32.
51565
51566         * lib/getaddrinfo.h: Define EAI_ADDRFAMILY and EAI_SYSTEM if not set,
51567         for mingw32.
51568
51569         * lib/gai_strerror.c, getaddrinfo.h: Protect netdb.h #include (for
51570         mingw32).
51571
51572 2006-01-26  Paul Eggert  <eggert@cs.ucla.edu>
51573
51574         * lib/fts.c (diropen): Open with O_NOCTTY | O_NONBLOCK too.  Don't
51575         attempt to open for write; this always fails, at least on POSIX
51576         hosts.  This reinstates the 2006-01-09 change, which was
51577         inadvertently removed.
51578
51579 2006-01-26  Bruno Haible  <bruno@clisp.org>
51580
51581         * gnulib-tool (func_import): Use "trap 'exit $?' instead of "trap :".
51582         Reported by Paul Eggert.
51583
51584 2006-01-26  Bruno Haible  <bruno@clisp.org>
51585             Paul Eggert  <eggert@cs.ucla.edu>
51586
51587         * lib/stdbool_.h (_Bool)
51588         [(! (defined __cplusplus || defined __BEOS__)
51589           && !defined __GNUC__
51590           && !(defined __HP_cc || defined __xlc__
51591                || (defined __SUNPRO_C && (__SUNPRO_C < 0x550 || __STDC__ == 1))
51592                || defined __sgi))]:
51593         #define to signed char in these cases too; this simplifies
51594         the code (so that we don't have to worry about HP-UX, AIX, SunPRO,
51595         etc., separately) and makes it more conservative.
51596
51597 2006-01-25  Simon Josefsson  <jas@extundo.com>
51598
51599         * m4/getaddrinfo.m4: Look for getaddrinfo inside ws2tcip.h and
51600         -lws2_32.  Protect sys/socket.h and netdb.h #include's.  Include
51601         ws2tcpip.h with WINVER=0x0501.  All for mingw32.
51602
51603 2006-01-25  Sergey Poznyakoff  <gray@gnu.org.ua>
51604
51605         * lib/argp-namefrob.h: Bugfix. Remove stray #
51606
51607 2006-01-25  Paul Eggert  <eggert@cs.ucla.edu>
51608
51609         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Check for xlc bug if __GCC__ too,
51610         so that we test the test.
51611         Check for yet another HP-UX cc bug involving *bool |= bool.
51612
51613 2006-01-25  Karl Berry  <karl@gnu.org>
51614
51615         * config/srclist.txt (vasnprintf.c): sync lost.
51616
51617 2006-01-25  Jim Meyering  <jim@meyering.net>
51618
51619         Sync from the stable (b5) branch of coreutils:
51620
51621         * lib/fts.c (fts_children): Don't let close() clobber errno from
51622         failed fchdir().
51623
51624         * lib/fts.c (fts_stat): When following a symlink-to-directory,
51625         don't necessarily interpret stat-fails+lstat-succeeds as indicating
51626         a dangling symlink.  That can also happen at least for ELOOP.
51627         The fix: return FTS_SLNONE only when the stat errno is ENOENT.
51628         FYI, this bug predates the inclusion of fts.c in coreutils.
51629
51630         * lib/fts.c (fts_open): Put new maxarglen declaration and uses
51631         in their own block, so pre-c99 compilers don't object.
51632
51633         Avoid the double-free (first in fts_read, second in fts_close) that
51634         would occur when an `active' directory is made inaccessible (e.g.,
51635         via chmod a-x) during a traversal.
51636         * lib/fts.c (fts_read): After a failed fchdir, update sp->fts_cur
51637         before returning.  Reproduce this failure by
51638         mkdir -p a/b; cd a; chmod a-x . b
51639         Reported by Stavros Passas.
51640
51641 2006-01-25  Jim Meyering  <jim@meyering.net>
51642
51643         * lib/fileblocks.c: Remove more useless parentheses.
51644         * lib/readutmp.h: Likewise.
51645
51646 2006-01-25  Bruno Haible  <bruno@clisp.org>
51647
51648         * lib/stdbool_.h (_Bool) [IRIX cc]: Define as 'signed char', to avoid
51649         warnings.
51650         Reported by Paul Eggert.
51651
51652 2006-01-25  Bruno Haible  <bruno@clisp.org>
51653
51654         * gnulib-tool (func_import): Use "trap :" instead of "trap -" to get
51655         rid of a trap command. For Solaris sh.
51656         Reported by Mark D. Baushke <mdb@gnu.org>.
51657
51658 2006-01-24  Simon Josefsson  <jas@extundo.com>
51659
51660         * lib/socket_.h (SHUT_WR, SHUT_RDWR): Don't hardcode, suggested by
51661         Bruno.
51662
51663 2006-01-24  Karl Berry  <karl@gnu.org>
51664
51665         * config/srclist.txt (argp-namefrob.h): sync lost.
51666
51667 2006-01-24  Jim Meyering  <jim@meyering.net>
51668
51669         * modules/openat (Files): Add lib/intprops.h.
51670         From Mark D. Baushke.
51671
51672 2006-01-24  Jim Meyering  <jim@meyering.net>
51673
51674         * m4/openat.m4 (gl_FUNC_OPENAT): Add AC_LIBSOURCES([intprops.h]).
51675         Reported by Mark D. Baushke.
51676
51677 2006-01-24  Jim Meyering  <jim@meyering.net>
51678
51679         * lib/socket_.h: Remove useless parentheses in uses of cpp `defined'.
51680
51681 2006-01-24  Bruno Haible  <bruno@clisp.org>
51682
51683         * modules/strnlen (Maintainer): Change from glibc to all.
51684
51685 2006-01-24  Bruno Haible  <bruno@clisp.org>
51686
51687         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Check for IBM and HP-UX bugs.
51688         Patch by Paul Eggert.
51689
51690 2006-01-24  Bruno Haible  <bruno@clisp.org>
51691
51692         * lib/stdbool_.h (_Bool) [__cplusplus]: Don't define if the compiler
51693         already has it.
51694         Report and patch by Albert Chin-A-Young  <china@thewrittenword.com> on
51695         2005-11-26.
51696
51697         * lib/stdbool_.h (_Bool) [HP-UX cc, AIX cc,xlc]: Define as
51698         'signed char' to avoid problems with the built-in _Bool type.
51699         Reported by Paul Eggert on 2005-11-26.
51700
51701 2006-01-24  Bruno Haible  <bruno@clisp.org>
51702
51703         * gnulib-tool (func_import): Avoid constructing complicated sed
51704         expressions inside backquote.
51705         Report and solution by Mark D. Baushke <mdb@gnu.org>.
51706
51707 2006-01-23  Ulrich Drepper  <drepper@redhat.com>
51708
51709         These changes imported from libc.
51710         * lib/getopt.c: Use __fxprintf instead of inline stream orientation
51711         test and two separate function calls.
51712         * lib/strndup.c (__strndup): Add libc_hidden_def.
51713
51714 2006-01-23  Simon Josefsson  <jas@extundo.com>
51715
51716         * modules/lock-tests: Use check_PROGRAMS instead of noinst_PROGRAMS.
51717         Remove the test_*_SOURCES variable: automake infers it by default.
51718         * modules/tls-tests: Likewise.
51719
51720 2006-01-23  Paul Eggert  <eggert@cs.ucla.edu>
51721
51722         Work around porting bugs reported by Dieter in
51723         <http://lists.gnu.org/archive/html/bug-bison/2006-01/msg00049.html>.
51724         * lib/getopt.c (_NOPROTO): Remove; no longer needed.
51725         Include <stdlib.h> and <unistd.h> in all environments; it's safe now.
51726         Include "getopt.h" first, to check interface.
51727         (getenv): Declare only if defined HAVE_DECL_GETENV &&
51728         !HAVE_DECL_GETENV.
51729         * lib/strndup.c [!_LIBC]: Include "strndup.h" to get prototype.
51730         (__strndup): Revert to K&R-style function dfns, the glibc style.
51731         * lib/strnlen.c: Don't claim it's taken from glibc; it's not.
51732         (strnlen, __strnlen): Remove #defines and #undefs; not needed.
51733         Include strnlen.h first, to get prototype properly.
51734         (strnlen): Renamed from __strnlen.
51735         Remove weak alias.
51736
51737 2006-01-23  Paul Eggert  <eggert@cs.ucla.edu>
51738
51739         * m4/getopt.m4 (gl_PREREQ_GETOPT): Check for getenv decl.
51740
51741 2006-01-23  Paul Eggert  <eggert@cs.ucla.edu>
51742
51743         * config/srclist.txt: Adjust to reflect glibc reorganization.
51744         This affects only comments.
51745
51746 2006-01-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>  (tiny change)
51747
51748          * gnulib-tool, build-aux/csharpcomp.sh.in: Do not pass `-q' to mktemp.
51749          Reported by Bruce Korb <bkorb@gnu.org>.
51750
51751 2006-01-22  Paul Eggert  <eggert@cs.ucla.edu>
51752
51753         * lib/quotearg.c (quotearg_buffer_restyled): Add "default: break;"
51754         to pacify gcc -Wswitch-default.
51755
51756 2006-01-22  Bruno Haible  <bruno@clisp.org>
51757
51758         * lib/vasnprintf.c (VASNPRINTF): In the computation of the size of the
51759         temporary buffer for sprintf, take into account the precision also
51760         for 'd', 'i', 'u', 'o', 'x', 'X'.
51761
51762 2006-01-21  Sergey Poznyakoff  <gray@gnu.org.ua>
51763
51764         * modules/argp-tests: New module
51765         * tests/test-argp.c: New file
51766         * tests/test-argp-2.sh: New file
51767
51768 2006-01-21  Sergey Poznyakoff  <gray@gnu.org.ua>
51769
51770         * lib/argp-help.c (usage_long_opt): Do not print DOC options.
51771         (__argp_base_name): Removed
51772         * lib/argp-namefrob.h (__argp_basename): Removed definition. Was a
51773         typo.
51774         (__argp_base_name): Provide macro definition or extern declaration
51775         depending on the configuration
51776
51777 2006-01-20  Simon Josefsson  <jas@extundo.com>
51778
51779         * modules/inet_ntop (Depends-on): Depend on sys_socket.
51780
51781 2006-01-20  Simon Josefsson  <jas@extundo.com>
51782
51783         * lib/inet_ntop.h: Unconditionally include sys/socket.h.
51784
51785 2006-01-20  Paul Eggert  <eggert@cs.ucla.edu>
51786
51787         * m4/lib-ignore.m4 (gl_IGNORE_UNUSED_LIBRARIES): Use -Wl,-z,ignore
51788         rather than -Xlinker -z -Xlinker ignore, as it's more portable.
51789         Suggested by Bruno Haible.
51790
51791 2006-01-20  Karl Berry  <karl@gnu.org>
51792
51793         * config/srclist.txt (argp-fmtstream.h, localcharset.c): comment out
51794         until changes propagate, I guess.
51795
51796 2006-01-19  Simon Josefsson  <jas@extundo.com>
51797
51798         * m4/socklen.m4: Look in ws2tcpip.h too, for mingw32.
51799
51800 2006-01-19  Simon Josefsson  <jas@extundo.com>
51801
51802         * lib/socket_.h: Map SHUT_RD, SHUT_WR, SHUT_RDWR correctly.
51803
51804 2006-01-19  Simon Josefsson  <jas@extundo.com>
51805
51806         * gnulib-tool: Set check_PROGRAMS.
51807
51808         * modules/arcfour-tests, modules/arctwo-tests, modules/crc-tests,
51809         modules/des-tests, modules/gc-arcfour-tests,
51810         modules/gc-arctwo-tests, modules/gc-des-tests,
51811         modules/gc-hmac-md5-tests, modules/gc-hmac-sha1-tests,
51812         modules/gc-md2-tests, modules/gc-md4-tests, modules/gc-md5-tests,
51813         modules/gc-pbkdf2-sha1-tests, modules/gc-rijndael-tests,
51814         modules/gc-sha1-tests, modules/gc-tests, modules/hmac-md5-tests,
51815         modules/hmac-sha1-tests, modules/md2-tests, modules/md4-tests,
51816         modules/md5-tests, modules/readline, modules/rijndael-tests: Use
51817         check_PROGRAMS instead of noinst_PROGRAMS to be able to remove
51818         test_*_SOURCES.
51819
51820 2006-01-18  Simon Josefsson  <jas@extundo.com>
51821
51822         * modules/socklen (Depends-on): Depend on sys_socket.
51823
51824 2006-01-18  Simon Josefsson  <jas@extundo.com>
51825
51826         * modules/arcfour-tests, modules/arctwo-tests, modules/crc-tests,
51827         modules/des-tests, modules/gc-arcfour-tests,
51828         modules/gc-arctwo-tests, modules/gc-des-tests,
51829         modules/gc-hmac-md5-tests, modules/gc-hmac-sha1-tests,
51830         modules/gc-md2-tests, modules/gc-md4-tests, modules/gc-md5-tests,
51831         modules/gc-pbkdf2-sha1-tests, modules/gc-rijndael-tests,
51832         modules/gc-sha1-tests, modules/gc-tests, modules/hmac-md5-tests,
51833         modules/hmac-sha1-tests, modules/md2-tests, modules/md4-tests,
51834         modules/md5-tests, modules/readline, modules/rijndael-tests: Add
51835         $(EXEEXT) to automake TESTS variable, for mingw32.
51836
51837 2006-01-17  Simon Josefsson  <jas@extundo.com>
51838
51839         * modules/socklen (Include): Need sys/socket.h.
51840
51841 2006-01-17  Bruno Haible  <bruno@clisp.org>
51842
51843         * modules/ssize_t (Include): Add <sys/types.h>.
51844
51845 2006-01-16  Paul Eggert  <eggert@cs.ucla.edu>
51846
51847         * m4/lib-ignore.m4 (gl_IGNORE_UNUSED_LIBRARIES): Don't use ldd, as
51848         it's not portable and it doesn't work with cross-compiles.
51849         Problem reported by Bruno Haible.  Fix missing-$ typo in
51850         'test "gl_cv_ignore_unused_libraries" ...' that prevented
51851         -zignore from being used with Sun's C compiler.
51852
51853 2006-01-12  Simon Josefsson  <jas@extundo.com>
51854
51855         * lib/base64.c: Fix warning, reported by Bruno Haible
51856         <bruno@clisp.org> and patch by Paul Eggert <eggert@CS.UCLA.EDU>.
51857
51858 2006-01-12  Bruno Haible  <bruno@clisp.org>
51859
51860         * modules/ldd: New file.
51861         * build-aux/ldd.sh.in: New file.
51862         * MODULES.html.sh (Support for building libraries and executables): Add
51863         ldd.
51864
51865 2006-01-12  Bruno Haible  <bruno@clisp.org>
51866
51867         * m4/ldd.m4: New file.
51868
51869 2006-01-12  Bruno Haible  <bruno@clisp.org>
51870
51871         * gnulib-tool (func_import, func_create_testdir): Don't go into an
51872         endless loop while replacing $auxdir with build-aux.
51873
51874 2006-01-11  Simon Josefsson  <jas@extundo.com>
51875
51876         * lib/stdint_.h (SIZE_MAX): Add missing (.
51877
51878 2006-01-11  Paul Eggert  <eggert@cs.ucla.edu>
51879
51880         Sync from coreutils.
51881         * lib/md5.c: Fix commentary typos.
51882         (alignof, UNALIGNED_P): No need for a GCC-specific version.
51883         * lib/md5.h (__attribute__): Remove; unused.
51884         * lib/sha1.c: Fix commentary to match md5 better.
51885         * lib/sha1.h (struct sha1_ctx): Use a word buffer, not a byte buffer,
51886         so that we don't need to worry about alignment.  All uses changed.
51887         This merges the 2005-10-28 md5 change into sha1.
51888
51889 2006-01-11  Jim Meyering  <jim@meyering.net>
51890
51891         Sync from coreutils.
51892         * lib/md5.c (OP): Fix spacing.
51893
51894 2006-01-11  Bruno Haible  <bruno@clisp.org>
51895
51896         Ensure automatic ordering between gl_LOCK and gl_ARGP.
51897         * m4/lock.m4 (gl_LOCK_BODY): Renamed from gl_LOCK.
51898         (gl_LOCK): New macro, requiring gl_LOCK_BODY.
51899
51900 2006-01-11  Bruno Haible  <bruno@clisp.org>
51901
51902         Ensure automatic ordering between gl_LOCK and gl_ARGP.
51903         * gnulib-tool (func_import, func_create_testdir): Put gl_LOCK into
51904         the "early" section as well.
51905
51906 2006-01-11  Bruno Haible  <bruno@clisp.org>
51907
51908         Avoid "ar: no archive members specified" error on MacOS X.
51909         * gnulib-tool (func_modules_add_dummy): New function.
51910         (func_import, func_create_testdir): Invoke it.
51911
51912 2006-01-11  Bruno Haible  <bruno@clisp.org>
51913
51914         * gnulib-tool (func_import, func_create_testdir): Replace build-aux
51915         with $auxdir in AC_CONFIG_FILES statements.
51916
51917 2006-01-11  Bruno Haible  <bruno@clisp.org>
51918
51919         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
51920         Initialize also noinst_HEADERS to empty.
51921
51922 2006-01-11  Bruno Haible  <bruno@clisp.org>
51923
51924         * gnulib-tool (AUTOMAKEPATH, AUTOCONF, ACLOCAL, AUTOMAKE): New
51925         variables.
51926         (func_create_megatestdir): Call aclocal, autoconf, automake here, not
51927         autoreconf.
51928
51929 2006-01-11  Bruno Haible  <bruno@clisp.org>
51930
51931         * gnulib-tool (AUTOCONF, ACLOCAL, AUTOMAKE, AUTORECONF): Make
51932         overridable by the user.
51933         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
51934
51935 2006-01-10  Simon Josefsson  <jas@extundo.com>
51936
51937         * modules/sys_socket: New file.
51938
51939 2006-01-10  Simon Josefsson  <jas@extundo.com>
51940
51941         * m4/sys_socket_h.m4: New file.
51942
51943 2006-01-10  Simon Josefsson  <jas@extundo.com>
51944
51945         * lib/socket_.h: New file.
51946
51947 2006-01-10  Paul Eggert  <eggert@cs.ucla.edu>
51948
51949         * modules/readutmp (Maintainer): Add myself.
51950
51951 2006-01-10  Paul Eggert  <eggert@cs.ucla.edu>
51952
51953         * m4/memcoll.m4 (gl_MEMCOLL): Don't require AC_FUNC_MEMCMP, undoing
51954         the 2002-12-31 change.  Problem and fix reported by Bruno Haible.
51955         People who are still concerned with buggy memcmp implementations
51956         can invoke gl_FUNC_MEMCMP themselves.
51957
51958 2006-01-10  Paul Eggert  <eggert@cs.ucla.edu>
51959
51960         * lib/regex_internal.h (BITSET_WORD_BITS):
51961         Work around a bug in 64-bit PGC (before version 6.1-2), where the
51962         preprocessor mishandles large unsigned values as if they were signed.
51963         Problem reported by Claudio Fontana in
51964         <http://lists.gnu.org/archive/html/bug-gnulib/2005-12/msg00061.html>.
51965
51966 2006-01-10  Jim Meyering  <jim@meyering.net>
51967
51968         Avoid the double-free (first in fts_read, second in fts_close) that
51969         would occur when an `active' directory is made inaccessible (e.g.,
51970         via chmod a-x) during a traversal.
51971         * lib/fts.c (fts_read): After a failed fchdir, update sp->fts_cur
51972         before returning.  Reproduce this failure by
51973         mkdir -p a/b; cd a; chmod a-x . b
51974         Reported by Stavros Passas.
51975
51976         Sync from coreutils.
51977         * lib/sha1.c: Tweak grammar in a comment.
51978
51979 2006-01-10  Jim Meyering  <jim@meyering.net>
51980
51981         * m4/fpending.m4: Also include <stdio.h>, for Dragonfly.
51982         Patch by Joerg Sonnenberger.
51983
51984 2006-01-10  Bruno Haible  <bruno@clisp.org>
51985
51986         * modules/readutmp: Depend on module free.
51987         * modules/strtok_r: Depend on module restrict.
51988
51989 2006-01-10  Bruno Haible  <bruno@clisp.org>
51990
51991         * modules/gettext (configure.ac): Add an invocation of
51992         AM_GNU_GETTEXT_VERSION. Needed since autoreconf is used by gnulib-tool.
51993
51994 2006-01-10  Bruno Haible  <bruno@clisp.org>
51995
51996         * m4/localcharset.m4 (gl_LOCALCHARSET): Also test for getc_unlocked.
51997         Reported by Werner Lemberg <wl@gnu.org>.
51998
51999 2006-01-10  Bruno Haible  <bruno@clisp.org>
52000
52001         * lib/localcharset.c: Update from GNU gettext.
52002
52003 2006-01-10  Bruno Haible  <bruno@clisp.org>
52004
52005         * lib/argp.h (__const): Remove macro. Use const instead.
52006         * lib/argp-fmtstream.h (__const): Likewise.
52007         * lib/glob_.h (__const): Remove macro.
52008         * lib/glob-libc.h: Use const instead of __const.
52009
52010 2006-01-10  Bruno Haible  <bruno@clisp.org>
52011
52012         * gnulib-tool (func_emit_tests_Makefile_am): Emit an empty SUBDIR
52013         variable.
52014         Needed to avoid an automake error regarding the 'gettext' module.
52015
52016 2006-01-09  Simon Josefsson  <jas@extundo.com>
52017
52018         * modules/inet_ntop (Depends-on): Add restrict.
52019
52020 2006-01-09  Simon Josefsson  <jas@extundo.com>
52021
52022         * modules/gc-rijndael-tests (License): Put under LGPL.
52023
52024         * modules/gc-des-tests (License): Likewise.
52025
52026         * modules/gc-arcfour-tests (License): Likewise.
52027
52028         * modules/gc-arctwo-tests (License): Likewise.
52029
52030         * modules/gc-pbkdf2-sha1-tests (License): Likewise.
52031
52032         * modules/gc-hmac-sha1-tests (Files): Likewise.
52033
52034         * modules/gc-hmac-md5-tests (License): Likewise.
52035
52036         * modules/gc-sha1-tests (License): Likewise.
52037
52038         * modules/gc-md5-tests (License): Likewise.
52039
52040         * modules/gc-md4-tests (License): Likewise.
52041
52042         * modules/gc-md2-tests (License): Likewise.
52043
52044         * modules/gc-tests (License): Likewise.
52045
52046         * modules/des-tests (License): Likewise.
52047
52048         * modules/md4-tests (License): Likewise.
52049
52050         * modules/md2-tests (License): Likewise.
52051
52052 2006-01-09  Paul Eggert  <eggert@cs.ucla.edu>
52053
52054         Sync from coreutils:
52055
52056         * MODULES.html.sh (build_lib): New section, with new lib-ignore module.
52057         * modules/lib-ignore: New file.
52058         * modules/mkdir-p (Files): Add chdir-safer.c, chdir-safer.h, lchmod.h,
52059         chdir-safer.m4, lchmod.m4.
52060         * modules/openat: Add mkdirat.c, openat-priv.h.
52061
52062 2006-01-09  Paul Eggert  <eggert@cs.ucla.edu>
52063
52064         Sync from coreutils.
52065         * m4/lib-ignore.m4: New file.
52066         * m4/lchmod.m4: New file.
52067
52068 2006-01-09  Paul Eggert  <eggert@cs.ucla.edu>
52069
52070         Sync from coreutils.
52071         * lib/chdir-long.c (cdb_free): Don't bother trying to open directory
52072         for write access: POSIX says that must fail.
52073         * lib/fts.c (diropen): Likewise.
52074         * lib/save-cwd.c (save_cwd): Likewise.
52075         * lib/chdir-long.c (cdb_free): Open with O_NOCTTY | O_NONBLOCK as
52076         well, for minor improvements on hosts that lack O_DIRECTORY.
52077         * lib/chown.c (rpl_chown) [CHOWN_MODIFIES_SYMLINK]:
52078         Don't try O_WRONLY unless O_RDONLY failed wth EACCES.
52079         Fall back on chown if open failed with EACCES.
52080
52081         * lib/gettime.c (gettime) [!defined OK_TO_USE_1S_CLOCK]:
52082         Report an error at compile-time if only a 1-second nominal clock
52083         resolution is found.
52084
52085         * lib/lchmod.h: New file.
52086         * lib/mkdir-p.c: Include lchmod.h, lchown.h.
52087         (make_dir_parents): Use lchown rather than chown, and
52088         lchmod rather than chmod.
52089
52090         * lib/mountlist.c (ME_DUMMY): "none" and "proc" file systems are
52091         dummies too.  Problem with "none" reported by Bob Proulx.  Problem with
52092         "proc" reported by n0dalus.
52093
52094         * lib/mountlist.c: Include <limits.h>.
52095         (dev_from_mount_options)
52096         [defined MOUNTED_GETMNTENT1 || defined MOUNTED_GETMNTENT2]:
52097         New function.  It no longer assumes "dev=" has the System V meaning
52098         on Linux (since it doesn't).  It also parses "dev=" more carefully.
52099         (read_file_system_list)
52100         [defined MOUNTED_GETMNTENT1 || defined MOUNTED_GETMNTENT2]: Use it.
52101         MOUNTED_GETMNTENT2 is new here; the code didn't used to look for
52102         dev= in that case.
52103
52104         * lib/posixtm.h (PDS_PRE_2000): New macro.
52105         * lib/posixtm.c (year): Arg is now syntax_bits rather than
52106         allow_century.  All usages changed.  Reject dates outside the range
52107         1969-1999 if PDS_PRE_2000 is used.
52108
52109 2006-01-09  Paul Eggert  <eggert@cs.ucla.edu>
52110
52111         Sync from coreutils.
52112         * doc/getdate.texi (General date syntax): Invalid dates are rejected.
52113         (Time of day items): Mention the possibility of leap seconds.
52114         Problem reported by Dr. David Alan Gilbert.
52115
52116 2006-01-09  Jim Meyering  <jim@meyering.net>
52117
52118         Sync from coreutils.
52119
52120         * lib/version-etc.c (COPYRIGHT_YEAR): Update to 2006.
52121
52122         * lib/chdir-safer.h, lib/chdir-safer.c: New files.
52123
52124         * lib/modechange.c (mode_compile): Reject an invalid mode string
52125         that starts with an octal digit.  From Andreas Gruenbacher.
52126
52127         * lib/openat.c: Include "fcntl--.h" and "unistd--.h", to map open
52128         and dup to open_safer and dup_safer, respectively.
52129         (openat_permissive): Fix typo in comment.
52130
52131         * lib/openat.c: Don't include <stdlib.h>, <unistd.h>, <fcntl.h>,
52132         "gettext.h"; either no longer needed or are guaranteed by openat.h.
52133         (_): Remove; no longer needed.
52134         (openat): Renamed from rpl_openat; no need for rpl_openat
52135         since openat.h renames openat for us.
52136         Replace most of the body with a call to openat_permissive,
52137         to avoid duplicate code.
52138         Port to (probably hypothetical) environments were mode_t is
52139         wider than int.
52140         (openat_permissive): Require mode arg, so that we can check
52141         types better.  Put it just after flags.  Change cwd failure
52142         indicator from pointer-to-bool to pointer-to-errno-value.
52143         All callers changed.
52144         Invoke openat_save_fail and/or openat_restore_fail if
52145         cwd_errno is null, so that openat can call us.
52146         (openat_permissive, fdopendir, fstatat, unlinkat):
52147         Simplify errno handling to avoid some duplicate code,
52148         as it's OK to set errno on success.
52149         * lib/openat.h: Revamp code so that function macros depend on
52150         __OPENAT_PREFIX only, not also on AT_FDCWD.
52151         (openat_ro): Remove.  Caller changed to use openat_permissive.
52152         (openat_permissive): Now a macro, if not a function.
52153         (openat_restore_fail, openat_save_fail): Now always functions,
52154         since mkdirat needs them even if __OPENAT_PREFIX is defined.
52155
52156         * lib/openat-priv.h: New file, defining macros used by mkdirat.c
52157         and openat.c.
52158         * lib/mkdirat.c: Include openat-priv.h.
52159         Remove definitions of macros defined therein.
52160         * lib/openat.c: Likewise.
52161
52162         * lib/mkdirat.c (mkdirat): New file and function.
52163         * lib/openat.h (mkdirat): Declare.
52164
52165         * lib/openat.c (fdopendir): Don't change errno when returning non-NULL.
52166
52167         * lib/openat.h (openat_permissive): Declare.
52168         (openat_ro): Define.
52169
52170         * lib/openat.c (EXPECTED_ERRNO): New macro.
52171         (openat_permissive): New function -- used in remove.c rewrite.
52172         (all functions): Set errno just before returning, only if there
52173         was an actual failure.
52174         Use EXPECTED_ERRNO rather than comparing against only ENOTDIR.
52175
52176         Emulate openat-family functions using Linux's procfs, if possible.
52177         Idea and some code based on Ulrich Drepper's glibc changes.
52178
52179         * lib/openat.c: (BUILD_PROC_NAME): New macro.
52180         Include <stdio.h>, <string.h>, "alloca.h" and "intprops.h".
52181         (rpl_openat): Emulate by trying to open /proc/self/fd/%d/%s,
52182         before falling back on save_cwd and restore_cwd.
52183         (fdopendir, fstatat, unlinkat): Likewise.
52184
52185         * lib/openat.c (fstatat, unlinkat): Perform the syscall directly,
52186         skipping the save_cwd...restore_cwd overhead, if FILE is absolute.
52187
52188         * lib/openat.c (rpl_openat): Use the promoted type (int), not mode_t,
52189         as second argument to va_arg.  Otherwise, some versions of gcc
52190         warn that `if this code is reached, the program will abort'.
52191
52192 2006-01-09  Jim Meyering  <jim@meyering.net>
52193
52194         Sync from coreutils.
52195         * m4/openat.m4 (gl_FUNC_OPENAT): Require and compile mkdirat.c.
52196         Require openat-priv.h.
52197
52198 2006-01-09  Bruno Haible  <bruno@clisp.org>
52199
52200         * modules/strnlen (Include): Use strnlen.h.
52201
52202 2006-01-09  Bruno Haible  <bruno@clisp.org>
52203
52204         * m4/stdint.m4 (gl_STDINT_H): Also test for <sys/bitypes.h>.
52205
52206 2006-01-09  Bruno Haible  <bruno@clisp.org>
52207
52208         * lib/sysexit_.h (EX_OK): New macro.
52209         Suggested by Martin Lambers <marlam@marlam.de>.
52210
52211 2006-01-09  Bruno Haible  <bruno@clisp.org>
52212
52213         * lib/stdint_.h: On Linux libc4 and libc5, include <sys/bitypes.h> and
52214         don't define _STDINT_H_NEED_SIGNED_INT_TYPES.
52215
52216 2006-01-09  Bruno Haible  <bruno@clisp.org>
52217
52218         * lib/stdint_.h (SIZE_MAX): Write the value without involving negative
52219         numbers.
52220
52221 2006-01-09  Bruno Haible  <bruno@clisp.org>
52222
52223         * lib/javacomp.sh.in: Move to ../build-aux/javacomp.sh.in.
52224         * lib/javaexec.sh.in: Move to ../build-aux/javaexec.sh.in.
52225         * lib/csharpcomp.sh.in: Move to ../build-aux/csharpcomp.sh.in.
52226         * lib/csharpexec.sh.in: Move to ../build-aux/csharpexec.sh.in.
52227
52228 2006-01-09  Bruno Haible  <bruno@clisp.org>
52229
52230         * build-aux/javacomp.sh.in: New file, moved from lib/.
52231         * modules/javacomp-script (Files): Update.
52232         (configure.ac): Add AC_CONFIG_FILES invocation.
52233         (EXTRA_DIST): Remove variable.
52234
52235         * build-aux/javaexec.sh.in: New file, moved from lib/.
52236         * modules/javaexec (Files): Update.
52237         (configure.ac): Add AC_CONFIG_FILES invocation.
52238         (EXTRA_DIST): Remove javaexec.sh.in.
52239
52240         * build-aux/csharpcomp.sh.in: New file, moved from lib/.
52241         * modules/csharpcomp-script (Files): Update.
52242         (configure.ac): Add AC_CONFIG_FILES invocation.
52243         (EXTRA_DIST): Remove variable.
52244
52245         * build-aux/csharpexec.sh.in: New file, moved from lib/.
52246         * modules/csharpexec (Files): Update.
52247         (configure.ac): Add AC_CONFIG_FILES invocation.
52248         (EXTRA_DIST): Remove csharpexec.sh.in.
52249
52250 2006-01-09  Andreas Gruenbacher  <agruen@suse.de>
52251
52252         Sync from coreutils.
52253
52254         Add POSIX ACL support
52255         * lib/acl.h (copy_acl, set_acl): Add declarations.
52256         * lib/acl.c (acl_entries): Add fallback implementation for POSIX ACL
52257         systems other than Linux.
52258         (chmod_or_fchmod): New function: use fchmod when possible,
52259         and chmod otherwise.
52260         (file_has_acl): Add a POSIX ACL implementation, with a
52261         Linux-specific subcase.
52262         (copy_acl): Add: copy an acl and S_ISUID, S_ISGID, and
52263         S_ISVTX from one file to another.  Fall back to fchmod/chmod when
52264         acls are unsupported.
52265         (set_acl): Add: set a file's acl and S_ISUID, S_ISGID, and
52266         S_ISVTX to a defined value.  Fall back to fchmod/chmod when acls
52267         are unsupported.
52268
52269 2006-01-09  Andreas Gruenbacher  <agruen@suse.de>
52270
52271         Sync from coreutils.
52272         * m4/acl.m4 (AC_FUNC_ACL): Add POSIX ACL and Linux-specific acl tests.
52273
52274 2006-01-07  Bruno Haible  <bruno@clisp.org>
52275
52276         * gnulib-tool (func_import): Add an AC_PROG_RANLIB dependency to
52277         gl_EARLY.
52278
52279 2006-01-04  Paul Eggert  <eggert@cs.ucla.edu>
52280
52281         * lib/strftime.c (tzname): Don't declare if it is already #defined.
52282         Problem reported for Mingw by Mark Junker.
52283
52284 2006-01-04  Paul Eggert  <eggert@cs.ucla.edu>
52285
52286         * README: Gnulib normally doesn't generate a tarball.
52287
52288 2006-01-03  Paul Eggert  <eggert@cs.ucla.edu>
52289
52290         * lib/xtime.h (xtime_make, xtime_nonnegative_nsec, xtime_nsec): Use
52291         long int, not int, for nanosecond counts, so that people who are
52292         used to POSIX struct timespec won't be surprised.  Reported by Jim
52293         Meyering.
52294
52295 2005-12-28  Bruno Haible  <bruno@clisp.org>
52296
52297         * build-aux/config.rpath: Update from GNU gettext.
52298
52299 2005-12-16  Jim Meyering  <jim@meyering.net>
52300
52301         * modules/fprintftime: New module.
52302         * MODULES.html.sh (Date and time <time.h>): Add fprintftime.
52303
52304 2005-12-16  Jim Meyering  <jim@meyering.net>
52305
52306         * m4/fprintftime.m4: New file.
52307
52308 2005-12-16  Jim Meyering  <jim@meyering.net>
52309
52310         * lib/fprintftime.c, lib/fprintftime.h: New files.
52311
52312 2005-12-15  Simon Josefsson  <jas@extundo.com>
52313
52314         * modules/socklen (configure.ac): Fix M4 macro name, to align with
52315         new m4/socklen.m4.
52316
52317 2005-12-10  Sergey Poznyakoff  <gray@gnu.org.ua>
52318
52319         * m4/argp.m4: Define HAVE_DECL_PROGRAM_INVOCATION_NAME and
52320         HAVE_DECL_PROGRAM_INVOCATION_SHORT_NAME
52321
52322 2005-12-10  Sergey Poznyakoff  <gray@gnu.org.ua>
52323
52324         * lib/argp-fmtstream.c (__argp_fmtstream_update): Fix coredump
52325         * lib/argp-help.c (fill_in_uparams): Check if the constructed
52326         struct uparams is valid. Fall back to the default values if it is
52327         not.
52328
52329 2005-12-09  Sergey Poznyakoff  <gray@gnu.org.ua>
52330
52331         * modules/argp (Files): Add argp-pin.c
52332         (Depends-on): dirname
52333         (lib_SOURCES): Add argp-pin.c
52334
52335 2005-12-09  Sergey Poznyakoff  <gray@gnu.org.ua>
52336
52337         * m4/argp.m4:  Check if program_invocation_name and
52338         program_invocation_short_name are declared and define appropriate
52339         macros if they are not.
52340
52341 2005-12-09  Sergey Poznyakoff  <gray@gnu.org.ua>
52342
52343         * lib/argp-help.c (__argp_base_name): New function
52344         (__argp_short_program_name): Rewrite using __argp_base_name
52345         * lib/argp-namefrob.h: Define program_invocation_name and
52346         program_invocation_short_name if requested
52347         (__argp_base_name): Add prototype
52348         * lib/argp-parse.c (argp_def): Use gettext wrappers
52349         (argp_default_parser): Use __argp_base_name
52350         * lib/argp-pin.c: New file. Defines program_invocation_name and
52351         program_invocation_short_name on systems that lack them.
52352
52353 2005-12-07  Paul Eggert  <eggert@cs.ucla.edu>
52354
52355         * m4/stat-time.m4 (gl_STAT_TIME): Add check for
52356         TYPEOF_STRUCT_STAT_ST_ATIM_IS_STRUCT_TIMESPEC, to fix IRIX 5.3
52357         porting problem reported by Georg Schwarz in
52358         <http://lists.gnu.org/archive/html/bug-coreutils/2005-12/msg00083.html>.
52359
52360 2005-12-07  Paul Eggert  <eggert@cs.ucla.edu>
52361
52362         * lib/stat-time.h (STATE_TIMESPEC, STAT_TIMESPEC_NS): Add check for
52363         TYPEOF_STRUCT_STAT_ST_ATIM_IS_STRUCT_TIMESPEC, to fix IRIX 5.3
52364         porting problem reported by Georg Schwarz in
52365         <http://lists.gnu.org/archive/html/bug-coreutils/2005-12/msg00083.html>.
52366
52367 2005-12-05  Bruno Haible  <bruno@clisp.org>
52368
52369         * lib/csharpcomp.sh.in (options_csc): For -l option, add a .dll suffix.
52370         * lib/csharpcomp.c (compile_csharp_using_sscli): Likewise.
52371         Reported by Mark Junker <mjscod@gmx.de>.
52372
52373 2005-12-02  Paul Eggert  <eggert@cs.ucla.edu>
52374
52375         * m4/socklen.m4 (gl_TYPE_SOCKLEN_T): Renamed from gl_SOCKLEN_T.
52376         Use implementation from Albert Chin, with some
52377         comments/corrections by Stepan Kasal and myself.
52378
52379 2005-12-02  Bruno Haible  <bruno@clisp.org>
52380
52381         * gnulib-tool (func_import): Accept GPLed build tool modules when
52382         --lgpl is given.
52383         * modules/csharpcomp-script: New file.
52384         * modules/csharpcomp: Depend on it.
52385         * modules/javacomp-script: New file.
52386         * modules/javacomp: Depend on it.
52387         Suggested by Simon Josefsson.
52388
52389 2005-12-01  Paul Eggert  <eggert@cs.ucla.edu>
52390
52391         * m4/regex.m4 (gl_REGEX): Check whether off_t can be used in a switch
52392         statement, to work around an HP-UX 10.20 compiler bug reported by
52393         Peter O'Gorman.
52394
52395 2005-11-29  Paul Eggert  <eggert@cs.ucla.edu>
52396
52397         * modules/savedir (Depends-on): Add openat.
52398
52399 2005-11-29  Paul Eggert  <eggert@cs.ucla.edu>
52400
52401         * lib/stdint_.h (intmax_t) [defined intmax_t]: Do not declare.
52402         (uintmax_t) [defined uintmax_t]: Do not declare.
52403         (SIZE_MAX) [defined SIZE_MAX]: Do not define.
52404         This works around a problem if intmax_t.m4 and/or uintmax_t.m4
52405         and/or size_max.m4 are also used.  Problem reported by Mark D. Baushke.
52406         (SIZE_MAX): Define to ((size_t) -1), not (~(size_t)0), for the
52407         sake of portability to weird hosts that C allows (though we don't
52408         know of any practical examples).
52409
52410         * lib/savedir.h (fdsavedir): New decl.
52411         * lib/savedir.c (fdsavedir, savedirstream): New functions; the latter
52412         contains most of the former guts of savedir.
52413         (savedir): Use savedirstream.
52414         Include "openat.h".
52415
52416 2005-11-25  Paul Eggert  <eggert@cs.ucla.edu>
52417
52418         * modules/obstack (Files): Add m4/ulonglong.m4.
52419         Problem reported by Davide Angelocola.
52420
52421 2005-11-15  Paul Eggert  <eggert@cs.ucla.edu>
52422
52423         * lib/xstrtod.c: Don't bother with #pragma STDC FENV_ACCESS ON, as
52424         coreutils no longer futzes with rounding modes.
52425
52426 2005-11-14  Jim Meyering  <jim@meyering.net>
52427
52428         * lib/mkstemp-safer.c: Include <config.h>, required for possible
52429         replacement of mkstemp.
52430
52431 2005-11-10  Simon Josefsson  <jas@extundo.com>
52432
52433         * lib/readline.c: Remove EOL.
52434
52435 2005-11-10  Paul Eggert  <eggert@cs.ucla.edu>
52436
52437         * modules/gethrxtime (Depends-on): Add gettime.
52438
52439 2005-11-10  Paul Eggert  <eggert@cs.ucla.edu>
52440
52441         * m4/gethrxtime.m4 (gl_PREREQ_GETHRXTIME): Don't require AC_HEADER_TIME
52442         or gettimeofday; no longer needed.
52443
52444 2005-11-10  Paul Eggert  <eggert@cs.ucla.edu>
52445
52446         * lib/gethrxtime.c: Include "timespec.h" rather than the sys/time /
52447         time business.
52448         (gethrxtime) [! (HAVE_NANOUPTIME
52449         || (defined CLOCK_MONOTONIC && HAVE_CLOCK_GETTIME)
52450         || HAVE_MICROUPTIME)]: Fall back on gettime rather than rolling
52451         our own approximation.
52452
52453 2005-11-08  Eric Blake  <ebb9@byu.net>
52454
52455         * lib/inet_ntop.h: Use #if !, not #ifndef, for AC_CHECK_DECLS.
52456
52457 2005-11-08  Eric Blake  <ebb9@byu.net>
52458
52459         * lib/getaddrinfo.h: Use #if !, not #ifndef, for AC_CHECK_DECLS.
52460
52461 2005-11-04  Bruno Haible  <bruno@clisp.org>
52462
52463         * gnulib-tool: Implement --update mode.
52464
52465 2005-10-30  Paul Eggert  <eggert@cs.ucla.edu>
52466
52467         Fix porting problem reported by Theodoros V. Kalamatianos.
52468         * lib/utimens.c (futimens) [HAVE_WORKING_UTIMES && HAVE_FUTIMES]:
52469         Don't assume that futimes failing means we must fail.
52470
52471 2005-10-30  Paul Eggert  <eggert@cs.ucla.edu>
52472
52473         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Revamp wording and local
52474         variables to suggest the intended function of the PATH_MAX check.
52475
52476 2005-10-30  Kean Johnston  <jkj@sco.com>
52477
52478         Trivial changes to support SCO systems.
52479         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Check for MAXPATHLEN as well
52480         as PATH_MAX.
52481         * m4/fpending.m4 (gl_FUNC_FPENDING): Correct check for SCO systems,
52482         where __ptr is null when no I/O is pending.
52483
52484 2005-10-29  Paul Eggert  <eggert@cs.ucla.edu>
52485
52486         * lib/getcwd.c (__getcwd): Don't assume that system calls after readdir
52487         leave errno alone.  Problem reported by Dmitry V. Levin.
52488
52489 2005-10-28  Simon Josefsson  <jas@extundo.com>
52490
52491         * tests/test-gc-md4.c, tests/test-gc-md5.c, tests/test-gc-sha1.c:
52492         Test more.
52493
52494         * tests/test-gc-md2.c, tests/test-md2.c: New files.
52495
52496         * modules/md2, modules/md2-tests: New files.
52497
52498 2005-10-28  Simon Josefsson  <jas@extundo.com>
52499
52500         * m4/inet_ntop.m4: More tests.
52501
52502         * m4/gc-md2.m4, md2.m4: New file.
52503
52504 2005-10-28  Simon Josefsson  <jas@extundo.com>
52505
52506         * lib/inet_ntop.h, inet_ntop.c: Make it work under mingw32: Add
52507         "restrict" keywords, as per POSIX.  Protect the function
52508         declaration around HAVE_DECL_INET_NTOP rather than HAVE_INET_NTOP.
52509         Don't use K&R prototypes.  Check the sprintf return values.
52510         Re-define EAFNOSUPPORT if not present.  Indent.
52511
52512         * lib/md5.h, md5.c: Simplify buffer handling visavi alignment,
52513         suggested by Bruno Haible <bruno@clisp.org>.
52514
52515         * lib/gc-gnulib.c, gc-libgcrypt.c: Check calloc return value.
52516
52517         * lib/gc.h: Add MD2 and RMD160 length defines.  Add prototypes.
52518
52519         * lib/gc-libgcrypt.c: Add MD2 (which is not available through
52520         libgcrypt).
52521
52522         * lib/gc-gnulib.c: Add MD2.  Implement gc_hash_* API.
52523
52524         * lib/md2.h, lib/md2.c: New files.
52525
52526 2005-10-28  Paul Eggert  <eggert@cs.ucla.edu>
52527
52528         * lib/savedir.c (savedir): Don't assume that xrealloc etc. leave
52529         errno alone.  Problem reported by Frederic Jolliton.
52530
52531 2005-10-27  Paul Eggert  <eggert@cs.ucla.edu>
52532
52533         * modules/verify (License): Change from GPL to LGPL.  This is a
52534         tiny module and there are apparently near-equivalents that are
52535         under the BSD license.
52536
52537 2005-10-24  Simon Josefsson  <jas@extundo.com>
52538
52539         * modules/sha1: Relicense to LGPL.
52540
52541 2005-10-24  Simon Josefsson  <jas@extundo.com>
52542
52543         * lib/md4.h: Shrink buffer size, now that we changed the type.
52544
52545 2005-10-23  Simon Josefsson  <jas@extundo.com>
52546
52547         * gnulib-tool (func_import): Fix --tests-base.
52548
52549 2005-10-22  Simon Josefsson  <jas@extundo.com>
52550
52551         * modules/arcfour (Depends-on): Need stdint.
52552
52553 2005-10-22  Simon Josefsson  <jas@extundo.com>
52554
52555         * m4/gc.m4: Don't be fooled by --disable-*random-device parameters,
52556         suggested by Bruno Haible <bruno@clisp.org>.  Fix error messages.
52557
52558 2005-10-22  Simon Josefsson  <jas@extundo.com>
52559
52560         * lib/md4.h, md4.c: Simplify buffer handling visavi alignment,
52561         suggested by Bruno Haible <bruno@clisp.org>.
52562
52563 2005-10-22  Simon Josefsson  <jas@extundo.com>
52564
52565         * lib/crc.h: Include stddef.h, for size_t.
52566
52567 2005-10-22  Simon Josefsson  <jas@extundo.com>
52568
52569         * lib/arcfour.h, arcfour.c: Use fixed size indices in the
52570         arcfour_context struct (simplify test vector testing in GNU
52571         Shishi).
52572
52573 2005-10-21  Simon Josefsson  <jas@extundo.com>
52574
52575         * modules/des, modules/des-tests: New files.
52576
52577         * modules/gc-des, modules/gc-des-tests: New files.
52578
52579         * tests/test-des.c, tests/test-gc-des.c: New file.
52580
52581 2005-10-21  Simon Josefsson  <jas@extundo.com>
52582
52583         * modules/arctwo, modules/arctwo-tests: New files.
52584
52585         * tests/test-arctwo.c: New file.
52586
52587         * modules/gc-arctwo, modules/gc-arctwo-tests: New files.
52588
52589         * tests/test-gc-arctwo.c: New file.
52590
52591 2005-10-21  Simon Josefsson  <jas@extundo.com>
52592
52593         * m4/gc.m4: Don't use libgcrypt if gcrypt.h isn't found, suggested by
52594         Bruno Haible <bruno@clisp.org>.
52595
52596         * m4/gc-des.m4: New file.
52597
52598 2005-10-21  Simon Josefsson  <jas@extundo.com>
52599
52600         * m4/arctwo.m4: New file.
52601
52602         * m4/gc-arctwo.m4: New file.
52603
52604 2005-10-21  Simon Josefsson  <jas@extundo.com>
52605
52606         * lib/rijndael-api-fst.c: Fix bugs in CBC mode for more than one
52607         block.
52608
52609 2005-10-21  Simon Josefsson  <jas@extundo.com>
52610
52611         * lib/hmac-md5.c (hmac_md5): Add comments, suggested by Bruno Haible
52612         <bruno@clisp.org>.
52613
52614         * lib/hmac-sha1.c (hmac_sha1): Likewise.
52615
52616         * lib/crc.c (crc32_update): Actually use crc parameter, suggested by
52617         Bruno Haible <bruno@clisp.org>.
52618
52619         * lib/crc.h: Include stdint.h directly, suggested by Bruno Haible
52620         <bruno@clisp.org>.
52621
52622 2005-10-21  Simon Josefsson  <jas@extundo.com>
52623
52624         * lib/gc-libgcrypt.c (gc_cipher_open): Handle ECB.
52625
52626 2005-10-21  Simon Josefsson  <jas@extundo.com>
52627
52628         * lib/gc-gnulib.c: Support ARCTWO in CBC mode.
52629
52630 2005-10-21  Simon Josefsson  <jas@extundo.com>
52631
52632         * lib/des.h, lib/des.c: New files.
52633
52634         * lib/gc-gnulib.c: Support DES.c
52635
52636 2005-10-21  Simon Josefsson  <jas@extundo.com>
52637
52638         * lib/arctwo.h, lib/arctwo.c: New files.
52639
52640         * lib/gc-gnulib.c: Support ARCTWO.
52641
52642 2005-10-21  Simon Josefsson  <jas@extundo.com>
52643
52644         * lib/arctwo.h (arctwo_setkey): Protect variable in CPP macro,
52645         suggested by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
52646
52647 2005-10-21  Simon Josefsson  <jas@extundo.com>
52648
52649         * gnulib-tool (func_import, func_create_testdir): Define automake
52650         conditional GL_COND_LIBTOOL if libtool is used (to be used by modules
52651         Makefile.am snippet),
52652         suggested by Bruno Haible <bruno@clisp.org>.
52653
52654         * modules/gc (Makefile.am): Use it.
52655
52656 2005-10-21  Bruno Haible  <bruno@clisp.org>
52657
52658         * gnulib-tool (func_import, func_create_testdir): Add quoting to last
52659         patch.
52660
52661 2005-10-19  Simon Josefsson  <jas@extundo.com>
52662
52663         * tests/test-gc-rijndael.c: New file.
52664
52665         * modules/gc-rijndael, modules/gc-rijndael-test: New files.
52666
52667 2005-10-19  Simon Josefsson  <jas@extundo.com>
52668
52669         * tests/test-gc-md4.c, tests/test-gc-md5.c: Test gc_hash_buffer
52670         interface too.
52671
52672 2005-10-19  Simon Josefsson  <jas@extundo.com>
52673
52674         * tests/test-gc-arcfour.c: New file.
52675
52676         * modules/gc-arcfour, modules/gc-arcfour-tests: New files.
52677
52678 2005-10-19  Simon Josefsson  <jas@extundo.com>
52679
52680         * modules/gc-md4, modules/gc-md4-tests: New file.
52681
52682         * tests/test-gc-md4.c: New file.
52683
52684 2005-10-19  Simon Josefsson  <jas@extundo.com>
52685
52686         * m4/gc-md4.m4: New file.
52687
52688 2005-10-19  Simon Josefsson  <jas@extundo.com>
52689
52690         * m4/gc-hmac-md5.m4, gc-hmac-sha1.m4, gc-md4.m4,
52691         gc-md5.m4, gc-sha1.m4: Fix typo, suggested by Stepan Kasal
52692         <kasal@ucw.cz>.
52693
52694 2005-10-19  Simon Josefsson  <jas@extundo.com>
52695
52696         * m4/gc-arcfour.m4: New file.
52697
52698         * m4/gc-rijndael.m4: New file.
52699
52700 2005-10-19  Simon Josefsson  <jas@extundo.com>
52701
52702         * lib/gc.h, gc-gnulib.c, gc-libgcrypt.c: Support MD4.
52703
52704 2005-10-19  Simon Josefsson  <jas@extundo.com>
52705
52706         * lib/gc-gnulib.c: Support ARCFOUR.
52707
52708 2005-10-19  Simon Josefsson  <jas@extundo.com>
52709
52710         * lib/gc-gnulib.c: Implement gc_cipher_* API, currently only with AES
52711         support.
52712
52713         * lib/gc.h: Add ECB enum type.
52714
52715         * lib/hmac-md5.c, hmac-sha1.c: Include memxor.h.
52716
52717 2005-10-18  Simon Josefsson  <jas@extundo.com>
52718
52719         * tests/test-md5.c: New file.
52720
52721         * modules/md5-tests: New file.
52722
52723 2005-10-18  Simon Josefsson  <jas@extundo.com>
52724
52725         * tests/test-md4.c: New file.
52726
52727         * modules/md4, modules/md4-tests: New files.
52728
52729 2005-10-18  Simon Josefsson  <jas@extundo.com>
52730
52731         * m4/md4.m4: New file.
52732
52733 2005-10-18  Simon Josefsson  <jas@extundo.com>
52734
52735         * lib/md4.h, lib/md4.c: New files, based on md5.?.
52736
52737 2005-10-17  Stepan Kasal  <kasal@ucw.cz>
52738
52739         * gnulib-tool (func_create_testdir): Omit the second check whether
52740         BUILT_SOURCES in nonempty.
52741
52742 2005-10-17  Simon Josefsson  <jas@extundo.com>
52743
52744         * tests/test-rijndael.c: New file.
52745
52746 2005-10-17  Simon Josefsson  <jas@extundo.com>
52747
52748         * modules/sha1: Depend on stdint instead of md5.
52749
52750         * modules/md5: Depend on stdint, remove uint32_t.
52751
52752 2005-10-17  Simon Josefsson  <jas@extundo.com>
52753
52754         * modules/gc-sha1-tests: New file.
52755
52756         * tests/test-gc-sha1.c: New file.
52757
52758 2005-10-17  Simon Josefsson  <jas@extundo.com>
52759
52760         * m4/md5.m4: Remove call to uint32_t.m4.
52761
52762 2005-10-17  Simon Josefsson  <jas@extundo.com>
52763
52764         * lib/sha1.c: Use uint32_t instead of md5_uint32.t
52765
52766         * lib/sha1.h: Use stdint.h and uint32_t instead of md5_uint32 from
52767         md5.h.
52768
52769         * lib/md5.c: Use uin32_t.  Fix non-gcc UNALIGNED_P macro.
52770
52771         * lib/md5.h: Use stdint.h and uint32_t.  Doc fix.
52772
52773 2005-10-17  Simon Josefsson  <jas@extundo.com>
52774
52775         * lib/gc.h, gc-libgcrypt.c: Add more hash types/functions.
52776
52777 2005-10-17  Simon Josefsson  <jas@extundo.com>
52778
52779         * lib/gc.h, gc-libgcrypt.c: Add ciphers.
52780
52781 2005-10-17  Simon Josefsson  <jas@extundo.com>
52782
52783         * lib/gc-libgcrypt.c (gc_hmac_sha1): Fix assert.
52784
52785         * lib/gc.h (gc_nonce, gc_pseudo_random, gc_random): Add prototypes.
52786
52787 2005-10-17  Bruno Haible  <bruno@clisp.org>
52788
52789         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Change the return statement so
52790         that it can also be used in a test.
52791
52792 2005-10-16  Bruno Haible  <bruno@clisp.org>
52793
52794         * gnulib-tool (func_emit_tests_Makefile_am): Also define
52795         TESTS_ENVIRONMENT, so that individual tests can augment it.
52796
52797         * gnulib-tool (func_create_testdir): Use an intermediate target for
52798         building $(BUILT_SOURCES). Needed because BUILT_SOURCES can contain
52799         macros, like $(ALLOCA_H), which cannot be passed through the command
52800         line.
52801
52802 2005-10-15  Simon Josefsson  <jas@extundo.com>
52803
52804         * modules/rijndael-tests: New file.
52805
52806         * modules/rijndael: New file.
52807
52808 2005-10-15  Simon Josefsson  <jas@extundo.com>
52809
52810         * m4/rijndael.m4: New file.
52811
52812 2005-10-15  Simon Josefsson  <jas@extundo.com>
52813
52814         * lib/rijndael-api-fst.h, lib/rijndael-api-fst.c: New files.
52815
52816         * lib/rijndael-alg-fst.h, lib/rijndael-alg-fst.c: New files.
52817
52818 2005-10-14  Simon Josefsson  <jas@extundo.com>
52819
52820         * tests/test-arcfour.c: New file.
52821
52822         * modules/arcfour, modules/arcfour-tests: New files.
52823
52824 2005-10-14  Simon Josefsson  <jas@extundo.com>
52825
52826         * m4/arcfour.m4: New file.
52827
52828 2005-10-14  Simon Josefsson  <jas@extundo.com>
52829
52830         * lib/arcfour.h, lib/arcfour.c: New files.
52831
52832 2005-10-14  Roland McGrath  <roland@redhat.com>
52833
52834         Import from libc.  [BZ #1331]
52835         * lib/obstack.h [!__STDC__] (obstack_int_grow_fast): Fix misnamed
52836         macro argument.
52837         Reported by Matej Vela <vela@debian.org>.
52838
52839 2005-10-14  Paul Eggert  <eggert@cs.ucla.edu>
52840
52841         * lib/obstack.c [defined _LIBC && defined USE_IN_LIBIO]: Don't
52842         include <wchar.h>; no longer needed.
52843
52844 2005-10-14  Paul Eggert  <eggert@cs.ucla.edu>
52845
52846         * config/srclist.txt: Add glibc bug 321 for obstack.c, obstack.h.
52847
52848 2005-10-14  Jakub Jelinek  <jakub@redhat.com>
52849         and  Ulrich Drepper  <drepper@redhat.com>
52850
52851         Import from libc.
52852         * lib/obstack.c (print_and_abort) [defined _LIBC]: Use __fxprintf
52853         instead of inline stream orientation test and two separate
52854         function calls.  Pay no attention to USE_IN_LIBIO.
52855
52856 2005-10-13  Simon Josefsson  <jas@extundo.com>
52857
52858         * modules/gc-hmac-md5-tests: New file.
52859
52860         * tests/test-gc-hmac-sha1.c: New file.
52861
52862         * tests/test-gc.c (main): Remove MD5 and HMAC-MD5 tests.
52863
52864         * modules/gc-hmac-md5-tests: New file.
52865
52866         * tests/test-gc-md5.c: New file.
52867
52868         * modules/gc-md5-tests: New file.
52869
52870 2005-10-13  Simon Josefsson  <jas@extundo.com>
52871
52872         * lib/gc-pbkdf2-sha1.c (gc_pbkdf2_sha1): Optimize CEIL computation.
52873         Move memory allocation outside of loop.
52874
52875 2005-10-13  Paul Eggert  <eggert@cs.ucla.edu>
52876
52877         * lib/mkdir-p.c (make_dir_parents): Don't report an error if an
52878         intermediate directory is in a read-only file system.  Problem
52879         reported by Eric Blake.
52880
52881 2005-10-13  Oskar Liljeblad  <oskar@osk.mine.nu>
52882
52883         * modules/human (Depends-on): Depend on xstrtoumax, not xstrtol.
52884
52885 2005-10-12  Simon Josefsson  <jas@extundo.com>
52886
52887         * tests/test-hmac-sha1.c: New file.
52888
52889         * modules/hmac-sha1-tests: New file.
52890
52891         * modules/hmac-sha1: New file.
52892
52893 2005-10-12  Simon Josefsson  <jas@extundo.com>
52894
52895         * modules/gc-sha1: New file.
52896
52897 2005-10-12  Simon Josefsson  <jas@extundo.com>
52898
52899         * modules/gc-pbkdf2-sha1, modules/gc-pbkdf2-sha1-tests: New files.
52900
52901         * tests/test-gc-pbkdf2-sha1.c: New file.
52902
52903 2005-10-12  Simon Josefsson  <jas@extundo.com>
52904
52905         * modules/gc-md5, modules/gc-hmac-md5: New files.
52906
52907         * modules/gc (Files): Remove md5, memxor and hmac files.
52908
52909 2005-10-12  Simon Josefsson  <jas@extundo.com>
52910
52911         * m4/gc-pbkdf2-sha1.m4: New file.
52912
52913         * m4/gc-hmac-sha1.m4: New file.
52914
52915         * m4/gc-sha1: New file.
52916
52917         * m4/hmac-sha1.m4: New file.
52918
52919 2005-10-12  Simon Josefsson  <jas@extundo.com>
52920
52921         * m4/gc-md5.m4, m4/gc-hmac-md5.m4: New files.
52922
52923         * m4/gc.m4: Don't call gl_MD5, gl_MEMXOR or gl_HMAC_MD5.
52924
52925 2005-10-12  Simon Josefsson  <jas@extundo.com>
52926
52927         * lib/gc.h, gc-gnulib.c, gc-libgcrypt.c: Use Gc_rc for return types,
52928         suggested by Bruno Haible <bruno@clisp.org>.
52929
52930 2005-10-12  Simon Josefsson  <jas@extundo.com>
52931
52932         * lib/gc.h, gc-gnulib.c, gc-libgcrypt.c: Support SHA-1.
52933
52934 2005-10-12  Simon Josefsson  <jas@extundo.com>
52935
52936         * lib/gc-pbkdf2-sha1.c: New file.
52937
52938         * lib/gc.h: Add gc_pbkdf2_sha1 prototype.
52939
52940 2005-10-12  Simon Josefsson  <jas@extundo.com>
52941
52942         * lib/gc-libgcrypt.c (gc_hmac_sha1): New function.
52943
52944         * lib/gc-gnulib.c (gc_hmac_sha1): New function.
52945
52946 2005-10-12  Simon Josefsson  <jas@extundo.com>
52947
52948         * lib/gc-gnulib.c: Condition MD5 and HMAC-MD5 use on GC_USE_MD5 and
52949         GC_USE_HMAC_MD5, respectively.
52950
52951         * lib/gc-libgcrypt.c (gc_md5): Fix assert call.
52952         (gc_md5): Fix typo.
52953
52954         * lib/gc.h (gc_hash_buffer): Use gc_hash in prototype.
52955
52956         * lib/gc-libgcrypt.c (gc_hash_buffer): Ditto.
52957
52958         * lib/gc-gnulib.c (gc_hash_buffer): Ditto.
52959
52960 2005-10-12  Bruno Haible  <bruno@clisp.org>
52961
52962         * m4/stdbool.m4 (gl_STDBOOL_H): Define as an alias of AM_STDBOOL_H.
52963         Reported by Stepan Kasal <kasal@ucw.cz>.
52964
52965 2005-10-11  Simon Josefsson  <jas@extundo.com>
52966
52967         * tests/test-crc.c: New file.
52968
52969         * modules/crc, modules/crc-tests: New files.
52970
52971 2005-10-11  Simon Josefsson  <jas@extundo.com>
52972
52973         * m4/crc.m4: New file.
52974
52975 2005-10-11  Simon Josefsson  <jas@extundo.com>
52976
52977         * lib/gc.h: Add gc_hash and gc_hash_buffer.
52978
52979         * lib/gc-gnulib.c (gc_hash_buffer): Add.  Reorder #include's.
52980
52981         * lib/gc-libgcrypt.c (gc_hash_buffer): Add.
52982
52983 2005-10-11  Simon Josefsson  <jas@extundo.com>
52984
52985         * lib/crc.h, lib/crc.c: New files.
52986
52987         * lib/gc.h (gc_hash_buffer): Add doc.
52988
52989 2005-10-11  Bruno Haible  <bruno@clisp.org>
52990
52991         * modules/c-strcasestr: New file.
52992         * MODULES.html.sh (String handling <string.h>): Add c-strcasestr.
52993
52994 2005-10-11  Bruno Haible  <bruno@clisp.org>
52995
52996         * modules/c-strcase: New file.
52997         * MODULES.html.sh (String handling <string.h>): Add c-strcase.
52998
52999 2005-10-11  Bruno Haible  <bruno@clisp.org>
53000
53001         * lib/strcasecmp.c: Include limits.h.
53002         (strcasecmp): Avoid integer overflow on exotic platforms.
53003         * lib/strncasecmp.c: Include limits.h.
53004         (strncasecmp): Avoid integer overflow on exotic platforms.
53005         Reported by Paul Eggert.
53006
53007 2005-10-11  Bruno Haible  <bruno@clisp.org>
53008
53009         * lib/c-strcasestr.h: New file, from GNU gettext.
53010         * lib/c-strcasestr.c: New file, from GNU gettext.
53011
53012 2005-10-11  Bruno Haible  <bruno@clisp.org>
53013
53014         * lib/c-strcase.h: New file, from GNU gettext.
53015         * lib/c-strcasecmp.c: New file, from GNU gettext.
53016         * lib/c-strncasecmp.c: New file, from GNU gettext.
53017
53018 2005-10-10  Paul Eggert  <eggert@cs.ucla.edu>
53019
53020         * modules/mempcpy (License): GPL -> LGPL.
53021         * modules/strchrnul (License): Likewise.
53022         * modules/sysexits (License): Likewise.
53023
53024 2005-10-08  Simon Josefsson  <jas@extundo.com>
53025
53026         * config/srclist.txt: Bug 1423 is closed, but 1439 remains.
53027
53028 2005-10-07  Simon Josefsson  <jas@extundo.com>
53029
53030         * m4/memxor.m4: Remove gl_C_RESTRICT call.
53031
53032 2005-10-06  Simon Josefsson  <jas@extundo.com>
53033
53034         * tests/test-hmac-md5.c: New file.
53035
53036         * modules/hmac-md5-tests: New file.
53037
53038         * modules/hmac-md5: New file.
53039
53040 2005-10-06  Simon Josefsson  <jas@extundo.com>
53041
53042         * m4/hmac-md5.m4: New file.
53043
53044         * m4/memxor.m4: Require gl_C_RESTRICT.
53045
53046 2005-10-06  Simon Josefsson  <jas@extundo.com>
53047
53048         * lib/memxor.c (memxor): Avoid casts and warnings.
53049
53050 2005-10-06  Simon Josefsson  <jas@extundo.com>
53051
53052         * lib/hmac-md5.c: New file.
53053
53054         * lib/hmac.h: New file.
53055
53056 2005-10-06  Paul Eggert  <eggert@cs.ucla.edu>
53057
53058         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Check that bool
53059         promotes to int, not unsigned int, to catch the AIX 5.3
53060         compiler bug.
53061
53062 2005-10-05  Simon Josefsson  <jas@extundo.com>
53063
53064         * modules/memxor: New file.
53065
53066         * modules/iconv (Files): Move config.rpath to havelib, it is used
53067         there.
53068
53069         * modules/havelib (Files): Add config.rpath.
53070
53071 2005-10-05  Simon Josefsson  <jas@extundo.com>
53072
53073         * m4/memxor.m4: New file.
53074
53075 2005-10-05  Simon Josefsson  <jas@extundo.com>
53076
53077         * lib/memxor.c (memxor): Fix compiler error.
53078
53079         * lib/md5.h (MD5_DIGEST_SIZE, MD5_BLOCK_SIZE): Add, see also
53080         <http://sourceware.org/bugzilla/show_bug.cgi?id=1423>.
53081
53082         * lib/memxor.h, lib/memxor.c: New files.
53083
53084         * lib/getaddrinfo.h: Don't protect sys/types.h with HAVE_SYS_TYPES_H,
53085         we assume all systems have it, suggested by Jim Meyering
53086         <jim@meyering.net>.  Remove HAVE_SYS_SOCKET_H test too, to see if
53087         any systems lack sys/socket.h; mingw32 is known to lack it, but we
53088         don't support it yet anyway.  Also remove HAVE_NETDB_H test, for
53089         same reasons.
53090
53091 2005-10-05  Simon Josefsson  <jas@extundo.com>
53092
53093         * config/srclist.txt: Add glibc bug 1423 for md5.h.
53094
53095 2005-10-05  Paul Eggert  <eggert@cs.ucla.edu>
53096
53097         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Don't check for
53098         sys/socket.h, netdb.h, sys/types.h; the checks areno longer
53099         needed, since the source code now assumes these .h files.
53100
53101 2005-10-05  Derek Price  <derek@ximbiot.com>
53102
53103         * lib/getdelim.c (SIZE_MAX): New macro, if not already defined.
53104
53105 2005-10-05  Bruno Haible  <bruno@clisp.org>
53106
53107         * modules/stdint (License): Change to LGPL.
53108
53109 2005-10-04  Simon Josefsson  <jas@extundo.com>
53110
53111         * lib/getaddrinfo.h: Move sys/types.h include first, reported by "Mark
53112         D. Baushke" <mdb@gnu.org>.
53113
53114 2005-10-04  Bruno Haible  <bruno@clisp.org>
53115
53116         * lib/verify.h (verify_true): Provide alternative definition for C++.
53117
53118 2005-10-03  Paul Eggert  <eggert@cs.ucla.edu>
53119
53120         * lib/getdelim.c: Include getdelim.h first.  Include <limits.h>.
53121         (SSIZE_MAX): New macro, if not already defined.
53122         (getdelim): Fix buffer overrun on 64-bit hosts with lines longer
53123         than 2 GiB.
53124
53125 2005-10-02  Paul Eggert  <eggert@cs.ucla.edu>
53126
53127         Sync from coreutils.
53128         * m4/openat.m4 (gl_FUNC_OPENAT): Check for fdopendir.
53129         * m4/ullong_max.m4 (gl_ULLONG_MAX): Simplify so that it merely
53130         defines ULONG_MAX_LT_ULLONG_MAX.  Thomas M.Ott reports that
53131         ULLONG_MAX doesn't work with 2.7.2.1.
53132
53133 2005-10-02  Paul Eggert  <eggert@cs.ucla.edu>
53134
53135         * modules/xreadlink (Makefile.am): Remove lib_SOURCES.
53136         From Ben Pfaff.
53137
53138         * modules/exclude (Depends-on): Depend on verify.
53139         * modules/strtoimax (Depends-on): Likewise.
53140         * modules/utimecmp (Depends-on): Likewise.
53141
53142 2005-10-02  Paul Eggert  <eggert@cs.ucla.edu>
53143
53144         * lib/exclude.c: Include verify.h.
53145         (verify): Remove.  All callers changed to use verify.h's version.
53146         * lib/strtoimax.c: Likewise.
53147         * lib/utimecmp.c: Likewis.e
53148
53149         Sync from coreutils.
53150         * lib/.cppi-disable: Add getaddrinfo.h, getdelim.h, getline.h,
53151         getpass.c, mbchar.h, mbuiter.h, strcase.h, strnlen.h, strnlen1.h.
53152         * lib/.cvsignore: Add fts.h, search.h, t-fpending.
53153         * lib/settime.c (settime): Fix { typo in previous patch.  Also, don't
53154         bother returning ENOSYS if settimeofday or stime fails; just let
53155         them return whatever errno they want to return.
53156         * lib/utimens.c: Include unistd.h, for dup2.
53157         (futimens): Fix typo: HAVE_FUTIMESAT was misspelled in an #if.
53158         (futimens) [! HAVE_FUTIMESAT]: If !file, set errno before returning -1.
53159
53160 2005-10-02  Jim Meyering  <jim@meyering.net>
53161
53162         Sync from coreutils.
53163         * m4/utimes.m4 (gl_FUNC_UTIMES): Detect the version of utimes
53164         from glibc-2.2.5 that fails for read-only files.
53165
53166 2005-10-02  Jim Meyering  <jim@meyering.net>
53167
53168         Sync from coreutils.
53169         * lib/fts-cycle.c [HAVE_CONFIG_H]: Include <config.h>.
53170         * lib/openat-die.c: Use `#ifdef HAVE_CONFIG_H', not
53171         `#if HAVE_CONFIG_H'.
53172         * lib/openat.c (fdopendir): Do not define if HAVE_FDOPENDIR.
53173         Remove AT_FDCWD test.
53174         Do not consume the fd unless successful.
53175         * lib/openat.h (fdopendir): Do not define if HAVE_FDOPENDIR.
53176         * lib/settime.c (settime): Move the HAVE_STIME block `up' into an #elif
53177         block, so that we don't even try to compile it if settimeofday is
53178         available.  This works around a compilation failure on OSF1 V5.1,
53179         due to stime requiring a `long int*' while tv_sec is `int'.
53180
53181 2005-10-02  Alfred M. Szmidt  <ams@gnu.org>
53182
53183         Sync from coreutils.
53184         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Compare $gl_have_path...
53185         against `yes', rather than just testing for nonempty.
53186
53187 2005-10-01  Simon Josefsson  <jas@extundo.com>
53188
53189         * m4/getaddrinfo.m4: Include sys/types.h for sys/socket.h, on FreeBSD
53190         and Darwin.
53191
53192         * m4/getaddrinfo.m4: Use AC_GNU_SOURCE, GNU only declare getaddrinfo
53193         as an (POSIX) extension.  Check for sys/types.h, sys/socket.h, and
53194         netdb.h too, needed by getaddrinfo.h.  Check if getaddrinfo,
53195         freeaddrinfo and gai_strerror are declared by the POSIX headers.
53196         Check if struct addrinfo is declared.
53197
53198 2005-10-01  Simon Josefsson  <jas@extundo.com>
53199
53200         * lib/getaddrinfo.h: Protect #include's of sys/socket.h and netdb.h.
53201         Only define struct addrinfo if !HAVE_STRUCT_ADDRINFO.  Protect
53202         AI_* and EAI_* definitions.  Protect function declarations.
53203
53204 2005-10-01  Jim Meyering  <jim@meyering.net>
53205
53206         Sync from coreutils.
53207
53208         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Look for getservbyname in these
53209         libraries [inet nsl socket xnet].  Nelson Beebe reported that with
53210         native cc on Solaris 7, getaddrinfo.c requires -lsocket.
53211         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Check for gethostbyname
53212         in the inet and nsl libraries.  Required on Solaris 5.7.
53213
53214 2005-10-01  Jim Meyering  <jim@meyering.net>
53215
53216         Sync from coreutils.
53217         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Check for gethostbyname
53218         in the inet and nsl libraries.  Required on Solaris 5.7.
53219
53220 2005-10-01  Eric Blake  <ebb9@byu.net>  (tiny change)
53221
53222         * lib/getdelim.c (getdelim): Remove unused variables.
53223
53224 2005-09-29  Paul Eggert  <eggert@cs.ucla.edu>
53225
53226         * lib/xtime.h (XTIME_PRECISION): Now of type int, not long long int,
53227         so that the code works even with ancient cpp.  Portability problem
53228         with GCC 2.7.2.1 reported by Thomas M.Ott.
53229
53230 2005-09-27  Paul Eggert  <eggert@cs.ucla.edu>
53231
53232         * modules/regex (Depends-on): Add strcase.
53233
53234         * modules/gethostname (Licence): Change from GPL to LGPL, since
53235         gethostname.c is a trivial implementation of a standard library
53236         function.
53237         * modules/poll (License): Change from GPL to LGPL, since it's
53238         derived from LGPL code.
53239
53240 2005-09-27  Jim Meyering  <jim@meyering.net>
53241
53242         * lib/getcwd.c: Change #ifdef<TAB>HAVE_CONFIG_H to #ifdef
53243         HAVE_CONFIG_H.
53244
53245         * lib/intprops.h (signed_type_or_expr__): Define.
53246         (INT_STRLEN_BOUND) [__GNUC__]: Use a slightly tighter bound
53247         for unsigned types.
53248
53249 2005-09-26  Paul Eggert  <eggert@cs.ucla.edu>
53250
53251         * lib/verify.h (verify_expr): Remove, replacing with:
53252         (verify_true): New macro that returns true instead of void.
53253         (verify_type__): Remove.
53254         (verify): Use verify_true rather than verify_type__.
53255
53256 2005-09-26  Bruno Haible  <bruno@clisp.org>
53257
53258         * modules/mbchar (Include): Mention that HAVE_WCHAR_H && HAVE_WCTYPE_H
53259         is necessary.
53260         (lib_SOURCES): Remove mbchar.c.
53261         * modules/mbfile (Include): Mention that HAVE_MBRTOWC is necessary.
53262         (Files): Add m4/mbrtowc.m4.
53263         * modules/mbiter: Likewise.
53264         * modules/mbuiter: Likewise.
53265
53266 2005-09-26  Bruno Haible  <bruno@clisp.org>
53267
53268         * m4/mbchar.m4 (gl_MBCHAR): Check for wchar.h and wctype.h. Don't
53269         compile mbchar.c if they are not both present.
53270         * m4/mbfile.m4 (gl_MBFILE): Require gl_FUNC_MBRTOWC.
53271         * m4/mbiter.m4 (gl_MBITER): Likewise.
53272         * m4/strstr.m4 (gl_PREREQ_STRSTR): Use AC_REQUIRE.
53273         * m4/strcasestr.m4 (gl_PREREQ_STRCASESTR): Likewise.
53274         * m4/strcase.m4 (gl_PREREQ_STRCASECMP): Likewise.
53275
53276 2005-09-25  Jim Meyering  <jim@meyering.net>
53277
53278         * modules/inet_ntop (Depends-on): Add socklen, since inet_ntop.c
53279         also uses socklen_t.
53280
53281 2005-09-24  Paul Eggert  <eggert@cs.ucla.edu>
53282
53283         * lib/utimens.c (ENOSYS): Define if not already defined.
53284         (futimens): Support having a null PATH if the file descriptor
53285         is nonnegative.
53286
53287         * lib/regex_internal.h (__GNUC_PREREQ, always_inline, inline, pure):
53288         Remove.
53289         (__attribute): Define to empty unless GCC 3.1 or later.
53290         This works around a core dump on OpenBSD 3.4, which has GCC
53291         2.95.3, which dumps core when given __attribute__(()).  It also
53292         simplifies other tests, since we really don't want to bother with
53293         worrying about which ancient version of GCC supported what.
53294         Original problem reported by Yoann Vandoorselaere, with part of
53295         the fix suggested by Derek Price.
53296
53297 2005-09-24  Jim Meyering  <jim@meyering.net>
53298
53299         * lib/verify.h (verify_type__): Use `unsigned int' as the bitfield type
53300         so we can once again use a positive bitfield width of 1 -- now we
53301         don't have to explain why we were using a bitfield width of 2.
53302
53303 2005-09-23  Paul Eggert  <eggert@cs.ucla.edu>
53304
53305         * m4/regex.m4 (gl_REGEX): If replacing, define regcomp to rpl_regcomp,
53306         and similarly for the other external symbols.  Problem reported
53307         by James Gallager.
53308
53309         * m4/fnmatch.m4 (_AC_FUNC_FNMATCH_IF): Catch Sun Studio 10u1 on Linux
53310         bug reported by Jim Meyering.
53311
53312         * m4/utimens.m4 (gl_UTIMENS): Check for futimesat.
53313         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Undo previous change;
53314         not needed, since socklen is a prerequisite module.
53315
53316 2005-09-23  Paul Eggert  <eggert@cs.ucla.edu>
53317
53318         * lib/getaddrinfo.c [HAVE_NETINET_IN_H]: Include <netinet/in.h>.
53319         Problem reported by Eric Blake.
53320         (getaddrinfo): Initialize se so that it's not garbage.
53321         Redo internal storage allocation so that it doesn't make unportable
53322         assumptions about alignment.
53323         Fix a memory leak.
53324
53325         * lib/utimens.c (futimens): Use futimesat if available.
53326         Prefer it to futimes since it doesn't have the futimes bug.
53327
53328         * lib/verify.h (GL_CONCAT0, GL_CONCAT): Remove.
53329         (verify): Don't use the __LINE__ trick, as it doesn't work in general.
53330         Instead, declare a function that returns a pointer to an array,
53331         and use verify_type__ to declare the size of the array.
53332         Problem and germ of a solution reported by Bruno Haible.
53333         (verify_type__): Use 2, not 1, for bitfield size, to avoid
53334         a warning with Irix 6.5 cc.  Problem reported by Bruno Haible.
53335
53336 2005-09-23  Jim Meyering  <jim@meyering.net>
53337
53338         Sync from coreutils.
53339         Correct build failure (socklen_t not defined) on at least
53340         mips-sgi-irix6.5 and alphaev67-dec-osf5.1.
53341         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Require gl_SOCKLEN_T.
53342
53343 2005-09-23  Jim Meyering  <jim@meyering.net>
53344
53345         * modules/getaddrinfo (Depends-on): Add socklen.
53346
53347 2005-09-23  Bruno Haible  <bruno@clisp.org>
53348
53349         * tests/test-verify.c: New file.
53350
53351 2005-09-22  Paul Eggert  <eggert@cs.ucla.edu>
53352
53353         Sync from coreutils.
53354
53355         * modules/argmatch (Depends-on): Add verify.
53356         * modules/getloadavg (Depends-on): Depend on fcntl-safer, not
53357         unistd-safer.
53358         * modules/save-cwd (Depends-on): Likewise.
53359
53360         * modules/openat (Files): Add lib/openat-die.c.
53361         (Depends-on): Remove error, exitfail.
53362         Add dirname.
53363
53364         * modules/verify: New file.
53365         * MODULES.html.sh (Diagnostics <assert.h>): New section,
53366         with "verify" module.
53367
53368 2005-09-22  Paul Eggert  <eggert@cs.ucla.edu>
53369
53370         Sync from coreutils.
53371
53372         * m4/backupfile.m4, calloc.m4, chown.m4, cloexec.m4, dup2.m4:
53373         * m4/fileblocks.m4, free.m4, ftruncate.m4, getcwd.m4, getpagesize.m4:
53374         * m4/getugroups.m4, group-member.m4, idcache.m4, link-follow.m4:
53375         * m4/mkstemp.m4, mktime.m4, mountlist.m4, nanosleep.m4, pathmax.m4:
53376         * m4/physmem.m4, posixver.m4, putenv.m4, safe-read.m4, same.m4:
53377         * m4/save-cwd.m4, stdio-safer.m4, unistd-safer.m4, unlinkdir.m4:
53378         * m4/userspec.m4, xgetcwd.m4, xreadlink.m4:
53379         Don't bother checking for string.h, stdlib.h, unistd.h.
53380         * m4/fts.m4 (gl_FUNC_FTS_CORE): Don't require
53381         AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK; that's now the lstat
53382         module's job.
53383         * m4/jm-macros.m4 (gl_MACROS): Likewise.
53384         * m4/prereq.m4 (gl_PREREQ): Add gl_FUNC_LSTAT.
53385
53386         * m4/getdate.m4 (gl_C_COMPOUND_LITERALS): New macro.
53387         (gl_GETDATE): Use it.
53388
53389         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS): Don't bother checking for unistd.h.
53390
53391 2005-09-22  Paul Eggert  <eggert@cs.ucla.edu>
53392
53393         Sync from coreutils.
53394
53395         * lib/.cppi-disable: Add regcomp.c, regex_internal.c, regex_internal.h,
53396         stat-time.h.
53397         * lib/argmatch.h: Include verify.h
53398         (ARGMATCH_VERIFY): Use verify rather than rolling our own.
53399         (ARGMATCH_ASSERT): Remove; unused.
53400         * lib/canonicalize.c: Assume STDC_HEADERS.
53401         * lib/exclude.c: Include "strcase.h".
53402         * lib/regex_internal.h [!defined _LIBC]: Likewise.
53403         * lib/getusershell.c: Include stdio--.h rather than stdio.h
53404         and stdio-safer.h.
53405         (getusershell): Call fopen, not fopen_safer.
53406         * lib/save-cwd.c: Include fcntl--.h rather than fcntl.h.
53407         Do not include unistd-safer.h.
53408         (save_cwd): Don't call fd_safer; no longer needed
53409         now that we include fcntl--.h.
53410
53411         * lib/getdate.y (relative_time): New type.
53412         (RELATIVE_TIME_0): New constant.
53413         (parser_control): Use relative_time instead of doing it ourselves.
53414         (%union): Add new relative_time rel member.
53415         (tYEAR_UNIT, tMONTH_UNIT, tHOUR_UNIT, tMINUTE_UNIT, tSEC_UNIT):
53416         Now typeless.
53417         (relunit, relunit_snumber): Now of type rel.
53418         (zone, rel, relunit, get_date): Adjust to above changes.
53419
53420         * lib/getloadavg.c: Include fcntl--.h rather than fcntl.h.
53421         Do not include unistd-safer.h.
53422         (getloadavg): Don't call fd_safer; no longer needed
53423         now that we include fcntl--.h.
53424
53425         * lib/mkdir-p.c (ENOSYS): Define to EEXIST if not defined.
53426         (make_dir_parents): Treat ENOSYS like EEXIST.
53427
53428         Improve quality of diagnostics on restore_cwd failure.
53429         * lib/mkdir-p.h (make_dir): Remove.  All uses replaced by mkdir.
53430         (make_dir_parents): Last arg is now int * (for errno), not bool *.
53431         * lib/mkdir-p.c (make_dir, make_dir_parents): Likewise.
53432         Rewrite "mkdir -p" algorithm to avoid the need for "stat"
53433         each time through the loop.  Do not diagnose restore_cwd failure;
53434         that is the caller's job (and perhaps the caller does not care).
53435
53436         * lib/mkdir-p.c (CLEANUP_CWD, CLEANUP): Remove.
53437         (make_dir_parents): Revamp to avoid need for CLEANUP_CWD, CLEANUP.
53438         If the file already exists but is not a directory, don't bother
53439         to try to make its parents.
53440         Close potential file descriptor leak if we can't chdir("/") (!).
53441         Don't always return true if chdir($PWD) fails; return true only
53442         if the requested action was done successfully (except for the
53443         chdir($PWD)).
53444         Don't log final directory unless we actually made it.
53445         Refactor to avoid duplicate code to fix up permissions.
53446         Don't attempt to fix up parent permissions if chdir($PWD) fails.
53447
53448         * lib/strftime.c (my_strftime): Rewrite the previous change slightly,
53449         to make it a bit faster and (I hope) clearer.
53450         * lib/strftime.c (my_strftime): Add support for %:z, %::z, %:::z.
53451         Fix bug in formats like %2N.
53452
53453         * lib/verify.h: New file.
53454
53455 2005-09-22  Paul Eggert  <eggert@cs.ucla.edu>
53456
53457         Sync from coreutils.
53458         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Check for netinet/in.h.
53459
53460 2005-09-22  Jim Meyering  <jim@meyering.net>
53461
53462         Sync from coreutils.
53463
53464         * m4/lstat.m4 (gl_FUNC_LSTAT):
53465         Use AC_LIBSOURCES to require lstat.c and lstat.h.
53466         Remove obsolete comment.
53467         * m4/xreadlink.m4: Use AC_LIBSOURCES and AC_LIBOBJ.
53468         * m4/xstrtod.m4: Likewise.
53469
53470         * m4/openat.m4 (gl_FUNC_OPENAT): Add openat-die.c.
53471
53472 2005-09-22  Jim Meyering  <jim@meyering.net>
53473
53474         Sync from coreutils.
53475
53476         * lib/backupfile.c: Use ARGMATCH_VERIFY, just in case.
53477
53478         * lib/posixtm.c (posixtime) [lint]: Initialize *all* of tm0, not just
53479         the .tm_year member, since otherwise gcc-4.0 would now warn about
53480         tm_zone, tm_gmtoff, tm_isdst, tm_yday, tm_wday.
53481
53482         * lib/quotearg.c (quotearg_n_options): Change code to be suboptimal, in
53483         order to avoid an unsuppressible warning from gcc on 64-bit systems.
53484
53485         * lib/getdate.y (get_date): Undo part of the 2005-04-04 change, so that
53486         the command "date -d'2005-03-27 +1 day'" succeeds once again, even
53487         when run in a time zone for which daylight savings time is in effect
53488         for the starting date.
53489
53490         * lib/mkdir-p.c (make_dir_parents): Don't let a failed chdir($PWD)
53491         stop us from restricting permissions of just-created absolute-named
53492         directories.
53493         * lib/mkdir-p.c (CLEANUP_CWD): Return *true*, not false when failing
53494         to restore initial working directory.
53495         * lib/mkdir-p.c (make_dir_parents): New parameter:
53496         different_working_dir, to tell caller if/when we change the working
53497         directory and are unable to return to the initial one.
53498         * lib/mkdir-p.h (make_dir_parents): Update prototype.
53499         * lib/mkdir-p.c (CLEANUP_CWD): Change one more `return 1' to
53500         `return false'.  This fixes a bug introduced on 2004-07-30.
53501
53502         * lib/openat.c (fdopendir): Be sure to close the supplied
53503         file descriptor before returning.  This makes our replacement
53504         implementation a little closer to Solaris's, where fdopendir
53505         ties the file descriptor to the returned DIR* pointer.
53506         * lib/openat.c (unlinkat): New function.
53507         * lib/openat.h (unlinkat): Add prototype.
53508         * lib/openat-die.c (openat_save_fail): Rename from openat_save_die.
53509         (openat_restore_fail): Rename from openat_restore_die.
53510         * lib/openat.c, openat.h: Reflect s/_die/_fail/ renaming.
53511
53512         Provide an alternative to exiting immediately upon save_cwd or
53513         restore_cwd failure.  Now, an application can arrange e.g.,
53514         to perform a longjump in that case.
53515         * lib/openat.c: Include dirname.h.
53516         Use IS_ABSOLUTE_FILE_NAME rather than testing for leading slash.
53517         (rpl_openat, fdopendir, fstatat): Call openat_save_die
53518         and openat_restore_die rather than calling error directly.
53519         Don't include "error.h" or "exitfail.h"; they're no longer needed.
53520
53521         * lib/openat-die.c (openat_save_die, openat_restore_die): New file.
53522         * lib/openat.h (openat_save_die, openat_restore_die): Declare and
53523         define.
53524
53525         * lib/strftime.c [FPRINTFTIME] (fprintftime): Provide a new interface:
53526         size_t fprintftime (FILE *fp, char const *fmt, struct tm const *tm,
53527                             int utc, int nanoseconds);
53528         Background:
53529         date should not have to allocate a megabyte of virtual memory to
53530         handle a format argument like +%1048575T.  When implemented with
53531         strftime, it must allocate such a buffer, use strftime to fill it
53532         in, print it, then free it.
53533         With fprintftime, it simply prints everything and exits.
53534         With no need for memory allocation, that's one fewer way to fail.
53535         * lib/strftime.c (my_strftime): Parse the colons of %:::z *after* the
53536         optional field width, not before, so we accept %9:z, not %:9z.
53537         (my_strftime): Be sure to use L_('x') for literals.
53538
53539         * lib/backupfile.c, lib/canon-host.c, lib/canonicalize.c, lib/chown.c:
53540         * lib/cloexec.c, lib/dup-safer.c, lib/dup2.c, lib/euidaccess.c:
53541         * lib/fd-safer.c, lib/fileblocks.c, lib/fopen-safer.c, lib/fsusage.c:
53542         * lib/ftruncate.c, lib/getcwd.c, lib/getcwd.h, lib/getloadavg.c:
53543         * lib/getopt_.h, lib/getpagesize.h, lib/getugroups.c:
53544         * lib/group-member.c, lib/human.h, lib/idcache.c, lib/mkdir-p.c:
53545         * lib/mountlist.c, lib/nanosleep.c, lib/pathmax.h, lib/physmem.c:
53546         * lib/posixver.c, lib/putenv.c, lib/raise.c, lib/safe-read.c:
53547         * lib/same.c, lib/save-cwd.c, lib/setenv.c, lib/settime.c:
53548         * lib/tempname.c, lib/unlinkdir.c, lib/unsetenv.c, lib/userspec.c:
53549         * lib/xgethostname.c, lib/xreadlink.c:
53550         Assume HAVE_UNISTD_H, i.e., include <unistd.h> unconditionally.
53551
53552         * lib/chown.c, lib/cloexec.c, lib/dup-safer.c, lib/dup2.c:
53553         * lib/fsusage.c, lib/getcwd.c, lib/getloadavg.c, lib/mountlist.c:
53554         * lib/openat.h, lib/save-cwd.c, lib/tempname.c:
53555         Assume HAVE_FCNTL_H (i.e., include <fcntl.h> unconditionally,
53556         and don't include <sys/file.h>).
53557
53558 2005-09-22  Eric Blake  <ebb9@byu.net>  (tiny change)
53559
53560         Sync from coreutils.
53561
53562         * lib/getloadavg.c (getloadavg) [__CYGWIN__]: Port to cygwin.
53563         [__linux__]: Allocate a big enough buffer for /proc/loadavg.
53564         [!LDAV_DONE]: Avoid unused variable warning.
53565
53566 2005-09-21  Bruno Haible  <bruno@clisp.org>
53567
53568         * lib/unicodeio.h (unicode_to_mb): New declaration.
53569
53570 2005-09-20  Derek Price  <derek@ximbiot.com>
53571
53572         * lib/getaddrinfo.c: Don't include <netdb.h> included from
53573         getaddrinfo.h.
53574
53575 2005-09-20  Bruno Haible  <bruno@clisp.org>
53576
53577         * gnulib-tool: Remove trailing slashes from the values specified for
53578         --source-base, --m4-base, --tests-base, --aux-dir.
53579         Suggested by Simon Josefsson <jas@extundo.com>.
53580
53581 2005-09-20  Bruno Haible  <bruno@clisp.org>
53582
53583         * gnulib-tool (func_all_modules, func_modules_transitive_closure,
53584         func_modules_to_filelist, func_import, func_create_testdir): Make all
53585         sorting results locale-independent, so that gnulib-cache.m4 doesn't
53586         change when gnulib-tool is invoked in a different locale.
53587
53588 2005-09-19  Simon Josefsson  <jas@extundo.com>
53589
53590         * m4/socklen.m4: Fix typo.
53591
53592 2005-09-19  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
53593
53594         Use a consistent style for including <config.h>.
53595         * lib/__fpending.c, lib/acl.c, lib/argmatch.c, lib/argp-help.c,
53596         lib/argp-parse.c, lib/argp-pvh.c, lib/backupfile.c, lib/basename.c,
53597         lib/c-stack.c, lib/calloc.c, lib/check-version.c, lib/cloexec.c,
53598         lib/closeout.c, lib/copy-file.c, lib/creat-safer.c, lib/cycle-check.c,
53599         lib/dirfd.c, lib/dirname.c, lib/dup-safer.c, lib/dup2.c,
53600         lib/euidaccess.c, lib/exclude.c, lib/exitfail.c, lib/fatal-signal.c,
53601         lib/fd-safer.c, lib/file-type.c, lib/fileblocks.c, lib/filemode.c,
53602         lib/filenamecat.c, lib/findprog.c, lib/fnmatch.c, lib/fopen-safer.c,
53603         lib/free.c, lib/fsusage.c, lib/ftruncate.c, lib/full-write.c,
53604         lib/fwriteerror.c, lib/getaddrinfo.c, lib/getcwd.c, lib/getdelim.c,
53605         lib/getline.c, lib/getlogin_r.c, lib/getndelim2.c, lib/getnline.c,
53606         lib/getopt1.c, lib/getpass.c, lib/group-member.c, lib/hard-locale.c,
53607         lib/hash-pjw.c, lib/hash.c, lib/human.c, lib/idcache.c,
53608         lib/inet_ntop.c, lib/isdir.c, lib/long-options.c, lib/malloc.c,
53609         lib/memcasecmp.c, lib/memcmp.c, lib/memcoll.c, lib/memcpy.c,
53610         lib/memmove.c, lib/mkdir-p.c, lib/modechange.c, lib/mountlist.c,
53611         lib/open-safer.c, lib/physmem.c, lib/pipe-safer.c, lib/pipe.c,
53612         lib/poll.c, lib/posixver.c, lib/progname.c, lib/progreloc.c,
53613         lib/putenv.c, lib/quote.c, lib/quotearg.c, lib/readline.c,
53614         lib/readlink.c, lib/realloc.c, lib/regex.c, lib/rename.c, lib/rmdir.c,
53615         lib/rpmatch.c, lib/safe-read.c, lib/same.c, lib/save-cwd.c,
53616         lib/savedir.c, lib/sig2str.c, lib/strcspn.c, lib/strerror.c,
53617         lib/stripslash.c, lib/strncasecmp.c, lib/strndup.c, lib/strnlen.c,
53618         lib/strnlen1.c, lib/strsep.c, lib/strstr.c, lib/strtod.c,
53619         lib/strtoimax.c, lib/strtol.c, lib/strverscmp.c, lib/tempname.c,
53620         lib/time_r.c, lib/userspec.c, lib/utimecmp.c, lib/version-etc-fsf.c,
53621         lib/version-etc.c, lib/wait-process.c, lib/xalloc-die.c, lib/xgetcwd.c,
53622         lib/xmalloc.c, lib/xmemcoll.c, lib/xnanosleep.c, lib/xreadlink.c,
53623         lib/xsetenv.c, lib/xstrndup.c, lib/xstrtoimax.c, lib/xstrtol.c,
53624         lib/xstrtoumax.c, lib/yesno.c:
53625         Standardize inclusion of config.h.
53626         * lib/__fpending.h, lib/dirfd.h, lib/getdate.h, lib/human.h,
53627         lib/inttostr.h:  Removed inclusion of config.h from header files.
53628         * lib/inttostr.c:  Adjusted in-tree users.
53629         * lib/timespec.h: Remove superfluous warning to include config.h.
53630         * lib/atexit.c, lib/chdir-long.c, lib/chown.c, lib/fchown-stub.c,
53631         lib/getgroups.c, lib/gettimeofday.c, lib/lchown.c, lib/lstat.c,
53632         lib/mkdir.c, lib/mkstemp.c, lib/nanosleep.c, lib/openat.c, lib/raise.c,
53633         lib/readtokens0.c, lib/readutmp.c, lib/unlinkdir.c: Guard inclusion of
53634         config.h with HAVE_CONFIG_H.
53635
53636 2005-09-19  Jim Meyering  <jim@meyering.net>
53637
53638         * modules/pathmax (License): Change to LGPL.
53639
53640 2005-09-19  Derek Price  <derek@ximbiot.com>
53641
53642         * config/srclist.txt: glibc's glob.h is now in lib/glob-libc.h.
53643
53644 2005-09-19  Bruno Haible  <bruno@clisp.org>
53645
53646         * gnulib-tool (import): Provide default for --tests-base.
53647
53648 2005-09-19  Bruno Haible  <bruno@clisp.org>
53649
53650         * doc/quote.texi: New file, extracted from gnulib.texi.
53651         * doc/ctime.texi: New file, extracted from gnulib.texi.
53652         * doc/inet_ntoa.texi: New file, extracted from gnulib.texi.
53653         * doc/gnulib-tool.texi: New file, extracted from gnulib.texi.
53654         * doc/gnulib.texi: Include them.
53655
53656 2005-09-18  Bruno Haible  <bruno@clisp.org>
53657
53658         Portability fix.
53659         * gnulib-tool (func_readlink): New function.
53660         (func_ln_if_changed): Use it.
53661
53662 2005-09-18  Bruno Haible  <bruno@clisp.org>
53663
53664         * gnulib-tool: Support --with-tests also with --import.
53665         (func_emit_tests_Makefile_am): Use variables $m4base and $testsbase.
53666         (func_import): Use variables $testsbase and $inctests. Emit a
53667         gl_TESTS_BASE form into gnulib-cache.m4. Create $testsbase/Makefile.am.
53668         Remind the user to add AC_CONFIG_FILES($testsdir/Makefile) and
53669         SUBDIRS += $testsdir.
53670         (func_create_testdir): Update.
53671
53672 2005-09-18  Bruno Haible  <bruno@clisp.org>
53673
53674         * gnulib-tool: Revise --dry-run implementation. Use variable $doit
53675         instead of $dry_run.
53676         (func_cp_if_changed, func_mv_if_changed): Remove functions.
53677         (func_ln_if_changed): Don't handle dry-run here.
53678         (func_import): In dry-run mode, detect more precisely which actions
53679         would be performed, and don't use "...ing" verbs.
53680
53681 2005-09-18  Bruno Haible  <bruno@clisp.org>
53682
53683         * gnulib-tool (func_tmpdir): New function, taken from GNU gettextize.
53684         (func_import): Use join on two temporary files instead of three nested
53685         loops, in order to determine which files are new or old.
53686
53687 2005-09-18  Bruno Haible  <bruno@clisp.org>
53688
53689         * gnulib-tool (func_import): Comment out code that spits out the
53690         new files with --dry-run.
53691
53692 2005-09-18  Bruno Haible  <bruno@clisp.org>
53693
53694         * doc/gnulib.texi (Invoking gnulib-tool): 50% rewritten.
53695
53696 2005-09-16  Paul Eggert  <eggert@cs.ucla.edu>
53697
53698         * lib/stat-time.h: New file.
53699         * lib/timespec.h (ST_TIME_CMP_NS, ST_TIME_CMP, ATIME_CMP, CTIME_CMP):
53700         (MTIME_CMP, TIMESPEC_NS): Remove.  Now done by stat-time.h,
53701         in a different way.
53702         (timespec_cmp): New function.
53703         * lib/utimecmp.c: Include stat-time.h.
53704         (SYSCALL_RESOLUTION): Depend on whether various struct stat
53705         members exist, not on the obsolescent ST_MTIM_NSEC.
53706         (utimecmp): Use the new stat-time functions rater than TIMESPEC_NS.
53707
53708 2005-09-16  Paul Eggert  <eggert@cs.ucla.edu>
53709
53710         * config/srclist.txt: Remove glibc bug 1033 and uncomment mktime.c.
53711
53712 2005-09-16  Paul Eggert  <eggert@cs.ucla.edu>
53713
53714         * MODULES.html.sh (File system functions): Add stat-time.
53715         * modules/stat-time: New file.
53716         * modules/timespec (Files): Remove m4/st_mtim.m4; this
53717         is now done in a different way, by the stat-time module.
53718         * modules/utimecmp (Depends-on): Add stat-time.
53719
53720 2005-09-15  Paul Eggert  <eggert@cs.ucla.edu>
53721
53722         * m4/st_mtim.m4: Remove.  Superseded by...
53723         * m4/stat-time.m4: New file.
53724         * m4/timespec.m4 (gl_TIMESPEC): Require AC_C_INLINE.
53725         Do not invoke AC_STRUCT_ST_MTIM_NSEC; no longer needed.
53726
53727 2005-09-15  Derek Price  <derek@ximbiot.com>
53728
53729         * m4/strstr.m4 (gl_FUNC_STRSTR): Don't define strstr here.
53730
53731 2005-09-15  Derek Price  <derek@ximbiot.com>
53732
53733         * lib/regex_internal.h: Blank `pure' for GNUC < 3.
53734         * lib/regex_internal.c: Ditto, using this...
53735         (__GNUC_PREREQ): ...new macro.
53736         * lib/regcomp.c, regexec.c: Blank `always_inline' for GNUC < 3.1
53737         using...
53738         (__GNUC_PREREQ): ...this new macro.
53739
53740         * lib/strstr.h: Include string.h. Define strstr as a macro here.
53741
53742 2005-09-15  Derek Price  <derek@ximbiot.com>
53743             Paul Eggert  <eggert@cs.ucla.edu>
53744
53745         * lib/regcomp.c, regexec.c, regex_internal.c: Back out previous
53746         changes, consolidating in...
53747         * lib/regex_internal.h: ...this file.
53748
53749 2005-09-13  Jim Meyering  <jim@meyering.net>
53750
53751         * lib/canon-host.c: Filter through gnu indent and reword comments
53752         slightly.
53753         * lib/canon-host.h (ch_strerror_r): Tweak cpp indentation and spacing.
53754
53755 2005-09-13  Derek Price  <derek@ximbiot.com>
53756
53757         * lib/canon-host.c (canon_host_r): Set *cherror on memory allocation
53758         failure.
53759         Reported by Jim Meyering  <jim@meyering.net>.
53760
53761 2005-09-12  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>  (tiny change)
53762
53763         * lib/base64.c: Typo.
53764         (base64_encode): Put b64str in initialized data section.
53765
53766 2005-09-12  Paul Eggert  <eggert@cs.ucla.edu>
53767
53768         Merge glibc and coreutils changes into gnulib, plus a few
53769         extra fixes.
53770         * lib/md5.c: Use #error rather than a string.
53771         (CYCLIC): New macro, from glibc source.  Use it instead of rol.
53772         * lib/md5.h (__GNUC_PREREQ, __THROW): Define if not defined already.
53773         (__attribute__): Define to empty for non recent-GCC.
53774         (__md5_buffer, __md5_finish_ctx, __md5_init_ctx, __md5_process_block):
53775         (__md5_process_bytes, __md5_read_ctx, __md5_stream):
53776         Renamed from their non-__ counterparts, with new macros replacing
53777         them if not _LIBC.  Add __THROW attribute.
53778         (rol): Remove.
53779         (struct md5_ctx): Align buffer if using GCC.
53780         * lib/sha1.h (struct sha1_ctx): Likewise.
53781         * lib/sha1.c (SWAP): Renamed from the NOTSWAP.  All uses changed.
53782         The old name was backwards.
53783         (NOTSWAP): Remove; not used.
53784         (rol): New macro, moved here from md5.h.
53785         (sha1_process_block): Remove a FIXME that doesn't make sense.
53786
53787 2005-09-12  Derek Price  <derek@ximbiot.com>
53788
53789         Return usable errors from canon-host.
53790         * lib/canon-host.h: New file.
53791         * lib/canon-host.c (canon_host): Wrap...
53792         (canon_host_r): ...this new function, which now relies exclusively on
53793         getaddrinfo.
53794         (ch_strerror): New function.
53795         (last_cherror): New global.
53796         * lib/getaddrinfo.c: Move include of getaddrinfo.h first to test
53797         interface.
53798         (getaddrinfo): Add AI_CANONNAME functionality.  Don't do arithmetic on
53799         void *.
53800         (freeaddrinfo): Free ai->ai_canonname when set.
53801
53802 2005-09-12  Derek Price  <derek@ximbiot.com>
53803
53804         Make canon-host require getaddrinfo.
53805         * m4/canon-host.m4 (gl_CANON_HOST): Remove most dependencies.
53806         AC_LIBSOURCE canon-host.h.  Call...
53807         (gl_PREREQ_CANON_HOST): ...this new function, which requires
53808         gl_GETADDRINFO.
53809         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Compile gai_strerror when needed.
53810
53811 2005-09-12  Derek Price  <derek@ximbiot.com>
53812
53813         * modules/canon-host: Add canon-host.h.  Depend on getaddrinfo.  Make
53814         LGPL.
53815         * modules/getaddrinfo: Add link to opengroup spec.  Depend on strdup.
53816
53817 2005-09-12  Derek Price  <derek@ximbiot.com>
53818
53819         * lib/gai_strerror.c: Include config.h when available.  Include
53820         getaddrinfo.h before other headers to test interface.
53821         Reported by Larry Jones <lawrence.jones@ugs.com>.
53822
53823 2005-09-12  Derek Price  <derek@ximbiot.com>
53824             Paul Eggert  <eggert@cs.ucla.edu>
53825
53826         * modules/glob (Files): Add glob-libc.h.
53827
53828 2005-09-12  Derek Price  <derek@ximbiot.com>
53829             Paul Eggert  <eggert@cs.ucla.edu>
53830
53831         * m4/glob.m4 (gl_GLOB_SUBSTITUTE): AC_LIBSOURCES for glob.c,
53832         glob_.h, glob-libc.h.
53833         (gl_PREREQ_GLOB): Remove _SYS_CDEFS_H hack; no longer needed.
53834
53835 2005-09-12  Derek Price  <derek@ximbiot.com>
53836             Paul Eggert  <eggert@cs.ucla.edu>
53837
53838         * lib/glob-libc.h: Renamed from glob_.h.  The new version is
53839         taken from libc's glob.h, except with '#ifdef __GLOB_GNULIB'
53840         protecting things that should be done only in gnulib contexts.
53841         * lib/glob_.h: New file, containing only the glob things needed for
53842         gnulib.
53843         (GLOB_PREFIX): Remove.  All uses changed to look for __GLOB_GNULIB.
53844         (__GLOB_CONCAT, __GLOB_XCONCAT, __GLOB_ID): Remove; no longer needed.
53845         (glob, globfree, glob_pattern_p): Now defined simply in terms of
53846         rpl_glob, rpl_globfree, rpl_glob_pattern_p.
53847         (__GLOB_GNULIB): New macro, to keep the glob.h changes clearer
53848         and to respect the namespace rules better.
53849
53850 2005-09-08  Simon Josefsson  <jas@extundo.com>
53851
53852         * modules/socklen: New file.
53853
53854 2005-09-08  Simon Josefsson  <jas@extundo.com>
53855
53856         * m4/socklen.m4: New file.
53857
53858 2005-09-08  Paul Eggert  <eggert@cs.ucla.edu>
53859
53860         * modules/utimens (Files): Add m4/utimbuf.m4, since
53861         m4/utimens.m4 requires gl_CHECK_TYPE_STRUCT_UTIMBUF.
53862         Reported by Sergey Poznyakoff.
53863
53864 2005-09-08  Paul Eggert  <eggert@cs.ucla.edu>
53865
53866         * lib/glob.c (glob, globfree, __glob_pattern_p): Use old-style function
53867         definitions, since that's the preferred style in glibc.
53868         Fix a minor spacing issue, and update copyright notice to match
53869         glibc's.
53870
53871 2005-09-08  Paul Eggert  <eggert@cs.ucla.edu>
53872
53873         * config/srclist.txt: Remove glibc bug 1061; it's been fixed.
53874
53875 2005-09-06  Simon Josefsson  <jas@extundo.com>
53876
53877         * lib/getpass.c (getpass): Fix typo, test for HAVE_TCSETATTR and not
53878         TCSETATTR.  Reported by Derek Price <derek@ximbiot.com>.
53879
53880 2005-09-06  Paul Eggert  <eggert@cs.ucla.edu>
53881
53882         * lib/regex_internal.h (bitset_not): Add parens to avoid gcc -Wall
53883         warning.
53884
53885 2005-09-06  Paul Eggert  <eggert@cs.ucla.edu>
53886
53887         * config/srclist.txt: Add glibc bug 1302.
53888
53889 2005-09-05  Paul Eggert  <eggert@cs.ucla.edu>
53890
53891         Change bitset word type from unsigned int to unsigned long int,
53892         as this has better performance on typical 64-bit hosts.
53893         Port bitset code to hosts with unusual word sizes.
53894         * lib/regcomp.c (build_equiv_class, build_charclass, build_range_exp):
53895         (build_collating_symbol):
53896         Prefer bitset to re_bitset_ptr_t in prototypes, when the actual
53897         argument is a bitset.  This is merely a style issue, but it makes
53898         it clearer that an entire array is expected.
53899         (re_compile_fastmap_iter, init_dfa, init_word_char, optimize_subexps):
53900         * lib/regcomp.c (lower_subexp, parse_bracket_exp, built_charclass_op):
53901         Port to the case where bitset_word is not the same as unsigned int.
53902         * lib/regex_internal.h (bitset_set, bitset_clear, bitset_contain):
53903         (bitset_not, bitset_merge, bitset_set_all, bitset_mask):
53904         Likewise.
53905         * lib/regexec.c (check_dst_limits_calc_pos_1,
53906         check_subexp_matching_top):
53907         (build_trtable, group_nodes_into_DFAstates):
53908         Likewise.
53909         * lib/regcomp.c (re_compile_fastmap_iter, utf8_sb_map, optimize_utf8):
53910         Don't assume that SBC_MAX is a multiple of BITSET_WORD_BITS.
53911         * lib/regex_internal.h (bitset_set_all, bitset_not): Likewise.
53912         * lib/regexec.c (group_nodes_into_DFAstates): Likewise.
53913         * lib/regcomp.c (utf8_sb_map): Don't assume UINT_MAX == 0xffffffff.
53914         * lib/regcomp.c (optimize_subexps, lower_subexp):
53915         Work even if bitset_word has holes in its bitwise representation.
53916         * lib/regex_internal.h (BITSET_WORD_BITS): Likewise.
53917         * lib/regexec.c (check_dst_limits_calc_pos_1,
53918         check_subexp_matching_top):
53919         Likewise.
53920         * lib/regex_internal.c (re_string_reconstruct):
53921         Don't assume UCHAR_MAX == 255.
53922         * lib/regex_internal.h (bitset_set_all): Likewise.
53923         * lib/regex_internal.h (BITSET_WORD_BITS): Renamed from UINT_BITS.
53924         All uses changed.
53925         (BITSET_WORDS): Renamed from BITSET_UINTS.  All uses changed.
53926         (bitset_word): New type, replacing 'unsigned int' for bitset uses.
53927         All uses changed.
53928         (BITSET_WORD_MAX): New macro.
53929         (bitset_set, bitset_clear, bitset_contain, bitset_empty):
53930         (bitset_set_all, bitset_copy):  Now inline functions, not macros.
53931         (bitset_empty, bitset_copy):
53932         Prefer sizeof (bitset) to multiplying it out ourselves.
53933         (bitset_not_merge): Remove; unused.
53934         (bitset_contain): Return bool, not unsigned int with one bit on.
53935         All callers changed.
53936         * lib/regexec.c (build_trtable): Don't assume bitset has no stricter
53937         alignment than re_node_set; do this by defining a new internal
53938         type struct dests_alloc and using it to allocate memory.
53939
53940 2005-09-05  Bruno Haible  <bruno@clisp.org>
53941
53942         * gnulib-tool (func_import): Fix comparison in handling of symbolic
53943         links.
53944
53945 2005-09-04  Martin Lambers  <marlam@marlam.de>  (tiny change)
53946
53947         * modules/size_max (Makefile.am): Add size_max.h
53948
53949 2005-09-04  Derek Price  <derek@ximbiot.com>
53950
53951         * gnulib-tool (func_import): Fix reversed $symbolic logic.
53952
53953 2005-09-03  Simon Josefsson  <jas@extundo.com>
53954
53955         * gnulib-tool: Fix typo.
53956
53957 2005-09-03  Simon Josefsson  <jas@extundo.com>
53958
53959         * config/srclist.txt: Add glibc bug 1293.
53960
53961 2005-09-03  Derek Price  <derek@ximbiot.com>
53962
53963         * m4/getlogin_r (gl_GETLOGIN_R): Fix cut & paste error.
53964         From Larry Jones <lawrence.jones@ugs.com>.
53965
53966 2005-09-02  Simon Josefsson  <jas@extundo.com>
53967
53968         * modules/socklen: New file.
53969
53970 2005-09-02  Simon Josefsson  <jas@extundo.com>
53971
53972         * modules/havelib: New module.
53973
53974         * modules/gettext, modules/iconv, modules/lock, modules/readline:
53975         Use havelib.
53976
53977 2005-09-02  Paul Eggert  <eggert@cs.ucla.edu>
53978
53979         Check for arithmetic overflow when calculating sizes, to prevent
53980         some buffer-overflow issues.  These patches are conservative, in the
53981         sense that when I couldn't determine whether an overflow was possible,
53982         I inserted a run-time check.
53983         * lib/regex_internal.h (re_xmalloc, re_xrealloc, re_x2realloc): New
53984         macros.
53985         (SIZE_MAX) [!defined SIZE_MAX]: New macro.
53986         (re_alloc_oversized, re_x2alloc_oversized, re_xnmalloc):
53987         (re_xnrealloc, re_x2nrealloc): New inline functions.
53988         * lib/regcomp.c (init_dfa, analyze, build_range_exp,
53989         parse_bracket_exp):
53990         (build_equiv_class, build_charclass): Check for arithmetic overflow
53991         in size expression calculations.
53992         * lib/regex_internal.c (re_string_realloc_buffers):
53993         (build_wcs_upper_buffer, re_node_set_add_intersect):
53994         (re_node_set_init_union, re_node_set_insert, re_node_set_insert_last):
53995         (re_dfa_add_node, register_state): Likewise.
53996         * lib/regexec.c (re_search_stub, re_copy_regs, re_search_internal):
53997         (prune_impossible_nodes, push_fail_stack, set_regs, check_arrival):
53998         (build_trtable, extend_buffers, match_ctx_init, match_ctx_add_entry):
53999         (match_ctx_add_subtop, match_ctx_add_sublast): Likewise.
54000
54001 2005-09-02  Paul Eggert  <eggert@cs.ucla.edu>
54002
54003         * modules/inttostr (Files): Add m4/inttypes_h.m4, m4/stdint_h.m4,
54004         m4/ulonglong.m4.  Problem reported by Martin Lambers.
54005
54006 2005-09-02  Bruno Haible  <bruno@clisp.org>
54007
54008         Support for lib vs. lib64 distinction on biarch platforms.
54009         * m4/lib-prefix.m4 (AC_LIB_PREPARE_MULTILIB): New macro.
54010         (AC_LIB_PREFIX): Require it. Use $acl_libdirstem instead of 'lib'.
54011         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): Likewise.
54012
54013 2005-09-02  Bruno Haible  <bruno@clisp.org>
54014
54015         * gnulib-tool (import): In the other first-use case, provide defaults
54016         as well.
54017
54018 2005-09-02  Bruno Haible  <bruno@clisp.org>
54019
54020         * config/srclist.txt: lib-link.m4 and lib-prefix.m4 currently have
54021         patches not yet found in the latest gettext release.
54022
54023 2005-09-01  Paul Eggert  <eggert@cs.ucla.edu>
54024
54025         * lib/glob.c (GET_LOGIN_NAME_MAX): Renamed from LOGIN_NAME_MAX,
54026         to avoid a collision with bits/local_lim.h in glibc.
54027         All uses changed.  Problem reported by Dmitry V. Levin in
54028         <http://sources.redhat.com/bugzilla/show_bug.cgi?id=1060>.
54029
54030         * lib/regex_internal.c (build_wcs_upper_buffer): Fix portability
54031         bugs in int versus size_t comparisons.
54032         (re_string_context_at): Fix bug where the code assumed that
54033         Idx is signed.
54034
54035         Use bool where appropriate.
54036         * lib/regcomp.c (re_set_fastmap): ICASE arg is bool, not int.
54037         All callers changed.
54038         (calc_eclosure_iter): Likewise, for ROOT arg.
54039         (parse_bracket_element): Likewise, for ACCEPT_HYPHEN arg.
54040         (build_charclass_op): Likewise, for NON_MATCH arg.
54041         * lib/regex_internal.c (re_string_allocate, re_string_construct):
54042         (re_string_construct_common): Likewise, for ICASE arg.
54043         * lib/regexec.c (re_search_2_stub, re_search_stub):
54044         Likewise, for RET_LEN arg.
54045         (check_matching): Likewise, for FL_LONGEST_MATCH arg.
54046         (set_regs): Likewise, for FL_BACKTRACK arg.
54047         * lib/regcomp.c (re_compile_fastmap_iter, optimize_utf8):
54048         (duplicate_node_closure, calc_inveclosure, calc_eclosure):
54049         (calc_eclosure_iter, parse_bracket_exp):
54050         Use bool for internal variables that are booleans.
54051         * lib/regexec.c (re_search_internal, check_matching,
54052         proceed_next_node):
54053         (set_regs, build_sifted_states, sift_states_bkref):
54054         (check_arrival_add_next_nodes, check_arrival_expand_ecl_sub):
54055         (expand_bkref_cache, build_trtable, group_nodes_into_DFAstates):
54056         (find_collation_sequence_value):
54057         Likewise.
54058         * lib/regex_internal.c (re_node_set_insert, re_node_set_insert_last):
54059         (re_node_set_compare):
54060         Return bool, not int. All callers changed.
54061         * lib/regexec.c (check_halt_node_context, check_dst_limits):
54062         (build_trtable, check_node_accept): Likewise.
54063         * lib/regex_internal.h: Include stdbool.h.
54064
54065         Fix bugs uncovered when converting to bool.
54066         * lib/regcomp.c (calc_eclosure_iter): Check for storage allocation
54067         failure instead of charging ahead blindly.
54068         * lib/regex_internal.c (register_state): Likewise.
54069         * lib/regexec.c (re_search_2_stub): Use simpler method than boolean
54070         for freeing internal storage.
54071         (group_nodes_into_DFA_states): Use unsigned int, not int, for
54072         bitset pieces used as boolean, to avoid undefined behavior
54073         on hosts that do int overflow checking.
54074
54075 2005-09-01  Paul Eggert  <eggert@cs.ucla.edu>
54076
54077         * config/srclist.txt: Add glibc bugs 1285-1287.
54078
54079 2005-09-01  Jim Meyering  <jim@meyering.net>
54080
54081         * m4/lchown.m4: Require gl_FUNC_CHOWN, for the definition of
54082         CHOWN_MODIFIES_SYMLINK, which is used by lchown.c.
54083         Require gl_STAT_MACROS, too.
54084
54085 2005-09-01  Bruno Haible  <bruno@clisp.org>
54086
54087         * gnulib-tool (import): In the first-use case, provide defaults.
54088
54089 2005-09-01  Bruno Haible  <bruno@clisp.org>
54090
54091         * gnulib-tool (func_import): Remove the .tmp files.
54092
54093 2005-09-01  Bruno Haible  <bruno@clisp.org>
54094
54095         * gnulib-tool (func_import): Fix handling of symbolic links.
54096
54097 2005-08-31  Paul Eggert  <eggert@cs.ucla.edu>
54098
54099         On 64-bit hosts (where size_t is 64 bits and int is 32 bits), the
54100         old glibc regex code mishandles strings longer than 2**31 bytes.
54101         This patch fixes this when the regex code is used in gnulib
54102         (i.e., outside glibc).
54103
54104         This patch should not affect the use of the regex code inside
54105         glibc.  No doubt this problem also needs to be handled for glibc
54106         as well, but the result will be an incompatible change to the
54107         glibc ABI, and the old ABI will have to be supported too.  That
54108         can be the the subject for another patch.
54109
54110         * lib/regex.h (_REGEX_LARGE_OFFSETS): New feature-test macro,
54111         governing whether the rest of this patch is active.  By default,
54112         the macro is disabled and the patch has no effect.
54113         (regoff_t) [defined _REGEX_LARGE_OFFSETS]: Define to off_t, not int.
54114         (__re_idx_t, __re_size_t, __re_long_size_t): New types.
54115         (struct re_pattern_buffer, re_search, re_search_2, re_match):
54116         (re_match_2, re_set_registers): Use the new types.
54117         * lib/regex_internal.h (Idx, re_hashval_t): New types.
54118         (REG_MISSING, REG_ERROR, REG_VALID_INDEX, REG_VALID_NONZERO_INDEX):
54119         New macros.
54120         (re_node_set, re_charset_t, re_token_t, re_string_realloc_buffers):
54121         (re_string_context_at, bin_tree_t, re_dfastate_t):
54122         (struct re_state_table_entry, state_array_t, re_sub_match_last_t):
54123         (re_sub_match_top_t, re_match_context_t, re_sift_context_t):
54124         (struct re_fail_stack_ent_t, struct re_fail_stack_t, struct re_dfa_t):
54125         (re_string_char_size_at, re_string_wchar_at):
54126         (re_string_elem_size_at):
54127         Use the new types and macros to port to 64-bit hosts.
54128         Use unsigned types for internal values, so that the code
54129         mostly works even for arrays larger than SSIZE_MAX.
54130         * lib/regcomp.c (re_compile_internal, init_dfa, duplicate_node):
54131         (search_duplicated_node, calc_eclosure_iter, fetch_number):
54132         (parse_reg_exp, parse_branch, parse_expression, parse_sub_exp):
54133         (build_equiv_class, build_charclass, re_compile_fastmap_iter):
54134         (free_dfa_content, create_initial_state, optimize_utf8, analyze):
54135         (optimize_subexps, calc_first, link_nfa_nodes, duplicate_node_closure):
54136         (calc_inveclosure, parse_dup_op, build_range_exp):
54137         (build_collating_symbol, parse_bracket_exp, build_charclass_op):
54138         (fetch_number, create_token_tree, mark_opt_subexp):
54139         Likewise.
54140         * lib/regex_internal.c (re_string_construct_common,
54141         create_ci_newstate):
54142         (create_cd_newstate, re_string_allocate, re_string_construct):
54143         (re_string_realloc_buffers, build_wcs_upper_buffer):
54144         (re_string_skip_chars, build_upper_buffer, re_string_translate_buffer):
54145         (re_string_reconstruct, re_string_peek_byte_case):
54146         (re_string_fetch_byte_case, re_string_context_at):
54147         (re_node_set_alloc, re_node_set_init_1, re_node_set_init_2):
54148         (re_node_set_init_copy, re_node_set_add_intersect):
54149         (re_node_set_init_union, re_node_set_merge, re_node_set_insert):
54150         (re_node_set_insert_last, re_node_set_compare, re_node_set_contains):
54151         (re_node_set_remove_at, re_dfa_add_node, calc_state_hash):
54152         (re_acquire_state, re_acquire_state_context, register_state):
54153         Likewise.
54154         * lib/regex.c (match_ctx_init, match_ctx_add_entry,
54155         search_cur_bkref_entry):
54156         (match_ctx_add_subtop, match_ctx_add_sublast, sift_ctx_init):
54157         (re_search_internal, re_search_2_stub, re_search_stub)
54158         (re_copy_regs, check_matching, check_halt_state_context, update_regs):
54159         (push_fail_stack, sift_states_iter_mb, build_sifted_states):
54160         (update_cur_sifted_state, check_dst_limits):
54161         (check_dst_limits_calc_pos_1, check_dst_limits_calc_pos):
54162         (check_subexp_limits, sift_states_bkref, merge_state_array):
54163         (check_subexp_matching_top, get_subexp, get_subexp_sub):
54164         (find_subexp_node, check_arrival, check_arrival_add_next_nodes):
54165         (check_arrival_expand_ecl, check_arrival_expand_ecl_sub):
54166         (expand_bkref_cache, check_node_accept_bytes):
54167         (group_nodes_into_DFAstates, check_node_accept, regexec, re_match):
54168         (re_search, re_match_2, re_search_2, prune_impossible_nodes):
54169         (acquire_init_state_context, check_halt_node_context):
54170         (proceed_next_node, pop_fail_stack, set_regs, free_fail_stack_return):
54171         (sift_states_backward, clean_state_log_if_needed):
54172         (sub_epsilon_src_nodes, add_epsilone_src_nodes, merge_state_with_log):
54173         (find_recover_state, transit_state_sb, transit_state_mb):
54174         (transit_state_bkref, build_trtable, match_ctx_clean):
54175         Likewise.
54176         * lib/regcomp.c (parse_dup_op): Add an extra test if Idx is unsigned,
54177         to work around an assumption that REG_MISSING is negative.
54178
54179         * lib/regcomp.c (re_comp) [defined _REGEX_RE_COMP || defined _LIBC]:
54180         (seek_collating_symbol_entry) [defined _LIBC]:
54181         (lookup_collation_sequence_value) [defined _LIBC]:
54182         (build_range_exp, build_collating_symbol) [defined _LIBC]:
54183         Use prototypes rather than old-style function definitions.
54184         * lib/regexec.c (re_exec) [defined _REGEX_RE_COMP || defined _LIBC]:
54185         (transit_state_sb) [0]:
54186         (find_collation_sequence_value) [defined _LIBC]: Likewise.
54187
54188         * lib/regexec.c (re_search_internal): Simplify update of rm_so and
54189         rm_eo.
54190
54191         * lib/regcomp.c (re_compile_fastmap_iter, init_dfa, init_word_char):
54192         (optimize_subexps, lower_subexp):
54193         Don't assume 1<<31 has defined behavior on hosts with 32-bit int,
54194         since the signed shift might overflow.  Use 1u<<31 instead.
54195         * lib/regex_internal.h (bitset_set, bitset_clear, bitset_contain):
54196         Likewise.
54197         * lib/regexec.c (check_dst_limits_calc_pos_1,
54198         check_subexp_matching_top): Likewise.
54199
54200         * lib/regcomp.c (optimize_subexps, lower_subexp):
54201         Use CHAR_BIT rather than 8, for clarity.
54202         * lib/regexec.c (check_dst_limits_calc_pos_1):
54203         (check_subexp_matching_top): Likewise.
54204         * lib/regcomp.c (init_dfa): Make table_size unsigned, so that we don't
54205         have to worry about portability issues when shifting it left.
54206         Remove no-longer-needed test for table_size > 0.
54207         * lib/regcomp.c (parse_sub_exp): Do not shift more bits than there are
54208         in a word, as the resulting behavior is undefined.
54209         * lib/regexec.c (check_dst_limits_calc_pos_1): Likewise;
54210         in one case, a <= should have been an <, and in another case the
54211         whole test was missing.
54212         * lib/regex_internal.h (BYTE_BITS): Remove.  All uses changed to
54213         the standard name CHAR_BIT.
54214         * lib/regexec.c (match_ctx_add_entry): Don't assume that ~0 == -1;
54215         this is not true on one's complement and signed-magnitude hosts.
54216
54217         * lib/regex_internal.h (re_sub_match_top_t): Remove unused member
54218         next_last_offset.
54219         (struct re_dfa_t): Remove unused member states_alloc.
54220         * lib/regcomp.c (init_dfa): Don't initialize unused members.
54221
54222 2005-08-31  Paul Eggert  <eggert@cs.ucla.edu>
54223
54224         * m4/regex.m4 (gl_REGEX): Require AC_SYS_LARGEFILE, Define
54225         _REGEX_LARGE_OFFSETS).  Test for regoff_t/off_t bug in 64-bit
54226         and large-file glibc and in 32-bit large-file Solaris.
54227
54228 2005-08-31  Paul Eggert  <eggert@cs.ucla.edu>
54229
54230         * lib/regex_internal.c (re_string_reconstruct): Don't assume buffer
54231         lengths fit in regoff_t; this isn't true if regoff_t is the same
54232         width as size_t.
54233         * lib/regex.c (re_search_internal): 5th arg is LAST_START
54234         (= START + RANGE) instead of RANGE.  This avoids overflow
54235         problems when regoff_t is the same width as size_t.
54236         All callers changed.
54237         (re_search_2_stub): Check for overflow when adding the
54238         sizes of the two strings.
54239         (re_search_stub): Check for overflow when adding START
54240         to RANGE; if it occurs, substitute the extreme value.
54241
54242 2005-08-31  Paul Eggert  <eggert@cs.ucla.edu>
54243
54244         * config/srclist.txt: Add glibc bugs 1273, 1278-1282, 1284.
54245
54246 2005-08-31  Jim Meyering  <jim@meyering.net>
54247
54248         * lib/regcomp.c (search_duplicated_node): Make first pointer arg
54249         a pointer-to-const.
54250         * lib/regex_internal.c (create_ci_newstate, create_cd_newstate):
54251         (register_state): Likewise.
54252         * lib/regexec.c (search_cur_bkref_entry, check_dst_limits):
54253         (check_dst_limits_calc_pos_1, check_dst_limits_calc_pos):
54254         (group_nodes_into_DFAstates): Likewise.
54255
54256 2005-08-31  Jim Meyering  <jim@meyering.net>
54257
54258         * check-module: Add a FIXME comment.
54259
54260 2005-08-31  Eric Blake  <ebb9@byu.net>
54261
54262         * modules/unistd-safer (Files): Add unistd--.h.
54263         * modules/stdio-safer (Files): Add stdio--.h.
54264
54265 2005-08-31  Derek Price  <derek@ximbiot.com>
54266
54267         * lib/getdelim.c (getdelim): Return EOF on EOF.
54268         Reported by Larry Jones <lawrence.jones@ugs.com>.
54269
54270 2005-08-31  Bruno Haible  <bruno@clisp.org>
54271
54272         Avoid unnecessary diffs in the generated lib/Makefile.am.
54273         * gnulib-tool (func_emit_lib_Makefile_am): Don't write the cmd into
54274         the generated files.
54275         (func_import): Don't set cmd.
54276
54277 2005-08-31  Bruno Haible  <bruno@clisp.org>
54278
54279         * lib/strstr.c: Include <stddef.h>, for NULL.
54280         * lib/strcasestr.c: Likewise.
54281         Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
54282
54283 2005-08-31  Bruno Haible  <bruno@clisp.org>
54284
54285         * gnulib-tool: New option --macro-prefix.
54286         (func_import): Use macro_prefix.
54287         (import): Handle option --macro-prefix.
54288
54289 2005-08-31  Bruno Haible  <bruno@clisp.org>
54290
54291         * gnulib-tool (import): Rename most ac_* variables to cached_*.
54292         Also use new variables cached_lgpl, cached_libtool.
54293
54294 2005-08-31  Bruno Haible  <bruno@clisp.org>
54295
54296         * gnulib-tool (func_import): Require AC_GNU_SOURCE etc. instead of
54297         always instantiating them.
54298
54299 2005-08-31  Bruno Haible  <bruno@clisp.org>
54300
54301         * gnulib-tool (func_import): Read the previous cached settings
54302         from gnulib-cache.m4 and gnulib-comp.m4. Remove files that were
54303         earlier added by gnulib but are now dropped. Warn when a gnulib file
54304         overwrites a non-gnulib file.
54305
54306 2005-08-31  Bruno Haible  <bruno@clisp.org>
54307
54308         * gnulib-tool (func_import): Generate two files gnulib-cache.m4 and
54309         gnulib-comp.m4 instead of a single gnulib.m4, to make it easy for
54310         projects that don't keep autogenerated files in CVS. Put into
54311         actioncmd only the specified modules, not the transitive closure.
54312
54313 2005-08-31  Bruno Haible  <bruno@clisp.org>
54314
54315         * gnulib-tool (func_import): Fix defaulting of $libname and $libtool.
54316         Create directories that shall be filled.
54317         (import): Don't look for gl_* macros in configure.ac. Recurse across
54318         all directories containing a gnulib-cache.m4 files, if meaningful.
54319
54320 2005-08-31  Bruno Haible  <bruno@clisp.org>
54321
54322         * gnulib-tool (func_import): Emit also a stub for gl_LIBTOOL.
54323         (import): Set seen_libtool when we see gl_LIBTOOL.
54324
54325 2005-08-31  Bruno Haible  <bruno@clisp.org>
54326
54327         * gnulib-tool (func_import): Also copy m4/gnulib-tool.m4. Omit
54328         declaration macro definitions from generated gnulib.m4.
54329
54330 2005-08-30  Oskar Liljeblad  <oskar@osk.mine.nu>
54331
54332         * lib/iconvme.h: Add prototype for iconv_alloc.
54333
54334 2005-08-29  Simon Josefsson  <jas@extundo.com>
54335
54336         * lib/iconvme.c: Fix errno.
54337
54338 2005-08-29  Bruno Haible  <bruno@clisp.org>
54339
54340         * gnulib-tool: Enclose all occurrences of $destdir in "...", so
54341         that it works when the directory contains spaces.
54342
54343 2005-08-29  Bruno Haible  <bruno@clisp.org>
54344
54345         * gnulib-tool (import): Avoid unnecessary spaces in $avoidlist.
54346
54347 2005-08-29  Bruno Haible  <bruno@clisp.org>
54348
54349         * gnulib-tool (func_import): Emit more comments into gnulib.m4.
54350         Emit more advice.
54351
54352 2005-08-29  Bruno Haible  <bruno@clisp.org>
54353         and Stepan Kasal  <kasal@ucw.cz>
54354
54355         * check-module: If more parameters are given, check each of them
54356         separately; add more exceptions, as noted by Jim Meyering.
54357         (check_module): New procedure.
54358         (%exempt_header): Now contains all exceptions.
54359
54360 2005-08-29  Ben Pfaff  <blp@cs.stanford.edu>
54361
54362         * modules/byteswap (Makefile.am): Fix rule to not assume GNU make.
54363
54364 2005-08-29  Oskar Liljeblad  <oskar@osk.mine.nu>
54365
54366         * lib/iconvme.c: Split iconv_string into iconv_alloc.
54367
54368 2005-08-28  Bruno Haible  <bruno@clisp.org>
54369
54370         * m4/gnulib-tool.m4: New file.
54371
54372 2005-08-27  Jim Meyering  <jim@meyering.net>
54373
54374         * modules/unistd-safer (Files): Add pipe-safer.c.
54375         * modules/fcntl-safer (Files): Add creat-safer.c.
54376
54377 2005-08-27  Jim Meyering  <jim@meyering.net>
54378
54379         * m4/stdlib-safer.m4: New file.  From coreutils.
54380         * m4/stdio-safer.m4 (gl_STDIO_SAFER): Add stdio--.h.
54381         * m4/fcntl-safer.m4 (gl_FCNTL_SAFER): Add creat-safer.c to the
54382         AC_LIBSOURCES list and arrange to compile it via AC_LIBOBJ.
54383         * m4/unistd-safer.m4 (gl_UNISTD_SAFER): Likewise, add pipe-safer.c.
54384         Add pipe-safer.c and unistd--.h to the AC_LIBSOURCES list.
54385
54386 2005-08-27  Jim Meyering  <jim@meyering.net>
54387
54388         * lib/fopen-safer.c: Merge minor changes from coreutils.
54389         * lib/dup-safer.c: Likewise.
54390         * lib/fd-safer.c: Likewise.
54391
54392         Merge from coreutils.
54393         * lib/stdio--.h: New file.
54394         * lib/stdlib--.h: New file.
54395         * lib/mkstemp-safer.c: New file.
54396
54397         GNU tar needs these.
54398         * lib/pipe-safer.c: New file.
54399         * lib/creat-safer.c: New file.
54400         * lib/fcntl--.h (creat): Define to creat_safer.
54401         * lib/fcntl-safer.h: Include <sys/types.h> and declare creat_safer.
54402         * lib/unistd--.h (pipe): Define to pipe_safer.
54403         * lib/unistd-safer.h: Declare pipe_safer.
54404
54405 2005-08-26  Simon Josefsson  <jas@extundo.com>
54406
54407         * lib/getpass.c: Use _WIN32 instead of WIN32, suggested by Bruno
54408         Haible <bruno@clisp.org>.
54409
54410 2005-08-26  Paul Eggert  <eggert@cs.ucla.edu>
54411
54412         * lib/regex_internal.h: Remove all references to
54413         RE_NO_INTERNAL_PROTOTYPES; no longer neeeded now that we assume C89
54414         or better.
54415         (bitset_not, bitset_merge, bitset_not_merge):
54416         (bitset_mask, re_string_allocate, re_string_construct):
54417         (re_string_reconstruct, re_string_destruct, re_string_elem_size_at):
54418         (re_string_char_size_at, re_string_wchar_at, re_string_peek_byte_case):
54419         (re_string_fetch_byte_case, re_node_set_alloc, re_node_set_init_1):
54420         (re_node_set_init_2, re_node_set_init_copy, re_node_set_add_intersect):
54421         (re_node_set_init_union, re_node_set_merge, re_node_set_insert):
54422         (re_node_set_insert_last, re_node_set_compare, re_node_set_contains):
54423         (re_node_set_remove_at, re_dfa_add_node, re_acquire_state):
54424         (re_acquire_state_context):
54425         Remove unnecessary forward decls.
54426         (re_string_char_size_at, re_string_wchar_at, re_string_elem_size_at):
54427         Put __attribute at function definition,
54428         now that the function decl has been removed.
54429         * lib/regex_internal.c (re_string_peek_byte_case):
54430         (re_string_fetch_byte_case, re_node_set_compare, re_node_set_contains):
54431         Likewise.
54432
54433 2005-08-25  Stepan Kasal  <kasal@ucw.cz>
54434
54435         * m4/regex.m4: Add AC_PREREQ(2.50).
54436         (gl_REGEX): If --with-included-regex was given, skip the autodetection.
54437
54438 2005-08-25  Simon Josefsson  <jas@extundo.com>
54439
54440         * m4/getpass.m4: Check for termios.h, tcgetattr, tcsetattr, and
54441         __fsetlocking.
54442
54443 2005-08-25  Simon Josefsson  <jas@extundo.com>
54444
54445         * lib/getpass.c: Add WIN32 implementation.  Conditionalize use of
54446         termios.h, tcgetattr, tcsetattr and __fsetlocking.  Remove some
54447         GLIBC specific code.
54448
54449 2005-08-25  Paul Eggert  <eggert@cs.ucla.edu>
54450
54451         Make regex safe for g++.  This fixes one real bug (an "err"
54452         that should have been "*err").  g++ problem reported by
54453         Sam Steingold.
54454         * lib/regex_internal.h (re_calloc): New macro, consistent with
54455         re_malloc etc.  All callers of calloc changed to use re_calloc.
54456         * lib/regex_internal.c (build_wcs_upper_buffer): Return reg_errcode_t,
54457         not int.  All callers changed.
54458         * lib/regcomp.c (re_compile_fastmap_iter): Don't use
54459         alloca (mb_cur_max); just use an array of size MB_LEN_MAX.
54460         * lib/regexec.c (push_fail_stack): Use re_realloc, not realloc.
54461         (find_recover_state): Change "err" to "*err"; this fixes what
54462         appears to be a real bug.
54463         (check_arrival_expand_ecl_sub): Be consistent about reg_errcode_t
54464         versus int.
54465
54466 2005-08-25  Paul Eggert  <eggert@cs.ucla.edu>
54467
54468         * modules/regex (Depends-on): Add malloc, since the code
54469         assumes that !malloc(0) means failure.
54470
54471 2005-08-25  Paul Eggert  <eggert@cs.ucla.edu>
54472
54473         * lib/regexec.c (set_regs): Don't alloca with an unbounded size.
54474
54475         alloca modernization/simplification for regex.
54476         * lib/regex.c: Remove portability cruft for alloca.  This no longer
54477         needs to be at the start of the file, and can be moved into
54478         regex_internal.h and simplified.
54479         * lib/regex_internal.h: Include <alloca.h>.
54480         (__libc_use_alloca) [!defined _LIBC]: New macro.
54481         * lib/regexec.c (build_trtable): Remove "#ifdef _LIBC", since the code
54482         now works outside glibc.
54483
54484 2005-08-25  Paul Eggert  <eggert@cs.ucla.edu>
54485
54486         * config/srclist.txt: Add glibc bugs 1241, 1245.
54487
54488 2005-08-25  Jim Meyering  <jim@meyering.net>
54489
54490         * lib/open-safer.c: Include <config.h>.
54491         Otherwise, we'd lose LARGEFILE support in any file using
54492         e.g. "fcntl--.h"
54493
54494 2005-08-25  Bruno Haible  <bruno@clisp.org>
54495
54496         * m4/minmax.m4: Require autoconf 2.52.
54497         (gl_MINMAX_IN_HEADER): Add comments. Use m4_pushdef/m4_popdef instead
54498         of define/undefine. Use AS_TR_SH and AS_TR_CPP as more robust
54499         alternatives of translit over the alphabet.
54500         Based on a patch from Stepan Kasal <kasal@ucw.cz>.
54501
54502 2005-08-24  Simon Josefsson  <jas@extundo.com>
54503
54504         * tests/test-getpass.c: New file.
54505
54506 2005-08-24  Paul Eggert  <eggert@cs.ucla.edu>
54507
54508         * m4/regex.m4 (gl_REGEX): Use POSIX-compliant spellings when testing
54509         for GNU regex features.
54510
54511 2005-08-24  Paul Eggert  <eggert@cs.ucla.edu>
54512
54513         * lib/regcomp.c (regerror): 2nd arg is 'restrict', as per POSIX.
54514         * lib/regex.h (regerror): Likewise.
54515
54516         * lib/regex.c: Do not include <sys/types.h>, as POSIX no longer
54517         requires this.  (The code never needed it.)
54518
54519         * lib/regcomp.c, regex_internal.c, regex_internal.h, regexec.c:
54520         All uses of recently-renamed identifiers changed to use the new,
54521         POSIX-compliant names.  The code will build and run just fine
54522         without these changes, but it's better to eat our own dog food
54523         and use the standard-conforming names.
54524
54525         * lib/regex.h: Fix a multitude of POSIX name space violations.
54526         These changes have an effect only for programs that define
54527         _POSIX_C_SOURCE, _POSIX_SOURCE, or _XOPEN_SOURCE; they
54528         do not change anything for programs compiled in the normal way.
54529         Also, there is no effect on the ABI.
54530
54531         (_REGEX_SOURCE): New macro.
54532         Do not include <stddef.h> if _XOPEN_SOURCE and VMS are both
54533         defined and _GNU_SOURCE is not; this fixes a name space violation.
54534
54535         Rename the following macros to obey POSIX requirements.
54536         The old names are still visible as macros if _REGEX_SOURCE is defined.
54537         (REG_BACKSLASH_ESCAPE_IN_LISTS): renamed from
54538         RE_BACKSLASH_ESCAPE_IN_LISTS.
54539         (REG_BK_PLUS_QM): renamed from RE_BK_PLUS_QM.
54540         (REG_CHAR_CLASSES): renamed from RE_CHAR_CLASSES.
54541         (REG_CONTEXT_INDEP_ANCHORS): renamed from RE_CONTEXT_INDEP_ANCHORS.
54542         (REG_CONTEXT_INDEP_OPS): renamed from RE_CONTEXT_INDEP_OPS.
54543         (REG_CONTEXT_INVALID_OPS): renamed from RE_CONTEXT_INVALID_OPS.
54544         (REG_DOT_NEWLINE): renamed from RE_DOT_NEWLINE.
54545         (REG_DOT_NOT_NULL): renamed from RE_DOT_NOT_NULL.
54546         (REG_HAT_LISTS_NOT_NEWLINE): renamed from RE_HAT_LISTS_NOT_NEWLINE.
54547         (REG_INTERVALS): renamed from RE_INTERVALS.
54548         (REG_LIMITED_OPS): renamed from RE_LIMITED_OPS.
54549         (REG_NEWLINE_ALT): renamed from RE_NEWLINE_ALT.
54550         (REG_NO_BK_BRACES): renamed from RE_NO_BK_BRACES.
54551         (REG_NO_BK_PARENS): renamed from RE_NO_BK_PARENS.
54552         (REG_NO_BK_REFS): renamed from RE_NO_BK_REFS.
54553         (REG_NO_BK_VBAR): renamed from RE_NO_BK_VBAR.
54554         (REG_NO_EMPTY_RANGES): renamed from RE_NO_EMPTY_RANGES.
54555         (REG_UNMATCHED_RIGHT_PAREN_ORD): renamed from
54556         RE_UNMATCHED_RIGHT_PAREN_ORD.
54557         (REG_NO_POSIX_BACKTRACKING): renamed from RE_NO_POSIX_BACKTRACKING.
54558         (REG_NO_GNU_OPS): renamed from RE_NO_GNU_OPS.
54559         (REG_DEBUG): renamed from RE_DEBUG.
54560         (REG_INVALID_INTERVAL_ORD): renamed from RE_INVALID_INTERVAL_ORD.
54561         (REG_IGNORE_CASE): renamed from RE_ICASE.  This renaming is a bit
54562         unusual, since we can't clash with the POSIX REG_ICASE.
54563         (REG_CARET_ANCHORS_HERE): renamed from RE_CARET_ANCHORS_HERE.
54564         (REG_CONTEXT_INVALID_DUP): renamed from RE_CONTEXT_INVALID_DUP.
54565         (REG_NO_SUB): renamed from RE_NO_SUB.
54566         (REG_SYNTAX_EMACS): renamed from RE_SYNTAX_EMACS.
54567         (REG_SYNTAX_AWK): renamed from RE_SYNTAX_AWK.
54568         (REG_SYNTAX_GNU_AWK): renamed from RE_SYNTAX_GNU_AWK.
54569         (REG_SYNTAX_POSIX_AWK): renamed from RE_SYNTAX_POSIX_AWK.
54570         (REG_SYNTAX_GREP): renamed from RE_SYNTAX_GREP.
54571         (REG_SYNTAX_EGREP): renamed from RE_SYNTAX_EGREP.
54572         (REG_SYNTAX_POSIX_EGREP): renamed from RE_SYNTAX_POSIX_EGREP.
54573         (REG_SYNTAX_ED): renamed from RE_SYNTAX_ED.
54574         (REG_SYNTAX_SED): renamed from RE_SYNTAX_SED.
54575         (_REG_SYNTAX_POSIX_COMMON): renamed from _RE_SYNTAX_POSIX_COMMON.
54576         (REG_SYNTAX_POSIX_BASIC): renamed from RE_SYNTAX_POSIX_BASIC.
54577         (REG_SYNTAX_POSIX_MINIMAL_BASIC): renamed from
54578         RE_SYNTAX_POSIX_MINIMAL_BASIC.
54579         (REG_SYNTAX_POSIX_EXTENDED): renamed from RE_SYNTAX_POSIX_EXTENDED.
54580         (REG_SYNTAX_POSIX_MINIMAL_EXTENDED): renamed from
54581         RE_SYNTAX_POSIX_MINIMAL_EXTENDED.
54582         (REG_DUP_MAX): renamed from RE_DUP_MAX.  No need to undef it.
54583         (REG_UNALLOCATED): Renamed from REGS_UNALLOCATED.
54584         (REG_REALLOCATE): Renamed from REGS_REALLOCATE.
54585         (REG_FIXED): Renamed from REGS_FIXED.
54586         (REG_NREGS): Renamed from RE_NREGS.
54587
54588         (REG_ICASE, REG_NEWLINE, REG_NOSUB): Do not depend on the values
54589         of other REG_* macros, since POSIX says the user is allowed to
54590         #undef these macros selectively.
54591
54592         (reg_errcode_t): Update comment stating what other tables need
54593         to be consistent.
54594
54595         Rename the following enum values to obey POSIX requirements.
54596         The old names are still visible as macros.
54597         (_REG_ENOSYS): Renamed from REG_ENOSYS.  Define even if _XOPEN_SOURCE
54598         is not defined, since GNU is supposed to be a superset of POSIX as
54599         much as possible, and since we want reg_errcode_t to be a signed
54600         type for implementation consistency.
54601         (_REG_NOERROR): Renamed from REG_NOERROR.
54602         (_REG_NOMATCH): Renamed from REG_NOMATCH.
54603         (_REG_BADPAT): Renamed from REG_BADPAT.
54604         (_REG_ECOLLATE): Renamed from REG_ECOLLATE.
54605         (_REG_ECTYPE): Renamed from REG_ECTYPE.
54606         (_REG_EESCAPE): Renamed from REG_EESCAPE.
54607         (_REG_ESUBREG): Renamed from REG_ESUBREG.
54608         (_REG_EBRACK): Renamed from REG_EBRACK.
54609         (_REG_EPAREN): Renamed from REG_EPAREN.
54610         (_REG_EBRACE): Renamed from REG_EBRACE.
54611         (_REG_BADBR): Renamed from REG_BADBR.
54612         (_REG_ERANGE): Renamed from REG_ERANGE.
54613         (_REG_ESPACE): Renamed from REG_ESPACE.
54614         (_REG_BADRPT): Renamed from REG_BADRPT.
54615         (_REG_EEND): Renamed from REG_EEND.
54616         (_REG_ESIZE): Renamed from REG_ESIZE.
54617         (_REG_ERPAREN): Renamed from REG_ERPAREN.
54618         (REG_ENOSYS, REG_NOERROR, REG_NOMATCH, REG_BADPAT, REG_ECOLLATE):
54619         (REG_ECTYPE, REG_EESCAPE, REG_ESUBREG, REG_EBRACK, REG_EPAREN):
54620         (REG_EBRACE, REG_BADBR, REG_ERANGE, REG_ESPACE, REG_BADRPT, REG_EEND):
54621         (REG_ESIZE, REG_ERPAREN): Now macros, not enum constants.
54622
54623         (_REG_RE_NAME, _REG_RM_NAME): New macros.
54624         (REG_TRANSLATE_TYPE): Renamed from RE_TRANSLATE_TYPE.  All uses
54625         changed.  But support the old name if the new one is not defined
54626         and if _REGEX_SOURCE.
54627
54628         Change the following member names in struct re_pattern_buffer.
54629         The old names are still supported if !_REGEX_SOURCE.
54630         The new names are always supported, regardless of _REGEX_SOURCE.
54631         (re_buffer): Renamed from buffer.
54632         (re_allocated): Renamed from allocated.
54633         (re_used): Renamed from used.
54634         (re_syntax): Renamed from syntax.
54635         (re_fastmap): Renamed from fastmap.
54636         (re_translate): Renamed from translate.
54637         (re_can_be_null): Renamed from can_be_null.
54638         (re_regs_allocated): Renamed from regs_allocated.
54639         (re_fastmap_accurate): Renamed from fastmap_accurate.
54640         (re_no_sub): Renamed from no_sub.
54641         (re_not_bol): Renamed from not_bol.
54642         (re_not_eol): Renamed from not_eol.
54643         (re_newline_anchor): Renamed from newline_anchor.
54644
54645         Change the following member names in struct re_registers.
54646         The old names are still supported if !_REGEX_SOURCE.
54647         The new names are always supported, regardless of _REGEX_SOURCE.
54648         (rm_num_regs): Renamed from num_regs.
54649         (rm_start): Renamed from start.
54650         (rm_end): Renamed from end.
54651
54652         (re_set_syntax, re_compile_pattern, re_compile_fastmap):
54653         (re_search, re_search_2, re_match, re_match_2, re_set_registers):
54654         Prepend __ to parameter names.
54655
54656         Undo yesterday's changes.
54657
54658 2005-08-24  Paul Eggert  <eggert@cs.ucla.edu>
54659
54660         * config/srclist.txt: Remove glibc bug 1233 and add 1236, which
54661         supersedes it. Add glibc bugs 1237, 1238, 1240.  Comment out
54662         lib/regex.c.
54663
54664 2005-08-24  Jim Meyering  <jim@meyering.net>
54665
54666         Sync from coreutils.
54667         * m4/fcntl-safer.m4: New file.
54668
54669         * m4/xgetcwd.m4: Use AC_LIBSOURCES and AC_LIBOBJ to indicate source
54670         and object files for this module.
54671
54672 2005-08-24  Jim Meyering  <jim@meyering.net>
54673
54674         Sync from coreutils.
54675         * lib/fcntl--.h, lib/fcntl-safer.h, lib/open-safer.c: New files.
54676
54677 2005-08-24  Jim Meyering  <jim@meyering.net>
54678
54679         * modules/xgetcwd (Makefile.am): Remove `lib_SOURCES += ...' line,
54680         now that xgetcwd.m4 requires xgetcwd.c and xgetcwd.h.
54681
54682 2005-08-24  Jim Meyering  <jim@meyering.net>
54683
54684         * modules/fcntl-safer: New module.
54685         * modules/fts (Depends-on): Add fcntl-safer.
54686         * MODULES.html.sh (File descriptor based Input/Output):
54687         Add fcntl-safer.
54688
54689 2005-08-24  Bruno Haible  <bruno@clisp.org>
54690
54691         Support for unit test modules.
54692         * modules/README: Mention tests modules.
54693         * modules/TEMPLATE-TESTS: New file.
54694         * gnulib-tool: New options --extract-tests-module, --with-tests and
54695         --tests-base (unused for the moment).
54696         (testsbase, inctests): New variables.
54697         (func_all_modules): Exclude TEMPLATE-TESTS and *-tests.
54698         (func_verify_module): Exclude TEMPLATE-TESTS.
54699         (func_verify_nontests_module, func_verify_tests_module): New functions.
54700         (func_get_dependencies): Add implicit dependency for tests modules.
54701         (func_get_tests_module): New function.
54702         (func_modules_transitive_closure): When --with-tests was specified,
54703         include the unit tests as well, unless explicitly avoided.
54704         (func_emit_lib_Makefile_am): Ignore the tests modules here.
54705         (func_emit_tests_Makefile_am): New function.
54706         (func_create_testdir): When --with-tests was specified, emit a
54707         tests/ directory.
54708         * MODULES.html.sh (Future developments): Update.
54709
54710 2005-08-24  Bruno Haible  <bruno@clisp.org>
54711
54712         * modules/tls-tests: New file.
54713         * tests/test-tls.c: New file, from GNU gettext.
54714
54715 2005-08-24  Bruno Haible  <bruno@clisp.org>
54716
54717         * modules/lock-tests: New file.
54718         * tests/test-lock.c: New file, from GNU gettext.
54719
54720 2005-08-24  Bruno Haible  <bruno@clisp.org>
54721
54722         * lib/lock.h: Add multiple inclusion guard.
54723         * lib/tls.h: Add multiple inclusion guard.
54724
54725 2005-08-24  Bruno Haible  <bruno@clisp.org>
54726
54727         * gnulib-tool: Add support for the --aux-dir option to
54728         --create-testdir, --create-megatestdir, --test, --megatest.
54729         (func_create_testdir, func_create_megatestdir): Optionally emit a
54730         AC_CONFIG_AUX_DIR directive.
54731         (create-testdir, create-megatestdir, test, megatest): Provide a
54732         default value for $auxdir.
54733
54734 2005-08-24  Bruno Haible  <bruno@clisp.org>
54735
54736         * gnulib-tool (import): Use compound statement instead of subshell
54737         where possible.
54738
54739 2005-08-24  Bruno Haible  <bruno@clisp.org>
54740
54741         * gnulib-tool (import): Change --aux-dir default to "build-aux".
54742
54743 2005-08-24  Bruno Haible  <bruno@clisp.org>
54744
54745         * gnulib-tool (func_version): Update.
54746
54747 2005-08-24  Bruno Haible  <bruno@clisp.org>
54748
54749         * gnulib-tool (func_import, func_create_testdir,
54750         func_create_megatestdir): Quote all autoconf macro arguments.
54751
54752 2005-08-24  Bruno Haible  <bruno@clisp.org>
54753
54754         * gnulib-tool (func_create_megatestdir): Call autoreconf without the
54755         option --force, because --force causes the aclocal.m4 of each
54756         subdirectory to be newer than the corresponding config.h.in.
54757
54758 2005-08-23  Paul Eggert  <eggert@cs.ucla.edu>
54759
54760         * m4/regex.m4 (gl_INCLUDED_REGEX): Remove; no longer used.
54761         All contents moved to gl_REGEX.
54762         (gl_REGEX): Don't bother checking whether lib/regex.c exists;
54763         assume that it does.
54764
54765 2005-08-23  Paul Eggert  <eggert@cs.ucla.edu>
54766
54767         * lib/regex.h (REG_NOSYS)
54768         [!defined _XOPEN_SOURCE && 200112L <= _POSIX_C_SOURCE]:
54769         Define, since POSIX requires it as of 2001.
54770         (_REG_ENOSYS)
54771         [! (defined _XOPEN_SOURCE || 200112L <= _POSIX_C_SOURCE)]:
54772         New private symbol, used to keep the enum signed in all cases.
54773         * lib/regex.h (RE_NO_EMPTY_RANGES): Fix doc bug reported by James
54774         Youngman in
54775         <http://lists.gnu.org/archive/html/bug-gnulib/2005-07/msg00132.html>.
54776
54777         * lib/regex_internal.c (re_string_skip_chars, register_state):
54778         (calc_state_hash):
54779         Remove forward decls; no longer needed now that we use prototypes.
54780         * lib/regexec.c (acquire_init_state_context, check_halt_node_context):
54781         (proceed_next_node, pop_fail_stack, sub_epsilon_src_nodes):
54782         (clean_state_log_if_needed): Likewise.
54783
54784 2005-08-23  Paul Eggert  <eggert@cs.ucla.edu>
54785
54786         * config/srclist.txt: Add glibc bugs 1231-1233.
54787
54788 2005-08-20  Paul Eggert  <eggert@cs.ucla.edu>
54789
54790         Fix problems reported by Sam Steingold in
54791         <http://lists.gnu.org/archive/html/bug-gnulib/2005-08/msg00007.html>.
54792         * lib/regexec.c (sift_states_bkref): Fix portability bug: the code
54793         assumed that reg_errcode_t is a signed type, which is not
54794         necessarily true if _XOPEN_SOURCE is not defined.
54795         * lib/regex_internal.c (calc_state_hash): Put 'inline' before type,
54796         since some compilers warn about it otherwise.
54797
54798 2005-08-20  Paul Eggert  <eggert@cs.ucla.edu>
54799
54800         * lib/regcomp.c (create_initial_state): Remove duplicate decl.
54801         (init_word_char, create_initial_state, duplicate_node_closure):
54802         (fetch_token, peek_token_bracket, build_range_exp):
54803         (build_collating_symbol): Remove forward decls; no longer needed
54804         now that we use prototypes.
54805
54806         * lib/regcomp.c:
54807         (re_compile_pattern, re_set_syntax, re_compile_fastmap):
54808         (re_compile_fastmap_iter, regcomp, regerror, regfree):
54809         (re_compile_internal, init_dfa, init_word_char, free_workarea_compile):
54810         (create_initial_state, optimize_utf8, analyze, postorder, preorder):
54811         (optimize_subexps, lower_subexps, lower_subexp, calc_first, calc_next):
54812         (link_nfa_nodes, duplicate_node_closure, search_duplicated_node):
54813         (duplicate_node, calc_inveclosure, calc_eclosure, calc_eclosure_iter):
54814         (fetch_token, peek_token, peek_token_bracket, parse, parse_reg_exp):
54815         (parse_branch, parse_expression, parse_sub_exp, parse_dup_op):
54816         (build_range_exp, build_collating_symbol, parse_bracket_exp):
54817         (parse_bracket_element, parse_bracket_symbol, build_equiv_class):
54818         (build_charclass, build_charclass_op, fetch_number, create_tree):
54819         (create_token_tree, mark_opt_subexp, duplicate_tree):
54820         Use prototypes rather than old-style definitions.
54821
54822         * lib/regex_internal.c:
54823         (re_string_allocate, re_string_construct, re_string_realloc_buffers):
54824         (re_string_construct_common, build_wcs_buffer, build_wcs_upper_buffer):
54825         (re_string_skip_chars, build_upper_buffer, re_string_translate_buffer):
54826         (re_string_reconstruct, re_string_peek_byte_case):
54827         (re_string_fetch_byte_case, re_string_destruct, re_string_context_at):
54828         (re_node_set_alloc, re_node_set_init_1, re_node_set_init_2):
54829         (re_node_set_init_copy, re_node_set_add_intersect):
54830         (re_node_set_init_union, re_node_set_merge, re_node_set_insert):
54831         (re_node_set_insert_last, re_node_set_compare, re_node_set_contains):
54832         (re_node_set_remove_at, re_dfa_add_node, calc_state_hash):
54833         (re_acquire_state, re_acquire_state_context, register_state):
54834         (create_ci_newstate, create_cd_newstate, free_state):
54835         Likewise.
54836         * lib/regexec.c (regexec, re_match, re_search, re_match_2,
54837         re_search_2):
54838         (re_search_2_stub, re_search_stub, re_copy_regs, re_set_registers):
54839         (re_search_internal, prune_impossible_nodes):
54840         (acquire_init_state_context, check_matching, static):
54841         (check_halt_node_context, check_halt_state_context, proceed_next_node):
54842         (push_fail_stack, pop_fail_stack, set_regs, free_fail_stack_return):
54843         (update_regs, sift_states_backward, build_sifted_states):
54844         (clean_state_log_if_needed, merge_state_array):
54845         (update_cur_sifted_state, add_epsilon_src_nodes):
54846         (sub_epsilon_src_nodes, check_dst_limits, check_dst_limits_calc_pos_1):
54847         (check_dst_limits_calc_pos, check_subexp_limits, sift_states_bkref):
54848         (sift_states_iter_mb, transit_state, merge_state_with_log, static):
54849         (find_recover_state, check_subexp_matching_top, transit_state_mb):
54850         (transit_state_bkref, get_subexp, get_subexp_sub, find_subexp_node):
54851         (check_arrival, check_arrival_add_next_nodes):
54852         (check_arrival_expand_ecl, check_arrival_expand_ecl_sub):
54853         (expand_bkref_cache, build_trtable, group_nodes_into_DFAstates):
54854         (check_node_accept_bytes, check_node_accept, extend_buffers):
54855         (match_ctx_init, match_ctx_clean, match_ctx_free, match_ctx_add_entry):
54856         (search_cur_bkref_entry, match_ctx_add_subtop, match_ctx_add_sublast):
54857         (sift_ctx_init):
54858         Likewise.
54859
54860         * lib/regex_internal.h:
54861         (re_string_allocate, re_string_construct, re_string_reconstruct):
54862         (re_string_realloc_buffers, build_wcs_buffer, build_wcs_upper_buffer):
54863         (build_upper_buffer, re_string_translate_buffer, re_string_destruct):
54864         (re_string_elem_size_at, re_string_char_size_at, re_string_wchar_at):
54865         (re_string_context_at, re_string_peek_byte_case):
54866         (re_string_fetch_byte_case): Declare even if RE_NO_INTERNAL_PROTOTYPES
54867         is defined, since we now use prototypes always.
54868
54869         * lib/regex.h (_RE_ARGS): Remove.  No longer needed, since we assume
54870         C89 or better.  All uses removed.
54871
54872 2005-08-20  Paul Eggert  <eggert@cs.ucla.edu>
54873
54874         * config/srclist.txt: Add glibc bugs 1220-1227.
54875
54876 2005-08-20  Jim Meyering  <jim@meyering.net>
54877
54878         * lib/regexec.c (regexec, re_search_stub) [!_LIBC]: Omit declaration
54879         of unused local, dfa.
54880
54881 2005-08-20  Bruno Haible  <bruno@clisp.org>
54882
54883         * m4/regex.m4 (gl_PREREQ_REGEX): Require AC_GNU_SOURCE.
54884
54885 2005-08-19  Paul Eggert  <eggert@cs.ucla.edu>
54886
54887         * lib/regex_internal.c (re_string_realloc_buffers, re_node_set_insert):
54888         (re_node_set_insert_last, re_dfa_add_node):
54889         Rename local variables to avoid GCC shadowing warnings.
54890
54891 2005-08-19  Paul Eggert  <eggert@cs.ucla.edu>
54892
54893         * lib/regex_internal.c (re_acquire_state, re_acquire_state_context)
54894         [defined lint]: Suppress bogus uninitialized-variable warnings.
54895
54896         * lib/regcomp.c (duplicate_node): Return new index, not an error code,
54897         and let the caller return REG_ESPACE if out of space.  This
54898         removes an uninitialied-variable warning with GCC 4.0.1, and also
54899         avoids taking the address of a local variable.  All callers
54900         changed.
54901
54902 2005-08-19  Paul Eggert  <eggert@cs.ucla.edu>
54903
54904         * config/srclist.txt: Comment out $LIBCSRC/posix/regex_internal.c,
54905         $LIBCSRC/posix/regexec.c.
54906         Add glibc bug 1217 for regcomp.c.
54907
54908 2005-08-19  Jim Meyering  <jim@meyering.net>
54909
54910         * lib/regexec.c (proceed_next_node): Redo local variables to
54911         avoid GCC shadowing warnings.
54912
54913 2005-08-18  Bruno Haible  <bruno@clisp.org>
54914
54915         * lib/strstr.c (strstr): Fix return value in multibyte case.
54916         * lib/strcasestr.c (strcasestr): Likewise.
54917
54918 2005-08-17  Paul Eggert  <eggert@cs.ucla.edu>
54919
54920         * lib/regex.h: Remove useless space-before-tab.  From coreutils.
54921
54922 2005-08-17  Jim Meyering  <jim@meyering.net>
54923
54924         Make the %s format (seconds since the epoch) work for a negative
54925         number and when used with a zero-padded field width, e.g. %015s.
54926
54927         * lib/strftime.c (my_strftime): Move the `do_number_sign_and_padding'
54928         label so that it precedes the code to set `digits'.  Otherwise,
54929         %0Ns wouldn't work.  Before this change, `date -d @-22 +%05s' would
54930         print `00-22'.  Now, it prints `-0022', as it should.
54931
54932 2005-08-17  Bruno Haible  <bruno@clisp.org>
54933
54934         * modules/strstr (Files): Add m4/mbrtowc.m4.
54935         (Depends-on): Add mbuiter.
54936
54937 2005-08-17  Bruno Haible  <bruno@clisp.org>
54938
54939         * modules/strcasestr: New file.
54940         * MODULES.html.sh (String handling, based on ANSI C 89): Add
54941         strcasestr.
54942
54943 2005-08-17  Bruno Haible  <bruno@clisp.org>
54944
54945         * modules/strcase (Depends-on): Add mbuiter. Remove strnlen1, mbchar.
54946
54947 2005-08-17  Bruno Haible  <bruno@clisp.org>
54948
54949         * modules/mbuiter: New file.
54950         * MODULES.html.sh (Extended multibyte and wide character utilities):
54951         Add mbuiter.
54952
54953 2005-08-17  Bruno Haible  <bruno@clisp.org>
54954
54955         * m4/strstr.m4 (gl_FUNC_STRSTR): Use the replacement function always.
54956         (gl_PREREQ_STRSTR): Use gl_FUNC_MBRTOWC.
54957
54958 2005-08-17  Bruno Haible  <bruno@clisp.org>
54959
54960         * m4/strcasestr.m4: New file.
54961
54962 2005-08-17  Bruno Haible  <bruno@clisp.org>
54963
54964         * lib/strstr.h: Ignore HAVE_STRSTR, always declare the gnulib function.
54965         * lib/strstr.c: Completely rewritten, with multibyte locale support.
54966
54967 2005-08-17  Bruno Haible  <bruno@clisp.org>
54968
54969         * lib/strcasestr.h: New file.
54970         * lib/strcasestr.c: New file.
54971
54972 2005-08-17  Bruno Haible  <bruno@clisp.org>
54973
54974         * lib/strcasecmp.c: Use mbuiter.h.
54975
54976 2005-08-17  Bruno Haible  <bruno@clisp.org>
54977
54978         * lib/mbuiter.h: New file.
54979
54980 2005-08-16  Paul Eggert  <eggert@cs.ucla.edu>
54981
54982         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Do not override the results
54983         of gl_GETOPT_SUBSTITUTE.  That way, if both gl_GETOPT_SUBSTITUTE
54984         and gl_GETOPT are both invoked via different paths (as happens
54985         with GNU tar CVS because it uses both argp and getopt), the former
54986         wins.
54987
54988 2005-08-16  Bruno Haible  <bruno@clisp.org>
54989
54990         * modules/tls: New file.
54991         * MODULES.html.sh (Multithreading): Add tls.
54992
54993 2005-08-16  Bruno Haible  <bruno@clisp.org>
54994
54995         * modules/strnlen1: New file.
54996         * MODULES.html.sh (String handling): Add strnlen1.
54997
54998 2005-08-16  Bruno Haible  <bruno@clisp.org>
54999
55000         * modules/strcase (Files): Add m4/mbrtowc.m4.
55001         (Depends-on): Add strnlen1, mbchar.
55002
55003 2005-08-16  Bruno Haible  <bruno@clisp.org>
55004
55005         * modules/mbiter: New file.
55006         * MODULES.html.sh (Extended multibyte and wide character utilities):
55007         Add mbiter.
55008
55009 2005-08-16  Bruno Haible  <bruno@clisp.org>
55010
55011         * modules/mbfile: New file.
55012         * MODULES.html.sh (Extended multibyte and wide character utilities):
55013         Add mbfile.
55014
55015 2005-08-16  Bruno Haible  <bruno@clisp.org>
55016
55017         * modules/mbchar: New file.
55018         * MODULES.html.sh (Extended multibyte and wide character utilities):
55019         New section.
55020
55021 2005-08-16  Bruno Haible  <bruno@clisp.org>
55022
55023         * m4/tls.m4: New file, from GNU gettext.
55024
55025 2005-08-16  Bruno Haible  <bruno@clisp.org>
55026
55027         * m4/strcase.m4 (gl_FUNC_STRCASECMP): Use the replacement function
55028         always.
55029         (gl_PREREQ_STRCASECMP): Use gl_FUNC_MBRTOWC.
55030
55031 2005-08-16  Bruno Haible  <bruno@clisp.org>
55032
55033         * m4/mbiter.m4: New file.
55034
55035 2005-08-16  Bruno Haible  <bruno@clisp.org>
55036
55037         * m4/mbfile.m4: New file.
55038
55039 2005-08-16  Bruno Haible  <bruno@clisp.org>
55040
55041         * m4/mbchar.m4: New file.
55042
55043 2005-08-16  Bruno Haible  <bruno@clisp.org>
55044
55045         * lib/tls.h: New file, from GNU gettext.
55046         * lib/tls.c: New file, from GNU gettext.
55047
55048 2005-08-16  Bruno Haible  <bruno@clisp.org>
55049
55050         * lib/strnlen1.h: New file.
55051         * lib/strnlen1.c: New file.
55052
55053 2005-08-16  Bruno Haible  <bruno@clisp.org>
55054
55055         * lib/strcasecmp.c (struct mbiter_multi): Remove at_end field.
55056         (mbi_init): Update.
55057         (mbi_avail, mbi_advance): Let the iteration end before the terminating
55058         NUL byte, not after it.
55059
55060 2005-08-16  Bruno Haible  <bruno@clisp.org>
55061
55062         * lib/strcase.h (strcasecmp): Add note in comments.
55063         * lib/strncasecmp.c: Use code from strcasecmp.c.
55064         * lib/strcasecmp.c: Use mbchar module. Define private mbiter variant.
55065         (strcasecmp): Work correctly in multibyte locales.
55066
55067 2005-08-16  Bruno Haible  <bruno@clisp.org>
55068
55069         * lib/mbiter.h: New file.
55070
55071 2005-08-16  Bruno Haible  <bruno@clisp.org>
55072
55073         * lib/mbfile.h: New file.
55074
55075 2005-08-16  Bruno Haible  <bruno@clisp.org>
55076
55077         * lib/mbchar.h: New file.
55078         * lib/mbchar.c: New file.
55079
55080 2005-08-16  Bruno Haible  <bruno@clisp.org>
55081
55082         * lib/mbchar.h (mb_cmp, mb_casecmp): Order the invalid characters after
55083         the valid ones. Makes the comparison operations transitive:
55084         cmp (a, b) < 0 && cmp (b, c) < 0 ==> cmp (a, c) < 0.
55085         * lib/strcasecmp.c (strcasecmp): Use mb_casecmp.
55086
55087 2005-08-15  Simon Josefsson  <jas@extundo.com>
55088
55089         * modules/ssize_t (License): Change to 'unlimited'.
55090
55091         * gnulib-tool (sed_extract_prog): Recognize 'unlimited' license.
55092
55093 2005-08-15  Paul Eggert  <eggert@cs.ucla.edu>
55094
55095         * config/srclist.txt: Comment out $LIBCSRC/posix/regex.h.
55096         Add comments for each pending glibc patch.
55097
55098 2005-08-15  Bruno Haible  <bruno@clisp.org>
55099
55100         * lib/regex.h (__restrict_arr): Don't define to __restrict if
55101         __cplusplus is defined.
55102
55103 2005-08-14  Jim Meyering  <jim@meyering.net>
55104
55105         Sync from coreutils.
55106
55107         * lib/fts-cycle.c (setup_dir, enter_dir, leave_dir, free_dir):
55108         Use the hash-table-based cycle-detection code not just when
55109         FTS_TIGHT_CYCLE_CHECK if specified, but also with FTS_LOGICAL.
55110         Reported by James Youngman in
55111         <http://lists.gnu.org/archive/html/bug-gnulib/2005-08/msg00011.html>.
55112         * lib/fts_.h: Mention that with FTS_LOGICAL, we use
55113         FTS_TIGHT_CYCLE_CHECK.
55114         * lib/fts.c (fts_cross_check) [FTS_DEBUG]:
55115         s/active_dir_ht/fts_cycle.ht/. This lets us compile with -DFTS_DEBUG,
55116         once again.
55117         * lib/fts.c [! _LIBC]: Include "lstat.h" rather than rolling our own.
55118         * lib/fts.c (fd_safer): Remove decl.
55119         Include fcntl--.h rather than unistd-safer.h
55120         (fts_safe_changedir): Don't call fd_safer; no longer needed
55121         now that we include fcntl--.h.
55122
55123 2005-08-12  Simon Josefsson  <jas@extundo.com>
55124
55125         * modules/getndelim2: Use ssize_t module.
55126         * modules/getnline: Likewise.
55127         * modules/safe-read: Likewise.
55128         * modules/xreadlink: Likewise.
55129
55130         * modules/ssize_t: New file.
55131
55132 2005-08-12  Simon Josefsson  <jas@extundo.com>
55133
55134         * m4/readline.m4: Look for termcap, curses or ncurses if required.
55135
55136 2005-08-12  Simon Josefsson  <jas@extundo.com>
55137
55138         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
55139         ssize_t.
55140
55141 2005-08-12  Simon Josefsson  <jas@extundo.com>
55142
55143         * MODULES.html.sh (Extra functions based on ANSI C 89: Misc): Add
55144         readline, getdelim and check_version.
55145         (Support for systems lacking ISO C 99: Sizes of integer types):
55146         Add size_max.
55147
55148 2005-08-12  Bruno Haible  <bruno@clisp.org>
55149
55150         * m4/readline.m4 (gl_FUNC_READLINE): Look for ncurses first.
55151
55152 2005-08-11  Simon Josefsson  <jas@extundo.com>
55153
55154         * modules/readline: New file.
55155
55156         * modules/strnlen (Files): Add strnlen.h.
55157
55158 2005-08-11  Simon Josefsson  <jas@extundo.com>
55159
55160         * m4/readline.m4: New file.
55161
55162 2005-08-11  Simon Josefsson  <jas@extundo.com>
55163
55164         * lib/readline.h, readline.c: New file.
55165
55166 2005-08-11  Simon Josefsson  <jas@extundo.com>
55167
55168         * doc/gnulib.texi (Initial import, Finishing touches): Mention
55169         gl_AVOID.
55170
55171 2005-08-11  Bruno Haible  <bruno@clisp.org>
55172
55173         * lib/strnlen.h (strnlen): Change parameter name to match comment.
55174
55175 2005-08-10  Stepan Kasal  <kasal@ucw.cz>
55176
55177         * m4/onceonly_2_57.m4: Really require Autoconf 2.57.
55178
55179 2005-08-10  Simon Josefsson  <jas@extundo.com>
55180
55181         * tests/test-iconvme.c: New file.
55182
55183 2005-08-10  Simon Josefsson  <jas@extundo.com>
55184
55185         * m4/strnlen.m4: New file.
55186
55187         * m4/strndup.m4: Don't check for strnlen declaration, done in
55188         strnlen.m4.
55189
55190 2005-08-10  Simon Josefsson  <jas@extundo.com>
55191
55192         * lib/strndup.c: Use strnlen.h.
55193
55194         * lib/strnlen.h: New file.
55195
55196 2005-08-08  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>  (tiny change)
55197
55198         * README: Typos.
55199
55200 2005-08-02  Simon Josefsson  <jas@extundo.com>
55201
55202         * modules/readline: New file.
55203
55204 2005-08-02  Simon Josefsson  <jas@extundo.com>
55205
55206         * modules/getdelim: New file.
55207
55208         * modules/getline: Rewrite, don't use getndelim2.
55209
55210 2005-08-02  Simon Josefsson  <jas@extundo.com>
55211
55212         * m4/getline.m4: Separate out getdelim stuff into separate module.
55213
55214         * m4/getdelim.m4: New file.
55215
55216 2005-08-02  Simon Josefsson  <jas@extundo.com>
55217
55218         * lib/getline.h, getline.c: Rewrite.
55219
55220         * lib/getdelim.h, lib/getdelim.c: New files, ported from glibc.
55221
55222 2005-07-31  Bruno Haible  <bruno@clisp.org>
55223
55224         * lib/lock.h (gl_lock_initializer): New macro.
55225         (gl_lock_define_initialized): Use it.
55226         (gl_rwlock_initializer): New macro.
55227         (gl_rwlock_define_initialized): Use it.
55228         (gl_recursive_lock_initializer): New macro.
55229         (gl_recursive_lock_define_initialized): Use it.
55230
55231 2005-07-30  Karl Berry  <karl@gnu.org>
55232
55233         * doc/gnulib.texi (Initial import): mention -I$(top_builddir)/lib.
55234         Report from Ben Pfaff, regarding getopt.
55235
55236 2005-07-26  Paul Eggert  <eggert@cs.ucla.edu>
55237
55238         Add support to getopt for Emacs, which doesn't use LIBOBJS in the
55239         normal way.
55240         * m4/getopt.m4 (gl_GETOPT_SUBSTITUTE_HEADER): New macro.
55241         (gl_GETOPT_SUBSTITUTE): Use it.  Invoke gl_PREREQ_GETOPT.
55242         (gl_GETOPT_IFELSE, gl_GETOPT_CHECK_HEADERS): New macros.
55243         (gl_GETOPT): Use the new macros.  Most of the implementation
55244         is moved to the new macros.  This is for programs like Emacs
55245         that don't want all the functionality of gl_GETOPT.
55246
55247 2005-07-26  Bruno Haible  <bruno@clisp.org>
55248
55249         * m4/lock.m4: Update from GNU gettext.
55250
55251 2005-07-26  Bruno Haible  <bruno@clisp.org>
55252
55253         * lib/lock.h: Update from GNU gettext.
55254         * lib/lock.c: Update from GNU gettext.
55255
55256 2005-07-25  Paul Eggert  <eggert@cs.ucla.edu>
55257
55258         * m4/regex.m4 (gl_INCLUDED_REGEX): Use AC_RUN_IFELSE instead of the
55259         obsolescent AC_TRY_RUN.  Include the default includes files, for
55260         'exit'.
55261
55262 2005-07-24  Bruno Haible  <bruno@clisp.org>
55263
55264         * modules/visibility: New file.
55265         * MODULES.html.sh (Misc): Add visibility.
55266
55267 2005-07-24  Bruno Haible  <bruno@clisp.org>
55268
55269         * m4/visibility.m4: New file.
55270
55271 2005-07-24  Bruno Haible  <bruno@clisp.org>
55272
55273         * doc/visibility.texi: New file.
55274
55275 2005-07-22  Bruno Haible  <bruno@clisp.org>
55276
55277         * modules/alloca-opt (Makefile.am): Remove explicit dependency on
55278         $(ALLOCA_H), redundant through BUILT_SOURCES.
55279         * modules/argz (Makefile.am): Remove explicit dependency on $(ARGZ_H),
55280         redundant through BUILT_SOURCES.
55281         * modules/byteswap (Makefile.am): Remove explicit dependency on
55282         $(BYTESWAP_H), redundant through BUILT_SOURCES.
55283         * modules/fnmatch (Makefile.am): Remove explicit dependency on
55284         $(FNMATCH_H), redundant through BUILT_SOURCES.
55285         * modules/getopt (Makefile.am): Remove explicit dependency on
55286         $(GETOPT_H), redundant through BUILT_SOURCES.
55287         * modules/glob (Makefile.am): Remove explicit dependency on $(GLOB_H),
55288         redundant through BUILT_SOURCES.
55289         * modules/poll (Makefile.am): Remove explicit dependency on $(POLL_H),
55290         redundant through BUILT_SOURCES.
55291         * modules/stdbool (Makefile.am): Remove explicit dependency on
55292         $(STDBOOL_H), redundant through BUILT_SOURCES.
55293         * modules/stdint (Makefile.am): Remove explicit dependency on
55294         $(STDINT_H), redundant through BUILT_SOURCES.
55295         * modules/sysexits (Makefile.am): Add $(SYSEXITS_H) to BUILT_SOURCES.
55296         Remove explicit dependency on $(SYSEXITS_H).
55297         Reported by Alexandre Duret-Lutz <adl@src.lip6.fr>.
55298
55299 2005-07-18  Simon Josefsson  <jas@extundo.com>
55300
55301         * lib/check-version.c (check_version): Accept identical versions too.
55302
55303 2005-07-18  Bruno Haible  <bruno@clisp.org>
55304
55305         * modules/lock: New file.
55306         * MODULES.html.sh (Multithreading): New section.
55307
55308 2005-07-18  Bruno Haible  <bruno@clisp.org>
55309
55310         * m4/lock.m4: New file, from GNU gettext.
55311
55312 2005-07-18  Bruno Haible  <bruno@clisp.org>
55313
55314         * lib/lock.h: New file, from GNU gettext.
55315         * lib/lock.c: New file, from GNU gettext.
55316
55317 2005-07-18  Bruno Haible  <bruno@clisp.org>
55318
55319         * lib/lock.h (gl_once_t): New type.
55320         (gl_once_define, gl_once): New macros.
55321         * lib/lock.c (fresh_once): New variable.
55322         (glthread_once, glthread_once_call, glthread_once_singlethreaded): New
55323         functions.
55324
55325 2005-07-16  Simon Josefsson  <jas@extundo.com>
55326
55327         * doc/gnulib.texi (Library version handling): Add ELF symbol collision
55328         workaround, suggested by Bruno.
55329
55330 2005-07-15  Paul Eggert  <eggert@cs.ucla.edu>
55331
55332         * modules/xalloc (Depends-on): Add xalloc-die.
55333         * modules/xvasprintf (Depends-on): Add xalloc-die.
55334
55335 2005-07-15  Paul Eggert  <eggert@cs.ucla.edu>
55336
55337         * lib/quotearg.c: Add translator comment suggested by Bruno Haible,
55338         with a minor change.
55339
55340 2005-07-15  Bruno Haible  <bruno@clisp.org>
55341
55342         * m4/poll.m4 (gl_FUNC_POLL): Check against MacOS X 10.4 poll() bug.
55343         When using lib/poll.c, define poll as rpl_poll.
55344
55345 2005-07-14  Paul Eggert  <eggert@cs.ucla.edu>
55346
55347         * modules/argp (Depends-on): Remove unlocked-io.
55348
55349 2005-07-14  Derek Price  <derek@ximbiot.com>
55350
55351         * m4/glob.m4 (gl_GLOB): Cache glob interface check result.  Add check
55352         for glob symlink bug.
55353
55354 2005-07-14  Bruno Haible  <bruno@clisp.org>
55355
55356         * m4/argp.m4 (gl_ARGP): Remove invocation of gl_FUNC_GLIBC_UNLOCKED_IO.
55357         Instead, test for *_unlocked function declarations directly.
55358
55359 2005-07-11  Simon Josefsson  <jas@extundo.com>
55360
55361         * modules/size_max: New file.
55362
55363         * modules/xsize: Depend on size_max module for size_max.m4.
55364
55365 2005-07-11  Simon Josefsson  <jas@extundo.com>
55366
55367         * lib/size_max.h: New file.
55368
55369 2005-07-11  Paul Eggert  <eggert@cs.ucla.edu>
55370
55371         * lib/version-etc-fsf.c (version_etc_copyright): Parameterize the
55372         copyright symbol and the year.
55373         * lib/version-etc.c (COPYRIGHT_YEAR): New constant.
55374         (version_etc_va): Use parameterized copyright notice.
55375         Reword to conform to the current GNU coding standards.
55376
55377 2005-07-11  Karl Berry  <karl@gnu.org>
55378
55379         * doc/gnulib.texi (Quoting): new node.
55380         (Initial import): more info, from Patrice.
55381
55382 2005-07-11  Bruno Haible  <bruno@clisp.org>
55383
55384         * gnulib-tool (func_usage): Document option --avoid.
55385         (Command line options): Handle --avoid.
55386         (func_acceptable): New function.
55387         (func_modules_transitive_closure): Use it.
55388
55389 2005-07-11  Bruno Haible  <bruno@clisp.org>
55390
55391         * MODULES.html.sh: Use shortcut URLs to the www.opengroup.org site.
55392         Reported by Jim Meyering.
55393
55394 2005-07-10  Bruno Haible  <bruno@clisp.org>
55395
55396         * m4/size_max.m4 (gl_SIZE_MAX): Cast ~(size_t)0 back to size_t.
55397         Needed when size_t is smaller than 'unsigned int'.
55398         Reported by Paul Eggert.
55399
55400 2005-07-09  Sergey Poznyakoff  <gray@gnu.org.ua>
55401
55402         * modules/argp (Depends-on): Add unlocked-io
55403
55404 2005-07-09  Sergey Poznyakoff  <gray@gnu.org.ua>
55405
55406         * lib/argp-namefrob.h: Include unlocked-io.h. Removed unnecessary
55407         block of defines.
55408
55409 2005-07-08  Paul Eggert  <eggert@cs.ucla.edu>
55410
55411         * config/srclist.txt: Comment out regcomp.c, since we have a porting
55412         fix now.
55413
55414 2005-07-08  Eric Blake  <ebb9@byu.net>  (tiny change)
55415         and Paul Eggert  <eggert@cs.ucla.edu>
55416
55417         * lib/regcomp.c (init_dfa, build_range_exp): Store __btowc value
55418         in wint_t, not wchar_t.  Remove now-unnecessary cast.
55419
55420 2005-07-07  Paul Eggert  <eggert@cs.ucla.edu>
55421
55422         * modules/regex (Files): Add lib/regex_internal.c,
55423         lib/regex_internal.h, lib/regexec.c, lib/regcomp.c, m4/codeset.m4.
55424         (Depends-on): Add extensions.
55425         (Makefile.am): Remove lib_SOURCES; now done by m4 code.
55426
55427 2005-07-07  Paul Eggert  <eggert@cs.ucla.edu>
55428
55429         * m4/backupfile.m4 (gl_BACKUPFILE): Use AC_CHECK_FUNCS_ONCE on
55430         pathconf.
55431         * m4/same.m4 (gl_SAME): Likewise.
55432         Require AC_SYS_LONG_FILE_NAMES; bug reported by Gerrit P. Haase.
55433
55434         * m4/regex.m4: Adjust to new libc regex implementation.
55435         (gl_INCLUDED_REGEX): Add AC_LIBSOURCES for
55436         all the .c and .h parts of (the new) regex.
55437         Quote the m4 stuff better.
55438         Check for RE_ICASE bug of old gnulib.
55439         Check for REG_STARTEND of recent libc.
55440         Rename local variables from jm_* to gl_*.
55441         Quote operand of "test -f".
55442         Say "recent enough" version of libc, not "version 2".
55443         (gl_PREREQ_REGEX): Remove AC_FUNC_ALLOCA, since alloca is a
55444         prerequisite module.  Remove AC_HEADER_STDC; no longer needed.
55445         Check for locale.h, isblank, mbrtowc, wcrtomb, wcscoll.
55446         Remove check for btowc, isascii.
55447         Require AM_LANGINFO_CODESET.
55448
55449 2005-07-07  Paul Eggert  <eggert@cs.ucla.edu>
55450
55451         * lib/regex.c, regex.h: Sync from libc.
55452         * lib/regcomp.c, lib/regexec_internal.c, lib/regex_internal.h:
55453         * lib/regexec.c:
55454         New files, synced from libc, except that regex_internal.h
55455         currently has a small porting fix.
55456
55457 2005-07-07  Paul Eggert  <eggert@cs.ucla.edu>
55458
55459         * config/srclist.txt: Add regcomp.c, regex.c, regex.h,
55460         regex_internal.c, regexec.c.
55461         Add regex_internal.h too, but as a comment, since the libc version
55462         is currently broken in gnulib mode.
55463
55464 2005-07-06  Paul Eggert  <eggert@cs.ucla.edu>
55465
55466         Support programs like Emacs that use gnulib but not gettext.
55467         * MODULES.html.sh (Internationalization functions): Add gettext-h.
55468         * modules/gettext-h: New file.
55469         * modules/gettext (Files): Remove lib/gettext.h.
55470         (Depends-on): Add gettext-h.
55471         (Makefile.am): Remove lib_SOURCES.
55472         * modules/argmatch, modules/c-stack, modules/closeout:
55473         * modules/copy-file, modules/csharpcomp, modules/csharpexec:
55474         * modules/execute, modules/file-type, modules/getaddrinfo:
55475         * modules/getopt, modules/human, modules/javacomp:
55476         * modules/javaexec, modules/mkdir-p, modules/obstack:
55477         * modules/openat, modules/pagealign_alloc, modules/pipe:
55478         * modules/quotearg, modules/regex, modules/rpmatch:
55479         * modules/unicodeio, modules/userspec, modules/version-etc:
55480         * modules/wait-process, modules/xalloc-die, modules/xmemcoll:
55481         * modules/xsetenv:
55482         Depend on gettext-h, not gettext.
55483
55484 2005-07-05  Paul Eggert  <eggert@cs.ucla.edu>
55485
55486         * gnulib-tool (func_import): Add support for 'public domain' license.
55487         * modules/alloca, modules/atexit, modules/memmove:
55488         Now public domain, not GPL.
55489         * modules/dup2, modules/getpagesize, modules/malloc, modules/memset:
55490         * modules/realloc, modules/strerror, modules/strtod:
55491         Now LGPL, not GPL.
55492
55493 2005-07-05  Bruno Haible  <bruno@clisp.org>
55494
55495         * m4/mbrtowc.m4 (gl_FUNC_MBRTOWC): Upgrade to version from current
55496         autoconf CVS. Needed for mingw.
55497
55498 2005-07-03  Paul Eggert  <eggert@cs.ucla.edu>
55499
55500         Remove the dependency of the strftime module on the tzset module.
55501         * modules/strftime (Depends-on): Remove dependency on tzset.
55502
55503 2005-07-03  Paul Eggert  <eggert@cs.ucla.edu>
55504
55505         Remove the dependency of the strftime module on the tzset module.
55506         * m4/strftime.m4 (gl_FUNC_STRFTIME): Don't require
55507         gl_FUNC_TZSET_CLOBBER.
55508
55509 2005-07-03  Paul Eggert  <eggert@cs.ucla.edu>
55510
55511         Remove the dependency of the strftime module on the tzset module.
55512         * lib/strftime.c (my_strftime)
55513         [! defined _LIBC && ! HAVE_RUN_TZSET_TEST]:
55514         Copy the input structure, to work around some of the bug with
55515         Solaris 2.5.1 and Solaris 2.6.  If you still care about these old
55516         Solaris releases, you should also use the tzset module, but we won't
55517         require it as a dependency any more since we don't want LGPLed code
55518         to depend on GPLed code.
55519
55520 2005-07-02  Jim Meyering  <jim@meyering.net>
55521
55522         * m4/chown.m4, cloexec.m4, dup2.m4, fsusage.m4:
55523         * m4/getcwd-path-max.m4, getcwd.m4, mkstemp.m4, mountlist.m4:
55524         * m4/pagealign_alloc.m4, save-cwd.m4, unistd-safer.m4:
55525         Don't check for fcntl.h, and don't test for HAVE_FCNTL_H.
55526
55527 2005-07-02  Jim Meyering  <jim@meyering.net>
55528
55529         * lib/backupfile.c (backup_args): Change a `0' to NULL.
55530
55531 2005-07-01  Paul Eggert  <eggert@cs.ucla.edu>
55532
55533         * lib/xnanosleep.c: Include timespec.h, since OpenBSD 3.4 <time.h>
55534         declares only 'struct timespec;' (!).
55535
55536 2005-07-01  Jim Meyering  <jim@meyering.net>
55537
55538         * lib/chown.c, cloexec.c, dup-safer.c, dup2.c, fsusage.c, getcwd.c:
55539         * lib/getloadavg.c, mountlist.c, openat.h, pagealign_alloc.c:
55540         * lib/save-cwd.c, tempname.c:
55541         Assume HAVE_FCNTL_H (i.e., include <fcntl.h> unconditionally,
55542         and don't include <sys/file.h>).
55543
55544 2005-06-29  Jim Meyering  <jim@meyering.net>
55545
55546         * lib/mkdir-p.c (make_dir_parents): Don't apply sizeof to a hard-coded
55547         type name.  Use the variable name instead.
55548         * lib/idcache.c (getuser, getuidbyname, getgroup, getgidbyname):
55549         Likewise.
55550
55551 2005-06-28  Simon Josefsson  <jas@extundo.com>
55552
55553         * modules/check-version (Files): Add check-version.m4.
55554
55555 2005-06-28  Simon Josefsson  <jas@extundo.com>
55556
55557         * m4/check-version.m4: New file, suggested by Jim Meyering
55558         <jim@meyering.net>.
55559
55560 2005-06-28  Simon Josefsson  <jas@extundo.com>
55561
55562         * lib/check-version.h, lib/check-version.c: New files.
55563
55564 2005-06-28  Simon Josefsson  <jas@extundo.com>
55565
55566         * lib/base64.c (base64_encode): Indent.  Rename 'b64' to avoid
55567         collision with global variable.  Better indentation.  Don't
55568         increment buffer pointer beyond buffer end.  Based on comments
55569         from Paul Eggert <eggert@cs.ucla.edu>.
55570
55571         * lib/base64.h: Indent.
55572
55573 2005-06-28  Simon Josefsson  <jas@extundo.com>
55574
55575         * doc/gnulib.texi (Library version handling): New section.
55576
55577 2005-06-28  Jim Meyering  <jim@meyering.net>
55578
55579         * check-module (find_included_lib_files): Hard-code another
55580         pair of exceptions: fts.c includes fts-cycle.c and unistd-safer.h
55581         but modules/fts-lgpl (correctly) does not list those files.
55582
55583         * modules/canonicalize (Files): Add lib/pathmax.h.
55584
55585 2005-06-25  Simon Josefsson  <jas@extundo.com>
55586
55587         * modules/check-version: New file.
55588
55589 2005-06-24  Paul Eggert  <eggert@cs.ucla.edu>
55590
55591         * lib/canon-host.c (canon-host): Append trailing "," to 0 in
55592         initializer of struct addrinfo, as an indication that we don't
55593         care how many members the structure has.
55594
55595 2005-06-24  Derek Price  <derek@ximbiot.com>
55596         and Bruno Haible  <bruno@clisp.org>
55597
55598         Remove stat module & update lstat.
55599         * m4/lstat.m4 (gl_FUNC_LSTAT): Drop AC_FUNC_LSTAT in favor of
55600         AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
55601         * m4/stat.m4: Remove this file.
55602
55603 2005-06-24  Derek Price  <derek@ximbiot.com>
55604         and Bruno Haible  <bruno@clisp.org>
55605
55606         Remove stat module & update lstat.
55607         * lib/stat.c: Remove this file...
55608         (slash_aware_lstat): ...moving this content and its support...
55609         * lib/lstat.c (rpl_lstat): ...into here.
55610         * lib/lstat.h: New file.
55611
55612 2005-06-24  Derek Price  <derek@ximbiot.com>
55613         and Bruno Haible  <bruno@clisp.org>
55614
55615         Remove stat module & update lstat.
55616         * config/srclist.txt (libc sources): Remove stat.
55617
55618 2005-06-24  Derek Price  <derek@ximbiot.com>
55619         and Bruno Haible  <bruno@clisp.org>
55620
55621         Remove stat module & update lstat.
55622         * MODULES.html.sh (stat): Remove.
55623         * MODULES.html: Regenerated.
55624         * modules/lstat (Description): Correct function name.
55625         (Files): Add "lstat.h".
55626         (Depends-on): Remove stat, add xalloc, stat-macros.
55627         * modules/stat: Remove this file.
55628         (Include): Add "lstat.h", remove <sys/stat.h>.
55629
55630 2005-06-23  Paul Eggert  <eggert@cs.ucla.edu>
55631
55632         * lib/mktime.c: Include <string.h> even if !DEBUG.  (From glibc.)
55633         (ranged_convert): Don't save conversion in a temporary struct.
55634         This causes a warning with GCC 4.0.0, and anyway in the typical
55635         case it's not worth the extra 100 bytes or so of code.
55636         (ranged_convert, __mktime_internal): When calling a function via a
55637         pointer P, use P () rather than (*P) (), as we now assume C89 or
55638         better.
55639
55640 2005-06-22  Paul Eggert  <eggert@cs.ucla.edu>
55641
55642         * lib/readutmp.c (desirable_utmp_entry): Fix bug where "who -b" and
55643         "who -r" failed to give output.  Problem reported by Tim Waugh.
55644
55645         * lib/xmalloc.c (HAVE_GNU_CALLOC): New constant.
55646         (xcalloc): Use it to avoid needless tests.
55647         Problem reported by Jim Meyering.
55648
55649 2005-06-20  Derek Price  <derek@ximbiot.com>
55650
55651         * m4/bison.m4: Note that precious decls of YACC & YFLAGS will be
55652         unnecessary for Autoconfs > 2.59c.
55653
55654 2005-06-16  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
55655
55656         * lib/argp.h (__option_is_short): Check upper limit of
55657         __key. Isprint() requires its argument to have the value
55658         of an unsigned char or EOF.
55659
55660 2005-06-16  Jim Meyering  <jim@meyering.net>
55661
55662         * lib/calloc.c (rpl_calloc): Allocate a 1-byte buffer (not 1xS or Nx1)
55663         when either N or S is zero.
55664
55665 2005-06-16  Derek Price  <derek@ximbiot.com>
55666
55667         * m4/bison.m4: Declare YACC & YFLAGS precious.
55668
55669 2005-06-10  Paul Eggert  <eggert@cs.ucla.edu>
55670
55671         * lib/fnmatch.c (fnmatch): If there is an encoding error in a
55672         multibyte string or pattern, fall back on unibyte matching.
55673         Problem reported by James Youngman.
55674
55675 2005-06-08  Bruno Haible  <bruno@clisp.org>
55676
55677         * modules/csharpcomp: New file.
55678         * MODULES.html.sh (C#): Add csharpcomp.
55679
55680 2005-06-08  Bruno Haible  <bruno@clisp.org>
55681
55682         * m4/csharpcomp.m4: New file, from GNU gettext.
55683
55684 2005-06-08  Bruno Haible  <bruno@clisp.org>
55685
55686         * lib/csharpcomp.h: New file, from GNU gettext.
55687         * lib/csharpcomp.c: New file, from GNU gettext.
55688         * lib/csharpcomp.sh.in: New file, from GNU gettext.
55689
55690 2005-06-08  Bruno Haible  <bruno@clisp.org>
55691
55692         * lib/binary-io.h (fileno): Undefine before defining it. Avoids a gcc
55693         warning on mingw.
55694
55695 2005-06-07  Derek Price  <derek@ximbiot.com>
55696
55697         Sync from CVS.
55698         * lib/glob_.h: Indent nested #ifdef.
55699
55700 2005-06-02  Paul Eggert  <eggert@cs.ucla.edu>
55701
55702         Sync from coreutils.
55703         Use "file name" when talking about file names, instead of "filename"
55704         or "path", as per the GNU coding standards.
55705         * lib/mkdir-p.c: Renamed from makepath.c.
55706         (make_dir_parents): Renamed from make_path.  All callers changed.
55707         * lib/mkdir-p.h: Likewise.  All includers changed.
55708         * lib/filenamecat.c: Renamed from path-concat.c.
55709         (file_name_concat): Renamed from path_concat.  All callers changed.
55710         [TEST_FILE_NAME_CONCAT]: Renamed from TEST_PATH_CONCAT.
55711         * lib/filenamecat.h: Likewise.  All includers changed.
55712         * lib/acl.c: Don't use "path" or "filename" to mean "file name"
55713         in comments or local variable names.
55714         * lib/basename.c: Likewise.
55715         * lib/canonicalize.c, canonicalize.h: Likewise.
55716         * lib/dirname.c, dirname.h: Likewise.
55717         * lib/euidaccess.c: Likewise.
55718         * lib/exclude.c: Likewise
55719         * lib/fnmatch_.h, fnmatch_loop.c: Likewise.
55720         * lib/fsusage.c, fsuage.h: Likewise.
55721         * lib/fts.c, fts_.h: Likewise.
55722         * lib/getcwd.c: Likewise.
55723         * lib/getloadavg.c: Likewise.
55724         * lib/mkstemp.c: Likewise.
55725         * lib/mountlist.c, mountlist.h: Likewise.
55726         * lib/openat.c, openat.h: Likewise.
55727         * lib/readlink-stub.c: Likewise.
55728         * lib/readutmp.c, readutmp.h: Likewise.
55729         * lib/rename.c: Likewise.
55730         * lib/rmdir.c: Likewise.
55731         * lib/same.c: Likewise.
55732         * lib/savedir.c: Likewise.
55733         * lib/stripslash.c: Likewise.
55734         * lib/tempname.c: Likewise.
55735         * lib/xreadlink.c: Likewise.
55736         * lib/exclude.c (excluded_file_name): Renamed from excluded_filename.
55737         All uses changed.
55738         * lib/exclude.h: Likewise.
55739
55740         * lib/euidaccess.c (getuid, getgid, getuid, getegid)
55741         [!defined _POSIX_VERSION]: Remove decls; not needed these days.
55742         * lib/idcache.c (getpwuid, getpwnam, getgrgid, getgrnam)
55743         [!defined _POSIX_VERSION]: Remove decls; not needed these days.
55744         * lib/pathmax.h: Include <limits.h> unconditionally, since other
55745         files have been getting away with it for years (MORE/BSD 4.3
55746         is extinct now).
55747         * lib/userspec.c (getpwnam, getgrnam, getgrgid)
55748         [!defined _POSIX_VERSION]: Remove decls; not needed these days.
55749
55750         * lib/pathmax.h (_POSIX_PATH_MAX) [!defined _POSIX_PATH_MAX]:
55751         Define to 256, not 255, as per modern POSIX.
55752
55753 2005-06-02  Paul Eggert  <eggert@cs.ucla.edu>
55754
55755         Sync from coreutils.
55756         Use "file name" when talking about file names, instead of "filename"
55757         or "path", as per the GNU coding standards.
55758         * MODULES.html.sh: mkdir-p renamed from makepath.
55759         filenamecat renamed from path-concat.
55760         * modules/filenamecat: Renamed from modules/path-concat.
55761         (Files): filenamecat.h and filenamecat.c renamed from
55762         path-concat.h and path-concat.c.
55763         (configure.ac): gl_FILE_NAME_CONCAT, not gl_PATH_CONCAT.
55764         (Include): filenamecat.h, not path-concat.h.
55765         * modules/mkdir-p: Renamed from modules/makepath.
55766         (Files): mkdir-p.h and mkdir-p.c renamed from makepath.h and
55767         makepath.c.
55768         (configure.ac): gl_MKDIR_PARENTS, not gl_MAKEPATH.
55769         (Include): mkdir-p.h, not makepath.h.
55770
55771 2005-06-02  Paul Eggert  <eggert@cs.ucla.edu>
55772
55773         Sync from coreutils.
55774         * m4/mkdir-p.m4: Renamed from makepath.m4.
55775         (gl_MKDIR_PARENTS): Renamed from gl_MAKEPATH.  All uses changed.
55776         Rename files from makepath.c to mkdir-p.c, and from
55777         makepath.h to mkdir-p.h.
55778         * m4/filenamecat.m4: Renamed from path-concat.m4.
55779         (gl_FILE_NAME_CONCAT): Renamed from gl_PATH_CONCAT.  All uses changed.
55780         Rename files from path-concat.c to filenamecat.c,
55781         and from path-concat.h to filenamecat.h.
55782         * m4/getcwd-path-max.m4: Don't use "path" or "filename" to mean
55783         "file name" in local variables or comments.
55784         * m4/rename.m4: Likewise.
55785
55786 2005-06-01  Bruno Haible  <bruno@clisp.org>
55787
55788         * modules/csharpexec: New file.
55789         * MODULES.html.sh (C#): New section.
55790
55791 2005-06-01  Bruno Haible  <bruno@clisp.org>
55792
55793         * m4/csharp.m4: New file, from GNU gettext.
55794         * m4/csharpexec.m4: New file, from GNU gettext.
55795
55796 2005-06-01  Bruno Haible  <bruno@clisp.org>
55797
55798         * lib/csharpexec.h: New file, from GNU gettext.
55799         * lib/csharpexec.c: New file, from GNU gettext.
55800         * lib/csharpexec.sh.in: New file, from GNU gettext.
55801
55802 2005-05-31  Derek Price  <derek@ximbiot.com>
55803             Paul Eggert  <eggert@cs.ucla.edu>
55804
55805         Sync from cvs.
55806         * m4/glob.m4: s/MISSING_SYS_CDEFS_H/_SYS_CDEFS_H/ and comment.
55807
55808 2005-05-31  Derek Price  <derek@ximbiot.com>
55809             Paul Eggert  <eggert@cs.ucla.edu>
55810
55811         Sync from cvs.
55812         * lib/glob_.h: s/MISSING_SYS_CDEFS_H/_SYS_CDEFS_H/ and comment.
55813
55814 2005-05-29  Derek Price  <derek@ximbiot.com>
55815
55816         * config/srclist.txt (glob_.h, glob.c): Add these files.
55817
55818 2005-05-29  Derek Price  <derek@ximbiot.com>
55819
55820         * MODULES.html.sh: Add glob to Enhanced POSIX.2001 section.
55821         * modules/glob: New file.
55822         * modules/getlogin_r: Add link to POSIX spec in description.
55823
55824 2005-05-29  Derek Price  <derek@ximbiot.com>
55825             Paul Eggert  <eggert@cs.ucla.edu>
55826
55827         * m4/glob.m4: New file.
55828
55829 2005-05-29  Derek Price  <derek@ximbiot.com>
55830             Paul Eggert  <eggert@cs.ucla.edu>
55831
55832         * lib/glob_.h, lib/glob.c: New files.
55833
55834 2005-05-27  Paul Eggert  <eggert@cs.ucla.edu>
55835
55836         * modules/fts (Files): Remove m4/inttypes-pri.m4.
55837         * modules/fts-lgpl (Depends-on): Remove gettext.
55838
55839 2005-05-27  Paul Eggert  <eggert@cs.ucla.edu>
55840
55841         * m4/fts.m4 (gl_FUNC_FTS_CORE): Don't check for inttypes.h or stdint.h,
55842         and don't require gt_INTTYPES_PRI.
55843
55844 2005-05-27  Paul Eggert  <eggert@cs.ucla.edu>
55845
55846         * lib/getlogin_r.c (getlogin_r): Don't set errno to 0 on return.
55847
55848         * lib/fts.c: Don't worry about debugging on pre-C99-compatible hosts;
55849         the configuration hassle isn't worth it.
55850         Include inttypes.h and stdint.h unconditionally if FTS_DEBUG.
55851         (LONGEST_MODIFIER, PRIuMAX): Remove.
55852
55853 2005-05-27  Bruno Haible  <bruno@clisp.org>
55854
55855         * lib/getlogin_r.h: Remove second include of <stddef.h>.
55856
55857 2005-05-26  Paul Eggert  <eggert@cs.ucla.edu>
55858
55859         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Define
55860         _POSIX_PTHREAD_SEMANTICS for Solaris.
55861
55862 2005-05-25  Derek Price  <derek@ximbiot.com>
55863
55864         * MODULES.html.sh: Add getlogin_r to POSIX.2001 support section.
55865
55866 2005-05-25  Derek Price  <derek@ximbiot.com>
55867             Paul Eggert  <eggert@cs.ucla.edu>
55868
55869         * modules/getlogin_r, m4/getlogin_r.m4: New files.
55870         * lib/getlogin_r.c, getlogin_r.h: New files.
55871
55872 2005-05-25  Bruno Haible  <bruno@clisp.org>
55873             Derek Price  <derek@ximbiot.com>
55874
55875         * lib/getlogin_r.h: Simplify API documentation.
55876
55877 2005-05-23  Derek Price  <derek@ximbiot.com>
55878
55879         * modules/minmax (Files): Add m4/minmax.m4.
55880         (configure.ac): Add gl_MINMAX.
55881
55882 2005-05-22  Paul Eggert  <eggert@cs.ucla.edu>
55883
55884         * lib/fts.c (fd_safer) [_LGPL_PACKAGE]: New static function,
55885         so that unistd-safer.h (GPL'ed code) need not be included.
55886
55887 2005-05-22  Bruno Haible  <bruno@clisp.org>
55888
55889         * m4/minmax.m4: New file.
55890         Based on a patch by Derek Price <derek@ximbiot.com>.
55891
55892 2005-05-22  Bruno Haible  <bruno@clisp.org>
55893
55894         * lib/stdint_.h (_STDINT_H_HAVE_INT64): New macro. Use it in #ifdefs.
55895         (INT64_MIN): Fix definition.
55896         Suggested by Paul Eggert <eggert@cs.ucla.edu>.
55897
55898         * lib/stdint_.h (_STDINT_H_NEED_SIGNED_INT_TYPES): Renamed from
55899         NEED_SIGNED_INT_TYPES.
55900
55901         * lib/stdint_.h (_STDINT_H_HAVE_SYSTEM_INTTYPES): Renamed from
55902         HAVE_SYSTEM_INTTYPES.
55903
55904 2005-05-22  Bruno Haible  <bruno@clisp.org>
55905
55906         * lib/minmax.h: Include <limits.h> only when it defines MIN, MAX.
55907         Also include <sys/param.h> if it defines MIN, MAX.
55908         Based on a patch by Derek Price <derek@ximbiot.com>.
55909
55910 2005-05-21  Jim Meyering  <jim@meyering.net>
55911
55912         * modules/fts (Files): Add m4/inttypes-pri.m4.
55913         (Depends-on): Add lstat and remove gettext.  Alphabetize.
55914
55915 2005-05-20  Paul Eggert  <eggert@cs.ucla.edu>
55916
55917         New fts module.
55918         * lib/fts.c: Don't include "cycle-check.h" or "hash.h".
55919         (setup_dir, free_dir): New functions.
55920         (enter_dir, leave_dir): Define trivial
55921         alternatives of _LGPL_PACKAGE.  Move to fts-cycle.c if !_LGPL_PACKAGE.
55922         (HT_INITIAL_SIZE, ENTER_DIR): Remove.  All uses removed.
55923         (LEAVE_DIR): Fix typo: pass Fts and Ent to leave_dir.
55924         (struct Active_dir, AD_compare, AD_hash, enter_dir, leave_dir):
55925         Move to fts-cycle.c.
55926         (fts_open): Use setup_dir.
55927         (fts_close): Use free_dir.
55928         (fts_read): Have just one copy of the ENTER_DIR code rather than three.
55929         This adds a label and some gotos, but the alternatives were messier.
55930         Check for memory allocation failure when entering a dir.
55931         (fts_stat) [_LGPL_PACKAGE]: Bring back glibc cycle detection code.
55932         * lib/fts_.h (_LGPL_PACKAGE) [defined _LIBC]: New macro.
55933         (FTS): New member fts_cycle, that is a union that contains the
55934         old active_dir_ht and cycle_state.  All uses changed to mention
55935         fts_cycle.ht and fts_cycle.state.
55936         * lib/fts-cycle.c: New file, containing GPL'ed code migrated out of
55937         fts.c, with the following changes:
55938         (setup_dir, free_dir): New functions.
55939         (enter_dir): Now returns bool.  Return true if successful, false
55940         if memory exhausted.  All callers changed.
55941         Do not bother partly cleaning up on
55942         memory allocation failure; that is free_dir's job.
55943         However, free ad if hash_insert fails, to avoid memory leak.
55944         (enter_dir, leave_dir): Accommodate change to FTS by inspecting
55945         fts->fts_options to see which union member to use.
55946
55947 2005-05-20  Paul Eggert  <eggert@cs.ucla.edu>
55948
55949         * m4/fts.m4 (gl_FUNC_FTS_CORE): Renamed from gl_FUNC_FTS.
55950         (gl_FUNC_FTS, gl_FUNC_FTS_LGPL): New macros.
55951
55952 2005-05-20  Paul Eggert  <eggert@cs.ucla.edu>
55953
55954         * MODULES.html.sh (File system functions): Add fts, fts-lgpl.
55955
55956 2005-05-20  Jim Meyering  <jim@meyering.net>
55957
55958         * lib/unlinkdir.h (cannot_unlink_dir) [UNLINK_CANNOT_UNLINK_DIR]:
55959         Now a macro, to pacify GCC.
55960
55961 2005-05-20  Eric Blake  <ebb9@byu.net>  (tiny change)
55962
55963         * m4/chown.m4 (gl_FUNC_CHOWN): Correct sense of test for honoring IDs
55964         of -1.
55965
55966 2005-05-20  Eric Blake  <ebb9@byu.net>  (tiny change)
55967
55968         * lib/chown.c (rpl_chown): Return -1 on failure.
55969
55970 2005-05-18  Paul Eggert  <eggert@cs.ucla.edu>
55971
55972         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME]):
55973         Don't check for stddef.h.
55974         * m4/fts.m4 (gl_FUNC_FTS): Don't require AC_HEADER_STDC, as we
55975         don't use its results.
55976         Don't check for fcntl.h, stddef.h, stdlib.h, string.h, unistd.h,
55977         since we include them unconditionally.  Don't require
55978         AM_STDBOOL_H, since stdbool is a prerequisite.
55979         Don't require AC_C_CONST, AC_TYPE_SIZE_T or check for ptrdiff_t
55980         since we assume C89 or better.
55981         Don't require AC_FUNC_CLOSEDIR_VOID, AC_FUNC_LSTAT, or AC_FUNC_STAT,
55982         as we don't use their results.
55983         Don't check for fchdir, memmove, memset, strrchr, as we use
55984         them unconditionally.
55985         * m4/gettimeofday.m4 (AC_FUNC_GETTIMEOFDAY_CLOBBER): Don't define
55986         GETTIMEOFDAY_CLOBBERS_LOCALTIME_BUFFER, since nobody uses it.
55987
55988 2005-05-18  Paul Eggert  <eggert@cs.ucla.edu>
55989
55990         * lib/canonicalize.c: Include canonicalize.h first, to test interface.
55991         Include <stddef.h> unconditionally, since we assume C89 now.
55992         All uses of PTR_INT_TYPE replaced by ptrdiff_t.
55993         * lib/fts.c: Include fts_.h first, to check interface.
55994         Do not include intprops.h; no longer needed.
55995         Include cycle-check.h and hash.h, since fts_.h no longer does.
55996         Remove unnecessary casts of closedir to void.
55997         (fts_build): Use a simpler method (not involving TYPE_SIGNED) to
55998         decide whether to decrement nlinks.
55999         * lib/fts_.h: Do not include hash.h or cycle-check.h; no longer needed.
56000         (FTS): Use struct hash_table * instead of Hash_table, so that
56001         we no longer need to include hash.h here.
56002
56003 2005-05-18  Jim Meyering  <jim@meyering.net>
56004
56005         * modules/dirfd (License): Change to LGPL.  Most of the code
56006         is already in the public domain.
56007
56008 2005-05-18  Jim Meyering  <jim@meyering.net>
56009
56010         * m4/fts.m4 (AC_LIBSOURCES): Add intprops.h to the list.
56011         Reported by Yoann Vandoorselaere.
56012
56013 2005-05-17  Jim Meyering  <jim@meyering.net>
56014
56015         * m4/fts.m4: New file, from coreutils.
56016
56017 2005-05-17  Jim Meyering  <jim@meyering.net>
56018
56019         * lib/fts.c, lib/fts_.h: New files, from coreutils.
56020
56021 2005-05-14  Paul Eggert  <eggert@cs.ucla.edu>
56022
56023         Sync from coreutils.
56024         * m4/unlinkdir.m4: New file.
56025
56026 2005-05-14  Paul Eggert  <eggert@cs.ucla.edu>
56027
56028         Sync from coreutils.
56029         * lib/unlinkdir.c, lib/unlinkdir.h: New files.
56030         * lib/gethrxtime.c, lib/gethrxtime.h, lib/getpass.h, lib/mountlist.h,
56031         lib/path-concat.c, lib/regex.h, lib/unlocked-io.h, lib/xtime.h:
56032         White space changes only.
56033         * lib/makepath.c (make_path): Port to hosts where leading "//" is
56034         special.
56035         * lib/yesno.c: Include getline.h, not ctype.h.
56036         (yesno): Don't remove leading white space; POSIX doesn't allow it.
56037         Use getline to remove arbitrary restriction on response length.
56038
56039 2005-05-14  Paul Eggert  <eggert@cs.ucla.edu>
56040
56041         * config/srclist-update: Spell out "Street" in FSF postal
56042         mail address; this is the style the FSF seems to prefer.
56043
56044         * build-aux/depcomp, build-aux/install-sh, build-aux/mdate-sh,
56045         build-aux/missing, build-aux/mkinstalldirs: Sync from Automake;
56046         this updates FSF postal mail address.
56047
56048         Sync from coreutils.
56049         * modules/unlinkdir: New file.
56050         * modules/yesno (Depends-on): Add getline.
56051         * MODULES.html.sh (File system functions): Add unlinkdir.
56052
56053 2005-05-13  Paul Eggert  <eggert@cs.ucla.edu>
56054
56055         * lib/byteswap_.h, lib/getsubopt.h, lib/iconvme.h, lib/strsep.c,
56056         lib/strsep.h:
56057         Change the initial comment to refer to GPL, not LGPL.
56058         gnulib-tool will change it to LGPL as needed.
56059
56060         * lib/__fpending.c, lib/acl.c, lib/acl.h, lib/alloca_.h, lib/allocsa.c,
56061         lib/allocsa.h, lib/argmatch.c, lib/argmatch.h, lib/argp-ba.c,
56062         lib/argp-eexst.c, lib/argp-fmtstream.c, lib/argp-fmtstream.h,
56063         lib/argp-fs-xinl.c, lib/argp-help.c, lib/argp-namefrob.h,
56064         lib/argp-parse.c, lib/argp-pv.c, lib/argp-pvh.c, lib/argp-xinl.c,
56065         lib/argp.h, lib/argz.c, lib/argz_.h, lib/asnprintf.c, lib/asprintf.c,
56066         lib/atanl.c, lib/backupfile.c, lib/backupfile.h, lib/base64.c,
56067         lib/base64.h, lib/basename.c, lib/binary-io.h, lib/byteswap_.h,
56068         lib/c-ctype.c, lib/c-ctype.h, lib/c-stack.c, lib/c-stack.h,
56069         lib/c-strtod.c, lib/calloc.c, lib/canon-host.c, lib/canonicalize.c,
56070         lib/canonicalize.h, lib/ceill.c, lib/chdir-long.c, lib/chdir-long.h,
56071         lib/chown.c, lib/classpath.c, lib/classpath.h, lib/cloexec.c,
56072         lib/closeout.c, lib/closeout.h, lib/concatpath.c, lib/config.charset,
56073         lib/copy-file.c, lib/copy-file.h, lib/cycle-check.c, lib/cycle-check.h,
56074         lib/diacrit.c, lib/diacrit.h, lib/dirfd.c, lib/dirfd.h, lib/dirname.c,
56075         lib/dirname.h, lib/dummy.c, lib/dup-safer.c, lib/dup2.c, lib/eealloc.h,
56076         lib/error.c, lib/error.h, lib/euidaccess.c, lib/exclude.c,
56077         lib/exclude.h, lib/execute.c, lib/execute.h, lib/exit.h,
56078         lib/exitfail.c, lib/exitfail.h, lib/expl.c, lib/fatal-signal.c,
56079         lib/fatal-signal.h, lib/fd-safer.c, lib/file-type.c, lib/file-type.h,
56080         lib/fileblocks.c, lib/filemode.c, lib/filemode.h, lib/findprog.c,
56081         lib/findprog.h, lib/floorl.c, lib/fnmatch.c, lib/fnmatch_.h,
56082         lib/fnmatch_loop.c, lib/fopen-safer.c, lib/free.c, lib/frexpl.c,
56083         lib/fsusage.c, lib/fsusage.h, lib/full-read.c, lib/full-read.h,
56084         lib/full-write.c, lib/full-write.h, lib/fwriteerror.c,
56085         lib/fwriteerror.h, lib/gai_strerror.c, lib/gcd.c, lib/gcd.h,
56086         lib/getaddrinfo.c, lib/getaddrinfo.h, lib/getcwd.c, lib/getcwd.h,
56087         lib/getdate.h, lib/getdate.y, lib/getdomainname.c, lib/getdomainname.h,
56088         lib/getgroups.c, lib/gethostname.c, lib/gethrxtime.c, lib/gethrxtime.h,
56089         lib/getline.c, lib/getline.h, lib/getloadavg.c, lib/getndelim2.c,
56090         lib/getndelim2.h, lib/getnline.c, lib/getnline.h, lib/getopt.c,
56091         lib/getopt1.c, lib/getopt_.h, lib/getopt_int.h, lib/getpagesize.h,
56092         lib/getpass.c, lib/getpass.h, lib/getsubopt.c, lib/getsubopt.h,
56093         lib/gettext.h, lib/gettime.c, lib/gettimeofday.c, lib/getugroups.c,
56094         lib/getusershell.c, lib/group-member.c, lib/group-member.h,
56095         lib/hard-locale.c, lib/hard-locale.h, lib/hash-pjw.c, lib/hash-pjw.h,
56096         lib/hash.c, lib/hash.h, lib/human.c, lib/human.h, lib/iconvme.c,
56097         lib/iconvme.h, lib/idcache.c, lib/inet_ntop.h, lib/intprops.h,
56098         lib/inttostr.c, lib/inttostr.h, lib/isdir.c, lib/javacomp.c,
56099         lib/javacomp.h, lib/javacomp.sh.in, lib/javaexec.c, lib/javaexec.h,
56100         lib/javaexec.sh.in, lib/lbrkprop.h, lib/lchown.c, lib/ldexpl.c,
56101         lib/linebreak.c, lib/linebreak.h, lib/linebuffer.c, lib/linebuffer.h,
56102         lib/localcharset.c, lib/localcharset.h, lib/logl.c, lib/long-options.c,
56103         lib/long-options.h, lib/lstat.c, lib/makepath.c, lib/makepath.h,
56104         lib/malloc.c, lib/mathl.h, lib/mbswidth.c, lib/mbswidth.h, lib/md5.c,
56105         lib/md5.h, lib/memcasecmp.c, lib/memcasecmp.h, lib/memchr.c,
56106         lib/memcmp.c, lib/memcoll.c, lib/memcoll.h, lib/memcpy.c, lib/memmem.c,
56107         lib/memmem.h, lib/mempcpy.c, lib/mempcpy.h, lib/memrchr.c,
56108         lib/memrchr.h, lib/memset.c, lib/minmax.h, lib/mkdir.c, lib/mkdtemp.c,
56109         lib/mkdtemp.h, lib/mkstemp.c, lib/mktime.c, lib/modechange.c,
56110         lib/modechange.h, lib/mountlist.c, lib/mountlist.h, lib/nanosleep.c,
56111         lib/obstack.c, lib/obstack.h, lib/openat.c, lib/openat.h,
56112         lib/pagealign_alloc.c, lib/pagealign_alloc.h, lib/path-concat.c,
56113         lib/path-concat.h, lib/pathmax.h, lib/pathname.h, lib/physmem.c,
56114         lib/physmem.h, lib/pipe.c, lib/pipe.h, lib/poll.c, lib/poll_.h,
56115         lib/posixtm.c, lib/posixtm.h, lib/posixver.c, lib/printf-args.c,
56116         lib/printf-args.h, lib/printf-parse.c, lib/printf-parse.h,
56117         lib/progname.c, lib/progname.h, lib/progreloc.c, lib/putenv.c,
56118         lib/quote.c, lib/quote.h, lib/quotearg.c, lib/quotearg.h, lib/raise.c,
56119         lib/readlink.c, lib/readtokens.c, lib/readtokens.h, lib/readtokens0.c,
56120         lib/readtokens0.h, lib/readutmp.c, lib/readutmp.h, lib/realloc.c,
56121         lib/ref-add.sin, lib/ref-del.sin, lib/regex.c, lib/regex.h,
56122         lib/rename.c, lib/rmdir.c, lib/rpmatch.c, lib/safe-read.c,
56123         lib/safe-read.h, lib/safe-write.c, lib/safe-write.h, lib/same.c,
56124         lib/same.h, lib/save-cwd.c, lib/save-cwd.h, lib/savedir.c,
56125         lib/savedir.h, lib/setenv.c, lib/setenv.h, lib/settime.c,
56126         lib/sh-quote.c, lib/sh-quote.h, lib/sha1.c, lib/sha1.h, lib/sig2str.c,
56127         lib/sig2str.h, lib/sincosl.c, lib/snprintf.c, lib/snprintf.h,
56128         lib/sqrtl.c, lib/stat-macros.h, lib/stat.c, lib/stdbool_.h,
56129         lib/stdint_.h, lib/stdio-safer.h, lib/stpcpy.c, lib/stpcpy.h,
56130         lib/stpncpy.c, lib/stpncpy.h, lib/strcase.h, lib/strcasecmp.c,
56131         lib/strchrnul.c, lib/strchrnul.h, lib/strcspn.c, lib/strdup.c,
56132         lib/strdup.h, lib/strerror.c, lib/strftime.c, lib/strftime.h,
56133         lib/stripslash.c, lib/strndup.c, lib/strndup.h, lib/strnlen.c,
56134         lib/strpbrk.c, lib/strpbrk.h, lib/strsep.c, lib/strsep.h, lib/strstr.c,
56135         lib/strstr.h, lib/strtod.c, lib/strtoimax.c, lib/strtok_r.c,
56136         lib/strtok_r.h, lib/strtol.c, lib/strtoll.c, lib/strtoul.c,
56137         lib/strtoull.c, lib/strverscmp.c, lib/strverscmp.h, lib/sysexit_.h,
56138         lib/tempname.c, lib/time_r.c, lib/time_r.h, lib/timegm.c, lib/timegm.h,
56139         lib/timespec.h, lib/trigl.c, lib/trigl.h, lib/ucs4-utf16.h,
56140         lib/ucs4-utf8.h, lib/unicodeio.c, lib/unicodeio.h, lib/unistd-safer.h,
56141         lib/unlocked-io.h, lib/unsetenv.c, lib/userspec.c, lib/utf16-ucs4.h,
56142         lib/utf8-ucs4.h, lib/utime.c, lib/utimecmp.c, lib/utimecmp.h,
56143         lib/utimens.c, lib/vasnprintf.c, lib/vasnprintf.h, lib/vasprintf.c,
56144         lib/vasprintf.h, lib/version-etc-fsf.c, lib/version-etc.c,
56145         lib/version-etc.h, lib/vsnprintf.c, lib/vsnprintf.h, lib/w32spawn.h,
56146         lib/wait-process.c, lib/wait-process.h, lib/xalloc-die.c, lib/xalloc.h,
56147         lib/xallocsa.c, lib/xallocsa.h, lib/xasprintf.c, lib/xgetcwd.c,
56148         lib/xgetcwd.h, lib/xgetdomainname.c, lib/xgetdomainname.h,
56149         lib/xgethostname.c, lib/xmalloc.c, lib/xmemcoll.c, lib/xnanosleep.c,
56150         lib/xreadlink.c, lib/xreadlink.h, lib/xsetenv.c, lib/xsetenv.h,
56151         lib/xsize.h, lib/xstrndup.c, lib/xstrndup.h, lib/xstrtod.c,
56152         lib/xstrtod.h, lib/xstrtoimax.c, lib/xstrtol.c, lib/xstrtol.h,
56153         lib/xstrtoumax.c, lib/xtime.h, lib/xvasprintf.c, lib/xvasprintf.h,
56154         lib/yesno.c, lib/yesno.h:
56155         Update FSF postal mail address.
56156
56157 2005-05-13  Paul Eggert  <eggert@cs.ucla.edu>
56158
56159         * MODULES.html.sh, README, gnulib-tool, tests/test-base64.c,
56160         tests/test-memmem.c, tests/test-stpncpy.c:
56161         Update FSF postal mail address.
56162
56163 2005-05-13  Bruno Haible  <bruno@clisp.org>
56164
56165         * lib/stdint_.h (int64_t, uint64_t, int_least64_t, uint_least64_t,
56166         int_fast64_t, uint_fast64_t, intmax_t, uintmax_t, INT64_MIN, INT64_MAX,
56167         UINT64_MAX, INT_LEAST64_MIN, INT_LEAST64_MAX, UINT_LEAST64_MAX,
56168         INT_FAST64_MIN, INT_FAST64_MAX, UINT_FAST64_MAX, INTMAX_MIN,
56169         INTMAX_MAX, UINTMAX_MAX, INT64_C, UINT64_C, INTMAX_C, UINTMAX_C):
56170         Add support for 64-bit integers in the MSVC compiler.
56171
56172 2005-05-12  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
56173
56174         * modules/getdate (Makefile.am): Add getdate.c to EXTRA_DIST
56175
56176 2005-05-12  Eric Blake  <ebb9@byu.net>  (tiny change)
56177
56178         * gnulib-tool (func_import): Sort and uniquify recommended includes.
56179
56180 2005-05-11  Paul Eggert  <eggert@cs.ucla.edu>
56181
56182         * doc/getdate.texi (General date syntax): Don't say that date
56183         date --iso-8601=ns generates acceptable dates; it doesn't yet.
56184         Problem reported by Nic Ferrier.
56185
56186 2005-05-10  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
56187
56188         * lib/getaddrinfo.c: Don't fail when SOCK_STREAM or SOCK_DGRAM are
56189         specified in ai_socktype. Fix invalid ai_protocol
56190         check. ai_protocol is usually set to 0 or depending on
56191         ai_family/ai_socktype to IPPROTO_TCP / IPPROTO_UDP.  Checking for
56192         SOCK_STREAM / SOCK_DGRAM in ai_protocol was invalid.  Set
56193         ai_socktype / ai_protocol in the returned addrinfo structure.
56194
56195 2005-05-10  Simon Josefsson  <jas@extundo.com>
56196
56197         * m4/getaddrinfo.m4: Look in libnsl/libsocket for getaddrinfo, from
56198         Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
56199
56200 2005-05-10  Karl Berry  <karl@gnu.org>
56201
56202         * doc/fdl.texi, gpl.texi, lgpl.texi, COPYING: update FSF address
56203         (from http://www.gnu.org/licenses).
56204         * doc/COPYING.LIB: also rename to COPYING.LESSER.
56205         * doc/COPYING.DOC: remove; per rms, only needed in doc files, so
56206         fdl.texi suffices.
56207
56208 2005-05-10  Karl Berry  <karl@gnu.org>
56209
56210         * config/srclist.txt (COPYING.LESSER): rename from COPYING.LIB.
56211         (COPYING.DOC): remove.
56212
56213         * config/srclist-update: new FSF address.
56214
56215 2005-05-10  Derek Price  <derek@ximbiot.com>
56216
56217         * m4/getopt.m4 (gl_GETOPT): Check for Solaris 10 bug, not decl, when
56218         possible.
56219
56220 2005-05-09  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
56221             Bruno Haible  <bruno@clisp.org>
56222
56223         * modules/inet_ntop: New file.
56224         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
56225         inet_ntop.
56226
56227 2005-05-09  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
56228             Bruno Haible  <bruno@clisp.org>
56229
56230         * m4/inet_ntop.m4: New file.
56231
56232 2005-05-09  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
56233             Bruno Haible  <bruno@clisp.org>
56234
56235         * lib/inet_ntop.h: New file.
56236         * lib/inet_ntop.c: New file, from glibc with modifications.
56237
56238 2005-05-09  Paul Eggert  <eggert@cs.ucla.edu>
56239
56240         * modules/time_r (License): Change to LGPL.
56241         * modules/extensions (License): Change to LGPL.  Actually,
56242         the license is more permissive than that, but currently gnulib-tool
56243         doesn't know how to handle more-permissive licenses.
56244
56245         * modules/stat-macros (Depends-on): Don't depend on stat-macros (!).
56246         Problem reported by Dave Love.
56247
56248 2005-05-08  Jim Meyering  <jim@meyering.net>
56249
56250         * lib/classpath.c (PATH_SEPARATOR): Remove insignificant trailing
56251         blank.
56252
56253 2005-05-06  Paul Eggert  <eggert@cs.ucla.edu>
56254
56255         * modules/argmatch (Depends-on): Add stdbool.
56256         * modules/backupfile (Depends-on): Likewise.
56257         * modules/chdir-long (Depends-on): Likewise.
56258         * modules/closeout (Depends-on): Likewise.
56259         * modules/cycle-check (Depends-on): Likewise.
56260         * modules/dirname (Depends-on): Likewise.
56261         * modules/fnmatch (Depends-on): Likewise.
56262         * modules/fsusage (Depends-on): Likewise.
56263         * modules/fwriteerror (Depends-on): Likewise.
56264         * modules/getcwd (Depends-on): Likewise.
56265         * modules/getloadavg (Depends-on): Likewise.
56266         * modules/hard-locale (Depends-on): Likewise.
56267         * modules/makepath (Depends-on): Likewise.
56268         * modules/mountlist (Depends-on): Likewise.
56269         * modules/nanosleep (Depends-on): Likewise.
56270         * modules/posixtm (Depends-on): Likewise.
56271         * modules/quotearg (Depends-on): Likewise.
56272         * modules/readtokens (Depends-on): Likewise.
56273         * modules/readtokens0 (Depends-on): Likewise.
56274         * modules/readutmp (Depends-on): Likewise.
56275         * modules/save-cwd (Depends-on): Likewise.
56276         * modules/strftime (Depends-on): Likewise.
56277         * modules/userspec (Depends-on): Likewise.
56278         * modules/utimecmp (Depends-on): Likewise.
56279         * modules/xgetcwd (Depends-on): Likewise.
56280         * modules/xnanosleep (Depends-on): Likewise.
56281         * modules/xstrtod (Depends-on): Likewise.
56282         * modules/yesno (Depends-on): Likewise.
56283
56284 2005-05-05  Paul Eggert  <eggert@cs.ucla.edu>
56285
56286         * m4/getopt.m4 (gl_GETOPT): Check for Solaris 10 getopt, and avoid
56287         needless checks.
56288
56289 2005-05-01  Paul Eggert  <eggert@cs.ucla.edu>
56290
56291         Merge from coreutils.  Among other things,
56292         add bulletproofing for cases where stdin, stdout, or stderr are closed.
56293         * lib/fd-safer.c: New file.
56294         * lib/fcntl-safer.h, open-safer.c: Remove.
56295         * lib/chdir-long.c: Fix comment "fetish" -> "coreutils".
56296         * lib/dup-safer.c: Include unistd-safer.h first.
56297         Don't include errno.h.
56298         (dup_safer) [!defined F_DUPFD]: Let fd_safer do the real work.
56299         * lib/file-type.h: Don't assume invoker included sys/stat.h first.
56300         * lib/file-type.c: Rely on file-type.h change.
56301         * lib/getloadavg.c: Include unistd-safer.h.
56302         (getloadavg): Use safer open.
56303         * lib/getusershell.c: Include "stdio-safer.h".
56304         (getusershell): Use safer fopen.
56305         * lib/long-options.c (long_options): Use NULL rather than 0.
56306         * lib/modechange.h (mode_free): Remove; all callers changed to invoke
56307         'free'.
56308         * lib/modechange.c: Likewise.
56309         xstrtol.h, stdbool.h, stddef.h: Don't include; no longer needed.
56310         (MODE_DONE): New constant.
56311         (struct mode_change): Remove 'next' member.
56312         (make_node_op_equals): New function; like the old one of the
56313         same name, except it allocates an array.
56314         (mode_compile, mode_create_from_ref): Use it.
56315         (mode_compile): Allocate result as an array, not a linked list.
56316         Parse octal string ourself, so that we catch mistakes like "+0".
56317         (mode_adjust): Arg is an array, not a linked list.
56318         * lib/modechange.c: Include stat-macros.h, xalloc.h.
56319         (S_ISDIR, S_ISUID, S_ISGID, S_ISVTX, S_IRUSR, S_IWUSR, S_IXUSR):
56320         (S_IRGRP, S_IWGRP, S_IXGRP, S_IROTH, S_IWOTH, S_IXOTH, S_IRXWU):
56321         (S_IRWXG, S_IRWXO, CHMOD_MODE_BITS):
56322         Remove.  This is now stat-macros.h's job.
56323         (talloc): Remove.  All callers replaced by xalloc, so that
56324         our invokers don't have to worry about reporting memory failures.
56325         (make_node_op_equals): Remove.
56326         (MODE_ORDINARY_CHAGE, MODE_X_IF_ANY_X, MODE_COPY_EXISTING):
56327         New constants.
56328         (struct mode_change): Moved here from modechange.h.
56329         (mode_append_entry): Remove.
56330         (mode_compile): Remove MASKED_OPS arg, since it encouraged
56331         apps to have incorrect behavior.  Use simpler algorithm for head
56332         and tail.  Don't futz with umask; that's now the job of mode_adjust.
56333         Detect more invalid usages rather than having somewhat-random behavior.
56334         Don't insert an "a=" action, as that leads to incorrect behavior.
56335         (mode_compile, mode_create_from_ref): Return NULL on error instead
56336         of an enum, since now there's only one way to have an error.  All
56337         callers changed.
56338         (mode_adjust): Accept new arg UMASK_VALUE, and interpret it
56339         at the correct time.  Simplify calculation of "+u" and its ilk.
56340         Don't mishandle "+X".
56341         (mode_free): Remove "register" and localize decls.
56342         * lib/modechange.h (MODE_X_IF_ANY_X, MODE_COPY_EXISTING):
56343         (struct mode_change): Move to modechange.c; callers don't
56344         need to see this stuff.
56345         (MODE_MASK_EQUALS, MODE_MASK_PLUS, MODE_MASK_MINUS, MODE_MASK_ALL):
56346         (MODE_INVALID, MODE_MEMORY_EXHAUSTED, MODE_BAD_REFERENCE): Remove.
56347         (mode_change, mode_adjust): Reflect the new signatures noted above.
56348         * lib/nanosleep.c (rpl_nanosleep): Include "timespec.h" before macros
56349         that might redefine system include files.
56350         (siginterrupt) [!HAVE_SIGINTERRUPT]: New macro.
56351         (my_usleep): Use NULL rather than (void *) 0.
56352         (rpl_nanosleep) [!defined SA_NOCLDSTOP]:
56353         Use siginterrupt to specify that system calls should be interrupted.
56354         (rpl_nanosleep): Move initialization of suspended closer to call of
56355         my_usleep.
56356         * lib/readutmp.h (read_utmp): New arg OPTIONS.  All uses changed.
56357         * lib/readutmp.c: Likewise.  Include signal.h, stdbool.h.
56358         (desirable_utmp_entry): New function.
56359         (read_utmp) [defined UTMP_NAME_FUNCTION]: Redo memory allocation
56360         using x2nrealloc, to simplify logic.
56361         (read_utmp) [!defined UTMP_NAME_FUNCTION]: Check for overflow in
56362         size calculation.  Do not assume utmp file is a regular file.
56363         * lib/readutmp.h (UT_PID): Moved here from ../src/who.c.
56364         (READ_UTMP_CHECK_PIDS): New constant.
56365         * lib/save-cwd.c: Include unistd-safer.h.
56366         (save_cwd): Use fd_safer.
56367         * lib/tempname.c (S_ISDIR, S_IRUSR, S_IRUSR, S_IWUSR, S_IXUSR): Remove.
56368         [!_LIBC] Include "stat-macros.h" instead.
56369         * lib/unistd-safer.h (fd_safer): New decl.
56370
56371 2005-05-01  Paul Eggert  <eggert@cs.ucla.edu>
56372
56373         * modules/getloadavg (Depends-on): Add unistd-safer.
56374         * modules/getusershell (Depends-on): Add stdio-safer.
56375         * modules/lstat (Depends-on): Remove xalloc.
56376         * modules/mkstemp (Depends-on): Add stat-macros.
56377         * modules/modechange (Depends-on): Remove xstrtol.
56378         Add stat-macros, xalloc.
56379         * modules/save-cwd (Depends-on): Add unistd-safer.
56380         * modules/stdio-safer (Makefile.am): Remove lib_SOURCES.
56381         * modules/unistd-safer (Files): Add lib/fd-safer.c
56382         (Makefile.am): Remove lib_SOURCES.
56383
56384         * MODULES.html.sh (Enhancements for POSIX:2001 functions):
56385         Remove fcntl-safer; unistd-safer supersedes it.
56386
56387 2005-05-01  Paul Eggert  <eggert@cs.ucla.edu>
56388
56389         * m4/euidaccess.m4 (gl_PREREQ_EUIDACCESS): Don't require
56390         AC_HEADER_STAT.
56391         * m4/lchown.m4 (gl_FUNC_CHOWN): Likewise.
56392         (gl_PREREQ_CHOWN): Remove.
56393         * m4/lstat.m4 (gl_FUNC_LSTAT): Require AC_FUNC_LSTAT instead of calling
56394         it.  Don't require AC_HEADER_STAT.
56395         (gl_PREREQ_LSTAT): Remove.
56396         * m4/mkstemp.m4 (gl_PREREQ_TEMPNAME): Check stdint.h only once.
56397         Don't require AC_HEADER_STAT.
56398         * m4/rmdir.m4 (gl_FUNC_RMDIR): Don't require AC_HEADER_STAT.
56399         (gl_PREREQ_RMDIR): Remove.
56400         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME): Don't
56401         mention stat-macros.h or AC_HEADER_STAT, since we'll make
56402         the stat-macros module a prerequisite.
56403         * m4/file-type.m4 (gl_FILE_TYPE): Likewise.
56404         * m4/filemode.m4 (gl_FILEMODE): Likewise.
56405         * m4/makepath.m4 (gl_MAKEPATH): Likewise.
56406         * m4/modechange.m4 (gl_MODECHANGE): Likewise.
56407         * m4/clock_time.m4 (gl_CLOCK_TIME): Use gl_ rather than fetish_ for
56408         variable names.
56409         * m4/rmdir-errno.m4 (gl_FUNC_RMDIR_NOTEMPTY): Renamed from
56410         fetish_FUNC_RMDIR_NOTEMPTY.  All uses changed.  Use gl_ for
56411         variable prefixes.
56412         * m4/fcntl-safer.m4: Remove.
56413         * m4/stdio-safer.m4 (gl_STDIO_SAFER): Use AC_LIBSOURCES and AC_LIBOBJ.
56414         * m4/unistd-safer.m4 (gl_UNISTD_SAFER): Likewise.
56415         Invoke gl_PREREQ_FD_SAFER.
56416         (gl_PREREQ_FD_SAFER): New macro.
56417         * m4/nanosleep.m4 (gl_PREREQ_NANOSLEEP): Check for siginterrupt.
56418         * m4/readutmp.m4 (gl_READUTMP): Require AC_C_INLINE.
56419         Use AC_CHECK_HEADERS_ONCE and AC_CHECK_FUNCS_ONCE when possible.
56420         Remove duplicate call to AC_LIBOBJ(readutmp).
56421         (gl_PREREQ_READUTMP): Remove.  All uses inlined.
56422
56423         * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Check for message, not for
56424         MAP_ANON.  Problem reported by Moriyoshi Koizumi to bug-cvs.
56425
56426 2005-05-01  Paul Eggert  <eggert@cs.ucla.edu>
56427
56428         * MODULES.html.sh (Misc): Add byteswap.
56429
56430 2005-05-01  Oskar Liljeblad  <oskar@osk.mine.nu>
56431
56432         * modules/getcwd (Depends-on): Add extensions.
56433         * modules/openat (Depends-on): Likewise.
56434
56435 2005-05-01  Oskar Liljeblad  <oskar@osk.mine.nu>
56436
56437         * modules/byteswap: New file.
56438
56439 2005-05-01  Oskar Liljeblad  <oskar@osk.mine.nu>
56440
56441         * m4/byteswap.m4: New file.
56442
56443 2005-05-01  Oskar Liljeblad  <oskar@osk.mine.nu>
56444
56445         * lib/byteswap_.h: New file.
56446
56447 2005-04-25  Karl Berry  <karl@gnu.org>
56448
56449         * m4/gettext.m4: Update from GNU gettext 0.14.4.
56450
56451 2005-04-25  Albert Chin  <china@thewrittenword.com>
56452
56453         * lib/regex.c: Include <stdio.h>, as a workaround to a Compaq Desktop
56454         Toolkit C bug.
56455
56456 2005-04-21  Oskar Liljeblad  <oskar@osk.mine.nu>
56457
56458         * gnulib-tool (Options): Add -s for --symlink/--symbolic.
56459         (func_ln_if_changed) Remove forcibly for no error message
56460         in case file does not exist.
56461
56462 2005-04-19  Simon Josefsson  <jas@extundo.com>
56463
56464         * gnulib-tool (Options): Make --symlink mean --symbolic.
56465
56466 2005-04-18  Oskar Liljeblad  <oskar@osk.mine.nu>
56467
56468         * doc/gnulib.texi (Initial import): Fix.  Mention --aux-dir.
56469
56470 2005-04-16  Simon Josefsson  <jas@extundo.com>
56471
56472         * modules/getpass-gnu (Makefile.am): Don't mention getpass.h.
56473
56474 2005-04-15  Simon Josefsson  <jas@extundo.com>
56475
56476         * m4/getpass.m4 (gl_FUNC_GETPASS): Use AC_LIBSOURCES.
56477
56478 2005-04-15  Simon Josefsson  <jas@extundo.com>
56479
56480         * gnulib-tool: Rename --symlink to --symbolic.
56481
56482 2005-04-15  Oskar Liljeblad  <oskar@osk.mine.nu>
56483
56484         * gnulib-tool: Add -s, --symlink option to gnulib-tool to make
56485         symbolic links to files instead of copying/moving.  Add --aux-dir,
56486         specifying directory relative --dir where auxiliary build tools
56487         are placed.
56488
56489 2005-04-14  Bruno Haible  <bruno@clisp.org>
56490
56491         * modules/allocsa (License): Change to LGPL.
56492         Requested by Yoann Vandoorselaere <yoann@prelude-ids.org>.
56493
56494 2005-04-13  Paul Eggert  <eggert@cs.ucla.edu>
56495
56496         * lib/getdate.y (zone): Allow relunit_snumber after tZONE, so
56497         that "UTC +1 second" continues to work.  Problem reported
56498         by Dmitry V. Levin.
56499         (relunit_snumber): New rule.
56500         (relunit): Use it.
56501
56502 2005-04-12  Paul Eggert  <eggert@cs.ucla.edu>
56503
56504         * lib/getdate.y (universal_time_zone_table): New constant.
56505         (time_zone_table): Remove GMT, UT, UTC entries; they're now in
56506         universal_time_zone_table.
56507         (lookup_zone): Prefer universal_time_zone_table to
56508         local_time_zone_table, so that "GMT" time stamps are allowed in
56509         London during the summer.  Problem reported by Ian Abbott.
56510
56511 2005-04-12  Jim Meyering  <jim@meyering.net>
56512
56513         * lib/human.c (humblock): Set *options even when returning due to
56514         xstrtoumax conversion failure.  Thanks to a used-uninitialized
56515         warning from gcc-4.
56516
56517 2005-04-09  Jim Meyering  <jim@meyering.net>
56518
56519         * lib/posixtm.c (posixtime) [lint]: Avoid spurious warning from gcc-4's
56520         -Wuninitialized: initialize tm0.tm_year.
56521
56522 2005-04-04  Paul Eggert  <eggert@cs.ucla.edu>
56523
56524         * lib/getdate.y (parser_control): rels_seen is now a boolean, not a
56525         count, since there's no maximum.  All uses changed.
56526         Add member dsts_seen.
56527         (local_zone): Accumulate dsts_seen rather than relying on tm_isdst
56528         not being INT_MAX.
56529         (get_date): Initialize dsts_seen, and check that it doesn't go over 1.
56530         Use pc_rels_seen to decide whther a date is absolute.
56531
56532         * lib/getdate.y (number): Don't overwrite year.
56533         (get_date): Initialize pc.year.digits to 0, not 4, to enable above
56534         check.
56535
56536 2005-04-02  Simon Josefsson  <jas@extundo.com>
56537
56538         * lib/getaddrinfo.h: Fix OpenBSD compilation failure, inspired by tiny
56539         patch from Yoann Vandoorselaere <yoann@prelude-ids.org>.
56540
56541 2005-03-28  Eric Blake  <ebb9@byu.net>  (tiny change)
56542
56543         * m4/getcwd-path-max.m4: Return success on systems such as Cygwin
56544         where no absolute path name can be longer than PATH_MAX.
56545
56546 2005-03-27  Jim Meyering  <jim@meyering.net>
56547
56548         * lib/argmatch.c: Clarify comment: null-terminated -> NULL-terminated.
56549
56550 2005-03-26  Paul Eggert  <eggert@cs.ucla.edu>
56551
56552         * lib/intprops.h (INT_STRLEN_BOUND, INT_BUFSIZE_BOUND):
56553         "one's complement" -> "ones' complement" in comment, as per Knuth.
56554         "value of type" -> "type or expression" in comment.
56555         * lib/mktime.c, strftime.c: Propagate intprops.h comment nits.
56556
56557 2005-03-26  Jim Meyering  <jim@meyering.net>
56558
56559         Comment nits.
56560         * lib/intprops.h: Add the apostrophe in `(one|two)'s complement'.
56561         Correct typos: s/or/of/.
56562
56563 2005-03-26  Jim Meyering  <jim@meyering.net>
56564
56565         * modules/check-include-files: Move to ../ and rename to...
56566         * check-module: ...this.
56567
56568 2005-03-25  Jim Meyering  <jim@meyering.net>
56569
56570         * modules/xvasprintf (Files): Add xalloc.h.
56571
56572 2005-03-23  Paul Eggert  <eggert@cs.ucla.edu>
56573
56574         * modules/gettext (Files): config/config.rpath ->
56575         build-aux/config.rpath
56576         * modules/iconv (Files): Likewise.
56577         Problem reported by Oskar Liljeblad.
56578
56579 2005-03-23  Jim Meyering  <jim@meyering.net>
56580
56581         * modules/check-include-files: New script to check for
56582         missing dependencies, multiple includes, etc.
56583
56584         * modules/c-strtold (Depends-on): Add xalloc.
56585         * modules/c-strtod (Depends-on): Add xalloc.
56586         * modules/hash (Depends-on): Add xalloc.
56587         (Files): Remove lib/xalloc.h.
56588
56589         * modules/gethrxtime (Files): Add lib/gethrxtime.h.
56590         * modules/userspec (Files): Add lib/inttostr.h.
56591
56592 2005-03-23  Jim Meyering  <jim@meyering.net>
56593
56594         * lib/canonicalize.c: Remove duplicate `#include "stat-macros.h"'.
56595
56596 2005-03-22  Jim Meyering  <jim@meyering.net>
56597
56598         * modules/stat-macros: New module.
56599         * modules/canonicalize, modules/euidaccess, modules/file-type,
56600         * modules/filemode, modules/lchown, modules/makepath,
56601         * modules/rmdir, modules/stat: Depend on new stat-macros module
56602         rather than listing lib/stat-macros.h manually.
56603         Don't add stat-macros.h to lib_SOURCES or list it in Files: section.
56604
56605 2005-03-22  Jim Meyering  <jim@meyering.net>
56606
56607         * m4/stat-macros.m4 (gl_STAT_MACROS): New file/macro.
56608
56609 2005-03-22  Bruno Haible  <bruno@clisp.org>
56610
56611         * config/srclist.txt: Replace target directory 'config' with
56612         'build-aux'.
56613         * config/config.guess, config.sub, config.rpath, depcomp, install-sh:
56614         * config/mdate-sh, missing, mkinstalldirs, texinfo.tex: Move to
56615         ../build-aux/.
56616
56617 2005-03-21  Paul Eggert  <eggert@cs.ucla.edu>
56618
56619         * modules/chdir-long (Depends-on): Add mempcpy.
56620
56621         * modules/acl, modules/backupfile, modules/c-strtod,
56622         modules/c-strtold, modules/canon-host, modules/canonicalize,
56623         modules/cloexec, modules/closeout, modules/dirfd, modules/dirname,
56624         modules/exclude, modules/exitfail, modules/file-type,
56625         modules/filemode, modules/fpending, modules/fsusage, modules/getcwd,
56626         modules/getdate, modules/getline, modules/getpagesize,
56627         modules/getpass, modules/getugroups, modules/group-member,
56628         modules/hard-locale, modules/hash, modules/human, modules/idcache,
56629         modules/inttostr, modules/long-options, modules/makepath,
56630         modules/md5, modules/memcasecmp, modules/memcoll,
56631         modules/modechange, modules/mountlist, modules/path-concat,
56632         modules/pathmax, modules/physmem, modules/posixtm, modules/posixver,
56633         modules/quote, modules/quotearg, modules/readtokens, modules/readutmp,
56634         modules/safe-read, modules/safe-write, modules/same, modules/savedir,
56635         modules/settime, modules/sha1, modules/sig2str, modules/strdup,
56636         modules/strftime, modules/strndup, modules/strverscmp,
56637         modules/timespec, modules/unlocked-io, modules/userspec,
56638         modules/utimecmp, modules/utimens, modules/xalloc, modules/xstrtol,
56639         modules/yesno:
56640         Remove lib_SOURCES line from Makefile.am section, as this is now
56641         done automatically by the corresponding Autoconf macro.
56642
56643 2005-03-21  Jim Meyering  <jim@meyering.net>
56644
56645         Changes imported from coreutils.
56646
56647         * lib/cycle-check.c: Don't include xalloc.h.
56648
56649         * lib/path-concat.c: Don't include assert.h.
56650         (path_concat): Remove assertion that would have triggered
56651         for ABASE starting with more than one slash.
56652         Reported by Andreas Schwab.
56653
56654         * lib/path-concat.c (path_concat): Set *BASE_IN_RESULT
56655         properly when ABASE is an absolute file name.
56656         Correct the description of this function.
56657         Include <assert.h>.
56658         Add an assertion and a test driver.
56659         This fixes a bug introduced on 2004-07-02.
56660         Andreas Schwab reported the resulting failure of cp --parents:
56661         http://lists.gnu.org/archive/html/bug-coreutils/2005-01/msg00130.html
56662
56663 2005-03-21  Jim Meyering  <jim@meyering.net>
56664
56665         * m4/chdir-long.m4 (gl_PREREQ_CHDIR_LONG): Invoke gl_FUNC_MEMRCHR.
56666         * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Check for memrchr decl.
56667
56668 2005-03-21  Jim Meyering  <jim@meyering.net>
56669         and  Paul Eggert  <eggert@cs.ucla.edu>
56670
56671         * m4/acl.m4, m4/backupfile.m4, m4/c-strtod.m4, m4/canon-host.m4,
56672         m4/canonicalize.m4, m4/cloexec.m4, m4/closeout.m4, m4/dirfd.m4,
56673         m4/dirname.m4, m4/exclude.m4, m4/exitfail.m4, m4/file-type.m4,
56674         m4/filemode.m4, m4/fpending.m4, m4/fsusage.m4, m4/getcwd.m4,
56675         m4/getdate.m4, m4/getline.m4, m4/getpagesize.m4, m4/getpass.m4,
56676         m4/getugroups.m4, m4/group-member.m4, m4/hard-locale.m4, m4/hash.m4,
56677         m4/human.m4, m4/idcache.m4, m4/inttostr.m4, m4/long-options.m4,
56678         m4/makepath.m4, m4/md5.m4, m4/memcasecmp.m4, m4/memcoll.m4,
56679         m4/modechange.m4, m4/mountlist.m4, m4/nanosleep.m4, m4/path-concat.m4,
56680         m4/pathmax.m4, m4/physmem.m4, m4/posixtm.m4, m4/posixver.m4,
56681         m4/quote.m4, m4/quotearg.m4, m4/readtokens.m4, m4/readutmp.m4,
56682         m4/safe-read.m4, m4/safe-write.m4, m4/same.m4, m4/savedir.m4,
56683         m4/settime.m4, m4/sha1.m4, m4/sig2str.m4, m4/strdup.m4, m4/strftime.m4,
56684         m4/strndup.m4, m4/strverscmp.m4, m4/timespec.m4, m4/unlocked-io.m4,
56685         m4/userspec.m4, m4/utimecmp.m4, m4/utimens.m4, m4/xalloc.m4,
56686         m4/xnanosleep.m4, m4/xstrtol.m4, m4/yesno.m4:
56687         Use AC_LIBSOURCES and AC_LIBOBJ to indicate source and object files
56688         for these modules.
56689
56690 2005-03-18  Paul Eggert  <eggert@cs.ucla.edu>
56691
56692         * lib/strftime.c (my_strftime): If the underlying strftime returns 0
56693         (which shouldn't happen), generate nothing instead of returning 0
56694         immediately, so that nstrftime (NULL, ...) doesn't return 0.
56695
56696 2005-03-16  Bruno Haible  <bruno@clisp.org>
56697
56698         * modules/stdint (Makefile.am): Use HAVE_LONG_LONG_64BIT instead of
56699         HAVE_LONGLONG_64BIT.
56700
56701 2005-03-16  Bruno Haible  <bruno@clisp.org>
56702
56703         * m4/stdint.m4 (gl_STDINT_H): Define HAVE_LONG_LONG_64BIT instead of
56704         HAVE_LONGLONG_64BIT.
56705
56706 2005-03-16  Bruno Haible  <bruno@clisp.org>
56707
56708         * lib/stdint_.h: Use HAVE_LONG_LONG_64BIT instead of
56709         HAVE_LONGLONG_64BIT.
56710
56711 2005-03-15  Paul Eggert  <eggert@cs.ucla.edu>
56712
56713         * lib/strftime.c (my_strftime): Prepend space to format so that we can
56714         reliably distinguish strftime failure from empty output on POSIX
56715         hosts.
56716
56717 2005-03-15  Paul Eggert  <eggert@cs.ucla.edu>
56718
56719         * lib/iconvme.c (SIZE_MAX): New macro, if not already defined.
56720         (iconv_string): Don't guess a size-zero buffer, as that might cause
56721         buffer overrun.  Instead, avoid multiplying by MB_LEN_MAX if the
56722         result would be 'too large', where 'too large' is (heuristically)
56723         the square root of SIZE_MAX, divided by MB_LEN_MAX to allay
56724         overflow concerns.  This will prevent some unwanted malloc failures
56725         when the inputs are very large.
56726
56727 2005-03-15  Karl Berry  <karl@gnu.org>
56728
56729         * config/srclist.txt (config.rpath): from gettext.
56730         * config/config.rpath: update.
56731
56732 2005-03-15  Bruno Haible  <bruno@clisp.org>
56733
56734         * lib/regex.c (byte_re_match_2_internal): Rename local variable 'not'
56735         to 'negate'.
56736
56737         * lib/regex.c (byte_re_match_2_internal): Reduce scope of same_str_p
56738         variable.
56739
56740         * lib/regex.c (EXTEND_BUFFER, regcomp): Cast the realloc/malloc
56741         results.
56742
56743 2005-03-14  Simon Josefsson  <jas@extundo.com>
56744
56745         * lib/timegm.h: Use proper prototype CPP guards, reported by Dave Love
56746         <fx@gnu.org>.
56747
56748 2005-03-14  Paul Eggert  <eggert@cs.ucla.edu>
56749
56750         * lib/mktime.c (TYPE_TWOS_COMPLEMENT, TYPE_ONES_COMPLEMENT,
56751         TYPE_SIGNED_MAGNITUDE, TYPE_MINIMUM, TYPE_MAXIMUM): Sync from
56752         intprops.h.
56753         * lib/strtol.c: Likewise.
56754
56755 2005-03-14  Jim Meyering  <jim@meyering.net>
56756
56757         * lib/strftime.c (my_strftime) [HAVE_STRFTIME && ! (_NL_CURRENT
56758         && HAVE_STRUCT_ERA_ENTRY)]: Initialize the first byte of ubuf[]
56759         to be nonzero so that we (and caller) can detect the difference
56760         between a valid zero-length expansion and an error return, even
56761         when the underlying strftime fails before writing anything into
56762         that location.
56763
56764 2005-03-14  Bruno Haible  <bruno@clisp.org>
56765
56766         * m4/lib-link.m4, gettext.m4, nls.m4, po.m4:
56767         Update from GNU gettext 0.14.3.
56768
56769 2005-03-10  Jim Meyering  <jim@meyering.net>
56770
56771         * m4/save-cwd.m4 (gl_SAVE_CWD): Check for fchdir.
56772
56773 2005-03-10  Jim Meyering  <jim@meyering.net>
56774
56775         * lib/save-cwd.c [!HAVE_FCHDIR]: Define open, fchdir, and chdir_long
56776         so that this module works on systems without fchdir.
56777
56778 2005-03-09  Paul Eggert  <eggert@cs.ucla.edu>
56779
56780         Factor int-properties macros into a single file, except for
56781         glibc-related files.
56782         * lib/intprops.h: New file.
56783         * lib/getloadavg.c: Include it instead of limits.h.
56784         (INT_STRLEN_BOUND): Remove.
56785         * lib/human.c: Include intprops.h.
56786         (group_number): Use INT_STRLEN_BOUND instead of rolling it ourself.
56787         * lib/human.h (LONGEST_HUMAN_READABLE): Use 146/485 rather than
56788         302/1000.
56789         * lib/inttostr.h: Include intprops.h instead of limits.h.
56790         (INT_STRLEN_BOUND, INT_BUFSIZE_BOUND): Remove.
56791         * lib/mktime.c (TYPE_IS_INTEGER, TYPE_TWOS_COMPLEMENT): New macros,
56792         for consistency with intprops.h.
56793         (time_t_is_integer, twos_complement_arithmetic): Use them.
56794         * lib/sig2str.h: Include <signal.h>, intprops.h.
56795         (INT_STRLEN_BOUND): Remove.
56796         * lib/strftime.c (TYPE_SIGNED): Remove.
56797         (INT_STRLEN_BOUND): Switch to same implementation as intprops.h.
56798         * lib/strtol.c: Adjust comments to match intprops.h.
56799         * lib/userspec.c: Include intprops.h.
56800         (TYPE_SIGNED, TYPE_MINIMUM, TYPE_MAXIMUM): Remove.
56801         * lib/utimecmp.c, xnanosleep.c, xstrtol.c: Likewise.
56802         * lib/utimecmp.c (utimecmp): Use TYPE_IS_INTEGER, TYPE_TWOS_COMPLEMENT
56803         instead of rolling our own expressions.
56804         * lib/xstrtol.c: Include xstrtol.h first, to test interface.
56805
56806         * lib/strftime.c: Include <stdbool.h>.  Use bool where appropriate,
56807         instead of int.
56808         (my_strftime): Do not mishandle years close to INT_MAX, by doing
56809         the right thing even if adding 1900 would overflow.  Similarly
56810         for tm_mon + 1 and tm_yday + 1.
56811         Make %Y always equivalent to %C%y, and similarly for %G and %g.
56812         (DO_NUMBER, DO_NUMBER_SPACEPAD): Set digits to d, not a conditional.
56813         (DO_SIGNED_NUMBER): New macro.
56814         (my_strftime) [HAVE_TZNAME]: Don't dump core if tp->tm_dst > 1.
56815
56816 2005-03-07  Bruno Haible  <bruno@clisp.org>
56817
56818         * m4/mmap-anon.m4 (MAP_FILE, MAP_FAILED): Remove definitions.
56819
56820 2005-03-07  Bruno Haible  <bruno@clisp.org>
56821
56822         * lib/pagealign_alloc.c (MAP_FILE, MAP_FAILED): Define fallbacks.
56823
56824 2005-03-04  Derek R. Price  <derek@ximbiot.com>
56825
56826         * gnulib-tool (func_cp_if_changed, func_mv_if_changed): New functions.
56827         (func_import): Only replace files via --import when they have actually
56828         changed.
56829
56830 2005-03-03  Derek R. Price  <derek@ximbiot.com>
56831
56832         * m4/mmap-anon.m4: New file.
56833         * m4/pagealign_alloc.m4: New file.
56834
56835 2005-03-03  Derek R. Price  <derek@ximbiot.com>
56836             Bruno Haible  <bruno@clisp.org>
56837
56838         * modules/pagealign_alloc: New file.
56839         * MODULES.html.sh (Memory management functions): Add pagealign_alloc.
56840
56841 2005-03-03  Derek R. Price  <derek@ximbiot.com>
56842             Bruno Haible  <bruno@clisp.org>
56843
56844         * lib/pagealign_alloc.h: New file.
56845         * lib/pagealign_alloc.c: New file.
56846
56847 2005-03-03  Bruno Haible  <bruno@clisp.org>
56848
56849         * m4/inttypes.m4, isc-posix.m4, once-only.m4:
56850         Use an all-permissive copyright notice, recommended by RMS.
56851
56852 2005-03-02  Bruno Haible  <bruno@clisp.org>
56853
56854         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Undo the replacement here. Because
56855         of AIX, the replacement has to be done only after <string.h> is
56856         included, therefore not in config.h. stpncpy.h does the replacement,
56857         and stpncpy.c uses it.
56858
56859 2005-03-02  Bruno Haible  <bruno@clisp.org>
56860
56861         * lib/stpncpy.h (stpncpy): Define as a macro without arguments, so that
56862         stpncpy.c uses it.
56863
56864 2005-03-01  Paul Eggert  <eggert@cs.ucla.edu>
56865
56866         Remove workaround for bug in Linux kernel 2.6.8 or thereabouts.
56867         The workaround isn't strictly needed for POSIX conformance, and
56868         it's too much of a pain to configure and maintain.  We'll ask
56869         people to fix their kernels instead.
56870         * lib/xnanosleep.c: Don't include gethrxtime.h or xtime.h.
56871         (NANOSLEEP_BUG_WORKAROUND): Remove.
56872         (xnanosleep): Remove the workaround.
56873
56874 2005-03-01  Paul Eggert  <eggert@cs.ucla.edu>
56875
56876         * modules/gettime (Makefile.am): Remove lib_SOURCES line.
56877         Reported by Derek Price.
56878         (Include): Add "timespec.h".
56879
56880         * modules/xnanosleep (Depends-on): Remove gethrxtime.
56881
56882 2005-03-01  Paul Eggert  <eggert@cs.ucla.edu>
56883
56884         * m4/xnanosleep.m4 (gl_XNANOSLEEP): Remove configuration attempting
56885         to detect nanosleep bug.
56886
56887 2005-03-01  Bruno Haible  <bruno@clisp.org>
56888
56889         * lib/vasnprintf.c (EOVERFLOW): Define to a fallback if needed.
56890
56891 2005-02-26  Paul Eggert  <eggert@cs.ucla.edu>
56892
56893         * modules/gethrxtime: New file.
56894         * modules/xnanosleep (Files): Add m4/xnanosleep.m4.
56895         (Depends-on): Add gethrxtime.
56896         (configure.ac): Add gl_XNANOSLEEP.
56897         (Makefile.am): Remove lib_SOURCES line.
56898
56899 2005-02-25  Paul Eggert  <eggert@cs.ucla.edu>
56900
56901         * m4/gethrxtime.m4, m4/xnanosleep.m4: New files.
56902         * m4/gettime.m4 (gl_GETTIME): Check for nanotime.
56903
56904 2005-02-25  Paul Eggert  <eggert@cs.ucla.edu>
56905
56906         * lib/gethrxtime.h, lib/gethrxtime.c, lib/xtime.h: New files.
56907         * lib/timespec.h (gettime): Return void, since it always
56908         succeeds now.  All uses changed.
56909         * lib/gettime.c (gettime) Likewise.
56910         [HAVE_NANOTIME]: Prefer nanotime.
56911         Assume gettimeofday succeeds, as POSIX requires.
56912         Assime time () succeeds, since other code already does.
56913         * lib/xnanosleep.c: Include xtime.h and gethrxtime.h, not xalloc.h.
56914         (timespec_subtract): Remove.
56915         (NANOSLEEP_BUG_WORKAROUND): New constant.
56916         (xnanosleep): Use gethrxtime rather than gettime; this simplifies
56917         things considerably.  Use it only on GNU/Linux hosts, since the
56918         workaround shouldn't be needed elsewhere.
56919
56920 2005-02-24  Bruno Haible  <bruno@clisp.org>
56921
56922         * modules/gettext (Files): Add m4/glibc2.m4.
56923
56924 2005-02-24  Bruno Haible  <bruno@clisp.org>
56925
56926         * m4/gettext.m4, intdiv0.m4, intmax.m4, inttypes-pri.m4, lcmessage.m4:
56927         * m4/lib-link.m4, lib-prefix.m4, nls.m4, po.m4, printf-posix.m4:
56928         * m4/progtest.m4:
56929         Update from GNU gettext 0.14.2.
56930         * m4/glibc2.m4: New file, from GNU gettext 0.14.2.
56931
56932 2005-02-24  Bruno Haible  <bruno@clisp.org>
56933
56934         * lib/localcharset.c: Update from GNU gettext 0.14.2.
56935         * lib/config.charset: Update from GNU gettext 0.14.2.
56936
56937 2005-02-24  Bruno Haible  <bruno@clisp.org>
56938
56939         * lib/gettext.h: Update from GNU gettext 0.14.2.
56940
56941 2005-02-23  Simon Josefsson  <jas@extundo.com>
56942
56943         * m4/iconvme.m4: New file.
56944
56945 2005-02-23  Jim Meyering  <jim@meyering.net>
56946
56947         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Revert yesteday's
56948         change.
56949         Thanks to Bruno Haible for catching it.
56950
56951 2005-02-22  Simon Josefsson  <jas@extundo.com>
56952
56953         * modules/iconvme: New file.
56954
56955         * MODULES.html.sh: Add iconvme.
56956
56957 2005-02-22  Simon Josefsson  <jas@extundo.com>
56958
56959         * lib/iconvme.h, lib/iconvme.c: New files, from libc.
56960
56961 2005-02-22  Simon Josefsson  <jas@extundo.com>
56962
56963         * config/srclist.txt: Sync iconvme.h, iconvme.c from libc.
56964
56965 2005-02-22  Jim Meyering  <jim@meyering.net>
56966
56967         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Fix typo:
56968         s/ifndef/ifdef/.
56969
56970 2005-02-20  Neil Conway  <neilc@samurai.com>
56971
56972         * lib/xgethostname.c (xgethostname): Check for ENOMEM, which is
56973         returned by OSX/Darwin if the specified buffer is not large
56974         enough for the hostname.
56975
56976 2005-02-03  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
56977
56978         * lib/argp-help.c (__argp_help): Create a fake struct argp_state and
56979         pass it to _help, otherwise the latter coredumps trying to
56980         dereference state.root_argp.
56981
56982 2005-02-03  Paul Eggert  <eggert@cs.ucla.edu>
56983
56984         * modules/chdir-long (Depends-on): Add memrchr.
56985         * modules/memrchr (Files): Add lib/memrchr.h.
56986         (Include): "memrchr.h".
56987
56988 2005-02-03  Paul Eggert  <eggert@cs.ucla.edu>
56989
56990         * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Add AC_LIBSOURCES, for memrchr.h.
56991
56992 2005-02-03  Paul Eggert  <eggert@cs.ucla.edu>
56993
56994         * lib/memrchr.h: New file.
56995         * lib/chdir-long.c: Include it.
56996         * lib/memrchr.c [!defined _LIBC]: Include it rather than <string.h>
56997         Don't bother including stddef.h.
56998
56999 2005-02-01  Paul Eggert  <eggert@cs.ucla.edu>
57000
57001         * lib/mountlist.h (MOUNTLIST_H_): New macro, to protect against double
57002         inclusion.
57003         Include <sys/types.h>, for dev_t.
57004         (ME_DUMMY, ME_REMOTE): Move from here....
57005         * lib/mountlist.c (ME_DUMMY, ME_REMOTE): To here.
57006         (ME_DUMMY): Count "subfs" as a dummy.  Problem reported by
57007         Dmitry V. Levin.
57008         Include mountlist.h first, to test the interface.
57009
57010 2005-01-29  Bruno Haible  <bruno@clisp.org>
57011
57012         * lib/progname.c (program_name): Initialize.
57013         Needed when linking statically on MacOS X.
57014
57015 2005-01-28  Paul Eggert  <eggert@cs.ucla.edu>
57016
57017         Sync from coreutils.
57018         * modules/getloadavg (Files): Remove m4/getloadavg.m4.
57019         (Depends-on): Add c-strtod.
57020         (configure.ac): Replace gl_FUNC_GETLOADAVG with AC_FUNC_GETLOADAVG.
57021
57022 2005-01-28  Paul Eggert  <eggert@cs.ucla.edu>
57023
57024         Sync from coreutils.
57025         * m4/getloadavg.m4, glibc.m4, search-libs.m4: Remove.
57026
57027         Remove files that are specific to coreutils.
57028         * m4/check-decl.m4, jm-macros.m4, lib-check.m4, prereq.m4: Remove.
57029
57030 2005-01-28  Bruno Haible  <bruno@clisp.org>
57031
57032         * modules/javacomp: New file.
57033         * MODULES.html.sh (Java): Add javacomp.
57034
57035 2005-01-28  Bruno Haible  <bruno@clisp.org>
57036
57037         * m4/javacomp.m4: New file, from GNU gettext.
57038
57039 2005-01-28  Bruno Haible  <bruno@clisp.org>
57040
57041         * lib/javacomp.sh.in: New file, from GNU gettext.
57042         * lib/javacomp.h: New file, from GNU gettext.
57043         * lib/javacomp.c: New file, from GNU gettext.
57044
57045 2005-01-26  Simon Josefsson  <jas@extundo.com>
57046
57047         * lib/gai_strerror.c: Use GPL in header.
57048
57049 2005-01-26  Bruno Haible  <bruno@clisp.org>
57050
57051         * modules/javaexec: New file.
57052         * MODULES.html.sh (Java): Add javaexec.
57053
57054 2005-01-26  Bruno Haible  <bruno@clisp.org>
57055
57056         * m4/javaexec.m4: New file, from GNU gettext.
57057
57058 2005-01-26  Bruno Haible  <bruno@clisp.org>
57059
57060         * lib/javaexec.sh.in: New file, from GNU gettext.
57061         * lib/javaexec.h: New file, from GNU gettext.
57062         * lib/javaexec.c: New file, from GNU gettext.
57063
57064 2005-01-24  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
57065
57066         * modules/lchown (Depends-on): Remove lchown.h
57067
57068 2005-01-24  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
57069
57070         * m4/sysexits.m4 (gl_SYSEXITS): Reverted logic. SYSEXITS_H
57071         must be defined if the header file was not found, in order
57072         to provide a replacement. Reported by Todd Vierling <tv@duh.org>
57073
57074 2005-01-24  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
57075
57076         * lib/argp-help.c (hol_entry_help): Avoid using non-constant
57077         initializers for struct pentry_state.
57078         (__argp_error): Check return value of __asprintf
57079         (__argp_failure): Translate error message
57080
57081         * lib/argp-parse.c: Removed braces around the expansion of N_()
57082
57083 2005-01-23  Paul Eggert  <eggert@cs.ucla.edu>
57084
57085         * m4/acl.m4, afs.m4, alloca.m4, argp.m4, assert.m4, atexit.m4,
57086         backupfile.m4, base64.m4, bison.m4, c-bs-a.m4, c-stack.m4,
57087         c-strtod.m4, calloc.m4, canon-host.m4, canonicalize.m4,
57088         clock_time.m4, cloexec.m4, closeout.m4, d-ino.m4, d-type.m4,
57089         dirfd.m4, dirname.m4, dos.m4, dup2.m4, error.m4, euidaccess.m4,
57090         exclude.m4, exitfail.m4, extensions.m4, fcntl-safer.m4,
57091         file-type.m4, fileblocks.m4, filemode.m4, fnmatch.m4, fpending.m4,
57092         free.m4, fstypename.m4, fsusage.m4, ftruncate.m4, getaddrinfo.m4,
57093         getcwd-path-max.m4, getcwd.m4, getdate.m4, getdomainname.m4,
57094         getgroups.m4, gethostname.m4, getline.m4, getndelim2.m4,
57095         getnline.m4, getopt.m4, getpagesize.m4, getpass.m4, getsubopt.m4,
57096         gettime.m4, gettimeofday.m4, getugroups.m4, getusershell.m4,
57097         group-member.m4, hard-locale.m4, hash.m4, host-os.m4, human.m4,
57098         idcache.m4, inttostr.m4, isdir.m4, jm-winsz1.m4, jm-winsz2.m4,
57099         link-follow.m4, long-options.m4, ls-mntd-fs.m4, lstat.m4,
57100         makepath.m4, mathl.m4, md5.m4, memcasecmp.m4, memchr.m4,
57101         memcmp.m4, memcoll.m4, memcpy.m4, memmem.m4, memmove.m4,
57102         memrchr.m4, memset.m4, mkdir-slash.m4, mkstemp.m4, mktime.m4,
57103         modechange.m4, mountlist.m4, nanosleep.m4, obstack.m4,
57104         path-concat.m4, pathmax.m4, perl.m4, physmem.m4, poll.m4,
57105         posixtm.m4, posixver.m4, putenv.m4, quote.m4, quotearg.m4,
57106         readdir.m4, readtokens.m4, readutmp.m4, regex.m4, rename.m4,
57107         restrict.m4, rmdir-errno.m4, rmdir.m4, rpmatch.m4, same.m4,
57108         savedir.m4, settime.m4, sha1.m4, sig2str.m4, snprintf.m4,
57109         sockpfaf.m4, st_dm_mode.m4, st_mtim.m4, stat.m4, stdint.m4,
57110         stdio-safer.m4, strchrnul.m4, strdup.m4, strerror.m4,
57111         strerror_r.m4, strftime.m4, strndup.m4, strnlen.m4, strsep.m4,
57112         strtod.m4, strtoimax.m4, strtok_r.m4, strtol.m4, strtoll.m4,
57113         strtoul.m4, strtoull.m4, strtoumax.m4, strverscmp.m4, sysexits.m4,
57114         time_r.m4, timegm.m4, timespec.m4, tm_gmtoff.m4, tzset.m4,
57115         uint32_t.m4, uintptr_t.m4, unistd-safer.m4, unlink-busy.m4,
57116         unlocked-io.m4, uptime.m4, userspec.m4, utimbuf.m4, utime.m4,
57117         utimecmp.m4, utimens.m4, utimes-null.m4, vsnprintf.m4, xalloc.m4,
57118         xgetcwd.m4, xreadlink.m4, xstrndup.m4, xstrtod.m4, xstrtoimax.m4,
57119         xstrtol.m4, xstrtoumax.m4, yesno.m4:
57120         Use an all-permissive copyright notice, recommended by RMS.
57121
57122 2005-01-21  Paul Eggert  <eggert@cs.ucla.edu>
57123
57124         * modules/chdir-long (Depends-on): Remove mempcpy.
57125
57126 2005-01-21  Jim Meyering  <jim@meyering.net>
57127
57128         * lib/openat.h (AT_SYMLINK_NOFOLLOW): Define to 4096, so it's the
57129         same value as for Solaris 9.
57130
57131         * lib/chdir-long.c (chdir_long): Rewrite to remove limitation on
57132         component length.  This included changing the parameter to be
57133         of type `char *' rather than `char const *'.
57134         * lib/chdir-long.h (chdir_long): Update prototype.
57135
57136         * lib/openat.c (fdopendir, fstatat): New functions.
57137         * lib/openat.h: Include headers required for use of DIR and struct
57138         stat.
57139         [AT_SYMLINK_NOFOLLOW]: Define.
57140         (fdopendir, fstatat): Add prototypes.
57141
57142 2005-01-21  Bruno Haible  <bruno@clisp.org>
57143
57144         * modules/classpath: New file.
57145         * MODULES.html.sh (Java): Add classpath.
57146
57147 2005-01-21  Bruno Haible  <bruno@clisp.org>
57148
57149         * lib/classpath.h: New file, from GNU gettext.
57150         * lib/classpath.c: New file, from GNU gettext.
57151
57152 2005-01-20  Simon Josefsson  <jas@extundo.com>
57153
57154         * modules/version-etc-fsf: New file.
57155
57156 2005-01-20  Simon Josefsson  <jas@extundo.com>
57157
57158         * lib/version-etc-fsf.c: New file, with version_etc_copyright.
57159         * lib/version-etc.c: Remove version_etc_copyright.
57160         * lib/version-etc.h (version_etc_copyright): Use [] instead of * in
57161         prototype, suggested by Paul Eggert <eggert@CS.UCLA.EDU>.
57162
57163 2005-01-20  Simon Josefsson  <jas@extundo.com>
57164
57165         * lib/base64.h (isbase64): Add.
57166
57167         * lib/base64.c (isb64): Rename to isbase64, use to_uchar instead of
57168         using a unsigned prototype, don't inline.
57169         (base64_decode): Use it.
57170
57171 2005-01-20  Paul Eggert  <eggert@cs.ucla.edu>
57172
57173         * m4/save-cwd.m4 (gl_SAVE_CWD): Remove check for fcntl; we now assume
57174         it.
57175
57176 2005-01-20  Paul Eggert  <eggert@cs.ucla.edu>
57177
57178         * lib/save-cwd.c (save_cwd): Remove code to support the case
57179         where fchdir is missing or flaky.
57180
57181 2005-01-20  Paul Eggert  <eggert@cs.ucla.edu>
57182
57183         * MODULES.html.sh (Command-line arguments): Add version-etc-fsf.
57184
57185 2005-01-19  Paul Eggert  <eggert@cs.ucla.edu>
57186
57187         * modules/mempcpy (Makefile.am): Remove mention of mempcpy.h;
57188         AC_LIBSOURCES now does this.
57189         * MODULES.html.sh (Sizes of integer types <limits.h>): New element,
57190         with new ullong_max module.
57191
57192 2005-01-19  Bruno Haible  <bruno@clisp.org>
57193
57194         * modules/sh-quote: New file.
57195         * MODULES.html.sh (Executing programs): Add sh-quote.
57196
57197 2005-01-19  Bruno Haible  <bruno@clisp.org>
57198
57199         * lib/sh-quote.h: New file, from GNU gettext.
57200         * lib/sh-quote.c: New file, from GNU gettext.
57201
57202 2005-01-18  Paul Eggert  <eggert@cs.ucla.edu>
57203
57204         Merge from coreutils.
57205         * m4/ullong_max.m4: New file.
57206         * m4/jm-macros.m4 (gl_MACROS): Require gl_ULLONG_MAX.
57207         (gl_MACROS): Assume localeconv exists.
57208
57209 2005-01-18  Paul Eggert  <eggert@cs.ucla.edu>
57210
57211         Merge changes from coreutils, as described below in several
57212         changelogs dated today.
57213
57214         * lib/save-cwd.c: Include "save-cwd.h" before other include files.
57215         (O_DIRECTORY): Remove; not needed here, since "." must be
57216         a directory.  All uses removed.
57217         (save_cwd): Use __sgi || __sun, not sun || __sun.  __sun is
57218         universal on Suns, and we also need to test for IRIX.
57219         Revamp code to use 'if' rather than '#if'.
57220         Avoid unnecessary comparison of cwd->desc to 0.
57221
57222         * lib/utimens.c (futimens): Robustify the previous patch, by checking
57223         for known valid error numbers rather than observed invalid ones.
57224
57225 2005-01-18  Paul Eggert  <eggert@cs.ucla.edu>
57226
57227         * modules/ullong_max: New file.
57228
57229         * modules/chdir-long, modules/openat: New files.
57230         * modules/save-cwd (Depends-on): Depend on chdir-long.
57231         (Makefile.am): Remove lib_SOURCES; now handled by AC_LIBSOURCES.
57232
57233 2005-01-18  Jim Meyering  <jim@meyering.net>
57234
57235         Merge from coreutils.
57236         * m4/chdir-long.m4, m4/openat.m4: New files.
57237         * m4/save-cwd.m4 (gl_SAVE_CWD): Add AC_LIBSOURCES for save-cwd.c,
57238         save-cwd.h.  Add AC_LIBOBJ for save-cwd.
57239         * m4/chown.m4 (gl_FUNC_CHOWN): When cross-compiling, assume that chown
57240         is sane and DOES follow symlinks.  Besides, testing 20 different
57241         systems found no broken chown implementations.
57242         Prompted by a change in rsync's copy of this macro.
57243         * m4/jm-macros.m4 (gl_MACROS): Require gl_FUNC_CHDIR_LONG.
57244
57245         * m4/lchown.m4 (gl_FUNC_LCHOWN): Use AC_LIBSOURCES.
57246
57247         * m4/utimes.m4: Work around tests/touch/empty-file failure on a system
57248         (sparc64, Linux-2.4.28, glibc-2.3.3) that didn't honor utimes'
57249         NULL-means-set-to-current-time semantics.
57250         Remove temporary file immediately, rather than waiting
57251         for configure's at-exit trap code to do it.
57252
57253 2005-01-18  Jim Meyering  <jim@meyering.net>
57254
57255         * lib/version-etc.c (version_etc_copyright): Update copyright date.
57256
57257         * lib/utimens.c (futimens): Account for the fact that futimes
57258         can also fail with errno == ENOSYS or errno == ENOENT.
57259         Patch from Dmitry V. Levin.
57260
57261         Change the name of the robust chdir function from chdir to chdir_long.
57262         * lib/save-cwd.c: Include chdir-long.h rather than chdir.h.
57263         (restore_cwd): Use chdir_long, not chdir.
57264         * lib/chdir-long.c: Renamed from chdir.c.
57265         * lib/chdir-long.h: Renamed from chdir.h.
57266         [!defined PATH_MAX]: Define chdir_long to chdir on systems like the
57267         Hurd.
57268
57269 2005-01-18  Bruno Haible  <bruno@clisp.org>
57270
57271         * m4/allocsa.m4, m4/codeset.m4, m4/copy-file.m4, m4/eaccess.m4:
57272         * m4/eealloc.m4, m4/eoverflow.m4, m4/execute.m4, m4/fatal-signal.m4:
57273         * m4/findprog.m4, m4/glibc21.m4, m4/iconv.m4, m4/intmax_t.m4:
57274         * m4/inttypes_h.m4, m4/lib-ld.m4, m4/lib-link.m4, m4/lib-prefix.m4:
57275         * m4/linebreak.m4, m4/localcharset.m4, m4/longdouble.m4:
57276         * m4/longlong.m4, m4/mbrtowc.m4, m4/mbstate_t.m4, m4/mbswidth.m4:
57277         * m4/mkdtemp.m4, m4/pipe.m4, m4/readlink.m4, m4/safe-read.m4:
57278         * m4/safe-write.m4, m4/setenv.m4, m4/sig_atomic_t.m4:
57279         * m4/signalblocking.m4, m4/signed.m4, m4/size_max.m4, m4/ssize_t.m4:
57280         * m4/stdbool.m4, m4/stdint_h.m4, m4/stpcpy.m4, m4/stpncpy.m4:
57281         * m4/strcase.m4, m4/strcspn.m4, m4/strpbrk.m4, m4/strstr.m4:
57282         * m4/ucs4-utf.m4, m4/uintmax_t.m4, m4/ulonglong.m4, m4/unicodeio.m4:
57283         * m4/utf-ucs4.m4, m4/vasnprintf.m4, m4/vasprintf.m4:
57284         * m4/wait-process.m4, m4/wchar_t.m4, m4/wint_t.m4, m4/xsize.m4:
57285         Use an all-permissive copyright notice, recommended by RMS.
57286
57287 2005-01-18  Bob Proulx  <bob@proulx.com>
57288
57289         * lib/obstack.c [DEFAULT_ALIGNMENT]: Use an intermediate type to
57290         simplify offsetof() macro construct to avoid compile failure with
57291         native HP-UX 11.0 ANSI C compiler.
57292
57293 2005-01-17  Bruno Haible  <bruno@clisp.org>
57294
57295         * lib/stpncpy.c: Remove HAVE_STPNCPY and gnu_stpncpy renaming,
57296         redundant because stpncpy.m4 takes care of it.
57297
57298 2005-01-17  Bruno Haible  <bruno@clisp.org>
57299
57300         * lib/progreloc.c: Include xalloc.h instead of xmalloc.h.
57301
57302 2005-01-17  Bruno Haible  <bruno@clisp.org>
57303
57304         * lib/progreloc.c (xstrdup): Define as strdup if no xmalloc should be
57305         used.
57306
57307 2005-01-17  Bruno Haible  <bruno@clisp.org>
57308
57309         * lib/fwriteerror.h (fwriteerror): Change specification to include
57310         fclose.
57311         * lib/fwriteerror.c: Include <stdbool.h>.
57312         (fwriteerror): At the end, close the file stream. Record whether
57313         stdout was already closed.
57314
57315 2005-01-17  Bruno Haible  <bruno@clisp.org>
57316
57317         * lib/execute.c (environ): Declare if needed.
57318         * lib/pipe.c (environ): Likewise.
57319         Reported by Michael Schloh von Bennewitz <michael.schloh@cw.com>.
57320
57321 2005-01-11  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
57322
57323         * modules/argp: Depend on vsnprintf
57324
57325 2005-01-10  Jim Meyering  <jim@meyering.net>
57326
57327         * modules/closeout (Depends-on): Add atexit.
57328
57329 2005-01-06  Bruno Haible  <bruno@clisp.org>
57330
57331         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Rename stpncpy to gnu_stpncpy here.
57332
57333 2005-01-04  Paul Eggert  <eggert@cs.ucla.edu>
57334
57335         * lib/human.c (SIZE_MAX, UINTMAX_MAX): Move these conditional
57336         definitions to be after all include files, to avoid collisions.
57337         Problem reported by Bob Proulx.
57338
57339 2005-01-04  Jim Meyering  <jim@meyering.net>
57340
57341         Changes imported from coreutils.
57342         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Rather than using "conftestXXXXXX"
57343         as the mkstemp template, use a temporary directory and an
57344         8.3-friendly template to avoid trouble on systems like DJGPP.
57345         Reported by Juan M. Guerrero via Stepan Kasal.
57346         * m4/(gl_FUNC_MKSTEMP): Include <unistd.h> for the declaration of
57347         close. Remove the temporary directory right away, rather than waiting
57348         for configure's at-exit trap code to do it.
57349         Suggestion from Stepan Kasal.
57350
57351 2005-01-01  Simon Josefsson  <jas@extundo.com>
57352
57353         * gnulib-tool: Print #include directives when --import'ing.
57354
57355 2004-12-28  Simon Josefsson  <jas@extundo.com>
57356
57357         * tests/test-base64.c: Include required header files.  Remove
57358         unused variables.
57359
57360 2004-12-28  Paul Eggert  <eggert@cs.ucla.edu>
57361
57362         * modules/error (Depends-on): Remove gettext.
57363
57364 2004-12-28  Paul Eggert  <eggert@cs.ucla.edu>
57365
57366         * lib/error.c [!_LIBC && !ENABLE_NLS]: Do not include "gettext.h";
57367         not needed.  This removes a dependency on the gettext module.
57368         [defined _LIBC]: Do not include <libintl.h>; not needed.
57369
57370 2004-12-24  Paul Eggert  <eggert@cs.ucla.edu>
57371
57372         * m4/c-strtod.m4 (gl_C99_STRTOLD): New macro.
57373         (gl_C_STRTOD): Use it instead of AC_CHECK_DECLS_ONCE(strtold).
57374
57375 2004-12-24  Paul Eggert  <eggert@cs.ucla.edu>
57376
57377         * lib/c-strtod.c (STRTOD): Depend on HAVE_C99_STRTOLD, not
57378         HAVE_DECL_STRTOLD.
57379
57380 2004-12-23  Paul Eggert  <eggert@cs.ucla.edu>
57381
57382         * modules/getdate (Depends-on): Remove alloca-opt.
57383
57384 2004-12-23  Paul Eggert  <eggert@cs.ucla.edu>
57385
57386         * m4/getdate.m4 (gl_GETDATE): Remove AC_FUNC_ALLOCA.
57387
57388 2004-12-23  Paul Eggert  <eggert@cs.ucla.edu>
57389
57390         * lib/argp-parse.c: Include <stddef.h>.
57391         (alignof, alignto): New macros.
57392         (parser_init): Don't assume that void * is aligned sufficiently
57393         for struct option.
57394
57395         * lib/getdate.y (YYSTACK_USE_ALLOCA): Define to 0, since there's no
57396         need to extend the stack.
57397         (YYINITDEPTH): New macro, so that the initial stack isn't overly
57398         large.
57399
57400 2004-12-22  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
57401
57402         * lib/argp-parse.c (parser_init): Avoid arithmetics on void pointers.
57403
57404 2004-12-19  Paul Eggert  <eggert@cs.ucla.edu>
57405
57406         * modules/regex (lib_SOURCES): Remove regex.c, undoing previous
57407         (2004-10-24) change.  Apparently this was a false alarm.
57408
57409         * modules/getdate: Depend on alloca-opt, not alloca.
57410
57411 2004-12-19  Paul Eggert  <eggert@cs.ucla.edu>
57412
57413         * lib/alloca_.h: Conditionalize on _GNULIB_ALLOCA_H, not _ALLOCA_H.
57414         Remove now-obsolete comment about AIX.
57415         * lib/getdate.y: Include <alloca.h> only if HAVE_ALLOCA.
57416         (YYSTACK_USE_ALLOCA): Define to 0 if !HAVE_ALLOCA.
57417         (YYMAXDEPTH): New macro.
57418
57419 2004-12-18  Simon Josefsson  <jas@extundo.com>
57420
57421         * modules/alloca: Depend on alloca-opt, instead of duplicating it.
57422
57423 2004-12-18  Bruno Haible  <bruno@clisp.org>
57424
57425         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Also test for sigaction.
57426
57427 2004-12-18  Bruno Haible  <bruno@clisp.org>
57428
57429         * lib/fatal-signal.c (fatal_signals): Make non-const.
57430         (init_fatal_signals): New function.
57431         (uninstall_handlers, install_handlers): Ignore signals that were set to
57432         SIG_IGN.
57433         (at_fatal_signal): Call init_fatal_signals.
57434         (init_fatal_signal_set): Likewise. Ignore signals that were set to
57435         SIG_IGN.
57436         Reported by Paul Eggert.
57437
57438 2004-12-18  Bruno Haible  <bruno@clisp.org>
57439
57440         * doc/alloca.texi: New file.
57441         * doc/alloca-opt.texi: New file.
57442
57443 2004-12-17  Jim Meyering  <jim@meyering.net>
57444
57445         * config/install-sh: Use `(exit N); exit N', not `(exit N); exit'.
57446         Otherwise, install-sh could exit with improper exit status when
57447         exiting via a trapped interrupt.  Thanks to a report from Bob Proulx.
57448
57449 2004-12-16  Simon Josefsson  <jas@extundo.com>
57450
57451         * tests/test-base64.c: Add license.
57452
57453 2004-12-15  Stepan Kasal  <address@hidden>
57454
57455         * gnulib-tool (func_emit_lib_Makefile_am): Shorten a long sed command.
57456
57457 2004-12-12  Paul Eggert  <eggert@cs.ucla.edu>
57458
57459         * modules/getcwd (Files): Add m4/d-ino.m4.
57460         Suggested by Mark D. Baushke.
57461
57462 2004-12-08  Paul Eggert  <eggert@cs.ucla.edu>
57463
57464         * lib/getdate.y (textint): New member "negative".
57465         (time_zone_hhmm): New function.
57466         Expect 14 shift-reduce conflicts, not 13.
57467         (o_colon_minutes): New rule.
57468         (time, zone): Use it to add support for +HH:MM, UTC+HH:MM.
57469         (yylex): Set the "negative" member of signed numbers.
57470
57471 2004-12-08  Paul Eggert  <eggert@cs.ucla.edu>
57472
57473         * doc/getdate.texi (Time of day items, Time zone items):
57474         Describe new formats +00:00, UTC+00:00.
57475
57476 2004-12-07  Paul Eggert  <eggert@cs.ucla.edu>
57477
57478         * m4/ls-mntd-fs.m4 (AC_FUNC_GETMNTENT): Fix typo in previous change:
57479         spurious "-l"s.  Problem reported by Stepan Kasal.
57480
57481 2004-12-06  Paul Eggert  <eggert@cs.ucla.edu>
57482
57483         * m4/ls-mntd-fs.m4 (AC_FUNC_GETMNTENT): New macro, to work around bug
57484         in Autoconf 2.59.  Problem reported by Mark D. Baushke.
57485
57486 2004-12-04  Simon Josefsson  <jas@extundo.com>
57487
57488         * modules/getaddrinfo (License): Add LGPL, reported by Yoann
57489         Vandoorselaere <yoann@prelude-ids.org>.
57490
57491 2004-12-04  Paul Eggert  <eggert@cs.ucla.edu>
57492
57493         Changes imported from coreutils.
57494         * m4/hard-locale.m4 (gl_HARD_LOCALE): Assume locale.h and setlocale
57495         exist.
57496         * m4/human.m4 (gl_HUMAN): Assume locale.h and localeconv exist.
57497
57498 2004-12-04  Paul Eggert  <eggert@cs.ucla.edu>
57499
57500         Changes imported from coreutils.
57501         * lib/hard-locale.c: Assume <locale.h> exists.
57502         Include "strdup.h".
57503         (GLIBC_VERSION): New macro.
57504         (hard_locale): Assume setlocale exists.
57505         Rewrite to avoid #ifdef.
57506         Use strdup rather than malloc + strcpy.
57507         * lib/human.c: Assume <locale.h> exists.
57508         (human_readable): Assume localeconv exists.
57509
57510 2004-12-04  Paul Eggert  <eggert@cs.ucla.edu>
57511
57512         * modules/hard-locale (Depends-on): Add strdup.
57513
57514 2004-12-01  Jakub Jelinek  <jakub@redhat.com>
57515
57516         * lib/mktime.c (__mktime_internal): If SEC_REQUESTED != SEC,
57517         convert T2, not T.  (Imported from libc.)
57518
57519 2004-11-30  Simon Josefsson  <jas@extundo.com>
57520
57521         * modules/restrict (License): Change to LGPL.
57522
57523 2004-11-30  Simon Josefsson  <jas@extundo.com>
57524
57525         * m4/restrict.m4: Add copyright and copying conditions.
57526
57527 2004-11-30  Simon Josefsson  <jas@extundo.com>
57528
57529         * m4/base64.m4: New file.
57530
57531 2004-11-30  Simon Josefsson  <jas@extundo.com>
57532
57533         * MODULES.html.sh (Extra functions based on ANSI C 89): Add
57534         base64.
57535
57536         * tests/test-base64.c: New file.
57537
57538         * modules/base64: New file.
57539
57540 2004-11-30  Paul Eggert  <eggert@cs.ucla.edu>
57541
57542         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX):
57543         Define HAVE_PARTLY_WORKING_GETCWD if getcwd is partly working.
57544
57545         * m4/readutmp.m4 (gl_READUTMP): Don't check for sys/param.h.
57546
57547 2004-11-30  Paul Eggert  <eggert@cs.ucla.edu>
57548
57549         * lib/getcwd.c (is_ENAMETOOLONG): New macro.
57550         (__getcwd.c): Don't restore errno; glibc doesn't.
57551         [HAVE_PARTLY_WORKING_GETCWD && !defined AT_FDCWD]: Try system getcwd
57552         first, falling back to our code only if its results look suspicious.
57553         Ensure that the resulting buffer is only as large as necessary.
57554
57555         * lib/readutmp.c: Include readutmp.h first.
57556         Include <errno.h>, since readutmp.h no longer does that.
57557         * lib/readutmp.h: Don't include <errno.h>,
57558         <sys/param.h>, <time.h>; not needed to establish interface.
57559         (errno): Remove decl.
57560         (HAVE_STRUCT_XTMP_UT_TYPE): Remove; no longer needed.
57561         (UT_TYPE_EQ, UT_TYPE_NOT_DEFINED, UT_TYPE_BOOT_TIME,
57562         UT_TYPE_USER_PROCESS, IS_USER_PROCESS): New macros.
57563
57564 2004-11-28  Simon Josefsson  <jas@extundo.com>
57565
57566         * lib/base64.h, base64.c: New file.
57567
57568 2004-11-27  Paul Eggert  <eggert@cs.ucla.edu>
57569
57570         * lib/getcwd.h: New file, which I forgot to check in on 2004-11-25.
57571
57572 2004-11-26  Paul Eggert  <eggert@cs.ucla.edu>
57573
57574         * modules/getcwd (Files): Add lib/getcwd.h, m4/getcwd.m4.
57575         (Depends-on): Remove pathmax, same.  Add mempcpy.
57576         (configure.ac): GL_FUNC_GETCWD_PATH_MAX -> gl_FUNC_GETCWD.
57577         (Makefile.am): Append getcwd.h to lib_SOURCES.
57578         (Include): Add getcwd.h.
57579         (Maintainer): Change from Jim Meyering to "all, glibc",
57580         since getdate now uses intended-for-glibc code.
57581         * modules/xgetcwd (Files): Remove m4/getcwd.m4.
57582         (Depends-on): Depend on getcwd.  Do not depend on pathmax.
57583
57584 2004-11-25  Paul Eggert  <eggert@cs.ucla.edu>
57585
57586         Fix problems reported by Scott S. Tinsley for HP-UX 11.11 using
57587         HP's ANSI C compiler.
57588         * lib/fsusage.c (statvfs) [HAVE_SYS_STATVFS_H]: Remove decl.
57589         Declaring int functions causes warnings on some modern systems and
57590         shouldn't be needed to compile on ancient ones.
57591         * lib/same.c (MIN) [defined MIN]: Don't define, since it's already
57592         defined.
57593
57594         * lib/getcwd.c: Replace by a copy of glibc/sysdeps/posix/getcwd.c, but
57595         with the following changes.
57596         (__set_errno): Parenthesize properly.
57597         Include <stdbool.h>.
57598         (MIN, MAX, MATCHING_INO): New macros.
57599         (__getcwd): Define with prototype, not K&R form.
57600         Use heuristics to allocate default buffer on stack if possible.
57601         If AT_FDCWD is defined, use openat and fstatat to avoid O(N**2)
57602         behavior, and to avoid the PATH_MAX limit when computing
57603         ../../../../...
57604         Use MATCHING_INO to compare inode number to file.
57605         Check for arithmetic overflow in size calculations.
57606         Fix bug in reallocation of dot array that caused getcwd to fail
57607         on directories nested deeper than 75.
57608         Be more careful about saving errno on error.
57609         Do not use realloc; use only free+malloc, as this is a bit
57610         more flexible and avoids a needless copy operation.
57611         Do not inspect st_dev and st_ino for symbolic links; POSIX
57612         doesn't specify the latter.
57613         Check for closedir errors.
57614         Avoid needless casts.
57615         Use "#ifdef weak_alias" around weak_alias, to be like other
57616         glibc code.
57617         The following changes to getcwd.c have effect only when used in
57618         gnulib; they have no effect inside glibc proper.
57619         (#pragma alloca) [defined _AIX && !defined __GNUC__]: Remove,
57620         as alloca isn't used.
57621         (alloca, __alloca): Likewise.
57622         [!_LIBC]: Include "getcwd.h", "mempcpy.h".
57623         Include <stddef.h>, <stdlib.h>, <string.h>, <limits.h>
57624         unconditionally, as gnulib assumes C89 or better.
57625         Do not include <sys/param.h>.
57626         (errno) [!defined __GNU_LIBRARY__ && !defined STDC_HEADERS]: Remove
57627         no-longer-necessary 'extern int errno' decl; gnulib assumes C89 or
57628         better.
57629         (NULL) [!defined NULL]: Remove; we assume C89 or better.
57630         Include <dirent.h> in a way that is compatible with modern Autoconf.
57631         (_D_ALLOC_NAMELEN, _D_EXACT_NAMLEN):
57632         New macros, if not already defined.
57633         Include <unistd.h> if _LIBC, not if __GNU_LIBRARY__.
57634         Use "_LIBC", not "defined _LIBC", for consistency.
57635         (HAVE_MEMPCPY): Remove; no longer needed now that gnulib has
57636         a mempcpy module.
57637         (__lstat, __closedir, __opendir, __readdir) [!_LIBC]: New macros.
57638         (GETCWD_RETURN_TYPE): Remove.  All uses replaced by char *.
57639         * lib/xgetcwd.c: David MacKenzie's old code was removed, so give
57640         credit only to Jim Meyering and adjust the copyright dates.
57641         Do not include <limits.h>, <stdio.h>, <sys/types.h>,
57642         <stdlib.h>, <unistd.h>, "pathmax.h".
57643         Instead, include "xgetcwd.h" (first) and "getcwd.h".
57644         (INITIAL_BUFFER_SIZE): Remove.
57645         (xgetcwd): Rely on getcwd, since we now depend on a reliable one.
57646
57647 2004-11-25  Paul Eggert  <eggert@cs.ucla.edu>
57648
57649         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Renamed from
57650         GL_FUNC_GETCWD_PATH_MAX for consistency.  All uses changed.
57651         Use the _ONCE methods, for efficiency.
57652         Check for fcntl.h.  In test program, include <errno.h>
57653         and <fcntl.h> if available.  Remove old K&R cruft from
57654         test program.  Check for common errors in GNU/Linux,
57655         OpenBSD, and Solaris.  Just set gl_cv_func_getcwd_path_max;
57656         don't do AC_LIBOBJ, as that's getcwd.m4's job.
57657         * m4/getcwd.m4 (gl_FUNC_GETCWD_NULL): Renamed from
57658         AC_FUNC_GETCWD_NULL.  All used changed.  Change cache variable
57659         name accordingly.
57660         (gl_FUNC_GETCWD, gl_PREREQ_GETCWD): New macros.  Revamp to
57661         accommodate new getcwd.c.
57662         * m4/jm-macros.m4 (gl_MACROS): Don't require GL_FUNC_GETCWD_PATH_MAX.
57663         * m4/prereq.m4 (gl_PREREQ): Add gl_FUNC_MEMPCPY.
57664         * m4/xgetcwd.m4 (gl_XGETCWD): Replace with gl_FUNC_GETCWD, since
57665         that's all we need now.
57666
57667 2004-11-23  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
57668
57669         * m4/argp.m4 (gl_ARGP): Require gl_GETOPT_SUBSTITUTE unconditionally:
57670         argp-parse.c depends on getopt internals, that means we should
57671         always use our getopt, to be on the safe side.
57672         * m4/getopt.m4 (gl_GETOPT): Check if GETOPT_H is already set, in
57673         order not to spoil the result of an eventual previous invocation
57674         of gl_GETOPT_SUBSTITUTE.
57675
57676 2004-11-23  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
57677
57678         * lib/getopt_.h: Re-addition of __getopt_argv_const caused
57679         redefinition warnings. To avoid them, include the defines
57680         in `#if !defined __need_getopt ... #endif'. The only place
57681         where __getopt_argv_const is used is in definitions
57682         of getopt_long and getopt_long_only below, which are as well
57683         protected by `#ifndef __need_getopt'.
57684         [defined __GETOPT_PREFIX && !defined __need_getopt]: Undef
57685         __need_getopt after including <stdio.h> and <unistd.h> These
57686         headers might have defined it.
57687
57688 2004-11-23  Paul Eggert  <eggert@cs.ucla.edu>
57689
57690         * m4/utimens.m4 (gl_UTIMENS): Check for futimes function.
57691
57692 2004-11-23  Paul Eggert  <eggert@cs.ucla.edu>
57693
57694         * lib/utimens.c (__attribute__, ATTRIBUTE_UNUSED): New macros.
57695         (futimens): New function, which uses futimes if available.
57696         (futimens, utimens): Support timespec==NULL, with same semantics
57697         as utime and utimens.
57698         * lib/utimens.h (futimens): New decl.
57699
57700 2004-11-23  Jim Meyering  <jim@meyering.net>
57701
57702         * lib/getopt_.h: Remove trailing blanks.
57703
57704 2004-11-23  Jim Meyering  <jim@meyering.net>
57705
57706         * lib/__fpending.c: Add comment.
57707
57708 2004-11-22  Paul Eggert  <eggert@cs.ucla.edu>
57709
57710         * modules/canonicalize (Depends-on): Add xreadlink.
57711         Problem reported by James Youngman.
57712
57713 2004-11-20  Paul Eggert  <eggert@cs.ucla.edu>
57714
57715         * lib/getopt_.h (__GETOPT_CONCAT, __GETOPT_XCONCAT, __GETOPT_ID):
57716         New macros.
57717         (getopt, getopt_long, getopt_long_only, optarg, opterr, optind,
57718         optopt): Use them instead of invoking ## directly; otherwise, the
57719         symbols will be __GETOPT_PREFIXgetopt rather than rpl_getopt.
57720
57721 2004-11-19  Bruno Haible  <bruno@clisp.org>
57722
57723         * lib/strtok_r.c: Move comments from here...
57724         * lib/strtok_r.h: ... to here.
57725
57726 2004-11-17  Paul Eggert  <eggert@cs.ucla.edu>
57727
57728         * m4/calloc.m4 (_AC_FUNC_CALLOC_IF): Check for buggy calloc
57729         implementations that mishandle size_t overflow.
57730
57731 2004-11-17  Paul Eggert  <eggert@cs.ucla.edu>
57732
57733         * lib/realloc.c (rpl_realloc): Call 'free' if n==0, since realloc
57734         might fail.  Problem reported by Yoann Vandoorselaere.
57735         * lib/calloc.c (rpl_calloc): Defend against buggy calloc
57736         implementations that mishandle size_t overflow.
57737
57738 2004-11-16  Paul Eggert  <eggert@cs.ucla.edu>
57739
57740         * modules/canon-host (Depends-on): Add strdup.
57741
57742 2004-11-16  Paul Eggert  <eggert@cs.ucla.edu>
57743
57744         * m4/canon-host.m4 (gl_CANON_HOST): Check for getaddrinfo.
57745
57746 2004-11-16  Paul Eggert  <eggert@cs.ucla.edu>
57747
57748         * lib/canon-host.c: Include "strdup.h".
57749         (canon_host): Use getaddrinfo if available, so that IPv6 works.
57750         Use strdup instead of malloc/strcpy to duplicate strings.
57751
57752         * lib/human.h (LONGEST_HUMAN_READABLE): Add 1 for space before unit.
57753         (human_space_before_unit): New constant.
57754         * lib/human.c (human_readable): Support it.
57755
57756         * lib/xgetcwd.c: Include <limits.h>, for PATH_MAX.
57757         (xgetcwd): Set errno correctly when failing.
57758         Work around Solaris 9 bug: getcwd sets errno==ERANGE even though
57759         the failure is actually due to a PATH_MAX problem.
57760
57761         Further getopt changes to make it more likely that glibc will
57762         buy the changes back.
57763         * lib/getopt.c (POSIXLY_CORRECT): New constant.
57764         (getopt): Use it, so to preserve glibc semantic
57765         * lib/getopt1.c (getopt_long, getopt_long_only): Arg is char * const *
57766         when compiling for libc.
57767         * lib/getopt_.h (__getopt_argv_const): Bring it back.
57768         (getopt_long, getopt_long_only): Use it.
57769
57770         * lib/getopt.c (_getopt_initialize, _getopt_internal_r,
57771         _getopt_internal): New arg POSIXLY_CORRECT.  All callers changed.
57772         (getopt): Argv is now char * const *, as per standard.
57773         (_getopt_internal_r, _getopt_internal): Argv is now char **,
57774         not char *__getopt_argv_const *.
57775         * lib/getopt1.c (getopt_long, _getopt_long_r, getopt_long_only,
57776         _getopt_long_only_r): Likewise.
57777         * lib/getopt_.h (getopt, getopt_long, geopt_long_only): Likewise.
57778         * lib/getopt_int.h (_getopt_internal, _getopt_internal_r,
57779         _getopt_long_r, _getopt_long_only_r): Likewise.
57780         * lib/getopt_.h (__getopt_argv_const): Remove.
57781         (getopt): Argv is now char * const *, as per standard.
57782
57783         * lib/getdate.y (tORDINAL): New token.
57784         (day, relunit): Allow it for relative times.
57785         (relative_time_table): Use tORDINAL for ordinals.
57786
57787 2004-11-16  Paul Eggert  <eggert@cs.ucla.edu>
57788
57789         * doc/getdate.texi (General date syntax): "next" is 1, not 2.
57790         Document that "second" isn't allowed as an ordinal number.
57791
57792 2004-11-16  Jim Meyering  <jim@meyering.net>
57793
57794         * modules/closeout (Depends-on): Add fpending.
57795
57796 2004-11-15  Jim Meyering  <jim@meyering.net>
57797
57798         * lib/closeout.c: Include "__fpending.h" once again.
57799         Include <stdbool.h>.
57800         (close_stdout): Don't fail just because stdout was closed initially,
57801         since some programs don't write to stdout in the normal course of
57802         operation (other than --version and --help), and we don't want this
57803         function to make e.g. `touch file >&-' fail.
57804         But do fail if it was closed and someone has tried to write to it.
57805         E.g., `printf foo >&-' must fail.
57806
57807 2004-11-13  Jim Meyering  <jim@meyering.net>
57808
57809         * m4/jm-macros.m4: Do require gl_FUNC_FPENDING.
57810
57811 2004-11-12  Simon Josefsson  <jas@extundo.com>
57812
57813         * config/srclist.txt: Add strtok_r.c, glibc bought our changes, but a
57814         small doc fix is still pending.
57815
57816 2004-11-11  Simon Josefsson  <jas@extundo.com>
57817
57818         * modules/strtok_r: New file.
57819
57820         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
57821         strtok_r.
57822
57823 2004-11-11  Simon Josefsson  <jas@extundo.com>
57824
57825         * m4/strtok_r.m4: New file.
57826
57827         * m4/getopt.m4: Replace opterr.
57828
57829 2004-11-11  Simon Josefsson  <jas@extundo.com>
57830
57831         * lib/strtok_r.h, strtok_r.c: New file.
57832
57833 2004-11-11  Paul Eggert  <eggert@cs.ucla.edu>
57834
57835         * m4/getopt.m4 (gl_GETOPT_SUBSTITUTE): Define __GETOPT_PREFIX instead
57836         of replacing opterr, getopt, etc.  This should handle the
57837         powerpc-apple-darwin5.5 problem recently noted by Simon Josefsson.
57838
57839 2004-11-11  Paul Eggert  <eggert@cs.ucla.edu>
57840
57841         * lib/getopt_.h (__getopt_argv_const): New macro, to be used so that
57842         we can stop lying to compilers about the constness of argv when we
57843         are compiled outside glibc.
57844         (getopt, getopt_long, getopt_long_only): Use it.
57845         * lib/getopt.c (_getopt_initialize, _getopt_internal_r,
57846         _getopt_internal, getopt): Likewise.
57847         * lib/getopt1.c (getopt_long, _getopt_long_r, getopt_long_only,
57848         _getopt_long_only_r): Likewise.
57849         * lib/getopt_int.h (_getopt_internal, _getopt_internal_r,
57850         _getopt_long_r, _getopt_long_only_r): Likewise.
57851
57852         * lib/getopt_.h [defined __GETOPT_PREFIX && !defined __need_getopt]:
57853         Include <stdlib.h> and <stdio.h>, and <unistd.h> if available.
57854         Then rename getopt to __GETOPT_PREFIX##getopt, and so forth for
57855         the other external symbols.
57856         (getopt) [!defined __GNU_LIBRARY]: Use prototype, not old-style
57857         declaration, since the above renaming now works around collisions.
57858
57859 2004-11-11  Jim Meyering  <jim@meyering.net>
57860
57861         * lib/linebreak.c: Remove trailing blanks.
57862         * lib/alloca_.h: Likewise.
57863         * lib/acosl.c: Likewise.
57864         * lib/euidaccess.c: Likewise.
57865         * lib/allocsa.h: Likewise.
57866
57867 2004-11-10  Simon Josefsson  <jas@extundo.com>
57868
57869         * m4/getaddrinfo.m4: New file.
57870
57871 2004-11-10  Simon Josefsson  <jas@extundo.com>
57872
57873         * lib/getaddrinfo.h, lib/getaddrinfo.c: New files.
57874
57875 2004-11-10  Simon Josefsson  <jas@extundo.com>
57876
57877         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
57878         getaddrinfo.
57879
57880         * modules/getaddrinfo: New file.
57881
57882 2004-11-10  Paul Eggert  <eggert@cs.ucla.edu>
57883
57884         * m4/prereq.m4 (gl_PREREQ): Require gt_FUNC_SETENV.
57885
57886 2004-11-10  Paul Eggert  <eggert@cs.ucla.edu>
57887
57888         * lib/mktime.c (SHR): New macro, which is a portable
57889         substitute for >> that should work even on Crays.
57890         (TIME_T_MIDPOINT, ydhms_diff, __mktime_internal): Use it.
57891         Problem reported by Mark D. Baushke in
57892         <http://lists.gnu.org/archive/html/bug-gnulib/2004-11/msg00071.html>.
57893         * lib/getdate.y (SHR): Likewise.
57894         (tm_diff): Use it.
57895         * lib/strftime.c (SHR): Likewise.
57896         (tm_diff): Use it.
57897         * lib/quotearg.c (struct quoting_options): Use unsigned int for
57898         quote_these_too, so that right shifts are well defined.  All uses
57899         changed.
57900
57901 2004-11-10  Jim Meyering  <jim@meyering.net>
57902
57903         Ensure that no close failure goes unreported.
57904         * lib/closeout.c (close_stdout): Always close stdout.  I.e., don't
57905         return early when it seems there's nothing to flush.
57906         Don't include __fpending.h.
57907
57908 2004-11-10  Jim Meyering  <jim@meyering.net>
57909
57910         * modules/closeout (Depends-on): Remove fpending.
57911
57912 2004-11-10  Jim Meyering  <jim@meyering.net>
57913
57914         * m4/jm-macros.m4 (gl_MACROS): Don't require gl_FUNC_FPENDING.
57915
57916 2004-11-09  Paul Eggert  <eggert@cs.ucla.edu>
57917
57918         * m4/strftime.m4 (_gl_STRFTIME_PREREQS): Remove.  Move its body to
57919         gl_FUNC_STRFTIME.
57920         (gl_FUNC_STRFTIME): Use AC_CHECK_FUNCS_ONCE and AC_CHECK_HEADERS_ONCE
57921         and AC_REQUIRE when possible, to avoid duplicate checks.
57922         Check for <wchar.h>.
57923
57924 2004-11-09  Paul Eggert  <eggert@cs.ucla.edu>
57925
57926         * lib/strftime.c (DO_MULTIBYTE): Check for wchar.h, too.
57927
57928 2004-11-09  Bruno Haible  <bruno@clisp.org>
57929
57930         * m4/sockpfaf.m4: New file.
57931
57932 2004-11-05  Bruno Haible  <bruno@clisp.org>
57933
57934         * lib/readlink.c: Include stddef.h, needed for size_t on Woe32.
57935         Reported by Mark D. Baushke <mdb@cvshome.org>.
57936
57937 2004-11-04  Bruno Haible  <bruno@clisp.org>
57938
57939         2004-09-11  Bruno Haible  <bruno@clisp.org>
57940                 * allocsa.valgrind: New file.
57941         2004-02-06  Bruno Haible  <bruno@clisp.org>
57942                 * allocsa.h (sa_alignof): Define differently with HP-UX cc, to
57943                 avoid a bug of this cc on HP-UX 10.20 dealing with enums.
57944                 Reported by Christopher Seip <chris.seip@hp.com>.
57945
57946 2004-11-04  Bruno Haible  <bruno@clisp.org>
57947
57948         * modules/allocsa (Files): Add lib/allocsa.valgrind.
57949         (Makefile.am): Distribute it.
57950
57951 2004-11-03  Paul Eggert  <eggert@cs.ucla.edu>
57952
57953         * lib/xreadlink.c (xreadlink): AIX and HP-UX readlink return -1
57954         with errno == ERANGE if the buffer is too small.
57955         Problem reported by Mark D. Baushke.
57956
57957 2004-11-03  Albert Chin  <china@thewrittenword.com>
57958             Paul Eggert  <eggert@cs.ucla.edu>
57959
57960         * m4/uint32_t.m4 (gl_AC_TYPE_UINT32_T): When determining uint32_t
57961         equivalent, substitute $ac_type for equivalent type rather than
57962         blindly using uint32_t *always* which won't work if uint32_t is not
57963         available.  Define _UINT32_T to work around typedef of uint32_t if
57964         <sys/sched.h>, <pthread.h>, or <semaphore.h> used on Solaris
57965         2.5.1.
57966
57967 2004-11-02  Paul Eggert  <eggert@cs.ucla.edu>
57968
57969         * m4/jm-macros.m4: Sync from coreutils.
57970         (gl_MACROS): Check for mbrlen, for pathchk.
57971         (gl_CHECK_ALL_TYPES): Require AC_TYPE_MBSTATE_T, for pathchk.
57972
57973 2004-11-02  Paul Eggert  <eggert@cs.ucla.edu>
57974
57975         * lib/xreadlink.c (MAXSIZE): New macro.
57976         (xreadlink): Use it instead of SSIZE_MAX.  Ensure initial buffer
57977         size does not exceed MAXSIZE.  Avoid cast.
57978         As suggested by Mark D. Baushke in
57979         <http://lists.gnu.org/archive/html/bug-gnulib/2004-11/msg00009.html>,
57980         if readlink fails with buffer size just under MAXSIZE, try again
57981         with MAXSIZE.
57982
57983 2004-11-02  Paul Eggert  <eggert@cs.ucla.edu>
57984
57985         * config/srclist.txt: Add mktime.c; glibc bought all our changes.
57986
57987 2004-11-02  Derek R. Price  <derek@ximbiot.com>
57988         and  Paul Eggert  <eggert@cs.ucla.edu>
57989
57990         * lib/getdate.y [!TEST]: Include <stdio.h>, since we use sprintf now.
57991         (get_date): Overparenthesize to avoid GCC warning.
57992
57993 2004-11-02  Bruno Haible  <bruno@clisp.org>
57994
57995         * m4/setenv.m4 (gt_FUNC_SETENV): Define VOID_UNSETENV if unsetenv()
57996         returns void.
57997
57998 2004-11-02  Bruno Haible  <bruno@clisp.org>
57999
58000         * lib/setenv.h (unsetenv): Define as a macro if the system's unsetenv()
58001         function returns void.
58002
58003 2004-11-01  Paul Eggert  <eggert@cs.ucla.edu>
58004
58005         * m4/getpass.m4 (gl_PREREQ_GETPASS): Check for declarations of
58006         fflush_unlocked, flockfile, funlockfile, funlockfile,
58007         fputs_unlocked, putc_unlocked.
58008
58009 2004-11-01  Paul Eggert  <eggert@cs.ucla.edu>
58010
58011         * lib/getpass.c (fflush_unlocked, flockfile, funlockfile)
58012         (funlockfile, fputs_unlocked, putc_unlocked): Don't define if
58013         already declared.
58014
58015 2004-10-29  Paul Eggert  <eggert@cs.ucla.edu>
58016
58017         * modules/getdate (Files): Add doc/getdate.texi.
58018         (Depends-on): Add setenv, xalloc.
58019
58020 2004-10-29  Paul Eggert  <eggert@cs.ucla.edu>
58021
58022         * lib/getdate.y: Add support for TZ="foo" within a date string.
58023         Fix some bugs near time_t boundaries.  Reject dates with
58024         out-of-range components, e.g., "Sept 31".
58025         Include <stdlib.h>, "setenv.h", "xalloc.h".
58026         (ISDIGIT_LOCALE): Remove; unused.
58027         Note that the TZ and time functions used here are not reentrant.
58028         (mktime_ok, get_tz): New functions.
58029         (TZBUFSIZE): New constant.
58030         (get_date): Parse leading TZ="foo".  Reject out-of-range components;.
58031         This requires that we sometimes generate our own TZ="XXX..." setting.
58032
58033 2004-10-29  Paul Eggert  <eggert@cs.ucla.edu>
58034
58035         * doc/getdate.texi: New file, from coreutils with modifications for
58036         the new TZ parsing.
58037
58038 2004-10-27  Derek R. Price  <derek@ximbiot.com>
58039
58040         * lib/mktime.c (not_equal_tm): Remove redundant check.
58041
58042 2004-10-24  Paul Eggert  <eggert@cs.ucla.edu>
58043
58044         * modules/regex (lib_SOURCES): Add regex.c.
58045         Reported by James Youngman in
58046         <http://lists.gnu.org/archive/html/bug-gnulib/2004-10/msg00199.html>.
58047
58048 2004-10-24  Paul Eggert  <eggert@cs.ucla.edu>
58049
58050         * lib/getdate.y: Use Bison 1.875 features, and some minor
58051         code cleanups.  This change does not affect semantics.
58052         Don't include <stdlib.h>; no longer needed.
58053         Don't include unlocked-io.h; only the "#if TEST" code uses
58054         stdio, and performance isn't crucial there.
58055         (PC, YYLEX_PARAM, YYPARSE_PARAM): Remove; replaced by
58056         Bison 1.875 features as described below.
58057         All uses of "PC." replaced by "pc->".
58058         (YYSTYPE): Add a forward declaration.
58059         (yylex, yyerror): Use full prototypes in forward decls.
58060         Use "%pure-parser" rather than obsolescent "%pure_parser".
58061         Use %parse-param and %lex-param instead of obsolescent
58062         YYPARSE_PARAM and YYLEX_PARAM.
58063         (meridian_table, month_and_day_table, time_units_table,
58064         relative_time_table, time_zone_table, military_table,
58065         lookup_zone, lookup_word, get_date):
58066         Use NULL instead of 0 where appropriate.
58067         (to_hour): Avoid abort (), to avoid a dependency on
58068         stdlib.h.
58069         (yyerror, yylex): Now accepts parser_control * arg.
58070         (main) [TEST]: Use '\0' rather than 0 for char.
58071
58072 2004-10-22  Paul Eggert  <eggert@cs.ucla.edu>
58073
58074         * m4/getpagesize.m4 (gl_GETPAGESIZE): Check for <sys/param.h>.
58075
58076 2004-10-22  Paul Eggert  <eggert@cs.ucla.edu>
58077
58078         * lib/getpagesize.c (getpagesize): Don't assume <sys/param.h> exists.
58079         It's now the caller's responsibility to handle the case where
58080         !HAVE_GETPAGESIZE && !defined getpagesize.
58081
58082         * lib/mktime.c (leapyear): Arg is long int, not int.
58083
58084 2004-10-18  Paul Eggert  <eggert@cs.ucla.edu>
58085
58086         * lib/argp-fs-xinl.c, argp-xinl.c: Update from glibc.
58087
58088 2004-10-17  Paul Eggert  <eggert@cs.ucla.edu>
58089
58090         * gnulib-tool (func_emit_lib_Makefile_am): Fix typo: a $ was
58091         missing.  Problem reported by James Youngman.
58092
58093 2004-10-16  Simon Josefsson  <jas@extundo.com>
58094
58095         * gnulib-tool: Fix comments.  Fix parse problem.
58096         (func_emit_lib_Makefile_am): Don't hard code a in libgl_a_SOURCES.
58097
58098 2004-10-15  Paul Eggert  <eggert@cs.ucla.edu>
58099
58100         * m4/getopt.m4 (gl_GETOPT): Detect and reject the incompatible BSD
58101         implementation of getopt_long.  Problem reported by Alexander Taler in:
58102         http://lists.gnu.org/archive/html/bug-gnulib/2004-10/msg00103.html
58103
58104 2004-10-15  Bruno Haible  <bruno@clisp.org>
58105
58106         * gnulib-tool: Untabify. Initialize supplied_libname.
58107         (func_usage): More homogenous output.
58108         (func_modules_transitive_closure, func_modules_to_filelist,
58109         func_emit_lib_Makefile_am): New functions.
58110         (func_import): New function, extracted from big case statement. Use
58111         func_get_license, func_modules_transitive_closure,
58112         func_modules_to_filelist, func_emit_lib_Makefile_am. Initialize
58113         opt_lgpl. Don't use test -a, as it's not portable.
58114         (func_create_testdir): Use func_modules_transitive_closure,
58115         func_modules_to_filelist, func_emit_lib_Makefile_am.
58116
58117 2004-10-15  Bruno Haible  <bruno@clisp.org>
58118
58119         * gnulib-tool (func_import): Let gl_INIT define LTALLOCA when needed.
58120
58121 2004-10-15  Bruno Haible  <bruno@clisp.org>
58122
58123         * gnulib-tool (func_emit_lib_Makefile_am): Add markers to separate
58124         the portions belonging to each module.
58125         Suggested by Derek Robert Price <derek@ximbiot.com>.
58126
58127 2004-10-12  Simon Josefsson  <jas@extundo.com>
58128
58129         * lib/getpass.c (fflush_unlocked, flockfile, funlockfile)
58130         (fputs_unlocked, putc_unlocked) [!_LIBCS && !USE_UNLOCKED_IO]: Map
58131         to real functions.
58132
58133 2004-10-11  Yoann Vandoorselaere  <yoann@prelude-ids.org>
58134
58135         * modules/vsnprintf: New file.
58136
58137 2004-10-11  Yoann Vandoorselaere  <yoann@prelude-ids.org>
58138
58139         * m4/vsnprintf.m4: New file.
58140
58141 2004-10-11  Yoann Vandoorselaere  <yoann@prelude-ids.org>
58142
58143         * lib/vsnprintf.h: New file.
58144         * lib/vsnprintf.c: New file.
58145
58146 2004-10-11  Bruno Haible  <bruno@clisp.org>
58147
58148         * MODULES.html.sh (Support for systems lacking ISO C 99): Add
58149         vsnprintf.
58150
58151 2004-10-10  Paul Eggert  <eggert@cs.ucla.edu>
58152
58153         * config/srclistvars.sh: Add GNUSTANDARDS (for eggert only).
58154
58155 2004-10-07  Bruno Haible  <bruno@clisp.org>
58156
58157         * lib/snprintf.c (snprintf): Avoid a memory allocation if the result
58158         fits into the provided buffer.
58159
58160 2004-10-06  Paul Eggert  <eggert@cs.ucla.edu>
58161
58162         * lib/diacrit.c, diacrit.h: Add GPL notice.
58163
58164         * lib/atanl.c, logl.c: Add GPL notice, to match glibc's added LGPL
58165         notice.
58166         * lib/atanl.c (atanl): Keep the code as similar to glibc as possible.
58167         * lib/logl.c (logl): Keep the code as similar to glibc as possible.
58168         This avoids a potential constant-folding bug.
58169
58170 2004-10-05  Bruno Haible  <bruno@clisp.org>
58171
58172         * m4/strsep.m4 (gl_FUNC_STRSEP): Require AC_GNU_SOURCE. Don't check
58173         for the declaration of strsep.
58174
58175 2004-10-05  Bruno Haible  <bruno@clisp.org>
58176
58177         * lib/strsep.h: Don't declare strsep() if HAVE_STRSEP.
58178
58179 2004-10-04  Simon Josefsson  <jas@extundo.com>
58180
58181         * modules/memmem: New file.
58182         * tests/test-memmem.c: New file.
58183         * MODULES.html.sh (Extra functions based on ANSI C 89): Add memmem.
58184
58185 2004-10-04  Simon Josefsson  <jas@extundo.com>
58186
58187         * m4/memmem.m4: New file.
58188
58189 2004-10-04  Simon Josefsson  <jas@extundo.com>
58190
58191         * lib/memmem.h: New file.
58192         * lib/memmem.c: New file, taken from glibc.
58193
58194 2004-10-04  Simon Josefsson  <jas@extundo.com>
58195
58196         * lib/error.c, md5.c, regex.c: Use '#if USE_UNLOCKED_IO' instead of
58197         '#ifdef USE_UNLOCKED_IO'.
58198
58199 2004-10-04  Simon Josefsson  <jas@extundo.com>
58200
58201         * config/srclist.txt: Add memmem from glibc.
58202
58203 2004-10-04  Paul Eggert  <eggert@cs.ucla.edu>
58204
58205         * modules/xalloc (Files, Makefile.am): Remove xstrdup.c.
58206
58207         * modules/argmatch, modules/argp, modules/closeout, modules/error,
58208         modules/exclude, modules/getdate, modules/getline,
58209         modules/getndelim2, modules/getpass, modules/getpass-gnu,
58210         modules/getusershell, modules/linebuffer, modules/md5,
58211         modules/mountlist, modules/posixtm, modules/readtokens,
58212         modules/readutmp, modules/regex, modules/sha1,
58213         modules/version-etc, modules/yesno:
58214         Remove dependency on unlocked-io.
58215
58216 2004-10-04  Paul Eggert  <eggert@cs.ucla.edu>
58217
58218         * m4/xalloc.m4 (gl_PREREQ_XSTRDUP): Remove.  All uses removed.
58219
58220         * m4/unlocked-io.m4: Add copyright notice.
58221         (gl_FUNC_GLIBC_UNLOCKED_IO): Define USE_UNLOCKED_IO.
58222
58223 2004-10-04  Paul Eggert  <eggert@cs.ucla.edu>
58224
58225         * lib/xalloc.h (xmemdup): Renamed from xclone.  All uses changed.
58226         * lib/xmalloc.c (xmemdup): Likewise.
58227         * lib/xalloc.h (CCLONE, CLONE, NEW, XCALLOC, XMALLOC, XREALLOC,
58228         XFREE): Remove these long-obsolescent macros.
58229         * lib/xmalloc.c (xstrdup): Implementation moved here from xstrdup.c
58230         * lib/xstrdup.c: Remove.
58231
58232         * lib/regex.c (re_comp): Cast gettext return value to char *,
58233         Problem reported by Martin Neitzel via Mark D. Baushke.
58234
58235 2004-10-04  Paul Eggert  <eggert@cs.ucla.edu>
58236
58237         * lib/argmatch.c, closeout.c, error.c, exclude.c, getdate.y,
58238         getndelim2.c, getpass.c, getusershell.c, linebuffer.c,
58239         md5.c, mountlist.c, posixtm.c, readtokens.c, readutmp.c,
58240         regex.c, sha1.c, version-etc.c, yesno.c:
58241         Include "unlocked-io.h" only if USE_UNLOCKED_IO.
58242         * lib/unlocked-io.h: Don't worry about USE_UNLOCKED_IO; that's now
58243         the includer's responsibility.
58244
58245         Sync from coreutils.
58246
58247         * lib/modechange.c (mode_compile): Don't decrement a pointer that
58248         points to the start of a string, as the C Standard says the
58249         resulting behavior is undefined.
58250
58251         * lib/backupfile.h (enum backuptype): Rename none -> no_backups,
58252         simple -> simple_backups, numbered_existing ->
58253         numbered_existing_backups, numbered -> numbered_backups
58254         to avoid shadowing problems.  All uses changed.
58255         * lib/argmatch.c (enum backuptype) [defined TEST]: Likewise.
58256         * lib/backupfile.c (check_extension, numbered_backup):
58257         Rename locals to avoid shadowing 'basename'.
58258         * lib/backupfile.h (VALID_BACKUP_TYPE): Don't evaluate arg more than
58259         once.
58260
58261         * lib/.cppi-disable: Add getopt_.h, getopt_int.h.
58262         * lib/.cvsignore: Add getopt.h.
58263
58264 2004-10-04  Bruno Haible  <bruno@clisp.org>
58265
58266         * modules/README: New file.
58267         * gnulib-tool (func_all_modules, func_verify_module): modules/README is
58268         not a module.
58269
58270 2004-10-02  Jim Meyering  <jim@meyering.net>
58271
58272         * lib/dirfd.h, getpagesize.h: Add copyright notice.
58273
58274 2004-10-01  Yoann Vandoorselaere  <yoann@prelude-ids.org>
58275
58276         * modules/strsep: New file.
58277
58278 2004-10-01  Yoann Vandoorselaere  <yoann@prelude-ids.org>
58279
58280         * m4/strsep.m4: New file.
58281
58282 2004-10-01  Yoann Vandoorselaere  <yoann@prelude-ids.org>
58283
58284         * lib/strsep.h: New file.
58285         * lib/strsep.c: New file.
58286
58287 2004-10-01  Simon Josefsson  <jas@extundo.com>
58288
58289         * lib/snprintf.c (snprintf): Handle size==0.
58290
58291 2004-10-01  Simon Josefsson  <jas@extundo.com>
58292             Bruno Haible  <bruno@clisp.org>
58293
58294         * lib/snprintf.c: Include <stdarg.h>, <stdlib.h>, <string.h>.
58295         (snprintf): Declare 'args'.
58296
58297 2004-10-01  Paul Eggert  <eggert@cs.ucla.edu>
58298
58299         * lib/snprintf.c: Remove comments as to why each header is needed.
58300
58301 2004-10-01  Bruno Haible  <bruno@clisp.org>
58302
58303         * MODULES.html.sh: Add strsep.
58304
58305 2004-09-30  Simon Josefsson  <jas@extundo.com>
58306
58307         * modules/snprintf: New file.
58308
58309 2004-09-30  Simon Josefsson  <jas@extundo.com>
58310
58311         * m4/snprintf.m4: New file.
58312
58313 2004-09-30  Simon Josefsson  <jas@extundo.com>
58314
58315         * lib/snprintf.h, lib/snprintf.c: New files.
58316
58317 2004-09-30  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
58318
58319         * lib/argp-help.c (canon_doc_option): Fixed coredump if *name==NULL
58320         (hol_entry_help): Never translate an empty string.
58321         Do not translate option tag (opt->name) if OPTION_NO_TRANS is set
58322         * lib/argp.h (OPTION_NO_TRANS): New option.
58323
58324 2004-09-30  Paul Eggert  <eggert@cs.ucla.edu>
58325
58326         * modules/argp (Maintainer): Replace Simon Josefsson
58327         by Sergey Poznyakoff.
58328
58329 2004-09-30  Paul Eggert  <eggert@cs.ucla.edu>
58330
58331         * config/srclist.txt: Comment-out argp/argp.h, until we get the argp
58332         changes merged back into glibc.
58333
58334 2004-09-30  Paul Eggert  <eggert@cs.ucla.edu>
58335
58336         * MODULES.html.sh (Support for systems lacking ISO C 99): Add snprintf.
58337
58338 2004-09-29  Oskar Liljeblad  <oskar@osk.mine.nu>
58339
58340         * lib/xvasprintf.c: Include xalloc.h.
58341         (xvasprintf): Use xalloc_die, not xmalloc_die.
58342
58343 2004-09-29  Bruno Haible  <bruno@clisp.org>
58344
58345         * modules/alloca-opt: New file, derived from modules/alloca.
58346         * modules/allocsa: Depend on alloca-opt instead of alloca.
58347         * modules/setenv: Likewise.
58348         * modules/vasnprintf: Likewise.
58349         * MODULES.html.sh: Add alloca-opt.
58350
58351 2004-09-28  Simon Josefsson  <jas@extundo.com>
58352
58353         * gnulib-tool: New parameter --lgpl, to asseert that modules are
58354         LGPL, and to replace license template from GPL to LGPL.
58355
58356 2004-09-28  Paul Eggert  <eggert@cs.ucla.edu>
58357
58358         * modules/dummy: Change license to LGPL.
58359
58360 2004-09-28  Paul Eggert  <eggert@cs.ucla.edu>
58361
58362         * lib/dummy.c: Change copyright notice to FSF, and license to GPL.
58363
58364 2004-09-24  Simon Josefsson  <jas@extundo.com>
58365
58366         * modules/minmax (License): Change from GPL to LGPL.
58367
58368 2004-09-23  Simon Josefsson  <jas@extundo.com>
58369
58370         * gnulib-tool (--import): Typo.
58371
58372 2004-09-23  Simon Josefsson  <jas@extundo.com>
58373
58374         * gnulib-tool (--import): Make sure *.m4 end up in m4/ by default.
58375
58376 2004-09-22  Bruno Haible  <bruno@clisp.org>
58377
58378         * modules/*: Add 'License' field.
58379         * gnulib-tool: Accept --extract-license option.
58380         (func_get_license): New function.
58381
58382 2004-09-21  Bruno Haible  <bruno@clisp.org>
58383
58384         * modules/vasnprintf (Files): Add m4/stdint_h.m4, m4/inttypes_h.m4.
58385         Reported by Simon Josefsson.
58386
58387 2004-09-20  Paul Eggert  <eggert@cs.ucla.edu>
58388
58389         * modules/inttostr (Files): Add m4/longlong.m4, since it uses
58390         gl_AC_TYPE_LONG_LONG.
58391
58392 2004-09-20  Paul Eggert  <eggert@cs.ucla.edu>
58393
58394         * config/srclist.txt: Add getsubopt.c, since libc bought our changes.
58395
58396 2004-09-18  Simon Josefsson  <jas@extundo.com>
58397         and  Paul Eggert  <eggert@cs.ucla.edu>
58398
58399         * gnulib-tool: Replace various ad-hoc automake/autoconf/aclocal
58400         calls with autoreconf.  Define GL_LIB.
58401
58402 2004-09-14  Karl Berry  <karl@gnu.org>
58403
58404         * config/srclist.txt: unsync setenv.c, sigh.
58405
58406 2004-09-13  Paul Eggert  <eggert@cs.ucla.edu>
58407
58408         * lib/argp-pvh.c (argp_program_version_hook): Provide initial value.
58409         Problem reported by Bruno Haible in:
58410         http://lists.gnu.org/archive/html/bug-tar/2004-09/msg00023.html
58411
58412 2004-09-13  Paul Eggert  <eggert@cs.ucla.edu>
58413
58414         * config/srclist.txt: Comment out argp-pvh.c.
58415
58416 2004-09-11  Paul Eggert  <eggert@cs.ucla.edu>
58417
58418         * lib/mempcpy.h: Wrap the entire include file inside #ifndef mempcpy,
58419         in case some system header has #define'd it.  Problem reported by
58420         Soeren D. Schulze in
58421         <http://lists.gnu.org/archive/html/bug-gnulib/2004-09/msg00017.html>.
58422
58423 2004-09-09  Karl Berry  <karl@gnu.org>
58424
58425         * regex.[ch]: delete from the root.  These were supposed to be
58426                 synced with emacs cvs, but this has not happened for about
58427                 a year, and anyway nothing else uses emacs regex.[ch].
58428                 bug-gnulib mail from Jeff Bailey, 9 Sep 2004 15:49:24 -0700.
58429                 lib/regex[.ch] is untouched.
58430
58431 2004-09-09  Bruno Haible  <bruno@clisp.org>
58432
58433         * modules/vasnprintf (Files): Add m4/eoverflow.m4.
58434
58435 2004-09-09  Bruno Haible  <bruno@clisp.org>
58436
58437         * m4/eoverflow.m4: New file, taken from GNU libiconv eilseq.m4 with
58438         modifications.
58439         * m4/vasnprintf.m4 (gl_FUNC_VASNPRINTF): Require gl_EOVERFLOW.
58440
58441 2004-09-08  Oskar Liljeblad  <oskar@osk.mine.nu>
58442
58443         * modules/xvasprintf: New file.
58444         * MODULES.html.sh (Extra functions based on ANSI C 89): Add vasprintf.
58445
58446 2004-09-08  Oskar Liljeblad  <oskar@osk.mine.nu>
58447
58448         * lib/xvasprintf.h: New file.
58449         * lib/xvasprintf.c: New file.
58450         * lib/xasprintf.c: New file.
58451
58452 2004-09-08  Bruno Haible  <bruno@clisp.org>
58453
58454         * m4/stdint.m4: New file, taken from GNU clisp with modifications.
58455
58456 2004-09-08  Bruno Haible  <bruno@clisp.org>
58457
58458         * lib/vasnprintf.c (VASNPRINTF): Signal EOVERFLOW if the resulting
58459         length is > INT_MAX.
58460         * lib/vasprintf.c (vasprintf): Don't test for length > INT_MAX any
58461         more.
58462
58463 2004-09-08  Bruno Haible  <bruno@clisp.org>
58464
58465         * lib/stdint_.h: New file, taken from GNU clisp.
58466
58467 2004-09-08  Bruno Haible  <bruno@clisp.org>
58468             Oskar Liljeblad  <oskar@osk.mine.nu>
58469
58470         * modules/stdint: New file.
58471         * MODULES.html.sh (Support for systems lacking ISO C 99): Add stdint.
58472
58473 2004-08-19  Paul Eggert  <eggert@cs.ucla.edu>
58474
58475         Import from coreutils.
58476         * lib/userspec.c: Don't use <alloca.h>, so that we don't use alloca on
58477         strings on unbounded length.  alloca's performance benefits aren't
58478         that important here.
58479         (V_STRDUP): Remove.
58480         (parse_with_separator): New function, with most of the internals
58481         of the old parse_user_spec.  Allow user to omit both user and group,
58482         for compatibility with FreeBSD.
58483         Clone only the user name, not the entire spec.
58484         Do not set *uid, *gid unless entirely successful.
58485         Avoid memory leak in some failing cases.
58486         Fix regression for USER.GROUP reported by Dmitry V. Levin in
58487         <http://lists.gnu.org/archive/html/bug-coreutils/2004-08/msg00102.html>
58488         (parse_user_spec): Rewrite to use parse_with_separator.
58489
58490 2004-08-19  Paul Eggert  <eggert@cs.ucla.edu>
58491
58492         * modules/userspec: Don't depend on alloca.
58493
58494 2004-08-19  Paul Eggert  <eggert@cs.ucla.edu>
58495
58496         * m4/userspec.m4 (gl_USERSPEC): Don't require AC_FUNC_ALLOCA.
58497
58498 2004-08-17  Paul Eggert  <eggert@cs.ucla.edu>
58499
58500         * MODULES.html.sh: Add xalloc-die, c-strtod, c-strtold, raise,
58501         readtokens0, getcwd, fcntl-safer, canonicalize, cycle-check,
58502         utimecmp, utimens, xnanosleep.  Rename sha to sha1.
58503
58504 2004-08-16  Simon Josefsson  <jas@extundo.com>
58505
58506         * gnulib-tool: Use sed instead of autoconf --trace, inspired by
58507         libtoolize behaviour by "Gary V. Vaughan" <gary@gnu.org>.
58508         Add --dry-run for --import.
58509         Let user provided command line parameters override configure.ac
58510         settings.
58511
58512 2004-08-12  Simon Josefsson  <jas@extundo.com>
58513
58514         * m4/getopt.m4 (gl_GETOPT_SUBSTITUTE): New macro,
58515         as discussed with Paul Eggert in threads rooted at
58516         <http://lists.gnu.org/archive/html/bug-gnulib/2004-06/msg00039.html>
58517         and
58518         <http://lists.gnu.org/archive/html/bug-gnulib/2004-07/msg00001.html>.
58519         Before, the test was empty, and relied on ELIDE_CODE in source
58520         code.)
58521         (gl_PREREQ_GETOPT): New macro.
58522         (gl_GETOPT): Use them.
58523
58524 2004-08-12  Simon Josefsson  <jas@extundo.com>
58525
58526         * lib/getopt.c, getopt1.c: Remove ELIDE_CODE hack.
58527         * lib/getopt_.h: Renamed from getopt.h.
58528
58529 2004-08-12  Simon Josefsson  <jas@extundo.com>
58530
58531         * gnulib-tool: Add --source-base, --m4-base, --libtool options.
58532         Change default library name from libfoo to libgnu.
58533         Now, if you have a configure.ac that says:
58534                 gl_SOURCE_BASE(gl)
58535                 gl_M4_BASE(gl/m4)
58536                 gl_MODULES(error getopt etcetera)
58537                 gl_INIT
58538         you can import all you need by running:
58539                 ../gnulib/gnulib-tool --import
58540
58541         * modules/getopt (Files): Rename getopt.h to getopt_.h.
58542         (Makefile.am): Rewrite, use logic from argz.
58543         (Include): Use <getopt.h> instead of "getopt.h".
58544
58545 2004-08-12  Paul Eggert  <eggert@cs.ucla.edu>
58546
58547         * modules/argp (Files): Add m4/unlocked-io.m4.
58548         (Depends-on): Add extensions.
58549
58550 2004-08-12  Paul Eggert  <eggert@cs.ucla.edu>
58551
58552         * m4/argp.m4 (gl_ARGP): Do not check for argp.h or argp_parse; nobody
58553         uses HAVE_ARGP_H or HAVE_ARGP_PARSE.
58554         Require gl_FUNC_GLIBC_UNLOCKED_IO, gl_USE_SYSTEM_EXTENSIONS.
58555         Check for program_invocation_name, program_invocation_short_name,
58556         flockfile, funlockfile, features.h, _getopt_long_only_r.
58557
58558 2004-08-12  Paul Eggert  <eggert@cs.ucla.edu>
58559
58560         * lib/argp-help.c, argp-parse.c: Use "gettext.h" instead of
58561         its complicated substitute.
58562         * lib/argp-help.c: Include <errno.h>, for program_invocation_short_name
58563         and program_invocation_name.
58564         (__argp_basename) [!_LIBC]: Remove; the only use was
58565         replaced by its body.
58566         (__argp_short_program_name): Change condition from
58567         !defined __argp_short_program_name to
58568         ! (defined _LIBC || HAVE_DECL_PROGRAM_INVOCATION_SHORT_NAME),
58569         to match argp-namefrob.h.
58570         (__argp_failure): Don't assume strerror_r returns char *.
58571         * lib/argp-parse.c (N_): Define unconditionally.
58572         (argp_default_options): Fill out initializers with 0 to avoid
58573         gcc warnings.
58574
58575 2004-08-12  Paul Eggert  <eggert@cs.ucla.edu>
58576
58577         * config/srclist.txt: Remove getopt.c, getopt.h (renamed to getopt_.h),
58578         getopt1.c.
58579
58580 2004-08-11  Paul Eggert  <eggert@cs.ucla.edu>
58581
58582         Merge from coreutils.
58583
58584         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Check for wmemchr and wmemcpy.
58585
58586         * m4/obstack.m4 (gl_PREREQ_OBSTACK): Require
58587         gl_AC_HEADER_INTTYPES_H, gl_AC_HEADER_STDINT_H, gl_AC_TYPE_UINTMAX_T.
58588
58589 2004-08-11  Paul Eggert  <eggert@cs.ucla.edu>
58590
58591         Merge from coreutils.
58592
58593         * lib/fnmatch.c (WIDE_CHAR_SUPPORT): Don't set to 1 if missing
58594         wmemchr or wmemcpy.  Problem reported by Robert Dahlem
58595         for Reliant Unix 5.43.
58596
58597         * lib/obstack.c: Include <inttypes.h> and <stdint.h> if available.
58598         (union fooround): Use uintmax_t, not long int.
58599         The rest is a merge from libc:
58600         [defined _LIBC]: Include <shlib-compat.h>.
58601         (_obstack) [defined _LIBC]: Remove after 2.3.4.
58602
58603         * lib/settime.c (settime): Recode to avoid warning with
58604         Sun Forte C 6U2.
58605
58606         * lib/strverscmp.c: Convert to UTF-8.
58607
58608 2004-08-11  Paul Eggert  <eggert@cs.ucla.edu>
58609
58610         * modules/obstack (Files): Add m4/inttypes_h.m4, m4/stdint_h.m4,
58611         m4/uintmax_t.m4.
58612
58613 2004-08-09  Paul Eggert  <eggert@cs.ucla.edu>
58614
58615         * modules/xalloc-die: New file.
58616         * modules/xalloc: Remove dependencies on error, gettext, exitfail.
58617
58618         * modules/md5 (Files): Add m4/uint32_t.m4.
58619         * modules/sha1: Renamed from modules/sha.
58620         (Files):
58621         Rename lib/sha.h to lib/sha1.h.
58622         Rename lib/sha.c to lib/sha1.c.
58623         Rename m4/sha.m4 to m4/sha1.m4.
58624         (lib_SOURCES): Likewise.
58625         (configure.ac): Rename gl_SHA to gl_SHA1.
58626         (Include): sha.h -> sha1.h.
58627
58628 2004-08-09  Paul Eggert  <eggert@cs.ucla.edu>
58629
58630         * m4/uint32_t.m4, m4/uintptr_t.m4: New files.
58631         * m4/sha1.m4: Renamed from sha.m4.
58632         (gl_SHA1): Renamed from gl_SHA.  All uses changed.
58633
58634 2004-08-09  Paul Eggert  <eggert@cs.ucla.edu>
58635
58636         * lib/obstack.h (obstack_empty_p):
58637         Don't assume that chunk->contents is suitably aligned.
58638         * lib/obstack.c (_obstack_begin, _obstack_begin_1, _obstack_newchunk):
58639         Likewise. Problem reported by Benno in
58640         <http://sources.redhat.com/ml/libc-alpha/2004-08/msg00055.html>.
58641
58642         * lib/chown.c (rpl_chown): Work even if the file is writeable but not
58643         readable.  This could be improved further but it'd take some work.
58644
58645 2004-08-08  Simon Josefsson  <jas@extundo.com>
58646
58647         * modules/xgethostname (Depends-on): Remove exit and error (not
58648         used).
58649
58650         * modules/getpass-gnu: Add getpass.h.
58651         (Depends-on): Add stdbool.
58652         * modules/getpass: Add getpass.h.
58653
58654 2004-08-08  Simon Josefsson  <jas@extundo.com>
58655
58656         * m4/getpass.m4 (gl_FUNC_GETPASS, gl_FUNC_GETPASS_GNU):
58657         Check getpass declaration.
58658
58659 2004-08-08  Simon Josefsson  <jas@extundo.com>
58660
58661         * lib/xgethostname.c: Don't include error.h (not used).
58662
58663         * lib/getpass.h: Add.
58664         * lib/getpass.c: Include getpass.h first.
58665
58666 2004-08-08  Paul Eggert  <eggert@cs.ucla.edu>
58667
58668         * lib/xalloc-die.c: New file.
58669         * lib/xalloc.h (xalloc_fail_func, xalloc_msg_memory_exhausted): Remove.
58670         All uses removed.
58671         * lib/xmalloc.c (xalloc_fail_func, xalloc_msg_memory_exhausted):
58672         Likewise. Move inclusions of gettext.h, error.h, exitfail.h to
58673         xalloc-die.c.
58674         (_, N_, xalloc_die): Move to xalloc-die.c.
58675         * lib/userspec.c (parse_user_spaec): Use xstrdup rather than strdup,
58676         so that we needn't mess with xalloc_msg_memory_exhausted.
58677
58678         * lib/sha1.h: Renamed from sha.h.
58679         (SHA1_H): Renamed from _SHA_H.
58680         (sha1_ctx): Renamed from sha_ctx.
58681         (sha1_init_ctx): Renamed from sha_init_ctx.
58682         (sha1_process_block): Renamed from sha_process_block.
58683         (sha1_process_bytes): Renamed from sha_process_bytes.
58684         (sha1_finish_ctx): Renamed from sha_finish_ctx.
58685         (sha1_read_ctx): Renamed from sha_read_ctx.
58686         (sha1_stream): Renamed from sha_stream.
58687         (sha1_buffer): Renamed from sha_buffer.
58688         * lib/sha1.c: Likewise; renamed from sha.c.
58689         Do not include <sys/types.h>.
58690         Include <stddef.h> rather than <stdlib.h>.
58691
58692 2004-08-08  Bruno Haible  <bruno@clisp.org>
58693
58694         * lib/pathname.h (FILE_SYSTEM_PREFIX_LEN): Renamed from
58695         FILESYSTEM_PREFIX_LEN.
58696         * lib/progreloc.c: Likewise.
58697         * lib/concatpath.c (concatenated_pathname): Use FILE_SYSTEM_PREFIX_LEN.
58698
58699 2004-08-06  Simon Josefsson  <jas@extundo.com>
58700
58701         * modules/progname (Depends-on): Don't depend on stdbool.
58702
58703 2004-08-06  Simon Josefsson  <jas@extundo.com>
58704
58705         * modules/getsubopt: New file.
58706         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
58707         getsubopt.
58708
58709 2004-08-06  Paul Eggert  <eggert@cs.ucla.edu>
58710
58711         More merge from coreutils.
58712
58713         * m4/utimens.m4, m4/utimecmp.m4: New files.
58714         * m4/backupfile.m4, euidacces.m4, acl.m4, afs.m4, calloc.m4, dirfd.m4,
58715         fsusage.m4, jm-macros.m4, ls-mntd-fs.m4, md5.m4, mountlist.m4,
58716         prereq.m4, sha.m4: Import changes from coreutils.
58717
58718 2004-08-06  Paul Eggert  <eggert@cs.ucla.edu>
58719
58720         More merge from coreutils.
58721         * modules/raise, modules/readtokens0, modules/utimens:
58722         * modules/utimecmp, module/xnanosleep: New files.
58723         * modules/strftime: Add lib/strftime.h.
58724         Change include from <time.h> to "strftime.h".
58725         * modules/yesno: Add lib/yesno.h.
58726         * modules/backupfile: Remove lib/addext.c.
58727         * modules/euidaccess: Add stat-macros.h.
58728         * modules/canonicalize, modules/euidaccess,
58729         modules/filemode, modules/lchown, modules/makepath,
58730         modules/rmdir, modules/stat: Likewise.
58731
58732 2004-08-06  Paul Eggert  <eggert@cs.ucla.edu>
58733
58734         Merge from tar.
58735         * lib/argp-help.c (make_hol, hol_append): Don't assume that
58736         SIZE_MAX is a valid preprocessor constant.
58737         (__argp_basename): Change from "#ifndef _LIBC"
58738         to "#ifndef __argp_short_program_name", so that
58739         we don't compile these functions for tar.
58740
58741         More merges from coreutils.
58742         * lib/raise.c, lib/readtokens0.h, lib/readtokens0.c, lib/strftime.h:
58743         * lib/utimens.h, lib/utimens.c, lib/utimecmp.h, lib/utimecmp.c:
58744         * lib/xnanosleep.h, lib/xnanosleep.c, lib/yesno.h: New files.
58745         * lib/addext.c: Remove; no longer needed.
58746         * lib/yesno.c, lib/argmatch.h, lib/argmatch.c, lib/backupfile.h,
58747         lib/backupfile.c, lib/euidaccess.c, lib/filemode.c, lib/closeout.c,
58748         lib/dup2.c, lib/exclude.c, lib/fileblocks.c, lib/filemode.c,
58749         lib/fnmatch.c, lib/fnmtahc_loop.c, lib/fopen-safer.c, lib/fsusage.c,
58750         lib/fsusage.h, lib/ftruncate.c, lib/full-write.c, lib/getdate.y,
58751         lib/getloadavg.c, lib/getugroups.c, lib/hard-locale.c,
58752         lib/hard-locale.h, lib/hash.c, lib/human.c, lib/human.h, lib/lchown.c,
58753         lib/lchown.h, lib/makepath.c, lib/makepath.h, lib/md5.c, lib/md5.h,
58754         lib/memchr.c, lib/memcoll.c, lib/memrchr.c, lib/modechange.c,
58755         lib/modechange.h, lib/mountlist.c, lib/mountlist.h, lib/nanosleep.c,
58756         lib/posixtm.c, lib/putenv.c, quotearg.c, lib/quotearg.h,
58757         lib/readtokens.c, lib/readutmp.c, lib/readutmp.h, lib/rmdir.c,
58758         lib/safe-read.c, lib/save-cwd.c, lib/savedir.c, lib/setenv.c,
58759         lib/sig2str.c, lib/stat.c, lib/strtoimax.c, lib/strverscmp.c,
58760         lib/userspec.c, lib/utime.c, lib/version-etc.c., lib/xgethostname.c,
58761         lib/xmemcoll.c, lib/xreadlink.c, lib/xstrtod.c, lib/xstrtod.h,
58762         lib/xstrtoimax.c, lib/xstrtol.c, lib/xstrtol.h, lib/xstrtoumax.c:
58763         Import changes from coreutils.
58764
58765 2004-08-05  Simon Josefsson  <jas@extundo.com>
58766
58767         * m4/strdup.m4: Always run gl_PREREQ_STRDUP, since strdup.h need it.
58768
58769 2004-08-05  Simon Josefsson  <jas@extundo.com>
58770
58771         * m4/getsubopt.m4: New file.
58772
58773 2004-08-05  Paul Eggert  <eggert@cs.ucla.edu>
58774
58775         Merge from coreutils.
58776
58777         * m4/c-strtod.m4, m4/canonicalize.m4, m4/fcntl-safer.m4:
58778         * m4/getcwd-path-max.m4: New files.
58779
58780         * m4/dos.m4 (gl_AC_DOS): filesystem -> file system renaming.
58781         FILESYSTEM_PREFIX_LEN ->
58782         FILE_SYSTEM_PREFIX_LEN.
58783         FILESYSTEM_ACCEPTS_DRIVE_LETTER_PREFIX ->
58784         FILE_SYSTEM_ACCEPTS_DRIVE_LETTER_PREFIX.
58785         FILESYSTEM_BACKSLASH_IS_FILE_NAME_SEPARATOR ->
58786         FILE_SYSTEM_BACKSLASH_IS_FILE_NAME_SEPARATOR.
58787
58788         * m4/path-concat.m4 (gl_PATH_CONCAT): Don't require gl_AC_DOS, the
58789         prerequisite modules now handle the DOS stuff.
58790         Don't check for unistd.h.
58791
58792 2004-08-05  Paul Eggert  <eggert@cs.ucla.edu>
58793
58794         Merge from coreutils.
58795
58796         * lib/.gdb-history: Remove; this doesn't belong here.
58797
58798         * lib/c-strtod.c, lib/c-strtod.h, lib/c-strtold.c, lib/cycle-check.c:
58799         * lib/cycle-check.h, lib/dev-ino.h, lib/canonicalize.h:
58800         * lib/canonicalize.c, lib/fcntl-safer.h, lib/fcntl-safer.c:
58801         * lib/getcwd.c: New files.
58802
58803         * lib/dirname.h: Include <stdbool.h>.
58804         (FILE_SYSTEM_PREFIX_LEN): Renamed from FILESYSTEM_PREFIX_LEN,
58805         for consistency with POSIX terminology.  All uses changed.
58806         (IS_ABSOLUTE_FILE_NAME, IS_RELATIVE_FILE_NAME): New macros.
58807         (strip_trailing_slashes): Use bool for booleans.
58808         * lib/stripslash.c (strip_trailing_slashes): Likewise.
58809
58810         * lib/error.c: Work around bug in OpenBSD 3.4 sterror_r: it
58811         sometimes returns a positive errno value even when it succeeds.
58812         (print_errno_message) [!LIBC]: Fall back on strerror if
58813         __strerror_r fails.
58814
58815         * lib/path-concat.c (mempcpy): Don't define if a system header defines
58816         it. Don't include stdio.h, stdlib.h, unistd.h, strdup.h.
58817         (longest_relative_suffix): New function.
58818         (path_concat): Use it.  Assume first argument is not NULL.
58819         Port to DOS.  Omit redundant separators.
58820         Report an error instead of returning NULL.
58821         Use mempcpy instead of memcpy.
58822         (xpath_concat): Remove: not declared or used.
58823
58824         * lib/same.h: Include <stdbool.h>
58825         (same_name): Return bool, not int.
58826         * lib/same.c (same_name): Likewise.
58827         (errno): Don't declare; we assume C89 or better now.
58828
58829         * lib/stat-macros (S_ISCTG, S_ISOFD, S_ISOFL): New macros,
58830         if not already defined.
58831
58832         * lib/xgetcwd.c (errno): Don't declare; we assume C89 or better now.
58833         * lib/dup-safer.c (errno): Likewise.
58834
58835 2004-08-05  Paul Eggert  <eggert@cs.ucla.edu>
58836
58837         Merge from coreutils.
58838         * modules/c-strtod, modules/c-strtold, modules/canonicalize:
58839         * modules/cycle-check, modules/fcntl-safer, modules/getcwd: New files.
58840         * modules/path-concat: Don't depend on strdup.
58841
58842 2004-08-03  Simon Josefsson  <jas@extundo.com>
58843
58844         * lib/strdup.h: Only use HAVE_DECL_STRDUP if defined.
58845         * lib/progname.h: Don't include stdbool.h.
58846
58847 2004-08-03  Paul Eggert  <eggert@cs.ucla.edu>
58848
58849         * modules/fatal: Remove, as the "fatal" module wasn't used or working.
58850         * MODULES.html.sh (func_all_modules): Remove fatal.
58851
58852 2004-08-03  Paul Eggert  <eggert@cs.ucla.edu>
58853
58854         * m4/fatal.m4: Remove, as the "fatal" module wasn't used or working.
58855
58856 2004-08-03  Paul Eggert  <eggert@cs.ucla.edu>
58857
58858         * lib/fatal.c, fatal.h: Remove as the "fatal" module wasn't used or
58859         working.
58860
58861 2004-08-02  Simon Josefsson  <jas@extundo.com>
58862
58863         * lib/getsubopt.h: New file, with comments from Bruno Haible.
58864         * lib/getsubopt.c: New file, from glibc, but slightly modified based on
58865         suggestions from Paul Eggert <eggert@cs.ucla.edu>.
58866
58867 2004-08-01  Simon Josefsson  <jas@extundo.com>
58868
58869         * lib/xgetdomainname.c: Include stdlib.h, for free().
58870
58871 2004-07-19  Bruno Haible  <bruno@clisp.org>
58872
58873         * MODULES.html.sh (func_all_modules): Add dummy.
58874
58875 2004-07-16  Simon Josefsson  <jas@extundo.com>
58876
58877         * modules/dummy: New file.
58878
58879 2004-07-16  Simon Josefsson  <jas@extundo.com>
58880
58881         * lib/dummy.c: New file.
58882
58883 2004-07-16  Bruno Haible  <bruno@clisp.org>
58884
58885         * lib/backupfile.h: Add extern "C" for C++.
58886         * lib/closeout.h: Likewise.
58887         * lib/copy-file.h: Likewise.
58888         * lib/findprog.h: Likewise.
58889         * lib/full-write.h: Likewise.
58890         * lib/pathname.h: Likewise.
58891         * lib/progname.h: Likewise.
58892         * lib/stpcpy.h: Likewise.
58893         * lib/stpncpy.h: Likewise.
58894         * lib/strcase.h: Likewise.
58895         * lib/strstr.h: Likewise.
58896         * lib/xalloc.h: Likewise.
58897
58898         * lib/mbswidth.h: Add extern "C" for C++.
58899         Reported by Albert Chin-A-Young <china@thewrittenword.com>.
58900
58901 2004-07-13  Robert Millan  <robertmh@gnu.org>
58902
58903         * m4/host-os.m4: s/KNetBSD/kNetBSD/g and s/KFreeBSD/kFreeBSD/g.
58904
58905 2004-07-09  Simon Josefsson  <jas@extundo.com>
58906
58907         * lib/getndelim2.c: Include stddef.h, for ptrdiff_t.  (FreeBSD 4.9
58908         failed without this.)
58909
58910 2004-07-09  Paul Eggert  <eggert@cs.ucla.edu>
58911
58912         * modules/chown (Files): Add lib/fchown-stub.c, since
58913         gl_PREREQ_CHOWN invokes AC_LIBOBJ(fchown-stub).
58914
58915 2004-07-09  Paul Eggert  <eggert@cs.ucla.edu>
58916
58917         * lib/fchown-stub.c: New file.
58918
58919 2004-06-24  Jim Meyering  <jim@meyering.net>
58920
58921         * lib/obstack.h (obstack_base): Cast to (void *), per documentation.
58922
58923 2004-06-22  Paul Eggert  <eggert@cs.ucla.edu>
58924
58925         * modules/argz: Omit "#include".
58926
58927         * MODULES.html.sh (func_all_modules): Add calloc, to match
58928         2004-06-01 addition of calloc module.
58929
58930 2004-06-22  Paul Eggert  <eggert@cs.ucla.edu>
58931
58932         * m4/argz.m4: New file, which is autoupdated from libtool.
58933
58934 2004-06-22  Paul Eggert  <eggert@cs.ucla.edu>
58935
58936         * lib/argz.c, lib/argz_.h: New files, which are autoupdated from
58937         libtool.
58938
58939 2004-06-22  Paul Eggert  <eggert@cs.ucla.edu>
58940
58941         * config/srclist-update: Don't insist on "USA." before the
58942         close-comment, as libtool omits the period and puts the */ on a
58943         separate line.
58944         * config/srclist.txt: Add argz.c, argz_.h, argz.m4.
58945         * config/srclistvars.sh: Add LIBTOOL (for eggert only).
58946
58947 2004-06-22  Gary V. Vaughan  <gary@gnu.org>
58948
58949         * modules/argz: New file.
58950         * MODULES.html.sh (func_all_modules): Add argz.
58951
58952 2004-06-12  Jim Meyering  <jim@meyering.net>
58953         and  Paul Eggert  <eggert@cs.ucla.edu>
58954
58955         * modules/hash (Files): Add lib/xalloc.h.
58956         * modules/pipe (Depends-on): Add wait-process.
58957         * modules/stat (Depends-on): Add xalloc.
58958         * modules/userspec (Files): Add lib/userspec.h.
58959         * modules/xstrto
58960
58961         Upgrade from gettext-0.13.
58962         * modules/gettext (Files): Add m4/intmax.m4, m4/longdouble.m4,
58963         m4/longlong.m4, m4/printf-posix.m4, m4/signed.m4, m4/size_max.m4,
58964         m4/wchar_t.m4, m4/wint_t.m4, m4/xsize.m4.
58965
58966 2004-06-10  Jim Meyering  <jim@meyering.net>
58967
58968         * lib/calloc.c: New file.
58969
58970 2004-06-06  Paul Eggert  <eggert@cs.ucla.edu>
58971
58972         * lib/getdate.y (yylex): Allow space between sign and number.
58973         Problem reported by Dan Jacobson.
58974
58975 2004-06-01  Paul Eggert  <eggert@cs.ucla.edu>
58976
58977         Merge from coreutils CVS.
58978
58979         * m4/backupfile.m4, dirname.m4, human.m4, inttypes.m4, longlong.m4,
58980         makepath.m4, memchr.m4, memcmp.m4, mountlist.m4, path-concat.m4,
58981         putenv.m4, quotearg.m4, readutmp.m4, strtoimax.m4, strtoll.m4,
58982         strtoull.m4, strtoumax.m4, ulonglong.m4, vasnprintf.m4,
58983         xstrtol.m4: Fix copyright date and/or serial number.
58984
58985         * m4/chown.m4 (gl_PREREQ_CHOWN): Check for fcntl.h.
58986         See if we need an fchown replacement.
58987         (gl_FUNC_CHOWN_FOLLOWS_SYMLINK): New macro.
58988         (gl_FUNC_CHOWN): Require gl_FUNC_CHOWN_FOLLOWS_SYMLINK,
58989         and use the replacement function if we detect either defect.
58990
58991         * m4/prereq.m4 (gl_PREREQ): Add gl_ALLOCSA, gl_CLOEXEC, gl_INTTOSTR,
58992         gl_UTIMECMP.
58993
58994 2004-06-01  Paul Eggert  <eggert@cs.ucla.edu>
58995         and  Jim Meyering  <jim@meyering.net>
58996
58997         Merge from coreutils CVS.
58998
58999         * lib/stat-macros.h: New file, with contents from file-type.h
59000         and coreutils' system.h.
59001         * lib/file-type.c: Include "stat-macros.h".
59002         * lib/file-type.h (file_type): Move all macro definitions to new file,
59003         stat-macros.h.
59004
59005         * lib/chown.c (rpl_chown) [CHOWN_FAILS_TO_HONOR_ID_OF_NEGATIVE_ONE]:
59006         Wrap old code with this conditional.
59007         [CHOWN_MODIFIES_SYMLINK]: Try to work around a chown
59008         function that does not dereference symlinks.
59009         * lib/lchown.c (lchown) [CHOWN_MODIFIES_SYMLINK]: Just call chown.
59010
59011         * lib/xreadlink.c: Include xreadlink.h first, to catch .h file
59012         dependency problems.
59013         (xreadlink): Accept new arg SIZE, for efficiency.
59014         All decls and uses changed.
59015         * lib/xreadlink.h: Include <stddef.h>, for size_t.
59016
59017         * lib/.cppi-disable: Add alloca_.h, allocsa.h, exit.h, getndelim2.h,
59018         gettext.h, localcharset.h, strdup.h, strndup.h, strtoul.c, time_r.h.
59019
59020         * lib/.cvsignore: Add alloca.h, fnmatch.h, poll.h, stdbool.h,
59021         sysexits.h.
59022
59023 2004-06-01  Jim Meyering  <jim@meyering.net>
59024
59025         * m4/calloc.m4: New file.
59026
59027 2004-05-31  Paul Eggert  <eggert@cs.ucla.edu>
59028
59029         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Detect _Bool bug in HP aC++/ANSI
59030         C B3910B A.05.55 [Dec 04 2003].  Problem reported by Jim Meyering.
59031         Also, fix a typo in a diagnostic.
59032
59033 2004-05-30  Paul Eggert  <eggert@cs.ucla.edu>
59034
59035         * m4/xalloc.m4 (gl_PREREQ_XMALLOC): Do not require AC_FUNC_MALLOC
59036         or AC_FUNC_REALLOC.
59037
59038 2004-05-30  Paul Eggert  <eggert@cs.ucla.edu>
59039
59040         * lib/xmalloc.c (HAVE_MALLOC, HAVE_REALLOC): Do not require these
59041         macros to be defined.
59042         (xnmalloc_inline, xnrealloc_inline, xcalloc): Do not die if
59043         the allocator returns NULL because the requested size is zero.
59044
59045 2004-05-20  Paul Eggert  <eggert@cs.ucla.edu>
59046
59047         * lib/malloc/obstack.c (_obstack) [defined _LIBC]: Bring back this
59048         var.  Add comment explaining why libc still defines it.  This
59049         merges the following patch from glibc:
59050         http://sources.redhat.com/ml/libc-alpha/2004-05/msg00157.html
59051
59052 2004-05-20  Andreas Schwab  <schwab@suse.de>
59053
59054         * m4/free.m4: Replace free if it not known to work, not the other
59055         way round.
59056
59057 2004-05-19  Paul Eggert  <eggert@cs.ucla.edu>
59058
59059         * lib/obstack.c (_obstack): Remove unused variable.  It hasn't been
59060         present in glibc since revision 1.1 of this file.
59061         * lib/obstack.h (_obstack_free, obstack_1grow, obstack_1grow_fast,
59062         obstack_alignment_mask, obstack_alloc, obstack_base,
59063         obstack_blank, obstack_blank_fast, obstack_chunk_size,
59064         obstack_copy, obstack_copy0, obstack_finish, obstack_grow,
59065         obstack_grow0, obstack_init, obstack_int_grow,
59066         obstack_int_grow_fast, obstack_make_room, obstack_memory_used,
59067         obstack_next_free, obstack_object_size, obstack_ptr_grow,
59068         obstack_ptr_grow_fast, obstack_room): Remove declarations of
59069         nonexistent functions.
59070
59071 2004-05-18  Karl Berry  <karl@gnu.org>
59072
59073         * config/srclist.txt: break link for vasnprintf.c.
59074
59075 2004-05-17  Paul Eggert  <eggert@cs.ucla.edu>
59076
59077         Port obstack to the AS/400, where pointers are 16 bytes wide and
59078         you cannot cast an integer to a valid pointer.  This patch is
59079         currently waiting to be integrated into glibc; see
59080         <http://sources.redhat.com/ml/libc-alpha/2004-05/msg00073.html>.
59081
59082         * lib/obstack.h (__PTR_TO_INT, __INT_TO_PTR): Remove.
59083         All uses of __INT_TO_PTR (PTR_TO_INT ...) replaced by __PTR_ALIGN.
59084         (__BPTR_ALIGN, __PTR_ALIGN): New macros.
59085         (struct obstack): temp member is now a union of a pointer and
59086         an integer, instead of an integer.  All integer uses changed.
59087         This does not affect the physical layout of struct obstack,
59088         except on hosts (like the AS/400) where the size or alignment of
59089         void * is greater than that of ptrdiff_t.
59090         (obstack_finish) [! (defined __GNUC__ && defined __STDC__ &&
59091         __STDC__)]: Store temporary in pointer member of union, not
59092         integer member.
59093         * lib/obstack.c: Include <stddef.h>, for offsetof.
59094         (struct fooalign): Remove; it doesn't need a name.
59095         (union fooround): Change double to long double, and add void *.
59096         (DEFAULT_ALIGNMENT): Use offsetof to compute.
59097         (DEFAULT_ALIGNMENT, DEFAULT_ROUNDING): Now an enum constant,
59098         not a macro.  Hence the values are always int; so remove all
59099         casts-to-int in uses.
59100
59101 2004-05-17  Paul Eggert  <eggert@cs.ucla.edu>
59102
59103         * config/srclist.txt: Break link for argp-help.c and argp-parse.c until
59104         we can get this patch merged into glibc.
59105
59106 2004-05-17  Derek R. Price  <derek@ximbiot.com>
59107             Paul Eggert  <eggert@cs.ucla.edu>
59108
59109         * m4/argp: Depend on alloca.
59110
59111 2004-05-17  Derek R. Price  <derek@ximbiot.com>
59112             Paul Eggert  <eggert@cs.ucla.edu>
59113
59114         * lib/argp-help.c, argp-parse.c: Assume <alloca.h> rather than
59115         freecoding.
59116
59117 2004-05-17  Bruno Haible  <bruno@clisp.org>
59118
59119         * lib/vasnprintf.c (VASNPRINTF): Correctly handle the case of a
59120         precision that consists of a '.' followed by an empty digit string.
59121         Patch by Tor Lillqvist <tml@iki.fi>.
59122
59123 2004-05-16  Paul Eggert  <eggert@cs.ucla.edu>
59124
59125         * m4/alloca.m4 (gl_FUNC_ALLOCA): Define HAVE_ALLOCA_H always,
59126         for backward compatibility with older code.  We need our own
59127         alloca.h if _AIX is defined.  Define HAVE_ALLOCA if we discover
59128         it under some other name, and our alloca.h will define it.
59129
59130 2004-05-16  Paul Eggert  <eggert@cs.ucla.edu>
59131             Derek Price  <derek@ximbiot.com>
59132
59133         * lib/alloca.c: Include <alloca.h>, to get our interface.
59134         * lib/alloca_.h: Use __alloca on AIX, so that we don't have to
59135         include <alloca.h> first.  Use C89 prototype for alloca; this
59136         requires including <stddef.h> for size_t.  Use extern "C" if C++.
59137         Use #elif for simplicity, since we can assume C89 now.
59138         Don't try to source the system alloca.h since it will not be found
59139         and to prevent recursively including its replacement.
59140         * lib/fnmatch.c: Include <alloca.h> instead of opencoding.
59141         * lib/regex.c: Likewise.
59142
59143 2004-05-16  Derek Price  <derek@ximbiot.com>
59144             Paul Eggert  <eggert@cs.ucla.edu>
59145
59146         getline cleanup.  This changes the getndelim2 API: both order of
59147         arguments, and meaning of delim2 (now uses EOF, not 0, to indicate
59148         no delimiter).
59149
59150         * lib/getline.c: Don't include stddef.h or stdio.h, since our
59151         interface does that.
59152         (getline): Always use getdelim, so that we don't have two
59153         copies of this code.
59154         * lib/getndelim2.c: Include <limits.h>, <inttypes.h>, <stdint.h>
59155         if available.
59156         (PTRDIFF_MAX, SIZE_MAX, SSIZE_MAX): Define if not defined.
59157         (GETNDELIM2_MAXIMUM): New macro.
59158         (getndelim2): Reorder arguments.  delim==EOF now means no delimiter,
59159         instead of the old practice of delim2==0.  All callers changed.
59160         Return -1 on overflow, instead of returning junk.
59161         Do not set *linesize unless allocation succeeds.
59162         * lib/getndelim2.h: Do not include stddef.h; no longer needed, now
59163         that we include sys/types.h.
59164         * lib/getnline.h: Likewise.
59165         * lib/getndelim2.h (GETNLINE_NO_LIMIT): New macro.
59166         (getndelim2): Reorder arguments.
59167         * lib/getnline.c (getnline, getndelim):
59168         Don't discard the NMAX argument.
59169         (getnline): Invoke getndelim, to avoid code duplication.
59170         * lib/getnline.h (GETNLINE_NO_LIMIT): New macro, used instead
59171         of (size_t) -1 by callers of the getnline family.
59172
59173 2004-05-13  Paul Eggert  <eggert@cs.ucla.edu>
59174
59175         * m4/gettime.m4 (gl_GETTIME): Require gl_TIMESPEC.
59176         Check for gettimeofday.
59177         * m4/settime.m4 (gl_SETTIME): Require gl_TIMESPEC.
59178         Check for settimeofday, stime.
59179
59180 2004-05-13  Paul Eggert  <eggert@cs.ucla.edu>
59181
59182         * lib/nanosleep.c (suspended): Change its type from int to
59183         sig_atomic_t volatile.
59184         (first_call): Make it private to rpl_nanosleep, and have it
59185         be zero initially as that's a bit faster.
59186         (my_usleep): Round up fractional times instead of truncating them,
59187         as this is the usual meaning for 'sleep'.
59188
59189         * lib/gettime.c (gettime): Fall back on `time' if `gettimeofday'
59190         doesn't work.
59191         * lib/settime.c: Include <unistd.h>, for stime (on Solaris 8, anyway).
59192         (ENOSYS): Define if not defined.
59193         (settime): Fall back on stime if it exists and settimeofday fails.
59194         But don't bother with fallbacks if a method fails with errno == EPERM.
59195
59196 2004-05-11  Jim Meyering  <jim@meyering.net>
59197
59198         Prior to this change, the save_cwd caller required read access to the
59199         current directory on most systems (ones with the fchdir function).
59200
59201         * lib/save-cwd.c (save_cwd) [HAVE_FCHDIR]: If opening `.' read-only
59202         fails, try write-only, and finally, resort to using xgetcwd.
59203
59204 2004-05-06  Paul Eggert  <eggert@cs.ucla.edu>
59205
59206         * lib/obstack.c, obstack.h: Import changes from libc.
59207
59208 2004-04-28  Bruno Haible  <bruno@clisp.org>
59209
59210         * lib/findprog.c (find_in_path): Treat Cygwin like Windows, since it
59211         also implicitly appends .exe to executables.
59212         * lib/localcharset.c (ISSLASH): Treat Cygwin like Windows, since it now
59213         accepts Windows pathnames.
59214         * lib/pathname.h (ISSLASH, IS_PATH_WITH_DIR, FILESYSTEM_PREFIX_LEN):
59215         Treat Cygwin like Windows, since it now accepts Windows pathnames.
59216         * lib/progreloc.c (ISSLASH, IS_PATH_WITH_DIR, FILESYSTEM_PREFIX_LEN):
59217         Treat Cygwin like Windows, since it now accepts Windows pathnames.
59218         Reported by Derek Robert Price <derek@ximbiot.com>.
59219
59220 2004-04-21  Karl Berry  <karl@gnu.org>
59221
59222         * config/srclist.txt (localcharset.c): break sync.
59223
59224 2004-04-20  Paul Eggert  <eggert@twinsun.com>
59225
59226         * m4/host-os.m4: Add a copyright notice.
59227
59228 2004-04-20  Jim Meyering  <jim@meyering.net>
59229
59230         Change UTILS_ to gl_ in AC_DEFINE'd names.
59231         Change utils_- and jm_-prefixed variables, too.
59232         * m4/mkdir-slash.m4 (gl_FUNC_MKDIR_TRAILING_SLASH): Renamed from
59233         UTILS_FUNC_MKDIR_TRAILING_SLASH.
59234         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Renamed from UTILS_FUNC_MKSTEP.
59235
59236         * m4/dirfd.m4 (gl_FUNC_DIRFD): Rename from UTILS_FUNC_DIRFD.
59237         Don't emit trailing blanks.
59238         Also rename jm_-prefixed variables to have gl_ prefix.
59239
59240         * m4/host-os.m4 (gl_HOST_OS): Rename from UTILS_HOST_OS.
59241         Also rename jm_-prefixed variables to have gl_ prefix.
59242
59243         * m4/jm-macros.m4: Reflect the renamings.
59244         * m4/prereq.m4: Likewise.
59245
59246 2004-04-20  Jim Meyering  <jim@meyering.net>
59247
59248         * lib/getndelim2.c (getndelim2): Upon realloc failure, don't leak
59249         memory.
59250
59251 2004-04-20  Jim Meyering  <jim@meyering.net>
59252             Bruno Haible  <bruno@clisp.org>
59253
59254         * lib/localcharset.c (get_charset_aliases) [!VMS && !WIN32]: Don't leak
59255         memory when realloc fails.
59256
59257 2004-04-19  Jim Meyering  <jim@meyering.net>
59258
59259         * m4/readutmp.m4 (gl_PREREQ_READUTMP): Require gl_FUNC_FREE,
59260         now that readutmp.c may call `free (0)'.
59261
59262 2004-04-19  Bruno Haible  <bruno@clisp.org>
59263
59264         * m4/mbrtowc.m4: Change jm_ to gl_ in cache variables as well.
59265         * m4/inttypes_h.m4: Likewise.
59266         * m4/stdint_h.m4: Likewise.
59267         * m4/intmax_t.m4: Likewise.
59268         * m4/uintmax_t.m4: Likewise.
59269
59270 2004-04-18  Jim Meyering  <jim@meyering.net>
59271
59272         * m4/prereq.m4: Don't forbid jm_ prefix.
59273
59274         * m4/afs.m4, m4/allocsa.m4, m4/assert.m4, m4/backupfile.m4:
59275         * m4/bison.m4, m4/check-decl.m4, m4/chown.m4, m4/d-ino.m4:
59276         * m4/d-type.m4, m4/dirname.m4, m4/dos.m4, m4/error.m4, m4/fpending.m4:
59277         * m4/fstypename.m4, m4/fsusage.m4, m4/ftruncate.m4, m4/getdate.m4:
59278         * m4/getgroups.m4, m4/gettext.m4, m4/glibc21.m4, m4/group-member.m4:
59279         * m4/human.m4, m4/intmax.m4, m4/intmax_t.m4, m4/inttostr.m4:
59280         * m4/inttypes.m4, m4/inttypes_h.m4, m4/jm-macros.m4, m4/jm-winsz1.m4:
59281         * m4/jm-winsz2.m4, m4/lchown.m4, m4/lib-check.m4, m4/link-follow.m4:
59282         * m4/localcharset.m4, m4/longlong.m4, m4/ls-mntd-fs.m4, m4/lstat.m4:
59283         * m4/makepath.m4, m4/mbrtowc.m4, m4/mbswidth.m4, m4/memchr.m4:
59284         * m4/memcmp.m4, m4/mkdtemp.m4, m4/mkstemp.m4, m4/mountlist.m4:
59285         * m4/nanosleep.m4, m4/path-concat.m4, m4/perl.m4, m4/prereq.m4:
59286         * m4/putenv.m4, m4/quotearg.m4, m4/regex.m4, m4/stat.m4:
59287         * m4/stdint_h.m4, m4/strftime.m4, m4/strtoimax.m4, m4/strtoll.m4:
59288         * m4/strtoull.m4, m4/strtoumax.m4, m4/timespec.m4, m4/uintmax_t.m4:
59289         * m4/ulonglong.m4, m4/unlink-busy.m4, m4/unlocked-io.m4, m4/uptime.m4,
59290         * m4/utimbuf.m4, m4/utime.m4, m4/utimes-null.m4, m4/vasnprintf.m4:
59291         * m4/xstrtoimax.m4, m4/xstrtol.m4, m4/xstrtoumax.m4:
59292         Change jm_ to gl_ in AC_DEFINE'd names. Update all uses.
59293
59294 2004-04-18  Jim Meyering  <jim@meyering.net>
59295
59296         * lib/readutmp.c (read_utmp) [UTMP_NAME_FUNCTION]: Upon realloc
59297         failure, don't leak memory and do call END_UTMP_ENT.
59298
59299 2004-04-16  Jim Meyering  <jim@meyering.net>
59300
59301         * m4/prereq.m4 (jm_PREREQ_STAT): Remove macro.  It is specific to
59302         coreutils' stat program.
59303         (gl_PREREQ): Don't require jm_PREREQ_STAT.
59304
59305 2004-04-11  Paul Eggert  <eggert@twinsun.com>
59306
59307         * lib/inttostr.h: Include <limits.h> unconditionally, since we assume
59308         C89.
59309         (CHAR_BIT): Remove, since we assume C89.
59310         Include <stdint.h> if available, as per current Autoconf CVS advice.
59311
59312 2004-03-31  Jim Meyering  <jim@meyering.net>
59313
59314         * m4/prereq.m4: Require AC_FUNC_MALLOC, not jm_FUNC_MALLOC.
59315         Require AC_FUNC_REALLOC, not jm_FUNC_REALLOC.
59316         * m4/xalloc.m4: Likewise.
59317
59318 2004-03-30  Paul Eggert  <eggert@twinsun.com>
59319
59320         Merge from coreutils.
59321
59322         * m4/inttostr.m4: New file.
59323         * m4/getdate.m4 (gl_GETDATE): Remove time-related stuff.
59324         Require AM_STDBOOL_H and gl_TIMESPEC instead.
59325         Require gl_CLOCK_TIME.
59326         * m4/clock_time.m4 (gl_CLOCK_TIME): Require AC_GNU_SOURCE.
59327
59328 2004-03-30  Paul Eggert  <eggert@twinsun.com>
59329
59330         * lib/cloexec.h, cloexec.c (set_cloexec_flag): Return int
59331         not bool, to be more consistent with Unix conventions.
59332         Suggested by Bruno Haible.
59333
59334         Merge from coreutils.
59335
59336         * lib/imaxtostr.c, lib/inttostr.c, lib/inttostr.h, lib/offtostr.c:
59337         * lib/umaxtostr.c: New files.
59338
59339         * lib/getdate.h: Include stdbool.h, and timespec.h instead of
59340         the usual <time.h> dance.
59341         (get_date): Change signature to support fractional time stamps.
59342         All callers changed.
59343         * lib/getdate.y: Include "getdate.h" first, as we can now
59344         assume C89 and don't need to worry about 'const'.
59345         Similarly, include "unlocked-io.h" near start, not in middle.
59346         Include <limits.h>.
59347         (textint.value): Use long int rather than int.
59348         (textint.digits): Use size_t rather than int.
59349         (BILLION, LOG10_BILLION): New constants.
59350         (parser_control): New member rel_ns.  Members day_ordinal,
59351         time_zone, month, day, hour, minutes, rel_year, rel_month,
59352         rel_day, rel_hour, rel_minutes, rel_seconds
59353         are now long int, not int.  Member seconds is now struct timespec,
59354         not int.  New member timespec_seen.  Members dates_seen, days_seen,
59355         local_zones_seen, rels_seen, times_seen, zones_seen are now size_t,
59356         not int.
59357         (%union.intval): Now long int, not int.
59358         New member timespec.
59359         (tSDECIMAL_NUMBER, tUDECIMAL_NUMBER): New tokens.
59360         (seconds, signed_seconds, unsigned_seconds): New nonterminals.
59361         (spec): Now is a timespec or an item list.
59362         (timespec, items): New nonterminals.
59363         (time, rel, relunit, number, get_date):
59364         Add support for fractional seconds.
59365         (time): Fix bug: seconds weren't cleared in "00:00 +0000" syntax.
59366         (gmtime, localtime, mktime): Remove decls; not needed with C89.
59367         (to_hour): First arg is now long int, not int.
59368         (to_year): Returns long int, not int.
59369         Don't treat year -70 like 70.
59370         (tm_diff): Returns long int, not int.
59371         (lookup_word): Use bool instead of int when appropriate.
59372         (yylex): Use size_t for count, not int.
59373         Detect overflow when parsing large integer constants.
59374         Add support for fractions.
59375         (get_date): Make pointers 'const' if possible.
59376         Use more-portable code to detect integer overflow.
59377         (main) [TEST]: Adjust to above changes.  Test for localtime failure.
59378         Don't use ctime; it's not reliable if the year has >4 digits.
59379
59380         * lib/human.c (humblock): Inspect BLOCKSIZE if BLOCK_SIZE isn't set.
59381         This is for compatibility with BSD.
59382
59383         * lib/timespec.h (ST_TIME_CMP_NS, ST_TIME_CMP): Define.
59384         (ATIME_CMP, CTIME_CMP, MTIME_CMP, TIMESPEC_NS): Likewise.
59385         From coreutils' system.h.
59386
59387         * lib/userspec.c: Don't include "posixver.h".
59388         (parse_user_spec): Fall back on USER.GROUP parsing, regardless
59389         of POSIX version, as POSIX 1003.1-2001 allows that behavior as a
59390         compatible extension.  Simplify code by removing a boolean int
59391         that was always nonzero if a string was nonnull.
59392
59393 2004-03-30  Jim Meyering  <jim@meyering.net>
59394
59395         Merge from coreutils.
59396
59397         Avoid a configure-time warning about sys/ucred.h on OSF V4.0.
59398         * m4/ls-mntd-fs.m4: Test for sys/ucred.h separately, since
59399         on some systems one must include <grp.h> before it.
59400         Reported by Christian Krackowizer.
59401
59402 2004-03-30  Jim Meyering  <jim@meyering.net>
59403
59404         Merge from coreutils.
59405
59406         * lib/mountlist.c [HAVE_SYS_UCRED_H]: Include grp.h before sys/ucred.h.
59407
59408         * lib/readtokens.c (readtoken): Don't leak 64 bytes when reading
59409         an empty input stream.
59410
59411         * lib/readtokens.c: Include <stdbool.h>.
59412         (readtoken): Use `size_t' rather than int/long.
59413         All callers adjusted.
59414         Use `bool' rather than `int' where appropriate.
59415         Use memset rather than an explicit loop.
59416         Use x2nrealloc rather than xrealloc.
59417         Allow the use of `\0' as a delimiter.
59418         (readtokens): Likewise.
59419         * lib/readtokens.h (readtoken, readtokens): Update prototypes.
59420
59421 2004-03-30  Jim Meyering  <jim@meyering.net>
59422
59423         * m4/realloc.m4: Remove file, since now it does no more than
59424         AC_REQUIRE([AC_FUNC_REALLOC]), and that can be done via
59425         the `configure.ac' section of module/realloc.
59426         * m4/malloc.m4: Likewise, but for AC_FUNC_MALLOC.
59427
59428 2004-03-30  Bruno Haible  <bruno@clisp.org>
59429
59430         * lib/getloadavg.c (getloadavg): Don't assume setlocale returns
59431         nonnull.
59432
59433 2004-03-29  Paul Eggert  <eggert@twinsun.com>
59434
59435         Merge changes to getloadavg.c from coreutils and Emacs.
59436
59437         * lib/getloadavg.c [!defined HAVE_SETLOCALE] (setlocale):
59438         Define to an expression, not to the empty string.
59439         Include cloexec.h and xalloc.h.
59440         (getloadavg): Restore LC_NUMERIC locale after setting it temporarily.
59441         Use set_cloexec_flag rather than rolling our own.
59442         * lib/cloexec.c, lib/cloexec.h: New files.
59443
59444 2004-03-29  Paul Eggert  <eggert@twinsun.com>
59445
59446         * m4/cloexec.m4: New file.
59447
59448 2004-03-18  Paul Eggert  <eggert@twinsun.com>
59449
59450         * lib/getopt.h: Sync with libc CVS.
59451
59452 2004-03-18  Paul Eggert  <eggert@twinsun.com>
59453             Bruno Haible  <bruno@clisp.org>
59454
59455         * m4/mbswidth.m4 (gl_MBSWIDTH): Also test whether <wchar.h> declares
59456         mbswidth.
59457
59458 2004-03-18  Paul Eggert  <eggert@twinsun.com>
59459             Bruno Haible  <bruno@clisp.org>
59460
59461         * lib/mbswidth.h: Include <wchar.h> only if
59462         HAVE_DECL_MBSWIDTH_IN_WCHAR_H, not on all platforms that have
59463         <wchar.h>.
59464         * lib/mbswidth.c: Include <stdio.h> and <time.h> before <wchar.h>.
59465
59466 2004-03-09  Paul Eggert  <eggert@twinsun.com>
59467
59468         * lib/argp-parse.c, getopt.c, getopt.h, getopt1.c:
59469         Sync with libc CVS.
59470         * lib/getopt_int.h: New file, also synced from libc.
59471
59472 2004-03-09  Paul Eggert  <eggert@twinsun.com>
59473
59474         * config/srclistvars.sh: Add GNUWWWLICENSES for eggert.
59475         * config/srclist.txt: Sync getopt with libc.  Add getopt_int.h.
59476         Bring back getopt.c, getopt.h, getopt1.c.
59477
59478 2004-03-07  Paul Eggert  <eggert@twinsun.com>
59479
59480         * m4/c-stack.m4 (gl_PREREQ_C_STACK): Renamed from jm_PREREQ_C_STACK.
59481         All uses changed.  Check for sa_sigaction member; this fixes
59482         a bug first reported by Jason Andrade in
59483         <http://mail.gnu.org/archive/html/bug-textutils/2003-03/msg00027.html>.
59484
59485 2004-03-07  Paul Eggert  <eggert@twinsun.com>
59486
59487         * lib/c-stack.c (SIGACTION_WORKS): New macro.  Use it instead of long
59488         '#if' expressions.  Unlike the code it replaces, it does not
59489         depend on (defined _SC_PAGESIZE).  However, it does depend on
59490         HAVE_STRUCT_SIGACTION_SA_SIGACTION; this last change fixes a bug
59491         first reported by Jason Andrade in
59492         <http://mail.gnu.org/archive/html/bug-textutils/2003-03/msg00027.html>.
59493
59494 2004-02-25  Simon Josefsson  <jas@extundo.com>
59495
59496         * m4/strdup.m4 (gl_PREREQ_STRDUP): Check whether strdup is declared.
59497
59498 2004-02-25  Simon Josefsson  <jas@extundo.com>
59499
59500         * lib/strdup.h: New file.
59501         * lib/strdup.c: Include it.
59502         * lib/path-concat.c: Include strdup.h. Drop strdup declaration.
59503         * lib/userspec.c: Include strdup.h. Drop strdup declaration.
59504
59505 2004-02-23  Karl Berry  <karl@gnu.org>
59506
59507         * doc/maintain.texi, doc/standards.texi, doc/make-stds.texi: new files
59508         (from fencepost.gnu.org:/gd/gnuorg).
59509
59510 2004-02-23  Karl Berry  <karl@gnu.org>
59511
59512         * config/srclistvars.sh (GNUORG) [karl]: redefine.
59513         * config/srclist.txt: add maintain/standards documents.
59514
59515 2004-02-18  Bruno Haible  <bruno@clisp.org>
59516
59517         * m4/xsize.m4 (gl_XSIZE): Require AC_C_INLINE.
59518         Reported by Derek Robert Price <derek@ximbiot.com>.
59519
59520 2004-02-16  Karl Berry  <karl@gnu.org>
59521
59522         * config/mkinstalldirs, install-sh: update from automake.
59523
59524 2004-02-06  Karl Berry  <karl@gnu.org>
59525
59526         * m4/po.m4: update from gettext 0.14.1.
59527
59528 2004-02-06  Karl Berry  <karl@gnu.org>
59529
59530         * lib/config.charset: update from gettext 0.14.1.
59531
59532 2004-02-05  Paul Eggert  <eggert@twinsun.com>
59533
59534         Add comments and code, prompted by suggestions from Bruno Haible
59535         for sh-quote.
59536         * lib/quotearg.h (quotearg_alloc): New decl.  Improve the comments
59537         describing the enum quoting_style values.
59538         * lib/quotearg.c (quotearg_alloc): New function.
59539         (quotearg_buffer_restyled): Treat lone { and } as special.
59540         Treat = as special.  Work around bug with older shells
59541         that "see" a '\' that is really the 2nd byte of a multibyte char.
59542         Quote empty string with shell_quoting_style.
59543
59544 2004-02-03  Bruno Haible  <bruno@clisp.org>
59545
59546         * m4/pipe.m4: New file, from GNU gettext.
59547
59548 2004-02-03  Bruno Haible  <bruno@clisp.org>
59549
59550         * lib/pipe.h: New file, from GNU gettext.
59551         * lib/pipe.c: New file, from GNU gettext.
59552
59553 2004-01-27  Bruno Haible  <bruno@clisp.org>
59554
59555         * m4/execute.m4: New file, from GNU gettext.
59556
59557 2004-01-27  Bruno Haible  <bruno@clisp.org>
59558
59559         * lib/execute.h: New file, from GNU gettext.
59560         * lib/execute.c: New file, from GNU gettext.
59561         * lib/w32spawn.h: New file, from GNU gettext.
59562
59563 2004-01-24  Paul Eggert  <eggert@twinsun.com>
59564
59565         Merge from diffutils.
59566
59567         * lib/file-type.c (file_type): Add typed memory objects.
59568         * lib/file-type.h (S_TYPEISTMO): New macro.
59569
59570         * lib/c-stack.h (c_stack_action): Remove argv argument.
59571         * lib/c-stack.c (c_stack_action): Likewise.  All uses changed.
59572         (die): Don't calculate message unless segv_action returns.
59573         (get_stack_location, min_address_from_argv, max_address_from_argv,
59574         volatile stack_base, volatile_stack_size): Remove.
59575         (segv_handler): If ! HAVE_XSI_STACK_OVERFLOW_HEURISTIC, assume
59576         that every segmentation violation is a stack overflow.  (Ouch!)
59577         See Debian bug 136249 (still outstanding) for more info about why
59578         HAVE_XSI_STACK_OVERFLOW_HEURISTIC fails on Linux kernels.
59579
59580 2004-01-24  Paul Eggert  <eggert@twinsun.com>
59581
59582         Exit-status fix from coreutils.
59583
59584         Use exit_failure consistently in place of EXIT_FAILURE,
59585         so that program exit statuses are consistent on failure.
59586
59587         * lib/argmatch.c (ARGMATCH_DIE) [! defined ARGMATCH_DIE]:
59588         Include "exitfail.h", and use exit_failure rather than EXIT_FAILURE.
59589         * lib/argmatch.h: Comment fix to match the above.
59590         * lib/obstack.c (obstack_exit_failure) [!defined _LIBC]:
59591         Now a macro referring to exit_failure, instead of a separate
59592         variable.  Include "exitfail.h" to get it.
59593         * lib/xstrtol.h: Include "exitfail.h".
59594         (STRTOL_FATAL_ERROR): Exit with status exit_failure, not 2.
59595
59596         * lib/long-options.c (parse_long_options): Use prototype
59597         for usage function arg.  Pass it EXIT_SUCCESS rather than 0,
59598         for clarity.
59599
59600 2004-01-21  Jim Meyering  <jim@meyering.net>
59601
59602         * lib/mktime.c (__mktime_internal) [!_LIBC]: Define to mktime_internal
59603         so as not to conflict with a different-sized __mktime_internal
59604         function in GNU libc.
59605         * lib/timegm.c (__mktime_internal) [!_LIBC]: Likewise.
59606         Problem building statically-linked `ls' reported by Michael Brunnbauer.
59607
59608 2004-01-20  Karl Berry  <karl@gnu.org>
59609
59610         * config/config.guess: update from config.
59611
59612         * config/srclistvars.sh: GNUWWWLICENSES for karl.
59613
59614 2004-01-20  Bruno Haible  <bruno@clisp.org>
59615
59616         Safer stack allocation.
59617         * lib/setenv.c: Include allocsa.h.
59618         (alloca): Remove fallback definition.
59619         (freea): Remove macro.
59620         (__add_to_environ) [!_LIBC]: Use allocsa instead of alloca. Use freesa
59621         instead of freea.
59622
59623 2004-01-20  Bruno Haible  <bruno@clisp.org>
59624
59625         * m4/eealloc.m4: New file, from GNU gettext.
59626
59627 2004-01-20  Bruno Haible  <bruno@clisp.org>
59628
59629         * m4/allocsa.m4: New file, from GNU gettext.
59630
59631 2004-01-20  Bruno Haible  <bruno@clisp.org>
59632
59633         * lib/xallocsa.h: New file, from GNU gettext.
59634         * lib/xallocsa.c: New file, from GNU gettext.
59635
59636 2004-01-20  Bruno Haible  <bruno@clisp.org>
59637
59638         * lib/wait-process.c: On Windows, include windows.h. Needed on mingw.
59639
59640 2004-01-20  Bruno Haible  <bruno@clisp.org>
59641
59642         * lib/wait-process.c (wait_subprocess): Add ignore_sigpipe argument.
59643         * lib/wait-process.c (wait_subprocess): Likewise. Handle SIGPIPE
59644         specially.
59645
59646 2004-01-20  Bruno Haible  <bruno@clisp.org>
59647
59648         * lib/wait-process.c (wait_process): Disable the 2003-10-31 waitid()
59649         patch.
59650
59651 2004-01-20  Bruno Haible  <bruno@clisp.org>
59652
59653         * lib/wait-process.c (cleanup_slaves): Use ANSI C declaration.
59654
59655 2004-01-20  Bruno Haible  <bruno@clisp.org>
59656
59657         * lib/eealloc.h: New file.
59658
59659 2004-01-20  Bruno Haible  <bruno@clisp.org>
59660
59661         * lib/binary-io.h: Avoid warnings on Cygwin.
59662
59663 2004-01-20  Bruno Haible  <bruno@clisp.org>
59664
59665         * lib/allocsa.h: New file, from GNU gettext.
59666         * lib/allocsa.c: New file, from GNU gettext.
59667
59668 2004-01-18  Karl Berry  <karl@gnu.org>
59669
59670         * doc/gpl.texi, doc/lgpl.texi: new files.
59671
59672 2004-01-18  Karl Berry  <karl@gnu.org>
59673
59674         * config/srclistvars.sh (GNUWWWLICENSES): new variable.
59675         * config/srclist.txt ({fdl,gpl,lgpl}.text): get from there.
59676
59677 2004-01-15  Paul Eggert  <eggert@twinsun.com>
59678
59679         Merge from coreutils.
59680
59681         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Check for uintptr_t.
59682         * m4/posixver.m4 (gl_POSIXVER): Require gl_DEFAULT_POSIX2_VERSION.
59683         (gl_DEFAULT_POSIX2_VERSION): Move
59684         the documentation from 'configure' into 'config.hin',
59685         so that 'configure --help' isn't burdened by it and
59686         we don't have to worry about its formatting there.
59687         Reword the documentation so that it's more succinct
59688         and can be run together into a single paragraph.
59689         * m4/same.m4 (gl_SAME): Check for pathconf.
59690
59691 2004-01-15  Paul Eggert  <eggert@twinsun.com>
59692
59693         Merge from coreutils.
59694
59695         * lib/posixver.c: Include posixver.h.
59696
59697         * lib/same.c: Include <stdbool.h>, <limits.h>.
59698         (_POSIX_NAME_MAX): Define if not defined.
59699         (MIN): New macro.
59700         (same_name): If file names are silently truncated, report
59701         that the file names are the same if they are the same after
59702         the silent truncation.
59703
59704         * lib/xstrtod.h (xstrtod): Accept an extra arg, specifying the
59705         conversion function.
59706         * lib/xstrtod.c (xstrtod): Likewise.  All callers changed to
59707         include c-strtod.h and use c_strtod.  Don't include stdlib.h; no
59708         longer needed.
59709
59710 2004-01-15  Jim Meyering  <jim@meyering.net>
59711
59712         Merge from coreutils.
59713
59714         * m4/clock_time.m4 (gl_CLOCK_TIME): Don't set LIB_CLOCK_GETTIME
59715         if no library is required.
59716         * m4/jm-macros.m4: Don't require UTILS_SYS_OPEN_MAX.
59717         * m4/jm-macros.m4 (jm_MACROS): Require gl_FUNC_FREE.
59718         * m4/jm-macros.m4 (jm_MACROS): Require autoconf-2.58.
59719         (AC_LANG_SOURCE): Remove definition, now that we require autoconf-2.58.
59720         * m4/jm-macros.m4 (jm_MACROS): Don't require AC_FUNC_FTW.
59721         * m4/lib-check.m4 (jm_LIB_CHECK): Do not set LIB_CRYPT to the
59722         value, $ac_cv_search_crypt, if it's "none required".
59723         * m4/posixver.m4 (gl_DEFAULT_POSIX2_VERSION): New macro.
59724         * m4/prereq.m4 (jm_PREREQ): Require AC_FUNC_GETLOADAVG,
59725         not gl_FUNC_GETLOADAVG.
59726         * m4/prereq.m4 (jm_PREREQ): Require gl_READTOKENS, gl_MD5, gl_MAKEPATH,
59727         gl_LONG_OPTIONS, and gl_IDCACHE, gl_GETUGROUPS.
59728
59729 2004-01-15  Jim Meyering  <jim@meyering.net>
59730
59731         Merge from coreutils.
59732
59733         * lib/md5.h (rol) [__GNUC__ && __i386__]: Don't use `asm' code.  These
59734         days, gcc-3.x does better all by itself.  Patch from Dean Gaudet:
59735         http://mail.gnu.org/archive/html/bug-coreutils/2003-11/msg00144.html
59736
59737         * lib/posixver.c (DEFAULT_POSIX2_VERSION): Use definition of new,
59738         optional configure-time default.
59739
59740         * lib/version-etc.c (version_etc_copyright): Update copyright date.
59741
59742         * lib/xreadlink.c (xreadlink): Correct outdated comment.
59743
59744 2004-01-15  Alexandre Duret-Lutz  <adl@gnu.org>
59745
59746         Merge from coreutils.
59747
59748         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): Do not set LIB_NANOSLEEP to the
59749         value, $ac_cv_search_nanosleep, if it's "none required".
59750
59751 2004-01-14  Paul Eggert  <eggert@twinsun.com>
59752
59753         * lib/fnmatch_loop.c (ALLOCA_LIMIT): Remove macro, which collided
59754         with like-named macro in fnmatch.c.
59755         (EXT): Use an internal constant instead.
59756
59757         Merge fnmatch patches from glibc.
59758         * lib/fnmatch.c (mbsinit): Remove define.
59759         Add libc_hidden_ver (__fnmatch, fnmatch).
59760         * lib/fnmatch_loop.c (FCT): Cast to int32_t and UCHAR when appropriate.
59761         Adjust to renaming of collseq_table_lookup to __collseq_table_lookup.
59762
59763 2004-01-14  Karl Berry  <karl@gnu.org>
59764
59765         * config/install-sh: update from automake.
59766
59767 2004-01-13  Karl Berry  <karl@gnu.org>
59768
59769         * config/install-sh: update from automake.
59770
59771 2004-01-09  Karl Berry  <karl@gnu.org>
59772
59773         * config/install-sh: update from automake.
59774
59775 2004-01-05  Karl Berry  <karl@gnu.org>
59776
59777         * config/config.{sub,guess}: update from config.
59778
59779 2003-12-31  Karl Berry  <karl@gnu.org>
59780
59781         * config/depcomp: update from automake.
59782
59783 2003-12-14  Karl Berry  <karl@gnu.org>
59784
59785         * lib/config.charset: update from gettext-runtime.
59786
59787 2003-12-03  Paul Eggert  <eggert@twinsun.com>
59788
59789         * lib/getgroups.c (getgroups): xmalloc takes one argument, not two.
59790         Bug reported by Alfred M. Szmidt.
59791
59792 2003-12-03  Bruno Haible  <bruno@clisp.org>
59793
59794         * m4/gettext.m4: Upgrade from gettext-0.13.
59795         * m4/po.m4: Upgrade from gettext-0.13.
59796         * m4/size_max.m4 (gl_SIZE_MAX): Don't use the _ONCE macros here.
59797         * m4/intmax.m4: New file, from gettext-0.13.
59798         * m4/printf-posix.m4: New file, from gettext-0.13.
59799
59800 2003-11-29  Karl Berry  <karl@gnu.org>
59801
59802         * lib/argp-{help.c,parse.c,namefrob.h}, argp.h: update from libc.
59803
59804 2003-11-25  Paul Eggert  <eggert@twinsun.com>
59805             Bruno Haible  <bruno@clisp.org>
59806
59807         * lib/printf-parse.h: Don't include sys/types.h.
59808         (ARG_NONE): New macro.
59809         (char_directive): Change type of *arg_index fields to size_t.
59810         * lib/printf-parse.c: Don't include sys/types.h.
59811         (SSIZE_MAX): Remove macro.
59812         (PRINTF_PARSE): Change the type of the arg_index variables to size_t.
59813         Remove unnecessary overflow check.
59814         * lib/vasnprintf.c (VASNPRINTF): Update for type change of *arg_index
59815         fields.
59816
59817 2003-11-25  Bruno Haible  <bruno@clisp.org>
59818
59819         * modules/vasnprintf (Files): Remove m4/ssize_t.m4.
59820
59821 2003-11-25  Bruno Haible  <bruno@clisp.org>
59822
59823         * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_PARSE): Don't require
59824         gt_TYPE_SSIZE_T.
59825
59826 2003-11-24  Paul Eggert  <eggert@twinsun.com>
59827
59828         * modules/alloca: Remove dependency on xalloc.
59829
59830 2003-11-24  Paul Eggert  <eggert@twinsun.com>
59831
59832         * lib/alloca.c: Remove dependency on xalloc module.
59833         (xalloc_die): Remove.
59834         (memory_full) [!defined emacs]: New macro.
59835         [!defined emacs]: Don't include xalloc.h.
59836         (alloca): Invoke memory_full, not xalloc_die, if malloc fails or
59837         address arithmetic overflows.  Change datatypes a bit to avoid
59838         unnecessary casts.
59839
59840 2003-11-22  Jim Meyering  <jim@meyering.net>
59841
59842         * lib/xmalloc.c (x2nrealloc_inline): Fix typos in comments:
59843         s/size/size_t/.
59844
59845 2003-11-21  Karl Berry  <karl@gnu.org>
59846
59847         * config/config.{sub,guess}: update from config.
59848
59849 2003-11-18  Karl Berry  <karl@gnu.org>
59850
59851         * config/config.{sub,guess}: update from config.
59852
59853         * config/(printf-{parse,args}.[ch]): sync broken, sigh.
59854
59855 2003-11-17  Paul Eggert  <eggert@twinsun.com>
59856
59857         * README: Mention that S+T cannot overflow if S is the size of
59858         an existing object and T is sufficiently small.
59859
59860 2003-11-17  Jim Meyering  <jim@meyering.net>
59861
59862         On systems without utime and without a utimes function capable of
59863         dealing with a NULL struct utimbuf* argument, this utime replacement
59864         could -- in unusual circumstances -- leak a file descriptor.
59865         * lib/utime.c: Include <unistd.h> and <errno.h>.
59866         (utime_null): Be sure to close `fd' and to preserve errno.
59867         Reported by Geoff Collyer via Arnold Robbins.
59868
59869 2003-11-17  Bruno Haible  <bruno@clisp.org>
59870
59871         * modules/vasnprintf (Files): Add m4/ssize_t.m4.
59872         (Depends-on): Add xsize.
59873
59874 2003-11-17  Bruno Haible  <bruno@clisp.org>
59875
59876         * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_PARSE): Require gt_TYPE_SSIZE_T.
59877
59878 2003-11-17  Bruno Haible  <bruno@clisp.org>
59879
59880         * lib/vasnprintf.c (alloca): Remove fallback definition.
59881         (freea): Remove definition.
59882         (VASNPRINTF): Use alloca only for small sizes, say <= 4000 bytes.
59883         Reported by Paul Eggert.
59884
59885 2003-11-16  Paul Eggert  <eggert@twinsun.com>
59886             Bruno Haible  <bruno@clisp.org>
59887
59888         Protect against address arithmetic overflow.
59889         * lib/printf-args.h: Include stddef.h.
59890         (arguments): Change type of field 'count' to size_t.
59891         * lib/printf-args.c (printf_fetchargs): Use size_t instead of
59892         'unsigned int' where appropriate.
59893         * lib/printf-parse.h: Include sys/types.h.
59894         (char_directive): Change type of *arg_index fields to ssize_t.
59895         (char_directives): Change type of fields 'count', max_*_length to
59896         size_t.
59897         * lib/printf-parse.c: Include sys/types.h and xsize.h.
59898         (SSIZE_MAX): Define fallback value.
59899         (PRINTF_PARSE): Use size_t instead of 'unsigned int' and ssize_t
59900         instead of 'int' where appropriate. Check a_allocated, d_allocated
59901         against overflow. Reject %m$ argument numbers > SSIZE_MAX + 1.
59902         * lib/vasnprintf.c: Include xsize.h.
59903         (VASNPRINTF): Use size_t instead of 'unsigned int' where appropriate.
59904         Check alloca, malloc, realloc, ENSURE_ALLOCATION arguments against
59905         overflow. Avoid wraparound when converting a width or precision from
59906         decimal to binary.
59907
59908 2003-11-16  Bruno Haible  <bruno@clisp.org>
59909
59910         Update from GNU gettext.
59911         * lib/printf-parse.c: Generalize to it can be compiled for wide
59912         strings.
59913         (PRINTF_PARSE, CHAR_T, DIRECTIVE, DIRECTIVES): New macros.
59914         * lib/vasnprintf.c: Generalize to it can be compiled for wide strings.
59915         (VASNPRINTF, CHAR_T, DIRECTIVE, DIRECTIVES, PRINTF_PARSE, USE_SNPRINTF,
59916         SNPRINTF): New macros.
59917         Don't include <alloca.h> if the file is used inside libintl.
59918         (local_wcslen): New function, for Solaris 2.5.1.
59919         (VASNPRINTF): Use it instead of wcslen.
59920
59921 2003-11-16  Bruno Haible  <bruno@clisp.org>
59922
59923         * lib/xsize.h (xmax): New function.
59924         (xsum, xsum3, xsum4): Declare as "pure" functions.
59925
59926 2003-11-12  Paul Eggert  <eggert@twinsun.com>
59927
59928         * modules/xalloc (Files): Undo latest change, since xalloc.h
59929         no longer needs SIZE_MAX or PTRDIFF_MAX.
59930
59931 2003-11-12  Paul Eggert  <eggert@twinsun.com>
59932
59933         * m4/xalloc.m4 (gl_PREREQ_XALLOC): Do not require gl_SIZE_MAX or
59934         gl_PTRDIFF_MAX.
59935
59936 2003-11-12  Paul Eggert  <eggert@twinsun.com>
59937
59938         * lib/xstrtol.c (__xstrtol): Remove "break" immediately after
59939         "return", to pacify some unknown compiler.  Problem reported
59940         by Joerg Schilling.
59941
59942 2003-11-12  Paul Eggert  <eggert@twinsun.com>
59943
59944         * lib/xalloc.h: Do not include <limits.h> or <stdint.h>.
59945         (xalloc_oversized): Use sizeof (ptrdiff_t) and sizeof (size_t) for
59946         the heuristic, rather than PTRDIFF_MAX and SIZE_MAX.  This
59947         heuristic is just as accurate as far as we know, and it removes a
59948         dependency on size_max.m4 and ptrdiff_max.m4.
59949
59950 2003-11-11  Bruno Haible  <bruno@clisp.org>
59951
59952         * modules/xsize (Files): Add m4/size_max.m4.
59953         * modules/xalloc (Files): Add m4/size_max.m4, m4/ptrdiff_max.m4.
59954
59955 2003-11-11  Bruno Haible  <bruno@clisp.org>
59956
59957         * m4/size_max.m4: New file.
59958         * m4/ptrdiff_max.m4: New file.
59959         * m4/xsize,m4 (gl_XSIZE): Require gl_SIZE_MAX.
59960         * m4/xalloc.m4 (gl_PREREQ_XALLOC): New macro.
59961         (gl_XALLOC): Invoke it.
59962
59963 2003-11-11  Bruno Haible  <bruno@clisp.org>
59964
59965         * lib/xsize.h (SIZE_MAX): Remove fallback definition.
59966         * lib/xalloc.h: Include limits.h. Assume SIZE_MAX and PTRDIFF_MAX are
59967         defined.
59968
59969 2003-11-10  Paul Eggert  <eggert@twinsun.com>
59970
59971         * lib/xalloc.h (xalloc_oversized): [! (defined PTRDIFF_MAX &&
59972         PTRDIFF_MAX < SIZE_MAX)]: Fix off-by-one error that would have
59973         rejected some allocations of exactly SIZE_MAX - 2 bytes.
59974         From Bruno Haible.
59975         [defined PTRDIFF_MAX && PTRDIFF_MAX < SIZE_MAX]: Use SIZE_MAX,
59976         not (size_t) -1, since it's defined here.
59977
59978 2003-11-09  Karl Berry  <karl@gnu.org>
59979
59980         * config/mkinstalldirs, depcomp, mdate-sh: update from automake.
59981
59982 2003-11-06  Paul Eggert  <eggert@twinsun.com>
59983
59984         * lib/xalloc.h [HAVE_STDINT_H]: Include <stdint.h>.
59985         (xalloc_oversized) [! (PTRDIFF_MAX < SIZE_MAX)]:
59986         Reject sizes of exactly SIZE_MAX bytes.
59987         * lib/xreadlink.c: Include "xalloc.h" before checking whether SIZE_MAX
59988         is defined, since "xalloc.h" now defines SIZE_MAX on modern hosts.
59989
59990 2003-11-05  Bruno Haible  <bruno@clisp.org>
59991
59992         * lib/xsize.h: Include limits.h, to avoid a possible collision with
59993         SIZE_MAX defined in <limits.h> on Solaris.
59994
59995 2003-11-04  Jim Meyering  <jim@meyering.net>
59996
59997         * modules/sysexits: Use the `$(VAR)' notation for AC_SUBST'd
59998         variable names, rather than @VAR@.
59999         * modules/poll: Likewise.
60000
60001 2003-11-04  Bruno Haible  <bruno@clisp.org>
60002
60003         * modules/xsize: New file.
60004         * modules/linebreak: Depend on xsize.
60005         * MODULES.html.sh (func_all_modules): Add xsize.
60006
60007 2003-11-04  Bruno Haible  <bruno@clisp.org>
60008
60009         * m4/xsize.m4: New file.
60010
60011 2003-11-04  Bruno Haible  <bruno@clisp.org>
60012
60013         * lib/xsize.h: New file.
60014         * lib/linebreak.c: Include xsize.h.
60015         (mbs_possible_linebreaks, mbs_width_linebreaks): Check malloc()
60016         argument for overflow.
60017         Suggested by Paul Eggert.
60018
60019 2003-11-03  Karl Berry  <karl@gnu.org>
60020
60021         * config/config.{guess,sub}: update from config.
60022
60023 2003-11-03  Jim Meyering  <jim@meyering.net>
60024
60025         * modules/userspec (lib_SOURCES): Add userspec.h.
60026         (Include): Add "userspec.h".
60027         Improve description.
60028
60029 2003-11-03  Jim Meyering  <jim@meyering.net>
60030
60031         * lib/userspec.c: Include "userspec.h".
60032         * lib/userspec.h: New file.
60033
60034 2003-11-03  Bruno Haible  <bruno@clisp.org>
60035
60036         * m4/wait-process.m4 (gl_WAIT_PROCESS): Also check for waitid.
60037
60038 2003-11-03  Bruno Haible  <bruno@clisp.org>
60039
60040         * lib/wait-process.c (wait_process): Use waitid with WNOWAIT if
60041         available, to avoid (extremely rare) race condition.
60042         Suggested by Paul Eggert.
60043
60044 2003-11-02  Karl Berry  <karl@gnu.org>
60045
60046         * config/srclist.txt (vasprintf.c): sync broken, sigh.
60047
60048 2003-10-31  Paul Eggert  <eggert@twinsun.com>
60049
60050         * lib/mountlist.h (struct mount_entry.me_type_malloced): New member.
60051         * lib/mountlist.c (SIZE_MAX): Define if not defined already.
60052         (read_filesystem_list): Set and use me_type_malloced.
60053         Use "sizeof *me" rather than "sizeof (struct mount_entry)" (or
60054         whatever the type happens to be), for brevity and consistency.
60055         Check for size calculation overflow on Alphas running OSF/1.
60056
60057 2003-10-31  Jim Meyering  <jim@meyering.net>
60058
60059         * lib/hash.c: Include "xalloc.h" for use of xalloc_oversized.
60060
60061         * lib/linebuffer.c: Include <string.h> for declaration of memset.
60062
60063 2003-10-30  Paul Eggert  <eggert@twinsun.com>
60064             Bruno Haible  <bruno@clisp.org>
60065
60066         * lib/vasprintf.c: Include <limits.h>, <stdlib.h>.
60067         (vasprintf): Fail if the resulting length doesn't fit in an 'int'.
60068
60069 2003-10-30  Paul Eggert  <eggert@cs.ucla.edu>
60070
60071         * m4/host-os.m4 (UTILS_HOST_OS): Change netbsd*-gnu pattern back to
60072         netbsd*-gnu*.  Suggested by Robert Millan.
60073
60074 2003-10-29  Paul Eggert  <eggert@twinsun.com>
60075
60076         * modules/group-member: Depend on stdbool.
60077
60078 2003-10-29  Paul Eggert  <eggert@twinsun.com>
60079
60080         * m4/xalloc.m4 (gl_XALLOC): Undo previous change.
60081
60082 2003-10-29  Paul Eggert  <eggert@twinsun.com>
60083
60084         * m4/host-os.m4 (UTILS_HOST_OS): Resurrect netbsd*-gnu.  Add comments
60085         to it, and to knetbsd*-gnu and kfreebsd*-gnu.  Remove the '*' from
60086         after the 'gnu' in these cases.  This fixes some bugs in the
60087         previous change, and is based on suggestions by Robert Millan.
60088
60089 2003-10-29  Paul Eggert  <eggert@twinsun.com>
60090
60091         * lib/xalloc.h (xalloc_oversized): Now a macro, not a function,
60092         so that it works even if SIZE_MAX < N.  Do not include <stdbool.h>;
60093         no longer needed.
60094         * lib/quotearg.c (quotearg_n_options): Use it.
60095         * lib/group-member.c: Include <stdbool.h>.
60096         (free_group_info): Arg is now const *; don't free arg.
60097         (get_group_info): Now returns bool and accepts struct group_info *,
60098         rather than returning a malloc'ed struct group_info *.
60099         All uses changed.  Check for overflow in internal size calculation.
60100
60101         * lib/getusershell.c (readname): Simplify the code by using x2nrealloc
60102         rather than xmalloc/xrealloc.
60103         * lib/linebuffer.c (initbuffer, readlinebuffer): Simplify the code by
60104         using x2realloc rather than xmalloc/xrealloc.  Also, fix a C
60105         conformance bug: the old code used a pointer after freeing the
60106         storage that it addressed.
60107         * lib/hash.c (hash_initialize): Simplify the code by using
60108         xalloc_oversized rather than doing it by hand.
60109         * lib/getgroups.c (getgroups): Don't use xrealloc, since we don't need
60110         the buffer preserved.  Use free and xmalloc instead.
60111         * lib/quotearg.c (quotearg_n_options): Likewise.
60112         Use a simpler test for size overflow.  Don't use xalloc_oversized
60113         because unsigned int might be wider than size_t (!); this suggests
60114         that we should switch from unsigned int to size_t for slot numbers.
60115
60116 2003-10-28  Paul Eggert  <eggert@twinsun.com>
60117
60118         * m4/host-os.m4 (UTILS_HOST_OS): Identify GNU/KFreeBSD and
60119         GNU/KNetBSD.  These implementations use glibc atop the FreeBSD and
60120         NetBSD kernels.  Requested by Richard Stallman.
60121
60122 2003-10-27  Paul Eggert  <eggert@twinsun.com>
60123
60124         * lib/exclude.c (new_exclude): Use xzalloc rather than xmalloc
60125         to allocate the returned structure.  Do not allocate a subarray,
60126         as x2nrealloc will do that.
60127         (add_exclude): Use x2nrealloc to reallocate ex->exclude,
60128         instead of xnrealloc.
60129         (add_exclude_file): Use x2realloc instead of malloc + xnrealloc.
60130
60131 2003-10-27  Bruno Haible  <bruno@clisp.org>
60132
60133         * lib/stdbool_.h: Better support for BeOS.
60134
60135 2003-10-26  Paul Eggert  <eggert@twinsun.com>
60136
60137         * m4/xalloc.m4 (gl_XALLOC): Requore AC_C_INLINE, since xalloc.h
60138         now uses inline.
60139
60140 2003-10-26  Paul Eggert  <eggert@twinsun.com>
60141
60142         * lib/xalloc.h (xalloc_oversized): New static inline function, for
60143         callers that want to do their own size-overflow checking.  Include
60144         <stdbool.h>, since xalloc_oversized returns bool.
60145         * lib/xalloc.c (array_size_overflow): Remove.  All callers changed
60146         to use xalloc_oversized.
60147
60148         Add two functions x2realloc, x2nrealloc, for programs that grow
60149         arrays dynamically by doubling their sizes.
60150         * lib/xalloc.h (x2realloc, x2nrealloc): New decls.
60151         * lib/xmalloc.c (x2nrealloc_inline, x2nrealloc, x2realloc):
60152         New functions.
60153
60154         Port to C99 semantics for 'inline' of external functions.
60155         Bug reported by Bruno Haible.
60156         * lib/xmalloc.c (xnmalloc_inline): New static inline function,
60157         with the old contents of xnmalloc.
60158         (xnmalloc, xmalloc): Use it.
60159         (xnrealloc_inline): New static inline function,
60160         with the old contents of xnrealloc.
60161         (xnrealloc, xrealloc): Use it.
60162
60163         * lib/alloc.c (alloca): xmalloc cannot return NULL, so don't test for
60164         that.
60165
60166 2003-10-26  Karl Berry  <karl@gnu.org>
60167
60168         * config/srclist.txt (COPYING.DOC): no longer available from
60169         /gd/gnuorg; don't know where the ultimate source is.
60170
60171 2003-10-25  Paul Eggert  <eggert@twinsun.com>
60172
60173         Fix several address-calculation bugs in the hash modules,
60174         plus some minor code cleanup.
60175
60176         * lib/hash.h: Include <stdbool.h>, for bool.
60177         * lib/hash.c: Don't include <stdbool.h>, since hash.h does it now.
60178         * lib/hash.h (Hash_hasher, hash_get_n_buckets, hash_get_n_buckets_used,
60179         hash_get_n_entries, hash_get_max_bucket_length,
60180         hash_get_entries, hash_do_for_each, hash_string, hash_initialize,
60181         hash_rehash): Use size_t rather than unsigned.
60182         * lib/hash.c (struct hash_table, hash_get_n_buckets,
60183         hash_get_n_buckets_used, hash_get_n_entries,
60184         hash_get_max_bucket_length, hash_table_ok, hash_print_statistics,
60185         hash_get_entries, hash_do_for_each, hash_string, is_prime,
60186         next_prime, hash_initialize, hash_rehash, hash_delete, hash_print):
60187         Likewise.
60188         (SIZE_MAX): Define if not defined.
60189         (hash_get_max_bucket_length, hash_table_ok, hash_lookup,
60190         hash_get_first, hash_get_next, hash_get_entries, hash_do_for_each,
60191         hash_print):
60192         Use const * when possible.
60193         (hash_string): Use (unsigned char) *P rather than *(unsigned char *) P.
60194         (check_tuning): Fix bug: if tuning parameters were very close to
60195         0 or 1, rounding errors could have caused subscript violations.
60196         (hash_initialize, allocate_entry, hash_print): Remove unnecessary cast.
60197         (hash_initialize): Add 'fail:' label
60198         to free table and return NULL, and use it to simplify code.
60199         Use calloc rather than clearing the storage ourself.
60200         (hash_initialize, hash_rehash): Check for arithmetic overflow in
60201         buffer size calculations.
60202         * lib/hash-pjw.h (hash_pjw): Use size_t, not unsigned.
60203         Include <stddef.h>, for size_t.
60204         * lib/hash-pjw.c (hash_pjw): Likewise.
60205         Switch to method described by Bruno Haible.
60206         Include <limits.h>, for CHAR_BIT.
60207         (SIZE_BITS): New macro.
60208
60209 2003-10-23  Paul Eggert  <eggert@twinsun.com>
60210
60211         * m4/getline.m4 (AM_FUNC_GETLINE):
60212         Don't include getndelim2.o twice into LIBOBJS; this breaks on some
60213         hosts.  Problem reported by Derek Robert Price in
60214         <http://mail.gnu.org/archive/html/bug-gnulib/2003-10/msg00092.html>.
60215         This patch can be withdrawn after Autoconf 2.58 is required for gnulib.
60216         * m4/getndelim2.m4 (gl_GETNDELIM2): Likewise.
60217
60218 2003-10-21  Paul Eggert  <eggert@twinsun.com>
60219
60220         * lib/getndelim2.c (getndelim2): When size calculation overflows,
60221         ceiling the allocation at NMAX bytes rather than silently
60222         discarding input bytes before NMAX is reached.  This makes
60223         a difference only if NMAX exceeds SIZE_MAX / 2.
60224
60225         * lib/obstack.c: Merge from glibc.
60226         [defined _LIBC]: Include <obstack.h>, not "obstack.h".
60227         Add libc_hidden_def (_obstack_newchunk).
60228         (_obstack_free) [! defined _LIBC]: Remove.
60229         [defined _LIBC]: Make a strong alias from obstack_free, rather than
60230         a clone of the function body.
60231         (fputs) [defined _LIBC && defined USE_IN_LIBIO]: Remove.
60232         [defined _LIBC && !defined USE_IN_LIBIO]: Include <libio/iolibio.h>.
60233
60234         * lib/obstack.h: Indenting cleanup, to make it easier to merge with
60235         glibc.
60236         (obstack_grow, obstack_grow0): Remove unnecessary parentheses around
60237         arg to memcpy.
60238
60239         * lib/obstack.h (obstack_1grow_fast): Properly parenthesize arg.
60240         (obstack_ptr_grow_fast, obstack_int_grow_fast):
60241         Don't use lvalue casts, as GCC plans to remove support for them
60242         in GCC 3.5.  Reported by Joseph S. Myers.  This bug
60243         was also present in the non-GCC version, indicating that this
60244         code had always been buggy and had never been widely used.
60245         (obstack_1grow, obstack_ptr_grow, obstack_int_grow, obstack_blank):
60246         Use the fast variant of each macro, rather than copying the
60247         definiens of the fast variant; that way, we'll be more likely to
60248         catch future bugs in the fast variants.
60249
60250 2003-10-20  Bruno Haible  <bruno@clisp.org>
60251
60252         * modules/wait-process: New file.
60253         * MODULES.html.sh (func_all_modules): Add wait-process.
60254
60255 2003-10-20  Bruno Haible  <bruno@clisp.org>
60256
60257         * m4/wait-process.m4: New file.
60258
60259 2003-10-20  Bruno Haible  <bruno@clisp.org>
60260
60261         * lib/wait-process.h: New file, from GNU gettext.
60262         * lib/wait-process.c: New file, from GNU gettext.
60263
60264 2003-10-19  Jim Meyering  <jim@meyering.net>
60265
60266         * lib/vasnprintf.c (vasnprintf): Work around losing snprintf on
60267         HPUX 10.20.
60268
60269 2003-10-18  Karl Berry  <karl@gnu.org>
60270
60271         * config/config.guess: update from config.
60272
60273 2003-10-16  Paul Eggert  <eggert@twinsun.com>
60274
60275         * lib/getgroups.c: Include <errno.h>, <stdlib.h>.
60276         (getgroups): First arg is int, not size_t.
60277         Don't let 'free' mangle errno.
60278
60279 2003-10-16  Paul Eggert  <eggert@twinsun.com>
60280
60281         * README: Mention that gnulib assumes that (foo *) NULL + 0 == NULL.
60282
60283 2003-10-16  Karl Berry  <karl@gnu.org>
60284
60285         * config/config.{guess,sub}: update from config.
60286
60287 2003-10-16  Jim Meyering  <jim@meyering.net>
60288
60289         * lib/xmalloc.c: Include <string.h>, for declarations of memset and
60290         memcpy.
60291
60292 2003-10-15  Paul Eggert  <eggert@twinsun.com>
60293
60294         * lib/exclude.c: Do not include <inttypes.h> or <stdint.h>.
60295         (SIZE_MAX): Remove.
60296         (new_exclude, add_exclude_file): Initial size no longer needs to
60297         be a power of 2.
60298         (add_exclude, add_exclude_file): Use xnrealloc instead of rolling
60299         our own address arithmetic overflow checking.
60300
60301         * lib/fnmatch.c (SIZE_MAX): Define if standard headers don't.
60302         (fnmatch): Do not alloca more than 2000 wide characters;
60303         instead, use malloc for large buffers.
60304         Check for address arithmetic overflow, and return -1
60305         with errno set to ENOMEM in that case.
60306         * lib/fnmatch_loop.c (ALLOCA_LIMIT): New macro.
60307         (NEW_PATTERN): Do not alloca more than 8000 bytes;
60308         instead, return -1.  Check for address arithmetic overflow.
60309
60310 2003-10-14  Paul Eggert  <eggert@twinsun.com>
60311
60312         Handle invalid suffixes and overflow independently, so that
60313         callers can treat them independently as needed.  Fix some bugs in
60314         suffix handling, e.g., "100k@" was not diagnosed as an invalid
60315         suffix for a human-readable blocksize.  The major caller-visible
60316         change is the addition of a new
60317         LONGINT_INVALID_SUFFIX_CHAR_WITH_OVERFLOW enum value, indicating
60318         that both overflow and suffix chars were found.
60319
60320         * lib/human.c (humblock): Don't check separately for invalid suffix
60321         char; that is xstrtoumax's job (now that its bug is fixed).
60322         * lib/xstrtoimax.c (STRTOL_T_MINIMUM, STRTOL_T_MAXIMUM) [defined
60323         INTMAX_MAX]: New macros.
60324         * lib/xstrtol.c (STRTOL_T_MINIMUM, STRTOL_T_MAXIMUM, TYPE_MINIMUM,
60325         TYPE_MAXIMUM): New macros.
60326         (bkm_scale, bkm_scale_by_power): Return strtol_error, not int.
60327         (bkm_scale, bkm_scale_by_power, __xstrtol): Return maximal values
60328         if overflow occurs, as it's what __strtol does and it's more useful
60329         in practice.
60330         (__xstrtol): If __strtol reports some error other than ERANGE,
60331         reflect it to the caller as LONGINT_INVALID.  If it reports
60332         ERANGE, continue the rest of parsing, and report LONGINT_OVERFLOW
60333         | LONGINT_INVALID_SUFFIX_CHAR if both errors occur.
60334         * lib/xstrtol.h (LONGINT_INVALID_SUFFIX_CHAR_WITH_OVERFLOW): New enum
60335         value.
60336         (_STRTOL_ERROR): Handle it.  Abort when given unknown error codes.
60337         * lib/xstrtoul.c (STRTOL_T_MINIMUM, STRTOL_T_MAXIMUM): New macros.
60338         * lib/xstrtoumax.c (STRTOL_T_MINIMUM, STRTOL_T_MAXIMUM)
60339         [defined UINTMAX_MAX]: New macros.
60340
60341 2003-10-14  Bruno Haible  <bruno@clisp.org>
60342
60343         * modules/fatal-signal: Add m4/sig_atomic_t.m4 to file list.
60344
60345 2003-10-14  Bruno Haible  <bruno@clisp.org>
60346
60347         * m4/sig_atomic_t: New file, from GNU gettext.
60348         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Require gt_TYPE_SIG_ATOMIC_T.
60349
60350 2003-10-14  Bruno Haible  <bruno@clisp.org>
60351
60352         * lib/fatal-signal.h: Improved comments. Suggested by Paul Eggert.
60353         * lib/fatal-signal.c: Use sig_atomic_t. Suggested by Paul Eggert.
60354         Also use volatile where needed.
60355
60356 2003-10-12  Paul Eggert  <eggert@twinsun.com>
60357
60358         * modules/xalloc: Do not depend on 'exit'.  Depend on 'stdbool'.
60359         Change maintainer from Bruno Haible to 'all'.
60360
60361 2003-10-12  Paul Eggert  <eggert@twinsun.com>
60362
60363         * m4/xalloc.m4 (gl_PREREQ_XMALLOC): Require AC_C_INLINE.
60364
60365 2003-10-12  Paul Eggert  <eggert@twinsun.com>
60366
60367         * lib/xalloc.h (xnmalloc, xzalloc, xnrealloc, xclone): New decls.
60368         (XMALLOC, XCALLOC, XREALLOC, XFREE, CCLONE, CLONE): Deprecate,
60369         and define in terms of the other primitives.
60370         * lib/xmalloc.c: Include stdbool.h; do not include exit.h.
60371         (SIZE_MAX): Define if not already defined.
60372         (array_size_overflow): New function.
60373         (xalloc_die): Abort instead of exiting if 'error' returns.
60374         (xnmalloc, xnrealloc, xzalloc, xclone): New functions.
60375         (xmalloc, xrealloc): Use them.
60376         (xcalloc): Check for address arithmetic overflow.
60377         * lib/xstrdup.c (xstrdup): Use xclone, since memcpy should be
60378         a bit faster than strcpy.
60379
60380 2003-10-10  Simon Josefsson  <jas@extundo.com>
60381
60382         * modules/argp (Depends-on): Add restrict and strcase.
60383
60384 2003-10-10  Simon Josefsson  <jas@extundo.com>
60385
60386         * m4/argp.m4: Add AC_C_INLINE.
60387
60388 2003-10-08  Paul Eggert  <eggert@twinsun.com>
60389
60390         Merge getpass from libc, plus a few fixes.
60391
60392         * lib/getpass.c (HAVE_STDIO_EXT) [_LIBC]: Define to 1.
60393         Include <stdbool.h>.
60394         Include <stdio_ext.h> if HAVE_STDIO_H, otherwise define
60395         __fsetlocking to empty.
60396         [_LIBC]: Do not include "getline.h" or "unlocked-io.h", but
60397         do include <bits/libc-lock.h>.
60398         Do not include <fcntl.h>; not needed.
60399         [_LIBC]: Include <wchar.h>.
60400         (NOTCANCEL_MODE): New macro.
60401         (flockfile, funlockfile) [_LIBC]: New macros.
60402         (__libc_cleanup_push, __libc_cleanup_pop, __getline, __tcgetattr)
60403         [!_LIBC]: New macros.
60404         (call_fclose): New function.
60405         (getpass): Use it.  Save tty stream separately; this simplifies the
60406         code and makes it more reliable if stdin happens to equal stdout.
60407         Invoke __fsetlocking on tty.
60408         Handle thread cancellation if needed.
60409         Namespace cleanup (use __tcgetattr, __getline).
60410         Use bool for Booleans.
60411         [USE_IN_LIBIO]: Handle wide streams.
60412         [!_LIBC]: Unconditionally do the fseek, since we don't know what
60413         stream might go where.
60414
60415         * lib/unlocked-io.h: Include <stdio.h>, so that the caller
60416         doesn't have to include <stdio.h> before us.
60417         (clearerr_unlocked, feof_unlocked, ferror_unlocked,
60418         fflush_unlocked, fgets_unlocked, fputc_unlocked, fputs_unlocked,
60419         fread_unlocked, fwrite_unlocked, getc_unlocked, getchar_unlocked,
60420         putc_unlocked, putchar_unlocked): Define to the unlocked counterpart
60421         if not declared, so that we can use getpass.c code from libc without
60422         rewriting it.
60423         (flockfile, ftrylockfile, funlockfile): New macros.
60424
60425 2003-10-08  Paul Eggert  <eggert@twinsun.com>
60426
60427         * modules/getpass: Depend on stdbool.
60428
60429 2003-10-08  Paul Eggert  <eggert@twinsun.com>
60430
60431         * m4/getpass.m4 (gl_PREREQ_GETPASS): Check for stdio_ext.h.
60432
60433 2003-10-07  Karl Berry  <karl@gnu.org>
60434
60435         * config/config.{guess,sub}: update from config.
60436
60437 2003-10-06  Jim Meyering  <jim@meyering.net>
60438             Bruno Haible  <bruno@clisp.org>
60439
60440         This lets translators provide better translations for the
60441         "Written by ..." part of --version output.
60442         * lib/version-etc.h: Include stdarg.h.
60443         (version_etc_copyright): Declare as readonly.
60444         (version_etc): Make this function variadic with a NULL-terminated list
60445         of author name strings.
60446         (version_etc_va): New declaration.
60447         * lib/version-etc.c: Include stdarg.h, stdlib.h.
60448         (version_etc_copyright): Declare as readonly.
60449         (version_etc_va): New function. Provide a different translatable string
60450         for each possible number of authors < 10. Abbreviate when there are 10
60451         authors or more.
60452         (version_etc): Make this function variadic. Call version_etc_va.
60453         Suggestion from Gary V. Vaughan.
60454
60455         * lib/long-options.h (parse_long_options): Change prototype: the
60456         authors string is moved to the end and becomes variadic.
60457         * lib/long-options.c: Include stdarg.h.
60458         (parse_long_options): Make this function variadic, too.
60459         Call version_etc_va, not version_etc.
60460
60461 2003-10-06  Bruno Haible  <bruno@clisp.org>
60462
60463         * modules/version-etc-2: Remove file.
60464         * MODULES.html.sh (func_all_modules): Remove version-etc-2.
60465
60466 2003-10-06  Bruno Haible  <bruno@clisp.org>
60467
60468         * modules/fatal-signal: New file.
60469         * MODULES.html.sh (func_all_modules): Add fatal-signal.
60470
60471 2003-10-06  Bruno Haible  <bruno@clisp.org>
60472
60473         * m4/fatal-signal.m4: New file.
60474         * m4/signalblocking.m4: New file, from GNU gettext.
60475
60476 2003-10-06  Bruno Haible  <bruno@clisp.org>
60477
60478         * lib/version-etc-2.h: Remove file.
60479         * lib/version-etc-2.c: Remove file.
60480
60481 2003-10-06  Bruno Haible  <bruno@clisp.org>
60482
60483         * lib/fatal-signal.h: New file, from GNU gettext.
60484         * lib/fatal-signal.c: New file, from GNU gettext.
60485
60486 2003-10-05  Paul Eggert  <eggert@twinsun.com>
60487
60488         * README: Rework advice for preventing empty .o files.
60489         Don't recommend ELIDE constructs.  Recommend <stddef.h>,
60490         not <sys/types.h>.
60491
60492 2003-10-04  Karl Berry  <karl@gnu.org>
60493
60494         * lib/argp*: update from libc.
60495
60496 2003-10-04  Karl Berry  <karl@gnu.org>
60497
60498         * config/config.{guess,sub}: update from config.
60499
60500 2003-10-02  Bruno Haible  <bruno@clisp.org>
60501
60502         * modules/lchown (Include): Add lchown.h.
60503         * modules/time_r (Include): Use "..." syntax.
60504         * modules/xgetdomainname (Include): Add xgetdomainname.h.
60505
60506 2003-10-01  Simon Josefsson  <jas@extundo.com>
60507
60508         * MODULES.html.sh (func_all_modules): Move gethostname from section
60509         'based on' to section 'lacking' POSIX:2001.
60510
60511 2003-10-01  Larry Jones  <lawrence.jones@eds.com>
60512
60513         * lib/getpass.c (getpass): Use a no-op fseek when switching from input
60514         to output mode on the same stream.
60515
60516 2003-09-29  Paul Eggert  <eggert@twinsun.com>
60517
60518         * lib/strftime.c (tm_diff) [! HAVE_TM_GMTOFF]:
60519         Fix arg typo in previous patch.
60520
60521 2003-09-28  Jim Meyering  <jim@meyering.net>
60522
60523         * lib/error.c: Correct cpp indentation.
60524
60525 2003-09-27  Paul Eggert  <eggert@twinsun.com>
60526
60527         * modules/free: New file.
60528
60529 2003-09-27  Paul Eggert  <eggert@twinsun.com>
60530
60531         * m4/free.m4: New file.
60532
60533 2003-09-27  Paul Eggert  <eggert@twinsun.com>
60534
60535         * lib/minmax.h (MIN, MAX)
60536         [__STDC__ && defined __GNUC__ && __GNUC__ >= 2]:
60537         Omit the special code that used __typeof__, since we worry that
60538         it could be more trouble than it's worth.  See:
60539         http://mail.gnu.org/archive/html/bug-gnulib/2003-01/msg00090.html
60540         http://mail.gnu.org/archive/html/bug-gnulib/2003-01/msg00095.html
60541
60542         * lib/free.c: New file.
60543
60544 2003-09-27  Oskar Liljeblad  <oskar@osk.mine.nu>
60545
60546         Trivial fixes to Makefile.am parts of module listings.
60547         * modules/strstr: Append strstr.h to lib_SOURCES.
60548         * modules/strcase: Likewise, for strcase.h.
60549
60550 2003-09-27  Karl Berry  <karl@gnu.org>
60551
60552         * config/mkinstalldirs: update from automake.
60553
60554 2003-09-26  Paul Eggert  <eggert@twinsun.com>
60555
60556         * lib/error.c (SIZE_MAX) [!defined SIZE_MAX]: Define.
60557         (error_tail): Do not loop, reallocating temporary buffer, since
60558         the output cannot contain more wide characters than the input
60559         contains bytes, the size must be big enough already.  This avoids
60560         one potential size overflow calculation.  Check for size overflow
60561         when calculating temporary buffer size.  Free temporary buffer
60562         when done, if it was allocated with malloc; this plugs a memory
60563         leak.  Remove casts from void * to pointers, that are no longer
60564         needed now that we're assuming C89 or better.
60565
60566         Merge error changes from glibc.
60567
60568         * lib/error.c, error.h: Update copyright notice header to match glibc.
60569         * lib/error.c [defined _LIBC]: Include <errno.h>, <bits/libc-lock.h>.
60570         (error, error_at_line) [defined _LIBC && defined __libc_ptf_call]:
60571         Disable cancellation while printing error.
60572         * lib/error.h: Prepend __ to parameter names.
60573
60574 2003-09-26  Jim Meyering  <jim@meyering.net>
60575
60576         * lib/error.c (error_tail): Move some declarations
60577         into inner scope where the local variables are used.
60578
60579 2003-09-26  Bruno Haible  <bruno@clisp.org>
60580
60581         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Add comments about the AIX
60582         stpncpy().
60583         Don't define stpncpy through config.h; it's now done through stpncpy.h.
60584
60585 2003-09-26  Bruno Haible  <bruno@clisp.org>
60586
60587         * lib/stpncpy.h (gnu_stpncpy): New declaration.
60588         (stpncpy): Define as alias for gnu_stpncpy.
60589         * lib/stpncpy.c [!_LIBC]: Define gnu_stpncpy, not stpncpy.
60590
60591 2003-09-25  Simon Josefsson  <jas@extundo.com>
60592
60593         * lib/xgetdomainname.h: New file.
60594         * lib/xgetdomainname.c: New file.
60595
60596 2003-09-25  Simon Josefsson  <jas@extundo.com>
60597             Bruno Haible  <bruno@clisp.org>
60598
60599         * modules/getdomainname: New file.
60600         * modules/xgetdomainname: New file.
60601         * MODULES.html.sh (func_all_modules): Add getdomainname,
60602         xgetdomainname.
60603
60604 2003-09-25  Simon Josefsson  <jas@extundo.com>
60605             Bruno Haible  <bruno@clisp.org>
60606
60607         * m4/getdomainname.m4: New file.
60608
60609 2003-09-25  Simon Josefsson  <jas@extundo.com>
60610             Bruno Haible  <bruno@clisp.org>
60611
60612         * lib/getdomainname.h: New file.
60613         * lib/getdomainname.c: New file.
60614
60615 2003-09-25  Karl Berry  <karl@gnu.org>
60616
60617         * lib/argp-fmtstream.c, argp-help.c: update from libc.
60618
60619 2003-09-25  Karl Berry  <karl@gnu.org>
60620
60621         * config/install-sh: update from automake.
60622
60623 2003-09-25  Bruno Haible  <bruno@clisp.org>
60624
60625         * modules/version-etc-2: New file, from modules/version-etc with
60626         modifications.
60627         * MODULES.html.sh (func_all_modules): Add version-etc-2.
60628
60629 2003-09-25  Bruno Haible  <bruno@clisp.org>
60630
60631         * lib/version-etc-2.h: New file, from version-etc.h with modifications.
60632         * lib/version-etc-2.c: New file, from version-etc.c with modifications.
60633
60634 2003-09-24  Simon Josefsson  <jas@extundo.com>
60635
60636         * modules/xgethostname: Add xgethostname.h.
60637
60638 2003-09-24  Paul Eggert  <eggert@twinsun.com>
60639
60640         * lib/linebuffer.c (freebuffer): Don't free the argument, just
60641         the buffer associated with the argument.  Bug reported by
60642         Simon Josefsson.
60643
60644 2003-09-24  Paul Eggert  <eggert@twinsun.com>
60645
60646         * README: Document assumptions that 'int' is at least 32 bits
60647         wide, that integer arithmetic is 2's complement without overflow,
60648         that there are no holes in integer values, that adding sizes of
60649         two nonoverlapping objects can't overflow, and that all-bits-zero
60650         yields scalar zero.  Fix spelling and capitalization typos.
60651
60652 2003-09-19  Karl Berry  <karl@gnu.org>
60653
60654         * lib/argp.h: update from libc.
60655
60656 2003-09-17  Paul Eggert  <eggert@twinsun.com>
60657
60658         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Call AC_BEFORE first,
60659         to avoid spurious warnings like "AC_RUN_IFELSE was called before
60660         gl_USE_SYSTEM_EXTENSIONS" from autoreconf.
60661
60662 2003-09-17  Paul Eggert  <eggert@twinsun.com>
60663
60664         * gnulib-tool: Use "test -h", not "test -L", for portability
60665         to Solaris 8 /bin/sh.  (This bug is fixed in Solaris 9.)
60666         (tags_regexp): Remove, since \| doesn't conform to POSIX.
60667         (sed_extract_prog): Issue s commands one-by-one, rather than
60668         using \| in one s command.
60669
60670 2003-09-16  Paul Eggert  <eggert@twinsun.com>
60671
60672         * lib/linebuffer.c (readlinebuffer): Return NULL immediately upon
60673         input error, instead of returning NULL the next time we are called
60674         (and therefore losing track of errno).
60675
60676 2003-09-16  Bruno Haible  <bruno@clisp.org>
60677
60678         * gnulib-tool (func_create_testdir): Warn about duplicated
60679         dependencies.
60680
60681 2003-09-15  Paul Eggert  <eggert@twinsun.com>
60682
60683         * modules/argmatch, modules/fatal, modules/obstack,
60684         modules/xalloc, modules/xgethostname: Sort dependencies by
60685         importance, not alphabetically.
60686
60687 2003-09-15  Paul Eggert  <eggert@twinsun.com>
60688
60689         * lib/getndelim2.c (getndelim2): Don't trash errno when a read
60690         fails, so that the caller gets the proper errno.
60691
60692         * lib/readutmp.c (read_utmp): Likewise.
60693         Check for fstat error.  Close stream and free storage
60694         when failing.
60695
60696 2003-09-14  Karl Berry  <karl@gnu.org>
60697
60698         * config/srclist.txt (strdup.c): disable for c89 changes.
60699
60700 2003-09-14  Jim Meyering  <jim@meyering.net>
60701
60702         * lib/getloadavg.c: Correct cpp indentation.
60703         * lib/strdup.c: Likewise.
60704         * lib/vasnprintf.c: Likewise.
60705
60706 2003-09-14  Bruno Haible  <bruno@clisp.org>
60707
60708         * modules/fwriteerror: New file.
60709         * MODULES.html.sh (func_all_modules): Add fwriteerror.
60710
60711 2003-09-14  Bruno Haible  <bruno@clisp.org>
60712
60713         * lib/fwriteerror.h: New file.
60714         * lib/fwriteerror.c: New file.
60715
60716 2003-09-12  Paul Eggert  <eggert@twinsun.com>
60717
60718         * modules/argmatch, modules/exitfail, modules/fatal, modules/obstack,
60719         modules/xgethostname, modules/xalloc: Depend on exit.
60720
60721 2003-09-12  Paul Eggert  <eggert@twinsun.com>
60722
60723         * m4/error.m4: Require AC_FUNC_STRERROR_R rather than invoking it.
60724
60725         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Require AC_AIX
60726         and AC_MINIX, too, so that their extensions are available.
60727
60728         * m4/prereq.m4 (jm_PREREQ_ADDEXT): Remove.  All uses removed.
60729         This macro has been superseded by gl_BACKUPFILE.
60730
60731         More patches to assume C89 or better.
60732
60733         * m4/error.m4 (gl_ERROR): Don't check for vprintf.
60734
60735         * m4/check-decl.m4 (jm_CHECK_DECLS): Include <string.h>, <stdlib.h>
60736         unconditionally.
60737         * m4/closeout.m4 (gl_CLOSEOUT): Don't check for stdlib.h.
60738         * m4/gettimeofday.m4 (AC_FUNC_GETTIMEOFDAY_CLOBBER):
60739         Include <string.h>, <stdlib.h> unconditionally.
60740         * m4/lstat.m4 (gl_PREREQ_LSTAT): Don't check for stdlib.h, free.
60741         * m4/readdir.m4 (GL_FUNC_READDIR): Don't check for string.h.
60742         * m4/readutmp.m4 (gl_PREREQ_READUTMP): Don't check for standard C
60743         headers or for string.h.
60744         * m4/strtoumax.m4 (gl_PREREQ_STRTOUMAX): Don't check for stdlib.h
60745         or strtoul.
60746
60747         * m4/mkstemp.m4 (jm_PREREQ_TEMPNAME): Do not require standard C
60748         headers.
60749         * m4/strdup.m4 (gl_PREREQ_STRDUP): Likewise.
60750         * m4/userspec.m4 (gl_USERSPEC): Likewise.
60751         * m4/xalloc.m4 (gl_PREREQ_XMALLOC): Likewise.
60752         * m4/xstrtod.m4 (gl_XSTRTOD): Likewise.
60753         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Likewise.
60754         * m4/strftime.m4 (_jm_STRFTIME_PREREQS): Don't check for limits.h,
60755         memcpy, memset.
60756         (jm_FUNC_GNU_STRFTIME): Don't require standard C headers.
60757         * m4/strtod.m4 (gl_FUNC_STRTOD): Do not check for float.h.
60758         * m4/strtoimax.m4 (gl_PREREQ_STRTOIMAX): Do not check for stdlib.h,
60759         strtol.
60760         * m4/strtol.m4 (gl_FUNC_STRTOL): Do not check for limits.h.
60761         * m4/userspec.m4 (gl_USERSPEC): Do not check for string.h.
60762         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Do not check for string.h, strtol,
60763         strtoul.
60764
60765 2003-09-12  Paul Eggert  <eggert@twinsun.com>
60766
60767         * lib/argmatch.c, fatal.c, xgethostname.c, xmalloc.c: Include exit.h.
60768         * lib/obstack.c [!defined _LIBC]: Likewise.
60769         * lib/argmatch.c (EXIT_FAILURE): Remove; now done by exit.h
60770         * lib/exitfail.c, fatal.c, xgethostname.c, xmalloc.c: Likewise.
60771         * lib/exitfail.c: Don't include stdlib.h; no longer needed.
60772
60773         More changes to assume C89 or better.
60774
60775         * lib/error.c (error_tail): Assume vprintf.
60776
60777         * lib/argmatch.c (getenv): Remove decl.
60778         * lib/progreloc.c (get_full_program_name): Define via prototype.
60779         * lib/setenv.c (clearenv): Likewise.
60780         * lib/stpncpy.c: Do not include <string.h> or <sys/types.h>; not
60781         needed.
60782         * lib/strdup.c: Include <stdlib.h>, <string.h> unconditionally.
60783         (malloc, memcpy): Remove decls.
60784         * lib/strftime.c (HAVE_LIMITS_H, STDC_HEADERS) [defined _LIBC]: Remove.
60785         (HAVE_MEMCPY) [defined emacs && !defined HAVE_BCOPY]: Remove.
60786         Include <limits.h>, <stddef.h>, <stdlib.h>, <string.h> unconditionally.
60787         (memcpy): Remove macro.
60788         (MEMCPY) [!defined COMPILE_WIDE]: Define to memcpy unconditionally.
60789         (__P): Remove.  All uses removed.
60790         (PTR): Remove.  All uses changed to void *.
60791         (CHAR_BIT, NULL): Remove.
60792         (spaces, zeros, memset_space, memset_zero)
60793         [!defined memset && !defined HAVE_MEMSET && !defined _LIBC]:
60794         Remove.
60795         (LOCALE_PARAM, LOCALE_PARAM_DECL): Remove.
60796         (memcpy_lowcase, memcpy_uppcase, tm_diff, iso_week_days):
60797         Define with prototype.
60798         Remove now-unnecessary prototype decl.
60799         (extra_args_spec): Assume ANSI C.  All uses changed.
60800         (extra_args_spec_iso): Remove.
60801         (my_strftime, emacs_strftimeu): Define via prototype.
60802         * lib/strtod.c: Include <float.h>, <stdlib.h>, <string.h>
60803         unconditionally.
60804         (DBL_MAX, DBL_MIN, HUGE_VAL, NULL): Remove decls.
60805         * lib/strtoimax.c: Include <stdlib.h> unconditionally.
60806         (strtoul, strtol): Remove decls.
60807         * lib/strtol.c (STDC_HEADERS, HAVE_LIMITS_H, NULL, ULONG_MAX,
60808         LONG_MAX): Remove.
60809         Include <limits.h>, <stddef.h>, <stdlib.h>, <string.h> unconditionally.
60810         (LOCALE_PARAM_DECL): Remove.  All uses changed to LOCALE_PARAM_PROTO.
60811         (LOCALE_PARAM_PROTO): New macro.
60812         (INTERNAL, INTERNAL1, WEAKNAME): Assume ANSI C, not K&R.
60813         (INTERNAL (strtol), strtol): Define with a prototype.
60814         (PARAMS): Remove.  All uses removed.
60815         * lib/tempname.c: Include <string.h> unconditionally.
60816         * lib/userspec.c: Include <stdlib.h>, <string.h> unconditionally.
60817         * lib/xgethostname.c (main): Define with a prototype.
60818         * lib/xmalloc.c: Include "xalloc.h" first, to check interface.
60819         Include <stdlib.h> unconditionally.
60820         (calloc, malloc, realloc, free): Remove decls.
60821         * lib/xstrtod.c: Include "xstrtod.h" first, to check interface.
60822         Include <stdlib.h> unconditionally.  Sort include file names.
60823         (strtod): Remove.
60824         (xstrtod): Define with a prototype.
60825         * lib/xstrtol.c: Include <stdlib.h>, <string.h> unconditionally.
60826         (strtol, strtoul): Remove decls.
60827
60828 2003-09-11  Paul Eggert  <eggert@twinsun.com>
60829
60830         More patches to assume C89 or better.
60831         * m4/strndup.m4 (gl_PREREQ_STRNDUP): Remove STDC_HEADERS check.
60832         * m4/strnlen.m4 (gl_PREREQ_STRNLEN): Don't check for memory.h,
60833         string.h, memchr, STDC_HEADERS.
60834
60835 2003-09-11  Paul Eggert  <eggert@twinsun.com>
60836
60837         * lib/strndup.c: Don't include <stdio.h>, <sys/types.h>.
60838         Include <stdlib.h>, <string.h> unconditionally.
60839         Remove now-unnecessary cast to char *.
60840         * lib/strnlen.c: Include <string.h> unconditionally.
60841         * lib/yesno.c (yesno): Define with a prototype.
60842
60843 2003-09-11  Bruno Haible  <bruno@clisp.org>
60844
60845         * config/srclist.txt (setenv.c, unsetenv.c): Disable for the moment.
60846
60847 2003-09-10  Jim Meyering  <jim@meyering.net>
60848
60849         * lib/error.c: Correct indentation of cpp directives.
60850
60851 2003-09-10  Bruno Haible  <bruno@clisp.org>
60852
60853         * m4/strcspn.m4 (gl_PREREQ_STRCSPN): Remove <string.h> check.
60854         * m4/strpbrk.m4 (gl_PREREQ_STRPBRK): Remove <string.h> check.
60855         * m4/strstr.m4 (gl_PREREQ_STRSTR): Remove <string.h> check.
60856         * m4/unicodeio.m4 (gl_UNICODEIO): Remove <string.h> check.
60857         * m4/setenv.m4 (gl_PREREQ_SETENV, gl_PREREQ_UNSETENV): Remove
60858         <stdlib.h> and <string.h> checks.
60859         * m4/xreadlink.m4 (gl_XREADLINK): Remove <stdlib.h> check.
60860         * m4/yesno.m4 (gl_YESNO): Remove <stdlib.h> check.
60861
60862 2003-09-10  Bruno Haible  <bruno@clisp.org>
60863
60864         * lib/strcspn.c: Include <string.h> unconditionally.
60865         * lib/strpbrk.c: Include <string.h> unconditionally.
60866         * lib/strstr.c: Include <string.h> unconditionally.
60867         * lib/unicodeio.c: Include <string.h> unconditionally.
60868         * lib/setenv.c: Include <stdlib.h> and <string.h> unconditionally.
60869         * lib/unsetenv.c: Likewise.
60870         * lib/xreadlink.c: Include <stdlib.h> unconditionally.
60871         * lib/yesno.c: Include <stdlib.h> unconditionally.
60872         (rpmatch): Add prototype.
60873
60874 2003-09-09  Paul Eggert  <eggert@twinsun.com>
60875
60876         More patches to assume C89 or better.
60877         * m4/getcwd.m4 (AC_FUNC_GETCWD_NULL): Don't check for stdlib.h.
60878         * m4/getopt.m4 (gl_GETOPT): Don't check for string.h.
60879         * m4/getugroups.m4 (gl_GETUGROUPS): Do not check for standard C headers
60880         or for string.h.
60881         * m4/getusershell.m4 (gl_PREREQ_GETUSERSHELL): Do not check for
60882         stdlib.h.
60883         * m4/group-member.m4 (gl_PREREQ_GROUP_MEMBER): Do not require standard
60884         C headers.
60885         * m4/hard-locale.m4 (gl_HARD_LOCALE): Do not check for stdlib.h,
60886         string.h.
60887         * m4/hash.m4 (gl_HASH): Do not check for stdlib.h, malloc, free.
60888         * m4/human.m4 (gl_HUMAN): Do not check for stdlib.h, string.h, getenv.
60889         * m4/idcache.m4 (gl_IDCACHE): Do not check for standard C headers,
60890         or for string.h.
60891         * m4/long-options.m4 (gl_LONG_OPTIONS): Do not check for stdlib.h.
60892         * m4/makepath.m4 (gl_MAKEPATH): Do not check for string.h or standard
60893         C headers.
60894         * m4/md5.m4 (gl_MD5): Don't check for limits.h, standard C headers,
60895         memcpy.
60896         * m4/sha.m4 (gl_SHA): Don't check for standard Cheaders, memcpy.
60897         * m4/memchr.m4 (jm_PREREQ_MEMCHR): Don't check for limits.h, stdlib.h.
60898         * m4/memcmp.m4 (gl_PREREQ_MEMCMP): Don't check for string.h.
60899         * m4/memcoll.m4 (gl_MEMCOLL): Likewise.
60900         * m4/memrchr.c (gl_PREREQ_MEMRCHR): Don't check for limits.h.
60901         * m4/mkdir-slash.m4 (gl_PREREQ_MKDIR): Don't check for stdlib.h,
60902         string.h, free.
60903         * m4/mktime.m4 (gl_PREREQ_MKTIME): Don't check for standard C headers.
60904         * m4/modechange.m4 (gl_MODECHANGE): Don't check for standard C headers.
60905         * m4/mountlist.m4 (gl_PREREQ_MOUNTLIST_EXTRA): Don't check for standard
60906         C headers, or for string.h.
60907         * m4/obstack.m4 (gl_OBSTACK): Don't check for stddefe.h, string.h.
60908         (gl_PREREQ_OBSTACK): Don't check for stdlib.h.
60909         * m4/path-concat.m4 (gl_PATH_CONCAT): Don't check for standard C
60910         headers, memory.h, stdlib.h, string.h, strings.h.
60911         * m4/posixtm.m4 (gl_POSIXTM): Don't check for stdlib.h, string.h.
60912         * m4/posixver.m4 (gl_POSIXVER): Don't check for getenv.
60913         * m4/putenv.m4 (gl_PREREQ_PUTENV): Don't check for string.h, memcpy,
60914         strchr.
60915         * m4/readtokens.m4 (gl_READTOKENS): Don't check for standard C
60916         headers, memory.h, string.h.
60917         * m4/regex.m4 (jm_PREREQ_REGEX): Do not check for limits.h, string.h.
60918         * m4/rename.m4 (gl_PREREQ_RENAME): Do not check for stdlib.h, string.h,
60919         free.
60920         * m4/rpmatch.m4 (gl_PREREQ_RPMATCH): Don't check for standard C
60921         headers.
60922         * m4/same.m4 (gl_SAME): Don't check for stdlib.h, string.h, free.
60923         * m4/save-cwd.m4 (gl_SAVE_CWD): Don't check for standard C headers.
60924         * m4/savedir.m4 (gl_SAVEDIR): Don't check for standard C headers.
60925         * m4/strchrnul.m4 (gl_PREREQ_STRCHRNUL): Don't check for string.h.
60926         * m4/xgetcwd.m4 (gl_XGETCWD): Don't check for stdlib.h.
60927
60928 2003-09-09  Paul Eggert  <eggert@twinsun.com>
60929
60930         More K&R removal.
60931
60932         * lib/acosl.c (main): Use a prototype.
60933         * lib/asinl.c, cosl.c, expl.c, frexpl.c, ldexpl.c, sinl.c,
60934         tanl.c: Likewise.
60935
60936         * lib/getloadavg.c (getloadavg, main): Define via prototypes.
60937
60938         * lib/getopt.h (struct option.name): Assume C89, and use 'const'.
60939         (getopt, etopt_long, getopt_long_only, _getopt_internal)
60940         [defined __GNU_LIBRARY__]: Assume C89, so we can always declare
60941         with a prototype.
60942         * lib/getopt.c (const): Remove macro.
60943         Include <string.h> unconditionally.
60944         (my_index): Remove; all uses changed to strchr.
60945         (strlen): Remove decl.
60946         (exchange): Remove forward decl; no longer needed.
60947         (exchange, _getopt_initialize, _getopt_internal, getopt, main):
60948         Define with prototype.
60949         * lib/getopt1.c (const): Remove macro.
60950         (getopt_long, getopt_long_only, main): Define with prototype.
60951
60952         * lib/getugroups.c: Include <string.h> unconditionally.
60953
60954         * lib/getusershell.c: Include <stdlib.h> unconditionally.
60955         (getusershell, setusershell, endusershell, readname, main):
60956         Define with prototypes.
60957
60958         * lib/group-member.c: Include group-member.h first.
60959         Include <stdlib.h> unconditionally.
60960
60961         * lib/hard-locale.c: Include hard-locale.h first.
60962         Include <stdlib.h>, <string.h> unconditionally.
60963
60964         * lib/hash.c (free, malloc): Remove decls.
60965         Include <stdlib.h> unconditionally.
60966
60967         * lib/human.c: Include <stdlib.h>, <string.h> unconditionally.
60968         (getenv): Do not declare.
60969
60970         * lib/idcache.c: Include <string.h> unconditionally.
60971
60972         * lib/long-options.c: Include long-options.h first, to test interface.
60973         Include <stdlib.h> unconditionally.
60974
60975         * lib/makepath.c: Include makepath.h first, to test interface.
60976         Include <stdlib.h> and <string.h> unconditionally.
60977
60978         * lib/linebuffer.c: Include <stdlib.h>.
60979         (free): Remove decl.
60980
60981         * lib/malloc.c: Include <stdlib.h>, for malloc; don't bother with
60982         stddef.h. rpl_malloc returns void *, not char *.
60983         * lib/realloc.c (rpl_realloc): Likewise.  Also, define with a
60984         prototype.
60985
60986         * lib/md5.h: Include <limits.h> unconditionally.
60987         (UINT_MAX_32_BITS): Don't worry about non-__STDC__ case.
60988         (__P): Remove; all uses removed.
60989         * lib/md5.c: Include "md5.h" first.
60990         (md5_init_ctx, md5_read_ctx, md5_finish_ctx, md5_stream,
60991         md5_buffer, md5_process_bytes, md5_process_block):
60992         Define with prototypes.
60993         * lib/sha.h (__P): Remove all uses.  (It wasn't defined??)
60994         * lib/sha.c: Include "sha.h" first.
60995         Include <stdlib.h>, <string.h> unconditionally.
60996
60997         * lib/memchr.c (__ptr_t): Remove; all uses changed to void *.
60998         * lib/memcmp.c (__ptr_t): Likewise.
60999         * lib/memrchr.c (__ptr_t): Likewise.
61000         * lib/memchr.c, memcmp.c, memcoll.c, memrchr.c:
61001         Include <string.h> unconditionally.
61002         * lib/memchr.c, memrchr.c: Include <limits.h> unconditionally.
61003         * lib/memchr.c: Include <stdlib.h> unconditionally.
61004         * lib/memchr.c (LONG_MAX): Remove.
61005         * lib/memrchr.c (LONG_MAX): Likewise.
61006         * lib/memchr.c (__memchr): Define via a prototype.
61007         * lib/memrchr.c (__memrchr): Likewise.
61008         * lib/memcmp.c (__P): Remove, and remove all uses.
61009         (memcmp_bytes, memcmp_common_alignment, memcmp_not_common_alignment):
61010         Remove forward decls; no longer needed.
61011         * lib/memcpy.c, memmove.c, memset.c: Include <stddef.h>.
61012         Use types required by C89 in prototype.
61013
61014         * lib/mkdir.c: Include <stdlib.h>, <string.h> unconditionally.
61015         * lib/savedir.c: Likewise.
61016         * lib/mkdir.c (free): Remove decl.
61017         * lib/rmdir.c (rmdir): Define with a prototype.
61018         * lib/savedir.c: Include savedir.h first, to test interface.
61019
61020         * lib/mktime.c (STDC_HEADERS): Remove.
61021         Include <stdlib.h>, <string.h> unconditionally.
61022
61023         * lib/modechange.c: Include <stdlib.h> unconditionally.
61024         (malloc): Remove decl.
61025
61026         * lib/mountlist.c: Include <stdlib.h>, <string.h> unconditionally.
61027         (free): Remove decl.
61028
61029         * lib/obstack.h (PTR_INT_TYPE) [!defined __PTRDIFF_TYPE__]:
61030         Define to ptrdiff_t, without bothering to check HAVE_STDDEF_H.
61031         (This type really should be intptr_t, but that's a C99ism.)
61032         (_obstack_memcpy): Remove: all uses changed to memcpy.
61033         Include <string.h> unconditionally.
61034         (struct obstack): Assume __STDC__ for types of members
61035         chunkfun, freefun, extra_arg.
61036         (_obstack_newchunk, _obstack_free, _obstack_begin, _obstack_begin_1,
61037         _obstack_memory_used, obstack_alloc_failed_handler, obstack_init,
61038         obstack_begin, obstack_specify_allocation,
61039         obstack_specify_allocation_with_arg, obstack_chunkfun,
61040         obstack_freefun, obstack_free) [! (defined __STDC__ && __STDC__)]:
61041         Remove unprototyped decls and the macros that use them.
61042         * lib/obstack.c (POINTER): Remove.  All uses changed to void *.
61043         (obstack_alloc_failed_handler, CALL_CHUNKFUN, CALL_FREEFUN,
61044         _obstack_begin, _obstack_begin_1, _obstack_allocated_p)
61045         (defined __STDC__ && __STDC__)]:
61046         Remove nonprototyped code.
61047         Include <stdlib.h> unconditionally.
61048         (_obstack_begin, _obstack_begin_1, _obstack_newchunk,
61049         _obstack_allocated_p, _obstack_free, obstack_free,
61050         _obstack_memory_used, print_and_abort):
61051         Define using prototypes.
61052         (obstack_1grow, obstack_1grow_fast, obstack_alloc, obstack_base,
61053         obstack_blank, obstack_blank_fast, obstack_copy, obstack_copy0,
61054         obstack_finish, obstack_grow, obstack_grow0, obstack_make_room,
61055         obstack_next_free, obstack_object_size, obstack_room) [0]:
61056         Remove unused, unprototyped code.
61057
61058         * lib/path-concat.c: Include <stdlib.h>, <string.h> unconditionally.
61059
61060         * lib/physmem.c (physmem_total, physmem_available, main): Define
61061         with prototypes.
61062
61063         * lib/posixtm.c: Include <stdlib.h>, <string.h> unconditionally.
61064         (main): Define with a prototype.
61065
61066         * lib/posixver.c (getenv): Remove decl.
61067
61068         * lib/putenv.c (malloc): Returns void *, not char *.
61069         Include <string.h> unconditionally.
61070         (strchr, memcpy, NULL): Do not define.
61071
61072         * lib/readtokens.c: Include readtokens.h first, to test interface.
61073         Include <stdlib.h>, <string.h> unconditionally.
61074         (init_tokenbuffer): Define with a prototype.
61075
61076         * lib/regex.c (PARAMS): Remove.  All uses removed.
61077         All uses of _RE_ARGS removed, too.
61078         Include <stddef.h>, <stdlib.h>, <string.h>, <limits.h>
61079         unconditionally.
61080         (bzero): Assume memset exists.
61081         (memcmp, memcpy, NULL): Remove.
61082         (SIGN_EXTEND_CHAR): Remove; all uses replaced by casts to signed
61083         char, or assignments to local vars of type signed char.
61084         (init_syntax_once, PREFIX(extract_number_and_incr),
61085         PREFIX(print_partial_compiled_pattern),
61086         PREFIX(print_compiled_pattern), PREFIX(print_double_string),
61087         convert_mbs_to_wcs, print_fastmap, re_set_syntax,
61088         PREFIX(regex_grow_registers), PREFIX(regex_compile),
61089         PREFIX(store_op1), PREFIX(store_op2), PREFIX(insert_op1),
61090         PREFIX(insert_op2), PREFIX(at_begline_loc_p),
61091         PREFIX(at_endline_loc_p), group_in_compile_stack, insert_space,
61092         wcs_compile_range, byte_compile_range, truncate_wchar,
61093         PREFIX(re_compile_fastmap), re_compile_fastmap, re_set_registers,
61094         re_search, re_search_2, PREFIX(re_search_2), re_match, re_match_2,
61095         count_mbs_length, wcs_re_match_2_internal,
61096         byte_re_match_2_internal, PREFIX(group_match_null_string_p),
61097         PREFIX(alt_match_null_string_p),
61098         PREFIX(common_op_match_null_string_p), PREFIX(bcmp_translate),
61099         re_compile_pattern, re_comp, re_exec, regcomp, regexec, regerror,
61100         regfree, PREFIX(extract_number)): Define with prototype.  Remove
61101         now-unnecessary declaration, if any.
61102         (byte_compile_range, PREFIX(regex_compile), re_comp, re_exec,
61103         regcomp, regexec):
61104         Remove now-unnecessary casts among pointer types.
61105         * lib/regex.h (_RE_ARGS): Remove.  All uses removed.
61106
61107         * lib/rename.c: Include <stdlib.h>, <string.h> unconditionally.
61108         (free): Remove decl.
61109
61110         * lib/rpmatch.c: Include <stdlib.h> unconditionally.
61111
61112         * lib/same.c: Include <stdlib.h>, <string.h> unconditionally.
61113         (free): Remove decl.
61114
61115         * lib/save-cwd.c: Include <stdlib.h> unconditionally.
61116         * lib/xgetcwd.c: Likewise.
61117
61118         * lib/stat.c: Include <stdlib.h>, <string.h> unconditionally.
61119         (free): Remove decl.
61120
61121         * lib/strchrnul.c (strchrnul): Define with a prototype.
61122         Fix bug: c_in was not converted to char before searching.
61123
61124         The following changes are not K&R related:
61125
61126         * lib/group-member.h: Include <sys/types.h>, so that this file is
61127         self-contained.
61128         * lib/makepath.h: Likewise.
61129
61130         * lib/getusershell.c (readname, default_index, line_size, readname):
61131         Use size_t, not int, for sizes.
61132         (readname): If the size overflows, report an error instead of
61133         looping forever.
61134
61135 2003-09-09  Paul Eggert  <eggert@twinsun.com>
61136
61137         * config/srclist.txt: Do not get getopt.h, getopt1.c, or regex.h from
61138         libc.
61139
61140 2003-09-09  Paul Eggert  <eggert@twinsun.com>
61141
61142         * README: New section: portability guidelines.
61143
61144 2003-09-09  Derek Robert Price  <derek@ximbiot.com>
61145
61146         * m4/getndelim2.m4 (gl_PREREQ_GETNDELIM2): Assume stdlib.h per the
61147         C89 spec.
61148
61149 2003-09-09  Derek Robert Price  <derek@ximbiot.com>
61150
61151         * lib/getndelim2.c: Assume stdlib.h per the C89 spec.
61152
61153 2003-09-08  Paul Eggert  <eggert@twinsun.com>
61154
61155         Assume C89 or better; remove K&R cruft.
61156         A few of these changes were first proposed by Derek Robert Price
61157         in <http://mail.gnu.org/archive/html/bug-gnulib/2003-07/msg00105.html>.
61158
61159         * lib/addext.c: Include <string.h> unconditionally.
61160         * lib/backupfile.c: Include <string.h>, <stdlib.h> unconditionally.
61161         Don't declare getenv or malloc.
61162
61163         * lib/alloca.c: Include <string.h>, <stdlib.h> unconditionally.
61164         (POINTER_TYPE, pointer): Remove; all uses changed to void *.
61165         (NULL): Remove.
61166         (find_stack_direction, alloca): Use prototypes.
61167
61168         * lib/atexit.c (atexit): Define using a prototype.
61169
61170         * lib/basename.c, dirname.c, stripslash.c:
61171         Include <string.h> unconditionally.
61172
61173         * lib/bcopy.c: Include <stddef.h>.
61174         (bcopy): Define with prototype, using 'const' and 'void' and 'size_t'.
61175
61176         * lib/canon-host.c: Include <stdlib.h>, <string.h> unconditionally.
61177
61178         * lib/error.h (error, error_at_line, error_print_progname)
61179         [! (defined (__STDC__) && __STDC__)]: Remove decls.
61180         * lib/error.c: Include error.h first, to check interface.
61181         Include <stdarg.h>, <stdlib.h>, <string.h> unconditionally.
61182         (VA_START): Remove; all uses changeed to va_start.
61183         (exit, strerror): Remove decls.
61184         (error_print_progname): Prototype uncondionally.
61185         Don't include <errno.h>; no longer needed.
61186         (private_strerror): Remove.
61187         (error_tail): Always define.
61188         (error, error_at_line): Assume C89 or better; always use prototypes.
61189         * lib/fatal.c: Include "fatal.h" first, to test interface.
61190         Include <stdarg.h>, <stdlib.h>, <string.h> unconditionally.
61191         (VA_START): Remove; all uses changed to va_start.
61192         [! (HAVE_VPRINTF || HAVE_DOPRNT || _LIBC)]: Remove support for
61193         this case.
61194         (exit): Remove decl.
61195         (fatal): Prototype unconditionally.  Assume va_start works.
61196         Abort at end, to pacify gcc.
61197
61198         * lib/euidaccess.c (main): Define with a prototype.
61199
61200         * lib/exclude.c: Include <stdlib.h>, <string.h> unconditionally.
61201
61202         * lib/exitfail.c: Include <stdlib.h> unconditionally.
61203
61204         * lib/fnmatch_.h (__P): Remove.  All uses changed to assume
61205         prototypes.
61206         * lib/fnmatch.c: Include fnmatch.h first, to test interface.
61207         Include <string.h>, <stddef.h>, <stdlib.h> unconditionally.
61208         (getenv): Remove decl.
61209         (fnmatch): Define using a prototype.
61210         * lib/fnmatch_loop.c (FCT): Remove forward decl; no longer needed.
61211         (FCT): Define using a prototype.
61212
61213         * lib/getdate.y: Include <stdlib.h>, <string.h> unconditionally.
61214
61215         * lib/gethostname.c: Include <stddef.h>.
61216         (gethostname): Define with prototype.  Length is size_t, not int.
61217
61218 2003-09-08  Paul Eggert  <eggert@twinsun.com>
61219
61220         Assume C89 or better; remove K&R cruft.
61221         * m4/alloca.m4 (gl_PREREQ_ALLOCA): Don't check for stdlib.h, string.h.
61222         * m4/backupfile.m4 (gl_BACKUPFILE): Don't check for stdlib.h,
61223         string.h, getenv, malloc.
61224         * m4/dirname.m4 (gl_DIRNAME): Don't check for string.h or C standard
61225         headers.
61226         * m4/canon-host.m4 (gl_CANON_HOST): Don't check for string.h, stdlib.h.
61227         * m4/error.m4 (jm_PREREQ_ERROR): Do not require STDC headers, and
61228         do not check for strerror.
61229         * m4/exclude.m4: Do not check for stdlib.h, string.h, strings.h.
61230         * m4/exitfail.m4 (gl_EXITFAIL): Do not check for stdlib.h.
61231         * m4/fatal.m4 (gl_FATAL): Do not require STDC headers, and
61232         do not check for doprnt or vprintf.
61233         * m4/fnmatch.m4 (gl_PREREQ_FNMATCH_EXTRA): Remove.  All uses removed.
61234         * m4/getdate.m4 (gl_GETDATE): Don't check for stdlib.h or string.h.
61235
61236 2003-09-08  Paul Eggert  <eggert@twinsun.com>
61237
61238         * lib/getversion.c: Remove; was migrated to backupfile.c in 1997.
61239         getversion.c should have been removed then, but was accidentally
61240         preserved.
61241
61242         * lib/utime.c [!HAVE_UTIMES_NULL]: Include <sys/stat.h>, <fcntl.h>.
61243         (utime_null): Fix typo: 'st' was sometimes called 'sb'.
61244
61245 2003-09-08  Karl Berry  <karl@gnu.org>
61246
61247         * config/config.sub, config.guess, srclistvars.sh: update from savannah
61248                 config, forget about prep.
61249
61250         * config/depcomp, missing: update from automake.
61251
61252 2003-09-07  Paul Eggert  <eggert@twinsun.com>
61253
61254         * modules/time_r: Depend on 'restrict'.  Fix from Simon Josefsson in
61255         <http://mail.gnu.org/archive/html/bug-gnulib/2003-09/msg00028.html>.
61256
61257 2003-09-07  Paul Eggert  <eggert@twinsun.com>
61258
61259         * lib/time_r.c (gmtime_r, localtime_r): Fix silly typo: missing arg to
61260         copy_tm_result.  Bug reported by Simon Josefsson in
61261         <http://mail.gnu.org/archive/html/bug-gnulib/2003-09/msg00028.html>.
61262
61263 2003-09-06  Paul Eggert  <eggert@twinsun.com>
61264
61265         * m4/time_r.m4: New file.
61266         * m4/mktime.m4 (gl_PREREQ_MKTIME): Remove check for limits.h.
61267         * m4/timegm.m4 (gl_FUNC_TIMEGM): Assume that timegm is buggy if mktime
61268         is. Check for timegm declaration.
61269         (gl_PREREQ_TIMEGM): Require gl_FUNC_MKTIME.
61270         Do not check for gmtime_r.
61271         Replace mktime if __mktime_internal does not exist and if mktime
61272         hasn't been replaced already.
61273
61274 2003-09-06  Paul Eggert  <eggert@twinsun.com>
61275
61276         * lib/time_r.c, lib/time_r.h: New files.
61277
61278         * lib/mktime.c (my_mktime_localtime_r): Remove; all uses changed to
61279         __localtime_r.
61280         (__localtime_r) [!defined _LIBC]: New macro.  Include <time_r.h>.
61281         (__mktime_internal) [!defined _LIBC]: Now extern, not static.
61282
61283         * lib/strftime.c (my_strftime_gmtime_r): Remove; all uses changed to
61284         __gmtime_r.
61285         (my_strftime_localtime_r): Remove; all uses changed to __localtime_r.
61286         (__gtime_r, __localtime_r) [!HAVE_TM_GMTOFF]: New macros.
61287         Include <time_r.h>.
61288
61289         * lib/timegm.c: Switch to glibc implementation, with the following
61290         changes:
61291         [defined HAVE_CONFIG_H]: Include <config.h>.
61292         [!defined _LIBC]: Include "timegm.h" rather than <time.h>.
61293         (__mktime_internal) [!defined _LIBC]: New decl.
61294         (__gmtime_r) [!defined _LIBC]: New macro and function.
61295         (timegm): Use a prototype, since gnulib assumes C89.
61296         Do not bother declaring tmp to be const, as it's not really usefu.
61297         * lib/timegm.h: Hoist "#include <time.h>" out of #ifdef.
61298         (timegm): Declare only if HAVE_DECL_TIMEGM.
61299
61300 2003-09-06  Paul Eggert  <eggert@twinsun.com>
61301
61302         * MODULES.html.sh (func_all_modules): Add time_r.
61303         * modules/time_r: New file.
61304         * modules/mktime, modules/strftime, modules/timegm: Depend on time_r.
61305         * modules/timegm: Depend on mktime.  Change maintainer to "all, glibc".
61306
61307 2003-09-03  Paul Eggert  <eggert@twinsun.com>
61308
61309         * lib/human.c (human_readable): Fix bug that rounded 10501 to 10k.
61310         Bug reported by Lute Kamstra in
61311         <http://mail.gnu.org/archive/html/bug-gnulib/2003-09/msg00003.html>.
61312
61313         * lib/getdate.y (relative_time_table): Use tDAY_UNIT for "tomorrow",
61314         "yesterday", "today", and "now" rather than tMINUTE_UNIT.  Of
61315         course with correspondingly smaller numbers for tomorrow and
61316         yesterday.  From Tadayoshi Funaba.  Originally installed into
61317         sh-utils on 1999-08-07, but the patch got lost (I guess during the
61318         coreutils merge?).
61319
61320 2003-08-31  Simon Josefsson  <jas@extundo.com>
61321
61322         * modules/timegm: New file.
61323         * MODULES.html.sh (func_all_modules): Add timegm.
61324
61325 2003-08-31  Simon Josefsson  <jas@extundo.com>
61326
61327         * m4/timegm.m4: New file.
61328
61329 2003-08-31  Simon Josefsson  <jas@extundo.com>
61330
61331         * lib/timegm.h: New file.
61332         * lib/timegm.c: New file.  Based on
61333         wget-1.8.2/src/http.c:mktime_from_utc.
61334
61335 2003-08-31  Karl Berry  <karl@gnu.org>
61336
61337         * lib/argp.h: update from libc.
61338
61339 2003-08-28  Bruno Haible  <bruno@clisp.org>
61340
61341         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Remove AC_DEFINE of fnmatch here.
61342         This avoids havoc on compilers for which '#define fnmatch rpl_fnmatch'
61343         followed by '#define fnmatch fnmatch_posix' gives an error.
61344
61345 2003-08-28  Bruno Haible  <bruno@clisp.org>
61346
61347         * lib/binary-io.h: Undefine O_BINARY before defining it. This avoids a
61348         warning on QNX, which defines O_BINARY to 000000.
61349
61350 2003-08-27  Jim Meyering  <jim@meyering.net>
61351
61352         * m4/mkstemp.m4: Require that the system mkstemp be able to create
61353         70 temporary files, not just 30.  Tru64 V4.0F's mkstemp function
61354         would fail after 32.  Reported by Danny Levinson.  Details here:
61355         http://mail.gnu.org/archive/html/bug-coreutils/2003-08/msg00124.html
61356
61357 2003-08-24  Bruno Haible  <bruno@clisp.org>
61358
61359         * lib/binary-io.h: Include <stdio.h>, to avoid a compilation error when
61360         MSVC7 <stdio.h> is included later.
61361
61362 2003-08-22  Simon Josefsson  <jas@extundo.com>
61363
61364         * modules/strndup (Makefile.am): Add strndup.h to lib_SOURCES.
61365
61366 2003-08-20  Karl Berry  <karl@gnu.org>
61367
61368         * m4/lib-ld.m4: serial 1003 from gettext, no changes besides serial.
61369
61370 2003-08-20  Bruno Haible  <bruno@clisp.org>
61371
61372         * modules/progname: New file.
61373         * MODULES.html.sh (func_all_modules): Add progname.
61374
61375 2003-08-20  Bruno Haible  <bruno@clisp.org>
61376
61377         * lib/progname.h: New file, from GNU gettext.
61378         * lib/progname.c: New file, from GNU gettext.
61379         * lib/progreloc.c: New file, from GNU gettext.
61380
61381 2003-08-19  Jim Meyering  <jim@meyering.net>
61382
61383         * m4/lib-ld.m4: Revert yesterday's change, per Bruno's request here:
61384         http://mail.gnu.org/archive/html/bug-gnulib/2003-08/msg00155.html
61385
61386 2003-08-19  Bruno Haible  <bruno@clisp.org>
61387
61388         * m4/xalloc.m4 (gl_PREREQ_XSTRDUP): Don't check for <string.h> any
61389         more.
61390
61391 2003-08-19  Bruno Haible  <bruno@clisp.org>
61392
61393         * lib/xstrdup.c: Assume <string.h> exists.
61394
61395 2003-08-18  Paul Eggert  <eggert@twinsun.com>
61396
61397         * modules/stdbool: Add BUILT_SOURCES.  Prefer $@ to target name
61398         in makefile rules.
61399
61400 2003-08-18  Jim Meyering  <jim@meyering.net>
61401
61402         * m4/getloadavg.m4: Use [\t ], not [ \t] (where \t is a literal TAB).
61403         * m4/lib-ld.m4: Likewise.
61404
61405 2003-08-18  Jim Meyering  <jim@meyering.net>
61406
61407         * lib/setenv.h: Indent nested cpp directive.
61408         * lib/vasnprintf.c: Remove trailing blanks.
61409
61410 2003-08-17  Simon Josefsson  <jas@extundo.com>
61411
61412         * modules/xstrndup: New file.
61413         * MODULES.html.sh (func_all_modules): Add xstrndup.
61414
61415 2003-08-17  Simon Josefsson  <jas@extundo.com>
61416
61417         * modules/argp: Fix autoconf macro name. Add more dependencies.
61418
61419 2003-08-17  Simon Josefsson  <jas@extundo.com>
61420
61421         * m4/xstrndup.m4: New file.
61422
61423 2003-08-17  Simon Josefsson  <jas@extundo.com>
61424
61425         * m4/argp.m4: New file.
61426
61427 2003-08-17  Simon Josefsson  <jas@extundo.com>
61428             Bruno Haible  <bruno@clisp.org>
61429
61430         * lib/xstrndup.h: New file.
61431         * lib/xstrndup.c: New file.
61432
61433 2003-08-17  Bruno Haible  <bruno@clisp.org>
61434
61435         * modules/strndup (Files, Include): Add lib/strndup.h.
61436
61437 2003-08-17  Bruno Haible  <bruno@clisp.org>
61438
61439         * modules/euidaccess (Files): Add lib/euidaccess.h.
61440
61441 2003-08-17  Bruno Haible  <bruno@clisp.org>
61442
61443         * lib/strndup.h: New file.
61444
61445 2003-08-17  Bruno Haible  <bruno@clisp.org>
61446
61447         * gnulib-tool (func_create_testdir): Handle gl_USE_SYSTEM_EXTENSIONS
61448         like AC_GNU_SOURCE.
61449         * modules/extensions (configure.ac): Comment out the invocation of
61450         gl_USE_SYSTEM_EXTENSIONS.
61451
61452 2003-08-16  Paul Eggert  <eggert@twinsun.com>
61453
61454         Merges from coreutils, etc.
61455         * m4/rpmatch.m4 (gl_PREREQ_RPMATCH): Insert ':' to prevent a syntax
61456         error in gl_FUNC_MATCH.  This fixes a bug I introduced on 2003-05-28.
61457         * m4/readlink.m4 (gl_PREREQ_READLINK): Renamed from gl_PREREQ_READLINE,
61458         fixing a typo.
61459         * m4/host-os.m4 (UTILS_HOST_OS): Add GNU/NetBSD, GNU/FreeBSD.
61460         * m4/hash.m4 (gl_HASH): Use AM_STDBOOL_H, not AC_HEADER_STDBOOL.
61461
61462 2003-08-16  Paul Eggert  <eggert@twinsun.com>
61463
61464         Document merge from coreutils.
61465         * modules/alloca: Append $(ALLOCA_H) to BUILT_SOURCES.
61466         * modules/fnmatch: Append $(FNMATCH_H) to BUILT_SOURCES.
61467         * modules/utime: Add m4/utimes-null.m4.
61468
61469 2003-08-16  Paul Eggert  <eggert@twinsun.com>
61470
61471         * lib/regex.h, strdup.c, strtoll.c, strtoul.c: Do not normalize white
61472         space, undoing this 2003-08-12 change:
61473         <http://mail.gnu.org/archive/html/bug-gnulib/2003-08/msg00080.html>
61474
61475 2003-08-16  Paul Eggert  <eggert@twinsun.com>
61476
61477         * config/srclist.txt: Get regex.h, strdup.c, strtoll.c,
61478         strtoul.c from libc, undoing this 2003-08-12 change:
61479         <http://mail.gnu.org/archive/html/bug-gnulib/2003-08/msg00080.html>
61480
61481 2003-08-16  Jim Meyering  <jim@meyering.net>
61482
61483         Merges from coreutils.
61484         * m4/readdir.m4 (GL_FUNC_READDIR): Change name to have GL_ (not jm_)
61485         prefix.  Adjust cache variables similarly.  Create 500 rather than
61486         just 300 files, to exercise bug on Darwin6.5, too.
61487         * m4/perl.m4 (jm_PERL): Use $am_missing_run, not undefined
61488         $missing_dir.
61489         * m4/jm-winsz1.m4: Require AC_SYS_POSIX_TERMIOS, not
61490         AM_SYS_POSIX_TERMIOS.
61491         Reported by mkc@mathdogs.com.
61492         Also change use of $am_cv_sys_posix_termios
61493         to $ac_cv_sys_posix_termios.  Reported by Andreas Schwab.
61494         * m4/getgroups.m4 (jm_FUNC_GETGROUPS): Rewrite to use AC_FUNC_GETGROUPS
61495         and (if needed) to call AC_LIBOBJ and to set GETGROUPS_LIB.
61496         * m4/fsusage.m4 [__GLIBC__]: GNU libc's statvfs stats each mount point
61497         in /proc/mounts until it finds one with matching device number.  This
61498         is unnecessary when the FILE argument *is* a mount point.  No stat call
61499         is necessary in that case.  So, disable the statvfs-testing code on
61500         systems with GNU libc.  Reported by Andrei Gaponenko via Tim Waugh
61501         as RedHat bug# 84846.
61502         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Limit stack size
61503         to 1MB, so as not to render systems with no stack size limit (e.g.,
61504         linux-2.2.x) unusable.  Suggestion and code from Bruno Haible.
61505         Include <unistd.h>.  On some systems,
61506         it is required for the definition of _SC_PAGESIZE.
61507
61508 2003-08-16  Jim Meyering  <jim@meyering.net>
61509
61510         Merge from coreutils.
61511         * lib/xstrtoimax.c: #else #if -> #elif.
61512         * lib/xstrtoumax.c: Likewise.
61513
61514 2003-08-16  Jim Meyering  <jim@meyering.net>
61515
61516         * m4/utimes.m4 (gl_FUNC_UTIMES): New file.
61517         * m4/utimes.m4: Removed.
61518         * m4/utimes-null.m4: Renamed from utimes.m4.
61519
61520         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Limit stack size
61521         to 1MB, so as not to render systems with no stack size limit (e.g.,
61522         linux-2.2.x) unusable.  Suggestion and code from Bruno Haible.
61523         Include <unistd.h>.  On some systems,
61524         it is required for the definition of _SC_PAGESIZE.
61525
61526 2003-08-16  Jim Meyering  <jim@meyering.net>
61527         and Paul Eggert  <eggert@cs.ucla.edu>
61528
61529         Merges from coreutils, etc.
61530
61531         * m4/jm-macros.m4 (AC_LANG_SOURCE(C)): New macro, undefine, then define
61532         using the latest version from cvs.  This avoids problems with #line
61533         directives using a vendor (Sun) compiler.
61534         (jm_MACROS): Bump prerequisite from 2.52g to 2.57.
61535         Don't set GETGROUPS_LIB here; now it's
61536         done via getgroups.m4's wrapper function.
61537         AC_SUBST OPTIONAL_BIN_PROGS, OPTIONAL_BIN_ZCRIPTS, and MAN here,
61538         rather than just in sh-util/configure.in, so that the
61539         now-shared-by-fileutils-and-textutils lib/Makefile.am are all the
61540         same.
61541         Use AC_CONFIG_LIBOBJ_DIR(lib) to tell the new
61542         AC_FUNC_GETLOADAVG where to find getloadavg.c.
61543         Require AC_FUNC_FTW, gt_INTTYPES_PRI, gl_CLOCK_TIME,
61544         UTILS_SYS_OPEN_MAX, GL_FUNC_GETCWD_PATH_MAX, GL_FUNC_READDIR,
61545         gl_FSUSAGE, gl_MOUNTLIST, AC_FUNC_CANONICALIZE_FILE_NAME.
61546         Remove code that is now done by the newly-required macros.
61547         Append $(EXEEXT) to DF_PROG.
61548         AC_LIBOBJ fchdir-stub if fchdir doesn't exist; similarly for fchown.
61549         Do not invoke or require the following here,
61550         since prereq.m4 or some gnulib .m4 now does this for us:
61551         gl_REGEX, UTILS_FUNC_MKDIR_TRAILING_SLASH, jm_BISON, gl_FUNC_MKTIME,
61552         jm_FUNC_LSTAT, jm_FUNC_STAT, jm_FUNC_REALLOC, jm_FUNC_MALLOC,
61553         jm_FUNC_NANOSLEEP, jm_FUNC_READDIR, jm_FUNC_MEMCMP,
61554         jm_FUNC_GLIBC_UNLOCKED_IO, AC_FUNC_FNMATCH_GNU, jm_FUNC_PUTENV,
61555         jm_AC_PREREQ_XSTRTOUMAX, jm_AC_PREREQ_XSTRTOIMAX,
61556         AC_FUNC_ERROR_AT_LINE, jm_FUNC_GNU_STRFTIME, AC_FUNC_VPRINTF,
61557         vb_FUNC_RENAME, UTILS_FUNC_MKSTEP, jm_FUNC_UTIME, AM_FUNC_GETLINE,
61558         AC_FUNC_OBSTACK.
61559         Do not replace the following functions, as this is now the job
61560         of some gnulib .m4: strcasecmp, strncasecmp, dup2, gethostname,
61561         getusershell, sig2str, strcspn, stpcpy, strstr, strtol, strtoul
61562         strpbrk, euidaccess, memcmp, rmdir, rpmatch, strndup, strverscmp,
61563         atexit getpass, strdup, getpagesize.
61564         Replace 'raise'.
61565         Do not check for the following functions, as this is now the job
61566         of some gnulib .m4: bcopy, canonicalize_file_name, fchdir, ftime,
61567         getcwd, getmntinfo, resolvepath.  But check for sysctl, setreuid,
61568         setregid.
61569         (jm_CHECK_ALL_HEADERS): Do not check for fenv.h.
61570         Check for sys/sysctl.h.
61571         (jm_CHECK_ALL_TYPES): Do not require AC_STRUCT_TM, AC_STRUCT_TIMEZONE,
61572         jm_CHECK_TYPE_STRUCT_TIMESPEC.  Invoke gt_TYPE_SSIZE_T instead
61573         of checking for ssize_t ourselves.
61574
61575         * m4/prereq.m4 (jm_PREREQ): Don't invoke macros; AC_REQUIRE them.
61576         Require every macro that gnulib/modules/* suggests for us.
61577         (jm_PREREQ_ADDEXT): New macro.
61578         (jm_PREREQ_STAT): Check for 'struct statfs' on Ultrix 4.4.
61579         Require jm_AC_TYPE_LONG_LONG instead of invoking it.
61580
61581         * m4/physmem.m4 (gl_SYS__SYSTEM_CONFIGURATION): New macro.
61582         (gl_PHYSMEM): Use it.
61583         Also check for `table' function.
61584         Check for new headers and functions.
61585         Add check for sys/sysmp.h.
61586         With suggestions from Kaveh Ghazi.
61587         Ignore headers that are present but cannot be compiled.  This
61588         avoids spurious warnings on Solaris 9 sparc with Forte Developer 7
61589         C 5.4.
61590
61591 2003-08-15  Paul Eggert  <eggert@twinsun.com>
61592
61593         Document merge from coreutils.
61594         * modules/userspec: Depend on posixver.
61595         * modules/strftime: Depend on tzset.
61596
61597 2003-08-15  Paul Eggert  <eggert@twinsun.com>
61598
61599         * lib/config.charset, ref-add.sin, ref-del.sin: Use three spaces,
61600         rather than tab, after '#' in shell-script copyright notices.
61601         Suggested by Bruno Haible.
61602
61603 2003-08-15  Paul Eggert  <eggert@twinsun.com>
61604
61605         * config/srclist-update: Use three spaces, rather than tab, after '#'
61606         in shell-script copyright notices.  Suggested by Bruno Haible.
61607         Remove unnecessary parenthesization in regular expression.
61608
61609 2003-08-15  Jim Meyering  <jim@meyering.net>
61610
61611         Merge from coreutils.
61612         * lib/xgethostname.c: Include <stdlib.h>.
61613         (xghostname): Don't exit for anything other than memory-related
61614         failure; just return NULL.
61615         * lib/userspec.c: Include "posixver.h".
61616         (parse_user_spec): Accept `.' as a separator only
61617         in pre-POSIX-200112 mode.
61618         * lib/strtoimax.c: Use #elif rather than #else #if.
61619         * lib/strftime.c (my_strftime) [!_LIBC && HAVE_TZNAME && HAVE_TZSET]:
61620         Remove function, now that we can rely on a working tzset function.
61621         [!_LIBC]: Ensure that the required autoconf test has been run.
61622         [!defined _NL_CURRENT && HAVE_STRFTIME]:
61623         Use underlying_strftime for %r.
61624         * lib/sha.c: Merge in some clean-up and optimization changes from
61625         glibc.
61626         * lib/sha.c (sha_stream) [BLOCKSIZE]: Move definition to top of file.
61627         Ensure that it is a multiple of 64.
61628         Rearrange loop exit tests so as to avoid performing an
61629         additional fread after encountering an error or EOF.
61630         * lib/realloc.c: Update copyright date.
61631
61632 2003-08-15  Jim Meyering  <jim@meyering.net>
61633         and Paul Eggert  <eggert@twinsun.com>
61634
61635         Merge from coreutils.
61636         * lib/readutmp.h (HAVE_UTMPX_H): Undef if struct utmp has the ut_exit
61637         member but strut utmpx does not.  Needed for AIX 4.3.3.
61638         (UT_EXIT_E_TERMINATION, UT_EXIT_E_EXIT): Define.
61639
61640 2003-08-15  Jim Meyering  <jim@meyering.net>
61641         and Paul Eggert  <eggert@cs.ucla.edu>
61642
61643         Merges from coreutils, etc.
61644         * m4/strftime.m4 (_jm_STRFTIME_PREREQS):
61645         Require gl_FUNC_TZSET_CLOBBER.
61646         * m4/readutmp.m4 (gl_READUTMP): Check for ut_exit.ut_exit,
61647         ut_exit.e_exit, ut_exit.ut_termination, and ut_exit.e_termination
61648         members.
61649
61650 2003-08-14  Paul Eggert  <eggert@twinsun.com>
61651
61652         Help the merge from coreutils.
61653         * m4/gettimeofday.m4 (gl_GETTIMEOFDAY_REPLACE_LOCALTIME): New macro.
61654         (AC_FUNC_GETTIMEOFDAY_CLOBBER): Use it.
61655         * m4/tzset.m4: Use it too.
61656
61657 2003-08-14  Paul Eggert  <eggert@twinsun.com>
61658
61659         * modules/tzset: New file.
61660
61661 2003-08-14  Jim Meyering  <jim@meyering.net>
61662
61663         Merges from coreutils.
61664         * modules/fnmatch: Use the `$(FNMATCH_H)' notation for AC_REPLACED
61665         variable names, rather than @FNMATCH_H@.
61666         * modules/alloca: Likewise for $(ALLOCA_H).
61667
61668         * modules/fnmatch (fnmatch.h): Use `$@' in the commands, in place of
61669         the three copies of the literal target, `fnmatch.h'.
61670         * modules/alloca (alloca.h): Likewise.
61671
61672 2003-08-14  Jim Meyering  <jim@meyering.net>
61673
61674         Merge from coreutils.
61675         * m4/tzset.m4: New file.
61676         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Move the
61677         MOUNTED_VMOUNT test to precede the MOUNTED_GETMNTENT1 tests, since
61678         otherwise, AIX 5.1 systems would end up using the latter.
61679         MOUNTED_GETMNTENT1 support is inadequate on such systems: 1) detecting
61680         whether a file system is remote doesn't work  2) the MOUNTED_VMOUNT
61681         code reports the HOSTNAME:/MOUNT_POINT, while the MOUNTED_GETMNTENT1
61682         code reports merely /MOUNT_POINT.  Reported by Mike Jetzer.
61683
61684 2003-08-14  Jim Meyering  <jim@meyering.net>
61685
61686         Merge from coreutils.
61687         * lib/obstack.h: Whitespace changes.
61688         * lib/mountlist.c: Remove anachronistic casts of xmalloc, xrealloc,
61689         and xcalloc return values.
61690         (read_filesystem_list) [MOUNTED_GETFSSTAT]:
61691         Use MNT_NOWAIT, rather than MNT_WAIT.  Otherwise, `df DIR' could
61692         hang on OSF/1 5.1 for DIR on both local and remote file systems.
61693         Reported by (and fix confirmed by) Nelson H. F. Beebe.
61694         (read_filesystem_list) [MOUNTED_VMOUNT]: Detect any
61695         error from mntctl.
61696         Use mntctl's return value to drive the entry-processing loop, since
61697         we can't rely on the value of the vmt_length member in the last
61698         entry.  On some systems doing so could result in exhausting
61699         virtual memory.  Based in part on a patch from Mike Jetzer.
61700
61701 2003-08-14  Jim Meyering  <jim@meyering.net>
61702         and Paul Eggert  <eggert@twinsun.com>
61703
61704         Merges from coreutils, plus other fixes.
61705         * lib/physmem.c: Merge in portability changes from gcc/libiberty
61706         to support AIX, IRIX, Tru64, and Windows.  See the ChangeLog there
61707         for credits and details.  Thanks to Kaveh Ghazi for helping
61708         to keep these files in sync.
61709         (ARRAY_SIZE): Define it.
61710         (physmem_total, physmem_available): Add comments. From Kaveh Ghazi.
61711         * lib/memcasecmp.c: Remove unnecessary parentheses after 'defined'.
61712         (memcasecmp): Don't assume size_t fits in unsigned int.
61713         Remove casts and duplicate code.
61714         * lib/md5.c: Include <string.h> and <stdlib.h> unconditionally.
61715         (memcpy): Remove definition.
61716         Merge in some clean-up and optimization changes from glibc.
61717         [BLOCKSIZE]: Move definition to top of file.
61718         Ensure that it is a multiple of 64.
61719         Rearrange loop exit tests so as to avoid performing an
61720         additional fread after encountering an error or EOF.
61721         * lib/md5.h (md5_uintptr): Define.
61722         * lib/makepath.c (CLEANUP_CWD): Report an error if we failed to
61723         return to the initial working directory.  Preserve errno
61724         for caller.
61725         * lib/idcache.c: Include "xalloc.h".
61726         (xmalloc, xrealloc): Remove decls.
61727         (getuser): Remove casts no longer required in C89.
61728         * lib/human.c: Include stdio.h, for sprintf.
61729         * lib/group-member.c: Include "xalloc.h".
61730         (xmalloc, xrealloc): Remove decls.
61731         (get_group_info): Remove casts no longer required in C89.
61732         * lib/getusershell.c (readname): Remove casts no longer required in
61733         C89.
61734         * lib/gettimeofday.c (rpl_gmtime, rpl_tzset): New functions.
61735         * lib/getline.c: Whitespace fix, from coreutils.
61736
61737 2003-08-13  Paul Eggert  <eggert@twinsun.com>
61738
61739         * m4/exclude.m4 (gl_EXCLUDE): Require AC_C_INLINE, AC_HEADER_STDC.
61740         Check for isascii.
61741
61742         * m4/gettext.m4, iconv.m4, intdiv0.m4, inttypes-pri.m4, lib-link.m4,
61743         lib-prefix.m4, longdouble.m4, po.m4, progtest.m4, signed.m4:
61744         Undo previous (whitespace-only) change.
61745
61746 2003-08-13  Paul Eggert  <eggert@twinsun.com>
61747
61748         * lib/exclude.c: Include <ctype.h>
61749         (IN_CTYPE_DOMAIN): New macro.
61750         (is_space): New fn.
61751         (add_exclude_file): If LINE_END is a space, ignore trailing spaces
61752         and empty lines.
61753
61754         * lib/argp-help.c, argp-parse.c, config.charset, getopt.h:
61755         Undo previous (whitespace-only) change.
61756
61757 2003-08-13  Paul Eggert  <eggert@twinsun.com>
61758
61759         * config/srclist-update: Change update back to the old behavior,
61760         leaving whitespace alone.  Use one 'sed' command rather than a
61761         pipeline.
61762         (fixlicense): Now a variable, not a function.
61763         (remove_trailing_blanks): Remove.
61764         (fixfile): Don't invoke unexpand or cat, or remove trailing blanks.
61765         * config/config.guess, config.sub, install-sh, missing, texinfo.tex:
61766         Undo previous (whitespace-only) change.
61767
61768 2003-08-12  Paul Eggert  <eggert@twinsun.com>
61769
61770         Merge from coreutils.
61771         * modules/euidaccess: Add lib_SOURCES, include for new
61772         file euidaccess.h
61773
61774 2003-08-12  Paul Eggert  <eggert@twinsun.com>
61775
61776         * m4/gettext.m4, iconv.m4, intdiv0.m4, inttypes-pri.m4, lib-link.m4,
61777         lib-prefix.m4, longdouble.m4, po.m4, progtest.m4, signed.m4:
61778         Normalize leading white space and remove trailing white space.
61779
61780         Merge from coreutils
61781         * m4/euidaccess.m4 (gl_FUNC_EUIDACCESS): Check for euidaccess decl.
61782
61783         * m4/lib-ld.m4, lib-link.m4, lib-prefix.m4: Regenerate from gettext
61784         0.12.1.  These files are now being upgraded automatically by
61785         ../config/srclist-update.
61786
61787 2003-08-12  Paul Eggert  <eggert@twinsun.com>
61788
61789         * lib/argp-help.c, argp-parse.c, config.charset, getopt.h:
61790         Normalize leading white space and remove trailing white space.
61791         * lib/ref-add.sin, ref-del.sin: Use '#' before empty line in copyright
61792         notice, as per ../config/srclist-update.
61793
61794         Merge from coreutils.
61795         * lib/euidaccess.h: New file.
61796         * lib/euidaccess.c: Include it.
61797         * lib/.cppi-disable: Add printf-args.h, printf-parse.h, stdbool_.h,
61798         vasnprintf.h, vasprintf.h.  Remove strdup.c, gettext.h.
61799         * lib/regex.h, strdup.c, strtoll.c, strtoul.c: Normalize white space.
61800
61801 2003-08-12  Paul Eggert  <eggert@twinsun.com>
61802
61803         * config/srclist-update: Add copyright notice.
61804         (remove_id_lines, remove_trailing_blanks): New constants.
61805         (fixfile): Use them to normalize spacing a bit in copied files.
61806         * config/config.guess, config.sub, install-sh, missing, texinfo.tex:
61807         Normalize leading white space and remove trailing white space.
61808
61809         * config/texinfo.tex: Sync with texinfo.
61810
61811         * config/srclist.txt: Don't get regex.h, strdup.c, strtoll.c,
61812         strtoul.c from libc, to merge coreutils whitespace changes.
61813
61814         * config/srclist.txt: Get the following m4 files from gettext:
61815         codeset.m4, gettext.m4, glibc21.m4, iconv.m4, intdiv0.m4,
61816         inttypes-pri.m4, lcmessage.m4, lib-ld.m4, lib-link.m4, lib-prefix.m4,
61817         longdouble.m4, nls.m4, po.m4, progtest.m4, signed.m4, wchar_t.m4,
61818         wint_t.m4.
61819
61820 2003-08-12  Karl Berry  <karl@gnu.org>
61821
61822         * config/srclist.txt: can't sync vasnprintf.c any more, changes have
61823         been made.
61824
61825 2003-08-11  Paul Eggert  <eggert@twinsun.com>
61826
61827         * modules/gnu-source, m4/gnu-source.m4:
61828         Remove; we're assuming Autoconf 2.54 or later now.
61829         Suggested by Bruno Haible.
61830         * MODULES.html.sh (func_all_modules): Remove gnu-source.
61831
61832 2003-08-11  Bruno Haible  <bruno@clisp.org>
61833
61834         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF): Also check for wcslen.
61835
61836 2003-08-11  Bruno Haible  <bruno@clisp.org>
61837
61838         * lib/vasnprintf.c (local_wcslen): New function, for Solaris 2.5.1.
61839         (vasnprintf): Use it instead of wcslen.
61840
61841 2003-08-11  Bruno Haible  <bruno@clisp.org>
61842
61843         * lib/stdbool_.h (_Bool): Undo last change; instead use a negative enum
61844         value to ensure that _Bool promotes to int. Use #define for _Bool when
61845         using the Solaris C compiler. Adds comments suggested by Paul Eggert.
61846
61847 2003-08-10  Karl Berry  <karl@gnu.org>
61848
61849         * lib/regex.h: update from libc (whitespace fix).
61850
61851 2003-08-09  Paul Eggert  <eggert@twinsun.com>
61852
61853         Merge some files from coreutils.  These changes were
61854         originally made by Jim Meyering.
61855         * lib/acl.c: Include <sys/types.h> before <sys/stat.h>;
61856         many older Unixes require this.
61857         * lib/alloca.c (alloca): Remove cast to argument of free;
61858         no longer needed in C89.
61859         * lib/alloca_.h, regex.h: Fix white space to match
61860         what GNU indent does.
61861
61862 2003-08-09  Paul Eggert  <eggert@twinsun.com>
61863
61864         * m4/regex.m4 (jm_INCLUDED_REGEX): Change "\201" to "\371";
61865         apparently Emacs's Unicode mode got confused before my 2003-08-05
61866         checkin.
61867
61868 2003-08-08  Paul Eggert  <eggert@twinsun.com>
61869
61870         * m4/extensions.m4: New file.
61871         * m4/timespec.m4 (jm_CHECK_TYPE_STRUCT_TIMESPEC):
61872         Require gl_USE_SYSTEM_EXTENSIONS.
61873         * m4/unlocked-io.m4 (jm_FUNC_GLIBC_UNLOCKED_IO):
61874         Require gl_USE_SYSTEM_EXTENSIONS rather than AC_GNU_SOURCE.
61875
61876 2003-08-08  Paul Eggert  <eggert@twinsun.com>
61877
61878         * MODULES.html.sh (func_all_modules): Add extensions, gnu-source.
61879         * modules/extensions, modules/gnu-source: New files.
61880         * modules/timespec, modules/unlocked-io: Depend on extensions.
61881
61882 2003-08-07  Paul Eggert  <eggert@twinsun.com>
61883
61884         * modules/restrict: New file.
61885         * MODULES.html.sh (func_all_modules): Add restrict.
61886         * modules/regex: Depend on restrict.
61887
61888 2003-08-07  Paul Eggert  <eggert@twinsun.com>
61889
61890         * m4/restrict.m4: New file.
61891         * m4/regex.m4 (jm_PREREQ_REGEX): Add gl_C_RESTRICT.
61892
61893 2003-08-07  Bruno Haible  <bruno@clisp.org>
61894
61895         * modules/getndelim2 (Makefile.am): Add the files to EXTRA_DIST, not
61896         lib_SOURCES, because getndelim2.m4 now uses AC_LIBOBJ(getndelim2).
61897
61898 2003-08-07  Bruno Haible  <bruno@clisp.org>
61899
61900         * m4/getndelim2.m4 (gl_GETNDELIM2): Use AC_LIBOBJ(getndelim2). This
61901         makes the module 'getndelim2' compatible with the module 'getline'.
61902
61903 2003-08-05  Paul Eggert  <eggert@twinsun.com>
61904
61905         * m4/regex.m4 (jm_INCLUDED_REGEX): Replace a single non-ASCII
61906         byte with "\201" to avoid glitches when editing that source file
61907         with multi-gnome-terminal.
61908
61909 2003-08-05  Paul Eggert  <eggert@twinsun.com>
61910
61911         * lib/bumpalloc.h: Remove.
61912
61913 2003-08-05  Paul Eggert  <eggert@twinsun.com>
61914
61915         * MODULES.html.sh (func_all_modules): Remove bumpalloc.
61916         * modules/bumpalloc: Remove.
61917
61918 2003-08-04  Paul Eggert  <eggert@twinsun.com>
61919
61920         * lib/getloadavg.c: Change copyright notice and spacing to conform to
61921         GNU coding style.
61922
61923         Merge from coreutils.
61924         * lib/error.c [!USE_IN_LIBIO]: Omit this case; assume USE_IN_LIBIO is
61925         1. From glibc.
61926         * lib/getdate.y (date): Also accept dates like May-23-2003; suggestion
61927         from Karl Berry, implemented by Jim Meyering.
61928         * lib/getgroups.c: Include "xalloc.h" instead of declaring xalloc fns;
61929         from Dmitry V. Levin.
61930         Remove anachronistic cast of xrealloc.
61931         * lib/fnmatch_.h (__const): Remove.  Use 'const'.
61932         * lib/fnmatch_loop.c (NEW_PATTERN): Cast alloca return value to proper
61933         type. Otherwise, it wouldn't compile with at least /bin/cc on
61934         ymp-cray-unicos9.0.2.X.
61935         Combine two mostly-identical uses of alloca into one.
61936         Thanks to the Cray-Cyber project for access to a Cray Y-MP.
61937
61938 2003-08-04  Dave Love  <d.love@dl.ac.uk>
61939
61940         [From Emacs.]
61941
61942         * lib/getloadavg.c: Check `__unix' as well as `unix'.  Use #ifdef, not
61943         #if.  Check HAVE_LIBKSTAT as well as LOAD_AVE_TYPE.  Check
61944         F_SETFD, not FD_SETFD.  Use HAVE_STRUCT_NLIST_N_UN_N_NAME, not
61945         obsolete NLIST_NAME_UNION.
61946         [__GNU__]: Undef BSD and FSCALE.
61947         [!NLIST_STRUCT]: Remove conditional definition of NLIST_STRUCT.
61948
61949 2003-08-03  Paul Eggert  <eggert@twinsun.com>
61950
61951         * lib/stdbool_.h (_Bool): Make it signed char, instead of
61952         an enum type, so that it's guaranteed to promote to int.  See:
61953         <http://mail.gnu.org/archive/html/bug-gnulib/2003-07/msg00124.html>
61954
61955 2003-08-03  Karl Berry  <karl@gnu.org>
61956
61957         * config/depcomp: update from automake.
61958
61959 2003-07-31  Paul Eggert  <eggert@twinsun.com>
61960
61961         * lib/strerror.c: Include config.h, limits.h.  Declare sprintf.
61962         (strerror): Don't assume that a printable int fits in 14 bytes.
61963
61964 2003-07-31  Bruno Haible  <bruno@clisp.org>
61965
61966         * modules/getpass-gnu: New file.
61967         * MODULES.html.sh (func_all_modules): Add getpass-gnu.
61968
61969 2003-07-31  Bruno Haible  <bruno@clisp.org>
61970
61971         * m4/getpass.m4 (gl_FUNC_GETPASS_GNU): New macro.
61972
61973 2003-07-24  Karl Berry  <karl@gnu.org>
61974
61975         * config/missing: update from automake.
61976
61977 2003-07-24  Derek Robert Price  <derek@ximbiot.com>
61978             Bruno Haible  <bruno@clisp.org>
61979
61980         * lib/getline.h (getline, getdelim): Change return type to ssize_t.
61981         * lib/getline.c (getline, getdelim): Likewise.
61982         Remove _GNU_SOURCE define; now it's defined in config.h through
61983         m4/getline.m4.
61984
61985 2003-07-23  Karl Berry  <karl@gnu.org>
61986
61987         * config/config.sub: update from prep.
61988
61989 2003-07-22  Paul Eggert  <eggert@twinsun.com>
61990
61991         * modules/xalloc (Depends-on): Add exitfail.
61992         * modules/xmemcoll: Likewise.
61993
61994 2003-07-22  Paul Eggert  <eggert@twinsun.com>
61995
61996         * lib/xalloc.h (XCALLOC, XREALLOC, CCLONE): Fix under- and
61997         over-parenthesization in macros.
61998
61999         Sync with coreutils.
62000
62001         * lib/xalloc.h (XMALLOC, XCALLOC, XREALLOC): Remove casts not
62002         required by C99.
62003
62004         Use `exit_failure' for xalloc and xmemcoll instead of their own
62005         private exit-failure variables.
62006         * lib/xalloc.h (xalloc_exit_failure): Remove.
62007         * lib/xmalloc.c: Likewise.  Include exitfail.h.
62008         (xalloc_die): Use exit_failure instead of xalloc_exit_failure.
62009         * lib/xmemcoll.h (xmemcoll_exit_failure): Remove.
62010         * lib/xmemcoll.c: Likewise.  Include exitfail.h.
62011         (xmemcoll): Use exit_failure instead of xalloc_exit_failure.
62012
62013 2003-07-20  Jim Meyering  <jim@meyering.net>
62014
62015         * modules/closeout (Depends-on): Add exitfail.
62016         Suggestion from Bruno Haible.
62017
62018 2003-07-19  Karl Berry  <karl@gnu.org>
62019
62020         * config/config.sub: update from prep.
62021
62022 2003-07-18  Paul Eggert  <eggert@twinsun.com>
62023
62024         * lib/closeout.h (close_stdout_set_status, close_stdout_status):
62025         Remove.
62026         * lib/closeout.c: Likewise.  Include "closeout.h" right after config.h,
62027         to test that it can stand by itself.  Include "exitfail.h".
62028         Clients should set exit_failure instead.
62029         (EXIT_FAILURE): Remove; no longer needed.  Do not include <stdlib.h>.
62030
62031 2003-07-18  Bruno Haible  <bruno@clisp.org>
62032
62033         * modules/getndelim2: New file.
62034         * modules/getline: Share files with module getndelim2.
62035         * modules/getnline: Depend on getndelim2 instead of sharing files with
62036         it. Add getnline.c to lib_SOURCES.
62037         * MODULES.html.sh (func_all_modules): Add getndelim2.
62038
62039 2003-07-18  Bruno Haible  <bruno@clisp.org>
62040
62041         * m4/getndelim2.m4: New file.
62042         * m4/getline.m4 (AM_FUNC_GETLINE): Add AC_LIBOBJ of getndelim2.c and
62043         invoke gl_PREREQ_GETNDELIM2.
62044         (gl_PREREQ_GETLINE): Drop AC_HEADER_STDC, now done by
62045         gl_PREREQ_GETNDELIM2.
62046         * m4/getnline.m4 (gl_GETNLINE): Drop AC_HEADER_STDC, now done by
62047         gl_GETNDELIM2.
62048
62049 2003-07-18  Bruno Haible  <bruno@clisp.org>
62050
62051         * lib/getndelim2.h: New file.
62052         * lib/getndelim2.c: Make into a module of its own. Include config.h,
62053         getndelim2.h.
62054         (getndelim2): Make non-static. Change return type to ssize_t.
62055         * lib/getline.h: Change argument names.
62056         * lib/getline.c: Include getndelim2.h instead of getndelim2.c.
62057         * lib/getnline.c: Include getndelim2.h.
62058
62059 2003-07-18  Andreas Schwab  <schwab@suse.de>
62060
62061         * lib/memcoll.c (memcoll) [!HAVE_STRCOLL]: Clear errno.
62062
62063 2003-07-17  Karl Berry  <karl@gnu.org>
62064
62065         * config/config.sub: update from prep.
62066
62067 2003-07-17  Bruno Haible  <bruno@clisp.org>
62068
62069         * modules/getnline: New file.
62070         * modules/getline: Add lib/getndelim2.c to source file list.
62071         * MODULES.html.sh (func_all_modules): Add getnline.
62072
62073 2003-07-17  Bruno Haible  <bruno@clisp.org>
62074
62075         * m4/getnline.m4: New file.
62076
62077 2003-07-17  Bruno Haible  <bruno@clisp.org>
62078
62079         * m4/Makefile.am.in: Remove file.
62080         * m4/Makefile.am: Remove file.
62081         * m4/Makefile.in: Remove file.
62082
62083 2003-07-17  Bruno Haible  <bruno@clisp.org>
62084
62085         * lib/getnline.h: New file.
62086         * lib/getnline.c: New file.
62087         * lib/getndelim2.c: New file, extracted from getline.c.
62088         (getndelim2): Renamed from getdelim2, with added nmax argument.
62089         * lib/getline.c: Include getndelim2.c.
62090         (getdelim2): Moved out to getndelim2.c.
62091         (getline, getdelim): Update.
62092
62093 2003-07-17  Bruno Haible  <bruno@clisp.org>
62094
62095         * lib/Makefile.am: Remove file.
62096         * lib/Makefile.in: Remove file.
62097
62098 2003-07-17  Bruno Haible  <bruno@clisp.org>
62099
62100         * configure.in: Remove file.
62101         * Makefile.in: Remove file.
62102
62103 2003-07-17  Bruno Haible  <bruno@clisp.org>
62104
62105         * MODULES.html.sh: Put the </BODY> right before </HTML>.
62106
62107 2003-07-16  Karl Berry  <karl@gnu.org>
62108
62109         * config/srclist-update: was running fixlicense twice, which caused
62110                 texinfo.tex to be nullified for some reason.  Simplify,
62111                 $gplsrc is no longer needed as far as I can see?
62112
62113 2003-07-16  Jim Meyering  <jim@meyering.net>
62114
62115         * modules/save-cwd: Depend on xgetcwd.  From Derek Price.
62116
62117 2003-07-15  Paul Eggert  <eggert@twinsun.com>
62118
62119         * config/srclist.txt: Get the following files from gettext-runtime/intl
62120         instead: config.charset, localcharset.c, localcharset.h, ref-add.sin,
62121         ref-del.sin.  From Bruno Haible.
62122         * config/srclist-update (fixfile): Change grep pattern again, since the
62123         previous fix didn't work (there was another trailing $).  Use
62124         '[$]' to escape the $s.
62125
62126 2003-07-15  Karl Berry  <karl@gnu.org>
62127
62128         * lib/vasnprintf.c: update from gettext.
62129
62130 2003-07-15  Karl Berry  <karl@gnu.org>
62131
62132         * config/srclist-update (fixfile): Change grep pattern, since 'Id'
62133         gets expanded when surrounded by '$'.
62134
62135 2003-07-15  Jim Meyering  <jim@meyering.net>
62136
62137         * modules/save-cwd: Don't depend on error.  From Derek Price.
62138
62139 2003-07-15  Jim Meyering  <jim@meyering.net>
62140
62141         * lib/makepath.c (make_path): Enclose diagnostic in _(...).
62142
62143 2003-07-14  Simon Josefsson  <jas@extundo.com>
62144
62145         * modules/mempcpy: New file.
62146         * MODULES.html.sh (func_all_modules): Add mempcpy.
62147
62148 2003-07-14  Simon Josefsson  <jas@extundo.com>
62149
62150         * m4/mempcpy.m4: New file.
62151
62152 2003-07-14  Simon Josefsson  <jas@extundo.com>
62153
62154         * lib/mempcpy.h: New file.
62155         * lib/mempcpy.c: New file.
62156
62157 2003-07-14  Paul Eggert  <eggert@twinsun.com>
62158
62159         * modules/getdate, modules/posixtm: Depend on mktime.
62160
62161 2003-07-14  Paul Eggert  <eggert@twinsun.com>
62162
62163         * lib/ceill.c, expl.c, floorl.c, frexpl.c, ldexpl.c, mathl.h,
62164         sincosl.c, sqrtl.c, trigl.c, trigl.h, poll.c, poll_.h, mkstemp.c,
62165         unicodeio.c, unicodeio.h, unlocked-io.h:
62166         Switch from LGPL to GPL.
62167
62168 2003-07-14  Paul Eggert  <eggert@twinsun.com>
62169
62170         * lib/asnprintf.c, asprintf.c, config.charset, gettext.h,
62171         localcharset.c, localcharset.h, mkdtemp.c, printf-args.c,
62172         printf-args.h, printf-parse.c, printf-parse.h, ref-add.sin,
62173         ref-del.sin, setenv.c, unsetenv.c, vasnprintf.c, vasnprintf.h,
62174         vasprintf.c, vasprintf.h: Regenerate.  These files are now being
62175         updated automatically by ../config/srclist-update.  This changes
62176         their license from LPGL to GPL.
62177
62178 2003-07-14  Paul Eggert  <eggert@twinsun.com>
62179
62180         * config/srclist.txt: Add tons more gettext files.  $GETTEXT is now
62181         assumed to refer to the root of the most recent stable gettext version.
62182         * config/srclistvars.sh: Add defaults for eggert.
62183         * config/srclist-update: Convert LGPL to GPL in shell scripts, too.
62184         Match "This program" as well as "The program".  This is needed
62185         for gettext.
62186
62187 2003-07-14  Jim Meyering  <jim@meyering.net>
62188
62189         Don't emit diagnostics.  Let callers do that.
62190         * lib/save-cwd.c: Don't include "error.h".
62191         (save_cwd): Don't call error.  Ensure that errno is valid
62192         when returning nonzero.
62193
62194         * lib/save-cwd.h (restore_cwd): Update prototype.
62195         * lib/save-cwd.c (restore_cwd): Remove two parameters.
62196         Simplify.  Don't call error upon failure.  Let callers do that.
62197         (save_cwd): Mention that Irix 5.3 has the same problem as SunOS 4
62198         when auditing is enabled.  But don't bother updating the #if.
62199
62200 2003-07-11  Alexandre Duret-Lutz  <adl@gnu.org>
62201
62202         * lib/obstack.h (__INT_TO_PTR): Revert change of 2003-03-13;
62203         it breaks C++ compilation.
62204         [!__GNUC__ || !__STDC__] (obstack_finish): Cast result to void*.
62205
62206 2003-07-10  Simon Josefsson  <jas@extundo.com>
62207
62208         * modules/strchrnul (Makefile.am): Add strchrnul.h.
62209
62210 2003-07-10  Jim Meyering  <jim@meyering.net>
62211
62212         * m4/clock_time.m4: Remove trailing blank.
62213         * m4/intmax_t.m4: Likewise.
62214
62215 2003-07-10  Jim Meyering  <jim@meyering.net>
62216
62217         * lib/vasnprintf.c: Remove trailing blanks.
62218         Make cpp indentation consistent.
62219
62220 2003-07-09  Paul Eggert  <eggert@twinsun.com>
62221
62222         * lib/alloca_.h, euidaccess.c, getpass.c, memrchr.c, obstack.h,
62223         posixver.c, strftime.c, strnlen.c, strverscmp.c:
62224         Switch from LGPL to GPL.
62225
62226 2003-07-09  Paul Eggert  <eggert@twinsun.com>
62227
62228         * config/srclist.txt: Sort sublists.  Add
62229         $LIBCSRC/sysdeps/generic/strtoul.c. In comments, add more libc files
62230         that differ from gnulib for one reason or another; we'd like this list
62231         to be smaller but for now let's document what we have.
62232
62233 2003-07-08  Paul Eggert  <eggert@twinsun.com>
62234
62235         * config/srclist-update: Port to POSIX 1003.1-2001 hosts by avoiding
62236         the use of GNU extensions.  Change "x=`eval echo $x`" to the shorter
62237         and sweeter "eval x=$x".
62238         * config/srclist.txt: Get lib/argp* from glibc.
62239
62240 2003-07-07  Paul Eggert  <eggert@twinsun.com>
62241
62242         * lib/mktime.c: Fix some boundary cases and remove need for floating
62243         point.
62244
62245         Issue a compile-time diagnostic if time_t is floating point, or if
62246         two's complement arithmetic is not in effect, or if arithmetic
62247         right shift does not propagate the sign.  These assumptions were
62248         all in the original code but they weren't checked.
62249
62250         (TIME_T_MIDPOINT, verify): New macros.
62251         (__isleap): Remove; it has integer overflow problems.
62252         (leapyear): New function, without those problems.
62253         (ydhms_tm_diff): Remove; splitting into two parts.
62254         (ydhms_diff): New function, containing the arithmetic part of
62255         the old ydhms_tm_diff function.  Issue a compile-time
62256         diagnostic if we are not using C99 integer division.
62257         Avoid casts when possible.
62258         (guess_time_tm): New function, containing the checking part of
62259         the old ydhms_tm_diff function.  Return the new value, rather than
62260         the difference between it and the old.  Accept a new argument T
62261         so that *T specifies the old value.  Check for overflow in the result.
62262
62263         (__mktime_internal): Use a time_t offset, not a long int offset.
62264         This undoes the 2003-06-04 change, which is no longer needed now
62265         that we have better overflow checking.
62266         (localtime_offset): Likewise.
62267
62268         (__mktime_internal): Avoid harmful overflow on hosts where time_t
62269         and long are 64-bit but int is only 32-bit.
62270         (ydhms_diff): Use long int to store year1 and yday1.
62271         Issue a compile-time diagnostic if long int is not wide enough.
62272
62273         (__mktime_internal): Use long int to store adjusted year and yday.
62274         Use plain C rather than preprocessor commands, if that doesn't
62275         affect efficiency.
62276         Check for overflow (and try to repair) after each probe
62277         rather than checking only at the very end.  This avoids some bugs
62278         (e.g., southern hemisphere, behind GMT, and GMT offset at minimum time
62279         does not equal GMT offset at maximum time).
62280         Use integer to check for overflow rather than floating point; this
62281         is more portable to non-IEEE hosts, and is a tad faster.
62282         When we detect that we are oscillating between two values,
62283         don't check whether tm_isdst has the requested value, since
62284         we already know the answer.  When tm_isdst has the wrong value,
62285         use a different heuristic to find the right one, based on the
62286         extreme values actually observed in practice in tz2003a,
62287         rather than the (overly optimistic) "previous 3 calendar quarters".
62288
62289         (not_equal_tm, print_tm, check_result): Use "const T" rather than
62290         "T const" to accommodate glibc style.
62291         (check_result): Use less-confusing report format.  "long" -> "long int.
62292         (main): Likewise.
62293         Don't loop if the iteration overflows time_t.
62294         Allow a negative step in the iteration.
62295
62296 2003-07-06  Karl Berry  <karl@gnu.org>
62297
62298         * config/depcomp: update from automake.
62299         * config/config.sub: update from prep.
62300
62301 2003-07-03  Karl Berry  <karl@gnu.org>
62302
62303         * config/config.guess: update from prep.
62304
62305 2003-07-01  Paul Eggert  <eggert@twinsun.com>
62306
62307         * m4/xreadlink.m4 (gl_XREADLINK): Don't check for sys/types.h, since
62308         xreadlink.c now includes it unconditionally.
62309
62310 2003-07-01  Paul Eggert  <eggert@twinsun.com>
62311
62312         * lib/xreadlink.c: Include <sys/types.h> unconditionally, instead of
62313         having it depend on HAVE_SYS_TYPES_H.
62314
62315 2003-07-01  Bruno Haible  <bruno@clisp.org>
62316
62317         * m4/ssize_t.m4 (gt_TYPE_SSIZE_T): Don't include <unistd.h>.
62318         <sys/types.h> should be sufficient.
62319         Reported by Paul Eggert.
62320
62321 2003-06-26  Karl Berry  <karl@gnu.org>
62322
62323         * config/depcomp: update from automake.
62324
62325 2003-06-26  Bruno Haible  <bruno@clisp.org>
62326
62327         * modules/human: Depend on module stdbool.
62328
62329 2003-06-25  Bruno Haible  <bruno@clisp.org>
62330
62331         * modules/readlink: New file.
62332         * modules/xreadlink: Depend on it.
62333         * MODULES.html.sh (func_all_modules): Add readlink.
62334
62335 2003-06-25  Bruno Haible  <bruno@clisp.org>
62336
62337         * m4/readlink.m4: New file.
62338
62339 2003-06-25  Bruno Haible  <bruno@clisp.org>
62340
62341         * lib/readlink.c: New file.
62342
62343 2003-06-22  Karl Berry  <karl@gnu.org>
62344
62345         * config/srclist.txt: update mkinstalldirs from automake.
62346         * config/mkinstalldirs: update.
62347
62348 2003-06-22  Bruno Haible  <bruno@clisp.org>
62349
62350         Portability to mingw32.
62351         * m4/ssize_t.m4: New file, from GNU gettext.
62352         * m4/safe-read.m4 (gl_PREREQ_SAFE_READ): Require gt_TYPE_SSIZE_T.
62353         * m4/xreadlink.m4 (gl_XREADLINK): Require gt_TYPE_SSIZE_T.
62354
62355 2003-06-22  Bruno Haible  <bruno@clisp.org>
62356
62357         * modules/safe-read: Add m4/ssize_t.m4.
62358         * modules/xreadlink: Add m4/ssize_t.m4.
62359
62360 2003-06-20  Bruno Haible  <bruno@clisp.org>
62361
62362         Assume C89, so PARAMS isn't needed.
62363         * lib/unicodeio.h (PARAMS): Remove.
62364         * lib/unicodeio.c: Don't use PARAMS.
62365
62366 2003-06-18  Karl Berry  <karl@gnu.org>
62367
62368         * config/config.{guess,sub}: update from prep.
62369
62370 2003-06-18  Jim Meyering  <jim@meyering.net>
62371
62372         Merge changes from coreutils.
62373         * lib/readutmp.c: Include <string.h> and <stdlib.h> unconditionally.
62374         Remove explicit declarations of xmalloc and realloc.
62375         Include xalloc.h.
62376         (read_utmp): Remove anachronistic cast of xmalloc.
62377
62378 2003-06-17  Paul Eggert  <eggert@twinsun.com>
62379
62380         Assume C89, so PARAMS isn't needed.
62381         * lib/backupfile.h (PARAMS): Remove.  All uses removed.
62382         * lib/closeout.h, lib/dirname.h, lib/filemode.h, lib/fsusage.h,
62383         lib/getdate.h, lib/getline.h, lib/group-member.h, lib/hard-locale.h,
62384         lib/hash.h, lib/linebuffer.h, lib/long-options.h, lib/makepath.h,
62385         lib/memcasecmp.h, lib/memcoll.h, lib/modechange.h, lib/mountlist.h,
62386         lib/path-concat.h, lib/physmem.h, lib/posixtm.h, lib/quote.h,
62387         lib/readutmp.h, lib/same.h, lib/save-cwd.h, lib/savedir.h,
62388         lib/stdio-safer.h, lib/strtoimax.c, lib/strverscmp.h,
62389         lib/unistd-safer.h, lib/version-etc.h, lib/xalloc.h, lib/xreadlink.h,
62390         lib/xstrtod.h, lib/xstrtol.h: Likewise.
62391         * lib/filemode.h, lib/hard-locale.h, lib/memcoll.h, lib/modechange.h,
62392         lib/physmem.h, lib/same.h, lib/strverscmp.h: Do not include config.h;
62393         no longer needed. Anyway, config.h should always be included before any
62394         other file.
62395
62396 2003-06-11  Simon Josefsson  <jas@extundo.com>
62397
62398         * modules/sysexits: New file.
62399         * MODULES.html.sh (func_all_modules): Add sysexits.
62400
62401 2003-06-11  Simon Josefsson  <jas@extundo.com>
62402
62403         * lib/sysexit_.h: New file.
62404
62405 2003-06-11  Derek Price  <derek@ximbiot.com>
62406
62407         * lib/stat.c [LSTAT]: Compile/use slash_aware_lstat only if it is
62408         necessary.
62409
62410 2003-06-11  Bruno Haible  <bruno@clisp.org>
62411
62412         * m4/sysexits.m4: New file.
62413
62414 2003-06-10  Simon Josefsson  <jas@extundo.com>
62415
62416         * lib/argp.h: New file, from glibc.
62417         * lib/argp-ba.c: New file, from glibc.
62418         * lib/argp-eexst.c: New file, from glibc.
62419         * lib/argp-fmtstream.c: New file, from glibc.
62420         * lib/argp-fmtstream.h: New file, from glibc.
62421         * lib/argp-fs-xinl.c: New file, from glibc.
62422         * lib/argp-help.c: New file, from glibc.
62423         * lib/argp-namefrob.h: New file, from glibc.
62424         * lib/argp-parse.c: New file, from glibc.
62425         * lib/argp-pv.c: New file, from glibc.
62426         * lib/argp-pvh.c: New file, from glibc.
62427         * lib/argp-xinl.c: New file, from glibc.
62428
62429 2003-06-10  Simon Josefsson  <jas@extundo.com>
62430
62431         * modules/strchrnul: New file.
62432
62433 2003-06-10  Simon Josefsson  <jas@extundo.com>
62434
62435         * modules/argp: New file.
62436
62437 2003-06-10  Simon Josefsson  <jas@extundo.com>
62438
62439         * m4/strchrnul.m4: New file.
62440
62441 2003-06-10  Simon Josefsson  <jas@extundo.com>
62442
62443         * lib/strchrnul.h: New file.
62444         * lib/strchrnul.c: New file.
62445
62446 2003-06-10  Bruno Haible  <bruno@clisp.org>
62447
62448         * MODULES.html.sh (func_all_modules): Add strchrnul and argp.
62449
62450 2003-06-07  Karl Berry  <karl@gnu.org>
62451
62452         * config/config.{guess,sub}: update from prep.
62453
62454 2003-06-07  Jim Meyering  <jim@meyering.net>
62455
62456         * modules/strtod: Use $(...) notation, not @...@ for
62457         AC_REPLACE'd variables.
62458         * modules/localcharset: Likewise.
62459
62460 2003-06-07  Jim Meyering  <jim@meyering.net>
62461
62462         * lib/readtokens.h: Put `Free Software Foundation, Inc.'
62463         in place of my name in the copyright comment.
62464         Remove definition and uses of __P.
62465
62466         From coreutils.
62467         * lib/stat.c: Don't declare xmalloc explicitly.
62468         Instead, include "xalloc.h".
62469         * lib/readtokens.c (readtokens): Remove anachronistic casts of xmalloc,
62470         xrealloc, and xcalloc return values.
62471         * lib/xgetcwd.c (xgetcwd): Include "xgetcwd.h".
62472         Improve comment.
62473         * lib/xgetcwd.h: Remove definition/uses of PARAMS.
62474
62475 2003-06-07  Bruno Haible  <bruno@clisp.org>
62476
62477         * modules/poll (Makefile.am): Use explicit creation rule for poll.h, to
62478         avoid AC_CONFIG_LINKS.
62479         * modules/fnmatch (Makefile.am): Use explicit creation rule for
62480         fnmatch.h, to avoid AC_CONFIG_LINKS.
62481         * modules/alloca (Makefile.am): Make creation of alloca.h Ctrl-C safe.
62482
62483 2003-06-07  Bruno Haible  <bruno@clisp.org>
62484
62485         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH, gl_FUNC_FNMATCH_POSIX,
62486         gl_FUNC_FNMATCH_GNU): Set FNMATCH_H instead of invoking
62487         AC_CONFIG_LINKS. Needed to allow for a different name of the lib
62488         directory.
62489         * m4/poll.m4 (gl_FUNC_POLL): Set POLL_H instead of invoking
62490         AC_CONFIG_LINKS. Needed to allow for a different name of the lib
62491         directory.
62492
62493 2003-06-06  Jim Meyering  <jim@meyering.net>
62494
62495         Merge from coreutils.
62496         * lib/same.c: (same_name): Declare *_basename locals to be `const'.
62497         Consolidate declarations and initializations of *_base* locals.
62498
62499         Merge from coreutils.
62500         This avoids a core dump on systems without GNU putenv,
62501         when running `env -u SOME_ALREADY_UNSET_VARIABLE'.
62502         * lib/putenv.c (__set_errno, LOCK, UNLOCK): Define.
62503         (unsetenv): New static function, from GNU libc.
62504         (rpl_putenv): Use it.
62505
62506         * lib/modechange.c: Remove trailing blanks.
62507
62508         Merge from coreutils.
62509         * lib/fsusage.c: Remove declaration of statfs.
62510         It conflicted with one from OSF/1 5.1 in <sys/mount.h>.
62511
62512         * lib/posixtm.c: Include <stdbool.h> unconditionally.
62513
62514 2003-06-06  Jim Meyering  <jim@meyering.net>
62515
62516         * lib/stdbool_.h: Renamed from stdbool.h.in.
62517
62518 2003-06-06  Jim Meyering  <jim@meyering.net>
62519             Bruno Haible  <bruno@clisp.org>
62520
62521         * modules/stdbool: Reflect renaming: stdbool.h.in -> stdbool_.h.
62522         Adjust Makefile.am snippet not to redirect directly to target.
62523         Use $(STDBOOL_H) notation, not @STDBOOL_H@ for AC_REPLACE'd variables.
62524
62525 2003-06-05  Paul Eggert  <eggert@twinsun.com>
62526
62527         * lib/mktime.c (__mktime_internal): When resolving a tm_isdst
62528         mismatch, look in future quarters as well as past.  This fixes a
62529         bug when processing fall-backwards gaps immediately after a long
62530         period of daylight-saving time.
62531
62532         * lib/mktime.c: Assume freestanding C89 or better.
62533         (HAVE_LIMITS_H): Remove.  Assume it's 1.
62534         (__P): Remove; not used.
62535         (CHAR_BIT, INT_MIN, INT_MAX): Remove; <limits.h> defines them.
62536         (mktime, not_equal_tm, print_tm, check_result,
62537         main): Use prototypes.  Use const * where appropriate.
62538         (main): Fix typo in testing code that uncovered by above changes.
62539         (Local Variables): Remove -DHAVE_LIMITS_H from compile-command.
62540
62541 2003-06-04  Paul Eggert  <eggert@twinsun.com>
62542
62543         * m4/human.m4 (gl_HUMAN): Require AM_STDBOOL_H.  Check for
62544         locale.h, localeconv.  This merges changes from coreutils.
62545
62546         * m4/mktime.m4 (AC_FUNC_MKTIME): New macro, taken from Autoconf CVS.
62547         It can be removed after the next Autoconf is released.
62548         * m4/exclude.m4 (gl_EXCLUDE): Don't check for sys/types.h; no loner
62549         needed.
62550
62551 2003-06-04  Paul Eggert  <eggert@twinsun.com>
62552
62553         * lib/mktime.c: Fix Debian bug 177940
62554         <http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=177940>.
62555         (localtime_offset): Now long int, not time_t, because we want it
62556         to be guaranteed to be signed.  All uses changed.
62557         (__mktime_internal): If overflow would occur when adding offset,
62558         don't add it.
62559
62560         Merge 'human' changes from coreutils.  Rewrite to support
62561         locale-specific notations like thousands separators.
62562         * lib/human.c: Simplify authorship notice.
62563         Include human.h immediately after config.h.
62564         <sys/types.h>, <stdio.h>: Do not include; no longer needed.
62565         <limits.h>: Do not include, since human.h does.
62566         (SIZE_MAX, UINTMAX_MAX): New macros.
62567         <strings.h>: Include if HAVE_STRINGS_H, not if !HAVE_STRING_H.
62568         <locale.h>: Include if HAVE_LOCALE_H and HAVE_LOCALECONV.
62569         (HUMAN_READABLE_SUFFIX_LENGTH_MAX): New macro.
62570         (power_letter): Renamed from suffixes.
62571         (generate_suffix_backwards): Remove.
62572         (adjust_value): Now takes int style (because of human.h changes)
62573         and long double value (for greater precision on some platforms).
62574         (group_number): New function.
62575         (human_readable): Use it.  Use integer options, not enum.
62576         Put the options before the sizes in the arg list.
62577         Support all the new options.
62578         The old human_readable function has been removed;
62579         use inttostr.h instead.
62580         (human_readable, default_block_size, humblock):
62581         Use uintmax_t, not int, for block sizes.
62582         (human_readable_inexact, block_size_types): Remove.
62583         (block_size_opts): New constant.
62584         (human_options): Renamed from human_block_size, with new signature
62585         that allows block sizes up to UINTMAX_MAX.  All callers changed.
62586         * lib/human.h: Add copyright and authorship notice.
62587         Include <limits.h> and <stdbool.h> unconditionally.
62588         (PARAMS): Remove.  All uses removed.
62589         (LONGEST_HUMAN_READABLE): Add support for thousands separator.
62590         (enum human_inexact_style): Remove tag; now a nameless enum.
62591         (human_floor, human_ceiling, human_round_to_even): Now have
62592         values 2, 0, 1 rather than -1, 1, 0.
62593         (human_group_digits, human_suppress_point_zero, human_autoscale,
62594         human_base_1024, human_SI, human_B): New constants.
62595         (human_readable_inexact, human_block_size): Remove.
62596         (human_readable): Size args are now uintmax_t, not int.
62597         (human_options): New decl.
62598
62599         * lib/exclude.c: (new_exclude, add_exclude): Remove casts that are
62600         unnecessary now that we assume C89 or better.  This change
62601         imported from coreutils.
62602
62603         * lib/mktime.c (__mktime_internal): Do not reject negative timestamps
62604         arbitrarily.  This is the same patch as 2003-05-28, but it got lost
62605         in the 2003-05-30 sync from glibc.
62606
62607         .h files should stand alone, but we shouldn't include <sys/types.h>
62608         if we can get away with just <stddef.h>.
62609
62610         * lib/__fpending.h, addext.c, backupfile.c, exclude.c, getline.c,
62611         malloc.c, putenv.c, realloc.c, strcasecmp.c: Include <stddef.h>
62612         rather than <sys/types.h>, as we merely need size_t.
62613         * lib/dirname.h, memcoll.h, xalloc.h, xmemcoll.h: Include <stddef.h>,
62614         to get size_t.
62615         * lib/hash.h, linebuffer.h, readtokens.h, stdio-safer.h, version-etc.h:
62616         Include <stdio.h>, to get FILE.
62617         * lib/memcasecmp.c: Don't include <sys/types.h>, as we can assume
62618         memcasecmp.h has included <stddef.h> and all we need is size_t.
62619         * lib/memcoll.c: Include "memcoll.h", which gets us size_t and checks
62620         our interface, instead of including <sys/types.h>
62621
62622 2003-06-04  Paul Eggert  <eggert@twinsun.com>
62623
62624         * config/srclist.txt ($LIBCSRC/time/mktime.c lib gpl): Comment out for
62625         now, as glibc mktime is buggy on non-glibc systems.
62626
62627 2003-06-03  Karl Berry  <karl@gnu.org>
62628
62629         * config/config.sub: update from prep.
62630
62631 2003-06-02  Paul Eggert  <eggert@twinsun.com>
62632
62633         [from coreutils]
62634         Fix some minor time-related bugs with POSIX time arguments.
62635         Some valid time stamps were being rejected (notably -1, and
62636         time stamps before 1900 on 64-bit hosts).  And some invalid
62637         time stamps were being accepted, e.g. September 31.
62638
62639         * lib/posixtm.h (posixtime): Return bool instead of time_t, so
62640         that we can return (time_t) -1 successfully.
62641         * lib/posixtm.c: Likewise.
62642         [HAVE_STDBOOL_H]: Include <stdbool.h>.
62643         (bool, false, true) [!HAVE_STDBOOL_H]: New type.
62644         (t): Remove static var.
62645         (year, posix_time_parse): Now takes struct tm * arg to modify, instead
62646         of static var.  All uses changed.
62647         (year): Do not reject years before 1900; they can occur with
62648         64-bit time_t.
62649         (posix_time_parse): Do not check for out-of-range components;
62650         that is now the caller's responsibility, since our checks were
62651         only approximations.
62652         (posixtime): Use mktime to check for out-of-range components,
62653         since it knows them exactly.
62654         If mktime returns (time_t) -1, check whether an error actually occurred
62655         by invoking localtime on -1.
62656         (main) [TEST_POSIXTIME]: Check for input data errors, and report
62657         posixtime failures better.
62658         Improve the test data (in comments only).
62659
62660 2003-06-02  Karl Berry  <karl@gnu.org>
62661
62662         * config/mkinstalldirs (version): new variable.
62663         (--version): new option.
62664         (usage): improve message.
62665
62666 2003-05-30  Karl Berry  <karl@gnu.org>
62667
62668         * lib/mktime.c: update from libc.
62669
62670 2003-05-30  Bruno Haible  <bruno@clisp.org>
62671
62672         * modules/gettext: Add files m4/nls.m4 and m4/po.m4.
62673         * config/config.rpath: Upgrade to gettext-0.12.1.
62674
62675 2003-05-30  Bruno Haible  <bruno@clisp.org>
62676
62677         * m4/gettext.m4: Upgrade to gettext-0.12.1.
62678         * m4/nls.m4: New file, from gettext-0.12.1.
62679         * m4/po.m4: New file, from gettext-0.12.1.
62680         * m4/progtest.m4: Upgrade to gettext-0.12.1.
62681
62682 2003-05-30  Bruno Haible  <bruno@clisp.org>
62683
62684         * lib/config.charset: Upgrade to gettext-0.12.1 and libiconv-1.9.1.
62685         * lib/localcharset.h: Likewise.
62686         * lib/localcharset.c: Likewise.
62687
62688 2003-05-29  Karl Berry  <karl@gnu.org>
62689
62690         * config/config.rpath: update from gettext.
62691
62692 2003-05-28  Paul Eggert  <eggert@twinsun.com>
62693
62694         Assume the headers required for C89 freestanding compilers.
62695         * m4/backupfile.m4 (gl_BACKUPFILE): Don't check for limits.h.
62696         * m4/fsusage.m4 (gl_PREREQ_FSUSAGE_EXTRA): Likewise.
62697         * m4/human.m4 (gl_HUMAN): Likewise.
62698         * m4/pathmax.m4 (gl_PATHMAX): Likewise.
62699         * m4/rpmatch.m4 (gl_FUNC_RPMATCH): Likewise.
62700         * m4/userspec.m4 (gl_USERSPEC): Likewise.
62701         * m4/xreadlink.m4 (gl_XREADLINK): Likewise.
62702         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Likewise.
62703         * m4/quote.m4 (gl_QUOTE): Don't check for stddef.h.
62704
62705 2003-05-28  Paul Eggert  <eggert@twinsun.com>
62706
62707         Assume the headers required for C89 freestanding compilers.
62708         * lib/addext.c, lib/backupfile.c, lib/fsusage.c, lib/human.c,
62709         lib/pathmax.h, lib/rpmatch.c, lib/userspec.c, lib/xreadlink.c,
62710         lib/xstrtol.c: Include <limits.h> without checking for HAVE_LIMITS_H.
62711         * lib/backupfile.c, lib/fsusage.c, lib/hash.c, lib/human.c,
62712         lib/safe-read.c, lib/userspec.c, lib/xstrtol.c (CHAR_BIT): Don't
62713         define, since <limits.h> is guaranteed to do that.
62714         * lib/fatal.c: Include <stdarg.h> without checking for __STDC__.
62715         * lib/exclude.c: Include <stdbool.h> unconditionally.
62716         * lib/tempname.c: Include <stddef.h> unconditionally.
62717         * lib/hash.c: Include <limits.h>, since we no longer define CHAR_BIT.
62718         * lib/modechange.c, rpmatch.c (NULL): Don't define, since
62719         <stddef.h> does that.
62720         * lib/quote.c: Dont include <stddef.h> or <sys/types.h>; not needed.
62721         * lib/safe-read.c (INT_MAX): Don't define, since <limits.h> does that.
62722         * lib/safe-read.c (TYPE_MINIMUM, TYPE_MAXIMUM): Remove; no longer
62723         needed.
62724         * lib/xstrtol.c: Likewise.
62725         * lib/safe-read.c: Remove TYPE_SIGNED; no longer needed.
62726         * lib/savedir.c: Include <stddef.h> instead of defining NULL.
62727
62728         * lib/addext.c (addext): Use assignment rather than cast, to avoid
62729         warnings on some platforms.
62730
62731         * lib/mktime.c (__mktime_internal): Do not reject negative timestamps
62732         arbitrarily.
62733
62734 2003-05-26  Jim Meyering  <jim@meyering.net>
62735
62736         Merge in a change from coreutils:
62737         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Test the cache variable, not one
62738         that is guaranteed to be `no'.  Use `no_such_member' to indicate
62739         that condition, rather than `-1' which is slightly misleading.
62740         Change the name of the cache variable to have the gl_ prefix.
62741         Prompted by a patch from Richard Dawe for DJGPP.
62742
62743 2003-05-24  Karl Berry  <karl@gnu.org>
62744
62745         * config/config.guess: update from prep.
62746
62747 2003-05-22  Karl Berry  <karl@gnu.org>
62748
62749         * gnulib-tool (func_usage): =LIBRARY not =libRARY in help msg.
62750
62751 2003-05-20  Karl Berry  <karl@gnu.org>
62752
62753         * config/config.guess: update from prep.
62754
62755 2003-05-18  Karl Berry  <karl@gnu.org>
62756
62757         * config/srclistvars.sh (TEXMF): use TEXMFROOT instead, since TEXMF
62758         might actually be set by the user.
62759
62760         * config/depcomp, install-sh, mdate-sh: update from automake.
62761
62762 2003-05-17  Bruno Haible  <bruno@clisp.org>
62763
62764         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Fix a quoting bug leading to an
62765         invalid expansion for AC_EGREP_CPP.
62766         * m4/strtoimax.m4 (gl_FUNC_STRTOIMAX): Likewise.
62767         * m4/strtoumax.m4 (gl_FUNC_STRTOUMAX): Likewise.
62768         Suggested by Akim Demaille <akim@epita.fr> in
62769         http://mail.gnu.org/archive/html/bug-autoconf/2003-05/threads.html
62770
62771 2003-05-12  Jim Meyering  <jim@meyering.net>
62772
62773         * lib/strftime.c (my_strftime): Let the `-' (no-pad) flag affect
62774         the space-padded-by-default conversion specifiers, %e, %k, %l.
62775
62776 2003-05-12  Bruno Haible  <bruno@clisp.org>
62777
62778         * lib/linebreak.c (iconv_string_length): Don't return -1 just because
62779         the string is longer than 4 KB.
62780
62781 2003-05-11  Karl Berry  <karl@gnu.org>
62782
62783         * config/config.{guess,sub}: update from prep.
62784
62785 2003-05-09  Bruno Haible  <bruno@clisp.org>
62786
62787         * modules/error: Add m4/strerror_r.m4 to file list.
62788
62789 2003-05-03  Bruno Haible  <bruno@clisp.org>
62790
62791         Upgrade to Unicode-4.0.
62792         * lib/linebreak.c (nonspacing_table_data): Change width of U+00AD,
62793         U+0350..U+0357, U+035D..U+035F, U+0600..U+0603, U+0610..U+0615,
62794         U+0656..U+0658, U+0A01, U+0AE2..U+0AE3, U+0CBC, U+17B4..U+17B5,
62795         U+17DD, U+1920..U+1922, U+1927..U+192B, U+1932, U+1939..U+193B
62796         from 1 to 0. Change width of U+0CBF, U+0CC6, U+180E from 0 to 1.
62797         (uc_width): Change width of U+4DC0..U+4DFF from 2 to 1. Change width
62798         of U+2A6D7..U+2F7FF, U+2FA1E..U+2FFFD, U+30000..U+3FFFD from 1 to 2.
62799         Change width of U+E0100..U+E01EF from 1 to 0.
62800
62801 2003-04-25  Jim Meyering  <jim@meyering.net>
62802
62803         * lib/copy-file.c (copy_file_preserving): Declare buf_size to be
62804         of type size_t, not int.
62805
62806 2003-04-25  Bruno Haible  <bruno@clisp.org>
62807
62808         * lib/copy-file.c: Include <stddef.h>, for size_t.
62809
62810 2003-04-21  Paul Eggert  <eggert@twinsun.com>
62811
62812         * m4/error.m4 (gl_ERROR): Do not put under dynamic conditions some
62813         code which expansion is under static control.  Patch imported from
62814         Akim Demaille's patch to Bison; see
62815         <http://mail.gnu.org/archive/html/bison-patches/2003-03/msg00057.html>.
62816
62817 2003-04-14  Bruno Haible  <bruno@clisp.org>
62818
62819         * m4/error.m4 (jm_PREREQ_ERROR): Use AC_FUNC_VPRINTF.
62820
62821 2003-04-11  Jim Meyering  <jim@meyering.net>
62822
62823         Merge changes from Coreutils.
62824
62825         2003-03-22  Jim Meyering  <jim@meyering.net>
62826
62827         * lib/strftime.c (widen): Cast alloca return value to proper type.
62828
62829         2003-01-19  Ulrich Drepper  <drepper@redhat.com>
62830
62831         From GNU libc.
62832         * lib/strftime.c (my_strftime): Handle very large width
62833         specifications for numeric values correctly.  Improve checks for
62834         overflow.
62835
62836         2003-01-19  Jim Meyering  <jim@meyering.net>
62837
62838         * lib/strftime.c (widen) [COMPILE_WIDE]: Merge nearly-identical
62839         definitions.
62840         (nl_get_alt_digit) [! defined my_strftime]: Define.
62841         (my_strftime) [_NL_CURRENT]: Merge nearly-identical uses of
62842         _nl_get_alt_digit and _nl_get_walt_digit.
62843
62844         * lib/strftime.c (my_strftime): Merge in locale-related changes from
62845         libc. These changes have no effect outside of _LIBC.
62846
62847 2003-04-10  Bruno Haible  <bruno@clisp.org>
62848
62849         * modules/findprog: New file.
62850         * MODULES.html.sh (func_all_modules): Add it.
62851
62852 2003-04-10  Bruno Haible  <bruno@clisp.org>
62853
62854         * m4/findprog.m4: New file.
62855         * m4/eaccess.m4: New file.
62856
62857 2003-04-10  Bruno Haible  <bruno@clisp.org>
62858
62859         * lib/findprog.h: New file, from GNU gettext.
62860         * lib/findprog.c: New file, from GNU gettext.
62861
62862 2003-04-05  Jim Meyering  <jim@meyering.net>
62863
62864         Merge changes from Coreutils.
62865
62866         * lib/exclude.h (PARAMS): Remove definition and uses.
62867         * lib/exclude.c: Remove uses of `PARAMS'.
62868
62869         * lib/dirname.c [TEST_DIRNAME]: Update build instructions for test.
62870         Add test-cases for DOS filenames. Declare program_name.
62871         (main): Set up program_name.  Patch by Rich Dawe.
62872
62873         * lib/mountlist.c (read_filesystem_list) [MOUNTED_VMOUNT]: Detect any
62874         error from mntctl.
62875         Use mntctl's return value to drive the entry-processing loop, since
62876         we can't rely on the value of the vmt_length member in the last
62877         entry.  On some systems doing so could result in exhausting
62878         virtual memory.  Based in part on a patch from Mike Jetzer.
62879
62880 2003-04-04  Bruno Haible  <bruno@clisp.org>
62881
62882         * modules/linebreak: New file.
62883         * MODULES.html.sh (func_all_modules): Add it.
62884
62885 2003-04-04  Bruno Haible  <bruno@clisp.org>
62886
62887         * m4/linebreak.m4: New file.
62888
62889 2003-04-04  Bruno Haible  <bruno@clisp.org>
62890
62891         * lib/linebreak.h: New file, from GNU gettext.
62892         * lib/linebreak.c: New file, from GNU gettext with slight
62893         modifications.
62894         * lib/lbrkprop.h: New file, from GNU gettext.
62895
62896 2003-04-03  Bruno Haible  <bruno@clisp.org>
62897
62898         * modules/utf8-ucs4: New file.
62899         * modules/utf16-ucs4: New file.
62900         * modules/ucs4-utf8: New file.
62901         * modules/ucs4-utf16: New file.
62902         * MODULES.html.sh (func_all_modules): Add them.
62903
62904 2003-04-03  Bruno Haible  <bruno@clisp.org>
62905
62906         * m4/utf-ucs4.m4: New file.
62907         * m4/ucs4-utf.m4: New file.
62908
62909 2003-04-03  Bruno Haible  <bruno@clisp.org>
62910
62911         * lib/utf8-ucs4.h: New file, from GNU gettext.
62912         * lib/utf16-ucs4.h: New file, from GNU gettext.
62913         * lib/ucs4-utf8.h: New file, from GNU gettext.
62914         * lib/ucs4-utf16.h: New file, from GNU gettext.
62915
62916 2003-04-02  Bruno Haible  <bruno@clisp.org>
62917
62918         * modules/binary-io: New file.
62919         * MODULES.html.sh (func_all_modules): Add it.
62920
62921 2003-04-02  Bruno Haible  <bruno@clisp.org>
62922
62923         * lib/binary-io.h: New file, from GNU gettext.
62924
62925 2003-04-01  Bruno Haible  <bruno@clisp.org>
62926
62927         * modules/pathname: New file.
62928         * MODULES.html.sh (func_all_modules): Add it.
62929
62930 2003-04-01  Bruno Haible  <bruno@clisp.org>
62931
62932         * lib/pathname.h: New file, from GNU gettext.
62933         * lib/concatpath.c: New file, from GNU gettext.
62934
62935 2003-03-30  Bruno Haible  <bruno@clisp.org>
62936
62937         * m4/copy-file.m4 (gl_COPY_FILE): Add check for chown().
62938
62939 2003-03-30  Bruno Haible  <bruno@clisp.org>
62940
62941         * lib/copy-file.c (copy_file_preserving): Don't set owner if the
62942         function chown() doesn't exist.
62943
62944 2003-03-28  Bruno Haible  <bruno@clisp.org>
62945
62946         * modules/copy-file: New file.
62947         * MODULES.html.sh (func_all_modules): Add it.
62948
62949 2003-03-28  Bruno Haible  <bruno@clisp.org>
62950
62951         * m4/copy-file.m4: New file.
62952
62953 2003-03-28  Bruno Haible  <bruno@clisp.org>
62954
62955         * lib/copy-file.h: New file, from GNU gettext.
62956         * lib/copy-file.c: New file, from GNU gettext.
62957
62958 2003-03-18  Jim Meyering  <jim@meyering.net>
62959
62960         * lib/quote.c (quote_n): Fix typo in comment.
62961
62962 2003-03-18  Bruno Haible  <bruno@clisp.org>
62963
62964         * m4/onceonly.m4: Use m4_defn instead of defn, for better error
62965         checking.
62966         * m4/onceonly_2_57.m4: Likewise.
62967
62968 2003-03-17  Bruno Haible  <bruno@clisp.org>
62969
62970         * m4/onceonly.m4: Require autoconf 2.54 or newer.
62971         (m4_quote): Remove macro.
62972         * m4/onceonly_2_57.m4: Require autoconf 2.54 or newer.
62973
62974 2003-03-14  Jim Meyering  <jim@meyering.net>
62975
62976         Merge changes from Coreutils.
62977         * lib/obstack.h (obstack_object_size): Declare temporary, __o,
62978         to be const, in order to avoid warnings.
62979         (obstack_room): Likewise.
62980         (obstack_empty_p): Likewise.
62981
62982 2003-03-14  Bruno Haible  <bruno@clisp.org>
62983
62984         * m4/onceonly_2_57.m4 (AC_CHECK_HEADERS_ONCE, AC_CHECK_FUNCS_ONCE,
62985         AC_CHECK_DECLS_ONCE): Quote AC_FOREACH variable-expansions properly.
62986
62987 2003-03-13  Paul Eggert  <eggert@twinsun.com>
62988
62989         Merge changes from Bison.
62990         * lib/obstack.h: (__INT_TO_PTR) [__STDC__]: Cast result to
62991         (void *) to avoid diagnostic with native c89 on SGI IRIX 6.5
62992         when compiling Bison 1.875's `bitset bset = obstack_alloc
62993         (bobstack, bytes);'.  Problem reported by Nelson H. F. Beebe.
62994         * lib/hash.c: Include <stdbool.h> unconditionally.
62995
62996 2003-03-13  Paul Eggert  <eggert@twinsun.com>
62997
62998         * m4/onceonly.m4 (m4_quote): New macro.
62999         (AC_CHECK_HEADERS_ONCE, AC_CHECK_FUNCS_ONCE, AC_CHECK_DECLS_ONCE):
63000         Quote AC_FOREACH variable-expansions properly.
63001
63002 2003-03-13  Paul Eggert  <eggert@twinsun.com>
63003
63004         * doc/COPYING.DOC, fdl.texi: Sync with latest FSF version.
63005
63006 2003-03-09  Paul Eggert  <eggert@twinsun.com>
63007
63008         * lib/argmatch.c (EXIT_FAILURE): Define if the system doesn't.
63009         Reported by Bruce Becker; see:
63010         http://mail.gnu.org/archive/html/bug-bison/2003-03/msg00017.html
63011
63012 2003-03-03  Paul Eggert  <eggert@twinsun.com>
63013             Bruno Haible  <bruno@clisp.org>
63014
63015         * lib/mbswidth.h: Include <wchar.h>. Needed for UnixWare 7.1.1.
63016         Reported by John Hughes, see
63017         http://mail.gnu.org/archive/html/bug-bison/2003-02/msg00030.html
63018
63019 2003-02-20  Bruno Haible  <bruno@clisp.org>
63020
63021         * MODULES.html.sh (func_all_modules): Add poll.
63022
63023 2003-02-19  Paolo Bonzini  <bonzini@gnu.org>
63024
63025         * modules/poll: New file.
63026
63027 2003-02-19  Paolo Bonzini  <bonzini@gnu.org>
63028
63029         * lib/poll_.h: New file.
63030         * lib/poll.c: New file.
63031
63032 2003-02-19  Paolo Bonzini  <bonzini@gnu.org>
63033
63034         * m4/poll.m4: New file.
63035
63036 2003-02-18  Paolo Bonzini  <bonzini@gnu.org>
63037
63038         * modules/mathl: New file.
63039
63040 2003-02-18  Paolo Bonzini  <bonzini@gnu.org>
63041
63042         * lib/mathl.h: New file.
63043         * lib/acosl.c: New file.
63044         * lib/asinl.c: New file.
63045         * lib/atanl.c: New file.
63046         * lib/ceill.c: New file.
63047         * lib/cosl.c: New file.
63048         * lib/expl.c: New file.
63049         * lib/floorl.c: New file.
63050         * lib/frexpl.c: New file.
63051         * lib/ldexpl.c: New file.
63052         * lib/logl.c: New file.
63053         * lib/sincosl.c: New file.
63054         * lib/sinl.c: New file.
63055         * lib/sqrtl.c: New file.
63056         * lib/tanl.c: New file.
63057         * lib/trigl.c: New file.
63058         * lib/trigl.h: New file.
63059
63060 2003-02-18  Paolo Bonzini  <bonzini@gnu.org>
63061
63062         * m4/mathl.m4: New file.
63063
63064 2003-02-18  Bruno Haible  <bruno@clisp.org>
63065
63066         * MODULES.html.sh (func_all_modules): Add mathl.
63067
63068 2003-02-17  Bruno Haible  <bruno@clisp.org>
63069
63070         * modules/mkdtemp: New module.
63071         * MODULES.html.sh (func_all_modules): Add it.
63072
63073 2003-02-17  Bruno Haible  <bruno@clisp.org>
63074
63075         * m4/mkdtemp.m4: New file, from GNU gettext with modifications.
63076
63077 2003-02-17  Bruno Haible  <bruno@clisp.org>
63078
63079         * lib/mkdtemp.h: New file, from GNU gettext.
63080         * lib/mkdtemp.c: New file, from GNU gettext.
63081
63082 2003-02-02  Jim Meyering  <jim@meyering.net>
63083
63084         * m4/regex.m4 (jm_INCLUDED_REGEX): Detect broken re_search in
63085         e.g. glibc-2.2.93.
63086
63087 2003-01-31  Bruno Haible  <bruno@clisp.org>
63088
63089         * m4/rename.m4 (vb_FUNC_RENAME): Add a redirection from 'rename' to
63090         'rpl_rename'.
63091         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Add a redirection from 'strnlen' to
63092         'rpl_strnlen'.
63093         * m4/strtod.m4 (gl_FUNC_STRTOD): Add a redirection from 'strtod' to
63094         'rpl_strtod'.
63095         * m4/utime.m4 (jm_FUNC_UTIME): Add a redirection from 'utime' to
63096         'rpl_utime'.
63097
63098 2003-01-31  Bruno Haible  <bruno@clisp.org>
63099
63100         * lib/rename.c: #undef rename before defining rpl_rename.
63101         * lib/strnlen.c: #undef strnlen, define rpl_strnlen instead of strnlen.
63102
63103 2003-01-30  Bruno Haible  <bruno@clisp.org>
63104
63105         * modules/vasnprintf, modules/vasprintf: New modules.
63106         * MODULES.html.sh (func_all_modules): Add them.
63107
63108 2003-01-30  Bruno Haible  <bruno@clisp.org>
63109
63110         * m4/signed.m4: New file, from GNU gettext.
63111         * m4/longdouble.m4: New file, from GNU gettext.
63112         * m4/wchar_t.m4: New file, from GNU gettext.
63113         * m4/wint_t.m4: New file, from GNU gettext.
63114         * m4/vasnprintf.m4: New file.
63115         * m4/vasprintf.m4: New file.
63116
63117 2003-01-30  Bruno Haible  <bruno@clisp.org>
63118
63119         * lib/printf-args.h: New file, from GNU gettext.
63120         * lib/printf-args.c: New file, from GNU gettext.
63121         * lib/printf-parse.h: New file, from GNU gettext.
63122         * lib/printf-parse.c: New file, from GNU gettext.
63123         * lib/vasnprintf.h: New file, from GNU gettext.
63124         * lib/vasnprintf.c: New file, from GNU gettext.
63125         * lib/asnprintf.c: New file, from GNU gettext.
63126         * lib/vasprintf.h: New file, from GNU gettext with modifications.
63127         * lib/vasprintf.c: New file, from GNU gettext.
63128         * lib/asprintf.c: New file, from GNU gettext.
63129
63130 2003-01-29  Bruno Haible  <bruno@clisp.org>
63131
63132         * modules/stpncpy: New module.
63133         * MODULES.html.sh (func_all_modules): Add it.
63134
63135 2003-01-29  Bruno Haible  <bruno@clisp.org>
63136
63137         * m4/stpncpy.m4: New file.
63138
63139 2003-01-29  Bruno Haible  <bruno@clisp.org>
63140
63141         * lib/stpncpy.h: New file, from GNU gettext with modifications.
63142         * lib/stpncpy.c: New file, from GNU gettext with modifications.
63143
63144 2003-01-28  Bruno Haible  <bruno@clisp.org>
63145
63146         * modules/c-ctype: New module.
63147         * MODULES.html.sh (func_all_modules): Add it.
63148
63149 2003-01-28  Bruno Haible  <bruno@clisp.org>
63150
63151         * lib/c-ctype.h: New file, from GNU gettext, with changes suggested by
63152         Paul Eggert.
63153         * lib/c-ctype.c: New file, from GNU gettext, with changes suggested by
63154         Paul Eggert.
63155
63156 2003-01-27  Bruno Haible  <bruno@clisp.org>
63157
63158         * modules/xsetenv: New module.
63159         * MODULES.html.sh (func_all_modules): Add it.
63160
63161 2003-01-27  Bruno Haible  <bruno@clisp.org>
63162
63163         * lib/xsetenv.h: New file, from GNU gettext.
63164         * lib/xsetenv.c: New file, from GNU gettext.
63165
63166 2003-01-23  Jim Meyering  <jim@meyering.net>
63167
63168         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Correct typo: s/-1/no/ that kept this
63169         from working on systems without dirfd (at least Irix and OSF1/Tru64).
63170
63171 2003-01-23  Bruno Haible  <bruno@clisp.org>
63172
63173         * modules/minmax: New module.
63174         * MODULES.html.sh (func_all_modules): Add it.
63175
63176 2003-01-23  Bruno Haible  <bruno@clisp.org>
63177
63178         * lib/minmax.h: New file, from GNU gettext, with comments from Paul
63179         Eggert.
63180
63181 2003-01-22  Bruno Haible  <bruno@clisp.org>
63182
63183         * modules/exit: New module.
63184         * MODULES.html.sh (func_all_modules): Add it.
63185
63186 2003-01-22  Bruno Haible  <bruno@clisp.org>
63187
63188         * lib/exit.h: New file, from GNU gettext.
63189
63190 2003-01-19  Bruno Haible  <bruno@clisp.org>
63191
63192         * gnulib-tool: Recognize option --extract-maintainer.
63193         (func_get_maintainer): New function.
63194         * modules/*: Add Maintainer entry.
63195
63196 2003-01-16  Jim Meyering  <jim@meyering.net>
63197
63198         * m4/regex.m4: The `regex' struct is both input and output.
63199         Initialize it before each use.  Patch by Tim Waugh.
63200
63201 2003-01-16  Bruno Haible  <bruno@clisp.org>
63202
63203         * MODULES.html.sh: Add a table of contents. Add the module name as
63204         leftmost column. Add hyperlinks.
63205
63206 2003-01-15  Bruno Haible  <bruno@clisp.org>
63207
63208         * m4/md5.m4 (gl_MD5): Require AC_C_INLINE.
63209
63210 2003-01-15  Bruno Haible  <bruno@clisp.org>
63211
63212         * m4/longlong.m4 (jm_AC_TYPE_LONG_LONG): Also test the LL suffix.
63213         * m4/ulonglong.m4 (jm_AC_TYPE_UNSIGNED_LONG_LONG): Also test the ULL
63214         suffix.
63215
63216 2003-01-15  Bruno Haible  <bruno@clisp.org>
63217
63218         * m4/alloca.m4 (gl_FUNC_ALLOCA): Invoke AC_EGREP_CPP prerequisites.
63219
63220 2003-01-15  Bruno Haible  <bruno@clisp.org>
63221
63222         * lib/stpcpy.h (stpcpy): Use ANSI C function declarations.
63223         * lib/strcase.h (strcasecmp, strncasecmp): Likewise.
63224
63225 2003-01-14  Jim Meyering  <jim@meyering.net>
63226
63227         * lib/same.c (same_name): Tweak a comment.
63228
63229 2003-01-14  Bruno Haible  <bruno@clisp.org>
63230
63231         * lib/same.c (same_name): Reorder tests so as to avoid calling stat()
63232         when a string comparison is sufficient.
63233
63234 2003-01-14  Bruno Haible  <bruno@clisp.org>
63235
63236         * lib/readtokens.c (readtoken): Cast character to 'unsigned char', not
63237         'unsigned int'.
63238
63239 2003-01-14  Bruno Haible  <bruno@clisp.org>
63240
63241         * lib/hash-pjw.c: Add comment about low quality of this function.
63242
63243 2003-01-13  Bruno Haible  <bruno@clisp.org>
63244
63245         * modules/stpcpy: Distribute lib/stpcpy.h.
63246         * modules/setenv: Depend on alloca. Distribute lib/setenv.h.
63247
63248 2003-01-13  Bruno Haible  <bruno@clisp.org>
63249
63250         * modules/*: Add a description.
63251         * modules/strpbrk: Fix Makefile.am snippet.
63252         * modules/strtoimax: Fix dependencies.
63253         * modules/strtoumax: Likewise.
63254
63255 2003-01-13  Bruno Haible  <bruno@clisp.org>
63256
63257         * gnulib-tool (func_create_testdir): Substitute lib_OBJECTS.
63258         * modules/alloca (Makefile.am): All object files depend on alloca.h.
63259         * modules/stdbool (Makefile.am): All object files depend on stdbool.h.
63260
63261 2003-01-13  Bruno Haible  <bruno@clisp.org>
63262
63263         * gnulib-tool (func_create_testdir): Store config/* files in the main
63264         directory.
63265         * config.rpath: Move to ...
63266         * config/config.rpath: ... here.
63267         * modules/gettext: Contains config/config.rpath, not config.rpath.
63268         * modules/iconv: Likewise.
63269
63270 2003-01-12  Paul Eggert  <eggert@twinsun.com>
63271
63272         Finish renaming getstr -> getdelim2 and readline -> readlinebuffer,
63273         to avoid collisions with libcurses and libreadline.
63274
63275         * m4/getstr.m4: Remove.
63276         * m4/getline.m4 (gl_PREREQ_GETLINE): Require AC_HEADER_STDC.
63277
63278 2003-01-12  Paul Eggert  <eggert@twinsun.com>
63279
63280         Finish renaming getstr -> getdelim2 and readline -> readlinebuffer,
63281         to avoid collisions with libcurses and libreadline.
63282
63283         * lib/Makefile.am (libfetish_a_SOURCES): Remove getstr.c, getstr.h.
63284         * lib/getstr.h, getstr.c: Remove.
63285         * lib/getline.c: Include "getline.h", to check interface.
63286         Move body of old getstr.c here: this defines MIN_CHUNK and
63287         declares getdelim2, which is renamed from getstr.
63288         (getline, getdelim): Adjust to renaming of getstr -> getdelim2.
63289
63290         * lib/linebuffer.c (readlinebuffer): Renamed from readline.
63291         All uses changed.
63292         * lib/linebuffer.h: Likewise.
63293         (readline): Remove backward-compatibility macro.
63294
63295 2003-01-12  Paul Eggert  <eggert@twinsun.com>
63296
63297         Finish renaming getstr -> getdelim2 and readline -> readlinebuffer,
63298         to avoid collisions with libcurses and libreadline.
63299         * getstr: Remove.
63300         * MODULES.html.sh: Remove getstr.
63301         * modules/getline: Depend on unlocked-io, not getstr.
63302
63303 2003-01-12  Jim Meyering  <jim@meyering.net>
63304
63305         * lib/makepath.c: Don't test HAVE_ERRNO_H.  It's not necessary.
63306
63307 2003-01-10  Bruno Haible  <bruno@clisp.org>
63308
63309         * modules/alloca: Change Makefile.am requirements. Simplify Include
63310         requirements. Add lib/alloca_.h to file list.
63311
63312 2003-01-10  Bruno Haible  <bruno@clisp.org>
63313
63314         * m4/alloca.m4 (gl_FUNC_ALLOCA): Also define ALLOCA_H.
63315
63316 2003-01-10  Bruno Haible  <bruno@clisp.org>
63317
63318         * lib/alloca_.h: New file.
63319         * lib/getdate.y: Unconditionally include alloca.h.
63320         * lib/makepath.c: Likewise.
63321         * lib/setenv.c: Likewise.
63322         * lib/userspec.c: Likewise.
63323
63324 2003-01-09  Karl Berry  <karl@gnu.org>
63325
63326         * MODULES.html.sh: include `dirname $0` in PATH, to find
63327         gnulib-tool.
63328
63329 2003-01-09  Bruno Haible  <bruno@clisp.org>
63330
63331         * modules/stdbool: Change configure.ac, Makefile.am requirements.
63332         Simplify Include requirements. Add lib/stdbool.h.in to file list.
63333
63334 2003-01-09  Bruno Haible  <bruno@clisp.org>
63335
63336         * m4/stdbool.m4 (AM_STDBOOL_H): New macro.
63337
63338 2003-01-09  Bruno Haible  <bruno@clisp.org>
63339
63340         * lib/stdbool.h.in: New file.
63341
63342 2003-01-09  Bruno Haible  <bruno@clisp.org>
63343
63344         * gnulib-tool (func_all_modules): Ignore files ending in ~.
63345         * MODULES.html.sh: Likewise.
63346
63347 2003-01-08  Jim Meyering  <jim@meyering.net>
63348
63349         * lib/full-write.c: Undefine and define-away `const' after inclusion
63350         of errno.h, not before.  Suggestion from Bruno Haible.
63351
63352 2003-01-08  Bruno Haible  <bruno@clisp.org>
63353
63354         * modules/full-read: Depend on full-write.
63355
63356 2003-01-08  Bruno Haible  <bruno@clisp.org>
63357
63358         * lib/safe-read.c: Include specification header first, to ensure its
63359         selfcontainedness.
63360         * lib/full-write.c: Likewise.
63361
63362 2003-01-07  Jim Meyering  <jim@meyering.net>
63363
63364         * lib/full-write.c: Rework so that it may serve to define full_read,
63365         too.
63366         * lib/full-read.c: Simply #define FULL_READ and include full-write.c.
63367
63368 2003-01-07  Bruno Haible  <bruno@clisp.org>
63369
63370         * lib/strtoimax.c: Include <stdint.h> as an alternative to
63371         <inttypes.h>.
63372         * lib/xstrtol.h: Likewise.
63373         * lib/xstrtoimax.c: Likewise.
63374         * lib/xstrtoumax.c: Likewise.
63375         * lib/human.h: Likewise.
63376
63377         * lib/tempname.c: Include <inttypes.h> too. Avoids a compilation error
63378         on systems that have <inttypes.h> but not <stdint.h>.
63379
63380 2003-01-07  Bruno Haible  <bruno@clisp.org>
63381
63382         * MODULES.html.sh: Add copyright notice.
63383         (missed_files): Omit CVS directory entries.
63384         (func_module): Make it work with sed-3.02.
63385         * MODULES.txt: Remove file.
63386
63387 2003-01-06  Jim Meyering  <jim@meyering.net>
63388
63389         * lib/version-etc.c: Update year in translatable copyright string.
63390
63391 2003-01-03  Karl Berry  <karl@gnu.org>
63392
63393         * config/config.{guess,sub}: update from prep.
63394
63395 2003-01-02  Karl Berry  <karl@gnu.org>
63396
63397         * doc/COPYING.DOC: belatedly updated to 1.2.
63398
63399 2003-01-01  Karl Berry  <karl@gnu.org>
63400
63401         * gnulib-tool (func_verify_module): report module name $module in
63402         error message, not $1.
63403         * gnulib-tool (create-testdir): don't complain if destdir couldn't
63404         be created, only if it doesn't exist.
63405         * gnulib-tool (last_checkin_date): don't expand the $Date here.
63406
63407 2002-12-31  Paul Eggert  <eggert@twinsun.com>
63408
63409         * m4/memcoll.m4 (gl_MEMCOLL): Require AC_FUNC_MEMCMP.
63410
63411 2002-12-31  Paul Eggert  <eggert@twinsun.com>
63412
63413         * lib/memcoll.c (memcoll): Fall back on a simple algorithm using
63414         memcmp if strcoll doesn't work.
63415
63416 2002-12-31  Bruno Haible  <bruno@clisp.org>
63417
63418         * lib/utime.c (utime_null): No need to call ftruncate if the file was
63419         nonempty.
63420
63421 2002-12-31  Bruno Haible  <bruno@clisp.org>
63422
63423         * lib/memcoll.c (STRCOLL): New macro.
63424         (memcoll): Use it.
63425
63426 2002-12-31  Bruno Haible  <bruno@clisp.org>
63427
63428         * lib/localcharset.h: New file.
63429         * lib/localcharset.c: Include it.
63430         * lib/unicodeio.c: Likewise.
63431
63432 2002-12-31  Bruno Haible  <bruno@clisp.org>
63433
63434         * lib/getstr.h (getstr): Define, to avoid clash with libcurses.
63435         * lib/linebuffer.h (readline): Define, to avoid clash with libreadline.
63436
63437 2002-12-31  Bruno Haible  <bruno@clisp.org>
63438
63439         * lib/getline.h: Include <stddef.h>, for size_t.
63440
63441         * lib/unicodeio.h: Include <stddef.h>, for size_t.
63442         * lib/unicodeio.c: Don't include <stddef.h>.
63443
63444 2002-12-31  Bruno Haible  <bruno@clisp.org>
63445
63446         * lib/getdate.y (get_date): Test HAVE_STRUCT_TM_TM_ZONE, not
63447         HAVE_TM_ZONE.
63448
63449 2002-12-24  Karl Berry  <karl@gnu.org>
63450
63451         * config/config.guess: update from prep.
63452
63453 2002-12-24  Bruno Haible  <bruno@clisp.org>
63454
63455         General infrasructure.
63456         * m4/README: Rewritten.
63457         * m4/onceonly.m4: New file.
63458         * m4/onceonly_2_57.m4: New file.
63459
63460         Module atexit.
63461         * m4/atexit.m4: New file.
63462
63463         Module strtod.
63464         * m4/strtod.m4: New file.
63465
63466         Module strtol.
63467         * m4/strtol.m4: New file.
63468
63469         Module strtoul.
63470         * m4/strtoul.m4: New file.
63471
63472         Module memchr.
63473         * m4/memchr.m4: New file.
63474
63475         Module memcmp.
63476         * m4/memcmp.m4 (gl_PREREQ_MEMCMP): New macro.
63477         (jm_FUNC_MEMCMP): Invoke it.
63478
63479         Module memcpy.
63480         * m4/memcpy.m4: New file.
63481
63482         Module memmove.
63483         * m4/memmove.m4: New file.
63484
63485         Module memset.
63486         * m4/memset.m4: New file.
63487
63488         Module strcspn.
63489         * m4/strcspn.m4: New file.
63490
63491         Module strpbrk.
63492         * m4/strpbrk.m4: New file.
63493
63494         Module strstr.
63495         * m4/strstr.m4: New file.
63496
63497         Module strerror.
63498         * m4/strerror.m4: New file.
63499
63500         Module mktime.
63501         * m4/mktime.m4: Renamed from jm-mktime.m4.
63502         (gl_PREREQ_MKTIME): New macro.
63503         (gl_FUNC_MKTIME): Renamed from jm_FUNC_MKTIME. Invoke gl_PREREQ_MKTIME.
63504
63505         Module malloc.
63506         * m4/malloc.m4 (gl_PREREQ_MALLOC): New macro.
63507         (jm_FUNC_MALLOC): Use AC_FUNC_MALLOC. Invoke gl_PREREQ_MALLOC.
63508         Don't define HAVE_DONE_WORKING_MALLOC_CHECK, since nothing uses it.
63509
63510         Module realloc.
63511         * m4/realloc.m4 (gl_PREREQ_REALLOC): New macro.
63512         (jm_FUNC_REALLOC): Use AC_FUNC_REALLOC. Invoke gl_PREREQ_REALLOC.
63513         Don't define HAVE_DONE_WORKING_REALLOC_CHECK, since nothing uses it.
63514
63515         Module strftime.
63516         * m4/tm_gmtoff.m4: New file, extracted from strftime.m4.
63517         * m4/strftime.m4 (_jm_STRFTIME_PREREQS): Use AC_FUNC_STRFTIME.
63518         Don't test for bcopy (we are not emacs). Invoke AC_TYPE_MBSTATE_T and
63519         gl_TM_GMTOFF.
63520         (_jm_STRFTIME_PREREQS, jm_FUNC_GNU_STRFTIME): Use onceonly macros.
63521
63522         Module xalloc.
63523         * m4/xalloc.m4: New file.
63524
63525         Module alloca.
63526         * m4/alloca.m4: New file.
63527
63528         Module putenv.
63529         * m4/putenv.m4 (gl_PREREQ_PUTENV): New macro.
63530         (jm_FUNC_PUTENV): Invoke it.
63531
63532         Module setenv.
63533         * m4/setenv.m4 (gt_FUNC_SETENV): New macro.
63534         (gt_CHECK_VAR_DECL): Fix quoting error that led to infinite loop in m4
63535         when invoked twice.
63536         (gt_PREREQ_SETENV, gt_PREREQ_UNSETENV): New macros, replacing old
63537         gt_FUNC_SETENV.
63538
63539         Module memrchr.
63540         * m4/memrchr.m4: New file.
63541
63542         Module stpcpy.
63543         * m4/stpcpy.m4: New file.
63544
63545         Module strcase.
63546         * m4/strcase.m4: New file.
63547
63548         Module strdup.
63549         * m4/strdup.m4: New file.
63550
63551         Module strnlen.
63552         * m4/strnlen.m4: New file.
63553
63554         Module strndup.
63555         * m4/strndup.m4: New file.
63556
63557         Module xstrtod.
63558         * m4/xstrtod.m4: New file.
63559
63560         Module xstrtol.
63561         * m4/xstrtol.m4: New file.
63562
63563         Module getdate.
63564         * m4/getdate.m4: New file.
63565
63566         Module unlocked-io.
63567         * m4/unlocked-io.m4: Renamed from jm-glibc-io.m4.
63568         (jm_FUNC_GLIBC_UNLOCKED_IO): Invoke AC_GNU_SOURCE. Use onceonly macros.
63569         * m4/jm-glibc-io.m4n: Remove file.
63570
63571         Module long-options.
63572         * m4/long-options.m4: New file.
63573
63574         Module md5.
63575         * m4/md5.m4: New file.
63576
63577         Module sha.
63578         * m4/sha.m4: New file.
63579
63580         Module getstr.
63581         * m4/getstr.m4: New file.
63582
63583         Module getline.
63584         * m4/getline.m4 (gl_PREREQ_GETLINE): New macro.
63585         (AM_FUNC_GETLINE): Invoke AC_GNU_SOURCE. Use <stdlib.h>, not
63586         <sys/types.h>, for size_t. Use the function name gnu_getline, not
63587         simply getline. Infoke gl_PREREQ_GETLINE.
63588
63589         Module obstack.
63590         * m4/obstack.m4: New file.
63591
63592         Module hash.
63593         * m4/hash.m4: New file.
63594
63595         Module readtokens.
63596         * m4/readtokens.m4: New file.
63597
63598         Module strverscmp.
63599         * m4/strverscmp.m4: New file.
63600
63601         Module stdbool.
63602         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Add test for _Bool. Needed for
63603         OSF/1.
63604
63605         Module strtoll.
63606         * m4/strtoll.m4: New file.
63607
63608         Module strtoull.
63609         * m4/strtoull.m4: New file.
63610
63611         Module strtoimax.
63612         * m4/strtoimax.m4: New file.
63613
63614         Module strtoumax.
63615         * m4/strtoumax.m4: New file.
63616
63617         Module xstrtoimax.
63618         * m4/xstrtoimax.m4 (jm_XSTRTOIMAX): Renamed from
63619         jm_AC_PREREQ_XSTRTOIMAX.
63620         Moved the strtol prerequisites to strtol.m4.
63621         Moved the strtoll prerequisites to strtoll.m4.
63622         Moved the strtoimax prerequisites to strtoimax.m4.
63623
63624         Module xstrtoumax.
63625         * m4/xstrtoumax.m4 (jm_XSTRTOUMAX): Renamed from
63626         jm_AC_PREREQ_XSTRTOUMAX.
63627         Moved the strtoul prerequisites to strtoul.m4.
63628         Moved the strtoull prerequisites to strtoull.m4.
63629         Moved the strtoumax prerequisites to strtoumax.m4.
63630
63631         Module chown.
63632         * m4/chown.m4 (gl_PREREQ_CHOWN): New macro.
63633         (jm_FUNC_CHOWN): Use AC_FUNC_CHOWN. Invoke gl_PREREQ_CHOWN.
63634
63635         Module dup2.
63636         * m4/dup2.m4: New file.
63637
63638         Module ftruncate.
63639         * m4/ftruncate.m4 (gl_PREREQ_FTRUNCATE): New macro.
63640         (jm_FUNC_FTRUNCATE): Use AC_REPLACE_FUNCS. Invoke gl_PREREQ_FTRUNCATE.
63641
63642         Module getgroups.
63643         * m4/getgroups.m4 (gl_PREREQ_GETGROUPS): New macro.
63644         (jm_FUNC_GETGROUPS): Use AC_FUNC_GETGROUPS. Invoke gl_PREREQ_GETGROUPS.
63645
63646         Module gettimeofday.
63647         * m4/gettimeofday.m4 (gl_PREREQ_GETTIMEOFDAY): New macro.
63648         (AC_FUNC_GETTIMEOFDAY_CLOBBER): Use onceonly macros. Invoke
63649         gl_PREREQ_GETTIMEOFDAY.
63650
63651         Module mkdir.
63652         * m4/mkdir-slash.m4 (gl_PREREQ_MKDIR): New macro.
63653         (UTILS_FUNC_MKDIR_TRAILING_SLASH): Invoke gl_PREREQ_MKDIR.
63654
63655         Module mkstemp.
63656         * m4/mkstemp.m4 (gl_PREREQ_MKSTEMP): New macro.
63657         (jm_PREREQ_TEMPNAME): New macro, from prereq.m4. Also invoke
63658         jm_AC_TYPE_UINTMAX_T.
63659         (UTILS_FUNC_MKSTEMP): Invoke gl_PREREQ_MKSTEMP and jm_PREREQ_TEMPNAME.
63660
63661         Module stat.
63662         * m4/stat.m4 (gl_PREREQ_STAT): New macro.
63663         (jm_FUNC_STAT): Use AC_FUNC_STAT. Invoke gl_PREREQ_STAT.
63664
63665         Module lstat.
63666         * m4/lstat.m4 (gl_PREREQ_LSTAT): New macro.
63667         (jm_FUNC_LSTAT): Use AC_FUNC_LSTAT. Invoke gl_PREREQ_LSTAT.
63668
63669         Module timespec.
63670         * m4/timespec.m4 (gl_TIMESPEC): New macro.
63671         (jm_CHECK_TYPE_STRUCT_TIMESPEC): Add check for <sys/time.h>.
63672         * m4/st_mtim.m4: Indentation.
63673
63674         Module nanosleep.
63675         * m4/nanosleep.m4 (gl_PREREQ_NANOSLEEP): New macro.
63676         (jm_FUNC_NANOSLEEP): Add check for <sys/time.h>. Invoke
63677         gl_PREREQ_NANOSLEEP.
63678
63679         Module regex.
63680         * m4/regex.m4 (jm_PREREQ_REGEX): New macro.
63681         (jm_INCLUDED_REGEX): Invoke jm_PREREQ_REGEX.
63682         (gl_REGEX): New macro.
63683
63684         Module rename.
63685         * m4/rename.m4 (gl_PREREQ_RENAME): New macro.
63686         (vb_FUNC_RENAME): Invoke gl_PREREQ_RENAME.
63687
63688         Module rmdir.
63689         * m4/rmdir.m4: New file.
63690
63691         Module utime.
63692         * m4/utimbuf.m4 (jm_CHECK_TYPE_STRUCT_UTIMBUF): Use onceonly macros.
63693         * m4/utime.m4 (gl_PREREQ_UTIME): New macro.
63694         (jm_FUNC_UTIME): Invoke gl_PREREQ_UTIME.
63695
63696         Module dirname.
63697         * m4/dirname.m4: New file.
63698
63699         Module getopt.
63700         * m4/getopt.m4: New file.
63701
63702         Module unistd-safer.
63703         * m4/unistd-safer.m4: New file.
63704
63705         Module fnmatch.
63706         * m4/fnmatch.m4 (_AC_FUNC_FNMATCH_IF): Include <stdlib.h>, for exit()
63707         declaration.
63708         (gl_PREREQ_FNMATCH_EXTRA): New macro.
63709         (gl_FUNC_FNMATCH_POSIX): New macro.
63710         (gl_FUNC_FNMATCH_GNU): Renamed from AC_FUNC_FNMATCH_GNU. Invoke
63711         gl_PREREQ_FNMATCH_EXTRA. Use the function name gnu_fnmatch, not
63712         simply fnmatch.
63713
63714         Module exclude.
63715         * m4/exclude.m4: New file.
63716
63717         Module human.
63718         * m4/human.m4: New file.
63719
63720         Module acl.
63721         * m4/acl.m4: Nop.
63722
63723         Module backupfile.
63724         * m4/backupfile.m4: New file.
63725         * m4/d-ino.m4: Indentation.
63726
63727         Module fsusage.
63728         * m4/fsusage.m4 (gl_FSUSAGE): New macro.
63729         (jm_STATFS_TRUNCATES): New macro, from coreutils-4.5.4/configure.ac.
63730         (gl_PREREQ_FSUSAGE_EXTRA): New macro.
63731
63732         Module dirfd.
63733         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Invoke some AC_EGREP_CPP
63734         requirements.
63735
63736         Module euidaccess.
63737         * m4/euidaccess.m4: New file.
63738
63739         Module file-type.
63740         * m4/file-type.m4: New file.
63741
63742         Module fileblocks.
63743         * m4/fileblocks.m4: New file.
63744
63745         Module filemode.
63746         * m4/filemode.m4: New file.
63747
63748         Module isdir.
63749         * m4/isdir.m4: New file.
63750
63751         Module lchown.
63752         * m4/lchown.m4 (gl_PREREQ_LCHOWN): New macro.
63753         (jm_FUNC_LCHOWN): Invoke gl_PREREQ_LCHOWN.
63754
63755         Module makepath.
63756         * m4/makepath.m4: New file.
63757
63758         Module modechange.
63759         * m4/modechange.m4: New file.
63760
63761         Module mountlist.
63762         * m4/mountlist.m4: New file.
63763         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Use onceonly macros.
63764         Indentation.
63765
63766         Module path-concat.
63767         * m4/path-concat.m4: New file.
63768
63769         Module pathmax.
63770         * m4/pathmax.m4: New file.
63771
63772         Module same.
63773         * m4/same.m4: New file.
63774
63775         Module save-cwd.
63776         * m4/save-cwd.m4: New file.
63777
63778         Module savedir.
63779         * m4/savedir.m4: New file.
63780
63781         Module xgetcwd.
63782         * m4/xgetcwd.m4: New file.
63783         * m4/getcwd.m4 (AC_FUNC_GETCWD_NULL): Use onceonly macros.
63784
63785         Module xreadlink.
63786         * m4/xreadlink.m4: New file.
63787
63788         Module safe-read.
63789         * m4/safe-read.m4: New file.
63790
63791         Module safe-write.
63792         * m4/safe-write.m4: New file.
63793
63794         Module closeout.
63795         * m4/closeout.m4: New file.
63796
63797         Module stdio-safer.
63798         * m4/stdio-safer.m4: New file.
63799
63800         Module getpass.
63801         * m4/getpass.m4: New file.
63802
63803         Module getugroups.
63804         * m4/getugroups.m4: New file.
63805
63806         Module group-member.
63807         * m4/group-member.m4 (gl_PREREQ_GROUP_MEMBER): New macro.
63808         (jm_FUNC_GROUP_MEMBER): Invoke AC_GNU_SOURCE, gl_PREREQ_GROUP_MEMBER.
63809
63810         Module idcache.
63811         * m4/idcache.m4: New file.
63812
63813         Module userspec.
63814         * m4/userspec.m4: New file.
63815
63816         Module gettime.
63817         * m4/clock_time.m4: New file.
63818         * m4/gettime.m4: New file.
63819
63820         Module settime.
63821         * m4/settime.m4: New file.
63822
63823         Module posixtm.
63824         * m4/posixtm.m4: New file.
63825
63826         Module gethostname.
63827         * m4/gethostname.m4: New file.
63828
63829         Module canon-host.
63830         * m4/canon-host.m4: New file.
63831
63832         Module gettext.
63833         * m4/codeset.m4: New file, from gettext-0.11.5.
63834         * m4/gettext.m4: New file, from gettext-0.11.5.
63835         * m4/glibc21.m4: New file, from gettext-0.11.5.
63836         * m4/iconv.m4: New file, from gettext-0.11.5.
63837         * m4/intdiv0.m4: New file, from gettext-0.11.5.
63838         * m4/inttypes-pri.m4: New file, from gettext-0.11.5.
63839         * m4/inttypes.m4: New file, from gettext-0.11.5.
63840         * m4/inttypes_h.m4: New file, from gettext-0.11.5 with modifications.
63841         * m4/isc-posix.m4: New file, from gettext-0.11.5.
63842         * m4/lcmessage.m4: New file, from gettext-0.11.5.
63843         * m4/lib-ld.m4: New file, from gettext-0.11.5.
63844         * m4/lib-link.m4: New file, from gettext-0.11.5.
63845         * m4/lib-prefix.m4: New file, from gettext-0.11.5.
63846         * m4/progtest.m4: New file, from gettext-0.11.5.
63847         * m4/stdint_h.m4: New file, from gettext-0.11.5 with modifications.
63848         * m4/uintmax_t.m4: New file, from gettext-0.11.5 with modifications.
63849         * m4/ulonglong.m4: New file, from gettext-0.11.5 with modifications.
63850
63851         Module localcharset.
63852         * m4/localcharset.m4: New file.
63853
63854         Module hard-locale.
63855         * m4/hard-locale.m4: New file.
63856
63857         Module mbswidth.
63858         * m4/mbswidth.m4 (gl_MBSWIDTH): Renamed from jm_PREREQ_MBSWIDTH. Use
63859         onceonly macros.
63860         * m4/mbrtowc.m4: Add comment.
63861
63862         Module memcasecmp.
63863         * m4/memcasecmp.m4: New file.
63864
63865         Module memcoll.
63866         * m4/memcoll.m4: New file.
63867
63868         Module unicodeio.
63869         * m4/unicodeio.m4: New file.
63870
63871         Module rpmatch.
63872         * m4/rpmatch.m4: New file.
63873
63874         Module yesno.
63875         * m4/yesno.m4: New file.
63876
63877         Module exitfail.
63878         * m4/exitfail.m4: New file.
63879
63880         Module c-stack.
63881         * m4/c-stack.m4 (gl_C_STACK): New macro.
63882         (jm_PREREQ_C_STACK): Check for <sys/time.h>. Use onceonly macros.
63883
63884         Module error.
63885         * m4/error.m4 (gl_ERROR): New macro.
63886         (jm_PREREQ_ERROR): Use onceonly macros.
63887
63888         Module fatal.
63889         * m4/fatal.m4: New file.
63890
63891         Module getloadavg.
63892         * m4/getloadavg.m4 (AC_FUNC_GETLOADAVG): Use onceonly macros.
63893         (gl_FUNC_GETLOADAVG, gl_PREREQ_GETLOADAVG): New macros.
63894
63895         Module getpagesize.
63896         * m4/getpagesize.m4: New file.
63897
63898         Module getusershell.
63899         * m4/getusershell.m4: New file.
63900
63901         Module physmem.
63902         * m4/physmem.m4: New file.
63903
63904         Module posixver.
63905         * m4/posixver.m4: New file.
63906
63907         Module quotearg.
63908         * m4/quotearg.m4: New file.
63909
63910         Module quote.
63911         * m4/quote.m4: New file.
63912
63913         Module readutmp.
63914         * m4/readutmp.m4: New file, based on jm_PREREQ_READUTMP from prereq.m4.
63915
63916         Module sig2str.
63917         * m4/sig2str.m4: New file.
63918
63919         Other.
63920         * m4/longlong.m4 (jm_AC_TYPE_UNSIGNED_LONG_LONG): Remove, moved to
63921         ulonglong.m4.
63922         * m4/intmax_t.m4: New file.
63923         * m4/d-type.m4: Indentation.
63924         * m4/jm-macros.m4: Update.
63925         * m4/prereq.m4 (jm_PREREQ): Update.
63926         (jm_PREREQ_ADDEXT): Remove, obsoleted by backupfile.m4.
63927         (jm_PREREQ_CANON_HOST): Remove, obsoleted by canon-host.m4.
63928         (jm_PREREQ_DIRNAME): Remove, obsoleted by dirname.m4.
63929         (jm_PREREQ_EXCLUDE): Remove, obsoleted by exclude.m4.
63930         (jm_PREREQ_GETPAGESIZE): Remove, obsoleted by getpagesize.m4.
63931         (jm_PREREQ_HARD_LOCALE): Remove, obsoleted by hard-locale.m4.
63932         (jm_PREREQ_HASH): Remove, obsoleted by hash.m4.
63933         (jm_PREREQ_HUMAN): Remove, obsoleted by human.m4.
63934         (jm_PREREQ_MEMCHR): Remove, obsoleted by memchr.m4.
63935         (jm_PREREQ_PHYSMEM): Remove, obsoleted by physmem.m4.
63936         (jm_PREREQ_POSIXVER): Remove, obsoleted by posixver.m4.
63937         (jm_PREREQ_QUOTEARG): Remove, obsoleted by quotearg.m4.
63938         (jm_PREREQ_READUTMP): Remove, obsoleted by readutmp.m4.
63939         (jm_PREREQ_REGEX): Remove, obsoleted by regex.m4.
63940         (jm_PREREQ_STRNLEN): Remove, obsoleted by strnlen.m4.
63941         (jm_PREREQ_TEMPNAME): Remove, obsoleted by mkstemp.m4.
63942         (jm_PREREQ_XGETCWD): Remove, obsoleted by xgetcwd.m4.
63943         (jm_PREREQ_XREADLINK): Remove, obsoleted by xreadlink.m4.
63944         * m4/readdir.m4 (jm_FUNC_READDIR): Use onceonly macros.
63945
63946 2002-12-24  Bruno Haible  <bruno@clisp.org>
63947
63948         * MODULES.txt: Update according to m4/ changes.
63949
63950         Module gettext.
63951         * config.rpath: New file, from gettext-0.11.5.
63952
63953         * modules/*: New module descriptions.
63954         * gnulib-tool: New file.
63955         * MODULES.html.sh: New file.
63956
63957 2002-12-21  Karl Berry  <karl@gnu.org>
63958
63959         * doc/fdl.texi: update to version 1.2.
63960
63961 2002-12-19  Karl Berry  <karl@gnu.org>
63962
63963         * config/config.guess: update from prep.
63964
63965 2002-12-18  Bruno Haible  <bruno@clisp.org>
63966
63967         * m4/strftime.m4 (_jm_STRFTIME_PREREQS): Don't test for localtime_r.
63968         * m4/jm-mktime.m4 (jm_FUNC_MKTIME): Likewise.
63969
63970 2002-12-17  Bruno Haible  <bruno@clisp.org>
63971
63972         * m4/mbswidth.m4 (jm_PREREQ_MBSWIDTH): Remove checks for limits.h,
63973         stdlib.h, string.h.
63974
63975 2002-12-17  Bruno Haible  <bruno@clisp.org>
63976
63977         * lib/canon-host.c (strdup): Remove unused declaration.
63978
63979         * lib/fsusage.c: Include full_read.h.
63980         (get_fs_usage): Use full_read instead of safe_read.
63981
63982         * lib/utime.c (utime_null): Use SAFE_READ_ERROR.
63983
63984 2002-12-12  Karl Berry  <karl@gnu.org>
63985
63986         * config/config.guess: update from prep.
63987
63988 2002-12-11  Bruno Haible  <bruno@clisp.org>
63989
63990         * m4/setenv.m4: New file, from gettext-0.11.5.
63991
63992 2002-12-11  Bruno Haible  <bruno@clisp.org>
63993
63994         * lib/setenv.h: Rewritten to cope with systems that have setenv() but
63995         not unsetenv().
63996         * lib/setenv.c, unsetenv.c: Taken from glibc-2.2.4 with the following
63997         modifications:
63998
63999         2002-12-11  Bruno Haible  <bruno@clisp.org>
64000
64001                 * setenv.c (alloca): Fall back to malloc.
64002                 (freea): New macro.
64003                 (setenv): Use freea() to free memory allocated with alloca().
64004
64005         2002-11-13  Bruno Haible  <bruno@clisp.org>
64006
64007                 * setenv.c (compar_fn_t, __add_to_environ, setenv): Use ANSI C
64008                 function declarations.
64009                 * unsetenv.c (unsetenv): Likewise.
64010
64011         2002-03-04  Bruno Haible  <bruno@clisp.org>
64012
64013                 Portability to AIX 4.3.3.
64014                 * unsetenv.c: New file, extracted from setenv.c.
64015                 * setenv.c: Move the unsetenv() function to unsetenv.c.
64016
64017         2001-12-20  Bruno Haible  <bruno@clisp.org>
64018
64019                 * setenv.c (__add_to_environ): Don't call realloc(NULL,...),
64020                 use malloc instead. For SunOS 4.
64021
64022         2001-12-11  Bruno Haible  <bruno@clisp.org>
64023
64024                 * setenv.c: Declare alloca.
64025                 (compar_fn_t): New typedef.
64026                 (KNOWN_VALUE, STORE_VALUE): Use it.
64027
64028         * lib/Makefile.am (libfetish_a_SOURCES): Add setenv.c, unsetenv.c,
64029         setenv.h.
64030
64031 2002-12-10  Paul Eggert  <eggert@twinsun.com>
64032
64033         Port exclude.c and exclude.h to more non-GNU systems, e.g. Solaris 7.
64034         * lib/exclude.h (EXCLUDE_ANCHORED, EXCLUDE_INCLUDE, EXCLUDE_WILDCARDS):
64035         Choose values that are less likely to collide with system fnmatch
64036         options.
64037         * lib/exclude.c (FNM_CASEFOLD, FNM_LEADING_DIR): Define to 0 if not
64038         defined (e.g., a pure POSIX system).
64039         (EXCLUDE_macros_do_not_collide_with_FNM_macros): Use FNM_PATHNAME
64040         instead of FNM_FILE_NAME, for compatibility with pure POSIX sytems.
64041
64042 2002-12-06  Paul Eggert  <eggert@twinsun.com>
64043
64044         Undo the 2001-07-02 change for jm-glibc-io, as it was too much of
64045         a pain in practice to deal with generated m4 files.  This change
64046         goes together with the 2002-12-04 unlocked-io.h change in ../lib.
64047
64048         * m4/Makefile.am.in (Makefile.am): Don't mention jm-glibc-io.m4n
64049         and jm-glibc-io.m4, as they are no longer a special case.
64050         * m4/jm-glibc-io.m4: Rename from jm-glibc-io.m4n, and remove the
64051         kludge and the auto-generation stuff.  Check only whether the
64052         functions are declared, not whether they exist, since older hosts
64053         that don't declare the functions can't use the optimization anyway.
64054
64055 2002-12-06  Jim Meyering  <jim@meyering.net>
64056
64057         * lib/error.c: Be consistent: change `#ifndef _LIBC' to `#if !_LIBC'.
64058
64059         Merge in changes from libc's misc/error.c, in preparation
64060         for the merge of gnulib's changes back into libc.
64061
64062         * lib/error.c (_): Define only if not already defined.
64063         Move definition to follow all #include directives.
64064         Include unlocked-io.h only if !_LIBC.
64065         [_LIBC]: Include <libio/libioP.h>.
64066         [USE_IN_LIBIO]: Include <libio/iolibio.h>
64067         (fflush): Tweak definition to use INTUSE.
64068         (putc): Define.
64069
64070 2002-12-05  Paul Eggert  <eggert@twinsun.com>
64071
64072         * lib/alloca.c [defined emacs]: Include "lisp.h".
64073         (xalloc_die) [defined emacs]: New macro.
64074         (free) [defined emacs && defined EMACS_FREE]: Define to EMACS_FREE.
64075         [! defined emacs]: Include <xalloc.h>.
64076         (POINTER_TYPE) [!defined POINTER_TYPE]: New macro.
64077         (pointer): Typedef to POINTER_TYPE *.
64078         (malloc): Remove decl; we now always use xmalloc.
64079         (alloca): Use old-style definition, since Emacs needs this.
64080         Check for arithmetic overflow when computing combined size.
64081
64082 2002-12-04  Paul Eggert  <eggert@twinsun.com>
64083
64084         Do not generate unlocked-io.h automatically, since it's easier to
64085         maintain it by hand.
64086
64087         * lib/unlocked-io.h: New file, from GNU diffutils,
64088         but with proper copyright notice and attribution.
64089         * lib/gen-uio: Remove.
64090         * lib/Makefile.am: Add copyright notice.
64091         (libfetish_a_SOURCES): Add unlocked-io.h.
64092         (BUILT_SOURCES, all-local): Remove unlocked-io.h.
64093         (DISTCLEANFILES, io_functions): Remove macros.
64094         (EXTRA_DIST): Remove gen_uio.
64095         (unlocked-io.h): Remove rule.
64096
64097 2002-12-04  Jim Meyering  <jim@meyering.net>
64098
64099         Reflect the fact that stat.c and lstat.c are no longer generated.
64100         * lib/Makefile.am (BUILT_SOURCES): Remove stat.c and lstat.c.
64101         (DISTCLEANFILES): Likewise.
64102         (EXTRA_DIST): Likewise.
64103         (all_local): Don't depend on stat.c or lstat.c.
64104         (stat.c, lstat.c): Remove rules.
64105         (EXTRA_DIST): Remove xstat.in.
64106
64107         * lib/xstat.in: Remove file.  Contents moved into stat.c.
64108         * lib/stat.c: New file.  Contents mostly from xstat.in.
64109         * lib/stat.c: Rework so that it may serve to define rpl_lstat, too.
64110         * lib/lstat.c: New file. Simply #define LSTAT and include stat.c.
64111
64112         * lib/safe-read.c: Rework so that it may serve to define safe_write,
64113         too.
64114         * lib/safe-write.c: Simply #define SAFE_WRITE and include safe-read.c.
64115
64116 2002-12-03  Jim Meyering  <jim@meyering.net>
64117
64118         * lib/safe-read.c, safe-write.c: Change variable names and comments,
64119         but not semantics, to minimize the differences between these two files.
64120         (safe_read): Change comment to mention SAFE_READ_ERROR.
64121
64122         * lib/safe-read.c (IS_EINTR): Define.
64123         (safe_read): Use IS_EINTR in place of in-function cpp directives.
64124
64125 2002-12-02  Jim Meyering  <jim@meyering.net>
64126
64127         * lib/safe-read.c (EINTR): Define.
64128         (CHAR_BIT, TYPE_SIGNED, TYPE_MINIMUM, TYPE_MAXIMUM): Define.
64129         (INT_MAX): Provide fallback.
64130         (safe_read): Rewrite to iterate IFF the read fails with EINTR.
64131
64132         * lib/safe-read.h (SAFE_READ_ERROR): Define.
64133
64134 2002-12-02  Bruno Haible  <bruno@clisp.org>
64135
64136         * lib/safe-write.c (CHAR_BIT, TYPE_SIGNED, TYPE_MINIMUM, TYPE_MAXIMUM):
64137         Define, taken from safe-read.c.
64138         (INT_MAX): Provide fallback.
64139         (safe_write): Rewrite to iterate IFF the write fails with EINTR.
64140         * lib/safe-write.h (SAFE_WRITE_ERROR): Define.
64141
64142         * lib/safe-read.c (EINTR): Remove definition.
64143         (safe_read): Don't use EINTR if it is absent.
64144
64145 2002-12-01  Jim Meyering  <jim@meyering.net>
64146
64147         * lib/safe-read.c: (safe_read): Also exit the loop when read returns
64148         zero.
64149         (CHAR_BIT, TYPE_SIGNED, TYPE_MINIMUM, TYPE_MAXIMUM, INT_MAX): Define.
64150
64151 2002-11-27  Paul Eggert  <eggert@twinsun.com>
64152
64153         * lib/hash.c (hash_lookup, hash_get_first, hash_get_next,
64154         hash_find_entry, hash_rehash): Replace `if (limit <= value) abort ();'
64155         with `if (! (value < limit)) abort ();', for readability.
64156
64157 2002-11-26  Karl Berry  <karl@gnu.org>
64158
64159         * lib/strdup.c: copy from libc again, with jim's ok.
64160         * lib/.cppi-disable: re-add strdup.c
64161
64162 2002-11-25  Karl Berry  <karl@gnu.org>
64163
64164         * lib/strtoll.c: copy from libc, meaning we now #include <strtol.c>
64165         instead of "strtol.c".
64166
64167 2002-11-25  Karl Berry  <karl@gnu.org>
64168
64169         * config/install-sh: update from automake for variable quoting, $0 in
64170         error msgs, etc.
64171
64172         * config/srclist.txt ($LIBCSRC/time/mktime.c lib gpl): new entry.
64173         * config/srclist.txt ($LIBCSRC/sysdeps/generic/strtoll.c lib gpl): new
64174         entry.
64175
64176 2002-11-25  Jim Meyering  <jim@meyering.net>
64177
64178         * lib/mktime.c: Sync from libc, now that it has the latest fix.
64179
64180 2002-11-24  Karl Berry  <karl@gnu.org>
64181
64182         * lib/error.c, getopt.c, getopt.h, getopt1.c, obstack.c, regex.c,
64183         regex.h, strdup.c, strtoll.c, tempname.c: change license to gpl.
64184
64185 2002-11-24  Jim Meyering  <jim@meyering.net>
64186
64187         Update from coreutils:
64188
64189         * lib/mktime.c: Merge in changes from libc.
64190
64191         Avoid a link-time failure on some Linux systems.
64192         * lib/mktime.c (STATIC): Define to be empty (_LIBC) or `static'
64193         (otherwise).
64194         (__mon_yday): Declare with the STATIC attribute.
64195         (__mktime_internal): Likewise.
64196         Based on a report from Greg Schafer.
64197
64198 2002-11-23  Jim Meyering  <jim@meyering.net>
64199
64200         * lib/sig2str.c (str2signum, sig2str): Avoid a warning from gcc:
64201         Use `unsigned', not `int', as type of index.
64202
64203         * lib/xstat.in [@BEGIN_LSTAT_ONLY@]: Include <string.h>.
64204
64205         * lib/fsusage.c: Remove unneeded parentheses around operands of
64206         `defined'.
64207
64208 2002-11-22  Paul Eggert  <eggert@twinsun.com>
64209
64210         * lib/quotearg.h: Allow multiple inclusion by surrounding with
64211         "#ifndef QUOTEARG_H_".  Include <stddef.h>, for size_t,
64212         so that we can be included first.
64213         (PARAMS): Remove; we now assume C89 or later.  All uses removed.
64214         * lib/quotearg.c: Include quotearg.h immediately after config.h.
64215         No need to include stddef.h or sys/types.h any more.
64216         Surround local include files with "", not "<>".
64217         Assume HAVE_LIMITS_H unconditionally, as we assume C89.
64218         Similarly, assume HAVE_C_BACKSLASH_A, CHAR_BIT, UCHAR_MAX, UINT_MAX,
64219         HAVE_STDLIB_H, HAVE_STRING_H, STDC_HEADERS.
64220         (HAVE_MBSINIT): Undef if !HAVE_MBRTOWC.
64221         (mbsinit): Define to 1 if !defined mbsinit && !HAVE_MBSINIT.
64222         (ISPRINT): Remove; no longer needed now that we assume C89.
64223
64224         (clone_quoting_options, quotearg_buffer, quotearg_n_options):
64225         Preserve errno.
64226
64227         (quotearg_buffer_restyled, quotearg_n, quotearg_n_style,
64228         quotearg_char): Use SIZE_MAX rather than
64229         (size_t) -1 when we are talking about "infinity".
64230
64231         (quotearg_buffer_restyled): Fix bug when quoting trigraphs.
64232
64233 2002-11-22  Paul Eggert  <eggert@twinsun.com>
64234
64235         * lib/hash.c: Avoid use of <assert.h>, as the GNU Coding Standards
64236         hint that one should use `if (! x) abort ();' rather than `assert
64237         (x);', and anyway it's one less thing to worry about configuring.
64238         (hash_lookup, hash_get_first, hash_get_next, hash_find_entry,
64239         hash_rehash, hash_insert): Use abort rather than assert.
64240
64241 2002-11-22  Bruno Haible  <bruno@clisp.org>
64242
64243         * lib/safe-read.h: Assume C89. Add comments.
64244         (safe_read): Change return type to size_t.
64245         * lib/safe-read.c (safe_read): Change return type to size_t. Handle
64246         byte counts > SSIZE_MAX correctly.
64247         * lib/safe-write.h: New file.
64248         * lib/safe-write.c: New file.
64249         * lib/full-read.h: New file.
64250         * lib/full-read.c: New file.
64251         * lib/full-write.h: Assume C89. Add comments.
64252         * lib/full-write.c: Include safe-write.h.
64253         (full_write): Rewritten to use safe_write.
64254         Suggested by Jim Meyering and Paul Eggert.
64255
64256 2002-11-21  Jim Meyering  <jim@meyering.net>
64257
64258         * lib/strdup.c (strdup): Tweak comment and initial #if/#include.
64259
64260         Merge in changes from the coreutils.
64261
64262         2002-09-25  Paul Eggert  <eggert@twinsun.com>
64263         * lib/fsusage.c [! HAVE_INTTYPES_H && HAVE_STDINT_H] Include
64264         <stdint.h>.
64265         (UINTMAX_MAX) [!defined UINTMAX_MAX]: New macro.
64266         (PROPAGATE_ALL_ONES): Work even if X is unsigned and narrower than
64267         int.  Work more efficiently if X is the same width as uintmax_t.
64268         Do not compare X to -1, to avoid bogus compiler warning.
64269         (get_fs_usage): (uintmax_t) -1 -> UINTMAX_MAX to avoid a cast.
64270         Don't assume that f_frsize and f_bsize are the same type.
64271
64272         * lib/mountlist.c: #undef MNT_IGNORE before defining it, to avoid
64273         warning on FreeBSD.
64274
64275         * lib/makepath.c (make_path): Restore umask *before* creating the final
64276         component.
64277         (make_path): Minor reformatting.
64278
64279         * lib/xmalloc.c: Adjust to work with new autoconf macros,
64280         AC_FUNC_MALLOC and AC_FUNC_REALLOC: test #ifndef
64281         HAVE_MALLOC/HAVE_REALLOC.
64282
64283         * lib/mountlist.h (ME_DUMMY): Don't count entries of type `auto' as
64284         dummy ones.  At least on GNU/Linux systems, `auto' means something
64285         else.
64286         From Michael Stone.
64287
64288 2002-11-21  Bruno Haible  <bruno@clisp.org>
64289
64290         Remove case insensitive option matching.
64291         * lib/argmatch.h (argcasematch): Remove declaration.
64292         (ARGCASEMATCH): Remove macro.
64293         (__xargmatch_internal): Remove case_sensitive argument.
64294         (XARGMATCH): Update.
64295         (XARGCASEMATCH): Remove macro.
64296         * lib/argmatch.c (argmatch): Renamed from __argmatch_internal. Remove
64297         case_sensitive argument.
64298         (argcasematch): Remove function.
64299         (__xargmatch_internal): Remove case_sensitive argument.
64300         (main): Use XARGMATCH instead of XARGCASEMATCH.
64301
64302         * lib/xmalloc.c: Change compile-time error message. Add comment about
64303         required autoconf version.
64304
64305 2002-11-20  Paul Eggert  <eggert@twinsun.com>
64306
64307         Merge argmatch cleanups from Bison.  Assume C89.
64308
64309         * lib/argmatch.c: Include config.h here, not in argmatch.h.
64310         Include stdlib.h, for EXIT_FAILURE.
64311         Always include <string.h>, since we assume C89.
64312         (EXIT_FAILURE): Remove pre-C89 bug workaround.
64313         * lib/argmatch.h: Do not include <config.h> or <sys/types.h>.
64314         Include <stddef.h> instead, since it's all we need for size_t.
64315         (PARAMS): Remove.  All uses removed.
64316         (ARRAY_CARDINALITY): Do not bother to #undef.
64317         (ARRAY_CARDINALITY, ARGMATCH, ARGCASEMATCH, invalid_arg,
64318         ARGMATCH_VALID, XARGMATCH, XARGCASEMATCH):
64319         Remove unnecessary parentheses.
64320         (ARGMATCH_VALID, XARGMATCH, XARGCASEMATCH):
64321         Insert necessary parentheses.
64322         (ARGMATCH_CONSTRAINT, ARGMATCH_VERIFY): New macros.
64323         (ARGMATCH_ASSERT): Use ARGMATCH_CONSTRAINT.
64324
64325 2002-11-19  Bruno Haible  <bruno@clisp.org>
64326
64327         * lib/mbswidth.c: Include mbswidth.h right at the beginning.
64328         * lib/mbswidth.h: Include <stddef.h>, for size_t.
64329
64330         * lib/mbswidth.h (PARAMS): Remove macro.
64331         (mbswidth, mbsnwidth): Use ANSI C function declarations.
64332         * lib/mbswidth.c (mbswidth, mbsnwidth): Likewise.
64333
64334         * lib/gcd.h (PARAMS): Remove macro.
64335         (gcd): Use ANSI C function declarations.
64336         * lib/gcd.c (gcd): Likewise.
64337
64338 2002-11-15  Bruno Haible  <bruno@clisp.org>
64339
64340         * lib/strcspn.c: Include <stddef.h>.
64341         (strcspn): Use ANSI C function declaration. Change return type to
64342         size_t. Use NULL.
64343         * lib/strpbrk.c: Minimize diffs to glibc. Include <stddef.h>.
64344         (strpbrk): Use NULL.
64345         * lib/strpbrk.h (PARAMS): Remove macro.
64346         (strpbrk): Use ANSI C function declaration.
64347         * lib/strstr.c: Don't include <sys/types.h>.
64348         * lib/strstr.h (PARAMS): Remove macro.
64349         (strstr): Use ANSI C function declarations.
64350
64351 2002-11-14  Karl Berry  <karl@gnu.org>
64352
64353         * config/mkinstalldirs: `do' on separate line, instead of
64354         `for var; do'.
64355
64356 2002-11-06  Bruno Haible  <bruno@clisp.org>
64357
64358         * lib/gcd.h (gcd): Change argument type to 'unsigned long'.
64359         * lib/gcd.c (gcd): Likewise.
64360
64361 2002-11-05  Bruno Haible  <bruno@clisp.org>
64362
64363         * lib/gcd.h: New file, from gettext-0.11.5.
64364         * lib/gcd.c: New file, from gettext-0.11.5.
64365
64366 2002-11-05  Bruno Haible  <bruno@clisp.org>
64367
64368         * lib/error.c [!_LIBC]: Include gettext.h instead of <libintl.h>.
64369         * lib/getopt.c [!_LIBC]: Include gettext.h instead of <libintl.h>.
64370         * lib/obstack.c [!_LIBC]: Include gettext.h instead of <libintl.h>.
64371         * lib/regex.c [!_LIBC]: Include gettext.h instead of <libintl.h>.
64372
64373         * lib/argmatch.c: Include gettext.h instead of <locale.h> and
64374         <libintl.h>.
64375         * lib/makepath.c: Include gettext.h instead of <locale.h> and
64376         <libintl.h>.
64377
64378         * lib/closeout.c: Include gettext.h instead of <libintl.h>.
64379         * lib/human.c: Include gettext.h instead of <libintl.h>.
64380         * lib/quotearg.c: Include gettext.h instead of <libintl.h>.
64381         * lib/rpmatch.c: Include gettext.h instead of <libintl.h>.
64382         * lib/unicodeio.c: Include gettext.h instead of <libintl.h>.
64383         * lib/userspec.c: Include gettext.h instead of <libintl.h>.
64384         * lib/version-etc.c: Include gettext.h instead of <libintl.h>.
64385         * lib/xmalloc.c: Include gettext.h instead of <libintl.h>.
64386         (textdomain): Remove definition.
64387         * lib/xmemcoll.c: Include gettext.h instead of <libintl.h>.
64388
64389         * lib/long-options.c: Remove include of <libintl.h> and definition of
64390         _.
64391         * lib/same.c: Remove include of <libintl.h> and definition of _.
64392
64393 2002-11-04  Owen Taylor  <otaylor@redhat.com>
64394
64395         * lib/config.charset: A few additions for Solaris.
64396
64397 2002-11-04  Bruno Haible  <haible@clisp.cons.org>
64398
64399         Make it possible to build libcharset with CC=gcc CFLAGS="-x c++".
64400         * lib/localcharset.c (locale_charset): Declare as extern "C".
64401
64402 2002-11-04  Bruno Haible  <haible@clisp.cons.org>
64403
64404         * lib/config.charset: msdos in uk_UA uses CP1125.
64405
64406 2002-11-04  Bruno Haible  <bruno@clisp.org>
64407
64408         * lib/stpcpy.h: New file, from GNU gettext-0.11.5.
64409         * lib/strcase.h: New file, from GNU gettext-0.11.5.
64410         * lib/strpbrk.h: New file, from GNU gettext-0.11.5.
64411         * lib/strstr.h: New file, from GNU gettext-0.11.5.
64412         * lib/xgetcwd.h: New file, from GNU gettext-0.11.5.
64413
64414 2002-11-04  Bruno Haible  <bruno@clisp.org>
64415
64416         * lib/localcharset.c (locale_charset): Don't return an empty string.
64417
64418 2002-11-04  Bruno Haible  <bruno@clisp.org>
64419
64420         * lib/localcharset.c (get_charset_aliases): Add more Windows specific
64421         aliases.
64422
64423 2002-11-04  Bruno Haible  <bruno@clisp.org>
64424
64425         * lib/config.charset: Update for newest glibc. Add canonical names
64426         ISO-8859-14, KOI8-T, TCVN5712-1, GEORGIAN-PS.
64427
64428 2002-11-04  Bruno Haible  <bruno@clisp.org>
64429
64430         * lib/config.charset: Add support for NetBSD.
64431
64432 2002-11-04  Bruno Haible  <bruno@clisp.org>
64433
64434         * lib/config.charset [msdosdjgpp]: For Russian, use CP866.
64435
64436 2002-11-01  Bruno Haible  <bruno@clisp.org>
64437
64438         * configure.in: Add AC_CONFIG_AUX_DIR call.
64439         (AC_OUTPUT): Add m4/Makefile, lib/Makefile. Remove doc/Makefile,
64440         test/Makefile.
64441         * Makefile.in (subdirs): Add m4, lib. Remove doc, test.
64442
64443 2002-09-28  Karl Berry  <karl@gnu.org>
64444
64445         * config/srclist.txt: can't copy install-sh/mkinstalldirs from
64446         installed automake until the next release, since changes have been
64447         made.
64448
64449 2002-09-25  Karl Berry  <karl@gnu.org>
64450
64451         * lib/strdup.c: copy from libc/string (via ../config/srclist*).
64452         * lib/getopt*: copy from libc/posix.
64453         * lib/gettext.h: copy from gettext.
64454         * lib/.cppi-disable: add strdup.c, gettext.h.
64455
64456 2002-09-25  Karl Berry  <karl@gnu.org>
64457
64458         * config/srclist.txt: enable gettext.h check.
64459         * config/config.{guess,sub}: update from prep.
64460         * config/depcomp, install-sh, mdate-sh, missing, mkinstalldirs: update
64461                 from automake 1.6.3.
64462         See srclist*.
64463
64464 2002-08-23  Stefan Monnier  <monnier@cs.yale.edu>
64465
64466         * regex.c (PATFETCH): Remove the translating fetch.
64467         (PATFETCH_RAW): Rename to PATFETCH.
64468         (set_image_of_range): New fun.
64469         (SET_RANGE_TABLE_WORK_AREA): Use it.
64470         (regex_compile): Don't translate the pattern chars so eagerly.
64471         Only do it when inserting an `exactn' bytecode or when handling
64472         a char-range.
64473         (mutually_exclusive_p): Avoid empty statement.
64474
64475 2002-07-06  Jim Meyering  <meyering@lucent.com>
64476
64477         * m4/README: Don't mention Makefile.am.in.
64478         Outline how I've tested changes to .m4 files.  Yep, it's a pain.
64479
64480 2002-07-01  Jim Meyering  <meyering@lucent.com>
64481
64482         * lib/c-stack.c: Include sys/time.h.
64483         From Volker Borchert.
64484
64485 2002-06-26  Paul Eggert  <eggert@twinsun.com>
64486
64487         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Check for btowc.
64488
64489 2002-06-26  Paul Eggert  <eggert@twinsun.com>
64490
64491         * lib/fnmatch.c, fnmatch_loop.c (WIDE_CHAR_SUPPORT):
64492         New macro.  Use it uniformly instead of
64493         (defined HAVE_WCTYPE_H && defined HAVE_WCHAR_H).
64494         It also uses HAVE_BTOWC, to fix a porting bug on Solaris 2.5.1
64495         reported by Vin Shelton.
64496
64497 2002-06-22  Paul Eggert  <eggert@twinsun.com>
64498
64499         * lib/c-stack.h (segv_handler, c_stack_action) [! defined SA_SIGINFO]:
64500         Do not assume SA_SIGINFO behavior.
64501         Bug reported by Jim Meyering on NetBSD 1.5.2.
64502
64503 2002-06-22  Jim Meyering  <meyering@lucent.com>
64504
64505         * m4/c-stack.m4: New file, from diffutils-2.8.2.
64506         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_C_STACK.
64507
64508         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Don't require AC__GNU_SOURCE,
64509         now that configure.ac uses AC_GNU_SOURCE.
64510         (jm_MACROS): Rename: jm_FUNC_FNMATCH to AC_FUNC_FNMATCH_GNU.
64511         * m4/prereq.m4 (jm_PREREQ_EXCLUDE): Likewise, wrt jm_FUNC_FNMATCH.
64512
64513         Update to latest tools.  Suggestions from Paul Eggert.
64514         * m4/stdbool.m4: New file, from diffutils-2.8.2.
64515         * m4/gnu-source.m4: Update from diffutils-2.8.2.
64516         * m4/fnmatch.m4: Likewise.
64517         * m4/prereq.m4: Change each use of AC_CHECK_HEADERS(stdbool.h)
64518         to AC_HEADER_STDBOOL
64519
64520 2002-06-22  Jim Meyering  <meyering@lucent.com>
64521
64522         * lib/fnmatch.c (ISASCII, ISPRINT): Undefine, to avoid warning about
64523         redefinition due to Solaris 2.6's definition in /usr/include/sys/euc.h.
64524
64525 2002-06-22  Jim Meyering  <meyering@lucent.com>
64526
64527         * lib/c-stack.c, lib/c-stack.h: New files, from diffutils-2.8.2.
64528
64529         * lib/exitfail.c, exitfail.h: Likewise.
64530         * lib/Makefile.am (libfetish_a_SOURCES): Add exitfail.c and exitfail.h.
64531
64532         * lib/Makefile.am (libfetish_a_SOURCES): Add fnmatch_.h in place
64533         of fnmatch.h.
64534         (EXTRA_DIST): Add fnmatch_loop.c.
64535         (libfetish_a_SOURCES): Add c-stack.c and c-stack.h.
64536
64537         * lib/fnmatch_loop.c: New file, from diffutils-2.8.2.
64538         * lib/fnmatch.c: Update from diffutils-2.8.2.
64539         * lib/fnmatch_.h: New file.  From diffutils-2.8.2.
64540         * lib/fnmatch.h: Remove file.
64541
64542 2002-06-21  Jim Meyering  <meyering@lucent.com>
64543
64544         * m4/c-bs-a.m4: Add comment, from diffutils-2.8.2.
64545         * m4/mbrtowc.m4: Likewise.
64546
64547         * m4/mbstate_t.m4: Update from diffutils-2.8.2.
64548         * m4/mbswidth.m4: Reflect name change:
64549         s/AC_MBSTATE_T/AC_TYPE_MBSTATE_T.
64550         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): Likewise.
64551
64552         * m4/lib-link.m4: Update from gettext-0.11.2.
64553         * m4/gettext.m4: Likewise.
64554
64555         * m4/jm-macros.m4 (jm_CHECK_ALL_HEADERS): Check for hurd.h.
64556         From Alfred M. Szmidt.
64557
64558 2002-06-18  Paul Eggert  <eggert@twinsun.com>
64559
64560         * lib/file-type.h: Report an error if neither S_ISREG nor
64561         S_IFREG is defined, instead of using a test specific to glibc
64562         2.2.  This should be safe, since POSIX requires S_ISREG and
64563         Unix Version 7 had S_IFREG.  We don't need to check for
64564         <sys/types.h> since we don't use any symbols that it defines.
64565
64566 2002-06-15  Richard Dawe  <richdawe@bigfoot.com>
64567
64568         * lib/Makefile.am (lstat.c, stat.c, .sin.sed): Use t-$@, rather than
64569         $@-t, so that each temporary file name is unique and valid in the first
64570         8 characters, for operation under DOS.
64571
64572 2002-06-15  Paul Eggert  <eggert@twinsun.com>
64573
64574         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Check for st_author.
64575
64576 2002-06-15  Jim Meyering  <meyering@lucent.com>
64577
64578         Work even with DJGPP 2.03, which lacks support for symlinks.
64579         From Richard Dawe.
64580         * lib/xstat.in (S_ISLNK): Define to 0 if neither S_ISLNK nor S_IFLNK
64581         is defined.
64582         * lib/lchown.c (S_ISLNK): Likewise.
64583
64584 2002-06-15  Jim Meyering  <meyering@lucent.com>
64585
64586         * lib/file-type.h (FILE_TYPE_H): Guard entire contents with #ifndef.
64587         For GNU libc 2.2 and newer, ensure that <sys/types.h> and <sys/stat.h>
64588         have been included before this file.
64589
64590 2002-06-14  Jim Meyering  <meyering@lucent.com>
64591
64592         * lib/file-type.h: Use the version from diffutils-2.8.2.
64593         * lib/file-type.c: Likewise.
64594
64595 2002-06-07  Jim Meyering  <meyering@lucent.com>
64596
64597         * m4/prereq.m4 (jm_PREREQ_STAT): Check for sys/param.h and sys/mount.h.
64598         They're needed at least for NetBSD 1.5.2.
64599         ($statxfs_includes): Include those same headers.
64600         ($statxfs_includes): Include sys/vfs.h if available.
64601         ($statxfs_includes): Likewise for sys/statvfs.h.
64602         Check for the following members in both structs statfs and statvfs:
64603         f_basetype, f_type, f_fsid.__val, f_namemax, f_namelen.
64604
64605 2002-06-01  Jim Meyering  <meyering@lucent.com>
64606
64607         * m4/d-type.m4 (jm_CHECK_TYPE_STRUCT_DIRENT_D_TYPE): Rename macro:
64608         s/D_TYPE_IN_DIRENT/HAVE_STRUCT_DIRENT_D_TYPE/.
64609
64610 2002-05-28  Jim Meyering  <meyering@lucent.com>
64611
64612         * m4/readdir.m4 (jm_FUNC_READDIR): Undefine `mkdir', not `rmdir'.
64613         Reported by Volker Borchert.
64614
64615 2002-05-27  Jim Meyering  <meyering@lucent.com>
64616
64617         Fix a problem seen only on nonconforming systems whereby ls.c's
64618         use of localtime, and then of gettimeofday would cause trouble:
64619         the localtime call used to initialize rpl_gettimeofday's save
64620         mechanism would clobber ls's current local time information so
64621         that in any long listing the first file would always be listed
64622         with date 1970-01-01.  Analysis by Volker Borchert.
64623
64624         * lib/gettimeofday.c (localtime): Undefine.
64625         (rpl_localtime): New function.
64626
64627 2002-05-27  Jim Meyering  <meyering@lucent.com>
64628
64629         * m4/gettimeofday.m4 (AC_FUNC_GETTIMEOFDAY_CLOBBER): Also replace
64630         localtime.
64631
64632         * m4/readdir.m4 (jm_FUNC_READDIR): Undefine `rmdir' so we don't try to
64633         use the replacement function; it wouldn't resolve at link time.
64634         Reported by Volker Borchert.
64635
64636 2002-05-22  Jim Meyering  <meyering@lucent.com>
64637
64638         * lib/Makefile.am (libfetish_a_SOURCES): Add file-type.c and
64639         file-type.h.
64640         * lib/file-type.h: New file.
64641         * lib/file-type.c (file_type): New file/function.  Extracted from
64642         diffutils.
64643
64644 2002-04-30  Jim Meyering  <meyering@lucent.com>
64645
64646         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_STAT.
64647
64648 2002-04-29  Paul Eggert  <eggert@twinsun.com>
64649
64650         * m4/prereq.m4 (jm_PREREQ_SIG2STR): Remove; all callers changed.
64651
64652 2002-04-29  Paul Eggert  <eggert@twinsun.com>
64653
64654         * m4/prereq.m4 (jm_PREREQ_HARD_LOCALE): Check for stdlib.h.
64655         Do not check for alloca.h (no longer used) or stdbool.h (was never
64656         used?).  Add AM_C_PROTOTYPES since hard-locale.h uses it.
64657
64658 2002-04-29  Paul Eggert  <eggert@twinsun.com>
64659
64660         * lib/hard-locale.c: Upgrade to version used in GNU Diffutils 2.8.1.
64661
64662 2002-04-29  Jim Meyering  <meyering@lucent.com>
64663
64664         * m4/jm-macros.m4 (jm_MACROS): Remove use of AC_FUNC_STRNLEN.
64665         * m4/prereq.m4: Add jm_PREREQ_STRNLEN.
64666         Use AC_FUNC_STRNLEN here instead.
64667
64668         * m4/jm-macros.m4: Don't AC_REQUIRE([AC_PROG_CC_STDC]).
64669         With autoconf-2.53a, it's part of AC_PROG_CC.
64670
64671 2002-04-28  Paul Eggert  <eggert@twinsun.com>
64672
64673         * m4/jm-macros.m4 (jm_MACROS): Add AC_REPLACE_FUNCS(sig2str).
64674         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_SIG2STR.
64675
64676 2002-04-28  Paul Eggert  <eggert@twinsun.com>
64677
64678         * lib/sig2str.h, lib/sig2str.c: New files.
64679         * lib/Makefile.am (libfetish_a_SOURCES): Add sig2str.h.
64680
64681 2002-04-28  Paul Eggert  <eggert@twinsun.com>
64682
64683         * lib/sig2str.h (SIGNUM_BOUND): Do not use WTERMSIG, to avoid
64684         depending on <sys/wait.h> and WTERMSIG.  Default to 64 instead
64685         of 127, since 64 is the largest conceivable number for ancient
64686         nonstandard hosts.
64687         * lib/sig2str.c: Do not include <sys/wait.h>; no longer needed.
64688
64689 2002-04-28  Jim Meyering  <meyering@lucent.com>
64690
64691         * lib/sig2str.c (WTERMSIG): Remove definition (unused).
64692
64693 2002-04-24  Jim Meyering  <meyering@lucent.com>
64694
64695         * m4/prereq.m4 (jm_PREREQ_HARD_LOCALE): New macro.
64696         (jm_PREREQ): Use it.
64697
64698         * m4/getloadavg.m4: Check for these headers: locale.h unistd.h
64699         mach/mach.h fcntl.h.
64700         Check for this function: setlocale.
64701
64702 2002-04-24  Jim Meyering  <meyering@lucent.com>
64703
64704         * lib/gettext.h: New file, from Gettext.
64705         * lib/Makefile.am (INCLUDES): Remove -I../intl.
64706         (libfetish_a_SOURCES): Add gettext.h.
64707
64708 2002-04-16  Jim Meyering  <meyering@lucent.com>
64709
64710         * m4/prereq.m4 (jm_PREREQ_READUTMP): Also check for these members:
64711         ut_pid, ut_id, ut_exit.
64712
64713 2002-04-16  Jim Meyering  <meyering@lucent.com>
64714
64715         * lib/readutmp.h (UT_TYPE): Remove definition (now in who.c).
64716         (HAVE_STRUCT_XTMP_UT_EXIT, HAVE_STRUCT_XTMP_UT_ID): Define.
64717         (HAVE_STRUCT_XTMP_UT_PID, HAVE_STRUCT_XTMP_UT_TYPE): Define.
64718
64719 2002-04-12  Jim Meyering  <meyering@lucent.com>
64720
64721         * m4/ls-mntd-fs.m4 (checking for getmntinfo function...): Remove
64722         now-bogus check for f_type in sys/mount.h.  Instead, just test for the
64723         existence of the getmntinfo function.  Needed for Darwin 5.3.
64724
64725         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Also detect when dirfd is a macro.
64726         This is necessary at least on Darwin 5.3.
64727
64728         * m4/jm-macros.m4: Don't AC_REPLACE(strnlen), now that we use
64729         AC_FUNC_STRNLEN.  Otherwise, we'd end up putting two copies of
64730         strnlen.o in the library, and that makes some versions of ranlib
64731         object.
64732
64733 2002-04-12  Jim Meyering  <meyering@lucent.com>
64734
64735         * lib/dirfd.h (dirfd): Elide prototype if dirfd is a macro.
64736
64737 2002-04-09  Jim Meyering  <meyering@lucent.com>
64738
64739         * m4/malloc.m4: (jm_FUNC_MALLOC): Change the `checking ...' message
64740         to be more precise.  Rather than saying we're checking whether the
64741         function `works', say what we're testing.
64742         * m4/realloc.m4 (jm_FUNC_REALLOC): Likewise.
64743         Reported by Bruno Haible.
64744
64745 2002-03-10  Jim Meyering  <meyering@lucent.com>
64746
64747         * lib/makepath.c (make_path): Remove a comma from a diagnostic.
64748         Suggestion from Santiago Vila.
64749
64750 2002-03-08  Jim Meyering  <meyering@lucent.com>
64751
64752         * lib/rename.c: Mention that this wrapper is needed also on
64753         mips-dec-ultrix4.4 systems.
64754
64755 2002-03-02  Jim Meyering  <meyering@lucent.com>
64756
64757         * lib/gettime.c (gettime): Test HAVE_CLOCK_GETTIME,
64758         not HAVE_CLOCK_SETTIME.
64759
64760 2002-02-27  Paul Eggert  <eggert@twinsun.com>
64761
64762         * m4/jm-macros.m4 (jm_MACROS): Do not replace stime; no longer used.
64763         Check for clock_settime.
64764
64765 2002-02-27  Paul Eggert  <eggert@twinsun.com>
64766
64767         * lib/nanosleep.h: Rename to....
64768         * lib/timespec.h: New name for nanosleep.h.  All uses changed.
64769
64770         * lib/gettime.c: New file.
64771         * lib/settime.c: New file.
64772         * lib/stime.c: Remove.
64773
64774         * lib/Makefile.am (libfetish_a_SOURCES): Add gettime.c, settime.c,
64775         timespec.h.  Remove nanosleep.h.
64776
64777 2002-02-25  Paul Eggert  <eggert@twinsun.com>
64778
64779         * m4/acl.m4: New file.
64780         * m4/jm-macros.m4 (jm_MACROS): Require AC_FUNC_ACL.
64781         Do not check for acl or sys/acl.h, as AC_FUNC_ACL does that now.
64782
64783 2002-02-25  Paul Eggert  <eggert@twinsun.com>
64784
64785         * lib/acl.c, lib/acl.h: New files.
64786         * lib/Makefile.am (libfetish_a_SOURCES): Add acl.h, acl.c.
64787
64788 2002-02-24  Jim Meyering  <meyering@lucent.com>
64789
64790         * lib/strnlen.c (strnlen): Define-away/undef so that an inconsistent
64791         prototype in string.h (on at least AIX4.3.2.0 w/gcc-2.95.3) doesn't
64792         cause trouble.  Reported by Nelson Beebe.
64793
64794 2002-02-23  Paul Eggert  <eggert@twinsun.com>
64795
64796         * lib/path-concat.c (xpath_concat): Reorder code to pacify
64797         compilers that don't know that xalloc_die never returns.
64798
64799 2002-02-20  Jim Meyering  <meyering@lucent.com>
64800
64801         * lib/getdate.c: Regenerate using bison-1.33.
64802
64803 2002-02-17  Jim Meyering  <meyering@lucent.com>
64804
64805         * config/config.guess (main): Don't use `head -1'; it's no longer
64806         portable. Use `sed 1q' instead.
64807
64808 2002-02-16  gettextize  <bug-gnu-gettext@gnu.org>
64809
64810         * m4/codeset.m4: Upgrade to gettext-0.11.
64811         * m4/gettext.m4: Upgrade to gettext-0.11.
64812         * m4/glibc21.m4: Upgrade to gettext-0.11.
64813         * m4/iconv.m4: Upgrade to gettext-0.11.
64814         * m4/isc-posix.m4: Upgrade to gettext-0.11.
64815         * m4/lcmessage.m4: Upgrade to gettext-0.11.
64816         * m4/lib-ld.m4: New file, from gettext-0.11.
64817         * m4/lib-link.m4: New file, from gettext-0.11.
64818         * m4/lib-prefix.m4: New file, from gettext-0.11.
64819         * m4/progtest.m4: Upgrade to gettext-0.11.
64820
64821 2002-02-15  Paul Eggert  <eggert@twinsun.com>
64822
64823         * m4/prereq.m4 (jm_PREREQ_POSIXVER): New macro.
64824         (jm_PREREQ): Use it.
64825
64826 2002-02-15  Paul Eggert  <eggert@twinsun.com>
64827
64828         * lib/posixver.c, lib/posixver.h: New files.
64829         * lib/Makefile.am (libfetish_a_SOURCES): Add them.
64830
64831 2002-02-02  Paul Eggert  <eggert@twinsun.com>
64832             Bruno Haible  <bruno@clisp.org>
64833
64834         * lib/unicodeio.h (print_unicode_char): Add exit_on_error argument.
64835         (fwrite_success_callback): New declaration.
64836         * lib/unicodeio.c (unicode_to_mb): New function, extracted from
64837         print_unicode_char. Call failure callback instead of error.
64838         (fwrite_success_callback): New function.
64839         (exit_failure_callback): New function.
64840         (fallback_failure_callback): New function.
64841         (print_unicode_char): Call unicode_to_mb.
64842
64843 2002-01-26  Jim Meyering  <meyering@lucent.com>
64844
64845         * m4/jm-macros.m4 (jm_MACROS): Require autoconf-2.52g.
64846         * m4/strnlen.m4: Remove file, now that it's part of autoconf.
64847
64848 2002-01-26  Jim Meyering  <meyering@lucent.com>
64849
64850         * lib/Makefile.am (getdate$U.o): Depend on unlocked-io.h.
64851
64852 2002-01-22  Paul Eggert  <eggert@twinsun.com>
64853
64854         * m4/jm-macros.m4 (jm_MACROS): Require AC_FUNC_FSEEKO.
64855
64856 2002-01-22  Jim Meyering  <meyering@lucent.com>
64857
64858         * lib/Makefile.am (Makefile): Don't depend on $(BUILT_SOURCES).
64859         Otherwise, some versions of automake would omit the rule that makes
64860         Makefile from Makefile.in.
64861
64862 2002-01-21  Paul Eggert  <eggert@twinsun.com>
64863
64864         * lib/xmemcoll.h, lib/xmemcoll.c: New files.
64865         * lib/Makefile.am (libfetish_a_SOURCES): Add them.
64866         * lib/memcoll.c: Include errno.h, and declare errno if not defined.
64867         (memcoll): Set errno to zero if there is no error.
64868
64869         * lib/quotearg.c (quotearg_buffer_restyled):
64870         Fix bug with quoting buffers containing NUL when backslashing escapes.
64871         This bug was exposed by the other changes in this patch.
64872         (quotearg_n_options): New arg ARGSIZE.
64873         All callers changed.
64874         (quoting_options_from_style): New function.
64875         (quotearg_n_style): Use it.
64876         (quotearg_n_style_mem): New function.
64877
64878         * lib/quotearg.h (quotearg_n_style_mem): New function.
64879
64880 2002-01-19  Jim Meyering  <meyering@lucent.com>
64881
64882         * m4/jm-macros.m4 (jm_MACROS): Use AC_FUNC_STRNLEN.
64883         Remove useless quotes: DF_PROG="df".
64884         * m4/strnlen.m4: New file.
64885
64886 2002-01-16  Paul Eggert  <eggert@twinsun.com>
64887
64888         * lib/backupfile.c (ISDIGIT): Comment fix.
64889         * lib/getdate.y (ISDIGIT): Likewise.
64890         * lib/posixtm.c (ISDIGIT, year): Likewise.
64891         * lib/strverscmp.c (ISDIGIT): Likewise.
64892         * lib/userspec.c (ISDIGIT): Likewise.
64893
64894 2002-01-16  Jim Meyering  <meyering@lucent.com>
64895
64896         * lib/getdate.y: Add three semicolons, each just before a closing
64897         brace. Bison (as of version 1.31) no longer papers over that mistake.
64898
64899 2002-01-05  Jim Meyering  <meyering@lucent.com>
64900
64901         * lib/version-etc.c (version_etc_copyright): Update copyright year.
64902
64903 2001-12-19  Paul Eggert  <eggert@twinsun.com>
64904
64905         * lib/closeout.c (close_stdout_status): If ferror (stdout), do
64906         not silently exit merely because the output buffer happens to
64907         have nothing pending.
64908
64909 2001-12-18  Paul Eggert  <eggert@twinsun.com>
64910
64911         See the big note in ../ChangeLog.
64912         * lib/human.c (suffixes): Prefer K to k for 1024.
64913         (generate_suffix_backwards): New function.
64914         (human_readable_inexact): Use it.
64915         * lib/xstrtol.c (__xstrtol): If there is no number but there
64916         is a valid suffix, assume 1.  "MB" now means decimal, "MiB" binary.
64917         Accept 'K' as well as 'k'.
64918
64919 2001-12-15  Jim Meyering  <meyering@lucent.com>
64920
64921         * lib/regex.h (__restrict_arr): Update from libc.
64922
64923         * lib/mountlist.h (ME_REMOTE): Recognize file systems of type smbfs
64924         as `remote' if the name starts with `//'.  Suggested by Michael Stone.
64925         (STREQ): Define.
64926
64927 2001-12-14  Jim Meyering  <meyering@lucent.com>
64928
64929         * m4/jm-macros.m4 (jm_MACROS): Check for iswspace.
64930         Suggestion from Bruno Haible.
64931
64932 2001-12-10  Jim Meyering  <meyering@lucent.com>
64933
64934         * lib/linebuffer.c: Remove explicit declarations of xmalloc and
64935         xrealloc, Instead, include "xalloc.h".
64936         (initbuffer): Don't cast xmalloc return value to char*.
64937         (readline): Reword comment.
64938         Don't cast xrealloc return value to char*
64939         Return NULL, not 0.
64940
64941 2001-12-09  Jim Meyering  <meyering@lucent.com>
64942
64943         * lib/modechange.c (mode_compile): Add cast to avoid pedantic warning
64944         about `signed and unsigned type in conditional expression'.
64945         * lib/posixtm.c (posix_time_parse): Likewise.
64946
64947         * lib/xreadlink.c (xreadlink): Add cast to avoid a pedantic warning.
64948
64949         * lib/readtokens.c (readtoken): Declare an index to be of type unsigned
64950         to avoid a pedantic warning.
64951
64952         * lib/getstr.c: Don't include assert.h.
64953         (getstr): Remove warning-evoking assertions.
64954         Return -1 if offset parameter is out of bounds.
64955         Change the type of a local from int to size_t.
64956
64957         * lib/strftime.c (my_strftime_localtime_r): Include this function
64958         definition in the `#if ! HAVE_TM_GMTOFF' block.
64959
64960         * lib/xgethostname.c: Remove declarations of xmalloc and xrealloc.
64961         Include xalloc.h instead.
64962
64963 2001-12-02  Jim Meyering  <meyering@lucent.com>
64964
64965         * lib/tempname.c: Don't declare getenv, thus reverting the change of
64966         2001-11-18.  It's no longer necessary, now that stdlib.h is always
64967         included.
64968
64969         * lib/regex.c [!__BOUNDED_POINTERS__]: Define away __bounded,
64970         __unbounded, and __ptrvalue.  Reported by Uwe H. Steinfeld.
64971
64972 2001-11-30  Akim Demaille  <akim@epita.fr>
64973
64974         * lib/xstrdup.c: Include xalloc.h, so that xstrdup is declared
64975         before being defined.
64976
64977 2001-11-27  Paul Eggert  <eggert@twinsun.com>
64978
64979         * lib/quotearg.h (quotearg_n, quotearg_n_style):
64980         First arg is int, not unsigned.
64981         * lib/quotearg.c (quotearg_n, quotearg_n_style): Likewise.
64982         (SIZE_MAX, UINT_MAX): New macros.
64983         (quotearg_n_options): Abort if N is negative.
64984         Avoid overflow check on hosts where size_t is 64 bits and int
64985         is 32 bits, as overflow is impossible there.
64986         Fix off-by-one typo that caused unnecessary reallocation.
64987
64988 2001-11-27  Jim Meyering  <meyering@lucent.com>
64989
64990         * lib/tempname.c: Merge with version from libc.
64991         * lib/regex.c: Likewise.
64992
64993         * lib/tempname.c: Include stdlib.h unconditionally.  On some old
64994         systems for which STDC_HEADERS is 0, it was not included, resulting in
64995         a warning about an integer-to-pointer conversion problem with getenv.
64996         Reported by Volker Borchert.
64997
64998 2001-11-26  Jim Meyering  <meyering@lucent.com>
64999
65000         * lib/gtod.h: Remove file.
65001         * lib/Makefile.am (libfetish_a_SOURCES): Remove gtod.h.
65002         * lib/gettimeofday.c: Don't include gtod.h.
65003         (GTOD_init): Remove function.
65004         (rpl_gettimeofday): Do its job here instead, rather than aborting.
65005         Suggestion from Volker Borchert.
65006
65007 2001-11-23  Jim Meyering  <meyering@lucent.com>
65008
65009         * lib/hash.h (struct hash_table): Don't define here.  Merely declare
65010         it.
65011         * lib/hash.c (struct hash_table): Define it here instead.
65012
65013 2001-11-22  Jim Meyering  <meyering@lucent.com>
65014
65015         * lib/hash.h: Bracket contents of file with #ifndef HASH_H_ ... #endif.
65016
65017 2001-11-20  Jim Meyering  <meyering@lucent.com>
65018
65019         * m4/mkstemp.m4 (UTILS_FUNC_MKSTEMP): Update comment to reflect that
65020         SunOS 4.1.4 and Solaris 2.5.1 lose, too.
65021
65022 2001-11-19  Jim Meyering  <meyering@lucent.com>
65023
65024         * m4/mkstemp.m4 (UTILS_FUNC_MKSTEMP): Don't bother with a temporary
65025         directory.  Use "conftestXXXXXX" as the template.
65026         Suggestion from Paul Eggert.
65027
65028         * m4/mkstemp.m4 (UTILS_FUNC_MKSTEMP): Close each descriptor
65029         immediately, so the test doesn't mistakenly hit the max-open-files
65030         limit.
65031
65032 2001-11-18  Paul Eggert  <eggert@twinsun.com>
65033
65034         * lib/tempname.c (TMP_MAX): Remove; no longer needed.
65035         (TEMPORARIES): New macro.
65036         (__gen_tempname): Use TEMPORARIES rather than TMP_MAX.  This
65037         removes an artificial limitation (e.g. HP-UX 10.20, where
65038         TMP_MAX is 17576).
65039
65040 2001-11-18  Jim Meyering  <meyering@lucent.com>
65041
65042         * m4/prereq.m4 (jm_PREREQ_TEMPNAME): Check for declaration of getenv.
65043
65044 2001-11-18  Jim Meyering  <meyering@lucent.com>
65045
65046         * lib/tempname.c [!HAVE_DECL_GETENV]: Declare getenv to avoid warning
65047         on SunOS 4.
65048
65049         * lib/Makefile.am (Makefile): Depend on $(BUILT_SOURCES), so those
65050         files will be created before anything else.
65051
65052 2001-11-17  Paul Eggert  <eggert@twinsun.com>
65053
65054         * m4/jm-winsz1.m4 (jm_WINSIZE_IN_PTEM): Do not define
65055         WINSIZE_IN_PTEM if <termios.h> defines struct winsize.
65056
65057 2001-11-17  Jim Meyering  <meyering@lucent.com>
65058
65059         * m4/mkstemp.m4 (UTILS_FUNC_MKSTEMP): New file and macro.
65060         Prompted by a report from Bob Proulx.
65061
65062         * m4/jm-macros.m4 (jm_MACROS): Don't test for mkstemp here.
65063         Instead, require UTILS_FUNC_MKSTEMP.
65064
65065 2001-11-17  Jim Meyering  <meyering@lucent.com>
65066
65067         * m4/jm-macros.m4 (jm_MACROS): Remove code to set POW_LIBM.
65068         Now, that's done as part of AC_FUNC_STRTOD.
65069
65070 2001-11-17  Jim Meyering  <meyering@lucent.com>
65071
65072         * lib/modechange.c (mode_adjust): Fix error introduced on 1999-04-26
65073         that made e.g., `chmod a=,o=w,g=o F' cause F to be group readable
65074         rather than group writable.  Patch by Juan F. Codagnone.
65075
65076         * lib/readtokens.c: Remove explicit declarations of xmalloc and
65077         xrealloc, Instead, include "xalloc.h".
65078
65079         * lib/mountlist.c: Include unlocked-io.h after all system headers.
65080         Remove explicit declarations of xmalloc, xrealloc,
65081         and xstrdup.  Instead, include "xalloc.h".
65082
65083         * lib/argmatch.c, closeout.c, error.c, exclude.c: Include
65084         unlocked-io.h.
65085         * lib/fatal.c, getdate.y, getpass.c, getstr.c, getusershell.c:
65086         Likewise.
65087         * lib/mountlist.c, posixtm.c, readtokens.c, readutmp.c: Likewise.
65088
65089         * lib/regex.c, sha.c, version-etc.c, yesno.c: Likewise.
65090         Reported by Padraig Brady.
65091
65092         * lib/mkstemp.c: #undef mkstemp.
65093         Include config.h.
65094         (rpl_mkstemp): Rename from mkstemp.
65095         Protoize.
65096
65097 2001-11-16  Jim Meyering  <meyering@lucent.com>
65098
65099         * lib/physmem.c [HAVE_SYS_PSTAT_H]: Include <sys/pstat.h>.
65100         (physmem_total) [HAVE_PSTAT_GETSTATIC]: If sysconf couldn't be used to
65101         determine the amount of total physical memory, use pstat_getstatic.
65102         HPUX-11 doesn't define _SC_PHYS_PAGES.
65103         (physmem_available) [HAVE_PSTAT_GETSTATIC && HAVE_PSTAT_GETDYNAMIC]:
65104         If sysconf couldn't be used to determine the amount of available
65105         physical memory, use both pstat_getstatic and pstat_getdynamic.
65106         Based on a patch from Bob Proulx.
65107
65108 2001-11-10  Jim Meyering  <meyering@lucent.com>
65109
65110         * m4/prereq.m4 (jm_PREREQ_PHYSMEM): New function.
65111         (jm_PREREQ): Use it.
65112
65113 2001-11-09  Jim Meyering  <meyering@lucent.com>
65114
65115         * m4/jm-macros.m4: Require autoconf-2.52f.
65116         (AC_FUNC_ERROR_AT_LINE, AC_FUNC_OBSTACK, AC_FUNC_STRTOD):
65117         Use these AC_-prefixed names, not the AM_-prefixed ones.
65118
65119         * m4/afs.m4 (jm_AFS): Quote the body.  Patch by Akim Demaille.
65120
65121 2001-11-05  Jim Meyering  <meyering@lucent.com>
65122
65123         * lib/xstat.in (slash_aware_lstat): Correct a misleading comment.
65124
65125 2001-11-04  Jim Meyering  <meyering@lucent.com>
65126
65127         * m4/fpending.m4: Remove unused cruft that saved, set, and restored
65128         $DEFS.
65129
65130 2001-11-03  Jim Meyering  <meyering@lucent.com>
65131
65132         * m4/jm-glibc-io.m4n (jm_FUNC_GLIBC_UNLOCKED_IO): Quote first arg
65133         of AC_DEFUN.
65134
65135         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Rework so dirfd.c doesn't have to
65136         know the name of the variable in the macro definition.
65137
65138 2001-11-03  Jim Meyering  <meyering@lucent.com>
65139
65140         * lib/argmatch.h (ARGMATCH_TO_ARGUMENT): Remove casts of first two args
65141         in argmatch_to_argument call.
65142
65143         * lib/dirfd.c (dirfd): Reflect the fact that DIR_TO_FD now takes an
65144         argument.
65145
65146         * lib/hash.c (hash_clear): Fix a bug that could lead to an infloop or
65147         e.g., a fault due to an attempt to free a NULL pointer.
65148
65149 2001-11-01  Jim Meyering  <meyering@lucent.com>
65150
65151         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): New macro.
65152         * m4/jm-macros.m4 (jm_MACROS): Require UTILS_FUNC_DIRFD.
65153
65154 2001-11-01  Jim Meyering  <meyering@lucent.com>
65155
65156         * lib/dirfd.c, lib/dirfd.h: New files.
65157         * lib/Makefile.am (libfetish_a_SOURCES): Add dirfd.h.
65158
65159         * lib/hash.c (hash_print) [TESTING]: Clean up.
65160
65161 2001-10-22  Paul Eggert  <eggert@twinsun.com>
65162
65163         * lib/hard-locale.c (alloca): Define to __builtin_alloca if __GNUC__,
65164         to avoid a warning if -Wall.
65165
65166 2001-10-22  Jeff Bailey  <jbailey@outpost.dnsalias.org>
65167
65168         * README: New file
65169         * doc/*: Add COPYING, COPYING.LIB, COPYING.DOC, fdl.texi
65170         (per RMS's instructions, this is now the canonical source)
65171         * lgpl/, gpl/: New directories.
65172
65173 2001-10-21  Paul Eggert  <eggert@twinsun.com>
65174
65175         * lib/regex.c (uintptr_t): Remove macro and decl; it's config.h's job.
65176
65177 2001-10-21  Jim Meyering  <meyering@lucent.com>
65178
65179         * lib/obstack.c (_): Honor the setting of ENABLE_NLS.  Otherwise,
65180         this code would end up calling gettext even in packages built
65181         with --disable-nls.
65182         * lib/getopt.c (_): Likewise.
65183         * lib/regex.c (_): Likewise.
65184
65185 2001-10-20  Paul Eggert  <eggert@twinsun.com>
65186
65187         * m4/error.m4 (jm_PREREQ_ERROR):
65188         Do not invoke AC_CHECK_FUNCS with strerror_r, as
65189         AC_FUNC_STRERROR_R does that.
65190         Check for strerror declaration.
65191
65192         * m4/strerror_r.m4: Add copyright notice, as nontrivial m4 files
65193         are supposed to have them these days.
65194         (AC_FUNC_STRERROR_R): Always do char* test, so that it gets cached.
65195         Merge changes from latest Autoconf CVS.
65196         Rename ac_cv_func_strerror_r_works to ac_cv_func_strerror_r_char_p,
65197         and rename HAVE_WORKING_STRERROR_R to STRERROR_R_CHAR_P, since
65198         POSIX decided to standardize on the int flavor of strerror_r.
65199
65200 2001-10-20  Paul Eggert  <eggert@twinsun.com>
65201
65202         * lib/error.c (strerror_r): Do not declare unless !_LIBC.
65203         Do not check for HAVE_DECL_STRERROR_R missing unless STRERROR_R_CHAR_P.
65204         Use strerror_r that is only a macro, even if it is not a function.
65205         (strerror): Check for HAVE_DECL_STRERROR before declaring.
65206         (private_strerror): Use prototypes, not old-style function definition.
65207         (print_errno_message): New function.
65208         Support the POSIX 'int'-flavored strerror_r, as well as the traditional
65209         char*-flavored one.
65210         (error_tail, error, error_at_line): Use it.
65211
65212 2001-10-11  Jim Meyering  <meyering@lucent.com>
65213
65214         * lib/argmatch.c (argmatch_invalid): Use quotearg_n_style (0, ...
65215         and quote_n (1, ... to avoid clobbering a buffer.
65216
65217 2001-10-05  Jim Meyering  <meyering@lucent.com>
65218
65219         * lib/Makefile.am: (libfetish_a_SOURCES): Add hash-pjw.c and
65220         hash-pjw.h.
65221         * lib/hash-pjw.c: New file (factored out of fileutils' remove.c).
65222         * lib/hash-pjw.h: New file.
65223
65224 2001-09-30  Jim Meyering  <meyering@lucent.com>
65225
65226         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): See if
65227         `struct fsstat' has the `f_fstypename' member.
65228         Use that to define FS_TYPE, which is now used to make
65229         the getfsstat link test tighter.
65230
65231 2001-09-30  Jim Meyering  <meyering@lucent.com>
65232
65233         * lib/mountlist.c [MOUNTED_GETFSSTAT]:
65234         Include <sys/ucred.h>, for Apple Darwin.
65235         Include sys/mount.h and sys/fs_types.h only if available.
65236         (FS_TYPE): Define.
65237         (read_filesystem_list): Use FS_TYPE.
65238
65239 2001-09-29  Paul Eggert  <eggert@twinsun.com>
65240
65241         * lib/exclude.c (excluded_filename): 0 -> false, since it's
65242         a boolean context.
65243
65244 2001-09-29  Jim Meyering  <meyering@lucent.com>
65245
65246         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS)
65247         [one-argument getmntent function]): Include stdio.h before mntent.h.
65248         SunOS 4.1.x needs it for the declaration of `FILE'.
65249         Patch by Volker Borchert.
65250
65251         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS)
65252         Check for these headers: sys/param.h sys/ucred.h sys/mount.h
65253         sys/fs_types.h, and make the link-test for getfsstat guard #include
65254         directives with appropriate #if HAVE_*_H tests so that we can
65255         detect getfsstat on Apple Darwin1.3.7 systems.
65256         Reported by Nelson Beebe.
65257         Fix harmless typo in cache variable name: s/getsstat/getfsstat/.
65258
65259 2001-09-28  Paul Eggert  <eggert@twinsun.com>
65260
65261         Fix bug reported by Petter Reinholdtsen for HP-UX 10.20, which
65262         #defines strtoimax.  Also treat the other strto* functions
65263         like strtoimax.
65264
65265         * m4/xstrtoimax.m4 (jm_AC_PREREQ_XSTRTOIMAX):
65266         Check for strtoul and strtoumax,
65267         as those declarations are made even in the signed case.
65268         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX):
65269         Likewise, for strtol and strtoimax.
65270
65271 2001-09-28  Paul Eggert  <eggert@twinsun.com>
65272
65273         Fix bug reported by Petter Reinholdtsen for HP-UX 10.20, which
65274         #defines strtoimax.  Also treat the other strto* functions
65275         like strtoimax.
65276
65277         * lib/xstrtol.c (strtol): Do not declare if HAVE_DECL_STRTOL.
65278         (strtoul): Do not declare if HAVE_DECL_STRTOUL.
65279         (strtoimax, strtoumax): Do not declare if already defined as a macro.
65280
65281 2001-09-26  Jim Meyering  <meyering@lucent.com>
65282
65283         Most macros in unlocked-io.h had the wrong number of arguments.
65284         * lib/gen-uio: New script.
65285         (USE_UNLOCKED_IO): Define to 1 if not already defined.
65286         * lib/unlocked-io.hin: Remove file.
65287         * lib/Makefile.am (unlocked-io.h): Rewrite to use a separate script,
65288         rather than trying to embed it here.
65289         (EXTRA_DIST): Add gen-uio.  Remove unlocked-io.hin
65290         Reported by Padraig Brady.
65291
65292 2001-09-25  Volker Borchert  <bt@teknon.de>
65293
65294         * lib/gettimeofday.c (rpl_gettimeofday): Declare local variable
65295         `result'.
65296
65297 2001-09-24  Jim Meyering  <meyering@lucent.com>
65298
65299         * m4/gettext.m4: Use the version from gettext-0.10.40, not CVS.
65300
65301 2001-09-23  Jim Meyering  <meyering@lucent.com>
65302
65303         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Add a compile-test
65304         instead of the mere test for existence of mntent.h.  The latter
65305         would get a false-positive on AIX 3.4 systems.
65306         In the outer getmntent if-block, don't die if neither of the getmntent
65307         tests succeeds.  Instead, just fall through and continue with the
65308         remaining tests.
65309
65310 2001-09-23  Jim Meyering  <meyering@lucent.com>
65311
65312         * lib/mountlist.c: Remove useless parentheses in #if directives.
65313         (MOUNTED) [!defined MOUNTED]: Define to _PATH_MOUNTED, for when
65314         the deprecated MOUNTED symbol is no longer defined in mntent.h.
65315
65316 2001-09-22  Jim Meyering  <meyering@lucent.com>
65317
65318         * m4/gettext.m4: New file.  From gettext.
65319         * m4/lcmessage.m4: Sync with gettext -- this changes only comments.
65320         * m4/progtest.m4: Likewise
65321         * m4/isc-posix.m4: Decrement serial number to sync with gettext.
65322         * m4/glibc21.m4: Likewise.
65323
65324         * m4/libintl.m4: Remove.  No longer used.
65325
65326 2001-09-22  Jim Meyering  <meyering@lucent.com>
65327
65328         * lib/localcharset.c: Update from latest gettext.
65329         * lib/config.charset: Likewise.
65330
65331 2001-09-20  Jim Meyering  <meyering@lucent.com>
65332
65333         * m4/xstrtoimax.m4 (jm_AC_PREREQ_XSTRTOIMAX): Check for declaration of
65334         strtoimax.
65335         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): Check for declaration of
65336         strtoumax.
65337
65338 2001-09-20  Jim Meyering  <meyering@lucent.com>
65339
65340         * lib/xstrtol.c (strtoimax): Guard declaration with
65341         `#if !HAVE_DECL_STRTOIMAX', rather than just `#ifndef strtoimax'.
65342         The latter fails because some systems (at least rs6000-ibm-aix4.3.3.0)
65343         have their own, conflicting declaration of strtoimax in sys/inttypes.h.
65344         (strtoumax): Likewise, for completeness (it wasn't necessary).
65345
65346 2001-09-17  Paul Eggert  <eggert@twinsun.com>
65347
65348         * lib/strtoimax.c (HAVE_LONG_LONG):
65349         Redefine to HAVE_UNSIGNED_LONG_LONG if unsigned.
65350         (strtoimax): Use sizeof (long), not sizeof strtol (ptr, endptr, base),
65351         to work around bug in IBM C compiler.
65352
65353 2001-09-17  Jim Meyering  <meyering@lucent.com>
65354
65355         * m4/chown.m4, fstypename.m4, getgroups.m4, gettimeofday.m4,
65356         * m4/jm-mktime.m4, lstat.m4, malloc.m4, memcmp.m4, mkdir-slash.m4,
65357         * m4/nanosleep.m4, putenv.m4, readdir.m4, realloc.m4, rename.m4,
65358         * m4/st_dm_mode.m4, stat.m4, strerror_r.m4, timespec.m4, utimbuf.m4,
65359         * m4/utimes.m4: Use AC_DEFINE rather than AC_DEFINE_UNQUOTED,
65360         whenever the right hand side need not be expanded by the shell.
65361
65362 2001-09-16  Paul Eggert  <eggert@twinsun.com>
65363
65364         * m4/fnmatch.m4 (jm_FUNC_FNMATCH): Remove test for GNU C
65365         library.  It's not correct, as some older glibcs are buggy.
65366         fnmatch wasn't fixed until glibc 2.2.
65367
65368         Use AC_DEFINE, not AC_DEFINE_UNQUOTED, as there's no
65369         special shell magic here.
65370
65371 2001-09-16  Jim Meyering  <meyering@lucent.com>
65372
65373         * m4/mkdir-slash.m4 (UTILS_FUNC_MKDIR_TRAILING_SLASH): New file/macro.
65374         * m4/jm-macros.m4: Require it.
65375
65376 2001-09-16  Jim Meyering  <meyering@lucent.com>
65377
65378         * lib/mkdir.c: New file.
65379
65380 2001-09-15  Jim Meyering  <meyering@lucent.com>
65381
65382         * m4/jm-macros.m4: Check for help2man.
65383
65384 2001-09-11  Jim Meyering  <meyering@lucent.com>
65385
65386         * m4/host-os.m4 (UTILS_HOST_OS): New file/macro.
65387         The body, by Paul Eggert, was moved here from configure.in.
65388         * m4/jm-macros.m4: Require UTILS_HOST_OS.
65389
65390 2001-09-04  Paul Eggert  <eggert@twinsun.com>
65391
65392         * m4/prereq.m4 (jm_PREREQ_XREADLINK): New macro.
65393         (jm_PREREQ): Use it.
65394
65395 2001-09-04  Paul Eggert  <eggert@twinsun.com>
65396
65397         * lib/xreadlink.c (xreadlink): Omit size_t* arg.  All uses changed.
65398         Use ssize_t, not int, to store result of readlink.
65399         Check for ssize_t overflow as well as size_t overflow,
65400         as POSIX says the result of readlink is implementation-defined
65401         when ssize_t overflows.
65402         Remove unnecessary cast to char*.
65403         Use free+malloc instead of realloc, as the storage doesn't need
65404         to be preserved and it's clearer and can be more efficient that way.
65405         (SIZE_MAX, SSIZE_MAX): New macros, if <limits.h> doesn't declare.
65406         * lib/xreadlink.h (xreadlink): Update prototype.
65407
65408 2001-09-04  Paul Eggert  <eggert@twinsun.com>
65409
65410         * lib/xgetcwd.c: Revert some of the previous change; intead,
65411         fix the HAVE_GETCWD_NULL code to behave more like the
65412         !HAVE_GETCWD_NULL code used to.
65413
65414         Include "xalloc.h".
65415         (xgetcwd): Do not return NULL when memory is exhausted; instead,
65416         invoke xalloc_die.
65417
65418 2001-09-03  Paul Eggert  <eggert@twinsun.com>
65419
65420         * m4/prereq.m4 (jm_PREREQ_XGETCWD): Check for limits.h and
65421         sys/param.h, as pathmax.h includes them.
65422
65423 2001-09-03  Paul Eggert  <eggert@twinsun.com>
65424
65425         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_XGETCWD.
65426         (jm_PREREQ_XGETCWD): New macro.
65427
65428         * m4/getcwd.m4: New file.
65429
65430 2001-09-03  Paul Eggert  <eggert@twinsun.com>
65431
65432         * lib/xgetcwd.c: Fix the !HAVE_GETCWD_NULL code to behave more
65433         like the HAVE_GETCWD_NULL code.
65434         Include pathmax.h if not HAVE_GETCWD.
65435         Do not include xalloc.h.
65436         (INITIAL_BUFFER_SIZE): New symbol.
65437         Do not use xmalloc / xrealloc, since the caller is responsible for
65438         handling errors.  Preserve errno around `free' during failure.
65439         Do not overrun buffer when using getwd.
65440
65441 2001-09-03  Paul Eggert  <eggert@twinsun.com>
65442
65443         * lib/xgetcwd.c (xgetcwd): Use HAVE_GETCWD_NULL, not (defined
65444         __GLIBC__ && __GLIBC__ >= 2), to decide whether to use
65445         getcwd (NULL, 0).
65446
65447 2001-09-03  Paul Eggert  <eggert@twinsun.com>
65448
65449         * lib/exclude.c (fnmatch_no_wildcards): Fix confusion between
65450         usage of FNM_CASEFOLD and FNM_LEADING_DIR.  The bug was
65451         spotted by Jim Meyering.
65452
65453 2001-09-03  Jim Meyering  <meyering@lucent.com>
65454
65455         * lib/xreadlink.c (xreadlink): Preserve errno around `free' during
65456         failure.
65457
65458 2001-09-02  Jim Meyering  <meyering@lucent.com>
65459
65460         * lib/error.c: Update from GNU libc.
65461
65462 2001-09-01  Jim Meyering  <meyering@lucent.com>
65463
65464         * m4/jm-macros.m4 (jm_MACROS): Check for canonicalize_file_name.
65465         Used by df.
65466
65467 2001-09-01  Jim Meyering  <meyering@lucent.com>
65468
65469         * lib/xreadlink.c: New file.
65470         * lib/xreadlink.h: New file.
65471         * lib/Makefile.am (libfetish_a_SOURCES): Add xreadlink.c and
65472         xreadlink.h.
65473
65474         * lib/regex.c (uintptr_t) [!_LIBC]: Define to private_uintptr_t, so it
65475         doesn't conflict with sparc Solaris 7's definition in
65476         /usr/include/sys/int_types.h.
65477
65478         * lib/exclude.c: Use `""', not `<>' to #include non-system header
65479         files.
65480         (fnmatch_no_wildcards): Rewrite not to use function names, strcasecmp
65481         and strncasecmp as r-values.  Unixware didn't have declarations.
65482
65483 2001-08-31  Paul Eggert  <eggert@twinsun.com>
65484
65485         * lib/xstrtol.h: Add copyright notice.
65486         (_DECLARE_XSTRTOL): Improve quality of diagnostic for
65487         LONGINT_INVALID_SUFFIX_CHAR.
65488
65489 2001-08-31  Paul Eggert  <eggert@twinsun.com>
65490
65491         * lib/xstrtol.c (strtoimax): New decl.
65492
65493 2001-08-31  Paul Eggert  <eggert@twinsun.com>
65494
65495         * lib/xgetcwd.c: Don't include pathmax.h.
65496         Include stdlib.h and unistd.h if available.
65497         Include xalloc.h.
65498         (xmalloc, xstrdup, free): Remove decls.
65499         (xgetcwd): Don't assume sizes fit in unsigned.
65500         Check for overflow when computing sizes.
65501         Simplify reallocation code.
65502
65503 2001-08-31  Paul Eggert  <eggert@twinsun.com>
65504
65505         * lib/savedir.c (savedir): Remove size parameter, as POSIX says that
65506         a directory's st_size can have an arbitrary value, so the old
65507         usage could waste an arbitrary amount of memory.  All uses
65508         changed.
65509         * lib/savedir.h: Update prototype.
65510
65511 2001-08-31  Paul Eggert  <eggert@twinsun.com>
65512
65513         * lib/Makefile.am (libfetish_a_SOURCES): Remove strtoxmax.c.
65514
65515         * lib/strtoimax.c: Renamed from strtoxmax.c, removing the
65516         old strtoimax.c.
65517
65518         Also, make the following further changes to make this file's
65519         configuration more similar to that of strtol.c:
65520         (UNSIGNED): Renamed from STRTOUXMAX_UNSIGNED.  All uses changed.
65521         (strtoumax, uintmax_t, strtoull, strtol): Remove.
65522         (intmax_t, strtoimax, strtol, strtoll): New macros, if UNSIGNED.
65523         (strtoimax): Renamed from strtoumax.  All uses of unsigned values
65524         changed to signed values.
65525
65526         And make the following changes as well:
65527         Fix copyright notice, as 1999 was missing.
65528         (verify): New macro.
65529         (strtoimax): Check sizes at compile-time, not run-time.
65530         Prefer strtol to strtoll if both work.
65531         (main): Remove; it was not that useful and was a pain to maintain.
65532
65533         * lib/strtoumax.c: Include strtoimax.c, not strtouxmax.c.
65534
65535 2001-08-31  Jim Meyering  <meyering@lucent.com>
65536
65537         * lib/xgetcwd.c (xgetcwd): Reorganize to avoid some duplication.
65538         Use an initial, malloc'd, buffer of length 128 rather than
65539         a statically allocated one of length 1024.
65540
65541 2001-08-30  Paul Eggert  <eggert@twinsun.com>
65542
65543         Simplify code, partly by assuming autoconf 2.52 semantics.
65544
65545         * m4/Makefile.am (EXTRA_DIST): Remove uintmax_t.m4.
65546
65547         * m4/inttypes.m4 (AC_PREREQ): Bump to 2.52.
65548         (jm_AC_HEADER_INTTYPES_H): Remove; now done by autoconf in 2.52.
65549         All uses removed.
65550         (jm_AC_TYPE_INTMAX_T, jm_AC_TYPE_UINTMAX_T):
65551         Move AC_REQUIRE to next-to-top level, to avoid confusion.
65552         Use 2.52's AC_CHECK_TYPE instead of merely looking for the header.
65553         * m4/prereq.m4 (jm_PREREQ_HUMAN): Don't require
65554         jm_AC_HEADER_INTTYPES_H.
65555         * m4/jm-macros.m4 (jm_MACROS): Likewise.
65556
65557         * m4/uintmax_t.m4: Remove, as it duplicates inttypes.m4.
65558
65559         * m4/xstrtoimax.m4 (jm_AC_PREREQ_XSTRTOIMAX):
65560         Quote first arg of AC_DEFUN.
65561         Require jm_AC_TYPE_UINTMAX_T and jm_AC_TYPE_UNSIGNED_LONG_LONG
65562         since they are needed to parse the include file even if we need
65563         only xstrtoimax.  Simplify logic behind the args to AC_REPLACE.
65564         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): Likewise,
65565         but with opposite signedness.
65566
65567 2001-08-30  Paul Eggert  <eggert@twinsun.com>
65568
65569         Merge 'exclude' changes from tar 1.13.22.
65570         This fixes one or two unlikely storage allocation overflow bugs,
65571         but doesn't change user-visible behavior otherwise.
65572
65573 2001-08-30  Paul Eggert  <eggert@twinsun.com>
65574
65575         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_EXCLUDE.
65576         (jm_PREREQ_EXCLUDE): New macro.
65577
65578 2001-08-30  Paul Eggert  <eggert@twinsun.com>
65579
65580         * lib/quotearg.c: BSD/OS 4.1 wchar.h requires FILE and struct
65581         tm to be declared.
65582
65583 2001-08-30  Paul Eggert  <eggert@twinsun.com>
65584
65585         * lib/hash.c: Remove '2001' from copyright notice.
65586
65587 2001-08-30  Paul Eggert  <eggert@twinsun.com>
65588
65589         * lib/full-write.h: New file.
65590         * lib/Makefile.am (libfetish_a_SOURCES): Add full-write.h.
65591         * lib/full-write.c: Correct credits, as cccp.c no longer
65592         exists and anyway it was so heavily changed from the old cccp
65593         code as to be unrecognizable.  Include full-write.h.
65594         (full_write) Return size_t, with short writes meaning failure.
65595         All callers changed.  This fixes a bug with large buffers
65596         on 64-bit hosts.
65597         * lib/utime.c: Include full-write.h.
65598
65599 2001-08-30  Paul Eggert  <eggert@twinsun.com>
65600
65601         * lib/exclude.c (bool): Declare, perhaps by including stdbool.h.
65602         (<sys/types.h>): Include only if HAVE_SYS_TYPES_H.
65603         (<stdlib.h>, <string.h>, <strings.h>, <inttypes.h>, <stdint.h>):
65604         Include if available.
65605         (<xalloc.h>): Include
65606         (SIZE_MAX): Define if <stdint.h> or <inttypes.h> doesn't.
65607         (verify): New macro.  Use it to verify that EXCLUDE macros do not
65608         collide with FNM macros.
65609         (struct patopts): New struct.
65610         (struct exclude): Use it, as exclude patterns now come with options.
65611         (new_exclude): Support above changes.
65612         (new_exclude, add_exclude_file):
65613         Initial size must now be a power of two to simplify overflow checking.
65614         (free_exclude, fnmatch_no_wildcards): New function.
65615         (excluded_filename): No longer requires options arg, as the options
65616         are determined by add_exclude.  Now returns bool, not int.
65617         (excluded_filename, add_exclude):
65618         Add support for the fancy new exclusion options.
65619         (add_exclude, add_exclude_file): Now takes int options arg.
65620         Check for arithmetic overflow when computing sizes.
65621         (add_exclude_file): xrealloc might modify errno, so don't
65622         realloc until after errno might be used.
65623
65624         * lib/exclude.h (EXCLUDE_ANCHORED, EXCLUDE_INCLUDE,EXCLUDE_WILDCARDS):
65625         New macros.
65626         (free_exclude): New decl.
65627         (add_exclude, add_exclude_file): Now takes int options arg.
65628         (excluded_filename): No longer requires options arg, as the options
65629         are determined by add_exclude.  Now returns bool, not int.
65630
65631 2001-08-30  Paul Eggert  <eggert@twinsun.com>
65632
65633         * lib/alloca.c (alloca): Arg is of type size_t, not unsigned.
65634
65635 2001-08-27  Jim Meyering  <meyering@lucent.com>
65636
65637         * lib/Makefile.am (libfetish_a_SOURCES): Add strtoxmax.c
65638
65639         * lib/version-etc.c (N_): Remove definition.
65640         Revert most of last change.
65641         Instead, simply don't mark the `Copyright...' string for translation.
65642         Based on advice from Paul Eggert.
65643
65644         * lib/strtoxmax.c: Tweak comment.
65645
65646 2001-08-26  Jim Meyering  <meyering@lucent.com>
65647
65648         * m4/jm-macros.m4: Require jm_AC_PREREQ_XSTRTOIMAX.
65649
65650         * m4/xstrtoimax.m4: New file.
65651         * m4/xstrtoumax.m4: Add comments explaining why we
65652         AC_REPLACE_FUNCS(strtol).
65653
65654 2001-08-26  Jim Meyering  <meyering@lucent.com>
65655
65656         * lib/version-etc.c (version_etc_copyright_fmt): Replace literal year
65657         of copyright with `%s' so translators don't get an untranslated
65658         message in 2002.
65659         (COPYRIGHT_YEAR): Define.
65660         (version_etc): Use fprintf rather than fputs.
65661         Suggestion from Ulrich Drepper.
65662
65663         * lib/Makefile.am (libfetish_a_SOURCES): Add xstrtoimax.c.
65664
65665         * lib/strtoll.c: New file, from GNU libc.
65666         * lib/xstrtoimax.c: New file.
65667
65668         * lib/xstrtol.h: Add xstrtoimax.
65669         * lib/strtoumax.c: New file.  Simply include "strtoumax.c".
65670         * lib/strtoimax.c: New file.  Likewise, but first define
65671         STRTOUXMAX_SIGNED.
65672
65673         * lib/strtoumax.c: Factor to work both for unsigned and signed types,
65674         ...
65675         * lib/strtoxmax.c: ... then renamed to this.
65676
65677 2001-08-18  Paul Eggert  <eggert@twinsun.com>
65678
65679         * m4/inttypes.m4: Add AC_PREREQ(2.13).
65680         (jm_AC_HEADER_INTTYPES_H): Test for intmax_t, too.
65681         (jm_AC_TYPE_INTMAX_T): New macro.
65682         (jm_AC_TYPE_UINTMAX_T): Moved here from uintmax_t.m4.
65683
65684         * m4/longlong.m4 (jm_AC_TYPE_LONG_LONG): New macro.
65685
65686         * m4/longlong.m4: Renamed from ulonglong.m4.
65687         * m4/inttypes.m4: Renamed from inttypes_h.m4.
65688         * m4/uintmax_t.m4: Removed.
65689
65690 2001-08-13  Paul Eggert  <eggert@twinsun.com>
65691
65692         * lib/Makefile.am (unlocked-io.h): Do not append "_unlocked" twice.
65693         Port to Solaris 8, where 'sed' requires a space after the 'r'
65694         command, and where sh dislikes "$/".  Clean up the spacing a bit.
65695         Redirect output to $tmp just once.
65696
65697 2001-08-12  Paul Eggert  <eggert@sic.twinsun.com>
65698
65699         * lib/addext.c (<errno.h>): Include.
65700         (errno): Declare if not defined.
65701         (addext): Work correctly when pathconf returns -1 and leaves
65702         errno alone because there is no limit.  Also, work even if
65703         pathconf returns a value greater than SIZE_MAX.
65704
65705 2001-08-12  Jim Meyering  <meyering@lucent.com>
65706
65707         * m4/afs.m4, assert.m4, bison.m4, check-decl.m4, chown.m4, d-ino.m4,
65708         d-type.m4, dos.m4, error.m4, fnmatch.m4, fpending.m4, fstypename.m4,
65709         fsusage.m4, ftruncate.m4, getgroups.m4, glibc.m4, gnu-source.m4,
65710         group-member.m4, jm-glibc-io.m4, jm-macros.m4, jm-mktime.m4,
65711         jm-winsz1.m4, jm-winsz2.m4, lchown.m4, lib-check.m4, libintl.m4,
65712         link-follow.m4, ls-mntd-fs.m4, lstat.m4, malloc.m4, mbrtowc.m4,
65713         mbstate_t.m4, mbswidth.m4, memcmp.m4, nanosleep.m4, perl.m4,
65714         prereq.m4, putenv.m4, readdir.m4, realloc.m4, regex.m4, rename.m4,
65715         rmdir-errno.m4, search-libs.m4, st_dm_mode.m4, st_mtim.m4, stat.m4,
65716         strftime.m4, timespec.m4, unlink-busy.m4, uptime.m4, utimbuf.m4,
65717         utime.m4, utimes.m4, xstrtoumax.m4:
65718         Quote the first argument in each use of AC_DEFUN.
65719
65720 2001-08-12  Jim Meyering  <meyering@lucent.com>
65721
65722         * lib/xgetcwd.c (xgetcwd) [defined __GLIBC__ && __GLIBC__ >= 2]:
65723         Simply `return getcwd (NULL, 0);'.
65724         [! (defined __GLIBC__ && __GLIBC__ >= 2)]:
65725         Use 1300 as initial value for length, not PATH_MAX.
65726
65727         * lib/pathmax.h: Clean up cpp syntax.
65728
65729 2001-08-12  Jim Meyering  <meyering@lucent.com>
65730
65731         * lib/gettimeofday.c: New file.
65732         * lib/gtod.h: New file.
65733         * lib/Makefile.am (libfetish_a_SOURCES): Add gtod.h.
65734
65735 2001-08-05  Jim Meyering  <meyering@lucent.com>
65736
65737         * m4/jm-macros.m4: Require autoconf-2.52.
65738
65739 2001-08-04  Jim Meyering  <meyering@lucent.com>
65740
65741         * lib/error.h (__attribute__): Remove `|| __STRICT_ANSI__' from #if
65742         stmt, to get in sync with glibc.
65743
65744 2001-08-03  Paul Eggert  <eggert@twinsun.com>
65745
65746         The following changes are from gettext 0.10.39 as maintained by
65747         Bruno Haible.
65748
65749         * lib/mbswidth.h (MBSW_REJECT_UNPRINTABLE, MBSW_REJECT_INVALID):
65750         Renamed from MBSW_ACCEPT_UNPRINTABLE and MBSW_ACCEPT_INVALID
65751         with inverted sense.  All uses changed.
65752
65753         * lib/mbswidth.c: Don't include <limits.h>.
65754         Include <stdlib.h> and <string.h> unconditionally.
65755         (iswcntrl, mbsinit, ISCNTRL): New macros.
65756         (mbsnwidth): Use K&R style function declarations.
65757         Don't bother checking for MB_LEN_MAX == 1, since the compiler
65758         can optimize it when MB_CUR_MAX == 1.
65759         The width of control characters is zero, not 1.
65760
65761 2001-08-03  Paul Eggert  <eggert@twinsun.com>
65762
65763         The following changes are from gettext 0.10.39 as maintained by
65764         Bruno Haible, except that getline.m4 continues to use AC_LIBOBJ.
65765
65766         * m4/codeset.m4: Upgrade to serial AM1.
65767         (AM_LANGINFO_CODESET): Renamed from jm_LANGINFO_CODESET;
65768         all uses changed.  Quote first arg of AC_DEFUN.
65769         (am_cv_langinfo_codeset): Renamed from jm_cv_langinfo_codeset.
65770
65771         * m4/iconv.m4: Upgrade to serial AM2.
65772         (AM_ICONV): Renamed from jm_ICONV; all uses changed.
65773         Add --with-libconv-prefix.
65774         Quote first arg of AC_DEFUN.  Add description for ICONV_CONST.
65775         (am_cv_func_iconv): Renamed from jm_cv_func_iconv.
65776         (am_cv_lib_iconv): Renamed from jm_cv_lib_iconv.
65777         (am_cv_proto_iconv): Renamed from jm_cv_proto_iconv.
65778         * m4/jm-macros.m4 (jm_MACROS): Reflect s/jm_/AM_/ renamings.
65779
65780         * m4/c-bs-a.m4 (AC_C_BACKSLASH_A): Quote first arg of AC_DEFUN.
65781         * m4/getline.m4 (AM_FUNC_GETLINE): Likewise.
65782         * m4/glibc21.m4 (jm_GLIBC21): Likewise.
65783         * m4/inttypes_h.m4 (jm_AC_HEADER_INTTYPES_H): Likewise.
65784         * m4/isc-posix.m4 (AC_ISC_POSIX): Likewise.
65785         * m4/lcmessage.m4 (AM_LC_MESSAGES): Likewise.
65786         * m4/progtest.m4 (AM_PATH_PROG_WITH_TEST): Likewise.
65787         * m4/uintmax_t.m4 (jm_AC_TYPE_UINTMAX_T): Likewise.
65788         * m4/ulonglong.m4 (jm_AC_TYPE_UNSIGNED_LONG_LONG): Likewise.
65789
65790         * m4/getline.m4 (AM_FUNC_GETLINE): Don't bother checking for
65791         string.h any more.
65792
65793         * m4/progtest.m4 (AM_PATH_PROG_WITH_TEST): If not found, print "no",
65794         not the default value.
65795
65796         2001-06-25  Bruno Haible  <haible@clisp.cons.org>
65797         * m4/mbswidth.m4 (jm_PREREQ_MBSWIDTH): Don't require AM_C_PROTOTYPES.
65798         Also check for mbsinit.  Needed for SCO 3.2v5.0.2.
65799         Also include <string.h>; this is where AIX 3.2.5 declares wcwidth.
65800         Also check for iswcntrl, used for wcwidth fallback.
65801         Use AC_TRY_COMPILE to emulate AC_CHECK_DECLS, for portability
65802         to Autoconf 2.13.
65803
65804 2001-08-03  Jim Meyering  <meyering@lucent.com>
65805
65806         * m4/mbrtowc.m4 (jm_FUNC_MBRTOWC): Use `#include', not `@%:@include',
65807         as it was in the original.  Reported by Paul Eggert.
65808
65809 2001-07-16  Jim Meyering  <meyering@lucent.com>
65810
65811         * m4/gettimeofday.m4: New file.
65812         Prompted by a report from Bernhard Baehr.
65813
65814 2001-07-15  Jim Meyering  <meyering@lucent.com>
65815
65816         * m4/Makefile.am.in (Makefile.am): Remove most of the unlocked-io.h
65817         stuff. Now it's in ../Makefile.cfg.
65818
65819 2001-07-15  Jim Meyering  <meyering@lucent.com>
65820
65821         * lib/Makefile.am (EXTRA_DIST): Add unlocked-io.hin.
65822         (BUILT_SOURCES): Add unlocked-io.h.
65823         (io_functions): Define.
65824         (unlocked-io.h): New rule.
65825         (DISTCLEANFILES): Add unlocked-io.h.
65826         (all-local): Depend on unlocked-io.h, to ensure it is created.
65827
65828         * lib/unlocked-io.hin: New file
65829
65830         * lib/regex.c: Update from glibc.
65831
65832 2001-07-05  Jim Meyering  <meyering@lucent.com>
65833
65834         * lib/Makefile.am (noinst_HEADERS): Remove definition, per new automake
65835         recommendation.
65836         (libfetish_a_SOURCES): Put all .h files here instead.
65837         Remove a thus-exposed (better checks in automake) duplicate and
65838         two unnecessary .h files.
65839
65840 2001-07-04  Jim Meyering  <meyering@lucent.com>
65841
65842         * m4/Makefile.am.in (glibc-io.struct): New target.  Rework the code
65843         that generates jm-glibc-io.m4 so that it doesn't trigger any make
65844         distcheck failure.
65845
65846 2001-07-02  Jim Meyering  <meyering@lucent.com>
65847
65848         The following changes were prompted by suggestions from Bruno Haible.
65849
65850         * m4/jm-glibc-io.m4n: New file, the template from which jm-glibc-io.m4
65851         is now generated.
65852         * m4/Makefile.am.in (Makefile.am): Include jm-glibc-io.m4n in emitted
65853         definition of EXTRA_DIST.
65854         (Makefile.am): Emit the dependency, `all-local: jm-glibc-io.m4' to
65855         ensure that the generated file is created/updated whenever the list
65856         of $(unlocked_functions) is changed.
65857         (jm-glibc-io.m4): New rule.
65858         (unlocked-io.h): New rule -- currently unused.
65859
65860 2001-06-24  Jim Meyering  <meyering@lucent.com>
65861
65862         * m4/regex.m4 (jm_INCLUDED_REGEX): Use a quadrigraph to represent an
65863         unmatched right bracket, rather than kludging it with an extra,
65864         falsely-matching quote in a comment.  Patch by Akim Demaille.
65865
65866 2001-06-11  Jim Meyering  <meyering@lucent.com>
65867
65868         * lib/regex.c: Update from GNU libc.
65869
65870 2001-05-27  Jim Meyering  <meyering@lucent.com>
65871
65872         * m4/prereq.m4 (jm_PREREQ_READUTMP): Check for ut_type in struct utmpx.
65873         Check for ut_type in struct utmp.
65874
65875 2001-05-27  Jim Meyering  <meyering@lucent.com>
65876
65877         * lib/readutmp.h (UT_TYPE): Define.
65878
65879 2001-05-24  Jim Meyering  <meyering@lucent.com>
65880
65881         * lib/argmatch.c: Include "quote.h".
65882         (argmatch_invalid): Remove explicit `' quotes.  Instead, use the
65883         quote function.  Reported by Göran Uddeborg.
65884
65885 2001-05-22  Jim Meyering  <meyering@lucent.com>
65886
65887         * m4/strftime.m4 (_jm_STRFTIME_PREREQS): Don't use AC_LIBOBJ(strftime),
65888         now that we use the package-supplied version unconditionally.
65889         (jm_FUNC_STRFTIME): Don't replace strftime, for the same reason.
65890
65891 2001-05-21  Jim Meyering  <meyering@lucent.com>
65892
65893         * m4/regex.m4: Change a couple backticks to single quotes to avoid
65894         shell syntax errors.
65895
65896 2001-05-21  Alexandre Duret-Lutz  <duret_g@epita.fr>
65897
65898         * m4/dos.m4 (jm_AC_DOS): Check for _WIN32, __WIN32__, and __MSDOS__.
65899
65900 2001-05-20  Paul Eggert  <eggert@twinsun.com>
65901
65902         * m4/strftime.m4 (jm_FUNC_GNU_STRFTIME):
65903         Don't bother to check library strftime, since
65904         we'll be using our own my_strftime function anyway.
65905         Define my_strftime instead of strftime.
65906
65907 2001-05-20  Alexandre Duret-Lutz  <duret_g@epita.fr>
65908
65909         * lib/dirname.c (dir_name): Compute append_dot using path, not newpath
65910         which is not yet declared.
65911
65912 2001-05-15  Jim Meyering  <meyering@lucent.com>
65913
65914         * m4/regex.m4: Use proper quoting so brackets appear in the test
65915         program.
65916         Reported by, and with help from, Bruno Haible.
65917
65918 2001-05-13  Jim Meyering  <meyering@lucent.com>
65919
65920         * m4/jm-macros.m4 (major_t, minor_t): Define to unsigned int if
65921         undefined.
65922
65923 2001-05-11  Paul Eggert  <eggert@twinsun.com>
65924
65925         dirname code cleanup.  base_name now behaves more compatibly
65926         with POSIX basename when given file names that have trailing
65927         slashes, and similarly for dir_name.  Add new primitives
65928         base_len and dir_len.  Put the directory-name-related decls
65929         into dirname.h.
65930
65931         * lib/addext.c (ISSLASH, base_name): Remove; now in dirname.h.
65932         * lib/backupfile.c (base_name): Likewise.
65933         * lib/basename.c (FILESYSTEM_PREFIX_LEN, PARAMS, ISSLASH): Likewise.
65934         * lib/dirname.c (FILESYSTEM_PREFIX_LEN, ISSLASH): Likewise.
65935         * lib/makepath.c (strip_trailing_slashes): Likewise.
65936         * lib/path-concat.c (DIRECTORY_SEPARATOR, FILESYSTEM_PREFIX_LEN,
65937         ISSLASH): Likewise.
65938         * lib/rename.c (strip_trailing_slashes): Likewise.
65939         * lib/same.c (base_name): Likewise.
65940         * lib/stripslash.c (ISSLASH): Likewise.
65941
65942         * lib/addext.c: Include <dirname.h> after size_t is defined.
65943         * lib/backupfile.c: Likewise.
65944
65945         * lib/addext.c (addext): Use base_len to trim redundant
65946         trailing slashes instead of doing it ourselves.
65947         But do not trim the last slash if it is not redundant.
65948
65949         * lib/backupfile.c (find_backup_file_name,
65950         max_backup_version): Use base_len instead of rolling it ourselves.
65951         Handle the case of "" and (on DOS) "C:" correctly.
65952
65953         * lib/basename.c: Do not include <stdio.h>, <assert.h>; no longer
65954         needed. Include <string.h>, <dirname.h>.
65955         (base_name): Allow file names ending in slashes, other than names
65956         that are all slashes.  In this case, return the basename followed
65957         by the slashes.  This is more general, and can be used in places
65958         where the original base_name purposely had an assertion failure.
65959         (base_len): New function.
65960
65961         * lib/dirname.c: Include <string.h> instead of <stdlib.h>.
65962         Do not include <assert.h>; no longer needed.
65963         Include xalloc.h.
65964         (memrchr): Remove decl.
65965         (dir_name_r): Remove.
65966         (dir_len): Renamed from dirlen.  All callers changed.
65967         Rewrite in terms of base_name, for simplicity and consistency.
65968         (dir_name): Never return NULL.  All callers changed.
65969         Do not include <stdlib.h> in test program; no longer needed.
65970         return 0; is fine for test program.
65971
65972         * lib/dirname.h (DIRECTORY_SEPARATOR, ISSLASH, FILESYSTEM_PREFIX_LEN):
65973         New macros.
65974         (base_name, base_len, dir_len, strip_trailing_slashes): New decls.
65975
65976         * lib/path-concat.c (path_concat): Use base_len to compute
65977         base length, not strlen; this means we cannot rely on memcpy
65978         to null-terminate.
65979
65980         * lib/same.c (STREQ): Remove.
65981         (same_name): Handle the case where the basename ends in trailing '/'.
65982
65983         * lib/stripslash.c (strip_trailing_slashes): Return nonzero if
65984         a slash was stripped.  Do not strip the last slash after a
65985         file system prefix.
65986
65987 2001-05-11  Paul Eggert  <eggert@twinsun.com>
65988
65989         * lib/Makefile.am (libfetish_a_SOURCES):
65990         Add strftime.c, since we now compile it on all hosts.
65991
65992         * lib/strftime.c (my_strftime):
65993         Define to nstrftime if emacs, but only if my_strftime is not defined.
65994         (extra_args, extra_args_spec, extra_args_spec_iso): Rename from
65995         ut_argument, ut_argument_spec, ut_argument_spec_iso, respectively.
65996         Add one more extra argument: a nanoseconds value.
65997         All uses changed.
65998         (ns): New macro.
65999         (my_strftime function): Add %N format.
66000         (emacs_strftimeu): Renamed from emacs_strftime,
66001         with extra ut argument.
66002
66003 2001-05-09  Paul Eggert  <eggert@twinsun.com>
66004
66005         * m4/jm-macros.m4 (jm_MACROS): Do not check for fseeko; no longer used.
66006
66007 2001-04-21  Jim Meyering  <meyering@lucent.com>
66008
66009         * m4/rmdir-errno.m4: Write to a new file, so that a restrictive umask
66010         doesn't interfere.
66011
66012 2001-04-21  Alexandre Duret-Lutz  <duret_g@epita.fr>
66013
66014         * m4/ftruncate.m4: Check for chsize.
66015         Link with ftruncate.o unconditionally if ftruncate is missing.
66016         This was required when cross-compiling to i586-mingw32msvc.
66017
66018 2001-04-08  Jim Meyering  <meyering@lucent.com>
66019
66020         * lib/getdate.y (get_date): Set tm_isdst to -1 to ensure that it is
66021         recomputed; that's necessary when the offset spans a DST transition.
66022         Patch by David J. MacKenzie.  Reported by Hon-Yin Kok.
66023
66024 2001-04-02  Jim Meyering  <meyering@lucent.com>
66025
66026         * lib/regex.h, regex.c: Update from GNU libc.
66027
66028 2001-03-24  Jim Meyering  <meyering@lucent.com>
66029
66030         * m4/jm-macros.m4: Require autoconf-2.49d.
66031
66032 2001-03-20  Bruno Haible  <haible@clisp.cons.org>
66033
66034         * m4/iconv.m4 (jm_ICONV): Recommend GNU libiconv.
66035
66036 2001-03-19  Paul Eggert  <eggert@twinsun.com>
66037
66038         * lib/version-etc.c (version_etc_copyright): Update to 2001.
66039
66040 2001-03-17  Jim Meyering  <meyering@lucent.com>
66041
66042         * m4/memcmp.m4 (jm_AC_FUNC_MEMCMP): Remove my copy of AC_FUNC_MEMCMP,
66043         now that the version in autoconf is equivalent.
66044         (jm_FUNC_MEMCMP): Adjust to use AC_FUNC_MEMCMP.
66045
66046         * m4/error.m4 (jm_PREREQ_ERROR): Invoke AC_FUNC_STRERROR_R.
66047         Suggestion from Akim Demaille.
66048
66049         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_TEMPNAME.
66050         (jm_PREREQ_TEMPNAME): New function.
66051
66052 2001-03-16  Paul Eggert  <eggert@twinsun.com>
66053
66054         * lib/tempname.c (uint64_t): Define to uintmax_t if
66055         not defined, and if UINT64_MAX is not defined.
66056         Required at least for Vax Ultrix4.3, which doesn't define uint64_t.
66057         Reported by John David Anglin.
66058
66059 2001-03-15  Bruno Haible  <haible@clisp.cons.org>
66060
66061         * lib/localcharset.c (locale_charset): Allow wildcard syntax. Also
66062         resolve alias if codeset is empty.
66063         * lib/config.charset (BeOS): Use wildcard syntax.
66064
66065 2001-03-13  Jim Meyering  <meyering@lucent.com>
66066
66067         * lib/path-concat.c (path_concat)
66068         [FILESYSTEM_ACCEPTS_DRIVE_LETTER_PREFIX]: Don't insert a backslash when
66069         concatenating e.g., `C:' and `foo'.
66070         From Bruno Haible.
66071
66072 2001-03-06  Bruno Haible  <haible@clisp.cons.org>
66073
66074         * lib/localcharset.c (locale_charset): Don't use
66075         setlocale(LC_CTYPE,NULL). Don't return NULL.
66076         * lib/unicodeio.c (print_unicode_char): Simplify accordingly.
66077
66078 2001-03-06  Bruno Haible  <haible@clisp.cons.org>
66079
66080         * lib/config.charset: Update for FreeBSD 4.2 and OSF/1 5.1. Add
66081         support for DOS/DJGPP.
66082
66083 2001-03-01  Paul Eggert  <eggert@twinsun.com>
66084
66085         * m4/jm-macros.m4 (jm_MACROS): Use mkstemp replacement if the system
66086         lacks mkstemp.  Compile our own tempname.c if we compile our own
66087         mkstemp.c, as mkstemp relies on tempname.
66088
66089 2001-03-01  Jim Meyering  <meyering@lucent.com>
66090
66091         * m4/dos.m4 (jm_AC_DOS): Remove extra backslashes, now that
66092         AH_VERBATIM really does output its argument verbatim.
66093
66094 2001-02-28  Paul Eggert  <eggert@twinsun.com>
66095
66096         * lib/Makefile.am (libfetish_a_SOURCES):
66097         Add dup-safer.c, fopen-safer.c.
66098         (noinst_HEADERS): Add stdio-safer.h, unistd-safer.h.
66099
66100         * lib/dup-safer.c, lib/fopen-safer.c, lib/stdio-safer.h:
66101         * lib/unistd-safer.h: New files.
66102
66103 2001-02-25  Paul Eggert  <eggert@twinsun.com>
66104
66105         The mkstemp replacement is taken from glibc 2.2.2, with some
66106         portability fixes for use outside glibc, as follows:
66107
66108         * lib/tempname.c (struct_stat64): New macro.
66109         (direxists, __gen_tempname): Use it.
66110         This avoids a portability problem with Solaris 8.
66111
66112         * lib/tempname.c (<config.h>): Include if HAVE_CONFIG_H.
66113         (<stddef.h>, <stdint.h>, <string.h>):
66114         Include only if STDC_HEADERS || _LIBC.
66115         (<fcntl.h>): Include only if HAVE_FCNTL_H || _LIBC.
66116         (<unistd.h>): Include only if HAVE_UNISTD_H || _LIBC.
66117         (<sys/time.h>): Include only if HAVE_SYS_TIME_H || _LIBC.
66118         (__set_errno): Define this macro if <errno.h> doesn't.
66119         (P_tmpdir, TMP_MAX, __GT_FILE, __GT_BIGFILE, __GT_DIR, __GT_NOCREATE):
66120         Define these macros if <stdio.h> doesn't.
66121         (S_ISDIR, S_IRUSR, S_IWUSR, S_IXUSR):
66122         Define these macros if <sys/stat.h>
66123         doesn't.  Ignore <sys/stat.h> S_ISDIR if STAT_MACROS_BROKEN.
66124         (stat64, __getpid, __gettimeofday, __mkdir, __open, __open64, lxstat64,
66125         __xstat64): Define if not _LIBC.
66126         (__secure_getenv): Define if ! (HAVE___SECURE_GETENV || _LIBC).
66127         (__gen_tempname): Invoke gettimeofday only if
66128         HAVE_GETTIMEOFDAY || _LIBC;
66129         otherwise, fall back on plain "time".
66130         Use macros like S_IRUSR | S_IWUSR rather than octal values like 0600.
66131
66132         * lib/mkstemp.c (__GT_FILE): Define to zero if not defined.
66133
66134         * lib/mkstemp.c, lib/tempname.c: New files, taken from glibc 2.2.2.
66135
66136 2001-02-18  Paul Eggert  <eggert@twinsun.com>
66137
66138         * m4/jm-macros.m4 (jm_CHECK_ALL_HEADERS): Check for sys/resource.h.
66139
66140 2001-02-17  Paul Eggert  <eggert@twinsun.com>
66141
66142         * m4/mbrtowc.m4: New file, defining jm_FUNC_MBRTOWC.
66143         * m4/mbswidth.m4 (jm_PREREQ_MBSWIDTH):
66144         Use jm_FUNC_MBRTOWC, not AC_CHECK_FUNCS(mbrtowc).
66145         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): Likewise.
66146
66147 2001-02-17  Paul Eggert  <eggert@twinsun.com>
66148
66149         * lib/mbswidth.c, quotearg.c (mbrtowc, mbsinit):
66150         Remove workaround macros for hosts that have mbrtowc but not
66151         mbstate_t, as we now insist on proper declarations for both
66152         before using mbrtowc.
66153
66154 2001-02-17  Jim Meyering  <meyering@lucent.com>
66155
66156         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Don't check for
66157         getmntent via AC_CHECK_FUNCS, since that would get a `no' and disrupt
66158         further attempts by AC_FUNC_GETMNTENT to check with e.g., -lgen on
66159         UnixWare 7.1.1.
66160
66161         * m4/mbrtowc.m4 (jm_FUNC_MBRTOWC): Adapt to use AC_CACHE_CHECK etc.,
66162         rather than AC_CACHE_VAL.
66163
66164 2001-02-17  Jim Meyering  <meyering@lucent.com>
66165
66166         * lib/strtoul.c: Sync from GNU libc.  Use double quotes, not <...>
66167         around included file name.
66168
66169         * lib/strnlen.c (__strnlen): Merge in a change from GNU libc.
66170
66171         * lib/strftime.c: Update from GNU libc (the only changes were to
66172         comments).
66173
66174 2001-02-17  Jim Meyering  <meyering@lucent.com>
66175
66176         * lib/regex.c: Update from libc.
66177
66178 2001-02-17  Bruno Haible  <haible@clisp.cons.org>
66179
66180         * lib/mbswidth.h (mbswidth): Also define as macro, to avoid prototype
66181         clash.
66182
66183 2001-02-16  Paul Eggert  <eggert@twinsun.com>
66184
66185         * lib/alloca.c (malloc): Undef before defining, since stdlib.h
66186         may have defined it.  Needed for Encore Umax-3.0.9.16b systems.
66187         Reported by Mark Hounschell via Paul Eggert.
66188
66189 2001-02-07  Jim Meyering  <meyering@lucent.com>
66190
66191         * m4/regex.m4 (jm_INCLUDED_REGEX): Add a test for the latest bug.
66192
66193 2001-02-05  Jim Meyering  <meyering@lucent.com>
66194
66195         * m4/jm-macros.m4: Require autoconf-2.14d (not yet released), because
66196         it includes the patch required for `large file' support with at least
66197         HP-UX's 10.20 /bin/cc.
66198
66199 2001-02-03  Jim Meyering  <meyering@lucent.com>
66200
66201         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Restore prior use of
66202         AS_IF, now that it works once again (mysteriously).
66203         * m4/fsusage.m4 (jm_FILE_SYSTEM_USAGE): Likewise.
66204
66205 2001-01-30  Jim Meyering  <meyering@lucent.com>
66206
66207         Don't use filenames that are 8.3-equivalent to "conftest" on DOS.
66208         * m4/chown.m4: Rename conftestchown to conftest.chown.
66209         * m4/rename.m4: s/conftestdir/conftest.d1/ and
66210         s/conftestdir2/conftest.d2/.
66211         * m4/utimes.m4: s/conftestdata/conftest.data/
66212         Inspired by Pavel Roskin's change in autoconf.
66213
66214 2001-01-30  Bruno Haible  <haible@clisp.cons.org>
66215
66216         * lib/config.charset: Update for FreeBSD 4.2.
66217
66218 2001-01-27  Jim Meyering  <meyering@lucent.com>
66219
66220         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Open-code what was
66221         a use of AS_IF.
66222         * m4/fsusage.m4 (jm_FILE_SYSTEM_USAGE): Likewise.
66223
66224 2001-01-26  Jim Meyering  <meyering@lucent.com>
66225
66226         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): Check for stddef.h, now that
66227         quotearg.c includes it.
66228
66229 2001-01-26  Jim Meyering  <meyering@lucent.com>
66230
66231         * lib/quotearg.c: Include stddef.h.
66232         * lib/quote.c: Include stddef.h.
66233         Reported by Axel Kittenberger.
66234
66235         * lib/xmalloc.c [HAVE_DONE_WORKING_MALLOC_CHECK]: Enclose error-evoking
66236         line in double quotes so that it evokes a better diagnostic.
66237         [HAVE_DONE_WORKING_REALLOC_CHECK]: Likewise.
66238         Reported by Axel Kittenberger.
66239
66240 2001-01-24  Stefan Monnier  <monnier@cs.yale.edu>
66241
66242         * regex.c (mutually_exclusive_p): Don't blindly handle `charset_not'
66243         as if it was a `charset'.
66244
66245 2001-01-21  Bruno Haible  <haible@clisp.cons.org>
66246
66247         * m4/iconv.m4 (jm_ICONV): Also check whether the iconv declaration
66248         has const.
66249
66250 2001-01-21  Bruno Haible  <haible@clisp.cons.org>
66251
66252         * lib/unicodeio.c (print_unicode_char): Cast the second iconv() arg,
66253         to avoid a warning.  Add back 'const' to inptr.
66254
66255 2001-01-20  Jim Meyering  <meyering@lucent.com>
66256
66257         Be sure that headers are checked before used in code compiled
66258         for the type checks.
66259         * m4/jm-macros.m4 (jm_MACROS): Remove all header checks.
66260         In place of that, invoke jm_CHECK_ALL_TYPES.
66261         (jm_CHECK_ALL_HEADERS): New functions with the above checks.
66262         (jm_CHECK_ALL_TYPES): Require jm_CHECK_ALL_HEADERS.
66263         Alan Iwi reported a build failure on an f300-fujitsu-uxpv4.1_ES;
66264         The check for ssize_t was mistakenly run before the test for unistd.h.
66265
66266         The configure-time check for stdbool.h was missing.
66267         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_HASH.
66268         (jm_PREREQ_HASH): New function.
66269
66270 2001-01-17  Jim Meyering  <meyering@lucent.com>
66271
66272         * m4/fsusage.m4 (jm_FILE_SYSTEM_USAGE): Use AS_IF, not AS_IFELSE,
66273         for autoconf-2.49c.
66274         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Likewise.
66275
66276 2001-01-16  Jim Meyering  <meyering@lucent.com>
66277
66278         * lib/basename.c: Include <stdio.h>, needed by assert on SunOS 4.
66279         From Bruno Haible.
66280
66281 2001-01-14  Jim Meyering  <meyering@lucent.com>
66282
66283         * m4/rename.m4: Use temporary directories named conftestdir{,2}, not
66284         foo and bar.  Create conftestdir/ in the script, not in the C code.
66285         Remove directories in the script, not in the C code.
66286         Remove conftestdir{,2} before trying to create the directory.
66287         Make the entire configure script fail if the mkdir fails.
66288
66289 2001-01-14  Jim Meyering  <meyering@lucent.com>
66290
66291         * lib/rename.c: New file.  From Volker Borchert.
66292         Include stdlib.h, string.h or strings.h, and xalloc.h.
66293         Use strip_trailing_slashes rather than open-coding it.
66294
66295 2001-01-03  Paul Eggert  <eggert@twinsun.com>
66296
66297         * lib/strftime.c: Sync with glibc time/strftime.c 1.81.
66298
66299 2001-01-03  Jim Meyering  <meyering@lucent.com>
66300
66301         * lib/unicodeio.c (print_unicode_char): Remove `const' from declaration
66302         of local `inptr' to avoid warning with some system declarations of
66303         iconv.
66304
66305 2001-01-02  Volker Borchert  <bt@teknon.de>
66306
66307         * m4/rename.m4: New file.
66308         * m4/jm-macros.m4 (jm_MACROS): Require vb_FUNC_RENAME.
66309
66310 2001-01-01  Jim Meyering  <meyering@lucent.com>
66311
66312         * m4/prereq.m4 (jm_PREREQ_READUTMP): Include utmp.h (if available),
66313         even on systems with utmpx.h.  It's necessary for the declaration of
66314         utmp's ut_user member.  Reported by Andreas Jaeger.
66315
66316         * m4/check-decl.m4 (jm_CHECK_DECLS): Include grp.h and pwd.h if
66317         available. They are required for the declarations of getgrgid and
66318         getpwuid resp.
66319         (_jm_DECL_HEADERS): Check for grp.h and pwd.h.
66320         Reported by Andreas Jaeger.
66321
66322 2001-01-01  Alexandre Duret-Lutz  <duret_g@epita.fr>
66323
66324         * m4/libintl.m4 (AM_GNU_GETTEXT): Define MKINSTALLDIRS by
66325         expanding the value of $ac_aux_dir, as in AM_MISSING_HAS_RUN,
66326         so `make install' also works in VPATH builds.
66327
66328 2000-12-31  Alexandre Duret-Lutz  <duret_g@epita.fr>
66329
66330         * m4/libintl.m4 (AM_WITH_NLS): When using AC_CONFIG_AUX_DIR,
66331         prepend $(top_srcdir) to the value of MKINSTALLDIRS so that it
66332         can be used in subdirectories.
66333
66334 2000-12-29  Paul Eggert  <eggert@twinsun.com>
66335
66336         * lib/modechange.c: Do not assume that mode_t uses the
66337         traditional octal encoding.  E.g. "chmod 1 FOO" should set
66338         the other-execute bit of FOO even if S_IXOTH != 1.
66339
66340         (SUID, SGID, SVTX, RUSR, WUSR, XUSR, RGRP, WGRP, XGRP, ROTH,
66341         WOTH, XOTH, ALLM): New macros.
66342         (S_ISUID, S_ISGID, S_ISVTX, S_IRUSR, S_IWUSR, S_IXUSR,
66343          S_IRGRP, S_IWGRP, S_IXGRP, S_IROTH, S_IWOTH, S_IXOTH):
66344         Use them.
66345         (S_ISGID): Fix typo; it was defaulting to the same value as S_ISUID.
66346         (S_IRWXU, S_IRWXG, S_IRWXO): Specify defaults in terms of the above.
66347         (mode_compile):
66348         No need to use uintmax_t; unsigned long is long enough.
66349         Don't bother to get suffix since we don't use it.
66350
66351 2000-12-26  Jim Meyering  <meyering@lucent.com>
66352
66353         * m4/dos.m4 (jm_AC_DOS): Rewrite (though it's still a stub) to work
66354         better with autoheader.
66355
66356 2000-12-24  Jim Meyering  <meyering@lucent.com>
66357
66358         * lib/hash.c (is_prime): Return explicit boolean values.
66359         (hash_get_first): Return NULL to appease Irix5.6's 89.
66360         Reported by Nelson Beebe.
66361
66362 2000-12-19  Bruno Haible  <haible@clisp.cons.org>
66363
66364         * lib/localcharset.c (locale_charset): Add support for Win32.
66365
66366 2000-12-18  Paul Eggert  <eggert@twinsun.com>
66367
66368         * lib/physmem.h, lib/physmem.c: New files.
66369
66370         * lib/Makefile.am (libfetish_a_SOURCES): Add physmem.c.
66371         (noinst_HEADERS): Add physmem.h.
66372
66373         * lib/xstrtol.c (__xstrtol): Add undocumented suffixes 'g' and
66374         't' for compatibility with Solaris 8 sort.
66375
66376 2000-12-18  Bruno Haible  <haible@clisp.cons.org>
66377
66378         * lib/config.charset: Add support for BeOS.
66379
66380 2000-12-17  Jim Meyering  <meyering@lucent.com>
66381
66382         * m4/dos.m4 (jm_AC_DOS): New file and macro.
66383         * m4/jm-macros.m4 (jm_MACROS): Require jm_AC_DOS.
66384
66385 2000-12-16  Jim Meyering  <meyering@lucent.com>
66386
66387         This bug had a serious impact on chown: `chown N:M FILE' (for integer
66388         N and M) would have treated it like `chown N:N FILE'.
66389
66390         * lib/userspec.c (parse_user_spec): Fix typo: s/u/g/.
66391
66392 2000-12-16  Jim Meyering  <meyering@lucent.com>
66393
66394         * lib/getusershell.c [!SHELLS_FILE && __DJGPP__]: Define
66395         SHELLS_FILE to a file name that's useful on djgpp systems.
66396         Include stdlib.h.
66397         (ADDITIONAL_DEFAULT_SHELLS): Define.
66398         (default_shells): Prepend ADDITIONAL_DEFAULT_SHELLS.
66399         Based mostly on a patch from Prashant TR.
66400
66401 2000-12-16  Bruno Haible  <haible@clisp.cons.org>
66402
66403         * lib/config.charset: Add ISO-8859-3, BIG5HKSCS, GB18030, JOHAB,
66404         VISCII, CP874, CP949, CP950, CP1250, CP1253, CP1254, CP1255, CP1256,
66405         CP1257 to the list of canonical encodings. Rename EUC-CN to GB2312.
66406
66407 2000-12-08  Andreas Schwab  <schwab@suse.de>
66408
66409         * lib/mbswidth.c (mbsnwidth): Don't loop endlessly when called with an
66410         invalid mulitbyte sequence and with the MBSW_ACCEPT_INVALID flag set.
66411
66412 2000-12-07  Jim Meyering  <meyering@lucent.com>
66413
66414         * lib/stripslash.c (ISSLASH): Define.
66415         (strip_trailing_slashes): Use ISSLASH rather than comparing against
66416         `/'.
66417         From Prashant TR.
66418
66419         * lib/dirname.c (FILESYSTEM_PREFIX_LEN): Define.
66420         (dir_name_r): Declare this function as static.
66421         [BACKSLASH_IS_PATH_SEPARATOR]: Fix a bug that'd
66422         manifest itself on a name containing a mix of slashes and
66423         backslashes.
66424         Make this function work with names starting with a DOS-style
66425         drive letter and colon prefix.
66426         (dir_name): Append `.' if necessary.
66427         Based mostly on patches from Prashant TR and Eli Zaretskii.
66428
66429         * lib/dirname.h (dir_name_r): Remove prototype.
66430
66431 2000-12-06  Paul Eggert  <eggert@twinsun.com>
66432
66433         * m4/off_t-format.m4: Remove this file.
66434         * m4/jm-macros.m4 (jm_MACROS): Remove jm_SYS_OFF_T_PRINTF_FORMAT.
66435
66436 2000-12-06  Jim Meyering  <meyering@lucent.com>
66437
66438         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): If we need the
66439         replacement strtoull, we may well need the replacement strtoul, too.
66440         Check for declarations of strtoul and strtoull.
66441         Check for strtol.  Mainly as a cue to cause automake to include
66442         strtol.c -- that file is included by each of strtoul.c and strtoull.c.
66443         Check for limits.h -- strtol.c needs it.
66444
66445 2000-12-05  Jim Meyering  <meyering@lucent.com>
66446
66447         * lib/dirname.c (dir_name_r): Add `const' in a few local declarations.
66448
66449 2000-12-04  Jim Meyering  <meyering@lucent.com>
66450
66451         * lib/path-concat.c: [!HAVE_DECL_MALLOC]: Declare malloc.
66452         Also include memory.h, stdlib.h, unistd.h if appropriate.
66453         Reported by Andreas Jaeger (conflicting declaration of malloc).
66454
66455 2000-12-02  Jim Meyering  <meyering@lucent.com>
66456
66457         * m4/off_t-format.m4 (OFF_T_PRINTF_FORMAT_STRING): New file/macro.
66458         * m4/jm-macros.m4 (jm_MACROS): require it.
66459
66460 2000-12-02  Jim Meyering  <meyering@lucent.com>
66461
66462         * lib/closeout.h: Make idempotent, to avoid some obscure warnings.
66463
66464 2000-12-01  Paul Eggert  <eggert@twinsun.com>
66465
66466         * lib/memrchr.c: Include <config.h> before any system include file.
66467
66468 2000-11-30  Jim Meyering  <meyering@lucent.com>
66469
66470         * m4/jm-macros.m4 (jm_MACROS): Check for stdint.h.
66471
66472 2000-11-30  Jim Meyering  <meyering@lucent.com>
66473
66474         * m4/getloadavg.m4: s/ifval/m4_ifval/ to accommodate new autoconf.
66475
66476 2000-11-29  Paul Eggert  <eggert@twinsun.com>
66477
66478         * lib/dirname.c (dir_name_r): Fix typo: int -> size_t.
66479
66480 2000-11-26  Jim Meyering  <meyering@lucent.com>
66481
66482         * lib/memcoll.c: Include sys/types.h.  From Werner Almesberger.
66483
66484 2000-11-22  Paul Eggert  <eggert@twinsun.com>
66485
66486         * lib/strftime.c (my_strftime): Do not invoke mbrlen with a
66487         size of (size_t) -1; it's not portable.
66488
66489 2000-11-17  Jim Meyering  <meyering@lucent.com>
66490
66491         * lib/strstr.c: Update from GNU libc.
66492
66493 2000-11-17  Akim Demaille  <akim@epita.fr>
66494
66495         * lib/obstack.h: Formatting changes.
66496         (obstack_grow, obstack_grow0): Don't cast WHERE at all: that would
66497         prevent type checking.
66498         (obstack_ptr_grow, obstack_ptr_grow_fast): When assigning, don't
66499         cast the value to (void *): assigning a `foo *' to a `void *'
66500         variable is valid.
66501         (obstack_int_grow, obstack_int_grow_fast): Don't cast AINT to int.
66502
66503 2000-11-16  Jim Meyering  <meyering@lucent.com>
66504
66505         * lib/strverscmp.c: Incorporate weak-alias-related changes from glibc.
66506
66507 2000-11-11  Jim Meyering  <meyering@lucent.com>
66508
66509         * lib/error.c: Add a couple #includes, merging from GNU libc version.
66510
66511 2000-11-10  Jim Meyering  <meyering@lucent.com>
66512
66513         * lib/obstack.h: Update from GNU libc.
66514         * lib/obstack.c: Likewise.
66515
66516 2000-11-08  Bruno Haible  <haible@clisp.cons.org>
66517
66518         * m4/jm-macros.m4 (jm_MACROS): Add test for wcrtomb.
66519
66520 2000-11-06  Paul Eggert  <eggert@twinsun.com>
66521
66522         * lib/getusershell.c (setusershell): Use rewind rather than
66523         fseek/fseeko, to avoid configuration hassles with fseeko.
66524         Don't bother opening SHELLS_FILE if shellstream is NULL;
66525         it's not necessary.
66526
66527 2000-11-05  Jim Meyering  <meyering@lucent.com>
66528
66529         * lib/makepath.h (make_dir): Declare.
66530         * lib/makepath.c (make_dir): Remove `static' attribute.
66531         Tweak a comment.
66532
66533 2000-11-04  Jim Meyering  <meyering@lucent.com>
66534
66535         * m4/regex.m4: Use the `m4_' prefix on `syscmd' and `m4_sysval'.
66536
66537 2000-11-04  Alexandre Duret-Lutz  <duret_g@epita.fr>
66538
66539         * lib/hash.c (hash_get_next): Fix a thinko:  when ENTRY is the
66540         last one in a bucket, advance to the next bucket.
66541
66542 2000-11-02  Vesselin Atanasov  <vesselin@bgnet.bg>
66543
66544         * lib/fnmatch.c: Do not comment out all the code if we are using
66545         the GNU C library, because in some cases we are replacing buggy
66546         code in the GNU C library itself.
66547
66548 2000-10-30  Stefan Monnier  <monnier@cs.yale.edu>
66549
66550         * regex.c (re_iswctype, re_wctype_to_bit): Fix braino.
66551         (regex_compile): Catch bogus \(\1\).
66552
66553 2000-10-30  Paul Eggert  <eggert@twinsun.com>
66554
66555         * lib/fnmatch.c (FOLD): Do not assume that characters are unsigned.
66556         (fnmatch): Fix some FNM_FILE_NAME and FNM_LEADING_DIR bugs,
66557         e.g. fnmatch("d*/*1", "d/s/1", FNM_FILE_NAME) incorrectly yielded zero.
66558
66559 2000-10-30  Paul Eggert  <eggert@twinsun.com>
66560
66561         * lib/error.h, getline.h, modechange.h:
66562         Remove "2000" from Copyright line, as the file hasn't been
66563         changed this year other than in the copyright notice.
66564
66565         * lib/xalloc.h: Add "2000" to Copyright line, as this file
66566         was changed this year.
66567
66568 2000-10-29  Jim Meyering  <meyering@lucent.com>
66569
66570         * m4/fsusage.m4: s/AC_SHELL_IFELSE/AS_IFELSE/ to match autoconf
66571         renaming.
66572         * m4/ls-mntd-fs.m4: Likewise
66573
66574 2000-10-29  Jim Meyering  <meyering@lucent.com>
66575
66576         * lib/xstat.in: Fix grammar in comment.
66577
66578 2000-10-29  Greg Louis  <glouis@dynamicro.on.ca>
66579
66580         * lib/regex.h (__restrict_arr): Move definition out of #ifndef block.
66581         Required because egcs-2.91.66 (aka 1.1.2) defines __restrict, but
66582         doesn't define __restrict_arr.
66583
66584 2000-10-28  Jim Meyering  <meyering@lucent.com>
66585
66586         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_MEMCHR.
66587         (jm_PREREQ_MEMCHR): New function.
66588
66589 2000-10-28  Jim Meyering  <meyering@lucent.com>
66590
66591         * lib/memchr.c: Update from libc.
66592         Adjust for portability:
66593         [HAVE_STDLIB_H]: Include stdlib.h.
66594         [HAVE_BP_SYM_H || _LIBC]: Guard inclusion of bp-sym.h.
66595         Undef __memchr, too.
66596         [!weak_alias]: Define __memchr to memchr.
66597
66598         * lib/regex.c: Update from libc.
66599         * lib/regex.h: Likewise.
66600         * lib/getopt1.c: Likewise.
66601         * lib/memcmp.c: Likewise.
66602
66603         * lib/getusershell.c (setusershell) [HAVE_FSEEKO]: Use fseeko.
66604         Avoid using fseek, when possible -- it's broken by design.
66605         Patch by Ulrich Drepper.
66606
66607 2000-10-27  Stefan Monnier  <monnier@cs.yale.edu>
66608
66609         * regex.c (POP_FAILURE_REG_OR_COUNT, re_match_2_internal)
66610         (re_match_2_internal, re_match_2_internal, re_match_2_internal):
66611         Giving in to popular pressure to shut up the compiler with casts.
66612
66613 2000-10-26  Jim Meyering  <meyering@lucent.com>
66614
66615         * lib/strftime.c: Update from libc.
66616
66617 2000-10-25  Stefan Monnier  <monnier@cs.yale.edu>
66618
66619         * regex.c: More `unsigned char' -> `re_char' changes.
66620         Also change several `int' into `re_wchar_t'.
66621         (PATTERN_STACK_EMPTY, PUSH_PATTERN_OP, POP_PATTERN_OP): Remove.
66622         (PUSH_FAILURE_POINTER): Don't cast any more.
66623         (POP_FAILURE_REG_OR_COUNT): Remove the cast that strips `const'.
66624         We want GCC to complain, since this piece of code makes
66625         re_match non-reentrant, which *should* be fixed.
66626         (GET_BUFFER_SPACE): Use size_t rather than unsigned long.
66627         (EXTEND_BUFFER): Use RETALLOC.
66628         (SET_LIST_BIT): Don't cast.
66629         (re_wchar_t): New type.
66630         (re_iswctype, re_wctype_to_bit): Make it crystal clear to GCC
66631         that those two functions will always properly return.
66632         (IMMEDIATE_QUIT_CHECK): Cast to void.
66633         (analyse_first): Use recursion rather than an explicit stack.
66634         (re_compile_fastmap): Can't fail anymore.
66635         (re_search_2): Don't check re_compile_fastmap for failure.
66636         (PUSH_NUMBER): Renamed from PUSH_FAILURE_COUNT.
66637         Now also sets the new value (passed in a new argument).
66638         (re_match_2_internal): Use it.
66639         Also, use a new var `reg' of type size_t when looping through regs
66640         rather than reuse the inappropriate `mcnt'.
66641
66642 2000-10-25  Jim Meyering  <meyering@lucent.com>
66643
66644         * lib/obstack.c: Update from libc.
66645
66646 2000-10-24  Kenichi Handa  <handa@etl.go.jp>
66647
66648         * regex.c (regex_compile): Change the way of handling a range from
66649         a char less than 256 to a char not less than 256.
66650
66651 2000-10-24  Andrew Innes  <andrewi@gnu.org>
66652
66653         * regex.c (IMMEDIATE_QUIT_CHECK): New macro, which does QUIT on
66654         NT-Emacs only.
66655         (re_match_2_internal): Use IMMEDIATE_QUIT_CHECK instead of QUIT,
66656         so that re_search functions only quit when callers expect them to.
66657
66658 2000-10-23  Jim Meyering  <meyering@lucent.com>
66659
66660         * lib/hard-locale.c (hard_locale): Revert last change -- it was simply
66661         wrong.  That set_locale call must not have any side effects.
66662         From Paul Eggert.
66663
66664 2000-10-22  Jim Meyering  <meyering@lucent.com>
66665
66666         * lib/md5.c (md5_process_block) [OP]: Use `rol', not CYCLIC.
66667         [CYCLIC]: Remove now-unused definition.
66668
66669         * lib/save-cwd.c (O_DIRECTORY): Define, if needed.
66670         (save_cwd) [HAVE_FCHDIR]: Use O_DIRECTORY when opening ".".
66671         Suggestion from Ulrich Drepper.
66672
66673 2000-10-21  Jim Meyering  <meyering@lucent.com>
66674
66675         * m4/check-decl.m4 (jm_CHECK_DECLS): Also check for memrchr.
66676         * m4/prereq.m4 (jm_PREREQ_DIRNAME): New macro.
66677         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add memrchr.
66678
66679 2000-10-21  Jim Meyering  <meyering@lucent.com>
66680
66681         * lib/dirname.c (memrchr): Declare if necessary.
66682         (dir_name): Remove the restriction that there be no
66683         trailing slashes.  Now, this code skips past them, effectively
66684         ignoring them.
66685         [TEST_DIRNAME] (main): New unit tests.
66686
66687         * lib/memrchr.c: New file from GNU libc.
66688         Undef __memrchr, too.
66689         [!weak_alias]: Define __memrchr to memrchr.
66690         Guard weak_alias use with `#ifdef weak_alias'.
66691
66692 2000-10-21  Jim Meyering  <meyering@lucent.com>
66693
66694         * lib/dirname.c (dir_name_r): New function, factored out of dir_name.
66695         (dir_name): Use dir_name_r.
66696         * lib/dirname.h (dir_name_r): Declare it.
66697
66698 2000-10-17  Jim Meyering  <meyering@lucent.com>
66699
66700         * lib/quote.h (PARAMS): Define and use.
66701         Reported by Akim Demaille.
66702
66703         * lib/getopt.c: Update from libc.
66704
66705 2000-10-16  Jim Meyering  <meyering@lucent.com>
66706
66707         * lib/hard-locale.c (hard_locale): Use "", not 0 as 2nd arg to
66708         setlocale.
66709         From Jan Fedak.
66710
66711 2000-10-15  Stefan Monnier  <monnier@cs.yale.edu>
66712
66713         * regex.c (WIDE_CHAR_SUPPORT): Define if _LIBC as well.
66714
66715 2000-09-25  Jim Meyering  <meyering@lucent.com>
66716
66717         * lib/md5.h (rol): Define (from GnuPG).
66718
66719         * lib/sha.c: Give credit (GnuPG) where due.
66720         (M): Use rol rather than open-coding it.
66721         Add a FIXME comment.
66722
66723 2000-09-21  Jim Meyering  <meyering@lucent.com>
66724
66725         * lib/userspec.c (parse_user_spec): Remove debugging printf I'd added.
66726         Reported by Michael Stone.
66727
66728 2000-09-20  Jim Meyering  <meyering@lucent.com>
66729
66730         * lib/Makefile.am (libfetish_a_SOURCES): Add sha.c.
66731         (noinst_HEADERS): Add sha.h.
66732         Based on code from Scott G. Miller and from GnuPG.
66733
66734 2000-09-18  Jim Meyering  <meyering@lucent.com>
66735
66736         * m4/getloadavg.m4 (AC_FUNC_GETLOADAVG): Restore the initial value of
66737         LIBS. Otherwise, everyone ends up linking with -lelf for some
66738         configurations.
66739         Reported by Mike Stone.
66740
66741 2000-09-15  Jim Meyering  <meyering@lucent.com>
66742
66743         * lib/regex.c: Update from libc.
66744
66745 2000-09-10  Jim Meyering  <meyering@lucent.com>
66746
66747         * lib/getopt.c (_getopt_internal): Update from glibc.
66748
66749 2000-09-09  Jim Meyering  <meyering@lucent.com>
66750
66751         * lib/quotearg.c: Rename ISASCII to IN_CTYPE_DOMAIN, so people don't
66752         think it should be used as a general replacement for isascii.
66753         * lib/fnmatch.c: Likewise.
66754         * lib/mbswidth.c: Likewise
66755         * lib/regex.c: Likewise.
66756
66757         Don't use atoi.
66758         * lib/userspec.c: Include sys/param.h and limits.h.
66759         Include xstrtol.h.
66760         (CHAR_BIT, TYPE_SIGNED, TYPE_MINIMUM, TYPE_MAXIMUM): Define.
66761         (UID_T_MAX, GID_T_MAX, MAXUID, MAXGID): Define.
66762         (parse_user_spec): Use xstrtoul, not atoi when converting numeric
66763         UID, GID.  Check range.
66764
66765 2000-09-06  Jim Meyering  <meyering@lucent.com>
66766
66767         * lib/getopt.c (_getopt_internal): Update from glibc.
66768
66769 2000-08-30  Jim Meyering  <meyering@lucent.com>
66770
66771         * lib/strftime.c: Merge in changes from GNU libc.
66772
66773 2000-08-26  Jim Meyering  <meyering@lucent.com>
66774
66775         * m4/jm-macros.m4: Use jm_FUNC_FPENDING.
66776         * m4/fpending.m4: New file.
66777
66778 2000-08-26  Jim Meyering  <meyering@lucent.com>
66779
66780         * lib/closeout.c: Include "__fpending.h".
66781         (close_stdout_status): Return right away if there's nothing to flush.
66782
66783         * lib/Makefile.am (noinst_HEADERS): Add __fpending.h.
66784         * lib/__fpending.c: New file.
66785         * lib/__fpending.h: New file.
66786
66787 2000-08-20  Jim Meyering  <meyering@lucent.com>
66788
66789         * m4/check-decl.m4: Include utmp.h `#if HAVE_UTMP_H', rather than
66790         `#if !HAVE_UTMPX_H'.  The latter would lose on systems with neither
66791         utmp.h nor utmpx.h.  Reported by Eli Zaretskii.
66792
66793 2000-08-11  J. David Anglin  <dave@hiauly1.hia.nrc.ca>
66794
66795         Improve fileutils installation on systems where running
66796         programs (like install) can't be unlinked.
66797         * m4/unlink-busy.m4 (jm_FUNC_UNLINK_BUSY_TEXT): New file/macro.
66798         * m4/jm-macros.m4: Use jm_FUNC_UNLINK_BUSY_TEXT.
66799
66800 2000-08-07  Paul Eggert  <eggert@twinsun.com>
66801
66802         Standardize on "memory exhausted" instead of "Memory exhausted"
66803         or "virtual memory exhausted".
66804         * lib/obstack.c (print_and_abort): Use "memory exhausted", not
66805         "virtual memory exhausted".
66806         * lib/same.c (same_name): Invoke xalloc_die instead of printing
66807         our own message.
66808         * lib/userspec.c (parse_user_spec): Likewise.
66809         * lib/bumpalloc.h: comment fix
66810         * lib/same.c, userspec.c: Include xalloc.h.
66811
66812         * lib/xalloc.h (xalloc_msg_memory_exhausted): Now char const[],
66813         not char *const and pointing to a constant array.
66814         * lib/xmalloc.c (xalloc_msg_memory_exhausted): Likewise.
66815         (xrealloc): Comment fix.
66816
66817         * lib/userspec.c (parse_user_spec):
66818         Don't translate a message until just before returning,
66819         to avoid unnecessary translation.
66820
66821 2000-08-07  Jim Meyering  <meyering@lucent.com>
66822
66823         * lib/addext.c, argmatch.c, argmatch.h, backupfile.h, bumpalloc.h,
66824         chown.c, diacrit.h, dirname.h, dup2.c, exclude.h, fileblocks.c,
66825         fnmatch.c, fnmatch.h, fsusage.c, fsusage.h, getdate.h,
66826         getgroups.c, gethostname.c, getopt.h, group-member.c,
66827         hard-locale.c, hash.h, isdir.c, lchown.c, linebuffer.c,
66828         linebuffer.h, long-options.h, malloc.c, md5.c, md5.h, memchr.c,
66829         memcmp.c, memcoll.c, memset.c, mktime.c, modechange.h, obstack.h,
66830         pathmax.h, realloc.c, rmdir.c, safe-read.c, save-cwd.c, stime.c,
66831         stpcpy.c, strcasecmp.c, strcspn.c, strdup.c, stripslash.c,
66832         strstr.c, strtod.c, strtol.c, strtoul.c, strtoull.c, strtoumax.c,
66833         utime.c, version-etc.h, xalloc.h, xstrdup.c, xstrtoumax.c,
66834         yesno.c: Back out Copyright date changes for each file with no change
66835         this year.  This eases coordination with other programs using the same
66836         source code modules.  From Paul Eggert.
66837
66838 2000-08-06  Paul Eggert  <eggert@twinsun.com>
66839
66840         * m4/mbstate_t.m4 (AC_MBSTATE_T): Define mbstate_t to be int,
66841         not char, for compatibility with glibc 2.1.3 strftime.c.
66842
66843 2000-08-03  Greg McGary  <greg@mcgary.org>
66844
66845         * lib/regex.c (SET_HIGH_BOUND, MOVE_BUFFER_POINTER,
66846         ELSE_EXTEND_BUFFER_HIGH_BOUND): New macros.
66847         (EXTEND_BUFFER): Use them.
66848
66849 2000-08-01  Jim Meyering  <meyering@lucent.com>
66850
66851         * lib/dirname.c (ISSLASH): Define.
66852         (BACKSLASH_IS_PATH_SEPARATOR): Define.
66853         (dir_name) [BACKSLASH_IS_PATH_SEPARATOR]: Handle the case in which
66854         both `\' and `/' may be use as path separators.
66855         Based on a patch from Prashant TR.
66856
66857 2000-07-31  Paul Eggert  <eggert@twinsun.com>
66858
66859         * lib/quotearg.c (quotearg_n_options): Don't make the initial
66860         slot vector a constant, since it might get modified.
66861
66862 2000-07-31  Jim Meyering  <meyering@lucent.com>
66863
66864         * lib/xmalloc.c: Use `virtual memory exhausted', not
66865         `Memory exhausted'.
66866         * lib/obstack.c (print_and_abort): Likewise.
66867
66868 2000-07-30  Paul Eggert  <eggert@twinsun.com>
66869
66870         * lib/quotearg.c (quotearg_n_options): Preallocate a slot 0
66871         buffer, so that the caller can always quote one small
66872         component of a "memory exhausted" message in slot 0.
66873         From a suggestion by Jim Meyering.
66874
66875 2000-07-30  Jim Meyering  <meyering@lucent.com>
66876
66877         * lib/makepath.c (make_path): Quote the other instance, too.
66878
66879         * lib/quotearg.c (N_STATIC_SLOTVECS): Define.
66880         (STATIC_BUF_SIZE): Define.
66881         (quotearg_n_options): Use only statically allocated storage when
66882         N < N_STATIC_SLOTVECS and the length of the quoted result is smaller
66883         than STATIC_BUF_SIZE.
66884
66885 2000-07-29  Jim Meyering  <meyering@lucent.com>
66886
66887         * lib/diacrit.c (diacrit_diac): Use __MSDOS__ in favor of MSDOS.
66888         * lib/dirname.c (dir_name): Likewise.
66889
66890         * lib/basename.c (base_name): Use ISSLASH rather than comparing against
66891         `/'.
66892
66893         * lib/dirname.c (dir_name) [MSDOS]: Declare `lim' to be const.
66894         (dir_name): Assert that there are no trailing slashes.
66895
66896 2000-07-29  Bruno Haible  <haible@clisp.cons.org>
66897
66898         * lib/mbswidth.h (mbswidth): Add a flags argument.
66899         (mbswidth): New declaration.
66900         (MBSW_ACCEPT_INVALID, MBSW_ACCEPT_UNPRINTABLE): New macros.
66901         * lib/mbswidth.c (mbswidth): Add a flags argument.
66902         (mbsnwidth): New function.
66903
66904 2000-07-24  Jim Meyering  <meyering@lucent.com>
66905
66906         * lib/mbswidth.c: Remove useless #else.  From Bruno Haible.
66907
66908 2000-07-23  Paul Eggert  <eggert@twinsun.com>
66909
66910         * m4/mbswidth.m4 (jm_PREREQ_MBSWIDTH): Check for wcwidth declaration.
66911
66912 2000-07-23  Paul Eggert  <eggert@twinsun.com>
66913
66914         * lib/quotearg.c: Streamline by invoking multibyte code only if needed.
66915         <wchar.h>: Include only if HAVE_MBRTOWC && 1 < MB_LEN_MAX.
66916         (MB_CUR_MAX): Redefine to 1 if ! (HAVE_MBRTOWC && 1 < MB_LEN_MAX).
66917         (quotearg_buffer_restyled): If a unibyte locale, don't bother to
66918         invoke multibyte primitives.
66919
66920 2000-07-23  Paul Eggert  <eggert@twinsun.com>
66921
66922         * lib/quotearg.c:
66923         Include <wchar.h> even if ! (HAVE_MBRTOWC && 1 < MB_LEN_MAX),
66924         so that mbstate_t is always defined.
66925
66926         Do not inspect MB_LEN_MAX, since it's incorrectly defined to
66927         be 1 in at least one GCC installation, and this configuration
66928         error is likely to be common.  Ignoring MB_LEN_MAX hurts
66929         performance on hosts that have mbrtowc but have only unibyte
66930         locales, but I assume these hosts are rare.
66931
66932 2000-07-23  Paul Eggert  <eggert@twinsun.com>
66933
66934         * lib/mbswidth.c (_XOPEN_SOURCE):
66935         Don't define; this causes problems on Solaris 7.
66936         (wcwidth) [!HAVE_DECL_WCWIDTH]: Declare.
66937
66938 2000-07-23  Jim Meyering  <meyering@lucent.com>
66939
66940         * m4/check-decl.m4 (jm_CHECK_DECLS): Check for declarations of these,
66941         too: getgrgid, getpwuid, getuid.
66942
66943 2000-07-23  Jim Meyering  <meyering@lucent.com>
66944
66945         * lib/basename.c (base_name): Add an assertion.
66946
66947 2000-07-23  Bruno Haible  <haible@clisp.cons.org>
66948
66949         * lib/quotearg.c: When the system forces us to redefine mbstate_t,
66950         shadow its mbsinit function.
66951
66952 2000-07-17  Bruno Haible  <haible@clisp.cons.org>
66953
66954         * lib/mbswidth.h: New file.
66955         * lib/mbswidth.c: New file.
66956         * lib/Makefile.am (libfetish_a_SOURCES): Add mbswidth.c.
66957         (noinst_HEADERS): Add mbswidth.h.
66958
66959 2000-07-17  Bruno Haible  <haible@clisp.cons.org>
66960
66961         * lib/config.charset: Add support for FreeBSD. Improve support for
66962         HP-UX and IRIX 6.
66963
66964 2000-07-16  Bruno Haible  <haible@clisp.cons.org>
66965
66966         * m4/mbswidth.m4: New file.
66967         * m4/prereq.m4 (jm_PREREQ): Call jm_PREREQ_MBSWIDTH.
66968
66969 2000-07-15  Jim Meyering  <meyering@lucent.com>
66970
66971         * lib/makepath.c: Include quote.h.
66972         (make_path): Convert "`%s'" in format strings to "%s", and wrap each
66973         corresponding argument in a `quote (...)' call.
66974         Give better diagnostics.
66975
66976         * lib/Makefile.am (libfetish_a_SOURCES): Add quote.c.
66977         (noinst_HEADERS): Add quote.h.
66978
66979         * lib/quote.c (quote, quote_n): New file.  Two functions taken verbatim
66980         from tar's src/misc.c.
66981         * lib/quote.h: New file.  Prototypes for same.
66982
66983 2000-07-14  Paul Eggert  <eggert@twinsun.com>
66984
66985         From a suggestion by Bruno Haible.
66986         * lib/quotearg.c (mbrtowc): Do not use HAVE_WCHAR_H in the definition.
66987         Use defined mbstate_t, not HAVE_MBSTATE_T_OBJECT,
66988         to decide whether to define the BeOS workaround macro;
66989         this adjusts to the change to AC_MBSTATE_T.
66990
66991 2000-07-14  Jim Meyering  <meyering@lucent.com>
66992
66993         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): Require
66994         jm_AC_TYPE_UINTMAX_T.
66995
66996 2000-07-13  Paul Eggert  <eggert@twinsun.com>
66997
66998         * lib/quotearg.h (enum quoting style): New enum clocale_quoting_style.
66999
67000         * lib/quotearg.c (quoting_style_args, quoting_style_vals,
67001         quotearg_buffer_restyled): Add support for
67002         clocale_quoting_style.  Undo previous change to
67003         locale_quoting_style behavior, and undo the "{LEFT QUOTATION MARK}"
67004         and "{RIGHT QUOTATION MARK}" msgids.
67005
67006 2000-07-10  Paul Eggert  <eggert@twinsun.com>
67007
67008         From a suggestion by Bruno Haible.
67009         * m4/mbstate_t.m4 (AC_MBSTATE_T):
67010         Renamed from AC_MBSTATE_T_OBJECT.  All uses changed.
67011         Change from a two-part test, which defines both HAVE_MBSTATE_T_OBJECT
67012         and mbstate_t, to a single-part test that simply defines mbstate_t.
67013         * m4/prereq.m4 (jm_PREREQ_QUOTEARG):
67014         s/AC_MBSTATE_T_OBJECT/AC_MBSTATE_T/.
67015
67016 2000-07-10  Jim Meyering  <meyering@lucent.com>
67017
67018         * m4/strerror_r.m4: Mirror the correction made in autoconf.
67019
67020         * m4/gnu-source.m4: Output to confdefs.h directly.
67021         Suggestion from Akim Demaille.
67022
67023 2000-07-09  Paul Eggert  <eggert@twinsun.com>
67024
67025         The old behavior of quoting `like this' doesn't look good with
67026         newer, ISO-style fonts.  See:
67027         http://www.cl.cam.ac.uk/~mgk25/ucs/quotes.html
67028
67029         Instead, quote "like this" by default.  Let the translator
67030         tailor the locale-specific quoting behavior by providing
67031         translations for {LEFT QUOTATION MARK} and {RIGHT QUOTATION MARK}.
67032
67033         * lib/quotearg.c (N_): New macro.
67034         (gettext_default): New function.
67035         (quotearg_buffer_restyled): Use
67036         gettext_default ("{LEFT QUOTATION MARK}", "\"") for left quote, and
67037         gettext_default ("{RIGHT QUOTATION MARK}", "\"") for right quote.
67038
67039 2000-07-09  Jim Meyering  <meyering@lucent.com>
67040
67041         * m4/jm-macros.m4 (jm_MACROS): Add a test to see if -lm is required
67042         to link seq.  If so, set SEQ_LIBM to -lm.  From Bruno Haible.
67043
67044         * m4/gnu-source.m4 (AC__GNU_SOURCE): New file/macro.
67045         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Require it.
67046
67047 2000-07-09  Jim Meyering  <meyering@lucent.com>
67048
67049         * lib/Most files: Update copyright dates to include 2000.
67050
67051 2000-07-08  Jim Meyering  <meyering@lucent.com>
67052
67053         * lib/xgethostname.c (ENAMETOOLONG): Define to an unlikely value
67054         if not defined.
67055         (xgethostname): Remove now-unnecessary #ifdef.
67056         Move declaration of `err' into loop where it's used.
67057
67058 2000-07-05  Paul Eggert  <eggert@twinsun.com>
67059         and Bruno Haible  <haible@clisp.cons.org>
67060
67061         * m4/mbstate_t.m4 (AC_MBSTATE_T_OBJECT): Test for mbstate_t
67062         only if the test for an object-type mbstate_t fails.  This
67063         prevents us from mistakenly reporting that mbstate_t is a
67064         system object type after we "#define mbstate_t int" to work
67065         around its lack.
67066
67067 2000-07-05  Paul Eggert  <eggert@twinsun.com>
67068         and Bruno Haible  <haible@clisp.cons.org>
67069
67070         * lib/quotearg.c (mbrtowc): Declare returned type, since BeOS doesn't.
67071
67072 2000-07-05  Bruno Haible  <haible@clisp.cons.org>
67073
67074         * m4/strerror_r.m4 (AC_FUNC_STRERROR_R): Pass a reasonably large buffer
67075         to strerror_r.
67076         Include <ctype.h> for use of isalpha.
67077
67078 2000-07-05  Bruno Haible  <haible@clisp.cons.org>
67079
67080         * lib/xgethostname.c (xgethostname): Protect against the SunOS 5.5 bug
67081         by allocating a larger buffer. Test the gethostname return value for
67082         being >= 0, not == 0, for BeOS.  Don't exhaust memory if gethostname
67083         returns an error and ENAMETOOLONG isn't defined.
67084
67085 2000-07-05  Bruno Haible  <haible@clisp.cons.org>
67086
67087         * lib/quotearg.c (struct quoting_options): Simplify quote_these_too
67088         dimension.
67089
67090 2000-07-04  Jim Meyering  <meyering@lucent.com>
67091
67092         * m4/fsusage.m4 (jm_FILE_SYSTEM_USAGE): Use plain old `echo' instead
67093         of the deprecated AC_CHECKING.
67094
67095 2000-07-04  Jim Meyering  <meyering@lucent.com>
67096
67097         * lib/strndup.c: [!HAVE_DECL_STRNLEN]: Declare strnlen.
67098         Reported by Bruno Haible.
67099
67100 2000-07-04  Jim Meyering  <meyering@lucent.com>
67101
67102         * lib/quotearg.c: Make inclusion of <wchar.h> independent of whether
67103         HAVE_MBRTOWC is set.  Required at least for irix-5.6, which
67104         lacks mbrtowc.
67105
67106 2000-07-03  Paul Eggert  <eggert@twinsun.com>
67107
67108         * m4/mbstate_t.m4 (AC_MBSTATE_T_OBJECT): Port to autoconf 2.13.
67109         Add AC_CHECK_HEADERS(stdlib.h), since we use HAVE_STDLIB_H.
67110
67111 2000-07-03  Paul Eggert  <eggert@twinsun.com>
67112         and Bruno Haible  <haible@clisp.cons.org>
67113
67114         * lib/quotearg.c (mbrtowc):
67115         Assign to *pwc, and return 1 only if result is nonzero.
67116         (iswprint): Use ISPRINT when substituting our own mbrtowc.
67117
67118 2000-07-03  Jim Meyering  <meyering@lucent.com>
67119
67120         * m4/check-decl.m4 (AC_CHECK_DECLS): Add strnlen.
67121
67122 2000-07-03  Jim Meyering  <meyering@lucent.com>
67123
67124         * lib/readutmp.h: [HAVE_UTMPX_H]: Include <utmp.h> if HAVE_UTMP_H.
67125         This is necessary to get a definition of e.g., UTMP_FILE on
67126         HP-UX 10.20.
67127         From Bob Proulx.
67128
67129 2000-07-02  Jim Meyering  <meyering@lucent.com>
67130
67131         * m4/mbstate_t.m4: Also define mbstate_t, if necessary.
67132
67133         * m4/chown.m4: Replace each use of AC_SUBST(LIBOBJS)/LIBOBJS=... with
67134         AC_LIBOBJ(function_name).
67135         * m4/chown.m4: Likewise.
67136         * m4/fnmatch.m4: Likewise.
67137         * m4/ftruncate.m4: Likewise.
67138         * m4/getgroups.m4: Likewise.
67139         * m4/getline.m4: Likewise.
67140         * m4/group-member.m4: Likewise.
67141         * m4/jm-macros.m4: Likewise.
67142         * m4/lstat.m4: Likewise.
67143         * m4/malloc.m4: Likewise.
67144         * m4/memcmp.m4: Likewise.
67145         * m4/nanosleep.m4: Likewise.
67146         * m4/putenv.m4: Likewise.
67147         * m4/realloc.m4: Likewise.
67148         * m4/regex.m4: Likewise.
67149         * m4/stat.m4: Likewise.
67150         * m4/strftime.m4: Likewise.
67151
67152 2000-07-02  Jim Meyering  <meyering@lucent.com>
67153
67154         * lib/quotearg.c (mbstate_t): Don't define here.
67155
67156 2000-07-02  Jim Meyering  <meyering@lucent.com>
67157
67158         * lib/nanosleep.c (SIGCONT): Define if not already defined.
67159
67160 2000-07-01  Jim Meyering  <meyering@lucent.com>
67161
67162         * m4/uptime.m4: Put double quotes around use of $cross_compiling.
67163
67164 2000-07-01  Jim Meyering  <meyering@lucent.com>
67165
67166         * m4/ls-mntd-fs.m4: Remove a `FIXME' comment and fix the associated
67167         problem.
67168
67169 2000-07-01  Bruno Haible  <haible@clisp.cons.org>
67170
67171         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Rename BeOS specific
67172         macro from MOUNTED_NEXT_DEV to MOUNTED_FS_STAT_DEV.
67173
67174 2000-07-01  Bruno Haible  <haible@clisp.cons.org>
67175
67176         * lib/mountlist.c: Use MOUNTED_FS_STAT_DEV instead of MOUNTED_NEXT_DEV,
67177         per change in ../m4/ls-mntd-fs.m4.
67178         (read_filesystem_list): Ignore symbolic links.
67179
67180 2000-06-29  Jim Meyering  <meyering@lucent.com>
67181
67182         * lib/same.c: Include <string.h> or <strings.h>, as appropriate,
67183         for declaration of strcmp.
67184
67185         * lib/long-options.c: Include <stdlib.h>, for declaration of exit.
67186
67187         * lib/mountlist.c (fsp_to_string) [HAVE_F_FSTYPENAME_IN_STATFS]:
67188         Avoid warning by casting result to `char *' to remove `const'.
67189
67190 2000-06-28  Jim Meyering  <meyering@lucent.com>
67191
67192         * m4/mbstate_t.m4: Use stdlib.h, not stdio.h.  The latter is not
67193         included by quotearg.c, for which we perform this test.  From
67194         Bruno Haible.
67195
67196 2000-06-27  Bruno Haible  <haible@clisp.cons.org>
67197
67198         * m4/check-decl.m4 (_jm_DECL_HEADERS): Check for utmp.h as well.
67199         * m4/prereq.m4 (jm_PREREQ_READUTMP): Likewise. If either <utmp.h> or
67200         <utmpx.h> exists, put readutmp.o into LIBOBJS.
67201
67202 2000-06-27  Bruno Haible  <haible@clisp.cons.org>
67203
67204         * lib/Makefile.am (libfetish_a_SOURCES): Remove readutmp.c.
67205
67206 2000-06-26  Paul Eggert  <eggert@twinsun.com>
67207
67208         savedir now sets errno on failure and invokes xmalloc to get memory.
67209         Fix a couple of other minor bugs while we're at it.
67210
67211         * lib/savedir.c (<unistd.h>): Do not include; there's no need.
67212         (NAMLEN): Remove macro.
67213         (malloc, realloc): Remove decls.
67214         (stpcpy): Likewise.
67215         ("xalloc.h"): Include.
67216         (NAME_SIZE_DEFAULT): New macro.
67217         (savedir): Use xmalloc / xrealloc to allocate memory.
67218         Use NAME_SIZE_DEFAULT if name_size is negative or overflows to zero.
67219         Skip "" directory entries.
67220         Use strlen to calculate directory entry length, since the old method
67221         is rarely used these days and isn't worth supporting.
67222         Don't use a pointer after freeing it.
67223         Check for integer overflow when calculating allocation size.
67224         Use memcpy to copy entries, instead of stpcpy.
67225         Set errno properly when returning NULL.
67226         Check for readdir error.
67227
67228 2000-06-26  Jim Meyering  <meyering@lucent.com>
67229
67230         * lib/posixtm.c [HAVE_STDLIB_H]: Include stdlib.h, for decl of abort.
67231
67232 2000-06-25  Jim Meyering  <meyering@lucent.com>
67233
67234         * m4/mbstate_t.m4: Include stdio.h before wchar.h to work around
67235         Linux header bug when _XOPEN_SOURCE is defined to 500.
67236
67237 2000-06-25  Bruno Haible  <haible@clisp.cons.org>
67238
67239         * lib/unicodeio.c (print_unicode_char): Work around ansi2knr
67240         deficiency.
67241
67242 2000-06-25  Bruno Haible  <haible@clisp.cons.org>
67243
67244         * lib/getusershell.c (xmalloc, xrealloc): Remove functions.
67245         Include xalloc.h.
67246         Don't include <stdlib.h>.  Don't declare malloc, realloc.
67247
67248 2000-06-24  Jim Meyering  <meyering@lucent.com>
67249
67250         * m4/strerror_r.m4: Revive this file -- to try out an experimental
67251         version of AC_FUNC_STRERROR_R that may work even on BeOS, a system
67252         for which strerror does return char*, but which lacks a conveniently
67253         accessible declaration of the function.  If the compile-test says
67254         strerror_r doesn't work, then resort to a `run'-test that works on
67255         BeOS and segfaults on DEC Unix.
67256
67257 2000-06-24  Jim Meyering  <meyering@lucent.com>
67258
67259         * lib/error.c [!HAVE_DECL_STRERROR_R]: Declare strerror_r.
67260
67261 2000-06-23  Paul Eggert  <eggert@twinsun.com>
67262
67263         * m4/mbstate_t.m4: New file, defining AC_MBSTATE_T_OBJECT.
67264         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): Use it.  Add check for iswprint.
67265
67266 2000-06-23  Paul Eggert  <eggert@twinsun.com>
67267
67268         * lib/quotearg.c: Include <wctype.h> after <wchar.h>, for Solaris 2.5.
67269         (mbrtowc, mbstate_t): Define substitutes if
67270         HAVE_MBRTOWC && HAVE_WCHAR_H && !HAVE_MBSTATE_T_OBJECT.
67271         (iswprint): Define to 1 if !defined iswprint && !HAVE_ISWPRINT,
67272         not if ! (HAVE_MBRTOWC && HAVE_WCHAR_H).
67273
67274 2000-06-23  Jim Meyering  <meyering@lucent.com>
67275
67276         * m4/afs.m4: Add missing AC_MSG_RESULT.
67277         Reported by Bruno Haible.
67278
67279         * m4/fsusage.m4: s/AC_MSG_CHECKING/AC_CHECKING/.
67280         Suggestion from Bruno Haible.
67281
67282 2000-06-23  Jim Meyering  <meyering@lucent.com>
67283
67284         * lib/getpass.c: New file, from Bruno Haible.  Required for BeOS.
67285
67286 2000-06-21  Jim Meyering  <meyering@lucent.com>
67287
67288         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add getpass.
67289
67290 2000-06-21  Jim Meyering  <meyering@lucent.com>
67291
67292         * lib/Makefile.am (libfetish_a_SOURCES): Add getstr.c.
67293         (noinst_HEADERS): Add getstr.h.
67294
67295         * lib/getline.c (getstr): Move into a separate file.
67296         * lib/getstr.c (getstr): New file, extracted from getline.c, with
67297         the following changes: new parameter, delim2; both delim[12]
67298         parameters have type `int', not `char'.  The latter would lose
67299         with 8-bit delimiters.
67300         * lib/getstr.h: New file.
67301
67302 2000-06-21  Bruno Haible  <haible@clisp.cons.org>
67303
67304         * lib/xgetcwd.c (xgetcwd): If the required pathname length is smaller
67305         than 1024, return a memory chunk of least possible size, instead
67306         of size PATH_MAX + 2. In the loop, increment the size proportionally.
67307         Use free/xmalloc instead of xrealloc to avoid copying for very long
67308         paths.
67309
67310 2000-06-21  Bruno Haible  <haible@clisp.cons.org>
67311
67312         * lib/path-concat.c (path_concat): Don't access dir[-1] if dir is
67313         the empty string.
67314
67315 2000-06-21  Bruno Haible  <haible@clisp.cons.org>
67316
67317         * lib/canon-host.c (canon_host): Use malloc and memcpy to copy an
67318         address, not strdup.  Include <stdlib.h> and don't declare free().
67319
67320 2000-06-19  Jim Meyering  <meyering@lucent.com>
67321
67322         * lib/getloadavg.c [HAVE_NLIST_H] (NLIST_STRUCT): Define.
67323
67324 2000-06-18  Jim Meyering  <meyering@lucent.com>
67325
67326         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Remove mkdir.
67327
67328         * m4/link-follow.m4 (jm_AC_FUNC_LINK_FOLLOWS_SYMLINK): Change the
67329         `checking whether...' message to be consistent with that of the
67330         lstat test.
67331
67332 2000-06-18  Jim Meyering  <meyering@lucent.com>
67333
67334         * lib/mkdir.c: Remove file, due mainly to copyright incompatibility.
67335         Besides, these days every porting target provides a mkdir function.
67336
67337         * lib/strnlen.c: Include memory.h, string.h, and/or strings.h as
67338         needed. (this snippet comes from src/system.h).
67339
67340 2000-06-16  Bruno Haible  <haible@clisp.cons.org>
67341
67342         * m4/glibc21.m4 (jm_GLIBC21): Define GLIBC21 for Makefiles, not for C.
67343
67344 2000-06-15  Paul Eggert  <eggert@twinsun.com>
67345
67346         * lib/human.c (adjust_value): New function.
67347         (human_readable_inexact): Apply rounding style even when
67348         printing approximate values.
67349
67350 2000-06-14  Paul Eggert  <eggert@twinsun.com>
67351
67352         * lib/human.c (human_readable_inexact): Allow an input block
67353         size that is not a multiple of the output block size, and vice versa.
67354         Reported by Piergiorgio Sartor.
67355
67356 2000-06-14  Paul Eggert  <eggert@twinsun.com>
67357
67358         * lib/getdate.y (get_date): Apply relative times after time
67359         zone indicator, not before.  Reported by Todd A. Jacobs.
67360
67361 2000-06-13  Jim Meyering  <meyering@lucent.com>
67362
67363         * lib/Makefile.am (all-local): Depend on lstat.c and stat.c.
67364
67365         * lib/xstat.in [!HAVE_DECL_FREE]: Declare free in lstat.c.
67366
67367 2000-06-12  Paul Eggert  <eggert@twinsun.com>
67368
67369         * lib/xstat.in: Include <stdlib.h> in lstat, to declare "free".
67370
67371 2000-06-12  Jim Meyering  <meyering@lucent.com>
67372
67373         * m4/getloadavg.m4 (AM_FUNC_GETLOADAVG): Replace with
67374         AC_FUNC_GETLOADAVG from autoconf, and tweak the latter to accept an
67375         optional argument.
67376         * m4/jm-macros.m4: s/AM_FUNC_GETLOADAVG/AC_FUNC_GETLOADAVG/, and supply
67377         the optional argument, `lib'.
67378
67379 2000-06-08  Jim Meyering  <meyering@lucent.com>
67380
67381         * m4/largefile.m4: Remove file (now that it's part of autoconf).
67382
67383 2000-06-04  Paul Eggert  <eggert@twinsun.com>
67384
67385         Rewrite largefile configuration so that we don't need to run
67386         getconf and don't need AC_CANONICAL_HOST.  [I'm leaving the use of
67387         AC_CANONICAL_HOST in configure.in -- jmm]
67388
67389         * m4/largefile.m4 (AC_SYS_LARGEFILE_FLAGS,
67390         AC_SYS_LARGEFILE_SPACE_APPEND): Remove.
67391         (AC_SYS_LARGEFILE_TEST_INCLUDES): New macro.
67392         (AC_SYS_LARGEFILE_MACRO_VALUE): Change arguments from
67393         CODE-TO-SET-DEFAULT to VALUE, INCLUDES, FUNCTION-BODY.
67394         All uses changed.
67395         Instead of inspecting the output of getconf, try to compile the
67396         test program without and with the macro definition.
67397         (AC_SYS_LARGEFILE): Do not require AC_CANONICAL_HOST or check
67398         for getconf.  Instead, check for the needed flags by compiling
67399         test programs.
67400
67401 2000-06-04  Paul Eggert  <eggert@twinsun.com>
67402
67403         * lib/strnlen.c: Include <config.h> if HAVE_CONFIG_H.
67404
67405 2000-06-04  Jim Meyering  <meyering@lucent.com>
67406
67407         * lib/getugroups.c (getugroups): Cast -1 to gid_t, for systems like
67408         SunOS 4.1.4 for which gid_t is an unsigned type.
67409
67410 2000-06-03  Jim Meyering  <meyering@lucent.com>
67411
67412         * m4/prereq.m4 (jm_PREREQ_HUMAN): Use []-quoted list in AC_CHECK_DECLS,
67413         now that autoconf requires that.
67414
67415         * m4/jm-glibc-io.m4: Add a kludge to make autoheader emit the required
67416         #undefs.  E.g., #undef HAVE_DECL_FERROR_UNLOCKED.
67417         Use []-quoted list in AC_CHECK_DECLS, now that autoconf requires that.
67418
67419 2000-06-03  Jim Meyering  <meyering@lucent.com>
67420
67421         * lib/strnlen.c [!HAVE_DECL_MEMCHR]: Declare memchr.
67422
67423 2000-06-03  Bruno Haible  <haible@clisp.cons.org>
67424
67425         * m4/glibc21.m4: New file.
67426         * m4/jm-macros.m4 (jm_MACROS): Call jm_GLIBC21.
67427
67428 2000-06-03  Bruno Haible  <haible@clisp.cons.org>
67429
67430         * lib/Makefile.am (install-exec-local): On systems with glibc-2.1 or
67431         newer, don't install charset.alias.
67432         * lib/config.charset: Change the Linux/glibc rules so they become empty
67433         on glibc-2.1 or newer.
67434
67435 2000-06-02  Jim Meyering  <meyering@lucent.com>
67436
67437         * lib/mountlist.c: Back out last change.  Instead, do this...
67438         * lib/mountlist.c (read_filesystem_list) [MOUNTED_VMOUNT]: Set the
67439         me_dummy member using the same `ignore'-testing code.
67440         * lib/mountlist.h (ME_DUMMY): Add `autofs' to the list of ignored
67441         fs_type strings.
67442         From Mark D. Roth.
67443
67444 2000-05-29  Jim Meyering  <meyering@lucent.com>
67445
67446         * lib/mountlist.c (read_filesystem_list) [MOUNTED_VMOUNT]: Ignore
67447         mounts with the `ignore' attribute.  Based on a patch from
67448         Mark D. Roth.
67449
67450 2000-05-28  Jim Meyering  <meyering@lucent.com>
67451
67452         * m4/jm-macros.m4 (AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK): Rename from
67453         jm_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
67454         * m4/stat.m4: Likewise.
67455         * m4/lstat.m4: Likewise.
67456         * m4/lstat-slash.m4: Remove file (absorbed into autoconf).
67457
67458         * m4/jm-macros.m4 (AC_FUNC_STRERROR_R): Rename from jm_FUNC_STRERROR_R.
67459         * m4/strerror_r.m4: Remove file (absorbed into autoconf).
67460
67461 2000-05-26  Jim Meyering  <meyering@lucent.com>
67462
67463         * m4/uptime.m4: Use `$cross_compiling', not `$ac_cv_prog_cc_cross'.
67464
67465 2000-05-24  Jim Meyering  <meyering@lucent.com>
67466
67467         * m4/prereq.m4: Use []-quoted list in AC_CHECK_MEMBERS, now that
67468         autoconf requires that.
67469         * m4/lib-check.m4: Likewise.
67470         * m4/jm-macros.m4: Likewise.
67471         * m4/strftime.m4: Likewise.
67472
67473         * m4/check-decl.m4 (jm_CHECK_DECLS): Use []-quoted list in
67474         AC_CHECK_DECLS, now that autoconf requires that.
67475
67476 2000-05-22  Jim Meyering  <meyering@lucent.com>
67477
67478         * m4/stat.m4: Require jm_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
67479         * m4/lstat.m4: Likewise.
67480
67481 2000-05-22  Jim Meyering  <meyering@lucent.com>
67482
67483         * lib/makepath.c: Remove old, now-unnecessary `#ifdef __MSDOS__' block.
67484
67485 2000-05-20  Jim Meyering  <meyering@lucent.com>
67486
67487         * m4/prereq.m4 (jm_PREREQ_HUMAN): New macro.
67488         (jm_PREREQ): Use it.
67489
67490 2000-05-18  Jim Meyering  <meyering@lucent.com>
67491
67492         * lib/hash.c (hash_rehash): Fix a nasty bug: copy the free entry list
67493         back, too, since it may have been modified by allocate_entry.
67494         (hash_delete): Rewrite to use neither the assignment operator
67495         nor the comma operator in an if-expression.
67496
67497 2000-05-15  Paul Eggert  <eggert@twinsun.com>
67498
67499         * lib/closeout.c:
67500         <sys/stat.h>, <sys/types.h>, <unistd.h>, (STDOUT_FILENO):
67501         Remove; no longer needed.
67502         "quotearg.h": Add include.
67503         (file_name): Do not bother to explicitly initialize to NULL; it's less
67504         efficient on some hosts.
67505         (close_stdout_status): Remove test as to whether stdout was already
67506         closed; it breaks for the case "echo x | sort >&-".
67507         Quote file name colons.
67508         Do not assume that _("write error") lacks format strings.
67509
67510 2000-05-15  Jim Meyering  <meyering@lucent.com>
67511
67512         * lib/version-etc.c (version_etc_copyright): Update the copyright
67513         string used in all --version output.
67514
67515 2000-05-14  Jim Meyering  <meyering@lucent.com>
67516
67517         * lib/closeout.c (close_stdout_set_file_name): New function.
67518         (close_stdout_status): Use new file-scoped global.
67519         Return right away if fstat says the stdout file descriptor is invalid.
67520         * lib/closeout.h (close_stdout_set_file_name): Declare.
67521
67522 2000-05-10  Jim Meyering  <meyering@lucent.com>
67523
67524         * lib/closeout.c [default_exit_status]: New file-scoped variable.
67525         (close_stdout_set_status): New function.
67526         * lib/closeout.h (close_stdout_set_status): Declare.
67527
67528 2000-05-09  Jim Meyering  <meyering@lucent.com>
67529
67530         * m4/gettext.m4: Rename this...
67531         * m4/libintl.m4: ...to this.
67532
67533 2000-05-08  Jim Meyering  <meyering@lucent.com>
67534
67535         * lib/long-options.c: Don't include closeout.h.
67536         (parse_long_options): Don't call close_stdout for --version.
67537
67538 2000-05-06  Paul Eggert  <eggert@twinsun.com>
67539
67540         * m4/largefile.m4 (AC_SYS_LARGEFILE): Define _XOPEN_SOURCE to
67541         be 500, instead of _GNU_SOURCE to be 1, to work around glibc
67542         2.1.3 bug.  This avoids a clash when files like regex.c define
67543         _GNU_SOURCE.
67544
67545 2000-05-06  Jim Meyering  <meyering@lucent.com>
67546
67547         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add atexit.
67548         (AC_REPLACE_FUNCS): Add strnlen.
67549
67550         * m4/rmdir-errno.m4 (fetish_FUNC_RMDIR_NOTEMPTY): New macro and file.
67551         * m4/jm-macros.m4: Require fetish_FUNC_RMDIR_NOTEMPTY.
67552
67553         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): Save and restore LIBS around
67554         AC_SEARCH_LIBS call for nanosleep.
67555         (LIB_NANOSLEEP): Set and AC_SUBST.
67556
67557 2000-05-06  Jim Meyering  <meyering@lucent.com>
67558
67559         * lib/strnlen.c: Undefine __strnlen and strnlen.
67560         [!weak_alias]: Define __strnlen to strnlen.
67561
67562         * lib/atexit.c: New file, from libiberty.
67563
67564 2000-05-06  Jim Meyering  <meyering@lucent.com>
67565
67566         * lib/closeout.c (close_stdout_status): Also check for errors on the
67567         stderr stream.
67568
67569 2000-05-05  Jim Meyering  <meyering@lucent.com>
67570
67571         * m4/jm-macros.m4 (jm_MACROS): Save and restore LIBS around
67572         AC_SEARCH_LIBS call for clock_gettime.
67573         (LIB_CLOCK_GETTIME): Set and AC_SUBST.
67574
67575         * m4/search-libs.m4: Update from autoconf.
67576
67577         su doesn't work on Solaris 2.6.
67578         * m4/lib-check.m4: When checking for struct spwd.sp_pwdp, also include
67579         <shadow.h>.  Reported by Dragos Harabor.
67580
67581 2000-05-05  Bruno Haible  <haible@clisp.cons.org>
67582
67583         * lib/localcharset.c (get_charset_aliases): Use malloc, realloc and
67584         memcpy instead of xmalloc, xrealloc, path_concat.
67585         (locale_charset): Treat empty environment variables as absent.
67586         (DIRECTORY_SEPARATOR, ISSLASH): New macros.
67587
67588 2000-05-04  Jim Meyering  <meyering@lucent.com>
67589
67590         * lib/getopt.c: Update from glibc.
67591         * lib/obstack.c: Likewise.
67592         * lib/obstack.h: Likewise.
67593         * lib/regex.c: Likewise.  NB: K&R compiler support is dropped for this
67594         file
67595
67596         * lib/regex.h: Likewise.
67597         * lib/strndup.c: Likewise.
67598         * lib/strnlen.c: New file, from glibc.
67599
67600 2000-05-03  Jim Meyering  <meyering@lucent.com>
67601
67602         * m4/check-decl.m4 (AC_CHECK_DECLS): Add strndup.
67603
67604 2000-05-02  Paul Eggert  <eggert@twinsun.com>
67605
67606         * m4/largefile.m4 (AC_SYS_LARGEFILE): Define _GNU_SOURCE if
67607         this is needed to make ftello visible (e.g. glibc 2.1.3).  Use
67608         compile-time test, rather than inspecting host and OS, to
67609         decide whether to define _LARGEFILE_SOURCE.
67610
67611 2000-05-01  Jim Meyering  <meyering@lucent.com>
67612
67613         * m4/fsusage.m4: Use AC_MSG_CHECKING instead of obsolete AC_CHECKING.
67614
67615         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Add BeOS support.
67616         Based on a patch from Bruno Haible.
67617
67618 2000-05-01  Jim Meyering  <meyering@lucent.com>
67619
67620         * lib/full-write.c (full_write): Remove `FIXME' part of comment.
67621
67622 2000-04-29  Jim Meyering  <meyering@lucent.com>
67623
67624         * lib/path-concat.c: Declare strdup only if it's not defined.
67625         * lib/canon-host.c: Likewise.
67626
67627 2000-04-28  Jim Meyering  <meyering@lucent.com>
67628
67629         * lib/rpmatch.c [HAVE_LIMITS_H]: Include limits.h before regex.h to
67630         avoid redefinition warning on some systems (HPUX).  Otherwise, regex.h
67631         is included first, then limits.h is included by locale.h by libintl.h.
67632         From John David Anglin.
67633
67634 2000-04-25  Jim Meyering  <meyering@lucent.com>
67635
67636         * lib/makepath.c (S_IRWXUGO): Define.
67637         (make_path): Always perform explicit chmod if MODE specifies any
67638         of the `special' permission bits.  Prompted by a bug report against
67639         install from Mate Wierdl and Joost van Baal.
67640
67641 2000-04-18  Jim Meyering  <meyering@lucent.com>
67642
67643         * m4/prereq.m4 (jm_PREREQ_GETPAGESIZE): New macro.
67644         (jm_PREREQ): Use it.
67645
67646 2000-04-18  Jim Meyering  <meyering@lucent.com>
67647
67648         * lib/README: New file.
67649
67650         * lib/getpagesize.h [!getpagesize && HAVE_OS_H && B_PAGE_SIZE]: Define
67651         getpagesize.  For BeOS.  Based on a patch from Bruno Haible.
67652
67653 2000-04-17  Jim Meyering  <meyering@lucent.com>
67654
67655         Get it right :-)
67656         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES) [_GNU_SOURCE]: Emit the
67657         actual #define via AH_VERBATIM.  Don't need separate AC_DEFINE.
67658         Suggestion from Akim Demaille.
67659
67660 2000-04-17  Jim Meyering  <meyering@lucent.com>
67661
67662         * lib/strftime.c (my_strftime) [strftime]: Declare strftime here, since
67663         the definition of it to rpl_strftime also defined-away the system's
67664         declaration.
67665
67666 2000-04-15  Jim Meyering  <meyering@lucent.com>
67667
67668         Use `C' to denote so-called `contiguous' files, the same way
67669         that tar does.
67670         * lib/filemode.c (S_ISCTG) [!S_ISCTG && S_IFCTG]: Define.
67671         (ftypelet): Use S_ISCTG.
67672         From Michael Deutschmann.
67673
67674 2000-04-14  Jim Meyering  <meyering@lucent.com>
67675
67676         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES) [_GNU_SOURCE]: Use the one-arg
67677         form of AC_DEFINE.  Otherwise, the #ifndef in AH_VERBATIM gets
67678         clobbered.
67679
67680 2000-04-14  Jim Meyering  <meyering@lucent.com>
67681
67682         * lib/strftime.c (my_strftime) [#ifdef strftime]: Declare strftime.
67683
67684 2000-04-13  Jim Meyering  <meyering@lucent.com>
67685
67686         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES) [_GNU_SOURCE]: Use new
67687         AH_VERBATIM to insert required #ifndef into config.h.in.
67688         Suggestion from Akim Demaille.
67689
67690 2000-04-12  Jim Meyering  <meyering@lucent.com>
67691
67692         * m4/getloadavg.m4 (AM_FUNC_GETLOADAVG): Use AC_CHECK_HEADERS, not
67693         `AC_CHECK_HEADER' to check for locale.h.  Thanks to a report from
67694         Christian Krackowizer.
67695
67696         More code moved from ../configure.in into (jm_CHECK_ALL_TYPES).
67697         * m4/jm-macros.m4 (_GNU_SOURCE): Define.
67698         (AC_SYS_LARGEFILE): Require.
67699         (AM_C_PROTOTYPES): Require.
67700
67701 2000-04-08  Jim Meyering  <meyering@lucent.com>
67702
67703         * lib/Makefile.am (charset.alias): Use t-$@, not $@-t so the DOS 8.3
67704         names don't conflict.  Reported by Eli Zaretskii.
67705
67706 2000-04-07  Jim Meyering  <meyering@lucent.com>
67707
67708         * lib/putenv.c: Move inclusion of errno.h so it follows that of
67709         sys/types.h, to work around system header problems on AIX 3.2.5.
67710         From Bruno Haible.
67711
67712 2000-04-07  Bruno Haible  <haible@clisp.cons.org>
67713
67714         * lib/unicodeio.c (print_unicode_char): Avoid triggering Solaris iconv
67715         bug.  Deal with the different error behavior of Irix iconv.
67716
67717 2000-04-05  Paul Eggert  <eggert@twinsun.com>
67718
67719         * m4/largefile.m4 (AC_SYS_LARGEFILE_FLAGS): Don't use -n32 on
67720         IRIX if the installer said otherwise.
67721
67722 2000-04-05  Jim Meyering  <meyering@lucent.com>
67723
67724         Portability tweaks required for ultrix4.3.
67725         * m4/check-decl.m4 [!HAVE_UTMPX_H] (headers): Include <utmp.h>.
67726         (jm_CHECK_DECLS): Add getutent to the list of functions.
67727         (_jm_DECL_HEADERS): Add utmpx.h.
67728         From John David Anglin.
67729
67730         * m4/strftime.m4: Back out the 2000-04-02 change.
67731         Instead of that change, simply undefine putenv in the test program.
67732
67733 2000-04-05  Jim Meyering  <meyering@lucent.com>
67734
67735         Portability tweaks required for ultrix4.3.
67736         * lib/readutmp.h [HAVE_UTMPX_H && !HAVE_DECL_GETUTENT]: Declare
67737         getutent.
67738         * lib/readutmp.c: Include sys/types.h before sys/stat.h.
67739         * lib/canon-host.c: Declare strdup.
67740         * lib/path-concat.c: Likewise.
67741         From John David Anglin.
67742
67743 2000-04-04  Jim Meyering  <meyering@lucent.com>
67744
67745         Be more DOS 8.3-friendly.
67746         * lib/ref-add.sin: Renamed from ref-add.sed.in.
67747         * lib/ref-del.sin: Renamed from ref-del.sed.in.
67748         * lib/Makefile.am: Reflect renaming.
67749         Reported by Eli Zaretskii.
67750
67751         Use a temporary file name that won't clash with `charset.alias'
67752         in the DOS 8.3 name space.
67753         * lib/Makefile.am (charset_tmp): Define.
67754         (install-exec-local): Use $(charset_tmp) instead of $(charset_alias)-t.
67755         (uninstall-local): Likewise.
67756         Reported by Eli Zaretskii.
67757
67758 2000-04-03  Jim Meyering  <meyering@lucent.com>
67759
67760         * m4/gettext.m4: Fix typo in comment.
67761
67762         * m4/codeset.m4 (AC_CHECK_HEADERS): Add langinfo.h (moved here from
67763         textutils/configure.in).  Suggestion from Paul Eggert.
67764         (AC_CHECK_FUNCS): Add nl_langinfo.  (also from textutils/configure.in)
67765
67766 2000-04-02  Paul Eggert  <eggert@twinsun.com>
67767
67768         * m4/strftime.m4 (jm_FUNC_GNU_STRFTIME): Set TZ environment
67769         variable in the shell rather than using putenv, which isn't
67770         portable.  This avoids the configure-time inter-test dependency
67771         on the potentially-renamed putenv function.
67772
67773 2000-03-30  Paul Eggert  <eggert@twinsun.com>
67774
67775         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Include <sys/stat.h>
67776         before checking struct stat.st_blksize, so that
67777         HAVE_STRUCT_STAT_ST_BLKSIZE is defined correctly.
67778
67779 2000-03-29  Paul Eggert  <eggert@twinsun.com>
67780
67781         * m4/strftime.m4 (_jm_STRFTIME_PREREQS): Check for strftime,
67782         since strftime.c uses HAVE_STRFTIME to decide whether to use
67783         the underlying strftime.
67784
67785 2000-03-29  Paul Eggert  <eggert@twinsun.com>
67786
67787         * lib/time/strftime.c (my_strftime): Make sure we call the system
67788         strftime, not ourselves, when invoking the underlying strftime.
67789
67790 2000-03-24  Jim Meyering  <meyering@lucent.com>
67791
67792         * lib/Makefile.am (EXTRA_DIST): Add ref-add.sed.in and ref-del.sed.in.
67793         (charset_alias): Define.
67794         (install-exec-local): Factor out common code.
67795         (uninstall-local): Split lines longer than 80.
67796         (ref-add.sed, ref-del.sed): Remove rules... (do the following instead)
67797         (SUFFIXES): Define.
67798         (.sed.in.sed): New rule.  Don't redirect directly to $@.
67799         (CLEANFILES): Add ref-add.sed and ref-del.sed.
67800
67801 2000-03-19  Bruno Haible  <haible@clisp.cons.org>
67802
67803         * lib/config.charset: Output a line containing "Packages using this
67804         file".
67805         * lib/ref-add.sed.in, lib/ref-del.sed.in: New files.
67806         * lib/Makefile.am (install-exec-local, uninstall-local, ref-add.sed,
67807         ref-del.sed): New rules.
67808
67809 2000-03-17  Jim Meyering  <meyering@lucent.com>
67810
67811         * lib/unicodeio.c (<string.h>): Include only #if HAVE_STRING_H.
67812         Otherwise, include <strings.h>
67813
67814 2000-03-17  Bruno Haible  <haible@clisp.cons.org>
67815
67816         * lib/unicodeio.c (utf8_wctomb): New function.
67817         (print_unicode_char): Pass the Unicode character to iconv in UTF-8
67818         format instead of in UCS-4 with platform dependent endianness.
67819
67820 2000-03-10  Jim Meyering  <meyering@lucent.com>
67821
67822         * m4/lib-check.m4: Look for getspnam in -lgen, too.
67823         From Marco Franzen.
67824
67825 2000-03-07  Paul Eggert  <eggert@twinsun.com>
67826
67827         * lib/savedir.c (savedir): Work even if directory size is
67828         negative; this can happen with some screwy NFS configurations.
67829
67830 2000-03-06  Jim Meyering  <meyering@lucent.com>
67831
67832         * lib/localcharset.c (get_charset_aliases): Don't try to free file_name
67833         if it's NULL (because we ran out of memory).  From Bruno Haible.
67834
67835 2000-03-05  Jim Meyering  <meyering@lucent.com>
67836
67837         * lib/localcharset.c ("path-concat.h"): Include.
67838         (get_charset_aliases): Use path_concat instead of ANSI string
67839         concatenation.
67840
67841         * lib/unicodeio.h (PARAMS): Define.
67842         Use it to guard prototype.
67843
67844 2000-03-04  Jim Meyering  <meyering@lucent.com>
67845
67846         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Require AC_C_VOLATILE,
67847         for lib/localcharset.c.
67848
67849 2000-03-04  Jim Meyering  <meyering@lucent.com>
67850
67851         * lib/Makefile.am (install-exec-local): Create $(libdir) before
67852         installing into it.
67853         (uninstall-local): Uncomment this rule so `make distcheck' works
67854         once again.
67855
67856         * lib/unicodeio.c (<errno.h>): Include it.
67857         (errno): Declare if not defined.
67858
67859         * lib/localcharset.c: Add Bruno's comment justifying use of volatile.
67860
67861         * lib/config.charset: New version, incorporating remarks from a linux
67862         i18n mailing list.  From Bruno Haible.
67863
67864 2000-03-04  Bruno Haible  <haible@clisp.cons.org>
67865
67866         * m4/codeset.m4: New file.
67867         * m4/iconv.m4: New file.
67868         * m4/jm-macros.m4 (jm_MACROS): Call jm_LANGINFO_CODESET and jm_ICONV.
67869
67870 2000-03-03  Jim Meyering  <meyering@lucent.com>
67871
67872         * m4/regex.m4: Make sure re_compile_pattern accepts patterns like `{1'.
67873
67874 2000-03-02  Jim Meyering  <meyering@lucent.com>
67875
67876         * m4/timespec.m4: Require AC_HEADER_TIME before the cache check so
67877         the messages come out on separate lines.
67878
67879         * m4/jm-glibc-io.m4 (jm_FUNC_GLIBC_UNLOCKED_IO): Use AC_CHECK_DECLS,
67880         rather than jm_CHECK_DECLARATIONS.
67881         * m4/decl.m4: Remove now-unused file.
67882
67883         * m4/check-decl.m4 (AC_CHECK_DECLS): Add getlogin, ttyname, and
67884         geteuid.
67885
67886 2000-03-02  Jim Meyering  <meyering@lucent.com>
67887
67888         * lib/Makefile.am (EXTRA_DIST): Add config.charset.
67889
67890 2000-03-01  Jim Meyering  <meyering@lucent.com>
67891
67892         * lib/localcharset.c: Guard some #includes with `#if HAVE_...'.
67893         * lib/unicodeio.c: Likewise.
67894
67895 2000-03-01  Bruno Haible  <haible@clisp.cons.org>
67896
67897         * lib/config.charset: New file.
67898         * lib/localcharset.c: New file.
67899         * lib/unicodeio.h, lib/unicodeio.c: New files.
67900         * lib/Makefile.am (DEFS): Add -DLIBDIR=...
67901         (libfetish_a_SOURCES): Add localcharset.c and unicodeio.c.
67902         (noinst_HEADERS): Add unicodeio.h.
67903         (all-local, install-exec-local, charset.alias): New targets.
67904
67905 2000-02-28  Paul Eggert  <eggert@twinsun.com>
67906
67907         * lib/quotearg.c (ALERT_CHAR): New macro.
67908         (quotearg_buffer_restyled): Use it.
67909
67910 2000-02-27  Jim Meyering  <meyering@lucent.com>
67911
67912         * m4/check-decl.m4: Add getenv to the list.
67913
67914 2000-02-27  Jim Meyering  <meyering@lucent.com>
67915
67916         * lib/strtoumax.c: Fix typo in decl of strtoul: s/long long/long/.
67917         Guard declaration of strtoull also with `&& HAVE_UNSIGNED_LONG_LONG'.
67918
67919         * lib/backupfile.c: Guard inclusion of stdlib.h with
67920         `#if HAVE_STDLIB_H', not `#if STDC_HEADERS'.
67921         Declare malloc if needed.
67922
67923         * lib/backupfile.c: Use `#if !HAVE_DECL...' instead of
67924         `#ifndef HAVE_DECL..'
67925         now that autoconf always defines the HAVE_DECL_ symbols.
67926         * lib/human.c: Likewise.
67927         * lib/same.c: Likewise.
67928         * lib/strtoumax.c: Likewise.
67929
67930         * lib/backupfile.c: Arrange for cpp to fail if the configure-time
67931         declaration check was not run.
67932         * lib/hash.c: Likewise.
67933         * lib/human.c: Likewise.
67934         * lib/same.c: Likewise.
67935         * lib/strtoumax.c: Likewise.
67936
67937         * lib/userspec.c (parse_user_spec): If there is no `:' but there is a
67938         `.', then first look up the entire `.'-containing string as a login
67939         name.
67940
67941 2000-02-23  Jim Meyering  <meyering@lucent.com>
67942
67943         * m4/check-decl.m4: Now that we have the new AC_CHECK_DECLS, use it
67944         in place of my hack.
67945
67946 2000-02-18  Paul Eggert  <eggert@twinsun.com>
67947
67948         * lib/getdate.y: Handle two-digit years with leading zeros correctly.
67949         (textint): New typedef.
67950         (parser_control): Member year changed from int to textint.
67951         All uses changed.
67952         (YYSTYPE): Removed; replaced by %union with int and textint members.
67953         (tDAY, tDAY_UNIT, tDAYZONE, tHOUR_UNIT, tID, tLOCAL_ZONE, tMERIDIAN,
67954         tMINUTE_UNIT, tMONTH, tMONTH_UNIT tSEC_UNIT, tSNUMBER, tUNUMBER,
67955         tYEAR_UNIT, tZONE, o_merid): Now of type <intval>.
67956         (tSNUMBER, tUNUMBER): Now of type <textintval>.
67957         (date, number, to_year): Use width of number in digits, not its value,
67958         to determine whether it's a 2-digit year, or a 2-digit time.
67959         (yylex): Store number of digits of numeric tokens.
67960         Reported by John Kendall.
67961
67962         (parser_control): Changed from struct parser_control to typedef (for
67963         consistency).  All uses changed.
67964
67965         (tID): Removed; not used.
67966         (yylex): Return '?' for unknown identifiers, rather than (unused) tID.
67967
67968 2000-02-14  Paul Eggert  <eggert@twinsun.com>
67969
67970         * lib/getpagesize.h (getpagesize): Port to VMS for Alpha;
67971         adapted from changes to grep getpagesize.h by Martin P.J. Zinser.
67972
67973 2000-02-12  Jim Meyering  <meyering@lucent.com>
67974
67975         * lib/userspec.c (ISDIGIT): Define it.
67976         (isdigit): Remove definition.
67977         (is_number): Use ISDIGIT, not isdigit.
67978         <libintl.h>: Include.
67979         (_ and N_): Define.
67980         (parse_user_spec): Mark translatable strings.
67981
67982 2000-02-10  Jim Meyering  <meyering@lucent.com>
67983
67984         With these changes, nanosleep.[ch] are finally enough like the other
67985         lib/* replacement files to compile on a few more losing systems.
67986
67987         * lib/nanosleep.h: Don't include config.h.
67988         Remove prototype from declaration of nanosleep.
67989         (PARAMS): Remove now-unneeded definition.
67990         * lib/nanosleep.c: #undef nanosleep.
67991         (rpl_nanosleep): Rename from nanosleep.
67992
67993 2000-02-10  Jim Meyering  <meyering@lucent.com>
67994
67995         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): Rename replacement function from
67996         gnu_nanosleep to rpl_nanosleep.
67997
67998 2000-02-09  Jim Meyering  <meyering@lucent.com>
67999
68000         * m4/lib-check.m4 (jm_LIB_CHECK): Fix typo: check for sp_pwdp in
68001         struct spwd, rather than in struct passwd.  Reported by Gaël Quéri.
68002
68003 2000-02-08  Akim Demaille  <akim@epita.fr>
68004
68005         * m4/largefile.m4 (AC_SYS_LARGEFILE_FLAGS): Quote square brackets with
68006         `[' and `]' and remove uses of `changequote'.
68007         (AC_SYS_LARGEFILE_MACRO_VALUE): Likewise.
68008         (AC_SYS_LARGEFILE): Likewise.
68009         * m4/gettext.m4 (AM_GNU_GETTEXT): Likewise.
68010         * m4/strftime.m4 (jm_FUNC_GNU_STRFTIME): Remove now-unnecessary use
68011         of changequote.
68012         * m4/regex.m4 (jm_INCLUDED_REGEX): Likewise.
68013         * m4/readdir.m4 (jm_FUNC_READDIR): Likewise
68014         * m4/memcmp.m4 (jm_AC_FUNC_MEMCMP): Likewise, and add `int' for main.
68015         * m4/getloadavg.m4 (AM_FUNC_GETLOADAVG): Likewise.
68016
68017 2000-02-05  Jim Meyering  <meyering@lucent.com>
68018
68019         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Require most macros.
68020         Remove explicit use of AC_HEADER_TIME.  It is required by
68021         jm_CHECK_TYPE_STRUCT_TIMESPEC.  Using AC_HEADER_TIME and
68022         `AC_REQUIRE'ing jm_CHECK_TYPE_STRUCT_TIMESPEC provoked a but
68023         in autoconf whereby the expansion of the latter ended up preceding
68024         the expansion of its prerequisite, AC_HEADER_TIME.
68025         Reported by Volker Borchert.
68026
68027 2000-02-03  Jim Meyering  <meyering@lucent.com>
68028
68029         * m4/prereq.m4 (jm_PREREQ_READUTMP): Check for utmpxname.
68030
68031 2000-02-03  Jim Meyering  <meyering@lucent.com>
68032
68033         * lib/readutmp.c (read_utmp): Guard with `#ifdef UTMP_NAME_FUNCTION',
68034         rather than with `#if HAVE_UTMPNAME'.
68035
68036 2000-02-02  Jim Meyering  <meyering@lucent.com>
68037
68038         * m4/prereq.m4 (jm_PREREQ_ADDEXT): Fix typo that resulted in no
68039         definition of HAVE_PATHCONF: s/AC_CHECK_FUNC/AC_CHECK_FUNCS/.
68040         Reported by Eli Zaretskii.
68041
68042 2000-02-01  Jim Meyering  <meyering@lucent.com>
68043
68044         * lib/readutmp.h (UT_USER): Add parens.  From Andreas Schwab.
68045
68046 2000-01-31  Jim Meyering  <meyering@lucent.com>
68047
68048         * m4/check-decl.m4 (jm_CHECK_DECLS): Add nanosleep to the list of
68049         functions.  Add the time.h and sys/time.h headers along with the
68050         AC_REQUIRE'ment of AC_HEADER_TIME.
68051
68052 2000-01-31  Jim Meyering  <meyering@lucent.com>
68053
68054         * lib/nanosleep.h (nanosleep): Guard declaration with
68055         `#if ! HAVE_DECL_NANOSLEEP'.
68056         Without this, OFS gets a redeclaration error for rpl_nanosleep, due to
68057         the declaration in that vendor's sys/timers.h.
68058         Reported by Christian Krackowizer.
68059
68060         * lib/quotearg.c (ISASCII): Add #undef and move definition to follow
68061         inclusion of wctype.h to work around Solaris 2.6 namespace pollution.
68062         (ISPRINT): Likewise.
68063         Reported by Tom Tromey.
68064
68065 2000-01-30  Jim Meyering  <meyering@lucent.com>
68066
68067         * m4/lib-check.m4: Clean up some kludgy old shadow password tests.
68068
68069         * m4/prereq.m4 (utmp_includes): Define.
68070         Check for ut_user and ut_name members in both struct utmpx
68071         and struct utmp.
68072
68073 2000-01-30  Jim Meyering  <meyering@lucent.com>
68074
68075         * lib/readutmp.c (extract_trimmed_name): Use UT_USER instead of
68076         hard-coding uses of ->ut_name.  The latter doesn't work with new Linux
68077         header files where only utmpx.ut_user is declared.
68078
68079         * lib/readutmp.h (UT_USER): Define.
68080
68081 2000-01-29  Jim Meyering  <meyering@lucent.com>
68082
68083         * m4/lib-check.m4: New file containing library-related checks from
68084         fileutils and sh-utils (textutils had none).
68085
68086 2000-01-28  Jim Meyering  <meyering@lucent.com>
68087
68088         * m4/perl.m4: Change format of warning message to look more like that
68089         from the missing script.  Suggestion from François Pinard.
68090
68091 2000-01-25  Jim Meyering  <meyering@lucent.com>
68092
68093         * m4/timespec.m4: Require AC_HEADER_TIME, and include sys/time.h as
68094         well as time.h in the compile check.
68095         * m4/nanosleep.m4: Require AC_HEADER_TIME rather than simply using it.
68096         Fix typo in cross-compiling case: s/yes/no/.
68097
68098 2000-01-23  Jim Meyering  <meyering@lucent.com>
68099
68100         * m4/jm-macros.m4: Move df-related tests here from
68101         fileutils/configure.in
68102
68103         * m4/ls-mntd-fs.m4: s/list_mounted_fs/ac_list_mounted_fs/
68104         (jm_LIST_MOUNTED_FILESYSTEMS): Take two parameters.
68105
68106         * m4/fsusage.m4: New file.  Extracted from fileutils/configure.in.
68107         s/space/ac_fsusage_space/.
68108         (jm_FILE_SYSTEM_USAGE): Take two parameters.
68109
68110         * m4/ftruncate.m4: New file (derived from part of
68111         fileutils/configure.in).
68112         * m4/jm-macros.m4 (jm_FUNC_FTRUNCATE): AC_REQUIRE it.
68113         (jm_CHECK_ALL_TYPES): Require AC_HEADER_MAJOR and AC_HEADER_DIRENT.
68114
68115         * m4/jm-macros.m4 (OPTIONAL_BIN_PROGS, OPTIONAL_BIN_ZCRIPTS, MAN):
68116         AC_SUBST these here, rather than just in sh-util/configure.in, so
68117         that the now-shared-by-fileutils-and-textutils lib/Makefile.am are
68118         all the same.
68119         (AM_FUNC_OBSTACK): Add (from fileutils/configure.in).
68120         (AC_CHECK_FUNCS): Merge all checks from fileutils, textutils, sh-utils.
68121         (AM_FUNC_STRTOD): Added (from textutils', sh-utils' configure.in).
68122         (AC_SUBST(POW_LIBM)): Likewise.
68123         (AC_SUBST(DF_PROG)): Moved from fileutils/configure.in.
68124
68125 2000-01-23  Jim Meyering  <meyering@lucent.com>
68126
68127         * lib/Makefile.am (libfetish_a_SOURCES): Remove explicit mention of
68128         obstack.c.
68129
68130 2000-01-22  Jim Meyering  <meyering@lucent.com>
68131
68132         * m4/jm-macros.m4: Call AC_PROG_CC_STDC just before AC_C_CONST.
68133
68134         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): Add wctype.h.
68135
68136         * m4/jm-macros.m4 (AC_CHECK_HEADERS): Add checks from fileutils'
68137         configure.in
68138         (AC_CHECK_HEADERS): Likewise for sh-utils.
68139         (AC_CHECK_HEADERS): Likewise for textutils.
68140         Merge the three lists of headers.
68141
68142         * m4/prereq.m4 (jm_PREREQ_ADDEXT): New macro.  Parts moved here
68143         from fileutils' configure.in.
68144
68145         * m4/decl.m4: Remove kludgy `test -z $ac_...AC_CHECK_HEADERS(...)'
68146         code. Moved tests into their own function (_jm_DECL_HEADERS) in
68147         check-decl.m4.
68148
68149         * m4/check-decl.m4: Use #if rather than #ifdef.
68150         Add HAVE_DECL_STRTOUL and HAVE_DECL_STRTOULL.
68151         (jm_CHECK_DECLARATIONS): Add strtoul strtoull.
68152         (_jm_DECL_HEADERS): Define new function.
68153         (jm_CHECK_DECLARATIONS): Require it.
68154
68155 2000-01-22  Jim Meyering  <meyering@lucent.com>
68156
68157         * lib/strtoumax.c: [! HAVE_DECL_STRTOUL]: Declare strtoul.
68158         [! HAVE_DECL_STRTOULL]: Declare strtoull.
68159         Required for some AIX systems.  Reported by Christian Krackowizer.
68160         [TESTING] (main): New function.
68161
68162         1997-10-17  Eli Zaretskii  <eliz@is.elta.co.il>
68163         * lib/dirname.c (dir_name): Support for DOS-style file names with drive
68164         letters.
68165
68166         * lib/quotearg.c [HAVE_WCTYPE_H]: Include <wctype.h> for decl of
68167         iswprint.
68168
68169         * lib/strverscmp.c (ISDIGIT): Define.
68170         (strverscmp): Use ISDIGIT, not isdigit.
68171
68172 2000-01-19  Jim Meyering  <meyering@lucent.com>
68173
68174         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): Include <sys/time.h>, too.
68175         Use AC_HEADER_TIME.  Volker Borchert reported that OpenBSD-2.3/sparc
68176         defines `struct timespec' in <sys/time.h>
68177
68178         * m4/c-bs-a.m4: Remove uses of changequote altogether.
68179         Thanks to Akim for explaining.
68180
68181 2000-01-17  Paul Eggert  <eggert@twinsun.com>
68182
68183         * lib/nanosleep.c (nanosleep):
68184         Don't use SA_INTERRUPT to decide whether to call sigaction, as
68185         POSIX.1 doesn't require SA_INTERRUPT and some systems
68186         (e.g. Solaris 7) don't define it.  Use SA_NOCLDSTOP instead;
68187         it's been part of POSIX.1 since day 1 (in 1988).
68188
68189 2000-01-17  Jim Meyering  <meyering@lucent.com>
68190
68191         * lib/interlock: Remove unused file.  Reported by François Pinard.
68192
68193 2000-01-16  Paul Eggert  <eggert@twinsun.com>
68194
68195         * lib/quotearg.c (quotearg_buffer_restyled): Do not quote
68196         alert, backslash, formfeed, and vertical tab unnecessarily in
68197         shell quoting style.
68198
68199 2000-01-16  Jim Meyering  <meyering@lucent.com>
68200
68201         * m4/jm-macros.m4: Require jm_FUNC_GROUP_MEMBER, jm_FUNC_PUTENV,
68202         AM_FUNC_ERROR_AT_LINE, jm_FUNC_GNU_STRFTIME, jm_FUNC_MKTIME,
68203         jm_FUNC_GETGROUPS AC_FUNC_VPRINTF, AC_FUNC_ALLOCA,
68204         AM_FUNC_GETLOADAVG, and jm_SYS_PROC_UPTIME.
68205
68206 2000-01-16  Jim Meyering  <meyering@lucent.com>
68207
68208         * m4/c-bs-a.m4: Use `changequote(<<,>>)', rather than `changequote(, )'
68209         because the latter didn't work.
68210
68211 2000-01-15  Jim Meyering  <meyering@lucent.com>
68212
68213         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add gethostname and getusershell.
68214         (AC_REPLACE_FUNCS): Add memcpy and memset.
68215         Add these, too: stime strcspn stpcpy strstr strtol strtoul.
68216         Add strpbrk.
68217         Add these: euidaccess memcmp mkdir rmdir rpmatch strndup strverscmp.
68218
68219 2000-01-12  Jim Meyering  <meyering@lucent.com>
68220
68221         * m4/prereq.m4 (jm_PREREQ_CANON_HOST): New macro.
68222         (jm_PREREQ): Use it.
68223         (jm_PREREQ_READUTMP): New macro.
68224         (jm_PREREQ): Use it.
68225
68226 2000-01-11  Paul Eggert  <eggert@twinsun.com>
68227
68228         Quote multibyte characters correctly.
68229         * m4/c-bs-a.m4: New file.
68230         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): New macro.
68231         (jm_PREREQ): Use it.
68232
68233 2000-01-11  Paul Eggert  <eggert@twinsun.com>
68234
68235         * m4/uintmax_t.m4: Port to autoconf 2.13.
68236
68237 2000-01-08  Jim Meyering  <meyering@ascend.com>
68238
68239         * m4/strerror_r.m4 (jm_FUNC_STRERROR_R): New file/macro.
68240         * m4/jm-macros.m4 (jm_FUNC_STRERROR_R): Require it.
68241
68242 2000-01-04  Jim Meyering  <meyering@ascend.com>
68243
68244         * m4/d-type.m4 (jm_CHECK_TYPE_STRUCT_DIRENT_D_TYPE): Rename from
68245         jm_STRUCT_DIRENT_D_TYPE.
68246         * m4/d-ino.m4 (jm_CHECK_TYPE_STRUCT_DIRENT_D_INO): Rename from
68247         jm_STRUCT_DIRENT_D_INO.
68248         * m4/utimbuf.m4 (jm_CHECK_TYPE_STRUCT_UTIMBUF): Rename from
68249         jm_STRUCT_UTIMBUF.
68250         * m4/jm-macros.m4: Reflect s/jm_STRUCT_/jm_CHECK_TYPE_STRUCT_/
68251         renamings.
68252         * m4/utime.m4: Likewise.
68253
68254         * m4/timespec.m4 (jm_CHECK_TYPE_STRUCT_TIMESPEC): New file, macro.
68255         * m4/jm-macros.m4 (jm_CHECK_TYPE_STRUCT_TIMESPEC): Require it.
68256
68257 2000-01-03  Paul Eggert  <eggert@twinsun.com>
68258
68259         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): Search for nanosleep in -lrt
68260         (for Solaris 7) and in -lposix4 (for Solaris 2.5.1).
68261
68262 2000-01-02  Jim Meyering  <meyering@ascend.com>
68263
68264         * m4/search-libs.m4: Escape `$' in $3 of dnl comment.  I no longer
68265         remember if this is necessary.
68266
68267 1999-12-26  Jim Meyering  <meyering@ascend.com>
68268
68269         * m4/jm-macros.m4: Use it here.
68270         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): New file/macro.
68271
68272 1999-12-23  Jim Meyering  <meyering@ascend.com>
68273
68274         * m4/jm-macros.m4: Check for clock_gettime (moved from
68275         fileutils/configure.in)
68276         Check for gettimeofday.
68277
68278 1999-12-20  Jim Meyering  <meyering@ascend.com>
68279
68280         * m4/strftime.m4: Remove kludge, now that I'm using the fixed
68281         autoconf-2.14a-1999-12-20.
68282
68283 1999-12-19  Jim Meyering  <meyering@ascend.com>
68284
68285         * m4/lstat-slash.m4: New file.
68286         * m4/jm-macros.m4: Use the new macro:
68287         jm_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
68288
68289 1999-12-07  Jim Meyering  <meyering@ascend.com>
68290
68291         * m4/perl.m4: Require that File::Compare be available, too.
68292         Too many systems seem to lack it.
68293
68294         * m4/strftime.m4: Add checks for most of the cpp macros tested in
68295         GNU's strftime.c.  Prompted by a patch from Paul Eggert.
68296
68297 1999-11-18  Paul Eggert  <eggert@twinsun.com>
68298
68299         * m4/largefile.m4 (AC_SYS_LARGEFILE_FLAGS): Work around a
68300         problem with the QNX 4.25 shell, which doesn't propagate exit
68301         status of failed commands inside shell assignments.
68302
68303 1999-11-17  Jim Meyering  <meyering@ascend.com>
68304
68305         * m4/gettext.m4: Use new AC_CONFIG_LINKS in place of AC_LINK_FILES.
68306
68307 1999-11-07  Jim Meyering  <meyering@ascend.com>
68308
68309         * m4/getloadavg.m4: Add `, 1, [FIXME]' to each use of AC_DEFINE.
68310
68311 1999-11-06  Jim Meyering  <meyering@ascend.com>
68312
68313         * m4/link-follow.m4 (jm_AC_FUNC_LINK_FOLLOWS_SYMLINK): New file/macro.
68314         * m4/jm-macros.m4 (jm_MACROS): Use it here.
68315
68316 1999-11-05  Jim Meyering  <meyering@ascend.com>
68317
68318         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Move some tests from
68319         configure.in of textutils, fileutils, and sh-utils into this one
68320         (shared between those packages) file.
68321         Use `AC_CHECK_MEMBERS((struct stat.st_blksize))' instead of deprecated
68322         AC_STRUCT_ST_BLKSIZE.
68323
68324 1999-11-03  Jim Meyering  <meyering@ascend.com>
68325
68326         * m4/ssize_t.m4: Remove file.  No longer needed since the new version
68327         of AC_CHECK_TYPE checks includes unistd.h.
68328         * m4/jm-macros.m4: Use straight `AC_CHECK_TYPE(ssize_t, int)'.
68329         Suggestion from Akim Demaille.
68330
68331 1999-10-30  Jim Meyering  <meyering@ascend.com>
68332
68333         * m4/uintmax_t.m4: Require 2.14a.  Remove backslash before backtick in
68334         m4-quoted string.
68335         * m4/ls-mntd-fs.m4: Likewise.
68336         * m4/jm-macros.m4: Likewise.  Also, use AC_TYPE_SSIZE_T instead
68337         * m4/jm-winsz1.m4: Likewise.
68338
68339         * m4/const.m4: Remove file, since the fix made it into the experimental
68340         version of autoconf.
68341         * m4/mktime.m4: Likewise.
68342
68343         * m4/check-type.m4: Remove file, now that the latest version of
68344         AC_CHECK_TYPE takes a third arg to specify additional #includes.
68345
68346         * m4/ssize_t.m4: New file, requires experimental version of autoconf.
68347         * m4/jm-macros.m4: Use new AC_TYPE_SSIZE_T instead of my hacked
68348         AC_CHECK_TYPE.
68349
68350 1999-10-04  Jim Meyering  <meyering@ascend.com>
68351
68352         * m4/jm-macros.m4: Don't require autoconf-2.14.1.
68353
68354 1999-09-22  Paul Eggert  <eggert@twinsun.com>
68355
68356         * m4/largefile.m4 (AC_SYS_LARGEFILE_FLAGS): Work around GCC
68357         2.95.1 bug with HP-UX 10.20.
68358
68359 1999-09-17  Jim Meyering  <meyering@ascend.com>
68360
68361         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add strdup.
68362         Paul Nevai reported a link failure on a NeXT CUBE with NeXTSTEP 3.3
68363         due to missing strdup (against sh-utils-2.0).
68364
68365 1999-08-29  Jim Meyering  <meyering@ascend.com>
68366
68367         * m4/jm-macros.m4: Require jm_BISON.
68368         * m4/bison.m4: New file.
68369
68370 1999-08-17  Paul Eggert  <eggert@twinsun.com>
68371
68372         * m4/largefile.m4 (AC_SYS_LARGEFILE): Fix typo: missing comma
68373         in value for _FILE_OFFSET_BITS, which broke ports to HP-UX 10.20.
68374
68375 1999-08-05  Jim Meyering  <meyering@ascend.com>
68376
68377         * m4/getline.m4: Rename test file from conftestdata to conftest.data
68378         to avoid conflicts with `conftest' on 8+3 filesystems.
68379         Suggestion from Eli Zaretskii.
68380
68381 1999-08-04  Jim Meyering  <meyering@ascend.com>
68382
68383         * m4/jm-macros.m4: Move a 4-line block of code from the configure.in of
68384         fileutils and sh-utils (textutils's getline test was inadequate).
68385         (AM_FUNC_GETLINE): Run this test.
68386         (AC_CHECK_FUNCS): Check for getdelim.
68387         Reported by Bob Proulx.
68388
68389 1999-08-02  Jim Meyering  <meyering@ascend.com>
68390
68391         * m4/jm-macros.m4: Add a comment.
68392
68393 1999-08-01  Paul Eggert  <eggert@twinsun.com>
68394
68395         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): Check whether
68396         <inttypes.h> defines strtoumax as a macro (and not as a
68397         function).
68398
68399 1999-08-01  Paul Eggert  <eggert@twinsun.com>
68400
68401         * m4/ulonglong.m4 (jm_AC_TYPE_UNSIGNED_LONG_LONG): Make sure
68402         that we can shift, multiply and divide unsigned long long
68403         values; Ultrix cc can't do it.
68404
68405 1999-08-01  Paul Eggert  <eggert@twinsun.com>
68406
68407         * m4/mktime.m4: New file, which is a preview of what should appear
68408         in the next public autoconf release.
68409
68410 1999-08-01  Paul Eggert  <eggert@twinsun.com>
68411
68412         * m4/lfs.m4: Remove this file.
68413         * m4/largefile.m4: New file.  It contains the old contents of
68414         lfs.m4, except that all names with prefix AC_LFS have been
68415         changed to use the prefix AC_SYS_LARGEFILE instead, to be
68416         compatible with future autoconf versions.  Also, some minor m4
68417         quoting problems have been fixed.
68418
68419 1999-08-01  Paul Eggert  <eggert@twinsun.com>
68420
68421         * m4/gettext.m4 (AM_WITH_NLS): Remove unnecessary lines.
68422         Fix typo: $nls_cv_header_intl was misspelled as $nsl_cv_header_intl.
68423         (AM_GNU_GETTEXT): Fix problem with brackets and m4 quoting,
68424         and simplify the shell code.
68425
68426 1999-08-01  Jim Meyering  <meyering@ascend.com>
68427
68428         * m4/mktime.m4 (AC_FUNC_MKTIME): Undefine to avoid syntax errors from
68429         m4.
68430
68431 1999-07-20  Jim Meyering  <meyering@ascend.com>
68432
68433         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add memmove.
68434
68435 1999-07-15  Jim Meyering  <meyering@ascend.com>
68436
68437         * m4/jm-macros.m4 (AC_CHECK_FUNCS): Check for getpagesize.
68438
68439 1999-05-22  Jim Meyering  <meyering@ascend.com>
68440
68441         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add memchr.
68442
68443 1999-05-20  Jim Meyering  <meyering@ascend.com>
68444
68445         * m4/search-libs.m4 [AC_SEARCH_LIBS]: Quote name in undefine.
68446         Add a colon after each `then' in case $4 is empty.
68447
68448 1999-05-16  Jim Meyering  <meyering@ascend.com>
68449
68450         * m4/search-libs.m4: New file to override autoconf's AC_SEARCH_LIBS.
68451
68452 1999-05-10  Jim Meyering  <meyering@ascend.com>
68453
68454         * m4/jm-mktime.m4: Reflect renaming: AM_FUNC_MKTIME -> AC_FUNC_MKTIME.
68455
68456         * m4/jm-macros.m4: Require 2.14.1, since we use newly-renamed
68457         AC_FUNC_MKTIME.
68458
68459 1999-05-10  Andreas Schwab  <schwab@issan.cs.uni-dortmund.de>
68460
68461         * m4/jm-mktime.m4, putenv.m4: Fix typos in config.h comments.
68462
68463 1999-05-04  Paul Eggert  <eggert@twinsun.com>
68464
68465         * m4/lfs.m4 (AC_LFS): -n32, -o32, and -n64 should be in CFLAGS,
68466         not CPPFLAGS, so that linking works correctly in IRIX.
68467
68468 1999-04-30  Paul Eggert  <eggert@twinsun.com>
68469
68470         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add dup2.
68471
68472 1999-04-20  Paul Eggert  <eggert@twinsun.com>
68473
68474         * m4/uintmax_t.m4 (jm_AC_TYPE_UINTMAX_T): Move unsigned long
68475         long check into new jm_AC_TYPE_UNSIGNED_LONG_LONG macro.
68476         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Require
68477         jm_AC_TYPE_UNSIGNED_LONG_LONG.
68478         * m4/ulonglong.m4 (jm_AC_TYPE_UNSIGNED_LONG_LONG): New file/macro.
68479
68480         * m4/lfs.m4: Port to AIX and HP-UX.  Support cross-compilation.
68481
68482 1999-04-20  Jim Meyering  <meyering@ascend.com>
68483
68484         * m4/xstrtoumax.m4: Require jm_AC_TYPE_UNSIGNED_LONG_LONG.
68485         AC_REPLACE xstroull if necessary.  From Paul Eggert.
68486         (AC_CHECK_FUNCS): Remove strtoull, strtoumax, strtouq.
68487
68488 1999-04-18  Jim Meyering  <meyering@ascend.com>
68489
68490         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): New file/macro.
68491         * m4/jm-macros.m4: Use it.
68492
68493 1999-04-06  Jim Meyering  <meyering@ascend.com>
68494
68495         * m4/strftime.m4: Remove test for %f.
68496
68497 1999-03-29  Jim Meyering  <meyering@ascend.com>
68498
68499         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): New macro, contains the
68500         superset of the AC_TYPE_* checks in the textutils, fileutils,
68501         and sh-utils, plus AC_TYPE_PID_T.  Paul Eggert suggested adding
68502         AC_TYPE_PID_T.
68503
68504 1999-03-28  Jim Meyering  <meyering@ascend.com>
68505
68506         * m4/jm-macros.m4: Define GNU_PACKAGE here.
68507         Be sure to AC_SUBST it, once again, so that @GNU_PACKAGE@ is
68508         replaced e.g., in the *.sh files of the sh-utils.
68509
68510 1999-03-20  Jim Meyering  <meyering@ascend.com>
68511
68512         * m4/jm-macros.m4: s/jm_WITH_REGEX/jm_INCLUDED_REGEX/.
68513         * m4/regex.m4 (jm_INCLUDED_REGEX): Rename from jm_WITH_REGEX.
68514         Don't depend on AM_GLIBC.  Suggestions from Alain Magloire.
68515
68516 1999-03-19  Jim Meyering  <meyering@ascend.com>
68517
68518         * m4/jm-winsz1.m4 (jm_WINSIZE_IN_PTEM): New macro.
68519
68520 1999-03-12  Jim Meyering  <meyering@ascend.com>
68521
68522         * m4/jm-macros.m4: Use AC_FUNC_SETVBUF_REVERSED.
68523
68524 1999-03-07  Jim Meyering  <meyering@ascend.com>
68525
68526         * m4/jm-glibc-io.m4: Use only those *_unlocked macros that are
68527         declared.
68528
68529 1999-02-17  Jim Meyering  <meyering@ascend.com>
68530
68531         * m4/gettext.m4 (AM_GNU_GETTEXT): Do `changequote' around use of
68532         brackets in macro definition.  From Eli Zaretskii and Alain Magloire.
68533
68534 1999-02-07  Jim Meyering  <meyering@ascend.com>
68535
68536         * m4/group-member.m4: New file -- extracted from sh-utils'
68537         configure.in.
68538
68539         1999-02-05  Eli Zaretskii  <eliz@is.elta.co.il>
68540         * m4/gettext.m4: Support DOS-style d:/foo/bar absolute file names.
68541
68542 1999-02-06  Jim Meyering  <meyering@ascend.com>
68543
68544         * m4/chown.m4: Use `AC_SUBST(LIBOBJS)' since we set LIBOBJS.
68545         * m4/fnmatch.m4: Likewise.
68546         * m4/getgroups.m4: Likewise.
68547         * m4/lstat.m4: Likewise.
68548         * m4/malloc.m4: Likewise.
68549         * m4/putenv.m4: Likewise.
68550         * m4/realloc.m4: Likewise.
68551         * m4/regex.m4: Likewise.
68552         * m4/stat.m4: Likewise.
68553         * m4/strftime.m4: Likewise.
68554         Suggestion from Alain Magloire.
68555
68556         * m4/chown.m4: Use `.$ac_objext', not `.o'.
68557         * m4/fnmatch.m4: Likewise.
68558         * m4/getgroups.m4: Likewise.
68559         * m4/getline.m4: Likewise.
68560         * m4/lstat.m4: Likewise.
68561         * m4/malloc.m4: Likewise.
68562         * m4/memcmp.m4: Likewise.
68563         * m4/putenv.m4: Likewise.
68564         * m4/realloc.m4: Likewise.
68565         * m4/regex.m4: Likewise.
68566         * m4/stat.m4: Likewise.
68567         * m4/strftime.m4: Likewise.
68568         Suggestion from Alain Magloire.
68569
68570         * m4/jm-macros.m4: Actually invoke jm_WITH_REGEX now that it requires
68571         an argument.
68572
68573         * m4/regex.m4: Add a run-time Test for proper operation of
68574         re_compile_pattern.
68575
68576 1999-01-31  Jim Meyering  <meyering@ascend.com>
68577
68578         * m4/getloadavg.m4: Check for locale.h and the function, setlocale.
68579
68580 1999-01-30  Jim Meyering  <meyering@ascend.com>
68581
68582         * m4/check-type.m4: Use 3-arg form of AC_DEFINE.
68583
68584         * m4/jm-mktime.m4: Make this a wrapper around the official
68585         AM_FUNC_MKTIME rather than my private copy, now that the official one
68586         is up to date.
68587         * m4/mktime.m4: Remove file.
68588
68589         * m4/getloadavg.m4: Use 3-arg form of AC_DEFINE.
68590         * m4/uptime.m4: Likewise.
68591         * m4/uintmax_t.m4: Likewise.
68592
68593 1999-01-28  Jim Meyering  <meyering@ascend.com>
68594
68595         * m4/jm-macros.m4: Use jm_AFS.
68596         * m4/afs.m4: New file (from fileutils' configure.in).
68597
68598         * m4/assert.m4: Use the 3-argument forms of AC_DEFINE* macros.
68599         * m4/chown.m4: Likewise.
68600         * m4/d-ino.m4: Likewise.
68601         * m4/d-type.m4: Likewise.
68602         * m4/fnmatch.m4: Likewise.
68603         * m4/getgroups.m4: Likewise.
68604         * m4/gettext.m4: Likewise.
68605         * m4/jm-mktime.m4: Likewise.
68606         * m4/jm-winsz2.m4: Likewise.
68607         * m4/lcmessage.m4: Likewise.
68608         * m4/ls-mntd-fs.m4: Likewise.
68609         * m4/malloc.m4: Likewise.
68610         * m4/memcmp.m4: Likewise.
68611         * m4/putenv.m4: Likewise.
68612         * m4/realloc.m4: Likewise.
68613         * m4/st_mtim.m4: Likewise.
68614         * m4/strftime.m4: Likewise.
68615
68616 1999-01-16  Jim Meyering  <meyering@ascend.com>
68617
68618         * m4/jm-macros.m4 (ARGMATCH_DIE): Define.
68619         (ARGMATCH_DIE_DECL): Define.
68620
68621 1999-01-12  Jim Meyering  <meyering@ascend.com>
68622
68623         * m4/Makefile.am.in: Rewrite to avoid using fmt.
68624         Reported by Lars Hecking.
68625
68626 1999-01-10  Jim Meyering  <meyering@ascend.com>
68627
68628         * m4/fstypename.m4: Use the new 3-arg form of AC_DEFINE instead of my
68629         gross kludge.
68630         * m4/inttypes_h.m4: Likewise.
68631         * m4/lstat.m4: Likewise.
68632         * m4/malloc.m4: Likewise.
68633         * m4/readdir.m4: Likewise.
68634         * m4/realloc.m4: Likewise.
68635         * m4/st_dm_mode.m4: Likewise.
68636         * m4/stat.m4: Likewise.
68637         * m4/utimbuf.m4: Likewise.
68638         * m4/utimes.m4: Likewise.
68639
68640         * m4/check-decl.m4: Use the new 3-arg form of AC_DEFINE instead of the
68641         AC_CHECK_FUNCS hack.  Now, it's still a hack, but at least the
68642         comments in config.h.in are meaningful.
68643
68644         * m4/jm-macros.m4: Require autoconf-2.13 here.
68645
68646         * m4/regex.m4: By default, don't use the included regex.c on systems
68647         with glibc 2.  Suggestion from Uli Drepper.
68648
68649 1999-01-02  Jim Meyering  <meyering@ascend.com>
68650
68651         * m4/jm-macros.m4: Replace strcasecmp and strncasecmp.
68652
68653 1998-12-18  Jim Meyering  <meyering@ascend.com>
68654
68655         * m4/Makefile.am.in (Makefile.am): Simplify rule.
68656         Based on a suggestion from Lars Hecking.
68657
68658 1998-11-16  Paul Eggert  <eggert@twinsun.com>
68659
68660         * m4/lfs.m4 (AC_LFS): Add support for HP-UX 10.20 and HP-UX 11.
68661
68662 1998-11-16  Jim Meyering  <meyering@ascend.com>
68663
68664         * m4/lfs.m4: Double-quote the `uname...` expression.
68665
68666 1998-11-14  Jim Meyering  <meyering@ascend.com>
68667
68668         * m4/lstat.m4: Correct comment.  POSIX does not permit it to succeed.
68669         * m4/stat.m4: Likewise.
68670
68671 1998-11-03  Jim Meyering  <meyering@ascend.com>
68672
68673         * m4/stat.m4: Rewrite to set HAVE_STAT_EMPTY_STRING_BUG.
68674         * m4/lstat.m4: Rewrite to set HAVE_LSTAT_EMPTY_STRING_BUG.
68675
68676 1998-10-18  Jim Meyering  <meyering@ascend.com>
68677
68678         * m4/check-decl.m4 (jm_CHECK_DECL_LOCALTIME_R): Remove macro.
68679
68680 1998-10-17  Jim Meyering  <meyering@ascend.com>
68681
68682         * m4/decl.m4 (jm_CHECK_DECLARATION): Don't hard-code which headers to
68683         include, though we still hard-code the `require'-like AC_CHECK_HEADERS
68684         calls for those previously hard-coded headers.  Instead, take a new
68685         parameter.
68686         (jm_CHECK_DECLARATIONS): Reflect interface change.
68687         * m4/check-decl.m4 (jm_CHECK_DECLS): Likewise.
68688         (jm_CHECK_DECL_LOCALTIME_R): New macro.
68689
68690         * m4/mktime.m4: Test for spring-forward gap before long-running test.
68691
68692 1998-10-14  Jim Meyering  <meyering@ascend.com>
68693
68694         * m4/mktime.m4: Use the more portable "TZ=PST8PDT,M4.1.0,M10.5.0"
68695         instead of "TZ=America/Vancouver".  From Paul Eggert.
68696
68697 1998-10-11  Jim Meyering  <meyering@ascend.com>
68698
68699         * m4/mktime.m4 (jm_AM_FUNC_MKTIME): New file and macro.
68700         This adds a test for a recently added compatibility fix for mktime.c.
68701         * m4/jm-mktime.m4: Require jm_AM_FUNC_MKTIME, not AM_FUNC_MKTIME.
68702
68703 1998-09-27  Jim Meyering  <meyering@ascend.com>
68704
68705         * m4/jm-macros.m4 (jm_MACROS): Require jm_FUNC_FNMATCH.
68706
68707         * m4/fnmatch.m4 (jm_FUNC_FNMATCH): New file/macro.  Extracted from
68708         ../configure.in, including a change from Gordon Matzigkeit to allow
68709         cross-compiling for the Hurd.
68710
68711         * m4/glibc.m4: New file/macro to test for the GNU C Library
68712         versions 1 and 2.  From Gordon Matzigkeit.
68713         Indent.
68714
68715 1998-09-21  Jim Meyering  <meyering@ascend.com>
68716
68717         * m4/chown.m4: Declare locals: before, after.  From Andries Brouwer.
68718
68719 1998-08-18  Paul Eggert  <eggert@twinsun.com>
68720
68721         Port nanosecond-resolution times to UnixWare 2.1.2 and
68722         pedantic Solaris 2.6.
68723
68724         * m4/st_mtim.m4 (AC_STRUCT_ST_MTIM_NSEC): Renamed from
68725         AC_STRUCT_ST_MTIM.
68726         * m4/st_mtim.m4 (AC_STRUCT_ST_MTIM_NSEC):
68727         Generate name of ns member, instead of just 1 or undef.
68728         Allow for UnixWare 2.1.2 and Solaris 2.6 if in pedantic mode.
68729
68730 1998-08-15  Jim Meyering  <meyering@ascend.com>
68731
68732         * m4/ssize_t.m4 (jm_TYPE_SSIZE_T): Remove file.
68733         * m4/check-type.m4: New file.  Replacement for AC_CHECK_TYPE.
68734         * m4/jm-macros.m4: Use the new AC_CHECK_TYPE(ssize_t, int)
68735         instead of jm_TYPE_SSIZE_T.
68736
68737 1998-08-12  Jim Meyering  <meyering@ascend.com>
68738
68739         * m4/st_dm_mode.m4: New file.  From Johan Danielsson.
68740
68741 1998-08-02  Jim Meyering  <meyering@ascend.com>
68742
68743         * m4/st_mtim.m4: Use hack to avoid having to put #undef HAVE_ST_MTIM
68744         in acconfig.h manually.
68745
68746 1998-07-31  Paul Eggert  <eggert@twinsun.com>
68747
68748         * m4/st_mtim.m4: New file.
68749
68750 1998-07-28  Jim Meyering  <meyering@ascend.com>
68751
68752         * m4/utimes.m4: Undef stat.
68753
68754 1998-07-25  Jim Meyering  <meyering@ascend.com>
68755
68756         * m4/utime.m4 (jm_FUNC_UTIME): New file and macro.
68757         * m4/utimes.m4 (jm_FUNC_UTIMES_NULL): New file and macro.
68758
68759 1998-07-09  Manfred Hollstein  <manfred@s-direktnet.de>
68760
68761         * m4/chown.m4 (jm_FUNC_CHOWN): Add a check to verify that the
68762         uid and gid actually remain unchanged.
68763
68764 1998-07-07  Jim Meyering  <meyering@ascend.com>
68765
68766         * m4/jm-glibc-io.m4: Remove fclose_unlocked.
68767
68768 1998-07-04  Jim Meyering  <meyering@ascend.com>
68769
68770         * m4/regex.m4: Use syscmd, ifelse, and sysval.  Mainly as an exercise
68771         to prove that this macro can be used in packages without regex.c.
68772
68773 1998-07-04  Andreas Schwab  <schwab@issan.informatik.uni-dortmund.de>
68774
68775         * m4/gettext.m4 (AM_WITH_NLS): Remove intl/libintl.h if <libintl.h>
68776         is to be used.
68777
68778 1998-07-03  Jim Meyering  <meyering@ascend.com>
68779
68780         * m4/gettext.m4: Add -lintl if it's found to be necessary.
68781
68782         * m4/gettext.m4: New file -- from gettext-0.10.35.
68783         * m4/lcmessage.m4: Likewise.
68784         * m4/progtest.m4: Likewise.
68785
68786         * m4/regex.m4 (jm_WITH_REGEX): New file and macro.
68787         * m4/jm-macros.m4: Require the new macro.
68788
68789 1998-06-29  Jim Meyering  <meyering@ascend.com>
68790
68791         * m4/fstypename.m4: Include sys/param.h.  NetBSD 1.3.1 requires this
68792         for the definition of NGROUPS (used in a system header included
68793         by sys/mount.h).
68794
68795 1998-06-28  Jim Meyering  <meyering@ascend.com>
68796
68797         * m4/ls-mntd-fs.m4: New file.
68798         * m4/fstypename.m4: New file.
68799
68800         * m4/jm-macros.m4: Require the new macro.
68801         * m4/jm-glibc-io.m4: New file.
68802
68803 1998-05-19  Jim Meyering  <meyering@ascend.com>
68804
68805         * m4/jm-macros.m4: Add jm_FUNC_LCHOWN.
68806         * m4/lchown.m4: New file.
68807
68808         * m4/Makefile.am.in: New file.
68809         * m4/Makefile.am (Makefile.am): Depend on Makefile.am.in.
68810
68811 1998-05-14  Jim Meyering  <meyering@ascend.com>
68812
68813         * m4/Makefile.am (EXTRA_DIST): Add them.
68814         * m4/jm-macros.m4: New file.
68815         * m4/utimbuf.m4: New file.
68816
68817 1998-05-12  Jim Meyering  <meyering@ascend.com>
68818
68819         * m4/Makefile.am (EXTRA_DIST): Add isc-posix.m4.
68820
68821 1998-05-11  Jim Meyering  <meyering@ascend.com>
68822
68823         * m4/isc-posix.m4: New file.
68824
68825 1998-05-10  Jim Meyering  <meyering@ascend.com>
68826
68827         * m4/jm-mktime.m4: Use AM_FUNC_MKTIME, now that it's up to date.
68828
68829 1998-05-09  Jim Meyering  <meyering@ascend.com>
68830
68831         * m4/Makefile.am (EXTRA_DIST): Add ssize_t.m4.
68832         (EXTRA_DIST): Remove mktime.m4, now that the new version is included
68833         with automake.
68834
68835         * m4/ssize_t.m4: New file.
68836         * m4/mktime.m4: Remove file -- the new automake has this now.
68837
68838 1998-04-26  Jim Meyering  <meyering@ascend.com>
68839
68840         * m4/assert.m4: New file.
68841         * m4/Makefile.am (EXTRA_DIST): Add assert.m4.
68842
68843 1998-04-05  Jim Meyering  <meyering@ascend.com>
68844
68845         * m4/prereq.m4 (jm_PREREQ_REGEX): New macro.
68846         (jm_PREREQ): Use it here.
68847
68848 1998-03-23  Jim Meyering  <meyering@eng.ascend.com>
68849
68850         * m4/inttypes_h.m4: Kludges so I don't have to add HAVE_INTTYPES_H
68851         in acconfig.h.
68852
68853 1998-03-15  Jim Meyering  <meyering@eng.ascend.com>
68854
68855         * m4/prereq.m4: New file.
68856         * m4/error.m4: New file.
68857         * m4/Makefile.am (EXTRA_DIST): Add error.m4 and prereq.m4.
68858
68859 1998-02-07  Jim Meyering  <meyering@eng.ascend.com>
68860
68861         * m4/getline.m4: Don't set am_cv_func_working_getline before the
68862         cache-check for the same variable -- that defeated the purpose of
68863         the test; the test program was never run.  This was a problem only
68864         on systems with losing getline functions -- HP-UX 10.20 is one.
68865         Reported by Bjorn Helgaas.
68866
68867 1998-02-06  Jim Meyering  <meyering@eng.ascend.com>
68868
68869         * m4/Makefile.am (EXTRA_DIST): Add perl.m4.
68870
68871 1998-01-10  Jim Meyering  <meyering@na-net.ornl.gov>
68872
68873         * m4/Makefile.am (EXTRA_DIST): Add const.m4.
68874
68875         * m4/const.m4: New file.  Use an initializer in this declaration
68876         typedef int charset[2]; const charset x;
68877         Reported by Bob Glickstein.
68878
68879 1997-12-21  Jim Meyering  <meyering@na-net.ornl.gov>
68880
68881         * m4/chown.m4: Fix reversed types on -1 args to chown.
68882         From Kaveh Ghazi.
68883
68884 1997-12-14  Jim Meyering  <meyering@na-net.ornl.gov>
68885
68886         * m4/check-decl.m4: s/DECLARATION_/DECL_/g.
68887         Add lseek and memchr.
68888
68889         * m4/decl.m4: s/HAVE_DECLARATION_/HAVE_DECL_/g.
68890         T.E.Dickey <dickey@clark.net> said that some older preprocessors
68891         have a 20-character limit on names.
68892
68893 1997-11-30  Jim Meyering  <meyering@na-net.ornl.gov>
68894
68895         * m4/inttypes_h.m4: New file.
68896         * m4/uintmax_t.m4: New file.
68897         * m4/Makefile.am (EXTRA_DIST): Add inttypes_h.m4 and uintmax_t.m4.
68898
68899
68900         -----
68901
68902         Local Variables:
68903         coding: utf-8
68904         End:
68905
68906         Copyright (C) 1997-2010 Free Software Foundation, Inc.
68907
68908         Copying and distribution of this file, with or without
68909         modification, are permitted provided the copyright notice
68910         and this notice are preserved.