iconv: Reject native Solaris iconv.
[gnulib.git] / ChangeLog
1 2010-01-01  Bruno Haible  <bruno@clisp.org>
2
3         iconv: Reject native Solaris iconv.
4         * m4/iconv.m4 (AM_ICONV_LINK): Recognize native Solaris iconv() bug.
5         * doc/posix-functions/iconv.texi: Document native Solaris iconv() bug.
6
7 2009-12-31  Bruno Haible  <bruno@clisp.org>
8
9         * tests/test-signal.c (main): Remove test of 'SIG'.
10
11 2009-12-31  Bruno Haible  <bruno@clisp.org>
12
13         spawn: Fix incomplete fix.
14         * lib/spawn.in.h (posix_spawnattr_getflags, posix_spawnattr_setflags,
15         posix_spawnattr_getpgroup, posix_spawnattr_setpgroup): Correct the link
16         warnings for GNULIB_POSIXCHECK again.
17         Reported by Eric Blake.
18
19 2009-12-31  Bruno Haible  <bruno@clisp.org>
20
21         Avoid namespace pollution on glibc systems.
22         * lib/spawn.in.h: Don't include <sched.h>, <signal.h> on glibc systems.
23         * lib/sys_times.in.h: Don't include <time.h> on glibc systems.
24         * lib/wchar.in.h: Don't include <stddef.h>, <stdio.h>, <time.h> on
25         glibc systems.
26
27 2009-12-31  Bruno Haible  <bruno@clisp.org>
28
29         * m4/wchar.m4 (gl_WCHAR_H): Remove gl_STDDEF_H invocation.
30         (gl_REPLACE_WCHAR_H): Turn into a no-op.
31         * m4/arpa_inet_h.m4 (gl_REPLACE_ARPA_INET_H): Likewise.
32         * m4/dirent_h.m4 (gl_REPLACE_DIRENT_H): Likewise.
33         * m4/locale_h.m4 (gl_REPLACE_LOCALE_H): Likewise.
34         * m4/spawn_h.m4 (gl_REPLACE_SPAWN_H): Likewise.
35         * m4/sys_ioctl_h.m4 (gl_REPLACE_SYS_IOCTL_H): Likewise.
36
37 2009-12-31  Bruno Haible  <bruno@clisp.org>
38
39         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Invoke
40         gl_CHECK_NEXT_HEADERS before testing ac_cv_header_sys_select_h, not
41         afterwards.
42
43 2009-12-31  Bruno Haible  <bruno@clisp.org>
44
45         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_H_DEFAULTS): Don't set
46         SYS_UTSNAME_H.
47
48 2009-12-31  Bruno Haible  <bruno@clisp.org>
49
50         spawn: Fix misapplied patch.
51         * lib/spawn.in.h (posix_spawnattr_getflags, posix_spawnattr_setflags,
52         posix_spawnattr_getpgroup, posix_spawnattr_setpgroup): Correct the link
53         warnings for GNULIB_POSIXCHECK.
54
55 2009-12-31  Bruno Haible  <bruno@clisp.org>
56
57         times: Update after sys_times changed.
58         * m4/times.m4: New file, extracted from modules/times. Set HAVE_TIMES.
59         * modules/times (Files): Add it.
60         (configure.ac): Invoke gl_FUNC_TIMES.
61
62 2009-12-31  Bruno Haible  <bruno@clisp.org>
63
64         Use AC_C_INLINE where necessary.
65         * m4/chdir-long.m4 (gl_PREREQ_CHDIR_LONG): Require AC_C_INLINE.
66         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Likewise.
67         * m4/fts.m4 (gl_FUNC_FTS_CORE): Likewise.
68         * m4/mbchar.m4 (gl_MBCHAR): Likewise.
69         * m4/mbfile.m4 (gl_MBFILE): Likewise.
70         * m4/mbiter.m4 (gl_MBITER): Likewise.
71         * m4/regex.m4 (gl_PREREQ_REGEX): Likewise.
72         * m4/stat.m4 (gl_FUNC_STAT): Likewise.
73         * m4/wait-process.m4 (gl_WAIT_PROCESS): Likewise.
74         * modules/u64 (configure.ac): Likewise.
75
76 2009-12-31  Bruno Haible  <bruno@clisp.org>
77
78         Use AC_C_INLINE instead of module 'inline' where possible.
79         * modules/inline (Description): Clarify purpose.
80         * m4/count-one-bits.m4 (gl_COUNT_ONE_BITS): Require AC_C_INLINE.
81         * modules/count-one-bits (Depends-on): Remove inline.
82         * m4/openat.m4 (gl_PREREQ_OPENAT): Require AC_C_INLINE.
83         * modules/openat (Depends-on): Remove inline.
84         * modules/fdutimensat (Depends-on, configure.ac): Require AC_C_INLINE
85         instead of depending on module 'inline'.
86         * modules/filevercmp (Depends-on, configure.ac): Likewise.
87         * modules/unicase/cased (Depends-on, configure.ac): Likewise.
88         * modules/unicase/ignorable (Depends-on, configure.ac): Likewise.
89         * modules/unictype/category-of (Depends-on, configure.ac): Likewise.
90         * modules/unictype/category-test (Depends-on, configure.ac): Likewise.
91         * modules/unictype/ctype-alnum (Depends-on, configure.ac): Likewise.
92         * modules/unictype/ctype-alpha (Depends-on, configure.ac): Likewise.
93         * modules/unictype/ctype-blank (Depends-on, configure.ac): Likewise.
94         * modules/unictype/ctype-cntrl (Depends-on, configure.ac): Likewise.
95         * modules/unictype/ctype-digit (Depends-on, configure.ac): Likewise.
96         * modules/unictype/ctype-graph (Depends-on, configure.ac): Likewise.
97         * modules/unictype/ctype-lower (Depends-on, configure.ac): Likewise.
98         * modules/unictype/ctype-print (Depends-on, configure.ac): Likewise.
99         * modules/unictype/ctype-punct (Depends-on, configure.ac): Likewise.
100         * modules/unictype/ctype-space (Depends-on, configure.ac): Likewise.
101         * modules/unictype/ctype-upper (Depends-on, configure.ac): Likewise.
102         * modules/unictype/ctype-xdigit (Depends-on, configure.ac): Likewise.
103         * modules/unictype/property-alphabetic (Depends-on, configure.ac):
104         Likewise.
105         * modules/unictype/property-ascii-hex-digit (Depends-on,
106         configure.ac): Likewise.
107         * modules/unictype/property-bidi-arabic-digit (Depends-on,
108         configure.ac): Likewise.
109         * modules/unictype/property-bidi-arabic-right-to-left (Depends-on,
110         configure.ac): Likewise.
111         * modules/unictype/property-bidi-block-separator (Depends-on,
112         configure.ac): Likewise.
113         * modules/unictype/property-bidi-boundary-neutral (Depends-on,
114         configure.ac): Likewise.
115         * modules/unictype/property-bidi-common-separator (Depends-on,
116         configure.ac): Likewise.
117         * modules/unictype/property-bidi-control (Depends-on, configure.ac):
118         Likewise.
119         * modules/unictype/property-bidi-embedding-or-override (Depends-on,
120         configure.ac): Likewise.
121         * modules/unictype/property-bidi-eur-num-separator (Depends-on,
122         configure.ac): Likewise.
123         * modules/unictype/property-bidi-eur-num-terminator (Depends-on,
124         configure.ac): Likewise.
125         * modules/unictype/property-bidi-european-digit (Depends-on,
126         configure.ac): Likewise.
127         * modules/unictype/property-bidi-hebrew-right-to-left (Depends-on,
128         configure.ac): Likewise.
129         * modules/unictype/property-bidi-left-to-right (Depends-on,
130         configure.ac): Likewise.
131         * modules/unictype/property-bidi-non-spacing-mark (Depends-on,
132         configure.ac): Likewise.
133         * modules/unictype/property-bidi-other-neutral (Depends-on,
134         configure.ac): Likewise.
135         * modules/unictype/property-bidi-pdf (Depends-on, configure.ac):
136         Likewise.
137         * modules/unictype/property-bidi-segment-separator (Depends-on,
138         configure.ac): Likewise.
139         * modules/unictype/property-bidi-whitespace (Depends-on,
140         configure.ac): Likewise.
141         * modules/unictype/property-combining (Depends-on, configure.ac):
142         Likewise.
143         * modules/unictype/property-composite (Depends-on, configure.ac):
144         Likewise.
145         * modules/unictype/property-currency-symbol (Depends-on,
146         configure.ac): Likewise.
147         * modules/unictype/property-dash (Depends-on, configure.ac): Likewise.
148         * modules/unictype/property-decimal-digit (Depends-on, configure.ac):
149         Likewise.
150         * modules/unictype/property-default-ignorable-code-point (Depends-on,
151         configure.ac): Likewise.
152         * modules/unictype/property-deprecated (Depends-on, configure.ac):
153         Likewise.
154         * modules/unictype/property-diacritic (Depends-on, configure.ac):
155         Likewise.
156         * modules/unictype/property-extender (Depends-on, configure.ac):
157         Likewise.
158         * modules/unictype/property-format-control (Depends-on, configure.ac):
159         Likewise.
160         * modules/unictype/property-grapheme-base (Depends-on, configure.ac):
161         Likewise.
162         * modules/unictype/property-grapheme-extend (Depends-on, configure.ac):
163         Likewise.
164         * modules/unictype/property-grapheme-link (Depends-on, configure.ac):
165         Likewise.
166         * modules/unictype/property-hex-digit (Depends-on, configure.ac):
167         Likewise.
168         * modules/unictype/property-hyphen (Depends-on, configure.ac):
169         Likewise.
170         * modules/unictype/property-id-continue (Depends-on, configure.ac):
171         Likewise.
172         * modules/unictype/property-id-start (Depends-on, configure.ac):
173         Likewise.
174         * modules/unictype/property-ideographic (Depends-on, configure.ac):
175         Likewise.
176         * modules/unictype/property-ids-binary-operator (Depends-on,
177         configure.ac): Likewise.
178         * modules/unictype/property-ids-trinary-operator (Depends-on,
179         configure.ac): Likewise.
180         * modules/unictype/property-ignorable-control (Depends-on,
181         configure.ac): Likewise.
182         * modules/unictype/property-iso-control (Depends-on, configure.ac):
183         Likewise.
184         * modules/unictype/property-join-control (Depends-on, configure.ac):
185         Likewise.
186         * modules/unictype/property-left-of-pair (Depends-on, configure.ac):
187         Likewise.
188         * modules/unictype/property-line-separator (Depends-on, configure.ac):
189         Likewise.
190         * modules/unictype/property-logical-order-exception (Depends-on,
191         configure.ac): Likewise.
192         * modules/unictype/property-lowercase (Depends-on, configure.ac):
193         Likewise.
194         * modules/unictype/property-math (Depends-on, configure.ac): Likewise.
195         * modules/unictype/property-non-break (Depends-on, configure.ac):
196         Likewise.
197         * modules/unictype/property-not-a-character (Depends-on, configure.ac):
198         Likewise.
199         * modules/unictype/property-numeric (Depends-on, configure.ac):
200         Likewise.
201         * modules/unictype/property-other-alphabetic (Depends-on,
202         configure.ac): Likewise.
203         * modules/unictype/property-other-default-ignorable-code-point
204         (Depends-on, configure.ac): Likewise.
205         * modules/unictype/property-other-grapheme-extend (Depends-on,
206         configure.ac): Likewise.
207         * modules/unictype/property-other-id-continue (Depends-on,
208         configure.ac): Likewise.
209         * modules/unictype/property-other-id-start (Depends-on, configure.ac):
210         Likewise.
211         * modules/unictype/property-other-lowercase (Depends-on, configure.ac):
212         Likewise.
213         * modules/unictype/property-other-math (Depends-on, configure.ac):
214         Likewise.
215         * modules/unictype/property-other-uppercase (Depends-on, configure.ac):
216         Likewise.
217         * modules/unictype/property-paired-punctuation (Depends-on,
218         configure.ac): Likewise.
219         * modules/unictype/property-paragraph-separator (Depends-on,
220         configure.ac): Likewise.
221         * modules/unictype/property-pattern-syntax (Depends-on, configure.ac):
222         Likewise.
223         * modules/unictype/property-pattern-white-space (Depends-on,
224         configure.ac): Likewise.
225         * modules/unictype/property-private-use (Depends-on, configure.ac):
226         Likewise.
227         * modules/unictype/property-punctuation (Depends-on, configure.ac):
228         Likewise.
229         * modules/unictype/property-quotation-mark (Depends-on, configure.ac):
230         Likewise.
231         * modules/unictype/property-radical (Depends-on, configure.ac):
232         Likewise.
233         * modules/unictype/property-sentence-terminal (Depends-on,
234         configure.ac): Likewise.
235         * modules/unictype/property-soft-dotted (Depends-on, configure.ac):
236         Likewise.
237         * modules/unictype/property-space (Depends-on, configure.ac): Likewise.
238         * modules/unictype/property-terminal-punctuation (Depends-on,
239         configure.ac): Likewise.
240         * modules/unictype/property-titlecase (Depends-on, configure.ac):
241         Likewise.
242         * modules/unictype/property-unassigned-code-value (Depends-on,
243         configure.ac): Likewise.
244         * modules/unictype/property-unified-ideograph (Depends-on,
245         configure.ac): Likewise.
246         * modules/unictype/property-uppercase (Depends-on, configure.ac):
247         Likewise.
248         * modules/unictype/property-variation-selector (Depends-on,
249         configure.ac): Likewise.
250         * modules/unictype/property-white-space (Depends-on, configure.ac):
251         Likewise.
252         * modules/unictype/property-xid-continue (Depends-on, configure.ac):
253         Likewise.
254         * modules/unictype/property-xid-start (Depends-on, configure.ac):
255         Likewise.
256         * modules/unictype/property-zero-width (Depends-on, configure.ac):
257         Likewise.
258         * modules/unictype/syntax-c-ident (Depends-on, configure.ac): Likewise.
259         * modules/unictype/syntax-java-ident (Depends-on, configure.ac):
260         Likewise.
261
262 2009-12-31  Bruno Haible  <bruno@clisp.org>
263
264         Remove unnecessary AC_C_INLINE invocation.
265         * m4/popen.m4 (gl_PREREQ_POPEN): Don't invoke AC_C_INLINE. Not needed
266         since 2009-08-21.
267
268 2009-12-31  Jim Meyering  <meyering@redhat.com>
269
270         maint.mk: don't require explicit gpg_key_ID in cfg.mk
271         * top/maint.mk (gpg_key_ID): Derive key ID from signed release tag.
272         With this change, we can all remove the gpg_key_ID = ... definition
273         from our respective cfg.mk files.
274
275         maint.mk: create announcement template in ~/, not in /tmp
276         * top/maint.mk (emit_upload_commands): Adjust.
277         (release-prep): Emit into ~/announce-..., not /tmp/announce-...
278         Remove temporary file, .ci-msg.
279
280 2009-12-31  Eric Blake  <ebb9@byu.net>
281
282         link-warning: always build headers with link warnings
283         * modules/arpa_inet (Makefile.am): Always build replacement
284         header.
285         * modules/ctype (Makefile.am): Likewise.
286         * modules/dirent (Makefile.am): Likewise.
287         * modules/inttypes (Makefile.am): Likewise.
288         * modules/langinfo (Makefile.am): Likewise.
289         * modules/locale (Makefile.am): Likewise.
290         * modules/spawn (Makefile.am): Likewise.
291         * modules/sys_file (Makefile.am): Likewise.
292         * modules/sys_ioctl (Makefile.am): Likewise.
293         * modules/sys_select (Makefile.am): Likewise.
294         * modules/sys_socket (Makefile.am): Likewise.
295         * modules/sys_times (Makefile.am): Likewise.
296         * modules/sys_utsname (Makefile.am): Likewise.
297         * modules/sys_wait (Makefile.am): Likewise.
298         * modules/wchar (Makefile.am): Likewise.
299         * m4/arpa_inet_h.m4 (gl_HEADER_ARPA_INET)
300         (gl_ARPA_INET_H_DEFAULTS): Drop unneeded variable.
301         * m4/ctype.m4 (gl_CTYPE_H_DEFAULTS): Likewise.
302         * m4/isblank.m4 (gl_FUNC_ISBLANK): Likewise.
303         * m4/dirent_h.m4 (gl_REPLACE_DIRENT_H, gl_DIRENT_H_DEFAULTS):
304         Likewise.
305         * m4/inttypes.m4 (gl_INTTYPES_H): Likewise.
306         * m4/langinfo_h.m4 (gl_LANGINFO_H): Likewise.
307         * m4/locale_h.m4 (gl_REPLACE_LOCALE_H, gl_LOCALE_H_DEFAULTS):
308         Likewise.
309         * m4/spawn_h.m4 (gl_REPLACE_SPAWN_H, gl_SPAWN_H_DEFAULTS):
310         Likewise.
311         * m4/sys_file_h.m4 (gl_HEADER_SYS_FILE_H): Likewise.
312         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_H, gl_REPLACE_SYS_IOCTL_H)
313         (gl_SYS_IOCTL_H_DEFAULTS): Likewise.
314         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
315         * m4/sys_times_h.m4 (gl_SYS_TIMES_H): Likewise.
316         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_H)
317         (gl_SYS_UTSNAME_H_DEFAULTS): Likewise.
318         * m4/wchar.m4 (gl_WCHAR_H, gl_REPLACE_WCHAR_H)
319         (gl_WCHAR_H_DEFAULTS): Likewise.
320
321 2009-12-31  Eric Blake  <ebb9@byu.net>
322
323         signal, spawn: use link warnings
324         * lib/signal.in.h (sigset_t): Make unconditional.
325         (sigismember, sigemptyset, sigaddset, sigdelset, sigfillset)
326         (sigpending, sigprocmask, sigaction): Add link warnings.
327         * lib/spawn.in.h (posix_spawn, posix_spawnp, posix_spawnattr_init)
328         (posix_spawnattr_destroy, posix_spawnattr_getsigdefault)
329         (posix_spawnattr_setsigdefault, posix_spawnattr_getsigmask)
330         (posix_spawnattr_setsigmask, posix_spawnattr_getflags)
331         (posix_spawnattr_setflags, posix_spawnattr_getpgroup)
332         (posix_spawnattr_setpgroup, posix_spawnattr_getschedpolicy)
333         (posix_spawnattr_setschedpolicy, posix_spawnattr_getschedparam)
334         (posix_spawnattr_setschedparam, posix_spawn_file_actions_init)
335         (posix_spawn_file_actions_destroy)
336         (posix_spawn_file_actions_addopen)
337         (posix_spawn_file_actions_addclose)
338         (posix_spawwn_file_actions_adddup2): Likewise.
339         * m4/signal_h.m4 (gl_SIGNAL_H): Guarantee uid_t.
340         * tests/test-signal.c (main): Enhance test.
341
342         spawn: improve wrapper support
343         * m4/spawn_h.m4 (gl_SPAWN_H): Check for type existence.
344         (gl_SPAWN_H_DEFAULTS): New defaults.
345         * modules/spawn (Makefile.am): Substitute them.
346         * lib/spawn.in.h: (posix_spawnattr_t, posix_spawn_file_actions_t):
347         Only declare if missing or broken.
348
349         sys_times, sys_utsname: use include_next
350         * m4/sys_times_h.m4 (gl_SYS_TIMES_H): Support wrapping an existing
351         header.
352         (gl_SYS_TIMES_H_DEFAULTS): Add another variable.
353         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_H)
354         (gl_SYS_UTSNAME_H_DEFAULTS): Likewise.
355         * modules/sys_times (Depends-on): Add include_next.
356         (Makefile.am): Substitute additional values.
357         * modules/sys_utsname (Depends-on, Makefile.am): Likewise.
358         * lib/sys_times.in.h (includes): Include native header, if
359         available.
360         * lib/sys_utsname.in.h (includes): Likewise.
361         * tests/test-sys_times.c (main): Enhance test.
362
363         fdutimensat: revert prior patch
364         * modules/fdutimensat (Depends-on): Re-add inline; it is needed by
365         utimens.h.
366         Reported by Bruno Haible.
367
368 2009-12-30  Eric Blake  <ebb9@byu.net>
369
370         sys_wait: drop link-warning dependency
371         * modules/sys_wait (Depends-on, Makefile.am): Drop unneeded
372         link-warning efforts.
373         * lib/sys_wait.in.h: Likewise.
374
375         fdutimensat: remove bogus dependency
376         * modules/fdutimensat (Depends-on): Drop inline.
377
378         unistd: fix typo
379         * lib/unistd.in.h (linkat) [GNULIB_POSIXCHECK]: Fix typo.
380
381 2009-12-30  Bruno Haible  <bruno@clisp.org>
382
383         Fix compilation error with Solaris cc.
384         * lib/unicase/u8-is-invariant.c: Include <stdbool.h>.
385         * lib/unicase/u16-is-invariant.c: Likewise.
386         * lib/unicase/u32-is-invariant.c: Likewise.
387         Reported by Nelson H. F. Beebe <beebe@math.utah.edu>.
388
389 2009-12-30  Bruno Haible  <bruno@clisp.org>
390
391         Fix test crash.
392         * tests/test-localename.c (test_locale_name_thread): Skip unavailable
393         locales.
394         Reported by Simon Josefsson <simon@josefsson.org>.
395
396 2009-12-30  Bruno Haible  <bruno@clisp.org>
397
398         Fix compilation error on most platforms.
399         * tests/test-localename.c (categories): Define only if HAVE_NEWLOCALE.
400         Reported by Simon Josefsson <simon@josefsson.org>
401         and Nelson H. F. Beebe <beebe@math.utah.edu>.
402
403 2009-12-30  Eric Blake  <ebb9@byu.net>
404
405         futimens, utimensat: work around ntfs-3g bug
406         * lib/utimensat.c (rpl_utimensat): Drop attempts to cache whether
407         a ctime bug is present, and expand workaround to cover ntfs-3g.
408         * lib/utimens.c (fdutimens, lutimens): Likewise.
409         (utimensat_ctime_really, detect_ctime_bug): Drop cache mechanism.
410         (validate_timespec): Adjust return value.
411         * m4/futimens.m4 (gl_FUNC_FUTIMENS): Update comment.
412         * m4/utimensat.m4 (gl_FUNC_UTIMENSAT): Likewise.
413         Reported by ctrn3e8 <ctrn3e8@gmail.com>.
414
415 2009-12-29  Eric Blake  <ebb9@byu.net>
416
417         link-warning: make usage consistent
418         * modules/ctype (Depends-on): Add link-warning.
419         (Makefile.am): Update rules accordingly.
420         * modules/langinfo (Depends-on, Makefile.am): Likewise.
421         * modules/locale (Depends-on, Makefile.am): Likewise.
422         * modules/sys_file (Makefile.am): Likewise.
423         * modules/getopt-posix (Makefile.am): Delete unused link warning
424         efforts.
425         * lib/ctype.in.h (GL_LINK_WARNING): Ensure definition before use.
426         * lib/langinfo.in.h (GL_LINK_WARNING): Likewise.
427         * lib/locale.in.h (GL_LINK_WARNING): Likewise.
428         * lib/sys_file.in.h (GL_LINK_WARNING): Likewise.
429
430         stdio: remove unused variables
431         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Remove unused variables.
432         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Likewise.
433         * m4/ftello.m4 (gl_FUNC_FTELLO): Likewise.
434
435         tests: test more substitute headers
436         * modules/ctype-tests: New file.
437         * modules/dirent-tests: Likewise.
438         * modules/spawn-tests: Likewise.
439         * modules/sys_file-tests: Likewise.
440         * modules/sys_ioctl-tests: Likewise.
441         * modules/sys_wait-tests: Likewise.
442         * tests/test-ctype.c: Likewise.
443         * tests/test-dirent.c: Likewise.
444         * tests/test-spawn.c: Likewise.
445         * tests/test-sys_file.c: Likewise.
446         * tests/test-sys_ioctl.c: Likewise.
447         * tests/test-sys_wait.c: Likewise.
448         * m4/spawn_h.m4 (gl_SPAWN_H): Replace header if it is missing.
449         * lib/sys_file.in.h (LOCK_SH, LOCK_EX, LOCK_UN, LOCK_NB): Provide
450         whether or not flock is in use.
451
452         tests: remove License section from module
453         * modules/arpa_inet-tests: Remove unneeded section.
454         * modules/byteswap-tests: Likewise.
455         * modules/ceilf-tests: Likewise.
456         * modules/ceill-tests: Likewise.
457         * modules/crypto/des-tests: Likewise.
458         * modules/crypto/gc-arcfour-tests: Likewise.
459         * modules/crypto/gc-arctwo-tests: Likewise.
460         * modules/crypto/gc-des-tests: Likewise.
461         * modules/crypto/gc-hmac-md5-tests: Likewise.
462         * modules/crypto/gc-hmac-sha1-tests: Likewise.
463         * modules/crypto/gc-md2-tests: Likewise.
464         * modules/crypto/gc-md4-tests: Likewise.
465         * modules/crypto/gc-md5-tests: Likewise.
466         * modules/crypto/gc-pbkdf2-sha1-tests: Likewise.
467         * modules/crypto/gc-rijndael-tests: Likewise.
468         * modules/crypto/gc-sha1-tests: Likewise.
469         * modules/crypto/gc-tests: Likewise.
470         * modules/crypto/md2-tests: Likewise.
471         * modules/crypto/md4-tests: Likewise.
472         * modules/fcntl-h-tests: Likewise.
473         * modules/floorf-tests: Likewise.
474         * modules/floorl-tests: Likewise.
475         * modules/frexp-nolibm-tests: Likewise.
476         * modules/frexp-tests: Likewise.
477         * modules/frexpl-nolibm-tests: Likewise.
478         * modules/frexpl-tests: Likewise.
479         * modules/getaddrinfo-tests: Likewise.
480         * modules/inttypes-tests: Likewise.
481         * modules/isfinite-tests: Likewise.
482         * modules/isinf-tests: Likewise.
483         * modules/ldexpl-tests: Likewise.
484         * modules/locale-tests: Likewise.
485         * modules/math-tests: Likewise.
486         * modules/netdb-tests: Likewise.
487         * modules/netinet_in-tests: Likewise.
488         * modules/printf-frexp-tests: Likewise.
489         * modules/printf-frexpl-tests: Likewise.
490         * modules/priv-set-tests: Likewise.
491         * modules/random_r-tests: Likewise.
492         * modules/round-tests: Likewise.
493         * modules/roundf-tests: Likewise.
494         * modules/roundl-tests: Likewise.
495         * modules/search-tests: Likewise.
496         * modules/select-tests: Likewise.
497         * modules/signal-tests: Likewise.
498         * modules/stdbool-tests: Likewise.
499         * modules/stddef-tests: Likewise.
500         * modules/stdint-tests: Likewise.
501         * modules/stdio-tests: Likewise.
502         * modules/stdlib-tests: Likewise.
503         * modules/string-tests: Likewise.
504         * modules/strings-tests: Likewise.
505         * modules/sys_select-tests: Likewise.
506         * modules/sys_socket-tests: Likewise.
507         * modules/sys_stat-tests: Likewise.
508         * modules/sys_time-tests: Likewise.
509         * modules/sys_utsname-tests: Likewise.
510         * modules/sysexits-tests: Likewise.
511         * modules/time-tests: Likewise.
512         * modules/trunc-tests: Likewise.
513         * modules/truncf-tests: Likewise.
514         * modules/truncl-tests: Likewise.
515         * modules/tsearch-tests: Likewise.
516         * modules/unistd-tests: Likewise.
517         * modules/wchar-tests: Likewise.
518         * modules/wctype-tests: Likewise.
519
520         tests: fix license on several tests
521         * tests/test-des.c: Update to GPLv3+.
522         * tests/test-flock.c: Likewise.
523         * tests/test-fsync.c: Likewise.
524         * tests/test-futimens.h: Likewise.
525         * tests/test-gc-arcfour.c: Likewise.
526         * tests/test-gc-arctwo.c: Likewise.
527         * tests/test-gc-des.c: Likewise.
528         * tests/test-gc-hmac-md5.c: Likewise.
529         * tests/test-gc-hmac-sha1.c: Likewise.
530         * tests/test-gc-md2.c: Likewise.
531         * tests/test-gc-md4.c: Likewise.
532         * tests/test-gc-md5.c: Likewise.
533         * tests/test-gc-pbkdf2-sha1.c: Likewise.
534         * tests/test-gc-rijndael.c: Likewise.
535         * tests/test-gc-sha1.c: Likewise.
536         * tests/test-gc.c: Likewise.
537         * tests/test-getcwd.c: Likewise.
538         * tests/test-link.c: Likewise.
539         * tests/test-link.h: Likewise.
540         * tests/test-lutimens.h: Likewise.
541         * tests/test-md2.c: Likewise.
542         * tests/test-md4.c: Likewise.
543         * tests/test-mkdir.h: Likewise.
544         * tests/test-rename.c: Likewise.
545         * tests/test-rename.h: Likewise.
546         * tests/test-safe-alloc.c: Likewise.
547         * tests/test-utimens-common.h: Likewise.
548         * tests/test-utimens.h: Likewise.
549
550         maint: sync license texts
551         * config/srclist.txt: Add gpl-1.3.texi, lgpl-1.3.texi.
552         * doc/gpl-3.0.texi: Revert copyright year update.
553         * doc/lgpl-3.0.texi: Likewise.
554
555 2009-12-29  Jim Meyering  <meyering@redhat.com>
556
557         update nearly all FSF copyright year lists to include 2009
558         The files named by the following are exempted:
559             grep -v '^#' config/srclist.txt|grep -v '^$' | while read src dst; do
560               test -f "$dst" && { echo "$dst"; continue; }
561               test -d "$dst" || continue
562               echo "$dst"/$(basename "$src")
563             done > exempt
564             git ls-files tests/unictype >> exempt
565         In the remaining files, convert to all-interval notation if
566         - there is already at least one year interval like 2000-2003
567         - the file is maintained by me
568         - the file is in lib/uni*/, where that style already prevails
569         Otherwise, use update-copyright's default.
570
571 2009-12-29  Simon Josefsson  <simon@josefsson.org>
572         and Eric Blake  <ebb9@byu.net>
573
574         tests: don't require debug system() to pass
575         * tests/test-lstat.h (test_lstat_func): Move debug cleanup...
576         * tests/test-rmdir.h (test_rmdir_func): Likewise.
577         * tests/test-unlink.h (test_unlink_func): Likewise.
578         * tests/test-fstatat.c (main): ...into callers.
579         * tests/test-lstat.c (main): Likewise.
580         * tests/test-rmdir.c (main): Likewise.
581         * tests/test-unlink.c (main): Likewise.
582         * tests/test-unlinkat.c (main): Likewise.
583         * tests/test-areadlink-with-size.c (main): Don't require a
584         debug-only system call to pass, aiding cross-testing to mingw.
585         * tests/test-areadlink.c (main): Likewise.
586         * tests/test-areadlinkat-with-size.c (main): Likewise.
587         * tests/test-areadlinkat.c (main): Likewise.
588         * tests/test-canonicalize-lgpl.c (main): Likewise.
589         * tests/test-canonicalize.c (main): Likewise.
590         * tests/test-chown.c (main): Likewise.
591         * tests/test-fchownat.c (main): Likewise.
592         * tests/test-lchown.c (main): Likewise.
593         * tests/test-fdutimensat.c (main): Likewise.
594         * tests/test-futimens.c (main): Likewise.
595         * tests/test-link.c (main): Likewise.
596         * tests/test-linkat.c (main): Likewise.
597         * tests/test-mkdir.c (main): Likewise.
598         * tests/test-mkdirat.c (main): Likewise.
599         * tests/test-mkfifo.c (main): Likewise.
600         * tests/test-mkfifoat.c (main): Likewise.
601         * tests/test-mknod.c (main): Likewise.
602         * tests/test-readlink.c (main): Likewise.
603         * tests/test-remove.c (main): Likewise.
604         * tests/test-rename.c (main): Likewise.
605         * tests/test-renameat.c (main): Likewise.
606         * tests/test-symlink.c (main): Likewise.
607         * tests/test-symlinkat.c (main): Likewise.
608         * tests/test-utimens.c (main): Likewise.
609         * tests/test-utimensat.c (main): Likewise.
610
611 2009-12-29  Simon Josefsson  <simon@josefsson.org>
612
613         * modules/selinux-h (selinux/selinux.h, selinux/context.h): Depend
614         on $(UNUSED_PARAMETER_H) to avoid build failure.
615
616 2009-12-28  Jim Meyering  <meyering@redhat.com>
617
618         update-copyright: you may specify a max. line length other than 72
619         * build-aux/update-copyright: Honor $UPDATE_COPYRIGHT_MAX_LINE_LENGTH.
620
621         maint: use consistent FSF copyright line syntax
622         * lib/posixtm.c: Add missing comma in FSF copyright line.
623         * lib/posixtm.h: Likewise.
624         * lib/getugroups.c: Add missing ", Inc.".
625
626         pmccabe2html: emit consistent FSF copyright; remove trailing blanks
627         * build-aux/pmccabe2html: Insert comma before "Inc." in emitted
628         FSF copyright line.  Remove trailing blanks.
629
630 2009-12-28  Eric Blake  <ebb9@byu.net>
631
632         test-dup2: reduce dependencies
633         * modules/cloexec (Configure.ac): Set witness.
634         * modules/dup2-tests (Depends-on): Drop cloexec.
635         * tests/test-dup2.c (main): Skip portion of test if cloexec module
636         not present.
637         Suggested by Bruno Haible.
638
639 2009-12-26  Bruno Haible  <bruno@clisp.org>
640
641         Remove an unneeded dependency.
642         * modules/fseterr (Depends-on): Remove dup2.
643
644 2009-12-26  Eric Blake  <ebb9@byu.net>
645
646         tests: use macros.h in more places
647         * tests/macros.h (ASSERT): Depend on ASSERT_STREAM.
648         (ASSERT_STREAM): Provide default of stderr.
649         * tests/test-dirent-safer.c: Include macros.h, using alternate
650         stream for assertions.
651         * tests/test-dup-safer.c: Likewise.
652         * tests/test-freopen-safer.c: Likewise.
653         * tests/test-getopt.c: Likewise.
654         * tests/test-openat-safer.c: Likewise.
655         * tests/test-pipe.c: Likewise.
656         * tests/test-popen-safer.c: Likewise.
657         * modules/dirent-safer-tests (Files): Include macros.h.
658         * modules/unistd-safer-tests (Files): Likewise.
659         * modules/freopen-safer-tests (Files): Likewise.
660         * modules/getopt-posix-tests (Files): Likewise.
661         * modules/openat-safer-tests (Files): Likewise.
662         * modules/pipe-tests (Files): Likewise.
663
664 2009-12-26  Bruno Haible  <bruno@clisp.org>
665
666         javacomp: Portability fix.
667         * m4/javacomp.m4 (gt_JAVACOMP): Fix creation of conftestver.class so
668         that it also works on Solaris.
669
670 2009-12-26  Bruno Haible  <bruno@clisp.org>
671
672         localename: Fix storage allocation of gl_locale_name_thread's result.
673         * lib/localename.c (SIZE_BITS, string_hash, struct hash_node,
674         HASH_TABLE_SIZE, struniq_hash_table, struniq_lock, struniq): Define on
675         all platforms that have 'uselocale'.
676         (gl_locale_name_thread_unsafe): New function, extracted from
677         gl_locale_name_thread.
678         (gl_locale_name_thread): Call struniq on all platforms that have
679         'uselocale'.
680         * tests/test-localename.c (test_locale_name_thread): Check that the
681         resulting strings are permanently allocated.
682         * modules/localename-tests (Depends-on): Add strdup.
683
684 2009-12-26  Bruno Haible  <bruno@clisp.org>
685
686         * tests/test-localename.c (categories): Fill in the strings.
687
688 2009-12-26  Jim Meyering  <meyering@redhat.com>
689
690         isdir: complete the removal of m4/isdir.m4
691         * modules/isdir (configure.ac): Remove reference to gl_ISDIR.
692
693         isdir: clean up, since at least grep still uses it
694         * lib/isdir.c: Include "isdir.h".
695         (S_ISDIR): Remove now-unneeded definition.
696         * modules/isdir (Files): Add lib/isdir.h.
697         * lib/isdir.h: New file, with declaration.
698         * m4/isdir.m4: Remove file -- unneeded.
699
700 2009-12-25  Bruno Haible  <bruno@clisp.org>
701
702         selinux-h: Make generated .h files standalone.
703         * lib/se-context.in.h: Arrange to include _GL_UNUSED_PARAMETER
704         definition. Use _GL_UNUSED_PARAMETER instead of _GL_UNUSED.
705         * lib/se-selinux.in.h: Likewise.
706         * modules/selinux-h (Depends-on): Add unused-parameter.
707         (Makefile.am): Insert definition of _GL_UNUSED_PARAMETER into
708         selinux/selinux.h and selinux/context.h.
709         Suggested by Eric Blake.
710
711 2009-12-25  Bruno Haible  <bruno@clisp.org>
712
713         Move gl_FCNTL_O_FLAGS to a separate .m4 file.
714         * m4/fcntl-o.m4: New file, extracted from m4/fcntl_h.m4.
715         * m4/fcntl_h.m4 (gl_FCNTL_O_FLAGS): Remove macro.
716         * modules/fcntl-h (Files): Add m4/fcntl-o.m4.
717         * modules/localcharset (Files): Likewise. Remove m4/fcntl_h.m4.
718
719 2009-12-24  Bruno Haible  <bruno@clisp.org>
720
721         openat: Fix warning.
722         * lib/openat-proc.c: Include <unistd.h>.
723
724 2009-12-24  Bruno Haible  <bruno@clisp.org>
725
726         New module 'unused-parameter'.
727         * build-aux/unused-parameter.h: New file, extracted from earlier
728         gnulib-common.m4.
729         * modules/unused-parameter: New file.
730         * lib/unistr.h: Include unused-parameter.h.
731         (u32_mbtouc_unsafe, u32_mbtouc): Use _GL_UNUSED_PARAMETER instead of
732         _GL_UNUSED.
733         * modules/unistr/base (Depends-on): Add unused-parameter.
734
735 2009-12-24  Bruno Haible  <bruno@clisp.org>
736
737         Add missing dependencies to 'extensions' module.
738         * m4/extensions.m4: Add comment.
739         * modules/accept4 (Depends-on): Add extensions.
740         * modules/dup3 (Depends-on): Likewise.
741         * modules/fcntl (Depends-on): Likewise.
742         * modules/futimens (Depends-on): Likewise.
743         * modules/mknod (Depends-on): Likewise.
744         * modules/pipe2 (Depends-on): Likewise.
745         * modules/stat-time (Depends-on): Likewise.
746         * modules/strcasestr-simple (Depends-on): Likewise.
747         * modules/strsignal (Depends-on): Likewise.
748         * modules/utimensat (Depends-on): Likewise.
749         * modules/localcharset (Depends-on): Likewise. Needed because of
750         gl_FCNTL_O_FLAGS.
751         * modules/wcrtomb (Depends-on): Likewise. Needed because of
752         AC_TYPE_MBSTATE_T.
753         * modules/wcsnrtombs (Depends-on): Likewise.
754         * modules/wcsrtombs (Depends-on): Likewise.
755
756 2009-12-24  Bruno Haible  <bruno@clisp.org>
757
758         binary-io: Avoid gcc warning due to SET_BINARY.
759         * lib/binary-io.h (SET_BINARY): Cast the result to void.
760         Reported by Jim Meyering <jim@meyering.net>. Suggestion by Eric Blake.
761
762 2009-12-24  Bruno Haible  <bruno@clisp.org>
763
764         Avoid future namespace pollution on glibc systems.
765         * lib/arpa_inet.in.h: Don't include <sys/socket.h> on glibc systems.
766         * lib/sys_ioctl.in.h: Don't include <unistd.h> on glibc systems.
767         * lib/sys_select.in.h: Don't include <sys/time.h> and <string.h> on
768         glibc systems.
769
770 2009-12-24  Bruno Haible  <bruno@clisp.org>
771
772         Refactor common macros used in tests.
773         * tests/macros.h: New file.
774         * tests/test-areadlink.c: Include macros.h. Don't include <stdio.h>
775         and/or <stdlib.h>, if appropriate.
776         (ASSERT, SIZEOF): Remove macros.
777         * tests/test-areadlink-with-size.c: Likewise.
778         * tests/test-areadlinkat.c: Likewise.
779         * tests/test-areadlinkat-with-size.c: Likewise.
780         * tests/test-argmatch.c: Likewise.
781         * tests/test-argv-iter.c: Likewise.
782         * tests/test-array-mergesort.c: Likewise.
783         * tests/test-array_list.c: Likewise.
784         * tests/test-array_oset.c: Likewise.
785         * tests/test-avltree_list.c: Likewise.
786         * tests/test-avltree_oset.c: Likewise.
787         * tests/test-avltreehash_list.c: Likewise.
788         * tests/test-base64.c: Likewise.
789         * tests/test-binary-io.c: Likewise.
790         * tests/test-bitrotate.c: Likewise.
791         * tests/test-btowc.c: Likewise.
792         * tests/test-byteswap.c: Likewise.
793         * tests/test-c-ctype.c: Likewise.
794         * tests/test-c-stack.c: Likewise.
795         * tests/test-c-strcasecmp.c: Likewise.
796         * tests/test-c-strcasestr.c: Likewise.
797         * tests/test-c-strncasecmp.c: Likewise.
798         * tests/test-c-strstr.c: Likewise.
799         * tests/test-canonicalize-lgpl.c: Likewise.
800         * tests/test-canonicalize.c: Likewise.
801         * tests/test-carray_list.c: Likewise.
802         * tests/test-ceilf1.c: Likewise.
803         * tests/test-ceilf2.c: Likewise.
804         * tests/test-ceill.c: Likewise.
805         * tests/test-chown.c: Likewise.
806         * tests/test-cloexec.c: Likewise.
807         * tests/test-copy-acl.c: Likewise.
808         * tests/test-copy-file.c: Likewise.
809         * tests/test-count-one-bits.c: Likewise.
810         * tests/test-dprintf-posix.c: Likewise.
811         * tests/test-dup2.c: Likewise.
812         * tests/test-dup3.c: Likewise.
813         * tests/test-duplocale.c: Likewise.
814         * tests/test-fbufmode.c: Likewise.
815         * tests/test-fchdir.c: Likewise.
816         * tests/test-fchownat.c: Likewise.
817         * tests/test-fcntl-safer.c: Likewise.
818         * tests/test-fcntl.c: Likewise.
819         * tests/test-fdopendir.c: Likewise.
820         * tests/test-fdutimensat.c: Likewise.
821         * tests/test-fflush2.c: Likewise.
822         * tests/test-file-has-acl.c: Likewise.
823         * tests/test-filevercmp.c: Likewise.
824         * tests/test-flock.c: Likewise.
825         * tests/test-floorf1.c: Likewise.
826         * tests/test-floorf2.c: Likewise.
827         * tests/test-floorl.c: Likewise.
828         * tests/test-fnmatch.c: Likewise.
829         * tests/test-fopen.h: Likewise.
830         * tests/test-fpending.c: Likewise.
831         * tests/test-fprintf-posix.c: Likewise.
832         * tests/test-fpurge.c: Likewise.
833         * tests/test-freadable.c: Likewise.
834         * tests/test-freadahead.c: Likewise.
835         * tests/test-freading.c: Likewise.
836         * tests/test-freadptr.c: Likewise.
837         * tests/test-freadptr2.c: Likewise.
838         * tests/test-freadseek.c: Likewise.
839         * tests/test-freopen.c: Likewise.
840         * tests/test-frexp.c: Likewise.
841         * tests/test-frexpl.c: Likewise.
842         * tests/test-fseek.c: Likewise.
843         * tests/test-fseeko.c: Likewise.
844         * tests/test-fstatat.c: Likewise.
845         * tests/test-fstrcmp.c: Likewise.
846         * tests/test-fsync.c: Likewise.
847         * tests/test-ftell.c: Likewise.
848         * tests/test-ftello.c: Likewise.
849         * tests/test-func.c: Likewise.
850         * tests/test-futimens.c: Likewise.
851         * tests/test-fwritable.c: Likewise.
852         * tests/test-fwriting.c: Likewise.
853         * tests/test-getcwd.c: Likewise.
854         * tests/test-getdate.c: Likewise.
855         * tests/test-getdelim.c: Likewise.
856         * tests/test-getdtablesize.c: Likewise.
857         * tests/test-getgroups.c: Likewise.
858         * tests/test-getline.c: Likewise.
859         * tests/test-getndelim2.c: Likewise.
860         * tests/test-glob.c: Likewise.
861         * tests/test-hash.c: Likewise.
862         * tests/test-i-ring.c: Likewise.
863         * tests/test-iconv-utf.c: Likewise.
864         * tests/test-iconv.c: Likewise.
865         * tests/test-idpriv-drop.c: Likewise.
866         * tests/test-idpriv-droptemp.c: Likewise.
867         * tests/test-inet_ntop.c: Likewise.
868         * tests/test-inet_pton.c: Likewise.
869         * tests/test-isblank.c: Likewise.
870         * tests/test-isfinite.c: Likewise.
871         * tests/test-isinf.c: Likewise.
872         * tests/test-isnan.c: Likewise.
873         * tests/test-isnand.h: Likewise.
874         * tests/test-isnanf.h: Likewise.
875         * tests/test-isnanl.h: Likewise.
876         * tests/test-lchown.c: Likewise.
877         * tests/test-ldexpl.c: Likewise.
878         * tests/test-link.c: Likewise.
879         * tests/test-linkat.c: Likewise.
880         * tests/test-linked_list.c: Likewise.
881         * tests/test-linkedhash_list.c: Likewise.
882         * tests/test-localename.c: Likewise.
883         * tests/test-lseek.c: Likewise.
884         * tests/test-lstat.c: Likewise.
885         * tests/test-mbmemcasecmp.c: Likewise.
886         * tests/test-mbmemcasecoll.c: Likewise.
887         * tests/test-mbrtowc.c: Likewise.
888         * tests/test-mbscasecmp.c: Likewise.
889         * tests/test-mbscasestr1.c: Likewise.
890         * tests/test-mbscasestr2.c: Likewise.
891         * tests/test-mbscasestr3.c: Likewise.
892         * tests/test-mbscasestr4.c: Likewise.
893         * tests/test-mbschr.c: Likewise.
894         * tests/test-mbscspn.c: Likewise.
895         * tests/test-mbsinit.c: Likewise.
896         * tests/test-mbsncasecmp.c: Likewise.
897         * tests/test-mbsnrtowcs.c: Likewise.
898         * tests/test-mbspbrk.c: Likewise.
899         * tests/test-mbspcasecmp.c: Likewise.
900         * tests/test-mbsrchr.c: Likewise.
901         * tests/test-mbsrtowcs.c: Likewise.
902         * tests/test-mbsspn.c: Likewise.
903         * tests/test-mbsstr1.c: Likewise.
904         * tests/test-mbsstr2.c: Likewise.
905         * tests/test-mbsstr3.c: Likewise.
906         * tests/test-memchr.c: Likewise.
907         * tests/test-memchr2.c: Likewise.
908         * tests/test-memcmp.c: Likewise.
909         * tests/test-memmem.c: Likewise.
910         * tests/test-memrchr.c: Likewise.
911         * tests/test-mkdir.c: Likewise.
912         * tests/test-mkdirat.c: Likewise.
913         * tests/test-mkfifo.c: Likewise.
914         * tests/test-mkfifoat.c: Likewise.
915         * tests/test-mknod.c: Likewise.
916         * tests/test-nanosleep.c: Likewise.
917         * tests/test-nl_langinfo.c: Likewise.
918         * tests/test-obstack-printf.c: Likewise.
919         * tests/test-open.c: Likewise.
920         * tests/test-openat.c: Likewise.
921         * tests/test-pipe-filter-gi1.c: Likewise.
922         * tests/test-pipe-filter-gi2-main.c: Likewise.
923         * tests/test-pipe-filter-ii1.c: Likewise.
924         * tests/test-pipe-filter-ii2-main.c: Likewise.
925         * tests/test-pipe2.c: Likewise.
926         * tests/test-popen.h: Likewise.
927         * tests/test-posixtm.c: Likewise.
928         * tests/test-pread.c: Likewise.
929         * tests/test-printf-frexp.c: Likewise.
930         * tests/test-printf-frexpl.c: Likewise.
931         * tests/test-printf-posix.c: Likewise.
932         * tests/test-priv-set.c: Likewise.
933         * tests/test-quotearg.c: Likewise.
934         * tests/test-random_r.c: Likewise.
935         * tests/test-rawmemchr.c: Likewise.
936         * tests/test-rbtree_list.c: Likewise.
937         * tests/test-rbtree_oset.c: Likewise.
938         * tests/test-rbtreehash_list.c: Likewise.
939         * tests/test-readlink.c: Likewise.
940         * tests/test-remove.c: Likewise.
941         * tests/test-rename.c: Likewise.
942         * tests/test-renameat.c: Likewise.
943         * tests/test-rmdir.c: Likewise.
944         * tests/test-round1.c: Likewise.
945         * tests/test-roundf1.c: Likewise.
946         * tests/test-roundl.c: Likewise.
947         * tests/test-safe-alloc.c: Likewise.
948         * tests/test-sameacls.c: Likewise.
949         * tests/test-set-mode-acl.c: Likewise.
950         * tests/test-setenv.c: Likewise.
951         * tests/test-sigaction.c: Likewise.
952         * tests/test-signbit.c: Likewise.
953         * tests/test-sleep.c: Likewise.
954         * tests/test-snprintf-posix.c: Likewise.
955         * tests/test-snprintf.c: Likewise.
956         * tests/test-sprintf-posix.c: Likewise.
957         * tests/test-stat-time.c: Likewise.
958         * tests/test-stat.c: Likewise.
959         * tests/test-strcasestr.c: Likewise.
960         * tests/test-strchrnul.c: Likewise.
961         * tests/test-strerror.c: Likewise.
962         * tests/test-striconv.c: Likewise.
963         * tests/test-striconveh.c: Likewise.
964         * tests/test-striconveha.c: Likewise.
965         * tests/test-strsignal.c: Likewise.
966         * tests/test-strstr.c: Likewise.
967         * tests/test-strtod.c: Likewise.
968         * tests/test-strverscmp.c: Likewise.
969         * tests/test-symlink.c: Likewise.
970         * tests/test-symlinkat.c: Likewise.
971         * tests/test-trunc1.c: Likewise.
972         * tests/test-trunc2.c: Likewise.
973         * tests/test-truncf1.c: Likewise.
974         * tests/test-truncf2.c: Likewise.
975         * tests/test-truncl.c: Likewise.
976         * tests/test-uname.c: Likewise.
977         * tests/test-unlink.c: Likewise.
978         * tests/test-unlinkat.c: Likewise.
979         * tests/test-unsetenv.c: Likewise.
980         * tests/test-usleep.c: Likewise.
981         * tests/test-utimens.c: Likewise.
982         * tests/test-utimensat.c: Likewise.
983         * tests/test-vasnprintf-posix.c: Likewise.
984         * tests/test-vasnprintf-posix2.c: Likewise.
985         * tests/test-vasnprintf.c: Likewise.
986         * tests/test-vasprintf-posix.c: Likewise.
987         * tests/test-vasprintf.c: Likewise.
988         * tests/test-vdprintf-posix.c: Likewise.
989         * tests/test-vfprintf-posix.c: Likewise.
990         * tests/test-vprintf-posix.c: Likewise.
991         * tests/test-vsnprintf-posix.c: Likewise.
992         * tests/test-vsnprintf.c: Likewise.
993         * tests/test-vsprintf-posix.c: Likewise.
994         * tests/test-wcrtomb.c: Likewise.
995         * tests/test-wcsnrtombs.c: Likewise.
996         * tests/test-wcsrtombs.c: Likewise.
997         * tests/test-wctype.c: Likewise.
998         * tests/test-wcwidth.c: Likewise.
999         * tests/test-xfprintf-posix.c: Likewise.
1000         * tests/test-xmemdup0.c: Likewise.
1001         * tests/test-xprintf-posix.c: Likewise.
1002         * tests/test-xvasprintf.c: Likewise.
1003         * tests/unicase/test-locale-language.c: Likewise.
1004         * tests/unicase/test-mapping-part1.h: Likewise.
1005         * tests/unicase/test-predicate-part1.h: Likewise.
1006         * tests/unicase/test-u8-casecmp.c: Likewise.
1007         * tests/unicase/test-u8-casecoll.c: Likewise.
1008         * tests/unicase/test-u8-casefold.c: Likewise.
1009         * tests/unicase/test-u8-is-cased.c: Likewise.
1010         * tests/unicase/test-u8-is-casefolded.c: Likewise.
1011         * tests/unicase/test-u8-is-lowercase.c: Likewise.
1012         * tests/unicase/test-u8-is-titlecase.c: Likewise.
1013         * tests/unicase/test-u8-is-uppercase.c: Likewise.
1014         * tests/unicase/test-u8-tolower.c: Likewise.
1015         * tests/unicase/test-u8-totitle.c: Likewise.
1016         * tests/unicase/test-u8-toupper.c: Likewise.
1017         * tests/unicase/test-u16-casecmp.c: Likewise.
1018         * tests/unicase/test-u16-casecoll.c: Likewise.
1019         * tests/unicase/test-u16-casefold.c: Likewise.
1020         * tests/unicase/test-u16-is-cased.c: Likewise.
1021         * tests/unicase/test-u16-is-casefolded.c: Likewise.
1022         * tests/unicase/test-u16-is-lowercase.c: Likewise.
1023         * tests/unicase/test-u16-is-titlecase.c: Likewise.
1024         * tests/unicase/test-u16-is-uppercase.c: Likewise.
1025         * tests/unicase/test-u16-tolower.c: Likewise.
1026         * tests/unicase/test-u16-totitle.c: Likewise.
1027         * tests/unicase/test-u16-toupper.c: Likewise.
1028         * tests/unicase/test-u32-casecmp.c: Likewise.
1029         * tests/unicase/test-u32-casecoll.c: Likewise.
1030         * tests/unicase/test-u32-casefold.c: Likewise.
1031         * tests/unicase/test-u32-is-cased.c: Likewise.
1032         * tests/unicase/test-u32-is-casefolded.c: Likewise.
1033         * tests/unicase/test-u32-is-lowercase.c: Likewise.
1034         * tests/unicase/test-u32-is-titlecase.c: Likewise.
1035         * tests/unicase/test-u32-is-uppercase.c: Likewise.
1036         * tests/unicase/test-u32-tolower.c: Likewise.
1037         * tests/unicase/test-u32-totitle.c: Likewise.
1038         * tests/unicase/test-u32-toupper.c: Likewise.
1039         * tests/unicase/test-ulc-casecmp.c: Likewise.
1040         * tests/unicase/test-ulc-casecoll.c: Likewise.
1041         * tests/uniconv/test-u8-conv-from-enc.c: Likewise.
1042         * tests/uniconv/test-u8-conv-to-enc.c: Likewise.
1043         * tests/uniconv/test-u8-strconv-from-enc.c: Likewise.
1044         * tests/uniconv/test-u8-strconv-to-enc.c: Likewise.
1045         * tests/uniconv/test-u16-conv-from-enc.c: Likewise.
1046         * tests/uniconv/test-u16-conv-to-enc.c: Likewise.
1047         * tests/uniconv/test-u16-strconv-from-enc.c: Likewise.
1048         * tests/uniconv/test-u16-strconv-to-enc.c: Likewise.
1049         * tests/uniconv/test-u32-conv-from-enc.c: Likewise.
1050         * tests/uniconv/test-u32-conv-to-enc.c: Likewise.
1051         * tests/uniconv/test-u32-strconv-from-enc.c: Likewise.
1052         * tests/uniconv/test-u32-strconv-to-enc.c: Likewise.
1053         * tests/unictype/test-bidi_byname.c: Likewise.
1054         * tests/unictype/test-bidi_name.c: Likewise.
1055         * tests/unictype/test-bidi_of.c: Likewise.
1056         * tests/unictype/test-bidi_test.c: Likewise.
1057         * tests/unictype/test-block_list.c: Likewise.
1058         * tests/unictype/test-block_of.c: Likewise.
1059         * tests/unictype/test-block_test.c: Likewise.
1060         * tests/unictype/test-categ_and.c: Likewise.
1061         * tests/unictype/test-categ_and_not.c: Likewise.
1062         * tests/unictype/test-categ_byname.c: Likewise.
1063         * tests/unictype/test-categ_name.c: Likewise.
1064         * tests/unictype/test-categ_none.c: Likewise.
1065         * tests/unictype/test-categ_of.c: Likewise.
1066         * tests/unictype/test-categ_or.c: Likewise.
1067         * tests/unictype/test-categ_test_withtable.c: Likewise.
1068         * tests/unictype/test-combining.c: Likewise.
1069         * tests/unictype/test-decdigit.c: Likewise.
1070         * tests/unictype/test-digit.c: Likewise.
1071         * tests/unictype/test-mirror.c: Likewise.
1072         * tests/unictype/test-numeric.c: Likewise.
1073         * tests/unictype/test-pr_byname.c: Likewise.
1074         * tests/unictype/test-pr_test.c: Likewise.
1075         * tests/unictype/test-predicate-part1.h: Likewise.
1076         * tests/unictype/test-scripts.c: Likewise.
1077         * tests/unictype/test-sy_c_ident.c: Likewise.
1078         * tests/unictype/test-sy_java_ident.c: Likewise.
1079         * tests/unilbrk/test-u8-possible-linebreaks.c: Likewise.
1080         * tests/unilbrk/test-u8-width-linebreaks.c: Likewise.
1081         * tests/unilbrk/test-u16-possible-linebreaks.c: Likewise.
1082         * tests/unilbrk/test-u16-width-linebreaks.c: Likewise.
1083         * tests/unilbrk/test-u32-possible-linebreaks.c: Likewise.
1084         * tests/unilbrk/test-u32-width-linebreaks.c: Likewise.
1085         * tests/unilbrk/test-ulc-possible-linebreaks.c: Likewise.
1086         * tests/unilbrk/test-ulc-width-linebreaks.c: Likewise.
1087         * tests/uninorm/test-canonical-decomposition.c: Likewise.
1088         * tests/uninorm/test-compat-decomposition.c: Likewise.
1089         * tests/uninorm/test-composition.c: Likewise.
1090         * tests/uninorm/test-decomposing-form.c: Likewise.
1091         * tests/uninorm/test-decomposition.c: Likewise.
1092         * tests/uninorm/test-u8-nfc.c: Likewise.
1093         * tests/uninorm/test-u8-nfd.c: Likewise.
1094         * tests/uninorm/test-u8-nfkc.c: Likewise.
1095         * tests/uninorm/test-u8-nfkd.c: Likewise.
1096         * tests/uninorm/test-u8-normcmp.c: Likewise.
1097         * tests/uninorm/test-u8-normcoll.c: Likewise.
1098         * tests/uninorm/test-u16-nfc.c: Likewise.
1099         * tests/uninorm/test-u16-nfd.c: Likewise.
1100         * tests/uninorm/test-u16-nfkc.c: Likewise.
1101         * tests/uninorm/test-u16-nfkd.c: Likewise.
1102         * tests/uninorm/test-u16-normcmp.c: Likewise.
1103         * tests/uninorm/test-u16-normcoll.c: Likewise.
1104         * tests/uninorm/test-u32-nfc.c: Likewise.
1105         * tests/uninorm/test-u32-nfd.c: Likewise.
1106         * tests/uninorm/test-u32-nfkc.c: Likewise.
1107         * tests/uninorm/test-u32-nfkd.c: Likewise.
1108         * tests/uninorm/test-u32-normalize-big.c: Likewise.
1109         * tests/uninorm/test-u32-normcmp.c: Likewise.
1110         * tests/uninorm/test-u32-normcoll.c: Likewise.
1111         * tests/uninorm/test-uninorm-filter-nfc.c: Likewise.
1112         * tests/unistdio/test-u8-asnprintf1.c: Likewise.
1113         * tests/unistdio/test-u8-vasnprintf1.c: Likewise.
1114         * tests/unistdio/test-u8-vasnprintf2.c: Likewise.
1115         * tests/unistdio/test-u8-vasnprintf3.c: Likewise.
1116         * tests/unistdio/test-u8-vasprintf1.c: Likewise.
1117         * tests/unistdio/test-u8-vsnprintf1.c: Likewise.
1118         * tests/unistdio/test-u8-vsprintf1.c: Likewise.
1119         * tests/unistdio/test-u16-asnprintf1.c: Likewise.
1120         * tests/unistdio/test-u16-vasnprintf1.c: Likewise.
1121         * tests/unistdio/test-u16-vasnprintf2.c: Likewise.
1122         * tests/unistdio/test-u16-vasnprintf3.c: Likewise.
1123         * tests/unistdio/test-u16-vasprintf1.c: Likewise.
1124         * tests/unistdio/test-u16-vsnprintf1.c: Likewise.
1125         * tests/unistdio/test-u16-vsprintf1.c: Likewise.
1126         * tests/unistdio/test-u32-asnprintf1.c: Likewise.
1127         * tests/unistdio/test-u32-vasnprintf1.c: Likewise.
1128         * tests/unistdio/test-u32-vasnprintf2.c: Likewise.
1129         * tests/unistdio/test-u32-vasnprintf3.c: Likewise.
1130         * tests/unistdio/test-u32-vasprintf1.c: Likewise.
1131         * tests/unistdio/test-u32-vsnprintf1.c: Likewise.
1132         * tests/unistdio/test-u32-vsprintf1.c: Likewise.
1133         * tests/unistdio/test-ulc-asnprintf1.c: Likewise.
1134         * tests/unistdio/test-ulc-vasnprintf1.c: Likewise.
1135         * tests/unistdio/test-ulc-vasnprintf2.c: Likewise.
1136         * tests/unistdio/test-ulc-vasnprintf3.c: Likewise.
1137         * tests/unistdio/test-ulc-vasprintf1.c: Likewise.
1138         * tests/unistdio/test-ulc-vsnprintf1.c: Likewise.
1139         * tests/unistdio/test-ulc-vsprintf1.c: Likewise.
1140         * tests/uniwbrk/test-u8-wordbreaks.c: Likewise.
1141         * tests/uniwbrk/test-u16-wordbreaks.c: Likewise.
1142         * tests/uniwbrk/test-u32-wordbreaks.c: Likewise.
1143         * tests/uniwbrk/test-ulc-wordbreaks.c: Likewise.
1144         * tests/uniwidth/test-u8-strwidth.c: Likewise.
1145         * tests/uniwidth/test-u8-width.c: Likewise.
1146         * tests/uniwidth/test-u16-strwidth.c: Likewise.
1147         * tests/uniwidth/test-u16-width.c: Likewise.
1148         * tests/uniwidth/test-u32-strwidth.c: Likewise.
1149         * tests/uniwidth/test-u32-width.c: Likewise.
1150         * tests/uniwidth/test-uc_width.c: Likewise.
1151         * tests/uniwidth/test-uc_width2.c: Likewise.
1152         * modules/acl-tests (Files): Add tests/macros.h.
1153         * modules/areadlink-tests (Files): Likewise.
1154         * modules/areadlink-with-size-tests (Files): Likewise.
1155         * modules/areadlinkat-tests (Files): Likewise.
1156         * modules/areadlinkat-with-size-tests (Files): Likewise.
1157         * modules/argmatch-tests (Files): Likewise.
1158         * modules/argv-iter-tests (Files): Likewise.
1159         * modules/array-list-tests (Files): Likewise.
1160         * modules/array-mergesort-tests (Files): Likewise.
1161         * modules/array-oset-tests (Files): Likewise.
1162         * modules/avltree-list-tests (Files): Likewise.
1163         * modules/avltree-oset-tests (Files): Likewise.
1164         * modules/avltreehash-list-tests (Files): Likewise.
1165         * modules/base64-tests (Files): Likewise.
1166         * modules/binary-io-tests (Files): Likewise.
1167         * modules/bitrotate-tests (Files): Likewise.
1168         * modules/btowc-tests (Files): Likewise.
1169         * modules/byteswap-tests (Files): Likewise.
1170         * modules/c-ctype-tests (Files): Likewise.
1171         * modules/c-stack-tests (Files): Likewise.
1172         * modules/c-strcase-tests (Files): Likewise.
1173         * modules/c-strcasestr-tests (Files): Likewise.
1174         * modules/c-strstr-tests (Files): Likewise.
1175         * modules/canonicalize-lgpl-tests (Files): Likewise.
1176         * modules/canonicalize-tests (Files): Likewise.
1177         * modules/carray-list-tests (Files): Likewise.
1178         * modules/ceilf-tests (Files): Likewise.
1179         * modules/ceill-tests (Files): Likewise.
1180         * modules/chown-tests (Files): Likewise.
1181         * modules/cloexec-tests (Files): Likewise.
1182         * modules/copy-file-tests (Files): Likewise.
1183         * modules/count-one-bits-tests (Files): Likewise.
1184         * modules/dprintf-posix-tests (Files): Likewise.
1185         * modules/dup2-tests (Files): Likewise.
1186         * modules/dup3-tests (Files): Likewise.
1187         * modules/duplocale-tests (Files): Likewise.
1188         * modules/fbufmode-tests (Files): Likewise.
1189         * modules/fchdir-tests (Files): Likewise.
1190         * modules/fcntl-safer-tests (Files): Likewise.
1191         * modules/fcntl-tests (Files): Likewise.
1192         * modules/fdopendir-tests (Files): Likewise.
1193         * modules/fdutimensat-tests (Files): Likewise.
1194         * modules/fflush-tests (Files): Likewise.
1195         * modules/filevercmp-tests (Files): Likewise.
1196         * modules/flock-tests (Files): Likewise.
1197         * modules/floorf-tests (Files): Likewise.
1198         * modules/floorl-tests (Files): Likewise.
1199         * modules/fnmatch-tests (Files): Likewise.
1200         * modules/fopen-safer-tests (Files): Likewise.
1201         * modules/fopen-tests (Files): Likewise.
1202         * modules/fpending-tests (Files): Likewise.
1203         * modules/fprintf-posix-tests (Files): Likewise.
1204         * modules/fpurge-tests (Files): Likewise.
1205         * modules/freadable-tests (Files): Likewise.
1206         * modules/freadahead-tests (Files): Likewise.
1207         * modules/freading-tests (Files): Likewise.
1208         * modules/freadptr-tests (Files): Likewise.
1209         * modules/freadseek-tests (Files): Likewise.
1210         * modules/freopen-tests (Files): Likewise.
1211         * modules/frexp-nolibm-tests (Files): Likewise.
1212         * modules/frexp-tests (Files): Likewise.
1213         * modules/frexpl-nolibm-tests (Files): Likewise.
1214         * modules/frexpl-tests (Files): Likewise.
1215         * modules/fseek-tests (Files): Likewise.
1216         * modules/fseeko-tests (Files): Likewise.
1217         * modules/fstrcmp-tests (Files): Likewise.
1218         * modules/fsync-tests (Files): Likewise.
1219         * modules/ftell-tests (Files): Likewise.
1220         * modules/ftello-tests (Files): Likewise.
1221         * modules/func-tests (Files): Likewise.
1222         * modules/futimens-tests (Files): Likewise.
1223         * modules/fwritable-tests (Files): Likewise.
1224         * modules/fwriting-tests (Files): Likewise.
1225         * modules/getcwd-tests (Files): Likewise.
1226         * modules/getdate-tests (Files): Likewise.
1227         * modules/getdelim-tests (Files): Likewise.
1228         * modules/getdtablesize-tests (Files): Likewise.
1229         * modules/getgroups-tests (Files): Likewise.
1230         * modules/getline-tests (Files): Likewise.
1231         * modules/getndelim2-tests (Files): Likewise.
1232         * modules/glob-tests (Files): Likewise.
1233         * modules/hash-tests (Files): Likewise.
1234         * modules/i-ring-tests (Files): Likewise.
1235         * modules/iconv-tests (Files): Likewise.
1236         * modules/iconv_open-utf-tests (Files): Likewise.
1237         * modules/idpriv-drop-tests (Files): Likewise.
1238         * modules/idpriv-droptemp-tests (Files): Likewise.
1239         * modules/inet_ntop-tests (Files): Likewise.
1240         * modules/inet_pton-tests (Files): Likewise.
1241         * modules/isblank-tests (Files): Likewise.
1242         * modules/isfinite-tests (Files): Likewise.
1243         * modules/isinf-tests (Files): Likewise.
1244         * modules/isnan-tests (Files): Likewise.
1245         * modules/isnand-nolibm-tests (Files): Likewise.
1246         * modules/isnand-tests (Files): Likewise.
1247         * modules/isnanf-nolibm-tests (Files): Likewise.
1248         * modules/isnanf-tests (Files): Likewise.
1249         * modules/isnanl-nolibm-tests (Files): Likewise.
1250         * modules/isnanl-tests (Files): Likewise.
1251         * modules/lchown-tests (Files): Likewise.
1252         * modules/ldexpl-tests (Files): Likewise.
1253         * modules/link-tests (Files): Likewise.
1254         * modules/linkat-tests (Files): Likewise.
1255         * modules/linked-list-tests (Files): Likewise.
1256         * modules/linkedhash-list-tests (Files): Likewise.
1257         * modules/localename-tests (Files): Likewise.
1258         * modules/lseek-tests (Files): Likewise.
1259         * modules/lstat-tests (Files): Likewise.
1260         * modules/mbmemcasecmp-tests (Files): Likewise.
1261         * modules/mbmemcasecoll-tests (Files): Likewise.
1262         * modules/mbrtowc-tests (Files): Likewise.
1263         * modules/mbscasecmp-tests (Files): Likewise.
1264         * modules/mbscasestr-tests (Files): Likewise.
1265         * modules/mbschr-tests (Files): Likewise.
1266         * modules/mbscspn-tests (Files): Likewise.
1267         * modules/mbsinit-tests (Files): Likewise.
1268         * modules/mbsncasecmp-tests (Files): Likewise.
1269         * modules/mbsnrtowcs-tests (Files): Likewise.
1270         * modules/mbspbrk-tests (Files): Likewise.
1271         * modules/mbspcasecmp-tests (Files): Likewise.
1272         * modules/mbsrchr-tests (Files): Likewise.
1273         * modules/mbsrtowcs-tests (Files): Likewise.
1274         * modules/mbsspn-tests (Files): Likewise.
1275         * modules/mbsstr-tests (Files): Likewise.
1276         * modules/memchr-tests (Files): Likewise.
1277         * modules/memchr2-tests (Files): Likewise.
1278         * modules/memcmp-tests (Files): Likewise.
1279         * modules/memmem-tests (Files): Likewise.
1280         * modules/memrchr-tests (Files): Likewise.
1281         * modules/mkdir-tests (Files): Likewise.
1282         * modules/mkfifo-tests (Files): Likewise.
1283         * modules/mkfifoat-tests (Files): Likewise.
1284         * modules/mknod-tests (Files): Likewise.
1285         * modules/nanosleep-tests (Files): Likewise.
1286         * modules/nl_langinfo-tests (Files): Likewise.
1287         * modules/obstack-printf-tests (Files): Likewise.
1288         * modules/open-tests (Files): Likewise.
1289         * modules/openat-tests (Files): Likewise.
1290         * modules/pipe-filter-gi-tests (Files): Likewise.
1291         * modules/pipe-filter-ii-tests (Files): Likewise.
1292         * modules/pipe2-tests (Files): Likewise.
1293         * modules/popen-safer-tests (Files): Likewise.
1294         * modules/popen-tests (Files): Likewise.
1295         * modules/posixtm-tests (Files): Likewise.
1296         * modules/pread-tests (Files): Likewise.
1297         * modules/printf-frexp-tests (Files): Likewise.
1298         * modules/printf-frexpl-tests (Files): Likewise.
1299         * modules/printf-posix-tests (Files): Likewise.
1300         * modules/priv-set-tests (Files): Likewise.
1301         * modules/quotearg-tests (Files): Likewise.
1302         * modules/random_r-tests (Files): Likewise.
1303         * modules/rawmemchr-tests (Files): Likewise.
1304         * modules/rbtree-list-tests (Files): Likewise.
1305         * modules/rbtree-oset-tests (Files): Likewise.
1306         * modules/rbtreehash-list-tests (Files): Likewise.
1307         * modules/readlink-tests (Files): Likewise.
1308         * modules/remove-tests (Files): Likewise.
1309         * modules/rename-tests (Files): Likewise.
1310         * modules/renameat-tests (Files): Likewise.
1311         * modules/rmdir-tests (Files): Likewise.
1312         * modules/round-tests (Files): Likewise.
1313         * modules/roundf-tests (Files): Likewise.
1314         * modules/roundl-tests (Files): Likewise.
1315         * modules/safe-alloc-tests (Files): Likewise.
1316         * modules/setenv-tests (Files): Likewise.
1317         * modules/sigaction-tests (Files): Likewise.
1318         * modules/signbit-tests (Files): Likewise.
1319         * modules/sleep-tests (Files): Likewise.
1320         * modules/snprintf-posix-tests (Files): Likewise.
1321         * modules/snprintf-tests (Files): Likewise.
1322         * modules/sprintf-posix-tests (Files): Likewise.
1323         * modules/stat-tests (Files): Likewise.
1324         * modules/stat-time-tests (Files): Likewise.
1325         * modules/strcasestr-tests (Files): Likewise.
1326         * modules/strchrnul-tests (Files): Likewise.
1327         * modules/strerror-tests (Files): Likewise.
1328         * modules/striconv-tests (Files): Likewise.
1329         * modules/striconveh-tests (Files): Likewise.
1330         * modules/striconveha-tests (Files): Likewise.
1331         * modules/strsignal-tests (Files): Likewise.
1332         * modules/strstr-tests (Files): Likewise.
1333         * modules/strtod-tests (Files): Likewise.
1334         * modules/strverscmp-tests (Files): Likewise.
1335         * modules/symlink-tests (Files): Likewise.
1336         * modules/symlinkat-tests (Files): Likewise.
1337         * modules/trunc-tests (Files): Likewise.
1338         * modules/truncf-tests (Files): Likewise.
1339         * modules/truncl-tests (Files): Likewise.
1340         * modules/uname-tests (Files): Likewise.
1341         * modules/unicase/cased-tests (Files): Likewise.
1342         * modules/unicase/ignorable-tests (Files): Likewise.
1343         * modules/unicase/locale-language-tests (Files): Likewise.
1344         * modules/unicase/tolower-tests (Files): Likewise.
1345         * modules/unicase/totitle-tests (Files): Likewise.
1346         * modules/unicase/toupper-tests (Files): Likewise.
1347         * modules/unicase/u8-casecmp-tests (Files): Likewise.
1348         * modules/unicase/u8-casecoll-tests (Files): Likewise.
1349         * modules/unicase/u8-casefold-tests (Files): Likewise.
1350         * modules/unicase/u8-is-cased-tests (Files): Likewise.
1351         * modules/unicase/u8-is-casefolded-tests (Files): Likewise.
1352         * modules/unicase/u8-is-lowercase-tests (Files): Likewise.
1353         * modules/unicase/u8-is-titlecase-tests (Files): Likewise.
1354         * modules/unicase/u8-is-uppercase-tests (Files): Likewise.
1355         * modules/unicase/u8-tolower-tests (Files): Likewise.
1356         * modules/unicase/u8-totitle-tests (Files): Likewise.
1357         * modules/unicase/u8-toupper-tests (Files): Likewise.
1358         * modules/unicase/u16-casecmp-tests (Files): Likewise.
1359         * modules/unicase/u16-casecoll-tests (Files): Likewise.
1360         * modules/unicase/u16-casefold-tests (Files): Likewise.
1361         * modules/unicase/u16-is-cased-tests (Files): Likewise.
1362         * modules/unicase/u16-is-casefolded-tests (Files): Likewise.
1363         * modules/unicase/u16-is-lowercase-tests (Files): Likewise.
1364         * modules/unicase/u16-is-titlecase-tests (Files): Likewise.
1365         * modules/unicase/u16-is-uppercase-tests (Files): Likewise.
1366         * modules/unicase/u16-tolower-tests (Files): Likewise.
1367         * modules/unicase/u16-totitle-tests (Files): Likewise.
1368         * modules/unicase/u16-toupper-tests (Files): Likewise.
1369         * modules/unicase/u32-casecmp-tests (Files): Likewise.
1370         * modules/unicase/u32-casecoll-tests (Files): Likewise.
1371         * modules/unicase/u32-casefold-tests (Files): Likewise.
1372         * modules/unicase/u32-is-cased-tests (Files): Likewise.
1373         * modules/unicase/u32-is-casefolded-tests (Files): Likewise.
1374         * modules/unicase/u32-is-lowercase-tests (Files): Likewise.
1375         * modules/unicase/u32-is-titlecase-tests (Files): Likewise.
1376         * modules/unicase/u32-is-uppercase-tests (Files): Likewise.
1377         * modules/unicase/u32-tolower-tests (Files): Likewise.
1378         * modules/unicase/u32-totitle-tests (Files): Likewise.
1379         * modules/unicase/u32-toupper-tests (Files): Likewise.
1380         * modules/unicase/ulc-casecmp-tests (Files): Likewise.
1381         * modules/unicase/ulc-casecoll-tests (Files): Likewise.
1382         * modules/uniconv/u8-conv-from-enc-tests (Files): Likewise.
1383         * modules/uniconv/u8-conv-to-enc-tests (Files): Likewise.
1384         * modules/uniconv/u8-strconv-from-enc-tests (Files): Likewise.
1385         * modules/uniconv/u8-strconv-to-enc-tests (Files): Likewise.
1386         * modules/uniconv/u16-conv-from-enc-tests (Files): Likewise.
1387         * modules/uniconv/u16-conv-to-enc-tests (Files): Likewise.
1388         * modules/uniconv/u16-strconv-from-enc-tests (Files): Likewise.
1389         * modules/uniconv/u16-strconv-to-enc-tests (Files): Likewise.
1390         * modules/uniconv/u32-conv-from-enc-tests (Files): Likewise.
1391         * modules/uniconv/u32-conv-to-enc-tests (Files): Likewise.
1392         * modules/uniconv/u32-strconv-from-enc-tests (Files): Likewise.
1393         * modules/uniconv/u32-strconv-to-enc-tests (Files): Likewise.
1394         * modules/unictype/bidicategory-byname-tests (Files): Likewise.
1395         * modules/unictype/bidicategory-name-tests (Files): Likewise.
1396         * modules/unictype/bidicategory-of-tests (Files): Likewise.
1397         * modules/unictype/bidicategory-test-tests (Files): Likewise.
1398         * modules/unictype/block-list-tests (Files): Likewise.
1399         * modules/unictype/block-of-tests (Files): Likewise.
1400         * modules/unictype/block-test-tests (Files): Likewise.
1401         * modules/unictype/category-C-tests (Files): Likewise.
1402         * modules/unictype/category-Cc-tests (Files): Likewise.
1403         * modules/unictype/category-Cf-tests (Files): Likewise.
1404         * modules/unictype/category-Cn-tests (Files): Likewise.
1405         * modules/unictype/category-Co-tests (Files): Likewise.
1406         * modules/unictype/category-Cs-tests (Files): Likewise.
1407         * modules/unictype/category-L-tests (Files): Likewise.
1408         * modules/unictype/category-Ll-tests (Files): Likewise.
1409         * modules/unictype/category-Lm-tests (Files): Likewise.
1410         * modules/unictype/category-Lo-tests (Files): Likewise.
1411         * modules/unictype/category-Lt-tests (Files): Likewise.
1412         * modules/unictype/category-Lu-tests (Files): Likewise.
1413         * modules/unictype/category-M-tests (Files): Likewise.
1414         * modules/unictype/category-Mc-tests (Files): Likewise.
1415         * modules/unictype/category-Me-tests (Files): Likewise.
1416         * modules/unictype/category-Mn-tests (Files): Likewise.
1417         * modules/unictype/category-N-tests (Files): Likewise.
1418         * modules/unictype/category-Nd-tests (Files): Likewise.
1419         * modules/unictype/category-Nl-tests (Files): Likewise.
1420         * modules/unictype/category-No-tests (Files): Likewise.
1421         * modules/unictype/category-P-tests (Files): Likewise.
1422         * modules/unictype/category-Pc-tests (Files): Likewise.
1423         * modules/unictype/category-Pd-tests (Files): Likewise.
1424         * modules/unictype/category-Pe-tests (Files): Likewise.
1425         * modules/unictype/category-Pf-tests (Files): Likewise.
1426         * modules/unictype/category-Pi-tests (Files): Likewise.
1427         * modules/unictype/category-Po-tests (Files): Likewise.
1428         * modules/unictype/category-Ps-tests (Files): Likewise.
1429         * modules/unictype/category-S-tests (Files): Likewise.
1430         * modules/unictype/category-Sc-tests (Files): Likewise.
1431         * modules/unictype/category-Sk-tests (Files): Likewise.
1432         * modules/unictype/category-Sm-tests (Files): Likewise.
1433         * modules/unictype/category-So-tests (Files): Likewise.
1434         * modules/unictype/category-Z-tests (Files): Likewise.
1435         * modules/unictype/category-Zl-tests (Files): Likewise.
1436         * modules/unictype/category-Zp-tests (Files): Likewise.
1437         * modules/unictype/category-Zs-tests (Files): Likewise.
1438         * modules/unictype/category-and-not-tests (Files): Likewise.
1439         * modules/unictype/category-and-tests (Files): Likewise.
1440         * modules/unictype/category-byname-tests (Files): Likewise.
1441         * modules/unictype/category-name-tests (Files): Likewise.
1442         * modules/unictype/category-none-tests (Files): Likewise.
1443         * modules/unictype/category-of-tests (Files): Likewise.
1444         * modules/unictype/category-or-tests (Files): Likewise.
1445         * modules/unictype/category-test-withtable-tests (Files): Likewise.
1446         * modules/unictype/combining-class-tests (Files): Likewise.
1447         * modules/unictype/ctype-alnum-tests (Files): Likewise.
1448         * modules/unictype/ctype-alpha-tests (Files): Likewise.
1449         * modules/unictype/ctype-blank-tests (Files): Likewise.
1450         * modules/unictype/ctype-cntrl-tests (Files): Likewise.
1451         * modules/unictype/ctype-digit-tests (Files): Likewise.
1452         * modules/unictype/ctype-graph-tests (Files): Likewise.
1453         * modules/unictype/ctype-lower-tests (Files): Likewise.
1454         * modules/unictype/ctype-print-tests (Files): Likewise.
1455         * modules/unictype/ctype-punct-tests (Files): Likewise.
1456         * modules/unictype/ctype-space-tests (Files): Likewise.
1457         * modules/unictype/ctype-upper-tests (Files): Likewise.
1458         * modules/unictype/ctype-xdigit-tests (Files): Likewise.
1459         * modules/unictype/decimal-digit-tests (Files): Likewise.
1460         * modules/unictype/digit-tests (Files): Likewise.
1461         * modules/unictype/mirror-tests (Files): Likewise.
1462         * modules/unictype/numeric-tests (Files): Likewise.
1463         * modules/unictype/property-alphabetic-tests (Files): Likewise.
1464         * modules/unictype/property-ascii-hex-digit-tests (Files): Likewise.
1465         * modules/unictype/property-bidi-arabic-digit-tests (Files): Likewise.
1466         * modules/unictype/property-bidi-arabic-right-to-left-tests (Files):
1467         Likewise.
1468         * modules/unictype/property-bidi-block-separator-tests (Files):
1469         Likewise.
1470         * modules/unictype/property-bidi-boundary-neutral-tests (Files):
1471         Likewise.
1472         * modules/unictype/property-bidi-common-separator-tests (Files):
1473         Likewise.
1474         * modules/unictype/property-bidi-control-tests (Files): Likewise.
1475         * modules/unictype/property-bidi-embedding-or-override-tests (Files):
1476         Likewise.
1477         * modules/unictype/property-bidi-eur-num-separator-tests (Files):
1478         Likewise.
1479         * modules/unictype/property-bidi-eur-num-terminator-tests (Files):
1480         Likewise.
1481         * modules/unictype/property-bidi-european-digit-tests (Files): Likewise.
1482         * modules/unictype/property-bidi-hebrew-right-to-left-tests (Files):
1483         Likewise.
1484         * modules/unictype/property-bidi-left-to-right-tests (Files): Likewise.
1485         * modules/unictype/property-bidi-non-spacing-mark-tests (Files):
1486         Likewise.
1487         * modules/unictype/property-bidi-other-neutral-tests (Files): Likewise.
1488         * modules/unictype/property-bidi-pdf-tests (Files): Likewise.
1489         * modules/unictype/property-bidi-segment-separator-tests (Files):
1490         Likewise.
1491         * modules/unictype/property-bidi-whitespace-tests (Files): Likewise.
1492         * modules/unictype/property-byname-tests (Files): Likewise.
1493         * modules/unictype/property-combining-tests (Files): Likewise.
1494         * modules/unictype/property-composite-tests (Files): Likewise.
1495         * modules/unictype/property-currency-symbol-tests (Files): Likewise.
1496         * modules/unictype/property-dash-tests (Files): Likewise.
1497         * modules/unictype/property-decimal-digit-tests (Files): Likewise.
1498         * modules/unictype/property-default-ignorable-code-point-tests (Files):
1499         Likewise.
1500         * modules/unictype/property-deprecated-tests (Files): Likewise.
1501         * modules/unictype/property-diacritic-tests (Files): Likewise.
1502         * modules/unictype/property-extender-tests (Files): Likewise.
1503         * modules/unictype/property-format-control-tests (Files): Likewise.
1504         * modules/unictype/property-grapheme-base-tests (Files): Likewise.
1505         * modules/unictype/property-grapheme-extend-tests (Files): Likewise.
1506         * modules/unictype/property-grapheme-link-tests (Files): Likewise.
1507         * modules/unictype/property-hex-digit-tests (Files): Likewise.
1508         * modules/unictype/property-hyphen-tests (Files): Likewise.
1509         * modules/unictype/property-id-continue-tests (Files): Likewise.
1510         * modules/unictype/property-id-start-tests (Files): Likewise.
1511         * modules/unictype/property-ideographic-tests (Files): Likewise.
1512         * modules/unictype/property-ids-binary-operator-tests (Files): Likewise.
1513         * modules/unictype/property-ids-trinary-operator-tests (Files):
1514         Likewise.
1515         * modules/unictype/property-ignorable-control-tests (Files): Likewise.
1516         * modules/unictype/property-iso-control-tests (Files): Likewise.
1517         * modules/unictype/property-join-control-tests (Files): Likewise.
1518         * modules/unictype/property-left-of-pair-tests (Files): Likewise.
1519         * modules/unictype/property-line-separator-tests (Files): Likewise.
1520         * modules/unictype/property-logical-order-exception-tests (Files):
1521         Likewise.
1522         * modules/unictype/property-lowercase-tests (Files): Likewise.
1523         * modules/unictype/property-math-tests (Files): Likewise.
1524         * modules/unictype/property-non-break-tests (Files): Likewise.
1525         * modules/unictype/property-not-a-character-tests (Files): Likewise.
1526         * modules/unictype/property-numeric-tests (Files): Likewise.
1527         * modules/unictype/property-other-alphabetic-tests (Files): Likewise.
1528         * modules/unictype/property-other-default-ignorable-code-point-tests
1529         (Files): Likewise.
1530         * modules/unictype/property-other-grapheme-extend-tests (Files):
1531         Likewise.
1532         * modules/unictype/property-other-id-continue-tests (Files): Likewise.
1533         * modules/unictype/property-other-id-start-tests (Files): Likewise.
1534         * modules/unictype/property-other-lowercase-tests (Files): Likewise.
1535         * modules/unictype/property-other-math-tests (Files): Likewise.
1536         * modules/unictype/property-other-uppercase-tests (Files): Likewise.
1537         * modules/unictype/property-paired-punctuation-tests (Files): Likewise.
1538         * modules/unictype/property-paragraph-separator-tests (Files): Likewise.
1539         * modules/unictype/property-pattern-syntax-tests (Files): Likewise.
1540         * modules/unictype/property-pattern-white-space-tests (Files): Likewise.
1541         * modules/unictype/property-private-use-tests (Files): Likewise.
1542         * modules/unictype/property-punctuation-tests (Files): Likewise.
1543         * modules/unictype/property-quotation-mark-tests (Files): Likewise.
1544         * modules/unictype/property-radical-tests (Files): Likewise.
1545         * modules/unictype/property-sentence-terminal-tests (Files): Likewise.
1546         * modules/unictype/property-soft-dotted-tests (Files): Likewise.
1547         * modules/unictype/property-space-tests (Files): Likewise.
1548         * modules/unictype/property-terminal-punctuation-tests (Files):
1549         Likewise.
1550         * modules/unictype/property-test-tests (Files): Likewise.
1551         * modules/unictype/property-titlecase-tests (Files): Likewise.
1552         * modules/unictype/property-unassigned-code-value-tests (Files):
1553         Likewise.
1554         * modules/unictype/property-unified-ideograph-tests (Files): Likewise.
1555         * modules/unictype/property-uppercase-tests (Files): Likewise.
1556         * modules/unictype/property-variation-selector-tests (Files): Likewise.
1557         * modules/unictype/property-white-space-tests (Files): Likewise.
1558         * modules/unictype/property-xid-continue-tests (Files): Likewise.
1559         * modules/unictype/property-xid-start-tests (Files): Likewise.
1560         * modules/unictype/property-zero-width-tests (Files): Likewise.
1561         * modules/unictype/scripts-tests (Files): Likewise.
1562         * modules/unictype/syntax-c-ident-tests (Files): Likewise.
1563         * modules/unictype/syntax-c-whitespace-tests (Files): Likewise.
1564         * modules/unictype/syntax-java-ident-tests (Files): Likewise.
1565         * modules/unictype/syntax-java-whitespace-tests (Files): Likewise.
1566         * modules/unilbrk/u8-possible-linebreaks-tests (Files): Likewise.
1567         * modules/unilbrk/u8-width-linebreaks-tests (Files): Likewise.
1568         * modules/unilbrk/u16-possible-linebreaks-tests (Files): Likewise.
1569         * modules/unilbrk/u16-width-linebreaks-tests (Files): Likewise.
1570         * modules/unilbrk/u32-possible-linebreaks-tests (Files): Likewise.
1571         * modules/unilbrk/u32-width-linebreaks-tests (Files): Likewise.
1572         * modules/unilbrk/ulc-possible-linebreaks-tests (Files): Likewise.
1573         * modules/unilbrk/ulc-width-linebreaks-tests (Files): Likewise.
1574         * modules/uninorm/canonical-decomposition-tests (Files): Likewise.
1575         * modules/uninorm/compat-decomposition-tests (Files): Likewise.
1576         * modules/uninorm/composition-tests (Files): Likewise.
1577         * modules/uninorm/decomposing-form-tests (Files): Likewise.
1578         * modules/uninorm/decomposition-tests (Files): Likewise.
1579         * modules/uninorm/filter-tests (Files): Likewise.
1580         * modules/uninorm/nfc-tests (Files): Likewise.
1581         * modules/uninorm/nfd-tests (Files): Likewise.
1582         * modules/uninorm/nfkc-tests (Files): Likewise.
1583         * modules/uninorm/nfkd-tests (Files): Likewise.
1584         * modules/uninorm/u8-normcmp-tests (Files): Likewise.
1585         * modules/uninorm/u8-normcoll-tests (Files): Likewise.
1586         * modules/uninorm/u16-normcmp-tests (Files): Likewise.
1587         * modules/uninorm/u16-normcoll-tests (Files): Likewise.
1588         * modules/uninorm/u32-normcmp-tests (Files): Likewise.
1589         * modules/uninorm/u32-normcoll-tests (Files): Likewise.
1590         * modules/unistdio/u8-asnprintf-tests (Files): Likewise.
1591         * modules/unistdio/u8-vasnprintf-tests (Files): Likewise.
1592         * modules/unistdio/u8-vasprintf-tests (Files): Likewise.
1593         * modules/unistdio/u8-vsnprintf-tests (Files): Likewise.
1594         * modules/unistdio/u8-vsprintf-tests (Files): Likewise.
1595         * modules/unistdio/u16-asnprintf-tests (Files): Likewise.
1596         * modules/unistdio/u16-vasnprintf-tests (Files): Likewise.
1597         * modules/unistdio/u16-vasprintf-tests (Files): Likewise.
1598         * modules/unistdio/u16-vsnprintf-tests (Files): Likewise.
1599         * modules/unistdio/u16-vsprintf-tests (Files): Likewise.
1600         * modules/unistdio/u32-asnprintf-tests (Files): Likewise.
1601         * modules/unistdio/u32-vasnprintf-tests (Files): Likewise.
1602         * modules/unistdio/u32-vasprintf-tests (Files): Likewise.
1603         * modules/unistdio/u32-vsnprintf-tests (Files): Likewise.
1604         * modules/unistdio/u32-vsprintf-tests (Files): Likewise.
1605         * modules/unistdio/ulc-asnprintf-tests (Files): Likewise.
1606         * modules/unistdio/ulc-vasnprintf-tests (Files): Likewise.
1607         * modules/unistdio/ulc-vasprintf-tests (Files): Likewise.
1608         * modules/unistdio/ulc-vsnprintf-tests (Files): Likewise.
1609         * modules/unistdio/ulc-vsprintf-tests (Files): Likewise.
1610         * modules/uniwbrk/u8-wordbreaks-tests (Files): Likewise.
1611         * modules/uniwbrk/u16-wordbreaks-tests (Files): Likewise.
1612         * modules/uniwbrk/u32-wordbreaks-tests (Files): Likewise.
1613         * modules/uniwbrk/ulc-wordbreaks-tests (Files): Likewise.
1614         * modules/uniwidth/u8-strwidth-tests (Files): Likewise.
1615         * modules/uniwidth/u8-width-tests (Files): Likewise.
1616         * modules/uniwidth/u16-strwidth-tests (Files): Likewise.
1617         * modules/uniwidth/u16-width-tests (Files): Likewise.
1618         * modules/uniwidth/u32-strwidth-tests (Files): Likewise.
1619         * modules/uniwidth/u32-width-tests (Files): Likewise.
1620         * modules/uniwidth/width-tests (Files): Likewise.
1621         * modules/unlink-tests (Files): Likewise.
1622         * modules/unsetenv-tests (Files): Likewise.
1623         * modules/usleep-tests (Files): Likewise.
1624         * modules/utimens-tests (Files): Likewise.
1625         * modules/utimensat-tests (Files): Likewise.
1626         * modules/vasnprintf-posix-tests (Files): Likewise.
1627         * modules/vasnprintf-tests (Files): Likewise.
1628         * modules/vasprintf-posix-tests (Files): Likewise.
1629         * modules/vasprintf-tests (Files): Likewise.
1630         * modules/vdprintf-posix-tests (Files): Likewise.
1631         * modules/vfprintf-posix-tests (Files): Likewise.
1632         * modules/vprintf-posix-tests (Files): Likewise.
1633         * modules/vsnprintf-posix-tests (Files): Likewise.
1634         * modules/vsnprintf-tests (Files): Likewise.
1635         * modules/vsprintf-posix-tests (Files): Likewise.
1636         * modules/wcrtomb-tests (Files): Likewise.
1637         * modules/wcsnrtombs-tests (Files): Likewise.
1638         * modules/wcsrtombs-tests (Files): Likewise.
1639         * modules/wctype-tests (Files): Likewise.
1640         * modules/wcwidth-tests (Files): Likewise.
1641         * modules/xmemdup0-tests (Files): Likewise.
1642         * modules/xprintf-posix-tests (Files): Likewise.
1643         * modules/xvasprintf-tests (Files): Likewise.
1644
1645 2009-12-24  Eric Blake  <ebb9@byu.net>
1646
1647         test-nanosleep: fix typo
1648         * tests/test-nanosleep.c (SIGNATURE_CHECK): Fix typo in previous
1649         patch.
1650         Reported by Bruno Haible.
1651
1652 2009-12-24  Bruno Haible  <bruno@clisp.org>
1653
1654         Reduce namespace pollution on glibc systems.
1655         * lib/inttypes.in.h: Don't include <stdint.h> on glibc systems.
1656         * lib/stdlib.in.h: Don't include <stdint.h>, <unistd.h> on glibc
1657         systems.
1658         * lib/unistd.in.h: Don't include <stdio.h>, <fcntl.h>, <stdlib.h>,
1659         <getopt.h> on glibc systems.
1660         * lib/fcntl.in.h: Don't include <sys/stat.h>, <unistd.h> on glibc
1661         systems.
1662         * lib/fcntl.c: Include <unistd.h> here instead.
1663
1664 2009-12-24  Bruno Haible  <bruno@clisp.org>
1665
1666         * lib/stdlib.in.h (includes): Fix typo in today's commit.
1667
1668 2009-12-24  Eric Blake  <ebb9@byu.net>
1669
1670         tests: add signature checks
1671         * tests/signature.h (SIGNATURE_CHECK): New file.
1672         * modules/atexit-tests (Files): Use it.
1673         * modules/btowc-tests (Files): Likewise.
1674         * modules/canonicalize-lgpl-tests (Files): Likewise.
1675         * modules/ceilf-tests (Files): Likewise.
1676         * modules/ceill-tests (Files): Likewise.
1677         * modules/chown-tests (Files): Likewise.
1678         * modules/dprintf-posix-tests (Files): Likewise.
1679         * modules/dup2-tests (Files): Likewise.
1680         * modules/dup3-tests (Files): Likewise.
1681         * modules/duplocale-tests (Files): Likewise.
1682         * modules/fchdir-tests (Files): Likewise.
1683         * modules/fcntl-tests (Files): Likewise.
1684         * modules/fdopendir-tests (Files): Likewise.
1685         * modules/fflush-tests (Files): Likewise.
1686         * modules/flock-tests (Files): Likewise.
1687         * modules/floorf-tests (Files): Likewise.
1688         * modules/floorl-tests (Files): Likewise.
1689         * modules/fnmatch-tests (Files): Likewise.
1690         * modules/fopen-tests (Files): Likewise.
1691         * modules/fprintf-posix-tests (Files): Likewise.
1692         * modules/freopen-tests (Files): Likewise.
1693         * modules/frexp-nolibm-tests (Files): Likewise.
1694         * modules/frexp-tests (Files): Likewise.
1695         * modules/frexpl-nolibm-tests (Files): Likewise.
1696         * modules/frexpl-tests (Files): Likewise.
1697         * modules/fseek-tests (Files): Likewise.
1698         * modules/fseeko-tests (Files): Likewise.
1699         * modules/fsync-tests (Files): Likewise.
1700         * modules/ftell-tests (Files): Likewise.
1701         * modules/ftello-tests (Files): Likewise.
1702         * modules/futimens-tests (Files): Likewise.
1703         * modules/getaddrinfo-tests (Files): Likewise.
1704         * modules/getcwd-tests (Files): Likewise.
1705         * modules/getdelim-tests (Files): Likewise.
1706         * modules/getdtablesize-tests (Files): Likewise.
1707         * modules/getgroups-tests (Files): Likewise.
1708         * modules/gethostname-tests (Files): Likewise.
1709         * modules/getline-tests (Files): Likewise.
1710         * modules/getopt-posix-tests (Files): Likewise.
1711         * modules/gettimeofday-tests (Files): Likewise.
1712         * modules/glob-tests (Files): Likewise.
1713         * modules/iconv-tests (Files): Likewise.
1714         * modules/inet_ntop-tests (Files): Likewise.
1715         * modules/inet_pton-tests (Files): Likewise.
1716         * modules/isblank-tests (Files): Likewise.
1717         * modules/lchown-tests (Files): Likewise.
1718         * modules/ldexpl-tests (Files): Likewise.
1719         * modules/link-tests (Files): Likewise.
1720         * modules/linkat-tests (Files): Likewise.
1721         * modules/lseek-tests (Files): Likewise.
1722         * modules/lstat-tests (Files): Likewise.
1723         * modules/mbrtowc-tests (Files): Likewise.
1724         * modules/mbsinit-tests (Files): Likewise.
1725         * modules/mbsnrtowcs-tests (Files): Likewise.
1726         * modules/mbsrtowcs-tests (Files): Likewise.
1727         * modules/memchr-tests (Files): Likewise.
1728         * modules/memcmp-tests (Files): Likewise.
1729         * modules/memmem-tests (Files): Likewise.
1730         * modules/memrchr-tests (Files): Likewise.
1731         * modules/mkdir-tests (Files): Likewise.
1732         * modules/mkfifo-tests (Files): Likewise.
1733         * modules/mkfifoat-tests (Files): Likewise.
1734         * modules/mknod-tests (Files): Likewise.
1735         * modules/nanosleep-tests (Files): Likewise.
1736         * modules/nl_langinfo-tests (Files): Likewise.
1737         * modules/obstack-printf-tests (Files): Likewise.
1738         * modules/open-tests (Files): Likewise.
1739         * modules/openat-tests (Files): Likewise.
1740         * modules/perror-tests (Files): Likewise.
1741         * modules/pipe2-tests (Files): Likewise.
1742         * modules/poll-tests (Files): Likewise.
1743         * modules/popen-tests (Files): Likewise.
1744         * modules/posix_spawn-tests (Files): Likewise.
1745         * modules/posix_spawnp-tests (Files): Likewise.
1746         * modules/pread-tests (Files): Likewise.
1747         * modules/printf-posix-tests (Files): Likewise.
1748         * modules/pty-tests (Files): Likewise.
1749         * modules/random_r-tests (Files): Likewise.
1750         * modules/rawmemchr-tests (Files): Likewise.
1751         * modules/readlink-tests (Files): Likewise.
1752         * modules/remove-tests (Files): Likewise.
1753         * modules/rename-tests (Files): Likewise.
1754         * modules/renameat-tests (Files): Likewise.
1755         * modules/rmdir-tests (Files): Likewise.
1756         * modules/round-tests (Files): Likewise.
1757         * modules/roundf-tests (Files): Likewise.
1758         * modules/roundl-tests (Files): Likewise.
1759         * modules/select-tests (Files): Likewise.
1760         * modules/setenv-tests (Files): Likewise.
1761         * modules/sigaction-tests (Files): Likewise.
1762         * modules/sleep-tests (Files): Likewise.
1763         * modules/snprintf-posix-tests (Files): Likewise.
1764         * modules/snprintf-tests (Files): Likewise.
1765         * modules/sprintf-posix-tests (Files): Likewise.
1766         * modules/stat-tests (Files): Likewise.
1767         * modules/strcasestr-tests (Files): Likewise.
1768         * modules/strchrnul-tests (Files): Likewise.
1769         * modules/strerror-tests (Files): Likewise.
1770         * modules/strsignal-tests (Files): Likewise.
1771         * modules/strstr-tests (Files): Likewise.
1772         * modules/strtod-tests (Files): Likewise.
1773         * modules/strverscmp-tests (Files): Likewise.
1774         * modules/symlink-tests (Files): Likewise.
1775         * modules/symlinkat-tests (Files): Likewise.
1776         * modules/times-tests (Files): Likewise.
1777         * modules/trunc-tests (Files): Likewise.
1778         * modules/truncf-tests (Files): Likewise.
1779         * modules/truncl-tests (Files): Likewise.
1780         * modules/tsearch-tests (Files): Likewise.
1781         * modules/uname-tests (Files): Likewise.
1782         * modules/unlink-tests (Files): Likewise.
1783         * modules/unsetenv-tests (Files): Likewise.
1784         * modules/usleep-tests (Files): Likewise.
1785         * modules/utimensat-tests (Files): Likewise.
1786         * modules/vasprintf-tests (Files): Likewise.
1787         * modules/vdprintf-posix-tests (Files): Likewise.
1788         * modules/vfprintf-posix-tests (Files): Likewise.
1789         * modules/vprintf-posix-tests (Files): Likewise.
1790         * modules/vsnprintf-posix-tests (Files): Likewise.
1791         * modules/vsnprintf-tests (Files): Likewise.
1792         * modules/vsprintf-posix-tests (Files): Likewise.
1793         * modules/wcrtomb-tests (Files): Likewise.
1794         * modules/wcsnrtombs-tests (Files): Likewise.
1795         * modules/wcsrtombs-tests (Files): Likewise.
1796         * modules/wcwidth-tests (Files): Likewise.
1797         * tests/test-isfinite.c (isfinite): Ensure macro declaration.
1798         * tests/test-isinf.c (isinf): Likewise.
1799         * tests/test-isnan.c (isnan): Likewise.
1800         * tests/test-signbit.c (signbit): Likewise.
1801         * tests/test-select.c (FD_CLR, FD_ISSET, FD_SET, FD_ZERO): Ensure
1802         declaration, either as macro or with correct signature.
1803         (select): Ensure function under test is declared with correct
1804         signature in correct header.
1805         * tests/test-atexit.c (atexit): Likewise.
1806         * tests/test-btowc.c (btowc): Likewise.
1807         * tests/test-canonicalize-lgpl.c (realpath)
1808         (canonicalize_file_name): Likewise.
1809         * tests/test-ceilf1.c (ceilf): Likewise.
1810         * tests/test-ceill.c (ceill): Likewise.
1811         * tests/test-chown.c (chown): Likewise.
1812         * tests/test-dprintf-posix.c (dprintf): Likewise.
1813         * tests/test-dup2.c (dup2): Likewise.
1814         * tests/test-dup3.c (dup3): Likewise.
1815         * tests/test-duplocale.c (duplocale): Likewise.
1816         * tests/test-fchdir.c (fchdir): Likewise.
1817         * tests/test-fchownat.c (fchownat): Likewise.
1818         * tests/test-fcntl.c (fcntl): Likewise.
1819         * tests/test-fdopendir.c (fdopendir): Likewise.
1820         * tests/test-fflush.c (fflush): Likewise.
1821         * tests/test-flock.c (flock): Likewise.
1822         * tests/test-floorf1.c (floorf): Likewise.
1823         * tests/test-floorl.c (floorl): Likewise.
1824         * tests/test-fnmatch.c (fnmatch): Likewise.
1825         * tests/test-fopen.c (fopen): Likewise.
1826         * tests/test-fprintf-posix.c (fprintf): Likewise.
1827         * tests/test-freopen.c (freopen): Likewise.
1828         * tests/test-frexp.c (frexp): Likewise.
1829         * tests/test-frexpl.c (frexpl): Likewise.
1830         * tests/test-fseek.c (fseek): Likewise.
1831         * tests/test-fseeko.c (fseeko): Likewise.
1832         * tests/test-fstatat.c (fstatat): Likewise.
1833         * tests/test-fsync.c (fsync): Likewise.
1834         * tests/test-ftell.c (ftell): Likewise.
1835         * tests/test-ftello.c (ftello): Likewise.
1836         * tests/test-futimens.c (futimens): Likewise.
1837         * tests/test-getaddrinfo.c (getaddrinfo, freeaddrinfo)
1838         (gai_strerror): Likewise.
1839         * tests/test-getcwd.c (getcwd): Likewise.
1840         * tests/test-getdelim.c (getdelim): Likewise.
1841         * tests/test-getdtablesize.c (getdtablesize): Likewise.
1842         * tests/test-getgroups.c (getgroups): Likewise.
1843         * tests/test-gethostname.c (gethostname): Likewise.
1844         * tests/test-getline.c (getline): Likewise.
1845         * tests/test-getopt.c (getopt, getopt_long, getopt_long_only):
1846         Likewise.
1847         * tests/test-gettimeofday.c (gettimeofday): Likewise.
1848         * tests/test-glob.c (glob, globfree): Likewise.
1849         * tests/test-iconv.c (iconv, iconv_open, iconv_close): Likewise.
1850         * tests/test-inet_ntop.c (inet_ntop): Likewise.
1851         * tests/test-inet_pton.c (inet_pton): Likewise.
1852         * tests/test-isblank.c (isblank): Likewise.
1853         * tests/test-lchown.c (lchown): Likewise.
1854         * tests/test-ldexpl.c (ldexpl): Likewise.
1855         * tests/test-link.c (link): Likewise.
1856         * tests/test-linkat.c (linkat): Likewise.
1857         * tests/test-lseek.c (lseek): Likewise.
1858         * tests/test-lstat.c (lstat): Likewise.
1859         * tests/test-mbrtowc.c (mbrtowc): Likewise.
1860         * tests/test-mbsinit.c (mbsinit): Likewise.
1861         * tests/test-mbsnrtowcs.c (mbsnrtowcs): Likewise.
1862         * tests/test-mbsrtowcs.c (mbsrtowcs): Likewise.
1863         * tests/test-memchr.c (memchr): Likewise.
1864         * tests/test-memcmp.c (memcmp): Likewise.
1865         * tests/test-memmem.c (memmem): Likewise.
1866         * tests/test-memrchr.c (memrchr): Likewise.
1867         * tests/test-mkdir.c (mkdir): Likewise.
1868         * tests/test-mkdirat.c (mkdirat): Likewise.
1869         * tests/test-mkfifo.c (mkfifo): Likewise.
1870         * tests/test-mkfifoat.c (mkfifoat, mknodat): Likewise.
1871         * tests/test-mknod.c (mknod): Likewise.
1872         * tests/test-nanosleep.c (nanosleep): Likewise.
1873         * tests/test-nl_langinfo.c (nl_langinfo): Likewise.
1874         * tests/test-obstack-printf.c (obstack_printf, obstack_vprintf):
1875         Likewise.
1876         * tests/test-open.c (open): Likewise.
1877         * tests/test-openat.c (openat): Likewise.
1878         * tests/test-perror.c (perror): Likewise.
1879         * tests/test-pipe2.c (pipe2): Likewise.
1880         * tests/test-poll.c (poll): Likewise.
1881         * tests/test-popen.c (popen, pclose): Likewise.
1882         * tests/test-posix_spawn1.c (posix_spawnp, posix_spawnattr_init)
1883         (posix_spawnattr_destroy, posix_spawnattr_setsigmask)
1884         (posix_spawnattr_setflags, posix_spawn_file_actions_init)
1885         (posix_spawn_file_actions_destroy)
1886         (posix_spawn_file_actions_addclose)
1887         (posix_spawn_file_actions_addopen)
1888         (posix_spawn_file_actions_adddup2): Likewise.
1889         * tests/test-posix_spawn3.c (posix_spawn): Likewise.
1890         * tests/test-pread.c (pread): Likewise.
1891         * tests/test-printf-posix.c (printf): Likewise.
1892         * tests/test-pty.c (openpty, forkpty): Likewise.
1893         * tests/test-random_r.c (srandom_r, initstate_r, setstate_r)
1894         (random_r): Likewise.
1895         * tests/test-rawmemchr.c (rawmemchr): Likewise.
1896         * tests/test-readlink.c (readlink): Likewise.
1897         * tests/test-remove.c (remove): Likewise.
1898         * tests/test-rename.c (rename): Likewise.
1899         * tests/test-renameat.c (renameat): Likewise.
1900         * tests/test-rmdir.c (rmdir): Likewise.
1901         * tests/test-round1.c (round): Likewise.
1902         * tests/test-roundf1.c (roundf): Likewise.
1903         * tests/test-roundl.c (roundl): Likewise.
1904         * tests/test-setenv.c (setenv): Likewise.
1905         * tests/test-sigaction.c (sigaction): Likewise.
1906         * tests/test-sleep.c (sleep): Likewise.
1907         * tests/test-snprintf.c (snprintf): Likewise.
1908         * tests/test-sprintf-posix.c (sprintf): Likewise.
1909         * tests/test-stat.c (stat): Likewise.
1910         * tests/test-stpncpy.c (stpncpy): Likewise.
1911         * tests/test-strcasestr.c (strcasestr): Likewise.
1912         * tests/test-strchrnul.c (strchrnul): Likewise.
1913         * tests/test-strerror.c (strerror): Likewise.
1914         * tests/test-strsignal.c (strsignal): Likewise.
1915         * tests/test-strstr.c (strstr): Likewise.
1916         * tests/test-strtod.c (strtod): Likewise.
1917         * tests/test-strverscmp.c (strverscmp): Likewise.
1918         * tests/test-symlink.c (symlink): Likewise.
1919         * tests/test-symlinkat.c (symlinkat, readlinkat): Likewise.
1920         * tests/test-times.c (times): Likewise.
1921         * tests/test-trunc1.c (trunc): Likewise.
1922         * tests/test-truncf1.c (truncf): Likewise.
1923         * tests/test-truncl.c (truncl): Likewise.
1924         * tests/test-tsearch.c (tdelete, tfind, tsearch, twalk):
1925         Likewise.
1926         * tests/test-uname.c (uname): Likewise.
1927         * tests/test-unlink.c (unlink): Likewise.
1928         * tests/test-unlinkat.c (unlinkat): Likewise.
1929         * tests/test-unsetenv.c (unsetenv): Likewise.
1930         * tests/test-usleep.c (usleep): Likewise.
1931         * tests/test-utimensat.c (utimensat): Likewise.
1932         * tests/test-vasprintf.c (asprintf, vasprintf): Likewise.
1933         * tests/test-vdprintf-posix.c (vdprintf): Likewise.
1934         * tests/test-vfprintf-posix.c (vfprintf): Likewise.
1935         * tests/test-vprintf-posix.c (vprintf): Likewise.
1936         * tests/test-vsnprintf.c (vsnprintf): Likewise.
1937         * tests/test-vsprintf-posix.c (vsprintf): Likewise.
1938         * tests/test-wcrtomb.c (wcrtomb): Likewise.
1939         * tests/test-wcsnrtombs.c (wcsnrtombs): Likewise.
1940         * tests/test-wcsrtombs.c (wcsrtombs): Likewise.
1941         * tests/test-wcwidth.c (wcwidth): Likewise.
1942
1943         build: pull in conditional headers during GNULIB_POSIXCHECK
1944         * lib/stdio.in.h (includes): Using GNULIB_POSIXCHECK also requires
1945         definitions from any conditionally-included headers.
1946         * lib/stdlib.in.h (includes): Likewise.
1947         * lib/unistd.in.h (includes): Likewise.
1948
1949 2009-12-24  Bruno Haible  <bruno@clisp.org>
1950
1951         * tests/test-argv-iter.c: Include header file being tested immediately
1952         after config.h.
1953         * tests/test-base64.c: Likewise.
1954         * tests/test-flock.c: Likewise.
1955         * tests/test-fsync.c: Likewise.
1956         * tests/test-getdate.c: Likewise.
1957         * tests/test-getndelim2.c: Likewise.
1958         * tests/test-isfinite.c: Likewise.
1959         * tests/test-isinf.c: Likewise.
1960         * tests/test-strerror.c: Likewise.
1961         * tests/test-strsignal.c: Likewise.
1962
1963 2009-12-23  Eric Blake  <ebb9@byu.net>
1964
1965         unistd: work around cygwin bug
1966         * lib/unistd.in.h (includes): Pick up headers needed for cygwin.
1967         * doc/posix-functions/unlinkat.texi (unlinkat): Document the bug.
1968         * doc/posix-functions/symlinkat.texi (symlinkat): Likewise.
1969
1970 2009-12-23  Bruno Haible  <bruno@clisp.org>
1971
1972         localename: More tests.
1973         * tests/test-localename.c (SIZEOF): New macro.
1974         (categories): New variable.
1975         (test_locale_name, test_locale_name_posix, test_locale_name_environ,
1976         test_locale_name_default): Add test w.r.t. thread locale.
1977         (test_locale_name_thread): New function.
1978         (main): Invoke it.
1979
1980         localename: Make aware of thread locale.
1981         * lib/localename.h (gl_locale_name_thread): New declaration.
1982         (gl_locale_name, gl_locale_name_posix, gl_locale_name_default): Clarify
1983         behaviour with respect to thread locale.
1984         * lib/localename.c: Include <limits.h>, <stddef.h>, <xlocale.h>,
1985         <langinfo.h>, glthread/lock.h.
1986         (SIZE_BITS): New macro.
1987         (string_hash): New function.
1988         (struct hash_node): New type.
1989         (HASH_TABLE_SIZE): New macro.
1990         (struniq_hash_table, struniq_lock): New variables.
1991         (struniq): New function.
1992         (gl_locale_name_thread): New function.
1993         (gl_locale_name): Invoke it.
1994         * m4/localename.m4 (gl_LOCALENAME): Test for uselocale function.
1995         * modules/localename (Depends-on): Add lock.
1996         Reported by Mike Gran <spk121@yahoo.com>.
1997
1998 2009-12-23  Eric Blake  <ebb9@byu.net>
1999
2000         va-args: new module
2001         * modules/va-args: New file.
2002         * m4/va-args.m4 (gl_VA_ARGS): Likewise.
2003         * MODULES.html.sh (Core language properties): Mention it.
2004
2005         gnulib-common: prefer _GL_UNUSED over _UNUSED_PARAMETER_
2006         * m4/gnulib-common.m4 (gl_COMMON): Create a more-appropriately
2007         named alias for __attribute__((__unused__)).
2008         * lib/chown.c: Update client.
2009         * lib/fchmodat.c: Likewise.
2010         * lib/fts.c: Likewise.
2011         * lib/getdate.y: Likewise.
2012         * lib/getgroups.c: Likewise.
2013         * lib/getopt.c: Likewise.
2014         * lib/getugroups.c: Likewise.
2015         * lib/mkdir.c: Likewise.
2016         * lib/mkfifo.c: Likewise.
2017         * lib/mkfifoat.c: Likewise.
2018         * lib/mknod.c: Likewise.
2019         * lib/mknodat.c: Likewise.
2020         * lib/readlink.c: Likewise.
2021         * lib/se-context.in.h: Likewise.
2022         * lib/se-selinux.in.h: Likewise.
2023         * lib/sockets.c: Likewise.
2024         * lib/symlink.c: Likewise.
2025         * lib/symlinkat.c: Likewise.
2026         * lib/unicodeio.c: Likewise.
2027         * lib/unistr.h: Likewise.
2028         * tests/test-areadlink.c: Likewise.
2029         * tests/test-areadlinkat.c: Likewise.
2030         * tests/test-filenamecat.c: Likewise.
2031         * tests/test-fseeko.c: Likewise.
2032         * tests/test-ftello.c: Likewise.
2033         * tests/test-getdate.c: Likewise.
2034         * tests/test-getgroups.c: Likewise.
2035         * tests/test-gethostname.c: Likewise.
2036         * tests/test-quotearg.c: Likewise.
2037         * tests/test-version-etc.c: Likewise.
2038         * tests/test-xalloc-die.c: Likewise.
2039         * tests/test-xfprintf-posix.c: Likewise.
2040         * tests/test-xprintf-posix.c: Likewise.
2041         * tests/test-xvasprintf.c: Likewise.
2042
2043         tests: avoid compiler warnings
2044         * tests/test-fcntl.c (main): Delete unused parameters.
2045         * tests/test-freopen-safer.c (main): Likewise.
2046         * tests/test-xalloc-die.c (main): Mark unused parameters.
2047         * tests/test-fseeko.c (main): Likewise.
2048         * tests/test-ftello.c (main): Likewise.
2049         * tests/test-nanosleep.c (main): Avoid declaration warning.
2050         * tests/test-sleep.c (main): Likewise.
2051         * tests/test-unsetenv.c (main): Silence warning about string
2052         literal.
2053         * m4/setenv.m4 (gl_FUNC_UNSETENV): Likewise.
2054
2055 2009-12-23  Bruno Haible  <bruno@clisp.org>
2056
2057         * tests/test-localename.c (test_locale_name): New function, extracted
2058         from main. Also test mixed situations.
2059         (test_locale_name_posix, test_locale_name_environ,
2060         test_locale_name_default): New functions.
2061         (main): Invoke them all.
2062         * modules/localename-tests (configure.ac): Test for newlocale.
2063
2064 2009-12-23  Bruno Haible  <bruno@clisp.org>
2065
2066         unistd: Ensure getcwd gets declared before being overridden.
2067         * lib/unistd.in.h: Conditionally include <io.h>.
2068
2069 2009-12-22  Bruno Haible  <bruno@clisp.org>
2070
2071         wchar: Diagnose broken combination of glibc and gcc versions and flags.
2072         * m4/wchar.m4 (gl_WCHAR_H_INLINE_OK): New macro.
2073         (gl_WCHAR_H): Invoke it.
2074         * m4/btowc.m4 (gl_FUNC_BTOWC): Require it.
2075         * doc/posix-headers/wchar.texi: Mention the interoperability problem.
2076         Reported by Karl Berry <karl@freefriends.org>.
2077
2078 2009-12-22  Eric Blake  <ebb9@byu.net>
2079
2080         math, unistd: avoid redundant includes
2081         * lib/math.in.h (isnan): No need to re-include <math.h>.
2082         * lib/unistd.in.h (getcwd): Likewise, for <stdlib.h>.
2083
2084         getsubopt: work around cygwin bug
2085         * lib/stdlib.in.h (includes): Move unistd inclusion sooner, to
2086         avoid conflicting with system getsubopt.
2087         * doc/posix-functions/getsubopt.texi (getsubopt): Document the
2088         bug.
2089
2090         getopt: synchronize from glibc
2091         * lib/getopt.c (_getopt_initialize, _getopt_internal_r): Swap
2092         parameter order.  Adjust all callers.
2093         (_getopt_internal_r, main): Adjust quoting in error messages.
2094         Drop considerations for outdated POSIX 1003.2 error message.
2095         * lib/getopt1.c (_getopt_long_r, _getopt_long_only_r): Adjust
2096         callers.
2097         * lib/getopt_int.h (_getopt_internal_r): Adjust prototype.
2098
2099         test-getopt: test stderr behavior
2100         * modules/getopt-posix-tests (Depends-on): Add dup2.
2101         * tests/test-getopt.c (ASSERT): Avoid stderr.
2102         (main): Move stderr to a temporary file.
2103         * tests/test-getopt.h (getopt_loop): No longer manipulate opterr.
2104         Instead, add parameter to inform caller if output occurred.
2105         (test_getopt): Adjust all existing tests to expect silence, and
2106         add new tests of leading ":".
2107         * doc/glibc-functions/getopt_long.texi (getopt_long): Document
2108         glibc shortcomings with leading "-:" or "+:" in optstring.
2109         * doc/glibc-functions/getopt_long_only.texi (getopt_long_only):
2110         Likewise.
2111         * doc/posix-functions/getopt.texi (getopt): Likewise.
2112
2113         test-getopt: enhance test
2114         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Require that getopt_long
2115         supports optind=0.
2116         * tests/test-getopt.c (OPTIND_MIN): Move...
2117         * tests/test-getopt.h (OPTIND_MIN): ...here.
2118         * tests/test-getopt_long.h (test_getopt_long): Add more coverage.
2119         Require that optind=0 works, since modern BSD supports it in
2120         addition to optreset, and since coreutils expects it.
2121         (test_getopt_long_only): New test.
2122         * doc/glibc-functions/getopt_long.texi (getopt_long): Document
2123         glibc shortcomings with 'W;', and enforcement of optind=0.
2124         * doc/glibc-functions/getopt_long_only.texi (getopt_long_only):
2125         Likewise.
2126
2127 2009-12-21  Bruno Haible  <bruno@clisp.org>
2128
2129         localename: Improvements for MacOS X and Cygwin.
2130         * lib/localename.h (gl_locale_name_environ): New declaration.
2131         * lib/localename.c (gl_locale_name_environ): New function, extracted from
2132         gl_locale_name_posix. Ignore dummy LANG values on MacOS X and Cygwin.
2133         (gl_locale_name_posix): Invoke it.
2134         (gl_locale_name_default): Add comments. Use Windows native API also on
2135         Cygwin.
2136
2137 2009-12-21  Bruno Haible  <bruno@clisp.org>
2138
2139         Update list of Win32 locale ids.
2140         * lib/localename.c (LANG_ROMANSH): Renamed from LANG_RHAETO_ROMANCE.
2141         (LANG_SAMI): Renamed from LANG_SAAMI.
2142         (LANG_BASHKIR, LANG_LUXEMBOURGISH, LANG_GREENLANDIC,
2143         LANG_MAPUDUNGUN, LANG_MOHAWK, LANG_BRETON, LANG_OCCITAN, LANG_CORSICAN,
2144         LANG_ALSATIAN, LANG_YAKUT, LANG_KICHE, LANG_KINYARWANDA, LANG_WOLOF,
2145         LANG_DARI, LANG_SCOTTISH_GAELIC): New macros.
2146         (SUBLANG_AFRIKAANS_SOUTH_AFRICA, SUBLANG_ALBANIAN_ALBANIA,
2147         SUBLANG_ALSATIAN_FRANCE, SUBLANG_AMHARIC_ETHIOPIA,
2148         SUBLANG_ARMENIAN_ARMENIA, SUBLANG_ASSAMESE_INDIA,
2149         SUBLANG_BASHKIR_RUSSIA, SUBLANG_BASQUE_BASQUE,
2150         SUBLANG_BELARUSIAN_BELARUS, SUBLANG_BRETON_FRANCE,
2151         SUBLANG_BULGARIAN_BULGARIA, SUBLANG_CAMBODIAN_CAMBODIA,
2152         SUBLANG_CATALAN_SPAIN, SUBLANG_CORSICAN_FRANCE,
2153         SUBLANG_CZECH_CZECH_REPUBLIC, SUBLANG_DANISH_DENMARK,
2154         SUBLANG_DARI_AFGHANISTAN, SUBLANG_DIVEHI_MALDIVES,
2155         SUBLANG_DUTCH_SURINAM, SUBLANG_ESTONIAN_ESTONIA,
2156         SUBLANG_FAEROESE_FAROE_ISLANDS, SUBLANG_FARSI_IRAN,
2157         SUBLANG_FINNISH_FINLAND, SUBLANG_FRISIAN_NETHERLANDS,
2158         SUBLANG_GALICIAN_SPAIN, SUBLANG_GEORGIAN_GEORGIA,
2159         SUBLANG_GREEK_GREECE, SUBLANG_GREENLANDIC_GREENLAND,
2160         SUBLANG_GUJARATI_INDIA, SUBLANG_HAUSA_NIGERIA_LATIN,
2161         SUBLANG_HEBREW_ISRAEL, SUBLANG_HINDI_INDIA, SUBLANG_HUNGARIAN_HUNGARY,
2162         SUBLANG_ICELANDIC_ICELAND, SUBLANG_IGBO_NIGERIA,
2163         SUBLANG_INDONESIAN_INDONESIA, SUBLANG_INUKTITUT_CANADA,
2164         SUBLANG_INUKTITUT_CANADA_LATIN, SUBLANG_IRISH_IRELAND,
2165         SUBLANG_JAPANESE_JAPAN, SUBLANG_KANNADA_INDIA,
2166         SUBLANG_KAZAK_KAZAKHSTAN, SUBLANG_KICHE_GUATEMALA,
2167         SUBLANG_KINYARWANDA_RWANDA, SUBLANG_KONKANI_INDIA,
2168         SUBLANG_KYRGYZ_KYRGYZSTAN, SUBLANG_LAO_LAOS, SUBLANG_LATVIAN_LATVIA,
2169         SUBLANG_LITHUANIAN_LITHUANIA, SUBLANG_LOWER_SORBIAN_GERMANY,
2170         SUBLANG_LUXEMBOURGISH_LUXEMBOURG, SUBLANG_MACEDONIAN_MACEDONIA,
2171         SUBLANG_MALAYALAM_INDIA, SUBLANG_MALTESE_MALTA,
2172         SUBLANG_MAORI_NEW_ZEALAND, SUBLANG_MAPUDUNGUN_CHILE,
2173         SUBLANG_MARATHI_INDIA, SUBLANG_MOHAWK_CANADA, SUBLANG_NEPALI_NEPAL,
2174         SUBLANG_OCCITAN_FRANCE, SUBLANG_ORIYA_INDIA,
2175         SUBLANG_PASHTO_AFGHANISTAN, SUBLANG_POLISH_POLAND,
2176         SUBLANG_ROMANSH_SWITZERLAND, SUBLANG_SAMI_NORTHERN_NORWAY,
2177         SUBLANG_SAMI_NORTHERN_SWEDEN, SUBLANG_SAMI_NORTHERN_FINLAND,
2178         SUBLANG_SAMI_LULE_NORWAY, SUBLANG_SAMI_LULE_SWEDEN,
2179         SUBLANG_SAMI_SOUTHERN_NORWAY, SUBLANG_SAMI_SOUTHERN_SWEDEN,
2180         SUBLANG_SAMI_SKOLT_FINLAND, SUBLANG_SAMI_INARI_FINLAND,
2181         SUBLANG_SANSKRIT_INDIA, SUBLANG_SINHALESE_SRI_LANKA,
2182         SUBLANG_SLOVAK_SLOVAKIA, SUBLANG_SLOVENIAN_SLOVENIA,
2183         SUBLANG_SOTHO_SOUTH_AFRICA, SUBLANG_SWAHILI_KENYA,
2184         SUBLANG_SWEDISH_SWEDEN, SUBLANG_SYRIAC_SYRIA,
2185         SUBLANG_TAGALOG_PHILIPPINES, SUBLANG_TAJIK_TAJIKISTAN,
2186         SUBLANG_TAMIL_INDIA, SUBLANG_TATAR_RUSSIA, SUBLANG_TELUGU_INDIA,
2187         SUBLANG_THAI_THAILAND, SUBLANG_TSWANA_SOUTH_AFRICA,
2188         SUBLANG_TURKISH_TURKEY, SUBLANG_TURKMEN_TURKMENISTAN,
2189         SUBLANG_UKRAINIAN_UKRAINE, SUBLANG_UPPER_SORBIAN_GERMANY,
2190         SUBLANG_VIETNAMESE_VIETNAM, SUBLANG_WELSH_UNITED_KINGDOM,
2191         SUBLANG_WOLOF_SENEGAL, SUBLANG_XHOSA_SOUTH_AFRICA,
2192         SUBLANG_YAKUT_RUSSIA, SUBLANG_YI_PRC, SUBLANG_YORUBA_NIGERIA,
2193         SUBLANG_ZULU_SOUTH_AFRICA): New macros.
2194         (gl_locale_name_from_win32_LANGID): Handle also the territory neutral
2195         locale ids. Add support for Alsatian, Bashkir, Breton, Corsican, Dari,
2196         Greenlandic, K'iche', Kinyarwanda, Luxembourgish, Mapudungun, Mohawk,
2197         Occitan, Scottish Gaelic, Wolof, Yakut. Change language code for Yi.
2198         Add more languages and countries for Sami, Sorbian. Add more countries
2199         for Serbian, Dutch. Add more scripts for Inuktitut. Be more precise
2200         for Pashto. Change country for Syriac, Tswana.
2201
2202 2009-12-21  Eric Blake  <ebb9@byu.net>
2203
2204         test-utimens: avoid spurious failure
2205         * tests/test-chown.h (nap): Factor...
2206         * tests/nap.h: ...into new file.
2207         * tests/test-lchown.h (nap): Avoid duplication.
2208         * tests/test-utimens-common.h (nap): Use shared implementation,
2209         necessary on file systems with 1-second resolution.
2210         * modules/chown-tests (Files): Include new file.
2211         * modules/fdutimensat-tests (Files): Likewise.
2212         * modules/futimens-tests (Files): Likewise.
2213         * modules/lchown-tests (Files): Likewise.
2214         * modules/openat-tests (Files): Likewise.
2215         * modules/utimens-tests (Files): Likewise.
2216         * modules/utimensat-tests (Files): Likewise.
2217
2218 2009-12-19  Eric Blake  <ebb9@byu.net>
2219
2220         futimens, utimensat: work around Linux bug
2221         * m4/futimens.m4 (gl_FUNC_FUTIMENS): Detect ctime bug.
2222         * m4/utimensat.m4 (gl_FUNC_UTIMENSAT): Likewise.
2223         * lib/utimensat.c (rpl_utimensat): Work around it.
2224         * lib/futimens.c (rpl_futimens): Adjust comment.
2225
2226         utimens: work around Linux ctime bug
2227         * lib/utimens.c (detect_ctime_bug): New helper function.
2228         (update_timespec): Differentiate between workaround needed for
2229         this bug vs. what is needed for systems that lack utimensat.
2230         (fdutimens, lutimens): Work around bug.
2231
2232         utimens: check for ctime update
2233         * tests/test-utimens-common.h (check_ctime): Define.
2234         * tests/test-utimens.h (test_utimens): Expose the Linux bug.
2235         * tests/test-futimens.h (test_futimens): Likewise.
2236         * tests/test-lutimens.h (test_lutimens): Likewise.
2237         * doc/posix-functions/futimens.texi (futimens): Document the bug.
2238         * doc/posix-functions/utimensat.texi (utimensat): Likewise.
2239
2240 2009-12-19  Bruno Haible  <bruno@clisp.org>
2241
2242         dprintf-posix: Check against memory leak fixed on 2009-12-15.
2243         * tests/test-dprintf-posix2.sh: New file.
2244         * tests/test-dprintf-posix2.c: New file.
2245         * modules/dprintf-posix-tests (Files): Add them.
2246         (configure.ac): Check for getrlimit and setrlimit.
2247         (Makefile.am): Augment TESTS and CHECK_PROGRAMS.
2248
2249 2009-12-19  Bruno Haible  <bruno@clisp.org>
2250
2251         fprintf-posix: Check against memory leak fixed on 2009-12-15.
2252         * tests/test-fprintf-posix3.sh: New file.
2253         * tests/test-fprintf-posix3.c: New file.
2254         * modules/fprintf-posix-tests (Files): Add them.
2255         (Makefile.am): Augment TESTS and CHECK_PROGRAMS.
2256
2257 2009-12-19  Eric Blake  <ebb9@byu.net>
2258
2259         dirfd: fix prototype
2260         * lib/dirent.in.h (dirfd): Argument is not const, per POSIX.
2261         * lib/dirfd.c (dirfd): Likewise.
2262
2263         canonicalize: reduce memory usage
2264         * lib/canonicalize.c (canonicalize_filename_mode): Trim the
2265         allocation to size.
2266         Reported by Solar Designer <solar@openwall.com>.
2267
2268 2009-12-19  Bruno Haible  <bruno@clisp.org>
2269
2270         New module attribute 'Applicability'.
2271         * modules/TEMPLATE-EXTENDED: New field 'Applicability'.
2272         * gnulib-tool: New option --extract-applicability.
2273         (func_usage): Document it.
2274         (sed_extract_prog): Recognize it.
2275         (func_get_applicability): New function.
2276         (func_import): Generalize handling of 'link-warning' module.
2277         * modules/link-warning (Applicability): New section.
2278         * modules/arg-nonnull (Applicability): New section.
2279         Repoted by Simon Josefsson <simon@josefsson.org>.
2280
2281 2009-12-19  Bruno Haible  <bruno@clisp.org>
2282
2283         fflush: tweak
2284         * lib/fflush.c (update_fpos_cache): Don't use fpos_t on Cygwin.
2285         * lib/fseeko.c (rpl_fseeko): Likewise.
2286
2287 2009-12-16  José E. Marchesi  <jemarch@gnu.org>  (tiny change)
2288
2289         * lib/gl_list.h: Fix typo in comment.
2290
2291 2009-12-16  Eric Blake  <ebb9@byu.net>
2292
2293         fcntl: use to simplify other modules
2294         * modules/cloexec (Depends-on): Add fcntl.
2295         * modules/fchdir (Depends-on): Likewise.
2296         * modules/fd-safer-flag (Depends-on): Likewise.
2297         * modules/unistd-safer (Depends-on): Likewise.
2298         * modules/dup3 (configure.ac): Set module indicator.
2299         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Replace fcntl if fchdir is
2300         missing.
2301         * lib/fchdir.c (_gl_register_dup): Fix comment.
2302         * lib/cloexec.c (dup_cloexec): Simplify, by relying on fcntl.
2303         * lib/dup-safer.c (dup_safer): Likewise.
2304         * lib/dup-safer-flag.c (dup_safer_flag): Likewise.
2305         * lib/dup3.c (dup3): Likewise.
2306         * tests/test-fchdir.c (main): Enhance test.
2307         Fixes a dup_cloexec bug reported by OndÅ™ej Vašík.
2308
2309         fcntl: port portions of fcntl to mingw
2310         * m4/fcntl.m4 (gl_FUNC_FCNTL): Also build fcntl.c on mingw.
2311         * lib/fcntl.c (fcntl) <F_DUPFD, F_DUPFD_CLOEXEC, F_GETFD>: Provide
2312         replacement for mingw.
2313         * modules/fcntl (Description): Update.
2314         (Depends-on): Add dup2.
2315         * m4/fcntl_h.m4 (gl_FCNTL_H_DEFAULTS): Add witness.
2316         * modules/fcntl-h (Makefile.am): Substitute it.
2317         * lib/fcntl.in.h (fcntl): Update declaration.
2318         (F_DUPFD, F_GETFD): New macros, when needed.
2319         * doc/posix-headers/fcntl.texi (fcntl.h): Update documentation.
2320         * doc/posix-functions/fcntl.texi (fcntl): Likewise.
2321         * tests/test-fcntl.c (check_flags, main): Enhance test for items
2322         we now guarantee.
2323
2324         fcntl: work around cygwin bug in F_DUPFD
2325         * m4/fcntl.m4 (gl_REPLACE_FCNTL): New macro.
2326         (gl_FUNC_FCNTL): Use it.  Test for F_DUPFD bug.
2327         * lib/fcntl.c (rpl_fcntl) <F_DUPFD>: Work around it.
2328         <F_DUPFD_CLOEXEC>: Reduce calls to _gl_register_dup.
2329         * doc/posix-functions/fcntl.texi (fcntl): Document it.
2330
2331         fcntl: support F_DUPFD_CLOEXEC on systems with fcntl
2332         * modules/fcntl (Files): List new files.
2333         (configure.ac): Run a test.
2334         * m4/fcntl.m4 (gl_FUNC_FCNTL): New file.
2335         * lib/fcntl.c (rpl_fcntl): Likewise.
2336         * m4/fcntl_h.m4 (gl_FCNTL_H_DEFAULTS): Add witness defaults.
2337         (gl_FCNTL_H): Always replace fcntl.h.
2338         * modules/fcntl-h (Makefile.am): Substitute witnesses.
2339         * lib/fcntl.in.h (fcntl): Declare replacement.
2340         (F_DUPFD_CLOEXEC, GNULIB_defined_F_DUPFD_CLOEXEC): New macro when
2341         needed, plus a witness.
2342         * doc/posix-functions/fcntl.texi (fcntl): Document this.
2343         * doc/posix-headers/fcntl.texi (fcntl.h): Likewise.
2344         * tests/test-fcntl.c: New file.
2345         * modules/fcntl-tests: Likewise.
2346
2347         binary-io: avoid potential compilation warning
2348         * lib/binary-io.h [__DJGPP__]: Avoid null preprocessor
2349         directives.
2350
2351         fflush: avoid compilation error on NetBSD
2352         * lib/fflush.c (update_fpos_cache): Use a union to safely convert
2353         between off_t and fpos_t, since the latter is sometimes a struct.
2354         * lib/fseeko.c (rpl_fseeko): Likewise.
2355         Reported by Alexander Nasonov <alnsn@yandex.ru>.
2356
2357 2009-12-15  Eric Blake  <ebb9@byu.net>
2358
2359         fcntl-h, stdio, sys_ioctl: fix declarations
2360         * lib/stdio.in.h (dprintf): Use of link warning on a variadic
2361         function must not take arguments.
2362         * lib/sys_ioctl.in.h (ioctl): Likewise.
2363         * lib/fcntl.in.h (openat): Likewise.  Declare extern.
2364         (open): Add a link warning.
2365
2366 2009-12-15  Jim Meyering  <meyering@redhat.com>
2367
2368         areadlink, areadlink-with-size: relax license to LGPLv2+
2369         * modules/areadlink (License): Relax to LGPLv2+.
2370         * modules/areadlink-with-size (License): Likewise.
2371
2372 2009-12-15  Joel E. Denny  <jdenny@clemson.edu>
2373             Bruno Haible  <bruno@clisp.org>
2374
2375         *printf: Fix memory leak.
2376         * lib/fprintf.c (fprintf): Free memory allocated by vasnprintf.
2377         * lib/vfprintf.c (vfprintf): Likewise.
2378         * lib/dprintf.c (dprintf): Likewise.
2379         * lib/vdprintf.c (vdprintf): Likewise.
2380
2381 2009-12-14  Eric Blake  <ebb9@byu.net>
2382
2383         accept4: adjust module dependencies
2384         * modules/accept4 (Depends-on): Use fcntl-h, not fcntl.
2385
2386         utimens: one more try at avoiding compiler warning
2387         * lib/utimens.c (lutimens): Lower scope of result.
2388
2389 2009-12-13  Bruno Haible  <bruno@clisp.org>
2390
2391         Move the malloc checking from module 'list' to new module 'xlist'.
2392         * modules/xlist: New file.
2393         * lib/gl_xlist.h: New file.
2394         * lib/gl_xlist.c: New file.
2395         * lib/gl_list.h (gl_list_create_empty, gl_list_create,
2396         gl_list_node_set_value, gl_list_set_at, gl_list_add_first,
2397         gl_list_add_last, gl_list_add_before, gl_list_add_after,
2398         gl_list_nx_add_at, gl_sortedlist_add): Disable declarations.
2399         (gl_list_nx_create_empty, gl_list_nx_create, gl_list_node_nx_set_value,
2400         gl_list_nx_set_at, gl_list_nx_add_first, gl_list_nx_add_last,
2401         gl_list_nx_add_before, gl_list_nx_add_after, gl_list_nx_add_at,
2402         gl_sortedlist_nx_add): New declarations.
2403         (struct gl_list_implementation): Rename and change methods accordingly.
2404         (gl_list_nx_create_empty): Renamed from gl_list_create_empty.
2405         (gl_list_nx_create): Renamed from gl_list_create.
2406         (gl_list_node_nx_set_value): Renamed from gl_list_node_set_value.
2407         (gl_list_nx_set_at): Renamed from gl_list_set_at.
2408         (gl_list_nx_add_first): Renamed from gl_list_add_first.
2409         (gl_list_nx_add_last): Renamed from gl_list_add_last.
2410         (gl_list_nx_add_before): Renamed from gl_list_add_before.
2411         (gl_list_nx_add_after): Renamed from gl_list_add_after.
2412         (gl_list_nx_add_at): Renamed from gl_list_add_at.
2413         (gl_sortedlist_nx_add): Renamed from gl_sortedlist_add.
2414         * lib/gl_list.c (gl_list_nx_create_empty): Renamed from
2415         gl_list_create_empty.
2416         (gl_list_nx_create): Renamed from gl_list_create.
2417         (gl_list_node_nx_set_value): Renamed from gl_list_node_set_value.
2418         (gl_list_nx_set_at): Renamed from gl_list_set_at.
2419         (gl_list_nx_add_first): Renamed from gl_list_add_first.
2420         (gl_list_nx_add_last): Renamed from gl_list_add_last.
2421         (gl_list_nx_add_before): Renamed from gl_list_add_before.
2422         (gl_list_nx_add_after): Renamed from gl_list_add_after.
2423         (gl_list_nx_add_at): Renamed from gl_list_add_at.
2424         (gl_sortedlist_nx_add): Renamed from gl_sortedlist_add.
2425         * lib/gl_array_list.c: Don't include xalloc.h.
2426         (gl_array_nx_create_empty): Renamed from gl_array_create_empty. Return
2427         NULL upon out-of-memory.
2428         (gl_array_nx_create): Renamed from gl_array_create. Return NULL upon
2429         out-of-memory.
2430         (gl_array_node_nx_set_value): Renamed from gl_array_node_set_value.
2431         Change return type to 'int'.
2432         (gl_array_nx_set_at): Renamed from gl_array_set_at.
2433         (grow): Change return type to 'int'. Return -1 upon out-of-memory.
2434         (gl_array_nx_add_first): Renamed from gl_array_add_first. Return NULL
2435         upon out-of-memory.
2436         (gl_array_nx_add_last): Renamed from gl_array_add_last. Return NULL
2437         upon out-of-memory.
2438         (gl_array_nx_add_before): Renamed from gl_array_add_before. Return NULL
2439         upon out-of-memory.
2440         (gl_array_nx_add_after): Renamed from gl_array_add_after. Return NULL
2441         upon out-of-memory.
2442         (gl_array_nx_add_at): Renamed from gl_array_add_at. Return NULL upon
2443         out-of-memory.
2444         (gl_array_sortedlist_nx_add): Renamed from gl_array_sortedlist_add.
2445         Update.
2446         (gl_array_list_implementation): Update.
2447         * lib/gl_carray_list.c: Don't include xalloc.h.
2448         (gl_carray_nx_create_empty): Renamed from gl_carray_create_empty.
2449         Return NULL upon out-of-memory.
2450         (gl_carray_nx_create): Renamed from gl_carray_create. Return NULL upon
2451         out-of-memory.
2452         (gl_carray_node_nx_set_value): Renamed from gl_carray_node_set_value.
2453         Change return type to 'int'.
2454         (gl_carray_nx_set_at): Renamed from gl_carray_set_at.
2455         (grow): Change return type to 'int'. Return -1 upon out-of-memory.
2456         (gl_carray_nx_add_first): Renamed from gl_carray_add_first. Return NULL
2457         upon out-of-memory.
2458         (gl_carray_nx_add_last): Renamed from gl_carray_add_last. Return NULL
2459         upon out-of-memory.
2460         (gl_carray_nx_add_at): Renamed from gl_carray_add_at. Return NULL upon
2461         out-of-memory.
2462         (gl_carray_nx_add_before): Renamed from gl_carray_add_before. Update.
2463         (gl_carray_nx_add_after): Renamed from gl_carray_add_after. Update.
2464         (gl_carray_sortedlist_nx_add): Renamed from gl_carray_sortedlist_add.
2465         Update.
2466         (gl_carray_list_implementation): Update.
2467         * lib/gl_anyhash_list2.h (hash_resize): Do nothing upon out-of-memory.
2468         * lib/gl_anylinked_list2.h (gl_linked_nx_create_empty): Renamed from
2469         gl_linked_create_empty. Return NULL upon out-of-memory.
2470         (gl_linked_nx_create): Renamed from gl_linked_create. Return NULL upon
2471         out-of-memory.
2472         (gl_linked_node_nx_set_value): Renamed from gl_linked_node_set_value.
2473         Change return type to 'int'. Return -1 upon out-of-memory.
2474         (gl_linked_nx_set_at): Renamed from gl_linked_set_at. Return NULL upon
2475         out-of-memory.
2476         (gl_linked_nx_add_first): Renamed from gl_linked_add_first. Return NULL
2477         upon out-of-memory.
2478         (gl_linked_nx_add_last): Renamed from gl_linked_add_last. Return NULL
2479         upon out-of-memory.
2480         (gl_linked_nx_add_before): Renamed from gl_linked_add_before. Return
2481         NULL upon out-of-memory.
2482         (gl_linked_nx_add_after): Renamed from gl_linked_add_after. Return NULL
2483         upon out-of-memory.
2484         (gl_linked_nx_add_at): Renamed from gl_linked_add_at. Return NULL upon
2485         out-of-memory.
2486         (gl_linked_sortedlist_nx_add): Renamed from gl_linked_sortedlist_add.
2487         Update.
2488         * lib/gl_linked_list.c: Don't include xalloc.h.
2489         (gl_linked_list_implementation): Update.
2490         * lib/gl_linkedhash_list.c: Don't include xalloc.h.
2491         (add_to_bucket): Change return type to 'int'.
2492         (gl_linkedhash_list_implementation): Update.
2493         * lib/gl_anytree_list1.h (free_subtree): New function.
2494         * lib/gl_anytree_list2.h (gl_tree_nx_create_empty): Renamed from
2495         gl_tree_create_empty. Return NULL upon out-of-memory.
2496         (gl_tree_node_nx_set_value): Renamed from gl_tree_node_set_value.
2497         Change return type to 'int'. Return -1 upon out-of-memory.
2498         (gl_tree_nx_set_at): Renamed from gl_tree_set_at. Return NULL upon
2499         out-of-memory.
2500         (gl_tree_nx_add_at): Renamed from gl_tree_add_at. Update.
2501         (gl_tree_remove_node): New function, moved here from
2502         lib/gl_anyavltree_list2.h and lib/gl_anyrbtree_list2.h.
2503         (gl_tree_sortedlist_nx_add): Renamed from gl_tree_sortedlist_add.
2504         Update.
2505         * lib/gl_anyavltree_list2.h (create_subtree_with_contents): Use
2506         malloc, not xmalloc. Return NULL upon out-of-memory.
2507         (gl_tree_nx_create): Renamed from gl_tree_create. Return NULL upon
2508         out-of-memory.
2509         (gl_tree_remove_node_from_tree): New function, extracted from
2510         gl_tree_remove_node.
2511         (gl_tree_nx_add_first): Renamed from gl_tree_add_first. Return NULL
2512         upon out-of-memory.
2513         (gl_tree_nx_add_last): Renamed from gl_tree_add_last. Return NULL upon
2514         out-of-memory.
2515         (gl_tree_nx_add_before): Renamed from gl_tree_add_before. Return NULL
2516         upon out-of-memory.
2517         (gl_tree_nx_add_after): Renamed from gl_tree_add_after. Return NULL
2518         upon out-of-memory.
2519         (gl_tree_remove_node): Remove function. Moved to gl_anytree_list2.h.
2520         * lib/gl_anyrbtree_list2.h (create_subtree_with_contents): Use malloc,
2521         not xmalloc. Return NULL upon out-of-memory.
2522         (gl_tree_nx_create): Renamed from gl_tree_create. Return NULL upon
2523         out-of-memory.
2524         (gl_tree_remove_node_from_tree): New function, extracted from
2525         gl_tree_remove_node.
2526         (gl_tree_nx_add_first): Renamed from gl_tree_add_first. Return NULL
2527         upon out-of-memory.
2528         (gl_tree_nx_add_last): Renamed from gl_tree_add_last. Return NULL upon
2529         out-of-memory.
2530         (gl_tree_nx_add_before): Renamed from gl_tree_add_before. Return NULL
2531         upon out-of-memory.
2532         (gl_tree_nx_add_after): Renamed from gl_tree_add_after. Return NULL
2533         upon out-of-memory.
2534         (gl_tree_remove_node): Remove function. Moved to gl_anytree_list2.h.
2535         * lib/gl_avltree_list.c: Don't include xalloc.h. Include
2536         gl_anytree_list1.h before gl_anyavltree_list2.h.
2537         (gl_avltree_list_implementation): Update.
2538         * lib/gl_rbtree_list.c: Don't include xalloc.h. Include
2539         gl_anytree_list1.h before gl_anyavltree_list2.h.
2540         (gl_rbtree_list_implementation): Update.
2541         * lib/gl_anytreehash_list1.h (add_to_bucket, add_nodes_to_buckets):
2542         Change return type to 'int'. Return -1 upon out-of-memory. Use
2543         __builtin_expect.
2544         * lib/gl_avltreehash_list.c: Don't include xalloc.h.
2545         (gl_avltreehash_list_implementation): Update.
2546         * lib/gl_rbtreehash_list.c: Don't include xalloc.h.
2547         (gl_rbtreehash_list_implementation): Update.
2548         * modules/array-list (Depends-on): Remove xalloc.
2549         * modules/carray-list (Depends-on): Likewise.
2550         * modules/linked-list (Depends-on): Likewise.
2551         * modules/linkedhash-list (Depends-on): Likewise.
2552         * modules/avltree-list (Depends-on): Likewise.
2553         * modules/rbtree-list (Depends-on): Likewise.
2554         * modules/avltreehash-list (Depends-on): Likewise.
2555         * modules/rbtreehash-list (Depends-on): Likewise.
2556
2557         * modules/xsublist: New file.
2558         * lib/gl_xsublist.h: New file.
2559         * lib/gl_xsublist.c: New file.
2560         * lib/gl_sublist.h (gl_sublist_create): Disable declaration.
2561         (gl_sublist_nx_create): New declaration.
2562         * lib/gl_sublist.c: Don't include xalloc.h.
2563         (gl_sublist_nx_create_empty): Renamed from gl_sublist_create_empty.
2564         (gl_sublist_nx_create_fill): Renamed from gl_sublist_create_fill.
2565         (gl_sublist_node_nx_set_value): Renamed from gl_sublist_node_set_value.
2566         Change return type to 'int'. Return -1 upon out-of-memory.
2567         (gl_sublist_nx_set_at): Renamed from gl_sublist_set_at. Return NULL
2568         upon out-of-memory.
2569         (gl_sublist_nx_add_first): Renamed from gl_sublist_add_first. Return
2570         NULL upon out-of-memory.
2571         (gl_sublist_nx_add_last): Renamed from gl_sublist_add_last. Return NULL
2572         upon out-of-memory.
2573         (gl_sublist_nx_add_before): Renamed from gl_sublist_add_before. Return
2574         NULL upon out-of-memory.
2575         (gl_sublist_nx_add_after): Renamed from gl_sublist_add_after. Return
2576         NULL upon out-of-memory.
2577         (gl_sublist_nx_add_at): Renamed from gl_sublist_add_at. Return NULL
2578         upon out-of-memory.
2579         (gl_sublist_sortedlist_nx_add): Renamed from gl_sublist_sortedlist_add.
2580         (gl_sublist_list_implementation): Update.
2581         (gl_sublist_nx_create): Renamed from gl_sublist_create. Return NULL
2582         upon out-of-memory.
2583         * modules/sublist (Depends-on): Remove xalloc.
2584
2585         * tests/test-array_list.c: Use gl_list_nx_* functions where possible.
2586         * tests/test-carray_list.c: Likewise.
2587         * tests/test-linked_list.c: Likewise.
2588         * tests/test-linkedhash_list.c: Likewise.
2589         * tests/test-avltree_list.c: Likewise.
2590         * tests/test-rbtree_list.c: Likewise.
2591         * tests/test-avltreehash_list.c: Likewise.
2592         * tests/test-rbtreehash_list.c: Likewise.
2593         * modules/array-list-tests (Makefile.am): Don't link with @LIBINTL@.
2594         * modules/carray-list-tests (Makefile.am): Likewise.
2595         * modules/linked-list-tests (Makefile.am): Likewise.
2596         * modules/linkedhash-list-tests (Makefile.am): Likewise.
2597         * modules/avltree-list-tests (Makefile.am): Likewise.
2598         * modules/rbtree-list-tests (Makefile.am): Likewise.
2599         * modules/avltreehash-list-tests (Makefile.am): Likewise.
2600         * modules/rbtreehash-list-tests (Makefile.am): Likewise.
2601
2602         * NEWS: Mention the changes.
2603
2604         * lib/clean-temp.c: Include gl_xlist.h.
2605         * modules/clean-temp (Depends-on): Add xlist.
2606
2607         * lib/git-merge-changelog.c: Include gl_xlist.h instead of gl_list.h.
2608         * modules/git-merge-changelog (Depends-on): Add xlist. Remove list.
2609
2610         * tests/test-array_oset.c: Include gl_xlist.h.
2611         * modules/array-oset-tests (Depends-on): Add xlist.
2612
2613         Reported by José E. Marchesi <jemarch@gnu.org>.
2614
2615 2009-12-13  Bruno Haible  <bruno@clisp.org>
2616
2617         Move the malloc checking from module 'oset' to new module 'xoset'.
2618         * modules/xoset: New file.
2619         * lib/gl_xoset.h: New file.
2620         * lib/gl_xoset.c: New file.
2621         * lib/gl_oset.h (gl_oset_create_empty, gl_oset_add): Disable
2622         declarations.
2623         (gl_oset_nx_create_empty, gl_oset_nx_add): New declarations.
2624         (struct gl_oset_implementation): Rename and change methods accordingly.
2625         (gl_oset_nx_create_empty): Renamed from gl_oset_create_empty.
2626         (gl_oset_nx_add): Renamed from gl_oset_add. Change return type to
2627         'int'. Mark as __warn_unused_result__.
2628         * lib/gl_oset.c (gl_oset_nx_create_empty): Renamed from
2629         gl_oset_create_empty.
2630         (gl_oset_nx_add): Renamed from gl_oset_add. Change return type to
2631         'int'.
2632         * lib/gl_array_oset.c: Don't include xalloc.h.
2633         (gl_array_nx_create_empty): Renamed from gl_array_create_empty. Use
2634         malloc, not xmalloc.
2635         (grow): Change return type to 'int'. Don't call xalloc_die.
2636         (gl_array_nx_add_at): Renamed from gl_array_add_at. Change return type
2637         to 'int'.
2638         (gl_array_nx_add): Renamed from gl_array_add. Change return type to
2639         'int'.
2640         (gl_array_oset_implementation): Update.
2641         * lib/gl_anytree_oset.h (gl_tree_nx_create_empty): Renamed from
2642         gl_tree_create_empty.
2643         (gl_tree_nx_add): Renamed from gl_tree_add. Change return type to
2644         'int'.
2645         * lib/gl_avltree_oset.c: Don't include xalloc.h.
2646         (gl_tree_nx_add_first): Renamed from gl_tree_add_first. Use malloc, not
2647         xmalloc.
2648         (gl_tree_nx_add_before): Renamed from gl_tree_add_before. Use malloc,
2649         not xmalloc.
2650         (gl_tree_nx_add_after): Renamed from gl_tree_add_after. Use malloc, not
2651         xmalloc.
2652         (gl_avltree_oset_implementation): Update.
2653         * lib/gl_rbtree_oset.c: Don't include xalloc.h.
2654         (gl_tree_nx_add_first): Renamed from gl_tree_add_first. Use malloc, not
2655         xmalloc.
2656         (gl_tree_nx_add_before): Renamed from gl_tree_add_before. Use malloc,
2657         not xmalloc.
2658         (gl_tree_nx_add_after): Renamed from gl_tree_add_after. Use malloc, not
2659         xmalloc.
2660         (gl_rbtree_oset_implementation): Update.
2661         * modules/array-oset (Depends-on): Remove xalloc.
2662         * modules/avltree-oset (Depends-on): Likewise.
2663         * modules/rbtree-oset (Depends-on): Likewise.
2664         * tests/test-array_oset.c: Use gl_oset_nx_* functions where possible.
2665         * tests/test-avltree_oset.c: Likewise.
2666         * tests/test-rbtree_oset.c: Likewise.
2667         * lib/gl_anytreehash_list1.h (add_to_bucket): Likewise.
2668         * modules/avltree-oset-tests (Makefile.am): Don't link with @LIBINTL@.
2669         * modules/rbtree-oset-tests (Makefile.am): Likewise.
2670         * NEWS: Mention the change.
2671
2672 2009-12-05  Alfred M. Szmidt  <ams@gnu.org>
2673
2674         maint.mk: allow a project to override release-prep commands
2675         * top/maint.mk (alpha, beta, stable): Move release-preparatory
2676         commands into a new rule.
2677         (release-prep): New rule.
2678         (release-prep-hook): New overridable variable.
2679
2680 2009-12-13  Bruno Haible  <bruno@clisp.org>
2681
2682         * lib/localcharset.c (locale_charset): Fix comment about use of GetACP.
2683
2684 2009-12-13  Jim Meyering  <meyering@redhat.com>
2685
2686         maint.mk (null_AM_MAKEFLAGS, built_programs): remove unused definitions
2687         * top/maint.mk (null_AM_MAKEFLAGS, built_programs): Remove definitions.
2688
2689 2009-12-12  Bruno Haible  <bruno@clisp.org>
2690
2691         duplocale: Tweak.
2692         * lib/duplocale.c (rpl_duplocale): Mark categories array as 'const'.
2693
2694 2009-12-12  Karl Berry  <karl@gnu.org>
2695
2696         * config/srclist.txt (strtoll.c): tab changes, no more sync.
2697
2698 2009-12-12  Bruno Haible  <bruno@clisp.org>
2699
2700         * m4/po.m4: Undo incorrect untabification.
2701
2702 2009-12-12  Bruno Haible  <bruno@clisp.org>
2703
2704         c-strtod, c-strtold: Use multithread-safe implementation on MacOS X.
2705         * modules/c-strtod (Depends-on): Add locale.
2706         * modules/c-strtold (Depends-on): Likewise.
2707
2708 2009-12-12  Bruno Haible  <bruno@clisp.org>
2709
2710         * lib/localcharset.c (locale_charset): Add comment about use of GetACP.
2711
2712 2009-12-11  Eric Blake  <ebb9@byu.net>
2713
2714         setenv: relax requirement in light of POSIX ruling
2715         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE): Test handling of "" but
2716         not NULL.
2717         * tests/test-setenv.c (main): Relax test.
2718         * tests/test-unsetenv.c (main): Likewise.
2719         * doc/posix-functions/setenv.texi (setenv): Document this.
2720         * doc/posix-functions/unsetenv.texi (unsetenv): Likewise.
2721
2722 2009-12-11  Bruno Haible  <bruno@clisp.org>
2723
2724         New module 'fd-safer-flag'.
2725         * lib/dup-safer-flag.c: New file, extracted from lib/dup-safer.c.
2726         * lib/dup-safer.c (dup_safer_flag): Remove function.
2727         * lib/fd-safer-flag.c: New file, extracted from lib/fd-safer.c.
2728         * lib/fd-safer.c (fd_safer_flag): Remove function.
2729         * lib/unistd-safer.h (dup_safer_flag, fd_safer_flag): Update condition.
2730         * modules/cloexec (configure.ac): Drop indicator macro.
2731         * modules/fd-safer-flag: New file.
2732         * modules/pipe2-safer (Depends-on): Add fd-safer-flag. Remove cloexec.
2733         * modules/stdlib-safer (Depends-on): Add fd-safer-flag.
2734         * modules/unistd-safer-tests (Depends-on): Add fd-safer-flag.
2735
2736 2009-12-11  Bruno Haible  <bruno@clisp.org>
2737
2738         Tests for module 'nl_langinfo'.
2739         * modules/nl_langinfo-tests: New file.
2740         * tests/test-nl_langinfo.sh: New file.
2741         * tests/test-nl_langinfo.c: New file.
2742
2743         New module 'nl_langinfo'.
2744         * lib/nl_langinfo.c: New file.
2745         * m4/nl_langinfo.m4: New file.
2746         * modules/nl_langinfo: New file.
2747         * doc/posix-functions/nl_langinfo.texi: Mention the new module.
2748
2749 2009-12-11  Bruno Haible  <bruno@clisp.org>
2750
2751         Tests for module 'langinfo'.
2752         * modules/langinfo-tests: New file.
2753         * tests/test-langinfo.c: New file.
2754
2755         New module 'langinfo'.
2756         * lib/langinfo.in.h: New file.
2757         * m4/langinfo_h.m4: New file.
2758         * modules/langinfo: New file.
2759         * doc/posix-headers/langinfo.texi: Mention the new module.
2760
2761 2009-12-11  Bruno Haible  <bruno@clisp.org>
2762
2763         * lib/config.charset: Untabify.
2764
2765 2009-12-11  Bruno Haible  <bruno@clisp.org>
2766
2767         * modules/unistd-safer (configure.ac): Drop indicator macro.
2768
2769 2009-12-11  Bruno Haible  <bruno@clisp.org>
2770
2771         Move pipe2-safer code to its own file.
2772         * lib/pipe2-safer.c: New file, extracted from lib/pipe-safer.c.
2773         * lib/pipe-safer.c (pipe2_safer): Remove function.
2774         * modules/pipe2-safer (Files): Add lib/pipe2-safer.c.
2775         (Makefile.am): Add it to lib_SOURCES.
2776
2777 2009-12-10  Bruno Haible  <bruno@clisp.org>
2778
2779         * lib/recvfrom.c (rpl_recvfrom): Allow the from argument to be NULL.
2780
2781 2009-12-10  Bruno Haible  <bruno@clisp.org>
2782
2783         Declare which arguments expect non-NULL values, for GCC and clang.
2784         * build-aux/arg-nonnull.h: New file.
2785         * modules/arg-nonnull: New file.
2786         * lib/arpa_inet.in.h (_GL_ARG_NONNULL): New placeholder.
2787         (inet_ntop, inet_pton): Use it.
2788         * lib/dirent.in.h (_GL_ARG_NONNULL): New placeholder.
2789         (closedir, dirfd, opendir, scandir, alphasort): Use it.
2790         * lib/fcntl.in.h (_GL_ARG_NONNULL): New placeholder.
2791         (open, openat): Use it.
2792         * lib/fnmatch.in.h (_GL_ARG_NONNULL): New placeholder.
2793         (fnmatch): Use it.
2794         * lib/getopt.in.h (_GL_ARG_NONNULL): New placeholder.
2795         (getopt, getopt_long, getopt_long_only): Use it.
2796         * lib/glob.in.h (_GL_ARG_NONNULL): New placeholder.
2797         * lib/glob-libc.h (glob, globfree, glob64, globfree64, glob_pattern_p):
2798         Use it.
2799         * lib/iconv.in.h (_GL_ARG_NONNULL): New placeholder.
2800         (iconv_open): Use it.
2801         * lib/inttypes.in.h (_GL_ARG_NONNULL): New placeholder.
2802         (strtoimax, strtoumax): Use it.
2803         * lib/locale.in.h (_GL_ARG_NONNULL): New placeholder.
2804         (duplocale): Use it.
2805         * lib/math.in.h (_GL_ARG_NONNULL): New placeholder.
2806         (frexp, frexpl): Use it.
2807         * lib/netdb.in.h (_GL_ARG_NONNULL): New placeholder.
2808         (getaddrinfo, freeaddrinfo, getnameinfo): Use it.
2809         * lib/search.in.h (_GL_ARG_NONNULL): New placeholder.
2810         (tsearch, tfind, tdelete, twalk): Use it.
2811         * lib/signal.in.h (_GL_ARG_NONNULL): New placeholder.
2812         (sigismember, sigemptyset, sigaddset, sigdelset, sigfillset,
2813         sigpending): Use it.
2814         * lib/spawn.in.h (_GL_ARG_NONNULL): New placeholder.
2815         (posix_spawn, posix_spawnp, posix_spawnattr_init,
2816         posix_spawnattr_destroy, posix_spawnattr_getsigdefault,
2817         posix_spawnattr_setsigdefault, posix_spawnattr_getsigmask,
2818         posix_spawnattr_setsigmask, posix_spawnattr_getflags,
2819         posix_spawnattr_setflags, posix_spawnattr_getpgroup,
2820         posix_spawnattr_setpgroup, posix_spawnattr_getschedpolicy,
2821         posix_spawnattr_setschedpolicy, posix_spawnattr_getschedparam,
2822         posix_spawnattr_setschedparam, posix_spawn_file_actions_init,
2823         posix_spawn_file_actions_destroy, posix_spawn_file_actions_addopen,
2824         posix_spawn_file_actions_addclose, posix_spawn_file_actions_adddup2):
2825         Use it.
2826         * lib/stdio.in.h (_GL_ARG_NONNULL): New placeholder.
2827         (dprintf, fclose, fopen, fprintf, fpurge, fputc, fputs, freopen,
2828         rpl_fseek, fseeko, rpl_ftell, ftello, fwrite, getdelim, getline,
2829         obstack_printf, obstack_vprintf, popen, printf, putc, puts, remove,
2830         rename, renameat, snprintf, sprintf, asprintf, vasprintf, vdprintf,
2831         vfprintf, vprintf, vsnprintf, vsprintf): Use it.
2832         * lib/stdlib.in.h (_GL_ARG_NONNULL): New placeholder.
2833         (atoll, canonicalize_file_name, getloadavg, getsubopt, mkdtemp,
2834         mkostemp, mkostemps, mkstemp, mkstemps, putenv, srandom_r, initstate_r,
2835         setstate_r, random_r, realpath, rpmatch, setenv, strtod, strtoll,
2836         strtoull, unsetenv): Use it.
2837         * lib/string.in.h (_GL_ARG_NONNULL): New placeholder.
2838         (memchr, memmem, mempcpy, memrchr, rawmemchr, stpcpy, stpncpy,
2839         strchrnul, strdup, strndup, strnlen, strpbrk, strsep, strstr,
2840         strcasestr, strtok_r, mbslen, mbsnlen, mbschr, mbsrchr, mbsstr,
2841         mbscasecmp, mbsncasecmp, mbspcasecmp, mbscasestr, mbscspn, mbspbrk,
2842         mbsspn, mbssep, mbstok_r, strverscmp): Use it.
2843         * lib/strings.in.h (_GL_ARG_NONNULL): New placeholder.
2844         (strcasecmp, strncasecmp): Use it.
2845         * lib/sys_socket.in.h (_GL_ARG_NONNULL): New placeholder.
2846         (rpl_connect, rpl_bind, rpl_getpeername, rpl_getsockname,
2847         rpl_getsockopt, rpl_recv, rpl_send, rpl_recvfrom, rpl_sendto,
2848         rpl_setsockopt): Use it.
2849         * lib/sys_stat.in.h (_GL_ARG_NONNULL): New placeholder.
2850         (fchmodat, fstat, fstatat, lchmod, rpl_lstat, mkdir, mkdirat, mkfifo,
2851         mkfifoat, mknod, mknodat, stat, utimensat): Use it.
2852         * lib/sys_time.in.h (_GL_ARG_NONNULL): New placeholder.
2853         (gettimeofday): Use it.
2854         * lib/sys_times.in.h (_GL_ARG_NONNULL): New placeholder.
2855         (times): Use it.
2856         * lib/sys_utsname.in.h (_GL_ARG_NONNULL): New placeholder.
2857         (uname): Use it.
2858         * lib/time.in.h (_GL_ARG_NONNULL): New placeholder.
2859         (nanosleep, mktime, localtime_r, gmtime_r, strptime, timegm): Use it.
2860         * lib/unistd.in.h (_GL_ARG_NONNULL): New placeholder.
2861         (chown, euidaccess, faccessat, _gl_register_fd, fchownat,
2862         getdomainname, gethostname, getlogin_r, lchown, link, linkat, pipe2,
2863         pread, readlink, readlinkat, rmdir, symlink, symlinkat, unlink,
2864         unlinkat, write): Use it.
2865         * lib/wchar.in.h (_GL_ARG_NONNULL): New placeholder.
2866         (mbsrtowcs, mbsnrtowcs, wcsrtombs, wcsnrtombs): Use it.
2867         * lib/argv-iter.h: Include arg-nonnull.h.
2868         (_ATTRIBUTE_NONNULL_): Remove macro.
2869         (argv_iter_init_argv, argv_iter_init_stream, argv_iter,
2870         argv_iter_n_args, argv_iter_free): Use _GL_ARG_NONNULL.
2871         * lib/canonicalize-lgpl.c (_GL_ARG_NONNULL): Define, to defeat gcc
2872         optimization.
2873         * lib/getaddrinfo.c (_GL_ARG_NONNULL): Likewise.
2874         * lib/getdelim.c (_GL_ARG_NONNULL): Likewise.
2875         * lib/glob.c (_GL_ARG_NONNULL): Likewise.
2876         * lib/random_r.c (_GL_ARG_NONNULL): Likewise.
2877         * lib/setenv.c (_GL_ARG_NONNULL): Likewise.
2878         * lib/strtod.c (_GL_ARG_NONNULL): Likewise.
2879         * lib/tsearch.c (_GL_ARG_NONNULL): Likewise.
2880         * lib/unsetenv.c (_GL_ARG_NONNULL): Likewise.
2881         * modules/arpa_inet (Depends-on): Add arg-nonnull.
2882         (Makefile.am): Insert arg-nonnull.h into arpa/inet.h.
2883         * modules/dirent (Depends-on): Add arg-nonnull.
2884         (Makefile.am): Insert arg-nonnull.h into dirent.h.
2885         * modules/fcntl-h (Depends-on): Add arg-nonnull.
2886         (Makefile.am): Insert arg-nonnull.h into fcntl.h.
2887         * modules/fnmatch (Depends-on): Add arg-nonnull.
2888         (Makefile.am): Insert arg-nonnull.h into fnmatch.h.
2889         * modules/getopt-posix (Depends-on): Add arg-nonnull.
2890         (Makefile.am): Insert arg-nonnull.h into getopt.h.
2891         * modules/glob (Depends-on): Add arg-nonnull.
2892         (Makefile.am): Insert arg-nonnull.h into glob.h.
2893         * modules/iconv_open (Depends-on): Add arg-nonnull.
2894         (Makefile.am): Insert arg-nonnull.h into iconv.h.
2895         * modules/inttypes (Depends-on): Add arg-nonnull.
2896         (Makefile.am): Insert arg-nonnull.h into inttypes.h.
2897         * modules/locale (Depends-on): Add arg-nonnull.
2898         (Makefile.am): Insert arg-nonnull.h into locale.h.
2899         * modules/math (Depends-on): Add arg-nonnull.
2900         (Makefile.am): Insert arg-nonnull.h into math.h.
2901         * modules/netdb (Depends-on): Add arg-nonnull.
2902         (Makefile.am): Insert arg-nonnull.h into netdb.h.
2903         * modules/search (Depends-on): Add arg-nonnull.
2904         (Makefile.am): Insert arg-nonnull.h into search.h.
2905         * modules/signal (Depends-on): Add arg-nonnull.
2906         (Makefile.am): Insert arg-nonnull.h into signal.h.
2907         * modules/spawn (Depends-on): Add arg-nonnull.
2908         (Makefile.am): Insert arg-nonnull.h into spawn.h.
2909         * modules/stdio (Depends-on): Add arg-nonnull.
2910         (Makefile.am): Insert arg-nonnull.h into stdio.h.
2911         * modules/stdlib (Depends-on): Add arg-nonnull.
2912         (Makefile.am): Insert arg-nonnull.h into stdlib.h.
2913         * modules/string (Depends-on): Add arg-nonnull.
2914         (Makefile.am): Insert arg-nonnull.h into string.h.
2915         * modules/strings (Depends-on): Add arg-nonnull.
2916         (Makefile.am): Insert arg-nonnull.h into strings.h.
2917         * modules/sys_socket (Depends-on): Add arg-nonnull.
2918         (Makefile.am): Insert arg-nonnull.h into sys/socket.h.
2919         * modules/sys_stat (Depends-on): Add arg-nonnull.
2920         (Makefile.am): Insert arg-nonnull.h into sys/stat.h.
2921         * modules/sys_time (Depends-on): Add arg-nonnull.
2922         (Makefile.am): Insert arg-nonnull.h into sys/time.h.
2923         * modules/sys_times (Depends-on): Add arg-nonnull.
2924         (Makefile.am): Insert arg-nonnull.h into sys/times.h.
2925         * modules/sys_utsname (Depends-on): Add arg-nonnull.
2926         (Makefile.am): Insert arg-nonnull.h into sys/utsname.h.
2927         * modules/time (Depends-on): Add arg-nonnull.
2928         (Makefile.am): Insert arg-nonnull.h into time.h.
2929         * modules/unistd (Depends-on): Add arg-nonnull.
2930         (Makefile.am): Insert arg-nonnull.h into unistd.h.
2931         * modules/wchar (Depends-on): Add arg-nonnull.
2932         (Makefile.am): Insert arg-nonnull.h into wchar.h.
2933         * modules/argv-iter (Depends-on): Add arg-nonnull.
2934         * tests/test-canonicalize.c (null_ptr): New function.
2935         (main): Use it.
2936         * tests/test-canonicalize-lgpl.c (null_ptr): New function.
2937         (main): Use it.
2938         * tests/test-memmem.c (null_ptr): New function.
2939         (main): Use it.
2940         Reported by Jim Meyering.
2941
2942 2009-12-10  Bruno Haible  <bruno@clisp.org>
2943
2944         Use spaces for indentation, not tabs.
2945         * lib/**/*.[hcy] except lib/reg*.[hc]: Untabify.
2946         * m4/*.m4: Untabify.
2947         * build-aux/*.h: Untabify.
2948         * tests/**/*.[hc]: Untabify.
2949         * README: New section "Indent with spaces, not TABs", based on
2950         coreutils/HACKING and comments by Pádraig Brady and Paolo Bonzini.
2951         * NEWS: Mention the change.
2952
2953 2009-12-10  Bruno Haible  <bruno@clisp.org>
2954
2955         pty test: Fix link error.
2956         * modules/pty-tests (Makefile.am): Add the default LDADD value to
2957         test_pty_LDADD.
2958
2959 2009-12-07  Simon Josefsson  <simon@josefsson.org>
2960
2961         * modules/pty: New file.
2962         * modules/pty-tests: New file.
2963         * m4/pty.m4: New file.
2964         * tests/test-pty.c: New file.
2965         * doc/glibc-headers/pty.texi: Modified.
2966         * doc/glibc-functions/forkpty.texi: Modified.
2967         * doc/glibc-functions/openpty.texi: Modified.
2968
2969 2009-12-10  Bruno Haible  <bruno@clisp.org>
2970
2971         Avoid syntax error in C++ mode.
2972         * lib/stdio.in.h (rename): Don't use parameter name 'new'.
2973
2974 2009-12-10  Bruno Haible  <bruno@clisp.org>
2975
2976         Use sed with option -e.
2977         * gnulib-tool (func_version, func_emit_copyright_notice,
2978         func_emit_initmacro_end, func_import, func_create_testdir): Pass
2979         option -e to sed.
2980         * modules/link-warning (Makefile.am): Likewise.
2981
2982 2009-12-10  Jim Meyering  <meyering@redhat.com>
2983
2984         mgetgroups: do not write bytes beyond end of malloc'd buffer
2985         * lib/mgetgroups.c: Fix an off-by-one error.  When we have no
2986         username, we call getgroups with a one-element-shorter buffer,
2987         but still told it the length was original, max_n_groups.
2988
2989 2009-12-09  Eric Blake  <ebb9@byu.net>
2990
2991         cloexec: relax license
2992         * modules/cloexec (Maintainer): Add myself.
2993         (License): Use LGPL, not GPL.
2994
2995         link-warning: optimize generation
2996         * modules/link-warning (Makefile.am): Reduce process usage.
2997
2998 2009-12-09  Bruno Haible  <bruno@clisp.org>
2999
3000         * doc/posix-functions/unsetenv.texi: Mention Solaris 10 bug for which a
3001         workaround was added on 2009-11-17.
3002
3003 2009-12-09  Jim Meyering  <meyering@redhat.com>
3004             Bruno Haible  <bruno@clisp.org>
3005
3006         link-warning: Allow extra lines at the top of build-aux/link-warning.h.
3007         * modules/link-warning (Makefile.am): Make the comment-removing sed
3008         command more robust in the face of bootstrap-prepended comment lines.
3009
3010 2009-12-09  Bruno Haible  <bruno@clisp.org>
3011
3012         * lib/mgetgroups.c (mgetgroups): Don't remove duplicates if there is at
3013         most one group.
3014
3015 2009-12-09  Simon Josefsson <simon@josefsson.org>
3016             Bruno Haible  <bruno@clisp.org>
3017
3018         * build-aux/link-warning.h: Add copyright notice.
3019         * modules/link-warning (Makefile.am): Generate link-warning.h from
3020         build-aux/link-warning.h. Update LINK_WARNING_H accordingly.
3021         * NEWS: Mention change in link-warning module.
3022         * modules/arpa_inet (Makefile.am): Add dependency to arpa/inet.h.
3023         * modules/dirent (Makefile.am): Add dependency to dirent.h.
3024         * modules/fcntl-h (Makefile.am): Add dependency to fcntl.h.
3025         * modules/getopt-posix (Makefile.am): Add dependency to getopt.h.
3026         * modules/inttypes (Makefile.am): Add dependency to inttypes.h.
3027         * modules/math (Makefile.am): Add dependency to math.h.
3028         * modules/search (Makefile.am): Add dependency to search.h.
3029         * modules/signal (Makefile.am): Add dependency to signal.h.
3030         * modules/spawn (Makefile.am): Add dependency to spawn.h.
3031         * modules/stdio (Makefile.am): Add dependency to stdio.h.
3032         * modules/stdlib (Makefile.am): Add dependency to stdlib.h.
3033         * modules/string (Makefile.am): Add dependency to string.h.
3034         * modules/strings (Makefile.am): Add dependency to strings.h.
3035         * modules/sys_ioctl (Makefile.am): Add dependency to sys/ioctl.h.
3036         * modules/sys_select (Makefile.am): Add dependency to sys/select.h.
3037         * modules/sys_socket (Makefile.am): Add dependency to sys/socket.h.
3038         * modules/sys_stat (Makefile.am): Add dependency to sys/stat.h.
3039         * modules/sys_times (Makefile.am): Add dependency to sys/times.h.
3040         * modules/sys_utsname (Makefile.am): Add dependency to sys/utsname.h.
3041         * modules/sys_wait (Makefile.am): Add dependency to sys/wait.h.
3042         * modules/unistd (Makefile.am): Add dependency to unistd.h.
3043         * modules/wchar (Makefile.am): Add dependency to wchar.h.
3044
3045 2009-12-09  Bruno Haible  <bruno@clisp.org>
3046
3047         fchdir: Optimize away rpl_fstat when possible.
3048         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Set REPLACE_FSTAT only together with
3049         REPLACE_OPEN_DIRECTORY.
3050         * lib/fchdir.c (rpl_fstat): Define only when REPLACE_OPEN_DIRECTORY.
3051
3052 2009-12-09  Bruno Haible  <bruno@clisp.org>
3053
3054         * lib/fchdir.c: Update comment.
3055
3056 2009-12-09  Bruno Haible  <bruno@clisp.org>
3057
3058         * lib/cloexec.c (set_cloexec_flag): Clarify intent of dup2 call.
3059
3060 2009-12-08  Eric Blake  <ebb9@byu.net>
3061
3062         fchdir: avoid memory leak on re-registration.
3063         * lib/fchdir.c (ensure_dirs_slot): Avoid memory leak.
3064
3065 2009-12-08  Jim Meyering  <meyering@redhat.com>
3066
3067         init.sh: avoid Solaris 10 /bin/sh portability problem
3068         Solaris 10's /bin/sh does not pass '.' arguments 2.. to the
3069         sourced script:
3070           $ printf 'echo "$@"\n' > f; /bin/sh -c '. ./f bar'
3071           $ printf 'echo "$@"\n' > f; /bin/bash -c '. ./f bar'
3072           bar
3073         tests/init.sh relied on that, accepting a --set-path=DIR argument,
3074         and two tests used that idiom.
3075         * tests/init.sh: Update suggested usage comments.
3076         (path_prepend_): New function, to be used in place
3077         of the --src-path=DIR option.
3078         (setup_): Move PATH-prepending code into path_prepend_.
3079         * tests/test-pread.sh: Adapt to new usage.
3080         * tests/test-xalloc-die.sh: Likewise.
3081
3082 2009-12-08  Simon Josefsson  <simon@josefsson.org>
3083
3084         * doc/gnulib.texi (Glibc pty.h): Add.
3085         * doc/glibc-functions/forkpty.texi: Add.
3086         * doc/glibc-functions/openpty.texi: Add.
3087         Suggested by Bruno Haible.
3088
3089 2009-12-08  Eric Blake  <ebb9@byu.net>
3090
3091         fchdir: fix logic bugs
3092         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Fix logic bug.
3093         * tests/test-fchdir.c (main): Enhance test.
3094         * lib/fchdir.c (rpl_fstat): Always provide if fchdir replacement
3095         is in use.
3096
3097         dup2: fix logic bugs
3098         * lib/dup2.c (dup2): Fix logic bugs.  Use HAVE_DUP2 rather than
3099         REPLACE_DUP2 to decide when rpl_dup2 is needed.
3100         * m4/dup2.m4 (gl_REPLACE_DUP2): Only define REPLACE_DUP2 when dup2
3101         exists.
3102         (gl_FUNC_DUP2): Drop unneeded AC_DEFINE.
3103
3104 2009-12-07  Eric Blake  <ebb9@byu.net>
3105
3106         unlink: fix m4 detection
3107         * m4/unlink.m4 (gl_FUNC_UNLINK): Include correct header.
3108
3109         unistd-safer: add unit test
3110         * modules/unistd-safer-tests: New file.
3111         * tests/test-dup-safer.c: Likewise.
3112         * tests/test-cloexec.c (setmode): Avoid compiler warning.
3113         * tests/test-dup2.c (setmode): Likewise.
3114         * lib/cloexec.c (dup_cloexec): Fix mingw compile error.
3115
3116         cloexec: preserve text vs. binary across dup_cloexec
3117         * lib/cloexec.c (dup_cloexec) [W32]: Query and use translation
3118         mode.
3119         * modules/dup2-tests (Depends-on): Add binary-io.
3120         * modules/cloexec-tests (Depends-on): Likewise.
3121         * tests/test-dup2.c (setmode, is_mode): New helpers.
3122         (main): Add tests that translation mode is preserved.
3123         * tests/test-cloexec.c (setmode, is_mode, main): Likewise.
3124         Reported by Bruno Haible.
3125
3126         mgetgroups: reduce duplicate listings
3127         * lib/mgetgroups.c (mgetgroups): Reduce duplicates from the
3128         resulting array.
3129         * tests/test-chown.h (test_chown): Simplify client.
3130         * tests/test-lchown.h (test_lchown): Likewise.
3131
3132 2009-12-06  Bruno Haible  <bruno@clisp.org>
3133
3134         * lib/cloexec.c (dup_cloexec): Fix handling of _gl_register_dup return
3135         value.
3136
3137 2009-12-06  Bruno Haible  <bruno@clisp.org>
3138
3139         * lib/progname.c: Include stdio.h, stdlib.h.
3140         (set_program_name): Reject a NULL argument.
3141
3142 2009-12-05  Eric Blake  <ebb9@byu.net>
3143
3144         pipe2-safer: new module
3145         * modules/pipe2-safer: New file.
3146         * lib/unistd-safer.h (pipe2_safer): New prototype.
3147         * lib/unistd--.h (pipe2): New wrapper.
3148         * lib/pipe-safer.c (pipe2_safer): New function.
3149         * modules/pipe (Depends-on): Add pipe2-safer.
3150         * lib/pipe.c (create_pipe) [WIN32]: Let pipe2_safer do the work.
3151
3152         stdlib-safer: preserve cloexec flag for mkostemp[s]
3153         * lib/mkstemp-safer.c (mkostemp_safer, mkostemps_safer): Use new
3154         fd_safer_flag.
3155
3156         unistd-safer: allow preservation of cloexec status via flag
3157         * lib/unistd-safer.h (dup_safer_flag, fd_safer_flag): New
3158         prototypes.
3159         * lib/dup-safer.c (dup_safer_flag): New function.
3160         * lib/fd-safer.c (fd_safer_flag): Likewise.
3161         * modules/cloexec (configure.ac): Set witness.
3162
3163         test-dup2: enhance test
3164         * modules/dup2-tests (Depends-on): Add cloexec.
3165         * tests/test-dup2.c (main): Enhance test.
3166
3167         cloexec: add dup_cloexec
3168         * lib/cloexec.h (dup_cloexec): New prototype.  Add copyright
3169         header and comments.
3170         * lib/cloexec.c (set_cloexec_flag): Add comments.
3171         (dup_cloexec): New function, with mingw implementation borrowed
3172         from...
3173         * lib/w32spawn.h (dup_noinherit): ...here.
3174         * modules/execute (Depends-on): Add cloexec.
3175         * modules/pipe (Depends-on): Likewise.
3176         * modules/cloexec (Depends-on): Add dup2.
3177         * modules/cloexec-tests (Files): New file.
3178         * tests/test-cloexec.c: Likewise.
3179
3180         test-xalloc-die: fix test for mingw
3181         * modules/xalloc-die-tests (Files): Add tests/init.sh.
3182         * tests/test-xalloc-die.sh: Rewrite to use init.sh.  Strip
3183         directory and .exe suffix off argv[0] output.
3184
3185         test-fseeko: fix test for mingw
3186         * tests/test-fseeko.c (fseek): Redefine GL_LINK_WARNING, rather
3187         than undefining fseek, so test will pass on mingw.
3188
3189 2009-12-05  Bruno Haible  <bruno@clisp.org>
3190
3191         * lib/progname.h (set_program_name): Clarify specification.
3192         * lib/progname.c (set_program_name): Likewise.
3193         Reported by Jim Meyering.
3194
3195 2009-12-05  Jim Meyering  <meyering@redhat.com>
3196
3197         maint.mk: backslash-escape parens in default regexp
3198         * top/maint.mk (news-check-regexp): Now that we're using grep -E,
3199         backslash-escape the literal parentheses.
3200
3201         maint.mk: news-date-check: use grep -E
3202         * top/maint.mk (today): Define a Make variable, not a...
3203         (news-date-check): ...shell variable.
3204         (news-date-regexp): Use the Make variable.
3205         Use grep's -E option.  Change the failing diagnostic to mention
3206         the variable, $(news-date-regexp).
3207
3208 2009-12-04  Alfred M. Szmidt  <ams@gnu.org>
3209
3210         maintainer-makefile: allow customization of NEWS entry format
3211         * top/maint.mk (news-date-regexp): New overridable variable.
3212         (news-date-check): Use it.
3213
3214 2009-12-04  Eric Blake  <ebb9@byu.net>
3215
3216         mgetgroups: add xgetgroups, and avoid ENOSYS failures
3217         * lib/mgetgroups.h (xgetgroups): New prototype.
3218         * lib/mgetgroups.c (xgetgroups): New wrapper.
3219         (mgetgroups): Handle ENOSYS.
3220         * modules/mgetgroups (Depends-on): Add realloc.
3221         Reported by Scott Harrison <scott.gnu.2009@scottrix.co.uk>.
3222
3223         mgetgroups: avoid argument promotion issues with -1
3224         * lib/mgetgroups.c (mgetgroups): A cast is required when checking
3225         for invalid gid_t.
3226         * tests/test-chown.h (getegid, test_chown): Likewise.
3227         * tests/test-lchown.h (getegid, test_lchown): Likewise.
3228
3229 2009-12-03  Paolo Bonzini  <bonzini@gnu.org>
3230
3231         exclude: Fix header file problems.
3232         * lib/exclude.h: Add multiple inclusion guards and include stdbool.h.
3233
3234 2009-12-01  Jim Meyering  <meyering@redhat.com>
3235
3236         fts: fts_open: do not let an empty string cause immediate failure
3237         This is required in support of GNU rm, for which the command
3238         "rm A '' B" must process and remove both A and B, in spite of
3239         the empty string argument.
3240         * lib/fts.c (fts_open): Do not let the presence of an empty string
3241         cause fts_open to fail immediately.  Most fts-using tools must be
3242         able to process all arguments, in order, and can be expected to
3243         diagnose such arguments themselves.
3244
3245 2009-11-30  Eric Blake  <ebb9@byu.net>
3246
3247         utimens: fix compilation error
3248         * lib/utimens.c (lutimens) [!HAVE_UTIMENSAT && HAVE_LUTIMES]:
3249         Declare variable at right scope.
3250
3251 2009-11-29  Jim Meyering  <meyering@redhat.com>
3252
3253         bootstrap: handle perl-5.11's changed --version output
3254         * build-aux/bootstrap (get_version): Handle perl separately,
3255         since perl-5.11's --version output is different.
3256
3257 2009-11-28  Jim Meyering  <meyering@redhat.com>
3258
3259         userspec: depend on the inttostr module, too
3260         * modules/userspec (Depends-on): Add inttostr.
3261
3262         userspec: disallow an ID that maps to (uid_t)-1 or (gid_t)-1
3263         * lib/userspec.c (parse_with_separator): Do not accept a user ID
3264         number of MAXUID when it evaluates to (uid_t) -1.
3265         Likewise for group ID.  Reported by Matt McCutchen in
3266         <http://savannah.gnu.org/bugs/?28113>
3267
3268         userspec: reformat to use spaces, not TABs
3269         * lib/userspec.c: Expand TABs to spaces.
3270         Add Emacs' "indent-tabs-mode: nil" hint.
3271
3272 2009-11-27  Eric Blake  <ebb9@byu.net>
3273
3274         getopt-gnu: flush out another BSD bug
3275         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Test for the bug.
3276         * tests/test-getopt.c (main): Check POSIXLY_CORRECT first, to
3277         flush out BSD bug.
3278         * tests/test-getopt.h (test_getopt): End lists with NULL.
3279         * tests/test-getopt_long.h (test_getopt_long): Likewise.
3280         (test_getopt_long_posix): Enhance test.
3281         * modules/getopt-posix-tests (Depends-on): Add stdbool.
3282         * doc/glibc-functions/getopt_long.texi (getopt_long): Mention
3283         getopt-gnu.
3284         * doc/glibc-functions/getopt_long_only.texi (getopt_long_only):
3285         Likewise.
3286
3287 2009-11-27  Simon Josefsson  <simon@josefsson.org>
3288
3289         * modules/idpriv-droptemp-tests (Notice): Fix text.
3290
3291 2009-11-27  Jim Meyering  <meyering@redhat.com>
3292
3293         test-xalloc-die: avoid spurious failure due to libtool argv difference
3294         In a libtool-enabled project, this test would fail due to a difference
3295         in the emitted program name, e.g.,
3296         -test-xalloc-die: memory exhausted
3297         +/tmp/.../tests/.libs/lt-test-xalloc-die: memory exhausted
3298         Use program to avoid that.
3299         * modules/xalloc-die-tests (Depends-on): Add progname.
3300         * tests/test-xalloc-die.c: Include progname.h".
3301         (program_name): Remove decl.
3302         (main): Call set_program_name.
3303         * tests/test-xalloc-die.sh (compare): Remove unnecessary ${EXE}.
3304
3305 2009-11-26  Richard Jones  <rjones@redhat.com>
3306
3307         w32sock: leave win32 error in place.
3308         * lib/w32sock.h (set_winsock_errno): Do not call WSASetLastError.
3309
3310 2009-11-26  Eric Blake  <ebb9@byu.net>
3311
3312         init.sh: suggest to use skip_ and fail_ functions in comments
3313         * tests/init.sh: Add a sentence.
3314
3315 2009-11-25  Bruno Haible  <bruno@clisp.org>
3316
3317         init.sh: add documentation in comments
3318         * tests/init.sh: Add some developer and user documentation.
3319
3320 2009-11-26  Jim Meyering  <meyering@redhat.com>
3321
3322         init.sh: accommodate even those who specify bogus srcdir manually
3323         * tests/init.sh: Normally, srcdir is guaranteed by automake and
3324         configure-time tests to be sanitized, so that there is no need to
3325         use "$srcdir" in Makefile rules and shell scripts.  Using $srcdir
3326         (with no double quotes) suffices.  However, since tests may be
3327         invoked manually, and since you may explicitly set srcdir to the
3328         name of a directory containing spaces, do quote its uses here.
3329         * tests/test-pread.sh: Likewise.
3330         Suggested by Bruno Haible.
3331
3332         test-pread.sh: avoid diagnostics for those who ignore SIGPIPE
3333         * tests/test-pread.sh: Write no data into the pipe, because
3334         test-pread actually reads none.  This avoids a diagnostic,
3335         "bash: echo: write error: Broken pipe", that arises in the unusual
3336         event something is ignoring SIGPIPE, and might be interpreted
3337         as some sort of failure.  Reported by Bruno Haible.
3338
3339 2009-11-25  Jim Meyering  <meyering@redhat.com>
3340
3341         test-pread: cover failure with ESPIPE and EINVAL
3342         * tests/test-pread.c (main): Test for failure, too.
3343         * tests/test-pread.sh: Invoke with stdin on a pipe.
3344         Suggested by Eric Blake.
3345
3346         pread: improvement and fix
3347         * modules/pread (Depends-on): Depend on lseek, for portability to
3348         e.g., mingw.  Suggested by Eric Blake.
3349         * lib/pread.c (__libc_read): Define.  Reported by Richard W.M. Jones.
3350
3351         unistd.in.h: correct declaration of pread
3352         * lib/unistd.in.h: Correct type of "buf" parameter: void*, not char*
3353         Reported by Richard W.M. Jones.
3354
3355         test-pread.sh: distribute the test script
3356         * modules/pread-tests (Files): Include test-pread.sh.
3357
3358         test-pread.sh: clean up
3359         * tests/test-pread.sh: Don't refer to $builddir. Just use equivalent ".".
3360         * modules/pread-tests (TESTS_ENVIRONMENT): Don't export builddir.
3361         That is unnecessary, since it's always ".".
3362         Suggestion from Eric Blake.
3363
3364         test-pread.sh: make executable
3365         * tests/test-pread.sh: Set executable bit.
3366         Reported by Eric Blake.
3367
3368         correct typo in test-pread.sh
3369         * tests/test-pread.sh: Add #! line.
3370
3371         test pread
3372         * tests/test-pread.c: New file.
3373         * tests/test-pread.sh: Likewise.
3374         * modules/pread-tests: Likewise.
3375
3376         pread: new module
3377         * modules/pread: New file.
3378         * lib/unistd.in.h (pread): Define/declare.
3379         * lib/pread.c (pread): New file.
3380         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Define defaults.
3381         * modules/unistd (Makefile.am): Substitute witnesses.
3382         * doc/posix-functions/pread.texi (pread): Update.
3383         * MODULES.html.sh: Add pread.
3384
3385 2009-11-25  Jim Meyering  <meyering@redhat.com>
3386
3387         tests/init.sh: new file to be used via most *.sh tests
3388         * tests/init.sh: New file.
3389
3390 2009-11-25  Eric Blake  <ebb9@byu.net>
3391
3392         utimens: work around older Linux failure with symlinks
3393         * lib/utimens.c (lutimensat_works_really): New variable.
3394         (fdutimens, lutimens): Use it to manage kernels that support
3395         nanosecond times on files, but not on symlinks.
3396         Reported by OndÅ™ej Vašík.
3397
3398         utimes: fix configure grammar
3399         * m4/utimes.m4 (gl_FUNC_UTIMES): Delete spurious word.
3400
3401 2009-11-25  Paolo Bonzini  <bonzini@gnu.org>
3402
3403         regex: Fix fastmap for multibyte character ranges.
3404         * lib/regcomp.c (re_compute_fastmap_iter): Add all multibyte lead
3405         characters when a multibyte character range is included.
3406
3407 2009-11-22  Andy Wingo  <wingo@pobox.com>
3408
3409         version-etc: work also with AM_INIT_AUTOMAKE's no-define option
3410         * lib/version-etc.c [!defined PACKAGE]: Define to PACKAGE_TARNAME.
3411
3412 2009-11-24  Bruno Haible  <bruno@clisp.org>
3413
3414         doc: Most *_l functions exist in MacOS X 10.5.
3415         * doc/posix-functions/duplocale.texi: Update platforms list.
3416         * doc/posix-functions/freelocale.texi: Likewise.
3417         * doc/posix-functions/newlocale.texi: Likewise.
3418         * doc/posix-functions/uselocale.texi: Likewise.
3419         * doc/posix-functions/isalnum_l.texi: Likewise.
3420         * doc/posix-functions/isalpha_l.texi: Likewise.
3421         * doc/posix-functions/isblank_l.texi: Likewise.
3422         * doc/posix-functions/iscntrl_l.texi: Likewise.
3423         * doc/posix-functions/isdigit_l.texi: Likewise.
3424         * doc/posix-functions/isgraph_l.texi: Likewise.
3425         * doc/posix-functions/islower_l.texi: Likewise.
3426         * doc/posix-functions/isprint_l.texi: Likewise.
3427         * doc/posix-functions/ispunct_l.texi: Likewise.
3428         * doc/posix-functions/isspace_l.texi: Likewise.
3429         * doc/posix-functions/isupper_l.texi: Likewise.
3430         * doc/posix-functions/iswalnum_l.texi: Likewise.
3431         * doc/posix-functions/iswalpha_l.texi: Likewise.
3432         * doc/posix-functions/iswblank_l.texi: Likewise.
3433         * doc/posix-functions/iswcntrl_l.texi: Likewise.
3434         * doc/posix-functions/iswctype_l.texi: Likewise.
3435         * doc/posix-functions/iswdigit_l.texi: Likewise.
3436         * doc/posix-functions/iswgraph_l.texi: Likewise.
3437         * doc/posix-functions/iswlower_l.texi: Likewise.
3438         * doc/posix-functions/iswprint_l.texi: Likewise.
3439         * doc/posix-functions/iswpunct_l.texi: Likewise.
3440         * doc/posix-functions/iswspace_l.texi: Likewise.
3441         * doc/posix-functions/iswupper_l.texi: Likewise.
3442         * doc/posix-functions/iswxdigit_l.texi: Likewise.
3443         * doc/posix-functions/isxdigit_l.texi: Likewise.
3444         * doc/posix-functions/nl_langinfo_l.texi: Likewise.
3445         * doc/posix-functions/strcasecmp_l.texi: Likewise.
3446         * doc/posix-functions/strcoll_l.texi: Likewise.
3447         * doc/posix-functions/strfmon_l.texi: Likewise.
3448         * doc/posix-functions/strftime_l.texi: Likewise.
3449         * doc/posix-functions/strncasecmp_l.texi: Likewise.
3450         * doc/posix-functions/strxfrm_l.texi: Likewise.
3451         * doc/posix-functions/tolower_l.texi: Likewise.
3452         * doc/posix-functions/toupper_l.texi: Likewise.
3453         * doc/posix-functions/towctrans_l.texi: Likewise.
3454         * doc/posix-functions/towlower_l.texi: Likewise.
3455         * doc/posix-functions/towupper_l.texi: Likewise.
3456         * doc/posix-functions/wcscoll_l.texi: Likewise.
3457         * doc/posix-functions/wcsxfrm_l.texi: Likewise.
3458         * doc/posix-functions/wctrans_l.texi: Likewise.
3459         * doc/posix-functions/wctype_l.texi: Likewise.
3460         * doc/glibc-functions/strptime_l.texi: Likewise.
3461         * doc/glibc-functions/strtod_l.texi: Likewise.
3462         * doc/glibc-functions/strtof_l.texi: Likewise.
3463         * doc/glibc-functions/strtol_l.texi: Likewise.
3464         * doc/glibc-functions/strtold_l.texi: Likewise.
3465         * doc/glibc-functions/strtoll_l.texi: Likewise.
3466         * doc/glibc-functions/strtoul_l.texi: Likewise.
3467         * doc/glibc-functions/strtoull_l.texi: Likewise.
3468         * doc/glibc-functions/wcsftime_l.texi: Likewise.
3469         * doc/glibc-functions/wcstod_l.texi: Likewise.
3470         * doc/glibc-functions/wcstof_l.texi: Likewise.
3471         * doc/glibc-functions/wcstol_l.texi: Likewise.
3472         * doc/glibc-functions/wcstold_l.texi: Likewise.
3473         * doc/glibc-functions/wcstoll_l.texi: Likewise.
3474         * doc/glibc-functions/wcstoul_l.texi: Likewise.
3475         * doc/glibc-functions/wcstoull_l.texi: Likewise.
3476
3477 2009-11-24  Bruno Haible  <bruno@clisp.org>
3478
3479         duplocale: Fix logic bug.
3480         * lib/duplocale.c: Don't include <langinfo.h>.
3481         (_NL_LOCALE_NAME): Remove macro.
3482         (rpl_duplocale): Use setlocale instead of nl_langinfo.
3483         * tests/test-duplocale.c (main): Also test duplocale after uselocale.
3484
3485 2009-11-23  Jim Meyering  <meyering@redhat.com>
3486
3487         test-update-copyright: don't hard-code /usr/bin/perl
3488         * tests/test-update-copyright.sh (YEAR): Use date +%Y, rather than
3489         perl to print the current year.  Gilles Espinasse reported that
3490         the replaced use of perl was hard-coded as /usr/bin/perl.
3491
3492 2009-11-23  Bruno Haible  <bruno@clisp.org>
3493
3494         duplocale: Add support for glibc 2.3.x.
3495         * lib/duplocale.c (rpl_duplocale): Add fallback code for glibc 2.3.x.
3496
3497 2009-11-22  Bruno Haible  <bruno@clisp.org>
3498
3499         vasnprintf: Tiny optimization.
3500         * lib/vasnprintf.c (decimal_point_char): Choose the fast path also on
3501         MacOS X.
3502
3503 2009-11-22  Bruno Haible  <bruno@clisp.org>
3504
3505         Tests for module 'duplocale'.
3506         * modules/duplocale-tests: New file.
3507         * tests/test-duplocale.c: New file.
3508
3509         New module 'duplocale'.
3510         * m4/duplocale.m4: New file.
3511         * lib/locale.in.h (duplocale): New declaration.
3512         * lib/duplocale.c: New file.
3513         * m4/locale_h.m4 (gl_REPLACE_LOCALE_H, gl_LOCALE_MODULE_INDICATOR,
3514         gl_LOCALE_H_DEFAULTS): New macros.
3515         (gl_LOCALE_H): Require gl_LOCALE_H_DEFAULTS. Invoke
3516         gl_CHECK_NEXT_HEADERS unconditionally. Invoke gl_REPLACE_LOCALE_H.
3517         * modules/locale (Makefile.am): Substitute also GNULIB_DUPLOCALE,
3518         REPLACE_DUPLOCALE.
3519         * modules/duplocale: New file.
3520         * doc/posix-functions/duplocale.texi: Mention the glibc bug.
3521
3522 2009-11-22  Bruno Haible  <bruno@clisp.org>
3523
3524         * modules/locale-tests (configure.ac): Test for newlocale function.
3525         * tests/test-locale.c: When the system has extended locale functions,
3526         verify that <locale.h> defines locale_t and LC_GLOBAL_LOCALE.
3527
3528         locale: Make locale_t available when possible.
3529         * lib/locale.in.h: Include <xlocale.h> when it exists.
3530         * m4/locale_h.m4 (gl_LOCALE_H): Check for <xlocale.h> and arrange to
3531         replace <locale.h> if it does not define locale_t but <xlocale.h> does.
3532         * modules/locale (Depends-on): Add extensions.
3533         (Makefile.am): Also substitute HAVE_XLOCALE_H.
3534         * doc/posix-headers/locale.texi: Document the problem with locale_t.
3535
3536 2009-11-22  Bruno Haible  <bruno@clisp.org>
3537
3538         Add comments.
3539         * m4/dirent_h.m4 (gl_DIRENT_H): Add comment about gl_CHECK_NEXT_HEADERS
3540         invocation.
3541         * m4/iconv_h.m4 (gl_ICONV_H): Likewise.
3542         * m4/spawn_h.m4 (gl_SPAWN_H): Likewise.
3543         * m4/wchar.m4 (gl_WCHAR_H): Likewise.
3544
3545 2009-11-22  Bruno Haible  <bruno@clisp.org>
3546
3547         error: account for the possibility of freopen (stdout).
3548         * lib/error.c: Include <unistd.h>.
3549         (flush_stdout): New function, extracted from error and error_at_line.
3550         Determine stdout's fd dynamically.
3551         (error, error_at_line): Invoke flush_stdout.
3552         * m4/error.m4 (gl_PREREQ_ERROR): Require AC_C_INLINE.
3553         * modules/error (Depends-on): Add unistd.
3554
3555 2009-11-22  Bruno Haible  <bruno@clisp.org>
3556
3557         diffseq: Add comment.
3558         * lib/diffseq.h (IF_LINT): Add comment about pitfall.
3559
3560 2009-11-22  Jim Meyering  <meyering@redhat.com>
3561
3562         c-stack: avoid defining an unused static function
3563         * lib/c-stack.c (find_stack_direction): Do not define this function
3564         when it will not be used.
3565
3566         diffseq: avoid spurious gcc warnings
3567         * lib/diffseq.h (IF_LINT2): Define.
3568         (compareseq): Use it to initialize two members of "part".
3569         This avoids two used-uninitialized warnings.
3570
3571 2009-11-21  Jim Meyering  <meyering@redhat.com>
3572
3573         c-stack: avoid "ignoring return value of `write'" warning
3574         * lib/c-stack.c: Include "ignore-value.h".
3575         (die): Explicitly ignore each write return value.
3576         * modules/c-stack (Depends-on): Add ignore-value.
3577
3578 2009-11-21  Bruno Haible  <bruno@clisp.org>
3579
3580         diffseq: reduce scope of variable 'best'.
3581         * lib/diffseq.h (diag) [USE_HEURISTIC]: Reduce scope of 'best'
3582         variable, earlier used for two different purposes.
3583
3584 2009-11-21  Jim Meyering  <meyering@redhat.com>
3585
3586         diffseq: remove useless assignment to "best"
3587         * lib/diffseq.h (diag) [USE_HEURISTIC]: Remove useless "best = 0"
3588         assignment.  At that point "best" is already guaranteed to be zero.
3589
3590 2009-11-20  Eric Blake  <ebb9@byu.net>
3591
3592         build: mention ftp redirector in release announcements
3593         * top/maint.mk (gnu_rel_host, url_dir_list): Provide defaults for
3594         values that used to come from cfg.mk; mention FTP redirect URL.
3595         * build-aux/announce-gen: Mention the mirror list.
3596         Suggested by Karl Berry.
3597
3598         nanosleep: improve port to mingw
3599         * lib/nanosleep.c (rpl_nanosleep): Reject invalid arguments.
3600         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Incorporate LIBSOCKET into
3601         LIB_NANOSLEEP, but only when needed.
3602         * modules/select (Link): Document LIBSOCKET.
3603         * m4/select.m4 (gl_FUNC_SELECT): Ensure LIBSOCKET is defined early
3604         enough.
3605
3606         nanosleep: work around cygwin bug
3607         * lib/nanosleep.c (rpl_nanosleep) [HAVE_BUG_BIG_NANOSLEEP]:
3608         Fix logic bug when nanosleep fails.  Work around cygwin 1.5.x
3609         bug.
3610         (getnow): Delete, not needed.
3611         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): No longer require
3612         LIB_CLOCK_GETTIME.
3613         * modules/nanosleep (Depends-on): Add intprops and verify.  Drop
3614         clock-time, gettime.
3615         * doc/posix-functions/nanosleep.texi (nanosleep): Document the
3616         bug.
3617         * modules/nanosleep-tests: New test.
3618         * tests/test-nanosleep.c: New file.
3619
3620         sleep: work around cygwin bug
3621         * lib/sleep.c (rpl_sleep): Work around the bug.
3622         * m4/sleep.m4 (gl_FUNC_SLEEP): Detect the bug.
3623         (gl_PREREQ_SLEEP): Delete unused macro.
3624         * modules/sleep (Depends-on): Add verify.
3625         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add default.
3626         * modules/unistd (Makefile.am): Substitute witness.
3627         * lib/unistd.in.h (sleep): Update prototype.
3628         * doc/posix-functions/sleep.texi (sleep): Document the bug.
3629         * tests/test-sleep.c (main) [HAVE_DECL_ALARM]: Test it.
3630         * modules/sleep-tests (Depends-on): Check for alarm.
3631
3632 2009-11-20  Jim Meyering  <meyering@redhat.com>
3633
3634         maint.mk: improve sc_prohibit_magic_number_exit
3635         * top/maint.mk (sc_prohibit_magic_number_exit): Tighten regexp
3636         so it does not match uses like System.exit(1).
3637         Add comments showing how to correct all offenders.
3638
3639 2009-11-19  Eric Blake  <ebb9@byu.net>
3640
3641         xalloc-die-tests: add missing library
3642         * modules/xalloc-die-tests (Makefile.am): Add LDADD line.
3643
3644         test-xvasprintf: silence compiler warnings
3645         * tests/test-xvasprintf.c (test_xvasprintf, test_xasprintf): Mask
3646         empty string from gcc.
3647
3648 2009-11-19  Jim Meyering  <meyering@redhat.com>
3649
3650         xfreopen: new module, from coreutils
3651         * modules/xfreopen: New module.
3652         * lib/xfreopen.c: New file.
3653         * lib/xfreopen.h: New file.
3654         * MODULES.html.sh (File stream based Input/Output"): Add it.
3655
3656 2009-11-19  Eric Blake  <ebb9@byu.net>
3657
3658         manywarnings: depend on warnings
3659         * modules/manywarnings (Depends-on): Add warnings.
3660
3661         build: avoid compiler warnings
3662         * lib/select.c (rpl_select): Delete unused variable.
3663         * lib/setsockopt.c (rpl_setsockopt): Avoid incompatible pointer.
3664
3665 2009-11-18  Eric Blake  <ebb9@byu.net>
3666
3667         tests: avoid false negative with --with-packager
3668         * tests/test-version-etc.sh: Discard packager information.
3669         * tests/test-argp-version-etc-1.sh: Likewise.
3670         Reported by Mike Frysinger.
3671
3672         utimens: fix regression on Solaris
3673         * m4/utimens.m4 (gl_UTIMENS): Check for BSD bug.
3674         * lib/utimens.c (fdutimens): Revert 2009-11-08 change; Solaris 10
3675         can only change fd timestamps via futimesat.  Instead, use an
3676         additional witness macro to avoid BSD bug.
3677         Reported by Jim Meyering.
3678
3679 2009-11-17  Eric Blake  <ebb9@byu.net>
3680
3681         usleep: use it to simplify tests
3682         * modules/stat-time-tests (Depends-on): Add usleep.
3683         (configure.ac): Drop usleep check.
3684         * modules/chown-tests (Depends-on, configure.ac): Likewise.
3685         * modules/lchown-tests (Depends-on, configure.ac): Likewise.
3686         * modules/fdutimensat-tests (Depends-on, configure.ac): Likewise.
3687         * modules/futimens-tests (Depends-on, configure.ac): Likewise.
3688         * modules/openat-tests (Depends-on, configure.ac): Likewise.
3689         * modules/utimens-tests (Depends-on, configure.ac): Likewise.
3690         * modules/utimensat-tests (Depends-on, configure.ac): Likewise.
3691         * modules/pipe-filter-gi-tests (Depends-on, configure.ac):
3692         Likewise.
3693         * tests/test-chown.h (nap): Rely on nicer usleep semantics.
3694         * tests/test-lchown.h (nap): Likewise.
3695         * tests/test-pipe-filter-gi2-main.c (small_nap): Likewise.
3696         * tests/test-stat-time.c (nap): Likewise.
3697         * tests/test-utimens-common.h (nap): Update comments.
3698
3699         usleep: new module
3700         * modules/usleep: New file.
3701         * m4/usleep.m4 (gl_FUNC_USLEEP): Likewise.
3702         * lib/usleep.c (usleep): Likewise.
3703         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add defaults.
3704         * modules/unistd (Makefile.am): Substitute witnesses.
3705         * lib/unistd.in.h (usleep): Add declaration.
3706         * doc/pastposix-functions/usleep.texi (usleep): Document this.
3707         * MODULES.html.sh (Date and time): Likewise.
3708         * modules/usleep-tests (Depends-on): New test.
3709         * tests/test-usleep.c: New file.
3710
3711         chown: work around OpenBSD bug
3712         * lib/chown.c (rpl_chown): Work around the bug.
3713         * lib/lchown.c (rpl_lchown): Attempt to do likewise.
3714         * m4/chown.m4 (gl_FUNC_CHOWN): Test for ctime bug.
3715         * m4/lchown.m4 (gl_FUNC_LCHOWN): Check for lchmod.
3716         * modules/chown (Depends-on): Add stdbool.
3717         * modules/lchown (Depends-on): Likewise.
3718         * doc/posix-functions/chown.texi (chown): Document the bug.
3719         * doc/posix-functions/lchown.texi (lchown): Likewise.
3720         * tests/test-lchown.h (test_chown): Relax test.
3721
3722         mkstemp: avoid conflict with C++ keyword template
3723         * lib/mkdtemp.c (mkdtemp): Change spelling of template.
3724         * lib/mkostemp.c (mkostemp): Likewise.
3725         * lib/mkostemps.c (mkostemps): Likewise.
3726         * lib/mkstemp.c (mkstemp): Likewise.
3727         * lib/mkstemps.c (mkstemps): Likewise.
3728
3729         xalloc-die-tests: optimize
3730         * tests/test-xalloc-die.sh: Reduce number of processes.
3731
3732 2009-11-17  Simon Josefsson  <simon@josefsson.org>
3733
3734         * gnulib-tool: Support LGPLv3+ licenses in module files.  Tiny
3735         patch from ludo@gnu.org (Ludovic Courtès).
3736
3737 2009-11-17  Jim Meyering  <meyering@redhat.com>
3738
3739         version-etc: use proper license string
3740         * modules/version-etc (License): Use LGPL, not LGPLv3+.
3741         * modules/version-etc-fsf: Likewise.
3742
3743 2009-11-17  Simon Josefsson  <simon@josefsson.org>
3744
3745         * tests/test-xalloc-die.sh: Add license.  Check that nothing is
3746         printed to stdout.  Deal with EOL differences.
3747
3748 2009-11-17  Eric Blake  <ebb9@byu.net>
3749
3750         unsetenv: work around Solaris bug
3751         * m4/setenv.m4 (gl_FUNC_UNSETENV): Check for bug.
3752         * lib/unsetenv.c (rpl_unsetenv): Work around it.
3753         Reported by Jim Meyering.
3754
3755         vasnprintf: avoid compiler warnings
3756         * lib/vasnprintf.c (VASNPRINTF): Avoid shadowing our own local
3757         variables.
3758         * lib/printf-args.c (PRINTF_FETCHARGS): Avoid type mismatch.
3759
3760 2009-11-17  Simon Josefsson  <simon@josefsson.org>
3761
3762         * modules/xalloc-die-tests (Makefile.am): Drop XFAIL_TESTS
3763         settings since xalloc-die is no longer the self test,
3764         xalloc-die.sh is.
3765
3766 2009-11-17  Jim Meyering  <meyering@redhat.com>
3767
3768         test-xalloc-die.sh: make the code agree with the commit log
3769         * tests/test-xalloc-die.sh: Put "." at the front of $PATH, not
3770         at the end, just in case you happen to have a test-xalloc-die
3771         program in some other PATH directory.
3772
3773         test-xalloc-die.sh: fix a portability bug
3774         * tests/test-xalloc-die.sh: Do not invoke via ./test-xalloc-die.
3775         Instead, set PATH to start with "." and invoke via "test-xalloc-die".
3776         Otherwise, argv[0] (as often seen in diagnostics) would be too
3777         system-dependent, sometimes with, and sometimes without the leading "./".
3778
3779         version-etc-fsf: relax license to LGPLv3+
3780         * modules/version-etc-fsf (License): Relax license.
3781
3782 2009-11-16  Eric Blake  <ebb9@byu.net>
3783
3784         xalloc-die-tests: avoid printing null pointer
3785         * modules/xalloc-die-tests (Files, Makefile.am): Wrap execution in
3786         shell script.
3787         * tests/test-xalloc-die.c (program_name): Declare.
3788         * tests/test-xalloc-die.sh (tmpfiles): New file.
3789
3790         setenv, unsetenv: work around various bugs
3791         * lib/setenv.c (setenv) [!HAVE_SETENV]: Resync from glibc.
3792         (setenv) [HAVE_SETENV]: Work around bugs.
3793         * lib/unsetenv.c (unsetenv) [HAVE_UNSETENV]: Work around bugs.
3794         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE, gl_FUNC_UNSETENV): Check
3795         for bugs.
3796         (gl_FUNC_SETENV): Write in terms of gl_FUNC_SETENV_SEPARATE.
3797         * m4/environ.m4 (gl_ENVIRON): Avoid expand-before-require.
3798         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Update defaults.
3799         * modules/stdlib (Makefile.am): Update substitutions.
3800         * lib/stdlib.in.h (setenv, unsetenv): Update prototypes.
3801         * doc/posix-functions/setenv.texi (setenv): Document the bugs.
3802         * doc/posix-functions/unsetenv.texi (unsetenv): Likewise.
3803         * modules/setenv-tests: New test.
3804         * modules/unsetenv-tests: Likewise.
3805         * tests/test-setenv.c: New file.
3806         * tests/test-unsetenv.c: Likewise.
3807
3808 2009-11-16  Jim Meyering  <meyering@redhat.com>
3809
3810         version-etc: relax license to LGPLv3+
3811         * modules/version-etc (License): Relax license.
3812
3813         better AC_REQUIRE expanded-before-required-warning avoidance
3814         * m4/chown.m4 (gl_FUNC_CHOWN, gl_FUNC_CHOWN_FOLLOWS_SYMLINK): Define
3815         with AC_DEFUN_ONCE, rather than AC_DEFUN, to avoid AC_REQUIRE warnings.
3816         Suggested by Eric Blake.  This change also reverts commit 1b712ba8,
3817         which is no longer needed.
3818
3819 2009-11-16  Eric Blake  <ebb9@byu.net>
3820
3821         test-freading: clean up temporary file
3822         * tests/test-freading.c (main): Remove file on success, and use
3823         ASSERT more liberally.
3824         Reported by Jim Meyering.
3825
3826 2009-11-16  Jim Meyering  <meyering@redhat.com>
3827
3828         avoid new AC_REQUIRE expanded-before-required warnings
3829         * modules/chown (configure.ac): Require gl_FUNC_CHOWN, rather than
3830         merely using it.
3831         * modules/euidaccess (configure.ac): Likewise for gl_FUNC_EUIDACCESS.
3832         * modules/faccessat (configure.ac): Likewise for gl_FUNC_FACCESSAT.
3833
3834 2009-11-15  Simon Josefsson  <simon@josefsson.org>
3835
3836         * tests/test-xalloc-die.c: New file.
3837         * modules/xalloc-die-tests: New file.
3838         * gnulib-tool (func_emit_tests_Makefile_am): Also initialize
3839         XFAIL_TESTS so it can be appended by modules.
3840
3841 2009-11-15  Simon Josefsson  <simon@josefsson.org>
3842
3843         * lib/gc-pbkdf2-sha1.c: Remove comments from RFC 2898.  Reported
3844         by Vladimir 'phcoder' Serbinenko <phcoder@gmail.com>.
3845
3846 2009-11-14  Eric Blake  <ebb9@byu.net>
3847
3848         fnmatch: avoid compiler warning
3849         * lib/fnmatch_loop.c (NEW_PATTERN): Coerce addition to unsigned,
3850         to silence compiler warning about mismatch signedness in ?:.
3851         Reported by Robert Millan.
3852
3853         intprops: add double-inclusion guard
3854         * lib/intprops.h: Allow idempotent includes.
3855         Suggested by Bruce Korb.
3856
3857         openat: detect Solaris fchownat bug
3858         * lib/fchownat.c (rpl_fchownat): Work around Solaris bug.  Avoid
3859         penalizing glibc chownat when only lchownat is broken.
3860         * m4/openat.m4 (gl_FUNC_FCHOWNAT): Replace fchownat if there are
3861         trailing slash bugs.
3862         * doc/posix-functions/fchownat.texi (fchownat): Document the bug.
3863         * modules/openat-tests (Files): Include more files.
3864         (Depends-on): Add mgetgroups, sleep, stat-time.
3865         (configure.ac): Add additional checks.
3866         (Makefile.am): Build new test.
3867         * tests/test-fchownat.c: New file.
3868
3869         lchown: detect Solaris and FreeBSD bug
3870         * lib/lchown.c (rpl_lchown): Work around bug.
3871         * m4/lchown.m4 (gl_FUNC_LCHOWN): Check for trailing slash bugs.
3872         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witness.
3873         * modules/unistd (Makefile.am): Populate it.
3874         * lib/unistd.in.h (lchown): Update declaration.
3875         * doc/posix-functions/lchown.texi (lchown): Document the bug.
3876         * modules/lchown-tests: New file.
3877         * tests/test-lchown.h (test_lchown): Likewise.
3878         * tests/test-lchown.c (main): Likewise.
3879
3880         chown: detect Solaris and FreeBSD bug
3881         * lib/chown.c (rpl_chown): Work around bug.
3882         * m4/chown.m4 (gl_FUNC_CHOWN): Check for trailing slash bugs.
3883         (gl_PREREQ_CHOWN): Delete.
3884         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witness.
3885         * modules/unistd (Makefile.am): Populate it.
3886         * lib/unistd.in.h (chown): Update declaration.
3887         * lib/lchown.c (chown): Update client.
3888         * modules/lchown (Depends-on): Add lstat.
3889         * doc/posix-functions/chown.texi (chown): Document the bug.
3890         * doc/posix-functions/getgroups.texi (getgroups): Document
3891         getgroups pitfall.
3892         * modules/chown-tests: New file.
3893         * tests/test-chown.h (test_chown): Likewise.
3894         * tests/test-chown.c (main): Likewise.
3895
3896 2009-11-14  Robert Millan  <rmh.grub@aybabtu.com>  (tiny change)
3897
3898         gnulib-tool: correctly detect absence of m4 directories
3899         * gnulib-tool: Avoid extra newline on data passed to wc -l.
3900
3901 2009-11-14  Jim Meyering  <meyering@redhat.com>
3902
3903         maint.mk: Prohibit inclusion of "xalloc.h" without use.
3904         * top/maint.mk (sc_prohibit_close_stream_without_use): New rule.
3905
3906 2009-11-14  John W. Eaton  <jwe@gnu.org>
3907
3908         strftime.h: wrap funtion declaration in extern "C" block
3909         * lib/strftime.h (nstrftime) [__cplusplus]: Wrap declaration.
3910
3911 2009-11-13  Eric Blake  <ebb9@byu.net>
3912
3913         getgroups: avoid compiler warning
3914         * lib/getgroups.c (rpl_getgroups): Delete shadowed variable.
3915
3916         getgroups: work around FreeBSD bug
3917         * lib/getgroups.c (rpl_getgroups): Work around the bug.
3918         * m4/getgroups.m4 (gl_FUNC_GETGROUPS): Detect the bug.
3919         * doc/posix-functions/getgroups.texi (getgroups): Document it.
3920         * tests/test-getgroups.c (main): Fix buffer overrun.
3921
3922         getgroups: avoid compilation failure
3923         * lib/getgroups.c (includes): Include <stdint.h> for SIZE_MAX.
3924         * modules/getgroups (Depends-on): Add stdint.
3925
3926 2009-11-13  Jim Meyering  <meyering@redhat.com>
3927
3928         test-getgroups: avoid compilation failure
3929         * tests/test-getgroups.c: Include <stdint.h> for use of SIZE_MAX.
3930
3931 2009-11-13  Eric Blake  <ebb9@byu.net>
3932
3933         mgetgroups: new module, taken from coreutils
3934         * modules/mgetgroups: New file.
3935         * lib/mgetgroups.h: Likewise.
3936         * lib/mgetgroups.c (mgetgroups): Likewise.
3937         * m4/mgetgroups.m4 (gl_MGETGROUPS): Likewise.
3938         * MODULES.html.sh (Users and groups): Mention it.
3939
3940         getgroups: don't expose GETGROUPS_T to user
3941         * lib/getgroups.c (rpl_getgroups): Change signature.  Copy array
3942         an element at a time if GETGROUPS_T is wrong size.
3943         * lib/getugroups.h (getugroups): Change signature.
3944         * lib/unistd.in.h (getgroups): Likewise.
3945         * m4/getgroups.m4 (gl_FUNC_GETGROUPS): Use replacement if
3946         signature needs fixing.
3947         * m4/getugroups.m4 (gl_GETUGROUPS): No longer need
3948         AC_TYPE_GETGROUPS.
3949         * modules/group-member (Depends-on): Add getgroups.
3950         * lib/group-member.c (group_info, get_group_info): Use gid_t.
3951         (group_member): Rely on getgroups replacement.
3952         * lib/getugroups.c (getugroups): Use gid_t.
3953         * tests/test-getgroups.c (main): Likewise.
3954         * NEWS: Mention the signature change.
3955         * doc/posix-functions/getgroups.texi (getgroups): Mention the
3956         problem with signature.
3957         * doc/glibc-functions/setgroups.texi (setgroups): Mention that
3958         GETGROUPS_T is still useful for setgroups.
3959
3960         getgroups, getugroups: provide stubs for mingw
3961         * lib/getgroups.c (getgroups): Provide ENOSYS stub for mingw.
3962         * lib/getugroups.c (getugroups): Likewise.
3963         * m4/getgroups.m4 (gl_FUNC_GETGROUPS): Check for missing
3964         function.  Modernize replacement scheme.
3965         (gl_PREREQ_GETGROUPS): Delete.
3966         * m4/getugroups.m4 (gl_GETUGROUPS): Check for <grp.h>.
3967         * modules/getgroups (configure.ac): Declare witness.
3968         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add default.
3969         * modules/unistd (Depends-on): Substitute witness.
3970         * lib/unistd.in.h (getgroups): Declare replacement.
3971
3972         getgroups: avoid calling exit
3973         * modules/getgroups (Depends-on): Add malloc-posix and unistd,
3974         drop xalloc.
3975         * modules/getgroups-tests (Depends-on, Makefile.am): Drop unneeded
3976         dependencies.
3977         * lib/getgroups.c (rpl_getgroups): Fail with ENOMEM rather than
3978         exiting, in the rare case of malloc failure.
3979
3980         getgroups: fix logic error
3981         * lib/getgroups.c (rpl_getgroups): Don't fail if current process
3982         has more than 20 groups.
3983         * modules/getgroups-tests: New test.
3984         * tests/test-getgroups.c: New file.
3985
3986 2009-11-13  Simon Josefsson  <simon@josefsson.org>
3987
3988         * tests/test-base64.c: Improve.
3989
3990 2009-11-13  Simon Josefsson  <simon@josefsson.org>
3991
3992         * tests/test-xvasprintf.c: Fix memory leak, suggested by Eric
3993         Blake <ebb9@byu.net>.
3994
3995 2009-11-13  Simon Josefsson  <simon@josefsson.org>
3996
3997         * tests/test-xvasprintf.c: Add %s%s related checks.
3998
3999 2009-11-12  Eric Blake  <ebb9@byu.net>
4000
4001         version-etc: match standards.texi style
4002         * lib/version-etc.c (emit_bug_reporting_address): Drop periods,
4003         and use <> only for URLs.
4004
4005 2009-11-10  Kamil Dudka  <kdudka@redhat.com>
4006
4007         fts: do not fail on a submount during traversal
4008         * lib/fts.c (fts_build): Read the stat info again after opening
4009         a directory if the FTS_TIGHT_CYCLE_CHECK flag is set.
4010         Original report at http://bugzilla.redhat.com/501848.
4011
4012 2009-11-12  Jim Meyering  <meyering@redhat.com>
4013
4014         bootstrap: sync from coreutils
4015         * build-aux/bootstrap (bootstrap_epilogue): New function.
4016         Use git_modules_config in one more place.  This make bootstrap's
4017         --gnulib-srcdir option more useful for testing.
4018
4019         bootstrap: generalize autoheader check
4020         * build-aux/bootstrap: Look for AC_CONFIG_HEADER as well as
4021         AC_CONFIG_HEADERS.
4022
4023 2009-11-11  Eric Blake  <ebb9@byu.net>
4024
4025         mkfifoat: use new modules for Solaris and BSD bugs
4026         * m4/mkfifoat.m4 (gl_FUNC_MKFIFOAT): Simplify.
4027         * lib/mkfifoat.c (mknodat): Split...
4028         * lib/mknodat.c (mknodat): ...into new file.
4029         * modules/mkfifoat (Files): Ship new file.
4030         (Depends-on): Add mkfifo, mknod.
4031         * modules/mkfifoat-tests (Files): Reuse mkfifo tests.
4032         (Depends-on): Add symlink.
4033         * tests/test-mkfifoat.c (main): Enhance test.  Drop portions now
4034         redundant with test_mkfifo.h.
4035         (do_mkfifoat, do_mknodat): New helpers.
4036
4037         mknod: new module
4038         * modules/mknod: New file.
4039         * m4/mknod.m4 (gl_FUNC_MKNOD): Likewise.
4040         * lib/mknod.c (mknod): Likewise.
4041         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Set witness
4042         defaults.
4043         * modules/sys_stat (Makefile.am): Substitute them.
4044         * lib/sys_stat.in.h (mknod): Declare replacement.
4045         * MODULES.html.sh (Support for systems lacking POSIX:2008):
4046         Document it.
4047         * doc/posix-functions/mknod.texi (mknod): Likewise.
4048         * modules/mknod-tests: New test.
4049         * tests/test-mknod.c: Likewise.
4050
4051         mkfifo: new module
4052         * modules/mkfifo: New file.
4053         * m4/mkfifo.m4 (gl_FUNC_MKFIFO): Likewise.
4054         * lib/mkfifo.c (mkfifo): Likewise.
4055         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Set witness
4056         defaults.
4057         * modules/sys_stat (Makefile.am): Substitute them.
4058         * lib/sys_stat.in.h (mkfifo): Declare replacement.
4059         * MODULES.html.sh (Support for systems lacking POSIX:2008):
4060         Document it.
4061         * doc/posix-functions/mkfifo.texi (mkfifo): Likewise.
4062         * modules/mkfifo-tests: New test.
4063         * tests/test-mkfifo.h (test_mkfifo): New file, borrowed in part
4064         from test-mkfifoat.c.
4065         * tests/test-mkfifo.c: New file.
4066
4067         readlink: detect FreeBSD bug
4068         * m4/readlink.m4 (gl_FUNC_READLINK): Also detect FreeBSD bug with
4069         slash on symlink.
4070         * doc/posix-functions/readlink.texi (readlink): Document the bug.
4071         * tests/test-readlink.h (test_readlink): Enhance test.
4072
4073         symlink: detect FreeBSD bug
4074         * m4/symlink.m4 (gl_FUNC_SYMLINK): Also detect FreeBSD bug with
4075         slash on symlink.
4076         * doc/posix-functions/symlink.texi (symlink): Document the bug.
4077         * tests/test-symlink.h (test_symlink): Enhance test.
4078
4079 2009-11-10  Eric Blake  <ebb9@byu.net>
4080
4081         link: detect FreeBSD bug
4082         * m4/link.m4 (gl_FUNC_LINK): Also detect FreeBSD bug with slash on
4083         symlink.
4084         * doc/posix-functions/link.texi (link): Document the bug.
4085         * tests/test-link.h (test_link): Enhance test.
4086         * tests/test-linkat.c (main): Update caller.
4087
4088         unlink, remove: detect FreeBSD bug
4089         * m4/unlink.m4 (gl_FUNC_UNLINK): Also detect FreeBSD bug with
4090         slash on symlink.
4091         * doc/posix-functions/unlink.texi (unlink): Document the bug.
4092         * doc/posix-functions/remove.texi (remove): Likewise.
4093         * tests/test-unlink.h (test_unlink): Enhance test.
4094         * tests/test-remove.c (main): Likewise.
4095
4096 2009-11-09  Eric Blake  <ebb9@byu.net>
4097
4098         rename: detect FreeBSD bug
4099         * m4/rename.m4 (gl_FUNC_RENAME): Also detect FreeBSD bug with
4100         slash on symlink.
4101         * modules/renameat-tests (Depends-on): Add filenamecat.
4102         * tests/test-rename.h (test_rename): Allow one more errno.
4103         * tests/test-renameat.c (main): Likewise.
4104         * doc/posix-functions/rename.texi (rename): Document the bug.
4105
4106         open: detect FreeBSD bug
4107         * m4/open.m4 (gl_FUNC_OPEN): Also detect FreeBSD bug with slash on
4108         symlink.
4109         * doc/posix-functions/open.texi (open): Document the bug.
4110         * doc/posix-functions/utimes.texi (utimes): Likewise.
4111         * tests/test-open.h (test_open): Add parameters, and test symlink
4112         handling.
4113         * tests/test-open.c (main): Adjust caller.
4114         * tests/test-fcntl-safer.c (main): Likewise.
4115         * modules/open-tests (Depends-on): Add stdbool, symlink.
4116         * modules/fcntl-safer-tests (Depends-on): Likewise.
4117         * tests/test-openat.c (main): Add test-open tests.
4118
4119         stat: detect FreeBSD bug
4120         * m4/stat.m4 (gl_FUNC_STAT): Also detect FreeBSD bug with slash on
4121         symlink.
4122         * doc/posix-functions/stat.texi (stat): Document the bug.
4123         * tests/test-stat.h (test_stat_func): Add argument.
4124         * tests/test-stat.c (main): Adjust caller.
4125         * tests/test-fstatat.c (main): Likewise.
4126         * modules/stat-tests (Depends-on): Add stdbool, symlink.
4127         Reported by Jim Meyering.
4128
4129 2009-11-09  James Youngman  <jay@gnu.org>
4130
4131         strftime.c: include ignore-value.h only when FPRINTFTIME is defined
4132         * lib/strftime.c: Correct placement of #include "ignore-value.h".
4133
4134 2009-11-08  Jim Meyering  <meyering@redhat.com>
4135
4136         utimens: remove invalid futimesat call
4137         * lib/utimens.c (fdutimens): Remove invalid futimesat call.
4138         It used the file descriptor of the target file as the DIR_FD
4139         parameter and NULL as the file name.  That caused failure with
4140         errno == EFAULT on FreeBSD-8.0-rc2
4141
4142 2009-11-07  Eric Blake  <ebb9@byu.net>
4143
4144         fflush, freadseek: use fseeko, not fseek
4145         * lib/fflush.c (clear_ungetc_buffer_preserving_position)
4146         (clear_ungetc_buffer): Avoid potential problems on large files.
4147         * lib/freadseek.c (freadseek): Likewise.
4148         * modules/freadseek (Depends-on): Add fseeko.
4149         * modules/fseek (configure.ac): Set a witness.
4150         * tests/test-fflush.c (main): Use fseeko.
4151         * tests/test-fpurge.c (fseek): Disable link warning.
4152         * tests/test-freadable.c (fseek): Likewise.
4153         * tests/test-freading.c (fseek): Likewise.
4154         * tests/test-fseeko.c (fseek): Likewise.
4155         * tests/test-ftell.c (fseek): Likewise.
4156         * tests/test-ftello.c (fseek): Likewise.
4157         * tests/test-fwritable.c (fseek): Likewise.
4158         * tests/test-fwriting.c (fseek): Likewise.
4159
4160 2009-11-06  Simon Josefsson  <simon@josefsson.org>
4161
4162         * modules/memchr (Depends-on): Drop getpagesize dependency.
4163
4164 2009-11-06  Simon Josefsson  <simon@josefsson.org>
4165
4166         * build-aux/pmccabe2html: Disable execute bit.  Suggested by
4167         Reported by Ludovic Courtès.
4168         * build-aux/pmccabe2html: Improve example usage.
4169         * build-aux/pmccabe2html: Drop #! header.  Doc fix.
4170
4171 2009-11-06  Jim Meyering  <meyering@redhat.com>
4172
4173         do-release-commit-and-tag: New module.
4174         Automate the release-commit and tag process.
4175         * build-aux/do-release-commit-and-tag: New script, from coreutils.
4176         * modules/do-release-commit-and-tag: New file.
4177         * MODULES.html.sh (Support for maintaining and releasing): Add it.
4178
4179 2009-11-06  Simon Josefsson  <simon@josefsson.org>
4180
4181         * modules/select-tests (test_select_LDADD): Add $(INET_PTON_LIB)
4182         because test-select.c uses inet_pton.
4183
4184 2009-11-06  Simon Josefsson  <simon@josefsson.org>
4185
4186         * m4/getaddrinfo.m4: Add content of INET_NTOP_LIB to
4187         GETADDRINFO_LIB.  Bump serial number.
4188         * modules/getaddrinfo (Link): Only mention GETADDRINFO_LIB again.
4189         Suggested by Eric Blake <ebb9@byu.net>.
4190
4191 2009-11-05  Eric Blake  <ebb9@byu.net>
4192
4193         strtod: detect darwin bug
4194         * m4/strtod.m4 (gl_FUNC_STRTOD): Filter out darwin bug on "nan(".
4195         Reported by Leo Davis.
4196
4197         freopen-safer: new module
4198         * modules/freopen-safer: New module.
4199         * m4/stdio-safer.m4 (gl_FREOPEN_SAFER): New macro.
4200         * lib/freopen-safer.c (freopen_safer): New file.
4201         * lib/stdio-safer.h (freopen_safer): New declaration.
4202         * lib/stdio--.h (freopen): New override.
4203         * MODULES.html.sh (File stream based Input/Output): Mention it.
4204         * doc/posix-functions/freopen.texi (freopen): Mention pitfalls and
4205         freopen-safer module.
4206         * doc/posix-functions/stderr.texi (stderr): Likewise.
4207         * doc/posix-functions/stdin.texi (stdin): Likewise.
4208         * doc/posix-functions/stdout.texi (stdout): Likewise.
4209         * modules/freopen-safer-tests: New test.
4210         * tests/test-reopen-safer.c: New file.
4211
4212 2009-11-05  Jim Meyering  <meyering@redhat.com>
4213
4214         maint.mk: Prohibit inclusion of "close-stream.h" without use.
4215         * top/maint.mk (sc_prohibit_close_stream_without_use): New rule.
4216
4217 2009-11-05  Simon Josefsson  <simon@josefsson.org>
4218
4219         * modules/pmccabe2html (configure.ac): Check for pmccabe tool.
4220
4221 2009-11-05  Simon Josefsson  <simon@josefsson.org>
4222
4223         * modules/getaddrinfo (Link): Add $(INET_NTOP_LIB).
4224
4225 2009-11-05  Simon Josefsson  <simon@josefsson.org>
4226
4227         Fix link error.
4228         * m4/inet_ntop.m4 (gl_INET_NTOP): Fix test of AC_SEARCH_LIBS result.
4229         * m4/inet_pton.m4 (gl_INET_PTON): Likewise.
4230
4231 2009-11-05  Simon Josefsson  <simon@josefsson.org>
4232
4233         * tests/test-func.c: Also test value of __func__.
4234
4235 2009-11-05  Simon Josefsson  <simon@josefsson.org>
4236
4237         * tests/test-sys_socket.c: Use smaller constant value, sa_family_t
4238         may be an 8-bit type.  Reported by Bruno Haible <bruno@clisp.org>.
4239
4240 2009-11-05  Bruno Haible  <bruno@clisp.org>
4241
4242         Fix link error.
4243         * m4/inet_ntop.m4 (gl_INET_NTOP): Fix test of AC_SEARCH_LIBS result.
4244         * m4/inet_pton.m4 (gl_INET_PTON): Likewise.
4245         Reported by Brad Hards <bradh@frogmouth.net> via Simon Josefsson.
4246
4247 2009-11-05  Bruno Haible  <bruno@clisp.org>
4248
4249         Tests for module 'inet_pton'.
4250         * modules/inet_pton-tests: New file.
4251         * tests/test-inet_pton.c: New file.
4252
4253 2009-11-05  Bruno Haible  <bruno@clisp.org>
4254
4255         Tests for module 'inet_ntop'.
4256         * modules/inet_ntop-tests: New file.
4257         * tests/test-inet_ntop.c: New file.
4258
4259 2009-11-04  Eric Blake  <ebb9@byu.net>
4260
4261         stdlib-safer: wrap all mkstemp variants
4262         * modules/mkostemp (configure.ac): Set witness.
4263         * modules/mkostemps (configure.ac): Likewise.
4264         * modules/mkstemps (configure.ac): Likewise.
4265         * lib/stdlib-safer.h (mkostemp_safer, mkostemps_safer)
4266         (mkstemps_safer): Wrap more functions.
4267         * lib/stdlib--.h (mkostemp, mkostemps, mkstemps): Default the
4268         wrapping.
4269         * lib/mkstemp-safer.c (mkostemp_safer, mkostemps_safer)
4270         (mkstemps_safer): Implement the wrappers.
4271
4272         mkstemps, mkostemps: new modules
4273         * modules/mkostemps: New module.
4274         * modules/mkstemps: Likewise.
4275         * lib/mkostemps.c (mkostemps): New file.
4276         * lib/mkstemps.c (mkstemps): Likewise.
4277         * m4/mkostemps.m4 (gl_FUNC_MKOSTEMPS): Likewise.
4278         * m4/mkstemps.m4 (gl_FUNC_MKSTEMPS): Likewise.
4279         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Add witnesses.
4280         * modules/stdlib (Makefile.am): Substitute them.
4281         * lib/stdlib.in.h (mkostemps, mkstemps): Declare them.
4282         * doc/glibc-functions/mkstemps.texi (mkstemps): New file.
4283         * doc/glibc-functions/mkostemps.texi (mkostemps): Likewise.
4284         * doc/gnulib.texi (Glibc stdlib.h): Include them.
4285         * MODULES.html.sh (File system functions): Mention them.
4286
4287         tempname: resync from glibc
4288         * lib/tempname.c (__gen_tempname): Add suffixlen argument.  Use
4289         same values for __GT_FILE as glibc.  Abort even when assertions
4290         are disabled.
4291         * lib/tempname.h (GT_FILE): Use glibc __GT_FILE, if available, and
4292         match its value otherwise.  Allow idempotent inclusion.
4293         * lib/mkdtemp.c (mkdtemp): Adjust caller.
4294         * lib/mkostemp.c (mkostemp): Likewise.
4295         * lib/mkstemp.c (mkstemp): Likewise.
4296         * lib/tmpfile.c (tmpfile): Likewise.
4297         * NEWS: Document this.
4298
4299         utimens: fix use of futimens on older Linux
4300         * lib/utimens.c (fdutimens): Use updated, rather than original,
4301         timespec to avoid bug in older Linux kernel.
4302         Reported by Simon Josefsson.
4303
4304 2009-11-04  Bruno Haible  <bruno@clisp.org>
4305
4306         Make num_processors more flexible and consistent.
4307         * lib/nproc.h (enum nproc_query): New type.
4308         (num_processors): Add a 'query' argument.
4309         * lib/nproc.c: Include <stdlib.h>, <sched.h>, c-ctype.h.
4310         (num_processors): Add a 'query' argument. Test the value of the
4311         OMP_NUM_THREADS environment variable if requested. On Linux, NetBSD,
4312         mingw, count the number of CPUs available for the current process.
4313         * m4/nproc.m4 (gl_PREREQ_NPROC): Require AC_USE_SYSTEM_EXTENSIONS.
4314         Check for sched_getaffinity and sched_getaffinity_np.
4315         * modules/nproc (Depends-on): Add c-ctype, extensions.
4316         * NEWS: Mention the change.
4317
4318 2009-11-03  Bruno Haible  <bruno@clisp.org>
4319
4320         * NEWS: Document the new library dependencies of inet_ntop, inet_pton.
4321
4322 2009-11-03  Jim Meyering  <meyering@redhat.com>
4323
4324         test-getaddrinfo: avoid compilation failure on FreeBSD 7.2
4325         * tests/test-getaddrinfo.c (simple): Test for EAI_NODATA only
4326         if it is defined.
4327
4328 2009-11-02  Eric Blake  <ebb9@byu.net>
4329
4330         mktime, timegm: share common declaration
4331         * lib/mktime-internal.h: New file.
4332         * lib/mktime.c: Use it rather than open-coding a declaration.
4333         * lib/timegm.c: Likewise.
4334         * modules/mktime (Files): Ship it.
4335         * modules/timegm (Files): Likewise.
4336         Suggested by Bruno Haible.
4337
4338         test-update-copyright: update test to match script changes
4339         * tests/test-update-copyright.sh: Avoid hard-coding perl
4340         location.  Don't update *.bak created by earlier runs.
4341
4342 2009-11-02  Paul Eggert  <eggert@cs.ucla.edu>
4343             Simon Josefsson  <simon@josefsson.org>
4344             Bruno Haible  <bruno@clisp.org>
4345
4346         Fix link error on Solaris 8.
4347         * m4/inet_pton.m4 (gl_INET_PTON): Search for the function inet_pton
4348         also in libnsl. Define also INET_PTON_LIB.
4349         * modules/inet_pton (Link): New section.
4350
4351 2009-11-02  Simon Josefsson  <simon@josefsson.org>
4352             Bruno Haible  <bruno@clisp.org>
4353
4354         * m4/inet_ntop.m4 (gl_INET_NTOP): Define also INET_NTOP_LIB.
4355         * modules/inet_ntop (Link): New section.
4356         Reported by Boyan Kasarov <bkasarov@gmail.com>.
4357
4358 2009-11-02  Eric Blake  <ebb9@byu.net>
4359
4360         maint: avoid compiler warnings in m4 macros
4361         * m4/ungetc.m4 (gl_FUNC_UNGETC_WORKS): Avoid unused variable.
4362         * m4/rmdir.m4 (gl_FUNC_RMDIR): Include correct header.
4363
4364 2009-11-02  Simon Josefsson  <simon@josefsson.org>
4365
4366         * m4/pmccabe2html.m4: Remove file.
4367         * modules/pmccabe2html: Drop pmccabe2html.m4.  Don't call m4
4368         function.  Change maintainer.
4369         * build-aux/pmccabe2html: Use /bin/sh with magic instead of
4370         hard-coding path to awk.  Tiny patch from ludo@gnu.org (Ludovic
4371         Courtès).
4372
4373 2009-10-31  Eric Blake  <ebb9@byu.net>
4374
4375         fseeko: fix m4 regression
4376         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Use modern macro.  Fixes
4377         regression from 2009-10-27.
4378         Reported by Ralf Wildenhues.
4379
4380 2009-10-31  Jim Meyering  <meyering@redhat.com>
4381
4382         inttostr: aesthetics and improved (compile-time) safety
4383         Define inttype_is_signed rather than inttype_is_unsigned,
4384         since the sole use is via "#if inttype_is_signed".
4385         * lib/imaxtostr.c (inttype_is_signed): Define this, rather than
4386         inttype_is_unsigned.
4387         * lib/offtostr.c (inttype_is_signed): Likewise.
4388         * lib/uinttostr.c (inttype_is_signed): Likewise.
4389         * lib/umaxtostr.c (inttype_is_signed): Likewise.
4390         * lib/inttostr.c (inttostr): Use verify to cross-check the
4391         inttype_is_signed value and the signedness of the actual type.
4392         * modules/inttostr (Depends-on): Add verify.
4393
4394 2009-10-30  Eric Blake  <ebb9@byu.net>
4395
4396         build: avoid compiler warnings
4397         * lib/fchmodat.c (lchmod): Mark unused variables.
4398         * lib/getopt.c (_getopt_initialize): Likewise.
4399         * lib/mktime.c (__mktime_internal): Provide prototype.
4400         * lib/inttostr.c (inttostr): Avoid compiler warning even with
4401         older gcc that do not understand #pragma GCC diagnostic.
4402         * lib/uinttostr.c (inttype_is_unsigned): Define.
4403         * lib/umaxtostr.c (inttype_is_unsigned): Likewise.
4404
4405 2009-10-30  Michael Haubenwallner  <michael.haubenwallner@salomon.at>
4406
4407         stat: fix compilation on AIX
4408         * lib/sys_stat.in.h (stat): Work with fact that large files on AIX
4409         only see struct stat64.
4410
4411 2009-10-30  Eric Blake  <ebb9@byu.net>
4412
4413         exclude: make more robust
4414         * lib/exclude.c (excluded_file_name): Abort on unexpected value,
4415         rather than masking a coding bug.
4416         Suggested by Bruno Haible.
4417
4418 2009-10-30  Jim Meyering  <meyering@redhat.com>
4419
4420         perl scripts: remove #!/usr/bin/perl in favor of more portable...
4421         Rather than putting #!/usr/bin/perl on the first line,
4422         start with a variant of what's recommended by "man perlrun" that
4423         invokes the first "perl" program from your shell's search path.
4424         * build-aux/gitlog-to-changelog: Replace #!... as above.
4425         Add a "Local Variables" perl mode setting.
4426         Prompted by a patch from Ludovic Courtès.
4427         Improved by Eric Blake.
4428         * build-aux/useless-if-before-free: Likewise.
4429         * build-aux/announce-gen: Likewise.
4430         * build-aux/update-copyright: Likewise.
4431
4432 2009-10-29  Eric Blake  <ebb9@byu.net>
4433
4434         filenamecat-lgpl: adjust clients
4435         * modules/linkat (Depends-on): Use filenamecat-lgpl, not
4436         filenamecat.
4437         * modules/renameat (Depends-on): Likewise.
4438
4439         filenamecat: split into filenamecat-lgpl
4440         * modules/filenamecat-lgpl: New module.
4441         * modules/filenamecat (Files): Move library-safe files into
4442         filenamecat-lgpl.
4443         (Depends-on): Add filenamecat-lgpl.
4444         (configure.ac): Declare witness.
4445         * lib/filenamecat.h (file_name_concat): Only declare when using
4446         GPL module.
4447         * lib/filenamecat.c (longest_relative_suffix, mfile_name_concat):
4448         Move...
4449         * lib/filenamecat-lgpl.c: ...into new file.
4450         * m4/filenamecat.m4 (gl_FILE_NAME_CONCAT_LGPL): New macro.
4451         (gl_FILE_NAME_CONCAT): Use it.
4452         * MODULES.html.sh (File system functions): Mention new module.
4453
4454         argp: avoid memory leak
4455         * modules/argp (Depends-on): Use dirname-lgpl, not dirname.
4456         * lib/argp-namefrob.h (__argp_base_name): Use last_component, not
4457         base_name, since the latter malloc()s and can call exit().
4458         Leak introduced 2006-07-03.
4459
4460         dirname-lgpl: adjust clients that don't need full dirname
4461         * modules/backupfile (Depends-on): Use dirname-lgpl, not dirname.
4462         * modules/filenamecat (Depends-on): Likewise.
4463         * modules/linkat (Depends-on): Likewise.
4464         * modules/mkancesdirs (Depends-on): Likewise.
4465         * modules/mkdir (Depends-on): Likewise.
4466         * modules/openat (Depends-on): Likewise.
4467         * modules/savewd (Depends-on): Likewise.
4468         * modules/rename (Depends-on): Likewise.
4469         (License): Relax license.
4470         * modules/mkdir-tests (Depends-on): Drop progname.
4471         (Makefile.am): Delete unneeded LDADD.
4472         * modules/rename-tests (Depends-on, Makefile.am): Likewise.
4473
4474         dirname: split into dirname-lgpl
4475         * modules/dirname-lgpl: New module.
4476         * modules/dirname (Files): Move library-safe files into
4477         dirname-lgpl.
4478         (Depends-on): Add dirname-lgpl.
4479         (configure.ac): Declare witness.
4480         * modules/double-slash-root (License): Relax license.
4481         * lib/dirname.h (base_name, dir_name): Only declare when using GPL
4482         module.
4483         * lib/dirname.c (dir_len, mdir_name): Move...
4484         * lib/dirname-lgpl.c: ...into new file.
4485         * lib/basename.c (last_component, base_len): Move...
4486         * lib/basename-lgpl.c: ...into new file.
4487         * m4/dirname.m4 (gl_DIRNAME_LGPL): New macro.
4488         (gl_DIRNAME): Use it.
4489         * MODULES.html.sh (Enhancements for POSIX:2008 functions):
4490         Mention new module.
4491         * modules/dirname-tests (Depends-on): Add progname.
4492         * tests/test-dirname.c (program_name): Delete.
4493
4494         mkdir: make safe for libraries
4495         * modules/mkdir (Depends-on): Drop xalloc.
4496         * lib/mkdir.c (rpl_mkdir): Fail with ENOMEM rather than calling
4497         exit.
4498
4499         tests: avoid some compiler warnings
4500         * tests/test-getaddrinfo.c (simple): Mark static, and allow string
4501         literals.
4502         * tests/test-memchr.c (main): Avoid type mismatch.
4503         * tests/test-arpa_inet.c (main): Avoid unused parameters.
4504         * tests/test-base64.c (main): Likewise.
4505         * tests/test-getdelim.c (main): Likewise.
4506         * tests/test-gethostname.c (main): Likewise.
4507         * tests/test-getline.c (main): Likewise.
4508         * tests/test-netinet_in.c (main): Likewise.
4509         * tests/test-select.c (open_server_socket, main): Likewise.
4510         * tests/test-select-stdin.c (main): Likewise.
4511         * tests/test-sockets.c (main): Likewise.
4512         * tests/test-strsignal.c (main): Likewise.
4513         * tests/test-sys_select.c (main): Likewise.
4514         * tests/test-sys_socket.c (main): Likewise.
4515         * tests/test-u64.c (main): Likewise.
4516         * tests/test-xfprintf-posix.c (main): Likewise.
4517         * tests/test-xvasprintf.c (test_xvasprintf, main): Likewise.
4518
4519         sockets: avoid compiler warning
4520         * lib/sockets.c (gl_sockets_startup): Mark unused parameter.
4521
4522         maint: detect usage(1) and other suspicious exits
4523         * top/maint.mk (sc_prohibit_magic_number_exit): New rule.
4524
4525 2009-10-29  Jim Meyering  <meyering@redhat.com>
4526
4527         timespec: long-to-int truncation could make timespec_cmp malfunction
4528         * lib/timespec.h (timespec_cmp): Do not interpret a difference of
4529         a multiple of 2^32 nanoseconds as no difference.
4530
4531 2009-10-28  Jim Meyering  <meyering@redhat.com>
4532
4533         fprintftime: wrap macro code argument in "do {...} while(0)"
4534         * lib/strftime.c (cpy) [FPRINTFTIME]: The second argument to the
4535         cpy macro must be a statement that can be followed by a semicolon.
4536         Now that the else clause contains a comment and is hence longer
4537         than one line, I require curly braces.  That in turn requires
4538         that we wrap this code block in the standard do...while(0).
4539
4540         fprintftime: remove stray semicolon from previous change
4541         * lib/strftime.c (cpy) [FPRINTFTIME]: Remove trailing semicolon.
4542
4543         fprintftime: avoid a warning about ignored fwrite return value
4544         * lib/strftime.c [FPRINTFTIME]: Include "ignore-value.h".
4545         (cpy) [FPRINTFTIME]: Ignore fwrite failure, even though technically,
4546         that is unsafe.
4547         * modules/fprintftime (Depends-on): Add ignore-value.
4548
4549         exclude: avoid an unwarranted warning
4550         * lib/exclude.c (excluded_file_name): Initialize "rc" before switch.
4551
4552 2009-10-27  Eric Blake  <ebb9@byu.net>
4553
4554         fseek: avoid compilation failure when fflush is replaced
4555         * m4/fseek.m4 (gl_REPLACE_FSEEK): New macro.
4556         * m4/fseeko.m4 (gl_REPLACE_FSEEKO): Also replace fseek, if fseek
4557         module is in use.
4558         * lib/stdio.in.h (GNULIB_FSEEKO): Only poison fseek if fseek
4559         module is not in use; since REPLACE_FSEEK worked otherwise.
4560         (GNULIB_FTELLO): Likewise for ftell.
4561         Reported by Ian Beckwith and others.
4562
4563 2009-10-27  Bruno Haible  <bruno@clisp.org>
4564
4565         * lib/isnan.c (rpl_isnan[fdl]): Repeat the specification declaration.
4566         Reported by Jim Meyering.
4567
4568 2009-10-27  Jim Meyering  <jim@meyering.net>
4569             Bruno Haible  <bruno@clisp.org>
4570
4571         Avoid warning despite dropping the return value of fwrite.
4572         * lib/unicodeio.c: Include ignore-value.h.
4573         (fwrite_success_callback): Explicitly ignore fwrite's return value.
4574         * modules/unicodeio (Depends-on): Add ignore-value.
4575
4576 2009-10-26  Eric Blake  <ebb9@byu.net>
4577
4578         areadlinkat: fix fallback path
4579         * lib/at-func.c (AT_FUNC_NAME): Avoid signed comparison between
4580         pointer and zero.
4581
4582 2009-10-22  Pádraig Brady  <P@draigBrady.com>
4583
4584         Use a better IO block size for modern systems
4585         * lib/copy-file.c (copy_file_preserving): Used a 32KiB malloced buffer.
4586         * lib/md2.c: Likewise.
4587         * lib/md4.c: Likewise.
4588         * lib/md5.c: Likewise.
4589         * lib/sha1.c: Likewise.
4590         * lib/sha256.c: Likewise.
4591         * lib/sha512.c: Likewise.
4592
4593 2009-10-22  Eric Blake  <ebb9@byu.net>
4594
4595         tests: avoid several compiler warnings
4596         * tests/test-getcwd.c (main): Avoid buffer underflow.
4597         * tests/test-getdate.c (main): String literals are not safe with
4598         putenv, so use setenv.  Declare unused argument.
4599         * modules/getdate-tests (Depends-on): Add setenv.
4600         * tests/test-argv-iter.c (main): Declare unused argument.  Avoid
4601         problems with string literals in char *.
4602         * tests/test-hash.c (main): Avoid shadowing declaration.
4603         (insert_new): Treat string literals as char const *.
4604         * tests/test-getopt.h (test_getopt): Likewise.
4605         (getopt_loop): Alter types to minimize casting elsewhere.
4606         * tests/test-getopt_long.h (test_getopt_long, getopt_long_loop)
4607         (test_getopt_long_posix): Likewise.
4608         (do_getopt_long): Add wrapper to minimize casting.
4609         * tests/test-atexit.c (clear_temp_file): Use void.
4610         * tests/test-areadlink-with-size.c (main): Declare unused
4611         arguments.
4612         * tests/test-areadlink.c (main): Likewise.
4613         * tests/test-areadlinkat-with-size.c (main): Likewise.
4614         * tests/test-areadlinkat.c (main): Likewise.
4615         * tests/test-canonicalize-lgpl.c (main): Likewise.
4616         * tests/test-canonicalize.c (main): Likewise.
4617         * tests/test-dirent-safer.c (main): Likewise.
4618         * tests/test-dirname.c (main): Likewise.
4619         * tests/test-dup2.c (main): Likewise.
4620         * tests/test-fchdir.c (main): Likewise.
4621         * tests/test-fcntl-h.c (main): Likewise.
4622         * tests/test-fcntl-safer.c (main): Likewise.
4623         * tests/test-fdopendir.c (main): Likewise.
4624         * tests/test-fdutimensat.c (main): Likewise.
4625         * tests/test-fflush.c (main): Likewise.
4626         * tests/test-filenamecat.c (main): Likewise.
4627         * tests/test-filevercmp.c (main): Likewise.
4628         * tests/test-fopen-safer.c (main): Likewise.
4629         * tests/test-fopen.c (main): Likewise.
4630         * tests/test-fpending.c (main): Likewise.
4631         * tests/test-fpurge.c (main): Likewise.
4632         * tests/test-freading.c (main): Likewise.
4633         * tests/test-fstatat.c (main): Likewise.
4634         * tests/test-fsync.c (main): Likewise.
4635         * tests/test-futimens.c (main): Likewise.
4636         * tests/test-getndelim2.c (main): Likewise.
4637         * tests/test-gettimeofday.c (main): Likewise.
4638         * tests/test-getopt.c (main): Likewise.
4639         * tests/test-i-ring.c (main): Likewise.
4640         * tests/test-inttypes.c (main): Likewise.
4641         * tests/test-link.c (main): Likewise.
4642         * tests/test-lstat.c (main): Likewise.
4643         * tests/test-math.c (main): Likewise.
4644         * tests/test-md5.c (main): Likewise.
4645         * tests/test-memchr2.c (main): Likewise.
4646         * tests/test-memrchr.c (main): Likewise.
4647         * tests/test-mkdir.c (main): Likewise.
4648         * tests/test-mkdirat.c (main): Likewise.
4649         * tests/test-mkfifoat.c (main): Likewise.
4650         * tests/test-open.c (main): Likewise.
4651         * tests/test-openat-safer.c (main): Likewise.
4652         * tests/test-openat.c (main): Likewise.
4653         * tests/test-quotearg.c (main): Likewise.
4654         * tests/test-rawmemchr.c (main): Likewise.
4655         * tests/test-readlink.c (main): Likewise.
4656         * tests/test-remove.c (main): Likewise.
4657         * tests/test-rename.c (main): Likewise.
4658         * tests/test-renameat.c (main): Likewise.
4659         * tests/test-rmdir.c (main): Likewise.
4660         * tests/test-sha1.c (main): Likewise.
4661         * tests/test-signal.c (main): Likewise.
4662         * tests/test-sigaction.c (main): Likewise.
4663         * tests/test-stat.c (main): Likewise.
4664         * tests/test-stat-time.c (main): Likewise.
4665         * tests/test-stddef.c (main): Likewise.
4666         * tests/test-stdint.c (main): Likewise.
4667         * tests/test-stdio.c (main): Likewise.
4668         * tests/test-stdlib.c (main): Likewise.
4669         * tests/test-strchrnul.c (main): Likewise.
4670         * tests/test-strerror.c (main): Likewise.
4671         * tests/test-string.c (main): Likewise.
4672         * tests/test-strtod.c (main): Likewise.
4673         * tests/test-strverscmp.c (main): Likewise.
4674         * tests/test-symlink.c (main): Likewise.
4675         * tests/test-symlinkat.c (main): Likewise.
4676         * tests/test-sys_stat.c (main): Likewise.
4677         * tests/test-sys_time.c (main): Likewise.
4678         * tests/test-time.c (main): Likewise.
4679         * tests/test-unistd.c (main): Likewise.
4680         * tests/test-unlink.c (main): Likewise.
4681         * tests/test-unlinkat.c (main): Likewise.
4682         * tests/test-utimens.c (main): Likewise.
4683         * tests/test-utimensat.c (main): Likewise.
4684         * tests/test-version-etc.c (main): Likewise.
4685         * tests/test-wchar.c (main): Likewise.
4686         * tests/test-wctype.c (main): Likewise.
4687         * tests/test-xprintf-posix.c (main): Likewise.
4688         * tests/test-posixtm.c (main): Likewise.
4689         (STREQ): Delete unused macro.
4690         * tests/test-linkat.c (main): Declare unused arguments.  Avoid
4691         shadowed variables.
4692         * tests/test-memchr.c (main): Likewise.
4693
4694 2009-10-21  Eric Blake  <ebb9@byu.net>
4695
4696         areadlinkat: avoid failure on older glibc
4697         * lib/at-func.c (AT_FUNC_NAME): Check for explicit FUNC_FAIL,
4698         rather than mis-comparing 0 against FUNC_RESULT of char*.
4699
4700 2009-10-21  Bruno Haible  <bruno@clisp.org>
4701
4702         * modules/stpncpy (License): Relicense under LGPLv2+.
4703         Reported by David Lutterkort <lutter@redhat.com>.
4704
4705 2009-10-20  Eric Blake  <ebb9@byu.net>
4706
4707         utimensat: work around Solaris 9 bug
4708         * lib/utimens.c (fdutimens, lutimens): Force a stat if platform
4709         has trailing slash bugs.
4710         * tests/test-lutimens.h (test_lutimens): Enhance test.
4711         * tests/test-utimens.h (test_utimens): Likewise.
4712         * doc/posix-functions/utime.texi (utime): Enhance documentation.
4713         * doc/posix-functions/utimes.texi (utimes): Likewise.
4714         * doc/posix-functions/utimensat.texi (utimensat): Likewise.
4715         * doc/glibc-functions/futimesat.texi (futimesat): Likewise.
4716         * doc/glibc-functions/lutimes.texi (lutimes): Likewise.
4717         * doc/posix-functions/futimens.texi (futimens): Likewise.
4718
4719         fdutimensat: new module
4720         * modules/fdutimensat: New file.
4721         * lib/fdutimensat.c (fdutimensat): Likewise.
4722         * lib/utimens.h (fdutimensat, lutimensat): Declare new functions.
4723         * MODULES.html.sh (File system functions): Mention module.
4724         * modules/fdutimensat-tests: New test.
4725         * tests/test-fdutimensat.c: Likewise.
4726
4727         doc: regenerate INSTALL
4728         * doc/INSTALL: Reflect recent autoconf update.
4729         * doc/INSTALL.ISO: Likewise.
4730         * doc/INSTALL.UTF-8: Likewise.
4731
4732 2009-10-20  Pádraig Brady  <P@draigBrady.com>
4733
4734         acl: warn if ACL support is not detected
4735         * m4/acl.m4 (gl_FUNC_ACL): Output a warning if ACL support is not found.
4736
4737 2009-10-19  Giuseppe Scrivano  <gscrivano@gnu.org>
4738
4739         * lib/nproc.h: Add extern "C" block for C++.
4740
4741 2009-10-18  Reuben Thomas  <rrt@sc3d.org>
4742             Bruno Haible  <bruno@clisp.org>
4743
4744         * doc/posix-functions/isascii.texi: Document the 2 alternative APIs.
4745         * doc/posix-functions/isalnum.texi: Document the 4 alternative APIs.
4746         * doc/posix-functions/isalpha.texi: Likewise.
4747         * doc/posix-functions/isblank.texi: Likewise.
4748         * doc/posix-functions/iscntrl.texi: Likewise.
4749         * doc/posix-functions/isdigit.texi: Likewise.
4750         * doc/posix-functions/isgraph.texi: Likewise.
4751         * doc/posix-functions/islower.texi: Likewise.
4752         * doc/posix-functions/isprint.texi: Likewise.
4753         * doc/posix-functions/ispunct.texi: Likewise.
4754         * doc/posix-functions/isspace.texi: Likewise.
4755         * doc/posix-functions/isupper.texi: Likewise.
4756         * doc/posix-functions/isxdigit.texi: Likewise.
4757
4758 2009-10-18  Bruno Haible  <bruno@clisp.org>
4759
4760         Tests for module 'isblank'.
4761         * modules/isblank-tests: New file.
4762         * tests/test-isblank.c: New file.
4763
4764         New module 'isblank'.
4765         * lib/isblank.c: New file.
4766         * m4/isblank.m4: New file.
4767         * modules/isblank: New file.
4768         * doc/posix-functions/isblank.texi: Mention the new module.
4769
4770 2009-10-18  Bruno Haible  <bruno@clisp.org>
4771
4772         New module 'ctype'.
4773         * lib/ctype.in.h: New file.
4774         * m4/ctype.m4: New file.
4775         * modules/ctype: New file.
4776         * doc/posix-headers/ctype.texi: Mention the new module.
4777
4778 2009-10-18  Jim Meyering  <meyering@redhat.com>
4779
4780         m4: stylistic-only: hoist AC_SUBST to be adjacent to initialization
4781         Declare a variable like LIB_CLOCK_GETTIME to be AC_SUBSTituted
4782         right after its initialization, rather than farther down.
4783         Keeping these in close proximity makes it easier to ensure
4784         that each such variable is initialized.  E.g.,
4785
4786             LIB_CLOCK_GETTIME=
4787             AC_SUBST([LIB_CLOCK_GETTIME])
4788
4789         This change also increments these serial numbers.
4790         * m4/clock_time.m4 (gl_CLOCK_TIME): Hoist AC_SUBST use.
4791         * m4/euidaccess.m4 (gl_PREREQ_EUIDACCESS): Likewise.
4792         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
4793
4794 2009-10-18  Bruno Haible  <bruno@clisp.org>
4795
4796         Don't let environment variables perturb build.
4797         * m4/gethrxtime.m4 (gl_GETHRXTIME): Initialize LIB_GETHRXTIME here...
4798         (gl_PREREQ_GETHRXTIME): ... not here.
4799
4800 2009-10-18  Bruno Haible  <bruno@clisp.org>
4801
4802         Avoid symlink attack in localcharset module.
4803         * lib/localcharset.c: Include <fcntl.h>, <unistd.h>.
4804         (O_NOFOLLOW): Define fallback.
4805         (get_charset_aliases): Don't open the file if it is a symbolic link.
4806         * m4/fcntl_h.m4 (gl_FCNTL_O_FLAGS): New macro, extracted from
4807         gl_FCNTL_H.
4808         (gl_FCNTL_H): Require it.
4809         * m4/localcharset.m4 (gl_LOCALCHARSET): Likewise.
4810         * modules/localcharset (Files): Add m4/fcntl_h.m4.
4811         Reported by Fergal Glynn <fglynn@veracode.com>.
4812
4813 2009-10-18  Bruno Haible  <bruno@clisp.org>
4814
4815         Implement nproc for mingw.
4816         * lib/nproc.c: Include <windows.h>
4817         (num_processors): On native Windows platforms, try GetSystemInfo.
4818
4819 2009-10-18  Bruno Haible  <bruno@clisp.org>
4820
4821         Implement nproc for IRIX.
4822         * lib/nproc.c: Include <sys/sysmp.h>.
4823         (num_processors): On IRIX systems, try sysmp.
4824         * m4/nproc.m4 (gl_PREREQ_NPROC): Check for sys/sysmp.h and sysmp.
4825
4826 2009-10-18  Bruno Haible  <bruno@clisp.org>
4827
4828         Implement nproc for HP-UX.
4829         * lib/nproc.c: Include <sys/pstat.h>
4830         (num_processors): On HP-UX systems, try pstat_getdynamic.
4831         * m4/nproc.m4 (gl_PREREQ_NPROC): Check for sys/pstat.h and
4832         pstat_getdynamic.
4833
4834 2009-10-18  Giuseppe Scrivano  <gscrivano@gnu.org>
4835             Bruno Haible  <bruno@clisp.org>
4836
4837         Implement nproc for NetBSD, OpenBSD.
4838         * lib/nproc.c: Include <sys/types.h>, <sys/param.h>, <sys/sysctl.h>.
4839         (ARRAY_SIZE): New macro.
4840         (num_processors): On BSD systems, try sysctl of HW_NCPU.
4841         * m4/nproc.m4: New file.
4842         * modules/nproc (Files): Add m4/nproc.m4.
4843         (configure.ac): Invoke gl_NPROC. Remove AC_LIBOBJ invocation.
4844         (Makefile.am): Instead, augment lib_SOURCES.
4845
4846 2009-10-18  Bruno Haible  <bruno@clisp.org>
4847
4848         Fix recognition of sys/sysctl.h on OpenBSD 4.0.
4849         * m4/physmem.m4 (gl_PHYSMEM): Before including sys/sysctl.h, include
4850         sys/param.h.
4851
4852 2009-10-16  Eric Blake  <ebb9@byu.net>
4853
4854         utimensat: new module
4855         * modules/utimensat: New file.
4856         * lib/utimensat.c (utimensat): Likewise.
4857         * m4/utimensat.m4 (gl_FUNC_UTIMENSAT): Likewise.
4858         * lib/utimens.c (utimensat): Avoid recursion into rpl_utimensat,
4859         so we can work around Linux bugs.
4860         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Add witnesses.
4861         * modules/sys_stat (Makefile.am): Substitute them.
4862         * lib/sys_stat.in.h (utimensat): Declare it.
4863         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
4864         * doc/posix-functions/utimensat.texi (utimensat): Likewise.
4865         * modules/utimensat-tests: New test.
4866         * tests/test-utimensat.c: Likewise.
4867
4868         utimens: let lutimens work on non-symlinks
4869         * lib/utimens.c (lutimens): Fall back to utimens rather than
4870         failing with ENOSYS, when file is not a symlink.
4871         (utimens): Reduce redirection.
4872         * tests/test-lutimens.h (test_lutimens): Update test to cover
4873         non-symlinks.
4874         * tests/test-utimens.h (test_utimens): Update test to cover
4875         symlinks.
4876         * tests/test-utimens.c (main): Update caller.
4877
4878         utimens: cache whether utimensat syscall works
4879         * lib/utimens.c (utimensat_works_really): New cache variable.
4880         (fdutimens, lutimens): Use it to avoid failing syscall.
4881
4882         test-stat-time, test-utimens: improve portability
4883         * tests/test-stat-time.c (nap): Lengthen delay to 20ms, for
4884         ext4 on alpha, and for cygwin.
4885         * tests/test-utimens-common.h: New file.
4886         (nap): Factor delays into single function.
4887         * tests/test-lutimens.h (test_lutimens): Use new header.
4888         * tests/test-futimens.h (test_futimens): Likewise.
4889         * tests/test-utimens.h (test_utimens): Likewise.  Also, force NFS
4890         timestamps to occur from same machine, as was done previously for
4891         test_utimens.
4892         * modules/utimens-tests (Files): Ship new file.
4893         * modules/futimens-tests (Files): Likewise.
4894         Reported in part by Jim Meyering.
4895
4896         sys_stat: sort replacement declarations
4897         * lib/sys_stat.in.h: Sort declarations.
4898         * lib/futimens.c (futimens): Fix typo.
4899
4900 2009-10-15  Jim Meyering  <meyering@redhat.com>
4901
4902         don't let environment settings perturb build
4903         Setting the envvars, LIB_CLOCK_GETTIME, LIB_EACCESS or LIB_NANOSLEEP
4904         could cause a configure-time and/or build-time malfunction.
4905         Typically, a configure-time function-in-library test is performed
4906         via code like this:
4907
4908           LIB_VAR=
4909           AC_SUBST([LIB_VAR])
4910           prefix_saved_LIBS=$LIBS
4911             AC_SEARCH_LIBS([FUNC], [LIB_NAME],
4912                        [test "$ac_cv_search_FUNC" = "none required" ||
4913                         LIB_VAR=$ac_cv_search_FUNC])
4914           LIBS=$prefix_saved_LIBS
4915
4916         However, in each of the files affected by this change, the LIB_VAR=
4917         initialization was omitted.  Thus, when set in the environment, its
4918         value would propagate into generated Makefiles when FUNC is not found
4919         in LIB_NAME.
4920         * m4/clock_time.m4 (gl_CLOCK_TIME): Initialize AC_SUBST'd var.
4921         * m4/euidaccess.m4 (gl_PREREQ_EUIDACCESS): Likewise.
4922         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
4923
4924 2009-10-14  Eric Blake  <ebb9@byu.net>
4925
4926         fchdir: avoid infinite recursion in mingw
4927         * lib/fchdir.c (rpl_fstat): Call system fstat, rather than
4928         recursing.
4929
4930         test-stat-time: port to mingw
4931         * tests/test-stat-time.c (force_unlink): Return a value.
4932         (test_ctime) [W32]: Fix compilation error.
4933         (nap): Don't call usleep with too large an argument.  Use
4934         force_unlink.
4935         * doc/pastposix-functions/usleep.texi (usleep): Document the
4936         portability issue.
4937
4938 2009-10-13  Jim Meyering  <meyering@redhat.com>
4939
4940         use AC_CHECK_FUNCS_ONCE, not AC_CHECK_FUNCS in modules/*
4941         * modules/pipe-filter-gi: Use AC_CHECK_FUNCS_ONCE, not AC_CHECK_FUNCS.
4942         * modules/pipe-filter-ii: Likewise.
4943         * modules/sys_socket-tests: Likewise.
4944         * modules/tsearch-tests: Likewise.
4945         * Makefile (sc_prefer_ac_check_funcs_once): New rule.
4946         (check): Depend on it.
4947
4948 2009-10-12  Eric Blake  <ebb9@byu.net>
4949
4950         utimens-tests: port to NFS file systems
4951         * tests/test-utimens.h (test_utimens): Refactor utimecmp
4952         comparisons to avoid spurious failures from timestamp drift
4953         between NFS machines.
4954
4955 2009-10-12  Eric Blake  <ebb9@byu.net>
4956
4957         stat-time-tests: minor cleanups
4958         * modules/stat-time-tests (configure.ac): Use AC_CHECK_FUNCS_ONCE.
4959         * tests/test-stat-time.c (nap): Separate assignment from call.
4960         Suggested by Paolo Bonzini and Bruno Haible.
4961
4962         sys_stat: guarantee struct timespec
4963         * lib/sys_stat.in.h (includes): Always include <time.h>
4964         * modules/sys_stat (Depends-on): Add time.
4965         * tests/test-sys_stat.c: Guarantee struct timespec, as well as
4966         mode_t permission values.
4967         * doc/posix-headers/sys_stat.texi (sys/stat.h): Document how to
4968         get at subsecond timestamps.
4969
4970 2009-10-10  Eric Blake  <ebb9@byu.net>
4971
4972         futimens: new module
4973         * modules/futimens: New file.
4974         * lib/futimens.c (futimens): Likewise.
4975         * m4/futimens.m4 (gl_FUNC_FUTIMENS): Likewise.
4976         * lib/utimens.c (futimens): Avoid recursion into rpl_futimens, so
4977         we can work around Linux bugs.
4978         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Add witnesses.
4979         * modules/sys_stat (Makefile.am): Substitute them.
4980         * lib/sys_stat.in.h (futimens): Declare it.
4981         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
4982         * doc/posix-functions/futimens.texi (futimens): Likewise.
4983         * modules/futimens-tests: New test.
4984         * tests/test-futimens.c: Likewise.
4985
4986         utimens: introduce fdutimens
4987         * lib/utimens.h (fdutimens): New prototype.
4988         * lib/utimens.c (gl_futimens): Move guts...
4989         (fdutimens): ...to new interface.
4990         * tests/test-utimens.c (do_fdutimens): Use it.
4991
4992         utimens: add UTIME_NOW and UTIME_OMIT support
4993         * lib/utimens.c (validate_timespec, update_timespec): New helper
4994         functions.
4995         (gl_futimens, lutimens): Use them.
4996         * modules/utimens (Depends-on): Add gettime, lstat, stat-time,
4997         stdbool, sys_stat.
4998         (Link): Mention resulting library dependency.
4999         * modules/utimecmp (Link): Likewise.
5000         * modules/utimens-tests (Depends-on): Drop stat-time, stdbool.
5001         (Makefile.am): Pick up library dependency.
5002         * lib/sys_stat.in.h (UTIME_NOW, UTIME_OMIT): Guarantee a
5003         definition.
5004         * tests/test-sys_stat.c: Test the definitions.
5005         * doc/posix-headers/sys_stat.texi (sys/stat.h): Document this.
5006         * NEWS: Document library dependency.
5007
5008         utimecmp: support symlink timestamps
5009         * lib/utimecmp.c (utimecmp): Use new interface.  Skip effort of
5010         hashing when possible.  Use pathconf when available.
5011         (SYSCALL_RESOLUTION): Recognize tighter resolution.
5012         * modules/utimecmp (Depends-on): Add lstat.
5013
5014         utimens: add lutimens interface
5015         * lib/utimens.c (lutimens): New function.
5016         * m4/utimens.m4 (gl_UTIMENS): Check for lutimes.
5017         * lib/utimens.h (lutimens): Declare new interface.
5018         * tests/test-utimens.c (main): Enhance test.
5019         * tests/test-lutimens.h (test_lutimens): New file.
5020         * modules/utimens-tests (Files): Distribute it.
5021         (Depends-on): Add symlink.
5022         (configure.ac): Check for usleep.
5023
5024         utimens: validate futimens usage
5025         * lib/utimens.c (gl_futimens): Require valid fd up front, using
5026         fewer syscalls on failure later on.  Avoid compiler warning on
5027         mingw.
5028         * modules/utimens (Depends-on): Add dup2.
5029
5030         utimens: add test
5031         * modules/utimens-tests: New test.
5032         * tests/test-utimens.h: New file.
5033         * tests/test-futimens.h: Likewise.
5034         * tests/test-utimens.c: Likewise.
5035
5036         doc: mention timestamp portability issues
5037         * doc/glibc-functions/lutimes.texi (lutimes): Refer to utimensat
5038         instead.
5039         * doc/posix-functions/utime.texi (utime): Likewise.
5040         * doc/posix-functions/utimes.texi (utimes): Likewise.
5041         * doc/glibc-functions/futimes.texi (futimes): Refer to futimens
5042         instead.
5043         * doc/posix-functions/futimens.texi (futimens): Mention utimens
5044         module.
5045         * doc/posix-functions/utimensat.texi (utimensat): Likewise.
5046         Mention weakness with symlink timestamps.
5047         * doc/glibc-functions/futimesat.texi (futimesat): New file; refer
5048         to utimensat/futimens instead.
5049         * doc/gnulib.texi (Glibc sys/time.h): Include new file.
5050
5051         test-dup2: enhance test
5052         * tests/test-dup2.c (main): Also check AT_FDCWD.
5053
5054         test-stat-time: avoid more spurious failures
5055         * tests/test-stat-time.c (nap): Wait for 15ms rather than 2ms, for
5056         xfs; and avoid race if the two timestamps cross quantization edge.
5057
5058         relocatable: prefer 'file system' over 'filesystem'
5059         * m4/relocatable-lib.m4 (gl_RELOCATABLE_NOP): Use AS_HELP_STRING.
5060         (gl_RELOCATABLE_LIBRARY_BODY): Fix spelling.
5061         * doc/relocatable-maint.texi (Supporting Relocation): Likewise.
5062         * doc/relocatable.texi (Enabling Relocatability): Likewise.
5063         * lib/relocatable.c (compute_curr_prefix): Likewise.
5064
5065 2009-10-10  Jim Meyering  <meyering@redhat.com>
5066
5067         stat-time-tests: check for the usleep function
5068         * modules/stat-time-tests (configure.ac): Now that we test HAVE_USLEEP.
5069
5070 2009-10-10  Bruno Haible  <bruno@clisp.org>
5071
5072         * modules/xnanosleep: Put the Link section after the Include section.
5073
5074 2009-10-09  Eric Blake  <ebb9@byu.net>
5075
5076         dup2: work around FreeBSD 6.1 bug
5077         * m4/dup2.m4 (gl_FUNC_DUP2): Detect bug.
5078         * doc/posix-functions/dup2.texi (dup2): Document it.
5079         Reported by Nelson H. F. Beebe and Jim Meyering.
5080
5081         test-stat-time: port to buggy NFS clients
5082         * tests/test-stat-time.c (main) [W32]: Reduce ifdefs.
5083         (test_ctime): Also skip test if mtime and ctime are skewed.
5084
5085         maint: prefer 'file system' over 'filesystem'
5086         * doc/posix-functions/fstatat.texi (fstatat): Likewise.
5087         * doc/posix-functions/lstat.texi (lstat): Likewise.
5088         * lib/file-has-acl.c (file_has_acl): Likewise.
5089         * lib/fwriteerror.c [TEST]: Likewise.
5090         * tests/test-areadlink.h (test_areadlink): Likewise.
5091         * tests/test-areadlinkat-with-size.c (main): Likewise.
5092         * tests/test-areadlinkat.c (main): Likewise.
5093         * tests/test-canonicalize-lgpl.c (main): Likewise.
5094         * tests/test-canonicalize.c (main): Likewise.
5095         * tests/test-fstatat.c (main): Likewise.
5096         * tests/test-linkat.c (main): Likewise.
5097         * tests/test-lstat.h (test_lstat_func): Likewise.
5098         * tests/test-mkdir.h (test_mkdir): Likewise.
5099         * tests/test-readlink.h (test_readlink): Likewise.
5100         * tests/test-remove.c (main): Likewise.
5101         * tests/test-rename.h (test_rename): Likewise.
5102         * tests/test-renameat.c (main): Likewise.
5103         * tests/test-rmdir.h (test_rmdir_func): Likewise.
5104         * tests/test-symlink.h (test_symlink): Likewise.
5105         * tests/test-symlinkat.c (main): Likewise.
5106         * tests/test-unlink.h (test_unlink_func): Likewise.
5107         * tests/test-unlinkat.c (main): Likewise.
5108
5109         maint: make realtime library usage explicit
5110         * modules/gethrxtime (Link): Mention LIB_GETHRXTIME.
5111         * modules/gettime (Link): Mention LIB_CLOCK_GETTIME.
5112         * modules/settime (Link): Likewise.
5113         * modules/xnanosleep (Link): Mention LIB_NANOSLEEP.
5114
5115         test-stat-time: speed up execution
5116         * tests/test-stat-time.c (test_ctime) [!W32]: Avoid compiler
5117         warning on mingw.
5118         (nap): New helper function.
5119         (prepare_test): Use it to reduce sleep time.
5120         (test_mtime, test_ctime, test_birthtime): Allow for subsecond
5121         execution.
5122         * modules/stat-time-tests (configure.ac): Check for usleep.
5123
5124 2009-10-09  Jim Meyering  <meyering@redhat.com>
5125
5126         selinux-h: always use getfilecon wrappers
5127         * lib/getfilecon.c: New file.
5128         * lib/se-selinux.in.h: Use a better inclusion guard symbol name.
5129         [HAVE_SELINUX_SELINUX_H]: Include-next <selinux/selinux.h>.
5130         [!HAVE_SELINUX_SELINUX_H]: Use better parameter names.
5131         (fgetfilecon): Provide a stub.
5132         * m4/selinux-selinux-h.m4 (gl_HEADERS_SELINUX_SELINUX_H): Don't
5133         AC_SUBST SELINUX_SELINUX_H, since now we're generating that
5134         file unconditionally.
5135         When <selinux/selinux.h> is found, arrange to use wrappers.
5136         * modules/selinux-h (Files): Add getfilecon.c.
5137         (Makefile.am): Substitute include-next-related bits
5138         into the now-always-generated selinux/selinux.h file.
5139         * doc/glibc-functions/lgetfilecon.texi: New file.
5140         * doc/glibc-functions/fgetfilecon.texi: New file.
5141         * doc/glibc-functions/getfilecon.texi: New file.
5142         * doc/glibc-functions/getfilecon-desc.texi: New file.
5143         * doc/gnulib.texi (Glibc selinux/selinux.h): New section, by
5144         which to pull in the new files.
5145         * MODULES.html.sh (Misc): Add selinux-h.
5146
5147 2009-10-08  Jim Meyering  <meyering@redhat.com>
5148
5149         unistd: fix comment typo
5150         * lib/unistd.in.h (euidaccess): Fix a comment typo.
5151
5152 2009-10-08  Eric Blake  <ebb9@byu.net>
5153
5154         areadlink: use SIZE_MAX consistently
5155         * modules/areadlink (Depends-on): Add stdint.
5156         * modules/areadlink-with-size (Depends-on): Likewise.
5157         * lib/areadlink-with-size.c (includes): Drop stdio, since stdlib
5158         gives NULL; drop sys/types, since unistd gives size_t; and add
5159         stdint for SIZE_MAX.
5160         (SIZE_MAX): Rely on headers.
5161         * lib/areadlinkat-with-size.c (includes): Drop stdio, sys/types,
5162         and add stdint.
5163         * lib/areadlink.c (includes): Drop sys/types, and add stdint.
5164         (SIZE_MAX): Likewise.
5165         (INITIAL_BUF_SIZE): Turn into enum.
5166         * lib/areadlinkat.c (INITIAL_BUF_SIZE): Likewise.
5167
5168 2009-10-08  Jim Meyering  <meyering@redhat.com>
5169
5170         areadlinkat: avoid compilation failure
5171         * lib/areadlinkat.c: Include <stdint.h> for use of SIZE_MAX.
5172         Fix typo in comment.
5173
5174 2009-10-07  Eric Blake  <ebb9@byu.net>
5175
5176         areadlinkat-with-size: new module
5177         * modules/areadlinkat-with-size: New module.
5178         * lib/areadlinkat-with-size.c (areadlinkat_with_size): New file.
5179         * lib/areadlink.h (areadlinkat): Declare it.
5180         * MODULES.html.sh (File system functions): Mention it.
5181         * modules/areadlinkat-with-size-tests: New test.
5182         * tests/test-areadlinkat-with-size.c: New file.
5183
5184         xreadlinkat: new module
5185         * modules/xreadlinkat: New module.
5186         * lib/xreadlinkat.c (xreadlinkat): New file.
5187         * lib/xreadlink.h (xreadlinkat): Declare it.
5188         * MODULES.html.sh (File system functions): Mention it.
5189
5190         areadlinkat: new module
5191         * lib/at-func.c (FUNC_FAIL): New define.
5192         (AT_FUNC_NAME, VALIDATE_FLAG): Use it rather than raw -1.
5193         * modules/areadlinkat: New module.
5194         * lib/linkat.c (areadlinkat): Move...
5195         * lib/areadlinkat.c (areadlinkat): ...to new file.
5196         * lib/areadlink.h (areadlinkat): Declare it.
5197         * modules/linkat (Depends-on): Add areadlinkat.
5198         * MODULES.html.sh (File system functions): Mention it.
5199         * modules/areadlinkat-tests: New test.
5200         * tests/test-areadlinkat.c: New file.
5201
5202         areadlink, areadlink-with-size: add tests
5203         * modules/areadlink-tests: New test.
5204         * modules/areadlink-with-size-tests: Likewise.
5205         * tests/test-areadlink.h: New file.
5206         * tests/test-areadlink.c: Likewise.
5207         * tests/test-areadlink-with-size.c: Likewise.
5208
5209         maint: minor cleanups
5210         * lib/fts.c (ATTRIBUTE_UNUSED): Delete; use gnulib-guaranteed
5211         _UNUSED_PARAMETER_ instead.
5212         * lib/getdate.y (ATTRIBUTE_UNUSED): Likewise.
5213         * lib/utimens.c (ATTRIBUTE_UNUSED): Likewise.
5214         * modules/linkat-tests (Files): Distribute test-link.h.
5215
5216         openat, utimens: whitespace cleanup
5217         * lib/openat.c: Prefer space throughout, rather than mix of 8
5218         spaces vs. tabs.
5219         * lib/at-func.c: Likewise.
5220         * lib/utimens.c: Likewise.
5221
5222         openat: avoid using wrong fd
5223         * lib/openat.c (openat_permissive): Reject user's fd if saving the
5224         working directory chooses same fd.
5225         * lib/at-func.c (AT_FUNC_NAME): Likewise.
5226
5227         mkdir, mkdirat: fix cygwin 1.5.x bug
5228         * lib/mkdir.c (rpl_mkdir) [FUNC_MKDIR_DOT_BUG]: Work around bug.
5229         * m4/mkdir-slash.m4 (gl_FUNC_MKDIR_TRAILING_SLASH): Move...
5230         * m4/mkdir.m4 (gl_FUNC_MKDIR): ...here, and add check for cygwin
5231         bug.
5232         (gl_PREREQ_MKDIR): Delete unused macro.
5233         * modules/mkdir (Files): Track file rename.
5234         (configure.ac): Update macro name.
5235         * modules/openat (Depends-on): Add mkdir.
5236         * doc/posix-functions/mkdir.texi (mkdir): Document the bug.
5237
5238         mkdir, mkdirat: add tests
5239         * modules/mkdir-tests: New test.
5240         * tests/test-mkdir.h: New file.
5241         * tests/test-mkdir.c: Likewise.
5242         * tests/test-mkdirat.c: Likewise.
5243         * modules/openat-tests (Files): Add new files.
5244         (Makefile.am): Run new test.
5245
5246 2009-10-06  Eric Blake  <ebb9@byu.net>
5247
5248         doc: tweak *at function documentation
5249         * doc/posix-functions/faccessat.texi (faccessat): Mention
5250         known issue with replacement.
5251         * doc/posix-functions/fchdir.texi (fchdir): Likewise.
5252         * doc/posix-functions/linkat.texi (linkat): Likewise.
5253         * doc/posix-functions/mkfifoat.texi (mkfifoat): Likewise.
5254         * doc/posix-functions/mknodat.texi (mknodat): Likewise.
5255         * doc/posix-functions/readlinkat.texi (readlinkat): Likewise.
5256         * doc/posix-functions/renameat.texi (renameat): Likewise.
5257         * doc/posix-functions/symlinkat.texi (symlinkat): Likewise.
5258
5259         openat: fix GNU/Hurd bug in unlinkat
5260         * m4/openat.m4 (gl_FUNC_OPENAT): Replace unlinkat if unlink is
5261         broken.
5262         * doc/posix-functions/unlink.texi (unlink): Document this.
5263         * doc/posix-functions/unlinkat.texi (unlinkat): Likewise.
5264
5265         fdopendir: fix GNU/Hurd bug
5266         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR): Check for Hurd bug in
5267         allowing non-directory fds.
5268         * lib/fdopendir.c (rpl_fdopendir): Work around it.
5269         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): New witness.
5270         * modules/dirent (Makefile.am): Substitute it.
5271         * lib/dirent.in.h (fdopendir): Declare replacement.
5272         * doc/posix-functions/fdopendir.texi (fdopendir): Document this.
5273         * tests/test-fdopendir.c (main): Test something other than
5274         /dev/null, since on Hurd that behaves like a directory.
5275
5276         test-symlink: port to GNU/Hurd
5277         * tests/test-symlink.h (test_symlink): Relax expected errno.
5278
5279         doc: tweak more cygwin information
5280         * doc/glibc-headers/getopt.texi (getopt.h): Cygwin 1.7 getopt is
5281         now compatible with glibc.
5282         * doc/posix-functions/getopt.texi (getopt): Likewise.
5283
5284         getopt-gnu: add another test
5285         * tests/test-getopt_long.h (test_getopt_long_posix): New test, to
5286         guarantee behavior relied on by m4.
5287         * tests/test-getopt.c (main): Use it.
5288         * modules/getopt-posix-tests (Depends-on): Add setenv.
5289         See http://lists.gnu.org/archive/html/bug-m4/2006-09/msg00028.html.
5290
5291         getopt: fix compilation on darwin
5292         * lib/getopt.in.h (includes): Leave breadcrumbs during system
5293         include.
5294         * lib/unistd.in.h (getopt): Use them to avoid recursive include.
5295         Reported by Ludovic Courtès.
5296
5297 2009-10-06  Bruno Haible  <bruno@clisp.org>
5298
5299         * modules/size_max (Description): Discourage its use.
5300         Reported by Simon Josefsson.
5301
5302 2009-10-06  Jim Meyering  <meyering@redhat.com>
5303
5304         linkat: avoid compilation failure
5305         * lib/linkat.c: Include <stdint.h> for use of SIZE_MAX.
5306
5307 2009-10-05  Eric Blake  <ebb9@byu.net>
5308
5309         linkat: support Linux 2.6.17
5310         * m4/linkat.m4 (gl_FUNC_LINKAT): Default to always replacing
5311         linkat on Linux, but allow cache variable override.
5312         * lib/linkat.c (rpl_linkat): Define override.
5313         * modules/linkat (Depends-on): Add symlinkat.
5314         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add new default.
5315         * modules/unistd (Makefile.am): Substitute it.
5316         * lib/unistd.in.h (linkat): Declare replacement.
5317         Reported by Pádraig Brady.
5318
5319         quotearg: port test to systems with C.UTF-8 locale
5320         * tests/test-quotearg.c (struct result_strings): Add another
5321         member, differentiating between C.ASCII and C.UTF-8 handling.
5322         (compare_strings): Add parameter.
5323         (main): Adjust all callers.
5324
5325         getopt: avoid clash with FreeBSD _getopt_internal
5326         * lib/getopt.in.h (_getopt_internal): Override the name.
5327         * lib/getopt_int.h (includes): Pick up any overrides.
5328         Reported by Reuben Thomas.
5329
5330         hash: allow C89 compilation
5331         * lib/hash.c (check_tuning): Move declaration before statement.
5332         Reported by Reuben Thomas.
5333
5334 2009-10-05  Karl Berry  <karl@gnu.org>
5335
5336         * doc/gnulib.texi: @include execvpe.texi, missing for several days.
5337
5338 2009-10-04  Paolo Bonzini  <bonzini@gnu.org>
5339             Bruno Haible  <bruno@clisp.org>
5340
5341         * lib/uname.c (uname): Use a table-driven algorithm to compute
5342         Windows NT versions.
5343
5344 2009-10-04  Bruno Haible  <bruno@clisp.org>
5345
5346         * lib/progname.c (set_program_name): Also remove the "lt-" prefix from
5347         program_invocation_short_name.
5348         * modules/progname (configure.ac): Test for presence of
5349         program_invocation_short_name.
5350         Reported by Sergey Poznyakoff <gray@gnu.org.ua>.
5351
5352 2009-10-04  Bruno Haible  <bruno@clisp.org>
5353
5354         * lib/progname.c (set_program_name): Fix comment.
5355         Reported by Jim Meyering.
5356
5357 2009-10-03  Paolo Bonzini  <bonzini@gnu.org>
5358             Bruno Haible  <bruno@clisp.org>
5359
5360         * lib/uname.c: Include <string.h>.
5361         (uname): Do only one call to GetVersionEx in the common case.
5362
5363 2009-10-03  Paolo Bonzini  <bonzini@gnu.org>
5364             Bruno Haible  <bruno@clisp.org>
5365
5366         * lib/uname.c (VER_PLATFORM_WIN32_CE, PROCESSOR_ARCHITECTURE_AMD64,
5367         PROCESSOR_ARCHITECTURE_IA32_ON_WIN64): Define fallbacks.
5368         (uname): Add support for Windows CE and various non-x86 CPU types.
5369
5370 2009-10-03  Bruno Haible  <bruno@clisp.org>
5371
5372         * gnulib-tool (func_create_testdir): Conditionally emit AM_PROG_CC_C_O
5373         invocation to tests/configure.ac.
5374         Reported by Ian Beckwith <ianb@erislabs.net>.
5375
5376 2009-10-02  Eric Blake  <ebb9@byu.net>
5377
5378         fchdir: avoid compiler warning
5379         * lib/fchdir.c (canonicalize_file_name)
5380         [!HAVE_CANONICALIZE_FILE_NAME]: Avoid compiler warning on mingw.
5381
5382         test-open: support mingw errno values
5383         * tests/test-open.h (test_open): Relax test.
5384         * tests/test-fopen.h (test_fopen): Likewise.
5385         * tests/test-openat-safer.c (main): Likewise.
5386
5387         open: fix opening directory on mingw
5388         * lib/open.c (open) [REPLACE_OPEN_DIRECTORY]: Correct typo.
5389
5390         test-open: on GNU/Hurd, /dev/null is a directory
5391         * tests/test-fopen.h (main): Rename...
5392         (test_fopen): ...to this.  Use a guaranteed non-directory when
5393         confirming open behavior on trailing slash.
5394         * tests/test-openat-safer.c (main): Likewise.
5395         * tests/test-open.h (main): Likewise....
5396         (test_open): ...to this.
5397         * tests/test-fopen.c (main): Adjust caller.
5398         * tests/test-fopen-safer.c (main): Likewise.
5399         * tests/test-open.c (main): Likewise.
5400         * tests/test-fcntl-safer.c (main): Likewise.
5401         Reported by Samuel Thibault.
5402
5403         rename, fchdir: don't ignore chdir failure
5404         * lib/fchdir.c (get_name): Abort on unexpected chdir failure.
5405         * lib/rename.c (rpl_rename) [W32]: Likewise.
5406         (rpl_rename) [RENAME_DEST_EXISTS_BUG]: Avoid one case of losing
5407         an empty destination directory if source cannot be renamed,
5408         although there is still possibility for failure.
5409         * doc/posix-functions/rename.texi (rename): Document the race.
5410         Reported by Jim Meyering.
5411
5412         maint: cleanup whitespace in recent commits
5413         * lib/rename.c (rpl_rename): Remove tabs.
5414         * tests/test-link.h (test_link): Likewise.
5415         * lib/fchdir.c (get_name): Likewise.
5416         Reported by Jim Meyering.
5417
5418 2009-10-02  Ben Pfaff  <blp@gnu.org>
5419
5420         relocatable-prog-wrapper: Add missing dependency on
5421         double-slash-root.
5422         * modules/relocatable-prog-wrapper: Add dependency.
5423         Reported by Ian Beckwith <ianb@erislabs.net>.
5424
5425 2009-10-02  Eric Blake  <ebb9@byu.net>
5426
5427         renameat: fix Solaris bugs
5428         * m4/renameat.m4 (gl_FUNC_RENAMEAT): Replace renameat if rename
5429         needed fixing.
5430         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): New witness.
5431         * modules/stdio (Makefile.am): Substitute it.
5432         * lib/stdio.in.h (renameat): Declare replacement.
5433         * lib/renameat.c (rpl_renameat): Implement fix.
5434
5435         renameat: new module
5436         * modules/renameat: New file.
5437         * lib/renameat.c (renameat): Likewise.
5438         * m4/renameat.m4 (gl_FUNC_RENAMEAT): Likewise.
5439         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Add witnesses.
5440         * modules/stdio (Makefile.am): Substitute them.
5441         * lib/stdio.in.h (renameat): Declare it.
5442         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
5443         * doc/posix-functions/renameat.texi (renameat): Likewise.
5444         * modules/renameat-tests: New test.
5445         * tests/test-renameat.c: Likewise.
5446
5447         rename: fix mingw bugs
5448         * lib/rename.c (rpl_rename) [W32]: Fix trailing slash and
5449         directory overwrite bugs.
5450
5451         rename: fix another cygwin 1.5 bug
5452         * m4/rename.m4 (gl_FUNC_RENAME): Split cygwin bugs into two
5453         checks.
5454         * lib/rename.c (rpl_rename): Don't penalize NetBSD with
5455         unnecessary cygwin workarounds.  Also work around bug with moving
5456         full directory onto an empty one.
5457         * modules/rename (Depends-on): Add canonicalize-lgpl, rmdir.
5458
5459         rename-dest-slash: merge into rename module
5460         * modules/rename-dest-slash (Status): Mark obsolete.
5461         (Depends-on): Add rename.
5462         (Files): Let rename do it all.
5463         * m4/rename.m4 (gl_FUNC_RENAME): Also test for NetBSD bugs,
5464         subsuming the test from gl_FUNC_RENAME_TRAILING_DEST_SLASH...
5465         * m4/rename-dest-slash.m4: ...so this file can be deleted.
5466         * lib/rename-dest-slash.c (rpl_rename_dest_slash): Delete.
5467         * lib/rename.c (rpl_rename): Update comments.
5468
5469         rename: fix cygwin 1.5.x bugs
5470         * m4/rename.m4 (gl_FUNC_RENAME): Detect cygwin bugs.
5471         * lib/rename.c (rpl_rename): Work around them.
5472         * modules/rename (Depends-on): Add same-inode.
5473
5474         rename: fix Solaris 10 bug
5475         * m4/rename.m4 (gl_FUNC_RENAME): Detect Solaris bug.
5476         * lib/rename.c (rpl_rename): Don't cripple POSIX behavior if this
5477         was the only bug.
5478
5479         rename: fix Solaris 9 bug
5480         * lib/rename.c (rpl_rename): Rewrite to recognize trailing slash
5481         on non-directory.  Avoid calling exit.
5482         * modules/rename (Depends-on): Drop xalloc; add lstat, stdbool,
5483         strdup.
5484         * modules/rename-tests (Depends-on): Drop lstat.
5485         * m4/rename.m4 (gl_FUNC_RENAME): Detect Solaris bug.
5486         (gl_PREREQ_RENAME): Delete unused macro.
5487
5488         rename-dest-slash: fix NetBSD bug
5489         * lib/rename-dest-slash.c (rpl_rename_dest_slash): Detect hard
5490         links.
5491         * modules/rename-dest-slash (Depends-on): Add same-inode.
5492
5493         rename-tests: new test, exposes several platform bugs
5494         * modules/rename-tests: New file.
5495         * tests/test-rename.h: Likewise.
5496         * tests/test-rename.c: Likewise.
5497         * doc/posix-functions/rename.texi (rename): Improve documentation,
5498         including bugs that will eventually be fixed in gnulib.
5499
5500 2009-10-02  Paolo Bonzini  <bonzini@gnu.org>
5501
5502         * lib/uname.c: Include <stdlib.h>
5503         (uname): Assume version info is available.
5504
5505 2009-10-02  Jim Meyering  <meyering@redhat.com>
5506
5507         gnu-web-doc-update: correct --help output
5508         * build-aux/gnu-web-doc-update: Make --help output relevant.
5509
5510         gnu-web-doc-update: add standard options
5511         * build-aux/gnu-web-doc-update: Add --help, --version, etc.
5512
5513         gnu-web-doc-update: New module.
5514         Use this script to automatically update the on-line web documentation
5515         for your GNU project at http://www.gnu.org/software/$pkg/manual/
5516         * modules/gnu-web-doc-update: New file, from coreutils.
5517         * build-aux/gnu-web-doc-update: New script.
5518
5519 2009-10-01  Paolo Bonzini  <bonzini@gnu.org>
5520
5521         link: LoadLibrary is not needed.
5522         * lib/link.c: Use GetModuleHandle.
5523
5524 2009-10-01  Eric Blake  <ebb9@byu.net>
5525
5526         getopt: bump serial number
5527         * m4/getopt.m4: Increment serial number, to account for 2009-09-24
5528         change.
5529
5530         tests: tighten link, rmdir, and remove tests
5531         * tests/test-link.h (includes): No need to use <config.h> here.
5532         Clean up if directory hard link was created, otherwise test for
5533         trailing '.'.
5534         * tests/test-linkat.c (main): Simplify.
5535         * tests/test-remove.c (main): Enhance test for trailing '.'.
5536         * tests/test-rmdir.h (test_rmdir_func): Likewise.
5537
5538 2009-10-01  Jim Meyering  <meyering@redhat.com>
5539
5540         maint.mk: requiring "make major" was annoying, for a "minor" release.
5541         What is intended is "stable", to contrast with alpha and beta,
5542         so require "make stable", not "make major".
5543         * build-aux/announce-gen (%valid_release_types): s/major/stable/.
5544         (get_tool_versions): Likewise.
5545         * top/maint.mk (ALL_RECURSIVE_TARGETS): s/major/stable/
5546
5547 2009-09-30  Ben Pfaff  <blp@gnu.org>
5548
5549         Fix broken build of replacement for Windows tmpfile().
5550         * lib/tmpfile.c (tmpfile): Fix call to gen_tempname() to provide
5551         flags argument added along with the 'mkostemp' module.
5552
5553 2009-09-28  Bruno Haible  <bruno@clisp.org>
5554
5555         Avoid identifier clash with POSIX function 'remove' defined as a macro.
5556         * lib/gl_list.h (struct gl_list_implementation): Rename field 'remove'
5557         to 'remove_elt'.
5558         (gl_list_remove): Update.
5559         * lib/gl_list.c (gl_list_remove): Update.
5560         * lib/gl_oset.h (struct gl_oset_implementation): Rename field 'remove'
5561         to 'remove_elt'.
5562         (gl_oset_remove): Update.
5563         * lib/gl_list.c (gl_oset_remove): Update.
5564         Reported by Eric Blake.
5565
5566 2009-09-28  Eric Blake  <ebb9@byu.net>
5567
5568         doc: mention yet more cygwin 1.7 status
5569         * doc/posix-functions/fexecve.texi (fexecve): Now implemented in
5570         cygwin.
5571         * doc/glibc-functions/execvpe.texi (execvpe): New file.
5572         * doc/gnulib.texi (Glibc unistd.h): Mention it.
5573
5574         argp: fix test failure
5575         * lib/argp-help.c (hol_entry_cmp): Don't use _tolower on values
5576         that are not upper-case.  Pass correct range to tolower.
5577
5578 2009-09-27  Jim Meyering  <meyering@redhat.com>
5579
5580         test-yesno: work around sparc-dash here-document infelicity
5581         Without this change, the literal \177 byte in a here document
5582         would make dash 0.5.5.1-3 access uninitialized memory.
5583         * tests/test-yesno.sh: Don't put the \177 byte in the here document.
5584         Instead, use a marker, "@", and filter through tr to create the desired
5585         contents.  Reported as <http://bugs.debian.org/548493> by Kurt Roeckx.
5586
5587 2009-09-27  Bruno Haible  <bruno@clisp.org>
5588
5589         Disable untested support for new flavours of ACLs on AIX.
5590         * lib/file-has-acl.c (file_has_acl): Mark newer AIX code as work in
5591         progress.
5592         * lib/set-mode-acl.c (qset_acl): Likewise.
5593
5594 2008-12-07  Bruno Haible  <bruno@clisp.org>
5595
5596         Add support for new flavours of ACLs on AIX. (Untested.)
5597         * lib/file-has-acl.c [AIX] (acl_nfs4_nontrivial): New function.
5598         (file_has_acl): Add support for newer AIX.
5599         * lib/set-mode-acl.c (qset_acl): Likewise.
5600         * tests/test-sameacls.c (main): Fix use of aclx_get function. Hint by
5601         Rainer Tammer <tammer@tammer.net>.
5602
5603 2009-09-26  Eric Blake  <ebb9@byu.net>
5604
5605         argp: fix compilation of getopt
5606         * lib/getopt.in.h (includes): Use different guard than glibc.
5607         Reported by Sergey Poznyakoff.
5608
5609         doc: mention more cygwin 1.7 status
5610         * doc/posix-functions/access.texi (access): Mention cygwin 1.5
5611         bug.
5612         * doc/posix-functions/execl.texi (execl): Likewise.
5613         * doc/posix-functions/execle.texi (execle): Likewise.
5614         * doc/posix-functions/execlp.texi (execlp): Likewise.
5615         * doc/posix-functions/execv.texi (execv): Likewise.
5616         * doc/posix-functions/execve.texi (execve): Likewise.
5617         * doc/posix-functions/execvp.texi (execvp): Likewise.
5618         * doc/glibc-functions/canonicalize_file_name.texi
5619         (canonicalize_file_name): Cygwin 1.7 now provides this.
5620         * doc/glibc-functions/euidaccess.texi (euidaccess): Likewise.
5621         * doc/posix-functions/fchmodat.texi (fchmodat): Mention limitation
5622         on AT_SYMLINK_NOFOLLOW.
5623
5624 2009-09-24  Eric Blake  <ebb9@byu.net>
5625
5626         test-linkat: make test more robust
5627         * tests/test-linkat.c (main): Avoid collision with EEXIST.
5628
5629         getopt: fix inclusion guards for cygwin
5630         * modules/getopt-posix (Depends-on): Add include-next.
5631         (Makefile.am): Substitute more items in replacement header.
5632         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Also check for native
5633         <getopt.h>.
5634         * lib/getopt.in.h (includes): Use split inclusion guard, and
5635         prefer <getopt.h> over include <unistd.h> when one is present.
5636         (option): Also override name of 'struct option'.
5637
5638         same-inode: revert prior change; it is not yet ready
5639         * NEWS: Undo mention of this change.
5640         * lib/same-inode.h (same-inode.h): Undo tri-state change.
5641         * lib/cycle-check.h (CYCLE_CHECK_REFLECT_CHDIR_UP): Update caller.
5642         * lib/cycle-check.c (cycle_check): Likewise.
5643         * lib/same.c (same_name): Likewise.
5644         * lib/at-func2.c (at_func2): Likewise.
5645
5646 2009-09-23  Eric Blake  <ebb9@byu.net>
5647
5648         linkat: new module
5649         * modules/linkat: New file.
5650         * lib/at-func2.c (at_func2): Likewise.
5651         * lib/linkat.c (linkat): Likewise.
5652         * m4/linkat.m4 (gl_FUNC_LINKAT): Likewise.
5653         * lib/openat-priv.h (at_func2): Add declaration.
5654         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witnesses.
5655         * modules/unistd (Makefile.am): Substitute them.
5656         * lib/unistd.in.h (linkat): Declare it.
5657         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
5658         * doc/posix-functions/linkat.texi (linkat): Likewise.
5659         * doc/posix-functions/link.texi (link): Tweak wording.
5660         * tests/test-link.c (main): Move guts...
5661         * tests/test-link.h (test_link): ...into new file.
5662         * modules/linkat-tests: New test.
5663         * tests/test-linkat.c: Likewise.
5664         * modules/link-tests (Files): Ship new file.
5665         (Depends-on): Add stdbool.
5666
5667         dirname: add library-safe mdir_name
5668         * lib/dirname.h (mdir_name): New prototype.
5669         * lib/dirname.c (dir_name): Move guts...
5670         (mdir_name): ...to new function that avoids xalloc_die.
5671
5672         fchdir: another mingw fix
5673         * modules/fchdir (Depends-on): Drop canonicalize-lgpl.
5674         * lib/fchdir.c (get_name): New helper method; skips canonicalize
5675         on mingw (where it has not yet been ported), and make it optional
5676         elsewhere.
5677         (_gl_register_fd): Use it.
5678
5679         same-inode: make SAME_INODE tri-state, to port to mingw
5680         * NEWS: Mention this change.
5681         * lib/same-inode.h (same-inode.h): Recognize mingw limitation of
5682         st_ino always being 0.
5683         * lib/cycle-check.h (CYCLE_CHECK_REFLECT_CHDIR_UP): Update caller.
5684         * lib/cycle-check.c (cycle_check): Likewise.
5685         * lib/same.c (same_name): Likewise.
5686
5687         lstat: avoid mingw compilation error
5688         * m4/lstat.m4 (gl_FUNC_LSTAT): Avoid duplicate calls to
5689         AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK, and deal with missing
5690         lstat ourselves.
5691         * lib/lstat.c [!HAVE_LSTAT]: Do nothing if <sys/stat.h> override
5692         was adequate.
5693         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Let lstat module handle
5694         the checks for lstat.
5695         (gl_SYS_STAT_H_DEFAULTS): Set default for HAVE_LSTAT.
5696
5697         link: fix test failure on Solaris 9
5698         * lib/link.c (rpl_link): Don't assume link will catch bogus
5699         trailing slash on source.
5700
5701         test-symlinkat: enhance test
5702         * tests/test-readlink.c (main): Move guts...
5703         * tests/test-readlink.h (test_readlink): ...into new file.
5704         * tests/test-symlink.c (main): Move guts...
5705         * tests/test-symlink.h (test_symlink): ...into new file.
5706         * tests/test-symlinkat.c (main): Use new files for further
5707         coverage.
5708         (do_symlink, do_readlink): New helper functions.
5709         * modules/symlink-tests (Files): Ship new file.
5710         (Depends-on): Add stdbool.
5711         * modules/readlink-tests (Files): Ship new file.
5712         (Depends-on): Add stdbool.
5713         * modules/symlinkat-tests (Files): Use new files.
5714
5715 2009-09-23  Eric Blake  <ebb9@byu.net>
5716
5717         readlink: document portability issue with symlink length
5718         * doc/posix-functions/lstat.texi (lstat): Mention that some file
5719         systems have bogus st_size on symlinks, and mention the
5720         areadlink-with-size module.
5721         * doc/posix-functions/fstatat.texi (fstatat): Likewise.
5722         * doc/posix-functions/readlink.texi (readlink): Mention the
5723         areadlink module, and ERANGE failure.
5724         * doc/posix-functions/readlinkat.texi (readlinkat): Likewise.
5725         * tests/test-readlink.c (main): Relax test for AIX, HP-UX.
5726
5727         readlink: fix Solaris 9 bug with trailing slash
5728         * lib/readlink.c (rpl_readlink): Work around trailing slash bug.
5729         * m4/readlink.m4 (gl_FUNC_READLINK): Detect the bug.
5730         * doc/posix-functions/readlink.texi (readlink): Document this.
5731         * modules/readlink-tests: New test.
5732         * tests/test-readlink.c: Likewise.
5733
5734         readlink: fix cygwin 1.5.x bug with return type
5735         * m4/readlink.m4 (gl_FUNC_READLINK): Require correct signature.
5736         * lib/unistd.in.h (readlink): Use ssize_t.
5737         * lib/readlink.c (readlink): Likewise.
5738         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witness.
5739         * modules/unistd (Makefile.am): Substitute it.
5740         * lib/unistd.in.h (readlink): Declare replacement.
5741         * doc/posix-functions/readlink.texi (readlink): Document this.
5742
5743         symlink: use throughout gnulib
5744         * m4/symlinkat.m4 (gl_FUNC_SYMLINKAT): Omit symlink check.
5745         * lib/symlinkat.c (symlinkat) [!HAVE_SYMLINK]: Document why
5746         symlink is not used.
5747         * modules/symlinkat (Depends-on): Add symlink.
5748         * modules/canonicalize-lgpl-tests (Depends-on): Likewise.
5749         * modules/canonicalize-tests (Depends-on): Likewise.
5750         * modules/lstat-tests (Depends-on): Likewise.
5751         * modules/openat-tests (Depends-on): Likewise.
5752         * modules/remove-tests (Depends-on): Likewise.
5753         * modules/rmdir-tests (Depends-on): Likewise.
5754         * modules/unlink-tests (Depends-on): Likewise.
5755         * tests/test-canonicalize-lgpl.c (symlink): Delete stub.
5756         * tests/test-canonicalize.c (symlink): Likewise.
5757         * tests/test-fstatat.c (symlink): Likewise.
5758         * tests/test-lstat.c (symlink): Likewise.
5759         * tests/test-remove.c (symlink): Likewise.
5760         * tests/test-rmdir.c (symlink): Likewise.
5761         * tests/test-unlink.c (symlink): Likewise.
5762         * tests/test-unlinkat.c (symlink): Likewise.
5763
5764         symlink: new module, for Solaris 9 bug
5765         * modules/symlink: New file.
5766         * m4/symlink.m4 (gl_FUNC_SYMLINK): Likewise.
5767         * lib/symlink.c: Likewise.
5768         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add defaults.
5769         * modules/unistd (Makefile.am): Substitute them.
5770         * lib/unistd.in.h (symlink): Declare replacement.
5771         * MODULES.html.sh (File system functions): Mention it.
5772         * doc/posix-functions/symlink.texi (symlink): Likewise.
5773         * modules/symlink-tests: New test.
5774         * tests/test-symlink.c: Likewise.
5775
5776 2009-09-23  Bruno Haible  <bruno@clisp.org>
5777
5778         * gnulib-tool (func_import): Add 'link-warning' to testsrelated_modules
5779         when needed.
5780         Test case: gnulib-tool --import --with-tests atexit inttypes.
5781         Reported by Pauli Miettinen <pauli.miettinen@cs.helsinki.fi>.
5782
5783 2009-09-23  Bruno Haible  <bruno@clisp.org>
5784
5785         * gnulib-tool (func_emit_tests_Makefile_am): Set uses_subdirs in a
5786         subcommand, not in a subshell.
5787
5788 2009-09-22  Eric Blake  <ebb9@byu.net>
5789
5790         unistd: sort replacement declarations
5791         * lib/unistd.in.h: Sort declarations.
5792
5793         open, openat: minor optimization
5794         * lib/open.c (open): If open succeeded, len is non-zero.
5795         * lib/openat.c (rpl_openat): Likewise.
5796
5797         link-follow: ensure correct result
5798         * m4/fcntl_h.m4 (gl_FCNTL_H): Clean up temporary file.
5799         * m4/link-follow.m4 (gl_FUNC_LINK_FOLLOWS_SYMLINK): Likewise, and
5800         distinguish between possible failures.
5801
5802 2009-09-21  Eric Blake  <ebb9@byu.net>
5803
5804         fts: avoid compiler warning
5805         * lib/fts.c (dirent_inode_sort_may_be_useful)
5806         (leaf_optimization_applies) [!__linux__]: Mark unused parameters.
5807
5808 2009-09-19  Bruno Haible  <bruno@clisp.org>
5809
5810         * lib/progreloc.c (canonicalize_file_name): New declaration.
5811
5812 2009-09-19  Eric Blake  <ebb9@byu.net>
5813
5814         link: fix quoting
5815         * m4/link.m4 (gl_FUNC_LINK): Fix shell quoting.
5816
5817         openat: fix openat bugs on Solaris 9
5818         * lib/openat.c (rpl_openat): Work around Solaris 9 bug.
5819         * m4/openat.m4 (gl_FUNC_OPENAT): Also replace openat on Solaris.
5820         * modules/openat (Depends-on): Add open.
5821         * m4/fcntl_h.m4 (gl_FCNTL_H_DEFAULTS): Provide new default.
5822         * modules/fcntl-h (Makefile.am): Substitute it.
5823         * lib/fcntl.in.h (openat): Declare replacement.
5824         * doc/posix-functions/openat.texi (openat): Document this.
5825
5826         openat: move fstatat and unlinkat into correct files
5827         * m4/openat.m4 (gl_FUNC_OPENAT): Adjust which files will be
5828         compiled.
5829         * lib/openat.c (fstatat, unlinkat): Move...
5830         * lib/fstatat.c (fstatat): ...into correct files.
5831         * lib/unlinkat.c (unlinkat): Likewise.
5832
5833         openat: fix unlinkat bugs on Solaris 9
5834         * lib/unlinkat.c (unlinkat): New file.
5835         * modules/openat (Depends-on): Add unlink.
5836         (Files): Distribute it.
5837         * m4/openat.m4 (gl_FUNC_OPENAT): Mark unlinkat for replacement if
5838         trailing slash behavior is broken.
5839         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witness.
5840         * modules/unistd (Makefile.am): Substitute it.
5841         * lib/unistd.in.h (unlinkat): Declare replacement.
5842         * doc/posix-functions/unlinkat.texi (unlinkat): Document this.
5843
5844         openat: fix fstatat bugs on Solaris 9
5845         * lib/fstatat.c (rpl_fstatat): Copy recent fixes from lstat and
5846         stat.
5847         * doc/posix-functions/fstatat.texi (fstatat): Document this.
5848
5849         test-unlinkat: enhance test, to expose Solaris 9 bug
5850         * tests/test-unlink.c (main): Factor guts...
5851         * tests/test-unlink.h (test_rmdir_func): ...into new file.
5852         * tests/test-rmdir.h (test_rmdir_func): Add parameter.
5853         * tests/test-rmdir.c (main): Adjust caller.
5854         * tests/test-unlinkat.c (main): Likewise.  Add unlink tests.
5855         (unlinker): New helper function.
5856         (rmdirat): Enhance check.
5857         * modules/rmdir-tests (Depends-on): Add stdbool.
5858         * modules/unlink-tests (Depends-on): Likewise.
5859         (Files): Add test-unlink.h.
5860         * modules/openat-tests (Files): Likewise.
5861         (Depends-on): Add unlinkdir.
5862
5863         test-fstatat: new test, to expose Solaris 9 bugs
5864         * tests/test-stat.c (main): Factor guts...
5865         * tests/test-stat.h (test_stat_func): ...into new file.
5866         * tests/test-lstat.c (main): Factor guts...
5867         * tests/test-lstat.h (test_lstat_func): ...into new file.
5868         * tests/test-fstatat.c: New file.
5869         * modules/stat-tests (Files): Add test-stat.h.
5870         * modules/lstat-tests (Files): Add test-lstat.h.
5871         (Depends-on): Add stdbool.
5872         * modules/openat-tests (Depends-on): Add pathmax.
5873         (Files): Add test-lstat.h, test-stat.h, test-fstatat.c.
5874         (Makefile.am): Run new test.
5875
5876         remove: new module, for mingw and Solaris 9 bugs
5877         * modules/remove: New file.
5878         * lib/remove.c: Likewise.
5879         * m4/remove.m4 (gl_FUNC_REMOVE): Likewise.
5880         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Add witnesses.
5881         * modules/stdio (Makefile.am): Use them.
5882         * lib/stdio.in.h (remove): Declare replacement.
5883         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
5884         * doc/posix-functions/remove.texi (remove): Likewise.
5885         * modules/remove-tests: New test.
5886         * tests/test-remove.c: Likewise.
5887
5888         unlink: new module, for Solaris 9 bug
5889         * modules/unlink: New file.
5890         * lib/unlink.c: Likewise.
5891         * m4/unlink.m4 (gl_FUNC_UNLINK): Likewise.
5892         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witnesses.
5893         * modules/unistd (Makefile.am): Use them.
5894         * lib/unistd.in.h (stat): Declare replacement.
5895         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
5896         * doc/posix-functions/unlink.texi (unlink): Likewise.
5897         * modules/unlink-tests: New test.
5898         * tests/test-unlink.c: Likewise.
5899
5900         lstat: fix Solaris 9 bug
5901         * lib/lstat.c (lstat): Also check for trailing slash on
5902         non-symlink, non-directories.  Use stat module to simplify logic.
5903         * doc/posix-functions/lstat.texi (lstat): Document it.
5904         * modules/lstat-tests (Depends-on): Add errno, same-inode.
5905         (configure.ac): Check for symlink.
5906         * tests/test-lstat.c (main): Add more tests.
5907
5908         stat: add as dependency to other modules
5909         * modules/chown (Depends-on): Add stat.
5910         * modules/euidaccess (Depends-on): Likewise.
5911         * modules/fchdir (Depends-on): Likewise.
5912         * modules/isdir (Depends-on): Likewise.
5913         * modules/link (Depends-on): Likewise.
5914         * modules/lstat (Depends-on): Likewise.
5915         * modules/mkdir-p (Depends-on): Likewise.
5916         * modules/modechange (Depends-on): Likewise.
5917         * modules/open (Depends-on): Likewise.
5918         * modules/readlink (Depends-on): Likewise.
5919         * modules/same (Depends-on): Likewise.
5920
5921         stat: fix Solaris 9 bug
5922         * m4/stat.m4 (gl_FUNC_STAT): Detect Solaris 9 bug with trailing
5923         slash.
5924         * lib/stat.c (rpl_stat): Work around it.
5925         * doc/posix-functions/stat.texi (stat): Update documentation.
5926
5927         stat: new module, for mingw bug
5928         * modules/stat: New file.
5929         * lib/stat.c: Likewise.
5930         * m4/stat.m4 (gl_FUNC_STAT): Likewise.
5931         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Add witnesses.
5932         * modules/sys_stat (Makefile.am): Use them.
5933         * lib/sys_stat.in.h (stat): Declare replacement.
5934         * lib/openat.c (fstatat): Deal with lstat and stat being function
5935         macros.
5936         * modules/openat (Depends-on): Add inline.
5937         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
5938         * doc/posix-functions/stat.texi (stat): Likewise.
5939         * modules/stat-tests: New test.
5940         * tests/test-stat.c: Likewise.
5941
5942 2009-09-19  Jim Meyering  <meyering@redhat.com>
5943
5944         syntax-check: detect unnecessary inclusion of canonicalize.h
5945         * top/maint.mk (sc_prohibit_canonicalize_without_use): New rule.
5946
5947 2009-09-19  Eric Blake  <ebb9@byu.net>
5948
5949         canonicalize-lgpl: adjust clients to use correct header
5950         * m4/canonicalize.m4 (gl_FUNC_CANONICALIZE_FILENAME_MODE)
5951         (gl_CANONICALIZE_LGPL): Use correct shell quoting.
5952         * modules/relocatable-prog-wrapper (Files): Drop canonicalize.h.
5953         * lib/fchdir.c (includes): Use <stdlib.h>, not "canonicalize.h".
5954         * lib/progreloc.c (includes): Likewise.
5955
5956 2009-09-19  Jim Meyering  <meyering@redhat.com>
5957
5958         test-posixtm.c: correct a comment
5959         * tests/test-posixtm.c: Correct first-line comment.
5960         Spotted by Eric Blake.
5961
5962 2009-09-16  Jim Meyering  <meyering@redhat.com>
5963
5964         posixtm-tests: make T const-correct; add a test case
5965         * tests/test-posixtm.c (T): Declare const.
5966         Add a test for -(2^31+1).
5967         Remove useless can-succeed-only-in-2002 test.
5968
5969         posixtm-tests: adjust the sole failing test
5970         * tests/test-posixtm.c: Correct 0000-01-01 00:00:00 test so that
5971         expected output matches what mktime now produces.  Cross-checked via
5972         erlang's calendar:datetime_to_gregorian_seconds({{1970,1,1},{0,0,0}})
5973
5974         posixtm: move #ifdef'd tests into a new module
5975         * lib/posixtm.c (posixtime): Remove #ifdef'd tests.  Move to...
5976         * tests/test-posixtm.c: ... this new file.
5977         * modules/posixtm-tests: New module.
5978
5979 2009-09-19  Eric Blake  <ebb9@byu.net>
5980
5981         openat: simplify use of at-func.c
5982         * lib/at-func.c (includes): Include prerequisites here, to
5983         simplify requirements on client files.
5984         * lib/openat-priv.h: Add double-inclusion guard.
5985         * lib/faccessat.c (includes): Simplify.
5986         * lib/fchmodat.c (includes): Likewise.
5987         * lib/fchownat.c (includes): Likewise.
5988         * lib/mkdirat.c (includes): Likewise.
5989         * lib/mkfifoat.c (includes): Likewise.
5990         * lib/symlinkat.c (includes): Likewise.
5991
5992         openat: allow return of fd 0
5993         * modules/chdir-long (Depends-on): Relax openat-safer to openat.
5994         * modules/save-cwd (Depends-on): Replace fcntl-safer with
5995         unistd-safer.
5996         * lib/chdir-long.c (includes): Replace "fcntl--.h" with
5997         <fcntl.h>; this module does not leak fds.
5998         * lib/openat.c (includes): Do not use "fcntl_safer"; plain openat
5999         must be allowed to return 0, leaving openat_safer to add the
6000         safety.
6001         (openat_permissive): Avoid writing to just-opened fd 2 if
6002         restoring the current directory fails.
6003         * lib/openat-die.c (openat_restore_fail): Add comment.
6004         * lib/save-cwd.c (includes): Make "fcntl--.h" conditional.
6005         (save_cwd): Guarantee safe fd, but without use of open_safer.
6006         * tests/test-openat.c: New test.
6007         * modules/openat-tests (Files, Makefile.am): Distribute and build
6008         new file.
6009
6010         relocatable-prog-wrapper: fix build
6011         * modules/relocatable-prog-wrapper (Files): Update name of
6012         canonicalize m4 file, broken on 2009-09-17.
6013         Reported by emad hajjar <aleppos@hotmail.com>.
6014
6015 2009-09-19  Bruno Haible  <bruno@clisp.org>
6016
6017         * lib/safe-alloc.h: Use the standard header with GPL copyright.
6018         * lib/safe-alloc.c: Likewise.
6019         Reported by Ian Beckwith <ianb@erislabs.net>.
6020
6021 2009-09-18  Bruno Haible  <bruno@clisp.org>
6022
6023         * gnulib-tool: Add advice to "cannot find configure.ac" error message.
6024         Reported by <erobles@sensacd.com.mx>.
6025
6026 2009-09-17  Eric Blake  <ebb9@byu.net>
6027
6028         canonicalize: in CAN_ALL_BUT_LAST, allow trailing slash
6029         * lib/canonicalize.c (canonicalize_filename_mode): Skip trailing
6030         slashes when checking if last component is missing.
6031         * tests/test-canonicalize.c (main): Test this.
6032
6033         canonicalize, canonicalize-lgpl: honor // if distinct from /
6034         * modules/canonicalize (Files): Add double-slash-root.m4.
6035         * modules/canonicalize-lgpl (Files): Likewise.
6036         * m4/canonicalize.m4 (gl_FUNC_CANONICALIZE_FILENAME_MODE)
6037         (gl_CANONICALIZE_LGPL_SEPARATE): Add dependency.
6038         * lib/canonicalize.c (DOUBLE_SLASH_IS_DISTINCT_ROOT): Provide
6039         fallback definition.
6040         (canonicalize_filename_mode): Use it to protect //.
6041         * lib/canonicalize-lgpl.c (DOUBLE_SLASH_IS_DISTINCT_ROOT)
6042         (__realpath): Likewise.
6043         * tests/test-canonicalize.c (main): Test this.
6044         * tests/test-canonicalize-lgpl.c (main): Likewise.
6045         * modules/canonicalize-tests (Depends-on): Add same-inode.
6046         * modules/canonicalize-lgpl-tests (Depends-on): Likewise.
6047
6048         canonicalize-lgpl: fix glibc bug with trailing slash
6049         * m4/canonicalize-lgpl.m4: Move contents...
6050         * m4/canonicalize.m4: ...here.
6051         (gl_CANONICALIZE_LGPL): Factor realpath check...
6052         (gl_FUNC_REALPATH_WORKS): ...into new macro.  Enhance to catch
6053         glibc 2.3.5 bug, fixed 2005-04-27.
6054         (gl_FUNC_CANONICALIZE_FILENAME_MODE): Use it.
6055         (gl_PREREQ_CANONICALIZE_LGPL): Inline...
6056         (gl_CANONICALIZE_LGPL_SEPARATE): ...into this macro.
6057         * modules/canonicalize-lgpl (Files): Manage file rename.
6058         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Provide default.
6059         * modules/stdlib (Makefile.am): Substitute witness.
6060         * lib/stdlib.in.h (canonicalize_file_name): Declare if replacement
6061         is needed.
6062         * lib/canonicalize-lgpl.c: Also compile if canonicalize_file_name
6063         replacement is required.
6064         * lib/canonicalize.c (canonicalize_file_name): Likewise.
6065         * doc/glibc-functions/canonicalize_file_name.texi
6066         (canonicalize_file_name): Document this.
6067         * doc/posix-functions/realpath.texi (realpath): Likewise.
6068
6069         canonicalize-lgpl: reject non-directory with trailing slash
6070         * lib/canonicalize-lgpl.c (__realpath): Synchronize with glibc.
6071         * tests/test-canonicalize-lgpl.c (main): Enhance test.  This
6072         catches failures in glibc 2.3.5.
6073         * tests/test-canonicalize.c (main): Likewise.
6074
6075         canonicalize-lgpl: use native realpath if it works
6076         * lib/canonicalize-lgpl.c (realpath): Guard with
6077         FUNC_REALPATH_WORKS.
6078         * lib/stdlib.in.h (realpath): Make declaration optional based on
6079         HAVE_REALPATH.
6080         * m4/canonicalize-lgpl.m4 (gl_CANONICALIZE_LGPL): Check whether
6081         native realpath works.
6082         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Provide default.
6083         * modules/stdlib (Makefile.am): Substitute witness.
6084
6085         canonicalize, canonicalize-lgpl: use <stdlib.h>
6086         * modules/canonicalize-lgpl (Files): Drop canonicalize.h.
6087         (Include): Mention <stdlib.h>.
6088         (configure.ac): Mention functions we provide.
6089         * modules/canonicalize (configure.ac): Likewise.
6090         * m4/canonicalize-lgpl.m4 (gl_CANONICALIZE_LGPL): Always replace
6091         realpath if canonicalize_file_name is missing.
6092         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Provide defaults.
6093         * modules/stdlib (Makefile.am): Substitute witnesses.
6094         * lib/stdlib.in.h (canonicalize_file_name, realpath): Declare.
6095         * lib/canonicalize-lgpl.c (includes): Adjust accordingly.
6096         * lib/canonicalize.h (canonicalize_file_name): Drop declaration.
6097         * NEWS: Document this.
6098         * doc/glibc-functions/canonicalize_file_name.texi
6099         (canonicalize_file_name): Likewise.
6100         * doc/posix-functions/realpath.texi (realpath): Likewise.
6101         * tests/test-canonicalize-lgpl.c (includes): Use <stdlib.h>.
6102
6103         test-canonicalize: consolidate into single C program
6104         * tests/test-canonicalize.sh: Delete; move setup into...
6105         * tests/test-canonicalize.c (main): ...the program, making it
6106         easier to run in debugger.  Add some tests.
6107         * modules/canonicalize-tests (Files): Remove unused file.
6108         (Depends-on): Add progname.
6109         (configure.ac, Makefile.am): Simplify.
6110
6111         test-canonicalize-lgpl: consolidate into single C program
6112         * tests/test-canonicalize-lgpl.sh: Delete; move setup into...
6113         * tests/test-canonicalize-lgpl.c (main): ...the program, making it
6114         easier to run in debugger.  Add some tests.
6115         * modules/canonicalize-lgpl-tests (Files): Remove unused file.
6116         (configure.ac, Makefile.am): Simplify.
6117
6118         canonicalize: avoid resolvepath
6119         * m4/canonicalize.m4 (gl_FUNC_CANONICALIZE_FILENAME_MODE): Delete
6120         unnecessary checks.
6121         * lib/canonicalize.c (includes): Simplify.
6122         (canonicalize_file_name): Drop resolvepath implementation.
6123         * modules/canonicalize (Depends-on): Drop filenamecat.
6124
6125         canonicalize: don't lose errno
6126         * lib/canonicalize.c (canonicalize_filename_mode): Protect errno
6127         over calls to free.
6128
6129         canonicalize: simplify errno handling
6130         * lib/canonicalize.c (__set_errno): Delete macro, and use direct
6131         assignment.
6132
6133         canonicalize, canonicalize-lgpl: update module dependencies
6134         * modules/canonicalize (Depends-on): Add extensions, lstat,
6135         pathmax, stdlib.
6136         (Files): Drop pathmax.h.
6137         (configure.ac): Adjust macro name.
6138         * modules/canonicalize-lgpl (Depends-on): Add errno, extensions,
6139         lstat, stdlib, sys_stat.
6140         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME): Rename...
6141         (gl_FUNC_CANONICALIZE_FILENAME_MODE): ...to this, and require
6142         extensions.
6143         * m4/canonicalize-lgpl.m4 (gl_CANONICALIZE_LGPL)
6144         (gl_CANONICALIZE_LGPL_SEPARATE): Require extensions.
6145         (gl_PREREQ_CANONICALIZE_LGPL): Assume unistd.h.
6146         * lib/canonicalize.h (canonicalize_file_name): Use <stdlib.h>
6147         declaration, if available.
6148         * lib/canonicalize-lgpl.c [HAVE_READLINK]: Delete this condition;
6149         we can rely on the readlink module.
6150         (MAXSYMLINKS): Also consult SYMLOOP_MAX.
6151         (includes): Use <unistd.h> unconditionally.
6152
6153 2009-09-17  Eric Blake  <ebb9@byu.net>
6154
6155         maint: make Include sections of modules consistent
6156         * modules/alloca: Use only header name; no need to list #include.
6157         * modules/alloca-opt: Likewise.
6158         * modules/arpa_inet: Likewise.
6159         * modules/canon-host: Likewise.
6160         * modules/configmake: Likewise.
6161         * modules/dirent: Likewise.
6162         * modules/eealloc: Likewise.
6163         * modules/environ: Likewise.
6164         * modules/fchdir: Likewise.
6165         * modules/fcntl: Likewise.
6166         * modules/fcntl-h: Likewise.
6167         * modules/gethrxtime: Likewise.
6168         * modules/gettime: Likewise.
6169         * modules/ignore-value: Likewise.
6170         * modules/inet_ntop: Likewise.
6171         * modules/inet_pton: Likewise.
6172         * modules/inttypes: Likewise.
6173         * modules/isnand-nolibm: Likewise.
6174         * modules/isnanf-nolibm: Likewise.
6175         * modules/mbchar: Likewise.
6176         * modules/mbfile: Likewise.
6177         * modules/mbiter: Likewise.
6178         * modules/mbuiter: Likewise.
6179         * modules/netdb: Likewise.
6180         * modules/netinet_in: Likewise.
6181         * modules/nproc: Likewise.
6182         * modules/pagealign_alloc: Likewise.
6183         * modules/poll: Likewise.
6184         * modules/printf-frexp: Likewise.
6185         * modules/pthread: Likewise.
6186         * modules/putenv: Likewise.
6187         * modules/random_r: Likewise.
6188         * modules/relocatable-prog: Likewise.
6189         * modules/search: Likewise.
6190         * modules/select: Likewise.
6191         * modules/selinux-h: Likewise.
6192         * modules/settime: Likewise.
6193         * modules/signal: Likewise.
6194         * modules/size_max: Likewise.
6195         * modules/socklen: Likewise.
6196         * modules/ssize_t: Likewise.
6197         * modules/stdarg: Likewise.
6198         * modules/stdbool: Likewise.
6199         * modules/stddef: Likewise.
6200         * modules/stdint: Likewise.
6201         * modules/stdio: Likewise.
6202         * modules/stdlib: Likewise.
6203         * modules/string: Likewise.
6204         * modules/strings: Likewise.
6205         * modules/sys_file: Likewise.
6206         * modules/sys_ioctl: Likewise.
6207         * modules/sys_select: Likewise.
6208         * modules/sys_socket: Likewise.
6209         * modules/sys_stat: Likewise.
6210         * modules/sys_time: Likewise.
6211         * modules/sys_times: Likewise.
6212         * modules/sys_utsname: Likewise.
6213         * modules/sys_wait: Likewise.
6214         * modules/sysexits: Likewise.
6215         * modules/time: Likewise.
6216         * modules/times: Likewise.
6217         * modules/tmpfile: Likewise.
6218         * modules/trim: Likewise.
6219         * modules/unistd: Likewise.
6220         * modules/wchar: Likewise.
6221         * modules/wctype: Likewise.
6222
6223 2009-09-17  Bruno Haible  <bruno@clisp.org>
6224
6225         Make getdate.y compile on QNX and NetBSD 5 / i386.
6226         * m4/getdate.m4 (gl_GETDATE): Conditionally define
6227         TIME_T_FITS_IN_LONG_INT.
6228         * lib/getdate.y (long_time_t): New type.
6229         (relative_time): Change type of 'seconds' field to long_time_t.
6230         (get_date): Update types of local variables. Check against overflow
6231         during conversion from long_time_t to time_t.
6232         Reported by Matt Kraai <kraai@ftbfs.org>
6233         and Hasso Tepper <hasso@netbsd.org>.
6234
6235 2009-09-17  Bruno Haible  <bruno@clisp.org>
6236
6237         * modules/COPYING: Update copyright years.
6238         * modules/README: Likeiwse.
6239         * doc/gnulib-intro.texi (Copyright): Use a wildcard year.
6240         Reported by Ian Beckwith <ianb@erislabs.net>.
6241
6242 2009-09-17  Ian Beckwith  <ianb@erislabs.net>  (tiny change)
6243
6244         * users.txt: Update references for gnuit package.
6245
6246 2009-09-17  Ian Beckwith  <ianb@erislabs.net>  (tiny change)
6247
6248         * m4/getdelim.m4: Fix typo in copyright line.
6249
6250 2009-09-17  Bruno Haible  <bruno@clisp.org>
6251
6252         * lib/atoll.c: Use the standard header with GPL copyright.
6253         * lib/argz.in.h: Likewise.
6254         * lib/glob.c: Likewise.
6255         * lib/glob-libc.h: Likewise.
6256         * lib/random_r.c: Likewise.
6257         * lib/siglist.h: Likewise.
6258         * lib/strsignal.c: Likewise.
6259         Reported by Ian Beckwith <ianb@erislabs.net>.
6260
6261 2009-09-17  Eric Blake  <ebb9@byu.net>
6262
6263         rmdir: ensure correct dependency order
6264         * m4/rmdir.m4 (gl_FUNC_RMDIR): Require unistd defaults.
6265
6266 2009-09-17  Bruno Haible  <bruno@clisp.org>
6267
6268         Disable assertion that fails on NetBSD 5 / i386.
6269         * lib/mktime.c (ydhms_diff): Disable assertion about time_t size.
6270         Reported by Sam Steingold <sds@gnu.org>
6271         and Hasso Tepper <hasso@netbsd.org>.
6272
6273 2009-09-16  Eric Blake  <ebb9@byu.net>
6274
6275         unlinkdir: port to mingw
6276         * m4/unlinkdir.m4 (gl_UNLINKDIR): Add mingw to list of platforms
6277         on which no one can unlink a directory.
6278
6279         stdlib: sort witness names
6280         * modules/stdlib (Makefile.am): Sort replacements.
6281         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Likewise.
6282         * lib/stdlib.in.h: Likewise.
6283
6284         parse-duration-tests: avoid link failure
6285         * modules/parse-duration-tests (test_parse_duration_LDADD): Add
6286         LIBINTL.
6287         Reported by Tom G. Christensen.
6288
6289         openat-tests: ensure unlinkat behaves like rmdir
6290         * tests/test-rmdir.c (main): Factor guts...
6291         * tests/test-rmdir.h (test_rmdir_func): ...into new file.
6292         * modules/rmdir-tests (Files): Ship new file.
6293         * modules/openat-tests: New test.
6294         * tests/test-unlinkat.c: Likewise.
6295
6296         rmdir-errno: mark obsolete, it is unsafe for cross-compilation
6297         * modules/rmdir-errno (Status, Notice): Now obsolete.
6298
6299         rmdir: work around cygwin 1.5.x and mingw bugs
6300         * m4/rmdir.m4 (gl_FUNC_RMDIR): Detect the bugs.
6301         * lib/rmdir.c (rmdir): Work around it.
6302         * modules/rmdir (Status, Notice): No longer obsolete.
6303         (Files): Add dos.m4.
6304         (Depends-on): Add unistd.
6305         (configure.ac): Set witnesses.
6306         (License): Relax to LGPLv2+.
6307         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Set defaults.
6308         * modules/unistd (Makefile.am): Substitute witnesses.
6309         * lib/unistd.in.h (rmdir): Declare replacement.
6310         * doc/posix-functions/rmdir.texi (rmdir): Document this.
6311         * modules/rmdir-tests: New tests.
6312         * tests/test-rmdir.c: Likewise.
6313
6314 2009-09-15  Eric Blake  <ebb9@byu.net>
6315
6316         fchdir: improve use of replacement functions
6317         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Set appropriate witnesses.
6318         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Add REPLACE_FSTAT.
6319         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): Add REPLACE_OPENDIR,
6320         REPLACE_CLOSEDIR.
6321         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add REPLACE_DUP.
6322         * modules/sys_stat (Makefile.am): Substitute correct witness.
6323         * modules/dirent (Makefile.am): Likewise.
6324         * modules/unistd (Makefile.am): Likewise.
6325         * lib/dirent.in.h (opendir, closedir): Use better witnesses.
6326         * lib/unistd.in.h (dup): Likewise.
6327         * lib/sys_stat.in.h (fstat): Likewise.
6328
6329         maint: ignore gnulib-tool temp files
6330         * .gitignore: Ignore files created during gnulib-tool --test.
6331
6332 2009-09-13  Jim Meyering  <meyering@redhat.com>
6333
6334         posixtm: don't reject a time that specify "60" as the number of seconds
6335         * lib/posixtm.c (posixtime): The code to reject invalid dates
6336         would also reject a time specified with the .60 suffix.
6337         But POSIX allows that, in order to accommodate leap seconds.
6338         So don't reject it.
6339         (main): Adjust tests accordingly.
6340         * modules/posixtm (Depends-on): Add stpcpy.
6341
6342 2009-09-11  Jim Meyering  <meyering@redhat.com>
6343
6344         announce-gen: include [$release_type] in emitted Subject:
6345         * build-aux/announce-gen (get_tool_versions): Include [$release_type],
6346         e.g., [stable] in the emitted Subject: line.
6347
6348 2009-09-10  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
6349
6350         Remove obsolete macros from several modules.
6351         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Replace
6352         obsolete Autoconf macros with their modern counterparts.
6353         * m4/check-math-lib.m4 (gl_CHECK_MATH_LIB): Likewise.
6354         * m4/gc-camellia.m4 (gl_GC_CAMELLIA): Likewise.
6355         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Likewise.
6356         * m4/getdate.m4 (gl_C_COMPOUND_LITERALS): Likewise.
6357         * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): Likewise.
6358         * m4/getline.m4 (gl_FUNC_GETLINE): Likewise.
6359         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Likewise.
6360         * m4/isfinite.m4 (gl_ISFINITEL_WORKS): Likewise.
6361         * m4/poll.m4 (gl_FUNC_POLL): Likewise.
6362         * m4/readline.m4 (gl_FUNC_READLINE): Likewise.
6363         * m4/round.m4 (gl_FUNC_ROUND): Likewise.
6364         * m4/roundf.m4 (gl_FUNC_ROUNDF): Likewise.
6365         * m4/select.m4 (gl_FUNC_SELECT): Likewise.
6366         * m4/sockets.m4 (gl_SOCKETS): Likewise.
6367         * m4/socklen.m4 (gl_TYPE_SOCKLEN_T): Likewise.
6368         * m4/sockpfaf.m4 (gl_SOCKET_FAMILIES): Likewise.
6369         * m4/sysexits.m4 (gl_SYSEXITS): Likewise.
6370         * m4/time_r.m4 (gl_TIME_R): Likewise.
6371         * m4/tsearch.m4 (gl_FUNC_TSEARCH): Likewise.
6372         * m4/vararrays.m4 (AC_C_VARARRAYS): Likewise.
6373         * m4/wctype.m4 (gl_WCTYPE_H): Likewise.
6374
6375         Fix copyright header in build-aux scripts.
6376         * build-aux/git-version-gen: Fix copyright header to match GPLv3
6377         recommendation.
6378         * build-aux/ncftpput-ftp: Likewise.
6379         * build-aux/update-copyright: Likewise.
6380
6381 2009-09-09  Eric Blake  <ebb9@byu.net>
6382
6383         test-link: allow Linux choice of errno
6384         * tests/test-link.c (main): Relax test for alternate error.
6385
6386         strndup: fix improper m4 caching
6387         * m4/strndup.m4 (gl_FUNC_STRNDUP): Rework to avoid side effects
6388         inside AC_CACHE_CHECK.  Use REPLACE_STRNDUP, not HAVE_STRNDUP.
6389         (gl_PREREQ_STRNDUP): Delete.
6390         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Update default.
6391         * modules/string (Makefile.am): Substitute it.
6392         * lib/string.in.h (strndup): Modernize prototype.
6393
6394         getcwd: port to mingw
6395         * m4/getcwd.m4 (gl_FUNC_GETCWD): Mingw directories are very
6396         different from the POSIX assumptions made throughout the getcwd
6397         module; fortunately, the mingw getcwd does not need replacement.
6398         (gl_FUNC_GETCWD_NULL): Skip test on mingw.
6399         * modules/getcwd-tests: New test.
6400         * tests/test-getcwd.c: Likewise.
6401
6402         link: fix platform bugs
6403         * m4/link.m4 (gl_FUNC_LINK): Detect Solaris and Cygwin bugs.
6404         * lib/link.c (link): Work around them.  Fix related mingw bug.
6405         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add REPLACE_LINK.
6406         * modules/unistd (Makefile.am): Substitute it.
6407         * lib/unistd.in.h (link): Declare replacement.
6408         * doc/posix-functions/link.texi (link): Document this.
6409         * modules/link (Depends-on): Add strdup-posix, sys_stat.
6410
6411         test-link: consolidate into single C program, test more cases
6412         * tests/test-link.sh: Delete.
6413         * tests/test-link.c: Test more error conditions.  Exposes bugs on
6414         at least Cygwin and Solaris.
6415         * modules/link-tests (Files): Remove unused file.
6416         (Depends-on): Add errno, sys_stat.
6417         (Makefile.am): Simplify.
6418
6419 2009-09-08  Bruno Haible  <bruno@clisp.org>
6420
6421         Work around towlower, towupper bug on mingw.
6422         * lib/wctype.in.h (towlower, towupper) [__MINGW32__]: New replacements.
6423         * m4/wctype.m4 (gl_WCTYPE_H): Replace <wctype.h> also on mingw.
6424         * doc/posix-functions/towlower.texi: Mention the mingw bug.
6425         * doc/posix-functions/towupper.texi: Likewise.
6426         Reported by Eric Blake.
6427
6428 2009-09-08  Jim Meyering  <meyering@redhat.com>
6429
6430         build: don't try to run autoheader if we don't use it
6431         * build-aux/bootstrap: Define AUTOHEADER=true when AC_CONFIG_HEADERS
6432         is not used in configure.ac.
6433
6434 2009-09-08  Eric Blake  <ebb9@byu.net>
6435
6436         euidaccess: fix compilation error
6437         * lib/euidaccess.c (includes): Add <fcntl.h>, for AT_EACCESS.
6438
6439         rawmemchr: relax license
6440         * modules/rawmemchr (License): Derived from glibc, so LGPLv2+ is
6441         okay.
6442         Reported by Jim Meyering.
6443
6444         mkfifoat: new module
6445         * modules/mkfifoat: New file.
6446         * lib/mkfifoat.c: Likewise.
6447         * m4/mkfifoat.m4 (gl_FUNC_MKFIFOAT): Likewise.
6448         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Add witnesses.
6449         * modules/sys_stat (Makefile.am): Use them.
6450         * lib/sys_stat.in.h (mkfifoat, mknodat): Declare them.
6451         * MODULES.html.sh (File system functions): Mention module.
6452         * doc/posix-functions/mkfifoat.texi (mkfifoat): Likewise.
6453         * doc/posix-functions/mknodat.texi (mknodat): Likewise.
6454         * modules/mkfifoat-tests: New test.
6455         * tests/test-mkfifoat.c: Likewise.
6456
6457         strchrnul: relax license
6458         * modules/strchrnul (License): Derived from glibc, so LGPLv2+ is
6459         okay.
6460         Reported by Jim Meyering.
6461
6462 2009-09-08  Eric Blake  <ebb9@byu.net>
6463
6464         fstatat: fix compilation on Solaris
6465         * lib/fstatat.c (includes): Add fcntl.h.
6466         Reported by Pádraig Brady.
6467
6468 2009-09-07  Eric Blake  <ebb9@byu.net>
6469
6470         rename: modernize replacement
6471         * modules/rename (Depends-on): Add stdio.
6472         (configure.ac): Declare witness.
6473         * m4/rename.m4 (gl_FUNC_RENAME): Ensure dependency order, and let
6474         stdio take care of replacement.
6475         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Add new defaults.
6476         * modules/stdio (Makefile.am): Substitute them.
6477         * lib/stdio.in.h (rename): Declare replacement.
6478         * lib/rename.c (includes): Allow cross-compilation to non-windows
6479         machines.
6480         * doc/posix-functions/rename.texi (rename): Improve
6481         documentation.
6482
6483         stdio: sort witness names
6484         * modules/stdio (Makefile.am): Sort replacements.
6485         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Likewise.
6486         * lib/stdio.in.h: Likewise.
6487
6488         getcwd: minor cleanups
6489         * lib/getcwd.c (AT_FDCWD): Delete; rely on <fcntl.h> instead.
6490         (is_ENAMETOOLONG): Delete; ENAMETOOLONG is portable.
6491
6492         openat: provide more convenience names
6493         * modules/faccessat (configure.ac): Add C witness.
6494         * lib/unistd.in.h (readlinkat): Fix typo.
6495         * lib/openat.h (statat, lstatat, accessat, euidaccessat): New
6496         convenience wrappers.
6497         * top/maint.mk (sc_prohibit_openat_without_use): Allow these
6498         wrappers in syntax checks.
6499
6500 2009-09-06  Eric Blake  <ebb9@byu.net>
6501
6502         doc: fix comments in recent patches
6503         * lib/faccessat.c: Mention correct function.
6504         * lib/fchmodat.c: Likewise.
6505         * lib/fchownat.c: Likewise.
6506         * lib/symlinkat.c: Likewise.
6507         * doc/posix-headers/fcntl.texi (fcntl.h): Cygwin 1.7 has AT_*
6508         constants.
6509
6510         faccessat, symlinkat: continue cleanup of previous patch
6511         * m4/symlinkat.m4 (gl_FUNC_SYMLINKAT): Ensure dependency order.
6512         * m4/faccessat.m4 (gl_FUNC_FACCESSAT): Likewise.
6513         * modules/unistd (Makefile.am): Substitute GNULIB_READLINKAT.
6514         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Offer GNULIB_READLINKAT.
6515         * modules/symlinkat (configure.ac): Set GNULIB_READLINKAT.
6516         * lib/unistd.in.h (readlinkat): Declare if GNULIB_READLINKAT is
6517         set.
6518
6519 2009-09-06  Bruno Haible  <bruno@clisp.org>
6520
6521         * lib/sys_stat.in.h (fchmodat): Declare if GNULIB_FCHMODAT is set.
6522         (fstatat): Declare if GNULIB_FSTATAT is set.
6523         (mkdirat): Declare if GNULIB_MKDIRAT is set.
6524         * lib/unistd.in.h (fchownat): Declare if GNULIB_FCHOWNAT is set.
6525         (unlinkat): Declare if GNULIB_UNLINKAT is set.
6526         * modules/fcntl-h (Files): Remove m4/openat.m4.
6527         * modules/sys_stat (Files): Remove m4/openat.m4.
6528         (Makefile.am): Substitute GNULIB_FCHMODAT, GNULIB_FSTATAT,
6529         GNULIB_MKDIRAT instead of GNULIB_OPENAT.
6530         * modules/unistd (Files): Remove m4/openat.m4.
6531         (Makefile.am): Substitute GNULIB_FCHOWNAT, GNULIB_UNLINKAT instead of
6532         GNULIB_OPENAT.
6533         * m4/fcntl_h.m4 (gl_FCNTL_H_DEFAULTS): Initialize GNULIB_OPENAT,
6534         HAVE_OPENAT here. Don't require gl_OPENAT_DEFAULTS.
6535         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Initialize
6536         GNULIB_FCHMODAT, GNULIB_FSTATAT, GNULIB_MKDIRAT, HAVE_FCHMODAT,
6537         HAVE_FSTATAT, HAVE_MKDIRAT, REPLACE_FSTATAT here. Don't require
6538         gl_OPENAT_DEFAULTS.
6539         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_FCHOWNAT,
6540         GNULIB_UNLINKAT, HAVE_FCHOWNAT, HAVE_UNLINKAT, REPLACE_FCHOWNAT here.
6541         Don't require gl_OPENAT_DEFAULTS.
6542         * m4/openat.m4 (gl_FUNC_OPENAT): Require gl_FCNTL_H_DEFAULTS,
6543         gl_SYS_STAT_H_DEFAULTS, gl_UNISTD_H_DEFAULTS. Set GNULIB_FCHMODAT,
6544         GNULIB_FSTATAT, GNULIB_MKDIRAT, GNULIB_FCHOWNAT, GNULIB_UNLINKAT.
6545         (gl_OPENAT_DEFAULTS): Remove macro.
6546
6547 2009-09-06  Bruno Haible  <bruno@clisp.org>
6548
6549         * modules/openat (configure.ac): Remove unneeded witness.
6550
6551 2009-09-06  Bruno Haible  <bruno@clisp.org>
6552
6553         Set errno to ENOSYS when a function is entirely unsupported.
6554         * lib/chown.c (rpl_chown) [!HAVE_CHOWN]: Set errno to ENOSYS instead of
6555         EOPNOTSUPP.
6556         * lib/lchown.c (lchown) [!HAVE_CHOWN]: Likewise.
6557         * modules/chown (Depends-on): Remove errno.
6558
6559 2009-09-06  Bruno Haible  <bruno@clisp.org>
6560
6561         * doc/posix-headers/fcntl.texi (AT_*): Mention affected platforms.
6562
6563 2009-09-06  Bruno Haible  <bruno@clisp.org>
6564
6565         * lib/sys_stat.in.h: Fix preprocessor command indentation.
6566
6567 2009-09-06  Ben Pfaff  <blp@gnu.org>
6568             Bruno Haible  <bruno@clisp.org>
6569
6570         Work around a glibc bug in strtok_r.
6571         * lib/string.in.h (strtok_r): Replace if REPLACE_STRTOK_R is set.
6572         Undefine if UNDEFINE_STRTOK_R is set.
6573         * lib/strtok_r.c (strtok_r, __strtok_r) [!_LIBC]: Don't undefine.
6574         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
6575         REPLACE_STRTOK_R and UNDEFINE_STRTOK_R.
6576         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Check against the glibc bug.
6577         * modules/string (Makefile.am): Substitute REPLACE_STRTOK_R,
6578         UNDEFINE_STRTOK_R.
6579         * doc/posix-functions/strtok_r.texi: Mention the glibc 2.7 bug.
6580
6581 2009-09-06  Sergey Poznyakoff  <gray@gnu.org.ua>
6582
6583         exclude: minor fix
6584         * lib/exclude.c: Include wctype.h
6585
6586 2009-09-06  Akim Demaille  <demaille@gostai.com>
6587
6588         bootstrap: improve error message
6589         * build-aux/bootstrap (find_tool): Upon failure, report the list
6590         of candidates.
6591         Honor the initial value of the envvar.
6592
6593 2009-09-05  Eric Blake  <ebb9@byu.net>
6594
6595         symlinkat: new module
6596         * modules/symlinkat: New file.
6597         * lib/symlinkat.c: Likewise.
6598         * m4/symlinkat.m4 (gl_FUNC_SYMLINKAT): Likewise.
6599         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witnesses.
6600         * modules/unistd (Makefile.am): Use them.
6601         * lib/unistd.in.h (symlinkat, readlinkat): Declare them.
6602         (faccessat) [GNULIB_POSIXCHECK]: Fix typo.
6603         * lib/at-func.c (FUNC_RESULT): New macro, defaulting to int.
6604         * MODULES.html.sh (File system functions): Mention module.
6605         * doc/posix-functions/symlinkat.texi (symlinkat): Likewise.
6606         * doc/posix-functions/readlinkat.texi (readlinkat): Likewise.
6607         * modules/symlinkat-tests: New test.
6608         * tests/test-symlinkat.c: Likewise.
6609
6610         test-openat-safer: add more checks
6611         * tests/test-openat-safer.c (main): Check more code paths.
6612
6613 2009-09-05  Jim Meyering  <meyering@redhat.com>
6614
6615         syntax-check: detect unnecessary inclusion of openat.h
6616         * top/maint.mk (sc_prohibit_openat_without_use): New rule.
6617
6618 2009-09-05  Bruno Haible  <bruno@clisp.org>
6619
6620         Support towlower, towupper.
6621         * doc/posix-functions/towlower.texi: Mention module wctype.
6622         * doc/posix-functions/towupper.texi: Likewise.
6623         * lib/wctype.in.h (towlower, towupper): New functions.
6624         * tests/test-wctype.c: Include stdio.h, stdlib.h.
6625         (ASSERT): New macro.
6626         (e): New variable.
6627         (main): Test also towlower, towupper. Test WEOF argument.
6628         Reported by Alan Hourihane <alanh@fairlite.co.uk>.
6629
6630 2009-09-05  Bruno Haible  <bruno@clisp.org>
6631
6632         Fix conversion behaviour when the input is invalid.
6633         * lib/striconveh.c (mem_cd_iconveh_internal): Fix storing of question
6634         mark occurring in first pass of indirect conversion.
6635         * tests/test-striconveh.c (main): Test conversion of invalid ASCII
6636         input.
6637         Found by clang's static analyzer.
6638
6639 2009-09-05  Bruno Haible  <bruno@clisp.org>
6640
6641         * tests/test-striconveh.c (main): Test indirect conversion on platforms
6642         where direct conversion is possible.
6643
6644 2009-09-04  Eric Blake  <ebb9@byu.net>
6645
6646         openat: fail with ENOENT on empty name
6647         * lib/openat-proc.c (openat_proc_name): Special-case the empty
6648         buffer.
6649
6650         link-follow: fix logic bug in prior patch
6651         * m4/link-follow.m4 (gl_FUNC_LINK_FOLLOWS_SYMLINK): Fix bug that
6652         reversed sense of yes and no in prior patch.  Avoid confusing
6653         compilation failure with desired semantics.
6654
6655         link-follow: accomodate mingw and cross-compilation
6656         * m4/link-follow.m4 (gl_AC_FUNC_LINK_FOLLOWS_SYMLINK): Rename...
6657         (gl_FUNC_LINK_FOLLOWS_SYMLINK): ...to this.  Change
6658         cross-compilation results to -1, to make linkat easier to
6659         implement when cross-compiling.  Trivially support mingw.
6660         * modules/link-follow (configure.ac): Call new name.
6661         * NEWS: Mention this.
6662
6663 2009-09-03  Eric Blake  <ebb9@byu.net>
6664
6665         faccessat: compile replacement
6666         * m4/faccessat.m4 (gl_FUNC_FACCESSAT): Build replacement when
6667         needed.
6668
6669         fts: fix compilation error
6670         * lib/fts.c (includes): Re-add "openat.h", for
6671         openat_needs_fchdir.
6672
6673         faccessat: new module
6674         * modules/faccessat: New file.
6675         * lib/faccessat.c: Likewise.
6676         * m4/faccessat.m4 (gl_FUNC_FACCESSAT): Likewise.
6677         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witness.
6678         * modules/unistd (Makefile.am): Use it.
6679         * lib/unistd.in.h (faccessat): Declare it.
6680         (F_OK, X_OK, W_OK, R_OK): Provide definitions.
6681         * lib/fcntl.in.h (AT_SYMLINK_FOLLOW, AT_EACCESS): Likewise.
6682         * MODULES.html.sh (File system functions): Mention it.
6683         * doc/posix-functions/faccessat.texi (faccessat): Likewise.
6684         * doc/posix-headers/fcntl.texi (fcntl.h): Likewise.
6685
6686         euidaccess: prefer POSIX over non-standard implementation
6687         * m4/euidaccess.m4 (gl_PREREQ_EUIDACCESS): Check for faccessat.
6688         * lib/euidaccess.c (euidaccess): Use it if available.
6689
6690         openat: make template easier to use
6691         * lib/at-func.c (CALL_FUNC): Allow AT_FUNC_USE_F1_COND and
6692         AT_FUNC_F2 to be undefined.
6693         (VALIDATE_FLAG): New macro; use it to reject bad flags.
6694         (AT_FUNC_USE_F1_COND): Change sense to just flag bit.
6695         * lib/fchmodat.c (AT_FUNC_USE_F1_COND): Adjust.
6696         * lib/fchownat.c (AT_FUNC_USE_F1_COND): Likewise.
6697         * lib/openat.c (AT_FUNC_USE_F1_COND) [fstatat, unlinkat]:
6698         Likewise.
6699         * lib/mkdirat.c (AT_FUNC_F2, AT_FUNC_USE_F1_COND): Delete.
6700         * lib/selinux-at.c (AT_FUNC_F2, AT_FUNC_USE_F1_COND)
6701         [getfileconat, lgetfileconat, setfileconat, lsetfileconat]:
6702         Likewise.
6703
6704         openat: declare in POSIX headers
6705         * NEWS: Mention this.
6706         * modules/openat (configure.ac): Declare witnesses.
6707         (Depends-on): Add fcntl-h, sys_stat, unistd.
6708         (Include): Mention correct headers.
6709         * modules/fcntl-h (Depends-on): Add link-warning.
6710         (Files): Add openat.m4.
6711         (Makefile.am): Substitute witnesses.
6712         * modules/sys_stat (Files, Makefile.am): Likewise.
6713         * modules/unistd (Files, Makefile.am): Likewise.
6714         * m4/openat.m4 (gl_FUNC_OPENAT, gl_FUNC_FCHOWNAT): Set witnesses.
6715         (gl_OPENAT_DEFAULTS): New macro.
6716         * m4/fcntl_h.m4 (gl_FCNTL_H_DEFAULTS): Use it.
6717         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Likewise.
6718         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Likewise.
6719         (SYS_STAT_H): Remove unused variable.
6720         * doc/posix-headers/fcntl.texi (fcntl.h): Update content.
6721         * lib/fcntl--.h (includes): Remove unneeded header.
6722         * lib/openat-safer.c (includes): Likewise.
6723         * lib/openat.h (AT_FDCWD, AT_SYMLINK_NOFOLLOW, AT_REMOVEDIR)
6724         (openat, fstatat, unlinkat, mkdirat, fchmodat, fchownat): Move to
6725         appropriate headers.
6726         (__OPENAT_PREFIX): Delete.
6727         * lib/fcntl.in.h (openat): Provide declaration.
6728         (AT_FDCWD): Fix Solaris bug.
6729         (AT_SYMLINK_NOFOLLOW, AT_REMOVEDIR): Provide macros.
6730         * lib/sys_stat.in.h (fstatat, mkdirat): Provide declaration.
6731         * lib/fchmodat.c (includes):  Adjust to find declaration.
6732         * lib/fchownat.c (includes): Likewise.
6733         * lib/mkdirat.c (includes): Likewise.
6734         * lib/fstatat.c (includes): Likewise.  Ensure original fstatat is
6735         still visible.
6736
6737 2009-09-02  Eric Blake  <ebb9@byu.net>
6738
6739         errno: use consistently
6740         * lib/c-stack.c (ENOTSUP): <errno.h> guarantees a definition.
6741         * lib/canonicalize-lgpl.c (ENAMETOOLONG): Likewise.
6742         * lib/canonicalize.c (ELOOP): Likewise.
6743         * lib/inet_ntop.c (EAFNOSUPPORT): Likewise.
6744         * lib/inet_pton.c (EAFNOSUPPORT): Likewise.
6745         * lib/lchown.c (EOPNOTSUPP): Likewise.
6746         * lib/openat-priv.h (ENOSYS, EOPNOTSUPP): Likewise.
6747         * lib/savewd.c (ESTALE): Likewise.
6748         * lib/settime.c (ENOSYS): Likewise.
6749         * lib/utimens.c (ENOSYS): Likewise.
6750         * lib/xgethostname.c (ENAMETOOLONG): Likewise.
6751         * lib/chdir-safer.c (ELOOP): Likewise.
6752         (chdir_no_follow): Use HAVE_READLINK, not ELOOP, as witness.
6753         * modules/c-stack (Depends-on): Add errno.
6754         * modules/canonicalize (Depends-on): Likewise.
6755         * modules/chdir-safer (Depends-on): Likewise.
6756         * modules/fdopendir (Depends-on): Likewise.
6757         * modules/inet_ntop (Depends-on): Likewise.
6758         * modules/inet_pton (Depends-on): Likewise.
6759         * modules/lchown (Depends-on): Likewise.
6760         * modules/openat (Depends-on): Likewise.
6761         * modules/savewd (Depends-on): Likewise.
6762         * modules/settime (Depends-on): Likewise.
6763         * m4/chdir-safer.m4 (gl_CHDIR_SAFER): Check for readlink.
6764
6765         fts: avoid leaking fds
6766         * modules/fts (Depends-on): Add cloexec.
6767         * lib/fts.c (opendirat, diropen, fts_build): Set close-on-exec
6768         flag.
6769
6770         fts: make directory fds more robust
6771         * lib/fts.c (O_DIRECTORY): Let <fcntl.h> take care of this.
6772         (opendirat): Specify O_DIRECTORY, and add fallbacks for safety.
6773
6774         backupfile, chdir-long, fts, savedir: make safer
6775         * lib/backupfile.c (includes): Use "dirent--.h", since
6776         numbered_backup can write to stderr during readdir.
6777         * lib/savedir.c (includes): Likewise.
6778         * lib/chdir-long.c (includes): Use "fcntl--.h", since openat
6779         emulation can write to stderr on failure.
6780         * lib/fts.c (includes) [!_LIBC]: Likewise for opendir and openat.
6781         * lib/getcwd.c: Document why opendir_safer is unused.
6782         * lib/glob.c: Likewise.
6783         * lib/scandir.c: Likewise.
6784         * lib/openat-proc.c: Likewise, for open_safer.
6785         * modules/backupfile (Depends-on): Add dirent-safer.
6786         * modules/savedir (Depends-on): Likewise.
6787         * modules/fts (Depends-on): Add dirent-safer and openat-safer.
6788         * modules/chdir-long (Depends-on): Add openat-safer.
6789
6790         openat-safer: new module
6791         * modules/openat-safer: New file.
6792         * lib/openat-safer.c: Likewise.
6793         * m4/fcntl-safer.m4 (gl_OPENAT_SAFER): New macro.
6794         * lib/fcntl-safer.h (openat_safer): Declare.
6795         * lib/fcntl--.h (openat): Override.
6796         * MODULES.html.sh (File descriptor based I/O): Mention it.
6797         * lib/openat.h: Add double-inclusion guards.
6798         * lib/openat.c (includes): Only include "fcntl-safer.h", not
6799         "fcntl--.h", so we can implement openat.
6800         * modules/openat-safer-tests: New test.
6801         * tests/test-openat-safer.c: New file.
6802
6803         dirent-safer: new module
6804         * modules/dirent-safer: New file.
6805         * lib/dirent--.h: Likewise.
6806         * lib/dirent-safer.h: Likewise.
6807         * lib/opendir-safer.c: Likewise.
6808         * m4/dirent-safer.m4: Likewise.
6809         * MODULES.html.sh (Enhancements for POSIX:2008): Mention it.
6810         * modules/dirent-safer-tests: New test.
6811         * tests/test-dirent-safer.c: New file.
6812         * lib/fdopendir.c (includes): Ensure fdopendir is also safe.
6813
6814         fdopendir: optimize on mingw
6815         * lib/unistd.in.h (_gl_directory_name): New prototype.
6816         * lib/fchdir.c (_gl_directory_name): Implement it.
6817         (fchdir): Use it to simplify implementation.
6818         * lib/fdopendir.c (fdopendir) [REPLACE_FCHDIR]: Use metadata from
6819         fchdir, when available, to avoid calling [f]chdir().
6820
6821         fdopendir: split into its own module
6822         * lib/openat.c (fdopendir): Move...
6823         * lib/fdopendir.c: ...into new file.
6824         * modules/fdopendir: New module.
6825         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR): New file.
6826         * modules/openat (Depends-on): Add fdopendir.
6827         * m4/openat.m4 (gl_FUNC_OPENAT): No longer need to check for
6828         fdopendir here.
6829         * modules/savedir (Depends-on): Only need fdopendir, not full
6830         openat.
6831         * lib/savedir.c (include): Use <dirent.h>, not "openat.h".
6832         * lib/openat.h (fdopendir): Drop prototype.
6833         * lib/dirent.in.h (fdopendir): Provide prototype.
6834         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): Add replacements.
6835         * modules/dirent (Makefile.am): Substitute them.
6836         * MODULES.html.sh (File system functions): Mention it.
6837         * doc/posix-functions/fdopendir.texi (fdopendir): Likewise.
6838         * modules/fdopendir-tests: New file.
6839         * tests/test-fdopendir.c: Likewise.
6840
6841         fchdir: use more consistent macro convention
6842         * lib/fcntl.in.h (_gl_register_fd): Move declaration to unistd.
6843         * lib/sys_stat.in.h (rpl_fstat): Declare via make-time
6844         REPLACE_FCHDIR, rather than relying on config.h macros.
6845         * lib/unistd.in.h (fchdir): Move all fchdir internal declarations
6846         inside a single make-time REPLACE_FCHDIR block, rather than using
6847         the config.h FCHDIR_REPLACEMENT.
6848         * m4/fchdir.m4 (gl_FUNC_FCHDIR): REPLACE_FCHDIR was already
6849         AC_SUBST'd, also AC_DEFINE it.  Don't define FCHDIR_REPLACEMENT.
6850         Manage fstat replacement.
6851         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Pick up
6852         REPLACE_FCHDIR.
6853         * modules/sys_stat (Files): Add m4/unistd_h.m4.
6854         (Makefile.am): Substitute REPLACE_FCHDIR.
6855         * lib/close.c (rpl_close): Use REPLACE_FCHDIR, not
6856         FCHDIR_REPLACEMENT.
6857         * lib/dup-safer.c (dup_safer): Likewise.
6858         * lib/dup2.c (rpl_dup2): Likewise.
6859         * lib/dup3.c (rpl_dup3): Likewise.
6860         * lib/open.c (rpl_open): Likewise.
6861
6862         fchdir: simplify error handling, and support dup3
6863         * modules/fchdir (Depends-on): Use strdup-posix, not strdup.  Add
6864         stdbool, malloc-posix, realloc-posix.
6865         * lib/fchdir.c (struct dir_info_t): Delete saved_errno.
6866         (ensure_dirs_slot): Return false on allocation failure.
6867         (rpl_dup2): Delete.
6868         (_gl_register_dup): New function.
6869         (_gl_unregister_fd, rpl_opendir, rpl_dup): Update callers.
6870         (_gl_register_fd): Close fd on allocation failure.
6871         * lib/fcntl.in.h (_gl_register_fd): Update signature.
6872         * lib/unistd.in.h (_gl_register_dup) [FCHDIR_REPLACEMENT]: New
6873         prototype.
6874         (rpl_dup2_fchdir): Delete prototype.
6875         * lib/open.c (open): Update caller.
6876         * lib/dup2.c (dup2): Track fchdir metadata.
6877         * lib/dup3.c (dup3): Likewise.
6878         * m4/dup2.m4 (gl_REPLACE_DUP2): New macro.
6879         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Use it.
6880
6881 2009-09-02  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
6882
6883         * gnulib-tool (func_create_testdir, func_create_megatestdir): Use
6884         AC_CONFIG_HEADERS instead of AM_CONFIG_HEADER. Use AC_CONFIG_FILES and
6885         don't pass arguments to AC_OUTPUT.
6886
6887 2009-09-02  Bruno Haible  <bruno@clisp.org>
6888
6889         * modules/mkdtemp (License): Relicense under LGPLv2+.
6890         Reported by Paolo Bonzini.
6891
6892 2009-09-02  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
6893
6894         Replace uses of obsolete autoconf macros in Jim's modules.
6895         The Autoconf macros AC_TRY_CPP, AC_TRY_COMPILE, AC_TRY_LINK and
6896         AC_TRY_RUN have been obsolete since Autoconf 2.55, and each use
6897         can evoke a warning from autoconf when run with -Wobsolete
6898         enabled.  They were declared obsolete for good reasons (see
6899         the `AC_FOO_IFELSE vs AC_TRY_FOO' node in the Autoconf manual,
6900         recently renamed to `AC_ACT_IFELSE vs AC_TRY_ACT'), and we
6901         should not continue using the deprecated macros.
6902         * m4/d-type.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_TYPE): Replace
6903         obsolete Autoconf macros with modern counterparts.
6904         * m4/dirfd.m4 (gl_FUNC_DIRFD): Likewise.
6905         * m4/dos.m4 (gl_AC_DOS): Likewise.
6906         * m4/fpending.m4 (gl_FUNC_FPENDING): Likewise.
6907         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Likewise.
6908         * m4/getloadavg.m4 (gl_PREREQ_GETLOADAVG): Likewise.
6909         * m4/jm-winsz1.m4 (gl_WINSIZE_IN_PTEM): Likewise.
6910         * m4/link-follow.m4 (gl_AC_FUNC_LINK_FOLLOWS_SYMLINK): Likewise.
6911         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Likewise.
6912         * m4/mkdir-slash.m4 (gl_FUNC_MKDIR_TRAILING_SLASH): Likewise.
6913         * m4/mode_t.m4 (gl_PROMOTED_TYPE_MODE_T): Likewise.
6914         * m4/rename-dest-slash.m4 (gl_FUNC_RENAME_TRAILING_DEST_SLASH):
6915         Likewise.
6916         * m4/rename.m4 (gl_FUNC_RENAME): Likewise.
6917         * m4/rmdir-errno.m4 (gl_FUNC_RMDIR_NOTEMPTY): Likewise.
6918         * m4/rpmatch.m4 (gl_PREREQ_RPMATCH): Likewise.
6919         * m4/st_dm_mode.m4 (AC_STRUCT_ST_DM_MODE): Likewise.
6920         * m4/stat-time.m4 (gl_STAT_TIME): Likewise.
6921         * m4/utimes-null.m4 (gl_FUNC_UTIMES_NULL): Likewise.
6922
6923 2009-09-01  Eric Blake  <ebb9@byu.net>
6924
6925         fchdir: fix off-by-one bug in previous patch
6926         * lib/fchdir.c (rpl_fstat): Use correct bounds.
6927         (_gl_unregister_fd): Delete useless if.
6928
6929 2009-09-01  Daniel P. Berrange  <berrange@redhat.com>
6930
6931         maint.mk: sort the list of syntax-check rules
6932         * top/maint.mk (syntax-check-rules): Sort syntax-check rules, so it's
6933         easier to get a sense of progress when the rules are run sequentially
6934         and take a long time.
6935
6936 2009-09-01  Simon Josefsson  <simon@josefsson.org>
6937
6938         * modules/arpa_inet: Use $(MKDIR_P) instead of @MKDIR_P@.
6939         * modules/netinet_in: Likewise.
6940         * modules/sys_file: Likewise.
6941         * modules/sys_ioctl: Likewise.
6942         * modules/sys_select: Likewise.
6943         * modules/sys_socket: Likewise.
6944         * modules/sys_stat: Likewise.
6945         * modules/sys_time: Likewise.
6946         * modules/sys_times: Likewise.
6947         * modules/sys_utsname: Likewise.
6948         * modules/sys_wait: Likewise.
6949
6950 2009-09-01  Jim Meyering  <meyering@redhat.com>
6951
6952         fts: help ensure that return values are not ignored
6953         * lib/fts_.h (__GNUC_PREREQ): Define.
6954         (__attribute_warn_unused_result__): Define.
6955         (fts_children, fts_close, fts_open, fts_read): Declare with
6956         __attribute_warn_unused_result__.
6957
6958         fts: fts_close now fails also when closing a dir file descriptor fails
6959         * lib/fts.c (fts_close): Detect close failure, not just fchdir failure,
6960         and propagate to caller, along with errno.
6961
6962         announce-gen: correct formatting in --help output
6963         * build-aux/announce-gen (usage): Move the one-line description in
6964         --help output "up", to where it belongs, just after Usage:.
6965
6966 2009-08-31  Eric Blake  <ebb9@byu.net>
6967
6968         fchdir: port to mingw
6969         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Check for mingw bug.
6970         * lib/open.c (open) [FCHDIR_REPLACEMENT]: If directories can't be
6971         opened, then use a substitute.
6972         * lib/sys_stat.in.h (fstat) [REPLACE_OPEN_DIRECTORY]: Declare
6973         replacement.
6974         * lib/fchdir.c (fstat) [REPLACE_OPEN_DIRECTORY]: Implement it.
6975         (_gl_register_fd): No need to check stat if open already filters
6976         all directories.
6977         (fchdir): Fix error condition to match POSIX.
6978         * modules/fchdir (Depends-on): Add sys_stat.
6979         * doc/posix-functions/open.texi (open): Document the limitation.
6980         * modules/fchdir-tests: New file.
6981         * tests/test-fchdir.c: Likewise.
6982
6983         canonicalize: allow cross-testing from cygwin to mingw
6984         * modules/canonicalize-tests (configure.ac): Define HAVE_SYMLINK.
6985         (Makefile.am): Pass it through TESTS_ENVIRONMENT.
6986         * modules/canonicalize-lgpl-tests (configure.ac, Makefile.am):
6987         Likewise.
6988         * tests/test-canonicalize.sh: Also skip test if 'ln -s' works, but
6989         target does not support symlinks.
6990         * tests/test-canonicalize-lgpl.sh: Likewise.
6991
6992         chown: avoid compilation warning on mingw
6993         * m4/chown.m4 (gl_FUNC_CHOWN): Recognize missing chown.
6994         * lib/chown.c (rpl_chown) [!HAVE_CHOWN]: Always return failure on
6995         mingw.
6996         * lib/lchown.c (lchown) [!HAVE_CHOWN]: Likewise.
6997         * modules/chown (Depends-on): Add errno.
6998
6999 2009-08-31  Stefano Lattarini  <stefano.lattarini@gmail.com>  (tiny change)
7000
7001         * gnulib-tool: Fix test whether $CONFIG_SHELL has a working 'echo'
7002         command.
7003
7004 2009-08-31  Jim Meyering  <meyering@redhat.com>
7005
7006         canonicalize: remove useless initialization
7007         * lib/canonicalize.c (canonicalize_filename_mode): Remove useless
7008         initialization of local, "end".
7009
7010 2009-08-30  Bruno Haible  <bruno@clisp.org>
7011
7012         Fix an unnecessary error on Solaris 10 on NFSv3 file systems.
7013         * lib/set-mode-acl.c (qset_acl) [Solaris 10 new]: Treat EOPNOTSUPP like
7014         ENOSYS.
7015
7016 2009-08-30  Bruno Haible  <bruno@clisp.org>
7017
7018         * tests/test-pipe-filter-ii1.sh: Prefer /usr/xpg6/bin/tr over
7019         /usr/xpg4/bin/tr when it exists.
7020         * tests/test-pipe-filter-gi1.sh: Likewise.
7021
7022 2009-08-30  Bruno Haible  <bruno@clisp.org>
7023
7024         Work around deficient /usr/bin/id program on Solaris.
7025         * tests/test-file-has-acl.sh (ID): New variable.
7026         * tests/test-set-mode-acl.sh (ID): Likewise.
7027         * tests/test-copy-acl.sh (ID): Likewise.
7028         * tests/test-copy-file.sh (ID): Likewise.
7029
7030 2009-08-30  Bruno Haible  <bruno@clisp.org>
7031
7032         New module 'xstriconveh'.
7033         * lib/xstriconveh.h: New file.
7034         * lib/xstriconveh.c: New file.
7035         * modules/xstriconveh: New file.
7036
7037 2009-08-30  Bruno Haible  <bruno@clisp.org>
7038
7039         Make it easier to use mem_cd_iconveh.
7040         * lib/striconveh.h (iconveh_t): New type.
7041         (iconveh_open, iconveh_close): New declarations.
7042         (mem_cd_iconveh, str_cd_iconveh): Replace the three iconv_t arguments
7043         with a single 'const iconveh_t *' argument.
7044         * lib/striconveh.c (iconveh_open, iconveh_close): New functions.
7045         (mem_cd_iconveh, str_cd_iconveh): Replace the three iconv_t arguments
7046         with a single 'const iconveh_t *' argument.
7047         (mem_iconveh, str_iconveh): Use iconveh_open, iconveh_close.
7048         * tests/test-striconveh.c (main): Update.
7049         * NEWS: Mention the change.
7050
7051 2009-08-30  Bruno Haible  <bruno@clisp.org>
7052
7053         * doc/posix-functions/iconv_open.texi: Mention indirect conversion
7054         problem.
7055
7056 2009-08-30  Bruno Haible  <bruno@clisp.org>
7057
7058         Work around iconv_open problem on Solaris.
7059         * lib/iconv_open-solaris.gperf: New file.
7060         * lib/iconv_open.c (ICONV_FLAVOR_SOLARIS): New macro.
7061         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN): Also handle Solaris.
7062         * modules/iconv_open (Files): Add lib/iconv_open-solaris.gperf.
7063         (Makefile.am): Add rule for iconv_open-solaris.h. Augment
7064         BUILT_SOURCES, MOSTLYCLEANFILES, MAINTAINERCLEANFILES, EXTRA_DIST.
7065         * doc/posix-functions/iconv_open.texi: Mention the Solaris problem.
7066
7067 2009-08-29  Jim Meyering  <meyering@redhat.com>
7068
7069         maint.mk: remove more coreutils-specific targets; XZ_OPT=-9ev
7070         * top/maint.mk (cvs-check): Remove target; it was just an alias
7071         to the better-named vc-diff-check.
7072         (maintainer-distcheck): Remove rule.  It was used only from
7073         the (alpha/beta/major) target, and all of its commands but one
7074         were coreutils-specific.
7075         (vc-dist): Remove rule.
7076         (alpha beta major): Run "$(MAKE) distcheck" explicitly.
7077         Run vc-diff-check, not vc-dist.
7078         Run $(MAKE) dist with XZ_OPT=-9ev.  Note spelling, with "-".
7079
7080 2009-08-27  Bruno Haible  <bruno@clisp.org>
7081
7082         * tests/test-bitrotate.c (main): Remove test that uses a shift count
7083         of 0.
7084
7085 2009-08-27  Bruno Haible  <bruno@clisp.org>
7086
7087         * tests/test-func.c (main): Don't verify sizeof __func__ on SunPRO C
7088         compilers.
7089         * doc/func.texi: Document the SunPRO C bug.
7090
7091 2009-08-27  Bruno Haible  <bruno@clisp.org>
7092
7093         Fix link error on Solaris.
7094         * tests/test-parse-duration.c (xstrdup): Remove function.
7095
7096 2009-08-26  Pádraig Brady  <P@draigbrady.com>
7097
7098         ignore-value: handle pointer types, too
7099         * lib/ignore-value.h (__attribute__): Remove definition.
7100         (ignore_value): Remove use of "__attribute__ ((unused))" in favor
7101         of a more concise and more-often effective "(void) i" statement.
7102         (ignore_ptr): New function to suppress warnings from functions that
7103         return pointers, and to make it explicit that one function doesn't
7104         handle all cases.
7105
7106 2009-08-25  Bruno Haible  <bruno@clisp.org>
7107
7108         dup2: work around a Linux bug.
7109         * m4/dup2.m4 (gl_FUNC_DUP2): Test for the Linux bug.
7110         * lib/dup2.c (rpl_dup2): Correct the return value if it is -EBADF.
7111         * doc/posix-functions/dup2.texi: Mention the Linux bug.
7112         Reported by Simon Josefsson.
7113
7114 2009-08-25  Jim Meyering  <meyering@redhat.com>
7115
7116         libguestfs uses gnulib
7117         * users.txt: Add libguestfs.
7118
7119 2009-08-24  Eric Blake  <ebb9@byu.net>
7120
7121         dup2, pipe2: fix some recent test failures on cygwin 1.5.x
7122         * lib/pipe2.c (includes): Add binary-io.h.
7123         * lib/dup2.c (rpl_dup2): Correct buggy errno value.
7124
7125 2009-08-24  Bruno Haible  <bruno@clisp.org>
7126
7127         Tolerate declared but missing accept4 syscall.
7128         * lib/accept4.c (accept4): Invoke original accept4 function first, if
7129         available.
7130         * lib/sys_socket.in.h (accept4): If the function is already present,
7131         override it.
7132         * m4/accept4.m4 (gl_FUNC_ACCEPT4): Remove AC_LIBOBJ invocation.
7133         * modules/accept4 (Makefile.am): Compile accept4.c always.
7134         Reported by Paolo Bonzini and Eric Blake.
7135
7136 2009-08-23  Bruno Haible  <bruno@clisp.org>
7137
7138         New module 'accept4'.
7139         * lib/sys_socket.in.h (accept4): New declaration.
7140         * lib/accept4.c: New file.
7141         * m4/accept4.m4: New file.
7142         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_H_DEFAULTS): Initialize
7143         GNULIB_ACCEPT4, HAVE_ACCEPT4.
7144         * modules/sys_socket (Makefile.am): Substitute GNULIB_ACCEPT4,
7145         HAVE_ACCEPT4.
7146         * modules/accept4: New file.
7147         * doc/glibc-functions/accept4.texi: Mention the new module.
7148
7149 2009-08-24  Jim Meyering  <meyering@redhat.com>
7150
7151         progname: also set global program_invocation_name, when possible
7152         Before this change, a libtool-enabled program that calls glibc's
7153         error function would report the program name as
7154         "/abs/dir/.libs/lt-program_name" rather than the desired program_name.
7155         * modules/progname (configure.ac): Check for a declaration of
7156         program_invocation_name.
7157         * lib/progname.c:  Include <errno.h>.
7158         (set_program_name) [HAVE_DECL_PROGRAM_INVOCATION_NAME]:
7159         Set program_invocation_name.
7160
7161 2009-08-23  Bruno Haible  <bruno@clisp.org>
7162
7163         * lib/dup3.c: Include <string.h>.
7164
7165 2009-08-23  Bruno Haible  <bruno@clisp.org>
7166
7167         * lib/dup3.c (dup3): Test only once whether the system actually exists.
7168         * lib/pipe2.c (pipe2): Likewise.
7169         Suggested by Eric Blake.
7170
7171 2009-08-23  Bruno Haible  <bruno@clisp.org>
7172
7173         Tolerate declared but missing dup3 syscall.
7174         * lib/dup3.c (dup3): Invoke original dup3 function first, if available.
7175         * lib/unistd.in.h (dup3): If the function is already present,
7176         override it.
7177         * m4/dup3.m4 (gl_FUNC_DUP3): Remove AC_LIBOBJ invocation.
7178         * modules/dup3 (Makefile.am): Compile dup3.c always.
7179         Reported by Paolo Bonzini.
7180
7181 2009-08-23  Bruno Haible  <bruno@clisp.org>
7182
7183         Tolerate declared but missing pipe2 syscall.
7184         * lib/pipe2.c (pipe2): Invoke original pipe2 function first, if
7185         available.
7186         * lib/unistd.in.h (pipe2): If the function is already present,
7187         override it.
7188         * m4/pipe2.m4 (gl_FUNC_PIPE2): Remove AC_LIBOBJ invocation.
7189         * modules/pipe2 (Makefile.am): Compile pipe2.c always.
7190         Reported by Paolo Bonzini.
7191
7192 2009-08-23  Bruno Haible  <bruno@clisp.org>
7193
7194         * lib/pipe2.c (pipe2): Move #ifs inside function.
7195
7196 2009-08-22  Joel E. Denny  <jdenny@clemson.edu>
7197
7198         quotearg: document limitations of quote_these_too
7199         * lib/quotearg.c (quotearg_buffer_restyled): Add comments where
7200         those limitations are created.
7201         * lib/quotearg.h (set_char_quoting): Document that digits and
7202         letters that are special after backslash are not permitted.
7203         (quotearg_char): Cross-reference set_char_quoting documentation.
7204
7205 2009-08-23  Joel E. Denny  <jdenny@clemson.edu>
7206
7207         quotearg: implement custom_quoting_style
7208         * lib/quotearg.c: (struct quoting_options): Add left_quote and
7209         right_quote fields.
7210         (set_custom_quoting): New public function.
7211         (quotearg_buffer_restyled): Add left_quote and right_quote
7212         arguments, handle them very much like locale quoting, and update
7213         all uses.
7214         (quotearg_n_custom): New public function.
7215         (quotearg_n_custom_mem): New public function.
7216         (quotearg_custom): New public function.
7217         (quotearg_custom_mem): New public function.
7218         * lib/quotearg.h: Prototype and document new public functions.
7219         (enum quoting_style): For escape_quoting_style and
7220         clocale_quoting_style, comment that QA_SPLIT_TRIGRAPHS is
7221         ignored even though they're otherwise like c_quoting_style.
7222         Add custom_quoting_style member and document with comparison to
7223         clocale_quoting_style.
7224         * tests/test-quotearg.c (custom_quotes): New array.
7225         (custom_results): New array.
7226         (main): Extend to test custom quoting.
7227
7228 2009-08-22  Joel E. Denny  <jdenny@clemson.edu>
7229
7230         quotearg: fix right quote escaping when it's in quote_these_too
7231         * lib/quotearg.c (quotearg_buffer_restyled): Upon seeing a right
7232         quote, be sure to prepend only one backslash.
7233         * tests/test-quotearg.c (use_quote_double_quotes): New function.
7234         (main): Test it.
7235
7236 2009-08-22  Joel E. Denny  <jdenny@clemson.edu>
7237
7238         quotearg-tests: test escaping of embedded locale quotes
7239         * tests/test-quotearg.c (struct result_strings): Add member for
7240         new input.
7241         (LQ_ENC, RQ_ENC, RQ_ESC): New macros.
7242         (inputs): Add new input.
7243         (results_g): Add expected results.
7244         (flag_results): Likewise.
7245         (locale_results): Likewise.
7246         (compare_strings): Check those.
7247
7248 2009-08-23  Bruno Haible  <bruno@clisp.org>
7249
7250         Tests for module 'dup3'.
7251         * modules/dup3-tests: New file.
7252         * tests/test-dup3.c: New file.
7253
7254         New module 'dup3'.
7255         * lib/unistd.in.h (dup3): New declaration.
7256         * lib/dup3.c: New file.
7257         * m4/dup3.m4: New file.
7258         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_DUP3 and
7259         HAVE_DUP3.
7260         * modules/unistd (Makefile.am): Substitute GNULIB_DUP3 and HAVE_DUP3.
7261         * modules/dup3: New file.
7262         * doc/glibc-functions/dup3.texi: Mention the new module.
7263
7264 2009-08-23  Bruno Haible  <bruno@clisp.org>
7265
7266         Tweak the dup2 test.
7267         * tests/test-dup2.c (main): Create the test file empty. Verify that an
7268         out-of-range fd yields EBADF. Verify that after writing to /dev/null,
7269         the test file is still empty. Fix argument order of lseek.
7270
7271 2009-08-23  Bruno Haible  <bruno@clisp.org>
7272
7273         Avoid test link errors when the modules getopt-gnu, gettext are used.
7274         * modules/getopt-posix-tests (Makefile.am): Define test_getopt_LDADD.
7275         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
7276
7277 2009-08-23  Bruno Haible  <bruno@clisp.org>
7278
7279         Fix getdtablesize() on mingw.
7280         * lib/getdtablesize.c (getdtablesize): Implement differently.
7281         * lib/unistd.in.h (getdtablesize): Improve comment.
7282
7283 2009-08-23  Bruno Haible  <bruno@clisp.org>
7284
7285         New module 'mkostemp'.
7286         Based on Ulrich Drepper's 2007-08-10 change in glibc.
7287         * lib/stdlib.in.h (mksotemp): New declaration.
7288         * lib/mkostemp.c: New file, from glibc with modifications.
7289         * lib/tempname.h (GT_FILE): Remove outdated comment.
7290         (gen_tempname): Add flags argument.
7291         * lib/tempname.c (__GT_BIGFILE): Remove macro.
7292         (__GT_FILE): Map to 1.
7293         (small_open, large_open): Remove macros.
7294         (__gen_tempname): Add flags argument. Remove code for __GT_BIGFILE.
7295         * lib/mkstemp.c (mkstemp): Update.
7296         * lib/mkdtemp.c (mkdtemp): Likewise.
7297         * m4/mkostemp.m4: New file.
7298         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_MKOSTEMP,
7299         HAVE_MKOSTEMP.
7300         * modules/stdlib (Makefile.am): Substitute GNULIB_MKOSTEMP,
7301         HAVE_MKOSTEMP.
7302         * modules/mkostemp: New file, based on modules/mkstemp.
7303         * doc/glibc-functions/mkostemp.texi: Mention the new module.
7304         * NEWS: Mention the change.
7305
7306 2009-08-23  Bruno Haible  <bruno@clisp.org>
7307
7308         * lib/pipe2.c (pipe2): Support O_TEXT, O_BINARY on all platforms.
7309         Reported by Eric Blake.
7310
7311 2009-08-23  Bruno Haible  <bruno@clisp.org>
7312
7313         * lib/pipe2.c (pipe2): Fix test of fcntl's return value.
7314         Reported by Eric Blake.
7315
7316 2009-08-23  Bruno Haible  <bruno@clisp.org>
7317
7318         * modules/fchdir (Depends-on): Use fcntl-h instead of fcntl.
7319         * modules/pipe2 (Depends-on): Likewise.
7320
7321 2009-08-23  Eric Blake  <ebb9@byu.net>
7322
7323         fcntl-h: add O_TTY_INIT support
7324         * lib/fcntl.in.h (O_TTY_INIT): Support another POSIX macro.
7325         * tests/test-fcntl-h.c (o): Test it.
7326         * doc/posix-headers/fcntl.texi (fcntl.h): Update documentation.
7327
7328         fcntl-h: rename from fcntl, in preparation for fcntl(2)
7329         * modules/fcntl: Move <fcntl.h> header replacement...
7330         * modules/fcntl-h: ...to new name, so as not to collide with
7331         like-named function.
7332         * tests/test-fcntl.c: Rename...
7333         * tests/test-fcntl-h.c: ...to this.  Test FD_CLOEXEC.
7334         * modules/fcntl-tests: Rename...
7335         * modules/fcntl-h-tests: ...to this.  Update test file name.
7336         * modules/chdir-long (Depends-on): Update clients.
7337         * modules/chdir-safer (Depends-on): Likewise.
7338         * modules/fcntl-safer (Depends-on): Likewise.
7339         * modules/fts (Depends-on): Likewise.
7340         * modules/mkancesdirs (Depends-on): Likewise.
7341         * modules/mkdir-p (Depends-on): Likewise.
7342         * modules/open (Depends-on): Likewise.
7343         * modules/savewd (Depends-on): Likewise.
7344         * MODULES.html.sh (systems lacking POSIX:2008): Update name.
7345         * doc/posix-headers/fcntl.texi (fcntl.h): Update documentation.
7346
7347 2009-08-22  Bruno Haible  <bruno@clisp.org>
7348
7349         * modules/binary-io (License): Relicense under LGPL.
7350         * modules/pipe2 (License): Likewise.
7351
7352 2009-08-22  Bruno Haible  <bruno@clisp.org>
7353
7354         * lib/pipe-filter-ii.c (pipe_filter_ii_execute): Fix test of fcntl's
7355         return value.
7356         * lib/pipe-filter-gi.c (filter_init): Likewise.
7357         Reported by Eric Blake.
7358
7359 2009-08-22  Bruno Haible  <bruno@clisp.org>
7360
7361         * lib/pipe.c (create_pipe): Use pipe2 instead of _pipe.
7362         * modules/pipe (Depends-on): Add pipe2.
7363
7364 2009-08-22  Bruno Haible  <bruno@clisp.org>
7365
7366         Tests for module 'pipe2'.
7367         * modules/pipe2-tests: New file.
7368         * tests/test-pipe2.c: New file.
7369
7370         New module 'pipe2'.
7371         * lib/unistd.in.h (pipe2): New declaration.
7372         * lib/pipe2.c: New file.
7373         * m4/pipe2.m4: New file.
7374         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_PIPE2 and
7375         HAVE_PIPE2.
7376         * modules/unistd (Makefile.am): Substitute GNULIB_PIPE2 and HAVE_PIPE2.
7377         * modules/pipe2: New file.
7378         * doc/glibc-functions/pipe2.texi: Mention the new module.
7379
7380 2009-08-22  Bruno Haible  <bruno@clisp.org>
7381
7382         Reference some new glibc functions.
7383         * doc/glibc-functions/accept4.texi: New file.
7384         * doc/glibc-functions/dup3.texi: New file.
7385         * doc/glibc-functions/mkostemp.texi: New file.
7386         * doc/glibc-functions/pipe2.texi: New file.
7387         * doc/gnulib.texi (Glibc stdlib.h): Refer to mkostemp.
7388         (Glibc sys/socket.h): Refer to accept4.
7389         (Glibc unistd.h): Refer to dup3, pipe2.
7390         Reported by Eric Blake.
7391
7392 2009-08-22  Jim Meyering  <meyering@redhat.com>
7393             Bruno Haible  <bruno@clisp.org>
7394
7395         annotate automake snippets with $(AM_V_GEN) and $(AM_V_at)
7396         This makes it so packages using automake-1.11's silent-rules option
7397         can print e.g., a single "GEN    configmake.h" line, rather than
7398         the 30+ statements that perform the job.  If you want to see the
7399         actual commands, you can still run "make V=1".
7400         * modules/alloca-opt: Add $(AM_V_GEN) and $(AM_V_at) prefixes
7401         so that make output is abbreviated when those variables are defined
7402         appropriately.
7403         * modules/argz: Likewise.
7404         * modules/arpa_inet: Likewise.
7405         * modules/byteswap: Likewise.
7406         * modules/configmake: Likewise.
7407         * modules/dirent: Likewise.
7408         * modules/errno: Likewise.
7409         * modules/fcntl: Likewise.
7410         * modules/float: Likewise.
7411         * modules/fnmatch: Likewise.
7412         * modules/getopt-posix: Likewise.
7413         * modules/glob: Likewise.
7414         * modules/iconv_open: Likewise.
7415         * modules/inttypes: Likewise.
7416         * modules/localcharset: Likewise.
7417         * modules/locale: Likewise.
7418         * modules/math: Likewise.
7419         * modules/netdb: Likewise.
7420         * modules/netinet_in: Likewise.
7421         * modules/poll: Likewise.
7422         * modules/posix_spawnp-tests: Likewise.
7423         * modules/sched: Likewise.
7424         * modules/search: Likewise.
7425         * modules/selinux-h: Likewise.
7426         * modules/signal: Likewise.
7427         * modules/spawn: Likewise.
7428         * modules/stdarg: Likewise.
7429         * modules/stdbool: Likewise.
7430         * modules/stddef: Likewise.
7431         * modules/stdint: Likewise.
7432         * modules/stdio: Likewise.
7433         * modules/stdlib: Likewise.
7434         * modules/string: Likewise.
7435         * modules/strings: Likewise.
7436         * modules/sys_file: Likewise.
7437         * modules/sys_ioctl: Likewise.
7438         * modules/sys_select: Likewise.
7439         * modules/sys_socket: Likewise.
7440         * modules/sys_stat: Likewise.
7441         * modules/sys_time: Likewise.
7442         * modules/sys_times: Likewise.
7443         * modules/sys_utsname: Likewise.
7444         * modules/sys_wait: Likewise.
7445         * modules/sysexits: Likewise.
7446         * modules/time: Likewise.
7447         * modules/unistd: Likewise.
7448         * modules/wchar: Likewise.
7449         * modules/wctype: Likewise.
7450
7451 2009-08-22  Jim Meyering  <meyering@redhat.com>
7452
7453         announce-gen: detect write failure
7454         * build-aux/announce-gen: Add Coda at end.
7455         Remove equivalent-but-more-verbose block at top.
7456
7457 2009-08-19  Akim Demaille  <demaille@gostai.com>
7458
7459         bootstrap: --help to stdout.
7460         * bootstrap (usage): Don't send --help to stderr.
7461         Use a here doc instead of a long string.
7462
7463 2009-08-21  Eric Blake  <ebb9@byu.net>
7464
7465         test-popen-safer: split from test-popen
7466         * tests/test-popen.c (main): Move...
7467         * tests/test-popen.h: ...into new file.
7468         * tests/test-popen-safer2.c: New file.
7469         * modules/popen-tests (Files): Add test-popen.h.
7470         * modules/popen-safer-tests (Files): Add test-popen-safer2.c.
7471         Suggested by Bruno Haible.
7472
7473         test-fcntl-safer: split from test-open
7474         * tests/test-open.c (main): Move...
7475         * tests/test-open.h: ...into new file.
7476         * tests/test-fcntl-safer.c: New file.
7477         * modules/open-tests (Files): Add test-open.h.
7478         * modules/fcntl-safer-tests: New file.
7479         Suggested by Bruno Haible.
7480
7481         test-fopen-safer: split from test-fopen
7482         * tests/test-fopen.c (main): Move...
7483         * tests/test-fopen.h: ...into new file.
7484         * tests/test-fopen-safer.c: New file.
7485         * modules/fopen-tests (Files): Add test-fopen.h.
7486         * modules/fopen-safer-tests: New file.
7487         Suggested by Bruno Haible.
7488
7489 2009-08-21  Paolo Bonzini  <bonzini@gnu.org>
7490
7491         popen-safer: test O_CLOEXEC at run-time.
7492         * lib/popen-safer.c: Test O_CLOEXEC at run-time.
7493
7494 2009-08-21  Paolo Bonzini  <bonzini@gnu.org>
7495
7496         fcntl: move more flags to the header
7497         * lib/cloexec.c: Do not define FD_CLOEXEC here.
7498         * lib/popen-safer.c: Do not alias O_NOINHERIT to O_CLOEXEC here.
7499         * lib/fcntl.in.h: Do both things here.
7500
7501 2009-08-21  Jim Meyering  <meyering@redhat.com>
7502
7503         consistently remove $@-t before redirecting to it
7504         * modules/argz: Remove $@-t and $@ before redirecting to the former.
7505         * modules/alloca-opt: Likewise.
7506         * modules/byteswap: Likewise.
7507         * modules/fnmatch: Likewise.
7508         * modules/getopt-posix: Likewise.
7509         * modules/glob: Likewise.
7510         * modules/poll: Likewise.
7511         * modules/posix_spawnp-tests: Likewise.
7512         * modules/sys_socket: Likewise.
7513         * modules/sysexits: Likewise.
7514
7515 2009-08-21  Eric Blake  <ebb9@byu.net>
7516
7517         popen: simplify access to original popen
7518         * lib/popen.c (rpl_popen): No need to worry about popen being a
7519         macro.
7520         Reported by Bruno Haible.
7521
7522 2009-08-20  Eric Blake  <ebb9@byu.net>
7523
7524         build: avoid some compiler warnings
7525         * lib/selinux-at.h: Use dir_fd, not dirfd, to avoid shadowing.
7526         * lib/exclude.c (fnmatch_pattern_has_wildcards): Use correct
7527         type.
7528         (new_exclude_segment, excluded_file_pattern_p)
7529         (excluded_file_name_p): Reduce scope.
7530         * lib/vasnprintf.c (decimal_point_char): Avoid warning on
7531         old-style declaration.
7532
7533 2009-08-20  Simon Josefsson  <simon@josefsson.org>
7534
7535         * tests/test-exclude1.sh: Handle Windows EOL.
7536         * tests/test-exclude2.sh: Likewise.
7537         * tests/test-exclude3.sh: Likewise.
7538         * tests/test-exclude4.sh: Likewise.
7539         * tests/test-exclude5.sh: Likewise.
7540         * tests/test-exclude6.sh: Likewise.
7541         * tests/test-exclude7.sh: Likewise.
7542
7543 2009-08-19  Akim Demaille  <demaille@gostai.com>
7544
7545         bootstrap: find sha1sum when named gsha1sum.
7546         * bootstrap (find_tool): New.
7547         ($SHA1SUM): New.
7548         Use it.
7549
7550 2009-08-20  Jim Meyering  <meyering@redhat.com>
7551
7552         maint.mk: _header_without_use: fix a quoting bug and remove a bash'ism
7553         * top/maint.mk (_header_without_use): Use "\\\\", not "\\" in the sed
7554         expression that converts "." in a file name to "\." in the resulting
7555         regexp.  Start with a dummy statement, so that prior shell variable
7556         definitions are expanded portably.  Reported by Simon Josefsson.
7557
7558 2009-08-20  Paolo Bonzini  <bonzini@gnu.org>
7559
7560         Fix polling for writeability of a screen buffer.
7561         * lib/poll.c: Distinguish input and screen buffers for the
7562         Win32 implementation.
7563         * lib/select.c: Likewise.
7564
7565 2009-08-19  Eric Blake  <ebb9@byu.net>
7566
7567         popen-safer: prevent popen from clobbering std descriptors
7568         * modules/popen-safer: New file.
7569         * lib/popen-safer.c: Likewise.
7570         * m4/stdio-safer.m4 (gl_POPEN_SAFER): New macro.
7571         * lib/stdio--.h (popen): Provide override.
7572         * lib/stdio-safer.h (popen_safer): Provide declaration.
7573         * tests/test-popen.c (includes): Partially test this.
7574         * modules/popen-safer-tests: New file, for more tests.
7575         * tests/test-popen-safer.c: Likewise.
7576         * MODULES.html.sh (file stream based Input/Output): Mention it.
7577
7578         tests: test some of the *-safer modules
7579         * modules/fopen-safer (Depends-on): Add fopen.
7580         * modules/fcntl-safer (Depends-on): Add fcntl.
7581         * modules/stdlib-safer (Depends-on): Add stdlib.
7582         (configure.ac): Set indicator.
7583         * modules/unistd-safer (configure.ac): Likewise.
7584         * modules/tmpfile-safer (configure.ac): Likewise.
7585         (Depends-on): Add tmpfile.
7586         * lib/stdio--.h (fopen, tmpfile): Don't override unless module is
7587         active.
7588         * tests/test-fopen.c (includes): Test safer versions when they are
7589         in use.
7590         * tests/test-open.c (includes): Likewise.
7591
7592         popen: fix cygwin 1.5 bug when stdin closed
7593         * doc/posix-functions/popen.texi (popen): Document cygwin bugs.
7594         * modules/popen: New file.
7595         * modules/popen-tests: Likewise.
7596         * tests/test-popen.c: Likewise.
7597         * m4/popen.m4: Likewise.
7598         * lib/popen.c: Likewise.
7599         * lib/stdio.in.h (popen): New declaration.
7600         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Add popen.
7601         * modules/stdio (Makefile.am): Likewise.
7602         * MODULES.html.sh (systems lacking POSIX:2008): Mention it.
7603
7604 2009-08-17  Joel E. Denny  <jdenny@clemson.edu>
7605
7606         maint.mk: give full control over update-copyright exclusions
7607         * top/maint.mk (VC_LIST_EXCEPT): Instead of ChangeLog, use
7608         ${VC_LIST_EXCEPT_DEFAULT-ChangeLog} as the default exclusion.
7609         (update-copyright): Don't force inclusion of top-level
7610         ChangeLog.  Don't force exclusion of all COPYING files, but make
7611         them the default exclusion instead.
7612
7613 2009-08-16  Bruno Haible  <bruno@clisp.org>
7614
7615         Fix test failures on Solaris 10.
7616         * tests/uniconv/test-u8-conv-from-enc.c (main): Disable autodetect_jp
7617         tests when Solaris iconv() is used.
7618         * tests/uniconv/test-u16-conv-from-enc.c (main): Likewise.
7619         * tests/uniconv/test-u32-conv-from-enc.c (main): Likewise.
7620         * tests/uniconv/test-u8-strconv-from-enc.c (main): Likewise.
7621         * tests/uniconv/test-u16-strconv-from-enc.c (main): Likewise.
7622         * tests/uniconv/test-u32-strconv-from-enc.c (main): Likewise.
7623
7624 2009-08-16  Bruno Haible  <bruno@clisp.org>
7625
7626         Fix test failures on Solaris 10.
7627         * tests/test-pipe-filter-ii1.sh: Determine the filename of a working
7628         'tr' program and pass it as first argument.
7629         * tests/test-pipe-filter-gi1.sh: Likewise.
7630         * tests/test-pipe-filter-ii1.c (main): Except the filename of a 'tr'
7631         program as first argument.
7632         * tests/test-pipe-filter-gi1.c (main): Likewise.
7633
7634 2009-08-16  Eric Blake  <ebb9@byu.net>
7635
7636         fpurge: fix previous commits
7637         * modules/fpurge (Makefile.am): Make replacement conditional,
7638         partially reverting 2007-04-29 change; missed in previous
7639         attempt.
7640         * m4/fpurge.m4 (gl_FUNC_FPURGE): Also compile fpurge.c when fpurge
7641         is missing.
7642
7643 2009-08-16  Bruno Haible  <bruno@clisp.org>
7644
7645         Clarify fpurge's effect on the file position.
7646         * lib/stdio.in.h (fpurge): Specify the file position after fpurge.
7647         * tests/test-fpurge.c (main): Make a second pass for checking the file
7648         position.
7649
7650 2009-08-16  Bruno Haible  <bruno@clisp.org>
7651
7652         * m4/fpurge.m4 (gl_FUNC_FPURGE): Don't compile fpurge.c if only the
7653         declaration of fpurge is missing.
7654         * tests/test-fpurge.c (main): Check that the file has not more contents
7655         than expected. Close the file before removing it.
7656
7657 2009-08-15  Eric Blake  <ebb9@byu.net>
7658
7659         fpurge: don't wrap working cygwin implementation
7660         * lib/fpurge.c (fpurge): Fix comment typo.
7661         * m4/fpurge.m4 (gl_FUNC_FPURGE): Detect BSD bug, allowing cygwin
7662         1.7 to avoid replacement.
7663         * tests/test-fpurge.c (main): Enhance test.
7664
7665 2009-08-15  Eric Blake  <ebb9@byu.net>
7666         and Jim Meyering  <meyering@redhat.com>
7667
7668         test-update-copyright: skip if perl is insufficient
7669         * tests/test-update-copyright.sh: Failure to run maintainer tool
7670         should not cause testsuite failure on cygwin 1.5.
7671
7672 2009-08-14  Eric Blake  <ebb9@byu.net>
7673
7674         doc: mention more functions added in cygwin 1.7.0
7675         * doc/posix-headers/limits.texi (limits.h): Update for recent
7676         cygwin additions.
7677         * doc/posix-headers/wordexp.texi (wordexp.h): Likewise.
7678         * doc/posix-functions/wordexp.texi (wordexp): Likewise.
7679         * doc/posix-functions/wordfree.texi (wordfree): Likewise.
7680         * doc/posix-functions/setlocale.texi (setlocale): Likewise.
7681         * doc/posix-functions/nl_langinfo.texi (nl_langinfo): Likewise.
7682
7683 2009-08-14  Eric Blake  <ebb9@byu.net>
7684
7685         maint.mk: simplify update-copyright rule
7686         * top/maint.mk (update-copyright-local): Delete, and document how
7687         to do it in cfg.mk instead.
7688         (update-copyright-exclude-regexp): Delete, and document how to do
7689         it in .x-update-copyright instead.
7690         (update-copyright): Simplify, thanks to VC_LIST_EXCEPT.  Don't
7691         exclude ChangeLog.
7692
7693 2009-08-14  Bruno Haible  <bruno@clisp.org>
7694
7695         * m4/wchar.m4 (gl_WCHAR_H): Undo invalid optimization in last commit.
7696
7697 2009-08-14  Joel E. Denny  <jdenny@clemson.edu>
7698
7699         maint.mk: support update-copyright-env
7700         * top/maint.mk (update-copyright-env): Define place-holder.
7701         (update-copyright): Expand $(update-copyright-env) before
7702         invoking update-copyright.
7703
7704 2009-08-14  Joel E. Denny  <jdenny@clemson.edu>
7705
7706         update-copyright: implement forced reformatting
7707         * build-aux/update-copyright: Implement and document
7708         UPDATE_COPYRIGHT_FORCE.
7709         * tests/test-update-copyright.sh: Test it.
7710
7711 2009-08-14  Eric Blake  <ebb9@byu.net>
7712         and Bruno Haible  <bruno@clisp.org>
7713
7714         stddef: fix NetBSD 5.0 NULL bug, rather than working around it
7715         * tests/test-locale.c: Revert previous patch related to NULL.
7716         * tests/test-stdio.c: Likewise.
7717         * tests/test-stdlib.c: Likewise.
7718         * tests/test-string.c: Likewise.
7719         * tests/test-unistd.c: Likewise.
7720         * modules/time-tests (Depends-on): Add verify.
7721         * modules/wchar-tests (Depends-on): Likewise.
7722         * tests/test-time.c: Test for NULL compliance.
7723         * tests/test-wchar.c: Likewise.
7724         * modules/locale (Depends-on): Add stddef.
7725         * modules/stdio (Depends-on): Likewise.
7726         * modules/stdlib (Depends-on): Likewise.
7727         * modules/string (Depends-on): Likewise.
7728         * modules/time (Depends-on): Likewise.
7729         * modules/unistd (Depends-on): Likewise.
7730         * modules/wchar (Depends-on): Likewise.
7731         * lib/locale.in.h (includes): Use <stddef.h> to fix NULL.
7732         * lib/stdlib.in.h (includes): Likewise.
7733         * lib/string.in.h (includes): Likewise.
7734         * lib/time.in.h (includes): Likewise.
7735         * lib/unistd.in.h (includes): Likewise.
7736         * m4/locale_h.m4 (gl_LOCALE_H): Replace locale.h if stddef.h was
7737         replaced.
7738         * m4/wchar.m4 (gl_WCHAR_H): Likewise.
7739         * m4/stddef_h.m4: New file.
7740         * modules/stddef: Likewise.
7741         * lib/stddef.in.h: Likewise.
7742         * modules/stddef-tests: Likewise.
7743         * tests/test-stddef.c: Likewise.
7744         * MODULES.html.sh (Basic types <stddef.h>): Mention new module.
7745         * doc/posix-headers/stddef.texi (stddef.h): Document the bug.
7746         * doc/posix-headers/locale.texi (locale.h): Likewise.
7747         * doc/posix-headers/stdio.texi (stdio.h): Likewise.
7748         * doc/posix-headers/stdlib.texi (stdlib.h): Likewise.
7749         * doc/posix-headers/string.texi (string.h): Likewise.
7750         * doc/posix-headers/time.texi (time.h): Likewise.
7751         * doc/posix-headers/unistd.texi (unistd.h): Likewise.
7752         * doc/posix-headers/wchar.texi (wchar.h): Likewise.
7753
7754 2009-08-14  Eric Blake  <ebb9@byu.net>
7755
7756         doc: improve git diff of texinfo files
7757         * .gitattributes: Add rule for *.texi files, with hint on how to
7758         use it.
7759         Copied from m4, and based on a report by Bruno Haible.
7760
7761 2009-08-14  Bruno Haible  <bruno@clisp.org>
7762
7763         Disable multithread support by default on Cygwin 1.5.x for real.
7764         * m4/threadlib.m4 (gl_THREADLIB_EARLY_BODY): Fix last commit.
7765
7766 2009-08-14  Joel E. Denny  <jdenny@clemson.edu>
7767
7768         update-copyright: much ado about intervals
7769         * build-aux/update-copyright: Implement and document
7770         UPDATE_COPYRIGHT_USE_INTERVALS to control expansion and collapse
7771         of copyright year intervals.
7772         Also, document UPDATE_COPYRIGHT_YEAR.
7773         * tests/test-update-copyright.sh: Test it.
7774
7775         update-copyright: convert 2-digit to 4-digit years
7776         * build-aux/update-copyright: Implement and document.
7777         * tests/test-update-copyright.sh: Update.
7778
7779 2009-08-14  Jim Meyering  <meyering@redhat.com>
7780
7781         test-exclude: avoid coreutils "make check" failure
7782         * tests/test-exclude.c (ARGMATCH_DIE_DECL) [ARGMATCH_DIE_DECL]: Define,
7783         just as in test-argmatch.c.
7784
7785 2009-08-13  Eric Blake  <ebb9@byu.net>
7786
7787         test-dup2: fix bad assumption
7788         * tests/test-dup2.c (main): Tolerate leaked fds from environment.
7789         Reported by Peter Breitenlohner <peb@mppmu.mpg.de>.
7790
7791         test-version-etc: fix CRLF portability issue
7792         * tests/test-version-etc.sh: Use tr, not sed, as not all sed
7793         recognize \r.
7794         * tests/test-argp-version-etc-1.sh: Likewise.
7795
7796         getopt: update client modules
7797         * modules/argp (Depends-on): Use getopt-gnu.
7798         * modules/git-merge-changelog (Depends-on): Likewise.
7799         * modules/long-options (Depends-on): Likewise.
7800         * modules/xstrtol (Depends-on): Likewise.
7801
7802 2009-08-13  Simon Josefsson  <simon@josefsson.org>
7803
7804         * tests/test-version-etc.sh: Don't fail on different
7805         project/version.  Don't fail on CRLF differences.  Rewrite to use
7806         multiple -e instead of multiple sed forks, suggested by Eric Blake
7807         <ebb9@byu.net>.
7808         * tests/test-argp-version-etc-1.sh: Likewise.
7809
7810 2009-08-13  Simon Josefsson  <simon@josefsson.org>
7811
7812         * tests/test-version-etc.sh: Don't fail on different
7813         project/version.
7814
7815 2009-08-12  Bruno Haible  <bruno@clisp.org>
7816
7817         Tests for modules 'getopt-posix', 'getopt-gnu'.
7818         * modules/getopt-posix-tests: New file.
7819         * tests/test-getopt.c: New file.
7820         * tests/test-getopt.h: New file.
7821         * tests/test-getopt_long.h: New file.
7822
7823         New modules 'getopt-posix', 'getopt-gnu'.
7824         * modules/getopt-gnu: New file, renamed from modules/getopt.
7825         * modules/getopt-posix: New file.
7826         * modules/getopt: Turn into an obsolete alias for getopt-gnu.
7827         * m4/getopt.m4 (gl_FUNC_GETOPT_POSIX, gl_FUNC_GETOPT_GNU): New macros.
7828         (gl_GETOPT): Remove macro.
7829         (gl_GETOPT_CHECK_HEADERS): Do some checks only for gl_FUNC_GETOPT_GNU.
7830         Disable the test against BSD systems that declare optreset. Test
7831         against mingw bug. Test against lack of support of optional arguments
7832         on many platforms.
7833         * doc/glibc-headers/getopt.texi: Update module name and list of
7834         relevant platforms.
7835         * doc/posix-functions/getopt.texi: Mention modules 'getopt-posix' and
7836         'getopt-gnu' and more portability problems.
7837         * NEWS: Mention the changes.
7838
7839 2009-08-12  Bruno Haible  <bruno@clisp.org>
7840
7841         Ensure that optarg etc. get declared by <unistd.h>.
7842         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Require
7843         AC_USE_SYSTEM_EXTENSIONS.
7844         * modules/getopt (Depends-on): Add 'extensions'.
7845
7846 2009-08-12  Bruno Haible  <bruno@clisp.org>
7847
7848         Avoid test link errors.
7849         * modules/pipe-filter-ii-tests (Makefile.am): Define
7850         test_pipe_filter_ii1_LDADD and test_pipe_filter_ii2_main_LDADD.
7851         * modules/pipe-filter-gi-tests (Makefile.am): Define
7852         test_pipe_filter_gi1_LDADD and test_pipe_filter_gi2_main_LDADD.
7853         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
7854
7855 2009-08-12  Bruno Haible  <bruno@clisp.org>
7856
7857         * m4/getopt.m4 (gl_REPLACE_GETOPT): New macro, was called
7858         gl_GETOPT_SUBSTITUTE before.
7859         (gl_GETOPT): Use it.
7860         * m4/argp.m4 (gl_ARGP): Update.
7861         Reported by Sergey Poznyakoff.
7862
7863         * m4/getopt.m4: Reorder macros.
7864         (gl_GETOPT): Inline gl_GETOPT_SUBSTITUTE.
7865         (gl_GETOPT_SUBSTITUTE): Remove macro.
7866
7867 2009-08-12  Sergey Poznyakoff  <gray@gnu.org.ua>
7868
7869         Minor improvement in gitlog-to-changelog
7870
7871         * build-aux/gitlog-to-changelog: New option `--format' makes
7872         output format string configurable.
7873
7874 2009-08-12  Sergey Poznyakoff  <gray@gnu.org.ua>
7875
7876         Optimize exclude: use hash tables for non-wildcard patterns.
7877
7878         * lib/exclude.c: Include hash.h and mbuiter.h
7879         (struct exclude_pattern, exclude_segment): New data types.
7880         (struct exclude): Rewrite.
7881         (fnmatch_pattern_has_wildcards): New function.
7882         (new_exclude_segment, free_exclude_segment): New functions.
7883         (excluded_file_pattern_p, excluded_file_name_p): New functions.
7884         (excluded_file_name, add_exclude): Rewrite using new struct exclude.
7885         * lib/exclude.h (is_fnmatch_pattern): New prototype.
7886         * modules/exclude: Depend on hash and mbuiter.
7887
7888         * modules/exclude-tests: New file.
7889         * tests/test-exclude.c: New file.
7890         * tests/test-exclude1.sh: New file.
7891         * tests/test-exclude2.sh: New file.
7892         * tests/test-exclude3.sh: New file.
7893         * tests/test-exclude4.sh: New file.
7894         * tests/test-exclude5.sh: New file.
7895         * tests/test-exclude6.sh: New file.
7896         * tests/test-exclude7.sh: New file.
7897
7898 2009-08-12  Bruno Haible  <bruno@clisp.org>
7899
7900         Ensure that getopt() gets declared by <unistd.h>.
7901         * lib/unistd.in.h: Conditionally include getopt.h.
7902         * m4/getopt.m4 (gl_GETOPT_SUBSTITUTE): Require gl_UNISTD_H_DEFAULTS.
7903         Set GNULIB_UNISTD_H_GETOPT.
7904         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
7905         GNULIB_UNISTD_H_GETOPT.
7906         * modules/unistd (Makefile.am): Substitute GNULIB_UNISTD_H_GETOPT.
7907
7908 2009-08-12  Bruno Haible  <bruno@clisp.org>
7909
7910         Clarify logic.
7911         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS, gl_GETOPT_IFELSE): Use
7912         gl_replace_getopt instead of GETOPT_H.
7913
7914 2009-08-12  Bruno Haible  <bruno@clisp.org>
7915
7916         * m4/getopt.m4: Add comments.
7917
7918 2009-08-12  Bruno Haible  <bruno@clisp.org>
7919
7920         Disable multithread support by default on Cygwin 1.5.x.
7921         * m4/threadlib.m4 (gl_THREADLIB_EARLY_BODY): On Cygwin 1.5.x and older,
7922         set gl_use_threads=no if not specified otherwise.
7923
7924 2009-08-11  Bruno Haible  <bruno@clisp.org>
7925
7926         Avoid compilation error on NetBSD 5.0.
7927         * tests/test-locale.c: Write sizeof (NULL) instead of sizeof NULL.
7928         * tests/test-stdio.c: Likewise.
7929         * tests/test-stdlib.c: Likewise.
7930         * tests/test-string.c: Likewise.
7931         * tests/test-unistd.c: Likewise.
7932         Reported by Greg Troxel <gdt@ir.bbn.com>
7933         at <https://savannah.gnu.org/support/?106973>.
7934
7935 2009-08-11  Bruno Haible  <bruno@clisp.org>
7936
7937         * modules/dup2-tests (Depends-on): Remove close.
7938
7939         Undo 2009-07-19 commit.
7940         * modules/acl-tests (Depends-on): Remove close.
7941         * modules/binary-io-tests (Depends-on): Likewise.
7942         * modules/closein-tests (Depends-on): Likewise.
7943         * modules/flock-tests (Depends-on): Likewise.
7944         * modules/fsync-tests (Depends-on): Likewise.
7945         * modules/lseek-tests (Depends-on): Likewise.
7946         * modules/pipe-tests (Depends-on): Likewise.
7947         * modules/posix_spawn-tests (Depends-on): Likewise.
7948         * modules/posix_spawnp-tests (Depends-on): Likewise.
7949         * modules/stat-time-tests (Depends-on): Likewise.
7950         * modules/yesno-tests (Depends-on): Likewise.
7951
7952 2009-08-10  Bruno Haible  <bruno@clisp.org>
7953
7954         * lib/vasnprintf.c (DCHAR_SET): Undefine at the end.
7955
7956 2009-08-10  Bruno Haible  <bruno@clisp.org>
7957
7958         Fix a gcc warning.
7959         * lib/write.c (rpl_write): Cast result of _get_osfhandle.
7960
7961 2009-08-10  Bruno Haible  <bruno@clisp.org>
7962
7963         Don't optimize AC_LIBOBJs, as they may appear in different contexts.
7964         * m4/close.m4 (gl_REPLACE_CLOSE): Execute AC_LIBOBJ unconditionally,
7965         not only the first time.
7966         * m4/fclose.m4 (gl_REPLACE_FCLOSE): Likewise.
7967         * m4/open.m4 (gl_REPLACE_OPEN): Likewise.
7968         * m4/strstr.m4 (gl_FUNC_STRSTR): Execute AC_LIBOBJ when REPLACE_STRSTR
7969         is 1, not only the the first time.
7970
7971 2009-08-10  Bruno Haible  <bruno@clisp.org>
7972
7973         Make it possible to use module 'gethostname' without module 'close'.
7974         * lib/unistd.in.h (close): Evoke a link error only if
7975         UNISTD_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS is set.
7976         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
7977         UNISTD_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS.
7978         * modules/unistd (Makefile.am): Substitute
7979         UNISTD_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS.
7980         * lib/sys_ioctl.in.h (ioctl): Evoke a link error only if
7981         SYS_IOCTL_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS is set.
7982         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_H_DEFAULTS): Initialize
7983         SYS_IOCTL_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS.
7984         * modules/sys_ioctl (Makefile.am): Substitute
7985         SYS_IOCTL_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS.
7986         * modules/socket (configure.ac): On native Windows, set
7987         UNISTD_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS and
7988         SYS_IOCTL_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS.
7989         Reported by Sam Steingold <sds@gnu.org>.
7990
7991 2009-08-10  Bruno Haible  <bruno@clisp.org>
7992
7993         * m4/close.m4 (gl_FUNC_CLOSE): Add comment.
7994         * modules/ioctl (configure.ac): Likewise.
7995
7996 2009-08-10  Bruno Haible  <bruno@clisp.org>
7997
7998         Avoid collision between gnulib wrapper and libintl wrapper.
7999         * lib/stdio-write.c (printf): Don't define if a printf wrapper is
8000         already defined in intl/printf.c.
8001         (vprintf): Test REPLACE_VPRINTF_POSIX, not REPLACE_VFPRINTF_POSIX.
8002         (vfprintf): Test REPLACE_VFPRINTF_POSIX, not REPLACE_VPRINTF_POSIX.
8003
8004 2009-08-09  Bruno Haible  <bruno@clisp.org>
8005
8006         Make <sys/select.h> really self-contained, also on Solaris 10.
8007         * lib/sys_select.in.h: Include <string.h>.
8008         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Test also against
8009         Solaris 10 problem.
8010         * tests/test-sys_select.c (main): Add check that FD_ZERO can be used.
8011         * doc/posix-headers/sys_select.texi: Mention the Solaris 10 problem.
8012         Reported by Jim Meyering.
8013
8014 2009-08-09  Bruno Haible  <bruno@clisp.org>
8015
8016         Avoid warnings from 'aclocal' that are due to a use of macro name
8017         AM_XGETTEXT_OPTION that is not defined in automake.
8018         * modules/argp (configure.ac): Hide use of AM_XGETTEXT_OPTION from
8019         automake.
8020         * modules/error (configure.ac): Likewise.
8021         * modules/propername (configure.ac): Likewise.
8022         * modules/vasprintf (configure.ac): Likewise.
8023         * modules/verror (configure.ac): Likewise.
8024         * modules/xprintf (configure.ac): Likewise.
8025         * modules/xvasprintf (configure.ac): Likewise.
8026
8027 2009-08-08  Bruno Haible  <bruno@clisp.org>
8028
8029         Avoid compilation error in C++ mode.
8030         * lib/gettimeofday.c (rpl_gettimeofday): Cast timezone argument.
8031         Reported by Sam Steingold <sds@gnu.org>.
8032
8033 2009-08-08  Bruno Haible  <bruno@clisp.org>
8034
8035         * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): Define HOST_NAME_MAX also
8036         for the various Unix platforms.
8037         * doc/posix-headers/limits.texi: Update platforms list regarding
8038         HOST_NAME_MAX.
8039         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
8040
8041 2009-08-07  Jim Meyering  <meyering@redhat.com>
8042
8043         selinux-at: fix typo in a comment
8044         * lib/selinux-at.h: s/getfileconat/getfilecon/ in a comment.
8045         Spotted by Paolo Bonzini.
8046
8047         selinux-at: remove redundant m4 code, add documentation
8048         * modules/selinux-at (configure.ac): Remove redundant code.
8049         LIB_SELINUX is already set via the dependent module, selinux-h.
8050         (Include): Add quotes around selinux-at.h.
8051         * lib/selinux-at.h: Add documentation.
8052         Reported by Bruno Haible in
8053         http://marc.info/?l=gnulib-bug&m=124958988300749
8054
8055 2009-08-07  Bruno Haible  <bruno@clisp.org>
8056
8057         Avoid link error on MacOS X 10.3 and 10.4.
8058         * lib/argp-ba.c (argp_program_bug_address): Explicitly zero-initialize
8059         on non-ELF systems.
8060         * lib/argp-pv.c (argp_program_version): Likewise.
8061         Reported by Simon Josefsson.
8062
8063 2009-08-07  Simon Josefsson  <simon@josefsson.org>
8064
8065         * tests/test-version-etc.sh: Use $EXEEXT.
8066
8067 2009-08-06  Joel E. Denny  <jdenny@clemson.edu>
8068
8069         update-copyright: update documentation to point to maint.mk
8070         * build-aux/update-copyright: Here.
8071
8072 2009-08-06  Jim Meyering  <meyering@redhat.com>
8073
8074         maint.mk: support update-copyright-local
8075         * top/maint.mk (update-copyright-local): Define place-holder.
8076         (update-copyright): Depend on $(update-copyright-local).
8077
8078 2009-08-06  Jim Meyering  <meyering@redhat.com>
8079
8080         selinux-at: new module
8081         Initially written for coreutils, this module will soon be
8082         used by findutils, too.
8083         * MODULES.html.sh [Misc]: Add selinux-at.
8084         * lib/selinux-at.h: New file, from coreutils.
8085         * lib/selinux-at.c: Likewise.
8086         * modules/selinux-at: Likewise.
8087         (License): Change from LGPL to GPL, since it depends
8088         on the GPL'd openat module.
8089
8090         doc: update README
8091         * README: Remove references to cogito.
8092         Remove cvs-repo-updating instructions from 2007.
8093         Don't imply that CVS is better if you have limited disk space.
8094
8095 2009-08-05  Joel E. Denny  <jdenny@clemson.edu>
8096
8097         update-copyright: support C-style comments
8098         * build-aux/update-copyright: Implement and document.
8099         * tests/test-update-copyright.sh: Test.
8100
8101 2009-08-05  Joel E. Denny  <jdenny@clemson.edu>
8102
8103         update-copyright: support omitted "(C)"
8104         * build-aux/update-copyright: Implement and document.  Also,
8105         allow variable whitespace before "(C)".
8106         * tests/test-update-copyright.sh: Test.
8107
8108 2009-08-05  Joel E. Denny  <jdenny@clemson.edu>
8109
8110         update-copyright: don't trip on non-FSF copyright statements
8111         * build-aux/update-copyright: Fix so that the first correctly
8112         formatted FSF copyright statement is recognized no matter what
8113         appears before it.  Update documentation.
8114         * tests/test-update-copyright.sh: Test that.
8115
8116 2009-08-05  Joel E. Denny  <jdenny@clemson.edu>
8117
8118         update-copyright: clean up code a little
8119         * build-aux/update-copyright: Append "_re" to the name of any
8120         variable holding a regular expression.
8121         Replace "old" and "new" with "stmt" in variable names.
8122         Do not accept 2-digit UPDATE_COPYRIGHT_YEAR, which was not
8123         handled correctly.
8124         Format code more consistently.
8125
8126 2009-08-05  Joel E. Denny  <jdenny@clemson.edu>
8127
8128         update-copyright-tests: improve portability
8129         * tests/test-update-copyright.sh: Use cmp if diff cannot handle
8130         -u or /dev/null.  Suggested by Jim Meyering and Eric Blake.
8131
8132 2009-08-03  Joel E. Denny  <jdenny@clemson.edu>
8133
8134         update-copyright: support @copyright{} and &copy;
8135         * build-aux/update-copyright: Implement and document.
8136         * tests/test-update-copyright.sh: Test.
8137
8138 2009-08-04  Jim Meyering  <meyering@redhat.com>
8139
8140         update-copyright-tests: correctly test EOL=\r\n handling
8141         * tests/test-update-copyright.sh: Put \r at the end of some lines
8142         for the dos-eol tests.  Based on a patch by Joel E. Denny.
8143
8144         maint.mk: make update-copyright exclusion list more configurable
8145         * top/maint.mk (update-copyright): Default to excluding COPYING,
8146         but allow an override, in case someone does want to update that file.
8147
8148         maint.mk: don't update copyright date in COPYING
8149         * top/maint.mk (update-copyright): Exclude COPYING.
8150
8151         maint.mk: add a copyright-updating rule
8152         * top/maint.mk (update-copyright): New rule.
8153         Derived from coreutils/Makefile.am.
8154
8155         update-copyright: rename some variables
8156         * build-aux/update-copyright: Rename a few variables for clarity.
8157         Tweak syntax.  List Joel E. Denny as coauthor.
8158
8159 2009-08-03  Joel E. Denny  <jdenny@clemson.edu>
8160
8161         update-copyright: fix bug for 2-digit last year and add tests
8162         * build-aux/update-copyright: Fix bug.
8163         Use UPDATE_COPYRIGHT_YEAR from environment as current year if
8164         specified.
8165         * modules/update-copyright-tests: New
8166         * tests/test-update-copyright.sh: New.
8167
8168 2009-07-31  Joel E. Denny  <jdenny@clemson.edu>
8169
8170         update-copyright: handle leading tabs in line prefix
8171         * build-aux/update-copyright: Count leading tabs as 8 spaces
8172         when computing margin.  This helps with the formatting of
8173         ChangeLogs, for example.
8174         Fix documentation a little.
8175
8176 2009-07-31  Joel E. Denny  <jdenny@clemson.edu>
8177
8178         update-copyright: support EOL=\r\n
8179         * build-aux/update-copyright: Implement that.
8180
8181 2009-07-31  Joel E. Denny  <jdenny@clemson.edu>
8182
8183         update-copyright: automatically format copyright statements
8184         * build-aux/update-copyright: Implement that.
8185         Also, be a little more predictable and safer by always failing
8186         when the full copyright format is not perfectly recognized as an
8187         unbroken whole.  Discussed at
8188         <http://lists.gnu.org/archive/html/bug-gnulib/2009-07/msg00131.html>.
8189         Rewrite documentation.
8190
8191 2009-08-03  Bruno Haible  <bruno@clisp.org>
8192
8193         * m4/iconv.m4 (AM_ICONV): Fix displayed message with autoconf-2.64.
8194
8195 2009-08-02  Bruno Haible  <bruno@clisp.org>
8196
8197         Tests for module 'uname'.
8198         * modules/uname-tests: New file.
8199         * tests/test-uname.c: New file.
8200
8201         New module 'uname'.
8202         * lib/uname.c: New file.
8203         * m4/uname.m4: New file.
8204         * modules/uname: New file.
8205         * doc/posix-functions/uname.texi: Mention the new module.
8206
8207 2009-08-02  Bruno Haible  <bruno@clisp.org>
8208
8209         Tests for module 'sys_utsname'.
8210         * modules/sys_utsname-tests: New file.
8211         * tests/test-sys_utsname.c: New file.
8212
8213         New module 'sys_utsname'.
8214         * lib/sys_utsname.in.h: New file, based on glibc's <sys/utsname.h>.
8215         * m4/sys_utsname_h.m4: New file.
8216         * modules/sys_utsname: New file.
8217         * doc/posix-headers/sys_utsname.texi: Mention the new module.
8218
8219 2009-08-02  Bruno Haible  <bruno@clisp.org>
8220
8221         Implicitly initialize the sockets library.
8222         * lib/gethostname.c: Include sockets.h.
8223         (rpl_gethostname): Invoke gl_sockets_startup.
8224         * lib/socket.c: Include sockets.h.
8225         (rpl_socket): Invoke gl_sockets_startup.
8226         * modules/gethostname (Depends-on): Add sockets.
8227         * modules/socket (Depends-on): Likewise.
8228         * tests/test-poll.c: Don't include sockets.h.
8229         (main): Don't invoke gl_sockets_startup.
8230         * tests/test-select.c: Don't include sockets.h.
8231         (main): Don't invoke gl_sockets_startup.
8232
8233 2009-08-02  Bruno Haible  <bruno@clisp.org>
8234
8235         Allow multiple calls to gl_sockets_startup.
8236         * lib/sockets.c (initialized_sockets_version): New variable.
8237         (gl_sockets_startup): Do nothing if already called for this or a higher
8238         version.
8239         (gl_sockets_cleanup): Reset initialized_sockets_version.
8240
8241 2009-08-03  Simon Josefsson  <simon@josefsson.org>
8242
8243         * tests/test-argp-version-etc-1.sh: Use EXEEXT.  Don't fail on
8244         different project/version.
8245
8246 2009-08-02  Paolo Bonzini  <bonzini@gnu.org>
8247             Bruno Haible  <bruno@clisp.org>
8248
8249         Tests for module 'pipe-filter-gi'.
8250         * modules/pipe-filter-gi-tests: New file.
8251         * tests/test-pipe-filter-gi1.sh: New file.
8252         * tests/test-pipe-filter-gi1.c: New file.
8253         * tests/test-pipe-filter-gi2.sh: New file.
8254         * tests/test-pipe-filter-gi2-main.c: New file.
8255         * tests/test-pipe-filter-gi2-child.c: New file.
8256
8257         New module 'pipe-filter-gi'.
8258         * lib/pipe-filter-gi.c: New file.
8259         * modules/pipe-filter-gi: New file.
8260
8261 2009-08-02  Bruno Haible  <bruno@clisp.org>
8262             Paolo Bonzini  <bonzini@gnu.org>
8263
8264         Tests for module 'pipe-filter-ii'.
8265         * modules/pipe-filter-ii-tests: New file.
8266         * tests/test-pipe-filter-ii1.sh: New file.
8267         * tests/test-pipe-filter-ii1.c: New file.
8268         * tests/test-pipe-filter-ii2.sh: New file.
8269         * tests/test-pipe-filter-ii2-main.c: New file.
8270         * tests/test-pipe-filter-ii2-child.c: New file.
8271
8272         New module 'pipe-filter-ii'.
8273         * lib/pipe-filter.h: New file.
8274         * lib/pipe-filter-ii.c: New file.
8275         * lib/pipe-filter-aux.h: New file.
8276         * modules/pipe-filter-ii: New file.
8277
8278 2009-08-02  Simon Josefsson  <simon@josefsson.org>
8279
8280         * lib/gc-libgcrypt.c: Change copyright to FSF.
8281         * lib/gc-gnulib.c: Likewise.
8282
8283 2009-08-02  Martin Lambers  <marlam@marlam.de>  (tiny change)
8284
8285         * lib/gethostname.c: Include limits.h.
8286
8287 2009-08-02  Simon Josefsson  <simon@josefsson.org>
8288             Bruno Haible  <bruno@clisp.org>
8289
8290         Ensure HOST_NAME_MAX as part of the gethostname module.
8291         * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): On native Windows platforms,
8292         define also HOST_NAME_MAX.
8293         * tests/test-gethostname.c: Include <limits.h>.
8294         (main): Check also HOST_NAME_MAX.
8295         * doc/posix-headers/limits.texi: Document the mingw problem.
8296
8297 2009-08-02  Bruno Haible  <bruno@clisp.org>
8298
8299         * lib/gethostname.c (gethostname): Fix handling of large len argument.
8300         Add comments.
8301
8302 2009-03-31  Simon Josefsson  <simon@josefsson.org>
8303
8304         * lib/gethostname.c: Add Windows wrapper.
8305         * m4/gethostname.m4: Look for gethostname in -lws2_32.
8306         * modules/gethostname: Depend on sys_socket & errno, for also
8307         added lib/w32sock.h.  Add GETHOSTNAME_LIB link directive.
8308         * modules/gethostname-tests: Link to @GETHOSTNAME_LIB@.
8309
8310 2009-07-31  Jim Meyering  <meyering@redhat.com>
8311
8312         getloadavg: fix symbol name in comment
8313         * lib/getloadavg.c: Correct a typo I introduced when adding
8314         comments to Matt's change: s/NLIST_POINTER/N_NAME_POINTER/.
8315         Matt Kraai spotted the problem.
8316
8317 2009-07-29  Matt Kraai  <mkraai@beckman.com>
8318
8319         getloadavg: check whether n_name is a pointer, for QNX 6.4.1
8320         * lib/getloadavg.c (getloadavg): Use the strcpy-into-nlist.n_name
8321         code also if ! defined N_NAME_POINTER.
8322         * m4/getloadavg.m4 (gl_GETLOADAVG): Add a link-test for N_NAME_POINTER.
8323         This is required on QNX 6.4.1, where /usr/include/nlist.h exists,
8324         but the n_name member is a 12-byte array.
8325
8326 2009-07-29  Joel E. Denny  <jdenny@clemson.edu>
8327
8328         update-copyright: generalize comment handling
8329         * build-aux/update-copyright: Handle copyright statements
8330         within more comment styles.
8331         Document usage.
8332         Report any file with an external copyright holder or parse failure.
8333
8334 2009-07-29  Jim Meyering  <meyering@redhat.com>
8335
8336         mktime: correct setting of REPLACE_MKTIME
8337         * m4/mktime.m4 (gl_FUNC_MKTIME): Set REPLACE_MKTIME=0, when required.
8338
8339         update-copyright: new module
8340         * modules/update-copyright: New file.
8341         * build-aux/update-copyright: New file.
8342         * MODULES.html.sh (maint+release support): Add update-copyright.
8343
8344 2009-07-27  Bruno Haible  <bruno@clisp.org>
8345
8346         Fix compilation error when <ctime> is used and mktime is replaced.
8347         * lib/time.in.h (mktime): New declaration.
8348         * m4/mktime.m4 (gl_FUNC_MKTIME): Require gl_HEADER_TIME_H_DEFAULTS. Set
8349         REPLACE_MKTIME instead of defining mktime in config.h.
8350         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize REPLACE_MKTIME.
8351         * modules/time (Makefile.am): Substitute REPLACE_MKTIME.
8352         Reported by Ross McFarland <rwmcfa1@neces.com>.
8353
8354 2009-07-27  Bruno Haible  <bruno@clisp.org>
8355
8356         * lib/math.in.h (cosl, logl, sinl): Undefine before declaring it.
8357         Reported by Matt Kraai <mkraai@beckman.com>.
8358
8359 2009-07-25  Jim Meyering  <meyering@redhat.com>
8360
8361         maint.mk: avoid warnings about missing files
8362         * top/maint.mk (PREV_VERSION): Suppress stderr, to hide a
8363         diagnostic when .prev-version does not exist.
8364         (_cfg_mk): Define, so it can be empty when cfg.mk does not exist.
8365         (syntax-check-rules): Use $(_cfg_mk) to avoid a diagnostic about
8366         nonexistent cfg.mk.
8367         Suggestions from Simon Josefsson.
8368
8369 2009-07-25  Bruno Haible  <bruno@clisp.org>
8370
8371         * lib/math.in.h (cosl, logl, sinl): Don't declare if they are already
8372         defined as macros. Needed on QNX 6.4.1.
8373         Reported by Matt Kraai <mkraai@beckman.com>.
8374
8375 2009-07-23  Jim Meyering  <meyering@redhat.com>
8376
8377         maint.mk: invoke "make dist" with a working value of XZ_OPT
8378         * top/maint.mk (vc-dist): Use no "-" in the value of XZ_OPT.
8379
8380 2009-07-22  Matt Kraai  <mkraai@beckman.com>  (tiny change)
8381
8382         Make fseeko.c compile on QNX.
8383         * lib/fseeko.c (rpl_fseeko): Use the numerical value of _MWRITE.
8384
8385 2009-07-22  Peter Simons  <simons@cryp.to>
8386
8387         C++: wrap md2,md5,sha1,etc. function declarations in extern "C" scope
8388         * lib/md2.h [__cplusplus]: Wrap declarations in extern "C" scope.
8389         * lib/md4.h: Likewise.
8390         * lib/md5.h: Likewise.
8391         * lib/sha1.h: Likewise.
8392         * lib/sha256.h: Likewise.
8393         * lib/sha512.h: Likewise.
8394
8395         tests-sha1: don't assign literal string to 'char *' variable
8396         * tests/test-sha1.c (main): Declare locals with "const" to match
8397         attributes of the right hand side.
8398
8399 2009-07-21  Eric Blake  <ebb9@byu.net>
8400
8401         dup2: fix more mingw problems
8402         * lib/dup2.c (rpl_dup2) [_WIN32]: Avoid hanging when duplicating
8403         fd to itself.
8404         * doc/posix-functions/dup2.texi (dup2): Document the bug.
8405         * lib/unistd.in.h (dup2) [REPLACE_FCHDIR]: Avoid name collision.
8406         * lib/fchdir.c (dup2): Manage preprocessor macros correctly.
8407         (rpl_dup2_fchdir): Rename from rpl_dup2, and let dup2 module take
8408         care of mingw bugs.
8409
8410 2009-07-21  Jim Meyering  <meyering@redhat.com>
8411
8412         vc-list-files: avoid failure when /bin/sh is dash
8413         * build-aux/vc-list-files: Avoid a shell portability problem with dash.
8414         On some Debian based systems, /bin/sh is a symlink to dash, and running
8415         this command would omit the "/" following each 'tests' prefix:
8416           dash -x build-aux/vc-list-files -C . tests
8417         That is because bash and dash work differently:
8418           $ for i in bash dash; do $i -c 'a=odd; a=ok b=$a; echo '$i' $b'; done
8419           bash ok
8420           dash odd
8421
8422 2009-07-21  Eric Blake  <ebb9@byu.net>
8423
8424         dup2-tests: test previous patch
8425         * modules/dup2-tests: New file.
8426         * tests/test-dup2.c: Likewise.
8427         * tests/test-open.c (main): Avoid unspecified behavior.
8428         * tests/test-pipe.c (child_main): Use dup2 semantics to simplify
8429         test.
8430
8431         dup2: work around mingw and cygwin 1.5 bug
8432         * m4/dup2.m4 (gl_FUNC_DUP2): Detect mingw bug.
8433         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witness.
8434         * modules/unistd (Makefile.am): Substitute it.
8435         * lib/unistd.in.h (dup2): Declare the replacement.
8436         * lib/dup2.c (dup2) [REPLACE_DUP2]: Implement it.
8437         * doc/posix-functions/dup2.texi (dup2): Document the bugs.
8438         * lib/fchdir.c (rpl_dup2): Don't collide with mingw replacement.
8439         * modules/execute (Depends-on): Add dup2.
8440         * modules/fseterr (Depends-on): Likewise.
8441         * modules/pipe (Depends-on): Likewise.
8442         * modules/posix_spawn-internal (Depends-on): Likewise.
8443
8444 2009-07-21  Bruno Haible  <bruno@clisp.org>
8445
8446         * modules/.gitattributes: New file.
8447
8448 2009-07-20  Bruno Haible  <bruno@clisp.org>
8449
8450         * tests/test-pipe.c (BACKUP_STDERR_FILENO): New macro.
8451         (main): Use it.
8452
8453 2009-07-20  Eric Blake  <ebb9@byu.net>
8454
8455         test-pipe: make a bit more robust.
8456         * tests/test-pipe.c (myerr): Allow error messages regardless of
8457         what we do to stderr.
8458         (test_pipe): Rearrange to avoid deadlock.
8459         (child_main): Try a larger read, to ensure we avoided deadlock.
8460         * lib/pipe.c (create_pipe) [_WIN32]: Fix comment.
8461         * lib/pipe.h (create_pipe_bidi): Document potential for deadlock
8462         if misused.
8463
8464 2009-07-19  Jim Meyering  <meyering@redhat.com>
8465
8466         fts: avoid false-positive cycle-detection
8467         * lib/fts.c (fts_read): Reinitialize cycle-detection data structures
8468         for each new command line argument.
8469
8470 2009-07-19  Bruno Haible  <bruno@clisp.org>
8471
8472         Fix build error on mingw with the modules sys_select and unistd.
8473         * modules/acl-tests (Depends-on): Add close.
8474         * modules/binary-io-tests (Depends-on): Likewise.
8475         * modules/closein-tests (Depends-on): Likewise.
8476         * modules/flock-tests (Depends-on): Likewise.
8477         * modules/fsync-tests (Depends-on): Likewise.
8478         * modules/lseek-tests (Depends-on): Likewise.
8479         * modules/pipe-tests (Depends-on): Likewise.
8480         * modules/posix_spawn-tests (Depends-on): Likewise.
8481         * modules/posix_spawnp-tests (Depends-on): Likewise.
8482         * modules/stat-time-tests (Depends-on): Likewise.
8483         * modules/yesno-tests (Depends-on): Likewise.
8484
8485 2009-07-19  Bruno Haible  <bruno@clisp.org>
8486
8487         Unify conditionals.
8488         * lib/pipe.h: Detect native Win32 by looking at _WIN32 and __WIN32__
8489         macros, not at the compiler macros.
8490         * lib/pipe.c: Likewise.
8491         * lib/execute.c: Likewise.
8492         * lib/spawni.c: Likewise.
8493
8494 2009-07-19  Bruno Haible  <bruno@clisp.org>
8495
8496         Fix handling of closed stdin/stdout/stderr on mingw.
8497         * lib/w32spawn.h: Include unistd.h.
8498         (dup_noinherit): Return -1 if the old handle is invalid. Allocate new
8499         file descriptor with O_NOINHERIT flag.
8500         (fd_safer_noinherit): New function, based on fd-safer.c.
8501         (dup_safer_noinherit): New function, based on dup-safer.c.
8502         (undup_safer_noinherit): New function.
8503         * lib/execute.c (execute) [WIN32]: Use dup_safer_noinherit instead of
8504         dup_noinherit. Use undup_safer_noinherit instead of dup2 and close.
8505         * lib/pipe.c (create_pipe) [WIN32]: Likewise. Use fd_safer_noinherit
8506         instead of fd_safer.
8507         * tests/test-pipe.c: Include <windows.h>.
8508         (child_main) [WIN32]: Test the handle of STDERR_FILENO, not its close() result.
8509
8510         * tests/test-pipe.c (child_main, parent_main): New functions, extracted
8511         from main.
8512         (test_pipe): Pass an extra argument for disambiguation.
8513         (main): Invoke parent_main or child_main.
8514
8515         * tests/test-pipe.c (test_pipe): Pass slave_process = true argument
8516         consistently.
8517
8518 2009-07-18  Eric Blake  <ebb9@byu.net>
8519
8520         test-pipe: fix mingw build
8521         * tests/test-pipe.c (main): Avoid fcntl on mingw.
8522
8523 2009-07-18  Bruno Haible  <bruno@clisp.org>
8524
8525         * modules/pipe-tests (Makefile.am): Fix typo.
8526
8527 2009-07-18  Eric Blake  <ebb9@byu.net>
8528
8529         error: fix mingw build
8530         * lib/error.c (error, error_at_line): Avoid fcntl on mingw.
8531         Reported by Bruno Haible.
8532
8533         error: avoid undefined use of stdout
8534         * lib/error.c (error, error_at_line): Check that fd 1 is open
8535         before flushing stdout.  Avoids a crash on cygwin when libsigsegv
8536         is handling faults and the close_stdout module wants to report the
8537         detection of closed stdout as an error.
8538
8539 2009-07-17  Eric Blake  <ebb9@byu.net>
8540
8541         pipe: be robust in face of closed fds
8542         * lib/pipe.c (create_pipe): Closed standard descriptors in parent
8543         should cause child to misbehave.
8544         * modules/pipe-tests: New module.
8545         * tests/test-pipe.c: New file.
8546         * tests/test-pipe.sh: New file.
8547         Reported by Akim Demaille.
8548
8549 2009-07-14  Bruno Haible  <bruno@clisp.org>
8550
8551         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Guess it works on glibc systems.
8552         Reported by anonymous kc.
8553
8554 2009-07-07  Jim Meyering  <meyering@redhat.com>
8555
8556         maint.mk: don't look for translatable strings in *.m4 or *.mk
8557         * top/maint.mk (sc_po_check): Skip *.m4 and *.mk files,
8558         when searching for translatable strings.
8559
8560 2009-07-05  Jim Meyering  <meyering@redhat.com>
8561
8562         remove superfluous parentheses in STREQ definition
8563         * tests/test-argv-iter.c (STREQ): Remove redundant parentheses.
8564         * lib/getugroups.c (STREQ): Likewise.
8565         * lib/fnmatch.c (STREQ): Likewise.
8566         Spotted by Bruno Haible.
8567
8568 2009-07-04  Jim Meyering  <meyering@redhat.com>
8569
8570         argv-iter: new module
8571         * MODULES.html.sh: Add argv-iter.
8572         * lib/argv-iter.c, lib/argv-iter.h: New files.
8573         * modules/argv-iter: New file.
8574         * modules/argv-iter-tests: New file.
8575         * tests/test-argv-iter.c: Test it.
8576
8577 2009-07-04  Bruno Haible  <bruno@clisp.org>
8578
8579         Fix assertion.
8580         * lib/git-merge-changelog.c (compute_mapping): In the case where file1
8581         contains more exact copies of a given entry than file2, leave the extra
8582         copies unpaired rather than aborting.
8583         Reported by Eric Blake.
8584
8585 2009-07-02  Bruno Haible  <bruno@clisp.org>
8586
8587         Speedup git-merge-changelog for git cherry-pick.
8588         * lib/git-merge-changelog.c (struct entries_mapping): New type.
8589         (entries_mapping_get): New function, extracted from compute_mapping.
8590         (entries_mapping_reverse_get): New function.
8591         (compute_mapping): Add a 'full' argument. Return the result in a
8592         'struct entries_mapping'.
8593         (main): Update. Access the mappings through entries_mapping_get.
8594         Reported by Eric Blake.
8595
8596 2009-07-02  Bruno Haible  <bruno@clisp.org>
8597
8598         * lib/git-merge-changelog.c (compute_mapping): Fix determination of
8599         best_i.
8600
8601 2009-07-02  Bruno Haible  <bruno@clisp.org>
8602
8603         Speed up approximate search for matching ChangeLog entries.
8604         * lib/git-merge-changelog.c (entry_fstrcmp): Add a lower_bound
8605         argument. Call fstrcmp_bounded instead of fstrcmp.
8606         (compute_mapping, try_split_merged_entry, main): Update callers.
8607
8608 2009-07-02  Bruno Haible  <bruno@clisp.org>
8609
8610         * lib/git-merge-changelog.c (main): Add comment about git cherry-pick.
8611
8612 2009-06-30  Bruno Haible  <bruno@clisp.org>
8613
8614         Reduce the number of uc_is_cased calls.
8615         * lib/unicase.h (casing_suffix_context_t): Add
8616         'first_char_except_ignorable' field.
8617         * lib/unicase/context.h (SCC_FINAL_SIGMA_MASK): Remove macro.
8618         (SCC_MORE_ABOVE_MASK, SCC_BEFORE_DOT_MASK): Update.
8619         * lib/unicase/empty-suffix-context.c (unicase_empty_suffix_context):
8620         Update initializer.
8621         * lib/unicase/u-casemap.h (FUNC): Don't invoke uc_is_cased on
8622         case-ignorable characters.
8623         * lib/unicase/u-ct-totitle.h (FUNC): Likewise.
8624         * lib/unicase/u-suffix-context.h (FUNC2): Don't call uc_is_cased here.
8625         * modules/unicase/u8-suffix-context (Depends-on): Remove unicase/cased.
8626         * modules/unicase/u16-suffix-context (Depends-on): Likewise.
8627         * modules/unicase/u32-suffix-context (Depends-on): Likewise.
8628
8629 2009-06-30  Bruno Haible  <bruno@clisp.org>
8630
8631         Tests for module 'unicase/ignorable'.
8632         * modules/unicase/ignorable-tests: New file.
8633         * tests/unicase/test-ignorable.c: New file, generated by
8634         gen-uni-tables.
8635
8636         Tests for module 'unicase/cased'.
8637         * modules/unicase/cased-tests: New file.
8638         * tests/unicase/test-cased.c: New file, generated by gen-uni-tables.
8639         * tests/unicase/test-predicate-part1.h: New file, derived from
8640         tests/unictype/test-predicate-part1.h.
8641         * tests/unicase/test-predicate-part2.h: New file, same as
8642         tests/unictype/test-predicate-part2.h.
8643
8644         Fix evaluation of "Before C" condition of FINAL_SIGMA.
8645         * lib/gen-uni-tables.c (is_cased, is_case_ignorable): New functions.
8646         (output_casing_properties): New function.
8647         (main): Call it.
8648         * lib/unicase/cased.h: New file, generated by gen-uni-tables.
8649         * lib/unicase/cased.c: Include unictype/bitmap.h.
8650         (uc_is_cased): Define through a bitmap lookup.
8651         * lib/unicase/ignorable.h: New file, generated by gen-uni-tables.
8652         * lib/unicase/ignorable.c: Include unictype/bitmap.h.
8653         (uc_is_case_ignorable): Define through a bitmap lookup.
8654         * modules/unicase/cased (Files): Add lib/unicase/cased.h,
8655         lib/unictype/bitmap.h.
8656         (Depends-on): Add inline. Clean up.
8657         * modules/unicase/ignorable (Files): Add lib/unicase/ignorable.h,
8658         lib/unictype/bitmap.h.
8659         (Depends-on): Add inline. Clean up.
8660         * tests/unicase/test-u8-tolower.c (main): Add more tests of FINAL_SIGMA
8661         recognition.
8662         * tests/unicase/test-u16-tolower.c (main): Likewise.
8663         * tests/unicase/test-u32-tolower.c (main): Likewise.
8664
8665 2009-06-30  Bruno Haible  <bruno@clisp.org>
8666
8667         * lib/unicase/u8-casemap.c: Don't include uniwbrk.h.
8668         * lib/unicase/u16-casemap.c: Likewise.
8669         * lib/unicase/u32-casemap.c: Likewise.
8670
8671 2009-06-29  Bruno Haible  <bruno@clisp.org>
8672
8673         Define u32_casefold as a wrapper around u32_ct_casefold.
8674         * lib/unicase/u32-casefold.c: Update.
8675         * modules/unicase/u32-casefold (Depends-on): Add
8676         unicase/u32-ct-casefold, unicase/empty-prefix-context,
8677         unicase/empty-suffix-context. Clean up.
8678
8679         Define u16_casefold as a wrapper around u16_ct_casefold.
8680         * lib/unicase/u16-casefold.c: Update.
8681         * modules/unicase/u16-casefold (Depends-on): Add
8682         unicase/u16-ct-casefold, unicase/empty-prefix-context,
8683         unicase/empty-suffix-context. Clean up.
8684
8685         Define u8_casefold as a wrapper around u8_ct_casefold.
8686         * lib/unicase/u-casefold.h (FUNC): Delegate to U_CT_CASEFOLD.
8687         * lib/unicase/u8-casefold.c: Update.
8688         * modules/unicase/u8-casefold (Depends-on): Add unicase/u8-ct-casefold,
8689         unicase/empty-prefix-context, unicase/empty-suffix-context. Clean up.
8690
8691         Define u32_totitle as a wrapper around u32_ct_totitle.
8692         * lib/unicase/u32-totitle.c: Update.
8693         * modules/unicase/u32-totitle (Depends-on): Add unicase/u32-ct-totitle,
8694         unicase/empty-prefix-context, unicase/empty-suffix-context. Clean up.
8695
8696         Define u16_totitle as a wrapper around u16_ct_totitle.
8697         * lib/unicase/u16-totitle.c: Update.
8698         * modules/unicase/u16-totitle (Depends-on): Add unicase/u16-ct-totitle,
8699         unicase/empty-prefix-context, unicase/empty-suffix-context. Clean up.
8700
8701         Define u8_totitle as a wrapper around u8_ct_totitle.
8702         * lib/unicase/u-totitle.h (is_cased, is_case_ignorable): Remove
8703         functions.
8704         (FUNC): Delegate to U_CT_TOTITLE.
8705         * lib/unicase/u8-totitle.c: Update.
8706         * modules/unicase/u8-totitle (Depends-on): Add unicase/u8-ct-totitle,
8707         unicase/empty-prefix-context, unicase/empty-suffix-context. Clean up.
8708
8709         * lib/unicase/u32-tolower.c (u32_tolower): Update u32_casemap
8710         invocation.
8711         * modules/unicase/u32-tolower (Depends-on): Add
8712         unicase/empty-prefix-context, unicase/empty-suffix-context.
8713
8714         * lib/unicase/u16-tolower.c (u16_tolower): Update u16_casemap
8715         invocation.
8716         * modules/unicase/u16-tolower (Depends-on): Add
8717         unicase/empty-prefix-context, unicase/empty-suffix-context.
8718
8719         * lib/unicase/u8-tolower.c (u8_tolower): Update u8_casemap invocation.
8720         * modules/unicase/u8-tolower (Depends-on): Add
8721         unicase/empty-prefix-context, unicase/empty-suffix-context.
8722
8723         * lib/unicase/u32-toupper.c (u32_toupper): Update u32_casemap
8724         invocation.
8725         * modules/unicase/u32-toupper (Depends-on): Add
8726         unicase/empty-prefix-context, unicase/empty-suffix-context.
8727
8728         * lib/unicase/u16-toupper.c (u16_toupper): Update u16_casemap
8729         invocation.
8730         * modules/unicase/u16-toupper (Depends-on): Add
8731         unicase/empty-prefix-context, unicase/empty-suffix-context.
8732
8733         * lib/unicase/u8-toupper.c (u8_toupper): Update u8_casemap invocation.
8734         * modules/unicase/u8-toupper (Depends-on): Add
8735         unicase/empty-prefix-context, unicase/empty-suffix-context.
8736
8737         New module 'unicase/u32-ct-casefold'.
8738         * lib/unicase/u32-ct-casefold.c: New file.
8739         * modules/unicase/u32-ct-casefold: New file.
8740
8741         New module 'unicase/u16-ct-casefold'.
8742         * lib/unicase/u16-ct-casefold.c: New file.
8743         * modules/unicase/u16-ct-casefold: New file.
8744
8745         New module 'unicase/u8-ct-casefold'.
8746         * lib/unicase/u8-ct-casefold.c: New file.
8747         * lib/unicase/u-ct-casefold.h: New file, derived from
8748         lib/unicase/u-casefold.h.
8749         * modules/unicase/u8-ct-casefold: New file.
8750
8751         New module 'unicase/u32-ct-totitle'.
8752         * lib/unicase/u32-ct-totitle.c: New file.
8753         * modules/unicase/u32-ct-totitle: New file.
8754
8755         New module 'unicase/u16-ct-totitle'.
8756         * lib/unicase/u16-ct-totitle.c: New file.
8757         * modules/unicase/u16-ct-totitle: New file.
8758
8759         New module 'unicase/u8-ct-totitle'.
8760         * lib/unicase/u8-ct-totitle.c: New file.
8761         * lib/unicase/u-ct-totitle.h: New file, derived from
8762         lib/unicase/u-totitle.h.
8763         * modules/unicase/u8-ct-totitle: New file.
8764
8765         New module 'unicase/u32-ct-tolower'.
8766         * lib/unicase/u32-ct-tolower.c: New file.
8767         * modules/unicase/u32-ct-tolower: New file.
8768
8769         New module 'unicase/u16-ct-tolower'.
8770         * lib/unicase/u16-ct-tolower.c: New file.
8771         * modules/unicase/u16-ct-tolower: New file.
8772
8773         New module 'unicase/u8-ct-tolower'.
8774         * lib/unicase/u8-ct-tolower.c: New file.
8775         * modules/unicase/u8-ct-tolower: New file.
8776
8777         New module 'unicase/u32-ct-toupper'.
8778         * lib/unicase/u32-ct-toupper.c: New file.
8779         * modules/unicase/u32-ct-toupper: New file.
8780
8781         New module 'unicase/u16-ct-toupper'.
8782         * lib/unicase/u16-ct-toupper.c: New file.
8783         * modules/unicase/u16-ct-toupper: New file.
8784
8785         New module 'unicase/u8-ct-toupper'.
8786         * lib/unicase/u8-ct-toupper.c: New file.
8787         * modules/unicase/u8-ct-toupper: New file.
8788
8789         Add context arguments to u*_casemap functions.
8790         * lib/unicase/unicasemap.h: Include unicase.h.
8791         (u8_casemap, u16_casemap, u32_casemap): Add prefix_context and
8792         suffix_context arguments.
8793         * lib/unicase/u-casemap.h (is_cased, is_case_ignorable): Remove
8794         functions.
8795         (FUNC): Add prefix_context and suffix_context arguments. Use
8796         uc_is_cased and uc_is_case_ignorable.
8797         * lib/unicase/u8-casemap.c: Include caseprop.h and context.h.
8798         * lib/unicase/u16-casemap.c: Likewise.
8799         * lib/unicase/u32-casemap.c: Likewise.
8800         * modules/unicase/u8-casemap (Files): Add lib/unicase/context.h.
8801         (Depends-on): Add unicase/cased, unicase/ignorable. Clean up.
8802         * modules/unicase/u16-casemap (Files): Add lib/unicase/context.h.
8803         (Depends-on): Add unicase/cased, unicase/ignorable. Clean up.
8804         * modules/unicase/u32-casemap (Files): Add lib/unicase/context.h.
8805         (Depends-on): Add unicase/cased, unicase/ignorable. Clean up.
8806
8807         New module 'unicase/u32-suffix-context'.
8808         * lib/unicase/u32-suffix-context.c: New file.
8809         * modules/unicase/u32-suffix-context: New file.
8810
8811         New module 'unicase/u16-suffix-context'.
8812         * lib/unicase/u16-suffix-context.c: New file.
8813         * modules/unicase/u16-suffix-context: New file.
8814
8815         New module 'unicase/u8-suffix-context'.
8816         * lib/unicase/u8-suffix-context.c: New file.
8817         * lib/unicase/u-suffix-context.h: New file.
8818         * modules/unicase/u8-suffix-context: New file.
8819
8820         New module 'unicase/empty-suffix-context'.
8821         * lib/unicase/empty-suffix-context.c: New file.
8822         * modules/unicase/empty-suffix-context: New file.
8823
8824         New module 'unicase/u32-prefix-context'.
8825         * lib/unicase/u32-prefix-context.c: New file.
8826         * modules/unicase/u32-prefix-context: New file.
8827
8828         New module 'unicase/u16-prefix-context'.
8829         * lib/unicase/u16-prefix-context.c: New file.
8830         * modules/unicase/u16-prefix-context: New file.
8831
8832         New module 'unicase/u8-prefix-context'.
8833         * lib/unicase/u8-prefix-context.c: New file.
8834         * lib/unicase/u-prefix-context.h: New file.
8835         * lib/unicase/context.h: New file.
8836         * modules/unicase/u8-prefix-context: New file.
8837
8838         New module 'unicase/empty-prefix-context'.
8839         * lib/unicase/empty-prefix-context.c: New file.
8840         * modules/unicase/empty-prefix-context: New file.
8841
8842         New module 'unicase/ignorable'.
8843         * lib/unicase/ignorable.c: New file.
8844         * modules/unicase/ignorable: New file.
8845
8846         New module 'unicase/cased'.
8847         * lib/unicase/caseprop.h: New file.
8848         * lib/unicase/cased.c: New file.
8849         * modules/unicase/cased: New file.
8850
8851         New functions for case mapping of substrings.
8852         * lib/unicase.h (casing_prefix_context_t): New type.
8853         (unicase_empty_prefix_context): New variable.
8854         (u8_casing_prefix_context, u16_casing_prefix_context,
8855         u32_casing_prefix_context, u8_casing_prefixes_context,
8856         u16_casing_prefixes_context, u32_casing_prefixes_context): New
8857         declarations.
8858         (casing_suffix_context_t): New type.
8859         (unicase_empty_suffix_context): New variable.
8860         (u8_casing_suffix_context, u16_casing_suffix_context,
8861         u32_casing_suffix_context, u8_casing_suffixes_context,
8862         u16_casing_suffixes_context, u32_casing_suffixes_context,
8863         u8_ct_toupper, u16_ct_toupper, u32_ct_toupper, u8_ct_tolower,
8864         u16_ct_tolower, u32_ct_tolower, u8_ct_totitle, u16_ct_totitle,
8865         u32_ct_totitle, u8_ct_casefold, u16_ct_casefold, u32_ct_casefold): New
8866         declarations.
8867
8868 2009-06-28  Jim Meyering  <meyering@redhat.com>
8869
8870         boostrap: indent only with spaces
8871         * build-aux/bootstrap: Indent only with spaces, never TABs.
8872
8873         bootstrap: split long lines
8874         * build-aux/bootstrap: Keep line length < 80.
8875
8876         bootstrap: sync from coreutils
8877         * build-aux/bootstrap: Honor variables like $ACLOCAL, etc.,
8878         just as autoreconf does.  Verify a list of prerequisite
8879         package-name,version-number pairs if defined in bootstrap.conf.
8880         Refer to README-prereq, if prerequisites are not satisfied.
8881
8882 2009-06-27  Eric Blake  <ebb9@byu.net>
8883
8884         tests: add test for bogus NULL definition
8885         * tests/test-stdio.c: Ensure POSIX 2008 requirement on NULL.
8886         * tests/test-stdlib.c: Likewise.
8887         * tests/test-string.c: Likewise.
8888         * tests/test-locale.c: Likewise.
8889         * tests/test-unistd.c: Likewise.
8890         * modules/stdio-tests (Depends-on): Add verify.
8891         * modules/stdlib-tests (Depends-on): Likewise.
8892         * modules/string-tests (Depends-on): Likewise.
8893         * modules/locale-tests (Depends-on): Likewise.
8894         * modules/unistd-tests (Depends-on): Likewise.
8895
8896 2009-06-27  Paolo Bonzini  <bonzini@gnu.org>
8897
8898         * m4/selinux-context-h (gl_HEADERS_SELINUX_CONTEXT_H): Remove
8899         self-explaining comment.
8900         * m4/selinux-selinux-h: Update serial.
8901         (gl_LIBSELINUX): New macro, adding a warning for missing development
8902         packages to code extracted from...
8903         (gl_HEADERS_SELINUX_SELINUX_H): ... this one.  Require gl_LIBSELINUX.
8904         Add warning for missing development packages here, too.
8905
8906 2009-06-26  Paolo Bonzini  <bonzini@gnu.org>
8907
8908         * build-aux/bootstrap: Do not use GIT_CONFIG_LOCAL.
8909
8910 2009-06-25  Eric Blake  <ebb9@byu.net>
8911
8912         version-etc: fix regression
8913         * lib/version-etc.h (ATTRIBUTE_SENTINEL): Define for new enough
8914         gcc.
8915         (version_etc): Use it, to catch bugs with trailing NULL.
8916         * lib/version-etc.c (version_etc_arn): Delete unused argument.
8917         (version_etc_va): Fix logic bug.
8918         * modules/version-etc-tests: Add test.
8919         * tests/test-version-etc.c: New file.
8920         * tests/test-version-etc.sh: Likewise.
8921
8922 2009-06-25  Sam Steingold  <sds@gnu.org>
8923
8924         * mbrtowc.m4 (gl_MBRTOWC_SANITYCHECK): Include <stdlib.h>, for the
8925         mbtowc declaration.
8926
8927 2009-06-25  Eric Blake  <ebb9@byu.net>
8928
8929         fpurge: migrate into <stdio.h>
8930         * lib/fpurge.h: Delete...
8931         * lib/stdio.in.h (fpurge): ...and declare here, instead.
8932         * lib/fpurge.c (fpurge): Change declaring header.
8933         * modules/fpurge (Files): Drop deleted file.
8934         (Depends-on): Add stdio.
8935         (configure.ac): Set witness.
8936         * modules/stdio (Makefile.am): Support fpurge macros.
8937         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Likewise.
8938         * m4/fpurge.m4 (gl_FUNC_FPURGE): Set appropriate variables.
8939         * lib/fflush.c: Update client.
8940         * tests/test-fpurge.c: Likewise.
8941         * NEWS: Mention the change.
8942
8943 2009-06-25  Sergey Poznyakoff  <gray@gnu.org.ua>
8944
8945         * lib/argp-version-etc.c (program_authors): Add const
8946         qualifier.
8947         * lib/version-etc.c: Fix typos in the comments.
8948         * modules/argp-version-etc: Depends on version-etc.
8949
8950 2009-06-25  Sergey Poznyakoff  <gray@gnu.org.ua>
8951
8952         argp-version-etc: new module.
8953
8954         * lib/argp-version-etc.c: New file.
8955         * lib/argp-version-etc.h: New file.
8956         * modules/argp-version-etc: New file.
8957         * modules/argp-version-etc-tests: New file.
8958         * tests/test-argp-version-etc.c: New test.
8959         * tests/test-argp-version-etc-1.sh: New test.
8960
8961 2009-06-25  Sergey Poznyakoff  <gray@gnu.org.ua>
8962
8963         Provide additional interfaces and documentation for version-etc
8964         module.
8965
8966         * lib/version-etc.c (version_etc_arn, version_etc_ar): New
8967         interfaces.
8968         * lib/version-etc.h (version_etc_arn, version_etc_ar): New
8969         prototypes.
8970
8971 2009-06-24  Bruno Haible  <bruno@clisp.org>
8972
8973         * m4/lib-link.m4 (AC_LIB_HAVE_LINKFLAGS): Fix description of
8974         HAVE_LIB${NAME} macro.
8975         Reported by Sam Steingold <sds@gnu.org>.
8976
8977 2009-06-23  Simon Josefsson  <simon@josefsson.org>
8978
8979         * modules/hash-tests (test_hash_LDADD): Link to libintl when
8980         needed.
8981
8982 2009-06-21  Bruno Haible  <bruno@clisp.org>
8983
8984         Make two consecutive identical invocations of AC_LIB_HAVE_LINKFLAGS
8985         work.
8986         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): Reset HAVE_LIB${NAME}
8987         together with LIB${NAME}, LTLIB${NAME}.
8988         Reported by Sam Steingold <sds@gnu.org>.
8989
8990 2009-06-20  Jim Meyering  <meyering@redhat.com>
8991
8992         tests: make sc_require_test_exit_idiom more generic
8993         * top/maint.mk (Exit_witness_file): New overridable variable.
8994         (sc_require_test_exit_idiom): Don't hard-code tests/test-lib.sh.
8995         Relax test for /^Exit \$fail$$/ to just /^Exit ./.
8996
8997 2009-06-19  Jim Meyering  <meyering@redhat.com>
8998
8999         hash: reverse order of src/dst parameters in an internal interface
9000         * lib/hash.c (transfer_entries): Reverse order of parameters to
9001         put DST before SRC.  Adjust callers.
9002
9003         tests: test-hash: avoid wholesale duplication
9004         * tests/test-hash.c (main): Don't copy/paste a 60-line loop.
9005         Instead, use a loop and add a single conditional.
9006
9007         tests: test-hash: allow seed selection via a command line argument
9008         * tests/test-hash.c (get_seed): New function.
9009         (main): Use it.
9010
9011 2009-06-19  Eric Blake  <ebb9@byu.net>
9012
9013         hash: avoid memory leak on allocation failure
9014         * lib/hash.c: (hash_rehash): Avoid memory leak on allocation
9015         failure.  Factor repeated algorithm...
9016         (transfer_entries): ...into new helper routine.
9017         (hash_delete): React to hash_rehash return value.
9018
9019         hash: reduce memory pressure in hash_rehash no-op case
9020         * lib/hash.c (next_prime): Avoid overflow.
9021         (hash_initialize): Factor bucket size computation...
9022         (compute_bucket_size): ...into new helper function.
9023         (hash_rehash): Use new function and open coding to reduce memory
9024         pressure, and avoid a memory leak in USE_OBSTACK code.
9025         Reported by Jim Meyering.
9026
9027 2009-06-18  Eric Blake  <ebb9@byu.net>
9028
9029         hash: make rotation more obvious
9030         * modules/hash (Depends-on): Add bitrotate and stdint.
9031         * lib/bitrotate.h (rotl_sz, rotr_sz): New functions.
9032         * lib/hash.c (headers): Drop limits.h.  Add stdint.h.
9033         (SIZE_MAX): Rely on headers for definition.
9034         (hash_string) [USE_DIFF_HASH]: Use rotl_sz.
9035         (raw_hasher): Use rotr_sz.
9036         Suggested by Jim Meyering.
9037
9038         hash: fix memory leak in last patch
9039         * lib/hash.c (hash_rehash): Avoid memory leak.
9040
9041         hash: avoid no-op rehashing
9042         * lib/hash.c (hash_rehash): Recognize useless rehash attempts.
9043
9044         hash: provide default callback functions
9045         * lib/hash.c (raw_hasher, raw_comparator): New functions.
9046         (hash_initialize): Use them as defaults.
9047         * tests/test-hash.c (main): Test this.
9048
9049         hash: minor optimization
9050         * lib/hash.c (hash_lookup, hash_find_entry): Avoid function call
9051         when possible.
9052         (hash_initialize): Document this promise.
9053         (hash_do_for_each, hash_clear, hash_free): Use C89 syntax.
9054         * tests/test-hash.c (hash_compare_strings): Test this.
9055
9056 2009-06-18  Bruno Haible  <bruno@clisp.org>
9057
9058         * m4/strstr.m4 (gl_FUNC_STRSTR): Skip linear time test if strstr is
9059         going to be replaced anyway.
9060
9061 2009-06-18  Bruno Haible  <bruno@clisp.org>
9062
9063         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE): Invoke AC_LIBOBJ only
9064         in one place.
9065         (gl_FUNC_STRCASESTR): Skip linear time test if strcasestr is going to
9066         be replaced anyway.
9067
9068 2009-06-18  Eric Blake  <ebb9@byu.net>
9069
9070         hash: check for resize before insertion
9071         * lib/hash.c (hash_insert): Check whether bucket usage exceeds
9072         threshold before insertion, so that a pathological hash_rehash
9073         that fills every bucket can still trigger another rehash.
9074
9075 2009-06-18  Jim Meyering  <meyering@redhat.com>
9076
9077         hash-tests: add a loop around the small tests
9078         * tests/test-hash.c (main): Repeat small tests with selected
9079         small initial table sizes.
9080
9081 2009-06-17  Eric Blake  <ebb9@byu.net>
9082
9083         hash: minor cleanups
9084         * lib/hash.h (hash_entry): Make opaque, by moving...
9085         * lib/hash.c (hash_entry): ...here.
9086         (hash_insert): Clarify restrictions on what can be inserted.
9087         (hash_get_next): Clarify when it is safe to remove an element
9088         during traversal.
9089         (check_tuning): Skip verification when tuning is known safe.
9090         (hash_initialize): Clarify restrictions on tuning.
9091
9092 2009-06-17  Jim Meyering  <jim@meyering.net>
9093         and Eric Blake  <ebb9@byu.net>
9094
9095         hash-tests: new module
9096         * modules/hash-tests: New file.
9097         * tests/test-hash.c: New file.
9098
9099 2009-06-17  Eric Blake  <ebb9@byu.net>
9100
9101         strstr-simple: document new module
9102         * MODULES.html.sh: Document new module.
9103
9104         strstr, strcasestr: replace on platforms with broken memchr
9105         * modules/strstr: Split into...
9106         * modules/strstr-simple: ...new module that does not care about
9107         performance, but does care about glibc bug.
9108         * m4/strstr.m4 (gl_FUNC_STRSTR): Split...
9109         (gl_FUNC_STRSTR_SIMPLE): ...into new macro, which replaces strstr
9110         if platform memchr is broken, per Debian bug 521737.
9111         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE): React to broken
9112         memchr.
9113         * m4/memchr.m4 (gl_FUNC_MEMCHR): Only expand once.
9114         * doc/posix-functions/strstr.texi (strstr): Document the fix.
9115         * doc/glibc-functions/strcasestr.texi (strcasestr): Likewise.
9116         * modules/mountlist (Depends-on): Add strstr-simple.
9117         * modules/gen-uni-tables (Depends-on): Likewise.
9118         * modules/argz (Depends-on): Add strstr.
9119
9120 2009-06-17  Bruno Haible  <bruno@clisp.org>
9121
9122         * modules/posix_spawn-internal (Depends-on): Add errno.
9123
9124 2009-06-17  Bruno Haible  <bruno@clisp.org>
9125
9126         Define missing ESTALE on Interix 3.5.
9127         * lib/errno.in.h (ESTALE): Assign a value if missing.
9128         * lib/strerror.c (rpl_strerror): Handle missing ESTALE and ECANCELED.
9129         * m4/errno_h.m4 (gl_HEADER_ERRNO_H): Also test whether ESTALE is
9130         missing.
9131         * doc/posix-headers/errno.texi: Mention the Interix bug.
9132         Reported by Jay Krell <jay.krell@cornell.edu> via Eric Blake.
9133
9134 2009-06-15  Eric Blake  <ebb9@byu.net>
9135
9136         memchr, memchr2: add valgrind exception
9137         * lib/memchr.valgrind: New file.
9138         * lib/memchr2.valgrind: New file.
9139         * modules/memchr (Files): Distribute valgrind file.
9140         * modules/memchr2 (Files): Likewise.
9141
9142         docs: memchr is no longer obsolete
9143         * MODULES.html.sh: Move memchr from obsolete to string.h section.
9144         * lib/string.in.h (memchr): Simplify logic.
9145
9146 2009-06-14  Jim Meyering  <meyering@redhat.com>
9147
9148         link-follow: fix the "checking..." message to not mention trailing slash
9149         * m4/link-follow.m4 (gl_AC_FUNC_LINK_FOLLOWS_SYMLINK): This test has
9150         never considered trailing slashes.
9151
9152 2009-06-14  Bruno Haible  <bruno@clisp.org>
9153
9154         * m4/memchr.m4: Mention also the bug on IA-64.
9155         * doc/posix-functions/memchr.texi: Likewise.
9156
9157 2009-06-12  Eric Blake  <ebb9@byu.net>
9158
9159         memchr: detect broken x86_64 and alpha implementations
9160         * modules/memchr-tests (Depends-on): Move mmap detection...
9161         * modules/memchr (Depends-on): ...here.
9162         (configure.ac): Set indicator.
9163         * lib/string.in.h (memchr): Declare replacement.
9164         * modules/string (Makefile.am): Trigger replacement.
9165         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Likewise.
9166         * m4/memchr.m4 (gl_FUNC_MEMCHR): Use mmap to detect platform
9167         bugs.
9168         * doc/posix-functions/memchr.texi (memchr): Document the bug.
9169         * modules/getpagesize (License): Relax license.
9170
9171 2009-06-11  Bruno Haible  <bruno@clisp.org>
9172
9173         * lib/idpriv.h: Add more references.
9174
9175 2009-06-08  Bruno Haible  <bruno@clisp.org>
9176
9177         Tests for module 'idpriv-droptemp'.
9178         * modules/idpriv-droptemp-tests: New file.
9179         * tests/test-idpriv-droptemp.sh: New file.
9180         * tests/test-idpriv-droptemp.su.sh: New file.
9181         * tests/test-idpriv-droptemp.c: New file.
9182
9183         New module 'idpriv-droptemp'.
9184         * lib/idpriv-droptemp.c: New file.
9185         * modules/idpriv-droptemp: New file.
9186
9187 2009-06-08  Bruno Haible  <bruno@clisp.org>
9188
9189         Tests for module 'idpriv-drop'.
9190         * modules/idpriv-drop-tests: New file.
9191         * tests/test-idpriv-drop.sh: New file.
9192         * tests/test-idpriv-drop.su.sh: New file.
9193         * tests/test-idpriv-drop.c: New file.
9194
9195         New module 'idpriv-drop'.
9196         * lib/idpriv.h: New file.
9197         * lib-idpriv-drop.c: New file.
9198         * m4/idpriv.m4: New file.
9199         * modules/idpriv-drop: New file.
9200
9201 2009-06-08  Bruno Haible  <bruno@clisp.org>
9202
9203         * modules/unistdio/u8-vasnprintf (Depends-on): Add memchr.
9204         * modules/unistdio/u8-u8-vasnprintf (Depends-on): Likewise.
9205         * modules/unistdio/u16-vasnprintf (Depends-on): Likewise.
9206         * modules/unistdio/u16-u16-vasnprintf (Depends-on): Likewise.
9207         * modules/unistdio/u32-vasnprintf (Depends-on): Likewise.
9208         * modules/unistdio/u32-u32-vasnprintf (Depends-on): Likewise.
9209         * modules/unistdio/ulc-vasnprintf (Depends-on): Likewise.
9210
9211 2009-06-08  Eric Blake  <ebb9@byu.net>
9212
9213         test-strstr: use memory fence, when possible
9214         * tests/test-strstr.c (main): Use memory fence, in order to be
9215         more likely to trigger Debian bug 521737.
9216         * modules/strstr-tests (Files): Pull in additional files.
9217
9218         memchr: no longer obsolete, for wider field testing
9219         * modules/memchr (Status, Notice): Delete, this module is no
9220         longer obsolete.
9221         * modules/vasnprintf (Depends-on): Add memchr.
9222
9223 2009-06-07  Jim Meyering  <meyering@redhat.com>
9224
9225         hash: declare some functions with the warn_unused_result attribute
9226         * lib/hash.h (__attribute__, ATTRIBUTE_WUR): Define.
9227
9228 2009-06-07  Bruno Haible  <bruno@clisp.org>
9229
9230         * tests/test-alignof.c: Don't test int64_t if it does not exist.
9231         Reported by Eric Blake.
9232
9233 2009-06-06  Eric Blake  <ebb9@byu.net>
9234
9235         test-alignof: fix typo with long double
9236         * tests/test-alignof.c (CHECK): Use longdouble typedef to avoid
9237         compiler error.
9238
9239 2009-06-06  Neil Jerram  <neil@ossau.uklinux.net>  (tiny change)
9240
9241         Escape non-texinfo { and }s.
9242         * doc/ld-output-def.texi (Visual Studio Compatibility): Fix
9243         markup error.
9244
9245 2009-06-04  Jim Meyering  <meyering@redhat.com>
9246
9247         gitlog-to-changelog: don't infloop on an empty commit log
9248         * build-aux/gitlog-to-changelog: Warn about an empty log message.
9249         Reported by Boris Petersen <transacid@centerim.org>.
9250
9251 2009-06-03  Mike Frysinger  <vapier@gentoo.org>
9252
9253         version-etc: extend for packagers
9254         Add three new configure options, intended for packagers:
9255           --with-packager="packager name"
9256           --with-packager-version="packager-specific version"
9257           --with-packager-bug-reports="packager bug reporting"
9258         An example with coreutils:
9259           $ ./configure \
9260             --with-packager=Gentoo \
9261             --with-packager-bug-report=http://bugs.gentoo.org/ \
9262             --with-packager-version="patchset 1.6"
9263           $ ./src/ls --version | head -n3
9264           ls (GNU coreutils) 7.1-dirty
9265           Packaged by Gentoo (patchset 1.6)
9266           Copyright (C) 2009 Free Software Foundation, Inc.
9267         Note that the bug reporting info via --help doesn't show up because
9268         coreutils uses its own custom emit_bug_reporting_address() implementation
9269         in src/system.h.  If it didn't, it'd look like:
9270           $ ./src/ls --help | tail -n4
9271           Report bugs to <bug-coreutils@gnu.org>.
9272           Report Gentoo bugs to <http://bugs.gentoo.org/>.
9273           GNU coreutils home page: <http://www.gnu.org/software/coreutils/>.
9274           General help using GNU software: <http://www.gnu.org/gethelp/>.
9275         * lib/version-etc.c: Print new information, if provided.
9276         * m4/version-etc.m4: New file.
9277         * modules/version-etc (Files): Add m4/version-etc.m4.
9278         (configure.ac): Add gl_VERSION_ETC.
9279
9280 2009-05-31  Bruno Haible  <bruno@clisp.org>
9281
9282         * tests/test-alignof.c: Include <stdint.h>. Check also 'long double'
9283         and 'int64_t'.
9284         * modules/alignof-tests (Dependencies): Add stdint.
9285         Reported by Eric Blake.
9286
9287 2009-05-31  Bruno Haible  <bruno@clisp.org>
9288
9289         * lib/alignof.h (alignof_slot, alignof_type, alignof): Document
9290         restriction due to compiler bugs.
9291         Reported by Eric Blake.
9292
9293 2009-05-31  Simon Josefsson  <simon@josefsson.org>
9294             Bruno Haible  <bruno@clisp.org>
9295
9296         Fix test-alignof failure.
9297         * lib/alignof.h (alignof_slot): New macro.
9298         (alignof_type): New macro, with the same semantics as the previous
9299         'alignof'.
9300         (alignof): Alias to alignof_slot.
9301         * tests/test-alignof.c (CHECK): Check alignof_slot, not alignof. Also
9302         check that the results are usable as constant expressions.
9303
9304 2009-05-31  Bruno Haible  <bruno@clisp.org>
9305
9306         * tests/zerosize-ptr.h (zerosize_ptr): Specify more details.
9307         * tests/test-memchr.c (main): Check that memchr does not read past the
9308         first occurrence of the byte.
9309         * tests/test-strstr.c (main): Update comment.
9310         Suggested by Eric Blake.
9311
9312 2009-05-30  Bruno Haible  <bruno@clisp.org>
9313
9314         * doc/ld-output-def.texi (Visual Studio Compatibility): Explain in more
9315         detail how to use dumpbin.
9316         Reported by David Byron <dbyron@dbyron.com>.
9317
9318 2009-06-02  Simon Josefsson  <simon@josefsson.org>
9319
9320         * tests/test-parse-duration.sh: Don't use non-portable 'read -u3'.
9321
9322 2009-06-02  Simon Josefsson  <simon@josefsson.org>
9323
9324         * m4/manywarnings.m4: Add GCC 4.4 warnings.
9325
9326 2009-05-28  Bruno Haible  <bruno@clisp.org>
9327
9328         * gnulib-tool (func_import): Don't do HAVE_CONFIG_H replacements on
9329         build-aux/ files.
9330
9331 2009-05-28  Simon Josefsson  <simon@josefsson.org>
9332
9333         * gnulib-tool (func_import): Transform license on build-aux/ files too.
9334
9335 2009-05-27  Simon Josefsson  <simon@josefsson.org>
9336
9337         * gnulib-tool (sed_transform_main_lib_file)
9338         (sed_transform_testsrelated_lib_file): : Don't use non-POSIX
9339         regexps.
9340
9341 2009-05-26  Simon Josefsson  <simon@josefsson.org>
9342
9343         * tests/test-strstr.c: Add another self-test.
9344         * tests/test-strstr.c: Rewrite to use malloc/strcpy instead of
9345         strdup.  Suggested by Eric Blake  <ebb9@byu.net>.
9346
9347 2009-05-23  Bruno Haible  <bruno@clisp.org>
9348
9349         * doc/havelib.texi (AC_LIB_HAVE_LINKFLAGS): Update for 2009-04-26
9350         change.
9351
9352 2009-05-21  Bruno Haible  <bruno@clisp.org>
9353
9354         Simplify use of mode_t varargs.
9355         * lib/open.c (open): Use PROMOTED_MODE_T instead of a conditional that
9356         uses 'mode_t' or 'int'.
9357         * lib/openat.c (openat): Likewise.
9358         * lib/open-safer.c (open_safer): Likewise.
9359         * m4/mode_t.m4: New file.
9360         * m4/open.m4 (gl_PREREQ_OPEN): Require gl_PROMOTED_TYPE_MODE_T.
9361         * m4/openat.m4 (gl_PREREQ_OPENAT): Likewise.
9362         * m4/fcntl-safer.m4 (gl_FCNTL_SAFER): Likewise.
9363         * modules/open (Files): Add m4/mode_t.m4.
9364         * modules/openat (Files): Likewise.
9365         * modules/fcntl-safer (Files): Likewise.
9366         Suggested by Eric Blake.
9367
9368 2009-05-21  Pádraig Brady  <P@draigbrady.com>
9369
9370         * doc/glibc-functions/fallocate.texi: New file.
9371         * doc/gnulib.texi: Include it.
9372
9373 2009-05-21  Eric Blake  <ebb9@byu.net>
9374             Bruno Haible  <bruno@clisp.org>
9375
9376         * m4/include_next.m4 (gl_CHECK_NEXT_HEADERS): Remove redundant m4_quote
9377         invocations.
9378         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Likewise.
9379
9380 2009-05-21  Eric Blake  <ebb9@byu.net>
9381             Bruno Haible  <bruno@clisp.org>
9382
9383         Second attempt to work around an AIX 5.3, 6.1 compiler bug with
9384         include_next. Fix of 2008-11-20 commit.
9385         * m4/include_next.m4 (gl_CHECK_NEXT_HEADERS): Also set
9386         NEXT_AS_FIRST_DIRECTIVE_FOO_H.
9387         * lib/math.in.h: Use NEXT_AS_FIRST_DIRECTIVE_MATH_H instead of
9388         NEXT_MATH_H.
9389         * modules/math (Makefile.am): Substitute NEXT_AS_FIRST_DIRECTIVE_MATH_H
9390         instead of NEXT_MATH_H.
9391
9392 2009-05-21  Bruno Haible  <bruno@clisp.org>
9393
9394         Avoid redefinition warnings for SIZE_MAX.
9395         * m4/size_max.m4 (gl_SIZE_MAX): Avoid redefining SIZE_MAX in config.h.
9396         Reported by Simon Josefsson.
9397
9398 2009-05-21  Bruno Haible  <bruno@clisp.org>
9399
9400         * m4/size_max.m4 (gl_SIZE_MAX): Use AC_CACHE_CHECK instead of
9401         AC_CACHE_VAL.
9402
9403 2009-05-20  Bruno Haible  <bruno@clisp.org>
9404
9405         Make zeroptr.h work on mingw.
9406         * tests/zerosize-ptr.h: Test for the presence of <sys/mman.h> and
9407         mprotect.
9408         * modules/memchr-tests (configure.ac): Also test for sys/mman.h.
9409         * modules/memchr2-tests (configure.ac): Likewise.
9410         * modules/memcmp-tests (configure.ac): Likewise.
9411         * modules/memmem-tests (configure.ac): Likewise.
9412         * modules/memrchr-tests (configure.ac): Likewise.
9413         Reported by Simon Josefsson.
9414
9415 2009-05-20  Simon Josefsson  <simon@josefsson.org>
9416
9417         * tests/test-glob.c: Include string.h for strcmp prototype.
9418
9419 2009-05-20  Simon Josefsson  <simon@josefsson.org>
9420
9421         * modules/getdelim (Depends-on): Add explicit stdint, although it
9422         was implicitly already pulled in via realloc-posix.
9423         * lib/getdelim.c: Get SIZE_MAX from stdint.h.
9424
9425 2009-05-20  Simon Josefsson  <simon@josefsson.org>
9426
9427         MinGW and IRIX does not have sa_family_t type.  Reported by "Tom
9428         G. Christensen" <tgc@jupiterrise.com>.
9429         * m4/sys_socket_h.m4: Check for sa_family_t.
9430         * lib/sys_socket.in.h: Typedef sa_family_t when needed.
9431         * modules/sys_socket: Substitute HAVE_SA_FAMILY_T.
9432         * tests/test-sys_socket.c: Check that sa_family_t works.
9433
9434 2009-05-18  Eric Blake  <ebb9@byu.net>
9435
9436         maint.mk: allow gnulib_dir in VPATH build
9437         * top/maint.mk (gnulib_dir): Make relative to $(srcdir).
9438
9439 2009-05-15  Jim Meyering  <meyering@redhat.com>
9440
9441         maint.mk: Give gnulib_dir a default definition.
9442         * top/maint.mk (gnulib_dir): Define to 'gnulib', by default.
9443         Thus, most packages no longer need to specify this variable in cfg.mk
9444
9445 2009-05-14  Tom Prince  <tom.prince@ualberta.net>  (tiny change)
9446
9447         rename.m4: fix typos that would make non-mingw cross-configure fail
9448         * m4/rename.m4 (gl_FUNC_RENAME): Fix typos.
9449
9450 2009-05-13  Eric Blake  <ebb9@byu.net>
9451
9452         mmap-anon: avoid out-of-order autoconf expansion
9453         * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Use correct
9454         SYSTEM_EXTENSIONS macro to silence warnings from autoconf 2.63b.
9455         * modules/memchr-tests (Depends-on): Add extensions.
9456         * modules/memchr2-tests (Depends-on): Add extensions.
9457         * modules/memcmp-tests (Depends-on): Add extensions.
9458         * modules/memmem-tests (Depends-on): Add extensions.
9459         * modules/memrchr-tests (Depends-on): Add extensions.
9460
9461 2009-05-13  Bruno Haible  <bruno@clisp.org>
9462
9463         Make some tests ISO C 99 compliant.
9464         * tests/zerosize-ptr.h: New file.
9465         * tests/test-memchr.c: Include zerosize-ptr.h.
9466         (main): Use a zero-size object pointer instead of NULL.
9467         * tests/test-memchr2.c: Include zerosize-ptr.h.
9468         (main): Use a zero-size object pointer instead of NULL.
9469         * tests/test-memcmp.c: Include zerosize-ptr.h.
9470         (main): Use a zero-size object pointer instead of NULL.
9471         * tests/test-memmem.c: Include zerosize-ptr.h.
9472         (main): Use a zero-size object pointer instead of NULL.
9473         * tests/test-memrchr.c: Include zerosize-ptr.h.
9474         (main): Use a zero-size object pointer instead of NULL.
9475         * modules/memchr-tests (Files): Add tests/zerosize-ptr.h,
9476         m4/mmap-anon.m4.
9477         (Depends-on): Add getpagesize.
9478         (configure.ac): Invoke gl_FUNC_MMAP_ANON. Check for mprotect.
9479         * modules/memchr2-tests (Files): Add tests/zerosize-ptr.h,
9480         m4/mmap-anon.m4.
9481         (Depends-on): Add getpagesize.
9482         (configure.ac): Invoke gl_FUNC_MMAP_ANON. Check for mprotect.
9483         * modules/memcmp-tests (Files): Add tests/zerosize-ptr.h,
9484         m4/mmap-anon.m4.
9485         (Depends-on): Add getpagesize.
9486         (configure.ac): Invoke gl_FUNC_MMAP_ANON. Check for mprotect.
9487         * modules/memmem-tests (Files): Add tests/zerosize-ptr.h,
9488         m4/mmap-anon.m4.
9489         (Depends-on): Add getpagesize.
9490         (configure.ac): Invoke gl_FUNC_MMAP_ANON. Check for mprotect.
9491         * modules/memrchr-tests (Files): Add tests/zerosize-ptr.h,
9492         m4/mmap-anon.m4.
9493         (Depends-on): Add getpagesize.
9494         (configure.ac): Invoke gl_FUNC_MMAP_ANON. Check for mprotect.
9495
9496 2009-05-12  Bruno Haible  <bruno@clisp.org>
9497
9498         Tests for module 'alignof'.
9499         * modules/alignof-tests: New file.
9500         * tests/test-alignof.c: New file.
9501
9502 2009-05-12  Bruno Haible  <bruno@clisp.org>
9503
9504         Fix alignof macro.
9505         * lib/alignof.h (alignof): Remove special cases for AIX and HP-UX
9506         vendor compilers that are always correct.
9507
9508 2009-05-12  Bruno Haible  <bruno@clisp.org>
9509
9510         Make the MAP_ANONYMOUS detection work on HP-UX 11.
9511         * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Check whether mmap exists, but
9512         not whether its fully works.
9513
9514 2009-05-12  Bruno Haible  <bruno@clisp.org>
9515
9516         * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Add comments.
9517
9518 2009-05-12  Jim Meyering  <meyering@redhat.com>
9519
9520         * top/maint.mk: Adjust backslash alignment.
9521
9522 2009-05-11  Simon Josefsson  <simon@josefsson.org>
9523
9524         * top/maint.mk: Make $(srcdir)/build-aux configurable.
9525
9526 2009-05-11  Eric Blake  <ebb9@byu.net>
9527
9528         argp: avoid undefined behavior
9529         * lib/argp-fmtstream.c (weak_alias): Pass correct types to ctype
9530         macros.
9531
9532 2009-05-08  Simon Josefsson  <simon@josefsson.org>
9533
9534         * tests/test-vc-list-files-git.sh: Do git config of user.email and
9535         user.name to prevent git commit from complaining.
9536
9537 2009-05-10  Bruno Haible  <bruno@clisp.org>
9538
9539         * gnulib-tool (func_import, func_create_testdir, copy-file): Change
9540         sed_rewrite_old_files, sed_rewrite_new_files, sed_rewrite_files so that
9541         it rewrites every file name only once.
9542         Reported by Simon Josefsson. Helped by Ralf Wildenhues.
9543
9544 2009-05-08  Bruno Haible  <bruno@clisp.org>
9545
9546         * lib/sys_socket.in.h (_SS_PADSIZE): Use a conditional expression
9547         instead of 'max'.
9548
9549 2009-05-08  Simon Josefsson  <simon@josefsson.org>
9550
9551         * m4/sys_socket_h.m4: Test for ws2tcpip.h earlier, needed for
9552         sockaddr_storage test.
9553
9554 2009-05-07  Simon Josefsson  <simon@josefsson.org>
9555
9556         * modules/sys_socket (Makefile.am): Substitute
9557         HAVE_STRUCT_SOCKADDR_STORAGE.  Depend on alignof.
9558         * m4/sys_socket_h.m4: Check for sockaddr_storage.
9559         * lib/sys_socket.in.h (sockaddr_storage): Define when needed.
9560         * tests/test-sys_socket.c: Check sockaddr_storage.
9561
9562 2009-05-08  Bruno Haible  <bruno@clisp.org>
9563
9564         New module 'alignof'.
9565         * lib/alignof.h: New file.
9566         * modules/alignof: New file.
9567
9568 2009-05-04  David Bartley  <dtbartle@csclub.uwaterloo.ca>
9569             Bruno Haible  <bruno@clisp.org>
9570
9571         Fix test-file-has-acl on FreeBSD.
9572         * tests/test-file-has-acl.sh: Also test a directory. On FreeBSD, the
9573         mask is implicitly added.
9574         * tests/test-file-has-acl.c: Include <signal.h>.
9575         (main): Terminate the test after 5 seconds.
9576         * modules/acl-tests (configure.ac): Check for alarm function.
9577
9578 2009-05-04  Bruno Haible  <bruno@clisp.org>
9579
9580         Exploit new semantics of AC_DEFUN_ONCE available since 2009-01-26.
9581         * m4/errno_h.m4 (gl_HEADER_ERRNO_H): Remove outdated comment.
9582         * modules/errno (configure.ac): Drop AC_REQUIRE.
9583         * m4/multiarch.m4 (gl_MULTIARCH): Remove outdated comment.
9584         * modules/multiarch (configure.ac): Drop AC_REQUIRE.
9585
9586 2009-05-04  Simon Josefsson  <simon@josefsson.org>
9587
9588         * modules/glob-tests: New module.
9589         * tests/test-glob.c: Add.
9590
9591 2009-05-04  Simon Josefsson  <simon@josefsson.org>
9592
9593         * modules/fnmatch-tests: New module.
9594         * tests/test-fnmatch.c: Add.
9595
9596 2009-05-04  Eric Blake  <ebb9@byu.net>
9597
9598         maint: make the new no-submodule-changes rule VPATH-safe
9599         * top/maint.mk (no-submodule-changes): Don't assume a srcdir build.
9600
9601 2009-05-04  David Bartley  <dtbartle@csclub.uwaterloo.ca>
9602             Bruno Haible  <bruno@clisp.org>
9603
9604         acl: Fix infinite loop on FreeBSD.
9605         * lib/acl_entries.c (acl_entries) [Linux, FreeBSD]: Fix interpretation
9606         of return value from acl_get_entry.
9607         * lib/file-has-acl.c (acl_access_nontrivial) [Linux, FreeBSD]:
9608         Likewise.
9609
9610 2009-05-03  Bruno Haible  <bruno@clisp.org>
9611
9612         * lib/acl-internal.h (acl_entries): Clarify return value.
9613         * lib/acl_entries.c (acl_entries): Likewise.
9614
9615 2009-05-04  David Bartley  <dtbartle@csclub.uwaterloo.ca>
9616
9617         Bug fix in acl module.
9618         * lib/set-mode-acl.c: Use correct struct with ACL_SETACL.
9619
9620 2009-05-03  Bruno Haible  <bruno@clisp.org>
9621
9622         Create gperf-generated file in the source dir, not in the build dir.
9623         * modules/iconv_open (iconv_open-aix.h, iconv_open-hpux.h,
9624         iconv_open-irix.h, iconv_open-osf.h): Create file in the source tree.
9625         * modules/unicase/locale-language (unicase/locale-languages.h):
9626         Likewise.
9627         * modules/unicase/special-casing (unicase/special-casing-table.h):
9628         Likewise.
9629         * modules/unictype/property-byname (unictype/pr_byname.h): Likewise.
9630         * modules/unictype/scripts (unictype/scripts_byname.h): Likewise.
9631         * modules/uninorm/composition (uninorm/composition-table.h): Likewise.
9632         Reported by Ralf Wildenhues.
9633
9634 2009-05-03  Bruno Haible  <bruno@clisp.org>
9635
9636         * modules/fnmatch (Description, configure.ac): Taken from
9637         fnmatch-posix.
9638         * modules/fnmatch-posix: Turn into a symbolic reference to the
9639         'fnmatch' module, and deprecate.
9640         * doc/posix-functions/fnmatch.texi: Mention the fnmatch module.
9641
9642 2009-05-03  Bruno Haible  <bruno@clisp.org>
9643
9644         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF,
9645         gl_PREREQ_VASNPRINTF_LONG_DOUBLE): Define through AC_DEFUN_ONCE.
9646         Reported by Ralf Wildenhues.
9647
9648 2009-05-04  Simon Josefsson  <simon@josefsson.org>
9649
9650         * m4/fnmatch.m4: Fix fnmatch re-define.
9651
9652 2009-04-27  David Bartley  <dtbartle@csclub.uwaterloo.ca>
9653
9654         priv-set: new module and tests; adapt write-any-file
9655         * lib/priv-set.c: New file.
9656         * lib/priv-set.h: New file.
9657         * lib/unlinkdir.c: Make cannot_unlink_dir thread-safe.
9658         * lib/write-any-file.c: Simplify by using priv-set module.
9659         * m4/priv-set.m4: New file.
9660         * modules/priv-set: New file.
9661         * modules/unlinkdir: Add dependency on priv-set module.
9662         * modules/write-any-file: Likewise.
9663
9664         Tests for module 'priv-set'.
9665         * modules/priv-set-tests: New file.
9666         * tests/test-priv-set.c: New file.
9667
9668 2009-05-03  Jim Meyering  <meyering@redhat.com>
9669             Bruno Haible  <bruno@clisp.org>
9670
9671         * lib/propername.c (proper_name_utf8): Ignore no-op translations;
9672         use the converted UTF-8 variant of the name instead.
9673
9674 2009-05-03  Jim Meyering  <meyering@redhat.com>
9675
9676         tests: tighten some getdate tests
9677         * tests/test-getdate.c (main): Tighten tests: require equality,
9678         not just greater than.  Set TZ envvar to UTC0.
9679
9680 2009-05-03  Giuseppe Scrivano  <gscrivano@gnu.org>
9681
9682         getdate: correctly interpret "next monday" when run on a Monday
9683         * lib/getdate.y (get_date): Correct the calculation of tm_mday so
9684         that e.g., "next tues" (when run on a tuesday) results in a date
9685         that is one week in the future, and not today's date.
9686         I.e., add a week when the wday is the same as the current one.
9687         Reported by Tom Broadhurst in http://savannah.gnu.org/bugs/?25406,
9688         and earlier by Martin Bernreuther and Jan Minář.
9689         * tests/test-getdate.c (main): Check that "next DAY" is always in
9690         the future and that "last DAY" is always in the past.
9691
9692 2009-05-02  Jim Meyering  <meyering@redhat.com>
9693
9694         build: ensure that a release build fails when a submodule is unclean
9695         * top/maint.mk (no-submodule-changes): New rule.
9696         (alpha beta major): Depend on it.
9697
9698 2009-05-02  Bruno Haible  <bruno@clisp.org>
9699
9700         Remove incompatibility between modules fnmatch-posix and fnmatch-gnu.
9701         * m4/fnmatch.m4 (gl_FUNC_FNMATCH_POSIX, gl_FUNC_FNMATCH_GNU): Use a
9702         shell variable gl_fnmatch_required to detect which variant is
9703         requested.
9704         (_AC_FUNC_FNMATCH_IF, _AC_LIBOBJ_FNMATCH): Remove macros. Inlined into
9705         gl_FUNC_FNMATCH_POSIX.
9706         * gnulib-tool (func_create_testdir, func_create_megatestdir): Don't
9707         exclude fnmatch-posix.
9708
9709 2009-05-02  Bruno Haible  <bruno@clisp.org>
9710
9711         Relicense mbsrtowcs and strnlen1 under LGPLv2+.
9712         * modules/mbsrtowcs (License): Change to LGPLv2+.
9713         * modules/strnlen1 (License): Likewise.
9714         Reported by Simon Josefsson.
9715
9716 2009-05-02  Bruno Haible  <bruno@clisp.org>
9717
9718         * m4/fnmatch.m4 (_AC_FUNC_FNMATCH_IF): Say "guessing no" instead of
9719         "cross".
9720         (gl_FUNC_FNMATCH_POSIX, gl_FUNC_FNMATCH_GNU): Update. Don't assume that
9721         gnulib-tool was called with option --source-base=lib.
9722
9723 2009-05-02  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
9724
9725         Use automake *-local hooks without commands, for extensibility.
9726         * modules/localcharset (Makefile.am): Rename install-exec-local
9727         rule to install-exec-localcharset, and make it a prerequisite of
9728         install-exec-local.  Likewise, rename the uninstall-local rule to
9729         uninstall-localcharset, and make it a prerequisite of the former.
9730
9731 2009-05-01  Bruno Haible  <bruno@clisp.org>
9732
9733         * lib/wchar.in.h (wcsnrtombs): Define if REPLACE_WCSNRTOMBS is 1.
9734         * m4/wcsnrtombs.m4 (gl_FUNC_WCSRTOMBS): Invoke gl_MBSTATE_T_BROKEN, and
9735         set REPLACE_WCSNRTOMBS if mbstate_t must be replaced.
9736         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_WCSNRTOMBS.
9737         * modules/wchar (Makefile.am): Substitute REPLACE_WCSNRTOMBS.
9738         * modules/wcsnrtombs (Files): Add m4/mbrtowc.m4, m4/locale-ja.m4,
9739         m4/locale-zh.m4, m4/codeset.m4.
9740
9741         * m4/wcsrtombs.m4 (gl_FUNC_WCSNRTOMBS): Invoke gl_MBSTATE_T_BROKEN, and
9742         set REPLACE_WCSRTOMBS if mbstate_t must be replaced.
9743         * modules/wcsrtombs (Files): Add m4/mbrtowc.m4, m4/locale-ja.m4,
9744         m4/locale-zh.m4.
9745
9746         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Invoke gl_MBSTATE_T_BROKEN, and set
9747         REPLACE_WCRTOMB if mbstate_t must be replaced.
9748         * modules/wcrtomb (Files): Add m4/mbrtowc.m4.
9749         Reported by Jens Rehsack <rehsack@googlemail.com> via Eric Blake.
9750
9751 2009-05-01  Bruno Haible  <bruno@clisp.org>
9752
9753         Avoid compiler warnings when redefining macros defined by <libintl.h>.
9754         * lib/gettext.h [!ENABLE_NLS] (gettext, dgettext, dcgettext, ngettext,
9755         dngettext, dcngettext, textdomain, bindtextdomain,
9756         bind_textdomain_codeset): Undefine before redefining.
9757
9758 2009-04-30  Bruno Haible  <bruno@clisp.org>
9759
9760         Fix bug introduced on 2009-04-25.
9761         * lib/math.in.h (gl_signbitf_OPTIMIZED_MACRO,
9762         gl_signbitd_OPTIMIZED_MACRO, gl_signbitl_OPTIMIZED_MACRO): New macros.
9763         * lib/signbitf.c (gl_signbitd): Undefine if gl_signbitf_OPTIMIZED_MACRO
9764         is defined.
9765         * lib/signbitd.c (gl_signbitd): Undefine if gl_signbitd_OPTIMIZED_MACRO
9766         is defined.
9767         * lib/signbitl.c (gl_signbitd): Undefine if gl_signbitl_OPTIMIZED_MACRO
9768         is defined.
9769         Reported by Elbert_Pol <elbert.pol@gmail.com>.
9770
9771 2009-04-28  Bruno Haible  <bruno@clisp.org>
9772
9773         Comment tweaks.
9774         * lib/unistr.h (u*_cmp2): Clarify what memcmp2 is.
9775         * lib/uninorm.h (u*_normxfrm): Fix description of return value.
9776         * lib/unicase.h (u*_casexfrm): Likewise.
9777         Reported by Paolo Bonzini.
9778
9779 2009-04-28  Bruno Haible  <bruno@clisp.org>
9780
9781         Fix a compilation error.
9782         * lib/mbsrtowcs-state.c (_gl_mbsrtowcs_state): Fix initializer.
9783         * lib/wcsrtombs-state.c (_gl_wcsrtombs_state): Likewise.
9784         Reported by Jim Meyering.
9785
9786 2009-04-27  Bruno Haible  <bruno@clisp.org>
9787
9788         New module 'libunistring'.
9789         * modules/libunistring: New file.
9790         * m4/libunistring.m4: New file.
9791         * MODULES.html.sh (Unicode string functions): Add it.
9792
9793 2009-04-27  Eric Blake  <ebb9@byu.net>
9794
9795         maint.mk: allow package-specific header to provide <config.h>
9796         * top/maint.mk (sc_require_config_h): New variable.
9797         (sc_require_config_h, sc_require_config_h_first): Use it.
9798
9799 2009-04-27  Simon Josefsson  <simon@josefsson.org>
9800
9801         * top/maint.mk (sc_avoid_if_before_free): Except
9802         useless-if-before-free script.
9803
9804 2009-04-27  Eric Blake  <ebb9@byu.net>
9805
9806         maintainer-makefile: depend on all required helper scripts
9807         * modules/maintainer-makefile (Depends-on): Add vc-list-files and
9808         useless-if-before-free.
9809         * top/maint.mk (VC_LIST, sc_avoid_if_before_free): Use local
9810         version, rather than assuming gnulib checkout is available.
9811         Reported by Simen Josefsson.
9812
9813 2009-04-26  Bruno Haible  <bruno@clisp.org>
9814
9815         Make the lib vs. lib64 recognition work on openSUSE 11 with "gcc -m32".
9816         * m4/lib-prefix.m4 (AC_LIB_PREPARE_MULTILIB): Ignore paths that end in
9817         "../" or "..".
9818
9819 2009-04-26  Bruno Haible  <bruno@clisp.org>
9820
9821         * m4/lib-link.m4 (AC_LIB_HAVE_LINKFLAGS): Accept a fifth argument.
9822         * m4/libsigsegv.m4 (gl_LIBSIGSEGV): Simplify by using
9823         AC_LIB_HAVE_LINKFLAGS.
9824
9825 2009-04-26  Bruno Haible  <bruno@clisp.org>
9826
9827         Simplify calling convention of u*_conv_from_encoding.
9828         * lib/uniconv.h (u8_conv_from_encoding, u16_conv_from_encoding,
9829         u32_conv_from_encoding): Expect a resultbuf argument and return the
9830         result directly as a pointer.
9831         * lib/uniconv/u8-conv-from-enc.c (u8_conv_from_encoding): Likewise.
9832         * lib/uniconv/u-conv-from-enc.h (FUNC): Likewise.
9833         * lib/uniconv/u-strconv-from-enc.h (FUNC): Update.
9834         * lib/unicase/ulc-casecmp.c (ulc_u8_casefold): Update.
9835         * lib/unicase/ulc-casexfrm.c (ulc_casexfrm): Update.
9836         * lib/unilbrk/ulc-possible-linebreaks.c (ulc_possible_linebreaks):
9837         Update.
9838         * lib/unilbrk/ulc-width-linebreaks.c (ulc_width_linebreaks): Update.
9839         * lib/uniwbrk/ulc-wordbreaks.c (ulc_wordbreaks): Update.
9840         * lib/vasnprintf.c (VASNPRINTF): Update.
9841         * tests/uniconv/test-u8-conv-from-enc.c (main): Update.
9842         * tests/uniconv/test-u16-conv-from-enc.c (main): Update.
9843         * tests/uniconv/test-u32-conv-from-enc.c (main): Update.
9844         * NEWS: Mention the change.
9845
9846 2009-04-26  Bruno Haible  <bruno@clisp.org>
9847
9848         Simplify calling convention of u*_conv_to_encoding.
9849         * lib/uniconv.h (u8_conv_to_encoding, u16_conv_to_encoding,
9850         u32_conv_to_encoding): Expect a resultbuf argument and return the
9851         result directly as a pointer.
9852         * lib/uniconv/u8-conv-to-enc.c (u8_conv_to_encoding): Likewise.
9853         * lib/uniconv/u-conv-to-enc.h (FUNC): Likewise. Preserve errno while
9854         freeing scaled_offsets if mem_iconveha failed.
9855         * lib/unicase/u-casexfrm.h (FUNC): Update.
9856         * lib/uninorm/u-normxfrm.h (FUNC): Update.
9857         * lib/vasnprintf.c (VASNPRINTF): Update.
9858         * tests/uniconv/test-u8-conv-to-enc.c (main): Update.
9859         * tests/uniconv/test-u16-conv-to-enc.c (main): Update.
9860         * tests/uniconv/test-u32-conv-to-enc.c (main): Update.
9861         * NEWS: Mention the change.
9862
9863 2009-04-26  Bruno Haible  <bruno@clisp.org>
9864
9865         Avoid test failures on AIX and OSF/1.
9866         * lib/uniconv/u8-conv-from-enc.c (u8_conv_from_encoding): Avoid calling
9867         malloc(0).
9868         * lib/uniconv/u8-conv-to-enc.c (u8_conv_to_encoding): Likewise.
9869         * lib/unilbrk/ulc-possible-linebreaks.c (ulc_possible_linebreaks):
9870         Likewise.
9871         * lib/unilbrk/ulc-width-linebreaks.c (ulc_width_linebreaks): Likewise.
9872         * lib/uniwbrk/ulc-wordbreaks.c (ulc_wordbreaks): Likewise.
9873         * lib/uniconv/u-conv-to-enc.h (FUNC): Likewise. Fix memory leak.
9874         * lib/unistr/u-cpy-alloc.h (FUNC): Call malloc(1) instead of malloc(0).
9875         * doc/posix-functions/malloc.texi: Document the portability problem
9876         related to malloc(0).
9877
9878 2009-04-26  Bruno Haible  <bruno@clisp.org>
9879
9880         * modules/unistr/u8-cpy-alloc (Depends-on): Add malloc-posix.
9881         * modules/unistr/u16-cpy-alloc (Depends-on): Likewise.
9882         * modules/unistr/u32-cpy-alloc (Depends-on): Likewise.
9883
9884 2009-04-25  Bruno Haible  <bruno@clisp.org>
9885
9886         Avoid link error when creating a namespace clean library.
9887         * lib/math.in.h (gl_signbitf, gl_signbitd, gl_signbitl): Don't define
9888         as macro with arguments if already defined as an alias.
9889         * lib/signbitf.c (gl_signbitf): Don't undefine.
9890         * lib/signbitd.c (gl_signbitd): Don't undefine.
9891         * lib/signbitl.c (gl_signbitl): Don't undefine.
9892
9893 2009-04-25  Jim Meyering  <meyering@redhat.com>
9894
9895         vc-list-files: fix another quoting bug
9896         * build-aux/vc-list-files: Avoid sed backslash expansion
9897         of pathological directory names.
9898
9899 2009-04-25  Eric Blake  <ebb9@byu.net>
9900
9901         vc-list-files: fix shell quoting error
9902         * build-aux/vc-list-files: Protect against $ in $dir.  Normalize
9903         timestamp.
9904
9905 2009-04-25  Jim Meyering  <meyering@redhat.com>
9906
9907         vc-list-files: restore lost functionality with subdir argument
9908         * build-aux/vc-list-files: When given a non-"." sub-directory
9909         argument, substitute the $dir/ prefix back onto each resulting name.
9910         Otherwise, coreutils' root_tests check would fail.
9911
9912 2009-04-24  Eric Blake  <ebb9@byu.net>
9913
9914         vc-list-files: ignore git symlinks
9915         * build-aux/vc-list-files (.git): Use ls-tree and a filter, rather
9916         than ls-files, to ignore git symlinks.
9917
9918         maint.mk: import improvements from m4
9919         * top/maint.mk (VC-tag): Use signing key from cfg.mk.
9920         (move_if_change): Delete unused macro.
9921         (news-date-check, vc-diff-check): Support VPATH builds.
9922         (announcement): Likewise.  Split --bootstrap-tools list...
9923         (boostrap-tools): ...into separate list, which can be overridden
9924         in cfg.mk.
9925         (sc_avoid_if_before_free): Point to $(gnulib_dir), rather than
9926         requiring dependency on useless-if-before-free module.
9927         (VC_LIST, VC_LIST_EXCEPT): Likewise for vc-list-files module.
9928         Support VPATH builds.
9929
9930 2009-04-24  Jim Meyering  <meyering@redhat.com>
9931
9932         maint.mk: remove coreutils-specific rules and variables
9933         * top/maint.mk (bin, taint-distcheck, coreutils-path-check, t): Remove.
9934         (fake_home, install-transform-check, my-instcheck, pfx, TMPDIR): Remove.
9935         (t_prefix, t_taint, tp, warn_cflags, write_loser, my-distcheck): Remove.
9936
9937         maint.mk: remove obsolete rule
9938         * top/maint.mk (rel-check): Remove rule.
9939         (WGET, WGETFLAGS): Remove now-unused variables.
9940
9941 2009-04-24  Simon Josefsson  <simon@josefsson.org>
9942
9943         * top/maint.mk (makefile-check): Renamed to sc_makefile_check for
9944         consistency.
9945
9946         * modules/vc-list-files-tests (TESTS_ENVIRONMENT): Use
9947         '$(PATH_SEPARATOR)' instead of ':'.
9948
9949 2009-04-24  Simon Josefsson  <simon@josefsson.org>
9950
9951         * lib/getopt1.c (main): Use 'const' for static array.
9952
9953 2009-04-24  Simon Josefsson  <simon@josefsson.org>
9954
9955         * top/maint.mk: Sync with coreutils.
9956         * NEWS: Explain incompatibilities.
9957
9958 2009-04-22  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
9959             Bruno Haible  <bruno@clisp.org>
9960
9961         Fix cross-compilation results.
9962         * m4/btowc.m4 (gl_FUNC_BTOWC): Use no-op statement, rather than empty
9963         statement, as third argument of AC_TRY_RUN.
9964         * m4/mbrtowc.m4 (gl_MBRTOWC_INCOMPLETE_STATE, gl_MBRTOWC_SANITYCHECK,
9965         gl_MBRTOWC_NULL_ARG, gl_MBRTOWC_RETVAL, gl_MBRTOWC_NUL_RETVAL):
9966         Likewise.
9967         * m4/mbsrtowcs.m4 (gl_MBSRTOWCS_WORKS): Likewise.
9968         * m4/wcsrtombs.m4 (gl_WCSRTOMBS_TERMINATION, gl_WCSRTOMBS_NULL):
9969         Likewise.
9970         * m4/wctob.m4 (gl_FUNC_WCTOB): Likewise.
9971         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Likewise. Update for AIX 4.3.
9972         * doc/posix-functions/wcrtomb.texi: Mention the bug on AIX 4.3.
9973
9974 2009-04-20  Bruno Haible  <bruno@clisp.org>
9975
9976         Avoid test failure on mingw.
9977         * tests/uniwidth/test-uc_width2.sh: Convert newlines in output.
9978
9979 2009-04-20  Bruno Haible  <bruno@clisp.org>
9980
9981         Avoid compilation error on mingw.
9982         * modules/localename-tests (Depends-on): Add locale.
9983
9984 2009-04-19  Bruno Haible  <bruno@clisp.org>
9985
9986         Support for building a shared library on Windows platforms.
9987         * tests/uninorm/test-nfc.c (n): Don't define if WOE32DLL.
9988         (main): Test the presence of UNINORM_NFC here.
9989         * tests/uninorm/test-nfd.c (n): Don't define if WOE32DLL.
9990         (main): Test the presence of UNINORM_NFD here.
9991         * tests/uninorm/test-nfkc.c (n): Don't define if WOE32DLL.
9992         (main): Test the presence of UNINORM_NFKC here.
9993         * tests/uninorm/test-nfkd.c (n): Don't define if WOE32DLL.
9994         (main): Test the presence of UNINORM_NFKD here.
9995
9996 2009-04-19  Bruno Haible  <bruno@clisp.org>
9997
9998         Avoid a compiler warning.
9999         * tests/uninorm/test-u32-normalize-big.c (read_normalization_test_file):
10000         Change type of variable 'sequence'.
10001
10002 2009-04-19  Bruno Haible  <bruno@clisp.org>
10003
10004         * modules/configmake (Makefile.am): When the contents of configmake.h
10005         does not change, arrange to preserve its modification time.
10006
10007 2009-04-17  Simon Josefsson  <simon@josefsson.org>
10008
10009         * top/maint.mk (PO_DOMAIN): New variable, allows overriding of
10010         gettext domain.
10011
10012 2009-04-16  Jim Meyering  <meyering@redhat.com>
10013
10014         useless-if-before-free: improve conversion code
10015         * build-aux/useless-if-before-free: Adjust code-in-comment to match
10016         "...!= 0" as well as "...!= NULL".  emacs has one of the former.
10017
10018 2009-04-14  Bruno Haible  <bruno@clisp.org>
10019
10020         * modules/fcntl (Depends-on): Add extensions.
10021         * m4/fcntl_h.m4 (gl_FCNTL_H): Add a comment.
10022
10023 2009-04-12  Ben Pfaff  <blp@gnu.org>
10024
10025         Make fcntl module detect O_NOATIME, O_NOFOLLOW on GNU/Linux.
10026         * m4/fcntl_h.m4 (gl_FCNTL_H): Require AC_USE_SYSTEM_EXTENSIONS.
10027
10028 2009-03-20  Ben Pfaff  <blp@gnu.org>
10029
10030         Make rename replace existing destinations on Windows.
10031         * m4/rename.m4: Add test for Mingw.
10032         * lib/rename.c: Add rename replacement that uses MoveFileEx with
10033         MOVEFILE_REPLACE_EXISTING to replace existing destination files.
10034         * doc/posix-functions/rename.texi: Document.
10035
10036 2009-04-10  Bruno Haible  <bruno@clisp.org>
10037
10038         New include file "iconveh.h".
10039         * lib/iconveh.h: New file, extracted from lib/striconveh.h.
10040         * lib/striconveh.h: Include it.
10041         (enum iconv_ilseq_handler): Remove definition.
10042         * lib/striconveha.h: Include <stddef.h> and iconveh.h instead of
10043         striconveh.h.
10044         * lib/striconveha.c: Include striconveh.h.
10045         * lib/uniconv.h: Include iconveh.h instead of striconveh.h.
10046         * modules/striconveh (Files): Add lib/iconveh.h.
10047         * modules/uniconv/base (Files): Add lib/iconveh.h. Remove
10048         lib/striconveh.h.
10049
10050 2009-04-10  Bruno Haible  <bruno@clisp.org>
10051
10052         * lib/uniconv.h: Update comment.
10053
10054 2009-04-10  Bruno Haible  <bruno@clisp.org>
10055
10056         * lib/unistr/u8-mbtouc-aux.c: Inside libunistring, define the function
10057         always.
10058         * lib/unistr/u8-mbtouc-unsafe-aux.c: Likewise.
10059         * lib/unistr/u16-mbtouc-aux.c: Likewise.
10060         * lib/unistr/u16-mbtouc-unsafe-aux.c: Likewise.
10061         * lib/unistr/u8-mbtouc.c: Inside libunistring, include
10062         "unistring-notinline.h", so that the function gets defined always.
10063         * lib/unistr/u8-mbtouc-unsafe.c: Likewise.
10064         * lib/unistr/u8-uctomb.c: Likewise.
10065         * lib/unistr/u16-mbtouc.c: Likewise.
10066         * lib/unistr/u16-mbtouc-unsafe.c: Likewise.
10067         * lib/unistr/u16-uctomb.c: Likewise.
10068         * lib/unistr/u32-mbtouc.c: Likewise.
10069         * lib/unistr/u32-mbtouc-unsafe.c: Likewise.
10070         * lib/unistr/u32-uctomb.c: Likewise.
10071
10072 2009-04-10  Bruno Haible  <bruno@clisp.org>
10073
10074         Mark 'utime' obsolete.
10075         * modules/utime (Status, Notice): New sections.
10076         Suggested by Jim Meyering.
10077
10078         Fix cross-compile guess for utime test.
10079         * m4/utime.m4 (AC_FUNC_UTIME_NULL): Add definition from newest unstable
10080         autoconf.
10081         * doc/posix-functions/utime.texi: Give more precisions.
10082         Reported by Jan <ipif@ymail.com>.
10083
10084 2009-04-09  Kamil Dudka  <kdudka@redhat.com>
10085
10086         filevercmp: correct today's change
10087         * lib/filevercmp.c: Also handle coreutils' test inputs.
10088         * tests/test-filevercmp.c: Add inputs from one of coreutils' test scripts.
10089
10090         Fix regression in 'filevercmp' module. Thanks Sven Joachim
10091         for reporting it.
10092         * lib/filevercmp.c: Special handle for "", "." and "..".
10093         * tests/test-filevercmp.c: Enlarge the set suite.
10094
10095 2009-04-07  Jim Meyering  <meyering@redhat.com>
10096
10097         useless-if-before-free: show how to remove braced useless free, too
10098         * build-aux/useless-if-before-free: still only in a comment, though.
10099
10100 2009-04-07  Reuben Thomas  <rrt@sc3d.org>
10101
10102         maint.mk: import changes to syntax-check macros from coreutils
10103         * top/maint.mk (_prohibit_regexp, _header_without_use): Define.
10104         Use them in the relevant macros.
10105
10106 2009-04-06  Bruno Haible  <bruno@clisp.org>
10107
10108         Fix unportable use of bit-fields.
10109         * lib/unicase/special-casing.h (struct special_casing_rule): Change the
10110         bit-field type from 'int' to 'signed int'. Otherwise Solaris cc,
10111         AIX xlc, and OSF/1 cc interpret it as 'unsigned int'.
10112
10113 2009-04-06  Bruno Haible  <bruno@clisp.org>
10114
10115         Avoid test failures on AIX and OSF/1.
10116         * tests/unicase/test-u8-casefold.c (check): Account for the possibility
10117         that malloc(0) = NULL.
10118         * tests/unicase/test-u8-tolower.c (check): Likewise.
10119         * tests/unicase/test-u8-totitle.c (check): Likewise.
10120         * tests/unicase/test-u8-toupper.c (check): Likewise.
10121         * tests/unicase/test-u16-casefold.c (check): Likewise.
10122         * tests/unicase/test-u16-tolower.c (check): Likewise.
10123         * tests/unicase/test-u16-totitle.c (check): Likewise.
10124         * tests/unicase/test-u16-toupper.c (check): Likewise.
10125         * tests/unicase/test-u32-casefold.c (check): Likewise.
10126         * tests/unicase/test-u32-tolower.c (check): Likewise.
10127         * tests/unicase/test-u32-totitle.c (check): Likewise.
10128         * tests/unicase/test-u32-toupper.c (check): Likewise.
10129         * tests/uninorm/test-u8-nfc.c (check): Likewise.
10130         * tests/uninorm/test-u8-nfd.c (check): Likewise.
10131         * tests/uninorm/test-u8-nfkc.c (check): Likewise.
10132         * tests/uninorm/test-u8-nfkd.c (check): Likewise.
10133         * tests/uninorm/test-u16-nfc.c (check): Likewise.
10134         * tests/uninorm/test-u16-nfd.c (check): Likewise.
10135         * tests/uninorm/test-u16-nfkc.c (check): Likewise.
10136         * tests/uninorm/test-u16-nfkd.c (check): Likewise.
10137         * tests/uninorm/test-u32-nfc.c (check): Likewise.
10138         * tests/uninorm/test-u32-nfd.c (check): Likewise.
10139         * tests/uninorm/test-u32-nfkc.c (check): Likewise.
10140         * tests/uninorm/test-u32-nfkd.c (check): Likewise.
10141
10142 2009-04-05  Bruno Haible  <bruno@clisp.org>
10143
10144         Work around an autoconf limitation.
10145         * gnulib-tool (func_emit_lib_Makefile_am): Omit the "Reproduce by"
10146         comment line if it would be longer than 3 KB.
10147
10148 2009-04-05  Bruno Haible  <bruno@clisp.org>
10149
10150         Avoid test failure with libiconv-1.13.
10151         * tests/test-striconveh.c (main): Allow result of libiconv 1.13 as one
10152         of the expected test results.
10153
10154 2009-04-05  Bruno Haible  <bruno@clisp.org>
10155
10156         * gnulib-tool (func_emit_lib_Makefile_am): Don't add the library to
10157         noinst_LTLIBRARIES if the Makefile.am in the same directory specifies
10158         that it should be installed.
10159
10160 2009-04-05  Bruno Haible  <bruno@clisp.org>
10161
10162         * gnulib-tool: New option --copy-file.
10163         (func_usage): Document it.
10164         (func_dest_tmpfilename): Moved out of func_import.
10165         (func_add_file, func_update_file): New functions, extracted from
10166         func_import.
10167         (func_import): Update.
10168
10169 2009-04-05  Karl Berry  <karl@gnu.org>
10170
10171         * README: prominently mention gnulib-tool.
10172         Rearrange sections so getting the code is near the top.
10173
10174 2009-04-05  Bruno Haible  <bruno@clisp.org>
10175
10176         * lib/unicase.h: Mention u*_cmp2.
10177         * lib/unicase/u-casecmp.h (FUNC): Invoke U_CMP2 instead of U_CMP.
10178         * lib/unicase/u8-casecmp.c: Use u8_cmp2 instead of u8_cmp.
10179         * lib/unicase/ulc-casecmp.c: Likewise.
10180         * lib/unicase/u16-casecmp.c: Use u16_cmp2 instead of u16_cmp.
10181         * lib/unicase/u32-casecmp.c: Use u32_cmp2 instead of u32_cmp.
10182         * modules/unicase/u8-casecmp (Depends-on): Add unistr/u8-cmp2, remove
10183         unistr/u8-cmp.
10184         * modules/unicase/ulc-casecmp (Depends-on): Likewise.
10185         * modules/unicase/u16-casecmp (Depends-on): Add unistr/u16-cmp2, remove
10186         unistr/u16-cmp.
10187         * modules/unicase/u32-casecmp (Depends-on): Add unistr/u32-cmp2, remove
10188         unistr/u32-cmp.
10189
10190         * lib/uninorm.h: Mention u*_cmp2.
10191         * lib/uninorm/u-normcmp.h (FUNC): Invoke U_CMP2 instead of U_CMP.
10192         * lib/uninorm/u8-normcmp.c: Use u8_cmp2 instead of u8_cmp.
10193         * lib/uninorm/u16-normcmp.c: Use u16_cmp2 instead of u16_cmp.
10194         * lib/uninorm/u32-normcmp.c: Use u32_cmp2 instead of u32_cmp.
10195         * modules/uninorm/u8-normcmp (Depends-on): Add unistr/u8-cmp2, remove
10196         unistr/u8-cmp.
10197         * modules/uninorm/u16-normcmp (Depends-on): Add unistr/u16-cmp2, remove
10198         unistr/u16-cmp.
10199         * modules/uninorm/u32-normcmp (Depends-on): Add unistr/u32-cmp2, remove
10200         unistr/u32-cmp.
10201
10202         New module 'unistr/u32-cmp2'.
10203         * lib/unistr/u32-cmp2.c: New file.
10204         * modules/unistr/u32-cmp2: New file.
10205
10206         New module 'unistr/u16-cmp2'.
10207         * lib/unistr/u16-cmp2.c: New file.
10208         * modules/unistr/u16-cmp2: New file.
10209
10210         New module 'unistr/u8-cmp2'.
10211         * lib/unistr.h (u8_cmp2, u16_cmp2, u32_cmp2): New declarations.
10212         * lib/unistr/u8-cmp2.c: New file.
10213         * lib/unistr/u-cmp2.h: New file.
10214         * modules/unistr/u8-cmp2: New file.
10215
10216 2009-04-05  Bruno Haible  <bruno@clisp.org>
10217
10218         * lib/unictype.h (uc_property_is_valid): New macro.
10219         * tests/unictype/test-pr_byname.c (main): Use it.
10220
10221         * lib/unistr.h: Doc fixes.
10222         * lib/uniconv.h: Doc fixes.
10223         * lib/unictype.h: Doc fixes.
10224
10225 2009-04-03  Paul Eggert  <eggert@cs.ucla.edu>
10226
10227         Port coreutils 7.2 to Solaris 8.
10228
10229         * modules/arpa_inet (arpa/inet.h): Depend on arpa_inet.in.h.
10230         * m4/inet_ntop.m4 (gl_INET_NTOP): Search for inet_ntop in -lnsl,
10231         for Solaris 8.  This is a bit of a hack, as it means it's the
10232         caller's responsibility to add -lnsl if needed, but most likely it
10233         won't be needed since only getaddrinfo uses this and getaddrinfo
10234         isn't needed on Solaris 8.
10235
10236         * modules/fnmatch (Depends-on): Add mbsrtowcs, to fix a porting
10237         problem to Solaris 8 encountered with coreutils 7.2, which
10238         resulted in a message "fnmatch.c:292: warning: passing argument 4
10239         of 'mbsrtowcs' from incompatible pointer type".  Also, add mbsinit
10240         at the suggestion of Bruno Haible, since fnmatch uses mbsinit.
10241
10242 2009-04-03  Simon Josefsson  <simon@josefsson.org>
10243
10244         * m4/ld-version-script.m4: Add FIXME comment.
10245
10246 2009-04-02  Simon Josefsson  <simon@josefsson.org>
10247
10248         * doc/ld-output-def.texi: Use DLL_VERSION instead of confusing
10249         SOVERSION variable.
10250
10251 2009-04-02  Bruno Haible  <bruno@clisp.org>
10252
10253         * Makefile (info, html, dvi, pdf): Combine the rules.
10254         Suggested by Jim Meyering.
10255
10256 2009-04-01  Bruno Haible  <bruno@clisp.org>
10257
10258         * Makefile (info, html, dvi, pdf): New targets.
10259         Reported by Reuben Thomas <rrt@sc3d.org>.
10260
10261 2009-04-01  Bruno Haible  <bruno@clisp.org>
10262
10263         * doc/gnulib-tool.texi (Invoking gnulib-tool): Document how gnulib-tool
10264         can be put into PATH.
10265         Reported by Reuben Thomas <rrt@sc3d.org>. Suggested by Karl Berry.
10266
10267 2009-04-01  Bruno Haible  <bruno@clisp.org>
10268
10269         * doc/lib-symbol-visibility.texi: Follow texinfo style conventions.
10270
10271 2009-04-01  Bruno Haible  <bruno@clisp.org>
10272
10273         Rename module 'visibility'.
10274         * modules/lib-symbol-visibility: Renamed from modules/visibility.
10275         * doc/lib-symbol-visibility.texi: Renamed from visibility.texi.
10276         * doc/gnulib.texi: Update.
10277         * MODULES.html.sh (Misc): Update.
10278         * NEWS: Mention the change.
10279
10280 2009-04-01  Simon Josefsson  <simon@josefsson.org>
10281
10282         * modules/lib-msvc-compat: New module.  Thanks to Bruno Haible
10283         <bruno@clisp.org>, Ralf Wildenhues <Ralf.Wildenhues@gmx.de>, and
10284         Eric Blake <ebb9@byu.net> for review.
10285         * MODULES.html.sh: Add lib-msvc-compat.
10286         * doc/gnulib.texi: Link to new section.
10287         * m4/ld-output-def.m4: New file.
10288         * doc/ld-output-def.texi: New file.
10289
10290 2009-04-01  Simon Josefsson  <simon@josefsson.org>
10291
10292         Rename ld-version-script to lib-symbol-versions.  Suggested by
10293         Bruno Haible <bruno@clisp.org>.
10294         * modules/ld-version-script: Renamed to lib-symbol-versions.
10295         * doc/ld-version-script.texi: Fix module name.
10296         * MODULES.html.sh: Add lib-symbol-versions.
10297
10298 2009-03-31  Simon Josefsson  <simon@josefsson.org>
10299
10300         * modules/u64-tests: New file.
10301         * tests/test-u64.c: New file.
10302
10303 2009-03-04  Simon Josefsson  <simon@josefsson.org>
10304
10305         * MODULES.html.sh: Mention u64.
10306         * modules/u64: New module.
10307         * modules/crypto/sha512: Depend on u64 module instead of providing
10308         u64.h.
10309
10310 2009-03-27  Eric Blake  <ebb9@byu.net>
10311
10312         test-strerror: make debugging EAI_SYSTEM easier
10313         * modules/getaddrinfo-tests (Depends-on): Add strerror.
10314         * test-getaddrinfo.c (simple) [ENABLE_DEBUGGING]: Report errno if
10315         failure was EAI_SYSTEM.
10316
10317 2009-03-25  Bruno Haible  <bruno@clisp.org>
10318
10319         Fix a problem with --enable-relocatable on Solaris 7.
10320         * modules/relocatable-prog-wrapper (Depends-on): Add environ. Needed
10321         since 2008-02-24.
10322
10323 2009-03-25  Eric Blake  <ebb9@byu.net>
10324
10325         test-sockets: avoid gcc warning
10326         * tests/test-sockets.c (main): Silence compiler warning.
10327
10328 2009-03-25  Paul Eggert  <eggert@cs.ucla.edu>
10329
10330         New modules nproc, pthread, contributed by Glen Lenker.
10331
10332         * MODULES.html.sh: Add pthread, nproc.
10333         * lib/nproc.c: New file.
10334         * lib/nproc.h: New file.
10335         * lib/pthread.in.h: New file.
10336         * m4/pthread.m4: New file.
10337         * modules/nproc: New file.
10338         * modules/pthread: New file.
10339
10340 2009-03-24  Simon Josefsson  <simon@josefsson.org>
10341
10342         * modules/unicase/locale-language-tests (test_locale_language_LDADD):
10343         New variable.
10344
10345 2009-03-24  Kamil Dudka  <kdudka@redhat.com>
10346
10347         filevercmp: handle simple~ and numbered.~3~ backup suffixes
10348         * lib/filevercmp.c: Handle simple~ and numbered.~3~ backup suffixes.
10349         * tests/test-filevercmp.c: Add tests for backup suffixes.
10350
10351 2009-03-24  Simon Josefsson  <simon@josefsson.org>
10352
10353         * modules/stdlib (Depends-on): Add stdint, needed when defining
10354         struct random_data on, for example, HP-UX 10.20.  Reported by
10355         Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
10356
10357 2009-03-24  Simon Josefsson  <simon@josefsson.org>
10358
10359         * lib/readline.c (readline): Call fflush on stdout after printing
10360         prompt.
10361
10362 2009-03-20  Bruno Haible  <bruno@clisp.org>
10363
10364         Remove dependency from 'close' module to -lws2_32 on native Windows.
10365         * lib/close-hook.h: New file.
10366         * lib/close-hook.c: New file.
10367         * lib/close.c: Include close-hook.h. Don't include <sys/socket.h>,
10368         w32sock.h.
10369         (_gl_close_fd_maybe_socket): Remove function.
10370         (rpl_close): Invoke execute_all_close_hooks instead of
10371         _gl_close_fd_maybe_socket.
10372         * lib/sockets.c: Include close-hook.h, w32sock.h.
10373         (close_fd_maybe_socket): New function, essentially from lib/close.c.
10374         (close_sockets_hook): New variable.
10375         (gl_sockets_startup): Register close_fd_maybe_socket as a hook.
10376         (gl_sockets_cleanup): Unregister it.
10377         * lib/unistd.in.h (HAVE__GL_CLOSE_FD_MAYBE_SOCKET): Remove macro.
10378         * m4/close.m4 (gl_REPLACE_CLOSE): Undo 2009-02-05 change.
10379         * modules/close-hook: New file.
10380         * modules/close (Files): Remove lib/w32sock.h.
10381         (Depends-on): Add close-hook.
10382         (Link): Remove section.
10383         * modules/sockets (Files): Add lib/w32sock.h.
10384         (Depends-on): Add close-hook.
10385         * modules/sys_socket (configure.ac): Remove gl_MODULE_INDICATOR
10386         invocation.
10387         * NEWS: Mention that LIB_CLOSE is gone.
10388
10389 2009-03-23  Eric Blake  <ebb9@byu.net>
10390
10391         signal-tests: test previous patch
10392         * tests/test-signal.c: New file.
10393         * modules/signal-tests: Likewise.
10394
10395         signal.h: always support 'volatile sig_atomic_t'
10396         * m4/signal_h.m4 (gl_SIGNAL_H): Check for AIX limitation.
10397         (gl_SIGNAL_H_DEFAULTS): Add a default.
10398         * modules/signal (Makefile.am): Substitute if needed.
10399         * lib/signal.in.h (sig_atomic_t): Redefine if needed, so that
10400         users can blindly add volatile.
10401         * doc/posix-headers/signal.texi (signal.h): Document it.
10402         Reported by Matthew Woehlke.
10403
10404 2009-03-23  Jim Meyering  <meyering@redhat.com>
10405
10406         pathmax: PATH_MAX: use pathconf only when available
10407         * lib/pathmax.h (PATH_MAX): Select the pathconf-using definition
10408         only if HAVE_PATHCONF is defined.  Patch by Sylvain Beucler.
10409         * m4/pathmax.m4 (gl_PATHMAX): Check for pathconf.
10410         This avoids a link failure in a PSP cross-compilation environment
10411         described in http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/17048
10412
10413         * lib/vasnprintf.c (divide): Fix typo in comment.
10414
10415 2009-03-23  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
10416
10417         * gnulib-tool (func_filter_filelist): Fix comment.
10418
10419 2009-03-20  Bruno Haible  <bruno@clisp.org>
10420
10421         Make sockets.h self-contained.
10422         * lib/sockets.c: Include sockets.h first.
10423         * lib/sockets.h: Include <sys/socket.h> before using the SOCKET type.
10424
10425 2009-03-19  Eric Blake  <ebb9@byu.net>
10426
10427         doc: mention more functions added in cygwin 1.7.0
10428         * doc/posix-functions/log2.texi: Mention recent cygwin 1.7.0
10429         addition.
10430         * doc/posix-functions/log2f.texi: Likewise.
10431
10432 2009-03-19  Jim Meyering  <meyering@redhat.com>
10433
10434         fsusage: avoid syntax error due to statement-before-declaration
10435         * lib/fsusage.c (get_fs_usage): Put warning-avoidance statement
10436         after all declarations.  Reported by Matthew Woehlke in
10437         http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/16231
10438
10439 2009-03-18  Eric Blake  <ebb9@byu.net>
10440
10441         build-aux/compile: sync from automake
10442         * build-aux/compile: New file, from automake.
10443         * config/srclist.txt: Mention build-aux/compile.
10444
10445 2009-03-17  Bruno Haible  <bruno@clisp.org>
10446
10447         * lib/git-merge-changelog.c: Fix typo in comment.
10448         Reported by Reuben Thomas <rrt@sc3d.org>.
10449
10450 2009-03-17  Reuben Thomas  <rrt@sc3d.org>
10451
10452         * m4/regex.m4: update and improve help for
10453         --without-included-regex.
10454
10455 2009-03-17  Simon Josefsson  <simon@josefsson.org>
10456
10457         * modules/isnanl-nolibm-tests (Files): Add tests/nan.h to avoid
10458         failure on missing include files.
10459
10460 2009-03-17  Eric Blake  <ebb9@byu.net>
10461
10462         doc: mention more functions added in cygwin 1.7.0
10463         * doc/posix-functions/fwprintf.texi: Mention recent cygwin 1.7.0
10464         addition.
10465         * doc/posix-functions/fwscanf.texi: Likewise.
10466         * doc/posix-functions/swprintf.texi: Likewise.
10467         * doc/posix-functions/swscanf.texi: Likewise.
10468         * doc/posix-functions/vfwprintf.texi: Likewise.
10469         * doc/posix-functions/vfwscanf.texi: Likewise.
10470         * doc/posix-functions/vswprintf.texi: Likewise.
10471         * doc/posix-functions/vswscanf.texi: Likewise.
10472         * doc/posix-functions/vwprintf.texi: Likewise.
10473         * doc/posix-functions/vwscanf.texi: Likewise.
10474         * doc/posix-functions/wcscasecmp.texi: Likewise.
10475         * doc/posix-functions/wcsdup.texi: Likewise.
10476         * doc/posix-functions/wcsftime.texi: Likewise.
10477         * doc/posix-functions/wcsncasecmp.texi: Likewise.
10478         * doc/posix-functions/wprintf.texi: Likewise.
10479         * doc/posix-functions/wscanf.texi: Likewise.
10480         * doc/glibc-functions/gethostbyname2.texi: Likewise.
10481
10482 2009-03-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
10483
10484         maint.mk: really add $(AM_MAKEFLAGS)
10485         * top/maint.mk (init-coverage, build-coverage): `$(AM_MAKEFLAGS)'
10486         was inadvertently omitted in the last commit.
10487         Spotted by Bruno Haible.
10488
10489         maint.mk: use $(MAKE) $(AM_MAKEFLAGS) not make
10490         * top/maint.mk (init-coverage, build-coverage): Use `$(MAKE)
10491         $(AM_MAKEFLAGS)' rather than plain `make'.
10492
10493         gnulib-tool: execute $MAKE not make
10494         * gnulib-tool: Default $MAKE to 'make'.
10495         (func_create_testdir, func_create_megatestdir): Use $MAKE rather
10496         than make.  Initialize $MAKE in the do-autobuild script.
10497
10498         gnulib-tool: use $MAKE not make in generated files
10499         * gnulib-tool (func_create_megatestdir): Use $MAKE rather than
10500         make, in generated files.  Initialize $MAKE in the do-autobuild
10501         script.
10502
10503         * top/GNUmakefile (_have-git-version-gen): Fix typo.
10504
10505         GNUmakefile: disable parallelism only for multiple, recursive targets
10506         * top/GNUmakefile (ALL_RECURSIVE_TARGETS): New macro; allow user
10507         additions in the Makefile.
10508         (AM_RECURSIVE_TARGETS): New macro, override only if not provided
10509         by Automake.
10510         (.NOTPARALLEL): Only disable parallel builds if multiple targets
10511         are listed on the command line and at least one of them is
10512         listed in $(ALL_RECURSIVE_TARGETS).
10513
10514 2009-03-14  Bruno Haible  <bruno@clisp.org>
10515
10516         * modules/unilbrk/u8-possible-linebreaks (Depends-on): Replace
10517         utf8-ucs4-unsafe with unistr/u8-mbtouc-unsafe.
10518         * modules/unilbrk/u8-width-linebreaks (Depends-on): Likewise.
10519         * modules/unilbrk/u16-possible-linebreaks (Depends-on): Replace
10520         utf16-ucs4-unsafe with unistr/u16-mbtouc-unsafe.
10521         * modules/unilbrk/u16-width-linebreaks (Depends-on): Likewise.
10522         * modules/unistr/u8-chr (Depends-on): Replace ucs4-utf8 with
10523         unistr/u8-uctomb.
10524         * modules/unistr/u8-strchr (Depends-on): Likewise.
10525         * modules/unistr/u8-strrchr (Depends-on): Likewise.
10526         * modules/unistr/u16-chr (Depends-on): Replace ucs4-utf16 with
10527         unistr/u16-uctomb.
10528         * modules/unistr/u16-strchr (Depends-on): Likewise.
10529         * modules/unistr/u16-strrchr (Depends-on): Likewise.
10530
10531 2009-03-12  Bruno Haible  <bruno@clisp.org>
10532
10533         Work around select() bug on Interix 3.5.
10534         * lib/sys_select.in.h (select): Also replace if REPLACE_SELECT is 1.
10535         * lib/select.c (rpl_select): Add an implementation for Unix platforms.
10536         * m4/select.m4: New file.
10537         * m4/sys_select_h.m4 (gl_SYS_SELECT_H_DEFAULTS): Initialize REPLACE_SELECT.
10538         * modules/sys_select (Makefile.am): Substitute REPLACE_SELECT.
10539         * modules/select (Files): Add m4/select.m4.
10540         (configure.ac): Move conditional to m4/select.m4. Invoke gl_FUNC_SELECT.
10541         * modules/nanosleep (Depends-on): Add select.
10542         * modules/poll (Depends-on): Likewise.
10543         * doc/posix-functions/select.texi: Mention the Interix bug.
10544         Reported by Markus Duft <mduft@gentoo.org>.
10545
10546         * lib/select.c: Renamed from lib/winsock-select.c.
10547         * modules/select (Files): Add lib/select.c, remove
10548         lib/winsock-select.c.
10549         (configure.ac): Update.
10550
10551 2009-03-12  Jim Meyering  <meyering@redhat.com>
10552
10553         avoid gcc warnings about unused macro definitions
10554         * lib/readtokens.c (STREQ): Remove unused definition.
10555         * lib/xmalloc.c (SIZE_MAX): Likewise.
10556         * lib/openat-die.c (N_): Likewise.
10557         * lib/mountlist.c (SIZE_MAX): Remove definition.
10558         Instead, include <stdint.h>.
10559         * lib/readutmp.c: Likewise.
10560         * modules/readutmp (Depends-on): Add stdint.
10561         * modules/mountlist (Depends-on): Add stdint.
10562         * lib/userspec.c (ISDIGIT): Move definition into #if block where used.
10563
10564 2009-03-10  Bruno Haible  <bruno@clisp.org>
10565
10566         Tests for module 'mbmemcasecoll'.
10567         * modules/mbmemcasecoll-tests: New file.
10568         * tests/test-mbmemcasecoll1.sh: New file.
10569         * tests/test-mbmemcasecoll2.sh: New file.
10570         * tests/test-mbmemcasecoll3.sh: New file.
10571         * tests/test-mbmemcasecoll.c: New file.
10572
10573         New module 'mbmemcasecoll'.
10574         * lib/mbmemcasecoll.h: New file.
10575         * lib/mbmemcasecoll.c: New file.
10576         * modules/mbmemcasecoll: New file.
10577
10578         * tests/test-mbmemcasecmp.h: New file, extracted from
10579         tests/test-mbmemcasecmp.c.
10580         * tests/test-mbmemcasecmp.c: Include test-mbmemcasecmp.h.
10581         (test_ascii, test_iso_8859_1, test_utf_8): Remove functions.
10582         (main): Update.
10583         * modules/mbmemcasecmp-tests (Files): Add tests/test-mbmemcasecmp.h.
10584
10585 2009-03-09  Bruno Haible  <bruno@clisp.org>
10586
10587         Tests for module 'mbmemcasecmp'.
10588         * modules/mbmemcasecmp-tests: New file.
10589         * tests/test-mbmemcasecmp1.sh: New file.
10590         * tests/test-mbmemcasecmp2.sh: New file.
10591         * tests/test-mbmemcasecmp3.sh: New file.
10592         * tests/test-mbmemcasecmp.c: New file.
10593
10594         New module 'mbmemcasecmp'.
10595         * lib/mbmemcasecmp.h: New file.
10596         * lib/mbmemcasecmp.c: New file.
10597         * modules/mbmemcasecmp: New file.
10598
10599 2009-03-09  Bruno Haible  <bruno@clisp.org>
10600
10601         Tests for module 'unicase/ulc-casecoll'.
10602         * modules/unicase/ulc-casecoll-tests: New file.
10603         * tests/unicase/test-ulc-casecoll1.sh: New file.
10604         * tests/unicase/test-ulc-casecoll2.sh: New file.
10605         * tests/unicase/test-ulc-casecoll.c: New file.
10606
10607         New module 'unicase/ulc-casecoll'.
10608         * lib/unicase.h (ulc_casecoll): New declaration.
10609         * lib/unicase/ulc-casecoll.c: New file.
10610         * modules/unicase/ulc-casecoll: New file.
10611
10612         New module 'unicase/ulc-casexfrm'.
10613         * lib/unicase.h (ulc_casexfrm): New declaration.
10614         * lib/unicase/ulc-casexfrm.c: New file.
10615         * modules/unicase/ulc-casexfrm: New file.
10616
10617 2009-03-09  Bruno Haible  <bruno@clisp.org>
10618
10619         Followup to 2008-12-22 commit: Remove unnecessary AC_FUNC_MBRTOWC
10620         invocations.
10621
10622         * m4/mbscasecmp.m4: Remove file.
10623         * modules/mbscasecmp (Files): Remove it and m4/mbrtowc.m4
10624         (configure.ac): Remove gl_FUNC_MBSCASECMP invocation.
10625
10626         * m4/mbscasestr.m4: Remove file.
10627         * modules/mbscasestr (Files): Remove it and m4/mbrtowc.m4
10628         (configure.ac): Remove gl_FUNC_MBSCASESTR invocation.
10629
10630         * m4/mbschr.m4: Remove file.
10631         * modules/mbschr (Files): Remove it and m4/mbrtowc.m4
10632         (configure.ac): Remove gl_FUNC_MBSCHR invocation.
10633
10634         * m4/mbscspn.m4: Remove file.
10635         * modules/mbscspn (Files): Remove it and m4/mbrtowc.m4
10636         (configure.ac): Remove gl_FUNC_MBSCSPN invocation.
10637
10638         * m4/mbslen.m4: Remove file.
10639         * modules/mbslen (Files): Remove it and m4/mbrtowc.m4
10640         (configure.ac): Remove gl_FUNC_MBSLEN invocation.
10641
10642         * m4/mbsncasecmp.m4: Remove file.
10643         * modules/mbsncasecmp (Files): Remove it and m4/mbrtowc.m4
10644         (configure.ac): Remove gl_FUNC_MBSNCASECMP invocation.
10645
10646         * m4/mbsnlen.m4: Remove file.
10647         * modules/mbsnlen (Files): Remove it and m4/mbrtowc.m4
10648         (configure.ac): Remove gl_FUNC_MBSNLEN invocation.
10649
10650         * m4/mbspbrk.m4: Remove file.
10651         * modules/mbspbrk (Files): Remove it and m4/mbrtowc.m4
10652         (configure.ac): Remove gl_FUNC_MBSPBRK invocation.
10653
10654         * m4/mbspcasecmp.m4: Remove file.
10655         * modules/mbspcasecmp (Files): Remove it and m4/mbrtowc.m4
10656         (configure.ac): Remove gl_FUNC_MBSPCASECMP invocation.
10657
10658         * m4/mbsrchr.m4: Remove file.
10659         * modules/mbsrchr (Files): Remove it and m4/mbrtowc.m4
10660         (configure.ac): Remove gl_FUNC_MBSRCHR invocation.
10661
10662         * m4/mbssep.m4: Remove file.
10663         * modules/mbssep (Files): Remove it and m4/mbrtowc.m4
10664         (configure.ac): Remove gl_FUNC_MBSSEP invocation.
10665
10666         * m4/mbsspn.m4: Remove file.
10667         * modules/mbsspn (Files): Remove it and m4/mbrtowc.m4
10668         (configure.ac): Remove gl_FUNC_MBSSPN invocation.
10669
10670         * m4/mbsstr.m4: Remove file.
10671         * modules/mbsstr (Files): Remove it and m4/mbrtowc.m4
10672         (configure.ac): Remove gl_FUNC_MBSSTR invocation.
10673
10674         * m4/mbstok_r.m4: Remove file.
10675         * modules/mbstok_r (Files): Remove it and m4/mbrtowc.m4
10676         (configure.ac): Remove gl_FUNC_MBSTOK_R invocation.
10677
10678         * m4/mbswidth.m4 (gl_MBSWIDTH): Remove AC_FUNC_MBRTOWC invocation.
10679
10680         * m4/quotearg.m4 (gl_QUOTEARG): Remove mbsinit test and
10681         AC_TYPE_MBSTATE_T, AC_FUNC_MBRTOWC invocations.
10682
10683         * modules/trim (configure.ac): Remove AC_FUNC_MBRTOWC invocation.
10684
10685 2009-03-08  Bruno Haible  <bruno@clisp.org>
10686
10687         Tests for module 'unicase/ulc-casecmp'.
10688         * modules/unicase/ulc-casecmp-tests: New file.
10689         * tests/unicase/test-ulc-casecmp1.sh: New file.
10690         * tests/unicase/test-ulc-casecmp2.sh: New file.
10691         * tests/unicase/test-ulc-casecmp.c: New file.
10692
10693         New module 'unicase/ulc-casecmp'.
10694         * lib/unicase.h (ulc_casecmp): New declaration.
10695         * lib/unicase/ulc-casecmp.c: New file.
10696         * lib/unicase/u-casecmp.h (FUNC): Change argument types to
10697         'const SRC_UNIT *'.
10698         * lib/unicase/u8-casecmp.c (SRC_UNIT): Define like UNIT.
10699         * lib/unicase/u16-casecmp.c (SRC_UNIT): Likewise.
10700         * lib/unicase/u32-casecmp.c (SRC_UNIT): Likewise.
10701         * modules/unicase/ulc-casecmp: New file.
10702
10703         Tests for module 'unicase/u32-is-cased'.
10704         * modules/unicase/u32-is-cased-tests: New file.
10705         * tests/unicase/test-u32-is-cased.c: New file.
10706
10707         Tests for module 'unicase/u16-is-cased'.
10708         * modules/unicase/u16-is-cased-tests: New file.
10709         * tests/unicase/test-u16-is-cased.c: New file.
10710
10711         Tests for module 'unicase/u8-is-cased'.
10712         * modules/unicase/u8-is-cased-tests: New file.
10713         * tests/unicase/test-u8-is-cased.c: New file.
10714         * tests/unicase/test-is-cased.h: New file.
10715
10716         New module 'unicase/u32-is-cased'.
10717         * lib/unicase/u32-is-cased.c: New file.
10718         * modules/unicase/u32-is-cased: New file.
10719
10720         New module 'unicase/u16-is-cased'.
10721         * lib/unicase/u16-is-cased.c: New file.
10722         * modules/unicase/u16-is-cased: New file.
10723
10724         New module 'unicase/u8-is-cased'.
10725         * lib/unicase/u8-is-cased.c: New file.
10726         * lib/unicase/u-is-cased.h: New file.
10727         * modules/unicase/u8-is-cased: New file.
10728
10729         Tests for module 'unicase/u32-is-casefolded'.
10730         * modules/unicase/u32-is-casefolded-tests: New file.
10731         * tests/unicase/test-u32-is-casefolded.c: New file.
10732
10733         Tests for module 'unicase/u16-is-casefolded'.
10734         * modules/unicase/u16-is-casefolded-tests: New file.
10735         * tests/unicase/test-u16-is-casefolded.c: New file.
10736
10737         Tests for module 'unicase/u8-is-casefolded'.
10738         * modules/unicase/u8-is-casefolded-tests: New file.
10739         * tests/unicase/test-u8-is-casefolded.c: New file.
10740         * tests/unicase/test-is-casefolded.h: New file.
10741
10742         New module 'unicase/u32-is-casefolded'.
10743         * lib/unicase/u32-is-casefolded.c: New file.
10744         * modules/unicase/u32-is-casefolded: New file.
10745
10746         New module 'unicase/u16-is-casefolded'.
10747         * lib/unicase/u16-is-casefolded.c: New file.
10748         * modules/unicase/u16-is-casefolded: New file.
10749
10750         New module 'unicase/u8-is-casefolded'.
10751         * lib/unicase/u8-is-casefolded.c: New file.
10752         * modules/unicase/u8-is-casefolded: New file.
10753
10754         Tests for module 'unicase/u32-is-titlecase'.
10755         * modules/unicase/u32-is-titlecase-tests: New file.
10756         * tests/unicase/test-u32-is-titlecase.c: New file.
10757
10758         Tests for module 'unicase/u16-is-titlecase'.
10759         * modules/unicase/u16-is-titlecase-tests: New file.
10760         * tests/unicase/test-u16-is-titlecase.c: New file.
10761
10762         Tests for module 'unicase/u8-is-titlecase'.
10763         * modules/unicase/u8-is-titlecase-tests: New file.
10764         * tests/unicase/test-u8-is-titlecase.c: New file.
10765         * tests/unicase/test-is-titlecase.h: New file.
10766
10767         New module 'unicase/u32-is-titlecase'.
10768         * lib/unicase/u32-is-titlecase.c: New file.
10769         * modules/unicase/u32-is-titlecase: New file.
10770
10771         New module 'unicase/u16-is-titlecase'.
10772         * lib/unicase/u16-is-titlecase.c: New file.
10773         * modules/unicase/u16-is-titlecase: New file.
10774
10775         New module 'unicase/u8-is-titlecase'.
10776         * lib/unicase/u8-is-titlecase.c: New file.
10777         * modules/unicase/u8-is-titlecase: New file.
10778
10779         Tests for module 'unicase/u32-is-lowercase'.
10780         * modules/unicase/u32-is-lowercase-tests: New file.
10781         * tests/unicase/test-u32-is-lowercase.c: New file.
10782
10783         Tests for module 'unicase/u16-is-lowercase'.
10784         * modules/unicase/u16-is-lowercase-tests: New file.
10785         * tests/unicase/test-u16-is-lowercase.c: New file.
10786
10787         Tests for module 'unicase/u8-is-lowercase'.
10788         * modules/unicase/u8-is-lowercase-tests: New file.
10789         * tests/unicase/test-u8-is-lowercase.c: New file.
10790         * tests/unicase/test-is-lowercase.h: New file.
10791
10792         New module 'unicase/u32-is-lowercase'.
10793         * lib/unicase/u32-is-lowercase.c: New file.
10794         * modules/unicase/u32-is-lowercase: New file.
10795
10796         New module 'unicase/u16-is-lowercase'.
10797         * lib/unicase/u16-is-lowercase.c: New file.
10798         * modules/unicase/u16-is-lowercase: New file.
10799
10800         New module 'unicase/u8-is-lowercase'.
10801         * lib/unicase/u8-is-lowercase.c: New file.
10802         * modules/unicase/u8-is-lowercase: New file.
10803
10804         Tests for module 'unicase/u32-is-uppercase'.
10805         * modules/unicase/u32-is-uppercase-tests: New file.
10806         * tests/unicase/test-u32-is-uppercase.c: New file.
10807
10808         Tests for module 'unicase/u16-is-uppercase'.
10809         * modules/unicase/u16-is-uppercase-tests: New file.
10810         * tests/unicase/test-u16-is-uppercase.c: New file.
10811
10812         Tests for module 'unicase/u8-is-uppercase'.
10813         * modules/unicase/u8-is-uppercase-tests: New file.
10814         * tests/unicase/test-u8-is-uppercase.c: New file.
10815         * tests/unicase/test-is-uppercase.h: New file.
10816
10817         New module 'unicase/u32-is-uppercase'.
10818         * lib/unicase/u32-is-uppercase.c: New file.
10819         * modules/unicase/u32-is-uppercase: New file.
10820
10821         New module 'unicase/u16-is-uppercase'.
10822         * lib/unicase/u16-is-uppercase.c: New file.
10823         * modules/unicase/u16-is-uppercase: New file.
10824
10825         New module 'unicase/u8-is-uppercase'.
10826         * lib/unicase/u8-is-uppercase.c: New file.
10827         * modules/unicase/u8-is-uppercase: New file.
10828
10829         New module 'unicase/u32-is-invariant'.
10830         * lib/unicase/u32-is-invariant.c: New file.
10831         * modules/unicase/u32-is-invariant: New file.
10832
10833         New module 'unicase/u16-is-invariant'.
10834         * lib/unicase/u16-is-invariant.c: New file.
10835         * modules/unicase/u16-is-invariant: New file.
10836
10837         New module 'unicase/u8-is-invariant'.
10838         * lib/unicase/u8-is-invariant.c: New file.
10839         * lib/unicase/invariant.h: New file.
10840         * lib/unicase/u-is-invariant.h: New file.
10841         * modules/unicase/u8-is-invariant: New file.
10842
10843         Tests for module 'unicase/u32-casecoll'.
10844         * modules/unicase/u32-casecoll-tests: New file.
10845         * tests/unicase/test-u32-casecoll.c: New file.
10846
10847         Tests for module 'unicase/u16-casecoll'.
10848         * modules/unicase/u16-casecoll-tests: New file.
10849         * tests/unicase/test-u16-casecoll.c: New file.
10850
10851         Tests for module 'unicase/u8-casecoll'.
10852         * modules/unicase/u8-casecoll-tests: New file.
10853         * tests/unicase/test-u8-casecoll.c: New file.
10854
10855         New module 'unicase/u32-casecoll'.
10856         * lib/unicase/u32-casecoll.c: New file.
10857         * modules/unicase/u32-casecoll: New file.
10858
10859         New module 'unicase/u16-casecoll'.
10860         * lib/unicase/u16-casecoll.c: New file.
10861         * modules/unicase/u16-casecoll: New file.
10862
10863         New module 'unicase/u8-casecoll'.
10864         * lib/unicase/u8-casecoll.c: New file.
10865         * lib/unicase/u-casecoll.h: New file.
10866         * modules/unicase/u8-casecoll: New file.
10867
10868         New module 'unicase/u32-casexfrm'.
10869         * lib/unicase/u32-casexfrm.c: New file.
10870         * modules/unicase/u32-casexfrm: New file.
10871
10872         New module 'unicase/u16-casexfrm'.
10873         * lib/unicase/u16-casexfrm.c: New file.
10874         * modules/unicase/u16-casexfrm: New file.
10875
10876         New module 'unicase/u8-casexfrm'.
10877         * lib/unicase/u8-casexfrm.c: New file.
10878         * lib/unicase/u-casexfrm.h: New file.
10879         * modules/unicase/u8-casexfrm: New file.
10880
10881         Tests for module 'unicase/u32-casecmp'.
10882         * modules/unicase/u32-casecmp-tests: New file.
10883         * tests/unicase/test-u32-casecmp.c: New file.
10884
10885         Tests for module 'unicase/u16-casecmp'.
10886         * modules/unicase/u16-casecmp-tests: New file.
10887         * tests/unicase/test-u16-casecmp.c: New file.
10888
10889         Tests for module 'unicase/u8-casecmp'.
10890         * modules/unicase/u8-casecmp-tests: New file.
10891         * tests/unicase/test-u8-casecmp.c: New file.
10892         * tests/unicase/test-casecmp.h: New file.
10893
10894         New module 'unicase/u32-casecmp'.
10895         * lib/unicase/u32-casecmp.c: New file.
10896         * modules/unicase/u32-casecmp: New file.
10897
10898         New module 'unicase/u16-casecmp'.
10899         * lib/unicase/u16-casecmp.c: New file.
10900         * modules/unicase/u16-casecmp: New file.
10901
10902         New module 'unicase/u8-casecmp'.
10903         * lib/unicase/u8-casecmp.c: New file.
10904         * lib/unicase/u-casecmp.h: New file.
10905         * modules/unicase/u8-casecmp: New file.
10906
10907         Tests for module 'unicase/u32-casefold'.
10908         * modules/unicase/u32-casefold-tests: New file.
10909         * tests/unicase/test-u32-casefold.c: New file.
10910
10911         Tests for module 'unicase/u16-casefold'.
10912         * modules/unicase/u16-casefold-tests: New file.
10913         * tests/unicase/test-u16-casefold.c: New file.
10914
10915         Tests for module 'unicase/u8-casefold'.
10916         * modules/unicase/u8-casefold-tests: New file.
10917         * tests/unicase/test-u8-casefold.c: New file.
10918
10919         New module 'unicase/u32-casefold'.
10920         * lib/unicase/u32-casefold.c: New file.
10921         * modules/unicase/u32-casefold: New file.
10922
10923         New module 'unicase/u16-casefold'.
10924         * lib/unicase/u16-casefold.c: New file.
10925         * modules/unicase/u16-casefold: New file.
10926
10927         New module 'unicase/u8-casefold'.
10928         * lib/unicase/u8-casefold.c: New file.
10929         * lib/unicase/u-casefold.h: New file.
10930         * modules/unicase/u8-casefold: New file.
10931
10932         New module 'unicase/tocasefold'.
10933         * lib/unicase/casefold.h: New file.
10934         * lib/unicase/tocasefold.c: New file.
10935         * lib/unicase/tocasefold.h: New file, generated by gen-uni-tables.c.
10936         * modules/unicase/tocasefold: New file.
10937
10938         Tests for module 'unicase/u32-totitle'.
10939         * modules/unicase/u32-totitle-tests: New file.
10940         * tests/unicase/test-u32-totitle.c: New file.
10941
10942         Tests for module 'unicase/u16-totitle'.
10943         * modules/unicase/u16-totitle-tests: New file.
10944         * tests/unicase/test-u16-totitle.c: New file.
10945
10946         Tests for module 'unicase/u8-totitle'.
10947         * modules/unicase/u8-totitle-tests: New file.
10948         * tests/unicase/test-u8-totitle.c: New file.
10949
10950         New module 'unicase/u32-totitle'.
10951         * lib/unicase/u32-totitle.c: New file.
10952         * modules/unicase/u32-totitle: New file.
10953
10954         New module 'unicase/u16-totitle'.
10955         * lib/unicase/u16-totitle.c: New file.
10956         * modules/unicase/u16-totitle: New file.
10957
10958         New module 'unicase/u8-totitle'.
10959         * lib/unicase/u8-totitle.c: New file.
10960         * lib/unicase/u-totitle.h: New file.
10961         * modules/unicase/u8-totitle: New file.
10962
10963         Tests for module 'unicase/u32-tolower'.
10964         * modules/unicase/u32-tolower-tests: New file.
10965         * tests/unicase/test-u32-tolower.c: New file.
10966
10967         Tests for module 'unicase/u16-tolower'.
10968         * modules/unicase/u16-tolower-tests: New file.
10969         * tests/unicase/test-u16-tolower.c: New file.
10970
10971         Tests for module 'unicase/u8-tolower'.
10972         * modules/unicase/u8-tolower-tests: New file.
10973         * tests/unicase/test-u8-tolower.c: New file.
10974
10975         New module 'unicase/u32-tolower'.
10976         * lib/unicase/u32-tolower.c: New file.
10977         * modules/unicase/u32-tolower: New file.
10978
10979         New module 'unicase/u16-tolower'.
10980         * lib/unicase/u16-tolower.c: New file.
10981         * modules/unicase/u16-tolower: New file.
10982
10983         New module 'unicase/u8-tolower'.
10984         * lib/unicase/u8-tolower.c: New file.
10985         * modules/unicase/u8-tolower: New file.
10986
10987         Tests for module 'unicase/u32-toupper'.
10988         * modules/unicase/u32-toupper-tests: New file.
10989         * tests/unicase/test-u32-toupper.c: New file.
10990
10991         Tests for module 'unicase/u16-toupper'.
10992         * modules/unicase/u16-toupper-tests: New file.
10993         * tests/unicase/test-u16-toupper.c: New file.
10994
10995         Tests for module 'unicase/u8-toupper'.
10996         * modules/unicase/u8-toupper-tests: New file.
10997         * tests/unicase/test-u8-toupper.c: New file.
10998
10999         New module 'unicase/u32-toupper'.
11000         * lib/unicase/u32-toupper.c: New file.
11001         * modules/unicase/u32-toupper: New file.
11002
11003         New module 'unicase/u16-toupper'.
11004         * lib/unicase/u16-toupper.c: New file.
11005         * modules/unicase/u16-toupper: New file.
11006
11007         New module 'unicase/u8-toupper'.
11008         * lib/unicase/u8-toupper.c: New file.
11009         * modules/unicase/u8-toupper: New file.
11010
11011         New module 'unicase/u32-casemap'.
11012         * lib/unicase/u32-casemap.c: New file.
11013         * modules/unicase/u32-casemap: New file.
11014
11015         New module 'unicase/u16-casemap'.
11016         * lib/unicase/u16-casemap.c: New file.
11017         * modules/unicase/u16-casemap: New file.
11018
11019         New module 'unicase/u8-casemap'.
11020         * lib/unicase/unicasemap.h: New file.
11021         * lib/unicase/u8-casemap.c: New file.
11022         * lib/unicase/u-casemap.h: New file.
11023         * modules/unicase/u8-casemap: New file.
11024
11025         New module 'unicase/special-casing'.
11026         * lib/unicase/special-casing.h: New file.
11027         * lib/unicase/special-casing.c: New file.
11028         * lib/unicase/special-casing-table.gperf: New file, generated by
11029         gen-uni-tables.c.
11030         * modules/unicase/special-casing: New file.
11031
11032         Tests for module 'unicase/locale-language'.
11033         * modules/unicase/locale-language-tests: New file.
11034         * tests/unicase/test-locale-language.sh: New file.
11035         * tests/unicase/test-locale-language.c: New file.
11036
11037         New module 'unicase/locale-language'.
11038         * lib/unicase/locale-language.c: New file.
11039         * lib/unicase/locale-languages.gperf: New file.
11040         * modules/unicase/locale-language: New file.
11041
11042         Generate more tables for case conversion and case folding.
11043         * lib/gen-uni-tables.c (SCC_*): New enum items.
11044         (struct special_casing_rule): New type.
11045         (casing_rules, num_casing_rules, allocated_casing_rules): New
11046         variables.
11047         (add_casing_rule, fill_casing_rules): New functions.
11048         (struct casefold_rule): New type.
11049         (casefolding_rules, num_casefolding_rules,
11050         allocated_casefolding_rules): New variables.
11051         (fill_casefolding_rules): New function.
11052         (unicode_casefold): New variable.
11053         (to_casefold, redistribute_casefolding_rules, compare_casing_rules,
11054         sort_casing_rules, output_casing_rules): New functions.
11055         (main): Accept to more arguments: SpecialCasing.txt and
11056         CaseFolding.txt. Invoke fill_casing_rules, fill_casefolding_rules,
11057         redistribute_casefolding_rules, sort_casing_rules, output_casing_rules.
11058         Output mapping for casefolding.
11059
11060         * lib/unicase.h: Include stdbool.h, uninorm.h.
11061         (u8_toupper, u16_toupper, u32_toupper, u8_tolower, u16_tolower,
11062         u32_tolower, u8_totitle, u16_totitle, u32_totitle): Add nf argument.
11063         (u8_casefold, u16_casefold, u32_casefold): Add iso639_language and nf
11064         arguments.
11065         (u8_casecmp, u16_casecmp, u32_casecmp): Add iso639_language, nf,
11066         resultp arguments.
11067         (u8_casexfrm, u16_casexfrm, u32_casexfrm): New declarations.
11068         (u8_casecoll, u16_casecoll, u32_casecoll): Add iso639_language, nf,
11069         resultp arguments.
11070         (u8_is_uppercase, u16_is_uppercase, u32_is_uppercase, u8_is_lowercase,
11071         u16_is_lowercase, u32_is_lowercase, u8_is_titlecase, u16_is_titlecase,
11072         u32_is_titlecase, u8_is_casefolded, u16_is_casefolded,
11073         u32_is_casefolded, u8_is_cased, u16_is_cased, u32_is_cased): New
11074         declarations.
11075         * modules/unicase/base (Depends-on): Add uninorm/base, stdbool.
11076
11077 2009-03-08  Bruno Haible  <bruno@clisp.org>
11078
11079         * lib/uninorm.h (u8_normcmp, u16_normcmp, u32_normcmp, u8_normcoll,
11080         u16_normcoll, u32_normcoll): Rename argument 'result' to 'resultp'.
11081         * lib/uninorm/u-normcmp.h (FUNC): Likewise.
11082         * lib/uninorm/u-normcoll.h (FUNC): Likewise.
11083
11084 2009-03-07  Bruno Haible  <bruno@clisp.org>
11085
11086         Adjust u*_normcmp, u*_normcoll API.
11087         * lib/uninorm.h (u8_normcmp, u16_normcmp, u32_normcmp, u8_normcoll,
11088         u16_normcoll, u32_normcoll): Change failure conventions.
11089         * lib/uninorm/u-normcmp.h (FUNC): Upon failure, store the error code in
11090         errno and return -1.
11091         * lib/uninorm/u-normcoll.h (FUNC): Likewise.
11092
11093 2009-03-07  Bruno Haible  <bruno@clisp.org>
11094
11095         Tests for module 'uninorm/u32-normcoll'.
11096         * modules/uninorm/u32-normcoll-tests: New file.
11097         * tests/uninorm/test-u32-normcoll.c: New file.
11098
11099         Tests for module 'uninorm/u16-normcoll'.
11100         * modules/uninorm/u16-normcoll-tests: New file.
11101         * tests/uninorm/test-u16-normcoll.c: New file.
11102
11103         Tests for module 'uninorm/u8-normcoll'.
11104         * modules/uninorm/u8-normcoll-tests: New file.
11105         * tests/uninorm/test-u8-normcoll.c: New file.
11106
11107 2009-03-07  Bruno Haible  <bruno@clisp.org>
11108
11109         * tests/uninorm/test-u32-normcmp.h: New file, extracted from
11110         tests/uninorm/test-u32-normcmp.c.
11111         * tests/uninorm/test-u32-normcmp.c: Include it.
11112         (test_nonascii): New function, extracted from main. Add some more
11113         tests.
11114         (main): Invoke test_ascii and test_nonascii.
11115         * modules/uninorm/u32-normcmp-tests (Files): Add
11116         tests/uninorm/test-u32-normcmp.h.
11117         (Depends-on): Remove uninorm/u32-normcmp.
11118
11119         * tests/uninorm/test-u16-normcmp.h: New file, extracted from
11120         tests/uninorm/test-u16-normcmp.c.
11121         * tests/uninorm/test-u16-normcmp.c: Include it.
11122         (test_nonascii): New function, extracted from main. Add some more
11123         tests.
11124         (main): Invoke test_ascii and test_nonascii.
11125         * modules/uninorm/u16-normcmp-tests (Files): Add
11126         tests/uninorm/test-u16-normcmp.h.
11127         (Depends-on): Remove uninorm/u16-normcmp.
11128
11129         * tests/uninorm/test-u8-normcmp.h: New file, extracted from
11130         tests/uninorm/test-u8-normcmp.c.
11131         * tests/uninorm/test-u8-normcmp.c: Include it.
11132         (test_nonascii): New function, extracted from main. Add some more
11133         tests.
11134         (main): Invoke test_ascii and test_nonascii.
11135         * modules/uninorm/u8-normcmp-tests (Files): Add
11136         tests/uninorm/test-u8-normcmp.h.
11137         (Depends-on): Remove uninorm/u8-normcmp.
11138
11139 2009-03-07  Bruno Haible  <bruno@clisp.org>
11140
11141         New module 'uninorm/u32-normcoll'.
11142         * lib/uninorm/u32-normcoll.c: New file.
11143         * modules/uninorm/u32-normcoll: New file.
11144
11145         New module 'uninorm/u16-normcoll'.
11146         * lib/uninorm/u16-normcoll.c: New file.
11147         * modules/uninorm/u16-normcoll: New file.
11148
11149         New module 'uninorm/u8-normcoll'.
11150         * lib/uninorm.h (u8_normcoll, u16_normcoll, u32_normcoll): New
11151         declarations.
11152         * lib/uninorm/u8-normcoll.c: New file.
11153         * lib/uninorm/u-normcoll.h: New file.
11154         * modules/uninorm/u8-normcoll: New file.
11155
11156         New module 'uninorm/u32-normxfrm'.
11157         * lib/uninorm/u32-normxfrm.c: New file.
11158         * modules/uninorm/u32-normxfrm: New file.
11159
11160         New module 'uninorm/u16-normxfrm'.
11161         * lib/uninorm/u16-normxfrm.c: New file.
11162         * modules/uninorm/u16-normxfrm: New file.
11163
11164         New module 'uninorm/u8-normxfrm'.
11165         * lib/uninorm.h (u8_normxfrm, u16_normxfrm, u32_normxfrm): New
11166         declarations.
11167         * lib/uninorm/u8-normxfrm.c: New file.
11168         * lib/uninorm/u-normxfrm.h: New file.
11169         * modules/uninorm/u8-normxfrm: New file.
11170
11171 2009-03-07  Bruno Haible  <bruno@clisp.org>
11172
11173         * modules/uninorm/u8-normcmp (Depends-on): Add uninorm/base.
11174         * modules/uninorm/u16-normcmp (Depends-on): Likewise.
11175         * modules/uninorm/u32-normcmp (Depends-on): Likewise.
11176
11177 2009-03-07  Bruno Haible  <bruno@clisp.org>
11178
11179         New module 'memxfrm'.
11180         * lib/memxfrm.h: New file.
11181         * lib/memxfrm.c: New file.
11182         * modules/memxfrm: New file.
11183
11184 2009-03-07  Bruno Haible  <bruno@clisp.org>
11185
11186         New module 'memcmp2'.
11187         * lib/memcmp2.h: New file.
11188         * lib/memcmp2.c: New file.
11189         * modules/memcmp2: New file.
11190
11191 2009-03-07  Bruno Haible  <bruno@clisp.org>
11192
11193         Tests for module 'uninorm/decomposing-form'.
11194         * modules/uninorm/decomposing-form-tests: New file.
11195         * tests/uninorm/test-decomposing-form.c: New file.
11196
11197         New module 'uninorm/decomposing-form'.
11198         * lib/uninorm.h (uninorm_decomposing_form): New declaration.
11199         * lib/uninorm/normalize-internal.h (struct unicode_normalization_form):
11200         Add 'decomposing_variant' field.
11201         * lib/uninorm/decomposing-form.c: New file.
11202         * lib/uninorm/nfc.c (uninorm_nfc): Update.
11203         * lib/uninorm/nfd.c (uninorm_nfd): Update.
11204         * lib/uninorm/nfkc.c (uninorm_nfkc): Update.
11205         * lib/uninorm/nfkd.c (uninorm_nfkd): Update.
11206         * modules/uninorm/decomposing-form: New file.
11207         * modules/uninorm/nfc (Depends-on): Add uninorm/nfd.
11208         * modules/uninorm/nfkc (Depends-on): Add uninorm/nfkd.
11209
11210 2009-03-07  Bruno Haible  <bruno@clisp.org>
11211
11212         * lib/uninorm/u-normcmp.h (FUNC): Use stack=allocated buffers for small
11213         strings.
11214
11215 2009-03-06  Bruno Haible  <bruno@clisp.org>
11216
11217         Tests for module 'uninorm/u32-normcmp'.
11218         * tests/uninorm/test-u32-normcmp.c: New file.
11219         * modules/uninorm/u32-normcmp-tests: New file.
11220
11221         Tests for module 'uninorm/u16-normcmp'.
11222         * tests/uninorm/test-u16-normcmp.c: New file.
11223         * modules/uninorm/u16-normcmp-tests: New file.
11224
11225         Tests for module 'uninorm/u8-normcmp'.
11226         * tests/uninorm/test-u8-normcmp.c: New file.
11227         * modules/uninorm/u8-normcmp-tests: New file.
11228
11229         New module 'uninorm/u32-normcmp'.
11230         * lib/uninorm/u32-normcmp.c: New file.
11231         * modules/uninorm/u32-normcmp: New file.
11232
11233         New module 'uninorm/u16-normcmp'.
11234         * lib/uninorm/u16-normcmp.c: New file.
11235         * modules/uninorm/u16-normcmp: New file.
11236
11237         New module 'uninorm/u8-normcmp'.
11238         * lib/uninorm.h (u8_normcmp, u16_normcmp, u32_normcmp): New
11239         declarations.
11240         * lib/uninorm/u8-normcmp.c: New file.
11241         * lib/uninorm/u-normcmp.h: New file.
11242         * modules/uninorm/u8-normcmp: New file.
11243
11244 2009-03-06  Bruno Haible  <bruno@clisp.org>
11245
11246         * lib/w32spawn.h (dup_noinherit): Add cast, to avoid gcc warning.
11247         Reported by Eric Blake.
11248
11249 2009-03-06  Eric Blake  <ebb9@byu.net>
11250             Bruno Haible  <bruno@clisp.org>
11251
11252         * lib/spawni.c (__spawni) [WIN32_NATIVE]: Define as a stub.
11253         * modules/posix_spawn-tests (configure.ac): Define POSIX_SPAWN_PORTED
11254         condition.
11255         (Makefile.am): Do nothing if POSIX_SPAWN_PORTED is false.
11256         * modules/posix_spawnp-tests (configure.ac): Define POSIX_SPAWN_PORTED
11257         condition.
11258         (Makefile.am): Do nothing if POSIX_SPAWN_PORTED is false.
11259
11260 2009-03-06  Eric Blake  <ebb9@byu.net>
11261
11262         * lib/execute.c (execute) [WIN32_NATIVE]: Cast arguments of spawnvpe,
11263         to avoid compiler warnings.
11264         * lib/pipe.c (create_pipe) [WIN32_NATIVE]: Likewise.
11265
11266 2009-03-05  Bruno Haible  <bruno@clisp.org>
11267
11268         * tests/test-ftell.c (main): Disable test beyond end of file on
11269         FreeMiNT.
11270         Patch by Alan Hourihane <alanh@fairlite.co.uk>.
11271
11272 2009-03-05  Kamil Dudka  <kdudka@redhat.com>
11273
11274         * lib/filevercmp.c: Move hidden files up in ordering.
11275         * tests/test-filevercmp.c: Add tests for hidden files.
11276
11277 2009-03-04  Bruno Haible  <bruno@clisp.org>
11278
11279         * modules/visibility (Makefile.am): Augment AM_CFLAGS.
11280         * gnulib-tool (func_emit_lib_Makefile_am): Emit initialization of
11281         AM_CFLAGS.
11282         Reported by Simon Josefsson.
11283
11284 2009-03-03  Bruno Haible  <bruno@clisp.org>
11285
11286         * doc/visibility.texi: Recommend to use HAVE_VISIBILITY as a C macro.
11287         Reported by Simon Josefsson.
11288
11289         * doc/ld-version-script.texi: Update node reference.
11290
11291 2009-03-03  Bruno Haible  <bruno@clisp.org>
11292
11293         * modules/visibility (License): Change to 'unlimited'.
11294         Suggested by Simon Josefsson.
11295
11296 2009-03-03  Jim Meyering  <meyering@redhat.com>
11297
11298         unlinkdir: cannot_unlink_dir may modify process state
11299         * lib/unlinkdir.c (cannot_unlink_dir): Add a comment warning that
11300         it's neither thread-safe nor appropriate for use in a library.
11301
11302 2009-03-03  Eric Blake  <ebb9@byu.net>
11303
11304         test-closein: silence test under Darwin
11305         * tests/test-closein.sh: Ignore stderr from cat, since we don't
11306         care if it dies from EPIPE or EBADF.
11307
11308 2009-03-03  Bruno Haible  <bruno@clisp.org>
11309
11310         * doc/gnulib.texi: Include visibility.texi and ld-version-script.texi
11311         earlier.
11312         * doc/visibility.texi: Fix @node and @section.
11313
11314 2009-03-03  Simon Josefsson  <simon@josefsson.org>
11315
11316         * doc/gnulib.texi: Link to sections for ld version script and
11317         visibility.
11318         * doc/visibility.texi: Add @node and @section.
11319         * modules/ld-version-script: New module.
11320         * m4/ld-version-script.m4: New file.
11321         * doc/ld-version-script.texi: New file.
11322
11323 2009-03-02  David Lutterkort  <lutter@redhat.com>
11324
11325         * lib/safe-alloc.h (__GNUC_PREREQ): New macro.
11326         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
11327
11328 2009-03-02  Bruno Haible  <bruno@clisp.org>
11329
11330         * doc/visibility.texi: Mention libtool's -export-symbols option.
11331
11332 2009-03-02  Jim Meyering  <meyering@redhat.com>
11333
11334         announce-gen: new option: --no-print-checksums
11335         * build-aux/announce-gen (usage): Describe it.
11336         (print_checksums): Print a newline here, not in the [*] footnote.
11337         (main): Honor it.
11338
11339 2009-03-01  Bruno Haible  <bruno@clisp.org>
11340
11341         Use socklen_t in the native Windows replacements prototypes.
11342         * lib/sys_socket.in.h (rpl_getsockopt, rpl_setsockopt): Use socklen_t
11343         instead of 'int'.
11344         * lib/getsockopt.c (rpl_getsockopt): Likewise.
11345         * lib/setsockopt.c (rpl_setsockopt): Likewise.
11346         * modules/getsockopt (Depends-on): Add socklen.
11347         * modules/setsockopt (Depends-on): Add socklen.
11348
11349 2009-03-01  Bruno Haible  <bruno@clisp.org>
11350
11351         * gnulib-tool (sed): Do alias as "sed --posix" if sed's version is at
11352         least 4.2.
11353
11354 2009-03-01  Eric Blake  <ebb9@byu.net>
11355             Bruno Haible  <bruno@clisp.org>
11356
11357         * lib/wait-process.h (wait_subprocess): Describe effect of termsigp on
11358         error messages.
11359         * lib/wait-process.c (wait_subprocess): Omit error message about
11360         deadly signal sent to the child of termsigp != NULL.
11361
11362 2009-03-01  Eric Blake  <ebb9@byu.net>
11363
11364         * lib/wait-process.c (wait_subprocess): Remove unnecessary cast.
11365
11366 2009-03-01  Bruno Haible  <bruno@clisp.org>
11367
11368         Avoid a gcc warning.
11369         * tests/test-sched.c (b): Make global.
11370         Reported by Eric Blake.
11371
11372 2009-01-19  Martin Lambers  <marlam@marlam.de>
11373
11374         Provide POSIX semantics for socket timeout options on W32.
11375         * lib/setsockopt.c: Convert struct timeval to milliseconds on W32.
11376         * lib/getsockopt.c: Convert milliseconds to struct timeval on W32.
11377         * modules/setsockopt: Depend on sys_time module for struct timeval.
11378         * modules/getsockopt: Depend on sys_time module for struct timeval.
11379
11380 2009-03-01  Simon Josefsson  <simon@josefsson.org>
11381
11382         * lib/gai_strerror.c (values): Use EAI_INPROGRESS instead of
11383         __USE_GNU, for consistency with netdb.in.h.
11384         Reported by Alan Hourihane <alanh@fairlite.co.uk>.
11385
11386 2009-03-01  Bruno Haible  <bruno@clisp.org>
11387
11388         More support for FreeMiNT.
11389         * lib/fseeko.c (rpl_fseeko): Complete last commit.
11390         Reported by Alan Hourihane <alanh@fairlite.co.uk>.
11391
11392 2009-03-01  Bruno Haible  <bruno@clisp.org>
11393
11394         More support for FreeMiNT.
11395         * lib/fpurge.c (fpurge): Correct last commit.
11396         Reported by Alan Hourihane <alanh@fairlite.co.uk>.
11397
11398 2009-03-01  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
11399
11400         Fix unportable awk script in vc-list-files.
11401         * build-aux/vc-list-files: In the replacement awk script, use
11402         substr with a second argument of 1, not zero.
11403         Report by Simon Josefsson.
11404
11405 2009-02-28  Bruno Haible  <bruno@clisp.org>
11406
11407         More support for FreeMiNT.
11408         * lib/freading.c (freading) [__MINT__]: Use new macros that were added
11409         to FreeMiNT today.
11410         * lib/fwriting.c (fwriting): Likewise.
11411         Based on patch by Alan Hourihane <alanh@fairlite.co.uk>.
11412
11413 2009-02-28  Bruno Haible  <bruno@clisp.org>
11414
11415         * tests/test-freadseek.c (main): Disable test beyond end of file on
11416         FreeMiNT.
11417         * tests/test-ftello.c (main): Likewise.
11418         Patch by Alan Hourihane <alanh@fairlite.co.uk>.
11419
11420 2009-02-28  Bruno Haible  <bruno@clisp.org>
11421
11422         Add tentative support for FreeMiNT.
11423         * lib/fbufmode.c (fbufmode) [__MINT__]: Add conditional code.
11424         * lib/fpurge.c (fpurge): Likewise.
11425         * lib/freadable.c (freadable): Likewise.
11426         * lib/freading.c (freading): Likewise.
11427         * lib/freadptr.c (freadptr): Likewise.
11428         * lib/freadseek.c (freadptrinc): Likewise.
11429         * lib/fseeko.c (rpl_fseeko): Likewise.
11430         * lib/fseterr.c (fseterr): Likewise.
11431         * lib/fwritable.c (fwritable): Likewise.
11432         * lib/fwriting.c (fwriting): Likewise.
11433         * lib/freadahead.c (freadahead): Likewise, based on code by Alan
11434         Hourihane.
11435         Reported by Alan Hourihane <alanh@fairlite.co.uk>.
11436
11437 2009-02-28  Bruno Haible  <bruno@clisp.org>
11438
11439         * lib/wait-process.h (wait_subprocess): Clarify restriction regarding
11440         SIGCHLD.
11441         Reported by Jim Meyering.
11442
11443 2009-02-28  Bruno Haible  <bruno@clisp.org>
11444
11445         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_LS): Separate the two first tests.
11446         Mention the results of these tests on various platforms.
11447         * doc/posix-functions/fprintf.texi: Mention platforms in canonical
11448         order.
11449         * doc/posix-functions/printf.texi: Likewise.
11450         * doc/posix-functions/snprintf.texi: Likewise.
11451         * doc/posix-functions/sprintf.texi: Likewise.
11452         * doc/posix-functions/vfprintf.texi: Likewise.
11453         * doc/posix-functions/vprintf.texi: Likewise.
11454         * doc/posix-functions/vsnprintf.texi: Likewise.
11455         * doc/posix-functions/vsprintf.texi: Likewise.
11456         * doc/glibc-functions/obstack_printf.texi: Likewise.
11457         * doc/glibc-functions/obstack_vprintf.texi: Likewise.
11458
11459 2009-02-28  Bruno Haible  <bruno@clisp.org>
11460
11461         * build-aux/po/Makefile.in.in: Update from GNU gettext 0.17.
11462         Reported by Loïc Minier <lool@dooz.org>.
11463
11464 2009-02-27  Bruno Haible  <bruno@clisp.org>
11465
11466         * gnulib-tool (func_import): Make the sed expression used to create the
11467         sed script for updating the .gitignore file POSIX compliant.
11468         Reported by Eric Blake.
11469
11470 2009-02-27  Bruno Haible  <bruno@clisp.org>
11471
11472         * gnulib-tool (sed): Don't alias as "sed --posix".
11473         Reported by Eric Blake.
11474
11475 2009-02-27  Bruno Haible  <bruno@clisp.org>
11476
11477         Avoid test link errors.
11478         * modules/uninorm/nfc-tests (test_u32_nfc_big_LDADD): New variable.
11479         * modules/uninorm/nfd-tests (test_u32_nfd_big_LDADD): New variable.
11480         * modules/uninorm/nfkc-tests (test_u32_nfkc_big_LDADD): New variable.
11481         * modules/uninorm/nfkd-tests (test_u32_nfkd_big_LDADD): New variable.
11482         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
11483
11484 2009-02-27  Bruno Haible  <bruno@clisp.org>
11485
11486         Avoid spurious "(cached)" in configure output.
11487         * m4/gnulib-common.m4 (gl_CACHE_VAL_SILENT): New macro.
11488         * m4/ceil.m4 (gl_FUNC_CEIL_LIBS): Use it instead of AC_CACHE_VAL.
11489         * m4/ceilf.m4 (gl_FUNC_CEILF_LIBS): Likewise.
11490         * m4/ceill.m4 (gl_FUNC_CEILL_LIBS): Likewise.
11491         * m4/floor.m4 (gl_FUNC_FLOOR_LIBS): Likewise.
11492         * m4/floorf.m4 (gl_FUNC_FLOORF_LIBS): Likewise.
11493         * m4/floorl.m4 (gl_FUNC_FLOORL_LIBS): Likewise.
11494         * m4/stdarg.m4 (gl_STDARG_H): Likewise.
11495         Reported by Eric Blake.
11496
11497 2009-02-27  Eric Blake  <ebb9@byu.net>
11498
11499         printf: fix regression in previous patch
11500         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_LS): Fix compilation error.
11501
11502 2009-02-27  Bruno Haible  <bruno@clisp.org>
11503
11504         * lib/inttypes.in.h: Test merely whether _LP64 is defined, not its
11505         value.
11506         * lib/stdint.in.h: Likewise.
11507         Suggested by Eric Blake. Reported by Peter Bray <pdb_ml@yahoo.com.au>.
11508
11509 2009-02-27  Eric Blake  <ebb9@byu.net>
11510
11511         doc: mention more functions added in cygwin 1.7.0
11512         * doc/posix-functions/mbsnrtowcs.texi: Mention recent cygwin 1.7.0
11513         addition.
11514         * doc/posix-functions/open_wmemstream.texi: Likewise.
11515         * doc/posix-functions/wcsnlen.texi: Likewise.
11516         * doc/posix-functions/wcsnrtombs.texi: Likewise.
11517         * doc/posix-functions/wcstod.texi: Likewise.
11518         * doc/posix-functions/wcstof.texi: Likewise.
11519         * doc/posix-functions/wcstoimax.texi: Likewise.
11520         * doc/posix-functions/wcstok.texi: Likewise.
11521         * doc/posix-functions/wcstoumax.texi: Likewise.
11522
11523         Detect bug in cygwin 1.5.x *printf on 1-character %ls.
11524         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_LS): Enhance filter.
11525         * doc/posix-functions/fprintf.texi: Update.
11526         * doc/posix-functions/printf.texi: Update.
11527         * doc/posix-functions/snprintf.texi: Update.
11528         * doc/posix-functions/sprintf.texi: Update.
11529         * doc/posix-functions/vfprintf.texi: Update.
11530         * doc/posix-functions/vprintf.texi: Update.
11531         * doc/posix-functions/vsnprintf.texi: Update.
11532         * doc/posix-functions/vsprintf.texi: Update.
11533         * doc/glibc-functions/obstack_printf.texi: Update.
11534         * doc/glibc-functions/obstack_vprintf.texi: Update.
11535
11536 2009-02-26  Eric Blake  <ebb9@byu.net>
11537
11538         avoid gcc 3.4.3 bug on long double NaN on Irix 6.5
11539         * tests/nan.h (NaNl): Rewrite as function on Irix, to avoid
11540         compilation bug by using runtime conversion.
11541         * m4/isfinite.m4 (gl_ISFINITE): Likewise.
11542         * m4/isnanl.m4 (gl_FUNC_ISNANL): Likewise.
11543         * modules/ceill-tests (Files): Use nan.h.
11544         * modules/floorl-tests (Files): Likewise.
11545         * modules/frexpl-tests (Files): Likewise.
11546         * modules/isnanl-tests (Files): Likewise.
11547         * modules/ldexpl-tests (Files): Likewise.
11548         * modules/roundl-tests (Files): Likewise.
11549         * modules/truncl-tests (Files): Likewise.
11550         * tests/test-ceill.c (main): Use a working NaN.
11551         * tests/test-floorl.c (main): Likewise.
11552         * tests/test-frexpl.c (main): Likewise.
11553         * tests/test-isnan.c (test_long_double): Likewise.
11554         * tests/test-isnanl.h (main): Likewise.
11555         * tests/test-ldexpl.h (main): Likewise.
11556         * tests/test-roundl.h (main): Likewise.
11557         * tests/test-truncl.h (main): Likewise.
11558         See http://lists.gnu.org/archive/html/bug-gnulib/2009-02/msg00190.html.
11559
11560 2009-02-26  Eric Blake  <ebb9@byu.net>
11561             Bruno Haible  <bruno@clisp.org>
11562
11563         Work around a *printf bug with %ls on Solaris.
11564         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_LS): Also test whether, when a
11565         precision is specified, sprintf stops converting the wide string
11566         argument when the number of bytes that have been produced by this
11567         conversion equals or exceeds the precision.
11568         * doc/posix-functions/fprintf.texi: Update.
11569         * doc/posix-functions/printf.texi: Update.
11570         * doc/posix-functions/snprintf.texi: Update.
11571         * doc/posix-functions/sprintf.texi: Update.
11572         * doc/posix-functions/vfprintf.texi: Update.
11573         * doc/posix-functions/vprintf.texi: Update.
11574         * doc/posix-functions/vsnprintf.texi: Update.
11575         * doc/posix-functions/vsprintf.texi: Update.
11576         * doc/glibc-functions/obstack_printf.texi: Update.
11577         * doc/glibc-functions/obstack_vprintf.texi: Update.
11578
11579 2009-02-26  Eric Blake  <ebb9@byu.net>
11580
11581         stdlib: favor compiler check of random.h
11582         * m4/stdlib_h.m4 (gl_STDLIB_H): Skip preprocessor check.  Needed
11583         to avoid an ObjC random.h installed by Swarm.
11584
11585 2009-02-26  Bruno Haible  <bruno@clisp.org>
11586
11587         Work around *printf bug with %g directive and 0.0 on HP-UX 10.20.
11588         * m4/printf.m4 (gl_PRINTF_INFINITE): Also test for %g output of -0.0.
11589         Reported by Gary V. Vaughan <gary@gnu.org>.
11590
11591 2009-02-26  Bruno Haible  <bruno@clisp.org>
11592
11593         Fix *printf behaviour regarding the %ls directive.
11594         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_LS): New macro.
11595         * lib/vasnprintf.c (local_wcslen, VASNPRINTF): Handle
11596         NEED_PRINTF_DIRECTIVE_LS.
11597         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_DIRECTIVE_LS): New macro.
11598         (gl_PREREQ_VASNPRINTF_WITH_EXTRAS): Invoke it.
11599         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
11600         gl_PREREQ_VASNPRINTF_DIRECTIVE_LS and test its result. Invoke
11601         gl_PREREQ_VASNPRINTF_DIRECTIVE_LS.
11602         * m4/dprintf-posix.m4 (gl_FUNC_DPRINTF_POSIX): Likewise.
11603         * m4/obstack-printf-posix.m4 (gl_FUNC_OBSTACK_PRINTF_POSIX): Likewise.
11604         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
11605         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
11606         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
11607         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
11608         * m4/vdprintf-posix.m4 (gl_FUNC_VDPRINTF_POSIX): Likewise.
11609         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
11610         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
11611         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
11612         * doc/posix-functions/fprintf.texi: Update.
11613         * doc/posix-functions/printf.texi: Update.
11614         * doc/posix-functions/snprintf.texi: Update.
11615         * doc/posix-functions/sprintf.texi: Update.
11616         * doc/posix-functions/vfprintf.texi: Update.
11617         * doc/posix-functions/vprintf.texi: Update.
11618         * doc/posix-functions/vsnprintf.texi: Update.
11619         * doc/posix-functions/vsprintf.texi: Update.
11620         * doc/glibc-functions/obstack_printf.texi: Update.
11621         * doc/glibc-functions/obstack_vprintf.texi: Update.
11622         Reported by Eric Blake.
11623
11624 2009-02-25  Bruno Haible  <bruno@clisp.org>
11625
11626         * m4/mbrtowc.m4 (gl_MBRTOWC_NUL_RETVAL): Update guess for Solaris 8
11627         with known value.
11628         Reported by Gary V. Vaughan <gary@gnu.org>.
11629
11630 2009-02-25  Bruno Haible  <bruno@clisp.org>
11631
11632         Work around mbrtowc bug in zh_CN.GB18030 locale on Solaris 8.
11633         * m4/mbrtowc.m4 (gl_MBRTOWC_SANITYCHECK): New macro.
11634         (gl_MBSTATE_T_BROKEN): Invoke it. Replace mbstate_t when it says "no".
11635         * doc/posix-functions/mbrtowc.texi: Document the Solaris 8 bug.
11636         Reported by Gary V. Vaughan <gary@gnu.org>.
11637
11638 2009-02-25  Bruno Haible  <bruno@clisp.org>
11639
11640         Work around broken INT8_MAX, UINT8_MAX etc. values on HP-UX 11.23.
11641         * m4/stdint.m4 (gl_STDINT_H): Also check whether the expansions of
11642         INT8_MAX, UINT8_MAX etc. contain casts to elementary types.
11643         * doc/posix-headers/stdint.texi: Mention the HP-UX bug.
11644         Reported by Gary V. Vaughan <gary@gnu.org>.
11645
11646 2009-02-25  Eric Blake  <ebb9@byu.net>
11647
11648         tests: skip fseek/ftell tests if ungetc is broken
11649         * m4/ungetc.m4: New file.
11650         * modules/fseek-tests: Split test, so ungetc dependency is
11651         separate from rest of test.
11652         * modules/fseeko-tests: Likewise.
11653         * modules/ftell-tests: Likewise.
11654         * modules/ftello-tests: Likewise.
11655         * tests/test-fseek.c (main): Isolate ungetc dependency.
11656         * tests/test-fseeko.c (main): Likewise.
11657         * tests/test-ftell.c (main): Likewise.
11658         * tests/test-ftello.c (main): Likewise.
11659         * tests/test-fseek2.sh: New file.
11660         * tests/test-fseeko2.sh: Likewise.
11661         * tests/test-ftell2.sh: Likewise.
11662         * tests/test-ftello2.sh: Likewise.
11663
11664 2009-02-25  OndÅ™ej Vašík  <ovasik@redhat.com>
11665
11666         test-getaddrinfo: fix usage of skip return code 77
11667         * tests/test-gettaddrinfo.c: Return skip code 77 only
11668         for first occurance of skip (4x77 is not 77)
11669
11670 2009-02-25  Gary V. Vaughan  <gary@gnu.org>
11671
11672         strtod: avoid C99 decl-after-statement
11673         * m4/strtod.m4 (gl_FUNC_STRTOD): Rearrange declaration.
11674
11675 2009-02-24  Eric Blake  <ebb9@byu.net>
11676
11677         strtod: detect HP-UX 11.31 bug
11678         * m4/strtod.m4 (gl_FUNC_STRTOD): Detect errno handling bug.
11679         Reported by Gary V. Vaughan.
11680
11681 2009-02-23  Bruno Haible  <bruno@clisp.org>
11682
11683         Fix invalid read past end of memory block.
11684         * lib/vasnprintf.c (DCHAR_SET): Define.
11685         (local_wcslen): Define only when needed.
11686         (local_strnlen, local_wcsnlen): New functions.
11687         (VASNPRINTF) [!USE_SNPRINTF && HAVE_WCHAR_T]: Implement the %s and %ls
11688         directives that involve a conversion ourselves.
11689         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF): Also check for strnlen,
11690         wcsnlen, mbrtowc, wcrtomb.
11691         * tests/test-vasnprintf-posix.c (test_function): Add tests for %.*s.
11692         * tests/test-vasprintf-posix.c (test_function): Likewise.
11693         * tests/test-snprintf-posix.h (test_function): Likewise.
11694         * tests/test-sprintf-posix.h (test_function): Likewise.
11695         Reported by Ben Pfaff <blp@cs.stanford.edu>.
11696
11697 2009-02-22  Bruno Haible  <bruno@clisp.org>
11698
11699         Implement new clarified decomposition of Hangul syllables.
11700         * lib/uninorm/decomposition.c (uc_decomposition): For Hangul syllables
11701         of type LTV, return only a pairwise decomposition.
11702         * lib/uninorm/canonical-decomposition.c (uc_canonical_decomposition):
11703         Likewise.
11704         * tests/uninorm/test-decomposition.c (main): Updated expected result.
11705         * tests/uninorm/test-canonical-decomposition.c (main): Likewise.
11706         * tests/uninorm/test-compat-decomposition.c (main): Likewise.
11707
11708 2009-02-22  Bruno Haible  <bruno@clisp.org>
11709
11710         * lib/uninorm/u-normalize-internal.h (FUNC): At the end, handle
11711         zero-length results and shrink excess allocated memory.
11712         * tests/uninorm/test-u8-nfc.c (test_u8_nfc): Check empty string result.
11713         * tests/uninorm/test-u8-nfd.c (test_u8_nfd): Likewise.
11714         * tests/uninorm/test-u8-nfkc.c (test_u8_nfkc): Likewise.
11715         * tests/uninorm/test-u8-nfkd.c (test_u8_nfkd): Likewise.
11716         * tests/uninorm/test-u16-nfc.c (test_u16_nfc): Likewise.
11717         * tests/uninorm/test-u16-nfd.c (test_u16_nfd): Likewise.
11718         * tests/uninorm/test-u16-nfkc.c (test_u16_nfkc): Likewise.
11719         * tests/uninorm/test-u16-nfkd.c (test_u16_nfkd): Likewise.
11720         * tests/uninorm/test-u32-nfc.c (test_u32_nfc): Likewise.
11721         * tests/uninorm/test-u32-nfd.c (test_u32_nfd): Likewise.
11722         * tests/uninorm/test-u32-nfkc.c (test_u32_nfkc): Likewise.
11723         * tests/uninorm/test-u32-nfkd.c (test_u32_nfkd): Likewise.
11724
11725 2009-02-21  Bruno Haible  <bruno@clisp.org>
11726
11727         * doc/gnulib.texi: Include safe-alloc.texi earlier.
11728         * doc/safe-alloc.texi: Terminate sentences with a period. Use two
11729         spaces after a period. Put a space between a macro name and its
11730         argument list. Trivial rewordings.
11731         * lib/safe-alloc.c: Include safe-alloc.h right after config.h.
11732         * tests/test-safe-alloc.c: Likewise. Include stdlib.h.
11733         (main): Return 0 explicitly.
11734
11735 2009-02-21  Bruno Haible  <bruno@clisp.org>
11736
11737         Tests for module 'uninorm/filter'.
11738         * tests/uninorm/test-uninorm-filter-nfc.c: New file.
11739         * modules/uninorm/filter-tests: New file.
11740
11741         New module 'uninorm/filter'.
11742         * lib/uninorm.h (uninorm_filter_create, uninorm_filter_write,
11743         uninorm_filter_flush, uninorm_filter_free): New declarations.
11744         * lib/uninorm/uninorm-filter.c: New file.
11745         * modules/uninorm/filter: New file.
11746
11747 2009-02-21  Bruno Haible  <bruno@clisp.org>
11748
11749         Tests for module 'uninorm/nfkc'.
11750         * tests/uninorm/test-nfkc.c: New file.
11751         * tests/uninorm/test-u8-nfkc.c: New file.
11752         * tests/uninorm/test-u16-nfkc.c: New file.
11753         * tests/uninorm/test-u32-nfkc.c: New file.
11754         * tests/uninorm/test-u32-nfkc-big.sh: New file.
11755         * tests/uninorm/test-u32-nfkc-big.c: New file.
11756         * modules/uninorm/nfkc-tests: New file.
11757
11758         New module 'uninorm/nfkc'.
11759         * lib/uninorm/nfkc.c: New file.
11760         * modules/uninorm/nfkc: New file.
11761
11762         Tests for module 'uninorm/nfkd'.
11763         * tests/uninorm/test-nfkd.c: New file.
11764         * tests/uninorm/test-u8-nfkd.c: New file.
11765         * tests/uninorm/test-u16-nfkd.c: New file.
11766         * tests/uninorm/test-u32-nfkd.c: New file.
11767         * tests/uninorm/test-u32-nfkd-big.sh: New file.
11768         * tests/uninorm/test-u32-nfkd-big.c: New file.
11769         * modules/uninorm/nfkd-tests: New file.
11770
11771         New module 'uninorm/nfkd'.
11772         * lib/uninorm/nfkd.c: New file.
11773         * modules/uninorm/nfkd: New file.
11774
11775         Tests for module 'uninorm/nfc'.
11776         * tests/uninorm/test-nfc.c: New file.
11777         * tests/uninorm/test-u8-nfc.c: New file.
11778         * tests/uninorm/test-u16-nfc.c: New file.
11779         * tests/uninorm/test-u32-nfc.c: New file.
11780         * tests/uninorm/test-u32-nfc-big.sh: New file.
11781         * tests/uninorm/test-u32-nfc-big.c: New file.
11782         * modules/uninorm/nfc-tests: New file.
11783
11784         New module 'uninorm/nfc'.
11785         * lib/uninorm/nfc.c: New file.
11786         * modules/uninorm/nfc: New file.
11787
11788         Tests for module 'uninorm/nfd'.
11789         * tests/uninorm/test-nfd.c: New file.
11790         * tests/uninorm/test-u8-nfd.c: New file.
11791         * tests/uninorm/test-u16-nfd.c: New file.
11792         * tests/uninorm/test-u32-nfd.c: New file.
11793         * tests/uninorm/test-u32-nfd-big.sh: New file.
11794         * tests/uninorm/test-u32-nfd-big.c: New file.
11795         * tests/uninorm/test-u32-normalize-big.h: New file.
11796         * tests/uninorm/test-u32-normalize-big.c: New file.
11797         * tests/uninorm/NormalizationTest.txt: New file, created from
11798         Unicode 5.1.0 NormalizationTest.txt.
11799         * modules/uninorm/nfd-tests: New file.
11800
11801         New module 'uninorm/nfd'.
11802         * lib/uninorm/nfd.c: New file.
11803         * modules/uninorm/nfd: New file.
11804
11805         New module 'uninorm/u32-normalize'.
11806         * lib/uninorm/u32-normalize.c: New file.
11807         * modules/uninorm/u32-normalize: New file.
11808
11809         New module 'uninorm/u16-normalize'.
11810         * lib/uninorm/u16-normalize.c: New file.
11811         * modules/uninorm/u16-normalize: New file.
11812
11813         New module 'uninorm/u8-normalize'.
11814         * lib/uninorm/u8-normalize.c: New file.
11815         * lib/uninorm/normalize-internal.h: New file.
11816         * lib/uninorm/u-normalize-internal.h: New file.
11817         * modules/uninorm/u8-normalize: New file.
11818
11819         New module 'uninorm/decompose-internal'.
11820         * lib/uninorm/decompose-internal.c: New file.
11821         * modules/uninorm/decompose-internal: New file.
11822
11823         Tests for module 'uninorm/composition'.
11824         * tests/uninorm/test-composition.c: New file.
11825         * modules/uninorm/composition-tests: New file.
11826
11827         New module 'uninorm/composition'.
11828         * lib/uninorm/composition.c: New file.
11829         * lib/uninorm/composition-table.gperf: New file, generated by
11830         gen-uni-tables.
11831         * modules/uninorm/composition: New file.
11832
11833         Tests for module 'uninorm/compat-decomposition'.
11834         * tests/uninorm/test-compat-decomposition.c: New file.
11835         * modules/uninorm/compat-decomposition-tests: New file.
11836
11837         New module 'uninorm/compat-decomposition'.
11838         * lib/uninorm/decompose-internal.h: New file.
11839         * lib/uninorm/compat-decomposition.c: New file.
11840         * modules/uninorm/compat-decomposition: New file.
11841
11842         Tests for module 'uninorm/canonical-decomposition'.
11843         * tests/uninorm/test-canonical-decomposition.c: New file.
11844         * modules/uninorm/canonical-decomposition-tests: New file.
11845
11846         New module 'uninorm/canonical-decomposition'.
11847         * lib/uninorm/canonical-decomposition.c: New file.
11848         * modules/uninorm/canonical-decomposition: New file.
11849
11850         Tests for module 'uninorm/decomposition'.
11851         * tests/uninorm/test-decomposition.c: New file.
11852         * modules/uninorm/decomposition-tests: New file.
11853
11854         New module 'uninorm/decomposition'.
11855         * lib/uninorm/decomposition.c: New file.
11856         * modules/uninorm/decomposition: New file.
11857
11858         New module 'uninorm/decomposition-table'.
11859         * lib/uninorm/decomposition-table.h: New file.
11860         * lib/uninorm/decomposition-table.c: New file.
11861         * lib/uninorm/decomposition-table1.h: New file, generated by
11862         gen-uni-tables.
11863         * lib/uninorm/decomposition-table2.h: New file, generated by
11864         gen-uni-tables.
11865         * modules/uninorm/decomposition-table: New file.
11866
11867         * lib/gen-uni-tables.c (MAX_DECOMP_LENGTH): New macro.
11868         (UC_DECOMP_*): New enumeration items.
11869         (get_decomposition): New function.
11870         (struct decomp_table): New type.
11871         (output_decomposition, output_decomposition_tables): New functions.
11872         (unicode_composition_exclusions): New variable.
11873         (fill_composition_exclusions, debug_output_composition_tables): New
11874         functions.
11875         (main): Accept one more argument. Invoke fill_composition_exclusions.
11876         Output decomposition and composition tables.
11877
11878         New module 'uninorm/base'.
11879         * lib/uninorm.h: New file.
11880         * lib/unictype.h: Update comment.
11881         * modules/uninorm/base: New file.
11882
11883 2009-02-21  David Lutterkort  <lutter@redhat.com>
11884
11885         Tests for module 'safe-alloc'.
11886         * tests/test-safe-alloc.c: New file.
11887         * modules/safe-alloc-tests: New file.
11888
11889         New module 'safe-alloc'.
11890         * lib/safe-alloc.h: New file.
11891         * lib/safe-alloc.c: New file.
11892         * m4/safe-alloc.m4: New file.
11893         * modules/safe-alloc: New file.
11894         * doc/safe-alloc.texi: New file.
11895         * doc/gnulib.texi: Include it.
11896         * MODULES.html.sh (Memory management functions <stdlib.h>): Add
11897         safe-alloc.
11898
11899 2009-02-18  Bruno Haible  <bruno@clisp.org>
11900
11901         Fix link error on non-glibc systems.
11902         * modules/uniwbrk/ulc-wordbreaks-tests (test_ulc_wordbreaks_LDADD): New
11903         variable.
11904         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
11905
11906 2009-02-18  Jim Meyering  <meyering@redhat.com>
11907
11908         fts: avoid used-uninitialized error due to recent change
11909         * lib/fts.c (fts_read): Guard uses of the new member,
11910         parent->fts_n_dirs_remaining, since it's not relevant for
11911         the parent of a directory specified on the command-line.
11912
11913 2009-02-17  James Youngman  <jay@gnu.org>
11914             Bruno Haible  <bruno@clisp.org>
11915
11916         * m4/include_next.m4: Reformulate comment.
11917
11918 2009-02-16  Jim Meyering  <meyering@redhat.com>
11919
11920         fts: add #if guards so that the fts_lgpl module still builds
11921         * lib/fts.c: Guard just-added hash-table-using parts with
11922         #if GNULIB_FTS, so as not to break builds of the fts_lgpl module.
11923         Reported by Simon Josefsson.
11924
11925 2009-02-15  Bruno Haible  <bruno@clisp.org>
11926
11927         * modules/array-mergesort-tests: New file.
11928         * tests/test-array-mergesort.c: New file.
11929
11930         New module 'array-mergesort'.
11931         * modules/array-mergesort: New file.
11932         * lib/array-mergesort.h: New file.
11933
11934 2009-02-15  Bruno Haible  <bruno@clisp.org>
11935
11936         Fix 2009-02-07 commit.
11937         * lib/gen-uni-tables.c (output_predicate, output_category,
11938         output_combclass, output_bidi_category, output_decimal_digit,
11939         output_digit, output_numeric, output_mirror, output_scripts,
11940         output_ident_category, output_simple_mapping): Fix format directives.
11941         (output_lbp, output_wbp): Don't convert -1 to a size_t implicitly.
11942
11943 2009-02-15  Albert Chin-A-Young  <china@thewrittenword.com>
11944
11945         * m4/include_next.m4: Update comment about IBM C 9.0/10.1 bug, now that
11946         fixes are available from IBM.
11947
11948 2009-02-13  Jim Meyering  <meyering@redhat.com>
11949
11950         fts: arrange not to stat non-directories in more cases
11951         This makes GNU find (when it doesn't need to stat each file)
11952         *much* more efficient at traversing reiserfs file systems.
11953         * lib/fts_.h (struct ftsent) [fts_n_dirs_remaining]: New member.
11954         (struct FTS) [fts_leaf_optimization_works_ht]: Add member.
11955         * lib/fts.c (fts_close): Free ->fts_leaf_optimization_works_ht.
11956         (S_MAGIC_REISERFS, S_MAGIC_PROC): Define.
11957         (leaf_optimization_applies): New function.
11958         (LCO_hash, LCO_compare): New helper functions.
11959         (link_count_optimize_ok): New function.
11960         (fts_stat): Initialize new member (if dir).
11961         (fts_read): Decrement parent's fts_n_dirs_remaining count if
11962         we've just stat'ed a directory.  Skip the stat call when possible.
11963         ---
11964         Note this AFS-related exchange:
11965         http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=143111
11966         and note find's pioctl call in find/fstype.c.
11967         But that is necessary only if you want to enable the
11968         optimization for AFS, and for now, I don't.
11969
11970         fts: move a function definition "up" (no semantic change)
11971         * lib/fts.c (dirent_inode_sort_may_be_useful): Move definition
11972         "up" to precede upcoming use of a related function.
11973
11974 2009-02-11  Jim Meyering  <meyering@redhat.com>
11975
11976         fts: correct internal computation of nlinks (optimization-related)
11977         * lib/fts.c (fts_build): ISSET(FTS_NOSTAT) has no bearing on
11978         whether the current entry is a directory, so don't test it.
11979
11980 2009-02-10  Bruno Haible  <bruno@clisp.org>
11981
11982         Tests for module 'uniwbrk/ulc-wordbreaks'.
11983         * modules/uniwbrk/ulc-wordbreaks-tests: New file.
11984         * tests/uniwbrk/test-ulc-wordbreaks.sh: New file.
11985         * tests/uniwbrk/test-ulc-wordbreaks.c: New file.
11986
11987         Tests for module 'uniwbrk/u32-wordbreaks'.
11988         * modules/uniwbrk/u32-wordbreaks-tests: New file.
11989         * tests/uniwbrk/test-u32-wordbreaks.c: New file.
11990
11991         Tests for module 'uniwbrk/u16-wordbreaks'.
11992         * modules/uniwbrk/u16-wordbreaks-tests: New file.
11993         * tests/uniwbrk/test-u16-wordbreaks.c: New file.
11994
11995         Tests for module 'uniwbrk/u8-wordbreaks'.
11996         * modules/uniwbrk/u8-wordbreaks-tests: New file.
11997         * tests/uniwbrk/test-u8-wordbreaks.c: New file.
11998
11999 2009-02-10  Bruno Haible  <bruno@clisp.org>
12000
12001         * modules/uniwbrk/u8-wordbreaks (Depends-on): Add uniwbrk/wordbreak
12002         property.
12003         * modules/uniwbrk/u16-wordbreaks (Depends-on): Likewise.
12004         * modules/uniwbrk/u32-wordbreaks (Depends-on): Likewise.
12005         * modules/uniwbrk/ulc-wordbreaks (Depends-on): Add localcharset.
12006
12007 2009-02-10  Simon Josefsson  <simon@josefsson.org>
12008
12009         * m4/sockets.m4: Call AC_C_INLINE since sockets.h now can use
12010         inline keywords.  Reported by Bruno Haible <bruno@clisp.org>.
12011
12012 2009-02-10  Bruno Haible  <bruno@clisp.org>
12013
12014         * lib/unilbrk/lbrktables.h: Renamed from lib/unilbrk/tables.h.
12015         * lib/unilbrk/lbrktables.c: Renamed from lib/unilbrk/tables.c.
12016         * modules/unilbrk/tables (Files, Makefile.am, Include): Update.
12017         * lib/unilbrk/u8-possible-linebreaks.c: Update.
12018         * lib/unilbrk/u16-possible-linebreaks.c: Likewise.
12019         * lib/unilbrk/u32-possible-linebreaks.c: Likewise.
12020
12021 2009-02-09  Simon Josefsson  <simon@josefsson.org>
12022
12023         * lib/sockets.h (gl_fd_to_handle): New function.
12024
12025         * tests/test-sockets.c: Call gl_fd_to_handle.
12026
12027 2009-02-09  Bruno Haible  <bruno@clisp.org>
12028
12029         * doc/havelib.texi: Document the conventions on bi-arch systems.
12030
12031 2009-02-08  Bruno Haible  <bruno@clisp.org>
12032
12033         Document the AC_LIB_LINKFLAGS macro.
12034         * doc/havelib.texi: New file, mostly written on 2005-05-24.
12035         * doc/gnulib.texi: Include it.
12036
12037 2009-02-08  Bruno Haible  <bruno@clisp.org>
12038
12039         Fix wrong order of sections, compared to TOC.
12040         * doc/gnulib.texi: Include relocatable-maint.texi after the
12041         "Regular expressions" node, not before.
12042
12043 2009-02-08  Bruno Haible  <bruno@clisp.org>
12044
12045         Tests for module 'unicase/totitle'.
12046         * modules/unicase/totitle-tests: New file.
12047
12048         Tests for module 'unicase/tolower'.
12049         * modules/unicase/tolower-tests: New file.
12050
12051         Tests for module 'unicase/toupper'.
12052         * modules/unicase/toupper-tests: New file.
12053         * tests/unicase/test-mapping-part1.h: New file.
12054         * tests/unicase/test-mapping-part2.h: New file.
12055
12056         New module 'unicase/totitle'.
12057         * modules/unicase/totitle: New file.
12058         * lib/unicase/totitle.c: New file.
12059
12060         New module 'unicase/tolower'.
12061         * modules/unicase/tolower: New file.
12062         * lib/unicase/tolower.c: New file.
12063
12064         New module 'unicase/toupper'.
12065         * modules/unicase/toupper: New file.
12066         * lib/unicase/toupper.c: New file.
12067         * lib/unicase/simple-mapping.h: New file.
12068
12069         * lib/gen-uni-tables.c (output_simple_mapping_test): New function.
12070         (mapping_table): New structure.
12071         (output_simple_mapping): New function.
12072         (main): Invoke output_simple_mapping_test and output_simple_mapping.
12073         * modules/gen-uni-tables (Description): Update.
12074         * lib/unicase/toupper.h: New file, automatically generated by
12075         gen-uni-tables.
12076         * lib/unicase/tolower.h: New file, automatically generated by
12077         gen-uni-tables.
12078         * lib/unicase/totitle.h: New file, automatically generated by
12079         gen-uni-tables.
12080         * tests/unicase/test-uc_toupper.c: New file, automatically generated by
12081         gen-uni-tables.
12082         * tests/unicase/test-uc_tolower.c: New file, automatically generated by
12083         gen-uni-tables.
12084         * tests/unicase/test-uc_totitle.c: New file, automatically generated by
12085         gen-uni-tables.
12086
12087         New module 'unicase/base'.
12088         * modules/unicase/base: New file.
12089         * lib/unicase.h: New file.
12090
12091 2009-02-08  Bruno Haible  <bruno@clisp.org>
12092
12093         New module 'uniwbrk/ulc-wordbreaks'.
12094         * modules/uniwbrk/ulc-wordbreaks: New file.
12095         * lib/uniwbrk/ulc-wordbreaks.c: New file.
12096
12097         New module 'uniwbrk/u32-wordbreaks'.
12098         * modules/uniwbrk/u32-wordbreaks: New file.
12099         * lib/uniwbrk/u32-wordbreaks.c: New file.
12100
12101         New module 'uniwbrk/u16-wordbreaks'.
12102         * modules/uniwbrk/u16-wordbreaks: New file.
12103         * lib/uniwbrk/u16-wordbreaks.c: New file.
12104
12105         New module 'uniwbrk/u8-wordbreaks'.
12106         * modules/uniwbrk/u8-wordbreaks: New file.
12107         * lib/uniwbrk/u8-wordbreaks.c: New file.
12108         * lib/uniwbrk/u-wordbreaks.h: New file.
12109
12110         New module 'uniwbrk/table'.
12111         * modules/uniwbrk/table: New file.
12112         * lib/uniwbrk/wbrktable.h: New file.
12113         * lib/uniwbrk/wbrktable.c: New file.
12114
12115         New module 'uniwbrk/wordbreak-property'.
12116         * modules/uniwbrk/wordbreak-property: New file.
12117         * lib/uniwbrk/wordbreak-property.c: New file.
12118
12119         * lib/gen-uni-tables.c (WBP_*): New enum items.
12120         (get_wbp, debug_output_wbp, debug_output_wbrk_tables): New functions.
12121         (unicode_org_wbp): New variable.
12122         (fill_org_wbp, debug_output_org_wbp, debug_output_org_wbrk_tables):
12123         New functions.
12124         (wbp_table): New structure.
12125         (output_wbp, output_wbrk_tables): New functions.
12126         (main): Accept additional argument. Invoke fill_org_wbp,
12127         debug_output_wbrk_tables, debug_output_org_wbrk_tables,
12128         output_wbrk_tables.
12129         * modules/gen-uni-tables (Description): Update.
12130         * lib/uniwbrk/wbrkprop.h: New file, automatically generated by
12131         gen-uni-tables.
12132
12133         New module 'uniwbrk/base'.
12134         * modules/uniwbrk/base: New file.
12135         * lib/uniwbrk.h: New file.
12136
12137 2009-02-08  Bruno Haible  <bruno@clisp.org>
12138
12139         Update to Unicode 5.1.0.
12140         * lib/gen-uni-tables.c (is_property_alphabetic): Include
12141         U+2185..U+2188.
12142         (is_property_default_ignorable_code_point): Don't include characters
12143         of category Cc or Cs and not-a-characters.
12144         (get_lbp): Assume REVISION_22. Special handling of U+0609, U+060A,
12145         U+0D79, U+109E, U+109F, U+A60C.
12146         * lib/unictype/bidi_of.h: Regenerated.
12147         * lib/unictype/blocks.h: Regenerated.
12148         * lib/unictype/categ_C.h: Regenerated.
12149         * lib/unictype/categ_Cf.h: Regenerated.
12150         * lib/unictype/categ_Cn.h: Regenerated.
12151         * lib/unictype/categ_L.h: Regenerated.
12152         * lib/unictype/categ_Ll.h: Regenerated.
12153         * lib/unictype/categ_Lm.h: Regenerated.
12154         * lib/unictype/categ_Lo.h: Regenerated.
12155         * lib/unictype/categ_Lu.h: Regenerated.
12156         * lib/unictype/categ_M.h: Regenerated.
12157         * lib/unictype/categ_Mc.h: Regenerated.
12158         * lib/unictype/categ_Me.h: Regenerated.
12159         * lib/unictype/categ_Mn.h: Regenerated.
12160         * lib/unictype/categ_N.h: Regenerated.
12161         * lib/unictype/categ_Nd.h: Regenerated.
12162         * lib/unictype/categ_Nl.h: Regenerated.
12163         * lib/unictype/categ_No.h: Regenerated.
12164         * lib/unictype/categ_P.h: Regenerated.
12165         * lib/unictype/categ_Pd.h: Regenerated.
12166         * lib/unictype/categ_Pe.h: Regenerated.
12167         * lib/unictype/categ_Pf.h: Regenerated.
12168         * lib/unictype/categ_Pi.h: Regenerated.
12169         * lib/unictype/categ_Po.h: Regenerated.
12170         * lib/unictype/categ_Ps.h: Regenerated.
12171         * lib/unictype/categ_S.h: Regenerated.
12172         * lib/unictype/categ_Sk.h: Regenerated.
12173         * lib/unictype/categ_Sm.h: Regenerated.
12174         * lib/unictype/categ_So.h: Regenerated.
12175         * lib/unictype/categ_of.h: Regenerated.
12176         * lib/unictype/combining.h: Regenerated.
12177         * lib/unictype/ctype_alnum.h: Regenerated.
12178         * lib/unictype/ctype_alpha.h: Regenerated.
12179         * lib/unictype/ctype_graph.h: Regenerated.
12180         * lib/unictype/ctype_lower.h: Regenerated.
12181         * lib/unictype/ctype_print.h: Regenerated.
12182         * lib/unictype/ctype_punct.h: Regenerated.
12183         * lib/unictype/ctype_upper.h: Regenerated.
12184         * lib/unictype/decdigit.h: Regenerated.
12185         * lib/unictype/digit.h: Regenerated.
12186         * lib/unictype/mirror.h: Regenerated.
12187         * lib/unictype/numeric.h: Regenerated.
12188         * lib/unictype/pr_alphabetic.h: Regenerated.
12189         * lib/unictype/pr_bidi_arabic_digit.h: Regenerated.
12190         * lib/unictype/pr_bidi_arabic_right_to_left.h: Regenerated.
12191         * lib/unictype/pr_bidi_boundary_neutral.h: Regenerated.
12192         * lib/unictype/pr_bidi_eur_num_terminator.h: Regenerated.
12193         * lib/unictype/pr_bidi_left_to_right.h: Regenerated.
12194         * lib/unictype/pr_bidi_non_spacing_mark.h: Regenerated.
12195         * lib/unictype/pr_bidi_other_neutral.h: Regenerated.
12196         * lib/unictype/pr_combining.h: Regenerated.
12197         * lib/unictype/pr_dash.h: Regenerated.
12198         * lib/unictype/pr_decimal_digit.h: Regenerated.
12199         * lib/unictype/pr_default_ignorable_code_point.h: Regenerated.
12200         * lib/unictype/pr_deprecated.h: Regenerated.
12201         * lib/unictype/pr_diacritic.h: Regenerated.
12202         * lib/unictype/pr_extender.h: Regenerated.
12203         * lib/unictype/pr_format_control.h: Regenerated.
12204         * lib/unictype/pr_grapheme_base.h: Regenerated.
12205         * lib/unictype/pr_grapheme_extend.h: Regenerated.
12206         * lib/unictype/pr_grapheme_link.h: Regenerated.
12207         * lib/unictype/pr_id_continue.h: Regenerated.
12208         * lib/unictype/pr_id_start.h: Regenerated.
12209         * lib/unictype/pr_ideographic.h: Regenerated.
12210         * lib/unictype/pr_ignorable_control.h: Regenerated.
12211         * lib/unictype/pr_lowercase.h: Regenerated.
12212         * lib/unictype/pr_math.h: Regenerated.
12213         * lib/unictype/pr_numeric.h: Regenerated.
12214         * lib/unictype/pr_other_alphabetic.h: Regenerated.
12215         * lib/unictype/pr_other_default_ignorable_code_point.h: Regenerated.
12216         * lib/unictype/pr_other_grapheme_extend.h: Regenerated.
12217         * lib/unictype/pr_other_id_continue.h: Regenerated.
12218         * lib/unictype/pr_other_lowercase.h: Regenerated.
12219         * lib/unictype/pr_other_math.h: Regenerated.
12220         * lib/unictype/pr_punctuation.h: Regenerated.
12221         * lib/unictype/pr_sentence_terminal.h: Regenerated.
12222         * lib/unictype/pr_soft_dotted.h: Regenerated.
12223         * lib/unictype/pr_terminal_punctuation.h: Regenerated.
12224         * lib/unictype/pr_unassigned_code_value.h: Regenerated.
12225         * lib/unictype/pr_unified_ideograph.h: Regenerated.
12226         * lib/unictype/pr_uppercase.h: Regenerated.
12227         * lib/unictype/pr_xid_continue.h: Regenerated.
12228         * lib/unictype/pr_xid_start.h: Regenerated.
12229         * lib/unictype/pr_zero_width.h: Regenerated.
12230         * lib/unictype/scripts.h: Regenerated.
12231         * lib/unictype/scripts_byname.gperf: Regenerated.
12232         * lib/unictype/sy_java_ident.h: Regenerated.
12233         * lib/unilbrk/lbrkprop1.h: Regenerated.
12234         * lib/unilbrk/lbrkprop2.h: Regenerated.
12235         * tests/unictype/test-categ_C.c: Regenerated.
12236         * tests/unictype/test-categ_Cf.c: Regenerated.
12237         * tests/unictype/test-categ_Cn.c: Regenerated.
12238         * tests/unictype/test-categ_L.c: Regenerated.
12239         * tests/unictype/test-categ_Ll.c: Regenerated.
12240         * tests/unictype/test-categ_Lm.c: Regenerated.
12241         * tests/unictype/test-categ_Lo.c: Regenerated.
12242         * tests/unictype/test-categ_Lu.c: Regenerated.
12243         * tests/unictype/test-categ_M.c: Regenerated.
12244         * tests/unictype/test-categ_Mc.c: Regenerated.
12245         * tests/unictype/test-categ_Me.c: Regenerated.
12246         * tests/unictype/test-categ_Mn.c: Regenerated.
12247         * tests/unictype/test-categ_N.c: Regenerated.
12248         * tests/unictype/test-categ_Nd.c: Regenerated.
12249         * tests/unictype/test-categ_Nl.c: Regenerated.
12250         * tests/unictype/test-categ_No.c: Regenerated.
12251         * tests/unictype/test-categ_P.c: Regenerated.
12252         * tests/unictype/test-categ_Pd.c: Regenerated.
12253         * tests/unictype/test-categ_Pe.c: Regenerated.
12254         * tests/unictype/test-categ_Pf.c: Regenerated.
12255         * tests/unictype/test-categ_Pi.c: Regenerated.
12256         * tests/unictype/test-categ_Po.c: Regenerated.
12257         * tests/unictype/test-categ_Ps.c: Regenerated.
12258         * tests/unictype/test-categ_S.c: Regenerated.
12259         * tests/unictype/test-categ_Sk.c: Regenerated.
12260         * tests/unictype/test-categ_Sm.c: Regenerated.
12261         * tests/unictype/test-categ_So.c: Regenerated.
12262         * tests/unictype/test-ctype_alnum.c: Regenerated.
12263         * tests/unictype/test-ctype_alpha.c: Regenerated.
12264         * tests/unictype/test-ctype_graph.c: Regenerated.
12265         * tests/unictype/test-ctype_lower.c: Regenerated.
12266         * tests/unictype/test-ctype_print.c: Regenerated.
12267         * tests/unictype/test-ctype_punct.c: Regenerated.
12268         * tests/unictype/test-ctype_upper.c: Regenerated.
12269         * tests/unictype/test-decdigit.h: Regenerated.
12270         * tests/unictype/test-digit.h: Regenerated.
12271         * tests/unictype/test-numeric.h: Regenerated.
12272         * tests/unictype/test-pr_alphabetic.c: Regenerated.
12273         * tests/unictype/test-pr_bidi_arabic_digit.c: Regenerated.
12274         * tests/unictype/test-pr_bidi_arabic_right_to_left.c: Regenerated.
12275         * tests/unictype/test-pr_bidi_boundary_neutral.c: Regenerated.
12276         * tests/unictype/test-pr_bidi_eur_num_terminator.c: Regenerated.
12277         * tests/unictype/test-pr_bidi_left_to_right.c: Regenerated.
12278         * tests/unictype/test-pr_bidi_non_spacing_mark.c: Regenerated.
12279         * tests/unictype/test-pr_bidi_other_neutral.c: Regenerated.
12280         * tests/unictype/test-pr_combining.c: Regenerated.
12281         * tests/unictype/test-pr_dash.c: Regenerated.
12282         * tests/unictype/test-pr_decimal_digit.c: Regenerated.
12283         * tests/unictype/test-pr_default_ignorable_code_point.c: Regenerated.
12284         * tests/unictype/test-pr_deprecated.c: Regenerated.
12285         * tests/unictype/test-pr_diacritic.c: Regenerated.
12286         * tests/unictype/test-pr_extender.c: Regenerated.
12287         * tests/unictype/test-pr_format_control.c: Regenerated.
12288         * tests/unictype/test-pr_grapheme_base.c: Regenerated.
12289         * tests/unictype/test-pr_grapheme_extend.c: Regenerated.
12290         * tests/unictype/test-pr_grapheme_link.c: Regenerated.
12291         * tests/unictype/test-pr_id_continue.c: Regenerated.
12292         * tests/unictype/test-pr_id_start.c: Regenerated.
12293         * tests/unictype/test-pr_ideographic.c: Regenerated.
12294         * tests/unictype/test-pr_ignorable_control.c: Regenerated.
12295         * tests/unictype/test-pr_lowercase.c: Regenerated.
12296         * tests/unictype/test-pr_math.c: Regenerated.
12297         * tests/unictype/test-pr_numeric.c: Regenerated.
12298         * tests/unictype/test-pr_other_alphabetic.c: Regenerated.
12299         * tests/unictype/test-pr_other_default_ignorable_code_point.c:
12300         Regenerated.
12301         * tests/unictype/test-pr_other_grapheme_extend.c: Regenerated.
12302         * tests/unictype/test-pr_other_id_continue.c: Regenerated.
12303         * tests/unictype/test-pr_other_lowercase.c: Regenerated.
12304         * tests/unictype/test-pr_other_math.c: Regenerated.
12305         * tests/unictype/test-pr_punctuation.c: Regenerated.
12306         * tests/unictype/test-pr_sentence_terminal.c: Regenerated.
12307         * tests/unictype/test-pr_soft_dotted.c: Regenerated.
12308         * tests/unictype/test-pr_terminal_punctuation.c: Regenerated.
12309         * tests/unictype/test-pr_unassigned_code_value.c: Regenerated.
12310         * tests/unictype/test-pr_unified_ideograph.c: Regenerated.
12311         * tests/unictype/test-pr_uppercase.c: Regenerated.
12312         * tests/unictype/test-pr_xid_continue.c: Regenerated.
12313         * tests/unictype/test-pr_xid_start.c: Regenerated.
12314         * tests/unictype/test-pr_zero_width.c: Regenerated.
12315
12316         Update to Unicode 5.1.0.
12317         * lib/uniwidth/width.c (nonspacing_table_data): Add U+0487,
12318         U+0616..U+061A, U+0A51, U+0A75, U+0B44, U+0B62..U+0B63, U+0C62..U+0C63,
12319         U+0D44, U+0D62..U+0D63, U+1033..U+1035, U+103A, U+103D..U+103E,
12320         U+105E..U+1060, U+1071..U+1074, U+1082, U+1085..U+1086, U+108D,
12321         U+1B80..U+1B81, U+1BA2..U+1BA5, U+1BA8..U+1BA9, U+1C2C..U+1C33,
12322         U+1C36..U+1C37, U+1DCB..U+1DE6, U+2064, U+20F0, U+2DE0..U+2DFF,
12323         U+A66F..U+A672, U+A67C..U+A67D, U+A8C4, U+A926..U+A92D, U+A947..U+A951,
12324         U+AA29..U+AA2E, U+AA31..U+AA32, U+AA35..U+AA36, U+AA43, U+AA4C,
12325         U+FE24..U+FE26, U+101FD. Remove U+1929..U+192B.
12326         (nonspacing_table_ind): Update.
12327         * tests/uniwidth/test-uc_width2.sh: Update expected result.
12328
12329         Update to Unicode 5.1.0.
12330         * lib/uniname/gen-uninames.lisp (main): Add the range 0x1Fxxx to the
12331         code transform.
12332         * lib/uniname/uniname.c (unicode_character_name,
12333         unicode_name_character): Add the range 0x1Fxxx to the code transform.
12334         * lib/uniname/uninames.h: Regenerated.
12335         * tests/uniname/UnicodeDataNames.txt: Update to Unicode 5.1.0.
12336
12337 2009-02-07  Bruno Haible  <bruno@clisp.org>
12338
12339         Merge gen-ctype and gen-lbrk into a single program.
12340         * lib/gen-uni-tables.c: New file, incorporating
12341         lib/unictype/gen-ctype.c and lib/unilbrk/gen-lbrk.c.
12342         Add directory prefixes to the names of the generated files.
12343         * lib/unictype/gen-ctype.c: Remove file.
12344         * lib/unilbrk/gen-lbrk.c: Remove file.
12345         * modules/gen-uni-tables: New file.
12346         * modules/unictype/gen-ctype: Remove file.
12347         * modules/unilbrk/gen-lbrk: Remove file.
12348
12349 2009-02-07  Bruno Haible  <bruno@clisp.org>
12350
12351         * lib/unistr.h (u8_strcoll, u16_strcoll, u32_strcoll): New declations.
12352
12353         New module 'unistr/u32-strcoll'.
12354         * modules/unistr/u32-strcoll: New file.
12355         * lib/unistr/u32-strcoll.c: New file.
12356
12357         New module 'unistr/u16-strcoll'.
12358         * modules/unistr/u16-strcoll: New file.
12359         * lib/unistr/u16-strcoll.c: New file.
12360
12361         New module 'unistr/u8-strcoll'.
12362         * modules/unistr/u8-strcoll: New file.
12363         * lib/unistr/u8-strcoll.c: New file.
12364         * lib/unistr/u-strcoll.h: New file.
12365
12366 2009-02-07  Bruno Haible  <bruno@clisp.org>
12367
12368         * test-mbrtowc4.sh (LOCALE_ZH_CN): Fix default value.
12369         * test-mbsnrtowcs4.sh (LOCALE_ZH_CN): Likewise.
12370         * test-mbsrtowcs4.sh (LOCALE_ZH_CN): Likewise.
12371         * test-wcrtomb.sh (LOCALE_ZH_CN): Likewise.
12372         * test-wcsnrtombs4.sh (LOCALE_ZH_CN): Likewise.
12373         * test-wcsrtombs4.sh (LOCALE_ZH_CN): Likewise.
12374
12375 2009-02-07  Bruno Haible  <bruno@clisp.org>
12376
12377         Make 64-bit clean.
12378         * lib/unictype/gen-ctype.c (output_predicate, output_category,
12379         output_combclass, output_bidi_category, output_decimal_digit,
12380         output_digit, output_numeric, output_mirror, output_scripts,
12381         output_ident_category): Use proper width specifier in format strings.
12382
12383 2009-02-07  Bruno Haible  <bruno@clisp.org>
12384
12385         * doc/posix-functions/dirfd.texi: Clarify situation on mingw. Document
12386         failure behaviour.
12387
12388 2009-02-07  Jim Meyering  <meyering@redhat.com>
12389
12390         regex: avoid compilation failure with upcoming gcc-4.4
12391         * lib/regex_internal.h: Revert e48d8b47fb3eee81d341b71c3e006efe9e3433a7
12392         [workaround for PGC prior to 6.1-2].  Otherwise, we'd get this:
12393         "... error: integer overflow in preprocessor expression".
12394
12395 2009-02-05  Ben Pfaff  <blp@gnu.org>
12396
12397         Fix link errors on Windows when close module is used.
12398         * modules/close: Add $(LIB_CLOSE) to Link section.
12399         * m4/close.m4 (gl_REPLACE_CLOSE): Substitute -lws2_32 into
12400         $(LIB_CLOSE) on Windows.
12401
12402 2009-02-05  Jim Meyering  <meyering@redhat.com>
12403
12404         still avoid unused-parameter warnings, but do it cleanly
12405         * lib/fsusage.c (UNUSED_PARAM): Remove definition.
12406         (get_fs_usage): Cast to void instead.
12407         * lib/mountlist.c (UNUSED_PARAM): Remove definition.
12408         (dev_from_mount_options, read_file_system_list): Cast to void.
12409         Prompted by Bruno Haible.
12410
12411 2009-02-04  Jim Meyering  <meyering@redhat.com>
12412
12413         fsusage.c: correct copyright year
12414         * lib/fsusage.c: Reflect year in which the change is pushed into
12415
12416         avoid misc. warnings
12417         * lib/fsusage.c (UNUSED_PARAM): Define.
12418         (get_fs_usage): Mark parameter "disk" as unused.
12419         * lib/getugroups.c (getgrent): Use "void" in prototype.
12420         * lib/mountlist.c: Mark unused parameters.
12421         (read_file_system_list): Declare a local with "const".
12422         * lib/nanosleep.c (getnow): Declare static.
12423         * lib/strftime.c: Include strftime.h, for declaration of nstrftime.
12424
12425         dirfd: set errno upon failure
12426         * lib/dirfd.c: Include <errno.h>.
12427         Set errno to ENOTSUP when returning -1.
12428         * modules/dirfd (Depends-on): Add errno.
12429         Suggested by John Kodis <kodis@comcast.net>.
12430
12431 2009-02-01  Bruno Haible  <bruno@clisp.org>
12432
12433         Don't assume sizeof (long) >= sizeof (void *).
12434         * lib/memcmp.c: Include stdint.h.
12435         (memcmp_bytes): Change argument types to op_t. Change type of srcp1,
12436         srcp2 to 'const byte *'.
12437         (memcmp_common_alignment, memcmp_not_common_alignment): Change argument
12438         types to uintptr_t.
12439         (rpl_memcmp): Change type of srcp1, srcp2 to 'uintptr_t'.
12440         * modules/memcmp (Depends-on): Add stdint.
12441         Reported by Ozkan Sezer <sezeroz@gmail.com>.
12442
12443 2009-01-30  Eric Blake  <ebb9@byu.net>
12444
12445         fix more require-before-expand issues
12446         * m4/pmccabe2html.m4 (gl_PMCCABE2HTML): Require, rather than
12447         expand, AC_PROG_AWK.
12448         * m4/gnulib-common.m4 (AC_PROG_MKDIR_P): Use AC_DEFUN_ONCE.
12449
12450 2009-01-28  Eric Blake  <ebb9@byu.net>
12451
12452         version-etc: use consistent URL formatting
12453         * lib/version-etc.c (emit_bug_reporting_address, version_etc_va):
12454         Improve formatting.  Use fputs for string without %.
12455
12456 2009-01-28  Jim Meyering  <meyering@redhat.com>
12457
12458         00gnulib.m4: add m4 quotes in shell comment to avoid autoconf warning
12459         * m4/00gnulib.m4 (AC_DEFUN_ONCE): Add quotes to avoid an
12460         "underquoted definition of NAME" from autoconf-2.59.
12461
12462 2009-01-28  Bruno Haible  <bruno@clisp.org>
12463
12464         * doc/gnulib.texi: Add "Obsolete modules" to index.
12465
12466 2009-01-28  Jim Meyering  <meyering@redhat.com>
12467
12468         useless-if-before-free: recognize more variants
12469         * build-aux/useless-if-before-free: Also recognize e.g.,
12470         if (NULL != p) free (p);
12471
12472 2009-01-27  Mark McLoughlin  <markmc@redhat.com>
12473
12474         test-getaddrinfo: skip (don't fail) this test when there's no network
12475         * tests/test-getaddrinfo.c: Skip test upon failure with EAI_AGAIN,
12476         on the presumption that it means you lack network access.
12477
12478 2009-01-26  Jim Meyering  <meyering@redhat.com>
12479
12480         fflush: avoid warnings on modern systems
12481         * lib/fflush.c (rpl_fflush): Move declarations of locals,
12482         pos and result, into scopes where they're used.
12483
12484 2009-01-26  Eric Blake  <ebb9@byu.net>
12485
12486         Silence warning reintroduced by recent extensions patch.
12487         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS)
12488         (gl_USE_SYSTEM_EXTENSIONS): Use AC_DEFUN_ONCE to silence newer
12489         autoconf.
12490
12491         Backport improved autoconf semantics of AC_DEFUN_ONCE.
12492         * m4/00gnulib.m4: New file.
12493         * gnulib-tool (func_get_filelist): Always use it.
12494         * m4/gnulib-common.m4 (gl_COMMON): Force the file to be used.
12495         Reported by Bruno Haible, with suggestions from Paolo Bonzini.
12496
12497 2009-01-25  Bruno Haible  <bruno@clisp.org>
12498
12499         Make test-quotearg work on MacOS X and AIX.
12500         * tests/test-quotearg.sh: New file.
12501         * tests/locale/fr/LC_MESSAGES/test-quotearg.po: New file.
12502         * tests/locale/fr/LC_MESSAGES/test-quotearg.mo: New file.
12503         * tests/test-quotearg.c: Include <locale.h> and gettext.h. Don't
12504         include <libintl.h>.
12505         (fake_locale): Remove variable.
12506         (gettext, dgettext, dcgettext): Remove functions.
12507         (main): Instead of setting a fake locale, set a real locale. Call
12508         textdomain and bindtextdomain.
12509         * modules/quotearg-tests (Files): Add the new files.
12510         (Depends-on): Add gettext, setenv, unsetenv.
12511         (configure.ac): Invoke gt_LOCALE_FR and gt_LOCALE_FR_UTF8.
12512         (Makefile.am): Add test-quotearg.sh to TESTS, remove test-quotearg.
12513         Augment TESTS_ENVIRONMENT.
12514
12515 2009-01-25  Bruno Haible  <bruno@clisp.org>
12516
12517         * m4/locale-fr.m4 (gt_LOCALE_FR): Remove special code that hid the
12518         fr_FR.ISO8859-1 locale on MacOS X.
12519         * m4/locale-ja.m4 (gt_LOCALE_JA): Remove special code that hid the
12520         ja_JP.eucJP locale on MacOS X.
12521         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): Remove special code that hid the
12522         zh_CN.GB18030 locale on MacOS X.
12523
12524 2009-01-25  Bruno Haible  <bruno@clisp.org>
12525
12526         Avoid link errors on MacOS X 10.3.
12527         * lib/mbsrtowcs-state.c (_gl_mbsrtowcs_state): Add initializer.
12528         * lib/wcsrtombs-state.c (_gl_wcsrtombs_state): Likewise.
12529
12530 2009-01-25  Bruno Haible  <bruno@clisp.org>
12531
12532         * lib/pipe.c: On Unix, assume HAVE_POSIX_SPAWN and use posix_spawnp.
12533         * m4/pipe.m4 (gl_PIPE): Remove tests for vfork() based code.
12534         * modules/pipe (Files): Remove m4/posix_spawn.m4.
12535         (Depends-on): Add spawn, posix_spawnp, posix_spawn_file_actions_init,
12536         posix_spawn_file_actions_addclose, posix_spawn_file_actions_adddup2,
12537         posix_spawn_file_actions_addopen, posix_spawn_file_actions_destroy,
12538         posix_spawnattr_init, posix_spawnattr_setsigmask,
12539         posix_spawnattr_setflags, posix_spawnattr_destroy.
12540
12541         * lib/execute.c: On Unix, assume HAVE_POSIX_SPAWN and use posix_spawnp.
12542         * m4/execute.m4 (gl_EXECUTE): Remove tests for vfork() based code.
12543         * modules/execute (Files): Remove m4/posix_spawn.m4.
12544         (Depends-on): Add spawn, posix_spawnp, posix_spawn_file_actions_init,
12545         posix_spawn_file_actions_addopen, posix_spawn_file_actions_destroy,
12546         posix_spawnattr_init, posix_spawnattr_setsigmask,
12547         posix_spawnattr_setflags, posix_spawnattr_destroy.
12548
12549 2009-01-25  Bruno Haible  <bruno@clisp.org>
12550
12551         * lib/glthread/threadlib.c: Include <stdlib.h>.
12552
12553 2009-01-25  Bruno Haible  <bruno@clisp.org>
12554
12555         * lib/glthread/threadlib.c (dummy): New declaration.
12556
12557 2009-01-25  Bruno Haible  <bruno@clisp.org>
12558
12559         * lib/mbrtowc.c (mbrtowc): Distinguish invalid and incomplete
12560         multibyte characters also for the GB18030 encoding. Don't crash when
12561         the encoding is unknown and nstate = 0. Needed on OSF/1 5.1.
12562
12563 2009-01-25  Bruno Haible  <bruno@clisp.org>
12564
12565         Avoid redefining 'struct random_data' on OSF/1 5.1.
12566         * lib/stdlib.in.h: Include <random.h> if it exists.
12567         * m4/stdlib_h.m4 (gl_STDLIB_H): Test whether <random.h> exists. Set
12568         HAVE_RANDOM_H. Include <random.h> when testing whether
12569         'struct random_data' exists.
12570         * modules/stdlib (Makefile.am): Substitute HAVE_RANDOM_H.
12571
12572 2009-01-25  Bruno Haible  <bruno@clisp.org>
12573
12574         Don't install charset.alias on MacOS X >= 10.3.
12575         * lib/localcharset.c (DARWIN7): New macro.
12576         (get_charset_aliases): Hardcode the result for Darwin7.
12577         * modules/localcharset (install-exec-local): Don't install
12578         charset.alias on MacOS X >= 10.3, if the file does not yet exist.
12579
12580 2009-01-25  Bruno Haible  <bruno@clisp.org>
12581
12582         Don't install charset.alias on mingw and Cygwin.
12583         * modules/localcharset (install-exec-local): Don't install
12584         charset.alias on mingw and Cygwin, if the file does not yet exist.
12585         The result for these platforms is hardcoded in localcharset.c.
12586
12587 2009-01-25  Bruno Haible  <bruno@clisp.org>
12588
12589         Make it possible again to use AC_GNU_SOURCE together with gnulib.
12590         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Require AC_GNU_SOURCE
12591         before requiring AC_USE_SYSTEM_EXTENSIONS.
12592
12593 2009-01-25  Jim Meyering  <meyering@redhat.com>
12594
12595         c-strtod: avoid warnings
12596         * lib/c-strtod.c (C_STRTOD): Cast nptr to (char *) to avoid
12597         "assignment discards qualifiers from pointer target type" warnings.
12598
12599 2009-01-24  Bruno Haible  <bruno@clisp.org>
12600
12601         Add support for non-UTF-8 locales on MacOS X.
12602         * lib/config.charset: Add CP1131, ARMSCII-8, PT154 to the list of
12603         canonical encodings. For Darwin 7 and newer, don't map traditional
12604         encodings to UTF-8.
12605         Reported by Vincent Lefevre <vincent@vinc17.org>
12606         at <http://savannah.gnu.org/bugs/?25235>.
12607
12608 2009-01-24  Bruno Haible  <bruno@clisp.org>
12609
12610         * doc/gnulib.texi (Obsolete modules): New section.
12611         Reported by Mike Frysinger <vapier@gentoo.org>.
12612
12613 2009-01-24  Bruno Haible  <bruno@clisp.org>
12614
12615         * doc/Makefile (%.pdf): Clarify where to find texmf.cnf.
12616         (%.dvi): New rule.
12617
12618 2009-01-24  Bruno Haible  <bruno@clisp.org>
12619
12620         * lib/c-strtod.h (c_strtod, c_strtold): Adjust specification.
12621         Reported by Eric Blake.
12622
12623 2009-01-24  Bruno Haible  <bruno@clisp.org>
12624
12625         * lib/c-stack.c (segv_handler): If !HAVE_XSI_STACK_OVERFLOW_HEURISTIC,
12626         set signo = 0 also if info->si_code <= 0. Needed on HP-UX 11.11.
12627         Reported by Gary V. Vaughan <gary@gnu.org>.
12628
12629 2009-01-24  Bruno Haible  <bruno@clisp.org>
12630
12631         * lib/c-strtod.h (c_strtod, c_strtold): Add specification.
12632
12633 2009-01-23  Bruno Haible  <bruno@clisp.org>
12634
12635         Make c-strtod, c-strtold usable in libraries.
12636         * lib/c-strtod.c: Include string.h instead of xalloc.h.
12637         (C_STRTOD): Call strdup instead of xstrdup.
12638         * modules/c-strtod (Depends-on): Add strdup-posix, remove xalloc.
12639         * modules/c-strtold (Depends-on): Likewise.
12640         * doc/c-strtod.texi: Remove the sentence mentioning xalloc_die.
12641         * NEWS: Mention the change.
12642         Reported by Michael Gold <mgold@ncf.ca>.
12643
12644 2009-01-23  Jim Meyering  <meyering@redhat.com>
12645
12646         c-strtod: when ENDPTR is non-NULL, set *ENDPTR in new failure path
12647         * lib/c-strtod.c (C_STRTOD) [LC_ALL_MASKC]: Ensure that when
12648         ENDPTR is non-NULL, *ENDPTR is set to NPTR upon failure.
12649
12650 2009-01-23  Simon Josefsson  <simon@josefsson.org>
12651
12652         * lib/version-etc.c: Add emit_bug_reporting_address, inspired by
12653         GNU CoreUtils.
12654         * lib/version-etc.h: Add prototype for emit_bug_reporting_address.
12655         * modules/version-etc (Description): Update.
12656
12657 2009-01-22  Bruno Haible  <bruno@clisp.org>
12658
12659         Cache the C locale object.
12660         * lib/c-strtod.c (c_locale_cache): New variable.
12661         (c_locale): New function.
12662         (C_STRTOD): Use it, and don't call freelocale.
12663         * m4/c-strtod.m4 (gl_C_STRTOD, gl_C_STRTOLD): Require AC_C_INLINE.
12664         Suggested by Paolo Bonzini.
12665
12666 2009-01-21  Bruno Haible  <bruno@clisp.org>
12667
12668         * lib/getloadavg.c (getloadavg): Check c_strtod result against error
12669         conditions other than overflow.
12670
12671 2009-01-21  Bruno Haible  <bruno@clisp.org>
12672
12673         * lib/c-strtod.c: Include errno.h.
12674         (C_STRTOD): Check against NULL return from newlocale. Preserve errno
12675         value from STRTOD_L and STRTOD.
12676
12677 2009-01-21  Bruno Haible  <bruno@clisp.org>
12678         and Jim Meyering  <meyering@redhat.com>
12679
12680         nanosleep: skip configure test (fail it) for apple universal builds
12681         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Require gl_MULTIARCH. In Apple
12682         universal builds, assume that nanosleep does not work.
12683         * modules/nanosleep (Depends-on): Add multiarch.
12684
12685         mktime: skip configure test (fail it) for apple universal builds
12686         * m4/mktime.m4 (AC_FUNC_MKTIME): Require gl_MULTIARCH. In Apple
12687         universal builds, assume that mktime does not work.
12688         * modules/mktime (Depends-on): Add multiarch.
12689
12690 2009-01-21  Eric Blake  <ebb9@byu.net>
12691
12692         multiarch: avoid expand-before-require warning
12693         * modules/multiarch (configure.ac): Require, rather than expand,
12694         gl_MULTIARCH.
12695         * m4/multiarch.m4 (gl_MULTIARCH_BODY): Merge...
12696         (gl_MULTIARCH): ...into this macro, and use AC_DEFUN_ONCE to
12697         enforce that all clients require it.  Partial reversion of
12698         2008-12-29 patch.
12699
12700         error: avoid expand-before-require warning
12701         * modules/errno (configure.ac): Require, rather than expand,
12702         gl_HEADER_ERRNO_H.
12703         * m4/errno_h.m4 (gl_HEADER_ERRNO_H_BODY): Merge...
12704         (gl_HEADER_ERRNO_H): ...into this macro, and use AC_DEFUN_ONCE to
12705         enforce that all clients require it.
12706
12707         gnulib-tool: avoid warnings from using obsolete AC_GNU_SOURCE
12708         * gnulib-tool (func_dest_tmpfilename, func_create_testdir): Using
12709         obsolete AC_GNU_SOURCE causes out-of-order expansion; avoid it,
12710         and rely solely on gl_USE_SYSTEM_EXTENSIONS.
12711
12712 2009-01-21  Paolo Bonzini  <bonzini@gnu.org>
12713
12714         Revert:
12715         2009-01-20  Paolo Bonzini  <bonzini@gnu.org>
12716
12717         regex: do not depend on obsolete modules.
12718         * modules/regex: Remove memcmp and memmove.
12719
12720 2009-01-20  Bruno Haible  <bruno@clisp.org>
12721
12722         Make the 'link' module link on Windows NT 4.
12723         * lib/link.c (_WIN32_WINNT): Don't define.
12724         (CreateHardLinkFuncType): New type.
12725         (CreateHardLinkFunc, initialized): New variables.
12726         (initialize): New function.
12727         (link): Invoke CreateHardLink indirectly through the function pointer.
12728
12729 2009-01-20  Bruno Haible  <bruno@clisp.org>
12730
12731         Fix compilation failure on mingw.
12732         * tests/test-link.c (main): Don't assume that EOPNOTSUPP exists.
12733
12734 2009-01-20  Michael Gold  <mgold@ncf.ca>  (tiny change)
12735
12736         * doc/c-strtod.texi: Mention a couple of restrictions.
12737
12738 2009-01-20  Jim Meyering  <meyering@redhat.com>
12739
12740         gettimeofday: move more declarations out of functions
12741         * lib/gettimeofday.c: Move extern declarations of tzset and
12742         gmtime out of containing functions.  Prompted by Bruno Haible.
12743
12744 2009-01-20  Paolo Bonzini  <bonzini@gnu.org>
12745
12746         regex: do not depend on obsolete modules.
12747         * modules/regex: Remove memcmp and memmove.
12748
12749 2009-01-19  Bruno Haible  <bruno@clisp.org>
12750
12751         Don't use AC_REQUIRE([AC_C_BIGENDIAN]).
12752         * modules/uniconv/u16-conv-from-enc (configure.ac): Require
12753         gl_BIGENDIAN, not AC_C_BIGENDIAN.
12754         * modules/uniconv/u16-conv-to-enc (configure.ac): Likewise.
12755         * modules/uniconv/u16-strconv-to-enc (configure.ac): Likewise.
12756
12757 2009-01-19  Bruno Haible  <bruno@clisp.org>
12758
12759         * tests/test-link.c: Include <errno.h>.
12760         (main): Exit with code 77 when a hard link cannot be created due to
12761         the file system.
12762         * tests/test-link.sh: Skip test when a hard link cannot be created due
12763         to the file system.
12764         Suggested by Eric Blake.
12765
12766 2009-01-19  Martin Lambers  <marlam@marlam.de>
12767
12768         * modules/link-tests: New file.
12769         * tests/test-link.sh: New file.
12770         * tests/test-link.c: New file.
12771
12772 2009-01-19  Eric Blake  <ebb9@byu.net>
12773
12774         doc: mention another function added in cygwin 1.7.0
12775         * doc/glibc-functions/glob_pattern_p.texi (glob_pattern_p):
12776         Another new function in cygwin 1.7.
12777
12778 2009-01-19  Bruno Haible  <bruno@clisp.org>
12779
12780         Don't use AC_REQUIRE([AC_C_BIGENDIAN]).
12781         * m4/gnulib-common.m4 (gl_BIGENDIAN): New macro.
12782         * m4/exponentl.m4 (gl_LONG_DOUBLE_EXPONENT_LOCATION): Require
12783         gl_BIGENDIAN, not AC_C_BIGENDIAN.
12784         * m4/isfinite.m4 (gl_ISFINITEL_WORKS): Likewise.
12785         * m4/isinf.m4 (gl_ISINFL_WORKS): Likewise.
12786         * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS): Likewise.
12787         * m4/md4.m4 (gl_MD4): Likewise.
12788         * m4/md5.m4 (gl_MD5): Likewise.
12789         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Likewise.
12790         * m4/sha1.m4 (gl_SHA1): Likewise.
12791         * m4/sha256.m4 (gl_SHA256): Likewise.
12792         * m4/sha512.m4 (gl_SHA512): Likewise.
12793
12794 2009-01-19  Bruno Haible  <bruno@clisp.org>
12795
12796         * modules/uniname/uniname-tests (Depends-on): Add progname.
12797         * tests/uniname/test-uninames.c: Include progname.h.
12798         (main): Call set_program_name.
12799
12800         * modules/unistdio/u8-vsprintf-tests (Depends-on): Add progname.
12801         * tests/unistdio/test-u8-vsprintf1.c: Include progname.h.
12802         (main): Call set_program_name.
12803
12804         * modules/unistdio/u8-vsnprintf-tests (Depends-on): Add progname.
12805         * tests/unistdio/test-u8-vsnprintf1.c: Include progname.h.
12806         (main): Call set_program_name.
12807
12808         * modules/unistdio/u16-vsprintf-tests (Depends-on): Add progname.
12809         * tests/unistdio/test-u16-vsprintf1.c: Include progname.h.
12810         (main): Call set_program_name.
12811
12812         * modules/unistdio/u16-vsnprintf-tests (Depends-on): Add progname.
12813         * tests/unistdio/test-u16-vsnprintf1.c: Include progname.h.
12814         (main): Call set_program_name.
12815
12816         * modules/unistdio/u32-vsprintf-tests (Depends-on): Add progname.
12817         * tests/unistdio/test-u32-vsprintf1.c: Include progname.h.
12818         (main): Call set_program_name.
12819
12820         * modules/unistdio/u32-vsnprintf-tests (Depends-on): Add progname.
12821         * tests/unistdio/test-u32-vsnprintf1.c: Include progname.h.
12822         (main): Call set_program_name.
12823
12824         * modules/unistdio/ulc-vsprintf-tests (Depends-on): Add progname.
12825         * tests/unistdio/test-ulc-vsprintf1.c: Include progname.h.
12826         (main): Call set_program_name.
12827
12828         * modules/unistdio/ulc-vsnprintf-tests (Depends-on): Add progname.
12829         * tests/unistdio/test-ulc-vsnprintf1.c: Include progname.h.
12830         (main): Call set_program_name.
12831
12832 2009-01-19  Eric Blake  <ebb9@byu.net>
12833
12834         test-unistd: test previous patch
12835         * tests/test-unistd.c: Test *_FILENO macros.
12836
12837         unistd: guarantee STDIN_FILENO here, for OS/2 EMX
12838         * lib/unistd.in.h (STDIN_FILENO, STDOUT_FILENO, STDERR_FILENO):
12839         Guarantee a definition.
12840         * doc/posix-headers/unistd.texi (unistd.h): Document the bug.
12841         * modules/unistd-safer (Depends-on): Add dependency on unistd.
12842         * lib/c-stack.c (STDERR_FILENO): Rely on <unistd.h>.
12843         * lib/dup-safer.c (STDERR_FILENO): Likewise.
12844         * lib/execute.c (STDIN_FILENO, STDOUT_FILENO, STDERR_FILENO):
12845         Likewise.
12846         * lib/fd-safer.c (STDIN_FILENO, STDERR_FILENO): Likewise.
12847         * lib/fopen-safer.c (STDERR_FILENO): Likewise.
12848         * lib/pipe.c (STDIN_FILENO, STDOUT_FILENO, STDERR_FILENO):
12849         Likewise.
12850         * lib/tmpfile-safer.c (STDERR_FILENO): Likewise.
12851         * tests/test-posix_spawn1.c (STDIN_FILENO, STDOUT_FILENO)
12852         (STDERR_FILENO): Likewise.
12853         * tests/test-posix_spawn2.c (STDIN_FILENO, STDOUT_FILENO)
12854         (STDERR_FILENO): Likewise.
12855         * tests/test-posix_spawn3.c (STDIN_FILENO, STDOUT_FILENO)
12856         (STDERR_FILENO): Likewise.
12857         Reported by Elbert Pol.
12858
12859 2009-01-19  Eric Blake  <ebb9@byu.net>
12860
12861         doc: mention more functions added in cygwin 1.7.0
12862         * doc/posix-functions/abort.texi (abort): Update wording related
12863         to cygwin.
12864         * doc/posix-functions/daylight.texi (daylight): Likewise.
12865         * doc/posix-functions/optarg.texi (optarg): Likewise.
12866         * doc/posix-functions/optarg.texi (opterr): Likewise.
12867         * doc/posix-functions/optarg.texi (optind): Likewise.
12868         * doc/posix-functions/optarg.texi (optopt): Likewise.
12869         * doc/posix-functions/wprintf.texi (wprintf): Cygwin wprintf never
12870         worked in 1.5.x, and was withdrawn in 1.7.
12871         * doc/posix-functions/vwprintf.texi (vwprintf): Likewise.
12872         * doc/posix-functions/fprintf.texi (fprintf): Tighten mention of
12873         cygwin versions.
12874         * doc/posix-functions/perror.texi (perror): Likewise.
12875         * doc/posix-functions/printf.texi (printf): Likewise.
12876         * doc/posix-functions/snprintf.texi (snprintf): Likewise.
12877         * doc/posix-functions/sprintf.texi (sprintf): Likewise.
12878         * doc/posix-functions/vfprintf.texi (vfprintf): Likewise.
12879         * doc/posix-functions/vprintf.texi (vprintf): Likewise.
12880         * doc/posix-functions/vsnprintf.texi (vsnprintf): Likewise.
12881         * doc/posix-functions/vsprintf.texi (vsprintf): Likewise.
12882         * doc/glibc-functions/obstack_printf.texi (obstack_printf):
12883         Likewise.
12884         * doc/glibc-functions/obstack_vprintf.texi (obstack_vprintf):
12885         Likewise.
12886         * doc/glibc-functions/cfmakeraw.texi (cfmakeraw): Cygwin 1.7 adds
12887         this function.
12888         * doc/glibc-functions/in6addr_any.texi (in6addr_any): Likewise.
12889         * doc/glibc-functions/in6addr_loopback.texi (in6addr_loopback):
12890         Likewise.
12891         * doc/glibc-functions/updwtmpx.texi (updwtmpx): Likewise.
12892         * doc/posix-functions/_Exit_C99.texi (_Exit): Likewise.
12893         * doc/posix-functions/confstr.texi (confstr): Likewise.
12894         * doc/posix-functions/dprintf.texi (dprintf): Likewise.
12895         * doc/posix-functions/fgetwc.texi (fgetwc): Likewise.
12896         * doc/posix-functions/fgetws.texi (fgetws): Likewise.
12897         * doc/posix-functions/fputwc.texi (fputwc): Likewise.
12898         * doc/posix-functions/fputws.texi (fputws): Likewise.
12899         * doc/posix-functions/fwide.texi (fwide): Likewise.
12900         * doc/posix-functions/getwc.texi (getwc): Likewise.
12901         * doc/posix-functions/getwchar.texi (getwchar): Likewise.
12902         * doc/posix-functions/putwc.texi (putwc): Likewise.
12903         * doc/posix-functions/putwchar.texi (putwchar): Likewise.
12904         * doc/posix-functions/sigignore.texi (sigignore): Likewise.
12905         * doc/posix-functions/ungetwc.texi (ungetwc): Likewise.
12906         * doc/posix-functions/vdprintf.texi (vdprintf): Likewise.
12907         * doc/posix-functions/wcpcpy.texi (wcpcpy): Likewise.
12908         * doc/posix-functions/wcpncpy.texi (wcpncpy): Likewise.
12909         * doc/posix-functions/wcstol.texi (wcstol): Likewise.
12910         * doc/posix-functions/wcstoll.texi (wcstoll): Likewise.
12911         * doc/posix-functions/wcstoul.texi (wcstoul): Likewise.
12912         * doc/posix-functions/wcstoull.texi (wcstoull): Likewise.
12913         * doc/posix-functions/wcsxfrm.texi (wcsxfrm): Likewise.
12914
12915 2009-01-19  Daniel P. Berrange  <berrange@redhat.com>
12916
12917         ioctl: avoid warning: no previous prototype for 'rpl_ioctl'
12918         * lib/ioctl.c: Include <sys/ioctl.h>.
12919
12920 2009-01-19  Simon Josefsson  <simon@josefsson.org>
12921
12922         * modules/getdate-tests (Depends-on): Add progname.
12923         * tests/test-getdate.c: Use progname module, to avoid link errors
12924         on non-glibc systems.
12925
12926 2009-01-18  Simon Josefsson  <simon@josefsson.org>
12927
12928         * modules/filenamecat-tests (Depends-on): Add progname.
12929         * modules/fstrcmp-tests (Depends-on): Likewise.
12930
12931         * tests/test-filenamecat.c: Use progname module, to avoid link
12932         errors on non-glibc systems.
12933         * tests/test-fstrcmp.c: Likewise.
12934
12935 2009-01-19  Daniel P. Berrange  <berrange@redhat.com>
12936
12937         gettimeofday: avoid warning: nested extern declaration of 'localtime'
12938         * lib/gettimeofday.c: Move extern declaration out of function.
12939
12940 2009-01-18  Bruno Haible  <bruno@clisp.org>
12941
12942         * m4/strftime.m4 (gl_FUNC_STRFTIME): Don't test for mblen and mbrlen.
12943         * lib/strftime.c (HAVE_MBLEN, HAVE_MBRLEN): Remove macros.
12944         (MULTIBYTE_IS_FORMAT_SAFE): Define to 1 on all platforms except OSF/1.
12945
12946 2009-01-18  Bruno Haible  <bruno@clisp.org>
12947
12948         * lib/strftime.c (MEMPCPY): Remove unused macro.
12949         * m4/strftime.m4 (gl_FUNC_STRFTIME): Don't test for mempcpy.
12950
12951 2009-01-18  Martin Lambers  <marlam@marlam.de>
12952
12953         New module 'link'.
12954         * lib/unistd.in.h (link): New declaration.
12955         * lib/link.c: New file.
12956         * m4/link.m4: New file.
12957         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_LINK,
12958         HAVE_LINK.
12959         * modules/unistd (Makefile.am): Substitute GNULIB_LINK, HAVE_LINK.
12960         * modules/link: New file.
12961         * doc/posix-functions/link.texi: Mention the new module.
12962
12963 2009-01-18  Bruno Haible  <bruno@clisp.org>
12964
12965         * tests/test-avltree_list.c (main): Call set_program_name.
12966         * tests/test-avltree_oset.c (main): Likewise.
12967         * tests/test-obstack-printf.c: Include progname.h.
12968         (main): Call set_program_name.
12969         * tests/test-quotearg.c: Include progname.h.
12970         (main): Call set_program_name.
12971         * tests/test-xmemdup0.c: Include progname.h.
12972         (main): Call set_program_name.
12973
12974 2009-01-18  Bruno Haible  <bruno@clisp.org>
12975
12976         New module 'alphasort'.
12977         * lib/dirent.in.h (alphasort): New declaration.
12978         * lib/alphasort.c: New file, from glibc with modifications.
12979         * m4/alphasort.m4: New file.
12980         * modules/alphasort: New file.
12981         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): Initialize GNULIB_ALPHASORT,
12982         HAVE_ALPHASORT.
12983         * modules/dirent (Makefile.am): Substitute GNULIB_ALPHASORT,
12984         HAVE_ALPHASORT.
12985         * doc/posix-functions/alphasort.texi: Mention the new module and the
12986         portability problems.
12987
12988 2009-01-18  Bruno Haible  <bruno@clisp.org>
12989
12990         New module 'scandir'.
12991         * lib/dirent.in.h (scandir): New declaration.
12992         * lib/scandir.c: New file, from glibc with modifications.
12993         * m4/scandir.m4: New file.
12994         * modules/scandir: New file.
12995         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): Initialize GNULIB_SCANDIR,
12996         HAVE_SCANDIR.
12997         * modules/dirent (Makefile.am): Substitute GNULIB_SCANDIR,
12998         HAVE_SCANDIR.
12999         * doc/posix-functions/scandir.texi: Mention the new module and the
13000         portability problems.
13001
13002 2009-01-17  Bruno Haible  <bruno@clisp.org>
13003
13004         * gnulib-tool (func_remove_prefix): Escape all dots in the prefix.
13005         Update documentation.
13006         (func_remove_suffix): Escape all dots in the suffix. Update
13007         documentation.
13008         (func_filter_filelist): Update documentation.
13009         Reported by Ralf Wildenhues.
13010
13011 2009-01-17  Bruno Haible  <bruno@clisp.org>
13012
13013         * modules/dprintf-posix-tests: New file.
13014         * tests/test-dprintf-posix.sh: New file.
13015         * tests/test-dprintf-posix.c: New file.
13016
13017         New modules 'dprintf', 'dprintf-posix'.
13018         * lib/stdio.in.h (dprintf): New declaration.
13019         * lib/dprintf.c: New file.
13020         * m4/dprintf.m4: New file.
13021         * m4/dprintf-posix.m4: New file.
13022         * modules/dprintf: New file.
13023         * modules/dprintf-posix: New file.
13024         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize GNULIB_DPRINTF,
13025         HAVE_DPRINTF, REPLACE_DPRINTF.
13026         * modules/stdio (Makefile.am): Substitute also GNULIB_DPRINTF,
13027         HAVE_DPRINTF, REPLACE_DPRINTF.
13028         * doc/posix-functions/dprintf.texi: Mention the new modules.
13029
13030 2009-01-17  Bruno Haible  <bruno@clisp.org>
13031
13032         * modules/vdprintf-posix-tests: New file.
13033         * tests/test-vdprintf-posix.sh: New file.
13034         * tests/test-vdprintf-posix.c: New file.
13035
13036         New modules 'vdprintf', 'vdprintf-posix'.
13037         * lib/stdio.in.h (vdprintf): New declaration.
13038         * lib/vdprintf.c: New file.
13039         * m4/vdprintf.m4: New file.
13040         * m4/vdprintf-posix.m4: New file.
13041         * modules/vdprintf: New file.
13042         * modules/vdprintf-posix: New file.
13043         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize GNULIB_VDPRINTF,
13044         HAVE_VDPRINTF, REPLACE_VDPRINTF.
13045         * modules/stdio (Makefile.am): Substitute also GNULIB_VDPRINTF,
13046         HAVE_VDPRINTF, REPLACE_VDPRINTF.
13047         * doc/posix-functions/vdprintf.texi: Mention the new modules.
13048
13049 2009-01-17  Bruno Haible  <bruno@clisp.org>
13050
13051         Fix replacement of fopen on mingw.
13052         * m4/fopen.m4 (gl_FUNC_FOPEN): Define FOPEN_TRAILING_SLASH_BUG also on
13053         mingw.
13054
13055 2009-01-17  Bruno Haible  <bruno@clisp.org>
13056
13057         Fix compilation error on HP-UX 11.00, present since 2008-09-24.
13058         * lib/fopen.c: Include <sys/types.h> and <sys/types.h>.
13059
13060 2009-01-17  Bruno Haible  <bruno@clisp.org>
13061
13062         Avoid test-fflush2.sh failure on mingw.
13063         * tests/test-fflush2.c: Include binary-io.h.
13064         (main): Put standard input into binary mode.
13065         * modules/fflush-tests (Depends-on): Add binary-io.
13066
13067 2009-01-17  Bruno Haible  <bruno@clisp.org>
13068
13069         * lib/wchar.in.h: In another particular situation, include only the
13070         system's <wchar.h> file.
13071         (_GL_ALREADY_INCLUDING_WCHAR_H): New macro.
13072         Reported by Albert Chin-A-Young <china@thewrittenword.com>
13073         and Thomas Guyot-Sionnest <dermoth@aei.ca>.
13074
13075 2009-01-17  Bruno Haible  <bruno@clisp.org>
13076
13077         Support for stripping executables in --enable-relocatable.
13078         * build-aux/install-reloc: Expect one more argument, or an environment
13079         variable RELOC_STRIP_PROG. If set, strip the destination program and
13080         its wrapper.
13081         * m4/relocatable.m4 (gl_RELOCATABLE_BODY): In INSTALL_PROGRAM_ENV, set
13082         RELOC_STRIP_PROG.
13083         * doc/relocatable-maint.texi (Supporting Relocation): Mention the need
13084         to set RELOCATABLE_STRIP.
13085         * NEWS: Mention the new Makefile requirement.
13086
13087 2009-01-17  Bruno Haible  <bruno@clisp.org>
13088
13089         * build-aux/install-reloc: Remove debugging information left over by
13090         C compiler on MacOS X.
13091
13092 2009-01-17  Bruno Haible  <bruno@clisp.org>
13093
13094         Update use of _NSGetExecutablePath after API change in MacOS X 10.4.
13095         * lib/progreloc.c (find_executable): Fix type of pointer passed to
13096         _NSGetExecutablePath.
13097
13098 2009-01-16  Jim Meyering  <meyering@redhat.com>
13099
13100         strerror: avoid warnings about discarding "const"
13101         * lib/strerror.c (rpl_strerror): Instead of returning a const
13102         string from each and every "case", use a variable, and add a single
13103         cast after the switch.
13104
13105 2009-01-16  Albert Chin-A-Young <china@thewrittenword.com>
13106
13107         * lib/arpa_inet.in.h: Add extern "C" block for C++.
13108
13109 2009-01-16  Bruno Haible  <bruno@clisp.org>
13110
13111         * m4/printf.m4 (gl_SNPRINTF_SIZE1, gl_VSNPRINTF_ZEROSIZE_C99): Use an
13112         array initializer syntax that also works in C++ mode.
13113         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
13114
13115 2009-01-16  Jim Meyering  <meyering@redhat.com>
13116
13117         poll: suppress a warning
13118         * lib/poll.c: Use #pragma GCC diagnostic ignored "-Wtype-limits"
13119         to ignore "...unsigned expression < 0 is always false" warnings.
13120
13121 2009-01-16  Daniel P. Berrange  <berrange@redhat.com>
13122
13123         poll: remove declarations of unused variables
13124         * lib/poll.c (poll) [WIN32_NATIVE]: Remove declarations of unused
13125         sockbuf and optlen.
13126
13127 2009-01-15  Bruno Haible  <bruno@clisp.org>
13128
13129         Make fflush-after-ungetc POSIX compliant on BSD systems.
13130         * lib/fflush.c (clear_ungetc_buffer_preserving_position): New function.
13131         (clear_ungetc_buffer): Implement also for other systems.
13132         (rpl_fflush): On glibc systems, invoke
13133         clear_ungetc_buffer_preserving_position. Otherwise, invoke
13134         clear_ungetc_buffer after fetching the stream's position, not before.
13135
13136 2009-01-15  Bruno Haible  <bruno@clisp.org>
13137
13138         Make fflush-after-ungetc POSIX compliant on glibc systems.
13139         * m4/fflush.m4 (gl_FUNC_FFLUSH): Test also the behaviour of fflush
13140         after ungetc.
13141         * lib/fflush.c (clear_ungetc_buffer): Implement for glibc systems.
13142         (rpl_fflush): On glibc systems, simply call the system's fflush
13143         function after clearing the ungetc buffer.
13144         * lib/fseeko.c (rpl_fseeko): Don't try to lseek past the end of file.
13145         Instead, lseek only to the end of file, then use the system's fseeko
13146         for the rest. On glibc systems, reset the EOF indicator bit.
13147
13148 2009-01-15  Jim Meyering  <meyering@redhat.com>
13149
13150         openmp.m4: revert quote-adding change, for portability to older autoconf
13151         * m4/openmp.m4: Remove the quotes added on 2009-01-14.
13152         This reverts part of 42d1eda5dcce2d68deab7a642e7f29bcd7144a0d.
13153         Simon Josefsson noticed the problem when using autoconf-2.61.
13154
13155 2009-01-15  Bruno Haible  <bruno@clisp.org>
13156
13157         * tests/test-fflush2.sh: Invoke test-fflush2 twice.
13158         * tests/test-fflush2.c (ASSERT): Always fail.
13159         (main): Add two tests for fflush() after ungetc(), taking into account
13160         the Austin Group's clarification.
13161         Suggested by Eric Blake.
13162
13163 2009-01-15  Albert Chin-A-Young  <china@thewrittenword.com>
13164
13165         mktime.m4: remove K&R-style function prototypes
13166         * m4/mktime.m4 (AC_FUNC_MKTIME): Remove K&R-style function prototypes
13167         for the Sun C++ compiler.
13168
13169 2009-01-14  Bruno Haible  <bruno@clisp.org>
13170
13171         * lib/stdint.in.h (_GL_JUST_INCLUDE_SYSTEM_WCHAR_H): New macro, defined
13172         while including <wchar.h>.
13173         * lib/wchar.in.h: In two particular situations on HP-UX, include only
13174         the system's <wchar.h> file.
13175         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
13176
13177 2009-01-14  Bruno Haible  <bruno@clisp.org>
13178
13179         * m4/csharp.m4: Don't mention gettext on the serial number line.
13180         * m4/csharpexec.m4: Likewise.
13181         * m4/eaccess.m4: Likewise.
13182         * m4/javaexec.m4: Likewise.
13183         * m4/sig_atomic_t.m4: Likewise.
13184         * m4/tmpdir.m4: Likewise.
13185         * m4/intldir.m4: Bump gettext version.
13186         * m4/lib-ld.m4: Likewise.
13187
13188 2009-01-14  Bruno Haible  <bruno@clisp.org>
13189
13190         * lib/progname.c (set_program_name): Add more comments.
13191         Reported by Sergey Poznyakoff <gray@gnu.org.ua>.
13192
13193 2009-01-14  Simon Josefsson  <simon@josefsson.org>
13194
13195         * lib/sys_stat.in.h: Include sys/types.h for nlink_t on systems
13196         were sys/stat.h does not define it.
13197
13198 2009-01-14  Jim Meyering  <meyering@redhat.com>
13199
13200         many *.m4 files: improve m4 quoting
13201         99% of this change was performed by running the following commands:
13202         git ls-files | grep '\.m4$' | xargs perl -pi \
13203           -e 's/(AC_\w+\()([^[()]+?)([,)])/$1\[$2]$3/g;' \
13204           -e 's/(AC_\w+\((?:\[[^,]+?\], ){1})([^,[()]+?)([,)])/$1\[$2]$3/g;' \
13205           -e 's/(AC_\w+\((?:\[[^,]+?\], ){2})([^,[()]+?)([,)])/$1\[$2]$3/g;' \
13206           -e 's/(AC_\w+\((?:\[[^,]+?\], ){3})([^,[()]+?)([,)])/$1\[$2]$3/g'
13207         perl -pi -e 's/\[\.\.\.\]/.../' m4/onceonly.m4
13208         The remainder were to add Copyright dates, increment serial numbers,
13209         undo some changes in comments, exclude m4/intl.m4, and add quotes
13210         around the "1" in ",1" where the unusual spacing prohibited the
13211         above regexps from doing the job.  For more details, see
13212         <http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/16175>.
13213         * m4/acl.m4: Modified.
13214         * m4/afs.m4: Likewise.
13215         * m4/alloca.m4: Likewise.
13216         * m4/argp.m4: Likewise.
13217         * m4/argz.m4: Likewise.
13218         * m4/atexit.m4: Likewise.
13219         * m4/bison-i18n.m4: Likewise.
13220         * m4/bison.m4: Likewise.
13221         * m4/byteswap.m4: Likewise.
13222         * m4/c-stack.m4: Likewise.
13223         * m4/c-strtod.m4: Likewise.
13224         * m4/calloc.m4: Likewise.
13225         * m4/canonicalize-lgpl.m4: Likewise.
13226         * m4/chown.m4: Likewise.
13227         * m4/clock_time.m4: Likewise.
13228         * m4/codeset.m4: Likewise.
13229         * m4/copy-file.m4: Likewise.
13230         * m4/csharp.m4: Likewise.
13231         * m4/csharpcomp.m4: Likewise.
13232         * m4/csharpexec.m4: Likewise.
13233         * m4/d-ino.m4: Likewise.
13234         * m4/d-type.m4: Likewise.
13235         * m4/dirfd.m4: Likewise.
13236         * m4/double-slash-root.m4: Likewise.
13237         * m4/eaccess.m4: Likewise.
13238         * m4/eealloc.m4: Likewise.
13239         * m4/environ.m4: Likewise.
13240         * m4/errno_h.m4: Likewise.
13241         * m4/euidaccess.m4: Likewise.
13242         * m4/execute.m4: Likewise.
13243         * m4/fatal-signal.m4: Likewise.
13244         * m4/fchdir.m4: Likewise.
13245         * m4/fcntl_h.m4: Likewise.
13246         * m4/fileblocks.m4: Likewise.
13247         * m4/filenamecat.m4: Likewise.
13248         * m4/findprog.m4: Likewise.
13249         * m4/flexmember.m4: Likewise.
13250         * m4/fnmatch.m4: Likewise.
13251         * m4/fopen.m4: Likewise.
13252         * m4/fpending.m4: Likewise.
13253         * m4/fprintf-posix.m4: Likewise.
13254         * m4/free.m4: Likewise.
13255         * m4/frexp.m4: Likewise.
13256         * m4/frexpl.m4: Likewise.
13257         * m4/fsusage.m4: Likewise.
13258         * m4/ftruncate.m4: Likewise.
13259         * m4/gc-camellia.m4: Likewise.
13260         * m4/gc-random.m4: Likewise.
13261         * m4/gc.m4: Likewise.
13262         * m4/getaddrinfo.m4: Likewise.
13263         * m4/getcwd-abort-bug.m4: Likewise.
13264         * m4/getcwd-path-max.m4: Likewise.
13265         * m4/getdate.m4: Likewise.
13266         * m4/getdomainname.m4: Likewise.
13267         * m4/getgroups.m4: Likewise.
13268         * m4/gethostname.m4: Likewise.
13269         * m4/gethrxtime.m4: Likewise.
13270         * m4/getline.m4: Likewise.
13271         * m4/getloadavg.m4: Likewise.
13272         * m4/getndelim2.m4: Likewise.
13273         * m4/getpass.m4: Likewise.
13274         * m4/gettext.m4: Likewise.
13275         * m4/gettime.m4: Likewise.
13276         * m4/gettimeofday.m4: Likewise.
13277         * m4/gnulib-common.m4: Likewise.
13278         * m4/group-member.m4: Likewise.
13279         * m4/host-os.m4: Likewise.
13280         * m4/iconv.m4: Likewise.
13281         * m4/iconv_open.m4: Likewise.
13282         * m4/inet_ntop.m4: Likewise.
13283         * m4/inet_pton.m4: Likewise.
13284         * m4/inline.m4: Likewise.
13285         * m4/intldir.m4: Likewise.
13286         * m4/intlmacosx.m4: Likewise.
13287         * m4/intmax.m4: Likewise.
13288         * m4/intmax_t.m4: Likewise.
13289         * m4/inttypes.m4: Likewise.
13290         * m4/inttypes_h.m4: Likewise.
13291         * m4/inttypes-pri.m4: Likewise.
13292         * m4/isapipe.m4: Likewise.
13293         * m4/isnand.m4: Likewise.
13294         * m4/isnanf.m4: Likewise.
13295         * m4/isnanl.m4: Likewise.
13296         * m4/javacomp.m4: Likewise.
13297         * m4/javaexec.m4: Likewise.
13298         * m4/jm-winsz1.m4: Likewise.
13299         * m4/jm-winsz2.m4: Likewise.
13300         * m4/lchown.m4: Likewise.
13301         * m4/lcmessage.m4: Likewise.
13302         * m4/ldexpl.m4: Likewise.
13303         * m4/lib-ld.m4: Likewise.
13304         * m4/lib-link.m4: Likewise.
13305         * m4/libsigsegv.m4: Likewise.
13306         * m4/link-follow.m4: Likewise.
13307         * m4/localcharset.m4: Likewise.
13308         * m4/locale-fr.m4: Likewise.
13309         * m4/locale-ja.m4: Likewise.
13310         * m4/locale-tr.m4: Likewise.
13311         * m4/locale-zh.m4: Likewise.
13312         * m4/lock.m4: Likewise.
13313         * m4/longlong.m4: Likewise.
13314         * m4/ls-mntd-fs.m4: Likewise.
13315         * m4/lstat.m4: Likewise.
13316         * m4/malloc.m4: Likewise.
13317         * m4/mathl.m4: Likewise.
13318         * m4/mbrtowc.m4: Likewise.
13319         * m4/mbstate_t.m4: Likewise.
13320         * m4/mbswidth.m4: Likewise.
13321         * m4/memchr.m4: Likewise.
13322         * m4/memcmp.m4: Likewise.
13323         * m4/memcpy.m4: Likewise.
13324         * m4/memmem.m4: Likewise.
13325         * m4/memmove.m4: Likewise.
13326         * m4/mempcpy.m4: Likewise.
13327         * m4/memrchr.m4: Likewise.
13328         * m4/memset.m4: Likewise.
13329         * m4/minmax.m4: Likewise.
13330         * m4/mkdir-slash.m4: Likewise.
13331         * m4/mkdtemp.m4: Likewise.
13332         * m4/mktime.m4: Likewise.
13333         * m4/mmap-anon.m4: Likewise.
13334         * m4/mountlist.m4: Likewise.
13335         * m4/nanosleep.m4: Likewise.
13336         * m4/nls.m4: Likewise.
13337         * m4/nocrash.m4: Likewise.
13338         * m4/open.m4: Likewise.
13339         * m4/openat.m4: Likewise.
13340         * m4/openmp.m4: Likewise.
13341         * m4/pathmax.m4: Likewise.
13342         * m4/perl.m4: Likewise.
13343         * m4/physmem.m4: Likewise.
13344         * m4/pipe.m4: Likewise.
13345         * m4/po.m4: Likewise.
13346         * m4/poll.m4: Likewise.
13347         * m4/posixtm.m4: Likewise.
13348         * m4/posixver.m4: Likewise.
13349         * m4/printf-frexp.m4: Likewise.
13350         * m4/printf-frexpl.m4: Likewise.
13351         * m4/printf-posix.m4: Likewise.
13352         * m4/printf-posix-rpl.m4: Likewise.
13353         * m4/printf.m4: Likewise.
13354         * m4/progtest.m4: Likewise.
13355         * m4/putenv.m4: Likewise.
13356         * m4/readline.m4: Likewise.
13357         * m4/readlink.m4: Likewise.
13358         * m4/readutmp.m4: Likewise.
13359         * m4/realloc.m4: Likewise.
13360         * m4/regex.m4: Likewise.
13361         * m4/relocatable.m4: Likewise.
13362         * m4/relocatable-lib.m4: Likewise.
13363         * m4/rename-dest-slash.m4: Likewise.
13364         * m4/rename.m4: Likewise.
13365         * m4/rmdir-errno.m4: Likewise.
13366         * m4/rmdir.m4: Likewise.
13367         * m4/roundf.m4: Likewise.
13368         * m4/roundl.m4: Likewise.
13369         * m4/rpmatch.m4: Likewise.
13370         * m4/save-cwd.m4: Likewise.
13371         * m4/selinux-selinux-h.m4: Likewise.
13372         * m4/setenv.m4: Likewise.
13373         * m4/settime.m4: Likewise.
13374         * m4/sig2str.m4: Likewise.
13375         * m4/sig_atomic_t.m4: Likewise.
13376         * m4/signalblocking.m4: Likewise.
13377         * m4/signbit.m4: Likewise.
13378         * m4/sigpipe.m4: Likewise.
13379         * m4/sockets.m4: Likewise.
13380         * m4/sockpfaf.m4: Likewise.
13381         * m4/st_dm_mode.m4: Likewise.
13382         * m4/stat-time.m4: Likewise.
13383         * m4/stdbool.m4: Likewise.
13384         * m4/stdint.m4: Likewise.
13385         * m4/stdint_h.m4: Likewise.
13386         * m4/stpcpy.m4: Likewise.
13387         * m4/stpncpy.m4: Likewise.
13388         * m4/strcase.m4: Likewise.
13389         * m4/strchrnul.m4: Likewise.
13390         * m4/strcspn.m4: Likewise.
13391         * m4/strdup.m4: Likewise.
13392         * m4/strftime.m4: Likewise.
13393         * m4/strndup.m4: Likewise.
13394         * m4/strnlen.m4: Likewise.
13395         * m4/strpbrk.m4: Likewise.
13396         * m4/strptime.m4: Likewise.
13397         * m4/strsep.m4: Likewise.
13398         * m4/strtod.m4: Likewise.
13399         * m4/strtoimax.m4: Likewise.
13400         * m4/strtok_r.m4: Likewise.
13401         * m4/strtol.m4: Likewise.
13402         * m4/strtoll.m4: Likewise.
13403         * m4/strtoul.m4: Likewise.
13404         * m4/strtoull.m4: Likewise.
13405         * m4/strtoumax.m4: Likewise.
13406         * m4/strverscmp.m4: Likewise.
13407         * m4/threadlib.m4: Likewise.
13408         * m4/timegm.m4: Likewise.
13409         * m4/tm_gmtoff.m4: Likewise.
13410         * m4/tmpdir.m4: Likewise.
13411         * m4/tmpfile.m4: Likewise.
13412         * m4/tzset.m4: Likewise.
13413         * m4/uintmax_t.m4: Likewise.
13414         * m4/unlinkdir.m4: Likewise.
13415         * m4/unlocked-io.m4: Likewise.
13416         * m4/uptime.m4: Likewise.
13417         * m4/userspec.m4: Likewise.
13418         * m4/utimbuf.m4: Likewise.
13419         * m4/utime.m4: Likewise.
13420         * m4/utimes-null.m4: Likewise.
13421         * m4/utimes.m4: Likewise.
13422         * m4/vararrays.m4: Likewise.
13423         * m4/vasnprintf.m4: Likewise.
13424         * m4/vfprintf-posix.m4: Likewise.
13425         * m4/vprintf-posix.m4: Likewise.
13426         * m4/wait-process.m4: Likewise.
13427         * m4/wchar_t.m4: Likewise.
13428         * m4/wint_t.m4: Likewise.
13429         * m4/write-any-file.m4: Likewise.
13430         * m4/yield.m4: Likewise.
13431
13432 2009-01-13  Bruno Haible  <bruno@clisp.org>
13433
13434         Avoid test-copy-file.sh failures when ACL support insufficient.
13435         * modules/copy-file-tests (Makefile.am): Pass USE_ACL in
13436         TESTS_ENVIRONMENT.
13437         * tests/test-copy-file.sh: Skip the ACL comparisons if USE_ACL is 0.
13438         Reported by Jim Meyering.
13439
13440 2009-01-13  Bruno Haible  <bruno@clisp.org>
13441
13442         * modules/unistdio/u-printf-args (Files): Add m4/stdint_h.m4 and
13443         m4/inttypes_h.m4, needed by m4/intmax_t.m4.
13444         * modules/unistdio/u8-printf-parse (Files): Likewise.
13445         * modules/unistdio/u32-printf-parse (Files): Likewise.
13446         * modules/unistdio/ulc-printf-parse (Files): Likewise.
13447
13448 2009-01-13  Simon Josefsson  <simon@josefsson.org>
13449
13450         * modules/unistdio/u16-printf-parse (Files): Add m4/stdint_h.m4
13451         and m4/inttypes_h.m4 too.
13452
13453 2009-01-12  Eric Blake  <ebb9@byu.net>
13454
13455         tests: IRIX 6.2 cc can't compile -0.0 into .data
13456         * tests/test-ceill.c (minus_zero): Compute -0.0L at runtime,
13457         rather than at compile-time.
13458         * tests/test-floorl.c (minus_zero): Likewise.
13459         * tests/test-frexpl.c (minus_zero): Likewise.
13460         * tests/test-isnan.c (minus_zerol): Likewise.
13461         * tests/test-isnanl.h (minus_zero): Likewise.
13462         * tests/test-ldexpl.c (minus_zero): Likewise.
13463         * tests/test-roundl.c (minus_zero): Likewise.
13464         * tests/test-signbit.c (minus_zerol): Likewise.
13465         * tests/test-snprintf-posix.h (minus_zerol): Likewise.
13466         * tests/test-sprintf-posix.h (minus_zerol): Likewise.
13467         * tests/test-truncl.c (minus_zero): Likewise.
13468         * tests/test-vasnprintf-posix.c (minus_zerol): Likewise.
13469         * tests/test-vasprintf-posix.c (minus_zerol): Likewise.
13470         Reported by Tom G. Christensen and Nelson H. F. Beebe.
13471
13472 2009-01-09  Paolo Bonzini  <bonzini@gnu.org>
13473
13474         regex: fix glibc bug 9697
13475         * lib/regcomp.c (re_compile_fastmap_iter): Rewrite COMPLEX_BRACKET
13476         handling.
13477
13478 2009-01-09  Paolo Bonzini  <bonzini@gnu.org>
13479
13480         regex: fix glibc bug 697
13481         * lib/regexec.c (prune_impossible_nodes): Handle sifted_states[0]
13482         being NULL also if there are no backreferences.
13483
13484 2009-01-09  Paolo Bonzini  <bonzini@gnu.org>
13485
13486         regex: merge glibc changes
13487         * lib/regcomp.c (re_compile_fastmap_iter): Use __mbrtowc.
13488         * lib/regex_internal.c (build_wcs_buffer, build_wcs_upper_buffer,
13489         re_string_skip_chars, re_string_reconstruct): Likewise.
13490         * lib/regex_internal.h [!_LIBC] (__mbrtowc): New #define.
13491
13492 2009-01-07  Jim Meyering  <meyering@redhat.com>
13493
13494         poll: filter through cppi
13495         * lib/poll.c: Indent cpp directives to reflect nesting.
13496
13497 2009-01-07  Daniel P. Berrange  <berrange@redhat.com>
13498
13499         poll: don't return uninitialized
13500         * lib/poll.c (poll) [WIN32_NATIVE]: Initialize "rc".
13501
13502 2009-01-06  Jeremy Olexa <darkside@gentoo.org>  (tiny change)
13503
13504         avoid compile failure on AIX 6.1
13505         * lib/getloadavg.c [HAVE_LIBPERFSTAT]: Include <sys/protosw.h>.
13506         Details in http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/15465
13507
13508 2009-01-04  Jim Meyering  <meyering@redhat.com>
13509
13510         remove duplicate inclusion of <stdio.h>
13511         * tests/test-fprintf-posix.c: Likewise.
13512         * tests/test-printf-posix.c: Likewise.
13513         * tests/test-snprintf-posix.c: Likewise.
13514         * tests/test-sprintf-posix.c: Likewise.
13515         * tests/test-vasprintf-posix.c: Likewise.
13516         * tests/test-vfprintf-posix.c: Likewise.
13517         * tests/test-vprintf-posix.c: Likewise.
13518         * tests/test-vsnprintf-posix.c: Likewise.
13519         * tests/test-vsprintf-posix.c: Likewise.
13520
13521 2009-01-03  Jim Meyering  <meyering@redhat.com>
13522
13523         gnulib-tool: fix sed-based filtering
13524         * gnulib-tool (func_filter_filelist): Remove extra backslash
13525         in sed_fff_filter definition.
13526
13527 2009-01-02  Jim Meyering  <meyering@redhat.com>
13528
13529         strftime: avoid compilation failure on Solaris 2.6
13530         * modules/strftime (Depends-on): Add mbrlen and mbsinit.
13531         * lib/strftime.c [DO_MULTIBYTE]: Include <wchar.h> unconditionally.
13532         Don't #define mbrlen or mbsinit, since now they're guaranteed to
13533         be available.  Reported by Tom G. Christensen.  Details in
13534         <http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/16180>.
13535
13536 2009-01-01  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
13537             Bruno Haible  <bruno@clisp.org>
13538
13539         Speed up gnulib-tool by doing more string processing through shell
13540         built-ins.
13541         * gnulib-tool (fast_func_append): New variable.
13542         (func_remove_prefix, func_remove_suffix): New functions.
13543         (fast_func_remove_prefix, fast_func_remove_suffix): New variables.
13544         (func_filter_filelist): New function.
13545         (func_get_dependencies): Use func_remove_suffix instead of sed.
13546         (func_get_automake_snippet): Use func_filter_filelist instead of a
13547         subshell and sed invocation.
13548
13549 2009-01-01  Bruno Haible  <bruno@clisp.org>
13550
13551         Fix a security bug.
13552         * gnulib-tool (func_import, import, update): Don't allow the characters
13553         '"', '$', '`', '\' in macro arguments that become part of commands that
13554         are evaluated.
13555
13556 2009-01-01  Bruno Haible  <bruno@clisp.org>
13557
13558         * gnulib-tool (func_reset_sigpipe): Add more comments.
13559
13560 2009-01-01  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
13561
13562         * gnulib-tool (func_modules_add_dummy, func_emit_lib_Makefile_am,
13563         func_emit_tests_Makefile_am, func_import): Abort loops early if we
13564         already know the answer.
13565
13566 2009-01-01  Jim Meyering  <meyering@redhat.com>
13567
13568         * lib/version-etc.c (version_etc_va): Update copyright year.
13569
13570 2008-12-30  Bruno Haible  <bruno@clisp.org>
13571
13572         * m4/lib-prefix.m4 (AC_LIB_LINKFLAGS_BODY): Don't overwrite
13573         LIB${NAME}_PREFIX when considering the dependencies of lib${name}.
13574         Reported by Charles Wilson <cygwin@cwilson.fastmail.fm>.
13575
13576 2008-12-29  Eric Blake  <ebb9@byu.net>
13577
13578         multiarch: avoid autoconf AC_REQUIRE bug
13579         * m4/multiarch.m4 (gl_MULTIARCH): Split body...
13580         (gl_MULTIARCH_BODY): ...into new macro, to work around bug in Autoconf
13581         2.63 and older.
13582         Reported by Bruno Haible, and analyzed in
13583         http://lists.gnu.org/archive/html/bug-autoconf/2008-12/msg00039.html
13584
13585 2008-12-29  Bruno Haible  <bruno@clisp.org>
13586
13587         * gnulib-tool (func_import): When generating sed-ignore-removed, handle
13588         files in subdirectories correctly.
13589         Reported by Ralf Wildenhues.
13590
13591 2008-12-29  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
13592
13593         * gnulib-tool (func_update_ignorelist): Use 'join - FILE'
13594         rather than 'join FILE -', for Solaris join.
13595
13596 2008-12-29  Bruno Haible  <bruno@clisp.org>
13597
13598         * m4/codeset.m4 (AM_LANGINFO_CODESET): More systematic m4 argument
13599         quoting.
13600         * m4/gettext.m4 (AM_GNU_GETTEXT): Likewise.
13601         * m4/glibc2.m4 (gt_GLIBC2): Likewise.
13602         * m4/glibc21.m4 (gl_GLIBC21): Likewise.
13603         * m4/iconv.m4 (AM_ICONV_LINK, AM_ICONV): Likewise.
13604         * m4/intdiv0.m4 (gt_INTDIV0): Likewise.
13605         * m4/intlmacosx.m4 (gt_INTL_MACOSX): Likewise.
13606         * m4/intmax.m4 (gt_TYPE_INTMAX_T): Likewise.
13607         * m4/inttypes-pri.m4 (gt_INTTYPES_PRI): Likewise.
13608         * m4/inttypes_h.m4 (gl_AC_HEADER_INTTYPES_H): Likewise.
13609         * m4/lcmessage.m4 (gt_LC_MESSAGES): Likewise.
13610         * m4/nls.m4 (AM_NLS): Likewise.
13611         * m4/po.m4 (AM_PO_SUBDIRS): Likewise.
13612         * m4/printf-posix.m4 (gt_PRINTF_POSIX): Likewise.
13613         * m4/progtest.m4 (AM_PATH_PROG_WITH_TEST): Likewise.
13614         * m4/size_max.m4 (gl_SIZE_MAX): Likewise.
13615         * m4/stdint_h.m4 (gl_AC_HEADER_STDINT_H): Likewise.
13616         * m4/threadlib.m4 (gl_THREADLIB_BODY): Likewise.
13617         * m4/uintmax_t.m4 (gl_AC_TYPE_UINTMAX_T): Likewise.
13618         * m4/visibility.m4 (gl_VISIBILITY): Likewise.
13619         * m4/wchar_t.m4 (gt_TYPE_WCHAR_T): Likewise.
13620         * m4/wint_t.m4 (gt_TYPE_WINT_T): Likewise.
13621         * m4/xsize.m4 (gl_XSIZE): Likewise.
13622         Suggested by Jim Meyering.
13623
13624 2008-11-17  Bruce Korb  <bkorb@gnu.org>
13625
13626         * lib/parse-duration.h: non-iso form accepts years, months weeks, too
13627         * lib/parse-duration.c: use a switch instead of cascading if's.
13628
13629 2008-12-29  Eric Blake  <ebb9@byu.net>
13630
13631         wchar.h: supply WEOF on Irix 5.3
13632         * lib/wchar.in.h (wint_t): Also supply WEOF.
13633         * lib/wctype.in.h (wint_t): Likewise.
13634         * doc/posix-headers/wchar.texi (wchar.h): Document the bug.
13635         * doc/posix-headers/wctype.texi (wctype.h): Likewise.
13636         Reported by Tom G. Christensen.
13637
13638 2008-12-26  Bruno Haible  <bruno@clisp.org>
13639
13640         * m4/multiarch.m4 (gl_MULTIARCH): Recognize also the architecture names
13641         i486, i586, i686.
13642
13643 2008-12-26  Bruno Haible  <bruno@clisp.org>
13644
13645         * lib/stdlib.in.h (struct random_data): Fix indentation of comments.
13646
13647 2008-12-26  Bruno Haible  <bruno@clisp.org>
13648
13649         * lib/stdint.in.h: Move the include of <wchar.h> down until after all
13650         the types are defined. Also conditionalize it on __STDC_LIMIT_MACROS,
13651         not __STDC_CONSTANT_MACROS.
13652         Reported by Nelson H. F. Beebe <beebe@math.utah.edu> via Eric Blake.
13653
13654 2008-12-25  Bruno Haible  <bruno@clisp.org>
13655
13656         Add support for universal builds to vasnprintf.
13657         * m4/printf.m4 (gl_PRINTF_ENOMEM): Require gl_MULTIARCH. In Apple
13658         universal builds, guess no.
13659         * modules/vasnprintf-posix (Depends-on): Add multiarch.
13660         * modules/vasprintf-posix (Depends-on): Likewise.
13661         * modules/fprintf-posix (Depends-on): Likewise.
13662         * modules/vfprintf-posix (Depends-on): Likewise.
13663         * modules/snprintf-posix (Depends-on): Likewise.
13664         * modules/vsnprintf-posix (Depends-on): Likewise.
13665         * modules/sprintf-posix (Depends-on): Likewise.
13666         * modules/vsprintf-posix (Depends-on): Likewise.
13667         * modules/unistdio/u8-vasnprintf (Depends-on): Likewise.
13668         * modules/unistdio/u8-u8-vasnprintf (Depends-on): Likewise.
13669         * modules/unistdio/u16-vasnprintf (Depends-on): Likewise.
13670         * modules/unistdio/u16-u16-vasnprintf (Depends-on): Likewise.
13671         * modules/unistdio/u32-vasnprintf (Depends-on): Likewise.
13672         * modules/unistdio/u32-u32-vasnprintf (Depends-on): Likewise.
13673         * modules/unistdio/ulc-vasnprintf (Depends-on): Likewise.
13674
13675         Add support for universal builds to <inttypes.h>.
13676         * lib/inttypes.in.h (_PRI64_PREFIX, _PRIu64_PREFIX, _SCN64_PREFIX,
13677         _SCNu64_PREFIX): In Apple
13678         universal builds, define directly, using _LP64.
13679         * m4/inttypes.m4 (gl_INTTYPES_H): In Apple universal builds, set
13680         INT64_MAX_EQ_LONG_MAX and UINT64_MAX_EQ_ULONG_MAX to -1.
13681         * modules/inttypes (Depends-on): Add multiarch.
13682         (Makefile.am): Substitute APPLE_UNIVERSAL_BUILD.
13683
13684         Add support for universal builds to <stdint.h>.
13685         * lib/stdint.in.h (PDFDIFF_MIN, PTRDIFF_MAX, SIZE_MAX): In Apple
13686         universal builds, define directly, using _LP64.
13687         * m4/stdint.m4 (gl_STDINT_TYPE_PROPERTIES): Require gl_MULTIARCH. In
13688         Apple universal builds, don't test for the size and suffix of ptrdiff_t
13689         and size_t.
13690         * modules/stdint (Depends-on): Add multiarch.
13691         (Makefile.am): Substitute APPLE_UNIVERSAL_BUILD.
13692
13693         New module 'multiarch'.
13694         * modules/multiarch: New file.
13695         * m4/multiarch.m4: New file.
13696
13697 2008-12-25  Bruno Haible  <bruno@clisp.org>
13698
13699         * gnulib-tool (func_create_testdir): Avoid failure of mv command.
13700
13701 2008-12-25  Bruno Haible  <bruno@clisp.org>
13702
13703         * modules/btowc (License): Relicense under LGPLv2+.
13704         * modules/mbsinit (License): Likewise.
13705         * modules/mbrtowc (License): Likewise.
13706         * modules/wcrtomb (License): Likewise.
13707         * modules/streq (License): Likewise.
13708         Reported by David Lutterkort <lutter@redhat.com>.
13709
13710 2008-12-23  Bruno Haible  <bruno@clisp.org>
13711
13712         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Fix conditional and comment.
13713
13714 2008-12-23  Bruno Haible  <bruno@clisp.org>
13715
13716         Module getaddrinfo requires linking with $(GETADDRINFO_LIB).
13717         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Put link options into
13718         GETADDRINFO_LIB, not in LIBS.
13719         * modules/getaddrinfo (Link): Set to $(GETADDRINFO_LIB).
13720         * modules/canon-host (Link): Likewise.
13721         * NEWS: Mention the change.
13722         * modules/getaddrinfo-tests (test_getaddrinfo_LDADD): Add the
13723         GETADDRINFO_LIB.
13724
13725 2008-12-22  Bruno Haible  <bruno@clisp.org>
13726
13727         * doc/posix-functions/iswalnum_l.texi: Mention limitation of wchar_t.
13728         * doc/posix-functions/iswalpha_l.texi: Likewise.
13729         * doc/posix-functions/iswblank_l.texi: Likewise.
13730         * doc/posix-functions/iswcntrl_l.texi: Likewise.
13731         * doc/posix-functions/iswctype_l.texi: Likewise.
13732         * doc/posix-functions/iswdigit_l.texi: Likewise.
13733         * doc/posix-functions/iswgraph_l.texi: Likewise.
13734         * doc/posix-functions/iswlower_l.texi: Likewise.
13735         * doc/posix-functions/iswprint_l.texi: Likewise.
13736         * doc/posix-functions/iswpunct_l.texi: Likewise.
13737         * doc/posix-functions/iswspace_l.texi: Likewise.
13738         * doc/posix-functions/iswupper_l.texi: Likewise.
13739         * doc/posix-functions/iswxdigit_l.texi: Likewise.
13740         * doc/posix-functions/mbsnrtowcs.texi: Likewise.
13741         * doc/posix-functions/open_wmemstream.texi: Likewise.
13742         * doc/posix-functions/swscanf.texi: Likewise.
13743         * doc/posix-functions/towctrans_l.texi: Likewise.
13744         * doc/posix-functions/towlower.texi: Likewise.
13745         * doc/posix-functions/towlower_l.texi: Likewise.
13746         * doc/posix-functions/towupper.texi: Likewise.
13747         * doc/posix-functions/towupper_l.texi: Likewise.
13748         * doc/posix-functions/vfwprintf.texi: Likewise.
13749         * doc/posix-functions/vfwscanf.texi: Likewise.
13750         * doc/posix-functions/vswscanf.texi: Likewise.
13751         * doc/posix-functions/vwprintf.texi: Likewise.
13752         * doc/posix-functions/vwscanf.texi: Likewise.
13753         * doc/posix-functions/wcpcpy.texi: Likewise.
13754         * doc/posix-functions/wcpncpy.texi: Likewise.
13755         * doc/posix-functions/wcscasecmp.texi: Likewise.
13756         * doc/posix-functions/wcscasecmp_l.texi: Likewise.
13757         * doc/posix-functions/wcscoll_l.texi: Likewise.
13758         * doc/posix-functions/wcsdup.texi: Likewise.
13759         * doc/posix-functions/wcsncasecmp.texi: Likewise.
13760         * doc/posix-functions/wcsncasecmp_l.texi: Likewise.
13761         * doc/posix-functions/wcsnlen.texi: Likewise.
13762         * doc/posix-functions/wcsnrtombs.texi: Likewise.
13763         * doc/posix-functions/wcsxfrm_l.texi: Likewise.
13764         * doc/posix-functions/wctrans_l.texi: Likewise.
13765         * doc/posix-functions/wctype_l.texi: Likewise.
13766         * doc/glibc-functions/fgetwc_unlocked.texi: Likewise.
13767         * doc/glibc-functions/fgetws_unlocked.texi: Likewise.
13768         * doc/glibc-functions/fputwc_unlocked.texi: Likewise.
13769         * doc/glibc-functions/fputws_unlocked.texi: Likewise.
13770         * doc/glibc-functions/getwc_unlocked.texi: Likewise.
13771         * doc/glibc-functions/getwchar_unlocked.texi: Likewise.
13772         * doc/glibc-functions/putwc_unlocked.texi: Likewise.
13773         * doc/glibc-functions/putwchar_unlocked.texi: Likewise.
13774         * doc/glibc-functions/wcschrnul.texi: Likewise.
13775         * doc/glibc-functions/wcsftime_l.texi: Likewise.
13776         * doc/glibc-functions/wcstod_l.texi: Likewise.
13777         * doc/glibc-functions/wcstof_l.texi: Likewise.
13778         * doc/glibc-functions/wcstol_l.texi: Likewise.
13779         * doc/glibc-functions/wcstold_l.texi: Likewise.
13780         * doc/glibc-functions/wcstoll_l.texi: Likewise.
13781         * doc/glibc-functions/wcstoq.texi: Likewise.
13782         * doc/glibc-functions/wcstoul_l.texi: Likewise.
13783         * doc/glibc-functions/wcstoull_l.texi: Likewise.
13784         * doc/glibc-functions/wcstouq.texi: Likewise.
13785         * doc/glibc-functions/wmempcpy.texi: Likewise.
13786
13787 2008-12-22  Ingo Weinhold  <ingo_weinhold@gmx.de>  (tiny change)
13788             Eric Blake  <ebb9@byu.net>
13789             Paolo Bonzini  <bonzini@gnu.org>
13790             Bruno Haible  <bruno@clisp.org>
13791
13792         Make c-stack work on Haiku.
13793         * lib/c-stack.c (SA_ONSTACK): Define fallback.
13794         (c_stack_action): Use SA_ONSTACK flag.
13795
13796 2008-12-22  Bruno Haible  <bruno@clisp.org>
13797
13798         * m4/locale-fr.m4 (gt_LOCALE_FR_UTF8): Treat Haiku like BeOS.
13799
13800 2008-12-22  Bruno Haible  <bruno@clisp.org>
13801
13802         Work around mbrlen() bugs on AIX, HP-UX, OSF/1, Solaris.
13803         * m4/mbrlen.m4 (gl_FUNC_MBRLEN): Set REPLACE_MBRLEN if mbrtowc is
13804         being overridden.
13805         (gl_MBRLEN_INCOMPLETE_STATE, gl_MBRLEN_RETVAL, gl_MBRLEN_NUL_RETVAL):
13806         New macros.
13807         * lib/wchar.in.h (mbrlen): Override if REPLACE_MBRLEN is set.
13808         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_MBRLEN.
13809         * modules/wchar (Makefile.am): Substitute REPLACE_MBRLEN.
13810         * doc/posix-functions/mbrlen.texi: Mention the various platform bugs.
13811
13812 2008-12-22  Bruno Haible  <bruno@clisp.org>
13813
13814         * m4/mbrtowc.m4 (gl_MBRTOWC_INCOMPLETE_STATE): Remove unused variable
13815         from test code.
13816
13817 2008-12-22  Eric Blake  <ebb9@byu.net>
13818
13819         Avoid gcc warnings on cygwin.
13820         * lib/regex_internal.c (re_string_reconstruct) [!RE_ENABLE_I18N]:
13821         Avoid unused variable.
13822         * lib/regexec.c (check_arrival_add_next_nodes) [!RE_ENABLE_I18N]:
13823         Likewise.
13824
13825 2008-12-22  Bruno Haible  <bruno@clisp.org>
13826
13827         Remove HAVE_MBRTOWC conditionals.
13828         * lib/mbscasecmp.c: Include mbuiter.h unconditionally.
13829         (mbscasecmp): Assume mbrtowc function.
13830         * lib/mbscasestr.c: Include mbuiter.h unconditionally.
13831         (knuth_morris_pratt_multibyte, mbscasestr): Assume mbrtowc function.
13832         * lib/mbschr.c: Include mbuiter.h unconditionally.
13833         (mbschr): Assume mbrtowc function.
13834         * lib/mbscspn.c: Include mbuiter.h unconditionally.
13835         (mbscspn): Assume mbrtowc function.
13836         * lib/mbslen.c: Include mbuiter.h unconditionally.
13837         (mbslen): Assume mbrtowc function.
13838         * lib/mbsncasecmp.c: Include mbuiter.h unconditionally.
13839         (mbsncasecmp): Assume mbrtowc function.
13840         * lib/mbsnlen.c: Include mbiter.h unconditionally.
13841         (mbsnlen): Assume mbrtowc function.
13842         * lib/mbspbrk.c: Include mbuiter.h unconditionally.
13843         (mbspbrk): Assume mbrtowc function.
13844         * lib/mbspcasecmp.c: Include mbuiter.h unconditionally.
13845         (mbspcasecmp): Assume mbrtowc function.
13846         * lib/mbsrchr.c: Include mbuiter.h unconditionally.
13847         (mbsrchr): Assume mbrtowc function.
13848         * lib/mbssep.c: Include mbuiter.h unconditionally.
13849         (mbssep): Assume mbrtowc function.
13850         * lib/mbsspn.c: Include mbuiter.h unconditionally.
13851         (mbsspn): Assume mbrtowc function.
13852         * lib/mbsstr.c: Include mbuiter.h unconditionally.
13853         (knuth_morris_pratt_multibyte, mbsstr): Assume mbrtowc function.
13854         * lib/mbstok_r.c: Include mbuiter.h unconditionally.
13855         (mbstok_r): Assume mbrtowc function.
13856         * lib/propername.c: Include mbuiter.h unconditionally.
13857         (mbsstr_trimmed_wordbounded): Assume mbrtowc function.
13858         * lib/trim.c: Include mbchar.h, mbiter.h uncondtionally.
13859         (trim2): Assume mbrtowc function.
13860         * lib/mbswidth.c (mbsinit): Remove fallback definition.
13861         (mbsnwidth): Assume mbrtowc function.
13862         * modules/mbswidth (Depends-on): Add mbrtowc, mbsinit.
13863         * lib/quotearg.c (MB_CUR_MAX, mbstate_t, mbrtowc, iswprint): Remove
13864         fallback definitions.
13865         * modules/quotearg (Depends-on): Add mbrtowc, mbsinit.
13866
13867 2008-12-22  Bruno Haible  <bruno@clisp.org>
13868
13869         * doc/posix-functions/mbtowc.texi: Mention a glibc bug.
13870
13871 2008-12-22  Paolo Bonzini  <bonzini@gnu.org>
13872
13873         * modules/regex: Request emulations for the mb*/wc* functions we need.
13874         * m4/regex.m4: Don't look for those functions here.
13875         * lib/regex_internal.h: Do not check HAVE_WCRTOMB and HAVE_MBRTOWC.
13876
13877 2008-12-22  Bruno Haible  <bruno@clisp.org>
13878
13879         * modules/fnmatch (Depends-on): Remove duplicated dependency.
13880
13881 2008-12-21  Bruno Haible  <bruno@clisp.org>
13882
13883         Make mbiter.h, mbuiter.h, mbfile.h usable unconditionally.
13884         * modules/mbiter (Depends-on): Add mbrtowc, mbsinit.
13885         (Include): Remove conditionalization.
13886         * modules/mbuiter (Depends-on): Add mbrtowc, mbsinit.
13887         (Include): Remove conditionalization.
13888         * modules/mbfile (Depends-on): Add mbrtowc, mbsinit.
13889         (Include): Remove conditionalization.
13890         * m4/mbiter.m4 (gl_MBITER): Deprecate the use of AC_FUNC_MBRTOWC.
13891         * m4/mbfile.m4 (gl_MBFILE): Likewise.
13892         * NEWS: Mention the change.
13893         Reported by Alan Hourihane <alanh@fairlite.co.uk>
13894         via Sergey Poznyakoff <gray@gnu.org.ua>.
13895
13896 2008-12-21  Bruno Haible  <bruno@clisp.org>
13897
13898         * MODULES.html.sh (Extended multibyte and wide character utilities
13899         <wchar.h>): Add btowc, wctob, mbsinit, mbrlen, mbrtowc, mbsrtowcs,
13900         wcrtomb, wcsrtombs.
13901         (Support for systems lacking POSIX:2008): Add accept, bind, close,
13902         connect, fclose, getpeername, getsockname, getsockopt, hostent, listen,
13903         mbsnrtowcs, posix_spawn*, recv, recvfrom, sched, select, send, sendto,
13904         setsockopt, shutdown, socket, spawn, sys_wait, wcsnrtombs, write.
13905
13906 2008-12-21  Bruno Haible  <bruno@clisp.org>
13907
13908         * MODULES.html.sh: Change section titles to refer to POSIX:2008.
13909
13910 2008-12-21  Bruno Haible  <bruno@clisp.org>
13911
13912         * modules/wcsnrtombs-tests: New file.
13913         * tests/test-wcsnrtombs1.sh: New file.
13914         * tests/test-wcsnrtombs2.sh: New file.
13915         * tests/test-wcsnrtombs3.sh: New file.
13916         * tests/test-wcsnrtombs4.sh: New file.
13917         * tests/test-wcsnrtombs.c: New file.
13918
13919         New module 'wcsnrtombs'.
13920         * lib/wchar.in.h (wcsnrtombs): New declaration.
13921         * lib/wcsnrtombs.c: New file.
13922         * lib/wcsrtombs-state.c: New file.
13923         * lib/wcsrtombs.c: Refer to _gl_wcsrtombs_state.
13924         (internal_state): Remove variable.
13925         * m4/wcsnrtombs.m4: New file.
13926         * m4/wcsrtombs.m4 (gl_FUNC_WCSRTOMBS): Add wcsrtombs-state.c to the
13927         compilation units.
13928         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSNRTOMBS,
13929         HAVE_WCSNRTOMBS.
13930         * modules/wchar (Makefile.am): Substitute GNULIB_WCSNRTOMBS,
13931         HAVE_WCSNRTOMBS.
13932         * modules/wcsnrtombs: New file.
13933         * modules/wcsrtombs (Files): Add lib/wcsrtombs-state.c.
13934         * doc/posix-functions/wcsnrtombs.texi: Mention the new module.
13935
13936 2008-12-21  Bruno Haible  <bruno@clisp.org>
13937
13938         * modules/wcsrtombs-tests: New file.
13939         * tests/test-wcsrtombs1.sh: New file.
13940         * tests/test-wcsrtombs2.sh: New file.
13941         * tests/test-wcsrtombs3.sh: New file.
13942         * tests/test-wcsrtombs4.sh: New file.
13943         * tests/test-wcsrtombs.c: New file.
13944
13945         New module 'wcsrtombs'.
13946         * lib/wchar.in.h (wcsrtombs): New declaration.
13947         * lib/wcsrtombs.c: New file.
13948         * m4/wcsrtombs.m4: New file.
13949         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSRTOMBS,
13950         HAVE_WCSRTOMBS, REPLACE_WCSRTOMBS.
13951         * modules/wchar (Makefile.am): Substitute GNULIB_WCSRTOMBS,
13952         HAVE_WCSRTOMBS, REPLACE_WCSRTOMBS.
13953         * modules/wcsrtombs: New file.
13954         * doc/posix-functions/wcsrtombs.texi: Mention the new module and the
13955         bugs.
13956
13957 2008-12-21  Bruno Haible  <bruno@clisp.org>
13958
13959         Work around a wcrtomb() bug on Solaris 10 and OSF/1 5.1.
13960         * lib/wchar.in.h (wcrtomb): Override if REPLACE_WCRTOMB is set.
13961         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Test the return value of wcrtomb
13962         with NULL destination argument in various locales. Set REPLACE_WCRTOMB
13963         if not correct.
13964         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_WCRTOMB.
13965         * modules/wchar (Makefile.am): Substitute REPLACE_WCRTOMB.
13966         * modules/wcrtomb (Files): Add m4/locale-fr.m4, m4/locale-ja.m4,
13967         m4/locale-zh.m4, m4/codeset.m4.
13968         * doc/posix-functions/wcrtomb.texi: Document the bug.
13969
13970 2008-12-21  Bruno Haible  <bruno@clisp.org>
13971
13972         Work around a btowc() bug on IRIX 6.5.
13973         * lib/wchar.in.h (btowc): Override if REPLACE_BTOWC is set.
13974         * m4/btowc.m4 (gl_FUNC_BTOWC): Test whether btowc(EOF) is correct. Set
13975         REPLACE_WTOBC if not.
13976         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_BTOWC.
13977         * modules/wchar (Makefile.am): Substitute REPLACE_BTOWC.
13978         * doc/posix-functions/btowc.texi: Mention the IRIX bug.
13979
13980 2008-12-21  Bruno Haible  <bruno@clisp.org>
13981
13982         * modules/wcrtomb-tests: New file.
13983         * tests/test-wcrtomb.sh: New file.
13984         * tests/test-wcrtomb.c: New file.
13985
13986         New module 'wcrtomb'.
13987         * lib/wchar.in.h (wcrtomb): New declaration.
13988         * lib/wcrtomb.c: New file.
13989         * m4/wcrtomb.m4: New file.
13990         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCRTOMB,
13991         HAVE_WCRTOMB.
13992         * modules/wchar (Makefile.am): Substitute GNULIB_WCRTOMB,
13993         HAVE_WCRTOMB.
13994         * modules/wcrtomb: New file.
13995         * doc/posix-functions/wcrtomb.texi: Mention the new module.
13996
13997 2008-12-21  Bruno Haible  <bruno@clisp.org>
13998
13999         * modules/mbrtowc (Files): Add m4/codeset.m4, needed by m4/locale-fr.m4.
14000         * modules/mbsrtowcs (Files): Likewise.
14001         * modules/wctob (Files): Likewise.
14002         * modules/c-strcase-tests (Files): Likewise.
14003         * modules/unistdio/u8-vasnprintf-tests (Files): Likewise.
14004         * modules/unistdio/u16-vasnprintf-tests (Files): Likewise.
14005         * modules/unistdio/u32-vasnprintf-tests (Files): Likewise.
14006         * modules/unistdio/ulc-vasnprintf-tests (Files): Likewise.
14007         * modules/vasnprintf-posix-tests (Files): Likewise.
14008
14009 2008-12-21  William Pursell  <bill.pursell@gmail.com>
14010
14011         gitlog-to-changelog: pass all command-line arguments to git-log
14012         * build-aux/gitlog-to-changelog: When producing a ChangeLog,
14013         it is sometimes convenient to filter the commits in various ways.
14014         gitlog-to-changelog only allows --since to specify a start date,
14015         but git-log itself supports many other filtering mechanisms.
14016         At the moment, I want to filter by branch name.  Rather than
14017         adding a --branch option to gitlog-to-changelog, it seems more
14018         flexible to simply pass all options directly to git-log and let
14019         git do the work.  Notice that this effectively makes --since a
14020         redundant option for gitlog-to-changelog, but removing it would
14021         require current usage to change since calls would then require
14022         an additional '--'.
14023
14024 2008-12-21  Bruno Haible  <bruno@clisp.org>
14025
14026         * modules/mbsnrtowcs-tests: New file.
14027         * tests/test-mbsnrtowcs1.sh: New file.
14028         * tests/test-mbsnrtowcs2.sh: New file.
14029         * tests/test-mbsnrtowcs3.sh: New file.
14030         * tests/test-mbsnrtowcs4.sh: New file.
14031         * tests/test-mbsnrtowcs.c: New file.
14032
14033         New module 'mbsnrtowcs'.
14034         * lib/wchar.in.h (mbsnrtowcs): New declaration.
14035         * lib/mbsnrtowcs.c: New file.
14036         * lib/mbsrtowcs-state.c: New file.
14037         * lib/mbsrtowcs.c: Refer to _gl_mbsrtowcs_state.
14038         (internal_state): Remove variable.
14039         * m4/mbsnrtowcs.m4: New file.
14040         * m4/mbsrtowcs.m4 (gl_FUNC_MBSRTOWCS): Add mbsrtowcs-state.c to the
14041         compilation units.
14042         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_MBSNRTOWCS,
14043         HAVE_MBSNRTOWCS, REPLACE_MBSNRTOWCS.
14044         * modules/wchar (Makefile.am): Substitute GNULIB_MBSNRTOWCS,
14045         HAVE_MBSNRTOWCS, REPLACE_MBSNRTOWCS.
14046         * modules/mbsnrtowcs: New file.
14047         * modules/mbsrtowcs (Files): Add lib/mbsrtowcs-state.c.
14048         * doc/posix-functions/mbsnrtowcs.texi: Mention the new module and a
14049         portability problem.
14050
14051 2008-12-21  Bruno Haible  <bruno@clisp.org>
14052
14053         Work around mbsrtowcs bug.
14054         * m4/mbsrtowcs.m4 (gl_MBSRTOWCS_WORKS): New macro.
14055         (gl_FUNC_MBSRTOWCS): Invoke it.
14056         * modules/mbsrtowcs (Files): Add m4/locale-fr.m4, m4/locale-ja.m4,
14057         m4/locale-zh.m4.
14058         * doc/posix-functions/mbsrtowcs.texi: Document the bug.
14059
14060 2008-12-21  Bruno Haible  <bruno@clisp.org>
14061
14062         * tests/test-mbsrtowcs.c (main): Execute the loop also for unlimited=1.
14063
14064 2008-12-21  Bruno Haible  <bruno@clisp.org>
14065
14066         Update doc for AIX.
14067         * doc/pastposix-functions/wcswcs.texi: Mention that AIX has only a
14068         16-bit wchar_t type.
14069         * doc/posix-functions/btowc.texi: Likewise.
14070         * doc/posix-functions/fgetwc.texi: Likewise.
14071         * doc/posix-functions/fgetws.texi: Likewise.
14072         * doc/posix-functions/fputwc.texi: Likewise.
14073         * doc/posix-functions/fputws.texi: Likewise.
14074         * doc/posix-functions/fwide.texi: Likewise.
14075         * doc/posix-functions/fwprintf.texi: Likewise.
14076         * doc/posix-functions/fwscanf.texi: Likewise.
14077         * doc/posix-functions/getwchar.texi: Likewise.
14078         * doc/posix-functions/getwc.texi: Likewise.
14079         * doc/posix-functions/iswalnum.texi: Likewise.
14080         * doc/posix-functions/iswalpha.texi: Likewise.
14081         * doc/posix-functions/iswblank.texi: Likewise.
14082         * doc/posix-functions/iswcntrl.texi: Likewise.
14083         * doc/posix-functions/iswctype.texi: Likewise.
14084         * doc/posix-functions/iswdigit.texi: Likewise.
14085         * doc/posix-functions/iswgraph.texi: Likewise.
14086         * doc/posix-functions/iswlower.texi: Likewise.
14087         * doc/posix-functions/iswprint.texi: Likewise.
14088         * doc/posix-functions/iswpunct.texi: Likewise.
14089         * doc/posix-functions/iswspace.texi: Likewise.
14090         * doc/posix-functions/iswupper.texi: Likewise.
14091         * doc/posix-functions/iswxdigit.texi: Likewise.
14092         * doc/posix-functions/mbrtowc.texi: Likewise.
14093         * doc/posix-functions/mbsrtowcs.texi: Likewise.
14094         * doc/posix-functions/mbstowcs.texi: Likewise.
14095         * doc/posix-functions/mbtowc.texi: Likewise.
14096         * doc/posix-functions/putwchar.texi: Likewise.
14097         * doc/posix-functions/putwc.texi: Likewise.
14098         * doc/posix-functions/swprintf.texi: Likewise.
14099         * doc/posix-functions/tolower.texi: Likewise.
14100         * doc/posix-functions/toupper.texi: Likewise.
14101         * doc/posix-functions/towctrans.texi: Likewise.
14102         * doc/posix-functions/ungetwc.texi: Likewise.
14103         * doc/posix-functions/vswprintf.texi: Likewise.
14104         * doc/posix-functions/wcrtomb.texi: Likewise.
14105         * doc/posix-functions/wcscat.texi: Likewise.
14106         * doc/posix-functions/wcschr.texi: Likewise.
14107         * doc/posix-functions/wcscmp.texi: Likewise.
14108         * doc/posix-functions/wcscoll.texi: Likewise.
14109         * doc/posix-functions/wcscpy.texi: Likewise.
14110         * doc/posix-functions/wcscspn.texi: Likewise.
14111         * doc/posix-functions/wcsftime.texi: Likewise.
14112         * doc/posix-functions/wcslen.texi: Likewise.
14113         * doc/posix-functions/wcsncat.texi: Likewise.
14114         * doc/posix-functions/wcsncmp.texi: Likewise.
14115         * doc/posix-functions/wcsncpy.texi: Likewise.
14116         * doc/posix-functions/wcspbrk.texi: Likewise.
14117         * doc/posix-functions/wcsrchr.texi: Likewise.
14118         * doc/posix-functions/wcsrtombs.texi: Likewise.
14119         * doc/posix-functions/wcsspn.texi: Likewise.
14120         * doc/posix-functions/wcsstr.texi: Likewise.
14121         * doc/posix-functions/wcstod.texi: Likewise.
14122         * doc/posix-functions/wcstof.texi: Likewise.
14123         * doc/posix-functions/wcstoimax.texi: Likewise.
14124         * doc/posix-functions/wcstok.texi: Likewise.
14125         * doc/posix-functions/wcstold.texi: Likewise.
14126         * doc/posix-functions/wcstoll.texi: Likewise.
14127         * doc/posix-functions/wcstol.texi: Likewise.
14128         * doc/posix-functions/wcstombs.texi: Likewise.
14129         * doc/posix-functions/wcstoull.texi: Likewise.
14130         * doc/posix-functions/wcstoul.texi: Likewise.
14131         * doc/posix-functions/wcstoumax.texi: Likewise.
14132         * doc/posix-functions/wcswidth.texi: Likewise.
14133         * doc/posix-functions/wcsxfrm.texi: Likewise.
14134         * doc/posix-functions/wctob.texi: Likewise.
14135         * doc/posix-functions/wctomb.texi: Likewise.
14136         * doc/posix-functions/wctrans.texi: Likewise.
14137         * doc/posix-functions/wctype.texi: Likewise.
14138         * doc/posix-functions/wcwidth.texi: Likewise.
14139         * doc/posix-functions/wmemchr.texi: Likewise.
14140         * doc/posix-functions/wmemcmp.texi: Likewise.
14141         * doc/posix-functions/wmemcpy.texi: Likewise.
14142         * doc/posix-functions/wmemmove.texi: Likewise.
14143         * doc/posix-functions/wmemset.texi: Likewise.
14144         * doc/posix-functions/wprintf.texi: Likewise.
14145         * doc/posix-functions/wscanf.texi: Likewise.
14146
14147 2008-12-21  Bruno Haible  <bruno@clisp.org>
14148
14149         Update doc for HP-UX 11.11.
14150         * doc/posix-functions/btowc.texi: Clarify that the function is missing
14151         in HP-UX version 11.00, not in all versions of HP-UX 11.
14152         * doc/posix-functions/fwide.texi: Likewise.
14153         * doc/posix-functions/fwprintf.texi: Likewise.
14154         * doc/posix-functions/fwscanf.texi: Likewise.
14155         * doc/posix-functions/inet_ntop.texi: Likewise.
14156         * doc/posix-functions/inet_pton.texi: Likewise.
14157         * doc/posix-functions/mbrlen.texi: Likewise.
14158         * doc/posix-functions/mbrtowc.texi: Likewise.
14159         * doc/posix-functions/mbsinit.texi: Likewise.
14160         * doc/posix-functions/mbsrtowcs.texi: Likewise.
14161         * doc/posix-functions/swprintf.texi: Likewise.
14162         * doc/posix-functions/swscanf.texi: Likewise.
14163         * doc/posix-functions/towctrans.texi: Likewise.
14164         * doc/posix-functions/vfwprintf.texi: Likewise.
14165         * doc/posix-functions/vswprintf.texi: Likewise.
14166         * doc/posix-functions/vwprintf.texi: Likewise.
14167         * doc/posix-functions/wcrtomb.texi: Likewise.
14168         * doc/posix-functions/wcsrtombs.texi: Likewise.
14169         * doc/posix-functions/wcsstr.texi: Likewise.
14170         * doc/posix-functions/wctob.texi: Likewise.
14171         * doc/posix-functions/wctrans.texi: Likewise.
14172         * doc/posix-functions/wmemchr.texi: Likewise.
14173         * doc/posix-functions/wmemcmp.texi: Likewise.
14174         * doc/posix-functions/wmemcpy.texi: Likewise.
14175         * doc/posix-functions/wmemmove.texi: Likewise.
14176         * doc/posix-functions/wmemset.texi: Likewise.
14177         * doc/posix-functions/wprintf.texi: Likewise.
14178         * doc/posix-functions/wscanf.texi: Likewise.
14179
14180 2008-12-21  Bruno Haible  <bruno@clisp.org>
14181
14182         Work around a portability problem.
14183         * tests/test-mbsrtowcs.c (main): Use a temporary conversion state.
14184         * doc/posix-functions/mbsrtowcs.texi: Document the portability problem.
14185
14186 2008-12-20  Bruno Haible  <bruno@clisp.org>
14187
14188         * lib/wchar.in.h (mbsrtowcs): Redefine if REPLACE_MBSRTOWCS is set.
14189         * m4/mbsrtowcs.m4 (gl_FUNC_MBSRTOWCS): Invoke gl_MBSTATE_T_BROKEN. Set
14190         REPLACE_MBSRTOWCS if mbsrtowcs needs to be overridden.
14191         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_MBSRTOWCS.
14192         * modules/wchar (Makefile.am): Substitute REPLACE_MBSRTOWCS.
14193
14194         Work around mbrtowc bugs on AIX, HP-UX, OSF/1, Solaris.
14195         * lib/wchar.in.h (mbstate_t): Redefine also if REPLACE_MBSTATE_T is
14196         set.
14197         (GNULIB_defined_mbstate_t): New macro.
14198         (mbsinit): Redefine if REPLACE_MBSINIT is set.
14199         (mbrtowc): Redefine if REPLACE_MBRTOWC is set.
14200         * lib/mbrtowc.c (rpl_mbrtowc): Add an alternative implementation that
14201         reuses the system's mbrtowc function but works around the bugs.
14202         * m4/mbrtowc.m4 (gl_MBSTATE_T_BROKEN, gl_MBRTOWC_INCOMPLETE_STATE,
14203         gl_MBRTOWC_NULL_ARG, gl_MBRTOWC_RETVAL, gl_MBRTOWC_NUL_RETVAL): New
14204         macros.
14205         (gl_FUNC_MBRTOWC): Invoke them. Set REPLACE_MBRTOWC if mbrtowc needs to
14206         be overridden. Optionally define MBRTOWC_NULL_ARG_BUG,
14207         MBRTOWC_RETVAL_BUG, MBRTOWC_NUL_RETVAL_BUG.
14208         * m4/mbsinit.m4 (gl_FUNC_MBSINIT): Invoke gl_MBSTATE_T_BROKEN. Set
14209         REPLACE_MBSINIT if mbsinit needs to be overridden.
14210         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_MBSTATE_T,
14211         REPLACE_MBSINIT, REPLACE_MBRTOWC.
14212         * modules/wchar (Makefile.am): Substitute REPLACE_MBSTATE_T,
14213         REPLACE_MBSINIT, REPLACE_MBRTOWC.
14214         * modules/mbrtowc (Files): Add m4/locale-fr.m4, m4/locale-ja.m4,
14215         m4/locale-zh.m4.
14216         (Depends): Add mbsinit.
14217         * modules/mbsinit (Depends): Add mbrtowc.
14218         * doc/posix-functions/mbrtowc.texi: Mention the various bugs.
14219
14220 2008-12-20  Bruno Haible  <bruno@clisp.org>
14221
14222         * tests/test-mbrtowc.c (main): Change sample string in EUC-JP encoding
14223         so that there are no conversion errors on AIX.
14224         * tests/test-mbsrtowcs.c (main): LIkewise.
14225
14226 2008-12-20  Bruno Haible  <bruno@clisp.org>
14227
14228         Work around wctob bug on Solaris <= 9.
14229         * lib/wchar.in.h (wctob): Redefine if REPLACE_WCTOB is set.
14230         * m4/wctob.m4 (gl_FUNC_WCTOB): Test whether wctob works.
14231         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_WCTOB.
14232         * modules/wchar (Makefile.am): Substitute REPLACE_WCTOB.
14233         * modules/wctob (Files): Add m4/locale-fr.m4.
14234         * doc/posix-functions/wctob.texi: Mention the Solaris bug.
14235
14236 2008-12-20  Bruno Haible  <bruno@clisp.org>
14237
14238         * doc/posix-functions/select.texi: Mention Solaris 2.6 bug with
14239         /dev/null.
14240         * tests/test-select-in.sh: Likewise.
14241         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
14242
14243 2008-12-20  Bruno Haible  <bruno@clisp.org>
14244
14245         Don't pretend that Cygwin has a ja_JP.EUC-JP locale.
14246         * m4/locale-ja.m4 (gt_LOCALE_JA): Add test for MB_CUR_MAX. Needed on
14247         Cygwin 1.5.x.
14248
14249 2008-12-20  Bruno Haible  <bruno@clisp.org>
14250
14251         Ensure mbstate_t is defined on HP-UX 11.11.
14252         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS): Require
14253         AC_CANONICAL_HOST. On HP-UX, define _XOPEN_SOURCE to 500.
14254         * m4/mbstate_t.m4 (AC_TYPE_MBSTATE_T): Require
14255         AC_USE_SYSTEM_EXTENSIONS.
14256         * modules/fnmatch (Depends-on): Add extensions.
14257         * modules/mbrlen (Depends-on): Likewise.
14258         * modules/mbrtowc (Depends-on): Likewise.
14259         * modules/mbsinit (Depends-on): Likewise.
14260         * modules/mbsrtowcs (Depends-on): Likewise.
14261         * modules/mbswidth (Depends-on): Likewise.
14262         * modules/quotearg (Depends-on): Likewise.
14263         * modules/strftime (Depends-on): Likewise.
14264
14265 2008-12-20  Bruno Haible  <bruno@clisp.org>
14266
14267         Ensure wctob is declared on IRIX 6.5.
14268         * lib/wchar.in.h (wctob): Declare also when HAVE_DECL_WCTOB is 0.
14269         * m4/wctob.m4 (gl_FUNC_WCTOB): Set HAVE_DECL_WCTOB instead of
14270         HAVE_WCTOB. Also test whether <wchar.h> declares wctob.
14271         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize HAVE_DECL_WCTOB instead
14272         of HAVE_WCTOB.
14273         * modules/wchar (Makefile.am): Substitute HAVE_DECL_WCTOB instead of
14274         HAVE_WCTOB.
14275         * doc/posix-functions/wctob.texi: Mention missing declaration on IRIX.
14276
14277 2008-12-19  Bruno Haible  <bruno@clisp.org>
14278
14279         * modules/mbsrtowcs-tests: New file.
14280         * tests/test-mbsrtowcs1.sh: New file.
14281         * tests/test-mbsrtowcs2.sh: New file.
14282         * tests/test-mbsrtowcs3.sh: New file.
14283         * tests/test-mbsrtowcs4.sh: New file.
14284         * tests/test-mbsrtowcs.c: New file.
14285
14286         New module 'mbsrtowcs'.
14287         * lib/wchar.in.h (mbsrtowcs): New declaration.
14288         * lib/mbsrtowcs.c: New file.
14289         * m4/mbsrtowcs.m4: New file.
14290         * modules/mbsrtowcs: New file.
14291         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_MBSRTOWCS and
14292         HAVE_MBSRTOWCS.
14293         * modules/wchar (Makefile.am): Substitute GNULIB_MBSRTOWCS and
14294         HAVE_MBSRTOWCS.
14295         * doc/posix-functions/mbsrtowcs.texi: Document the new module.
14296
14297 2008-12-19  Bruno Haible  <bruno@clisp.org>
14298
14299         New module 'mbrlen'.
14300         * lib/wchar.in.h (mbrlen): New declaration.
14301         * lib/mbrlen.c: New file.
14302         * m4/mbrlen.m4: New file.
14303         * modules/mbrlen: New file.
14304         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_MBRLEN and
14305         HAVE_MBRLEN.
14306         * modules/wchar (Makefile.am): Substitute GNULIB_MBRLEN and
14307         HAVE_MBRLEN.
14308         * doc/posix-functions/mbrlen.texi: Document the new module.
14309
14310 2008-12-19  Bruno Haible  <bruno@clisp.org>
14311
14312         * lib/mbrtowc.c: Include verify.h. Verify an assumption.
14313         * modules/mbrtowc (Depends-on): Add verify.
14314         Suggested by Paul Eggert.
14315
14316 2008-12-18  Bruno Haible  <bruno@clisp.org>
14317
14318         * modules/mbsinit-tests: New file.
14319         * tests/test-mbsinit.sh: New file.
14320         * tests/test-mbsinit.c: New file.
14321
14322 2008-12-18  Bruno Haible  <bruno@clisp.org>
14323
14324         * modules/mbrtowc-tests: New file.
14325         * tests/test-mbrtowc1.sh: New file.
14326         * tests/test-mbrtowc2.sh: New file.
14327         * tests/test-mbrtowc3.sh: New file.
14328         * tests/test-mbrtowc4.sh: New file.
14329         * tests/test-mbrtowc.c: New file.
14330
14331         New module 'mbrtowc'.
14332         * lib/wchar.in.h (mbstate_t): Override when the system does not have
14333         mbsinit and mbrtowc.
14334         (mbrtowc): New declaration.
14335         * lib/mbrtowc.c: New file.
14336         * m4/mbrtowc.m4 (gl_FUNC_MBRTOWC, gl_PREREQ_MBRTOWC): New macros.
14337         * modules/mbrtowc: New file.
14338         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_MBRTOWC and
14339         HAVE_MBRTOWC.
14340         * modules/wchar (Makefile.am): Substitute GNULIB_MBRTOWC and
14341         HAVE_MBRTOWC.
14342         * doc/posix-functions/mbrtowc.texi: Document the new module.
14343
14344 2008-12-18  Bruno Haible  <bruno@clisp.org>
14345
14346         New module 'wctob'.
14347         * lib/wchar.in.h (wctob): New declaration.
14348         * lib/wctob.c: New file.
14349         * m4/wctob.m4: New file.
14350         * modules/wctob: New file.
14351         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCTOB and
14352         HAVE_WCTOB.
14353         * modules/wchar (Makefile.am): Substitute GNULIB_WCTOB and HAVE_WCTOB.
14354         * doc/posix-functions/wctob.texi: Document the new module.
14355
14356 2008-12-18  Bruno Haible  <bruno@clisp.org>
14357
14358         * m4/mbsinit.m4 (gl_FUNC_MBSINIT): Invoke gl_REPLACE_WCHAR_H.
14359         * m4/btowc.m4 (gl_FUNC_BTOWC): Likewise.
14360
14361 2008-12-18  Simon Josefsson  <simon@josefsson.org>
14362
14363         * lib/flock.c: Use proper #if symbol in check.  Reported by "Tom
14364         G. Christensen" <tgc@jupiterrise.com>.
14365
14366         * lib/flock.c: Need to include errno.h.  Reported by "Tom
14367         G. Christensen" <tgc@jupiterrise.com>.
14368
14369         * lib/flock.c: Need to include string.h.  Reported by "Tom
14370         G. Christensen" <tgc@jupiterrise.com> and Eric Blake
14371         <ebb9@byu.net>.
14372
14373 2008-12-18  Bruno Haible  <bruno@clisp.org>
14374
14375         * m4/locale-ja.m4: New file, from GNU gettext.
14376
14377 2008-12-17  Bruno Haible  <bruno@clisp.org>
14378
14379         * m4/mbrtowc.m4 (AC_FUNC_MBRTOWC): Don't override in autoconf >= 2.60.
14380         Suggested by Eric Blake.
14381
14382 2008-12-17  Bruno Haible  <bruno@clisp.org>
14383
14384         * m4/errno_h.m4 (AC_COMPUTE_INT): Provide fallback definition.
14385
14386 2008-12-17  Bruno Haible  <bruno@clisp.org>
14387
14388         * lib/mbsinit.c: Include verify.h. Verify an assumption.
14389         * modules/mbsinit (Depends-on): Add verify.
14390         Suggested by Paul Eggert.
14391
14392 2008-12-17  Bruno Haible  <bruno@clisp.org>
14393
14394         * m4/mbrtowc.m4 (AC_FUNC_MBRTOWC): Renamed from gl_FUNC_MBRTOWC.
14395         * m4/mbfile.m4 (gl_MBFILE): Use AC_FUNC_MBRTOWC instead of
14396         gl_FUNC_MBRTOWC.
14397         * m4/mbiter.m4 (gl_MBITER): LIkewise.
14398         * m4/mbscasecmp.m4 (gl_PREREQ_MBSCASECMP): Likewise.
14399         * m4/mbscasestr.m4 (gl_PREREQ_MBSCASESTR): Likewise.
14400         * m4/mbschr.m4 (gl_PREREQ_MBSCHR): Likewise.
14401         * m4/mbscspn.m4 (gl_PREREQ_MBSCSPN): Likewise.
14402         * m4/mbslen.m4 (gl_PREREQ_MBSLEN): Likewise.
14403         * m4/mbsncasecmp.m4 (gl_PREREQ_MBSNCASECMP): Likewise.
14404         * m4/mbsnlen.m4 (gl_PREREQ_MBSNLEN): Likewise.
14405         * m4/mbspbrk.m4 (gl_PREREQ_MBSPBRK): Likewise.
14406         * m4/mbspcasecmp.m4 (gl_PREREQ_MBSPCASECMP): Likewise.
14407         * m4/mbsrchr.m4 (gl_PREREQ_MBSRCHR): Likewise.
14408         * m4/mbssep.m4 (gl_PREREQ_MBSSEP): Likewise.
14409         * m4/mbsspn.m4 (gl_PREREQ_MBSSPN): Likewise.
14410         * m4/mbsstr.m4 (gl_PREREQ_MBSSTR): Likewise.
14411         * m4/mbstok_r.m4 (gl_PREREQ_MBSTOK_R): Likewise.
14412         * m4/mbswidth.m4 (gl_MBSWIDTH): Likewise.
14413         * m4/quotearg.m4 (gl_QUOTEARG): Likewise.
14414         * modules/trim (configure.ac): Likewise.
14415
14416 2008-12-17  Bruno Haible  <bruno@clisp.org>
14417
14418         * modules/btowc-tests: New file.
14419         * tests/test-btowc1.sh: New file.
14420         * tests/test-btowc2.sh: New file.
14421         * tests/test-btowc.c: New file.
14422
14423         New module 'btowc'.
14424         * lib/wchar.in.h (btowc): New declaration.
14425         * lib/btowc.c: New file.
14426         * m4/btowc.m4: New file.
14427         * modules/btowc: New file.
14428         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_BTOWC and
14429         HAVE_BTOWC.
14430         * modules/wchar (Makefile.am): Substitute GNULIB_BTOWC and HAVE_BTOWC.
14431         * doc/posix-functions/btowc.texi: Document the new module.
14432
14433 2008-12-17  Bruno Haible  <bruno@clisp.org>
14434
14435         New module 'mbsinit'.
14436         * lib/wchar.in.h (mbsinit): New declaration.
14437         * lib/mbsinit.c: New file.
14438         * m4/mbsinit.m4: New file.
14439         * modules/mbsinit: New file.
14440         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_MBSINIT and
14441         HAVE_MBSINIT.
14442         * modules/wchar (Makefile.am): Substitute GNULIB_MBSINIT and
14443         HAVE_MBSINIT.
14444         * doc/posix-functions/mbsinit.texi: Document the new module.
14445
14446 2008-12-16  Bruno Haible  <bruno@clisp.org>
14447
14448         * lib/unistd.in.h: Add comment.
14449         * tests/test-environ.c: Don't include <stdlib.h>.
14450
14451 2008-12-16  Bruno Haible  <bruno@clisp.org>
14452
14453         * lib/parse-duration.h (parse_duration): Document return value
14454         convention.
14455         * lib/parse-duration.c: Include specification header first. Add
14456         comments.
14457         (_): Remove macro.
14458         (parse_year_month_day, parse_hour_minute_second): Move side effects
14459         outside of strchr call.
14460         (parse_non_iso8601): Move side effects outside of isspace call.
14461         (parse_duration): Don't test errno is res != BAD_TIME. Remove fprintf
14462         call.
14463
14464 2008-12-16  Bruno Haible  <bruno@clisp.org>
14465
14466         * tests/test-parse-duration.sh: Produce no output when the test
14467         succeeds.
14468
14469 2008-12-16  Bruno Haible  <bruno@clisp.org>
14470
14471         * tests/test-parse-duration.sh: Fix quoting of $tmp and $tmpf
14472         expressions.
14473
14474 2008-12-15  Bruno Haible  <bruno@clisp.org>
14475
14476         * doc/glibc-functions/fgetxattr.texi: Tweak wording.
14477         * doc/glibc-functions/flistxattr.texi: Likewise.
14478         * doc/glibc-functions/fopencookie.texi: Likewise.
14479         * doc/glibc-functions/fremovexattr.texi: Likewise.
14480         * doc/glibc-functions/fsetxattr.texi: Likewise.
14481         * doc/glibc-functions/getxattr.texi: Likewise.
14482         * doc/glibc-functions/lgetxattr.texi: Likewise.
14483         * doc/glibc-functions/listxattr.texi: Likewise.
14484         * doc/glibc-functions/llistxattr.texi: Likewise.
14485         * doc/glibc-functions/lremovexattr.texi: Likewise.
14486         * doc/glibc-functions/lsetxattr.texi: Likewise.
14487         * doc/glibc-functions/removexattr.texi: Likewise.
14488         * doc/glibc-functions/setxattr.texi: Likewise.
14489         * doc/posix-functions/open_memstream.texi: Likewise.
14490
14491 2008-12-15  Eric Blake  <ebb9@byu.net>
14492
14493         Update doc for cygwin 1.7.
14494         * doc/posix-functions/faccessat.texi: Cygwin 1.7 added several new
14495         functions.
14496         * doc/posix-functions/fchmodat.texi: Likewise.
14497         * doc/posix-functions/fchownat.texi: Likewise.
14498         * doc/posix-functions/fdopendir.texi: Likewise.
14499         * doc/posix-functions/fmemopen.texi: Likewise.
14500         * doc/posix-functions/freeaddrinfo.texi: Likewise.
14501         * doc/posix-functions/fstatat.texi: Likewise.
14502         * doc/posix-functions/futimens.texi: Likewise.
14503         * doc/posix-functions/gai_strerror.texi: Likewise.
14504         * doc/posix-functions/getaddrinfo.texi: Likewise.
14505         * doc/posix-functions/getnameinfo.texi: Likewise.
14506         * doc/posix-functions/if_freenameindex.texi: Likewise.
14507         * doc/posix-functions/if_indextoname.texi: Likewise.
14508         * doc/posix-functions/if_nameindex.texi: Likewise.
14509         * doc/posix-functions/if_nametoindex.texi: Likewise.
14510         * doc/posix-functions/insque.texi: Likewise.
14511         * doc/posix-functions/linkat.texi: Likewise.
14512         * doc/posix-functions/llrint.texi: Likewise.
14513         * doc/posix-functions/llrintf.texi: Likewise.
14514         * doc/posix-functions/llrintl.texi: Likewise.
14515         * doc/posix-functions/lockf.texi: Likewise.
14516         * doc/posix-functions/lrintl.texi: Likewise.
14517         * doc/posix-functions/mkdirat.texi: Likewise.
14518         * doc/posix-functions/mkfifoat.texi: Likewise.
14519         * doc/posix-functions/mknodat.texi: Likewise.
14520         * doc/posix-functions/mq_close.texi: Likewise.
14521         * doc/posix-functions/mq_getattr.texi: Likewise.
14522         * doc/posix-functions/mq_notify.texi: Likewise.
14523         * doc/posix-functions/mq_open.texi: Likewise.
14524         * doc/posix-functions/mq_receive.texi: Likewise.
14525         * doc/posix-functions/mq_send.texi: Likewise.
14526         * doc/posix-functions/mq_setattr.texi: Likewise.
14527         * doc/posix-functions/mq_timedreceive.texi: Likewise.
14528         * doc/posix-functions/mq_timedsend.texi: Likewise.
14529         * doc/posix-functions/mq_unlink.texi: Likewise.
14530         * doc/posix-functions/open_memstream.texi: Likewise.
14531         * doc/posix-functions/openat.texi: Likewise.
14532         * doc/posix-functions/posix_fadvise.texi: Likewise.
14533         * doc/posix-functions/posix_fallocate.texi: Likewise.
14534         * doc/posix-functions/posix_madvise.texi: Likewise.
14535         * doc/posix-functions/posix_memalign.texi: Likewise.
14536         * doc/posix-functions/posix_openpt.texi: Likewise.
14537         * doc/posix-functions/readlinkat.texi: Likewise.
14538         * doc/posix-functions/remque.texi: Likewise.
14539         * doc/posix-functions/renameat.texi: Likewise.
14540         * doc/posix-functions/rintl.texi: Likewise.
14541         * doc/posix-functions/sem_unlink.texi: Likewise.
14542         * doc/posix-functions/shm_open.texi: Likewise.
14543         * doc/posix-functions/shm_unlink.texi: Likewise.
14544         * doc/posix-functions/signgam.texi: Likewise.
14545         * doc/posix-functions/sigset.texi: Likewise.
14546         * doc/posix-functions/stpcpy.texi: Likewise.
14547         * doc/posix-functions/stpncpy.texi: Likewise.
14548         * doc/posix-functions/strerror.texi: Likewise.
14549         * doc/posix-functions/strtod.texi: Likewise.
14550         * doc/posix-functions/symlinkat.texi: Likewise.
14551         * doc/posix-functions/unlinkat.texi: Likewise.
14552         * doc/posix-functions/utimensat.texi: Likewise.
14553         * doc/glibc-functions/bindresvport.texi: Likewise.
14554         * doc/glibc-functions/dn_expand.texi: Likewise.
14555         * doc/glibc-functions/exp10.texi: Likewise.
14556         * doc/glibc-functions/exp10f.texi: Likewise.
14557         * doc/glibc-functions/fgetxattr.texi: Likewise.
14558         * doc/glibc-functions/flistxattr.texi: Likewise.
14559         * doc/glibc-functions/fopencookie.texi: Likewise.
14560         * doc/glibc-functions/freeifaddrs.texi: Likewise.
14561         * doc/glibc-functions/fremovexattr.texi: Likewise.
14562         * doc/glibc-functions/fsetxattr.texi: Likewise.
14563         * doc/glibc-functions/getifaddrs.texi: Likewise.
14564         * doc/glibc-functions/getxattr.texi: Likewise.
14565         * doc/glibc-functions/lgetxattr.texi: Likewise.
14566         * doc/glibc-functions/listxattr.texi: Likewise.
14567         * doc/glibc-functions/llistxattr.texi: Likewise.
14568         * doc/glibc-functions/lremovexattr.texi: Likewise.
14569         * doc/glibc-functions/lsetxattr.texi: Likewise.
14570         * doc/glibc-functions/pow10.texi: Likewise.
14571         * doc/glibc-functions/pow10f.texi: Likewise.
14572         * doc/glibc-functions/rcmd_af.texi: Likewise.
14573         * doc/glibc-functions/removexattr.texi: Likewise.
14574         * doc/glibc-functions/res_init.texi: Likewise.
14575         * doc/glibc-functions/res_mkquery.texi: Likewise.
14576         * doc/glibc-functions/res_query.texi: Likewise.
14577         * doc/glibc-functions/res_querydomain.texi: Likewise.
14578         * doc/glibc-functions/res_send.texi: Likewise.
14579         * doc/glibc-functions/rresvport_af.texi: Likewise.
14580         * doc/glibc-functions/setxattr.texi: Likewise.
14581         * doc/glibc-functions/strcasestr.texi: Likewise.
14582
14583 2008-12-15  Bruno Haible  <bruno@clisp.org>
14584
14585         Fix compilation error on OSF/1 4.0.
14586         * lib/sys_select.in.h: When invoked from OSF/1 <sys/types.h> or
14587         <sys/time.h>, simply delegate to the system header.
14588         Reported by Daniel Richard G. <oss@teragram.com>.
14589
14590 2008-12-15  Bruno Haible  <bruno@clisp.org>
14591
14592         * doc/posix-functions/openat.texi: Mention the 'openat' module.
14593         * doc/posix-functions/fchmodat.texi: Likewise.
14594         * doc/posix-functions/fchownat.texi: Likewise.
14595         * doc/posix-functions/fdopendir.texi: Likewise.
14596         * doc/posix-functions/fstatat.texi: Likewise.
14597         * doc/posix-functions/mkdirat.texi: Likewise.
14598         * doc/posix-functions/unlinkat.texi: Likewise.
14599
14600 2008-12-14  Bruno Haible  <bruno@clisp.org>
14601
14602         Update doc for POSIX:2008.
14603         * doc/posix-functions/faccessat.texi: New file.
14604         * doc/posix-functions/fchmodat.texi: New file.
14605         * doc/posix-functions/fchownat.texi: New file.
14606         * doc/posix-functions/fdopendir.texi: New file.
14607         * doc/posix-functions/fstatat.texi: New file.
14608         * doc/posix-functions/futimens.texi: New file.
14609         * doc/posix-functions/linkat.texi: New file.
14610         * doc/posix-functions/mkdirat.texi: New file.
14611         * doc/posix-functions/mkfifoat.texi: New file.
14612         * doc/posix-functions/mknodat.texi: New file.
14613         * doc/posix-functions/open_wmemstream.texi: New file.
14614         * doc/posix-functions/openat.texi: New file.
14615         * doc/posix-functions/psiginfo.texi: New file.
14616         * doc/posix-functions/pthread_mutex_consistent.texi: New file.
14617         * doc/posix-functions/pthread_mutexattr_getrobust.texi: New file.
14618         * doc/posix-functions/pthread_mutexattr_setrobust.texi: New file.
14619         * doc/posix-functions/readlinkat.texi: New file.
14620         * doc/posix-functions/renameat.texi: New file.
14621         * doc/posix-functions/strerror_l.texi: New file.
14622         * doc/posix-functions/symlinkat.texi: New file.
14623         * doc/posix-functions/unlinkat.texi: New file.
14624         * doc/posix-functions/utimensat.texi: New file.
14625         * doc/gnulib.texi (Function Substitutes): Add these subsections.
14626
14627 2008-12-14  Bruno Haible  <bruno@clisp.org>
14628
14629         Update doc for POSIX:2008.
14630         * doc/posix-functions/alphasort.texi: Renamed from
14631         doc/glibc-functions/alphasort.texi.
14632         * doc/posix-functions/dirfd.texi: Renamed from
14633         doc/glibc-functions/dirfd.texi.
14634         * doc/posix-functions/dprintf.texi: Renamed from
14635         doc/glibc-functions/dprintf.texi.
14636         * doc/posix-functions/duplocale.texi: Renamed from
14637         doc/glibc-functions/duplocale.texi.
14638         * doc/posix-functions/fexecve.texi: Renamed from
14639         doc/glibc-functions/fexecve.texi.
14640         * doc/posix-functions/fmemopen.texi: Renamed from
14641         doc/glibc-functions/fmemopen.texi.
14642         * doc/posix-functions/freelocale.texi: Renamed from
14643         doc/glibc-functions/freelocale.texi.
14644         * doc/posix-functions/getdate_err.texi: Renamed from
14645         doc/glibc-functions/getdate_err.texi.
14646         * doc/posix-functions/isalnum_l.texi: Renamed from
14647         doc/glibc-functions/isalnum_l.texi.
14648         * doc/posix-functions/isalpha_l.texi: Renamed from
14649         doc/glibc-functions/isalpha_l.texi.
14650         * doc/posix-functions/isblank_l.texi: Renamed from
14651         doc/glibc-functions/isblank_l.texi.
14652         * doc/posix-functions/iscntrl_l.texi: Renamed from
14653         doc/glibc-functions/iscntrl_l.texi.
14654         * doc/posix-functions/isdigit_l.texi: Renamed from
14655         doc/glibc-functions/isdigit_l.texi.
14656         * doc/posix-functions/isgraph_l.texi: Renamed from
14657         doc/glibc-functions/isgraph_l.texi.
14658         * doc/posix-functions/islower_l.texi: Renamed from
14659         doc/glibc-functions/islower_l.texi.
14660         * doc/posix-functions/isprint_l.texi: Renamed from
14661         doc/glibc-functions/isprint_l.texi.
14662         * doc/posix-functions/ispunct_l.texi: Renamed from
14663         doc/glibc-functions/ispunct_l.texi.
14664         * doc/posix-functions/isspace_l.texi: Renamed from
14665         doc/glibc-functions/isspace_l.texi.
14666         * doc/posix-functions/isupper_l.texi: Renamed from
14667         doc/glibc-functions/isupper_l.texi.
14668         * doc/posix-functions/iswalnum_l.texi: Renamed from
14669         doc/glibc-functions/iswalnum_l.texi.
14670         * doc/posix-functions/iswalpha_l.texi: Renamed from
14671         doc/glibc-functions/iswalpha_l.texi.
14672         * doc/posix-functions/iswblank_l.texi: Renamed from
14673         doc/glibc-functions/iswblank_l.texi.
14674         * doc/posix-functions/iswcntrl_l.texi: Renamed from
14675         doc/glibc-functions/iswcntrl_l.texi.
14676         * doc/posix-functions/iswctype_l.texi: Renamed from
14677         doc/glibc-functions/iswctype_l.texi.
14678         * doc/posix-functions/iswdigit_l.texi: Renamed from
14679         doc/glibc-functions/iswdigit_l.texi.
14680         * doc/posix-functions/iswgraph_l.texi: Renamed from
14681         doc/glibc-functions/iswgraph_l.texi.
14682         * doc/posix-functions/iswlower_l.texi: Renamed from
14683         doc/glibc-functions/iswlower_l.texi.
14684         * doc/posix-functions/iswprint_l.texi: Renamed from
14685         doc/glibc-functions/iswprint_l.texi.
14686         * doc/posix-functions/iswpunct_l.texi: Renamed from
14687         doc/glibc-functions/iswpunct_l.texi.
14688         * doc/posix-functions/iswspace_l.texi: Renamed from
14689         doc/glibc-functions/iswspace_l.texi.
14690         * doc/posix-functions/iswupper_l.texi: Renamed from
14691         doc/glibc-functions/iswupper_l.texi.
14692         * doc/posix-functions/iswxdigit_l.texi: Renamed from
14693         doc/glibc-functions/iswxdigit_l.texi.
14694         * doc/posix-functions/isxdigit_l.texi: Renamed from
14695         doc/glibc-functions/isxdigit_l.texi.
14696         * doc/posix-functions/mbsnrtowcs.texi: Renamed from
14697         doc/glibc-functions/mbsnrtowcs.texi.
14698         * doc/posix-functions/mkdtemp.texi: Renamed from
14699         doc/glibc-functions/mkdtemp.texi.
14700         * doc/posix-functions/newlocale.texi: Renamed from
14701         doc/glibc-functions/newlocale.texi.
14702         * doc/posix-functions/nl_langinfo_l.texi: Renamed from
14703         doc/glibc-functions/nl_langinfo_l.texi.
14704         * doc/posix-functions/open_memstream.texi: Renamed from
14705         doc/glibc-functions/open_memstream.texi.
14706         * doc/posix-functions/opterr.texi: Renamed from
14707         doc/glibc-functions/opterr.texi.
14708         * doc/posix-functions/optind.texi: Renamed from
14709         doc/glibc-functions/optind.texi.
14710         * doc/posix-functions/optopt.texi: Renamed from
14711         doc/glibc-functions/optopt.texi.
14712         * doc/posix-functions/psignal.texi: Renamed from
14713         doc/glibc-functions/psignal.texi.
14714         * doc/posix-functions/scandir.texi: Renamed from
14715         doc/glibc-functions/scandir.texi.
14716         * doc/posix-functions/sched_get_priority_min.texi: Renamed from
14717         doc/glibc-functions/sched_get_priority_min.texi.
14718         * doc/posix-functions/signgam.texi: Renamed from
14719         doc/glibc-functions/signgam.texi.
14720         * doc/posix-functions/stpcpy.texi: Renamed from
14721         doc/glibc-functions/stpcpy.texi.
14722         * doc/posix-functions/stpncpy.texi: Renamed from
14723         doc/glibc-functions/stpncpy.texi.
14724         * doc/posix-functions/strcasecmp_l.texi: Renamed from
14725         doc/glibc-functions/strcasecmp_l.texi.
14726         * doc/posix-functions/strcoll_l.texi: Renamed from
14727         doc/glibc-functions/strcoll_l.texi.
14728         * doc/posix-functions/strfmon_l.texi: Renamed from
14729         doc/glibc-functions/strfmon_l.texi.
14730         * doc/posix-functions/strftime_l.texi: Renamed from
14731         doc/glibc-functions/strftime_l.texi.
14732         * doc/posix-functions/strncasecmp_l.texi: Renamed from
14733         doc/glibc-functions/strncasecmp_l.texi.
14734         * doc/posix-functions/strndup.texi: Renamed from
14735         doc/glibc-functions/strndup.texi.
14736         * doc/posix-functions/strnlen.texi: Renamed from
14737         doc/glibc-functions/strnlen.texi.
14738         * doc/posix-functions/strsignal.texi: Renamed from
14739         doc/glibc-functions/strsignal.texi.
14740         * doc/posix-functions/strxfrm_l.texi: Renamed from
14741         doc/glibc-functions/strxfrm_l.texi.
14742         * doc/posix-functions/timer_gettime.texi: Renamed from
14743         doc/glibc-functions/timer_gettime.texi.
14744         * doc/posix-functions/tolower_l.texi: Renamed from
14745         doc/glibc-functions/tolower_l.texi.
14746         * doc/posix-functions/toupper_l.texi: Renamed from
14747         doc/glibc-functions/toupper_l.texi.
14748         * doc/posix-functions/towctrans_l.texi: Renamed from
14749         doc/glibc-functions/towctrans_l.texi.
14750         * doc/posix-functions/towlower_l.texi: Renamed from
14751         doc/glibc-functions/towlower_l.texi.
14752         * doc/posix-functions/towupper_l.texi: Renamed from
14753         doc/glibc-functions/towupper_l.texi.
14754         * doc/posix-functions/uselocale.texi: Renamed from
14755         doc/glibc-functions/uselocale.texi.
14756         * doc/posix-functions/vdprintf.texi: Renamed from
14757         doc/glibc-functions/vdprintf.texi.
14758         * doc/posix-functions/wcpcpy.texi:
14759         Renamed from doc/glibc-functions/wcpcpy.texi.
14760         * doc/posix-functions/wcpncpy.texi: Renamed from
14761         doc/glibc-functions/wcpncpy.texi.
14762         * doc/posix-functions/wcscasecmp.texi: Renamed from
14763         doc/glibc-functions/wcscasecmp.texi.
14764         * doc/posix-functions/wcscasecmp_l.texi: Renamed from
14765         doc/glibc-functions/wcscasecmp_l.texi.
14766         * doc/posix-functions/wcscoll_l.texi: Renamed from
14767         doc/glibc-functions/wcscoll_l.texi.
14768         * doc/posix-functions/wcsdup.texi: Renamed from
14769         doc/glibc-functions/wcsdup.texi.
14770         * doc/posix-functions/wcsncasecmp.texi: Renamed from
14771         doc/glibc-functions/wcsncasecmp.texi.
14772         * doc/posix-functions/wcsncasecmp_l.texi: Renamed from
14773         doc/glibc-functions/wcsncasecmp_l.texi.
14774         * doc/posix-functions/wcsnlen.texi: Renamed from
14775         doc/glibc-functions/wcsnlen.texi.
14776         * doc/posix-functions/wcsnrtombs.texi: Renamed from
14777         doc/glibc-functions/wcsnrtombs.texi.
14778         * doc/posix-functions/wcsxfrm_l.texi: Renamed from
14779         doc/glibc-functions/wcsxfrm_l.texi.
14780         * doc/posix-functions/wctrans_l.texi: Renamed from
14781         doc/glibc-functions/wctrans_l.texi.
14782         * doc/posix-functions/wctype_l.texi: Renamed from
14783         doc/glibc-functions/wctype_l.texi.
14784         * doc/gnulib.texi (Function Substitutes): Add these subsections.
14785         (Glibc ctype.h, Glibc dirent.h, Glibc getopt.h, Glibc math.h,
14786         Glibc sched.h, Glibc signal.h, Glibc stdio.h, Glibc stdlib.h,
14787         Glibc string.h, Glibc time.h, Glibc unistd.h, Glibc wchar.h): Remove
14788         these subsections.
14789         (Glibc langinfo.h, Glibc locale.h, Glibc monetary.h, Glibc wctype.h):
14790         Remove sections.
14791
14792 2008-12-14  Bruno Haible  <bruno@clisp.org>
14793
14794         Update doc for POSIX:2008.
14795         * doc/posix-functions/*.texi: Update URL of POSIX specification.
14796
14797 2008-12-14  Bruno Haible  <bruno@clisp.org>
14798
14799         Update doc for POSIX:2008.
14800         * doc/pastposix-functions/bcmp.texi: Renamed from
14801         doc/posix-functions/bcmp.texi.
14802         * doc/pastposix-functions/bcopy.texi: Renamed from
14803         doc/posix-functions/bcopy.texi.
14804         * doc/pastposix-functions/bsd_signal.texi: Renamed from
14805         doc/posix-functions/bsd_signal.texi.
14806         * doc/pastposix-functions/bzero.texi: Renamed from
14807         doc/posix-functions/bzero.texi.
14808         * doc/pastposix-functions/ecvt.texi: Renamed from
14809         doc/posix-functions/ecvt.texi.
14810         * doc/pastposix-functions/fcvt.texi: Renamed from
14811         doc/posix-functions/fcvt.texi.
14812         * doc/pastposix-functions/ftime.texi: Renamed from
14813         doc/posix-functions/ftime.texi.
14814         * doc/pastposix-functions/gcvt.texi: Renamed from
14815         doc/posix-functions/gcvt.texi.
14816         * doc/pastposix-functions/getcontext.texi: Renamed from
14817         doc/posix-functions/getcontext.texi.
14818         * doc/pastposix-functions/gethostbyaddr.texi: Renamed from
14819         doc/posix-functions/gethostbyaddr.texi.
14820         * doc/pastposix-functions/gethostbyname.texi: Renamed from
14821         doc/posix-functions/gethostbyname.texi.
14822         * doc/pastposix-functions/getwd.texi: Renamed from
14823         doc/posix-functions/getwd.texi.
14824         * doc/pastposix-functions/h_errno.texi: Renamed from
14825         doc/posix-functions/h_errno.texi.
14826         * doc/pastposix-functions/index.texi: Renamed from
14827         doc/posix-functions/index.texi.
14828         * doc/pastposix-functions/makecontext.texi: Renamed from
14829         doc/posix-functions/makecontext.texi.
14830         * doc/pastposix-functions/mktemp.texi: Renamed from
14831         doc/posix-functions/mktemp.texi.
14832         * doc/pastposix-functions/pthread_attr_getstackaddr.texi: Renamed from
14833         doc/posix-functions/pthread_attr_getstackaddr.texi.
14834         * doc/pastposix-functions/pthread_attr_setstackaddr.texi: Renamed from
14835         doc/posix-functions/pthread_attr_setstackaddr.texi.
14836         * doc/pastposix-functions/rindex.texi: Renamed from
14837         doc/posix-functions/rindex.texi.
14838         * doc/pastposix-functions/scalb.texi: Renamed from
14839         doc/posix-functions/scalb.texi.
14840         * doc/pastposix-functions/setcontext.texi: Renamed from
14841         doc/posix-functions/setcontext.texi.
14842         * doc/pastposix-functions/swapcontext.texi: Renamed from
14843         doc/posix-functions/swapcontext.texi.
14844         * doc/pastposix-functions/ualarm.texi: Renamed from
14845         doc/posix-functions/ualarm.texi.
14846         * doc/pastposix-functions/usleep.texi: Renamed from
14847         doc/posix-functions/usleep.texi.
14848         * doc/pastposix-functions/vfork.texi: Renamed from
14849         doc/posix-functions/vfork.texi.
14850         * doc/pastposix-functions/wcswcs.texi: Renamed from
14851         doc/posix-functions/wcswcs.texi.
14852         * doc/gnulib.texi (Legacy Function Substitutes): New chapter.
14853         (Function Substitutes): Update.
14854
14855 2008-12-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
14856
14857         * modules/relocatable-prog-wrapper (Depends-on): Add errno, needed by
14858         m4/strerror.m4.
14859
14860 2008-12-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
14861             Bruno Haible  <bruno@clisp.org>
14862
14863         * modules/unilbrk/tables (Depends-on): Add unilbrk/base.
14864
14865 2008-12-13  Bruno Haible  <bruno@clisp.org>
14866
14867         * modules/strtoull (Depends-on): Remove unistd.
14868
14869 2008-12-11  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
14870
14871         * modules/strtoull (Depends-on): Add stdlib.
14872
14873 2008-12-11  Simon Josefsson  <simon@josefsson.org>
14874
14875         * m4/manywarnings.m4 (gl_MANYWARN_ALL_GCC): Add more warnings.
14876
14877 2008-12-10  Jim Meyering  <meyering@redhat.com>
14878
14879         gl_ASSERT: don't say assertions are disabled when they're not
14880         * m4/assert.m4 (gl_ASSERT): Do not make configure report
14881         "checking whether to enable assertions... no", when they are in
14882         fact enabled.  This is solely a bug in the output of configure.
14883         In spite of saying "no", NDEBUG was not defined in that case.
14884         Also, as noted by Eric Blake, leave assertions enabled upon
14885         --enable-assert=INVALID.
14886
14887 2008-12-10  Bruno Haible  <bruno@clisp.org>
14888
14889         Change MODULES.html to refer to POSIX:2008 where possible.
14890         * MODULES.html.sh (POSIX2008_URL): New variable.
14891         (posix_headers): Remove sys/timeb, ucontext.
14892         (posix2001_headers): New variable.
14893         (posix_functions): Remove bcmp, bcopy, bsd_signal, bzero, ecvt, fcvt,
14894         ftime, gcvt, getcontext, gethostbyaddr, gethostbyname, getwd, h_errno,
14895         index, makecontext, mktemp, pthread_attr_getstackaddr,
14896         pthread_attr_setstackaddr, rindex, scalb, setcontext, swapcontext,
14897         ualarm, usleep, vfork, wcswcs. Add the new POSIX:2008 functions.
14898         (posix2001_functions): New variable.
14899         (func_module): Use URLs to POSIX:2008 where possible and to POSIX:2001
14900         otherwise.
14901
14902 2008-12-09  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
14903
14904         add missing include to parse-duration.c
14905         * lib/parse-duration.c: #include "xalloc.h", for xstrdup.
14906         * modules/parse-duration (Depends-on): Add xalloc.
14907
14908         fix sed script reading maint.mk
14909         * top/maint.mk (MYSELF): New macro, define as $(srcdir)/$(ME).
14910         (syntax-check-rules): Use it.
14911
14912 2008-12-09  Bruno Haible  <bruno@clisp.org>
14913
14914         * m4/ldexpl.m4 (gl_FUNC_LDEXPL_WORKS): Add another check, that fails on
14915         MacOS X 10.4/PowerPC.
14916         Reported by Simon Josefsson.
14917
14918 2008-12-08  Jim Meyering  <meyering@redhat.com>
14919
14920         work around mingw's lack of some S_IF definitions
14921         * lib/fts.c (S_IFLNK, S_IFSOCK): Define if not already defined.
14922         Reported by Simon Josefsson.
14923
14924 2008-12-08  Bruno Haible  <bruno@clisp.org>
14925
14926         * m4/signbitl.m4 (gl_SIGNBIT_TEST_PROGRAM): Add a link check of signbit
14927         applied to variables. Needed on MacOS X 10.4/PowerPC.
14928         Reported by Simon Josefsson.
14929
14930 2008-12-08  William Pursell  <bill.pursell@gmail.com>  (tiny change)
14931         and Eric Blake  <ebb9@byu.net>
14932
14933         assert: honor --enable-assert
14934         * m4/assert.m4 (gl_ASSERT): Synchronize with autoconf 2.64, in
14935         order to honor --enable-assert, rather than treating it as a
14936         synonym for --disable-assert.
14937
14938 2008-12-08  Jim Meyering  <meyering@redhat.com>
14939
14940         * lib/posixtm.c: Remove now-useless declaration of mktime.
14941
14942         * build-aux/announce-gen (get_tool_versions): Accept .xz tarballs.
14943
14944 2008-12-07  Bruno Haible  <bruno@clisp.org>
14945
14946         * tests/test-lock.c (test_lock, test_rwlock, test_recursive_lock,
14947         test_once): Mark functions as static.
14948         * tests/test-tls.c (test_tls): Likewise.
14949
14950 2008-12-07  Bruno Haible  <bruno@clisp.org>
14951
14952         * lib/striconveha.h (uniconv_register_autodetect): Renamed from
14953         iconv_register_autodetect.
14954
14955 2008-12-07  Jim Meyering  <meyering@redhat.com>
14956
14957         posixtm.c: avoid a warning
14958         * lib/posixtm.c (posixtime): Don't initialize tm0.
14959         It's no longer needed to placate gcc4's -Wuninitialized,
14960         and the attempt to placate would elicit a new warning.
14961
14962         unicodeio.c: mark unused parameters
14963         * lib/unicodeio.c (exit_failure_callback): Mark unused parameter.
14964         (fallback_failure_callback): Likewise.
14965
14966 2008-12-07  Bruno Haible  <bruno@clisp.org>
14967
14968         * gnulib-tool (func_create_testdir): When building the tests
14969         subdirectory, ignore the modules gnumakefile and maintainer-makefile.
14970         Reported by Simon Josefsson.
14971
14972 2008-12-07  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
14973
14974         * doc/manywarnings.texi, doc/gnulib-intro.texi: Fix typos.
14975
14976 2008-12-06  Bruno Haible  <bruno@clisp.org>
14977
14978         * lib/c-stack.h (c_stack_action): Clarify possible side effects.
14979         Suggested by Eric Blake.
14980
14981 2008-12-06  Bruno Haible  <bruno@clisp.org>
14982
14983         Fix a c-stack test failure on MacOS X.
14984         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Require
14985         AC_CANONICAL_HOST. Define FAULT_YIELDS_SIGBUS. If set, install a signal
14986         handler for SIGBUS as well.
14987         * lib/c-stack.c (c_stack_action): If FAULT_YIELDS_SIGBUS is set,
14988         install a signal handler for SIGBUS as well.
14989         Reported by Bruce Dugan <bld0401@gmail.com> via Eric Blake.
14990
14991 2008-12-06  Bruno Haible  <bruno@clisp.org>
14992
14993         Advocacy documentation.
14994         * doc/gnulib-intro.texi (Benefits): New section.
14995         * doc/gnulib.texi: Update.
14996
14997 2008-12-06  Bruno Haible  <bruno@clisp.org>
14998
14999         Document the 'manywarnings' module.
15000         * doc/manywarnings.texi: New file.
15001         * doc/gnulib.texi: Include it.
15002
15003 2008-12-05  Eric Blake  <ebb9@byu.net>
15004
15005         tests: silence some gcc warnings
15006         * tests/test-getdate.c (LOG) [!DEBUG]: Mark no-op void.
15007         * tests/uniwidth/test-uc_width2.c (finish_interval): Avoid printf
15008         type mismatches.
15009
15010 2008-12-03  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
15011             Bruno Haible  <bruno@clisp.org>
15012
15013         * m4/openmp.m4 (AC_OPENMP): Do not define with Autoconf 2.62 or newer.
15014
15015 2008-11-29  Jim Meyering  <meyering@redhat.com>
15016
15017         unicodeio.c: mark unused parameters
15018         * lib/unicodeio.c (exit_failure_callback): Mark unused parameter.
15019         (fallback_failure_callback): Likewise.
15020
15021         fts: fix a thinko
15022         * lib/fts.c (s_ifmt_shift_bits): Remove function.  Not needed after all.
15023         (set_stat_type): Return S_IF*-valued "type" directly.
15024         Prompted by James Youngman's spotting a related bug.
15025         Confirmed by further testing through find.
15026
15027         fts: provide dirent.d_type via FTSENT.fts_statp, when possible
15028         * lib/fts.c (D_TYPE): Define.
15029         (DT_UNKNOWN, DT_BLK, DT_CHR) [HAVE_STRUCT_DIRENT_D_TYPE]: Define.
15030         (DT_DIR, DT_FIFO, DT_LNK, DT_REG, DT_SOCK): Likewise.
15031         (s_ifmt_shift_bits): New function.
15032         (set_stat_type): New function.
15033         (fts_build): When not calling fts_stat, call set_stat_type
15034         to propagate dirent.d_type info to fts_read caller.
15035         * lib/fts_.h (FTSENT) [FTS_DEFER_STAT]: Mention that
15036         fts_statp->st_mode type information may be valid.
15037
15038 2008-11-28  Simon Josefsson  <simon@josefsson.org>
15039
15040         * lib/sys_time.in.h: Add extern "C" block for C++.  Suggested by
15041         Brian Dessent <brian@dessent.net>.  Reported by Sam Steingold
15042         <sds@gnu.org>.
15043
15044 2008-11-20  Bruno Haible  <bruno@clisp.org>
15045
15046         Attempt to work around an AIX 5.3, 6.1 compiler bug with include_next.
15047         * lib/math.in.h: Use INCLUDE_NEXT_AS_FIRST_DIRECTIVE instead of
15048         INCLUDE_NEXT.
15049         * m4/include_next.m4 (gl_INCLUDE_NEXT): Set also
15050         INCLUDE_NEXT_AS_FIRST_DIRECTIVE.
15051         * modules/math (Makefile.am): Substitute
15052         INCLUDE_NEXT_AS_FIRST_DIRECTIVE instead of INCLUDE_NEXT.
15053         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
15054
15055 2008-11-18  Alexandre Duret-Lutz  <adl@lrde.epita.fr>
15056             Bruno Haible  <bruno@clisp.org>
15057
15058         * lib/stdint.in.h: Define all type macros so that their expansion is
15059         a single typedef'ed token. Fixes a compilation failure in Boost which
15060         does "using ::int8_t;".
15061
15062 2008-11-18  Simon Josefsson  <simon@josefsson.org>
15063
15064         * m4/manywarnings.m4: New file with gl_MANYWARN_COMPLEMENT and
15065         gl_MANYWARN_ALL_GCC.
15066         * m4/warnings.m4: Removed gl_WARN_SUPPORTED and
15067         gl_WARN_COMPLEMENT.  Suggested by Bruno Haible <bruno@clisp.org>.
15068         * modules/manywarnings: New file.
15069         * MODULES.html.sh: Mention manywarnings module.
15070
15071 2008-11-18  Bruno Haible  <bruno@clisp.org>
15072
15073         * doc/gnulib-tool.texi (Unit tests): New section.
15074
15075 2008-11-18  Simon Josefsson  <simon@josefsson.org>
15076
15077         * top/maint.mk (refresh-po): Fix sed regexp to avoid problems with
15078         paths like 'lib/po/foo.po'.
15079
15080 2008-11-17  Simon Josefsson  <simon@josefsson.org>
15081
15082         * m4/warnings.m4: Improve code.  Reported by Ralf Wildenhues
15083         <Ralf.Wildenhues@gmx.de> and Paolo Bonzini <bonzini@gnu.org>.
15084
15085 2008-11-17  Simon Josefsson  <simon@josefsson.org>
15086
15087         * m4/warnings.m4: Use CPPFLAGS to really check whether the
15088         parameter works.
15089
15090 2008-11-17  Simon Josefsson  <simon@josefsson.org>
15091
15092         * m4/warnings.m4: Add gl_WARN_COMPLEMENT and gl_WARN_SUPPORTED.
15093
15094 2008-11-17  Bruce Korb  <bkorb@gnu.org>
15095
15096         * modules/parse-duration-tests: New file.
15097         * tests/test-parse-duration.sh: New file.
15098         * tests/test-parse-duration.c: New file.
15099
15100         New module 'parse-duration'.
15101         * lib/parse-duration.h: New file.
15102         * lib/parse-duration.c: New file.
15103         * modules/parse-duration: New file.
15104
15105 2008-11-17  Bruno Haible  <bruno@clisp.org>
15106
15107         * tests/test-select-out.sh: Comment out the first pipe test.
15108         Reported by Simon Josefsson.
15109
15110 2008-11-17  Bruno Haible  <bruno@clisp.org>
15111
15112         * modules/getaddrinfo (Depends-on): Add servent, hostent.
15113         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Use gl_SERVENT and
15114         gl_HOSTENT.
15115
15116 2008-11-17  Bruno Haible  <bruno@clisp.org>
15117
15118         * m4/sockets.m4 (gl_SOCKETS): After trying -lsocket, try also
15119         -lnetwork and -lnet. Needed for Haiku and BeOS.
15120
15121 2008-11-16  Bruno Haible  <bruno@clisp.org>
15122
15123         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Fix indentation.
15124
15125 2008-11-16  Bruno Haible  <bruno@clisp.org>
15126
15127         Avoid test failure on Haiku.
15128         * tests/test-fsync.c: Include <errno.h>.
15129         (main): Don't require that fsync (0) fails.
15130
15131 2008-11-15  Bruno Haible  <bruno@clisp.org>
15132
15133         New module 'hostent'.
15134         * modules/hostent: New file.
15135         * m4/hostent.m4: New file, based on code in m4/getaddrinfo.m4.
15136
15137 2008-11-15  Bruno Haible  <bruno@clisp.org>
15138
15139         New module 'servent'.
15140         * modules/servent: New file.
15141         * m4/servent.m4: New file, based on code in m4/getaddrinfo.m4.
15142
15143 2008-11-15  Bruno Haible  <bruno@clisp.org>
15144
15145         Avoid generating same test program with two different rules.
15146         * modules/frexp-nolibm-tests (Makefile.am): Rename test program from
15147         test-frexp to test-frexp-nolibm.
15148         * modules/frexpl-nolibm-tests (Makefile.am): Rename test program from
15149         test-frexpl to test-frexpl-nolibm.
15150
15151 2008-11-15  Bruno Haible  <bruno@clisp.org>
15152
15153         * modules/frexpl-tests (Makefile.am): Link test-frexpl with
15154         $(FREXPL_LIBM).
15155
15156 2008-11-15  Bruno Haible  <bruno@clisp.org>
15157
15158         * lib/netdb.in.h: Activate the definitions also when the system's
15159         <netdb.h> has 'struct addrinfo'.
15160         * m4/netdb_h.m4 (gl_HEADER_NETDB): Replace netdb.h also when it lacks
15161         EAI_OVERFLOW or AI_NUMERICSERV.
15162         * doc/posix-headers/netdb.texi: Document the problem.
15163
15164 2008-11-15  Bruno Haible  <bruno@clisp.org>
15165
15166         * tests/test-sched.c: Test also the existence of the SCHED_* macros.
15167
15168         Make the 'sched' module work on platforms where <sched.h> exists but
15169         is incomplete (such as Haiku).
15170         * lib/sched.in.h; Include the system's <sched.h> if it exists.
15171         (SCHED_FIFO, SCHED_RR, SCHED_OTHER): New macros.
15172         * m4/sched_h.m4 (gl_SCHED_H): Test whether <sched.h> exists and also
15173         defines SCHED_FIFO, SCHED_RR, SCHED_OTHER. Set HAVE_SCHED_H,
15174         HAVE_STRUCT_SCHED_PARAM.
15175         * modules/sched (Depends-on): Add include_next.
15176         (Makefile.am): Substitute HAVE_SCHED_H, INCLUDE_NEXT,
15177         PRAGMA_SYSTEM_HEADER, NEXT_SCHED_H, HAVE_STRUCT_SCHED_PARAM.
15178         * doc/posix-headers/sched.texi: Document the issue.
15179
15180 2008-11-13  Jim Meyering  <meyering@redhat.com>
15181
15182         test-argp-2: avoid test failure when PACKAGE_BUGREPORT is defined
15183         * tests/test-argp-2.sh: When PACKAGE_BUGREPORT was defined, this
15184         test would fail due to the difference in the Report bugs to ...
15185         line.  The expected address is empty, "<>", while the actual
15186         would contain e.g., "<bug-tar@gnu.org>".  Filter out any address.
15187
15188 2008-11-12  Bruno Haible  <bruno@clisp.org>
15189
15190         lstat: don't compile lstat.c on systems lacking lstat
15191         * m4/lstat.m4 (gl_FUNC_LSTAT): Don't compile lstat.c on systems
15192         which don't have lstat; this is handled by lib/sys_stat.in.h already.
15193         Reported by Daniel P. Berrange via Jim Meyering.
15194
15195 2008-11-12  Jim Meyering  <meyering@redhat.com>
15196
15197         * lib/unicodeio.c (unicode_to_mb): Correct spelling of u8_uctomb.
15198
15199 2008-11-12  Simon Josefsson  <simon@josefsson.org>
15200
15201         * modules/warnings (configure.ac): Do AC_SUBST([WARN_CFLAGS]) here
15202         instead.
15203
15204 2008-11-12  Bruno Haible  <bruno@clisp.org>
15205
15206         * lib/unicodeio.c: Include unistr.h.
15207         (utf8_wctomb): Remove function.
15208         (unicode_to_mb): Use utf8_uctomb instead of utf8_wctomb.
15209
15210 2008-11-12  Simon Josefsson  <simon@josefsson.org>
15211
15212         * m4/warnings.m4 (gl_WARN_INIT): Remove, suggested by Ralf
15213         Wildenhues <Ralf.Wildenhues@gmx.de> and Bruno Haible
15214         <bruno@clisp.org>.
15215         * modules/warnings (configure.ac): Don't call gl_WARN_INIT.
15216
15217 2008-11-12  Simon Josefsson  <simon@josefsson.org>
15218
15219         * doc/warnings.texi: New file, from Bruno Haible <bruno@clisp.org>.
15220         * doc/gnulib.texi: Add section for warnings.
15221
15222 2008-11-11  Bruno Haible  <bruno@clisp.org>
15223
15224         * lib/sockets.h: Add a comment.
15225
15226 2008-11-11  Karl Berry  <karl@gnu.org>
15227
15228         * config/srclist.txt (fdl.texi): add, syncing from gnustandards.
15229
15230 2008-11-11  Eric Blake  <ebb9@byu.net>
15231
15232         fdl.texi: avoid git symlinks
15233         * doc/fdl.texi: Copy, rather than link, fdl-1.3.texi.
15234
15235 2008-11-11  Paolo Bonzini  <bonzini@gnu.org>
15236
15237         * m4/warnings.m4 (gl_WARN_ADD): Don't AC_SUBST the empty string.
15238
15239 2008-11-11  Paolo Bonzini  <bonzini@gnu.org>
15240
15241         * m4/warnings.m4 (gl_WARN_INIT): Substitute WARN_CFLAGS.
15242         (gl_WARN_ADD): Substitute $2 if literal.
15243
15244 2008-11-11  Paolo Bonzini  <bonzini@gnu.org>
15245
15246         * m4/warning.m4: Remove.
15247
15248 2008-11-11  Paolo Bonzini  <bonzini@gnu.org>
15249
15250         * m4/warnings.m4: Almost complete rewrite. :-)
15251
15252 2008-11-10  Simon Josefsson  <simon@josefsson.org>
15253
15254         * modules/warnings: New module.
15255         * m4/warnings.m4: New file.
15256         * MODULES.html.sh: Mention warnings module.
15257         With review improvements from Paolo Bonzini <bonzini@gnu.org> and
15258         Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
15259
15260 2008-11-10  Eric Blake  <ebb9@byu.net>
15261
15262         fdl.texi: make a symlink to the latest version
15263         * doc/standards.texi: Revert today's earlier change.
15264         * doc/fdl-1.2.texi: Rename from old fdl.texi...
15265         * doc/fdl.texi: ...and replace this with a symlink to the newer
15266         fdl-1.3.texi.
15267
15268 2008-11-10  Bruno Haible  <bruno@clisp.org>
15269
15270         * tests/test-select-fd.c (main): Accept the result file name as fourth
15271         argument.
15272         * tests/test-select-in.sh: Pass t-select-in.tmp as fourth argument.
15273         * tests/test-select-out.sh: Pass t-select-out.tmp as fourth argument.
15274
15275 2008-11-10  Bruno Haible  <bruno@clisp.org>
15276
15277         * lib/netdb.in.h: Use HAVE_STRUCT_ADDRINFO, HAVE_DECL_GETADDRINFO,
15278         HAVE_DECL_FREEADDRINFO, HAVE_DECL_GAI_STRERROR, HAVE_DECL_GETNAMEINFO
15279         as autoconf-substituted macros.
15280         * m4/netdb_h.m4 (gl_NETDB_H_DEFAULTS): Initialize these variables to 1.
15281         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Require
15282         gl_NETDB_H_DEFAULTS. Set these variables.
15283         * modules/netdb (Makefile.am): Substitute these variables.
15284
15285 2008-11-10  Eric Blake  <ebb9@byu.net>
15286
15287         standards.texi: include correct file for FDL 1.3
15288         * doc/standards.texi (GNU Free Documentation License): Change
15289         include file to pull in FDL 1.3, not 1.2.
15290
15291         fdl.texi: revert accidental change to license
15292         * doc/fdl.texi: This is FDL 1.2, not 1.3.
15293
15294 2008-11-10  Bruno Haible  <bruno@clisp.org>
15295
15296         * m4/printf.m4 (gl_PRINTF_ENOMEM): Guess yes on Haiku. Use the
15297         cross-compiling guesses also when the native compile gives no result.
15298
15299 2008-11-10  Bruno Haible  <bruno@clisp.org>
15300
15301         * lib/spawni.c (__spawni): Force variable into the stack.
15302
15303 2008-11-10  Bruno Haible  <bruno@clisp.org>
15304
15305         Add support for Haiku.
15306         * lib/fbufmode.c (fbufmode): Test a symbol that is not only defined on
15307         glibc and BeOS, but also on Haiku.
15308         * lib/fpurge.c (fpurge): Likewise.
15309         * lib/freadable.c (freadable): Likewise.
15310         * lib/freadahead.c (freadahead): Likewise.
15311         * lib/freading.c (freading): Likewise.
15312         * lib/freadptr.c (freadptr): Likewise.
15313         * lib/freadseek.c (freadptrinc): Likewise.
15314         * lib/fseeko.c (rpl_fseeko): Likewise.
15315         * lib/fseterr.c (fseterr): Likewise.
15316         * lib/fwritable.c (fwritable): Likewise.
15317         * lib/fwriting.c (fwriting): Likewise.
15318         Reported by Ingo Weinhold <ingo_weinhold@gmx.de>.
15319
15320 2008-11-10  Ingo Weinhold  <ingo_weinhold@gmx.de>
15321
15322         * lib/config.charset: Treat Haiku like BeOS.
15323
15324 2008-11-10  Ingo Weinhold  <ingo_weinhold@gmx.de>
15325
15326         * lib/binary-io.h (O_BINARY, O_TEXT): Treat Haiku like BeOS.
15327         * lib/fcntl.in.h (O_BINARY, O_TEXT): Likewise.
15328
15329 2008-11-08  Bruno Haible  <bruno@clisp.org>
15330
15331         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_H): Avoid using AC_CHECK_DECL inside
15332         AC_CACHE_CHECK.
15333
15334 2008-11-08  Bruno Haible  <bruno@clisp.org>
15335
15336         * modules/select-tests (configure.ac): Check for unistd.h, sys/wait.h.
15337
15338 2008-11-08  Bruno Haible  <bruno@clisp.org>
15339
15340         * tests/test-select-fd.c: New file.
15341         * tests/test-select-in.sh: New file.
15342         * tests/test-select-out.sh: New file.
15343         * tests/test-select-stdin.c: New file.
15344         * modules/select-tests (Files): Add the new files.
15345         (Depends-on): Add gettimeofday.
15346         (Makefile.am): Add test-select-in.sh, test-select-out.sh to TESTS.
15347         Set TESTS_ENVIRONMENT. Add test-select-fd, test-select-stdin to
15348         check_PROGRAMS. Define test_select_fd_LDADD, test_select_stdin_LDADD.
15349
15350 2008-11-06  Alexander V. Lukyanov  <lav@netis.ru>
15351             Bruno Haible  <bruno@clisp.org>
15352
15353         * lib/sys_stat.in.h: Enclose function definitions in extern "C".
15354
15355 2008-10-12  Giuseppe Scrivano  <gscrivano@gnu.org>
15356
15357         * build-aux/pmccabe2html: Added support for C++ source files.
15358
15359 2008-11-05  Ben Pfaff  <blp@gnu.org>
15360
15361         Fix lib/close.c build on Windows.
15362         * modules/close (Files): Add lib/w32sock.h.
15363
15364 2008-11-05  Joel E. Denny  <jdenny@ces.clemson.edu>
15365
15366         Accept Bison's NEWS format.
15367         * build-aux/announce-gen (print_news_deltas): Tweak
15368         $re_prefix.
15369
15370 2008-11-04  Bruno Haible  <bruno@clisp.org>
15371
15372         * modules/random_r (Maintainer): Add glibc.
15373
15374 2008-11-04  Simon Josefsson  <simon@josefsson.org>
15375
15376         * doc/alloca-opt.texi: Change license to GFDLv1.3+, as suggested
15377         by karl@freefriends.org (Karl Berry).
15378         * doc/alloca.texi: Likewise.
15379         * doc/c-ctype.texi: Likewise.
15380         * doc/c-strcase.texi: Likewise.
15381         * doc/c-strcaseeq.texi: Likewise.
15382         * doc/c-strcasestr.texi: Likewise.
15383         * doc/c-strstr.texi: Likewise.
15384         * doc/c-strtod.texi: Likewise.
15385         * doc/c-strtold.texi: Likewise.
15386         * doc/ctime.texi: Likewise.
15387         * doc/error.texi: Likewise.
15388         * doc/fdl.texi: Likewise.
15389         * doc/gcd.texi: Likewise.
15390         * doc/getdate.texi: Likewise.
15391         * doc/gnulib-intro.texi: Likewise.
15392         * doc/gnulib-tool.texi: Likewise.
15393         * doc/gnulib.texi: Likewise.
15394         * doc/inet_ntoa.texi: Likewise.
15395         * doc/maintain.texi: Likewise.
15396         * doc/make-stds.texi: Likewise.
15397         * doc/quote.texi: Likewise.
15398         * doc/regexprops-generic.texi: Likewise.
15399         * doc/standards.texi: Likewise.
15400         * doc/verify.texi: Likewise.
15401         * doc/visibility.texi: Likewise.
15402         * doc/gnulib.texi (GNU Free Documentation License): Include
15403         fdl-1.3.texi instead of fdl.texi.
15404
15405 2008-11-04  Simon Josefsson  <simon@josefsson.org>
15406
15407         * doc/fdl-1.3.texi: New file, from
15408         <http://www.gnu.org/licenses/fdl-1.3.texi>.
15409         * modules/fdl-1.3: Add.
15410         * MODULES.html.sh: Add fdl-1.3.
15411
15412 2008-11-03  Bruno Haible  <bruno@clisp.org>
15413
15414         Make determination of absolute name of header file work with AIX xlc.
15415         * m4/include_next.m4 (gl_CHECK_NEXT_HEADERS): Require
15416         AC_CANONICAL_HOST. On AIX, use "$CPP -C" rather than "$CPP" for
15417         preprocessing.
15418         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Likewise.
15419         Reported by Gary V. Vaughan <gary@thewrittenword.com>.
15420
15421 2008-11-03  Simon Josefsson  <simon@josefsson.org>
15422
15423         * top/maint.mk (COVERAGE_CCOPTS): Use --coverage instead of
15424         -fprofile-arcs -ftest-coverage.  Suggested by Ludovic Courtès
15425         <ludo@gnu.org>.
15426
15427 2008-11-02  Bruno Haible  <bruno@clisp.org>
15428
15429         Mark 'strpbrk' obsolete.
15430         * modules/strpbrk (Status, Notice): New sections.
15431         * modules/strtok_r (Depends-on): Add strpbrk.
15432
15433 2008-11-02  Bruno Haible  <bruno@clisp.org>
15434
15435         Mark 'strdup' obsolete.
15436         * modules/strdup (Status, Notice): New sections.
15437         * modules/findprog (Depends-on): Add strdup.
15438         * modules/getaddrinfo (Depends-on): Likewise.
15439         * modules/localename (Depends-on): Likewise.
15440         * modules/relocatable-lib (Depends-on): Likewise.
15441         * modules/relocatable-lib-lgpl (Depends-on): Likewise.
15442         * modules/relocatable-prog (Depends-on): Likewise.
15443         * modules/trim (Depends-on): Likewise.
15444         * modules/unictype/gen-ctype (Depends-on): Likewise.
15445         * modules/unilbrk/gen-lbrk (Depends-on): Likewise.
15446
15447 2008-11-02  Bruno Haible  <bruno@clisp.org>
15448
15449         Mark 'strcspn' obsolete.
15450         * modules/strcspn (Status, Notice): New sections.
15451
15452 2008-11-02  Bruno Haible  <bruno@clisp.org>
15453
15454         Mark 'rmdir' obsolete.
15455         * modules/rmdir (Status, Notice): New sections.
15456         * modules/clean-temp (Depends-on): Add rmdir.
15457         * modules/openat (Depends-on): Likewise.
15458
15459 2008-11-02  Bruno Haible  <bruno@clisp.org>
15460
15461         Mark 'raise' obsolete.
15462         * modules/raise (Status, Notice): New sections.
15463         (Include): Specify <signal.h>.
15464         * modules/stdio (Depends-on): Add raise.
15465         * modules/write (Depends-on): Likewise.
15466
15467 2008-11-02  Bruno Haible  <bruno@clisp.org>
15468
15469         Mark 'memset' obsolete.
15470         * modules/memset (Status, Notice): New sections.
15471
15472 2008-11-02  Bruno Haible  <bruno@clisp.org>
15473
15474         Mark 'memmove' obsolete.
15475         * modules/memmove (Status, Notice): New sections.
15476         * modules/argp (Depends-on): Add memmove.
15477         * modules/argz (Depends-on): Likewise.
15478         * modules/canonicalize (Depends-on): Likewise.
15479         * modules/canonicalize-lgpl (Depends-on): Likewise.
15480         * modules/fts (Depends-on): Likewise.
15481         * modules/getcwd (Depends-on): Likewise.
15482         * modules/human (Depends-on): Likewise.
15483         * modules/regex (Depends-on): Likewise.
15484         * modules/striconveh (Depends-on): Likewise.
15485         * modules/trim (Depends-on): Likewise.
15486         * modules/unistr/u8-move (Depends-on): Likewise.
15487         * modules/unistr/u16-move (Depends-on): Likewise.
15488         * modules/unistr/u32-move (Depends-on): Likewise.
15489
15490 2008-11-02  Bruno Haible  <bruno@clisp.org>
15491
15492         Mark 'memcpy' obsolete.
15493         * modules/memcpy (Status, Notice): New sections.
15494
15495 2008-11-02  Bruno Haible  <bruno@clisp.org>
15496
15497         Mark 'memcmp' obsolete.
15498         * modules/memcmp (Status, Notice): New sections.
15499         * modules/argmatch (Depends-on): Add memchr.
15500         * modules/backupfile (Depends-on): Likewise.
15501         * modules/c-strcasestr (Depends-on): Likewise.
15502         * modules/crypto/des (Depends-on): Likewise.
15503         * modules/csharpcomp (Depends-on): Likewise.
15504         * modules/fnmatch (Depends-on): Likewise.
15505         * modules/git-merge-changelog (Depends-on): Likewise.
15506         * modules/isnand (Depends-on): Likewise.
15507         * modules/isnand-nolibm (Depends-on): Likewise.
15508         * modules/isnanf (Depends-on): Likewise.
15509         * modules/isnanf-nolibm (Depends-on): Likewise.
15510         * modules/isnanl (Depends-on): Likewise.
15511         * modules/isnanl-nolibm (Depends-on): Likewise.
15512         * modules/mbchar (Depends-on): Likewise.
15513         * modules/memcoll (Depends-on): Likewise.
15514         * modules/quotearg (Depends-on): Likewise.
15515         * modules/regex (Depends-on): Likewise.
15516         * modules/relocatable-prog (Depends-on): Likewise.
15517         * modules/same (Depends-on): Likewise.
15518         * modules/signbit (Depends-on): Likewise.
15519         * modules/strcasestr-simple (Depends-on): Likewise.
15520         * modules/unictype/gen-ctype (Depends-on): Likewise.
15521         * modules/unilbrk/gen-lbrk (Depends-on): Likewise.
15522         * modules/uniname/uniname (Depends-on): Likewise.
15523         * modules/unistr/u8-cmp (Depends-on): Likewise.
15524
15525 2008-11-02  Bruno Haible  <bruno@clisp.org>
15526
15527         Mark 'memchr' obsolete.
15528         * modules/memchr (Status, Notice): New sections.
15529         * modules/argp (Depends-on): Add memchr.
15530         * modules/base64 (Depends-on): Likewise.
15531         * modules/c-strcasestr (Depends-on): Likewise.
15532         * modules/chdir-long (Depends-on): Likewise.
15533         * modules/fnmatch (Depends-on): Likewise.
15534         * modules/getsubopt (Depends-on): Likewise.
15535         * modules/git-merge-changelog (Depends-on): Likewise.
15536         * modules/glob (Depends-on): Likewise.
15537         * modules/strcasestr-simple (Depends-on): Likewise.
15538         * modules/strnlen (Depends-on): Likewise.
15539
15540 2008-11-02  Bruno Haible  <bruno@clisp.org>
15541
15542         Mark 'atexit' obsolete.
15543         * modules/atexit (Status, Notice): New sections.
15544         * modules/chdir-long (Depends-on): Add atexit.
15545         * modules/wait-process (Depends-on): Likewise.
15546
15547 2008-11-02  Bruno Haible  <bruno@clisp.org>
15548
15549         * gnulib-tool: New option --with-obsolete.
15550         (func_usage): Document it.
15551         (func_modules_transitive_closure): Drop obsolete dependencies if
15552         incobsolete is not true.
15553         (func_import): Read and save the incobsolete variable to the cache.
15554
15555 2008-11-02  Bruno Haible  <bruno@clisp.org>
15556
15557         * modules/TEMPLATE-EXTENDED: New field 'Status'.
15558         * gnulib-tool: New option --extract-status.
15559         (func_usage): Document it.
15560         (sed_extract_prog): Recognize it.
15561         (func_get_status): New function.
15562
15563 2008-10-30  Simon Josefsson  <simon@josefsson.org>
15564
15565         * modules/sockets (License): Change from LGPL to LGPLv2+.
15566
15567 2008-10-28  Simon Josefsson  <simon@josefsson.org>
15568
15569         * top/maint.mk: Add coverage rules, inspired by scripts in gnupdf.
15570
15571 2008-10-28  Simon Josefsson  <simon@josefsson.org>
15572
15573         * MODULES.html.sh (Support for systems lacking POSIX:2001):
15574         Mention times and sys_times.
15575         * modules/sys_times, modules/sys_times-tests: New modules.
15576         * modules/times, modules/times-tests: Likewise
15577         * m4/sys_times_h.m4: New file.
15578         * lib/sys_times.in.h: Likewise
15579         * lib/times.c: Likewise.
15580         * tests/test-sys_times.c: Likewise.
15581         * tests/test-times.c: Likewise.
15582         * doc/posix-headers/sys_times.texi: Update.
15583         * doc/posix-functions/times.texi: Update.
15584
15585 2008-10-28  Jim Meyering  <meyering@redhat.com>
15586
15587         * modules/tempname (Depends-on): Add lstat.
15588
15589         * modules/lstat (License): Relicense: LGPL -> LGPLv2+.
15590
15591 2008-10-28  Simon Josefsson  <simon@josefsson.org>
15592
15593         * gnulib-tool (func_emit_tests_Makefile_am): Revert last commit.
15594         * modules/argp-tests (test_argp_LDADD): Set EXEEXT here instead,
15595         using idiom used elsewhere in gnulib.
15596
15597 2008-10-27  Jim Meyering  <meyering@redhat.com>
15598
15599         * modules/gethostname (License): Relicense: LGPL -> LGPLv2+.
15600
15601 2008-10-27  Simon Josefsson  <simon@josefsson.org>
15602
15603         * gnulib-tool (func_emit_tests_Makefile_am): Set EXEEXT in
15604         TESTS_ENVIRONMENT, for shell scripts that needs to call built
15605         programs.
15606         * tests/test-argp-2.sh: Use $EXEEXT when needed.
15607
15608 2008-10-27  Simon Josefsson  <simon@josefsson.org>
15609
15610         * lib/sys_stat.in.h (lstat): Fix declaration for mingw.
15611
15612 2008-10-27  Bruno Haible  <bruno@clisp.org>
15613
15614         * tests/test-lstat.c: Include <stdio.h>.
15615
15616 2008-10-27  Simon Josefsson  <simon@josefsson.org>
15617
15618         * modules/lstat-tests: New module.
15619         * tests/test-lstat.c: New file.
15620
15621 2008-10-26  Jim Meyering  <meyering@redhat.com>
15622
15623         * lib/mkdir.c (rpl_mkdir) [_WIN32...]: Mark mode as an unused parameter.
15624
15625 2008-10-26  Simon Josefsson  <simon@josefsson.org>
15626             Bruno Haible  <bruno@clisp.org>
15627
15628         Fix a clash between the type DATADIR on Windows and the macro DATADIR.
15629         * modules/configmake (Include): Add a note that the include must come
15630         after all system headers.
15631         * lib/javaversion.c: Include configmake.h after all other includes.
15632
15633 2008-10-26  Bruno Haible  <bruno@clisp.org>
15634
15635         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Set default of
15636         HAVE_STRUCT_RANDOM_DATA to 1.
15637         (gl_STDLIB_H): Simplify.
15638
15639 2008-10-26  Simon Josefsson  <simon@josefsson.org>
15640
15641         * m4/stdlib_h.m4: Check for struct random_data.  Initialize and
15642         substitute HAVE_STRUCT_RANDOM_DATA.
15643         * lib/stdlib.in.h [!HAVE_STRUCT_RANDOM_DATA]: Provide struct
15644         random_data.
15645         * modules/stdlib (Makefile.am): Substitute
15646         HAVE_STRUCT_RANDOM_DATA.
15647
15648 2008-10-26  Simon Josefsson  <simon@josefsson.org>
15649
15650         * doc/gnulib.texi (@copying): Use GFDLv1.2+.
15651         * doc/gnulib-intro.texi (Copyright): Likewise.
15652
15653 2008-10-26  Simon Josefsson  <simon@josefsson.org>
15654
15655         * doc/gnulib.texi (Header files): C++ fixes, based on Bruno's
15656         findings.
15657
15658 2008-10-25  Ben Pfaff  <blp@cs.stanford.edu>
15659             Bruno Haible  <bruno@clisp.org>
15660
15661         * lib/unistd.in.h: Include <winsock2.h>.
15662         (socket, connect,accept, bind, getpeername, getsockname, getsockopt,
15663         listen, recv, send, recvfrom, sendto, setsockopt, shutdown, select):
15664         Provide dummy declarations.
15665         (gethostname): Override.
15666         * lib/sys_socket.in.h (gethostname): Provide dummy declaration.
15667         * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): Invoke
15668         gl_PREREQ_SYS_H_WINSOCK2.
15669         * modules/gethostname (Files): Add m4/sys_socket_h.m4.
15670         * doc/posix-functions/gethostname.texi: More details.
15671
15672 2008-10-25  Bruno Haible  <bruno@clisp.org>
15673
15674         * m4/sys_socket_h.m4 (gl_PREREQ_SYS_H_WINSOCK2): Require
15675         gl_UNISTD_H_DEFAULTS, gl_SYS_IOCTL_H_DEFAULTS only if they exist.
15676         * modules/sys_socket (Files): Remove m4/unistd_h.m4, m4/sys_ioctl_h.m4.
15677
15678         * lib/sys_socket.in.h (HAVE__GL_CLOSE_FD_MAYBE_SOCKET); Move macro from
15679         here ...
15680         * lib/unistd.in.h (HAVE__GL_CLOSE_FD_MAYBE_SOCKET); ... to here.
15681         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_H_DEFAULTS): Remove invocation of
15682         gl_UNISTD_H_DEFAULTS.
15683
15684 2008-10-25  Eric Blake  <ebb9@byu.net>
15685
15686         signbit: avoid spurious compiler failure
15687         * m4/signbit.m4 (gl_SIGNBIT_TEST_PROGRAM): Move non-constant
15688         declarations inside function.
15689
15690 2008-10-24  Simon Josefsson  <simon@josefsson.org>
15691             Bruno Haible  <bruno@clisp.org>
15692
15693         * lib/stdlib.in.h (@GNULIB_RANDOM_R@): Include stdint.h.
15694         * modules/random_r (Depends-on): Add stdint.
15695
15696 2008-10-24  Bruno Haible  <bruno@clisp.org>
15697
15698         * modules/intprops (License): Change to LGPLv2+, with approval by Paul
15699         Eggert.
15700         * modules/strerror (License): Likewise.
15701
15702 2008-10-24  Jim Meyering  <meyering@redhat.com>
15703
15704         sys_socket: fix typo that inhibited expansion of @GNULIB_SEND@
15705         * modules/sys_socket (Depends-on) [Depends-on]: Fix typo.
15706
15707 2008-10-24  Eric Blake  <ebb9@byu.net>
15708
15709         getgroups: fix compilation when getgroups is available
15710         * lib/getgroups.c (includes): Include <unistd.h> for getgroups,
15711         but with <config.h> override of getgroups disabled.
15712
15713 2008-10-24  Simon Josefsson  <simon@josefsson.org>
15714
15715         * doc/gnulib.texi (Header files): Add note about C++ problems.
15716         Explained by Bruno Haible <bruno@clisp.org>.
15717
15718 2008-10-23  Bruno Haible  <bruno@clisp.org>
15719
15720         Define a dummy SA_NODEFER macro on Interix.
15721         * lib/signal.in.h (SA_NODEFER): Define fallback.
15722         Reported by Aleksey Cheusov <cheusov@tut.by> via
15723         Thomas Klausner <wiz@netbsd.org> and Eric Blake.
15724
15725 2008-10-23  Bruno Haible  <bruno@clisp.org>
15726
15727         * modules/freadahead (License): Change to LGPLv2+.
15728         Suggested by Simon Josefsson.
15729
15730 2008-10-23  Jim Meyering  <meyering@redhat.com>
15731
15732         random_r: new module
15733         * modules/random_r: New file.
15734         * m4/random_r.m4: New file.
15735         * lib/random_r.c: New file, from glibc.
15736         * modules/random_r-tests: New file.
15737         * tests/test-random_r.c: New file.
15738         * lib/stdlib.in.h (srandom_r, initstate_r, setstate_r, random_r):
15739          Declare.
15740         (RAND_MAX): Define.
15741         * m4/stdlib_h.m4: Define and AC_SUBST GNULIB_RANDOM_R and HAVE_RANDOM_R.
15742         * modules/stdlib: Substitute them, too.
15743         * MODULES.html.sh (Extra functions based on POSIX:2001) [Misc]: Add it.
15744         * doc/glibc-functions/initstate_r.texi: Mention the new module.
15745         * doc/glibc-functions/random_r.texi: Likewise.
15746         * doc/glibc-functions/setstate_r.texi: Likewise.
15747         * doc/glibc-functions/srandom_r.texi: Likewise.
15748         * config/srclist.txt: Mention it.
15749
15750 2008-10-23  David Lutterkort  <lutter@redhat.com>
15751
15752         * modules/selinux-h: Search for LIB_SELINUX and mark it as a
15753         link requirement
15754
15755 2008-10-23  Jim Meyering  <meyering@redhat.com>
15756
15757         selinux-h: mark parameters of stub functions as intentionally unused
15758         * lib/se-selinux.in.h: Mark parameters as _UNUSED_PARAMETER_.
15759         * lib/se-context.in.h: Likewise.
15760
15761 2008-10-22  Simon Josefsson  <simon@josefsson.org>
15762
15763         * lib/sys_socket.in.h (FD_ISSET): Fix warnings under mingw.
15764
15765 2008-10-22  Simon Josefsson  <simon@josefsson.org>
15766
15767         * m4/getgroups.m4: Avoid invoking test with wrong parameters.
15768
15769 2008-10-22  Eric Blake  <ebb9@byu.net>
15770
15771         glthread/thread: avoid compiler warning
15772         * lib/glthread/thread.c (gl_thread_exit_func) [USE_WIN32_THREADS]:
15773         Add unreachable abort to silence compiler.
15774
15775 2008-10-22  Eric Blake  <ebb9@byu.net>
15776
15777         netdb: also supply struct addrinfo for cygwin 1.5.x
15778         * m4/netdb_h.m4 (gl_HEADER_NETDB): Check for incomplete header on
15779         older cygwin.
15780         * lib/netdb.in.h [!HAVE_STRUCT_ADDRINFO]: Also supply contents for
15781         cygwin.
15782         * doc/posix-headers/netdb.texi (netdb.h): Document this.
15783
15784 2008-10-22  Bruno Haible  <bruno@clisp.org>
15785
15786         * users.txt: Update entry about pspp.
15787
15788 2008-10-21  Bruno Haible  <bruno@clisp.org>
15789
15790         Simplification.
15791         * lib/sys_socket.in.h (_gl_close_fd_maybe_socket): Remove declaration.
15792         * lib/close.c (_gl_close_fd_maybe_socket): Make static.
15793
15794         Simplification.
15795         * lib/ioctl.c (ioctl): Don't undefine.
15796         * lib/socket.c (socket): Don't undefine.
15797
15798         Remove unused module indicator macros.
15799         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_MODULE_INDICATOR): Don't define
15800         GNULIB_$1 as a C macro.
15801
15802         * doc/posix-functions/close.texi: Undo last change.
15803         * doc/posix-functions/ioctl.texi: Merge the two paragraphs about
15804         Windows platforms.
15805
15806 2008-10-21  Bruno Haible  <bruno@clisp.org>
15807
15808         Add gethostname() declaration to <unistd.h>.
15809         * lib/unistd.in.h (gethostname): New declaration.
15810         * lib/gethostname.c: Include <unistd.h>.
15811         * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): Require
15812         gl_UNISTD_H_DEFAULTS. Set HAVE_GETHOSTNAME.
15813         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_GETHOSTNAME
15814         and HAVE_GETHOSTNAME.
15815         * modules/gethostname (Depends-on): Add unistd.
15816         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
15817         (Include): Specify <unistd.h>.
15818         * modules/unistd (Makefile.am): Substitute GNULIB_GETHOSTNAME and
15819         HAVE_GETHOSTNAME.
15820         * tests/test-gethostname.c: Include <unistd.h> first.
15821
15822 2008-10-21  Bruno Haible  <bruno@clisp.org>
15823
15824         * modules/poll-tests (Depends-on): Add sys_ioctl, ioctl.
15825         * modules/select-tests (Depends-on): Likewise.
15826         Reported by Simon Josefsson.
15827
15828 2008-10-21  Simon Josefsson  <simon@josefsson.org>
15829
15830         * lib/close.c: Add _gl_close_fd_maybe_socket from winsock.c.
15831         * lib/accept.c: New file, based on winsock.c.
15832         * lib/bind.c: New file, based on winsock.c.
15833         * lib/connect.c: New file, based on winsock.c.
15834         * lib/getpeername.c: New file, based on winsock.c.
15835         * lib/getsockname.c: New file, based on winsock.c.
15836         * lib/getsockopt.c: New file, based on winsock.c.
15837         * lib/ioctl.c: New file, based on winsock.c.
15838         * lib/listen.c: New file, based on winsock.c.
15839         * lib/recv.c: New file, based on winsock.c.
15840         * lib/recvfrom.c: New file, based on winsock.c.
15841         * lib/send.c: New file, based on winsock.c.
15842         * lib/sendto.c: New file, based on winsock.c.
15843         * lib/setsockopt.c: New file, based on winsock.c.
15844         * lib/shutdown.c: New file, based on winsock.c.
15845         * lib/socket.c: New file, based on winsock.c.
15846         * lib/w32sock.h: New file, based on winsock.c.
15847         * lib/winsock.c: Remove file.
15848         * modules/accept: Likewise.
15849         * modules/bind: Likewise.
15850         * modules/connect: Likewise.
15851         * modules/getpeername: Likewise.
15852         * modules/getsockname: Likewise.
15853         * modules/getsockopt: Likewise.
15854         * modules/ioctl: Likewise.
15855         * modules/listen: Likewise.
15856         * modules/recv: Likewise.
15857         * modules/recvfrom: Likewise.
15858         * modules/send: Likewise.
15859         * modules/sendto: Likewise.
15860         * modules/setsockopt: Likewise.
15861         * modules/shutdown: Likewise.
15862         * modules/socket: Use socket.c instead of winsock.c.
15863         * modules/sys_socket: Remove (unneeded?) dependency on winsock.c.
15864         * doc/posix-functions/accept.texi: Doc fix.
15865         * doc/posix-functions/bind.texi: Doc fix.
15866         * doc/posix-functions/close.texi: Doc fix.
15867         * doc/posix-functions/connect.texi: Doc fix.
15868         * doc/posix-functions/getpeername.texi: Doc fix.
15869         * doc/posix-functions/getsockname.texi: Doc fix.
15870         * doc/posix-functions/getsockopt.texi: Doc fix.
15871         * doc/posix-functions/ioctl.texi: Doc fix.
15872         * doc/posix-functions/listen.texi: Doc fix.
15873         * doc/posix-functions/recv.texi: Doc fix.
15874         * doc/posix-functions/recvfrom.texi: Doc fix.
15875         * doc/posix-functions/send.texi: Doc fix.
15876         * doc/posix-functions/sendto.texi: Doc fix.
15877         * doc/posix-functions/setsockopt.texi: Doc fix.
15878         * doc/posix-functions/shutdown.texi: Doc fix.
15879         * doc/posix-functions/socket.texi: Doc fix.
15880
15881 2008-10-20  Bruno Haible  <bruno@clisp.org>
15882
15883         Take into account the role of SIGABRT_COMPAT on Windows 2008.
15884         * lib/sigprocmask.c (SIGABRT_COMPAT, SIGABRT_COMPAT_MASK): New macros.
15885         (sigismember, sigaddset, sigdelset, sigfillset, rpl_signal): Handle it
15886         as an alias for SIGABRT.
15887         * lib/sigaction.c (SIGABRT_COMPAT): New macro.
15888         (sigaction): Map it to SIGABRT.
15889         Reported by Ramiro Polla <ramiro.polla@gmail.com> via Eric Blake.
15890
15891 2008-10-20  Bruno Haible  <bruno@clisp.org>
15892
15893         * lib/fts.c: Don't include lstat.h.
15894         * lib/openat.c: Include <sys/stat.h> instead of lstat.h.
15895
15896         Move the lstat() declaration to <sys/stat.h>.
15897         * lib/lstat.h: Remove file.
15898         * lib/sys_stat.in.h: Add special invocation convention.
15899         (lstat): New declaration.
15900         * lib/lstat.c (orig_lstat): New function.
15901         (rpl_lstat): Use orig_lstat instead of lstat.
15902         * m4/lstat.m4 (gl_FUNC_LSTAT): Require gl_SYS_STAT_H_DEFAULTS and
15903         AC_C_INLINE. Set REPLACE_LSTAT.
15904         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Initialize GNULIB_LSTAT
15905         and REPLACE_LSTAT.
15906         * modules/lstat (Files): Remove lib/lstat.h.
15907         (configure.ac): Invoke gl_SYS_STAT_MODULE_INDICATOR.
15908         (Include): Specify <sys/stat.h> instead of lstat.h.
15909         * modules/sys_stat (Makefile.am): Substitute GNULIB_LSTAT and
15910         REPLACE_LSTAT.
15911         * NEWS: Mention the change.
15912
15913 2008-10-20  Bruno Haible  <bruno@clisp.org>
15914
15915         * modules/posix_spawn-tests: New file.
15916         * tests/test-posix_spawn3.c: New file.
15917
15918 2008-10-20  Bruno Haible  <bruno@clisp.org>
15919
15920         * modules/posix_spawnp-tests (Depends-on): Add sys_wait.
15921         * tests/test-posix_spawn1.c (WTERMSIG, WCOREDUMP, WEXITSTATUS,
15922         WIFSIGNALED, WIFEXITED, WIFSTOPPED): Remove fallback definitions.
15923         * tests/test-posix_spawn2.c (WTERMSIG, WCOREDUMP, WEXITSTATUS,
15924         WIFSIGNALED, WIFEXITED, WIFSTOPPED): Likewise.
15925
15926 2008-10-20  Bruno Haible  <bruno@clisp.org>
15927
15928         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_WORKS): Test against another bug
15929         of posix_spawn on AIX 5.3.
15930
15931 2008-10-20  Bruno Haible  <bruno@clisp.org>
15932
15933         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_WORKS): Make the check on MacOS X.
15934
15935 2008-10-20  Bruno Haible  <bruno@clisp.org>
15936
15937         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_WORKS): Use AC_LANG_SOURCE instead
15938         of AC_LANG_PROGRAM.
15939
15940 2008-10-20  Simon Josefsson  <simon@josefsson.org>
15941
15942         * lib/netdb.in.h: Don't define GNU specific constants until they
15943         are supported or needed.  Reported by Bruno Haible
15944         <bruno@clisp.org>.
15945
15946 2008-10-20  Simon Josefsson  <simon@josefsson.org>
15947
15948         * lib/canon-host.c: Include netdb.h instead of getaddrinfo.h.
15949
15950 2008-10-20  Simon Josefsson  <simon@josefsson.org>
15951
15952         * lib/getaddrinfo.h: Remove file.
15953         * modules/getaddrinfo: Reflect move from getaddrinfo.h to netdb.h.
15954         * m4/getaddrinfo.m4: Call gl_HEADER_NETDB.  Don't check for netdb.h.
15955         * lib/netdb.in.h: Add declarations from getaddrinfo.h.
15956         * m4/netdb_h.m4: Initialize GNULIB_GETADDRINFO to 0.
15957         * modules/netdb: Substitute GNULIB_GETADDRINFO.
15958         * lib/getaddrinfo.c: Include netdb.h instead of getaddrinfo.h.
15959         * tests/test-getaddrinfo.c: Likewise.
15960         * lib/gai_strerror.c: Likewise.  Also drop HAVE_NETDB_H check.
15961         * NEWS: Mention change.
15962
15963 2008-10-19  Bruno Haible  <bruno@clisp.org>
15964
15965         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_WORKS): Remove unneeded code.
15966
15967 2008-10-19  Bruno Haible  <bruno@clisp.org>
15968
15969         * lib/wait-process.c: Include simply <sys/wait.h>.
15970         (waitpid, WTERMSIG, WCOREDUMP, WEXITSTATUS, WIFSIGNALED, WIFEXITED,
15971         WIFSTOPPED): Remove fallback definitions.
15972         * modules/wait-process (Depends-on): Add sys_wait.
15973
15974         New module 'sys_wait'.
15975         * modules/sys_wait: New file.
15976         * lib/sys_wait.in.h: New file, partially copied from
15977         lib/wait-process.c.
15978         * m4/sys_wait_h.m4: New file.
15979         * doc/posix-headers/sys_wait.texi: Mention the new module.
15980
15981 2008-10-19  Bruno Haible  <bruno@clisp.org>
15982
15983         * m4/wait-process.m4 (gl_WAIT_PROCESS): Remove test for unistd.h.
15984
15985 2008-10-19  Bruno Haible  <bruno@clisp.org>
15986
15987         Assume that waitpid() fills an 'int' status, not a 'union wait'.
15988         * lib/wait-process.c (WAIT_T): Remove type.
15989         (WTERMSIG, WCOREDUMP, WEXITSTATUS): Define fallbacks using bit masks.
15990         (wait_subprocess): Update.
15991
15992 2008-10-19  Bruno Haible  <bruno@clisp.org>
15993
15994         New module 'atoll'.
15995         * modules/atoll: New file.
15996         * lib/stdlib.in.h (atoll): New declaration.
15997         * lib/atoll.c: New file, from glibc with modifications.
15998         * m4/atoll.m4: New file.
15999         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_ATOLL,
16000         HAVE_ATOLL.
16001         * modules/stdlib (Makefile.am): Substitute GNULIB_ATOLL, HAVE_ATOLL.
16002         * doc/posix-functions/atoll.texi: Mention the new module.
16003
16004 2008-10-19  Bruno Haible  <bruno@clisp.org>
16005
16006         Add strtoull() declaration to <stdlib.h>.
16007         * lib/stdlib.in.h (strtoull): New declaration.
16008         * m4/strtoull.m4 (gl_FUNC_STRTOLL): Require gl_STDLIB_H_DEFAULTS.
16009         Set HAVE_STRTOULL.
16010         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_STRTOULL,
16011         HAVE_STRTOULL.
16012         * modules/strtoull (Depends-on): Add stdlib.
16013         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
16014         * modules/stdlib (Makefile.am): Substitute GNULIB_STRTOULL,
16015         HAVE_STRTOULL.
16016
16017 2008-10-19  Bruno Haible  <bruno@clisp.org>
16018
16019         Add strtoll() declaration to <stdlib.h>.
16020         * lib/stdlib.in.h (strtoll): New declaration.
16021         * m4/strtoll.m4 (gl_FUNC_STRTOLL): Require gl_STDLIB_H_DEFAULTS.
16022         Set HAVE_STRTOLL.
16023         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_STRTOLL,
16024         HAVE_STRTOLL.
16025         * modules/strtoll (Depends-on): Add stdlib.
16026         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
16027         * modules/stdlib (Makefile.am): Substitute GNULIB_STRTOLL, HAVE_STRTOLL.
16028
16029 2008-10-19  Bruno Haible  <bruno@clisp.org>
16030
16031         * modules/bcopy (Depends-on): Add strings.
16032         (Include): Specify <strings.h>.
16033
16034 2008-10-19  Bruno Haible  <bruno@clisp.org>
16035
16036         * doc/posix-functions/atexit.texi: Update doc regarding mingw.
16037
16038 2008-10-19  Bruno Haible  <bruno@clisp.org>
16039
16040         * lib/openat-die.c (openat_save_fail, openat_restore_fail): Rename
16041         the parameter from 'errno' to 'errnum'. Fixes a compilation error on
16042         mingw.
16043
16044 2008-10-19  Bruno Haible  <bruno@clisp.org>
16045
16046         * lib/atanl.c: Don't include isnanl.h.
16047         * lib/cosl.c: Likewise.
16048         * lib/ldexpl.c: Likewise.
16049         * lib/logl.c: Likewise.
16050         * lib/sinl.c: Likewise.
16051         * lib/sqrtl.c: Likewise.
16052         * lib/tanl.c: Likewise.
16053
16054         Move the isnanf(), isnand(), isnanl() declarations to <math.h>.
16055         * lib/isnanf.h: Remove file.
16056         * lib/isnand.h: Remove file.
16057         * lib/isnanl.h: Remove file.
16058         * lib/math.in.h: Include the contents of lib/isnanf.h, lib/isnand.h,
16059         lib/isnanl.h. Use HAVE_ISNANF, HAVE_ISNAND, HAVE_ISNANL as substituted
16060         macros.
16061         * m4/isnanf.m4 (gl_FUNC_ISNANF): Require gl_MATH_H_DEFAULTS. Set
16062         HAVE_ISNANF, don't define it as a C macro.
16063         * m4/isnand.m4 (gl_FUNC_ISNAND): Require gl_MATH_H_DEFAULTS. Set
16064         HAVE_ISNAND, don't define it as a C macro.
16065         * m4/isnanl.m4 (gl_FUNC_ISNANL): Require gl_MATH_H_DEFAULTS. Set
16066         HAVE_ISNANL, don't define it as a C macro.
16067         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_ISNAN[FDL] and
16068         HAVE_ISNAN[FDL].
16069         * modules/isnanf (Files): Remove lib/isnanf.h.
16070         (Depends-on): Add math.
16071         (configure.ac): Invoke gl_MATH_MODULE_INDICATOR.
16072         (Include): Specify <math.h> instead of isnanf.h.
16073         * modules/isnand (Files): Remove lib/isnand.h.
16074         (Depends-on): Add math.
16075         (configure.ac): Invoke gl_MATH_MODULE_INDICATOR.
16076         (Include): Specify <math.h> instead of isnand.h.
16077         * modules/isnanl (Files): Remove lib/isnanl.h.
16078         (Depends-on): Add math.
16079         (configure.ac): Invoke gl_MATH_MODULE_INDICATOR.
16080         (Include): Specify <math.h> instead of isnanl.h.
16081         * modules/math (Makefile.am): Substitute GNULIB_ISNAN[FDL] and
16082         HAVE_ISNAN[FDL].
16083         * tests/test-isnanf.c: Include <math.h> instead of isnanf.h.
16084         * tests/test-isnand.c: Include <math.h> instead of isnand.h.
16085         * tests/test-isnanl.c: Include <math.h> instead of isnanl.h.
16086         * NEWS: Mention the change.
16087
16088 2008-10-18  Bruno Haible  <bruno@clisp.org>
16089
16090         Add getusershell(), setusershell(), endusershell() declarations to
16091         <unistd.h>.
16092         * lib/unistd.in.h (getusershell, setusershell, endusershell): New
16093         declarations.
16094         * lib/getusershell.c: Include unistd.h.
16095         * m4/getusershell.m4 (gl_FUNC_GETUSERSHELL): Require
16096         gl_UNISTD_H_DEFAULTS and AC_USE_SYSTEM_EXTENSIONS. Set
16097         HAVE_GETUSERSHELL.
16098         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_GETUSERSHELL
16099         and HAVE_GETUSERSHELL.
16100         * modules/getusershell (Depends-on): Add unistd, extensions.
16101         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
16102         (Include): Specify <unistd.h>.
16103         * modules/unistd (Makefile.am): Substitute GNULIB_GETUSERSHELL and
16104         HAVE_GETUSERSHELL.
16105
16106 2008-10-18  Bruno Haible  <bruno@clisp.org>
16107
16108         Add a getloadavg() declaration to <stdlib.h>.
16109         * lib/stdlib.in.h; Include <sys/loadavg.h> when needed for the
16110         getloadavg declaration.
16111         (getloadavg): New declaration.
16112         * lib/getloadavg.c: Include <stdlib.h> first.
16113         * m4/getloadavg.m4 (gl_GETLOADAVG): Require gl_STDLIB_H_DEFAULTS and
16114         AC_USE_SYSTEM_EXTENSIONS. Test whether sys/loadavg.h exists. Set
16115         HAVE_SYS_LOADAVG_H and HAVE_DECL_GETLOADAVG.
16116         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_GETLOADAVG,
16117         HAVE_SYS_LOADAVG_H, HAVE_DECL_GETLOADAVG.
16118         * modules/getloadavg (Depends-on): Add stdlib, extensions.
16119         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
16120         (Include): Specify <stdlib.h>.
16121         * modules/stdlib (Makefile.am): Substitute GNULIB_GETLOADAVG,
16122         HAVE_SYS_LOADAVG_H, HAVE_DECL_GETLOADAVG.
16123
16124 2008-10-18  Bruno Haible  <bruno@clisp.org>
16125
16126         * lib/dirchownmod.c: Don't include lchmod.h.
16127
16128         Move the lchmod() declaration to <sys/stat.h>.
16129         * lib/lchmod.h: Remove file.
16130         * lib/sys_stat.in.h: Add placeholder for GL_LINK_WARNING.
16131         (lchmod): New declaration, moved here from lib/lchown.h.
16132         * m4/lchmod.m4 (gl_FUNC_LCHMOD): Require gl_SYS_STAT_H_DEFAULTS and
16133         AC_USE_SYSTEM_EXTENSIONS. Set HAVE_LCHMOD.
16134         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Initialize GNULIB_LCHMOD
16135         and HAVE_LCHMOD.
16136         * modules/lchmod (Files): Remove lib/lchmod.h.
16137         (Depends-on): Add sys_stat, extensions.
16138         (configure.ac): Invoke gl_SYS_STAT_MODULE_INDICATOR.
16139         (Include): Specify <sys/stat.h> instead of lchmod.h.
16140         * modules/sys_stat (Depends-on): Add link-warning.
16141         (Makefile.am): Substitute GNULIB_LCHMOD, HAVE_LCHMOD, and the
16142         definition of GL_LINK_WARNING.
16143         * NEWS: Mention the change.
16144
16145 2008-10-18  Bruno Haible  <bruno@clisp.org>
16146
16147         * lib/fchdir.c: Don't include dirfd.h.
16148         * lib/fts.c: Likewise.
16149         * lib/getcwd.c: Likewise.
16150         * lib/glob.c: Likewise.
16151
16152         Move the dirfd() declaration to <dirent.h>.
16153         * lib/dirfd.h: Remove file.
16154         * lib/dirent.in.h: Add placeholder for GL_LINK_WARNING.
16155         (dirfd): New declaration.
16156         * lib/dirfd.c: Include <dirent.h> instead of dirfd.h.
16157         * m4/dirfd.m4 (gl_FUNC_DIRFD): Require gl_DIRENT_H_DEFAULTS and
16158         AC_USE_SYSTEM_EXTENSIONS. Invoke gl_REPLACE_DIRENT_H. Set
16159         HAVE_DECL_DIRFD.
16160         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): Initialize GNULIB_DIRFD and
16161         HAVE_DECL_DIRFD.
16162         * modules/dirfd (Files): Remove lib/dirfd.h.
16163         (Depends-on): Add dirent, extensions.
16164         (configure.ac): Invoke gl_DIRENT_MODULE_INDICATOR.
16165         (Include): Specify <dirent.h> instead of dirfd.h.
16166         * modules/dirent (Depends-on): Add link-warning.
16167         (Makefile.am): Substitute GNULIB_DIRFD, HAVE_DECL_DIRFD, and
16168         definition of GL_LINK_WARNING.
16169         * NEWS: Mention the change.
16170
16171 2008-10-18  Bruno Haible  <bruno@clisp.org>
16172
16173         Move the euidaccess() declaration to <unistd.h>.
16174         * lib/euidaccess.h: Remove file.
16175         * lib/unistd.in.h (euidaccess): New declaration.
16176         * lib/euidaccess.c: Don't include euidaccess.h.
16177         * m4/euidaccess.m4 (gl_FUNC_EUIDACCESS): Require gl_UNISTD_H_DEFAULTS.
16178         Don't check whether euidaccess is declared. Set HAVE_EUIDACCESS.
16179         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_EUIDACCESS
16180         and HAVE_EUIDACCESS.
16181         * modules/euidaccess (Files): Remove lib/euidaccess.h.
16182         (Depends-on): Add unistd.
16183         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
16184         (Include): Specify <unistd.h> instead of euidaccess.h.
16185         * modules/unistd (Makefile.am): Substitute GNULIB_EUIDACCESS and
16186         HAVE_EUIDACCESS.
16187         * NEWS: Mention the change.
16188
16189 2008-10-18  Bruno Haible  <bruno@clisp.org>
16190
16191         * lib/xgetdomainname.c: Include <unistd.h> instead of getdomainname.h.
16192
16193         Move the getdomainname() declaration to <unistd.h>.
16194         * lib/getdomainname.h: Remove file.
16195         * lib/unistd.in.h (getdomainname): New declaration.
16196         * lib/getdomainname.c: Include <unistd.h> instead of getdomainname.h.
16197         * m4/getdomainname.m4 (gl_FUNC_GETDOMAINNAME): Require
16198         gl_UNISTD_H_DEFAULTS and AC_USE_SYSTEM_EXTENSIONS. Set
16199         HAVE_GETDOMAINNAME.
16200         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
16201         GNULIB_GETDOMAINNAME and HAVE_GETDOMAINNAME.
16202         * modules/getdomainname (Files): Remove lib/getdomainname.h.
16203         (Depends-on): Add unistd, extensions.
16204         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
16205         (Includes): Specify <unistd.h> instead of getdomainname.h.
16206         * modules/unistd (Makefile.am): Substitute GNULIB_GETDOMAINNAME and
16207         HAVE_GETDOMAINNAME.
16208         * NEWS: Mention the change.
16209
16210 2008-10-18  Bruno Haible  <bruno@clisp.org>
16211
16212         * modules/dirent: New file.
16213         * m4/dirent_h.m4: New file.
16214         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Require gl_DIRENT_H_DEFAULTS.
16215         Invoke gl_REPLACE_DIRENT_H. Don't assign DIRENT_H directly.
16216         * modules/fchdir (Files): Remove lib/dirent.in.h.
16217         (Depends-on): Add dirent.
16218         (Makefile.am): Move rules to modules/dirent.
16219         * doc/posix-headers/dirent.texi: Mention the new module.
16220
16221 2008-10-18  Bruno Haible  <bruno@clisp.org>
16222
16223         Avoid -Wunused-parameter warnings in public gnulib header files.
16224         * m4/gnulib-common.m4 (gl_COMMON_BODY): Define _UNUSED_PARAMETER_ as a
16225         macro.
16226         * lib/unistr.h (u32_mbtouc_unsafe, u32_mbtouc): Use it.
16227
16228 2008-10-18  Bruno Haible  <bruno@clisp.org>
16229
16230         * doc/glibc-functions/dirfd.texi: Mention the module 'dirfd'.
16231         * doc/glibc-functions/error.texi: Mention the module 'error'.
16232         * doc/glibc-functions/euidaccess.texi: Mention the module 'euidaccess'.
16233         * doc/glibc-functions/getdomainname.texi: Mention the module
16234         'getdomainname'.
16235         * doc/glibc-functions/getloadavg.texi: Mention the module 'getloadavg'.
16236         * doc/glibc-functions/getpagesize.texi: Mention the module
16237         'getpagesize'.
16238         * doc/glibc-functions/getusershell.texi: Mention the module
16239         'getusershell'.
16240         * doc/glibc-functions/isnanl.texi: Mention the module 'isnanl'.
16241         * doc/glibc-functions/lchmod.texi: Mention the module 'lchmod'.
16242         * doc/glibc-functions/mempcpy.texi: Mention the module 'mempcpy'.
16243         * doc/glibc-functions/memrchr.texi: Mention the module 'memrchr'.
16244         * doc/glibc-functions/mkdtemp.texi: Mention the module 'mkdtemp'.
16245         * doc/glibc-functions/rpmatch.texi: Mention the module 'rpmatch'.
16246         * doc/glibc-functions/stpcpy.texi: Mention the module 'stpcpy'.
16247         * doc/glibc-functions/stpncpy.texi: Mention the module 'stpncpy'.
16248         * doc/glibc-functions/strchrnul.texi: Mention the module 'strchrnul'.
16249         * doc/glibc-functions/strndup.texi: Mention the module 'strndup'.
16250         * doc/glibc-functions/strnlen.texi: Mention the module 'strnlen'.
16251         * doc/glibc-functions/strsep.texi: Mention the module 'strsep'.
16252         * doc/glibc-functions/timegm.texi: Mention the module 'timegm'.
16253         * doc/glibc-functions/vasprintf.texi: Mention the module 'vasprintf'.
16254
16255 2008-10-17  Bruno Haible  <bruno@clisp.org>
16256
16257         * m4/signbit.m4 (gl_SIGNBIT_TEST_PROGRAM): On platforms other than
16258         HP-UX and IRIX, use -0.0L.
16259         * tests/test-ceill.c (minus_zero): Likewise.
16260         * tests/test-floorl.c (minus_zero): Likewise.
16261         * tests/test-frexpl.c (minus_zero): Likewise.
16262         * tests/test-isnan.c (minus_zerol): Likewise.
16263         * tests/test-isnanl.h (minus_zero): Likewise.
16264         * tests/test-ldexpl.c (minus_zero): Likewise.
16265         * tests/test-roundl.c (minus_zero): Likewise.
16266         * tests/test-signbit.c (minus_zerol): Likewise.
16267         * tests/test-snprintf-posix.h (minus_zerol): Likewise.
16268         * tests/test-sprintf-posix.h (minus_zerol): Likewise.
16269         * tests/test-truncl.c (minus_zero): Likewise.
16270         * tests/test-vasnprintf-posix.c (minus_zerol): Likewise.
16271         * tests/test-vasprintf-posix.c (minus_zerol): Likewise.
16272         Reported by Markus Armbruster <armbru@redhat.com> via Jim Meyering
16273         and by Nelson H. F. Beebe <beebe@math.utah.edu> via Eric Blake.
16274
16275 2008-10-17  Bruno Haible  <bruno@clisp.org>
16276
16277         Avoid gcc warnings because of #pragma GCC system_header on older gcc.
16278         * lib/arpa_inet.in.h: Encloses reference to PRAGMA_SYSTEM_HEADER so
16279         that it gets activated only for gcc >= 3.0.
16280         * lib/dirent.in.h: Likewise.
16281         * lib/errno.in.h: Likewise.
16282         * lib/fcntl.in.h: Likewise.
16283         * lib/float.in.h: Likewise.
16284         * lib/iconv.in.h: Likewise.
16285         * lib/inttypes.in.h: Likewise.
16286         * lib/locale.in.h: Likewise.
16287         * lib/math.in.h: Likewise.
16288         * lib/netdb.in.h: Likewise.
16289         * lib/netinet_in.in.h: Likewise.
16290         * lib/search.in.h: Likewise.
16291         * lib/signal.in.h: Likewise.
16292         * lib/spawn.in.h: Likewise.
16293         * lib/stdarg.in.h: Likewise.
16294         * lib/stdint.in.h: Likewise.
16295         * lib/stdio.in.h: Likewise.
16296         * lib/stdlib.in.h: Likewise.
16297         * lib/string.in.h: Likewise.
16298         * lib/strings.in.h: Likewise.
16299         * lib/sys_file.in.h: Likewise.
16300         * lib/sys_ioctl.in.h: Likewise.
16301         * lib/sys_select.in.h: Likewise.
16302         * lib/sys_socket.in.h: Likewise.
16303         * lib/sys_stat.in.h: Likewise.
16304         * lib/sys_time.in.h: Likewise.
16305         * lib/sysexits.in.h: Likewise.
16306         * lib/time.in.h: Likewise.
16307         * lib/unistd.in.h: Likewise.
16308         * lib/wchar.in.h: Likewise.
16309         * lib/wctype.in.h: Likewise.
16310         Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
16311
16312 2008-10-17  Jim Meyering  <meyering@redhat.com>
16313
16314         ignore-value: don't depend on inline module
16315         * modules/ignore-value (Depends-on): Remove 'inline'.
16316         (configure.ac): Instead, add AC_REQUIRE([AC_C_INLINE]) here.
16317         Suggestion from Bruno Haible.
16318
16319 2008-10-17  Bruno Haible  <bruno@clisp.org>
16320
16321         New implementation of condition variables for Win32.
16322         * lib/glthread/cond.h (struct gl_waitqueue_link): New type.
16323         (gl_linked_waitqueue_t): New type.
16324         (gl_cond_t): Use it.
16325         * lib/glthread/cond.c (struct gl_waitqueue_element): New type.
16326         (gl_waitqueue_init, gl_waitqueue_add, gl_waitqueue_remove,
16327         gl_waitqueue_notify_first, gl_waitqueue_notify_all): New functions.
16328         (glthread_cond_init_func, glthread_cond_wait_func,
16329         glthread_cond_timedwait_func, glthread_cond_signal_func,
16330         glthread_cond_broadcast_func, glthread_cond_destroy_func):
16331         Reimplemented on the basis of gl_linked_waitqueue_t.
16332         * lib/glthread/lock.h (gl_carray_waitqueue_t): Renamed from
16333         gl_waitqueue_t.
16334         (gl_rwlock_t): Update.
16335         * lib/glthread/lock.c (gl_waitqueue_t): Alias to gl_carray_waitqueue_t.
16336
16337 2008-10-17  Simon Josefsson  <simon@josefsson.org>
16338
16339         * modules/recvfrom (Depends-on): Add dependency on getpeername.
16340         Reported by Yoann Vandoorselaere <yoann@prelude-ids.org>.
16341
16342 2008-10-17  Jim Meyering  <meyering@redhat.com>
16343
16344         ignore-value: new module
16345         * modules/ignore-value: New file.
16346         * lib/ignore-value.h: New file.
16347         * MODULES.html.sh (Compiler warning management): New section,
16348         just for this module.  More to come.
16349
16350 2008-10-16  Paul Eggert  <eggert@cs.ucla.edu>
16351
16352         open-safer.c: avoid 'signed and unsigned in conditional...' warning
16353         * lib/open-safer.c (open_safer): Use an "if/else" statement in place
16354         of the ternary operator.  Reported by Reuben Thomas <rrt@sc3d.org>.
16355
16356 2008-10-16  Jim Meyering  <meyering@redhat.com>
16357
16358         openat-die.c: avoid 'no previous prototype' warning
16359         * lib/openat-die.c: Include "openat.h".
16360         Reported by Reuben Thomas <rrt@sc3d.org>.
16361
16362 2008-10-16  Simon Josefsson  <simon@josefsson.org>
16363
16364         * m4/netdb_h.m4: Assume that if netdb.h exists, it works.
16365         * lib/netdb.in.h: Fix typo.
16366         Reported by Bruno Haible  <bruno@clisp.org>
16367
16368         * lib/netdb.in.h: Include sys/socket.h for platforms without
16369         netdb.h, to get structures like hostent on MinGW.
16370         * modules/netdb (Depends-on): Add sys_socket.
16371
16372 2008-10-15  Simon Josefsson  <simon@josefsson.org>
16373
16374         * modules/netdb, modules/netdb-tests: New file.
16375         * m4/netdb_h.m4: New file.
16376         * lib/netdb.in.h: Add, currently just an empty file pending
16377         definitions.
16378         * tests/test-netdb.c: New file.
16379         * doc/posix-headers/netdb.texi: Mention that we replace it if
16380         needed.
16381         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
16382         netdb.
16383
16384 2008-10-15  Simon Josefsson  <simon@josefsson.org>
16385
16386         * doc/gnulib.texi (Getaddrinfo and WINVER): Sync documentation
16387         with code.
16388
16389 2008-10-13  Bruno Haible  <bruno@clisp.org>
16390
16391         * lib/glthread/cond.c (glthread_cond_wait_func,
16392         glthread_cond_timedwait_func): Add a comment.
16393
16394 2008-10-13  Yoann Vandoorselaere  <yoann@prelude-ids.org>
16395
16396         * tests/test-poll.c: Include <sys/ioctl.h>, for ioctl().
16397         * tests/test-select.c: Likewise,
16398
16399 2008-10-13  Bruno Haible  <bruno@clisp.org>
16400
16401         * lib/glthread/cond.c (glthread_cond_wait_func,
16402         glthread_cond_timedwait_func): Fix variable name.
16403         Reported by Yoann Vandoorselaere <yoann@prelude-ids.org>.
16404
16405 2008-10-13  Paolo Bonzini  <bonzini@gnu.org>
16406
16407         fix getaddrinfo emulation for systems with struct sockaddr.sa_len
16408         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Detect
16409         struct sockaddr.sa_len.
16410         * lib/getaddrinfo.c (getaddrinfo): Set it if appropriate.
16411
16412 2008-10-13  Simon Josefsson  <simon@josefsson.org>
16413
16414         * build-aux/pmccabe2html: Add css and css_url parameters.
16415
16416 2008-10-12  Bruno Haible  <bruno@clisp.org>
16417
16418         * tests/test-sameacls.c (main) [AIX]: Clear type argument before
16419         calling aclx_get.
16420         Reported by Rainer Tammer <tammer@tammer.net>.
16421
16422 2008-10-12  Bruno Haible  <bruno@clisp.org>
16423
16424         Use msvcrt aware primitives for creation/termination of Win32 threads.
16425         * lib/glthread/thread.c: Include <process.h>.
16426         (glthread_create_func): Use _beginthreadex instead of CreateThread.
16427         (wrapper_func): Update signature.
16428         (gl_thread_exit_func): Use _endthreadex instead of EndThread.
16429
16430 2008-10-11  Yoann Vandoorselaere  <yoann@prelude-ids.org>
16431             Bruno Haible  <bruno@clisp.org>
16432
16433         Provide a Win32 implementation of the 'cond' module.
16434         * lib/glthread/cond.h [USE_WIN32]: New implementation.
16435         * lib/glthread/cond.c (glthread_cond_init_func,
16436         glthread_cond_wait_func, glthread_cond_timedwait_func,
16437         glthread_cond_signal_func, glthread_cond_broadcast_func,
16438         glthread_cond_destroy_func) [USE_WIN32]: New functions.
16439         * modules/cond (Dependencies): Add gettimeofday.
16440
16441 2008-10-11  Bruno Haible  <bruno@clisp.org>
16442
16443         Make sleep work on older versions of mingw.
16444         * m4/sleep.m4 (gl_FUNC_SLEEP): Test whether 'sleep' is declared, not
16445         only whether it exists.
16446         * doc/posix-functions/sleep.texi: Mention the problem with older
16447         versions of mingw.
16448
16449 2008-10-11  Bruno Haible  <bruno@clisp.org>
16450
16451         New module 'shutdown'.
16452         * modules/shutdown: New file.
16453         * lib/sys_socket.in.h (shutdown): New declaration.
16454         * lib/winsock.c (shutdown): New function.
16455         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_H_DEFAULTS): Initialize
16456         GNULIB_SHUTDOWN.
16457         * modules/sys_socket (Makefile.am): Substitute GNULIB_SHUTDOWN.
16458         * doc/posix-functions/shutdown.texi: Document the new module.
16459
16460 2008-10-11  Jim Meyering  <meyering@redhat.com>
16461
16462         * lib/fclose.c: Fix typo in comment: s/close/fclose/.
16463
16464 2008-10-11  Bruno Haible  <bruno@clisp.org>
16465
16466         New module 'fclose'.
16467         * modules/fclose: New file.
16468         * lib/stdio.in.h (fclose): New declaration.
16469         * lib/fclose.c: New file.
16470         * m4/fclose.m4: New file.
16471         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize GNULIB_FCLOSE,
16472         REPLACE_FCLOSE.
16473         * m4/close.m4 (gl_REPLACE_CLOSE): Invoke gl_REPLACE_FCLOSE.
16474         * modules/stdio (Makefile.am): Substitute GNULIB_FCLOSE,
16475         REPLACE_FCLOSE.
16476         * modules/close (Depends-on): fclose.
16477         * doc/posix-functions/fclose.texi: Mention the problem on Windows.
16478
16479 2008-10-11  Bruno Haible  <bruno@clisp.org>
16480
16481         * lib/winsock.c (_gl_close_fd_maybe_socket): If closesocket fails,
16482         set errno and don't call _close.
16483
16484 2008-10-10  Bruno Haible  <bruno@clisp.org>
16485
16486         * lib/copy-acl.c (qcopy_acl) [CYGWIN]: Call chmod before setting the
16487         ACL, not afterwards. Fixes test failure on Cygwin.
16488
16489 2008-10-09  Ben Pfaff  <blp@gnu.org>
16490
16491         * build-aux/announce-gen: Fix gnulib version related part of usage
16492         message.  Die with a useful error message if no tarballs are
16493         found.
16494
16495 2008-10-10  Jim Meyering  <meyering@redhat.com>
16496
16497         bootstrap: use git's --depth=N option only if it's supported
16498         * build-aux/bootstrap: Work with git-1.4.4.4, which does not
16499         recognize the --depth option.  Reported by Pádraig Brady.
16500
16501 2008-10-09  Bruno Haible  <bruno@clisp.org>
16502
16503         New module 'ioctl'.
16504         * modules/ioctl: New file.
16505         * lib/sys_socket.in.h (ioctl): Remove declaration.
16506         * lib/winsock.c: Include <sys/ioctl.h>.
16507         (rpl_ioctl): Define only of the gnulib module 'ioctl' is present.
16508         * m4/sys_socket_h.m4 (gl_PREREQ_SYS_H_WINSOCK2): Require
16509         gl_SYS_IOCTL_H_DEFAULTS. Set also SYS_IOCTL_H_HAVE_WINSOCK2_H.
16510         * modules/sys_socket (Files): Add m4/sys_ioctl_h.m4.
16511         * doc/posix-functions/ioctl.texi: Mention the new module.
16512
16513 2008-10-09  Bruno Haible  <bruno@clisp.org>
16514
16515         New module 'sys_ioctl'.
16516         * lib/sys_ioctl.in.h: New file.
16517         * m4/sys_ioctl_h.m4: New file.
16518         * modules/sys_ioctl: New file.
16519         * doc/glibc-headers/sys_ioctl.texi: Mention the new module.
16520
16521 2008-10-09  Bruno Haible  <bruno@clisp.org>
16522
16523         * lib/sys_socket.in.h (ioctl): Make signature POSIX compliant.
16524         * lib/winsock.c: Include <stdarg.h>.
16525         (rpl_ioctl): Change to second argument 'int' and then varargs.
16526
16527 2008-10-09  Bruno Haible  <bruno@clisp.org>
16528
16529         * m4/close.m4 (gl_FUNC_CLOSE): Arrange to replace the close() function
16530         when the sys_socket module is present and the system has <winsock2.h>.
16531
16532 2008-10-09  Bruno Haible  <bruno@clisp.org>
16533
16534         * doc/posix-functions/close.texi: Mention module 'close' instead of
16535         module 'sys_socket'.
16536
16537 2008-10-09  Bruno Haible  <bruno@clisp.org>
16538
16539         * doc/glibc-headers/sys_ioctl.texi: New file.
16540         * doc/gnulib.texi: Include it.
16541
16542 2008-10-09  Paolo Bonzini  <bonzini@gnu.org>
16543             Bruno Haible  <bruno@clisp.org>
16544
16545         Combine the two replacements of 'close'.
16546         * lib/sys_socket.in.h (close): Define to a reminder to include
16547         <unistd.h>.
16548         (_gl_close_fd_maybe_socket): New declaration.
16549         (HAVE__GL_CLOSE_FD_MAYBE_SOCKET): New macro.
16550         * lib/winsock.c (close): Remove undefinition.
16551         (_gl_close_fd_maybe_socket): Renamed from rpl_close. Define only when
16552         needed for the gnulib module 'close'.
16553         * lib/unistd.in.h (close): If the gnulib module 'close' is not used,
16554         define to an error symbol or to a warning, if suitable.
16555         * lib/close.c: Include <sys/socket.h>.
16556         (rpl_close): Invoke _gl_close_fd_maybe_socket when gnulib defines it.
16557         * m4/sys_socket_h.m4 (gl_PREREQ_SYS_H_WINSOCK2): Set also
16558         UNISTD_H_HAVE_WINSOCK2_H.
16559         (gl_SYS_SOCKET_H_DEFAULTS): Require gl_UNISTD_H_DEFAULTS.
16560         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
16561         UNISTD_H_HAVE_WINSOCK2_H.
16562         * modules/sys_socket (Files): Add m4/unistd_h.m4.
16563         (configure.ac): Set a module indicator.
16564         (Makefile.am): Substitute GNULIB_CLOSE.
16565         * modules/unistd (Makefile.am): Substitute UNISTD_H_HAVE_WINSOCK2_H.
16566         * modules/poll-tests (Depends-on): Add close.
16567         * modules/select-tests (Depends-on): Likewise.
16568
16569 2008-10-09  Paolo Bonzini  <bonzini@gnu.org>
16570             Bruno Haible  <bruno@clisp.org>
16571
16572         New module 'close'.
16573         * modules/close: New file.
16574         * lib/unistd.in.h (close): Move declaration out of the
16575         FCHDIR_REPLACEMENT scope.
16576         (_gl_unregister_fd): New declaration.
16577         * lib/close.c: New file.
16578         * lib/fchdir.c (rpl_close): Remove function.
16579         * m4/close.m4: New file.
16580         * m4/fchdir.m4 (gl_FUNC_FCHDIR): When replacing fchdir, also replace
16581         close.
16582         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_CLOSE and
16583         REPLACE_CLOSE.
16584         * modules/unistd (Makefile.am): Substitute GNULIB_CLOSE and
16585         REPLACE_CLOSE.
16586         * modules/fchdir (Depends-on): Add close.
16587
16588 2008-10-09  Paolo Bonzini  <bonzini@gnu.org>
16589             Bruno Haible  <bruno@clisp.org>
16590
16591         * lib/fcntl.in.h (open): Simplify conditionals.
16592         (_gl_register_fd): New declaration.
16593         * lib/fchdir.c (rpl_open): Remove function.
16594         * lib/open.c: When FCHDIR_REPLACEMENT is defined, compile the file
16595         also.
16596         (open): When FCHDIR_REPLACEMENT is defined, invoke _gl_register_fd.
16597         * m4/fchdir.m4 (gl_FUNC_FCHDIR): When replacing fchdir, also replace
16598         open.
16599
16600 2008-10-09  Jim Meyering  <meyering@redhat.com>
16601
16602         GNUmakefile: use the more name-space-friendly "_version"
16603         * top/GNUmakefile (_dummy): Update.
16604         (_version): Rename from "version".
16605
16606 2008-10-09  Paolo Bonzini  <bonzini@gnu.org>
16607             Bruno Haible  <bruno@clisp.org>
16608
16609         * lib/fchdir.c (_gl_unregister_fd): New functions, extracted from
16610         rpl_close.
16611         (_gl_register_fd): New function, extracted from rpl_open.
16612         (rpl_close, rpl_closedir): Use _gl_unregister_fd.
16613         (rpl_open, rpl_opendir): Use _gl_register_fd.
16614
16615 2008-10-09  Paolo Bonzini  <bonzini@gnu.org>
16616
16617         Fix organization of 'open' replacement.
16618         * m4/open.m4 (gl_REPLACE_OPEN): New macro.
16619         (gl_FUNC_OPEN): Use it.
16620         (gl_PREREQ_OPEN): Add a : to make the body non-empty.
16621
16622 2008-10-08  Bruno Haible  <bruno@clisp.org>
16623
16624         * modules/getdate-tests (test_getdata_LDADD): Add LIBINTL.
16625
16626 2008-10-08  Simon Josefsson  <simon@josefsson.org>
16627
16628         * m4/sys_socket_h.m4: Don't AC_LIBOBJ(winsock).  The file is
16629         AC_LIBOBJ'ed by each gnulib module that needs it (e.g., socket,
16630         listen).
16631
16632 2008-10-08  Eric Blake  <ebb9@byu.net>
16633
16634         GNUmakefile: add 'make version' target
16635         * top/GNUmakefile (_curr-ver): Split version update rules...
16636         (version): ...into a target.
16637
16638 2008-10-07  Bruno Haible  <bruno@clisp.org>
16639
16640         Use a more portable replacement expression for -0.0L.
16641         * m4/signbit.m4 (gl_SIGNBIT_TEST_PROGRAM): Use -LDBL_MIN * LDBL_MIN
16642         instead of -0.0L. Fix m4 quotation.
16643
16644         * tests/test-signbit.c: Include <float.h>.
16645         (minus_zero): New variable.
16646         (test_signbitl): Use minus_zero instead of -zero.
16647         * modules/signbit-tests (Depends-on): Add float.
16648
16649         * tests/test-ceill.c: Include <float.h>.
16650         (zero): Remove variable.
16651         (minus_zero): New variable.
16652         (main): Use minus_zero instead of -zero.
16653         * modules/ceill-tests (Depends-on): Add float.
16654
16655         * tests/test-floorl.c: Include <float.h>.
16656         (zero): Remove variable.
16657         (minus_zero): New variable.
16658         (main): Use minus_zero instead of -zero.
16659         * modules/floorl-tests (Depends-on): Add float.
16660
16661         * tests/test-roundl.c: Include <float.h>.
16662         (zero): Remove variable.
16663         (minus_zero): New variable.
16664         (main): Use minus_zero instead of -zero.
16665         * modules/roundl-tests (Depends-on): Add float.
16666
16667         * tests/test-truncl.c: Include <float.h>.
16668         (zero): Remove variable.
16669         (minus_zero): New variable.
16670         (main): Use minus_zero instead of -zero.
16671         * modules/truncl-tests (Depends-on): Add float.
16672
16673         * tests/test-frexpl.c (zero): Remove variable.
16674         (minus_zero): New variable.
16675         (main): Use minus_zero instead of -zero.
16676         * modules/frexpl-tests (Depends-on): Add float.
16677
16678         * tests/test-isnan.c (zerol): Remove variable.
16679         (minus_zerol): New variable.
16680         (test_long_double): Use minus_zerol instead of -zerol.
16681         * modules/isnan-tests (Depends-on): Add float.
16682
16683         * tests/test-isnanl.h (zero): Remove variable.
16684         (minus_zero): New variable.
16685         (main): Use minus_zero instead of -zero.
16686         * modules/isnanl-nolibm-tests (Depends-on): Add float.
16687         * modules/isnanl-tests (Depends-on): Add float.
16688
16689         * tests/test-ldexpl.c (zero): Remove variable.
16690         (minus_zero): New variable.
16691         (main): Use minus_zero instead of -zero.
16692         * modules/ldexpl-tests (Depends-on): Add float.
16693
16694         * tests/test-snprintf-posix.h (zerol): Remove variable.
16695         (minus_zerol): New variable.
16696         (test_function): Use minus_zerol instead of -zerol.
16697         * modules/snprintf-posix-tests (Depends-on): Add float.
16698         * modules/vsnprintf-posix-tests (Depends-on): Add float.
16699
16700         * tests/test-sprintf-posix.h (zerol): Remove variable.
16701         (minus_zerol): New variable.
16702         (test_function): Use minus_zerol instead of -zerol.
16703         * modules/sprintf-posix-tests (Depends-on): Add float.
16704         * modules/vsprintf-posix-tests (Depends-on): Add float.
16705
16706         * tests/test-vasnprintf-posix.c (zerol): Remove variable.
16707         (minus_zerol): New variable.
16708         (test_function): Use minus_zerol instead of -zerol.
16709         * modules/vasnprintf-posix-tests (Depends-on): Add float.
16710
16711         * tests/test-vasprintf-posix.c (zerol): Remove variable.
16712         (minus_zerol): New variable.
16713         (test_function): Use minus_zerol instead of -zerol.
16714         * modules/vasprintf-posix-tests (Depends-on): Add float.
16715
16716 2008-10-07  Simon Josefsson  <simon@josefsson.org>
16717
16718         * MODULES.html.sh (Support for building documentation): Mention
16719         pmccabe2html.  Sort entries.
16720
16721         Add pmccabe2html module, from gnupdf.
16722         * build-aux/pmccabe.css: New file.
16723         * build-aux/pmccabe2html: New file.
16724         * m4/pmccabe2html.m4: New file.
16725         * modules/pmccabe2html: New file.
16726
16727 2008-10-07  Richard W.M. Jones <rjones@redhat.com>
16728
16729         flock: new module
16730         * MODULES.html.sh: Add to list of modules.
16731         * lib/flock.c: flock implementation for Windows and Unix systems
16732         which have fcntl.
16733         * doc/glibc-functions/flock.texi: Update documentation.
16734         * lib/sys_file.in.h: <sys/file.h> header file.
16735         * m4/flock.m4: M4 macros.
16736         * m4/sys_file_h.m4: M4 macros for replacement sys/file.h.
16737         * modules/flock: flock module.
16738         * modules/flock-tests: flock tests module.
16739         * modules/sys_file: sys/file.h module.
16740         * tests/test-flock.c: test suite for flock.
16741
16742 2008-10-06  Jim Meyering  <meyering@redhat.com>
16743
16744         bootstrap: check for LT_INIT more portably still ;-)
16745         * build-aux/bootstrap: Don't rely on \>, since it's not portable.
16746         Spotted by Bruno Haible.
16747
16748 2008-10-06  Eric Blake  <ebb9@byu.net>
16749
16750         test-signbit: avoid tripping Irix cc bug on -0.0L
16751         * tests/test-signbit.c (minus_zerol): Delete, and replace with
16752         '-zerol'.  This may break on HP-UX/hppa, but at least makes the
16753         entire testsuite consistent and avoids an Irix 6.2 bug.
16754
16755 2008-10-05  Bruno Haible  <bruno@clisp.org>
16756             Jim Meyering  <jim@meyering.net>
16757
16758         Add an option for ignoring EPIPE during close_stdout.
16759         * lib/closeout.h: Include <stdbool.h>.
16760         (close_stdout_set_ignore_EPIPE): New declaration.
16761         * lib/closeout.c: Include <stdbool.h>.
16762         (ignore_EPIPE): New variable.
16763         (close_stdout_set_ignore_EPIPE): New function.
16764         (close_stdout): Ignore EPIPE error if ignore_EPIPE is set.
16765         * lib/close-stream.c (close_stream): Mention the possible EPIPE
16766         failure.
16767         * modules/closeout (Depends-on): Add stdbool.
16768
16769 2008-10-05  Bruno Haible  <bruno@clisp.org>
16770
16771         * modules/accept: New file.
16772         * modules/bind: New file.
16773         * modules/connect: New file.
16774         * modules/getpeername: New file.
16775         * modules/getsockname: New file.
16776         * modules/getsockopt: New file.
16777         * modules/listen: New file.
16778         * modules/recv: New file.
16779         * modules/recvfrom: New file.
16780         * modules/send: New file.
16781         * modules/sendto: New file.
16782         * modules/setsockopt: New file.
16783         * modules/socket: New file.
16784         * lib/sys_socket.in.h: Include the GL_LINK_WARNING definition.
16785         (socket, connect, accept, bind, getpeername, getsockname, getsockopt,
16786         listen, recv, send, recvfrom, sendto, setsockopt): Declare only when
16787         the particular module is requested. Add a link warning when the
16788         particular module is not requested.
16789         * lib/winsock.c (rpl_socket, rpl_connect, rpl_accept, rpl_bind,
16790         rpl_getpeername, rpl_getsockname, rpl_getsockopt, rpl_listen, rpl_recv,
16791         rpl_send, rpl_recvfrom, rpl_sendto, rpl_setsockopt): Define only when
16792         the particular module is requested.
16793         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_MODULE_INDICATOR,
16794         gl_SYS_SOCKET_H_DEFAULTS): New macros.
16795         (gl_HEADER_SYS_SOCKET): Require gl_SYS_SOCKET_H_DEFAULTS.
16796         * modules/sys_socket (Depends-on): Add link-warning.
16797         (Makeifle.am): Substitute GNULIB_SOCKET, GNULIB_CONNECT, GNULIB_ACCEPT,
16798         GNULIB_BIND, GNULIB_GETPEERNAME, GNULIB_GETSOCKNAME, GNULIB_GETSOCKOPT,
16799         GNULIB_LISTEN, GNULIB_RECV, GNULIB_SEND, GNULIB_RECVFROM,
16800         GNULIB_SENDTO, GNULIB_SETSOCKOPT, and the definition of
16801         GL_LINK_WARNING.
16802         * doc/posix-functions/accept.texi: Mention the new module 'accept'.
16803         * doc/posix-functions/bind.texi: Mention the new module 'bind'.
16804         * doc/posix-functions/connect.texi: Mention the new module 'connect'.
16805         * doc/posix-functions/getpeername.texi: Mention the new module
16806         'getpeername'.
16807         * doc/posix-functions/getsockname.texi: Mention the new module
16808         'getsockname'.
16809         * doc/posix-functions/getsockopt.texi: Mention the new module
16810         'getsockopt'.
16811         * doc/posix-functions/listen.texi: Mention the new module 'listen'.
16812         * doc/posix-functions/recv.texi: Mention the new module 'recv'.
16813         * doc/posix-functions/recvfrom.texi: Mention the new module 'recvfrom'.
16814         * doc/posix-functions/send.texi: Mention the new module 'send'.
16815         * doc/posix-functions/sendto.texi: Mention the new module 'sendto'.
16816         * doc/posix-functions/setsockopt.texi: Mention the new module
16817         'setsockopt'.
16818         * doc/posix-functions/socket.texi: Mention the new module 'socket'.
16819         * modules/poll-tests (Depends-on): Add socket, bind, getsockopt,
16820         listen, connect, accept.
16821         * modules/select-tests (Depends-on): Likewise.
16822
16823 2008-10-05  Bruno Haible  <bruno@clisp.org>
16824
16825         * lib/winsock.c (strerror): Remove unused #undef.
16826         (rpl_close): Remove unused local variable.
16827
16828         * modules/sys_socket (Depends-on); Add errno.
16829
16830 2008-10-05  Bruno Haible  <bruno@clisp.org>
16831
16832         * lib/sys_select.in.h: Include the GL_LINK_WARNING definition.
16833         (select): Add a link warning when the 'select' module is not used.
16834         * modules/sys_select (Depends-on): Add link-warning.
16835         (Makefile.am): Substitute the definition of GL_LINK_WARNING.
16836         Suggested by Paolo Bonzini.
16837
16838 2008-10-05  Jim Meyering  <meyering@redhat.com>
16839
16840         bootstrap: check for LT_INIT more portably
16841         * build-aux/bootstrap: Avoid using grep -E, since it's not
16842         portable enough.  Suggestion from Bruno Haible.
16843
16844 2008-10-05  Bruno Haible  <bruno@clisp.org>
16845
16846         * doc/posix-headers/sys_select.texi: Mention 'struct timeval' problem
16847         as being fixed by gnulib.
16848
16849 2008-10-05  Bruno Haible  <bruno@clisp.org>
16850
16851         * modules/select-tests: New file, mostly copied from
16852         modules/sys_select-tests.
16853         * tests/test-select.c: New file, mostly copied from
16854         tests/test-sys_select.c.
16855         * tests/test-sys_select.c: Move most of the code to tests/test-select.c.
16856         * modules/sys_select-tests (Depends-on): Remove all dependencies.
16857         (Makefile.am): Remove test_sys_select_LDADD.
16858
16859         * lib/sys_select.in.h (select): If GNULIB_SELECT is not set, define it
16860         to an undefined symbol, for an error message.
16861         * m4/sys_select_h.m4 (gl_SYS_SELECT_MODULE_INDICATOR): New macro.
16862         (gl_SYS_SELECT_H_DEFAULTS): New macro.
16863         (gl_HEADER_SYS_SELECT): Require it. Don't require compilation of
16864         winsock-select.c here.
16865         * modules/sys_select (Files): Remove lib/winsock-select.c.
16866         (Depends-on): Remove alloca.
16867         (Makefile.am): Substitute GNULIB_SELECT.
16868         * modules/select: New file.
16869         * doc/posix-functions/select.texi: Update.
16870
16871 2008-10-05  Bruno Haible  <bruno@clisp.org>
16872
16873         * lib/spawn_faction_addclose.c (__sysconf): Use getdtablesize always.
16874         * lib/spawn_faction_adddup2.c (__sysconf): Likewise.
16875         * lib/spawn_faction_addopen.c (__sysconf): Likewise.
16876         * modules/posix_spawn_file_actions_addclose (Depends-on): Add
16877         getdtablesize.
16878         * modules/posix_spawn_file_actions_adddup2 (Depends-on): Likewise.
16879         * modules/posix_spawn_file_actions_addopen (Depends-on): Likewise.
16880
16881 2008-10-05  Bruno Haible  <bruno@clisp.org>
16882
16883         * modules/getdtablesize-tests: New file.
16884         * tests/test-getdtablesize.c: New file.
16885
16886         New module 'getdtablesize'.
16887         * lib/unistd.in.h (getdtablesize): New declaration.
16888         * lib/getdtablesize.c: New file.
16889         * m4/getdtablesize.m4: New file.
16890         * modules/getdtablesize: New file.
16891         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
16892         GNULIB_GETDTABLESIZE, HAVE_GETDTABLESIZE.
16893         * modules/unistd (Makefile.am): Substitute GNULIB_GETDTABLESIZE,
16894         HAVE_GETDTABLESIZE.
16895         * doc/glibc-functions/getdtablesize.texi: Mention the new module.
16896
16897 2008-10-05  Bruno Haible  <bruno@clisp.org>
16898
16899         * modules/sched (Makefile.am): Fix typo.
16900         Reported by Simon Josefsson.
16901
16902 2008-10-05  Jim Meyering  <meyering@redhat.com>
16903
16904         bootstrap: check for LT_INIT, too
16905         * build-aux/bootstrap: Both AC_PROG_LIBTOOL and AM_PROG_LIBTOOL
16906         are deprecated.  Suggestion from Ralf Wildenhues.
16907
16908 2008-10-05  Bruno Haible  <bruno@clisp.org>
16909
16910         * lib/spawn.in.h (POSIX_SPAWN_*): Use the system's values, rather than
16911         overriding them by ours.
16912         (POSIX_SPAWN_USEVFORK): Use the next free bit position.
16913
16914 2008-10-05  Jim Meyering  <meyering@redhat.com>
16915
16916         bootstrap: check for AC_PROG_LIBTOOL as well as AM_PROG_LIBTOOL
16917         * build-aux/bootstrap: Check for AC_PROG_LIBTOOL, as well as the
16918         obsolete AM_PROG_LIBTOOL.  Spotted by Debarshi Ray <rishi@gnu.org>.
16919
16920 2008-10-04  Bruno Haible  <bruno@clisp.org>
16921
16922         * modules/dup2 (License): Change to LGPLv2+.
16923         * modules/sleep (License): Likewise.
16924         * modules/perror (License): Likewise.
16925         * modules/fopen (License): Change to LGPLv2+, with approval by Eric
16926         Blake.
16927         * modules/signal (License): Likewise.
16928         * modules/sigprocmask (License): Likewise.
16929         * modules/raise (License): Change to LGPLv2+, with approval by Jim
16930         Meyering.
16931
16932 2008-10-04  Bruno Haible  <bruno@clisp.org>
16933
16934         * lib/spawn.in.h (POSIX_SPAWN_*): Undefine before redefining.
16935         Reported by Rainer Tammer <tammer@tammer.net>.
16936
16937 2008-10-03  Paolo Bonzini  <bonzini@gnu.org>
16938             Bruno Haible  <bruno@clisp.org>
16939
16940         * lib/errno.in.h (EWOULDBLOCK) [win32]: Define to EAGAIN.
16941         * lib/winsock.c (set_winsock_errno): Map WSAEWOULDBLOCK to EWOULDBLOCK.
16942         * lib/strerror.c (rpl_strerror): Remove error string for EWOULDBLOCK.
16943
16944 2008-10-03  Kamil Dudka  <kdudka@redhat.com>
16945
16946         filevercmp: new module
16947         * lib/filevercmp.h: New function filevercmp comparing version strings.
16948         * lib/filevercmp.c: Implementation of filevercmp function.
16949         * modules/filevercmp: Module metadata.
16950         * tests/test-filevercmp.c: Unit test for new module.
16951         * modules/filevercmp-tests: Unit test metadata.
16952         * MODULES.html.sh: Add filevercmp module.
16953
16954 2008-10-03  Bruno Haible  <bruno@clisp.org>
16955
16956         * lib/c-ctype.h: Add comment.
16957         Reported by Jim Meyering.
16958
16959 2008-10-02  Bruno Haible  <bruno@clisp.org>
16960
16961         * modules/posix_spawn-internal (Depends-on): Add 'open'.
16962
16963 2008-10-02  Paolo Bonzini  <bonzini@gnu.org>
16964
16965         * build-aux/bootstrap: Allow renaming bootstrap, and change the
16966         name of bootstrap.conf accordingly.
16967
16968 2008-10-02  Paolo Bonzini  <bonzini@gnu.org>
16969
16970         * build-aux/bootstrap: Install git-merge-changelog configuration
16971         items into .gitconfig if needed.
16972
16973 2008-10-02  Paolo Bonzini  <bonzini@gnu.org>
16974
16975         * build-aux/bootstrap: Recognize `gnulib' being a submodule in a
16976         git repository, and initialize/update it accordingly.
16977
16978 2008-10-02  Richard W.M. Jones  <rjones@redhat.com>
16979
16980         * modules/fsync-tests: New file.
16981         * tests/test-fsync.c: New file.
16982
16983         New module 'fsync'.
16984         * lib/fsync.c: New file.
16985         * m4/fsync.m4: New file.
16986         * modules/fsync: New file.
16987         * lib/unistd.in.h (fsync): New declaration.
16988         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Define and AC_SUBST both
16989         GNULIB_FSYNC and HAVE_FSYNC.
16990         * modules/unistd: Substitute GNULIB_FSYNC and HAVE_FSYNC.
16991         * MODULES.html.sh (posix_functions): Add fsync.
16992         * doc/posix-functions/fsync.texi: Mention the new module.
16993
16994 2008-10-02  Jim Meyering  <meyering@redhat.com>
16995
16996         fts.c: sync with similar code from coreutils' remove.c
16997         * lib/fts.c (dirent_inode_sort_may_be_useful): Merge from coreutils.
16998         Guard also with "#if defined __linux__", since for now at least,
16999         this code is Linux-kernel-specific.
17000
17001 2008-10-02  Jim Meyering  <meyering@redhat.com>
17002
17003         fts: bug fixes
17004         * lib/fts.c: Remove unnecessary "defined" in cpp directive.
17005         Include <sys/vfs.h>, not <sys/statfs.h>.
17006
17007         * m4/fts.m4 (gl_FUNC_FTS_CORE): Fix typo s/vfs/vfs.h/.
17008         Include <sys/vfs.h>, not <sys/statfs.h>.
17009
17010 2008-10-01  Bruno Haible  <bruno@clisp.org>
17011
17012         Avoid the broken posix_spawn function on AIX 5.3 and 6.1.
17013         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_WORKS): New macro.
17014         (gl_POSIX_SPAWN_BODY): Invoke it. Set REPLACE_POSIX_SPAWN if needed.
17015         * doc/posix-functions/posix_spawn.texi: Mention the AIX bugs.
17016         * doc/posix-functions/posix_spawnp.texi: Likewise.
17017         * m4/execute.m4 (gl_EXECUTE): Invoke gl_POSIX_SPAWN_WORKS, to check
17018         whether posix_spawn actually works.
17019         * m4/pipe.m4 (gl_PIPE): Likewise.
17020         * modules/execute (Files): Add m4/posix_spawn.m4.
17021         * modules/pipe (Files): Add m4/posix_spawn.m4.
17022         Reported and analyzed by Rainer Tammer <tammer@tammer.net>.
17023
17024 2008-10-01  Jim Meyering  <meyering@redhat.com>
17025
17026         remove trailing spaces
17027         * NEWS: Likewise.
17028         * lib/poll.c (poll): Likewise.
17029         * lib/sys_socket.in.h (SHUT_RDWR): Likewise.
17030         * lib/winsock.c (rpl_close): Likewise.
17031         * m4/memcmp.m4 (gl_FUNC_MEMCMP): Likewise.
17032         * modules/yield: Likewise.
17033         * tests/test-poll.c (connect_to_socket, poll1): Likewise.
17034         * tests/test-sys_select.c (connect_to_socket): Likewise.
17035
17036         fts.c: adjust a new interface to be more generally useful
17037         * lib/fts.c (dirent_inode_sort_may_be_useful): Take an FD parameter.
17038         (fts_build): Adjust caller.
17039
17040 2008-09-30  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
17041
17042         * modules/cond-tests: New file.
17043         * tests/test-cond.c: New file.
17044
17045 2008-09-30  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
17046             Bruno Haible  <bruno@clisp.org>
17047
17048         * modules/cond (Dependencies): Add errno, time.
17049         * lib/glthread/cond.h: Include <time.h>.
17050         (gl_cond_define, gl_cond_define_initialized): Use the same definition
17051         across platforms.
17052
17053 2008-09-30  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
17054             Bruno Haible  <bruno@clisp.org>
17055
17056         * m4/thread.m4 (gl_THREAD): Fix detection of pthread_atfork function.
17057
17058 2008-09-30  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
17059             Bruno Haible  <bruno@clisp.org>
17060
17061         * modules/tls-tests (Depends-on): Add thread, yield.
17062         (configure.ac): Remove all checks.
17063         (test_tls_LDADD): Use YIELD_LIB instead of LIBSCHED.
17064         * tests/test-tls.c (gl_thread_t, gl_thread_join, gl_thread_yield,
17065         gl_thread_self): Remove definitions. Include glthread/thread.h and
17066         glthread/yield.h instead.
17067         (test_tls): Pass an additional NULL argument to gl_thread_join.
17068
17069 2008-09-30  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
17070             Bruno Haible  <bruno@clisp.org>
17071
17072         * modules/lock-tests (Depends-on): Add thread, yield.
17073         (configure.ac): Remove all checks.
17074         (test_lock_LDADD): Use YIELD_LIB instead of LIBSCHED.
17075         * tests/test-lock.c (gl_thread_t, gl_thread_join, gl_thread_yield,
17076         gl_thread_self): Remove definitions. Include glthread/thread.h and
17077         glthread/yield.h instead.
17078         (test_lock, test_rwlock, test_recursive_lock, test_once): Pass an
17079         additional NULL argument to gl_thread_join.
17080
17081 2008-09-30  Bruno Haible  <bruno@clisp.org>
17082
17083         Fix the Win32 implementation of the 'thread' module.
17084         * lib/glthread/thread.h [USE_WIN32_THREADS] (gl_thread_t): Change to a
17085         pointer type.
17086         (gl_thread_self): Invoke gl_thread_self_func.
17087         (gl_thread_self_func): New declaration.
17088         * lib/glthread/thread.c [USE_WIN32_THREADS] (self_key): New variable.
17089         (do_init_self_key, init_self_key): New functions.
17090         (struct gl_thread_struct): Renamed from 'struct thread_extra'.
17091         Remove some fields.
17092         (running_threads, running_lock): Remove variables.
17093         (get_current_thread_handle): New function.
17094         (gl_thread_self_func, wrapper_func, glthread_create_func,
17095         glthread_join_func, gl_thread_exit_func): Largely rewritten and
17096         simplified.
17097
17098 2008-09-30  Bruno Haible  <bruno@clisp.org>
17099
17100         * lib/winsock-select.c (win32_poll_handle): Add shortcut for regular
17101         files.
17102
17103 2008-09-30  Jim Meyering  <meyering@redhat.com>
17104
17105         fts.m4: correct the test for statfs.f_type
17106         * m4/fts.m4 (gl_FUNC_FTS_CORE): Include <sys/statfs.h>
17107         when checking for statfs.f_type.
17108
17109 2008-09-15  Simon Josefsson  <simon@josefsson.org>
17110
17111         tests: avoid some compiler warnings
17112         * tests/test-memchr.c (main): Pass NULL indirectly.
17113         * tests/test-getdate.c (main): Remove unused variable 'ret'.
17114
17115 2008-09-29  OndÅ™ej Vašík  <ovasik@redhat.com>
17116
17117         getdate.y: disallow countable dayshifts like "4 yesterday ago"
17118         * lib/getdate.y (relative_time_table) [tDAY_SHIFT]: New type for
17119         exactly specified dayshifts.
17120         (dayshift): New rule.
17121         (rel): Add dayshift.
17122         (relative_time_table) [tomorrow, yesterday, today, now]:
17123         Use tDAY_SHIFT in place of tDAY_UNIT.
17124         * tests/test-getdate.c: Add tests for now-disallowed countable
17125         dayshifts, e.g., "4 yesterday ago".
17126
17127 2008-09-29  Bruno Haible  <bruno@clisp.org>
17128
17129         * tests/test-posix_spawn1.c: Renamed from tests/test-posix_spawn.c.
17130         * tests/test-posix_spawn1.in.sh: Renamed from
17131         tests/test-posix_spawn.in.sh.
17132         * tests/test-posix_spawn2.c: New file.
17133         * tests/test-posix_spawn2.in.sh: New file.
17134         * modules/posix_spawnp-tests (Files): Update.
17135         (Makefile.am): Update. Add test-posix_spawn2 to the tests.
17136
17137 2008-09-29  Bruno Haible  <bruno@clisp.org>
17138
17139         Propagate effects of putenv/setenv/unsetenv to child processes.
17140         * lib/execute.c (execute): Use spawnvpe instead of spawnvp.
17141         * lib/pipe.c (create_pipe): Likewise.
17142
17143 2008-09-29  Bruno Haible  <bruno@clisp.org>
17144
17145         Enable use of shell scripts as executables in mingw.
17146         * lib/execute.c (execute): When spawnv fails with error ENOEXEC,
17147         run the program as a shell script.
17148         * lib/pipe.c (create_pipe): Likewise.
17149         * lib/w32spawn.h (prepare_spawn): Add a hidden element in front of the
17150         resulting array.
17151
17152 2008-09-29  Eric Blake  <ebb9@byu.net>
17153
17154         * m4/arpa_inet_h.m4 (gl_REPLACE_ARPA_INET_H): Fix typo.
17155
17156 2008-08-24  Paolo Bonzini  <bonzini@gnu.org>
17157
17158         * doc/posix-functions/accept.texi: Update mingw problems.
17159         * doc/posix-functions/bind.texi: Update mingw problems.
17160         * doc/posix-functions/close.texi: Update mingw problems.
17161         * doc/posix-functions/connect.texi: Update mingw problems.
17162         * doc/posix-functions/getpeername.texi: Update mingw problems.
17163         * doc/posix-functions/getsockname.texi: Update mingw problems.
17164         * doc/posix-functions/getsockopt.texi: Update mingw problems.
17165         * doc/posix-functions/ioctl.texi: Update mingw problems.
17166         * doc/posix-functions/listen.texi: Update mingw problems.
17167         * doc/posix-functions/recv.texi: Update mingw problems.
17168         * doc/posix-functions/recvfrom.texi: Update mingw problems.
17169         * doc/posix-functions/select.texi: Update mingw problems.
17170         * doc/posix-functions/send.texi: Update mingw problems.
17171         * doc/posix-functions/sendto.texi: Update mingw problems.
17172         * doc/posix-functions/setsockopt.texi: Update mingw problems.
17173         * doc/posix-functions/socket.texi: Update mingw problems.
17174
17175 2008-09-29  Paolo Bonzini  <bonzini@gnu.org>
17176             Bruno Haible  <bruno@clisp.org>
17177
17178         * lib/sys_select.in.h: Include sys/time.h.
17179         * m4/sys_select.h.m4: Test that struct timeval is fully defined.
17180         * modules/sys_select: Depend on sys_time.
17181         * tests/test-sys_select.c: Test that sys/select.h defines struct
17182         timeval fully.
17183
17184 2008-09-29  Bruno Haible  <bruno@clisp.org>
17185
17186         * lib/sys_socket.in.h: Wrap the definitions in 'extern "C"'.
17187         * lib/sys_select.in.h: Likewise.
17188
17189 2008-09-29  Bruno Haible  <bruno@clisp.org>
17190
17191         * lib/winsock.c (rpl_close, rpl_socket): Remove unused variables.
17192
17193 2008-09-29  Bruno Haible  <bruno@clisp.org>
17194
17195         * m4/sockets.m4 (gl_SOCKETS): Check also for the need to use -lsocket.
17196         Set LIBSOCKET instead of augmenting LIBS.
17197         * modules/sockets (Link): New section.
17198         * modules/sockets-tests (test_sockets_LDADD): New variable.
17199         * modules/sys_select-tests (test_sys_select_LDADD): New variable.
17200         * modules/poll-tests (test_poll_LDADD): New variable.
17201         * NEWS: Document the change.
17202
17203 2008-09-29  Bruno Haible  <bruno@clisp.org>
17204
17205         * m4/arpa_inet_h.m4 (gl_REPLACE_ARPA_INET_H): New macro.
17206         * m4/inet_ntop.m4 (gl_INET_NTOP): Invoke it instead of assigning
17207         ARPA_INET_H directly.
17208         * m4/inet_pton.m4 (gl_INET_PTON): Likewise.
17209
17210 2008-09-28  Bruno Haible  <bruno@clisp.org>
17211
17212         * m4/sys_socket_h.m4 (gl_PREREQ_SYS_H_WINSOCK2): New macro, extracted
17213         from gl_HEADER_SYS_SOCKET.
17214         (gl_HEADER_SYS_SOCKET): Invoke it.
17215         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
17216
17217 2008-09-28  Bruno Haible  <bruno@clisp.org>
17218
17219         * doc/posix-headers/sys_select.texi: Mention 'struct timeval' problem.
17220         * tests/test-sys_select.c: Include <sys/time.h>, for struct timeval.
17221         Needed on OSF/1 4.0.
17222
17223 2008-09-28  Bruno Haible  <bruno@clisp.org>
17224
17225         Override open more carefully.
17226         * lib/open.c (orig_open): New function.
17227         (rpl_open): Use orig_open instead of open.
17228         * lib/fcntl.in.h: Add special invocation convention.
17229         * m4/open.m4 (gl_PREREQ_OPEN): New macro.
17230         (gl_FUNC_OPEN): Invoke it.
17231
17232         Override freopen more carefully.
17233         * lib/freopen.c (orig_freopen): New function.
17234         (rpl_freopen): Use orig_freopen instead of freopen.
17235         * m4/freopen.m4 (gl_PREREQ_FREOPEN): New macro.
17236         (gl_FUNC_FREOPEN): Invoke it.
17237
17238         Override fopen more carefully.
17239         * lib/fopen.c (orig_fopen): New function.
17240         (rpl_fopen): Use orig_fopen instead of fopen.
17241         * m4/fopen.m4 (gl_PREREQ_FOPEN): New macro.
17242         (gl_FUNC_FOPEN): Invoke it.
17243         Needed on AIX. Reported by Rainer Tammer <tammer@tammer.net>.
17244
17245 2008-09-28  Bruno Haible  <bruno@clisp.org>
17246
17247         * lib/pipe.h (create_pipe_out, create_pipe_bidi): Add comment about
17248         SIGPIPE.
17249
17250 2008-09-28  Bruno Haible  <bruno@clisp.org>
17251
17252         * tests/test-sigaction.c (handler, main): Disable the check whether
17253         SA_RESETHAND has reverted the installed handler to SIG_DFL. Needed on
17254         glibc systems with LinuxThreads.
17255
17256 2008-09-28  Bruno Haible  <bruno@clisp.org>
17257
17258         * doc/posix-functions/freopen.texi: Mention the trailing slash problem.
17259
17260         * lib/stdio.in.h (fopen, freopen): Undefine before redefining. Needed
17261         with AIX xlc.
17262         * lib/fcntl.in.h (open): Likewise.
17263         Reported by Rainer Tammer <tammer@tammer.net>.
17264
17265 2008-09-28  Bruno Haible  <bruno@clisp.org>
17266
17267         * modules/posix_spawnp-tests: New file.
17268         * tests/test-posix_spawn.c: New file.
17269         * tests/test-posix_spawn.in.sh: New file.
17270
17271         New module 'posix_spawnp'.
17272         * modules/posix_spawnp: New file.
17273         * lib/spawnp.c: New file, from GNU libc with modifications.
17274         * doc/posix-functions/posix_spawnp.texi: Mention the new module.
17275
17276         New module 'posix_spawn'.
17277         * modules/posix_spawn: New file.
17278         * lib/spawn.c: New file, from GNU libc with modifications.
17279         * doc/posix-functions/posix_spawn.texi: Mention the new module.
17280
17281         New module 'posix_spawnattr_destroy'.
17282         * modules/posix_spawnattr_destroy: New file.
17283         * lib/spawnattr_destroy.c: New file, from GNU libc with modifications.
17284         * doc/posix-functions/posix_spawnattr_destroy.texi: Mention the new
17285         module.
17286
17287         New module 'posix_spawnattr_setsigmask'.
17288         * modules/posix_spawnattr_setsigmask: New file.
17289         * lib/spawnattr_setsigmask.c: New file, from GNU libc with
17290         modifications.
17291         * doc/posix-functions/posix_spawnattr_setsigmask.texi: Mention the
17292         new module.
17293
17294         New module 'posix_spawnattr_getsigmask'.
17295         * modules/posix_spawnattr_getsigmask: New file.
17296         * lib/spawnattr_getsigmask.c: New file, from GNU libc with
17297         modifications.
17298         * doc/posix-functions/posix_spawnattr_getsigmask.texi: Mention the
17299         new module.
17300
17301         New module 'posix_spawnattr_setsigdefault'.
17302         * modules/posix_spawnattr_setsigdefault: New file.
17303         * lib/spawnattr_setdefault.c: New file, from GNU libc with
17304         modifications.
17305         * doc/posix-functions/posix_spawnattr_setsigdefault.texi: Mention the
17306         new module.
17307
17308         New module 'posix_spawnattr_getsigdefault'.
17309         * modules/posix_spawnattr_getsigdefault: New file.
17310         * lib/spawnattr_getdefault.c: New file, from GNU libc with
17311         modifications.
17312         * doc/posix-functions/posix_spawnattr_getsigdefault.texi: Mention the
17313         new module.
17314
17315         New module 'posix_spawnattr_setschedpolicy'.
17316         * modules/posix_spawnattr_setschedpolicy: New file.
17317         * lib/spawnattr_setschedpolicy.c: New file, from GNU libc with
17318         modifications.
17319         * doc/posix-functions/posix_spawnattr_setschedpolicy.texi: Mention the
17320         new module.
17321
17322         New module 'posix_spawnattr_getschedpolicy'.
17323         * modules/posix_spawnattr_getschedpolicy: New file.
17324         * lib/spawnattr_getschedpolicy.c: New file, from GNU libc with
17325         modifications.
17326         * doc/posix-functions/posix_spawnattr_getschedpolicy.texi: Mention the
17327         new module.
17328
17329         New module 'posix_spawnattr_setschedparam'.
17330         * modules/posix_spawnattr_setschedparam: New file.
17331         * lib/spawnattr_setschedparam.c: New file, from GNU libc with
17332         modifications.
17333         * doc/posix-functions/posix_spawnattr_setschedparam.texi: Mention the
17334         new module.
17335
17336         New module 'posix_spawnattr_getschedparam'.
17337         * modules/posix_spawnattr_getschedparam: New file.
17338         * lib/spawnattr_getschedparam.c: New file, from GNU libc with
17339         modifications.
17340         * doc/posix-functions/posix_spawnattr_getschedparam.texi: Mention the
17341         new module.
17342
17343         New module 'posix_spawnattr_setpgroup'.
17344         * modules/posix_spawnattr_setpgroup: New file.
17345         * lib/spawnattr_setpgroup.c: New file, from GNU libc with
17346         modifications.
17347         * doc/posix-functions/posix_spawnattr_setpgroup.texi: Mention the new
17348         module.
17349
17350         New module 'posix_spawnattr_getpgroup'.
17351         * modules/posix_spawnattr_getpgroup: New file.
17352         * lib/spawnattr_getpgroup.c: New file, from GNU libc with
17353         modifications.
17354         * doc/posix-functions/posix_spawnattr_getpgroup.texi: Mention the new
17355         module.
17356
17357         New module 'posix_spawnattr_setflags'.
17358         * modules/posix_spawnattr_setflags: New file.
17359         * lib/spawnattr_setflags.c: New file, from GNU libc with modifications.
17360         * doc/posix-functions/posix_spawnattr_setflags.texi: Mention the new
17361         module.
17362
17363         New module 'posix_spawnattr_getflags'.
17364         * modules/posix_spawnattr_getflags: New file.
17365         * lib/spawnattr_getflags.c: New file, from GNU libc with modifications.
17366         * doc/posix-functions/posix_spawnattr_getflags.texi: Mention the new
17367         module.
17368
17369         New module 'posix_spawnattr_init'.
17370         * modules/posix_spawnattr_init: New file.
17371         * lib/spawnattr_init.c: New file, from GNU libc with modifications.
17372         * doc/posix-functions/posix_spawnattr_init.texi: Mention the new
17373         module.
17374
17375         New module 'posix_spawn_file_actions_destroy'.
17376         * modules/posix_spawn_file_actions_destroy: New file.
17377         * lib/spawn_faction_destroy.c: New file, from GNU libc with
17378         modifications.
17379         * doc/posix-functions/posix_spawn_file_actions_destroy.texi: Mention
17380         the new module.
17381
17382         New module 'posix_spawn_file_actions_addopen'.
17383         * modules/posix_spawn_file_actions_addopen: New file.
17384         * lib/spawn_faction_addopen.c: New file, from GNU libc with
17385         modifications.
17386         * doc/posix-functions/posix_spawn_file_actions_addopen.texi: Mention
17387         the new module.
17388
17389         New module 'posix_spawn_file_actions_adddup2'.
17390         * modules/posix_spawn_file_actions_adddup2: New file.
17391         * lib/spawn_faction_adddup2.c: New file, from GNU libc with
17392         modifications.
17393         * doc/posix-functions/posix_spawn_file_actions_adddup2.texi: Mention
17394         the new module.
17395
17396         New module 'posix_spawn_file_actions_addclose'.
17397         * modules/posix_spawn_file_actions_addclose: New file.
17398         * lib/spawn_faction_addclose.c: New file, from GNU libc with
17399         modifications.
17400         * doc/posix-functions/posix_spawn_file_actions_addclose.texi: Mention
17401         the new module.
17402
17403         New module 'posix_spawn_file_actions_init'.
17404         * modules/posix_spawn_file_actions_init: New file.
17405         * lib/spawn_faction_init.c: New file, from GNU libc with modifications.
17406         * doc/posix-functions/posix_spawn_file_actions_init.texi: Mention the
17407         new module.
17408
17409         New module 'posix_spawn-internal'.
17410         * modules/posix_spawn-internal: New file.
17411         * lib/spawn_int.h: New file, from GNU libc with modifications.
17412         * lib/spawni.c: New file, from GNU libc with modifications.
17413         * m4/posix_spawn.m4: New file.
17414
17415         New module 'spawn'.
17416         * modules/spawn: New file.
17417         * lib/spawn.in.h: New file, from GNU libc with modifications.
17418         * m4/spawn_h.m4: New file.
17419         * doc/posix-headers/spawn.texi: Mention the new module.
17420
17421 2008-09-28  Bruno Haible  <bruno@clisp.org>
17422
17423         * modules/sched-tests: New file.
17424         * tests/test-sched.c: New file.
17425
17426         New module 'sched'.
17427         * modules/sched: New file.
17428         * lib/sched.in.h: New file.
17429         * m4/sched_h.m4: New file.
17430         * doc/posix-headers/sched.texi: Mention the new module.
17431
17432 2008-09-27  Eric Blake  <ebb9@byu.net>
17433
17434         Fix previous patch, and tweak references to $0.
17435         * posix-modules: Call func_gnulib_dir before using $gnulib_dir.
17436         (func_version, func_gnulib_dir): Don't call this program
17437         gnulib-tool.
17438         (func_gnulib_dir, func_tmpdir, func_fatal_error): Avoid shell bugs
17439         with using $0 in function.
17440         * gnulib-tool (func_gnulib_dir, func_tmpdir): Likewise.
17441         (func_fatal_error): Reuse the name the user invoked us with.
17442
17443 2008-09-27  Bruno Haible  <bruno@clisp.org>
17444
17445         * m4/iconv_h.m4 (gl_REPLACE_ICONV_H): New macro.
17446         (gl_ICONV_H_DEFAULTS): Initialize ICONV_H here...
17447         (gl_ICONV_H): Not here.
17448         * m4/iconv_open.m4 (gl_REPLACE_ICONV_OPEN): Invoke gl_REPLACE_ICONV_H
17449         instead of assigning ICONV_H directly.
17450
17451         * m4/wchar.m4 (gl_REPLACE_WCHAR_H): New macro.
17452         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Invoke it instead of assigning
17453         WCHAR_H directly.
17454
17455 2008-09-27  Bruno Haible  <bruno@clisp.org>
17456
17457         * lib/arpa_inet.in.h: Include the GL_LINK_WARNING anchor.
17458         * modules/arpa_inet (Depends-on): Add link-warning.
17459         (Makefile.am): Insert the definition of GL_LINK-WARNING.
17460         * modules/unistd (Makefile.am): Likewise.
17461
17462 2008-09-26  Bruno Haible  <bruno@clisp.org>
17463
17464         * posix-modules (cvsdatestamp, last_checkin_date, version): Remove
17465         variables.
17466         (func_version): Essentially copied from gnulib-tool.
17467         (func_exit, func_gnulib_dir, func_tmpdir, func_fatal_error,
17468         func_readlink): Copied from gnulib-tool.
17469
17470 2008-09-26  Bruno Haible  <bruno@clisp.org>
17471
17472         * gnulib-tool (func_version): Change directory to $gnulib_dir before
17473         invoking git-version-gen.
17474
17475 2008-09-26  Bruno Haible  <bruno@clisp.org>
17476
17477         * posix-modules: Update to directory names changed on 2008-01-19.
17478         Remove commas in output before splitting into words. No more need to
17479         avoid 'ftruncate' since 2007-02-19.
17480
17481 2008-09-26  Bruno Haible  <bruno@clisp.org>
17482
17483         * doc/posix-headers/errno.texi: Remove mention of module 'EOVERFLOW'.
17484
17485 2008-09-26  Bruno Haible  <bruno@clisp.org>
17486
17487         * lib/fwriteerror.c (do_fwriteerror): Ignore error EPIPE.
17488         * modules/fwriteerror (Depends-on): Add errno.
17489
17490 2008-09-26  Bruno Haible  <bruno@clisp.org>
17491
17492         * tests/test-vc-list-files-git.sh: Explain reason for skipping test.
17493         * tests/test-vc-list-files-cvs.sh: Likewise.
17494
17495 2008-09-26  Bruno Haible  <bruno@clisp.org>
17496
17497         * doc/posix-headers/sys_resource.texi: Reorder items.
17498
17499 2008-09-26  Jim Meyering  <meyering@redhat.com>
17500
17501         fts: tweak inode comparison function
17502         * lib/fts.c (fts_compare_ino): Sort on increasing, not decreasing
17503         inode numbers, as documented.
17504
17505         fts: sort dirent entries on inode number before traversing
17506         This avoids a quadratic, seek-related performance penalty when
17507         operating on a directory containing many entries (measurable at 10k;
17508         3.5 hours at 2 million entries with a cold cache) on certain types
17509         of file systems, including ext3 and ext4, but not tmpfs.
17510         * lib/fts.c (DT_MUST_BE, NOT_AN_INODE_NUMBER, D_INO): Define.
17511         (FTS_INODE_SORT_DIR_ENTRIES_THRESHOLD): Define if not defined.
17512         (S_MAGIC_TMPFS, S_MAGIC_NFS): Define.
17513         (fs_handles_readdir_ordered_dirents_efficiently): New function.
17514         (dirent_inode_sort_may_be_useful, fts_compare_ino): Likewise.
17515         (fts_build): Set the stat.st_ino member from D_INO.
17516         If it is likely to be useful, sort dirent entries on inode number.
17517
17518         * m4/fts.m4 (gl_FUNC_FTS_CORE): Check for fstatfs, sys/vfs.h,
17519         and the struct statfs.f_type member.
17520         * modules/fts (Depends-on): Add d-ino.
17521
17522 2008-09-26  Bruno Haible  <bruno@clisp.org>
17523
17524         * modules/sigpipe-die (Depends-on): Add sigpipe.
17525
17526         * lib/stdio.in.h (fprintf, vfprintf, printf, vprintf, fputc, putc,
17527         putchar, fputs, puts, fwrite): Replace when REPLACE_STDIO_WRITE_FUNCS
17528         and GNULIB_STDIO_H_SIGPIPE are set.
17529         * lib/stdio-write.c: New file.
17530         * m4/stdio_h.m4 (gl_STDIO_H): Set GNULIB_FPRINTF, GNULIB_PRINTF,
17531         GNULIB_VFPRINTF, GNULIB_VPRINTF, GNULIB_FPUTC, GNULIB_PUTC,
17532         GNULIB_PUTCHAR, GNULIB_FPUTS, GNULIB_PUTS, GNULIB_FWRITE,
17533         REPLACE_STDIO_WRITE_FUNCS.
17534         (gl_STDIO_H_DEFAULTS): Initialize GNULIB_FPRINTF, GNULIB_PRINTF,
17535         GNULIB_VFPRINTF, GNULIB_VPRINTF, GNULIB_FPUTC, GNULIB_PUTC,
17536         GNULIB_PUTCHAR, GNULIB_FPUTS, GNULIB_PUTS, GNULIB_FWRITE,
17537         GNULIB_STDIO_H_SIGPIPE, REPLACE_STDIO_WRITE_FUNCS.
17538         * modules/stdio (Files): Add lib/stdio-write.c.
17539         (Makefile.am): Substitute GNULIB_FPRINTF, GNULIB_PRINTF,
17540         GNULIB_VFPRINTF, GNULIB_VPRINTF, GNULIB_FPUTC, GNULIB_PUTC,
17541         GNULIB_PUTCHAR, GNULIB_FPUTS, GNULIB_PUTS, GNULIB_FWRITE,
17542         GNULIB_STDIO_H_SIGPIPE, REPLACE_STDIO_WRITE_FUNCS.
17543         * m4/fprintf-posix.m4 (gl_REPLACE_FPRINTF): Define
17544         REPLACE_FPRINTF_POSIX.
17545         * m4/printf-posix-rpl.m4 (gl_REPLACE_PRINTF): Define
17546         REPLACE_PRINTF_POSIX.
17547         * m4/vfprintf-posix.m4 (gl_REPLACE_VFPRINTF): Define
17548         REPLACE_VFPRINTF_POSIX.
17549         * m4/vprintf-posix.m4 (gl_REPLACE_VPRINTF): Define
17550         REPLACE_VPRINTF_POSIX.
17551         * doc/posix-functions/fprintf.texi: Mention the sigpipe module and the
17552         SIGPIPE issue.
17553         * doc/posix-functions/fputc.texi: Likewise.
17554         * doc/posix-functions/fputs.texi: Likewise.
17555         * doc/posix-functions/fwrite.texi: Likewise.
17556         * doc/posix-functions/printf.texi: Likewise.
17557         * doc/posix-functions/putc.texi: Likewise.
17558         * doc/posix-functions/putchar.texi: Likewise.
17559         * doc/posix-functions/puts.texi: Likewise.
17560         * doc/posix-functions/vfprintf.texi: Likewise.
17561         * doc/posix-functions/vprintf.texi: Likewise.
17562
17563         * modules/safe-write (Depends-on): Add write.
17564
17565         * modules/sigpipe-tests: New file.
17566         * tests/test-sigpipe.c: New file.
17567         * tests/test-sigpipe.sh: New file.
17568
17569         * modules/write: New file.
17570         * lib/unistd.in.h: Include <sys/types.h>.
17571         (write): New declaration.
17572         * lib/write.c: New file.
17573         * m4/write.m4: New file.
17574         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
17575         GNULIB_UNISTD_H_SIGPIPE, GNULIB_WRITE, REPLACE_WRITE.
17576         * modules/unistd (Makefile.am): Substitute GNULIB_UNISTD_H_SIGPIPE,
17577         GNULIB_WRITE, REPLACE_WRITE.
17578         * doc/posix-functions/write.texi: Mention the write, sigpipe modules
17579         and the SIGPIPE issue.
17580
17581         * lib/signal.in.h (SIGPIPE): Define to a replacement value.
17582         (raise): New declaration.
17583         * lib/sigprocmask.c (SIGPIPE_handler): New variable.
17584         (ext_signal): New function.
17585         (rpl_raise): New function.
17586         * m4/signal_h.m4 (gl_SIGNAL_H_DEFAULTS): Initialize
17587         GNULIB_SIGNAL_H_SIGPIPE.
17588         * modules/signal (Makefile.am): Substitute GNULIB_SIGNAL_H_SIGPIPE.
17589         * doc/posix-headers/signal.texi: Mention the SIGPIPE issue.
17590
17591         * modules/sigpipe: New file.
17592         * m4/sigpipe.m4: New file.
17593
17594 2008-09-25  Derek Price  <derek@ximbiot.com>
17595             Bruno Haible  <bruno@clisp.org>
17596
17597         * gnulib-tool (func_import): Report all license incompatibilities, not
17598         just the first one.
17599
17600 2008-09-25  Bruno Haible  <bruno@clisp.org>
17601
17602         * gnulib-tool (func_import): When computing the edits, consider not
17603         only the Makefile.ams that exist but also those that will be generated.
17604
17605 2008-09-25  Simon Josefsson  <simon@josefsson.org>
17606
17607         * modules/sys_select-tests (Depends-on): Remove sys_select itself,
17608         fixes gnulib-tool --test warning about duplicate dependency.
17609
17610 2008-09-25  Bruno Haible  <bruno@clisp.org>
17611
17612         * gnulib-tool: Don't ask the user to perform edits in the generated
17613         Makefile.ams.
17614         (func_emit_lib_Makefile_am): Emit empty SUBDIRS. Execute edits that
17615         apply to the Makefile.am being generated.
17616         (func_emit_tests_Makefile_am): Execute edits that apply to the
17617         Makefile.am being generated.
17618         (func_import): Setup list of Makefile.am edits before emitting the
17619         Makefile.ams, not at the end.
17620         (func_create_testdir): Update.
17621         Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
17622
17623 2008-09-25  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
17624
17625         * gnulib-tool (func_import): Store the --tests-base option in the
17626         comment in gnulib-cache.m4.
17627
17628 2008-09-24  Paolo Bonzini  <bonzini@gnu.org>
17629
17630         * NEWS: Document increased portability that sys_select now provides.
17631
17632         * lib/sys_select.in.h: Install select wrapper.
17633         * lib/sys_socket.in.h: Use more descriptive name when there is no
17634         select wrapper.
17635         * lib/winsock-select.c: New.
17636         * m4/sys_select_h.m4: Compile lib/winsock-select.c if WinSock is used.
17637         Require gl_HEADER_SYS_SOCKET.
17638         * modules/sys_select: Depend on alloca, add lib/winsock-select.c.
17639         * modules/sys_select-tests: Copy dependencies from modules/poll-tests.
17640         * tests/test-sys_select.c: Add functional tests.
17641
17642 2008-09-24  Eric Blake  <ebb9@byu.net>
17643
17644         open, fopen: close fd leak in last patch
17645         * lib/open.c (rpl_open): Close fd before returning error.
17646         * lib/fopen.c (rpl_fopen): Close fd before returning error.
17647         * doc/posix-functions/open.texi (open): Document that Irix also
17648         has the bug.
17649         * doc/posix-functions/fopen.texi (fopen): Likewise.
17650         Reported by Paolo Bonzini.
17651
17652 2008-09-24  Bruno Haible  <bruno@clisp.org>
17653
17654         Ensure that a filename ending in a slash cannot be used to access a
17655         non-directory.
17656         * lib/open.c (rpl_open): When the filename ends in a slash, use fstat()
17657         to check whether it's really a directory.
17658         * lib/fopen.c: Include fcntl.h, unistd.h.
17659         (rpl_fopen): When the filename ends in a slash, use open(), fstat(),
17660         and fdopen().
17661         * modules/fopen (Depends-on): Add unistd.
17662         * tests/test-open.c (main): Try to open "/dev/null/" as a directory.
17663         * tests/test-fopen.c (main): Likewise.
17664         * doc/posix-functions/open.texi: Mention the HP-UX, Solaris bug.
17665         * doc/posix-functions/fopen.texi: Likewise.
17666         Reported by Eric Blake.
17667
17668 2008-09-23  Eric Blake  <ebb9@byu.net>
17669
17670         c-stack: avoid compiler optimizations when provoking overflow
17671         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Make
17672         recursion harder to optimize, to ensure a stack overflow occurs.
17673         * tests/test-c-stack.c (recurse): Likewise.
17674         Borrowed from libsigsegv.
17675
17676         c-stack: work around Irix sigaltstack bug
17677         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Check
17678         whether sigaltstack uses wrong end of stack_t (copied in part from
17679         libsigsegv).
17680         * lib/c-stack.c (c_stack_action) [!HAVE_LIBSIGSEGV]: Work around
17681         Irix bug, without requiring an over-allocation.
17682         * doc/posix-functions/sigaltstack.texi (sigaltstack): Document the
17683         bug.
17684
17685         fopen: document mingw bug on directories
17686         * doc/posix-functions/fopen.texi (fopen): Mention mingw bug for
17687         not allowing a stream visiting a directory, even though reading
17688         from such a stream is not portable.
17689
17690 2008-09-23  Paolo Bonzini  <bonzini@gnu.org>
17691
17692         * lib/poll.c: Rewrite.
17693         * modules/poll: Depend on alloca.
17694
17695 2008-09-23  Paolo Bonzini  <bonzini@gnu.org>
17696
17697         * lib/sys_socket.in.h: Do not implement rpl_setsockopt here,
17698         instead define prototypes for a full set of wrappers.  Ensure
17699         that Cygwin does not use the compatibility code, which is only
17700         for MinGW.
17701         * lib/winsock.c: New.
17702         * m4/sys_socket_h.m4: Compile lib/winsock.c if WinSock is being used.
17703         * modules/sys_socket: Add lib/winsock.c.
17704
17705         * modules/poll-tests: Add errno and perror.
17706         * tests/test-poll.c: Use ioctl, not ioctlsocket.
17707
17708 2008-09-23  Paolo Bonzini  <bonzini@gnu.org>
17709
17710         * tests/test-poll.c: Downgrade minimum needed Winsock version.
17711
17712 2008-09-23  Bruno Haible  <bruno@clisp.org>
17713
17714         * doc/posix-functions/*: Add info about functions missing on IRIX 5.3.
17715         * doc/glibc-functions/*: Likewise.
17716
17717 2008-09-23  Simon Josefsson  <simon@josefsson.org>
17718
17719         * tests/test-perror.sh (tmpfiles): Cleanup temporary files on
17720         success.
17721
17722 2008-09-22  Eric Blake  <ebb9@byu.net>
17723             Bruno Haible  <bruno@clisp.org>
17724
17725         vasnprintf: fix x86/glibc regression on printf("%La", 0.0L)
17726         * lib/vasnprintf.c (VASNPRINTF): Support 0.0 on platforms that
17727         supply %A but mishandle pseudo-NaN.
17728         Reported by Simon Josefsson.
17729
17730 2008-09-21  Bruno Haible  <bruno@clisp.org>
17731
17732         * tests/test-lock.c (main): Tweak skip message.
17733         * tests/test-tls.c (main): Likewise.
17734
17735 2008-09-21  Bruno Haible  <bruno@clisp.org>
17736
17737         * m4/sigaction.m4 (gl_SIGACTION): Remove unnecessary AC_SUBST. Check
17738         whether 'struct sigaction' has sa_sigaction here...
17739         (gl_PREREQ_SIG_HANDLER_H): ... not here.
17740         (gl_PREREQ_SIGACTION): Remove unnecessary AC_SUBST.
17741
17742 2008-09-21  Bruno Haible  <bruno@clisp.org>
17743
17744         * MODULES.html.sh (Support for obsolete systems lacking ANSI C 89): New
17745         section.
17746         (Support for systems lacking ANSI C 89): Move stdlib, exit, strtol,
17747         strtoul, memchr, memcmp, memcpy, memmove, memset, strcspn, strpbrk to
17748         the new section.
17749         (Support for obsolete systems lacking POSIX:2001): New section.
17750         (String handling <string.h>): Move strdup to the new section.
17751         Suggested by Simon Josefsson and Paolo Bonzini.
17752
17753 2008-09-21  Bruno Haible  <bruno@clisp.org>
17754
17755         * tests/test-vasnprintf-posix.c (test_function): Allow 3-digit
17756         exponents in %e and %g results on 'long double'. Needed for mingw's
17757         improved *printf functions.
17758         * tests/test-vasprintf-posix.c (test_function): Likewise.
17759         * tests/test-snprintf-posix.h (test_function): Likewise.
17760         * tests/test-sprintf-posix.h (test_function): Likewise.
17761         Reported by Eric Blake.
17762
17763 2008-09-21  Bruno Haible  <bruno@clisp.org>
17764
17765         * tests/test-snprintf-posix.h (test_function): Remove useless ASSERTs.
17766         * tests/test-sprintf-posix.h (test_function): Likewise.
17767
17768 2008-09-21  Bruno Haible  <bruno@clisp.org>
17769
17770         * modules/getpass (Depends-on): Add strdup-posix.
17771
17772         New module 'strdup-posix'.
17773         * modules/strdup-posix: New file.
17774         * m4/strdup.m4 (gl_FUNC_STRDUP_POSIX): New macro.
17775         * lib/string.in.h (strdup): Replace if REPLACE_STRDUP is 1.
17776         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
17777         REPLACE_STRDUP.
17778         * modules/string (Makefile.am): Substitute REPLACE_STRDUP.
17779         * doc/posix-functions/strdup.texi: Mention module strdup-posix.
17780         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
17781         strdup-posix.
17782
17783         * modules/strdup (Depends-on): Remove malloc-posix.
17784
17785 2008-09-20  Bruno Haible  <bruno@clisp.org>
17786
17787         * lib/fstrcmp.c: Add data about branch probabilities, from Ralf
17788         Wildenhues.
17789
17790 2008-09-20  Bruno Haible  <bruno@clisp.org>
17791
17792         Ensure that wint_t gets defined on IRIX 5.3.
17793         * lib/wchar.in.h (wint_t): Define if not defined by the system.
17794         * lib/wctype.in.h (wint_t): Likewise.
17795         (__wctype_wint_t): Remove type.
17796         (isw*): Use wint_t instead of __wctype_wint_t.
17797         * m4/wchar.m4 (gl_WCHAR_H): Invoke gt_TYPE_WINT_T and set HAVE_WINT_T.
17798         * modules/wchar (Files): Add m4/wint_t.m4.
17799         (Makefile.am): Substitute HAVE_WINT_T.
17800         * tests/test-wchar.c: Check that wchar_t and wint_t are defined.
17801         * tests/test-wctype.c: Check that wint_t is defined.
17802         * doc/posix-headers/wchar.texi: Mention the IRIX 5 problem.
17803         * doc/posix-headers/wctype.texi: Likewise.
17804         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
17805
17806 2008-09-18  Bruno Haible  <bruno@clisp.org>
17807
17808         * gnulib-tool (func_exit): Update comment.
17809
17810 2008-09-18  Simon Josefsson  <simon@josefsson.org>
17811
17812         * modules/getaddrinfo (Depends-on): Remove strdup, this module
17813         assumes strdup exists and does not depend on strdup to return
17814         ENOMEM on out of memory conditions.
17815
17816 2008-09-18  Bruno Haible  <bruno@clisp.org>
17817
17818         * lib/vasnprintf.c (VASNPRINTF): When printing Â±0.0L in
17819         NEED_PRINTF_INFINITE_LONG_DOUBLE case with 'e' format, always use two
17820         digits for the exponent.
17821
17822 2008-09-18  Jim Meyering  <meyering@redhat.com>
17823             Bruno Haible  <bruno@clisp.org>
17824
17825         * lib/vasnprintf.c (decimal_point_char): Define also if
17826         NEED_PRINTF_INFINITE_LONG_DOUBLE.
17827
17828 2008-09-16  Bruno Haible  <bruno@clisp.org>
17829         and Eric Blake  <ebb9@byu.net>
17830
17831         vasnprintf: support Irix 5.3
17832         * lib/vasnprintf.c (VASNPRINTF): Also handle -0.0L on platforms
17833         that mishandle long double infinity.
17834         Reported by Tom G. Christensen.
17835
17836 2008-09-16  Bruno Haible  <bruno@clisp.org>
17837
17838         * doc/glibc-functions/scandir.texi: Mention the function is missing on
17839         Solaris 9.
17840         * doc/glibc-functions/alphasort.texi: Likewise.
17841         Reported by Michael Haubenwallner <michael.haubenwallner@salomon.at>.
17842
17843 2008-09-16  Jim Meyering  <meyering@redhat.com>
17844
17845         posix-shell.m4: reject opensolaris's "sh (AT&T Research) 1993-12-28 s+"
17846         * m4/posix-shell.m4 (gl_POSIX_SHELL): Reject a shell that lets
17847         a umask modification leak out of a subshell.  Otherwise, the
17848         opensolaris /bin/sh would be accepted and thus cause unwarranted
17849         failures in the coreutils test suite.
17850
17851 2008-09-16  Paolo Bonzini  <bonzini@gnu.org>
17852
17853         * tests/test-poll.c (connect_to_socket): Allow non-blocking connect
17854         to succeed.
17855
17856 2008-09-16  Jim Meyering  <meyering@redhat.com>
17857
17858         avoid spurious test failure when library is built without ACL support
17859         * m4/acl.m4 (USE_ACL): Define as a shell variable, too, for...
17860         * modules/acl-tests (Makefile.am) [TESTS_ENVIRONMENT]: Add USE_ACL.
17861         * tests/test-file-has-acl.sh: Skip if USE_ACL == 0.
17862         * tests/test-copy-acl.sh: Likewise.
17863
17864 2008-09-15  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
17865
17866         * lib/fstrcmp.c (fstrcmp_bounded): Use a second, less quick upper bound
17867         based on character occurrence counts.
17868
17869 2008-09-15  Eric Blake  <ebb9@byu.net>
17870
17871         tests: avoid some compiler warnings
17872         * tests/test-memchr.c (main): Pass NULL indirectly.
17873         * tests/test-closein.c (main): Avoid unused variable.
17874
17875 2008-09-15  Bruno Haible  <bruno@clisp.org>
17876
17877         * m4/errno_h.m4 (gl_HEADER_ERRNO_H_BODY): Test for all the macros that
17878         are missing on OpenBSD 4.0 individually.
17879         Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
17880
17881 2008-09-15  Bruno Haible  <bruno@clisp.org>
17882
17883         * doc/posix-headers/errno.texi: Mention the Cygwin problem.
17884         * doc/posix-functions/strerror.texi: Mention also Cygwin.
17885         * doc/posix-functions/perror.texi: Likewise.
17886         * m4/errno_h.m4 (gl_HEADER_ERRNO_H_BODY): Test also whether ECANCELED
17887         is missing.
17888         Reported by Eric Blake.
17889
17890         * lib/errno.in.h: Use replacement values >= 2000.
17891         Reported by Eric Blake.
17892
17893 2008-09-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
17894
17895         * lib/fstrcmp.c (EXTRA_CONTEXT_FIELDS): Add field 'edit_count_limit'.
17896         (EARLY_ABORT): Return true when the edit_count has grown too beyond the
17897         limit.
17898         (fstrcmp_bounded): Initialize the edit_count_limit. Return 0 when
17899         compareseq was aborted.
17900
17901 2008-09-14  Bruno Haible  <bruno@clisp.org>
17902
17903         * lib/fstrcmp.c (EXTRA_CONTEXT_FIELDS): Combine xvec_edit_count and
17904         yvec_edit_count.
17905         (NOTE_DELETE, NOTE_INSERT): Increment the combined edit count.
17906         (fstrcmp_bounded): Simplify result computation accordingly.
17907
17908 2008-09-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
17909
17910         * lib/fstrcmp.h (fstrcmp_bounded): New declaration.
17911         (fstrcmp): Define in terms of fstrcmp_bounded.
17912         * lib/fstrcmp.c (fstrcmp_bounded): Renamed from fstrcmp. Add
17913         lower_bound argument.
17914         Return quickly if the result is certainly < lower_bound.
17915         * tests/test-fstrcmp.c (check_fstrcmp): Test also fstrcmp_bounded.
17916
17917 2008-09-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
17918
17919         * lib/diffseq.h (EARLY_ABORT): New macro.
17920         (compareseq): Change return type to bool. Return true when EARLY_ABORT
17921         evaluates to true.
17922
17923 2008-09-14  Bruno Haible  <bruno@clisp.org>
17924
17925         * modules/perror-tests: New file.
17926         * tests/test-perror.sh: New file.
17927         * tests/test-perror.c: New file.
17928
17929         New module 'perror'.
17930         * lib/stdio.in.h (perror): New declaration.
17931         * lib/perror.c: New file.
17932         * m4/perror.m4: New file.
17933         * modules/perror: New file.
17934         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add perror.
17935         * doc/posix-functions/perror.texi: Mention the perror module.
17936         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize GNULIB_PERROR,
17937         REPLACE_PERROR.
17938         * modules/stdio (Makefile.am): Substitute GNULIB_PERROR,
17939         REPLACE_PERROR.
17940
17941 2008-09-14  Bruno Haible  <bruno@clisp.org>
17942
17943         * modules/stdio (Makefile.am): Reorder to match the order in
17944         lib/stdio.in.h.
17945         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Likewise.
17946
17947 2008-09-13  Bruno Haible  <bruno@clisp.org>
17948
17949         * lib/sys_socket.in.h (EINPROGRESS, ...): Remove definitions.
17950
17951 2008-09-13  Bruno Haible  <bruno@clisp.org>
17952
17953         Extend strerror to cover the added errno values.
17954         * lib/strerror.c: Include errno.h and winsock2.h if it exists.
17955         (rpl_strerror): Provide error messages for the added errno values and
17956         for the WSA* values.
17957         * m4/strerror.m4 (gl_FUNC_STRERROR): Test REPLACE_STRERROR.
17958         (gl_FUNC_STRERROR_SEPARATE): If errno.h is replaced, always replace
17959         strerror.
17960         (gl_PREREQ_STRERROR): Test whether winsock2.h exists.
17961         * modules/strerror (Depends-on): Add errno.
17962         * doc/posix-functions/strerror.texi: Document the change.
17963         * tests/test-strerror.c (main): Check also the string for ETIMEDOUT
17964         and EOVERFLOW.
17965
17966 2008-09-13  Bruno Haible  <bruno@clisp.org>
17967
17968         * modules/EOVERFLOW: Remove file.
17969         * m4/eoverflow.m4: Remove file.
17970         * modules/EOVERFLOW-tests: Remove file.
17971         * tests/test-EOVERFLOW.c: Remove file.
17972         * modules/fprintf-posix (Depends-on): Replace EOVERFLOW with errno.
17973         * modules/ftell (Depends-on): Likewise.
17974         * modules/getdelim (Depends-on): Likewise.
17975         * modules/getugroups (Depends-on): Likewise.
17976         * modules/poll (Depends-on): Likewise.
17977         * modules/snprintf (Depends-on): Likewise.
17978         * modules/sprintf-posix (Depends-on): Likewise.
17979         * modules/vasnprintf (Depends-on): Likewise.
17980         * modules/vasprintf (Depends-on): Likewise.
17981         * modules/vfprintf-posix (Depends-on): Likewise.
17982         * modules/vsnprintf (Depends-on): Likewise.
17983         * modules/vsprintf-posix (Depends-on): Likewise.
17984         * modules/xvasprintf (Depends-on): Likewise.
17985         * modules/unistdio/u8-vasnprintf (Depends-on): Likewise.
17986         * modules/unistdio/u8-vasprintf (Depends-on): Likewise.
17987         * modules/unistdio/u8-vsnprintf (Depends-on): Likewise.
17988         * modules/unistdio/u8-vsprintf (Depends-on): Likewise.
17989         * modules/unistdio/u8-u8-vasnprintf (Depends-on): Likewise.
17990         * modules/unistdio/u8-u8-vasprintf (Depends-on): Likewise.
17991         * modules/unistdio/u8-u8-vsnprintf (Depends-on): Likewise.
17992         * modules/unistdio/u8-u8-vsprintf (Depends-on): Likewise.
17993         * modules/unistdio/u16-u16-vasnprintf (Depends-on): Likewise.
17994         * modules/unistdio/u16-u16-vasprintf (Depends-on): Likewise.
17995         * modules/unistdio/u16-u16-vsnprintf (Depends-on): Likewise.
17996         * modules/unistdio/u16-u16-vsprintf (Depends-on): Likewise.
17997         * modules/unistdio/u16-vasnprintf (Depends-on): Likewise.
17998         * modules/unistdio/u16-vasprintf (Depends-on): Likewise.
17999         * modules/unistdio/u16-vsnprintf (Depends-on): Likewise.
18000         * modules/unistdio/u16-vsprintf (Depends-on): Likewise.
18001         * modules/unistdio/u32-vasnprintf (Depends-on): Likewise.
18002         * modules/unistdio/u32-vasprintf (Depends-on): Likewise.
18003         * modules/unistdio/u32-vsnprintf (Depends-on): Likewise.
18004         * modules/unistdio/u32-vsprintf (Depends-on): Likewise.
18005         * modules/unistdio/u32-u32-vasnprintf (Depends-on): Likewise.
18006         * modules/unistdio/u32-u32-vasprintf (Depends-on): Likewise.
18007         * modules/unistdio/u32-u32-vsnprintf (Depends-on): Likewise.
18008         * modules/unistdio/u32-u32-vsprintf (Depends-on): Likewise.
18009         * modules/unistdio/ulc-fprintf (Depends-on): Likewise.
18010         * modules/unistdio/ulc-vasnprintf (Depends-on): Likewise.
18011         * modules/unistdio/ulc-vasprintf (Depends-on): Likewise.
18012         * modules/unistdio/ulc-vfprintf (Depends-on): Likewise.
18013         * modules/unistdio/ulc-vsnprintf (Depends-on): Likewise.
18014         * modules/unistdio/ulc-vsprintf (Depends-on): Likewise.
18015         * MODULES.html.sh: Remove EOVERFLOW.
18016         * NEWS: Mention the change.
18017
18018 2008-09-13  Bruno Haible  <bruno@clisp.org>
18019
18020         * modules/errno-tests: New file.
18021         * tests/test-errno.c: New file, incorporating tests/test-EOVERFLOW.c.
18022
18023         * lib/errno.in.h: New file.
18024         * m4/errno_h.m4: New file, borrowing from m4/eoverflow.m4.
18025         * modules/errno: New file.
18026         * doc/posix-headers/errno.texi: Update documentation.
18027         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add errno.
18028
18029 2008-09-13  Bruno Haible  <bruno@clisp.org>
18030
18031         * tests/test-poll.c: Use #if for native Windows, rather than testing
18032         __MSVCRT__.
18033
18034 2008-09-13  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
18035             Bruno Haible  <bruno@clisp.org>
18036
18037         * lib/glob.c: Don't include <pwd.h> on native Windows.
18038         (WINDOWS32): New macro.
18039         (glob) [WINDOW32]: Provide a reasonable replacement for getenv("HOME").
18040
18041 2008-09-13  Bruno Haible  <bruno@clisp.org>
18042
18043         * lib/glthread/cond.h [USE_SOLARIS_THREADS]
18044         (ETIMEDOUT): Remove macro.
18045         (glthread_cond_timedwait_multithreaded): New declaration.
18046         (glthread_cond_timedwait): Use it.
18047         * lib/glthread/cond.c [USE_SOLARIS_THREADS]
18048         (glthread_cond_timedwait_multithreaded): New function.
18049
18050 2008-09-12  Paolo Bonzini  <bonzini@gnu.org>
18051
18052         * modules/poll-tests: Do not check for io.h.
18053         * tests/test-poll.c: Check for __MSVCRT__ instead.
18054
18055 2008-09-12  Paolo Bonzini  <bonzini@gnu.org>
18056
18057         * lib/sys_socket.in.h (EINPROGRESS): Define for Winsock case.
18058         * modules/poll-tests: Add inet_pton, stdbool, sockets.
18059         * tests/test-poll.c: Use them.  Use _pipe on Windows.
18060
18061 2008-09-12  Paolo Bonzini  <bonzini@gnu.org>
18062
18063         * modules/poll-tests: New.
18064         * tests/test-poll.c: New.
18065
18066 2008-09-12  Eric Blake  <ebb9@byu.net>
18067
18068         frexp: test for NetBSD failure on -0.0
18069         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Enhance test, since some, but
18070         not all, bugs from NetBSD 3.0 have been fixed.
18071         * doc/posix-functions/frexp.texi (frexp): Document bug.
18072         Reported by Thomas Klausner.
18073
18074         signbit: work around bug of HP-UX 10.20 cc with -0.0 literal
18075         * m4/signbit.m4 (gl_SIGNBIT_TEST_PROGRAM): Rewrite test to avoid
18076         literal -0.0.
18077         Reported by Jonathan C. Patschke <jp@centtech.com>.
18078
18079 2008-09-11  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
18080
18081         * lib/glthread/cond.h: Use dummy implementation also if
18082         USE_WIN32_THREADS.
18083
18084 2008-09-11  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
18085
18086         * modules/fnmatch-posix (License): Change to LGPLv2+.
18087         * modules/fnmatch-gnu (License): Likewise.
18088
18089 2008-09-11  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
18090
18091         * lib/poll.c (poll): Fix polling unconnected server sockets on WIN32.
18092
18093 2008-09-11  Jim Meyering  <meyering@redhat.com>
18094
18095         * users.txt: Add gtk-vnc.
18096
18097 2008-09-08  Simon Josefsson  <simon@josefsson.org>
18098
18099         * tests/test-bitrotate.c: Test 8/16-bit rotates with 0 and maximum
18100         rotate amounts.
18101
18102         * lib/bitrotate.h: Doc fix, mention that N can be wider than minimally
18103         required for 16-bit and 8-bit rotates.
18104         * lib/bitrotate.h (rotl64, rotr64, rotl32, rotl32, rotl16, rotr16,
18105         rotl8, rotr8): Use UINT64_MAX, UINT32_MAX, UINT16_MAX, and
18106         UINT8_MAX instead of hard-coded constants.
18107         Suggested by Paul Eggert.
18108
18109 2008-09-07  Bruno Haible  <bruno@clisp.org>
18110
18111         * tests/test-striconveh.c (main): Check behaviour when converting from
18112         UTF-7.
18113
18114         Make striconveh work better with stateful encodings.
18115         * lib/striconveh.c (iconv_carefully, iconv_carefully_1): Don't assume
18116         that iconv does not increment the inptr when returning -1/EINVAL.
18117
18118 2008-09-07  Bruno Haible  <bruno@clisp.org>
18119
18120         * build-aux/config.rpath: Update according to libtool-2.2.6.
18121         * build-aux/config.libpath: Likewise.
18122
18123 2008-09-06  Bruno Haible  <bruno@clisp.org>
18124
18125         * lib/freadahead.c (freadahead): Add conditional for SLOW_BUT_NO_HACKS.
18126         * lib/freadptr.c (freadptr): Likewise.
18127         * lib/freadseek.c (freadptrinc): Likewise.
18128         Reported by Simon Josefsson.
18129
18130 2008-09-06  Bruno Haible  <bruno@clisp.org>
18131
18132         * modules/freadptr (License): Change to LGPLv2+.
18133         * modules/freadseek (License): Likewise.
18134         Suggested by Eric Blake.
18135
18136         * modules/memchr2 (License): Change to LGPLv2+.
18137         Approved by Eric Blake.
18138
18139 2008-09-04  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
18140             Bruno Haible  <bruno@clisp.org>
18141
18142         Make gnulib-tool work with native 'sed' on AIX.
18143         * gnulib-tool (sed_noop): New variable.
18144         (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am, func_import,
18145         func_add_or_update, func_create_testdir): Use it to initialize sed
18146         script variables.
18147         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
18148
18149 2008-09-04  Albert Chin  <bug-gnulib@mlists.thewrittenword.com>
18150             Bruno Haible  <bruno@clisp.org>
18151
18152         * m4/include_next.m4 (gl_INCLUDE_NEXT): Add check whether #include_next
18153         also works after #include directives.
18154
18155 2008-09-04  OndÅ™ej Vašík  <ovasik@redhat.com>
18156
18157         getdate.y: reject an out-of-range timezone value
18158         * lib/getdate.y (time_zone_hhmm): Reject any TZ offset that is outside
18159         the range [-24...+24].  When specified with only one or two digits,
18160         * tests/test-getdate.c: Tests for the fix.
18161         * doc/getdate.texi: Document this change.
18162
18163 2008-09-03  Bruno Haible  <bruno@clisp.org>
18164
18165         * doc/glibc-functions/strverscmp.texi: Mention the strverscmp module.
18166
18167 2008-09-02  Simon Josefsson  <simon@josefsson.org>
18168
18169         * lib/bitrotate.h (rotl64, rotr64): Add.  Suggested by Bruce Korb
18170         <bruce.korb@gmail.com> with ideas from Ben Pfaff
18171         <blp@cs.stanford.edu>, Bruno Haible <bruno@clisp.org> and Eric
18172         Blake <ebb9@byu.net>.
18173
18174         * tests/test-bitrotate.c: Add more test vectors.
18175
18176 2008-09-02  Eric Blake  <ebb9@byu.net>
18177
18178         vasnprintf-posix: handle large precision via %.*d
18179         * lib/vasnprintf.c (VASNPRINTF): Don't pass precision to snprintf
18180         when handling it ourselves.
18181         * tests/test-vasnprintf-posix.c (test_function): Add test.
18182         * tests/test-snprintf-posix.h (test_function): Likewise.
18183         * tests/test-sprintf-posix.h (test_function): Likewise.
18184         * tests/test-vasprintf-posix.c (test_function): Likewise.
18185         Reported by Alain Guibert.
18186
18187 2008-09-01  Eric Blake  <ebb9@byu.net>
18188
18189         c-stack: make configure-time check more robust
18190         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Check for
18191         successful sigaction call.
18192         Reported by Tom G. Christensen.
18193
18194 2008-09-01  Bruno Haible  <bruno@clisp.org>
18195
18196         New module 'findprog-lgpl'.
18197         * modules/findprog-lgpl: New file.
18198         * lib/findprog-lgpl.c: New file.
18199         * lib/findprog.c: Compile nothing in findprog.c if findprog-lgpl.c is
18200         also compiled. Consider the possibly defined symbol IN_FINDPROG_LGPL
18201         to decide whether to use strdup or xstrdup, concatenated_filename or
18202         xconcatenated_filename.
18203
18204 2008-09-01  Bruno Haible  <bruno@clisp.org>
18205
18206         Split module 'concat-filename' into 'concat-filename' (LGPL) and
18207         'xconcat-filename' (GPL).
18208         * modules/concat-filename (Depends-on): Add malloc-posix, remove xalloc.
18209         (License): Change to LGPLv2+.
18210         * modules/xconcat-filename: New file.
18211         * lib/concat-filename.h (concatenated_filename): Change specification.
18212         (xconcatenated_filename): New declaration.
18213         * lib/concat-filename.c: Include errno.h, stdlib.h, not xalloc.h.
18214         (concatenated_filename): Use malloc instead of xalloc. Handle out-of-
18215         memory situations.
18216         * lib/xconcat-filename.c: New file.
18217         * NEWS: Mention the change.
18218         * lib/findprog.c: Include concat-filename.h, not filename.h.
18219         (find_in_path): Use xconcatenated_filename instead of
18220         concatenated_filename.
18221         * lib/javacomp.c: Include concat-filename.h, not filename.h.
18222         (is_envjavac_gcj43_usable, is_envjavac_oldgcj_14_14_usable,
18223         is_envjavac_oldgcj_14_13_usable, is_envjavac_nongcj_usable,
18224         is_gcj_present, is_gcj43_usable, is_oldgcj_14_14_usable,
18225         is_oldgcj_14_13_usable, is_javac_usable): Use xconcatenated_filename
18226         instead of concatenated_filename.
18227         * lib/javaexec.c: Include concat-filename.h, not filename.h.
18228         (execute_java_class): Use xconcatenated_filename instead of
18229         concatenated_filename.
18230         * modules/findprog (Depends-on): Add xconcat-filename, remove filename.
18231         * modules/javacomp (Depends-on): Likewise.
18232         * modules/javaexec (Depends-on): Likewise.
18233
18234 2008-09-01  Bruno Haible  <bruno@clisp.org>
18235
18236         Split module 'filename' into 'filename' and 'concat-filename'.
18237         * modules/filename: Keep only lib/filename.h.
18238         (License): Change to LGPLv2+.
18239         * modules/concat-filename: New file, extracted from modules/filename.
18240         * lib/filename.h (concatenated_filename): Remove declaration.
18241         * lib/concat-filename.h: New file, extracted from lib/filename.h.
18242         * lib/concat-filename.c: Include concat-filename.h.
18243         * NEWS: Mention the change.
18244
18245 2008-09-01  Simon Josefsson  <simon@josefsson.org>
18246
18247         * lib/bitrotate.h (rotl8, rotr8): Add.
18248
18249         * modules/bitrotate (configure.ac): Need
18250         AC_REQUIRE([AC_C_INLINE]).
18251         (Description): Mention stdint.h.  Reported by Bruno Haible
18252         <bruno@clisp.org>.
18253
18254         * lib/bitrotate.h (rotr16, rotl16): Fix mask value.  Reported by
18255         Paolo Bonzini <bonzini@gnu.org>.
18256
18257 2008-08-31  Bruno Haible  <bruno@clisp.org>
18258
18259         Assume Solaris specific bi-arch conventions on Solaris systems.
18260         * m4/lib-prefix.m4 (AC_LIB_PREPARE_MULTILIB): On Solaris in 64-bit
18261         mode, set acl_libdirstem to lib/64. Also set acl_libdirstem2.
18262         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): If acl_libdirstem does not
18263         work, try acl_libdirstem2 as fallback. Otherwise treat acl_libdirstem2
18264         like acl_libdirstem.
18265         (AC_LIB_LINKFLAGS_FROM_LIBS): Treat acl_libdirstem2 like
18266         acl_libdirstem.
18267         * NEWS: Mention the change.
18268         Reported by Ben Taylor <bentaylor.solx86@gmail.com>.
18269
18270 2008-08-31  Jim Meyering  <meyering@redhat.com>
18271
18272         * lib/strftime.h: Add comments describing the two added arguments.
18273
18274         remove duplicate #include directives
18275         * lib/chdir-long.c [TEST_CHDIR]: Remove duplicate #include <stdio.h>.
18276         * lib/putenv.c: Remove duplicate #include <stdlib.h>.
18277
18278 2008-08-31  Bruno Haible  <bruno@clisp.org>
18279
18280         New module 'sigpipe-die'.
18281         * modules/sigpipe-die: New file.
18282         * lib/sigpipe-die.h: New file.
18283         * lib/sigpipe-die.c: New file.
18284         * MODULES.html.sh (Signal handling): Add sigpipe-die.
18285
18286 2008-08-31  Bruno Haible  <bruno@clisp.org>
18287
18288         Don't override previously installed signal handlers.
18289         * lib/fatal-signal.c (saved_sigactions): New variable.
18290         (uninstall_handlers): Reset the signal to the saved handler, not
18291         to SIG_DFL (except when ignored).
18292         (install_handlers): Save the previous handlers.
18293
18294 2008-08-30  Bruno Haible  <bruno@clisp.org>
18295
18296         * gnulib-tool (func_reset_sigpipe): New function.
18297         (func_get_automake_snippet, func_modules_transitive_closure,
18298         func_import): Invoke it before a join command that reads from stdin,
18299         to avoid "echo: write error: Broken pipe" error messages on stderr.
18300         Reported by Sam Steingold <sds@gnu.org>.
18301
18302 2008-08-30  Bruno Haible  <bruno@clisp.org>
18303
18304         * m4/fopen.m4 (gl_FUNC_FOPEN): Test against bug with trailing slash.
18305         Code copied from m4/open.m4.
18306         * lib/fopen.c (rpl_fopen): Return NULL if the mode specifies write
18307         access and the filename ends in a slash. Code copied from lib/open.c.
18308         * doc/posix-functions/fopen.texi: Document bug with trailing slash.
18309         * tests/test-fopen.c (main): Check against bug with trailing slash.
18310
18311 2008-08-29  Bruno Haible  <bruno@clisp.org>
18312
18313         Avoid some "gcc -pedantic" warnings.
18314         * m4/include_next.m4 (gl_INCLUDE_NEXT): Set also PRAGMA_SYSTEM_HEADER.
18315         * lib/arpa_inet.in.h: Use PRAGMA_SYSTEM_HEADER.
18316         * lib/dirent.in.h: Likewise.
18317         * lib/fcntl.in.h: Likewise.
18318         * lib/float.in.h: Likewise.
18319         * lib/iconv.in.h: Likewise.
18320         * lib/inttypes.in.h: Likewise.
18321         * lib/locale.in.h: Likewise.
18322         * lib/math.in.h: Likewise.
18323         * lib/netinet_in.in.h: Likewise.
18324         * lib/search.in.h: Likewise.
18325         * lib/signal.in.h: Likewise.
18326         * lib/stdarg.in.h: Likewise.
18327         * lib/stdint.in.h: Likewise.
18328         * lib/stdio.in.h: Likewise.
18329         * lib/stdlib.in.h: Likewise.
18330         * lib/string.in.h: Likewise.
18331         * lib/strings.in.h: Likewise.
18332         * lib/sys_select.in.h: Likewise.
18333         * lib/sys_socket.in.h: Likewise.
18334         * lib/sys_stat.in.h: Likewise.
18335         * lib/sys_time.in.h: Likewise.
18336         * lib/sysexits.in.h: Likewise.
18337         * lib/time.in.h: Likewise.
18338         * lib/unistd.in.h: Likewise.
18339         * lib/wchar.in.h: Likewise.
18340         * lib/wctype.in.h: Likewise.
18341         * modules/arpa_inet (Makefile.am): Also substitute PRAGMA_SYSTEM_HEADER.
18342         * modules/fchdir (Makefile.am): Likewise.
18343         * modules/fcntl (Makefile.am): Likewise.
18344         * modules/float (Makefile.am): Likewise.
18345         * modules/iconv_open (Makefile.am): Likewise.
18346         * modules/inttypes (Makefile.am): Likewise.
18347         * modules/locale (Makefile.am): Likewise.
18348         * modules/math (Makefile.am): Likewise.
18349         * modules/netinet_in (Makefile.am): Likewise.
18350         * modules/search (Makefile.am): Likewise.
18351         * modules/signal (Makefile.am): Likewise.
18352         * modules/stdarg (Makefile.am): Likewise.
18353         * modules/stdint (Makefile.am): Likewise.
18354         * modules/stdio (Makefile.am): Likewise.
18355         * modules/stdlib (Makefile.am): Likewise.
18356         * modules/string (Makefile.am): Likewise.
18357         * modules/strings (Makefile.am): Likewise.
18358         * modules/sys_select (Makefile.am): Likewise.
18359         * modules/sys_socket (Makefile.am): Likewise.
18360         * modules/sys_stat (Makefile.am): Likewise.
18361         * modules/sys_time (Makefile.am): Likewise.
18362         * modules/sysexits (Makefile.am): Likewise.
18363         * modules/time (Makefile.am): Likewise.
18364         * modules/unistd (Makefile.am): Likewise.
18365         * modules/wchar (Makefile.am): Likewise.
18366         * modules/wctype (Makefile.am): Likewise.
18367         Reported by Reuben Thomas <rrt@sc3d.org>.
18368
18369 2008-08-29  Bruno Haible  <bruno@clisp.org>
18370
18371         * m4/include_next.m4 (gl_INCLUDE_NEXT): Don't define HAVE_INCLUDE_NEXT
18372         any more.
18373
18374 2008-08-29  Simon Josefsson  <simon@josefsson.org>
18375
18376         * MODULES.html.sh (Misc): Add bitrotate.
18377
18378         * modules/bitrotate: New file.
18379
18380         * lib/bitrotate.h: New file.
18381
18382         * modules/bitrotate-tests: New file.
18383
18384         * tests/test-bitrotate.c: New file.
18385
18386         * modules/crypto/gc-arctwo, modules/crypto/arctwo: Add dependency
18387         on the bitrotate module.
18388
18389         * lib/arctwo.c: Use new bitrotate module.
18390
18391 2008-08-29  Jim Meyering  <meyering@redhat.com>
18392
18393         bootstrap: merge changes from coreutils
18394         * build-aux/bootstrap (cp_mark_as_generated): Preserve perms
18395         of copied files.  Remove a kludge, now that this is fixed.
18396         * build-aux/bootstrap: Fix unportable expr usage. (by Ralf Wildenhues)
18397         * build-aux/bootstrap: Remove $bt and $bt2 also when not using gettext.
18398         * build-aux/bootstrap: Remove coreutils-specific SUBDIRS-related code.
18399
18400 2008-08-29  Bruno Haible  <bruno@clisp.org>
18401
18402         * MODULES.html.sh: Remove --cvs-urls option.
18403
18404 2008-08-28  Jose E. Marchesi  <jemarch@gnu.org>  (tiny change)
18405
18406         maint.mk: adjust to file name change
18407         * top/maint.mk: s/Makefile.cfg/cfg.mk/.
18408
18409 2008-08-28  Jim Meyering  <meyering@redhat.com>
18410
18411         * modules/getndelim2 (License): Relicense to LGPLv2+.
18412         Approved by Richard Stallman for the version of 1995, and by
18413         Paul Eggert, Bruno Haible, Eric Blake for their contributions.
18414
18415 2008-08-27  Paolo Bonzini  <bonzini@gnu.org>
18416
18417         * lib/getdelim.c (flockfile, funlockfile): Make all of them
18418         dummy if one is not available.  Do not touch them if
18419         USE_UNLOCKED_IO, instead letting unlocked-io.h do that.
18420         (getc_maybe_unlocked): New.
18421         * m4/getdelim.m4 (gl_PREREQ_GETDELIM): Check for getc_unlocked.
18422
18423 2008-08-26  Eric Blake  <ebb9@byu.net>
18424
18425         doc/INSTALL: resync from autoconf
18426         * doc/Makefile (INSTALL, INSTALL.ISO, INSTALL.UTF-8): Simplify.
18427         (INSTALL_PRELUDE): Delete; this is done more efficiently by
18428         moving...
18429         * install.texi [!autoconf]: ...here.  Resync from autoconf.
18430         * INSTALL: Regenerate.
18431         * INSTALL.ISO: New file.
18432         * INSTALL.UTF-8: Likewise.
18433
18434 2008-08-26  Jim Meyering  <meyering@redhat.com>
18435
18436         GNUmakefile: cfg.mk definitions override default autoreconf-rerun policy
18437         * top/GNUmakefile (_is-dist-target, _is-install-target): Make
18438         these definitions conditional, so that they may be overridden, too.
18439
18440 2008-08-26  Bruno Haible  <bruno@clisp.org>
18441
18442         Generate INSTALL file variants with prettier quotes.
18443         * doc/Makefile (INSTALL_PRELUDE): New macro.
18444         (INSTALL): Use it.
18445         (INSTALL.ISO, INSTALL.UTF-8): New rules.
18446
18447 2008-08-26  Bruno Haible  <bruno@clisp.org>
18448
18449         Run makeinfo in an English locale.
18450         * doc/Makefile (MAKEINFO): New variable.
18451
18452 2008-08-26  Bruno Haible  <bruno@clisp.org>
18453
18454         * doc/Makefile (INSTALL): Use --no-validate instead of --no-warn.
18455         Suggested by Eric Blake.
18456
18457 2008-08-25  Bruno Haible  <bruno@clisp.org>
18458
18459         * doc/Makefile (INSTALL): Generate with @firstparagraphindent set.
18460
18461 2008-08-25  Eric Blake  <ebb9@byu.net>
18462
18463         c-stack: test that stack overflow can be caught
18464         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Also check
18465         that platform allows handling stack overflow; at least OS/2 EMX
18466         has sigaltstack, but crashes before transferring control to
18467         handler on stack overflow.
18468         * lib/c-stack.c [HAVE_SIGALTSTACK]: Adjust conditions to also
18469         check for HAVE_STACK_OVERFLOW_HANDLING.
18470         Reported by Elbert Pol.
18471
18472 2008-08-25  Bruno Haible  <bruno@clisp.org>
18473
18474         * doc/posix-functions/strftime.texi: Fix description of strftime
18475         module.
18476
18477 2008-08-24  Bruno Haible  <bruno@clisp.org>
18478
18479         * tests/uniwidth/test-uc_width2.c: New file.
18480         * tests/uniwidth/test-uc_width2.sh: New file.
18481         * modules/uniwidth/width-tests (Files): Add the new files.
18482         (TESTS): Add uniwidth/test-uc_width2.sh.
18483         (TESTS_ENVIRONMENT): New variable.
18484         (check_PROGRAMS): Add test-uc_width2.
18485         (test_uc_width2_SOURCES): New variable.
18486
18487         Fix uc_width(0x00AB) bug, introduced on 2007-07-08.
18488         * lib/uniwidth/width.c (nonspacing_table_data): Set bit for 0x00AD,
18489         not 0x00AB.
18490         Reported by Alexander V. Lukyanov <lav@netis.ru>.
18491
18492 2008-08-22  Eric Blake  <ebb9@byu.net>
18493
18494         test-lock, test-tls: mention why a test is skipped
18495         * tests/test-lock.c (main) [!USE_*_THREADS]: Print why test is
18496         skipped.
18497         * tests/test-tls.c (main) [!USE_*_THREADS]: Likewise.
18498
18499         count-one-bits: relax license
18500         * modules/count-one-bits (License): Relicense to LGPLv2+.
18501         Suggested by Ludovic Courtès, approved by Ben Pfaff.
18502
18503 2008-08-22  Andreas Schwab  <schwab@suse.de>
18504
18505         * m4/obstack-printf-posix.m4 (gl_FUNC_OBSTACK_PRINTF_POSIX):
18506         Remove spurious space in assignment.
18507
18508 2008-08-21  Simon Josefsson  <simon@josefsson.org>
18509
18510         * m4/autobuild.m4: Use TZ=UTC0 instead of TZ=UTC.  Reported by
18511         Paul Eggert <eggert@CS.UCLA.EDU>.
18512
18513 2008-08-20  Paolo Bonzini  <bonzini@gnu.org>
18514
18515         * modules/gettext: Add m4/threadlib.m4.
18516
18517 2008-08-19  Eric Blake  <ebb9@byu.net>
18518
18519         test-c-stack: fix compilation failure on FreeBSD 5.0
18520         * tests/test-c-stack.c [HAVE_SETRLIMIT]: Include prerequisite
18521         headers before <sys/resource.h>.
18522         * doc/posix-headers/sys_resource.texi (sys/resource.h): Document
18523         the bug.
18524         Reported by Nelson H. F. Beebe.
18525
18526         strverscmp: migrate from "strverscmp.h" to <string.h>
18527         * modules/string (Makefile.am): Add new hooks.
18528         * modules/strverscmp (Files): Remove strverscmp.h.
18529         (Depends-on): Add string.
18530         (configure.ac): Add indicator.
18531         (Include): Mention new header.
18532         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Provide new
18533         defaults.
18534         * m4/strverscmp.m4 (gl_FUNC_STRVERSCMP): Inform string module of
18535         results.
18536         * lib/strverscmp.h: Delete.
18537         * lib/string.in.h (strverscmp): Provide declaration, when needed.
18538         * tests/test-strverscmp.c (includes): Adjust client.
18539         * lib/check-version.c (includes): Likewise.
18540         * NEWS: Document the change.
18541
18542         strverscmp: add unit test
18543         * modules/strverscmp-tests: New file.
18544         * tests/test-strverscmp.c: Likewise.
18545
18546 2008-08-19  Simon Josefsson  <simon@josefsson.org>
18547
18548         * lib/gc-gnulib.c: Indentation cleanup.  Add some comments
18549         regarding Windows crypto stuff, from Mono.
18550
18551 2008-08-19  Adam Strzelecki <ono@java.pl>  (tiny change)
18552
18553         * lib/gc-gnulib.c: Use CRYPT_VERIFY_CONTEXT.  Try to use Intel CSP
18554         if present, for intel RND.  Return error on failures.
18555
18556 2008-08-18  Ben Pfaff  <blp@gnu.org>
18557
18558         gitlog-to-changelog: give better diagnostic for failed pipe-open
18559         * build-aux/gitlog-to-changelog: Improve error message: suggest
18560         that the version of Git may be too old.
18561
18562 2008-08-18  Simon Josefsson  <simon@josefsson.org>
18563
18564         * m4/autobuild.m4: Use TZ=UTC to avoid time zone complexity.  Use
18565         ISO 8601 format.  Suggested by Greg Troxel <gdt@ir.bbn.com>.
18566
18567 2008-08-18  Bruno Haible  <bruno@clisp.org>
18568
18569         * lib/glthread/thread.h [USE_SOLARIS_THREADS]: Use thread_in_use(), not
18570         pthread_in_use().
18571
18572 2008-08-18  Bruno Haible  <bruno@clisp.org>
18573
18574         * lib/glthread/threadlib.c: Include <pthread.h>.
18575
18576 2008-08-18  Bruno Haible  <bruno@clisp.org>
18577
18578         * lib/glthread/lock.h [USE_SOLARIS_THREADS]: Fix
18579         glthread_recursive_lock_* macros.
18580         * lib/glthread/lock.c (glthread_recursive_lock_destroy_multithreaded):
18581         Fix syntax error.
18582
18583 2008-08-18  Bruno Haible  <bruno@clisp.org>
18584
18585         * lib/glthread/thread.c: Avoid forcing a context switch right after
18586         thread creation.
18587
18588 2008-08-17  Bruno Haible  <bruno@clisp.org>
18589
18590         * lib/glthread/thread.c: New file, based on code from tests/test-lock.c.
18591         * lib/glthread/thread.h: Provide Win32 specific implementation.
18592         * modules/thread (Files): Add lib/glthread/thread.c.
18593         (Depends-on): Add lock.
18594         (Makefile.am): Add glthread/thread.c to lib_SOURCES.
18595
18596 2008-08-17  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
18597
18598         New module 'yield'.
18599         * modules/yield: New file.
18600         * lib/glthread/yield.h: New file.
18601         * m4/yield.m4: New file.
18602         * MODULES.html.sh (Multithreading): Add yield.
18603
18604 2008-08-17  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
18605
18606         New module 'thread'.
18607         * modules/thread: New file.
18608         * lib/glthread/thread.h: New file.
18609         * m4/thread.m4: New file.
18610         * MODULES.html.sh (Multithreading): Add thread.
18611
18612 2008-08-17  Bruno Haible  <bruno@clisp.org>
18613
18614         * lib/glthread/lock.h: Include <stdlib.h> always.
18615         * lib/glthread/tls.h: Likewise.
18616         * lib/glthread/cond.h: Likewise.
18617
18618 2008-08-17  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
18619
18620         New module 'cond'.
18621         * modules/cond: New file.
18622         * lib/glthread/cond.h: New file.
18623         * lib/glthread/cond.c: New file.
18624         * m4/cond.m4: New file.
18625         * MODULES.html.sh (Multithreading): Add cond.
18626
18627 2008-08-16  Eric Blake  <ebb9@byu.net>
18628
18629         c-stack: fix regression on Irix 5.3 from 2008-06-21
18630         * m4/c-stack.m4 (gl_PREREQ_C_STACK): Move check for
18631         sa_sigaction...
18632         * m4/sigaction.m4 (gl_PREREQ_SIG_HANDLER_H): ...here.
18633         (gl_PREREQ_SIGACTION): Depend on sig-handler.h prereq's.
18634         * m4/signal_h.m4 (gl_SIGNAL_H_DEFAULTS): Set the default.
18635         * modules/signal (Makefile.am): Use the value.
18636         * lib/signal.in.h (sa_sigaction) [HAVE_SIGACTION
18637         && !HAVE_STRUCT_SIGACTION_SA_SIGACTION]: Define.
18638         * doc/posix-headers/signal.texi (signal.h): Document this
18639         portability issue.
18640         * doc/posix-functions/sigaction.texi (sigaction): Likewise.
18641         Reported by Tom G. Christensen.
18642
18643 2008-08-17  Bruno Haible  <bruno@clisp.org>
18644
18645         New module 'threadlib'.
18646         * modules/threadlib: New file.
18647         * lib/glthread/threadlib.c: New file, extracted from
18648         lib/glthread/lock.c.
18649         * lib/glthread/lock.c (dummy_thread_func, glthread_in_use): Remove
18650         functions.
18651         * m4/threadlib.m4: New file, from m4/lock.m4, renaming gl_LOCK to
18652         gl_THREADLIB and gl_LOCK_EARLY to gl_THREADLIB_EARLY.
18653         * m4/lock.m4 (gl_LOCK_EARLY, gl_LOCK_EARLY_BODY, gl_LOCK_BODY): Remove
18654         macros.
18655         (gl_LOCK): Just require gl_THREADLIB and perform checks for lock.h.
18656         (gl_DISABLE_THREADS): Remove macro.
18657         * modules/lock (Files): Remove build-aux/config.rpath.
18658         (Depends-on): Remove havelib. Add threadlib.
18659         (configure.ac-early): Remove section.
18660         * m4/tls.m4 (gl_TLS): Require gl_THREADLIB instead of gl_LOCK.
18661         * modules/tls (Depends-on): Remove lock. Add threadlib.
18662         (Link): New section, copied from threadlib.
18663         * MODULES.html.sh (Multithreading): Add threadlib.
18664
18665 2008-08-14  Bruno Haible  <bruno@clisp.org>
18666
18667         * lib/glthread/lock.h (glthread_lock_lock, glthread_lock_unlock,
18668         glthread_lock_destroy, glthread_rwlock_rdlock, glthread_rwlock_wrlock,
18669         glthread_rwlock_unlock, glthread_rwlock_destroy,
18670         glthread_recursive_lock_lock, glthread_recursive_lock_unlock,
18671         glthread_recursive_lock_destroy): Define as macros always.
18672         * lib/glthread/lock.c (glthread_lock_lock_func): Renamed from
18673         glthread_lock_lock.
18674         (glthread_lock_unlock_func): Renamed from glthread_lock_unlock.
18675         (glthread_lock_destroy_func): Renamed from glthread_lock_destroy.
18676         (glthread_rwlock_rdlock_func): Renamed from glthread_rwlock_rdlock.
18677         (glthread_rwlock_wrlock_func): Renamed from glthread_rwlock_wrlock.
18678         (glthread_rwlock_unlock_func): Renamed from glthread_rwlock_unlock.
18679         (glthread_rwlock_destroy_func): Renamed from glthread_rwlock_destroy.
18680         (glthread_recursive_lock_lock_func): Renamed from
18681         glthread_recursive_lock_lock.
18682         (glthread_recursive_lock_unlock_func): Renamed from
18683         glthread_recursive_lock_unlock.
18684         (glthread_recursive_lock_destroy_func): Renamed from
18685         glthread_recursive_lock_destroy.
18686
18687 2008-08-14  Bruno Haible  <bruno@clisp.org>
18688
18689         * lib/glthread/lock.h: Renamed from lib/lock.h.
18690         * lib/glthread/lock.c: Renamed from lib/lock.c. Update includes.
18691         * lib/glthread/tls.h: Renamed from lib/tls.h.
18692         * lib/glthread/tls.c: Renamed from lib/tls.c. Update includes.
18693         * lib/fstrcmp.c: Update includes.
18694         * lib/strsignal.c: Update includes.
18695         * modules/lock (Files, Makefile.am): Update.
18696         (Include): Change to "glthread/lock.h".
18697         * modules/tls (Files, Makefile.am): Update.
18698         (Include): Change to "glthread/tls.h".
18699         * tests/test-lock.c: Update includes.
18700         * tests/test-tls.c: Update includes.
18701         * NEWS: Mention the renamed header files.
18702
18703 2008-08-11  Jim Meyering  <meyering@redhat.com>
18704
18705         * lib/fts_.h: Fix grammar (insert a missing "is") in a comment.
18706
18707 2008-08-11  Eric Blake  <ebb9@byu.net>
18708
18709         test-c-stack: avoid C99-ism
18710         * tests/test-c-stack.c (main): Fix whitespace, move declaration
18711         before statement.
18712         Reported by Alain Guibert.
18713
18714 2008-08-10  Jim Meyering  <meyering@redhat.com>
18715
18716         ensure that return value of uinttostr et al are not ignored
18717         * lib/inttostr.h (__GNUC_PREREQ): Define.
18718         (__attribute_warn_unused_result__): Define.
18719         (offtostr, imaxtostr, umaxtostr, uinttostr): Apply the attribute.
18720
18721 2008-08-07  Paolo Bonzini  <bonzini@gnu.org>
18722
18723         * lib/lock.c (glthread_recursive_lock_init_multithreaded)
18724         [!PTHREAD_RECURSIVE_MUTEX_INITIALIZER]: Fix typo.
18725
18726 2008-08-07  Jim Meyering  <meyering@redhat.com>
18727
18728         * m4/inet_pton.m4: Fix typo in comment: s/inet_ntop/inet_pton/.
18729
18730         * modules/mkstemp (License): Relicense under LGPLv2+.
18731         * modules/tempname (License): Likewise.
18732
18733 2008-08-06  Bruno Haible  <bruno@clisp.org>
18734
18735         * lib/poll.c (poll): Further micro-optimization.
18736
18737 2008-08-06  Jim Meyering  <meyering@redhat.com>
18738
18739         inet_pton.c: use locale-independent tolower
18740         * lib/inet_pton.c: Include <c-ctype.h> rather than <ctype.h>.
18741         (inet_pton6): Use c_tolower rather than tolower.
18742         * modules/inet_pton (Depends-on): Add c-ctype.
18743
18744 2008-08-06  Paolo Bonzini  <bonzini@gnu.org>
18745
18746         * lib/poll.c (poll): Avoid division when timeout is 0, cache
18747         _SC_OPEN_MAX, avoid repeated access to errno.  Check for nfd < 0.
18748
18749 2008-08-06  Jim Meyering  <meyering@redhat.com>
18750
18751         * modules/inet_pton (License): Relicense under LGPLv2+.
18752
18753 2008-08-03  Bruno Haible  <bruno@clisp.org>
18754
18755         Additional non-aborting API for lock and tls.
18756         * lib/lock.h: Include <errno.h>.
18757         (glthread_lock_init): New macro/function.
18758         (gl_lock_init): Define as wrapper around glthread_lock_init.
18759         (glthread_lock_lock): New macro/function.
18760         (gl_lock_lock): Define as wrapper around glthread_lock_lock.
18761         (glthread_lock_unlock): New macro/function.
18762         (gl_lock_unlock): Define as wrapper around glthread_lock_unlock.
18763         (glthread_lock_destroy): New macro/function.
18764         (gl_lock_destroy): Define as wrapper around glthread_lock_destroy.
18765         (glthread_rwlock_init): New macro/function.
18766         (gl_rwlock_init): Define as wrapper around glthread_rwlock_init.
18767         (glthread_rwlock_rdlock): New macro/function.
18768         (gl_rwlock_rdlock): Define as wrapper around glthread_rwlock_rdlock.
18769         (glthread_rwlock_wrlock): New macro/function.
18770         (gl_rwlock_wrlock): Define as wrapper around glthread_rwlock_wrlock.
18771         (glthread_rwlock_unlock): New macro/function.
18772         (gl_rwlock_unlock): Define as wrapper around glthread_rwlock_unlock.
18773         (glthread_rwlock_destroy): New macro/function.
18774         (gl_rwlock_destroy): Define as wrapper around glthread_rwlock_destroy.
18775         (glthread_recursive_lock_init): New macro/function.
18776         (gl_recursive_lock_init): Define as wrapper around
18777         glthread_recursive_lock_init.
18778         (glthread_recursive_lock_lock): New macro/function.
18779         (gl_recursive_lock_lock): Define as wrapper around
18780         glthread_recursive_lock_lock.
18781         (glthread_recursive_lock_unlock): New macro/function.
18782         (gl_recursive_lock_unlock): Define as wrapper around
18783         glthread_recursive_lock_unlock.
18784         (glthread_recursive_lock_destroy): New macro/function.
18785         (gl_recursive_lock_destroy): Define as wrapper around
18786         glthread_recursive_lock_destroy.
18787         (glthread_once): New macro/function.
18788         (gl_once): Define as wrapper around glthread_once.
18789         Update function declarations.
18790         * lib/lock.c (glthread_rwlock_init_multithreaded): Renamed from
18791         glthread_rwlock_init. Return error code.
18792         (glthread_rwlock_rdlock_multithreaded): Renamed from
18793         glthread_rwlock_rdlock. Return error code.
18794         (glthread_rwlock_wrlock_multithreaded): Renamed from
18795         glthread_rwlock_wrlock. Return error code.
18796         (glthread_rwlock_unlock_multithreaded): Renamed from
18797         glthread_rwlock_unlock. Return error code.
18798         (glthread_rwlock_destroy_multithreaded): Renamed from
18799         glthread_rwlock_destroy. Return error code.
18800         (glthread_recursive_lock_init_multithreaded): Renamed from
18801         glthread_recursive_lock_init. Return error code.
18802         (glthread_recursive_lock_lock_multithreaded): Renamed from
18803         glthread_recursive_lock_lock. Return error code.
18804         (glthread_recursive_lock_unlock_multithreaded): Renamed from
18805         glthread_recursive_lock_unlock. Return error code.
18806         (glthread_recursive_lock_destroy_multithreaded): Renamed from
18807         glthread_recursive_lock_destroy. Return error code.
18808         (glthread_once_call): Make static.
18809         (glthread_once_multithreaded): Renamed from glthread_once.
18810         * lib/tls.h: Include <errno.h>.
18811         (glthread_tls_key_init): New macro/function.
18812         (gl_tls_key_init): Define as wrapper around glthread_tls_key_init.
18813         (glthread_tls_set): New macro/function.
18814         (gl_tls_set): Define as wrapper around glthread_tls_set.
18815         (glthread_tls_key_destroy): New macro/function.
18816         (gl_tls_key_destroy): Define as wrapper around glthread_tls_key_destroy.
18817         Update function declarations.
18818         * lib/tls.c (glthread_tls_get_multithreaded): Renamed from
18819         glthread_tls_get.
18820         Suggested by Yoann Vandoorselaere <yoann@prelude-ids.org>.
18821
18822 2008-08-04  Eric Blake  <ebb9@byu.net>
18823
18824         gnumakefile: use space, not TAB, outside of targets
18825         * top/GNUmakefile (_dummy): Fix whitespace error in prior edit.
18826
18827 2008-08-02  Jim Meyering  <meyering@redhat.com>
18828
18829         getdate.y: avoid locale-dependent date parsing failure
18830         In Turkish locales, getdate would fail to recognize keywords
18831         containing a lowercase "i".  The solution is not to rely on
18832         locale-sensitive case-conversion.
18833         * lib/getdate.y: Include <c-ctype.h> rather than <ctype.h>.
18834         (lookup_word): Use c_toupper in place of toupper.
18835         (yylex, get_date): Use c_ prefixed variants of isspace and isalpha, too.
18836         Reported by Vefa Bicakci <bicave@superonline.com> in
18837         <http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/14184>.
18838         * modules/getdate (Depends-on): Add c-ctype.
18839
18840 2008-08-02  Bruno Haible  <bruno@clisp.org>
18841
18842         * gnulib-tool (func_import): When updating or creating a .gitignore
18843         file, prepend each added line with a slash, and ignore leading slashes
18844         from the existing lines.
18845         Reported by Joel E. Denny <jdenny@ces.clemson.edu>.
18846
18847 2008-08-02  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
18848
18849         Portability fix for GNU make 3.79.1.
18850         * top/GNUmakefile: Avoid 'else COND', which older GNU make
18851         versions do not understand.
18852
18853 2008-08-01  Bruno Haible  <bruno@clisp.org>
18854
18855         Work around bug of HP-UX 10.20 cc with -0.0 literal.
18856         * tests/test-isnanf.h (zero): New variable.
18857         (main): Avoid literal -0.0f.
18858         * tests/test-isnand.h (zero): New variable.
18859         (main): Avoid literal -0.0.
18860         * tests/test-isnanl.h (zero): New variable.
18861         (main): Avoid literal -0.0L.
18862         * tests/test-isnan.c (zerof, zerod, zerol): New variables.
18863         (test_float, test_double, test_long_double): Avoid literals -0.0f,
18864         -0.0, -0.0L.
18865         * tests/test-signbit.c (test_signbitf): Avoid literal -0.0f.
18866         (test_signbitd): Avoid literal -0.0.
18867         (test_signbitl): Avoid literal -0.0L.
18868         * tests/test-ceilf1.c (zero): New variable.
18869         (main): Avoid literal -0.0f.
18870         * tests/test-ceill.c (zero): New variable.
18871         (main): Avoid literal -0.0L.
18872         * tests/test-floorf1.c (zero): New variable.
18873         (main): Avoid literal -0.0f.
18874         * tests/test-floorl.c (zero): New variable.
18875         (main): Avoid literal -0.0L.
18876         * tests/test-roundf1.c (zero): New variable.
18877         (main): Avoid literal -0.0f.
18878         * tests/test-round1.c (zero): New variable.
18879         (main): Avoid literal -0.0.
18880         * tests/test-roundl.c (zero): New variable.
18881         (main): Avoid literal -0.0L.
18882         * tests/test-truncf1.c (zero): New variable.
18883         (main): Avoid literal -0.0f.
18884         * tests/test-trunc1.c (zero): New variable.
18885         (main): Avoid literal -0.0.
18886         * tests/test-truncl.c (zero): New variable.
18887         (main): Avoid literal -0.0L.
18888         * tests/test-frexp.c (zero): New variable.
18889         (main): Avoid literal -0.0.
18890         * tests/test-frexpl.c (zero): New variable.
18891         (main): Avoid literal -0.0L.
18892         * tests/test-ldexpl.c (zero): New variable.
18893         (main): Avoid literal -0.0L.
18894         * tests/test-snprintf-posix.h (have_minus_zero): Avoid literal -0.0.
18895         (zerod, zerol): New variables.
18896         (test_function): Avoid literals -0.0, -0.0L.
18897         * tests/test-sprintf-posix.h (have_minus_zero): Avoid literal -0.0.
18898         (zerod, zerol): New variables.
18899         (test_function): Avoid literals -0.0, -0.0L.
18900         * tests/test-vasnprintf-posix.c (have_minus_zero): Avoid literal -0.0.
18901         (zerod, zerol): New variables.
18902         (test_function): Avoid literals -0.0, -0.0L.
18903         * tests/test-vasprintf-posix.c (have_minus_zero): Avoid literal -0.0.
18904         (zerod, zerol): New variables.
18905         (test_function): Avoid literals -0.0, -0.0L.
18906         * tests/test-strtod.c (zero): New variable.
18907         (main): Avoid literal -0.0.
18908         Reported by Jonathan C. Patschke <jp@centtech.com>.
18909
18910 2008-07-31  Jim Meyering  <meyering@redhat.com>
18911
18912         sha256.h: correct definition of SHA224_DIGEST_SIZE
18913         * lib/sha256.h (SHA224_DIGEST_SIZE): Define to 28, not 24.
18914         Reported by Paulie Pena IV <paulie4@gmail.com>.
18915         Define as 224 / 8, rather than as a literal.
18916         (SHA256_DIGEST_SIZE): Define as 256/8 rather than equivalent literal.
18917         * lib/sha512.h (SHA384_DIGEST_SIZE): Likewise, define as equiv: 384/8.
18918         (SHA512_DIGEST_SIZE): Likewise, define as equivalent quotient: 512/8.
18919
18920 2008-07-31  Bruno Haible  <bruno@clisp.org>
18921
18922         * lib/regex_internal.h (BITSET_WORD_BITS): Make first conditional work
18923         on HP-UX 10.20 with "cc -Ae". Fix second conditional.
18924         Reported by Jonathan Patschke <jp@centtech.com>.
18925
18926 2008-07-31  Bruno Haible  <bruno@clisp.org>
18927
18928         * gnulib-tool (func_import): Make change from 2008-06-23 more robust.
18929         Reported by Paolo Bonzini <bonzini@gnu.org>.
18930
18931 2008-07-30  Eric Blake  <ebb9@byu.net>
18932
18933         test-strtod: allow compilation without -lm
18934         * tests/test-strtod.c (main): Avoid link dependence on fabs.
18935         Reported by Dennis Clarke <blastwave@gmail.com>.
18936
18937 2008-07-28  Jim Meyering  <meyering@redhat.com>
18938
18939         bootstrap: work also when there are no .po files in po/
18940         * build-aux/bootstrap (update_po_files): Complete the change
18941         that I began in bc960df8c789c878f1c1c54a28a3c2648dead8d9.
18942
18943 2008-07-27  Jim Meyering  <meyering@redhat.com>
18944
18945         * users.txt: Add zile.
18946
18947 2008-07-26  Ben Pfaff  <blp@gnu.org>
18948
18949         Add missing dependencies on new m4/exponent[fdl].m4 files.
18950         * modules/isnanf-nolibm: Add m4/exponentf.m4.
18951         * modules/isnand-nolibm: Add m4/exponentd.m4.
18952         * modules/isnanl-nolibm: Add m4/exponentl.m4.
18953         * modules/signbit-tests: Use m4/exponent[fdl].m4 instead of
18954         m4/isnan[fdl].m4, because the macros actually used moved.
18955         Reported by Jim Meyering.
18956
18957 2008-07-14  Ben Pfaff  <blp@gnu.org>
18958
18959         Add isinf module.
18960         * lib/isinf.c: New file.
18961         * lib/math.in.h: Define isinf macro if we have decided to replace
18962         it.
18963         * m4/isinf.m4: New file.
18964         * m4/math_h.m4: Initialize and substitute variables for isinf
18965         module.
18966         * modules/isinf: New file.
18967         * modules/isinf-tests: New file.
18968         * modules/math: Add substitutions for new module.
18969         * tests/test-isinf.c: New file.
18970         * doc/posix-functions/isinf.texi: Mention new module.
18971         * MODULES.html.sh: Mention new module.
18972
18973 2008-07-14  Ben Pfaff  <blp@gnu.org>
18974
18975         Factor out some macros for use by additional modules.
18976         * m4/isnanf.m4 (gl_FLOAT_EXPONENT_LOCATION): Move into new file
18977         exponentf.m4.
18978         * m4/isnand.m4 (gl_DOUBLE_EXPONENT_LOCATION): Move into new file
18979         exponentd.m4.
18980         * m4/isnanl.m4 (gl_LONG_DOUBLE_EXPONENT_LOCATION): Move into new
18981         file exponentl.m4.
18982         * m4/exponentf.m4: New file.
18983         * m4/exponentd.m4: New file.
18984         * m4/exponentl.m4: New file.
18985         * modules/isnanf: Use new file m4/exponentf.m4.
18986         * modules/isnand: Use new file m4/exponentd.m4.
18987         * modules/isnanl: Use new file m4/exponentl.m4.
18988
18989 2008-07-23  Ulrich Drepper  <drepper@redhat.com>
18990
18991         mktime.c: normalize tp->tm_isdst value to -1/0/1.
18992         * lib/mktime.c (__mktime_internal): Normalize tp->tm_isdst value.
18993         Reported by Michael Ringe <Michael.Ringe@gmx.de> in
18994         <http://sourceware.org/bugzilla/show_bug.cgi?id=6723>.
18995
18996         * lib/canonicalize-lgpl.c (__realpath): Avoid buffer overflow after
18997         readlink on platforms without PATH_MAX.
18998
18999 2008-07-21  Eric Blake  <ebb9@byu.net>
19000
19001         Warn, not fail, on stale version.
19002         * top/GNUmakefile (_curr-ver): Tone down previous patch.
19003
19004         Don't allow installation with stale devel version number.
19005         * top/GNUmakefile (_is-install-target): New macro.
19006         (_curr-ver): Forbid installation with stale version number.
19007
19008 2008-07-20  Bruno Haible  <bruno@clisp.org>
19009
19010         * modules/c-stack-tests (Makefile.am): Add LIBSIGSEGV to
19011         TESTS_ENVIRONMENT.
19012         * tests/test-c-stack2.sh: React differently if LIBSIGSEGV is in use.
19013
19014 2008-07-20  Bruno Haible  <bruno@clisp.org>
19015
19016         * lib/c-stack.h (c_stack_action): Add documentation.
19017         * lib/c-stack.c (c_stack_action): Remove incomplete documentation.
19018
19019 2008-07-20  Bruno Haible  <bruno@clisp.org>
19020
19021         * modules/canonicalize-lgpl (License): Relicense under LGPLv2+.
19022         * modules/readlink (License): Likewise.
19023
19024 2008-07-17  Eric Blake  <ebb9@byu.net>
19025
19026         * modules/c-stack (Link): Fix typo.
19027
19028         Make c-stack use libsigsegv, when available.
19029         * modules/c-stack (Depends-on): Add libsigsegv.
19030         * modules/c-stack-tests (Makefile.am): Link with libsigsegv, if
19031         needed.
19032         * lib/c-stack.c (SIGSTKSZ): Define fallback.
19033         (segv_handler, overflow_handler, c_stack_action)
19034         [HAVE_LIBSIGSEGV && !HAVE_XSI_STACK_OVERFLOW_HEURISTIC]: Add new
19035         implementation when libsigsegv is available, but only when using
19036         the library is necessary.
19037         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Add
19038         comment, explaining why XSI check fails on Linux.
19039         (gl_PREREQ_C_STACK): Supply LIBCSTACK, LTLIBCSTACK.
19040         * tests/test-c-stack2.sh: Tweak skip message.
19041         * NEWS: Document new link-time requirements.
19042
19043 2008-07-16  Eric Blake  <ebb9@byu.net>
19044
19045         c-stack: Expose false positives when not using libsigsegv.
19046         * modules/c-stack-tests (Files): Expand test.
19047         * tests/test-c-stack.c (main): Add means to conditionally trigger
19048         non-overflow SIGSEGV.
19049         * tests/test-c-stack2.sh: New file.
19050
19051 2008-07-14  Bruno Haible  <bruno@clisp.org>
19052
19053         * m4/libsigsegv.m4: Remove unneeded AC_PREREQ.
19054         Reported by Eric Blake.
19055
19056 2008-07-14  Sam Steingold  <sds@gnu.org>
19057             Bruno Haible  <bruno@clisp.org>
19058
19059         New module libsigsegv.
19060         * modules/libsigsegv: New file.
19061         * m4/libsigsegv.m4: New file, from GNU clisp sigsegv.m4 with
19062         modifications.
19063         * MODULES.html.sh (Signal handling): New section.
19064
19065 2008-07-14  Bruno Haible  <bruno@clisp.org>
19066
19067         * modules/unictype/ctype-* (Description): Add the word "function".
19068         Improves the resulting doc in MODULES.html.
19069
19070 2008-07-12  Ben Pfaff  <blp@gnu.org>
19071
19072         Add longlong module.
19073         * modules/longlong: New file.
19074
19075 2008-07-12  Bruno Haible  <bruno@clisp.org>
19076
19077         * m4/isnan.m4 (gl_ISNAN): When the replacement is used, set ISNAN_LIBM
19078         to empty.
19079
19080 2008-07-10  Ben Pfaff  <blp@gnu.org>
19081
19082         Add isnan module.
19083         * doc/posix-functions/isnan.texi: Mention new module.
19084         * lib/math.in.h: Define isnan macro if we have decided to replace
19085         it.
19086         * m4/isnan.m4: New file.
19087         * m4/isnanl.m4 (gl_FUNC_ISNANL): Factor out some code into new
19088         macro gl_BUILD_ISNANL so that isnan.m4 can use that functionality
19089         also.
19090         (gl_FUNC_ISNANL_NO_LIBM): Factor out same code, to reduce
19091         redundancy.
19092         * m4/math_h.m4: Initialize and substitute variables for isnan
19093         module.
19094         * modules/isnan: New file.
19095         * modules/isnan-tests: New file.
19096         * modules/math: Add substitutions for new module.
19097         * tests/test-isnan.c: New file.
19098         * MODULES.html.sh: Mention new module.
19099
19100 2008-07-10  Ben Pfaff  <blp@gnu.org>
19101
19102         Add isnanf module.
19103         * lib/isnanf.m4: New file.
19104         * m4/isnanf.m4 (gl_FUNC_ISNANF): New macro.
19105         (gl_HAVE_ISNANF_IN_LIBM): New macro.
19106         (gl_BUILD_ISNANF): New macro used by gl_FUNC_ISNANF,
19107         gl_FUNC_ISNANF_NO_LIBM, and gl_FUNC_ISNAN.
19108         * modules/isnanf: New file.
19109         * modules/isnanf-tests: New file.
19110         * modules/isnanf-nolibm-tests: Add tests/test-isnanf.h to list of
19111         files.
19112         * tests/test-isnanf-nolibm.c: factored most of its contents into
19113         new file tests/test-isnanf.h.
19114         * tests/test-isnanf.h: New file.
19115         * tests/test-isnanf.c: New file.
19116         * MODULES.html.sh: Mention new module.
19117         * doc/glibc-functions/isnanf.texi: Mention new module.
19118
19119 2008-07-10  Ben Pfaff  <blp@gnu.org>
19120
19121         Add isnand module.
19122         * lib/isnand.h: New file.
19123         * m4/isnand.m4 (gl_FUNC_ISNAND): New macro.
19124         (gl_FUNC_ISNAND_NO_LIBM): Split partially into new macro
19125         gl_HAVE_ISNAND_NO_LIBM so that gl_FUNC_ISNAND can use that
19126         functionality also.
19127         (gl_BUILD_ISNAND): New macro used by gl_FUNC_ISNAND,
19128         gl_FUNC_ISNAND_NO_LIBM, and gl_FUNC_ISNAN.
19129         (gl_HAVE_ISNAND_IN_LIBM): New macro.
19130         * modules/isnand: New file.
19131         * modules/isnand-tests: New file.
19132         * modules/isnand-nolibm-tests: Add tests/test-isnand.h to list of
19133         files.
19134         * tests/test-isnand-nolibm.c: factored most of its contents into
19135         new file tests/test-isnand.h.
19136         * tests/test-isnand.h: New file.
19137         * tests/test-isnand.c: New file.
19138         * MODULES.html.sh: Mention new module.
19139
19140 2008-07-10  Ben Pfaff  <blp@gnu.org>
19141
19142         * lib/isnanf.h: Rename lib/isnanf-nolibm.h.
19143         * lib/isnand.h: Rename lib/isnand-nolibm.h.
19144         * tests/test-isnanf.c: Rename tests/test-isnanf-nolibm.c.
19145         * tests/test-isnand.c: Rename tests/test-isnand-nolibm.c.
19146         * modules/isnanf-nolibm: Update references to renamed files.
19147         * modules/isnand-nolibm: Likewise.
19148         * modules/isnanf-nolibm-tests: Likewise.
19149         * modules/isnand-nolibm-tests: Likewise.
19150         * lib/frexp.c: Likewise.
19151         * lib/isfinite.c: Likewise.
19152         * lib/signbitd.c: Likewise.
19153         * lib/signbitf.c: Likewise.
19154         * lib/vasnprintf.c: Likewise.
19155         * tests/test-ceilf1.c: Likewise.
19156         * tests/test-ceilf2.c: Likewise.
19157         * tests/test-floorf1.c: Likewise.
19158         * tests/test-floorf2.c: Likewise.
19159         * tests/test-frexp.c: Likewise.
19160         * tests/test-round1.c: Likewise.
19161         * tests/test-round2.c: Likewise.
19162         * tests/test-roundf1.c: Likewise.
19163         * tests/test-strtod.c: Likewise.
19164         * tests/test-trunc1.c: Likewise.
19165         * tests/test-trunc2.c: Likewise.
19166         * tests/test-truncf1.c: Likewise.
19167         * tests/test-truncf2.c: Likewise.
19168         * NEWS: Mention the renamed header files.
19169
19170 2008-07-11  Jim Meyering  <meyering@redhat.com>
19171
19172         vc-list-files: make the last-resort awk code more portable
19173         * build-aux/vc-list-files: Don't rely on awk's "sub" command.
19174         /bin/awk from OpenSolaris 11's SUNWesu version 2008.03.22.10.56
19175         does not support it.
19176
19177 2008-07-10  Eric Blake  <ebb9@byu.net>
19178
19179         Work with tar's bootstrap.
19180         * gnulib-tool (func_emit_initmacro_end): Use m4_defn in the case
19181         where LIBSOURCES_DIR contains .#bootmp but must not be treated as
19182         an m4 comment.
19183
19184 2008-07-09  Jim Meyering  <meyering@redhat.com>
19185
19186         posix-shell.m4: fix typo that made this test malfunction
19187         * m4/posix-shell.m4: Remove capitalization in variable name.
19188
19189 2008-07-08  Bruno Haible  <bruno@clisp.org>
19190
19191         * m4/onceonly.m4: Update comments.
19192         Reported by Ben Pfaff <blp@cs.stanford.edu>.
19193
19194 2008-07-04  Jim Meyering  <meyering@redhat.com>
19195
19196         * users.txt: Add vc-dwim.
19197         (bison, coreutils): Use the gitweb URL.
19198
19199 2008-07-03  Jim Meyering  <meyering@redhat.com>
19200
19201         * users.txt: Add libffcall.  From Sam Steingold.
19202
19203 2008-07-03  OndÅ™ej Vašík  <ovasik@redhat.com>
19204
19205         getdate.y: do not ignore TZ with relative day, month or year offset
19206         * lib/getdate.y (get_date): Move the tz-handling block to follow the
19207         relative-date-handling, since otherwise, the latter would clobber the
19208         sole output (an updated Start value) of the tz-handling block.
19209         * tests/test-getdate.c: Tests for the fix
19210
19211 2008-07-03  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
19212
19213         Recognize 'foo_LIBRARIES += libgnu.a'.
19214         * gnulib-tool (func_emit_lib_Makefile_am): Recognize if a
19215         makefile snippet has already specified an installation location,
19216         also using '+='.
19217
19218 2008-07-02  OndÅ™ej Vašík  <ovasik@redhat.com>
19219
19220         getdate.y: factor out common actions
19221         * lib/getdate.y (apply_relative_time, set_hhmmss): New functions.
19222         Use them in place of open-coded actions.
19223
19224 2008-07-01  Simon Josefsson  <simon@josefsson.org>
19225
19226         Add self-test for getdate module.
19227         * modules/getdate-tests: New file.
19228         * tests/test-getdate.c: New file.
19229
19230 2008-06-29  Bruno Haible  <bruno@clisp.org>
19231
19232         * gnulib-tool (func_import): Put gnulib-comp.m4 into .cvsignore or
19233         .gitignore.
19234         Reported by Sylvain Beucler <beuc@beuc.net>.
19235
19236 2008-06-29  Bruno Haible  <bruno@clisp.org>
19237
19238         * doc/gnulib-tool.texi (VCS Issues): Mention --no-vc-files option.
19239         * m4/gnulib-tool.m4: Update to match current gnulib-tool.
19240
19241 2008-06-29  Bruno Haible  <bruno@clisp.org>
19242
19243         * gnulib-tool (func_import): Recommend to put gnulib-cache.m4 into
19244         EXTRA_DIST.
19245         Reported by Sylvain Beucler <beuc@beuc.net>.
19246
19247 2008-06-26  Jim Meyering  <meyering@redhat.com>
19248
19249         make several modules depend on the "open" module
19250         This provides slightly increased consistency when opening-for-write
19251         the name of a non-directory spelled with a trailing slash.
19252         * modules/chdir-safer: Likewise.
19253         * modules/chown: Likewise.
19254         * modules/clean-temp: Likewise.
19255         * modules/copy-file: Likewise.
19256         * modules/fchdir: Likewise.
19257         * modules/fcntl-safer: Likewise.
19258         * modules/pipe: Likewise.
19259         * modules/utime: Likewise.
19260         Prompted by Eric Blake and Bruno Haible.
19261
19262 2008-06-24  Andreas Schwab  <schwab@suse.de>
19263
19264         * m4/getdate.m4 (gl_C_COMPOUND_LITERALS): Don't test whether compound
19265         literals can be used as initializers for global variables.
19266
19267 2008-06-23  Eric Blake  <ebb9@byu.net>
19268
19269         Make gnulib-cache.m4 easier to diff.
19270         * gnulib-tool (func_import): Allow newlines when reading cached
19271         gl_MODULES, and generate newlines when creating gnulib-cache.m4.
19272
19273 2008-06-23  Bruno Haible  <bruno@clisp.org>
19274
19275         * m4/signalblocking.m4 (gl_PREREQ_SIG_HANDLER_H): Remove macro.
19276         (gl_PREREQ_SIGPROCMASK): Don't invoke it.
19277         * m4/sigaction.m4 (gl_PREREQ_SIG_HANDLER_H): New macro, moved here from
19278         m4/signalblocking.m4.
19279         (gl_PREREQ_SIGACTION): Don't invoke it.
19280         * m4/nanosleep.m4 (gl_PREREQ_NANOSLEEP): Invoke
19281         gl_PREREQ_SIG_HANDLER_H.
19282         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Likewise.
19283         Don't check for sigaction here.
19284
19285 2008-06-23  Bruno Haible  <bruno@clisp.org>
19286
19287         * lib/fatal-signal.c (fatal_signal_handler): Update comment.
19288         (install_handlers): Don't set the SA_RESETHAND flag.
19289
19290 2008-06-23  Bruno Haible  <bruno@clisp.org>
19291
19292         * m4/sigaction.m4: Comment fixes.
19293         * lib/signal.in.h: Likewise.
19294
19295 2008-06-23  Eric Blake  <ebb9@byu.net>
19296
19297         Fix typo.
19298         * tests/test-sigaction.c (MASK_SA_FLAGS): Add missing operator.
19299
19300         Avoid SA_ namespace.
19301         * tests/test-sigaction.c (MASK_SA_FLAGS): Rename from SA_MASK.
19302         Reported by Ralf Wildenhues.
19303
19304         Avoid test failure due to SA_RESTORER.
19305         * tests/test-sigaction.c (SA_MASK): New macro.
19306         (main): Avoid failing due to extension flags being set.
19307         Reported by Jim Meyering.
19308
19309         Revert use of sig-handler.h in sigprocmask.c.
19310         * modules/sigprocmask (Files): Don't rely on sig-handler.h, since
19311         it requires the existence of struct sigaction.
19312         * lib/sigprocmask.c (handler_t): Restore typedef.
19313         (rpl_signal, old_handlers): Use local type.
19314
19315 2008-06-22  Bruno Haible  <bruno@clisp.org>
19316
19317         * tests/test-stdint.c: Disable the INTMAX_MAX preprocessor test
19318         conditionally.
19319         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
19320
19321 2008-06-22  Bruno Haible  <bruno@clisp.org>
19322
19323         * doc/posix-functions/siginterrupt.texi: Move note.
19324
19325         * lib/signal.in.h (SA_RESTART): New macro.
19326         * lib/sigaction.c: Update comment.
19327
19328         * m4/sigaction.m4 (gl_SIGACTION): Require gl_SIGNAL_H_DEFAULTS.
19329
19330         * m4/signalblocking.m4 (gl_PREREQ_SIG_HANDLER_H): New macro.
19331         (gl_PREREQ_SIGPROCMASK): Invoke it.
19332         * m4/sigaction.m4 (gl_PREREQ_SIGACTION): Likewise.
19333
19334         * lib/nanosleep.c (rpl_nanosleep): Setup newact only when it is needed.
19335
19336         * lib/sigprocmask.c: Update a comment.
19337
19338 2008-06-21  Eric Blake  <ebb9@byu.net>
19339
19340         Use sigaction module rather than signal().
19341         * modules/c-stack (Depends-on): Add sigaction.
19342         * modules/fatal-signal (Depends-on): Likewise.
19343         * modules/nanosleep (Depends-on): Likewise.
19344         * modules/sigprocmask (Files): Add sig-handler.h.
19345         * modules/sigaction (Files): Likewise.
19346         * lib/sig-handler.h (get_handler): New file, suggested by Paul
19347         Eggert.
19348         * lib/c-stack.c (SIGACTION_WORKS): Simplify conditions.
19349         (c_stack_action) [!SIGACTION_WORKS]: Use sigaction, not signal.
19350         * lib/fatal-signal.c (uninstall_handlers, install_handlers)
19351         (init_fatal_signals): Likewise.
19352         * lib/nanosleep.c (rpl_nanosleep): Likewise.
19353         (siginterrupt): Delete fallback.
19354         * lib/sigprocmask.c (handler_t, old_handlers): Use sa_handler_t
19355         instead.
19356         * m4/nanosleep.m4 (gl_PREREQ_NANOSLEEP): Drop check for
19357         siginterrupt.
19358
19359         New module sigaction, for mingw.
19360         * modules/sigaction: New module...
19361         * modules/sigaction-tests: ...and its test.
19362         * m4/sigaction.m4: New file.
19363         * lib/sigaction.c: Likewise.
19364         * tests/test-sigaction.c: Likewise.
19365         * m4/signal_h.m4 (gl_SIGNAL_H_DEFAULTS): Add sigaction variables.
19366         * modules/signal (Makefile.am): Likewise.
19367         * lib/signal.in.h (!@HAVE_SIGACTION@): Define replacements when
19368         needed.
19369         * doc/posix-headers/signal.texi (signal.h): Mention provided
19370         types.
19371         * doc/posix-functions/siginterrupt.texi (siginterrupt): Mention
19372         that sigaction is preferable.
19373         * doc/posix-functions/sigaction.texi (sigaction): Mention new
19374         module.
19375         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
19376         sigaction.
19377
19378         Improve robustness of sigprocmask by overriding signal.
19379         * lib/signal.in.h (rpl_signal): Override signal when sigprocmask
19380         is in use.
19381         * lib/sigprocmask.c (blocked_handler): Reinstall block handler.
19382         (SIGKILL, SIGSTOP): Provide fallbacks.
19383         (rpl_signal): Implement.
19384         (old_handlers, blocked_set): Mark volatile, since sigprocmask and
19385         signal can be called inside handlers.
19386
19387         Fix nanosleep module on mingw.
19388         * modules/nanosleep (Depends-on): Add sys_select.
19389         * lib/nanosleep.c (HAVE_SYS_SELECT_H): Rely on gnulib module.
19390
19391         Fix licensing of sigprocmask.
19392         * modules/raise (License): Relicense as LGPL.
19393
19394 2008-06-21  Bruno Haible  <bruno@clisp.org>
19395
19396         * lib/propername.c (proper_name_utf8): Don't use the transliterated
19397         result if it contains question marks.
19398         Reported by Michael Geng <linux@michaelgeng.de>.
19399
19400 2008-06-19  Bruno Haible  <bruno@clisp.org>
19401
19402         Fix CVS-ism.
19403         * doc/gnulib.texi: Include updated-stamp.texi.
19404         * doc/Makefile (GNULIB_TEXI_FILES): New variable.
19405         (updated-stamp.texi): New rule.
19406         (gnulib.info): Depend on it.
19407         * doc/.gitignore: Add updated-stamp.texi.
19408         Based on a patch by Thien-Thi Nguyen <ttn@gnuvola.org>.
19409
19410 2008-06-19  Bruno Haible  <bruno@clisp.org>
19411
19412         * doc/Makefile (gnulib.info): Update and simplify dependencies.
19413         Reported by Thien-Thi Nguyen <ttn@gnuvola.org>.
19414
19415 2008-06-19  Eric Blake  <ebb9@byu.net>
19416
19417         Fix VPATH 'make dist' with GNU make and non-VCS tarball.
19418         * top/GNUmakefile (_curr-ver): Don't use $(srcdir) unnecessarily.
19419         Reported by Stepan Kasal.
19420
19421 2008-06-18  Bruno Haible  <bruno@clisp.org>
19422
19423         * lib/fatal-signal.c (init_fatal_signals): Add comment.
19424         Reported by Eric Blake.
19425
19426 2008-06-18  Eric Blake  <ebb9@byu.net>
19427
19428         Work around cygwin 1.5.25 strsignal bug.
19429         * tests/test-strsignal.c: Allow for const char *.
19430         * doc/glibc-functions/strsignal.texi (strsignal): Document the bug.
19431
19432 2008-06-18  Simon Josefsson  <simon@josefsson.org>
19433
19434         * users.txt: Update URL to article and add author/date
19435         information.
19436
19437 2008-06-17  Bruno Haible  <bruno@clisp.org>
19438
19439         New macro gl_DISABLE_THREADS.
19440         * m4/lock.m4 (gl_LOCK_EARLY_BODY): Use value gl_use_threads_default
19441         if the user did not pass --enable-threads or --disable-threads option.
19442         (gl_DISABLE_THREADS): New macro.
19443         Reported by Eric Blake <ebb9@byu.net>.
19444
19445 2008-06-17  Bruno Haible  <bruno@clisp.org>
19446
19447         * lib/tls.h (gl_tls_key_init): Evaluate the destructor argument also
19448         when the macro ignores it.
19449         Based on a patch by Eric Blake <ebb9@byu.net>.
19450
19451 2008-06-17  Bruno Haible  <bruno@clisp.org>
19452
19453         * modules/tls (License): Change to LGPLv2+.
19454         Reported by Eric Blake.
19455
19456 2008-06-17  Eric Blake  <ebb9@byu.net>
19457
19458         Simplify c-stack prerequisites.
19459         * lib/c-stack.c (includes): Remove unused <sys/resource.h>.
19460         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Posix 200x
19461         no longer requires <ucontext.h> to exist.  Optimize setrlimit
19462         check.
19463         (gl_PREREQ_C_STACK): Remove check for unused getcontext and
19464         <sys/resource.h>.
19465
19466         Move c-stack test into testsuite.
19467         * modules/c-stack-tests: New file.
19468         * lib/c-stack.c [DEBUG]: Move test program...
19469         * tests/test-c-stack.c: ...into this new file.  Skip rather than
19470         fail test if sigaltstack is lacking.
19471         * tests/test-c-stack.sh: New driver file.
19472
19473 2008-06-16  Eric Blake  <ebb9@byu.net>
19474
19475         Use raise module consistently.
19476         * modules/fatal-signal (Depends-on): Add raise.
19477         * modules/sigprocmask (Depends-on): Likewise.
19478         * lib/fatal-signal.c (fatal_signal_handler): Rely on raise.
19479         * lib/sigprocmask.c (sigprocmask): Likewise.
19480         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Likewise.
19481         * m4/signalblocking.m4 (gl_PREREQ_SIGPROCMASK): Likewise.
19482
19483         Fix compliance bug in sigpending.
19484         * lib/sigprocmask.c (sigpending): Return pending array via
19485         parameter, not return value.
19486
19487 2008-06-14  Eric Blake  <ebb9@byu.net>
19488
19489         Improve obstack-printf test code.
19490         * tests/test-obstack-printf.c (test_function): Fix comment, and
19491         simplify usage of obstack_* in macros.  Add a test for coverage.
19492         Reported by Bruno Haible.
19493
19494 2008-06-14  Bruno Haible  <bruno@clisp.org>
19495
19496         * lib/obstack_printf.c (obstack_vprintf): Define the stack-allocated
19497         array size as a constant, not as a const variable.
19498         * m4/obstack-printf.m4 (gl_FUNC_OBSTACK_PRINTF): Require
19499         AC_USE_SYSTEM_EXTENSIONS.
19500         * m4/obstack-printf-posix.m4 (gl_FUNC_OBSTACK_PRINTF_POSIX): Likewise.
19501         Test whether the obstack_printf function actually exists.
19502         * modules/obstack-printf (Depends-on): Add extensions.
19503         (Include): Remove obstack.h.
19504         * modules/obstack-printf-posix (Depends-on): Add extensions.
19505         (Include): Remove obstack.h.
19506
19507 2008-06-13  Eric Blake  <ebb9@byu.net>
19508
19509         Add obstack-printf and obstack-printf-posix modules.
19510         * modules/obstack-printf: New file.
19511         * modules/obstack-printf-posix: Likewise.
19512         * MODULES.html.sh (Misc): Mention them.
19513         * doc/glibc-functions/obstack_printf.texi (obstack_printf):
19514         Likewise.
19515         * doc/glibc-functions/obstack_vprintf.texi (obstack_vprintf):
19516         Likewise.
19517         * modules/stdio (Makefile.am): Accomodate new modules.
19518         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Likewise.
19519         * lib/stdio.in.h (rpl_obstack_printf, rpl_obstack_vprintf):
19520         Declare.
19521         * lib/obstack_printf.c (obstack_printf, obstack_vprintf): New
19522         functions.
19523         * m4/obstack-printf.m4 (gl_OBSTACK_PRINTF)
19524         (gl_REPLACE_OBSTACK_PRINTF): New macros
19525         * m4/obstack-printf-posix.m4 (gl_OBSTACK_PRINTF_POSIX): Likewise.
19526         * tests/test-obstack-printf.c: New file.
19527         * modules/obstack-printf-tests: Likewise.
19528         * modules/obstack-printf-posix-tests: Likewise.
19529
19530 2008-06-11  Bruno Haible  <bruno@clisp.org>
19531
19532         * m4/open.m4 (gl_FUNC_OPEN): Add test against trailing slash bug.
19533         * lib/open.c: Include errno.h.
19534         (open): Fail when attempting to write to a file that has a trailing
19535         slash.
19536         * tests/test-open.c (main): Test against trailing slash bug.
19537         * doc/posix-functions/open.texi: Mention the trailing slash bug.
19538
19539 2008-06-10  Bruno Haible  <bruno@clisp.org>
19540
19541         * tests/test-vc-list-files-git.sh: Make double use of 'exit'. Needed
19542         for $? to work inside the trap command, with various /bin/sh-s.
19543         * tests/test-vc-list-files-cvs.sh: Likewise.
19544
19545 2008-06-10  Bruno Haible  <bruno@clisp.org>
19546
19547         * lib/acl-internal.h: Don't include gettext.h here.
19548         * lib/set-mode-acl.c: Include gettext.h here.
19549         * lib/copy-acl.c: Likewise.
19550
19551 2008-06-10  Bruno Haible  <bruno@clisp.org>
19552
19553         * lib/wait-process.h (wait_subprocess): Add termsigp argument.
19554         * lib/wait-process.c (wait_subprocess): Likewise.
19555         * lib/execute.h (execute): Add termsigp argument.
19556         * lib/execute.c (execute): Likewise.
19557         * lib/csharpcomp.c (compile_csharp_using_pnet,
19558         compile_csharp_using_mono, compile_csharp_using_sscli): Update.
19559         * lib/csharpexec.c (execute_csharp_using_pnet,
19560         execute_csharp_using_mono, execute_csharp_using_sscli): Update.
19561         * lib/javacomp.c (compile_using_envjavac, compile_using_gcj,
19562         compile_using_javac, compile_using_jikes, is_envjavac_gcj,
19563         is_envjavac_gcj43, is_gcj_present, is_gcj_43, is_javac_present,
19564         is_jikes_present): Update.
19565         * lib/javaexec.c (execute_java_class): Update.
19566         * lib/javaversion.c (execute_and_read_line): Update.
19567         * NEWS: Document the changes.
19568         Reported by Eric Blake.
19569
19570 2008-06-10  Eric Blake  <ebb9@byu.net>
19571
19572         Add missing include.
19573         * tests/test-strstr.c (includes): Add <signal.h>.
19574         * tests/test-strcasestr.c (includes): Likewise.
19575         * tests/test-memmem.c (includes): Likewise.
19576
19577 2008-06-10  Bruno Haible  <bruno@clisp.org>
19578
19579         * lib/wait-process.c (wait_subprocess): Add an assertion.
19580
19581 2008-06-10  Bruno Haible  <bruno@clisp.org>
19582
19583         * lib/wait-process.c (wait_subprocess): Try to fix waitid() based code.
19584
19585 2008-06-10  Bruno Haible  <bruno@clisp.org>
19586
19587         * tests/test-memmem.c (main): Reset SIGALRM to default handling before
19588         using alarm().
19589         * tests/test-strcasestr.c (main): Likewise.
19590         * tests/test-strstr.c (main): Likewise.
19591
19592 2008-06-09  Bruno Haible  <bruno@clisp.org>
19593
19594         Work around the Solaris 10 ACE ACLs ABI change.
19595         * lib/acl-internal.h (acl_nontrivial, acl_ace_nontrivial): Don't
19596         declare if ACL_NO_TRIVIAL is present.
19597         (ACE_ACCESS_ALLOWED_ACE_TYPE, ACE_ACCESS_DENIED_ACE_TYPE,
19598         NEW_ACE_OWNER, NEW_ACE_GROUP, NEW_ACE_IDENTIFIER_GROUP, ACE_EVERYONE,
19599         NEW_ACE_READ_DATA, NEW_ACE_WRITE_DATA, NEW_ACE_EXECUTE): New macros.
19600         * lib/file-has-acl.c (acl_nontrivial, acl_ace_nontrivial): Don't
19601         define if ACL_NO_TRIVIAL is present.
19602         (acl_ace_nontrivial): Detect whether the old or new ABI is in use,
19603         and use the current ABI.
19604         (file_has_acl): Use same #if condition as elsewhere.
19605         * lib/set-mode-acl.c (qset_acl): Detect whether the old or new ABI is
19606         in use, and use the current ABI.
19607         * doc/acl-resources.txt: More doc about newer Solaris 10 versions.
19608         Reported by Jim Meyering.
19609
19610 2008-06-09  Eric Blake  <ebb9@byu.net>
19611
19612         Work around environments that (stupidly) ignore SIGALRM.
19613         * m4/strstr.m4 (gl_FUNC_STRSTR): Reset SIGALRM to default handling
19614         before using alarm().
19615         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
19616         * m4/memmem.m4 (gl_FUNC_MEMMEM): Likewise.
19617         Reported by Ian Beckwith <ianb@erislabs.net>.
19618
19619         Produce autobuild blurb earlier in log.
19620         * modules/autobuild (configure.ac-early): Move AB_INIT here.
19621
19622 2008-06-09  Jim Meyering  <meyering@redhat.com>
19623         and OndÅ™ej Vašík  <ovasik@redhat.com>
19624
19625         utimens.c: correct kernel bug work-around
19626         OndÅ™ej Vašík found that the invalid return value of 280 indicates
19627         failure, not success, and the kernel bug we're trying to work
19628         around affects not just the utimensat call, but also the fallback
19629         futimens call.
19630         * lib/utimens.c (gl_futimens) [HAVE_UTIMENSAT]: Simulate failure,
19631         not success.
19632         [HAVE_FUTIMENS]: Use the same work-around, here.
19633
19634 2008-06-09  Jim Meyering  <meyering@redhat.com>
19635
19636         add more guards around definition of ACE_-related code
19637         * lib/file-has-acl.c (acl_ace_nontrivial): Define only if
19638         ALLOW and ACE_OWNER are also defined.
19639
19640 2008-06-08  Bruno Haible  <bruno@clisp.org>
19641
19642         * lib/acl-internal.h: Add me as co-author.
19643         * lib/file-has-acl.c: Likewise.
19644         * lib/set-mode-acl.c: Likewise.
19645         * lib/copy-acl.c: Likewise.
19646
19647 2008-06-08  Bruno Haible  <bruno@clisp.org>
19648
19649         Add support for AIX ACLs.
19650         * lib/acl-internal.h (acl_nontrivial): New declaration.
19651         * lib/file-has-acl.c (acl_nontrivial): New function.
19652         (file_has_acl): Add implementation using AIX 4 ACL API.
19653         * lib/set-mode-acl.c (qset_acl): Likewise.
19654         * lib/copy-acl.c (qcopy_acl): Likewise.
19655
19656 2008-06-08  Bruno Haible  <bruno@clisp.org>
19657
19658         Add support for HP-UX ACLs.
19659         * lib/acl-internal.h (acl_nontrivial): New declaration.
19660         * lib/file-has-acl.c (acl_nontrivial): New function.
19661         (file_has_acl): Add implementation using HP-UX 11 ACL API.
19662         * lib/set-mode-acl.c (qset_acl): Likewise.
19663         * lib/copy-acl.c (qcopy_acl): Likewise.
19664
19665 2008-06-08  Bruno Haible  <bruno@clisp.org>
19666
19667         Add support for Cygwin ACLs.
19668         * lib/acl-internal.h (MODE_INSIDE_ACL): New macro for Solaris-like API.
19669         * lib/set-mode-acl.c (qset_acl) [!MODE_INSIDE_ACL]: Don't optimize away
19670         the chmod_or_fchmod call.
19671         * lib/copy-acl.c (qcopy_acl) [!MODE_INSIDE_ACL]: Likewise.
19672
19673 2008-06-08  Bruno Haible  <bruno@clisp.org>
19674
19675         Fix bug with setuid modes in Solaris 10+ code.
19676         * lib/set-mode-acl.c (qset_acl): Call chmod_or_fchmod when acl_set
19677         succeeded, when the mode contains some special bits.
19678
19679 2008-06-08  Bruno Haible  <bruno@clisp.org>
19680
19681         Add support for Solaris 7..10 ACLs.
19682         * lib/acl-internal.h (acl_nontrivial, acl_ace_nontrivial): New
19683         declarations.
19684         * lib/file-has-acl.c (acl_nontrivial, acl_ace_nontrivial): New
19685         functions.
19686         (file_has_acl): Add implementation using Solaris 7..10 ACL API.
19687         * lib/set-mode-acl.c (qset_acl): Likewise.
19688         * lib/copy-acl.c (qcopy_acl): Likewise.
19689
19690 2008-06-08  Bruno Haible  <bruno@clisp.org>
19691
19692         * lib/acl-internal.h (acl_extended_nontrivial) [MacOS X]: New
19693         declaration.
19694         * lib/file-has-acl.c (acl_extended_nontrivial) [MacOS X]: New function.
19695         (acl_access_nontrivial): Remove MacOS X case.
19696         (file_has_acl): Use acl_extended_nontrivial.
19697         * lib/copy-acl.c (qcopy_acl): Likewise.
19698
19699 2008-06-08  Bruno Haible  <bruno@clisp.org>
19700
19701         * lib/set-mode-acl.c (qset_acl): Trivial code simplifications.
19702
19703 2008-06-08  Jim Meyering  <meyering@redhat.com>
19704
19705         * modules/acl (Maintainer): Add Bruno Haible.
19706
19707 2008-06-07  Bruno Haible  <bruno@clisp.org>
19708
19709         Improve support for Tru64 ACLs.
19710         * lib/file-has-acl.c (file_has_acl): Don't test the ACL_TYPE_DEFAULT
19711         ACL on OSF/1.
19712
19713 2008-06-07  Bruno Haible  <bruno@clisp.org>
19714
19715         Add support for MacOS X ACLs.
19716         * lib/file-has-acl.c (file_has_acl): Use ACL_TYPE_EXTENDED instead of
19717         ACL_TYPE_ACCESS and ACL_TYPE_DEFAULT.
19718         * lib/set-mode-acl.c (qset_acl): Likewise.
19719         * lib/copy-acl.c (qcopy_acl): Likewise.
19720
19721 2008-06-07  Bruno Haible  <bruno@clisp.org>
19722
19723         Fix memory leak introduced on 2008-05-22.
19724         * lib/set-mode-acl.c (qset_acl) [!MODE_INSIDE_ACL]: Free ACLs after
19725         use.
19726
19727 2008-06-07  Bruno Haible  <bruno@clisp.org>
19728
19729         * lib/set-mode-acl.c (qset_acl): Use acl_init(), not acl_from_text(),
19730         to construct an empty ACL.
19731
19732 2008-06-07  Bruno Haible  <bruno@clisp.org>
19733
19734         * lib/set-mode-acl.c (chmod_or_fchmod): Document return value
19735         precisely.
19736         * lib/copy-acl.c (qcopy_acl): Trivial code simplifications.
19737
19738 2008-06-07  Bruno Haible  <bruno@clisp.org>
19739
19740         * lib/copy-acl.c (qcopy_acl): Make the #if branches independent.
19741         * lib/set-mode-acl.c (qset_acl): Choose better local variable names.
19742
19743 2008-06-07  Bruno Haible  <bruno@clisp.org>
19744
19745         * doc/posix-functions/_setjmp.texi: Explain the use of this function
19746         regardless of POSIX.
19747         * doc/posix-functions/_longjmp.texi: Likewise.
19748         * doc/posix-functions/setjmp.texi: Mention HP-UX as not counting as a
19749         SystemV platform in this case.
19750
19751 2008-06-06  Eric Blake  <ebb9@byu.net>
19752
19753         Document abort() bugs.
19754         * doc/posix-functions/abort.texi (abort): Mention anomalies.
19755
19756         * doc/posix-functions/setjmp.texi (setjmp): Mingw has setjmp.
19757         * doc/posix-functions/sigsetjmp.texi (sigsetjmp): Cygwin has
19758         sigsetjmp.
19759         * doc/posix-functions/siglongjmp.texi (siglongjmp): Cygwin has
19760         siglongjmp, but only as a macro.
19761         * doc/posix-functions/_longjmp.texi (_longjmp): Mention that this
19762         is obsolete.
19763         * doc/posix-functions/_setjmp.texi (_setjmp): Likewise.
19764
19765         Tweak documentation to cover cygwin argz bugs.
19766         * m4/argz.m4 (gl_FUNC_ARGZ): Mention date of last known cygwin
19767         argz bug fix; no code change needed since no cygwin releases
19768         occurred between the last fix and the bug being tested.
19769         * doc/glibc-functions/argz_add.texi (argz_add): Document the argz
19770         module and recently fixed cygwin bugs.
19771         * doc/glibc-functions/argz_add_sep.texi (argz_add_sep): Likewise.
19772         * doc/glibc-functions/argz_append.texi (argz_append): Likewise.
19773         * doc/glibc-functions/argz_count.texi (argz_count): Likewise.
19774         * doc/glibc-functions/argz_create.texi (argz_create): Likewise.
19775         * doc/glibc-functions/argz_create_sep.texi (argz_create_sep):
19776         Likewise.
19777         * doc/glibc-functions/argz_delete.texi (argz_delete): Likewise.
19778         * doc/glibc-functions/argz_extract.texi (argz_extract): Likewise.
19779         * doc/glibc-functions/argz_insert.texi (argz_insert): Likewise.
19780         * doc/glibc-functions/argz_next.texi (argz_next): Likewise.
19781         * doc/glibc-functions/argz_replace.texi (argz_replace): Likewise.
19782         * doc/glibc-functions/argz_stringify.texi (argz_stringify):
19783         Likewise.
19784
19785         Avoid gcc warning on cygwin.
19786         * lib/copy-acl.c (qcopy_acl) [!HAVE_ACL_GET_FILE &&
19787         !ACL_NO_TRIVIAL]: Avoid unused variable.
19788
19789 2008-06-05  Eric Blake  <ebb9@byu.net>
19790
19791         Be tolerant of UNKNOWN version in gnulib-tool test dir.
19792         * top/GNUmakefile (_dummy): Warn rather than reconfigure if
19793         git-version-gen fails to come up with a version.
19794         Reported by Simon Josefsson.
19795
19796 2008-06-05  Jim Meyering  <meyering@redhat.com>
19797             Paul Eggert  <eggert@cs.ucla.edu>
19798
19799         utimens.c: work around a probable Linux kernel bug
19800         * lib/utimens.c (gl_futimens) [HAVE_UTIMENSAT]: Work around what
19801         appears to be a kernel bug that causes utimensat to return 280
19802         instead of 0, indicating success.
19803
19804 2008-06-04  Bruno Haible  <bruno@clisp.org>
19805
19806         * lib/copy-acl.c (qcopy_acl): Call qset_acl, not set_acl. Fixes
19807         2008-06-01 commit.
19808
19809 2008-06-04  Bruno Haible  <bruno@clisp.org>
19810
19811         * lib/acl-internal.h (acl_access_nontrivial): New declaration.
19812         * lib/file-has-acl.c (acl_access_nontrivial): New function.
19813         (file_has_acl): Use it. Save errno afterwards.
19814         * lib/copy-acl.c (qcopy_acl): Use acl_access_nontrivial.
19815
19816 2008-06-03  Bruno Haible  <bruno@clisp.org>
19817
19818         * lib/file-has-acl.c (file_has_acl): Put Solaris 10 code after POSIX-
19819         draft code. Simplify #ifs.
19820         * lib/set-mode-acl.c (qset_acl): Don't test for symlink if !USE_ACL.
19821         Put Solaris code after POSIX-draft code. Fix comments regarding
19822         Solaris 10, HP-UX. Mention Cygwin.
19823         * lib/copy-acl.c (qcopy_acl): Simplify #ifs.
19824
19825 2008-06-03  Eric Blake  <ebb9@byu.net>
19826
19827         Provide fallback for older kernels.
19828         * lib/utimens.c (gl_futimens) [HAVE_UTIMENSAT, HAVE_FUTIMENS]:
19829         Provide runtime fallback if kernel lacks support.
19830         Reported by Mike Frysinger.
19831
19832 2008-06-02  Bruno Haible  <bruno@clisp.org>
19833
19834         * lib/acl-internal.h (ACL_NOT_WELL_SUPPORTED): Include EOPNOTSUPP if
19835         it exists.
19836
19837 2008-06-02  Bruno Haible  <bruno@clisp.org>
19838
19839         * lib/acl_entries.c (acl_entries): Rewrite to use acl_get_entry.
19840         * lib/copy-acl.c (qcopy_acl): Update comment.
19841
19842 2008-06-02  Bruno Haible  <bruno@clisp.org>
19843
19844         * lib/acl-entries.h: Enclose most definitions in #ifs for POSIX-draft
19845         like ACL APIs.
19846
19847 2008-06-02  Bruno Haible  <bruno@clisp.org>
19848
19849         * tests/test-file-has-acl.sh: Use different code for Cygwin.
19850         * tests/test-set-mode-acl.sh: Likewise.
19851         * tests/test-copy-acl.sh: Likewise.
19852         * tests/test-copy-file.sh: Likewise.
19853
19854 2008-06-02  Bruno Haible  <bruno@clisp.org>
19855
19856         * tests/test-file-has-acl.sh: Remove unused code.
19857
19858 2008-06-01  Bruno Haible  <bruno@clisp.org>
19859
19860         * lib/copy-acl.c (qcopy_acl): New function, extracted from copy_acl.
19861         (copy_acl): Just a wrapper around qcopy_acl that emits the error
19862         messages.
19863         * lib/set-mode-acl.c (qset_acl): Document return value precisely.
19864
19865 2008-06-01  Bruno Haible  <bruno@clisp.org>
19866
19867         * m4/acl.m4 (gl_FUNC_ACL): Separate the POSIX-like and the Solaris
19868         tests. Test for libpacl, needed for OSF/1. Test for extended ACLs,
19869         needed for MacOS X. Test for HP-UX API. Test for newer and older AIX
19870         APIs.
19871         * modules/acl-tests (configure.ac): Remove tests now contained in
19872         m4/acl.m4.
19873
19874 2008-06-02  Jim Meyering  <meyering@redhat.com>
19875
19876         announce-gen: use a better key-server host name
19877         * build-aux/announce-gen (main): Recommend keys.gnupg.net, since
19878         it may be more consistently reliable.  Suggested by Werner Koch
19879         in <http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/13717>.
19880
19881 2008-06-01  Bruno Haible  <bruno@clisp.org>
19882
19883         * lib/stdio-impl.h (fp_ub): Use fp_. Needed for DragonFly BSD.
19884         Reported by Voroskoi Andras <voroskoi@gmail.com>.
19885
19886 2008-06-01  Voroskoi Andras  <voroskoi@gmail.com>  (tiny change)
19887
19888         * lib/stdio-impl.h [__DragonFly__]: Fix typo.
19889
19890 2008-06-01  Bruno Haible  <bruno@clisp.org>
19891
19892         New ACL tests.
19893         * tests/test-file-has-acl.sh: New file.
19894         * tests/test-file-has-acl.c: New file.
19895         * tests/test-set-mode-acl.sh: New file.
19896         * tests/test-set-mode-acl.c: New file.
19897         * tests/test-copy-acl.sh: New file, based on tests/test-copy-file.sh.
19898         * tests/test-copy-acl.c: New file.
19899         * modules/acl-tests: New file, based on modules/copy-file-tests.
19900         * modules/copy-file-tests (Files): Remove tests/test-sameacls.c.
19901         (Depends-on): Add acl-tests.
19902         (configure.ac): Remove checks.
19903         (Makefile.am): Don't create test-sameacls program here any more.
19904
19905 2008-06-01  Bruno Haible  <bruno@clisp.org>
19906
19907         * tests/test-copy-file.sh: Portability fixes for Solaris, HP-UX, IRIX.
19908         * tests/test-sameacls.c: Include progname.h.
19909         (main): Invoke set_program_name. Portability fixes for MacOS X,
19910         Solaris, HP-UX.
19911
19912 2008-06-01  Bruno Haible  <bruno@clisp.org>
19913
19914         * lib/freadahead.c (freadahead) [__DragonFly__]: Use the __sreadahead
19915         function.
19916         Reported by VOROSKOI Andras <voroskoi@gmail.com>.
19917
19918 2008-06-01  Bruno Haible  <bruno@clisp.org>
19919
19920         * modules/rpmatch (Depends-on): Add strdup.
19921
19922 2008-06-01  Bruno Haible  <bruno@clisp.org>
19923
19924         * lib/pipe.c: Include unistd-safer.h.
19925         (create_pipe): Ensure the returned file descriptors are not in {0,1,2}.
19926         * modules/pipe (Depends-on): Add unistd-safer.
19927
19928 2008-05-30  Simon Josefsson  <simon@josefsson.org>
19929
19930         * modules/autobuild (configure.ac): Call AB_INIT.
19931
19932 2008-05-30  Simon Josefsson  <simon@josefsson.org>
19933
19934         * tests/test-getaddrinfo.c: Don't print debug messages by default.
19935         Suggested by Bruno Haible <bruno@clisp.org>.
19936
19937 2008-05-30  Simon Josefsson  <simon@josefsson.org>
19938
19939         * tests/test-base64.c: Cast size_t to unsigned long when invoking
19940         printf.  Use %lu instead of %d.  Reported by Bruno Haible
19941         <bruno@clisp.org>.
19942
19943 2008-05-29  Eric Blake  <ebb9@byu.net>
19944
19945         Prefer new POSIX 200x interfaces over futimesat.
19946         * m4/utimens.m4 (gl_UTIMENS): Check for futimens, utimensat.
19947         * lib/utimens.c (gl_futimens): Use them for nanosecond resolution
19948         when available.
19949         [HAVE_BUGGY_NFS_TIME_STAMPS]: Allow C89 compilation.
19950
19951 2008-05-28  Bruno Haible  <bruno@clisp.org>
19952
19953         * modules/stpcpy (License): Change to LGPLv2+.
19954         Requested by David Lutterkort <dlutter@redhat.com>.
19955
19956 2008-05-27  Bruno Haible  <bruno@clisp.org>
19957
19958         * lib/localename.c (SUBLANG_TIBETAN_BHUTAN): Force value 2. Needed for
19959         current mingw.
19960         Reported by Jose E. Marchesi <jemarch@gnu.org>.
19961
19962 2008-05-27  Bruno Haible  <bruno@clisp.org>
19963
19964         * modules/iconv_open (Link): New section, from module 'iconv'.
19965         * modules/striconv (Link): Likewise.
19966         * modules/striconveh (Link): Likewise.
19967         * modules/xstriconv (Link): Likewise.
19968         * modules/unicodeio (Link): Likewise.
19969         * modules/propername (Link): Likewise.
19970         Reported by Jim Meyering.
19971
19972 2008-05-26  Jim Meyering  <meyering@redhat.com>
19973
19974         sha256: do not artificially restrict buffer length to be < 2^32
19975         * lib/sha256.h (struct sha256_ctx) [buflen]: Change type from
19976         uint32_t to size_t.
19977         * lib/sha256.c (sha256_conclude_ctx): Change type of a local
19978         to match.
19979
19980         avoid unaligned access errors, e.g., on sparc
19981         * lib/sha512.c (sha512_conclude_ctx): Use set_uint64 rather than
19982         direct access through a possibly-unaligned uint64* pointer.
19983         * lib/sha256.c (sha256_conclude_ctx): Use set_uint32 rather than
19984         direct access through a possibly-unaligned uint32* pointer.
19985         Prompted by this patch from Tom "spot" Callaway:
19986         http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/13638
19987
19988         sha512.c: fix typo in comment
19989         * lib/sha512.c (sha512_conclude_ctx): Length is 128-bit, not 64-bit.
19990
19991 2008-05-25  Bruno Haible  <bruno@clisp.org>
19992
19993         * lib/set-mode-acl.c: Renamed from lib/acl.c.
19994         * modules/acl (Files): Add lib/set-mode-acl.c, remove lib/acl.c.
19995         (Makefile.am): Update lib_SOURCES.
19996
19997 2008-05-25  Bruno Haible  <bruno@clisp.org>
19998
19999         * m4/acl.m4 (gl_FUNC_ACL): Don't set LIB_ACL_TRIVIAL.
20000
20001 2008-05-25  Jim Meyering  <meyering@redhat.com>
20002
20003         useless-if-before-free: freed expr may have white-space differences
20004         * build-aux/useless-if-before-free: Recognize cases in which the
20005         freed expression differs from the tested one in embedded white
20006         space, e.g., if (p[i + 1]) free(p[i+1]).  Correct thinko in prev:
20007         $1 was used, so we can't make any regexp shy.  Improved tests now
20008         detect this.
20009
20010         useless-if-before-free: accept white space in the expression.
20011         * build-aux/useless-if-before-free: For now, any white space
20012         in the expression must be identical in the free argument.
20013
20014         useless-if-before-free: efficiency tweak
20015         * build-aux/useless-if-before-free: Make the expression-matching
20016         regexp "shy".
20017         Make the *outer* regexp shy, not the expr-matching one.
20018
20019         update code-in-comment to accept cast of free arg
20020         * build-aux/useless-if-before-free: Update regexp.
20021
20022 2008-05-25  Bruno Haible  <bruno@clisp.org>
20023
20024         * tests/test-sameacls.c: Renamed from tests/test-copy-file-sameacls.c.
20025         * modules/copy-file-tests (Files, Makefile.am): Update.
20026         * tests/test-copy-file.c (func_test_copy): Update.
20027
20028 2008-05-24  Andreas Färber  <andreas.faerber@web.de>  (tiny change)
20029
20030         * lib/stdbool.in.h [__HAIKU__]: Disable __BEOS__ workarounds.
20031
20032 2008-05-23  Bruno Haible  <bruno@clisp.org>
20033
20034         Improve support for ACLs on OSF/1.
20035         * lib/acl.c (qset_acl): For OSF/1, use a string that ends in a comma.
20036         Remove fallback for unknown flavors of ACLs.
20037
20038 2008-05-22  Bruno Haible  <bruno@clisp.org>
20039
20040         Add support for ACLs on OSF/1.
20041         * lib/acl-internal.h (acl_get_fd, acl_set_fd): New inline function
20042         replacements.
20043         (acl_free_text): New macro fallback.
20044         * lib/acl_entries.c (acl_entries): Use acl_free_text instead of
20045         acl_free.
20046         * m4/acl.m4 (gl_FUNC_ACL): Look also in libpacl library. Test for
20047         acl_free_text function. Require AC_C_INLINE.
20048
20049 2008-05-22  Bruno Haible  <bruno@clisp.org>
20050
20051         Make copy_acl work on MacOS X 10.5.
20052         * lib/acl-internal.h (MODE_INSIDE_ACL): New macro.
20053         (ACL_NOT_WELL_SUPPORTED): On MacOS X, also handle ENOENT.
20054         * lib/acl.c (qset_acl): Add different code branch for !MODE_INSIDE_ACL.
20055         If MODE_INSIDE_ACL, don't assume that every system has the same text
20056         representation for ACLs as FreeBSD.
20057         * lib/copy-acl.c (copy_acl): Add support for platforms with
20058         !MODE_INSIDE_ACL.
20059         * lib/file-has-acl.c (file_has_acl): Likewise.
20060         * m4/acl.m4 (gl_FUNC_ACL): Test for some functions that are witness of
20061         FreeBSD, MacOS X, or IRIX, respectively.
20062
20063 2008-05-22  Bruno Haible  <bruno@clisp.org>
20064
20065         * lib/acl.h: Don't include <sys/acl.h>.
20066         (GETACLCNT): Move fallback to lib/acl-internal.h.
20067         * lib/acl-internal.h: Include <sys/acl.h> here.
20068         (GETACLCNT): New macro fallback, moved here from lib/acl.h.
20069
20070 2008-05-22  Bruno Haible  <bruno@clisp.org>
20071
20072         Split off copy_acl function to separate file.
20073         * lib/copy-acl.c: New file, extracted from lib/acl.c.
20074         * lib/acl.c (copy_acl): Moved function to separate file.
20075         * m4/acl.m4 (gl_FUNC_ACL): Remove unconditional AC_LIBOBJs.
20076         * modules/acl (Files): Add lib/copy-acl.c.
20077         (Makefiles.am): Augment lib_SOURCES.
20078
20079 2008-05-22  Bruno Haible  <bruno@clisp.org>
20080
20081         * modules/copy-file-tests: New file.
20082         * tests/test-copy-file.sh: New file.
20083         * tests/test-copy-file.c: New file.
20084         * tests/test-copy-file-sameacls.c: New file.
20085
20086 2008-05-22  Eric Blake  <ebb9@byu.net>
20087
20088         Avoid gcc warning.
20089         * tests/test-memcmp.c (main): Pass NULL indirectly.
20090
20091 2008-05-21  Bruno Haible  <bruno@clisp.org>
20092
20093         Add reference doc about ACLs.
20094         * doc/acl-resources.txt: New file.
20095         * doc/acl-cygwin.txt: New file.
20096
20097 2008-05-21  Bruno Haible  <bruno@clisp.org>
20098
20099         Avoid one more warning from gcc.
20100         * lib/vasnprintf.c (IF_LINT): Update comments.
20101         (VASNPRINTF): Use it also for the 'prefix' array initializer.
20102
20103 2008-05-21  Jim Meyering  <meyering@redhat.com>
20104
20105         avoid a warning from gcc
20106         * lib/vasnprintf.c (IF_LINT): Define.
20107         (scale10_round_decimal_long_double):
20108         Use it to avoid a "may be used uninitialized" warning.
20109         (scale10_round_decimal_double): Likewise.
20110
20111 2008-05-21  Simon Josefsson  <simon@josefsson.org>
20112
20113         * m4/memcmp.m4: When cross-compiling, assume memcmp works if it is
20114         declared.
20115
20116 2008-05-20  Bruno Haible  <bruno@clisp.org>
20117
20118         * tests/test-memcmp.c (main): Test also the sign of the result. Test
20119         against two known bugs; code taken from autoconf's AC_FUNC_MEMCMP.
20120
20121 2008-05-20  Simon Josefsson  <simon@josefsson.org>
20122
20123         * modules/memcmp-tests: New file.
20124         * tests/test-memcmp.c: New file.
20125
20126 2008-05-19  Bruno Haible  <bruno@clisp.org>
20127
20128         * modules/propername (Notice, configure.ac): Put quoted "..." into
20129         --keyword option.
20130         * lib/propername.h: Update comments accordingly.
20131         Reported by Eric Blake.
20132
20133 2008-05-19  Martin Lambers  <marlam@marlam.de>  (tiny change)
20134
20135         * modules/getpass-gnu (Depends-on): Add fseeko.
20136
20137 2008-05-19  Simon Josefsson  <simon@josefsson.org>
20138
20139         * modules/base64-tests: New file.
20140
20141 2008-05-19  Bo Borgerson <gigabo@gmail.com>
20142
20143         * lib/base64.c (base64_decode_ctx): If a decode context structure
20144         was passed in use it to ignore newlines.  If a context structure
20145         was _not_ passed in, continue to treat newlines as garbage (this
20146         is the historical behavior).  Formerly base64_decode.
20147         (base64_decode_alloc_ctx): Formerly base64_decode_alloc.  Now
20148         takes a decode context structure.
20149         * lib/base64.h (base64_decode): Macro for four-argument calls.
20150         (base64_decode_alloc): Likewise.
20151         * lib/base64.c (base64_decode_ctx): If a decode context structure
20152         was passed in use it to ignore newlines.  If a context structure
20153         was _not_ passed in, continue to treat newlines as garbage (this
20154         is the historical behavior).  Formerly base64_decode.
20155         (base64_decode_alloc_ctx): Formerly base64_decode_alloc.  Now
20156         takes a decode context structure.
20157         * lib/base64.h (base64_decode): Macro for four-argument calls.
20158         (base64_decode_alloc): Likewise.
20159
20160 2008-05-19  Jim Meyering  <meyering@redhat.com>
20161
20162         avoid a warning from gcc
20163         * lib/trim.c (IF_LINT): Define.
20164         (trim2): Use it to avoid a "may be used uninitialized" warning.
20165
20166         Fix doc typo.
20167         * doc/glibc-functions/getpass.texi (getpass): s/PATH_MAX/PASS_MAX/.
20168
20169 2008-05-19  Bruno Haible  <bruno@clisp.org>
20170
20171         * doc/glibc-functions/getpass.texi: Document limits of other
20172         implementations.
20173
20174 2008-05-19  Simon Josefsson  <simon@josefsson.org>
20175             Bruno Haible <bruno@clisp.org>
20176
20177         * doc/glibc-functions/getpass.texi: Document gnulib implementation.
20178
20179 2008-05-18  Bruno Haible  <bruno@clisp.org>
20180
20181         * modules/propername: New file, from GNU gettext.
20182         * lib/propername.h: New file, from GNU gettext.
20183         * lib/propername.c: New file, from GNU gettext.
20184         * MODULES.html.sh (Internationalization functions): Add propername.
20185
20186 2008-05-16  Jim Meyering  <meyering@redhat.com>
20187             Bruno Haible  <bruno@clisp.org>
20188
20189         Avoid some warnings from "gcc -Wshadow".
20190         * lib/vasnprintf.c (exp, remainder): Define to different identifiers.
20191
20192 2008-05-15  Eric Blake  <ebb9@byu.net>
20193
20194         Extend previous patch to cygwin 1.7.0.
20195         * m4/memmem.m4 (gl_FUNC_MEMMEM): When cross-compiling, assume a
20196         fast implementation in cygwin >= 1.7.0.
20197         * m4/strstr.m4 (gl_FUNC_STRSTR): Likewise.
20198         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
20199
20200 2008-05-15  Bruno Haible  <bruno@clisp.org>
20201
20202         * m4/memmem.m4 (gl_FUNC_MEMMEM): When cross-compiling, assume a fast
20203         implementation in glibc >= 2.9.
20204         * m4/strstr.m4 (gl_FUNC_STRSTR): Likewise.
20205         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
20206
20207 2008-05-15  Bruno Haible  <bruno@clisp.org>
20208
20209         * MODULES.html.sh (Internationalization functions): Remove linebreak.
20210         (Unicode string functions): Add unilbrk/*.
20211         Reported by Karl Berry.
20212
20213 2008-05-15  Eric Blake  <ebb9@byu.net>
20214
20215         Fix violation of <stdbool.h> replacement in regex.
20216         * lib/regcomp.c (re_compile_internal): Avoid implicit cast to bool.
20217         * lib/regexec.c (re_search_internal): Likewise.
20218         Reported by Heinrich Mislik <Heinrich.Mislik@univie.ac.at>.
20219
20220 2008-05-15  Jim Meyering  <meyering@redhat.com>
20221
20222         avoid distracting test output when git or cvs is not found
20223         * tests/test-vc-list-files-cvs.sh: Suppress 'init' error output.
20224         * tests/test-vc-list-files-git.sh: Likewise.
20225
20226 2008-05-15  Eric Blake  <ebb9@byu.net>
20227
20228         Glibc finally accepted the memmem speedup code, bugzilla #5514.
20229         * doc/glibc-functions/memmem.texi (memmem): Mention last broken
20230         glibc version.
20231         * doc/glibc-functions/strcasestr.texi (strcasestr): Likewise.
20232         * doc/posix-functions/strstr.texi (strstr): Likewise.
20233         * lib/str-two-way.h (MAX): Sychronize with glibc.
20234
20235 2008-05-15  Paolo Bonzini  <bonzini@gnu.org>
20236
20237         * lib/regcomp.c (optimize_utf8): Add a note on why we test
20238         opr.ctx_type.
20239         (calc_first): Initialize constraint field.
20240         (duplicate_node_closure): Use it instead of special casing ANCHORS.
20241         Fix grammar.
20242         (duplicate_node): Merge constraint field for all node types.
20243         (calc_eclosure_iter): Look at constraint field for all node types.
20244         * lib/regex_internal.c (create_cd_newstate): Don't look at
20245         opr.ctx_type.
20246
20247 2008-05-14  Bruno Haible  <bruno@clisp.org>
20248
20249         Help GCC to do better code generation.
20250         * lib/eealloc.h (eemalloc) [GCC >= 3]: Declare with attribute 'malloc'.
20251         * lib/pagealign_alloc.h (pagealign_alloc, pagealign_xalloc): Likewise.
20252         * lib/xalloc.h (ATTRIBUTE_MALLOC): New macro.
20253         (xmalloc, xzalloc, xcalloc, xmemdup, xstrdup, xnmalloc, xcharalloc):
20254         Declare with attribute 'malloc' if supported.
20255
20256 2008-05-14  Lasse Collin  <lasse.collin@tukaani.org>
20257
20258         use "echo STR|wc -c" rather than unportable "expr length STR"
20259         * build-aux/mktempd (mktempd): Vendor-supplied expr from at least
20260         OpenBSD 4.3 and Solaris 10 do not honor expr's "length" function.
20261
20262 2008-05-14  Jim Meyering  <meyering@redhat.com>
20263
20264         use dd ibs=$n count=1 ... rather than less-portable head -c$n
20265         * build-aux/mktempd (rand_bytes): head's -cN option is not accepted
20266         by Solaris 10's /bin/head or by the one from HP-UX 11.x.
20267         Reported in http://sourceforge.net/forum/message.php?msg_id=4960334
20268         via Collin Lasse.
20269
20270 2008-05-14  Eric Blake  <ebb9@byu.net>
20271
20272         Avoid quadratic growth in gl_LIBSOURCES.
20273         * gnulib-tool (func_emit_initmacro_done): s/\(m4_append\)_uniq/\1/.
20274         Suggested by Bruno Haible.
20275
20276         Test xmemdup0.
20277         * modules/xmemdup0-tests: New file.
20278         * tests/test-xmemdup0.c: Likewise.
20279
20280 2008-05-13  Eric Blake  <ebb9@byu.net>
20281
20282         Split xmemdup0 into its own module.
20283         * modules/xmemdup0: New file.
20284         * lib/xmemdup0.h: Likewise.
20285         * lib/xmemdup0.c: Likewise.
20286         * MODULES.html.sh (Memory management functions): Add xmemdup0.
20287         * lib/xalloc.h (xmemdup0): Remove.
20288         * lib/xmalloc.c (xmemdup0): Likewise.
20289
20290 2008-05-13  Eric Blake  <ebb9@byu.net>
20291             Bruno Haible  <bruno@clisp.org>
20292
20293         Reduce number of forks required during autoconf.
20294         * gnulib-tool (func_emit_initmacro_start): Prepare gl_LIBSOURCES_LIST
20295         and gl_LIBSOURCES_DIR.
20296         (func_emit_initmacro_end): Use them here in a single m4_syscmd...
20297         (func_emit_initmacro_done) <gl_LIBSOURCES>: ...rather than in one
20298         m4_syscmd per file.
20299         <m4_foreach_w>: Move...
20300         * m4/gnulib-common.m4 (m4_foreach_w): ...here.
20301
20302 2008-05-13  Eric Blake  <ebb9@byu.net>
20303
20304         * gnulib-tool: Fix various comment typos.
20305
20306 2008-05-12  Bruno Haible  <bruno@clisp.org>
20307
20308         Tailor the linebreaking algorithm.
20309         * lib/unilbrk/tables.c (unilbrk_table): Change (IS,AL) entry.
20310
20311 2008-05-12  Bruno Haible  <bruno@clisp.org>
20312
20313         Update to Unicode 5.0.0.
20314         * lib/unilbrk/tables.h (LBP_*): Add LBP_WJ, LBP_H2, LBP_H3, LBP_JL,
20315         LBP_JV, LBP_JT. Redistribute values.
20316         (unilbrk_table): Change size.
20317         * lib/unilbrk/tables.c (unilbrk_table): Change size. Update to match
20318         Unicode TR#14 rev. 22.
20319         * lib/unilbrk/gen-lbrk.c (LBP_*): Add LBP_WJ, LBP_H2, LBP_H3, LBP_JL,
20320         LBP_JV, LBP_JT. Redistribute values.
20321         (get_lbp): Update to match Unicode TR#14 rev. 21/22 and Unicode 5.0.0.
20322         (debug_output_lbp, fill_org_lbp, debug_output_org_lbp, output_lbp):
20323         Update.
20324         * lib/unilbrk/lbrkprop1.h: Regenerated.
20325         * lib/unilbrk/lbrkprop2.h: Regenerated.
20326         * lib/unilbrk/u8-possible-linebreaks.c (u8_possible_linebreaks):
20327         Change handling of LBP_CM after LBP_ZW. Update for new value of LBP_BK.
20328         * lib/unilbrk/u16-possible-linebreaks.c (u16_possible_linebreaks):
20329         Likewise.
20330         * lib/unilbrk/u32-possible-linebreaks.c (u32_possible_linebreaks):
20331         Likewise.
20332         * tests/unilbrk/test-u8-possible-linebreaks.c (main): Update expected
20333         result.
20334         * tests/unilbrk/test-u16-possible-linebreaks.c (main): Likewise.
20335         * tests/unilbrk/test-u32-possible-linebreaks.c (main): Likewise.
20336         * tests/unilbrk/test-ulc-possible-linebreaks.c (main): Likewise.
20337         * tests/unilbrk/test-u8-width-linebreaks.c (main): Likewise.
20338         * tests/unilbrk/test-u16-width-linebreaks.c (main): Likewise.
20339         * tests/unilbrk/test-u32-width-linebreaks.c (main): Likewise.
20340
20341 2008-05-11  Bruno Haible  <bruno@clisp.org>
20342
20343         * lib/unilbrk/gen-lbrk.c (output_lbp): Fix whitespace.
20344
20345 2008-05-11  Bruno Haible  <bruno@clisp.org>
20346
20347         * lib/unilbrk/gen-lbrk.c: New file, from GNU gettext (gen-lbrkprop.c).
20348         * modules/unilbrk/gen-lbrk: New file.
20349
20350 2008-05-11  Bruno Haible  <bruno@clisp.org>
20351
20352         * m4/sha256.m4 (gl_SHA256): Require AC_C_INLINE.
20353         * m4/sha512.m4 (gl_SHA512): Likewise.
20354
20355 2008-05-11  Jim Meyering  <meyering@redhat.com>
20356
20357         New modules: crypto/sha256, crypto/sha512 (from coreutils)
20358         * modules/crypto/sha256: New file.
20359         * modules/crypto/sha512: Likewise.
20360         * lib/sha256.c: Likewise.
20361         * lib/sha256.h: Likewise.
20362         * lib/sha512.c: Likewise.
20363         * lib/sha512.h: Likewise.
20364         * lib/u64.h: Likewise.
20365         * m4/sha256.m4: Likewise.
20366         * m4/sha512.m4: Likewise.
20367         * MODULES.html.sh (Cryptographic computations (low-level)): List them.
20368
20369 2008-05-10  Bruno Haible  <bruno@clisp.org>
20370
20371         * MODULES.html.sh (Environment variables <stdlib.h>): Add unsetenv.
20372         (Input/Output <stdio.h>): Add xprintf.
20373         (Signal handling <signal.h>): Add strsignal.
20374         (Cryptographic computations (high-level)): Add crypto/gc-camellia.
20375         (Core language properties): Add func.
20376         (Mathematics <math.h>): Add ceil, floor, frexp-nolibm.
20377         (Support for systems lacking POSIX:2001): Add environ, EOVERFLOW,
20378         strings.
20379         (Enhancements for POSIX:2001 functions): Add iconv_open-utf.
20380         (Input/output): New section.
20381         (File system functions): Add openat-die, stat-macros.
20382         (Networking functions): Add sockets.
20383         (Unicode string functions): Add unictype/*.
20384         (Support for building libraries and executables): Add gperf.
20385         (Support for building documentation): Add agpl-3.0.
20386         (Misc): Add nocrash.
20387
20388 2008-05-10  Bruno Haible  <bruno@clisp.org>
20389
20390         * modules/unictype/gen-ctype: New file.
20391
20392 2008-05-10  Jim Meyering  <meyering@redhat.com>
20393
20394         Make chdir-safer.c more efficient on a system with no symlinks.
20395         * lib/chdir-safer.c (chdir_no_follow): Skip lstat and fstat calls
20396         also if ELOOP is zero.  Suggested by Bruno Haible.
20397
20398         Make chdir-safer.c slightly safer.
20399         * lib/chdir-safer.c (chdir_no_follow): Test HAVE_WORKING_O_NOFOLLOW,
20400         not O_NOFOLLOW, in case the latter is nonzero and open ignores it.
20401
20402         Avoid compile failure on systems without ELOOP (like mingw).
20403         * lib/chdir-safer.c (ELOOP): Define if not already defined.
20404         Reported by Bruno Haible.
20405
20406 2008-05-10  Bruno Haible  <bruno@clisp.org>
20407
20408         * lib/unilbrk/ulc-common.c: Include c-strcaseeq.h instead of streq.h.
20409         (is_utf8_encoding): Use a case-insensitive comparison.
20410         * modules/unilbrk/ulc-common (Depends-on): Add c-strcaseeq. Remove
20411         streq.
20412
20413 2008-05-10  Bruno Haible  <bruno@clisp.org>
20414
20415         * lib/unilbrk/ulc-common.c: Don't include <stdlib.h>.
20416         (iconv_string_length, iconv_string_keeping_offsets): Remove functions.
20417         * lib/unilbrk/ulc-common.h (iconv_string_length,
20418         iconv_string_keeping_offsets): Remove declarations.
20419         * lib/unilbrk/ulc-possible-linebreaks.c: Include <string.h>, uniconv.h.
20420         Don't include <iconv.h>, streq.h, xsize.h.
20421         (ulc_possible_linebreaks): Use u8_conv_from_encoding for doing the
20422         conversion.
20423         * lib/unilbrk/ulc-width-linebreaks.c: Include uniconv.h. Don't include
20424         <iconv.h>, streq.h, xsize.h.
20425         (ulc_width_linebreaks): Use u8_conv_from_encoding for doing the
20426         conversion.
20427         * modules/unilbrk/ulc-common (Depends-on): Remove iconv.
20428         * modules/unilbrk/ulc-possible-linebreaks (Depends-on): Add
20429         uniconv/u8-conv-from-enc. Remove iconv_open, streq, xsize.
20430         * modules/unilbrk/ulc-width-linebreaks (Depends-on): Likewise.
20431
20432 2008-05-10  Bruno Haible  <bruno@clisp.org>
20433
20434         * modules/unilbrk/ulc-width-linebreaks-tests: New file.
20435         * tests/unilbrk/test-ulc-width-linebreaks.c: New file.
20436
20437         * modules/unilbrk/u32-width-linebreaks-tests: New file.
20438         * tests/unilbrk/test-u32-width-linebreaks.c: New file.
20439
20440         * modules/unilbrk/u16-width-linebreaks-tests: New file.
20441         * tests/unilbrk/test-u16-width-linebreaks.c: New file.
20442
20443         * modules/unilbrk/u8-width-linebreaks-tests: New file.
20444         * tests/unilbrk/test-u8-width-linebreaks.c: New file.
20445
20446         * modules/unilbrk/ulc-possible-linebreaks-tests: New file.
20447         * tests/unilbrk/test-ulc-possible-linebreaks.c: New file.
20448
20449         * modules/unilbrk/u32-possible-linebreaks-tests: New file.
20450         * tests/unilbrk/test-u32-possible-linebreaks.c: New file.
20451
20452         * modules/unilbrk/u16-possible-linebreaks-tests: New file.
20453         * tests/unilbrk/test-u16-possible-linebreaks.c: New file.
20454
20455         * modules/unilbrk/u8-possible-linebreaks-tests: New file.
20456         * tests/unilbrk/test-u8-possible-linebreaks.c: New file.
20457
20458 2008-05-10  Bruno Haible  <bruno@clisp.org>
20459
20460         Split up 'linebreak' module.
20461         * lib/unilbrk.h: New file, based on lib/linebreak.h.
20462         * lib/unilbrk/lbrkprop1.h: New file, extracted from lib/lbrkprop.h.
20463         * lib/unilbrk/lbrkprop2.h: New file, renamed from lib/lbrkprop.h with
20464         modifications.
20465         * lib/unilbrk/tables.h: New file, extracted from lib/linebreak.c.
20466         * lib/unilbrk/tables.c: New file, extracted from lib/linebreak.c.
20467         * lib/unilbrk/u8-possible-linebreaks.c: New file, extracted from
20468         lib/linebreak.c.
20469         * lib/unilbrk/u16-possible-linebreaks.c: New file, extracted from
20470         lib/linebreak.c.
20471         * lib/unilbrk/u32-possible-linebreaks.c: New file, extracted from
20472         lib/linebreak.c.
20473         * lib/unilbrk/ulc-common.h: New file, extracted from lib/linebreak.c.
20474         * lib/unilbrk/ulc-common.c: New file, extracted from lib/linebreak.c.
20475         * lib/unilbrk/ulc-possible-linebreaks.c: New file, extracted from
20476         lib/linebreak.c.
20477         * lib/unilbrk/u8-width-linebreaks.c: New file, extracted from
20478         lib/linebreak.c.
20479         * lib/unilbrk/u16-width-linebreaks.c: New file, extracted from
20480         lib/linebreak.c.
20481         * lib/unilbrk/u32-width-linebreaks.c: New file, extracted from
20482         lib/linebreak.c.
20483         * lib/unilbrk/ulc-width-linebreaks.c: New file, extracted from
20484         lib/linebreak.c.
20485         * modules/unilbrk/base: New file.
20486         * modules/unilbrk/tables: New file.
20487         * modules/unilbrk/u8-possible-linebreaks: New file.
20488         * modules/unilbrk/u16-possible-linebreaks: New file.
20489         * modules/unilbrk/u32-possible-linebreaks: New file.
20490         * modules/unilbrk/ulc-common: New file.
20491         * modules/unilbrk/ulc-possible-linebreaks: New file.
20492         * modules/unilbrk/u8-width-linebreaks: New file.
20493         * modules/unilbrk/u16-width-linebreaks: New file.
20494         * modules/unilbrk/u32-width-linebreaks: New file.
20495         * modules/unilbrk/ulc-width-linebreaks: New file.
20496         * lib/linebreak.h: Remove file.
20497         * lib/linebreak.c: Remove file.
20498         * m4/linebreak.m4: Remove file.
20499         * modules/linebreak: Remove file.
20500         * NEWS: Mention the changes.
20501
20502 2008-05-09  Eric Blake  <ebb9@byu.net>
20503
20504         Add xmemdup0.
20505         * lib/xalloc.h (xmemdup0): New prototype and C++ typesafe
20506         implementation.
20507         * lib/xmalloc.c (xmemdup0): New C implementation.
20508
20509 2008-05-08  Bruno Haible  <bruno@clisp.org>
20510
20511         * m4/wctype.m4 (gl_WCTYPE_H): Correct indentation.
20512
20513 2008-05-07  Eric Blake  <ebb9@byu.net>
20514
20515         Support cross-compilation of <wctype.h>.
20516         * m4/wctype.m4 (gl_WCTYPE_H): Fix improper nesting in
20517         AC_CACHE_CHECK.
20518
20519 2008-05-06  Soren Hansen  <soren@ubuntu.com>  (tiny change)
20520
20521         * build-aux/vc-list-files: Add support for bzr.
20522
20523 2008-05-03  Jim Meyering  <meyering@redhat.com>
20524
20525         avoid failed assertion with tight malloc
20526         * tests/test-getndelim2.c: Correct an off-by-one assertion.
20527
20528 2008-05-03  Simon Josefsson  <simon@josefsson.org>
20529
20530         * m4/inet_pton.m4: Set HAVE_DECL_INET_PTON to 0 when declarations
20531         are needed from arpa/inet.h.
20532         * m4/inet_ntop.m4: Likewise, for HAVE_DECL_INET_NTOP.
20533         Reported by Bruno Haible.
20534
20535 2008-05-02  Jim Meyering  <meyering@redhat.com>
20536
20537         avoid compilation error on FreeBSD 6
20538         * tests/test-getaddrinfo.c [!defined EAI_NODATA] (EAI_NODATA): Define.
20539
20540 2008-05-01  Jim Meyering  <meyering@redhat.com>
20541
20542         useless-if-before-free: correct --help's exit status description
20543         * build-aux/useless-if-before-free (usage): Like grep, exit 0
20544         for one or more matches, etc.  Reported by Bruno Haible.
20545
20546         vc-list-files: make the stand-alone gnulib test work
20547         * modules/vc-list-files-tests (configure.ac):
20548         Define and AC_SUBST abs_aux_dir.
20549         (Makefile.am) [TESTS_ENVIRONMENT]: Rather than passing
20550         $(abs_top_srcdir) to each script and having each of them
20551         duplicate the work of setting PATH, set PATH here, using
20552         the new variable, abs_aux_dir instead.
20553         * tests/test-vc-list-files-cvs.sh: Don't set PATH here.
20554         * tests/test-vc-list-files-git.sh: Likewise.
20555         Reported by Bruno Haible.
20556
20557 2008-05-01  Bruno Haible  <bruno@clisp.org>
20558
20559         * lib/getndelim2.c (getndelim2): Fix newsize computation during
20560         reallocation. Rename 'done' to 'found_delimiter'.
20561
20562 2008-05-01  Jim Meyering  <meyering@redhat.com>
20563
20564         vc-list-files: accommodate /bin/sh like the one from Solaris 10
20565         * build-aux/vc-list-files: Use `...`, not $(...).
20566
20567 2008-04-30  Jim Meyering  <meyering@redhat.com>
20568
20569         add tests for vc-list-files
20570         * modules/vc-list-files-tests: New module.
20571         * tests/test-vc-list-files-cvs.sh: New file.
20572         * tests/test-vc-list-files-git.sh: New file.
20573
20574         avoid a warning from gcc
20575         * lib/getndelim2.c (IF_LINT): Define.
20576         (getndelim2): Use it to avoid a "may be used uninitialized" warning.
20577
20578         vc-list-files: work properly with build-aux/cvsu, too
20579         * build-aux/vc-list-files: Hoist the "./"-removing code to apply
20580         to all cvs-based clauses.
20581
20582         vc-list-files: work properly in the CVS+awk case, too
20583         * build-aux/vc-list-files: In the CVS+awk case, remove "./" prefix.
20584
20585         vc-list-files: avoid use of ${*-*} that fails when /bin/sh is dash
20586         * build-aux/vc-list-files: Simplify ${*-*} to $dir, since we no longer
20587         take more than one file argument, so .  Add quotes, just in case $dir
20588         ever contains a shell meta-character.  Prompted by Soren Hansen in
20589         <http://thread.gmane.org/gmane.comp.emulators.libvirt/6221/focus=6240>.
20590
20591 2008-04-29  Eric Blake  <ebb9@byu.net>
20592
20593         Optimize getndelim2 to use block operations when possible.
20594         * modules/getndelim2 (Depends-on): Add stdbool, freadptr,
20595         freadseek, and memchr2.
20596         * lib/getndelim2.c (getndelim2): Use them for block reads.
20597
20598 2008-04-29  Bruno Haible  <bruno@clisp.org>
20599
20600         * m4/inet_ntop.m4 (gl_INET_NTOP): Require gl_USE_SYSTEM_EXTENSIONS.
20601         * m4/inet_pton.m4 (gl_INET_PTON): Likewise.
20602         * modules/inet_ntop (Depends-on): Add extensions.
20603         * modules/inet_pton (Depends-on): Likewise.
20604         Reported by Simon Josefsson.
20605
20606 2008-04-29  Jim Meyering  <meyering@redhat.com>
20607
20608         When the is more than one match in a block, match all of them.
20609         * build-aux/useless-if-before-free: Iterate through each block
20610         until there are no more matches.
20611
20612         Fix broken useless-if-before-free script.
20613         * build-aux/useless-if-before-free: Fix typo: missing "?" after
20614         the expression to match cast of argument to free-like function.
20615
20616 2008-04-29  Eric Blake  <ebb9@byu.net>
20617
20618         Use new header.
20619         * lib/getaddrinfo.c (includes): s/"inet_ntop.h"/<arpa/inet.h>/.
20620
20621 2008-04-29  Jim Meyering  <meyering@redhat.com>
20622
20623         Avoid test segfault on x86_64 due to lack of inet_ntop declaration.
20624         * tests/test-getaddrinfo.c: Include <arpa/inet.h>, now guaranteed
20625         by gnulib to exist and to declare e.g., inet_ntop.
20626         Don't include "inet_ntop.h", now removed.
20627
20628         * m4/arpa_inet_h.m4: Remove trailing blanks.
20629
20630 2008-04-29  Eric Blake  <ebb9@byu.net>
20631
20632         Silence valgrind on safe reads beyond potential array bounds.
20633         * lib/rawmemchr.valgrind: New file.
20634         * lib/strchrnul.valgrind: Likewise.
20635         * modules/rawmemchr (Files): Distribute new file.
20636         * modules/strchrnul (Files): Likewise.
20637         Suggested by Bruno Haible.
20638
20639 2008-04-29  Bruno Haible  <bruno@clisp.org>
20640
20641         * lib/arpa_inet.in.h: Include system's <arpa/inet.h> if it exists.
20642         (inet_ntop, inet_pton): Change portability warning's wording.
20643         * m4/arpa_inet_h.m4 (gl_HEADER_ARPA_INET): Set HAVE_ARPA_INET_H.
20644         Invoke gl_CHECK_NEXT_HEADERS.
20645         (gl_ARPA_INET_H_DEFAULTS): Initialize ARPA_INET_H.
20646         * m4/inet_ntop.m4 (gl_INET_NTOP): Require gl_ARPA_INET_H_DEFAULTS and
20647         set ARPA_INET_H.
20648         * m4/inet_pton.m4 (gl_INET_PTON): Likewise.
20649         * modules/arpa_inet (Description): No longer only for systems that
20650         lack it.
20651         (Depends-on): Add include_next.
20652         (Makeile.am): Substitute INCLUDE_NEXT, NEXT_ARPA_INET_H,
20653         HAVE_ARPA_INET_H.
20654
20655 2008-04-29  Jim Meyering  <meyering@redhat.com>
20656
20657         * modules/mkdir (License): Re-license as LGPLv2+.
20658
20659 2008-04-29  Bruno Haible  <bruno@clisp.org>
20660
20661         * modules/rawmemchr (Maintainer): Set to Eric.
20662         * modules/strchrnul (Maintainer): Likewise.
20663
20664 2008-04-29  Simon Josefsson  <simon@josefsson.org>
20665
20666         * m4/arpa_inet_h.m4 (gl_ARPA_INET_H_DEFAULTS): Set
20667         HAVE_DECL_INET_NTOP and HAVE_DECL_INET_PTON.
20668
20669         * modules/arpa_inet (arpa/inet.h): Use them.
20670
20671 2008-04-28  Eric Blake  <ebb9@byu.net>
20672
20673         Test getndelim2.
20674         * modules/getndelim2-tests: New file.
20675         * tests/test-getndelim2.c: Likewise.
20676         * lib/getndelim2.c (getndelim2): Never return 0.  Lock the
20677         stream.
20678         * m4/getndelim2.m4 (gl_GETNDELIM2): Check for lock functions.
20679
20680         * MODULES.html.sh: Document new module.
20681
20682 2008-04-20  Bruno Haible  <bruno@clisp.org>
20683
20684         * lib/c-stack.c (die): Use raise.
20685         * modules/c-stack (Depends-on): Add raise.
20686
20687 2008-04-28  Bruno Haible  <bruno@clisp.org>
20688
20689         Expect rpmatch to be declared.
20690         * lib/yesno.c (rpmatch): Remove declaration.
20691
20692         Declare rpmatch.
20693         * lib/stdlib.in.h (rpmatch): New declaration.
20694         * lib/rpmatch.c: Include <stdlib.h> first.
20695         * m4/rpmatch.m4 (gl_FUNC_RPMATCH): Require AC_USE_SYSTEM_EXTENSIONS and
20696         gl_STDLIB_H_DEFAULTS. Set HAVE_RPMATCH.
20697         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_RPMATCH,
20698         HAVE_RPMATCH.
20699         * modules/rpmatch (Depends-on): Add stdlib, extensions.
20700         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
20701         (Include): Set to <stdlib.h>.
20702         * modules/stdlib (Makefile.am): Substitute GNULIB_RPMATCH and
20703         HAVE_RPMATCH.
20704         * NEWS: Document the change.
20705
20706 2008-04-28  Bruno Haible  <bruno@clisp.org>
20707
20708         Change rpmatch to use nl_langinfo when appropriate.
20709         * lib/rpmatch.c: Include stdbool.h, string.h, langinfo.h.
20710         (N_): New macro.
20711         (localized_pattern): New function/macro.
20712         (try): Remove match, nomatch arguments. Copy the pattern into safe
20713         memory before caching it.
20714         (rpmatch): Use localized_pattern. Add translator comments.
20715         * m4/rpmatch.m4 (gl_PREREQ_RPMATCH): Test for nl_langinfo and YESEXPR.
20716         Suggested by Eric Blake.
20717         * modules/rpmatch (Depends-on): Add stdbool.
20718
20719 2008-04-28  Eric Blake  <ebb9@byu.net>
20720
20721         Add rawmemchr module, matching glibc.
20722         * modules/string (Makefile.am): New indicator.
20723         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Set it.
20724         * lib/string.in.h (rawmemchr): Declare when appropriate.
20725         * modules/rawmemchr: New file.
20726         * m4/rawmemchr.m4: Likewise.
20727         * lib/rawmemchr.c: Likewise.
20728         * modules/rawmemchr-tests: Likewise.
20729         * tests/test-rawmemchr.c: Likewise.
20730         * doc/glibc-functions/rawmemchr.texi (rawmemchr): Document
20731         module.
20732         * modules/strchrnul (Depends-on): Add rawmemchr.
20733         * lib/strchrnul.c (strchrnul): Optimize a corner case.
20734
20735         Whitespace cleanup.
20736         * tests/test-strchrnul.c: Reindent.
20737         * lib/strchrnul.c: Likewise.
20738
20739         Optimize and test strchrnul.
20740         * lib/strchrnul.c (strchrnul): Rewrite to do parallel search.
20741         * modules/strchrnul-tests: New file.
20742         * tests/test-strchrnul.c: Likewise.
20743
20744         Remove intprops dependency.
20745         * modules/memchr (Depends-on): Remove intprops.
20746         * modules/memrchr (Depends-on): Likewise.
20747         * modules/memchr2 (Depends-on): Likewise.
20748         * lib/memchr.c (__memchr): Hand-inline the TYPE_MAXIMUM check.
20749         * lib/memrchr.c (__memrchr): Likewise.
20750         * lib/memrchr2.c (memchr2): Likewise.
20751         Reported by Simon Josefsson.
20752
20753 2008-04-28  Simon Josefsson  <simon@josefsson.org>
20754
20755         * m4/sys_socket_h.m4: Move AC_REQUIRE([AC_C_INLINE]) to top.
20756         Suggested by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
20757
20758 2008-04-28  Simon Josefsson  <simon@josefsson.org>
20759
20760         * lib/inet_ntop.h, lib/inet_pton.h: Remove files.
20761
20762         * lib/inet_ntop.c: Include arpa/inet.h instead of inet_ntop.h.
20763
20764         * lib/inet_pton.c: Include arpa/inet.h instead of inet_pton.h.
20765
20766         * lib/arpa_inet.in.h [@GNULIB_INET_NTOP@]: Inline inet_ntop.h
20767         declarations.
20768         [@GNULIB_INET_PTON@]: Inline inet_pton.h declarations.
20769
20770         * m4/inet_pton.m4: Don't check for header files.
20771
20772         * m4/inet_ntop.m4: Don't check for header files.
20773
20774 2008-04-28  Simon Josefsson  <simon@josefsson.org>
20775
20776         * m4/sys_socket_h.m4: Require AC_C_INLINE when necessary.
20777         * lib/sys_socket.in.h (setsockopt): Use proper win32 tests (don't
20778         trigger for cygwin).
20779         Reported by Bruno Haible  <bruno@clisp.org>.
20780
20781 2008-04-28  Bruno Haible  <bruno@clisp.org>
20782
20783         * doc/posix-functions/strdup.texi: Mention mingw problem.
20784
20785 2008-04-27  Bruno Haible  <bruno@clisp.org>
20786
20787         * modules/stat-time-tests (Depends-on): Add sleep.
20788         * tests/test-stat-time.c (force_unlink): New function.
20789         (cleanup): Use it.
20790         (test_mtime): Remove the ctime related tests.
20791         (test_ctime): New function, containing the ctime related tests.
20792         (main): Call test_ctime, except on native Windows platforms.
20793
20794 2008-04-27  Bruno Haible  <bruno@clisp.org>
20795
20796         * lib/rpmatch.c (rpmatch): Add some comments.
20797         Reported by James Youngman <jay@gnu.org>.
20798
20799 2008-04-27  Bruno Haible  <bruno@clisp.org>
20800
20801         * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS): Also test the behaviour on
20802         quiet NaNs.
20803
20804 2008-04-27  Bruno Haible  <bruno@clisp.org>
20805
20806         Make test-yesno.sh work on mingw.
20807         * tests/test-yesno.sh: Postprocess the output to convert CR/LF to LF.
20808         * tests/test-yesno.c: Include yesno.h first. Include binary-io.h.
20809         (main): Set stdin to binary mode.
20810         * modules/yesno-tests (Depends-on): Add binary-io.
20811
20812 2008-04-27  Bruno Haible  <bruno@clisp.org>
20813
20814         Fix 'isfinite' on x86, x86_64, ia64 platforms.
20815         * tests/test-isfinite.c (test_isfinitel): Also test the behavior on
20816         argument that lie outside the IEEE 854 domain.
20817         * m4/isfinite.m4 (gl_ISFINITEL_WORKS): New macro.
20818         (gl_ISFINITE): Use it.
20819         * doc/posix-functions/isfinite.texi: Document the fixed bugs.
20820
20821 2008-04-27  Bruno Haible  <bruno@clisp.org>
20822
20823         Allow local renaming in config.h.
20824         * lib/memrchr.c (memrchr): Don't undefine outside libc.
20825
20826 2008-04-27  Bruno Haible  <bruno@clisp.org>
20827
20828         * lib/memchr.c (__memchr): Change type of 'i'.
20829         * lib/memchr2.c (memchr2): Likewise.
20830
20831 2008-04-26  Eric Blake  <ebb9@byu.net>
20832         and Bruno Haible  <bruno@clisp.org>
20833
20834         Optimize and test memrchr.
20835         * modules/memrchr (Depends-on): Add intprops.
20836         * lib/memrchr.c (__memrchr): Avoid false positives in loop.
20837         * modules/memrchr-tests: New file.
20838         * tests/test-memrchr.c: New file.
20839
20840 2008-04-26  Bruno Haible  <bruno@clisp.org>
20841
20842         Add tentative support for DragonFly BSD.
20843         * lib/stdio-impl.h: Add macros for DragonFly BSD.
20844         * lib/fbufmode.c (fbufmode): Update conditionals. Use fp_ instead of
20845         fp.
20846         * lib/fflush.c (clear_ungetc_buffer, disable_seek_optimization,
20847         restore_seek_optimization, update_fpos_cache, rpl_fflush: Likewise.
20848         * lib/fpurge.c (fpurge): Likewise.
20849         * lib/freadable.c (freaadable): Likewise.
20850         * lib/freadahead.c (freadahead): Likewise.
20851         * lib/freading.c (freading): Likewise.
20852         * lib/freadptr.c (freadptr): Likewise.
20853         * lib/freadseek.c (freadptrinc): Likewise.
20854         * lib/fseeko.c (fseeko): Likewise.
20855         * lib/fseterr.c (fseterr): Likewise.
20856         * lib/fwritable.c (fwritable): Likewise.
20857         * lib/fwriting.c (fwriting): Likewise.
20858
20859 2008-04-26  Bruno Haible  <bruno@clisp.org>
20860
20861         * lib/stdio-impl.h: New file.
20862         * lib/fbufmode.c: Include stdio-impl.h.
20863         (fbufmode): Use fp_, remove redundant #defines.
20864         * lib/fflush.c: Include stdio-impl.h.
20865         (clear_ungetc_buffer): Remove redundant #defines.
20866         * lib/fpurge.c: Include stdio-impl.h.
20867         (fpurge): Remove redundant #defines.
20868         * lib/freadable.c: Include stdio-impl.h.
20869         (freadable): Remove redundant #defines.
20870         * lib/freadahead.c: Include stdio-impl.h.
20871         (freadahead): Remove redundant #defines.
20872         * lib/freading.c: Include stdio-impl.h.
20873         (freading): Remove redundant #defines.
20874         * lib/freadptr.c: Include stdio-impl.h.
20875         (freadptr): Remove redundant #defines.
20876         * lib/freadseek.c: Include stdio-impl.h.
20877         (freadptrinc): Remove redundant #defines.
20878         * lib/fseeko.c: Include stdio-impl.h.
20879         (rpl_fseeko): Remove redundant #defines.
20880         * lib/fseterr.c: Include stdio-impl.h.
20881         (fseterr): Remove redundant #defines.
20882         * lib/fwritable.c: Include stdio-impl.h.
20883         (fwritable: Remove redundant #defines.
20884         * lib/fwriting.c: Include stdio-impl.h.
20885         (fwriting): Remove redundant #defines.
20886         * modules/fbufmode (Files): Add lib/stdio-impl.h.
20887         * modules/fflush (Files): Likewise.
20888         * modules/fpurge (Files): Likewise.
20889         * modules/freadable (Files): Likewise.
20890         * modules/freadahead (Files): Likewise.
20891         * modules/freading (Files): Likewise.
20892         * modules/freadptr (Files): Likewise.
20893         * modules/freadseek (Files): Likewise.
20894         * modules/fseeko (Files): Likewise.
20895         * modules/fseterr (Files): Likewise.
20896         * modules/fwritable (Files): Likewise.
20897         * modules/fwriting (Files): Likewise.
20898
20899 2008-04-26  Bruno Haible  <bruno@clisp.org>
20900
20901         * lib/fflush.c (clear_ungetc_buffer, disable_seek_optimization,
20902         restore_seek_optimization, update_fpos_cache): New functions, extracted
20903         from rpl_fflush.
20904         (rpl_fflush): Use them.
20905         * m4/fflush.m4 (gl_PREREQ_FFLUSH): New macro.
20906         (gl_REPLACE_FFLUSH): Use it.
20907
20908 2008-04-26  Bruno Haible  <bruno@clisp.org>
20909
20910         * tests/test-xstrtol.sh: Work around limitation of an old 'tr' program
20911         on Solaris.
20912         * tests/test-xstrtoimax.sh: Likewise.
20913         * tests/test-xstrtoumax.sh: Likewise.
20914         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
20915
20916 2008-04-26  Bruno Haible  <bruno@clisp.org>
20917
20918         * modules/memchr-tests: New file.
20919         * tests/test-memchr.c; New file, based on tests/test-memchr2.c.
20920
20921 2008-04-26  Eric Blake  <ebb9@byu.net>
20922             Bruno Haible  <bruno@clisp.org>
20923
20924         * lib/memchr.c: Include intprops.h.
20925         (__memchr): Optimize parallel detection of matching bytes. Rename local
20926         variables. Add explanatory comments.
20927
20928 2008-04-26  Bruno Haible  <bruno@clisp.org>
20929
20930         Fix module 'memchr', broken since 2000-10-28.
20931         * lib/memchr.c: Outside glibc, define memchr, not __memchr.
20932
20933 2008-04-26  Bruno Haible  <bruno@clisp.org>
20934
20935         * lib/memchr2.c (memchr2): Rename local variables. Add explanatory
20936         comments.
20937
20938 2008-04-25  Eric Blake  <ebb9@byu.net>
20939
20940         Use native fstatat on cygwin 1.7.0.
20941         * m4/openat.m4 (gl_FUNC_OPENAT): Make sure lstat check is made
20942         first.
20943
20944 2008-04-23  Eric Blake  <ebb9@byu.net>
20945
20946         Improve memchr2 performance.
20947         * lib/memchr2.c (memchr2): Further optimize parallel detection of
20948         NUL bytes.
20949         * modules/memchr2 (Depends-on): Use intprops.h.
20950
20951 2008-04-23  Simon Josefsson  <simon@josefsson.org>
20952
20953         * lib/sys_socket.in.h (setsockopt): Be more type safe by declaring
20954         an inline function instead of a CPP macro.  Patch by Ben Pfaff
20955         <blp@cs.stanford.edu>.
20956
20957 2008-04-23  Simon Josefsson  <simon@josefsson.org>
20958
20959         * lib/arpa_inet.in.h: New file.
20960
20961         * modules/arpa_inet (Files): Add lib/arpa_inet.in.h.
20962         (Makefile.am): Sed in substitute header file.
20963
20964         * m4/arpa_inet_h.m4: Add gl_ARPA_INET_H_DEFAULTS and
20965         gl_ARPA_INET_MODULE_INDICATOR.  Use them.
20966
20967         * modules/inet_ntop (configure.ac): Use
20968         gl_ARPA_INET_MODULE_INDICATOR.
20969
20970         * modules/inet_pton (configure.ac): Use
20971         gl_ARPA_INET_MODULE_INDICATOR.
20972
20973 2008-04-22  Jim Meyering  <meyering@redhat.com>
20974
20975         * modules/verify (License): Re-license as LGPLv2+.
20976
20977 2008-04-22  Simon Josefsson  <simon@josefsson.org>
20978
20979         * lib/sys_socket.in.h: Define setsockopt macro to cast fourth
20980         parameter to void* as per POSIX standard (MinGW uses char*).
20981
20982 2008-04-21  Bruno Haible  <bruno@clisp.org>
20983
20984         * lib/wctype.in.h (iswalnum, iswalpha, iswblank, iswcntrl, iswdigit,
20985         iswgraph, iswlower, iswprint, iswpunct, iswspace, iswupper, iswxdigit):
20986         Define to replacements if REPLACE_ISWCNTRL is 1.
20987         * m4/wctype.m4 (gl_WCTYPE_H): Test whether the isw* functions work.
20988         If not, set WCTYPE_H to nonempty and REPLACE_ISWCNTRL to 1.
20989         * modules/wctype (Makefile.am): Substitute REPLACE_ISWCNTRL.
20990         * doc/posix-functions/iswalnum.texi: Mention the 'wctype' module and
20991         what it fixes.
20992         * doc/posix-functions/iswalpha.texi: Likewise.
20993         * doc/posix-functions/iswblank.texi: Likewise.
20994         * doc/posix-functions/iswcntrl.texi: Likewise.
20995         * doc/posix-functions/iswdigit.texi: Likewise.
20996         * doc/posix-functions/iswgraph.texi: Likewise.
20997         * doc/posix-functions/iswlower.texi: Likewise.
20998         * doc/posix-functions/iswprint.texi: Likewise.
20999         * doc/posix-functions/iswpunct.texi: Likewise.
21000         * doc/posix-functions/iswspace.texi: Likewise.
21001         * doc/posix-functions/iswupper.texi: Likewise.
21002         * doc/posix-functions/iswxdigit.texi: Likewise.
21003         Reported by Alain Guibert.
21004
21005 2008-04-21  Bruno Haible  <bruno@clisp.org>
21006
21007         * m4/vsnprintf.m4 (gl_FUNC_VSNPRINTF): Fix typo in last commit.
21008         Patch by Alain Guibert.
21009
21010 2008-04-21  Bruno Haible  <bruno@clisp.org>
21011
21012         Fix test failures on mingw.
21013         * tests/test-xstrtol.c (print_no_progname): New function.
21014         (main): Install it in error_print_progname hook.
21015         * tests/test-xstrtol.sh: Convert CR/LF to NL in output.
21016         * tests/test-xstrtoimax.sh: Likewise.
21017         * tests/test-xstrtoumax.sh: Likewise.
21018
21019 2008-04-21  Bruno Haible  <bruno@clisp.org>
21020
21021         Fix test failure on mingw.
21022         * tests/test-argp-2.sh (func_compare): Remove CRs from sed's output.
21023
21024 2008-04-21  Bruno Haible  <bruno@clisp.org>
21025
21026         * lib/localename.c (SUBLANG_TIBETAN_PRC, SUBLANG_TIBETAN_BHUTAN):
21027         Actually assign a value.
21028
21029 2008-04-20  Bruno Haible  <bruno@clisp.org>
21030
21031         Fix conflict between modules 'canonicalize' and 'canonicalize-lgpl',
21032         take 2.
21033         * lib/canonicalize.c (canonicalize_file_name): Elide if the
21034         'canonicalize-lgpl' module is also used.
21035         * lib/canonicalize-lgpl.c: Undo last change.
21036         * modules/canonicalize-lgpl (configure.ac): Invoke gl_MODULE_INDICATOR.
21037
21038 2008-04-20  Bruno Haible  <bruno@clisp.org>
21039
21040         * lib/mkdir.c (mkdir): Undefine after the includes, not right after
21041         config.h. Provide _mkdir based fallback for mingw.
21042         * lib/sys_stat.in.h (mkdir): Define through an 'extern' declaration
21043         if REPLACE_MKDIR is 1. Otherwise, test for mingw directly.
21044         * m4/mkdir-slash.m4 (gl_FUNC_MKDIR_TRAILING_SLASH): Require
21045         gl_SYS_STAT_H_DEFAULTS. When doing the replacement, set REPLACE_MKDIR
21046         rather than defining mkdir in config.h.
21047         * m4/sys_stat_h.m4 (gl_SYS_STAT_MODULE_INDICATOR): New macro.
21048         (gl_SYS_STAT_H_DEFAULTS): New macro.
21049         (gl_HEADER_SYS_STAT_H): Require it. Don't set HAVE_DECL_MKDIR and
21050         HAVE_IO_H any more.
21051         * modules/sys_stat (Makefile.am): Substitute REPLACE_MKDIR instead of
21052         HAVE_DECL_MKDIR and HAVE_IO_H.
21053
21054 2008-04-20  Bruno Haible  <bruno@clisp.org>
21055
21056         * lib/isapipe.c: Port to native Windows platforms.
21057
21058 2008-04-20  Bruno Haible  <bruno@clisp.org>
21059
21060         * lib/gc-gnulib.c: Include <windows.h> before <wincrypt.h>.
21061
21062 2008-04-21  Eric Blake  <ebb9@byu.net>
21063
21064         Work around preprocessors that don't handle UINTMAX_MAX.
21065         * lib/memchr2.c (memchr2): Avoid embedded #if.
21066         Reported by Alain Guibert, fix suggested by Bruno Haible.
21067
21068 2008-04-21  Simon Josefsson  <simon@josefsson.org>
21069
21070         * doc/posix-functions/strftime.texi (strftime): Explain better
21071         Windows incompatibility.  Suggested by Micah Cowan
21072         <micah@cowan.name>.
21073
21074 2008-04-20  Bruno Haible  <bruno@clisp.org>
21075
21076         * modules/uniconv/u32-conv-to-enc (Depends-on): Add unistr/u32-mblen,
21077         unistr/u8-mblen.
21078
21079 2008-04-20  Bruno Haible  <bruno@clisp.org>
21080
21081         Fix test failure on platforms with non-GNU iconv.
21082         * lib/uniconv/u16-conv-to-enc.c (u16_to_u8_lenient): New function.
21083         (U_TO_U8): Use it, rather than u16_to_u8.
21084         * lib/uniconv/u-conv-to-enc.h (FUNC): Allow an incomplete sequence of
21085         units at the end of the input string.
21086         * modules/uniconv/u16-conv-to-enc (Depends-on): Update.
21087
21088 2008-04-20  Bruno Haible  <bruno@clisp.org>
21089
21090         * tests/uniconv/test-u8-conv-to-enc.c (main): Accept result == NULL
21091         when the resulting length is 0.
21092         * tests/uniconv/test-u16-conv-to-enc.c (main): Likewise.
21093
21094 2008-04-20  Bruno Haible  <bruno@clisp.org>
21095
21096         * m4/roundf.m4 (gl_FUNC_ROUNDF): Add test whether roundf actually
21097         works.
21098         * doc/posix-functions/roundf.texi: Mention roundf bug on mingw.
21099
21100 2008-04-20  Bruno Haible  <bruno@clisp.org>
21101
21102         * tests/test-tsearch.c (main): Don't use initstate if it is missing.
21103         * modules/tsearch-tests (configure.ac): Test for initstate function.
21104
21105 2008-04-20  Bruno Haible  <bruno@clisp.org>
21106
21107         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Also provided a substitute
21108         for nlink_t if missing.
21109         * tests/test-sys_stat.c: Check the existence of the nlink_t type.
21110
21111 2008-04-19  Bruno Haible  <bruno@clisp.org>
21112
21113         Work around snprintf bug on Linux libc5.
21114         * m4/printf.m4 (gl_SNPRINTF_SIZE1): New macro.
21115         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Invoke
21116         gl_SNPRINTF_SIZE1.
21117         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
21118         * m4/snprintf.m4 (gl_FUNC_SNPRINTF): Likewise. Replace snprintf if
21119         that test failed.
21120         * m4/vsnprintf.m4 (gl_FUNC_VSNPRINTF): Likewise.
21121         * lib/vasnprintf.c (USE_SNPRINTF): Set to 0 on Linux libc5 systems.
21122         * modules/snprintf (Files): Add m4/printf.m4.
21123         * modules/vsnprintf (Files): Likewise.
21124         * doc/posix-functions/snprintf.texi: Document Linux libc5 problem.
21125         * doc/posix-functions/vsnprintf.texi: Likewise.
21126
21127 2008-04-19  Bruno Haible  <bruno@clisp.org>
21128
21129         * lib/vasnprintf.c (floorlog10l, floorlog10): Reduce maximum error
21130         from 0.0058 to less than 10^-7.
21131
21132 2008-04-19  Bruno Haible  <bruno@clisp.org>
21133
21134         Fix rounding when a precision is given.
21135         * lib/vasnprintf.c (is_borderline): New function.
21136         (VASNPRINTF): For %e and %g, consider replacing the digits 10....0 with
21137         9...9x.
21138         * tests/test-vasnprintf-posix.c (test_function): Test rounding with %f,
21139         %e, %g.
21140         * tests/test-vasprintf-posix.c (test_function): Likewise.
21141         * tests/test-snprintf-posix.h (test_function): Likewise.
21142         * tests/test-sprintf-posix.h (test_function): Likewise.
21143         * tests/test-fprintf-posix.h (test_function): Test rounding with %f.
21144         * tests/test-printf-posix.h (test_function): Likewise.
21145         * tests/test-printf-posix.output: Update.
21146         Reported by John Darrington <john@darrington.wattle.id.au> via
21147         Ben Pfaff <blp@cs.stanford.edu>.
21148
21149 2008-04-18  Simon Josefsson  <simon@josefsson.org>
21150
21151         * doc/posix-functions/strftime.texi (strftime): Clarify platform.
21152         Suggested by Bruno Haible <bruno@clisp.org>.
21153
21154 2008-04-17  Bruno Haible  <bruno@clisp.org>
21155
21156         * lib/lock.h (gl_lock_destroy, gl_rwlock_destroy,
21157         gl_recursive_lock_destroy): Provide no-op definitions for the dummy
21158         implementation.
21159         Patch by Bruce Merry <bmerry@gmail.com>.
21160
21161 2008-04-17  Simon Josefsson  <simon@josefsson.org>
21162
21163         * doc/posix-functions/strftime.texi (strftime): Mention that %e
21164         doesn't work under Windows.
21165
21166 2008-04-16  Bruno Haible  <bruno@clisp.org>
21167
21168         * lib/localename.c (LANG_MAORI, LANG_QUECHUA, LANG_SOTHO, LANG_UIGHUR):
21169         New macros.
21170         (SUBLANG_BOSNIAN_BOSNIA_HERZEGOVINA_LATIN,
21171         SUBLANG_BOSNIAN_BOSNIA_HERZEGOVINA_CYRILLIC,
21172         SUBLANG_CROATIAN_CROATIA, SUBLANG_CROATIAN_BOSNIA_HERZEGOVINA_LATIN,
21173         SUBLANG_MONGOLIAN_CYRILLIC_MONGOLIA, SUBLANG_MONGOLIAN_PRC,
21174         SUBLANG_QUECHUA_BOLIVIA, SUBLANG_QUECHUA_ECUADOR, SUBLANG_QUECHUA_PERU,
21175         SUBLANG_RUSSIAN_RUSSIA, SUBLANG_RUSSIAN_MOLDAVIA, SUBLANG_SPANISH_US,
21176         SUBLANG_TIBETAN_PRC, SUBLANG_TIBETAN_BHUTAN, SUBLANG_UIGHUR_PRC): New
21177         macros.
21178         (gl_locale_name_from_win32_LANGID): Refine code for Croatian/Bosnian,
21179         Mongolian, Russian, Spanish, Tibetan. Add code for Maori, Quechua,
21180         Northern Sotho, Uighur.
21181
21182 2008-04-16  Bruno Haible  <bruno@clisp.org>
21183
21184         * lib/localename.c (SUBLANG_SINDHI_INDIA): New macro.
21185         (SUBLANG_SINDHI_PAKISTAN): Change value from 1 to 2.
21186         (gl_locale_name_from_win32_LANGID): Fix code for Sindhi.
21187         Reported by Daniel Bergström <daniel@octocode.com>.
21188
21189 2007-12-25  KJK::Hyperion  <hackbunny@reactos.com>
21190             Bruno Haible  <bruno@clisp.org>
21191
21192         * lib/localename.c (gl_locale_name_canonicalize) [WIN32_NATIVE]: New
21193         function.
21194         (gl_locale_name_from_win32_LANGID, gl_locale_name_from_win32_LCID):
21195         New functions, mostly extracted from gl_locale_name_default.
21196         (gl_locale_name_default): Use gl_locale_name_from_win32_LCID.
21197
21198 2008-04-16  Eric Blake  <ebb9@byu.net>
21199
21200         Adjust strtod detection to catch glibc 2.7 bug.
21201         * m4/strtod.m4 (gl_FUNC_STRTOD): Test "nan()" behavior.
21202         Reported by John Gatewood Ham.
21203
21204 2008-04-16  Bruno Haible  <bruno@clisp.org>
21205
21206         Add tentative support for Linux libc5.
21207         * lib/fbufmode.c (fbufmode) [__GNU_LIBRARY__==1]: Reuse glibc2 code.
21208         * lib/fpurge.c (fpurge): Likewise.
21209         * lib/freadable.c (freadable): Likewise.
21210         * lib/freadahead.c (freadahead): Likewise.
21211         * lib/freading.c (freading): Likewise.
21212         * lib/freadptr.c (freadptr): Likewise.
21213         * lib/freadseek.c (freadptrinc): Likewise.
21214         * lib/fseeko.c (rpl_fseeko): Likewise.
21215         * lib/fseterr.c (fseterr): Likewise.
21216         * lib/fwritable.c (fwritable): Likewise.
21217         * lib/fwriting.c (fwriting): Likewise.
21218         Reported by Alain Guibert <alguibert+bts@free.fr>.
21219
21220 2008-04-15  Bruno Haible  <bruno@clisp.org>
21221
21222         * modules/mathl (configure.ac): Define module indicator.
21223
21224 2008-04-15  Bruno Haible  <bruno@clisp.org>
21225
21226         * lib/logl.c (logl): Remove unused variables.
21227
21228 2008-04-15  Bruno Haible  <bruno@clisp.org>
21229
21230         * lib/uniconv/u-conv-to-enc.h (FUNC): Fix return value when U_TO_U8
21231         fails.
21232
21233 2008-04-15  Bruno Haible  <bruno@clisp.org>
21234
21235         * lib/trim.c (trim2): Fix argument of isspace() macro.
21236
21237 2008-04-15  Paolo Bonzini  <bonzini@gnu.org>
21238
21239         * lib/tanl.c (kernel_tanl): Rename flag to invert, initialize it
21240         to 0.
21241         * lib/trigl.c (ieee754_rem_pio2l): Fix range checks.
21242
21243 2008-04-14  Bruno Haible  <bruno@clisp.org>
21244
21245         * m4/calloc.m4 (_AC_FUNC_CALLOC_IF): Fix underquoting of
21246         AC_LANG_PROGRAM argument.
21247         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS): Likewise.
21248         * m4/gethrxtime.m4 (gl_ARITHMETIC_HRTIME_T): Likewise.
21249         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Likewise.
21250         * m4/inttypes.m4 (gl_INTTYPES_H): Likewise.
21251         * m4/math_h.m4 (gl_MATH_H): Likewise.
21252         * m4/mbstate_t.m4 (AC_TYPE_MBSTATE_T): Likewise.
21253         * m4/memmem.m4 (gl_FUNC_MEMMEM): Likewise.
21254         * m4/netinet_in_h.m4 (gl_HEADER_NETINET_IN): Likewise.
21255         * m4/physmem.m4 (gl_SYS__SYSTEM_CONFIGURATION): Likewise.
21256         * m4/putenv.m4 (gl_FUNC_PUTENV): Likewise.
21257         * m4/regex.m4 (gl_REGEX): Likewise.
21258         * m4/stdint.m4 (gl_INTEGER_TYPE_SUFFIX): Likewise.
21259         * m4/stdio_h.m4 (gl_STDIN_LARGE_OFFSET): Likewise.
21260         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
21261         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE): Likewise.
21262         * m4/strndup.m4 (gl_FUNC_STRNDUP): Likewise.
21263         * m4/strstr.m4 (gl_FUNC_STRSTR): Likewise.
21264         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
21265         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Likewise.
21266
21267 2008-04-14  Jim Meyering  <meyering@redhat.com>
21268
21269         test-strtod: fix typos: s/abs/fabs/
21270         * tests/test-strtod.c (main): Use fabs, not narrowing-to-int "abs".
21271
21272 2008-04-13  Bruno Haible  <bruno@clisp.org>
21273
21274         Fix conflict between modules 'canonicalize' and 'canonicalize-lgpl'.
21275         * lib/canonicalize-lgpl.c: Elide the contents if the 'canonicalize'
21276         module is also used and while not building the reloc-wrapper.
21277
21278 2008-04-13  Bruno Haible  <bruno@clisp.org>
21279
21280         * tests/test-getaddrinfo.c (simple): Ignore EAI_NODATA error.
21281
21282 2008-04-13  Bruno Haible  <bruno@clisp.org>
21283
21284         Fix AIX compilation failure introduced on 2008-04-02.
21285         * tests/test-frexp.c (exp): Undefine before redefining.
21286         * tests/test-frexpl.c (exp): Likewise.
21287
21288 2008-04-13  Bruno Haible  <bruno@clisp.org>
21289
21290         Work around a HP-UX stdio bug.
21291         * tests/test-ftell.c (main): Disable the fseek/ftell test on HP-UX.
21292         * tests/test-ftello.c (main): Likewise.
21293         * doc/posix-functions/ftell.texi: Mention HP-UX bug.
21294         * doc/posix-functions/ftello.texi: Likewise.
21295
21296 2008-04-13  Bruno Haible  <bruno@clisp.org>
21297
21298         Make test-signbit pass on HP-UX/hppa.
21299         * tests/test-signbit.c (minus_zerol): New variable.
21300         (test_signbitl): Use it.
21301
21302 2008-04-13  Bruno Haible  <bruno@clisp.org>
21303
21304         Make truncl work on OSF/1 4.0.
21305         * m4/truncl.m4 (gl_FUNC_TRUNCL): Test whether truncl actually works.
21306         Set REPLACE_TRUNCL, not HAVE_DECL_TRUNCL.
21307         * lib/math.in.h (truncl): Test REPLACE_TRUNCL, not HAVE_DECL_TRUNCL.
21308         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_TRUNCL, not
21309         HAVE_DECL_TRUNCL.
21310         * modules/math (Makefile.am): Substitute REPLACE_TRUNCL, not
21311         HAVE_DECL_TRUNCL.
21312         * doc/posix-functions/truncl.texi: Document the OSF/1 4.0 problem.
21313
21314 2008-04-13  Bruno Haible  <bruno@clisp.org>
21315
21316         * lib/unictype.h: Remove trailing comma from enumeration definitions.
21317
21318 2008-04-13  Bruno Haible  <bruno@clisp.org>
21319
21320         * lib/count-one-bits.h (COUNT_ONE_BITS): Rewrite verification
21321         expression, so as to avoid HP-UX 11 cc compiler bug.
21322
21323 2008-04-13  Bruno Haible  <bruno@clisp.org>
21324
21325         * m4/regex.m4 (gl_PREREQ_REGEX): Also check for <libintl.h>.
21326
21327 2008-04-13  Bruno Haible  <bruno@clisp.org>
21328
21329         * lib/git-merge-changelog.c: Remove empty declaration outside of
21330         functions.
21331
21332 2008-04-13  Bruno Haible  <bruno@clisp.org>
21333
21334         * modules/quotearg-tests (Makefile.am): Define test_quotearg_LDADD.
21335
21336 2008-04-13  Bruno Haible  <bruno@clisp.org>
21337
21338         * doc/posix-headers/sys_socket.texi: Document the problem on EMX.
21339         * lib/sys_socket.in.h (SHUT_RD, SHUT_WR, SHUT_RDWR): Define if missing.
21340         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Replace <sys/socket.h>
21341         also if it exists but lacks definitions of the SHUT_* macros.
21342         * modules/sys_socket (Description): Update.
21343         Reported by Elbert Pol <e.pol@chello.nl>.
21344
21345 2008-04-13  Bruno Haible  <bruno@clisp.org>
21346
21347         * lib/localcharset.c (OS2): Don't redefine if already defined.
21348         Reported by Elbert Pol <e.pol@chello.nl>.
21349
21350 2008-04-13  Bruno Haible  <bruno@clisp.org>
21351
21352         * lib/binary-io.h [__EMX__]: Include <io.h>.
21353         Reported by Elbert Pol <e.pol@chello.nl>.
21354
21355 2008-04-12  Bruno Haible  <bruno@clisp.org>
21356
21357         * lib/fpucw.h: Enable the definitions also for x86_64.
21358         Needed for NetBSD/x86_64.
21359         Reported by Thomas Klausner <tk@giga.or.at>.
21360
21361 2008-04-12  Bruno Haible  <bruno@clisp.org>
21362
21363         * tests/test-strtod.c: Include isnand.h.
21364         (main): Use isnand instead of isnan.
21365         Reported by Jim Meyering.
21366
21367 2008-04-12  Bruno Haible  <bruno@clisp.org>
21368
21369         * m4/isnanf.m4 (gl_ISNANF_WORKS): Add a test for a special NaN.
21370         Reported by Nelson H. F. Beebe <beebe@math.utah.edu>.
21371
21372 2008-04-12  Jim Meyering  <meyering@redhat.com>
21373
21374         * m4/math_h.m4 (gl_MATH_H): Fix typos.
21375
21376 2008-04-12  Bruno Haible  <bruno@clisp.org>
21377
21378         * lib/freadptr.c (freadptr) [__EMX__]: Fix wrong assertion.
21379         Reported by Elbert Pol <e.pol@chello.nl>.
21380
21381 2008-04-12  Eric Blake  <ebb9@byu.net>
21382
21383         Work around Solaris 10 math.h bug.
21384         * m4/math_h.m4 (gl_MATH_H): Check for bug.
21385         (gl_MATH_H_DEFAULTS): Set up default.
21386         * modules/math (Makefile.am): Replace new indicators.
21387         * lib/math.in.h (NAN, HUGE_VAL): Provide replacements.
21388         * tests/test-math.c (main): Test this.
21389         * m4/strtod.m4 (gl_FUNC_STRTOD): Don't rely on HUGE_VAL.
21390         * doc/posix-headers/math.texi (math.h): Mention bug.
21391         Reported by Nelson H. F. Beebe and Jim Meyering.
21392
21393 2008-04-11  Bruno Haible  <bruno@clisp.org>
21394
21395         Adapt to future versions of Apple GCC.
21396         * lib/argp-fmtstream.h (ARGP_FS_EI): Don't test __GNUC_GNU_INLINE__.
21397         Reported by Peter O'Gorman <peter@pogma.com>.
21398
21399 2008-04-11  Bruno Haible  <bruno@clisp.org>
21400
21401         * tests/test-getaddrinfo.c (simple): Ignore EAI_NONAME error.
21402
21403 2008-04-11  Bruno Haible  <bruno@clisp.org>
21404
21405         * modules/strsignal-tests (Makefile.am): Define test_strsignal_LDADD.
21406
21407         * modules/getaddrinfo-tests (Makefile.am): Define
21408         test_getaddrinfo_LDADD.
21409
21410 2008-04-11  Bruno Haible  <bruno@clisp.org>
21411
21412         * lib/strsignal.c (_sys_siglist): Don't declare if already declared.
21413         (init): Fix syntax error.
21414         * m4/strsignal.m4 (gl_PREREQ_STRSIGNAL): Check whether _sys_siglist
21415         is declared.
21416
21417 2008-04-11  Bruno Haible  <bruno@clisp.org>
21418
21419         * lib/glob.c: Include <stdbool.h>. Needed at least with IRIX cc.
21420         * modules/glob (Depends-on): Add stdbool.
21421
21422 2008-04-11  Bruno Haible  <bruno@clisp.org>
21423
21424         * lib/trim.c: Include <string.h>.
21425
21426 2008-04-11  Eric Blake  <ebb9@byu.net>
21427
21428         Avoid compile failure on OS/2.
21429         * lib/regex_internal.h (internal_function): Disable optimization
21430         on OS/2 (__EMX__), where it caused compiler error.
21431         Reported by Elbert Pol.
21432
21433 2008-04-11  Bruno Haible  <bruno@clisp.org>
21434
21435         Flush the standard error stream before aborting. Needed on mingw.
21436         * tests/test-argmatch.c (ASSERT): Call fflush(stderr) before abort().
21437         * tests/test-array_list.c (ASSERT): Likewise.
21438         * tests/test-array_oset.c (ASSERT): Likewise.
21439         * tests/test-avltree_list.c (ASSERT): Likewise.
21440         * tests/test-avltree_oset.c (ASSERT): Likewise.
21441         * tests/test-avltreehash_list.c (ASSERT): Likewise.
21442         * tests/test-binary-io.c (ASSERT): Likewise.
21443         * tests/test-byteswap.c (ASSERT): Likewise.
21444         * tests/test-c-ctype.c (ASSERT): Likewise.
21445         * tests/test-c-strcasecmp.c (ASSERT): Likewise.
21446         * tests/test-c-strcasestr.c (ASSERT): Likewise.
21447         * tests/test-c-strncasecmp.c (ASSERT): Likewise.
21448         * tests/test-c-strstr.c (ASSERT): Likewise.
21449         * tests/test-canonicalize-lgpl.c (ASSERT): Likewise.
21450         * tests/test-canonicalize.c (ASSERT): Likewise.
21451         * tests/test-carray_list.c (ASSERT): Likewise.
21452         * tests/test-ceilf1.c (ASSERT): Likewise.
21453         * tests/test-ceilf2.c (ASSERT): Likewise.
21454         * tests/test-ceill.c (ASSERT): Likewise.
21455         * tests/test-count-one-bits.c (ASSERT): Likewise.
21456         * tests/test-fbufmode.c (ASSERT): Likewise.
21457         * tests/test-fflush2.c (ASSERT): Likewise.
21458         * tests/test-floorf1.c (ASSERT): Likewise.
21459         * tests/test-floorf2.c (ASSERT): Likewise.
21460         * tests/test-floorl.c (ASSERT): Likewise.
21461         * tests/test-fopen.c (ASSERT): Likewise.
21462         * tests/test-fpending.c (ASSERT): Likewise.
21463         * tests/test-fprintf-posix.c (ASSERT): Likewise.
21464         * tests/test-fpurge.c (ASSERT): Likewise.
21465         * tests/test-freadable.c (ASSERT): Likewise.
21466         * tests/test-freadahead.c (ASSERT): Likewise.
21467         * tests/test-freading.c (ASSERT): Likewise.
21468         * tests/test-freadptr.c (ASSERT): Likewise.
21469         * tests/test-freadptr2.c (ASSERT): Likewise.
21470         * tests/test-freadseek.c (ASSERT): Likewise.
21471         * tests/test-freopen.c (ASSERT): Likewise.
21472         * tests/test-frexp.c (ASSERT): Likewise.
21473         * tests/test-frexpl.c (ASSERT): Likewise.
21474         * tests/test-fseek.c (ASSERT): Likewise.
21475         * tests/test-fseeko.c (ASSERT): Likewise.
21476         * tests/test-fstrcmp.c (ASSERT): Likewise.
21477         * tests/test-ftell.c (ASSERT): Likewise.
21478         * tests/test-ftello.c (ASSERT): Likewise.
21479         * tests/test-func.c (ASSERT): Likewise.
21480         * tests/test-fwritable.c (ASSERT): Likewise.
21481         * tests/test-fwriting.c (ASSERT): Likewise.
21482         * tests/test-getdelim.c (ASSERT): Likewise.
21483         * tests/test-getline.c (ASSERT): Likewise.
21484         * tests/test-i-ring.c (ASSERT): Likewise.
21485         * tests/test-iconv-utf.c (ASSERT): Likewise.
21486         * tests/test-iconv.c (ASSERT): Likewise.
21487         * tests/test-isfinite.c (ASSERT): Likewise.
21488         * tests/test-isnand.c (ASSERT): Likewise.
21489         * tests/test-isnanf.c (ASSERT): Likewise.
21490         * tests/test-isnanl.h (ASSERT): Likewise.
21491         * tests/test-ldexpl.c (ASSERT): Likewise.
21492         * tests/test-linked_list.c (ASSERT): Likewise.
21493         * tests/test-linkedhash_list.c (ASSERT): Likewise.
21494         * tests/test-localename.c (ASSERT): Likewise.
21495         * tests/test-lseek.c (ASSERT): Likewise.
21496         * tests/test-mbscasecmp.c (ASSERT): Likewise.
21497         * tests/test-mbscasestr1.c (ASSERT): Likewise.
21498         * tests/test-mbscasestr2.c (ASSERT): Likewise.
21499         * tests/test-mbscasestr3.c (ASSERT): Likewise.
21500         * tests/test-mbscasestr4.c (ASSERT): Likewise.
21501         * tests/test-mbschr.c (ASSERT): Likewise.
21502         * tests/test-mbscspn.c (ASSERT): Likewise.
21503         * tests/test-mbsncasecmp.c (ASSERT): Likewise.
21504         * tests/test-mbspbrk.c (ASSERT): Likewise.
21505         * tests/test-mbspcasecmp.c (ASSERT): Likewise.
21506         * tests/test-mbsrchr.c (ASSERT): Likewise.
21507         * tests/test-mbsspn.c (ASSERT): Likewise.
21508         * tests/test-mbsstr1.c (ASSERT): Likewise.
21509         * tests/test-mbsstr2.c (ASSERT): Likewise.
21510         * tests/test-mbsstr3.c (ASSERT): Likewise.
21511         * tests/test-memchr2.c (ASSERT): Likewise.
21512         * tests/test-memmem.c (ASSERT): Likewise.
21513         * tests/test-open.c (ASSERT): Likewise.
21514         * tests/test-printf-frexp.c (ASSERT): Likewise.
21515         * tests/test-printf-frexpl.c (ASSERT): Likewise.
21516         * tests/test-printf-posix.c (ASSERT): Likewise.
21517         * tests/test-quotearg.c (ASSERT): Likewise.
21518         * tests/test-rbtree_list.c (ASSERT): Likewise.
21519         * tests/test-rbtree_oset.c (ASSERT): Likewise.
21520         * tests/test-rbtreehash_list.c (ASSERT): Likewise.
21521         * tests/test-round1.c (ASSERT): Likewise.
21522         * tests/test-roundf1.c (ASSERT): Likewise.
21523         * tests/test-roundl.c (ASSERT): Likewise.
21524         * tests/test-signbit.c (ASSERT): Likewise.
21525         * tests/test-sleep.c (ASSERT): Likewise.
21526         * tests/test-snprintf-posix.c (ASSERT): Likewise.
21527         * tests/test-snprintf.c (ASSERT): Likewise.
21528         * tests/test-sprintf-posix.c (ASSERT): Likewise.
21529         * tests/test-stat-time.c (ASSERT): Likewise.
21530         * tests/test-strcasestr.c (ASSERT): Likewise.
21531         * tests/test-strerror.c (ASSERT): Likewise.
21532         * tests/test-striconv.c (ASSERT): Likewise.
21533         * tests/test-striconveh.c (ASSERT): Likewise.
21534         * tests/test-striconveha.c (ASSERT): Likewise.
21535         * tests/test-strsignal.c (ASSERT): Likewise.
21536         * tests/test-strstr.c (ASSERT): Likewise.
21537         * tests/test-strtod.c (ASSERT): Likewise.
21538         * tests/test-trunc1.c (ASSERT): Likewise.
21539         * tests/test-trunc2.c (ASSERT): Likewise.
21540         * tests/test-truncf1.c (ASSERT): Likewise.
21541         * tests/test-truncf2.c (ASSERT): Likewise.
21542         * tests/test-truncl.c (ASSERT): Likewise.
21543         * tests/test-vasnprintf-posix.c (ASSERT): Likewise.
21544         * tests/test-vasnprintf-posix2.c (ASSERT): Likewise.
21545         * tests/test-vasnprintf.c (ASSERT): Likewise.
21546         * tests/test-vasprintf-posix.c (ASSERT): Likewise.
21547         * tests/test-vasprintf.c (ASSERT): Likewise.
21548         * tests/test-vfprintf-posix.c (ASSERT): Likewise.
21549         * tests/test-vprintf-posix.c (ASSERT): Likewise.
21550         * tests/test-vsnprintf-posix.c (ASSERT): Likewise.
21551         * tests/test-vsnprintf.c (ASSERT): Likewise.
21552         * tests/test-vsprintf-posix.c (ASSERT): Likewise.
21553         * tests/test-wcwidth.c (ASSERT): Likewise.
21554         * tests/test-xfprintf-posix.c (ASSERT): Likewise.
21555         * tests/test-xprintf-posix.c (ASSERT): Likewise.
21556         * tests/test-xvasprintf.c (ASSERT): Likewise.
21557         * tests/uniconv/test-u16-conv-from-enc.c (ASSERT): Likewise.
21558         * tests/uniconv/test-u16-conv-to-enc.c (ASSERT): Likewise.
21559         * tests/uniconv/test-u16-strconv-from-enc.c (ASSERT): Likewise.
21560         * tests/uniconv/test-u16-strconv-to-enc.c (ASSERT): Likewise.
21561         * tests/uniconv/test-u32-conv-from-enc.c (ASSERT): Likewise.
21562         * tests/uniconv/test-u32-conv-to-enc.c (ASSERT): Likewise.
21563         * tests/uniconv/test-u32-strconv-from-enc.c (ASSERT): Likewise.
21564         * tests/uniconv/test-u32-strconv-to-enc.c (ASSERT): Likewise.
21565         * tests/uniconv/test-u8-conv-from-enc.c (ASSERT): Likewise.
21566         * tests/uniconv/test-u8-conv-to-enc.c (ASSERT): Likewise.
21567         * tests/uniconv/test-u8-strconv-from-enc.c (ASSERT): Likewise.
21568         * tests/uniconv/test-u8-strconv-to-enc.c (ASSERT): Likewise.
21569         * tests/unictype/test-bidi_byname.c (ASSERT): Likewise.
21570         * tests/unictype/test-bidi_name.c (ASSERT): Likewise.
21571         * tests/unictype/test-bidi_of.c (ASSERT): Likewise.
21572         * tests/unictype/test-bidi_test.c (ASSERT): Likewise.
21573         * tests/unictype/test-block_list.c (ASSERT): Likewise.
21574         * tests/unictype/test-block_of.c (ASSERT): Likewise.
21575         * tests/unictype/test-block_test.c (ASSERT): Likewise.
21576         * tests/unictype/test-categ_and.c (ASSERT): Likewise.
21577         * tests/unictype/test-categ_and_not.c (ASSERT): Likewise.
21578         * tests/unictype/test-categ_byname.c (ASSERT): Likewise.
21579         * tests/unictype/test-categ_name.c (ASSERT): Likewise.
21580         * tests/unictype/test-categ_none.c (ASSERT): Likewise.
21581         * tests/unictype/test-categ_of.c (ASSERT): Likewise.
21582         * tests/unictype/test-categ_or.c (ASSERT): Likewise.
21583         * tests/unictype/test-categ_test_withtable.c (ASSERT): Likewise.
21584         * tests/unictype/test-combining.c (ASSERT): Likewise.
21585         * tests/unictype/test-decdigit.c (ASSERT): Likewise.
21586         * tests/unictype/test-digit.c (ASSERT): Likewise.
21587         * tests/unictype/test-mirror.c (ASSERT): Likewise.
21588         * tests/unictype/test-numeric.c (ASSERT): Likewise.
21589         * tests/unictype/test-pr_byname.c (ASSERT): Likewise.
21590         * tests/unictype/test-pr_test.c (ASSERT): Likewise.
21591         * tests/unictype/test-predicate-part1.h (ASSERT): Likewise.
21592         * tests/unictype/test-scripts.c (ASSERT): Likewise.
21593         * tests/unictype/test-sy_c_ident.c (ASSERT): Likewise.
21594         * tests/unictype/test-sy_java_ident.c (ASSERT): Likewise.
21595         * tests/unistdio/test-u16-asnprintf1.c (ASSERT): Likewise.
21596         * tests/unistdio/test-u16-vasnprintf1.c (ASSERT): Likewise.
21597         * tests/unistdio/test-u16-vasnprintf2.c (ASSERT): Likewise.
21598         * tests/unistdio/test-u16-vasnprintf3.c (ASSERT): Likewise.
21599         * tests/unistdio/test-u16-vasprintf1.c (ASSERT): Likewise.
21600         * tests/unistdio/test-u16-vsnprintf1.c (ASSERT): Likewise.
21601         * tests/unistdio/test-u16-vsprintf1.c (ASSERT): Likewise.
21602         * tests/unistdio/test-u32-asnprintf1.c (ASSERT): Likewise.
21603         * tests/unistdio/test-u32-vasnprintf1.c (ASSERT): Likewise.
21604         * tests/unistdio/test-u32-vasnprintf2.c (ASSERT): Likewise.
21605         * tests/unistdio/test-u32-vasnprintf3.c (ASSERT): Likewise.
21606         * tests/unistdio/test-u32-vasprintf1.c (ASSERT): Likewise.
21607         * tests/unistdio/test-u32-vsnprintf1.c (ASSERT): Likewise.
21608         * tests/unistdio/test-u32-vsprintf1.c (ASSERT): Likewise.
21609         * tests/unistdio/test-u8-asnprintf1.c (ASSERT): Likewise.
21610         * tests/unistdio/test-u8-vasnprintf1.c (ASSERT): Likewise.
21611         * tests/unistdio/test-u8-vasnprintf2.c (ASSERT): Likewise.
21612         * tests/unistdio/test-u8-vasnprintf3.c (ASSERT): Likewise.
21613         * tests/unistdio/test-u8-vasprintf1.c (ASSERT): Likewise.
21614         * tests/unistdio/test-u8-vsnprintf1.c (ASSERT): Likewise.
21615         * tests/unistdio/test-u8-vsprintf1.c (ASSERT): Likewise.
21616         * tests/unistdio/test-ulc-asnprintf1.c (ASSERT): Likewise.
21617         * tests/unistdio/test-ulc-vasnprintf1.c (ASSERT): Likewise.
21618         * tests/unistdio/test-ulc-vasnprintf2.c (ASSERT): Likewise.
21619         * tests/unistdio/test-ulc-vasnprintf3.c (ASSERT): Likewise.
21620         * tests/unistdio/test-ulc-vasprintf1.c (ASSERT): Likewise.
21621         * tests/unistdio/test-ulc-vsnprintf1.c (ASSERT): Likewise.
21622         * tests/unistdio/test-ulc-vsprintf1.c (ASSERT): Likewise.
21623         * tests/uniwidth/test-u16-strwidth.c (ASSERT): Likewise.
21624         * tests/uniwidth/test-u16-width.c (ASSERT): Likewise.
21625         * tests/uniwidth/test-u32-strwidth.c (ASSERT): Likewise.
21626         * tests/uniwidth/test-u32-width.c (ASSERT): Likewise.
21627         * tests/uniwidth/test-u8-strwidth.c (ASSERT): Likewise.
21628         * tests/uniwidth/test-u8-width.c (ASSERT): Likewise.
21629         * tests/uniwidth/test-uc_width.c (ASSERT): Likewise.
21630         Reported by Eric Blake.
21631
21632 2008-04-11  Bruno Haible  <bruno@clisp.org>
21633
21634         * lib/wchar.in.h: Tweak comment.
21635
21636 2008-04-11  Bruno Haible  <bruno@clisp.org>
21637
21638         Fix __GNUC_STDC_INLINE__ predefine with Apple GCC on MacOS X 10.5.
21639         * gnulib-tool (func_emit_initmacro_start): Emit an invocation of
21640         gl_COMMON.
21641         * m4/gnulib-common.m4 (gl_COMMON, gl_COMMON_BODY): New macros.
21642
21643 2008-04-11  Bruno Haible  <bruno@clisp.org>
21644
21645         * modules/git-merge-changelog (git_merge_changelog_LDADD): Add LIBINTL.
21646
21647 2008-04-11  Simon Josefsson  <simon@josefsson.org>
21648
21649         * lib/gc-gnulib.c: On Windows, use CryptGenRandom from CSP instead
21650         of attempting to use non-existing /dev/*random.  Based on patch
21651         from Adam Strzelecki <ono@java.pl> in
21652         <http://lists.gnu.org/archive/html/help-gsasl/2008-02/msg00000.html>.
21653
21654 2008-04-08  Bruno Haible  <bruno@clisp.org>
21655
21656         Add tentative support for emx+gcc.
21657         * lib/fbufmode.c (fbufmode) [__EMX__]: Add conditional code.
21658         * lib/fpurge.c (fpurge): Likewise.
21659         * lib/freadable.c (freadable): Likewise.
21660         * lib/freadahead.c (freadahead): Likewise.
21661         * lib/freading.c (freading): Likewise.
21662         * lib/freadptr.c (freadptr): Likewise.
21663         * lib/freadseek.c (freadptrinc): Likewise.
21664         * lib/fseeko.c (rpl_fseeko): Likewise.
21665         * lib/fseterr.c (fseterr): Likewise.
21666         * lib/fwritable.c (fwritable): Likewise.
21667         * lib/fwriting.c (fwriting): Likewise.
21668         * m4/fpending.m4 (gl_FUNC_FPENDING): Add a variant for emx+gcc.
21669
21670 2008-04-09  Eric Blake  <ebb9@byu.net>
21671
21672         Avoid some autoconf warnings.
21673         * m4/regex.m4 (gl_REGEX): s/AC_HELP_STRING/AS_HELP_STRING/.
21674         * m4/acl.m4 (gl_FUNC_ACL): Likewise.
21675         * m4/afs.m4 (gl_AFS): Likewise.
21676         * m4/gc-random.m4 (gl_GC_RANDOM): Likewise.
21677         * m4/include_next.m4 (gl_INCLUDE_NEXT): s/AC_FOREACH/m4_foreach_w/.
21678         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Likewise.
21679         * m4/stdint.m4 (gl_STDINT_BITSIZEOF, gl_CHECK_TYPES_SIGNED)
21680         (gl_INTEGER_TYPE_SUFFIX): Likewise.
21681         * m4/onceonly_2_57.m4 (AC_CHECK_HEADERS_ONCE, AC_CHECK_FUNCS_ONCE)
21682         (AC_CHECK_DECLS_ONCE): Likewise.
21683         Rename file...
21684         * m4/onceonly.m4: ...to this, and delete 2.54 variant, now that
21685         gnulib-tool requires autoconf 2.59 or better.
21686         * gnulib-tool (func_get_filelist): s/\(onceonly\)_2_57.m4/\1.m4/.
21687
21688 2008-04-08  Eric Blake  <ebb9@byu.net>
21689
21690         Use 'git describe --match' if present (added in git 1.5.5).
21691         * build-aux/git-version-gen: Limit result to tags that match 'v*'
21692         if possible.
21693
21694 2008-04-08  Bruno Haible  <bruno@clisp.org>
21695
21696         Add tentative support for OpenServer.
21697         * lib/fbufmode.c (fbufmode): Add conditional define for _flag, _base,
21698         _ptr, _cnt.
21699         * lib/fpurge.c (fpurge): Likewise.
21700         * lib/freadable.c (freadable): Likewise.
21701         * lib/freadahead.c (freadahead): Likewise.
21702         * lib/freading.c (freading): Likewise.
21703         * lib/freadptr.c (freadptr): Likewise.
21704         * lib/freadseek.c (freadptrinc): Likewise.
21705         * lib/fseeko.c (rpl_fseeko): Likewise.
21706         * lib/fseterr.c (fseterr): Likewise.
21707         * lib/fwritable.c (fwritable): Likewise.
21708         * lib/fwriting.c (fwriting): Likewise.
21709         Reported by Roger Cornelius <rac@tenzing.org> and
21710         Brian K. White <brian@aljex.com>.
21711
21712 2008-04-06  Jim Meyering  <meyering@redhat.com>
21713
21714         * gnulib-tool (func_add_or_update): s/backuped/backed up/ in diagnostic
21715
21716 2008-04-06  Bruno Haible  <bruno@clisp.org>
21717
21718         Avoid possible error with non-ASCII bytes in UTF-8 locales.
21719         * tests/test-fprintf-posix.sh: Use "LC_ALL=C tr" instead of "tr".
21720         * tests/test-printf-posix.sh: Likewise.
21721         * tests/test-vfprintf-posix.sh: Likewise.
21722         * tests/test-vprintf-posix.sh: Likewise.
21723         * tests/test-xprintf-posix.sh: Likewise.
21724
21725 2008-04-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
21726
21727         * m4/double-slash-root.m4 (gl_DOUBLE_SLASH_ROOT): Fix quoting,
21728         hide error from 'ls', needed on OS/2.
21729         Report by Elbert Pol <elbert.pol@gmail.com>.
21730
21731 2008-04-04  Eric Blake  <ebb9@byu.net>
21732
21733         Make test-fseeko.c failures meaningful.
21734         * tests/test-fseeko.c: Print line number on failure.
21735         * tests/test-fseek.c: Likewise.
21736         Reported by Nelson H. F. Beebe.
21737
21738         Improve strtod bug detection check.
21739         * m4/strtod.m4 (gl_FUNC_STRTOD): Also check for hex-float parsing,
21740         required for Solaris 10.
21741         Reported by Bob Friesenhahn and Nelson H. F. Beebe.
21742
21743 2008-04-04  Bruno Haible  <bruno@clisp.org>
21744
21745         * modules/relocatable-prog-wrapper (Files): Add m4/environ.m4. Needed
21746         by m4/setenv.m4.
21747
21748 2008-04-03  Eric Blake  <ebb9@byu.net>
21749
21750         Ensure sane .version contents.
21751         * top/GNUmakefile (_dummy): Also delete .version when rebuilding
21752         version string.
21753         * build-aux/git-version-gen: Improve documentation.
21754
21755         Make GNU make output nicer.
21756         * top/GNUmakefile [!_have-Makefile]: Add dependency on
21757         MAKECMDGOALS to enforce message for all command line targets.  Set
21758         srcdir for use in maint.mk.
21759
21760         Another maintainer tweak.
21761         * top/GNUmakefile (_is-dist-target): Allow maintainer-distcheck as
21762         a target that regenerates version.
21763
21764 2008-04-03  Jim Meyering  <meyering@redhat.com>
21765
21766         vc-list-files: don't cause coreutils "make po-check" failure
21767         * build-aux/vc-list-files: Skip postprocessing when $2 is '.'
21768
21769 2008-04-03  Eric Blake  <ebb9@byu.net>
21770
21771         Allow VPATH usage of vc-list-files.
21772         * build-aux/vc-list-files (scriptversion): Add timestamp.
21773         (options): Add --help, --version, -C.
21774         (CVS): Support installed cvsu.
21775
21776 2008-04-02  Bruno Haible  <bruno@clisp.org>
21777
21778         Avoid some "statement with no effect" warnings from gcc.
21779         * tests/test-wctype.c (main): Explicitly ignore unused values.
21780         Reported by Jim Meyering.
21781
21782 2008-04-02  Jim Meyering  <meyering@redhat.com>
21783
21784         Avoid some warnings from "gcc -Wshadow".
21785         * tests/test-frexp.c (exp): Define to a different identifier.
21786         * tests/test-frexpl.c (exp): Likewise.
21787
21788 2008-04-03  Jim Meyering  <meyering@redhat.com>
21789
21790         bootstrap: remove dangling *.[ch] symlinks from lib
21791         * build-aux/bootstrap [dangling symlink removal]: Move find's
21792         -depth option to precede all others, to avoid a warning.
21793         Remove *.[ch] files too, and from "$source_base" (usually lib/).
21794
21795 2008-04-02  Bruno Haible  <bruno@clisp.org>
21796
21797         Avoid some warnings from "gcc -Wshadow".
21798         * tests/tests-vfprintf-posix.c (my_fprintf): Move after test_function.
21799         * tests/tests-vprintf-posix.c (my_printf): Move after test_function.
21800         * tests/tests-vsnprintf-posix.c (my_snprintf): Move after test_function.
21801         * tests/tests-vsprintf-posix.c (my_sprintf): Move after test_function.
21802         Reported by Jim Meyering.
21803
21804 2008-04-01  Bruno Haible  <bruno@clisp.org>
21805
21806         Fix test to work on IRIX 6.5 with cc.
21807         * tests/test-math.c (numeric_equal): New function.
21808         (main): Use it.
21809
21810 2008-04-01  Bruno Haible  <bruno@clisp.org>
21811
21812         * doc/posix-headers/math.texi: Refine documentation of NAN problem.
21813
21814 2008-04-01  Bruno Haible  <bruno@clisp.org>
21815
21816         * tests/test-vasnprintf-posix.c: Include nan.h instead of <math.h>.
21817         (test_function): Use NaNd, NaNl instead of NAN or 0.0L/0.0L.
21818         * modules/vasnprintf-posix-tests (Files): Add tests/nan.h.
21819         (Depends-on): Remove math.
21820
21821         * tests/test-vasprintf-posix.c: Include nan.h instead of <math.h>.
21822         (test_function): Use NaNd, NaNl instead of NAN or 0.0L/0.0L.
21823         * modules/vasprintf-posix-tests (Files): Add tests/nan.h.
21824         (Depends-on): Remove math.
21825
21826         * tests/test-snprintf-posix.h: Include nan.h instead of <math.h>.
21827         (test_function): Use NaNd, NaNl instead of NAN or 0.0L/0.0L.
21828         * modules/snprintf-posix-tests (Files): Add tests/nan.h.
21829         (Depends-on): Remove math.
21830         * modules/vsnprintf-posix-tests (Files): Add tests/nan.h.
21831         (Depends-on): Remove math.
21832
21833         * tests/test-sprintf-posix.h: Include nan.h instead of <math.h>.
21834         (test_function): Use NaNd, NaNl instead of NAN or 0.0L/0.0L.
21835         * modules/sprintf-posix-tests (Files): Add tests/nan.h.
21836         (Depends-on): Remove math.
21837         * modules/vsprintf-posix-tests (Files): Add tests/nan.h.
21838         (Depends-on): Remove math.
21839
21840         * tests/test-round1.c: Include nan.h.
21841         (main): Use NaNd instead of NAN.
21842         * modules/round-tests (Files): Add tests/nan.h.
21843
21844         * tests/test-trunc1.c: Include nan.h.
21845         (main): Use NaNd instead of NAN.
21846         * modules/trunc-tests (Files): Add tests/nan.h.
21847
21848         * tests/test-roundf1.c: Include nan.h.
21849         (main): Use NaNf instead of NAN.
21850         * modules/roundf-tests (Files): Add tests/nan.h.
21851
21852         * tests/test-truncf1.c: Include nan.h.
21853         (main): Use NaNf instead of NAN.
21854         * modules/truncf-tests (Files): Add tests/nan.h.
21855
21856         * tests/test-ceilf1.c: Include nan.h.
21857         (main): Use NaNf instead of NAN.
21858         * modules/ceilf-tests (Files): Add tests/nan.h.
21859
21860         * tests/test-floorf1.c: Include nan.h.
21861         (main): Use NaNf instead of NAN.
21862         * modules/floorf-tests (Files): Add tests/nan.h.
21863
21864         * tests/test-isnanf.c: Include nan.h instead of <math.h>.
21865         (main): Use NaNf instead of NAN.
21866         * modules/isnanf-nolibm-tests (Files): Add tests/nan.h.
21867
21868         * tests/test-isnand.c: Include nan.h instead of <math.h>.
21869         (main): Use NaNd instead of NAN.
21870         * modules/isnand-nolibm-tests (Files): Add tests/nan.h.
21871
21872         * tests/test-frexp.c: Include nan.h.
21873         (main): Use NaNd instead of NAN.
21874         * modules/frexp-tests (Files): Add tests/nan.h.
21875
21876         * lib/isnan.c: Don't include <math.h>.
21877         (FUNC): Don't use NAN macro.
21878         * modules/isnand-nolibm (Depends-on): Remove math.
21879         * modules/isnanf-nolibm (Depends-on): Remove math.
21880         * modules/isnanl (Depends-on): Remove math.
21881         * modules/isnanl-nolibm (Depends-on): Remove math.
21882
21883         * tests/nan.h: New file.
21884
21885 2008-04-01  Eric Blake  <ebb9@byu.net>
21886
21887         Fix typos.
21888         * tests/test-strtod.c (main): s/FLT_/DBL_/ for minimum and epsilon
21889         values to be the right type.
21890
21891         For now, cater to gnulib strtod inaccuracies.
21892         * tests/test-strtod.c (main): Allow 1-ulp error on expected
21893         fractional results.  While not as nice from a QoI perspective, it
21894         is a quicker patch than correctly implementing decimal to binary
21895         rounding.
21896
21897 2008-03-31  Eric Blake  <ebb9@byu.net>
21898
21899         Guarantee a definition of NAN.
21900         * lib/math.in.h (NAN): Define if missing.
21901         * tests/test-math.c (main): Test it.
21902         * doc/posix-headers/math.texi (math.h): Document this.
21903         * lib/isnan.c (rpl_isnand): Use it.
21904         * tests/test-ceilf1.c (NaN): Delete, and use NAN instead.
21905         * tests/test-floorf1.c (NaN): Likewise.
21906         * tests/test-frexp.c (NaN): Likewise.
21907         * tests/test-isnand.c (NaN): Likewise.
21908         * tests/test-isnanf.c (NaN): Likewise.
21909         * tests/test-round1.c (NaN): Likewise.
21910         * tests/test-roundf1.c (NaN): Likewise.
21911         * tests/test-snprintf-posix.h (NaN): Likewise.
21912         * tests/test-sprintf-posix.h (NaN): Likewise.
21913         * tests/test-trunc1.c (NaN): Likewise.
21914         * tests/test-truncf1.c (NaN): Likewise.
21915         * tests/test-vasnprintf-posix.c (NaN): Likewise.
21916         * tests/test-vasprintf-posix.c (NaN): Likewise.
21917         * modules/isnand-nolibm (Depends-on): Add math.
21918         * modules/isnanf-nolibm (Depends-on): Likewise.
21919         * modules/isnanl (Depends-on): Likewise.
21920         * modules/isnanl-nolibm (Depends-on): Likewise.
21921         * modules/snprintf-posix-tests (Depends-on): Likewise.
21922         * modules/sprintf-posix-tests (Depends-on): Likewise.
21923         * modules/vsnprintf-posix-tests (Depends-on): Likewise.
21924         * modules/vsprintf-posix-tests (Depends-on): Likewise.
21925         * modules/vasnprintf-posix-tests (Depends-on): Likewise.
21926         * modules/vasprintf-posix-tests (Depends-on): Likewise.
21927
21928 2008-03-31  Bruno Haible  <bruno@clisp.org>
21929
21930         * tests/test-strtod.c (main): Update results for OSF/1 platforms.
21931         * doc/posix-functions/strtod.texi: Likewise.
21932
21933 2008-03-31  Bruno Haible  <bruno@clisp.org>
21934
21935         * tests/test-strtod.c (main): Don't use C99 syntax.
21936
21937 2008-03-31  Bruno Haible  <bruno@clisp.org>
21938
21939         * tests/test-strtod.c (main): Don't test NAN macro. Needed for Solaris.
21940         Reported by Eric Blake.
21941
21942 2008-03-31  Jim Meyering  <meyering@redhat.com>
21943
21944         Don't compare actual signbit return values.
21945         * tests/test-strtod.c (main): Rather, compare only their
21946         zero/non-zero nature.
21947
21948 2008-03-31  Eric Blake  <ebb9@byu.net>
21949
21950         More strtod documentation.
21951         * doc/posix-functions/strtod.texi (strtod): Interpret more test
21952         failures as distinct bugs.
21953
21954 2008-03-30  Paul Eggert  <eggert@cs.ucla.edu>
21955
21956         * lib/wchar.in.h [defined __need_mbstate_t]: Just include <wchar.h>.
21957         Problem reported by Erik Benada in
21958         <http://lists.gnu.org/archive/html/bug-gnulib/2008-03/msg00249.html>.
21959
21960 2008-03-30  Bruno Haible  <bruno@clisp.org>
21961
21962         * tests/test-strtod.c: Add comments about which assertion fails on which
21963         platform.
21964         * doc/posix-functions/strtod.texi: Add info about many more platforms.
21965
21966 2008-03-30  Eric Blake  <ebb9@byu.net>
21967
21968         Test signbit behavior on zeros.
21969         * tests/test-signbit.c (test_signbitf): Add tests for zero.
21970         (test_signbitd, test_signbitl): Likewise.
21971
21972         More strtod touchups.
21973         * tests/test-strtod.c (main): Ignore tests for signbit on NaN, and
21974         sign of negative underflow, for now.  Use .5, not .1.
21975         * doc/posix-functions/strtod.texi (strtod): Mention these
21976         limitations.
21977         Reported by Jim Meyering.
21978
21979 2008-03-30  Bruno Haible  <bruno@clisp.org>
21980
21981         * lib/striconveh.h (mem_iconveh, str_iconveh): Optimize the conversion
21982         from UTF-8 to UTF-8//TRANSLIT in the same way as from UTF-8 to UTF-8.
21983
21984 2008-03-30  Bruno Haible  <bruno@clisp.org>
21985
21986         Avoid failure when attempting to return empty iconv results on some
21987         platforms.
21988         * lib/striconveh.c (mem_cd_iconveh_internal): In the final memory
21989         allocation, don't report ENOMEM when the resulting string is empty.
21990
21991 2008-03-30  Bruno Haible  <bruno@clisp.org>
21992
21993         Fix buffer overrun.
21994         * lib/vasnprintf.c (VASNPRINTF): If !USE_SNPRINTF && pad_ourselves:
21995         Don't consider the width for tmp_length. Check count against tmp_length
21996         before doing the padding. Ensure enough allocation during padding.
21997
21998 2008-03-30  Eric Blake  <ebb9@byu.net>
21999
22000         strtod touchups.
22001         * lib/strtod.c (strtod): Avoid compiler warnings.
22002         Reported by Jim Meyering.
22003
22004 2008-03-30  Bruno Haible  <bruno@clisp.org>
22005
22006         * lib/unistdio/u-vsprintf.h (EOVERFLOW): Remove fallback.
22007         * modules/unistdio/ulc-vsprintf (Depends-on): Add EOVERFLOW.
22008         * modules/unistdio/u8-vsprintf (Depends-on): Add EOVERFLOW.
22009         * modules/unistdio/u8-u8-vsprintf (Depends-on): Add EOVERFLOW.
22010         * modules/unistdio/u16-vsprintf (Depends-on): Add EOVERFLOW.
22011         * modules/unistdio/u16-u16-vsprintf (Depends-on): Add EOVERFLOW.
22012         * modules/unistdio/u32-vsprintf (Depends-on): Add EOVERFLOW.
22013         * modules/unistdio/u32-u32-vsprintf (Depends-on): Add EOVERFLOW.
22014
22015         * lib/unistdio/u-vsnprintf.h (EOVERFLOW): Remove fallback.
22016         * modules/unistdio/ulc-vsnprintf (Depends-on): Add EOVERFLOW.
22017         * modules/unistdio/u8-vsnprintf (Depends-on): Add EOVERFLOW.
22018         * modules/unistdio/u8-u8-vsnprintf (Depends-on): Add EOVERFLOW.
22019         * modules/unistdio/u16-vsnprintf (Depends-on): Add EOVERFLOW.
22020         * modules/unistdio/u16-u16-vsnprintf (Depends-on): Add EOVERFLOW.
22021         * modules/unistdio/u32-vsnprintf (Depends-on): Add EOVERFLOW.
22022         * modules/unistdio/u32-u32-vsnprintf (Depends-on): Add EOVERFLOW.
22023
22024         * lib/unistdio/u-vasprintf.h (EOVERFLOW): Remove fallback.
22025         * modules/unistdio/ulc-vasprintf (Depends-on): Add EOVERFLOW.
22026         * modules/unistdio/u8-vasprintf (Depends-on): Add EOVERFLOW.
22027         * modules/unistdio/u8-u8-vasprintf (Depends-on): Add EOVERFLOW.
22028         * modules/unistdio/u16-vasprintf (Depends-on): Add EOVERFLOW.
22029         * modules/unistdio/u16-u16-vasprintf (Depends-on): Add EOVERFLOW.
22030         * modules/unistdio/u32-vasprintf (Depends-on): Add EOVERFLOW.
22031         * modules/unistdio/u32-u32-vasprintf (Depends-on): Add EOVERFLOW.
22032
22033         * lib/unistdio/ulc-vfprintf.c (EOVERFLOW): Remove fallback.
22034         * modules/unistdio/ulc-vfprintf (Depends-on): Add EOVERFLOW.
22035
22036         * lib/unistdio/ulc-fprintf.c (EOVERFLOW): Remove fallback.
22037         * modules/unistdio/ulc-fprintf (Depends-on): Add EOVERFLOW.
22038
22039         * lib/xvasprintf.c (EOVERFLOW): Remove fallback.
22040         * modules/xvasprintf (Depends-on): Add EOVERFLOW.
22041
22042         * lib/vsprintf.c (EOVERFLOW): Remove fallback.
22043         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Drop gl_EOVERFLOW.
22044         * modules/vsprintf-posix (Depends-on): Add EOVERFLOW.
22045
22046         * lib/vsnprintf.c (EOVERFLOW): Remove fallback.
22047         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Drop gl_EOVERFLOW.
22048         * modules/vsnprintf (Depends-on): Add EOVERFLOW.
22049
22050         * lib/vfprintf.c (EOVERFLOW): Remove fallback.
22051         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Drop gl_EOVERFLOW.
22052         * modules/vfprintf-posix (Depends-on): Add EOVERFLOW.
22053
22054         * lib/vasprintf.c (EOVERFLOW): Remove fallback.
22055         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Drop gl_EOVERFLOW.
22056         * modules/vasprintf (Depends-on): Add EOVERFLOW.
22057
22058         * lib/vasnprintf.c (EOVERFLOW): Remove fallback.
22059         * m4/vasnprintf.m4 (gl_FUNC_VASNPRINTF): Drop gl_EOVERFLOW.
22060         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Drop gl_EOVERFLOW.
22061         * modules/vasnprintf (Files): Remove m4/eoverflow.m4.
22062         (Depends-on): Add EOVERFLOW.
22063         * modules/unistdio/ulc-vasnprintf (Files): Remove m4/eoverflow.m4.
22064         (Depends-on): Add EOVERFLOW.
22065         * modules/unistdio/u8-vasnprintf (Files): Remove m4/eoverflow.m4.
22066         (Depends-on): Add EOVERFLOW.
22067         * modules/unistdio/u8-u8-vasnprintf (Files): Remove m4/eoverflow.m4.
22068         (Depends-on): Add EOVERFLOW.
22069         * modules/unistdio/u16-vasnprintf (Files): Remove m4/eoverflow.m4.
22070         (Depends-on): Add EOVERFLOW.
22071         * modules/unistdio/u16-u16-vasnprintf (Files): Remove m4/eoverflow.m4.
22072         (Depends-on): Add EOVERFLOW.
22073         * modules/unistdio/u32-vasnprintf (Files): Remove m4/eoverflow.m4.
22074         (Depends-on): Add EOVERFLOW.
22075         * modules/unistdio/u32-u32-vasnprintf (Files): Remove m4/eoverflow.m4.
22076         (Depends-on): Add EOVERFLOW.
22077
22078         * lib/sprintf.c (EOVERFLOW): Remove fallback.
22079         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Drop gl_EOVERFLOW.
22080         * modules/sprintf-posix (Depends-on): Add EOVERFLOW.
22081
22082         * lib/snprintf.c (EOVERFLOW): Remove fallback.
22083         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Drop gl_EOVERFLOW.
22084         * modules/snprintf (Depends-on): Add EOVERFLOW.
22085
22086         * lib/poll.c (EOVERFLOW): Remove fallback.
22087         * modules/poll (Depends-on): Add EOVERFLOW.
22088
22089         * lib/getugroups.c (EOVERFLOW): Remove fallback.
22090         * modules/getugroups (Depends-on): Add EOVERFLOW.
22091
22092         * lib/getdelim.c (EOVERFLOW): Remove fallback.
22093         * modules/getdelim (Depends-on): Add EOVERFLOW.
22094
22095         * lib/ftell.c (EOVERFLOW): Remove fallback.
22096         * modules/ftell (Depends-on): Add EOVERFLOW.
22097
22098         * lib/fprintf.c (EOVERFLOW): Remove fallback.
22099         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Drop gl_EOVERFLOW.
22100         * modules/fprintf-posix (Depends-on): Add EOVERFLOW.
22101
22102         * lib/c-stack.c (EOVERFLOW): Remove unused fallback.
22103
22104         * modules/EOVERFLOW-tests: New file.
22105         * tests/test-EOVERFLOW.c: New file.
22106
22107         * modules/EOVERFLOW: New file.
22108         * doc/posix-headers/errno.texi: Mention EOVERFLOW portability problem.
22109
22110 2008-03-30  Bruno Haible  <bruno@clisp.org>
22111
22112         Fix bug introduced on 2007-06-10.
22113         * lib/vasnprintf.c (VASNPRINTF): When performing zero-padding, use
22114         spaces instead of 0 digits for 's' also when ENABLE_UNISTDIO.
22115
22116 2008-03-30  Bruno Haible  <bruno@clisp.org>
22117
22118         Improve freadseek's efficiency after ungetc.
22119         * lib/freadseek.c: Include freadahead.h.
22120         (freadptrinc): New function, extracted from freadseek.
22121         (freadseek): Use it in a loop. Use freadahead to determine the number
22122         of loop iterations.
22123         * modules/freadseek (Depends-on): Add freadahead.
22124         (configure.ac): Require AC_C_INLINE.
22125
22126 2008-03-30  Bruno Haible  <bruno@clisp.org>
22127
22128         * lib/freadseek.c (freadseek): Don't ignore the return value of
22129         freadptr.
22130
22131 2008-03-29  Eric Blake  <ebb9@byu.net>
22132
22133         Add hex float support.
22134         * modules/strtod (Depends-on): Add c-ctype.
22135         (Link): Mention POW_LIB.
22136         * lib/strtod.c (strtod): Recognize hex floats.  Don't allow
22137         whitespace between 'e' and exponent.
22138         * tests/test-strtod.c (main): Enable hex float tests.
22139         * doc/posix-functions/strtod.texi (strtod): Document what gnulib
22140         now provides.
22141
22142         Document various strtod bugs, with some fixes.
22143         * doc/posix-functions/strtod.texi (strtod): Document bugs with
22144         "-0x", "inf", "nan", and hex constants.
22145         * doc/posix-functions/atof.texi (atof): Likewise.
22146         * modules/stdlib (Makefile.am): Support strtod.
22147         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Likewise.
22148         * m4/strtod.m4 (gl_FUNC_STRTOD): Fit in stdlib framework, and
22149         detect additional strtod bugs.
22150         * lib/stdlib.in.h (rpl_strtod): Add declarations.
22151         * lib/strtod.c (strtod): Return -0.0 on negative underflow.  Use
22152         bool where appropriate.  Parse 'inf' and 'nan'.
22153         * tests/test-strtod.c: New file.
22154         * modules/strtod (Depends-on): Add stdbool, stdlib.
22155         (configure.ac): Turn on module indicator.
22156         * modules/strtod-tests: New module.
22157
22158 2008-03-29  Eric Blake  <ebb9@byu.net>
22159
22160         Fix ftell on mingw.
22161         * lib/ftell.c (EOVERFLOW): Define if the system lacks it.
22162         * modules/ftell-tests (Depends-on): Add binary-io.
22163         * modules/ftello-tests (Depends-on): Likewise.
22164         * tests/test-ftell.c (main): Enhance test to cover behavior after
22165         ungetc.  Enforce binary mode.
22166         * tests/test-ftello.c (main): Likewise.
22167
22168         Pass test-freadseek on cygwin.
22169         * modules/freadseek (Depends-on): Use freadptr, not freadahead.
22170         * lib/freadseek.c (freadseek): Don't increment beyond bounds of
22171         ungetc buffer.
22172
22173         * tests/test-fflush2.c (main): Fix typo.
22174
22175 2008-03-29  Bruno Haible  <bruno@clisp.org>
22176
22177         * tests/test-fflush2.c (main): Temporarily disable the contents of
22178         this test.
22179         * m4/fflush.m4 (gl_FUNC_FFLUSH): Add a TODO.
22180         Reported by Eric Blake.
22181
22182 2008-03-28  Simon Josefsson  <simon@josefsson.org>
22183
22184         * lib/gc.h (enum Gc_hash): Add GC_SHA224.
22185         (GC_SHA224_DIGEST_SIZE): Add.
22186
22187         * lib/gc-libgcrypt.c (gc_hash_open): Handle SHA-224.
22188         (gc_hash_digest_length): Likewise.
22189         (gc_hash_buffer): Likewise.
22190
22191 2008-03-25  Bruno Haible  <bruno@clisp.org>
22192
22193         * doc/gnulib-tool.texi (gettextize and autopoint): Explain in more
22194         detail which gettext release to use.
22195         Reported by Simon Josefsson.
22196
22197 2008-03-26  Jim Meyering  <meyering@redhat.com>
22198
22199         gnumakefile: remove file from $(top_builddir), not from $(top_srcdir)
22200         * modules/gnumakefile (clean-GNUmakefile): Also, use
22201         test ... && ... || : syntax rather than if-then ... fi.
22202
22203         gnumakefile: Don't double-quote-expand $(VPATH) value.
22204         * modules/gnumakefile (clean-GNUmakefile): Use single quotes.
22205
22206 2008-03-24  Eric Blake  <ebb9@byu.net>
22207
22208         Alter GNUmakefile to install into top directory.
22209         * modules/maintainer-makefile: Split, and add dependency...
22210         * modules/gnumakefile: to this new module.
22211         * build-aux/GNUmakefile: Move...
22212         * top/GNUmakefile: ...here.
22213         * build-aux/maint.mk: Move...
22214         * top/maint.mk: ...here.
22215         * MODULES.html.sh (Support for maintaining...): Document new
22216         module.
22217
22218 2008-03-23  Bruno Haible  <bruno@clisp.org>
22219
22220         * gnulib-tool: New options --vc-files, --no-vc-files.
22221         (func_usage): Document them.
22222         (vc_files): New variable.
22223         (func_import): Consider vc_files.
22224         (func_create_testdir): Set vc_files to empty.
22225         Suggested by Jim Meyering and Karl Berry.
22226
22227 2008-03-23  Bruno Haible  <bruno@clisp.org>
22228
22229         Fix regex compilation error on HP-UX 11.
22230         * m4/regex.m4 (gl_PREREQ_REGEX): Require AC_TYPE_MBSTATE_T.
22231         * modules/regex (Files): Add m4/mbstate_t.m4.
22232         Reported by Ton Voon <ton.voon@altinity.com>.
22233
22234 2008-03-23  Bruno Haible  <bruno@clisp.org>
22235
22236         * doc/gnulib-tool.texi (gettextize and autopoint): New section.
22237
22238 2008-03-23  Eric Blake  <ebb9@byu.net>
22239             Bruno Haible  <bruno@clisp.org>
22240
22241         Install files from top/ in the destination directory.
22242         * gnulib-tool (func_get_automake_snippet): Synthesize an EXTRA_DIST
22243         augmentation also for the files from top/.
22244         (func_import, func_create_testdir): Rewrite file names:
22245         top/filename -> filename.
22246
22247 2008-03-23  Bruno Haible  <bruno@clisp.org>
22248
22249         Tweak "gnulib --version" output.
22250         * gnulib-tool (func_version): Replace "-dirty" suffix with "-modified".
22251
22252 2008-03-23  Bruno Haible  <bruno@clisp.org>
22253
22254         Tweak "gnulib --version" output.
22255         * gnulib-tool (func_version): Use date of last commit to ChangeLog,
22256         rather than contents of ChangeLog, when possible.
22257
22258 2008-03-21  Eric Blake  <ebb9@byu.net>
22259
22260         More --version tweaks.
22261         * gnulib-tool (func_version): Obey GNU Coding Standards.  Output
22262         date of last ChangeLog entry.
22263
22264 2008-03-21  Jim Meyering  <meyering@redhat.com>
22265
22266         * build-aux/GNUmakefile (_have-git-version-gen): Split long line.
22267
22268 2008-03-20  Eric Blake  <ebb9@byu.net>
22269
22270         VPATH fix.
22271         * build-aux/GNUmakefile (_have_git-version-gen): Look in correct dir.
22272
22273 2008-03-20  Simon Josefsson  <simon@josefsson.org>
22274
22275         * build-aux/GNUmakefile: Make git-version-gen optional.  Add
22276         _build-aux variable.  Suggested by Eric Blake <ebb9@byu.net>.
22277
22278 2008-03-20  Eric Blake  <ebb9@byu.net>
22279
22280         Sync GNUmakefile with coreutils.
22281         * build-aux/GNUmakefile (have-Makefile): Rename...
22282         (_have-Makefile): ...to this, for namespace consideration.
22283         (GNUmakefile.cfg): Include, if present.
22284         (_autoreconf): Define a default.
22285         (_is-dist-target): New rule for rebuilds to pick up intra-release
22286         version.
22287         (maint-cfg.mk): Rename...
22288         (cfg.mk): ...to this.
22289
22290 2008-03-18  Jim Meyering  <meyering@redhat.com>
22291
22292         New script and module: mktempd
22293         * MODULES.html.sh (maint+release support): Add mktempd.
22294         * build-aux/mktempd: New file.
22295         * modules/mktempd: New file.
22296
22297 2008-03-15  Jim Meyering  <meyering@redhat.com>
22298
22299         Undo last change.
22300         * lib/sha1.c, lib/md5.c: 63 != ~63.
22301         Reported by Andreas Schwab.
22302
22303         sha1.c, md5.c: Hoist a redundant expression.
22304         * lib/sha1.c (sha1_process_bytes): AND-off the low bits in
22305         "ctx->buflen" only once, before calling *_process_block.
22306         * lib/md5.c (md5_process_bytes): Likewise.
22307
22308 2008-03-14  Eric Blake  <ebb9@byu.net>
22309
22310         Bump copyright year in files generated by gnulib-tool.
22311         * gnulib-tool (func_emit_copyright_notice): Extract copyright from
22312         gnulib-tool, rather than hard-coding it.
22313
22314         Fix 'gnulib-tool --version' output to work with git.
22315         * gnulib-tool (func_gnulib_dir): New function, extracted from...
22316         (startup): ...here.
22317         (func_version): Use it to invoke git-version-gen, rather than
22318         relying on CVS keyword expansion.  Modernize wording.
22319         (cvsdatestamp, last_checkin_date, version): Kill unused
22320         variables.
22321
22322 2008-03-12  Jim Meyering  <meyering@redhat.com>
22323
22324         Recognize optional cast of the argument to free.
22325         * build-aux/useless-if-before-free: Update regexps.
22326
22327         * build-aux/bootstrap (gnulib_tool): Remove trailing blanks.
22328
22329 2008-03-11  Bruno Haible  <bruno@clisp.org>
22330
22331         Extend AC_LIB_LINKFLAGS to the situation of several libraries provided
22332         by a single package.
22333         * m4/lib-link.m4 (AC_LIB_FROMPACKAGE): New macro.
22334         (AC_LIB_LINKFLAGS_BODY): Use the information stored by
22335         AC_LIB_FROMPACKAGE. Use AC_ARG_WITH instead of AC_LIB_ARG_WITH.
22336         Reported by Sam Steingold <sds@gnu.org>.
22337
22338 2008-03-12  Sergey Poznyakoff  <gray@gnu.org.ua>
22339
22340         * build-aux/bootstrap (version_controlled_file): Adapt for SVN
22341         repositories.
22342
22343 2008-03-11  Bruno Haible  <bruno@clisp.org>
22344
22345         Avoid conflicts between local macro definitions.
22346         * m4/lib-link.m4 (AC_LIB_LINKFLAGS, AC_LIB_HAVE_LINKFLAGS,
22347         AC_LIB_LINKFLAGS_BODY): Use pushdef/popdef instead of define/undefine.
22348
22349 2008-03-10  Peter O'Gorman  <bug-gnulib@mlists.thewrittenword.com>
22350             Bruno Haible  <bruno@clisp.org>
22351
22352         Make va_copy work with some version of xlc on AIX 5.1.
22353         * lib/stdarg.in.h: New file.
22354         * m4/stdarg.m4 (gl_STDARG_H): Initialize STDARG_H and NEXT_STDARG_H.
22355         On AIX, use a <stdarg.h> file substitute.
22356         * modules/stdarg (Files): Add lib/stdarg.in.h.
22357         (Depends-on): Add include_next.
22358         (Makefile.am): Build a stdarg.h substitute if requested.
22359         * doc/posix-functions/va_copy.texi: Document the platforms lacking it.
22360
22361 2008-03-10  Bruno Haible  <bruno@clisp.org>
22362
22363         * m4/include_next.m4 (gl_CHECK_NEXT_HEADERS): Document a restriction.
22364         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Likewise.
22365         Reported by Peter O'Gorman <bug-gnulib@mlists.thewrittenword.com>.
22366
22367 2008-03-10  Bruno Haible  <bruno@clisp.org>
22368
22369         * modules/stdlib (Depends-on): Add include_next, remove
22370         absolute-header.
22371
22372 2008-03-09  Bruno Haible  <bruno@clisp.org>
22373
22374         * lib/freadahead.h (freadahead): Document more precisely.
22375         * lib/freadahead.c (freadahead): When an ungetc is in effect, return
22376         the sum of both buffer sizes.
22377         * tests/test-freadahead.c (main): Also test behaviour after ungetc.
22378         * NEWS: Document the change.
22379
22380 2008-03-09  Bruno Haible  <bruno@clisp.org>
22381
22382         Extend freadptr to return also the buffer size.
22383         * lib/freadptr.h (freadptr): Add sizep argument.
22384         * lib/freadptr.c: Include freadptr.h, not freadahead.h.
22385         (freadptr): Add sizep argument. Determine buffer size like freadahead
22386         does.
22387         * tests/test-freadptr.c: Don't include freadahead.h.
22388         (main): Adapt for new calling convention of freadptr.
22389         * tests/test-freadptr2.c: New file, based on tests/test-freadahead.c.
22390         * tests/test-freadptr2.sh: New file, based on tests/test-freadahead.sh.
22391         * modules/freadptr-tests (Files): Add tests/test-freadptr2.c,
22392         tests/test-freadptr2.sh.
22393         (Depends): Remove freadahead.
22394         (TESTS): Add test-freadptr2.sh.
22395         (check_PROGRAMS): Add test-freadptr2.
22396
22397 2008-03-09  Bruno Haible  <bruno@clisp.org>
22398
22399         * doc/Makefile (%.pdf): Explain how to remedy the save_size error.
22400         Report and solution by Simon Josefsson.
22401
22402 2008-03-06  Bruno Haible  <bruno@clisp.org>
22403
22404         Make fflush after ungetc work on BSD platforms.
22405         * lib/fflush.c (rpl_fflush): Discard ungetc buffer if possible.
22406         * tests/test-fflush2.c: New file.
22407         * tests/test-fflush2.sh: New file.
22408         * modules/fflush-tests (Files): Add tests/test-fflush2.sh,
22409         tests/test-fflush2.c.
22410         (Makefile.am): Build test-fflush2 and run test-fflush2.sh.
22411         * doc/posix-functions/fflush.texi: Document fflush after ungetc bug.
22412
22413 2008-03-06  Eric Blake  <ebb9@byu.net>
22414
22415         Likewise for ftello.
22416         * modules/ftello (Dependencies): Add extensions.
22417         * m4/ftello.m4 (gl_FUNC_FTELLO): Require AC_USE_SYSTEM_EXTENSIONS.
22418
22419 2008-03-06  Bruno Haible  <bruno@clisp.org>
22420
22421         * modules/fseeko (Dependencies): Add extensions.
22422         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Require AC_USE_SYSTEM_EXTENSIONS.
22423         Needed on glibc systems.
22424
22425 2008-03-06  Bruno Haible  <bruno@clisp.org>
22426
22427         * doc/gnulib-tool.texi (@nosuchmodulenote): Avoid line break inside
22428         email address.
22429         Reported by Thien-Thi Nguyen <ttn@gnuvola.org>.
22430
22431 2008-03-06  Bruno Haible  <bruno@clisp.org>
22432
22433         * users.txt: Add libgnupdf.
22434
22435 2008-03-06  Thien-Thi Nguyen  <ttn@gnuvola.org>  (tiny change)
22436
22437         * doc/gnulib-tool.texi (@nosuchmodulenote): New macro.
22438         (Header File Substitutes, Function Substitutes,
22439         Glibc Header File Substitutes, Glibc Function Substitutes): Use it.
22440         (Build robot for gnulib): Fix typo.
22441
22442 2008-03-06  Bruno Haible  <bruno@clisp.org>
22443
22444         * doc/gnulib-tool.texi (VCS Issues): Small updates.
22445         Reported by Thien-Thi Nguyen <ttn@gnuvola.org>.
22446
22447 2008-03-06  Bruno Haible  <bruno@clisp.org>
22448
22449         * doc/func.texi: New file, extracted from doc/gnulib.texi.
22450         * doc/gnulib.texi: Include it.
22451
22452 2008-03-06  Simon Josefsson  <simon@josefsson.org>
22453
22454         * modules/func (License): Change license to unlimited; there was
22455         no LGPL parts in the module anyway.
22456
22457 2008-03-06  Simon Josefsson  <simon@josefsson.org>
22458
22459         * modules/__func__: Renamed to modules/func.
22460         * modules/__func__-tests: Renamed to modules/func-tests.
22461         * tests/test-__func__.c: Renamed to tests/test-func.c.
22462         * m4/__func__.m4: Renamed to m4/func.m4.
22463         * doc/gnulib.texi (__func__): Section renamed to func.
22464         Suggested by Eric Blake <ebb9@byu.net>.
22465
22466 2008-03-06  Simon Josefsson  <simon@josefsson.org>
22467
22468         * doc/gnulib.texi (__func__): Use C99 terminology when talking
22469         about __func__.  Make example self-contained.  Suggested by Eric
22470         Blake <ebb9@byu.net>.
22471
22472         * tests/test-__func__.c (main): Avoid extraneous () around __func.
22473         Suggested by Eric Blake <ebb9@byu.net>.
22474
22475 2008-03-06  Simon Josefsson  <simon@josefsson.org>
22476
22477         * modules/__func__: New file.
22478         * modules/__func__-tests: New file.
22479         * tests/test-__func__.c: New file.
22480         * m4/__func__.m4: New file.
22481         * doc/gnulib.texi (__func__): Document __func__ module.
22482
22483 2008-03-05  Simon Josefsson  <simon@josefsson.org>
22484
22485         * modules/byteswap (License): Re-license as LGPLv2+.
22486
22487 2008-03-05  Simon Josefsson  <simon@josefsson.org>
22488
22489         * doc/Makefile: Add pdf target.
22490
22491 2008-03-05  Simon Josefsson  <simon@josefsson.org>
22492
22493         * modules/inline (License): Use 'unlimited', since there are only
22494         *.m4 files in this module.
22495
22496 2008-03-03  John E. Malmberg  <wb8tyw@qsl.net>  (tiny change)
22497             Bruno Haible  <bruno@clisp.org>
22498
22499         Add support for HP C 7.1 on OpenVMS 8.3.
22500         * lib/alloca.in.h (alloca): Define as alias for DEC C on VMS.
22501
22502 2008-03-03  John E. Malmberg  <wb8tyw@qsl.net>  (tiny change)
22503
22504         Update VMS specifics.
22505         * lib/getopt.c [VMS]: Remove include of unixlib.h.
22506
22507 2008-03-02  Jim Meyering  <meyering@redhat.com>
22508
22509         Remove the last dependency on the "free" module.
22510         * m4/readutmp.m4 (gl_READUTMP): Don't require gl_FUNC_FREE.
22511         Reported by Bob Proulx.
22512
22513         * lib/getdelim.c (getdelim): Don't leak memory upon failed realloc.
22514
22515         Remove useless "if" tests before free.  Deprecate "free" module.
22516         * doc/posix-functions/free.texi: Mention that this
22517         module is no longer useful.
22518         * modules/free (Notice): Say this module is obsolete.
22519         * modules/readutmp (Depends-on): Remove free.
22520         * lib/save-cwd.c (free_cwd): Remove useless "if" before free.
22521         * lib/putenv.c (putenv): Likewise.
22522         * lib/gc-gnulib.c (gc_cipher_close): Likewise.
22523         * lib/getaddrinfo.c (freeaddrinfo): Likewise.
22524         * tests/test-c-strcasestr.c (main): Likewise.
22525         * tests/test-c-strstr.c (main): Likewise.
22526         * tests/test-mbscasestr1.c (main): Likewise.
22527         * tests/test-mbscasestr2.c (main): Likewise.
22528         * tests/test-mbsstr1.c (main): Likewise.
22529         * tests/test-mbsstr2.c (main): Likewise.
22530         * tests/test-memmem.c (main): Likewise.
22531         * tests/test-strcasestr.c (main): Likewise.
22532         * tests/test-striconv.c (main): Likewise.
22533         * tests/test-striconveh.c (main): Likewise.
22534         * tests/test-striconveha.c (main): Likewise.
22535         * tests/test-strstr.c (main): Likewise.
22536
22537         * build-aux/git-version-gen: Adjust a comment and the Usage string.
22538
22539         bootstrap: sync from coreutils again
22540         * build-aux/bootstrap: Remove dangling m4/*.m4 symlinks.
22541
22542 2008-03-01  Jim Meyering  <meyering@redhat.com>
22543
22544         bootstrap: sync from coreutils
22545         * build-aux/bootstrap (update_po_files): Copy a .po file into place
22546         also when the target doesn't exist.
22547
22548 2008-03-01  Eric Blake  <ebb9@byu.net>
22549
22550         Fix bugs in last patch.
22551         * lib/memchr2.c (memchr2): Fix typo.
22552         * tests/test-memchr2.c: Test previous bug, and don't use GNU
22553         extension.
22554         Reported by Bruce Korb.
22555
22556         New module 'memchr2'.
22557         * modules/memchr2: New file.
22558         * modules/memchr2-tests: Likewise.
22559         * lib/memchr2.h: Likewise.
22560         * lib/memchr2.c: Likewise, based on memchr.c.
22561         * tests/test-memchr2.c: New test.
22562         * MODULES.html.sh (String handling): Add memchr2.
22563
22564 2008-02-29  Bruno Haible  <bruno@clisp.org>
22565
22566         * modules/freadseek-tests: New file.
22567         * tests/test-freadseek.sh: New file.
22568         * tests/test-freadseek.c: New file.
22569
22570         New module 'freadseek'.
22571         * modules/freadseek: New file.
22572         * lib/freadseek.h: New file.
22573         * lib/freadseek.c: New file.
22574         * MODULES.html.sh (File stream based Input/Output): Add freadseek.
22575
22576 2008-02-29  Sergey Poznyakoff  <gray@gnu.org.ua>
22577
22578         * users.txt: Add anubis, cpio, mailfromd, mailutils, radius,
22579         wydawca.
22580
22581         * m4/argp.m4 (gl_ARGP): Use AC_TRY_LINK to test if
22582         program_invocation_name and program_invocation_short_name are
22583         present.
22584
22585 2008-02-28  Bruno Haible  <bruno@clisp.org>
22586
22587         * tests/test-freadptr.c: Add a test for behaviour after ungetc.
22588         * tests/test-freadptr.sh: Also test non-seekable stdin.
22589
22590 2008-02-28  Sergey Poznyakoff  <gray@gnu.org.ua>
22591
22592         * build-aux/bootstrap (source_base, m4_base)
22593         (doc_base, tests_base): New variables.
22594         (gnulib_tool_options): Do not hardcode base directories, use
22595         the above variables instead.
22596
22597 2008-02-28  Atsushi SAKAI  <sakaia@jp.fujitsu.com>
22598
22599         * lib/xsize.h: Fix typo in comment: s/tupe/type/.
22600
22601 2008-02-28  Bruno Haible  <bruno@clisp.org>
22602
22603         * modules/freadptr-tests: New file.
22604         * tests/test-freadptr.sh: New file.
22605         * tests/test-freadptr.c: New file.
22606
22607         New module 'freadptr'.
22608         * modules/freadptr: New file.
22609         * lib/freadptr.h: New file.
22610         * lib/freadptr.c: New file.
22611         * MODULES.html.sh (File stream based Input/Output): Add freadptr.
22612
22613 2008-02-26  Karl Berry  <karl@freefriends.org>
22614
22615         Sync from Libtool:
22616         * libltdl/argz.c (argz_add, argz_count): New functions.
22617         * libltdl/argz.in.h: Declare them.
22618         Report by Juan Manuel Guerrero <juan.guerrero@gmx.de>.
22619
22620 2008-02-22  Bruno Haible  <bruno@clisp.org>
22621
22622         * m4/time_r.m4 (gl_TIME_R): Also check that localtime_r's return type
22623         is a pointer type.  Needed for HP-UX 10.
22624         * doc/posix-functions/localtime_r.texi: Mention HP-UX 10.
22625         * doc/posix-functions/gmtime_r.texi: Likewise.
22626         Reported by Peter O'Gorman <bug-gnulib@mlists.thewrittenword.com>.
22627
22628 2008-02-24  Bruno Haible  <bruno@clisp.org>
22629
22630         * modules/environ-tests: New file.
22631         * tests/test-environ.c: New file.
22632
22633         New module 'environ'.
22634         * modules/environ: New file.
22635         * lib/unistd.in.h (environ): New declaration.
22636         * m4/environ.m4: New file.
22637         (gt_CHECK_VAR_DECL): Moved here from m4/setenv.m4. Undefine gt_cv_var
22638         after use.
22639         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_ENVIRON and
22640         HAVE_DECL_ENVIRON.
22641         * modules/unistd (Makefile.am): Substitute also GNULIB_ENVIRON and
22642         HAVE_DECL_ENVIRON.
22643         * doc/posix-functions/environ.texi: Mention module 'environ'. Remove
22644         wrong claim that 'environ' is missing on some systems.
22645         * modules/execute (Depends-on): Add environ.
22646         * lib/execute.c (environ): Remove fallback declaration.
22647         * modules/pipe (Depends-on): Add environ.
22648         * lib/pipe.c (environ): Remove fallback declaration.
22649         * modules/setenv (Depends-on): Add environ.
22650         * lib/setenv.c (environ): Remove fallback declaration.
22651         * modules/unsetenv (Depends-on): Add environ.
22652         * lib/unsetenv.c (environ): Remove fallback declaration.
22653         * m4/setenv.m4 (gt_CHECK_VAR_DECL): Remove macro. Moved to
22654         m4/environ.m4.
22655         (gl_PREREQ_SETENV): Require gl_ENVIRON instead of testing for environ.
22656         (gl_PREREQ_UNSETENV): Likewise.
22657
22658 2008-02-24  Bruno Haible  <bruno@clisp.org>
22659
22660         * doc/posix-functions/environ.texi: Document the MacOS X problem.
22661
22662 2008-02-20  Bob Proulx  <bob@proulx.com>
22663
22664         Enable use of older two part flavor 'git describe'.
22665         * build-aux/git-version-gen: If using the older two part flavor of
22666         git version then recreate the third part now present in the
22667         newer three part flavor of git describe.
22668
22669 2008-02-20  Martin Buchholz  <martin@xemacs.org>  (tiny change)
22670
22671         * lib/fts.c (fts_build): Typo correction to comment.
22672
22673 2008-02-17  Bruno Haible  <bruno@clisp.org>
22674
22675         * lib/git-merge-changelog.c (main) [split_merged_entry]: Avoid
22676         generating no-op conflicts.
22677
22678 2008-02-17  Bruno Haible  <bruno@clisp.org>
22679
22680         Speed up by 10%.
22681         * lib/git-merge-changelog.c (main): Use the iterator to iterate through
22682         result_entries, rather than an index-based loop.
22683
22684 2008-02-17  Bruno Haible  <bruno@clisp.org>
22685
22686         Speed up by 25%.
22687         * lib/git-merge-changelog.c (struct entry): New fields 'hashcode',
22688         'hashcode_cached'.
22689         (entry_create): New function.
22690         (entry_hashcode): Use the cached hashcode if possible.
22691         (read_changelog_file, try_split_merged_entry): Use entry_create.
22692
22693 2008-02-17  Bruno Haible  <bruno@clisp.org>
22694
22695         Speed up from O(n^2) to O(n) for long ChangeLog files.
22696         * lib/git-merge-changelog.c: Include gl_rbtreehash_list.h.
22697         (read_changelog_file): Change implementation of entries_reversed list
22698         to rbtreehash.
22699         * modules/git-merge-changelog (Depends-on): Add rbtreehash-list.
22700
22701 2008-02-17  Bruno Haible  <bruno@clisp.org>
22702
22703         New option --split-merged-entry.
22704         * lib/git-merge-changelog.c (FSTRCMP_STRICTER_THRESHOLD): New macro.
22705         (find_paragraph_end, try_split_merged_entry): New functions.
22706         (long_options): Add option --split-merged-entry.
22707         (usage): Document option --split-merged-entry.
22708         (main): Implement option --split-merged-entry.
22709         Reported by Eric Blake.
22710
22711 2008-02-17  Bruno Haible  <bruno@clisp.org>
22712
22713         * lib/git-merge-changelog.c: Include c-strstr.h.
22714         (main): Support the "git pull --rebase" situation.
22715         * modules/git-merge-changelog (Depends-on): Add c-strstr.
22716         Reported by Eric Blake.
22717
22718 2008-02-16  Eric Blake  <ebb9@byu.net>
22719
22720         Avoid doubling \ in common case of "c-maybe" quoting style.
22721         * lib/quotearg.c (quotearg_buffer_restyled): Don't escape \ when
22722         eliding outer quotes.
22723         * lib/quotearg.h: Document this.
22724         * tests/test-quotearg.c (result_strings, inputs, results_g)
22725         (flag_results, locale_results): Test it by adding a new string to
22726         each test group.
22727         (compare_strings): Test new string.
22728
22729 2008-02-13  Eric Blake  <ebb9@byu.net>
22730
22731         Avoid trigraph quoting in default output.
22732         * lib/quotearg.h (enum quoting_flags): Add QA_SPLIT_TRIGRAPHS.
22733         * lib/quotearg.c (quotearg_buffer_restyled): Don't quote trigraphs
22734         unless explicitly requested.
22735         * tests/test-quotearg.c (flag_results, main): Add additional tests.
22736
22737 2008-02-13  Lasse Collin  <lasse.collin@tukaani.org>
22738
22739         Don't rely on signed integer overflowing to negative value.
22740         * lib/getugroups.c (getugroups): Include <limits.h>.
22741         Instead, compare against INT_MAX, and increment only if the test passes.
22742
22743 2008-02-13  Jim Meyering  <meyering@redhat.com>
22744         and Eric Blake  <ebb9@byu.net>
22745
22746         Avoid shadowing warning and compile errors on Linux.
22747         * tests/test-quotearg.c [ENABLE_NLS]: Disable <libintl.h>
22748         forwarding macros on Linux.
22749         (dcgettext): Define a stub, for Linux.
22750         (results_g, main): Avoid warnings.
22751
22752 2008-02-12  Eric Blake  <ebb9@byu.net>
22753
22754         Silence warning in last patch.
22755         * lib/quotearg.c (quotearg_buffer_restyled): Add missing const.
22756
22757         Quotearg part 4: add tests, fix c-maybe colon quoting.
22758         * lib/quotearg.h: Improve documentation.
22759         * lib/quotearg.c (quotearg_buffer_restyled): Don't add extra
22760         escapes when adding outer quotes.  When quoting trigraphs, use
22761         valid C notation.  When quoting NUL, omit extra characters if next
22762         character is not digit.  Alter prototype.
22763         (quotearg_buffer, quotearg_alloc_mem, quotearg_n_options): Adjust
22764         callers.
22765         * modules/quotearg-tests: New module.
22766         * tests/test-quotearg.c: New test.
22767
22768 2008-02-07  Eric Blake  <ebb9@byu.net>
22769
22770         Quotearg part 3: add flag to control outer quote elision.
22771         * lib/quotearg.h (c_maybe_quoting_style): New style.
22772         (enum quoting_flags): Better documentation of flags.
22773         * lib/quotearg.c (quoting_style_args, quoting_style_vals): Add
22774         c-maybe style.
22775         (quotearg_buffer_restyled): Handle new flag to elide outer
22776         quotes.
22777
22778         Quotearg part 2: add flag that can control NUL elision.
22779         * lib/quotearg.h (set_quoting_flags): New prototype.
22780         * lib/quotearg.c (struct quoting_options): Add flag field.
22781         (set_quoting_flags): New function.
22782         (quotearg_buffer_restyled): Add flags parameter.
22783         (quotearg_alloc_mem): Set the flag if length cannot be returned.
22784         (quotearg_n_options): Set the flag, since length cannot be
22785         returned.
22786         (quoting_options_from_style): Default flags correctly.
22787
22788         Quotearg part 1: more wrappers, restore quotearg_char state.
22789         * lib/quotearg.h (quotearg_alloc_mem, quotearg_n_mem)
22790         (quotearg_mem, quotearg_style_mem, quotearg_char_mem)
22791         (quotearg_colon_mem): New wrappers.
22792         * lib/quotearg.c (quotearg_alloc, quotearg_char): Rewrite...
22793         (quotearg_alloc_mem, quotearg_char_mem): ...in terms of these new
22794         functions.
22795         (quotearg_n_mem, quotearg_mem, quotearg_style_mem)
22796         (quotearg_colon_mem): New functions.
22797
22798 2008-02-11  Bruno Haible  <bruno@clisp.org>
22799
22800         * modules/git-merge-changelog (Makefile.am): Don't use -L and -l for a
22801         library in the current directory: it does not work with parallel make.
22802         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
22803
22804 2008-02-11  Bruno Haible  <bruno@clisp.org>
22805
22806         * .gitattributes: New file.
22807
22808 2008-02-11  Jim Meyering  <meyering@redhat.com>
22809
22810         useless-if-before-free: Fix reversed exit values.
22811         * build-aux/useless-if-before-free: Use correct values
22812         for EXIT_MATCH and EXIT_NO_MATCH.
22813
22814         * build-aux/useless-if-before-free: Close stdout carefully.
22815
22816 2008-02-10  Bruno Haible  <bruno@clisp.org>
22817
22818         New module 'git-merge-changelog'.
22819         * modules/git-merge-changelog: New file.
22820         * lib/git-merge-changelog.c: New file.
22821
22822 2008-02-10  Jim Meyering  <meyering@redhat.com>
22823
22824         useless-if-before-free: New option: --list (-l).
22825
22826         useless-if-before-free: Don't exit immediately upon open failure.
22827         * build-aux/useless-if-before-free: Exit 2 for errors.
22828         Upon failure to open a file, don't exit immediately.
22829         Rather, just warn and continue with any remaining files.
22830
22831 2008-02-10  Bruno Haible  <bruno@clisp.org>
22832
22833         New abstract list operation 'node_set_value'.
22834         * lib/gl_list.h (gl_list_node_set_value): New function.
22835         (struct gl_list_implementation): New field node_set_value.
22836         * lib/gl_list.c (gl_list_node_set_value): New function.
22837         * lib/gl_array_list.c (gl_array_node_set_value): New function.
22838         (gl_array_list_implementation): Update.
22839         * lib/gl_carray_list.c (gl_carray_node_set_value): New function.
22840         (gl_carray_list_implementation): Update.
22841         * lib/gl_anylinked_list2.h (gl_linked_node_set_value): New function.
22842         * lib/gl_linked_list.c (gl_linked_list_implementation): Update.
22843         * lib/gl_linkedhash_list.c (gl_linkedhash_list_implementation): Update.
22844         * lib/gl_anytree_list2.h (gl_tree_node_set_value): New function.
22845         * lib/gl_avltree_list.c (gl_avltree_list_implementation): Update.
22846         * lib/gl_rbtree_list.c (gl_rbtree_list_implementation): Update.
22847         * lib/gl_avltreehash_list.c (gl_avltreehash_list_implementation):
22848         Update.
22849         * lib/gl_rbtreehash_list.c (gl_rbtreehash_list_implementation): Update.
22850         * lib/gl_sublist.c (gl_sublist_node_set_value): New function.
22851         (gl_sublist_list_implementation): Update.
22852
22853 2008-02-10  Bruno Haible  <bruno@clisp.org>
22854
22855         * lib/diffseq.h: Write "ELEMENT const" instead of "const ELEMENT".
22856         Needed when ELEMENT is #defined to 'some_type *'.
22857
22858 2008-02-10  Jim Meyering  <meyering@redhat.com>
22859
22860         New script and module: useless-if-before-free
22861         * MODULES.html.sh (maint+release support): Add useless-if-before-free.
22862         * build-aux/useless-if-before-free: New file.
22863         * modules/useless-if-before-free: New file.
22864
22865         * build-aux/gitlog-to-changelog: Use committer date, not author date.
22866
22867         xstrtol_error: Fix typo.
22868         * lib/xstrtol-error.c (xstrtol_error): The parameter was unused:
22869         s/exit_failure/exit_status/.
22870
22871 2008-02-09  Jim Meyering  <meyering@redhat.com>
22872
22873         New script and module: gitlog-to-changelog
22874         * MODULES.html.sh (maint+release support): Add gitlog-to-changelog.
22875         * modules/gitlog-to-changelog: New file.
22876         * build-aux/gitlog-to-changelog: New file.
22877
22878 2008-02-08  Jim Meyering  <meyering@redhat.com>
22879
22880         Avoid two "parameter unused" warnings.
22881         * lib/stat-time.h (get_stat_birthtime_ns, get_stat_birthtime):
22882         Mark "st" as used.
22883
22884         Use "git COMMAND", not "git-COMMAND".
22885         * build-aux/bootstrap (version_controlled_file): s/git-rm/git-rm/.
22886         * build-aux/announce-gen (get_tool_versions): Correct a diagnostic.
22887         * build-aux/git-version-gen: Use "git status", not "git-status".
22888
22889 2008-02-07  Bruno Haible  <bruno@clisp.org>
22890
22891         * lib/vasnprintf.c (VASNPRINTF): Don't use %n on native Woe32 systems.
22892         Avoids a crash on Windows Vista.
22893         Reported by Adam Strzelecki <ono@java.pl> via
22894         Simon Josefsson <simon@josefsson.org>.
22895
22896 2008-02-06  Bruno Haible  <bruno@clisp.org>
22897
22898         Fix *printf behaviour regarding the left-adjust flag on HP-UX 10.20.
22899         * m4/printf.m4 (gl_PRINTF_FLAG_LEFTADJUST): New macro.
22900         * lib/vasnprintf.c (VASNPRINTF): Handle NEED_PRINTF_FLAG_LEFTADJUST.
22901         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_FLAG_LEFTADJUST): New macro.
22902         (gl_PREREQ_VASNPRINTF_WITH_EXTRAS): Invoke it.
22903         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
22904         gl_PRINTF_FLAG_LEFTADJUST and test its result. Invoke
22905         gl_PREREQ_VASNPRINTF_FLAG_LEFTADJUST.
22906         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
22907         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
22908         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
22909         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
22910         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
22911         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
22912         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
22913         * tests/test-vasnprintf-posix.c (test_function): Add testcases for the
22914         left-adjust flag.
22915         * tests/test-snprintf-posix.h (test_function): Likewise.
22916         * tests/test-sprintf-posix.h (test_function): Likewise.
22917         * tests/test-vasprintf-posix.c (test_function): Likewise.
22918         * doc/posix-functions/fprintf.texi: Update.
22919         * doc/posix-functions/printf.texi: Update.
22920         * doc/posix-functions/snprintf.texi: Update.
22921         * doc/posix-functions/sprintf.texi: Update.
22922         * doc/posix-functions/vfprintf.texi: Update.
22923         * doc/posix-functions/vprintf.texi: Update.
22924         * doc/posix-functions/vsnprintf.texi: Update.
22925         * doc/posix-functions/vsprintf.texi: Update.
22926         Reported by Peter Fales <psfales@alcatel-lucent.com>.
22927
22928 2008-02-06  Bruno Haible  <bruno@clisp.org>
22929
22930         Fix bug introduced on 2008-01-26.
22931         * lib/isnan.c (FUNC): Set to rpl_isnand, not rpl_isnan.
22932
22933 2008-02-06  Bruno Haible  <bruno@clisp.org>
22934
22935         Fix bug introduced on 2007-06-10.
22936         * lib/vasnprintf.c (VASNPRINTF): Perform zero-padding also if
22937         !NEED_PRINTF_FLAG_ZERO.
22938
22939 2008-02-05  Peter O'Gorman <pogma@thewrittenword.com>
22940
22941         getloadavg: use libperfstat on AIX5
22942         * lib/getloadavg.c, m4/getloadavg.m4 [aix]: Use libperfstat
22943
22944 2008-02-03  Bruno Haible  <bruno@clisp.org>
22945
22946         * lib/diffseq.h: Add comments about required #includes.
22947         Reported by Michael Biggs <gnulib@doubleplum.net>.
22948
22949 2008-02-01  Bruno Haible  <bruno@clisp.org>
22950
22951         * users.txt: Add gnuit.
22952
22953 2008-01-31  Bruno Haible  <bruno@clisp.org>
22954
22955         * lib/md4.c (set_uint32): Mark as inline.
22956         * lib/md5.c (set_uint32): Likewise.
22957         * lib/sha1.c (set_uint32): Likewise.
22958         * m4/md4.m4 (gl_MD4): Require AC_C_INLINE.
22959         * m4/md5.m4 (gl_MD5): Likewise.
22960         * m4/sha1.m4 (gl_SHA1): Likewise.
22961
22962 2008-01-31  Jim Meyering  <meyering@redhat.com>
22963
22964         Use "sizeof VAR", rather than a literal "4".
22965         * lib/md5.c (md5_read_ctx): Use sizeof ctx->A, not 4.
22966         * lib/md4.c (md4_read_ctx): Likewise.
22967         * lib/sha1.c (sha1_read_ctx): Likewise.
22968
22969 2008-01-31  Simon Josefsson  <simon@josefsson.org>
22970
22971         * tests/test-sha1.c: New file, based on test-md5.c.
22972
22973         * modules/crypto/sha1-tests: New file.
22974
22975 2008-01-31  Simon Josefsson  <simon@josefsson.org>
22976
22977         * lib/sha1.h (SHA1_DIGEST_SIZE): Define.
22978
22979 2008-01-31  Jim Meyering  <meyering@redhat.com>
22980
22981         Prefer "sizeof v" over the equivalent "4".
22982         * lib/md4.c (set_uint32): Use "sizeof v" as memcpy length, not 4.
22983         * lib/md5.c (set_uint32): Likewise.
22984         * lib/sha1.c (set_uint32): Likewise.
22985
22986 2008-01-31  Simon Josefsson  <simon@josefsson.org>
22987
22988         * lib/sha1.c (set_uint32): Mark function as static.
22989
22990 2008-01-31  Simon Josefsson  <simon@josefsson.org>
22991
22992         md2: clarify comments to say that alignment is not required.
22993         * lib/md2.h: Remove warning about alignment in comment.
22994         * lib/md2.c (md2_read_ctx, md2_finish_ctx): Doc fix, alignment has
22995         never been required.
22996
22997 2008-01-31  Simon Josefsson  <simon@josefsson.org>
22998
22999         md4: adapt alignment constraint fix from sha1.
23000         * lib/md4.c (set_uint32): New function, from sha1.c
23001         (md4_read_ctx): Use it.
23002         (md4_finish_ctx): Doc fix.
23003         * lib/md4.h: Doc fix.
23004
23005 2008-01-31  Simon Josefsson  <simon@josefsson.org>
23006
23007         md5: adapt alignment constraint fix from sha1.
23008         * lib/md5.c (set_uint32): New function, from sha1.c
23009         (md5_read_ctx): Use it.
23010         (md5_finish_ctx): Doc fix.
23011         * lib/md5.h: Doc fix.
23012
23013 2008-01-30  Peter Palfrader  <weasel@debian.org>
23014
23015         sha1: remove the result buffer alignment constraint
23016         * lib/sha1.c (set_uint32): New function.
23017         (sha1_read_ctx): Rewrite to remove the result buffer alignment
23018         constraint.
23019         (sha1_finish_ctx): Remove comment warning about alignment constraint.
23020         * lib/sha1.h: Likewise.
23021
23022 2008-01-30  Andreas Schwab  <schwab@suse.de>
23023             Bruno Haible  <bruno@clisp.org>
23024
23025         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Include <float.h> and ensure a
23026         correct definition of LDBL_MIN_EXP.
23027
23028 2008-01-30  Karl Berry  <karl@gnu.org>
23029
23030         * config/srclist-update: try to preserve x bit on updates.
23031         * config/srclistvars.sh: update for karl.
23032
23033 2008-01-29  Jim Meyering  <meyering@redhat.com>
23034
23035         vasnprintf.c: Avoid warning about unused label
23036         * lib/vasnprintf.c (VASNPRINTF) [!USE_SNPRINTF]: Guard the
23037         "overflow" label definition and associated code with the
23038         same cpp condition that guards the sole use of that label.
23039
23040 2008-01-26  Bruno Haible  <bruno@clisp.org>
23041
23042         * m4/isnanl.m4 (gl_HAVE_ISNANL_NO_LIBM, gl_HAVE_ISNANL_IN_LIBM,
23043         gl_FUNC_ISNANL_WORKS): Test the GCC >= 4.0 built-in.
23044         * lib/isnanl.h (isnanl): Use the GCC >= 4.0 built-in.
23045         * lib/isnanl-nolibm.h (isnanl): Likewise.
23046         Reported by Paul Eggert <eggert@cs.ucla.edu>.
23047
23048 2008-01-26  Bruno Haible  <bruno@clisp.org>
23049
23050         * m4/isnand.m4 (gl_FUNC_ISNAND_NO_LIBM): Test the GCC >= 4.0 built-in.
23051         * lib/isnand.h (isnand): Use the GCC >= 4.0 built-in.
23052
23053 2008-01-26  Bruno Haible  <bruno@clisp.org>
23054
23055         * m4/isnanf.m4 (gl_HAVE_ISNANF_NO_LIBM, gl_ISNANF_WORKS): Test the
23056         GCC >= 4.0 built-in.
23057         * lib/isnanf.h (isnanf): Use the GCC >= 4.0 built-in.
23058
23059 2008-01-26  Bruno Haible  <bruno@clisp.org>
23060
23061         Rename isnan, applicable to 'double' only, to isnand.
23062         * modules/isnand-nolibm: Renamed from modules/isnan-nolibm.
23063         (Files): Add lib/isnand.h, lib/isnand.c. Remove lib/isnan.h.
23064         (configure.ac): Update.
23065         (Include): Replace "isnan.h" with "isnand.h".
23066         * m4/isnand.m4: Renamed from m4/isnan.m4.
23067         (gl_FUNC_ISNAND_NO_LIBM): Renamed from gl_FUNC_ISNAN_NO_LIBM. Set
23068         HAVE_ISNAND_IN_LIBC instead of HAVE_ISNAN_IN_LIBC. Build isnand.c
23069         instead of isnan.c.
23070         * lib/isnand.h: Renamed from lib/isnan.h. Test HAVE_ISNAND_IN_LIBC
23071         instead of HAVE_ISNAN_IN_LIBC.
23072         (isnand): Renamed from isnan.
23073         * lib/isnand.c: New file.
23074         * modules/isnand-nolibm-tests: Renamed from modules/isnan-nolibm-tests.
23075         (Files): Add tests/test-isnand.c. Remove tests/test-isnan.c.
23076         (Makefile.am): Update.
23077         * tests/test-isnand.c: Renamed from tests/test-isnan.c.
23078         Include isnand.h instead of isnan.h.
23079         (main): Test isnand instead of isnan.
23080         * modules/fprintf-posix (Depends-on): Add isnand-nolibm, remove
23081         isnan-nolibm.
23082         * modules/frexp (Depends-on): Likewise.
23083         * modules/frexp-tests (Depends-on): Likewise.
23084         * modules/frexp-nolibm (Depends-on): Likewise.
23085         * modules/frexp-nolibm-tests (Depends-on): Likewise.
23086         * modules/isfinite (Depends-on): Likewise.
23087         * modules/round-tests (Depends-on): Likewise.
23088         * modules/signbit (Depends-on): Likewise.
23089         * modules/signbit-tests (Depends-on): Likewise.
23090         * modules/snprintf-posix (Depends-on): Likewise.
23091         * modules/sprintf-posix (Depends-on): Likewise.
23092         * modules/trunc-tests (Depends-on): Likewise.
23093         * modules/unistdio/u8-vasnprintf (Depends-on): Likewise.
23094         * modules/unistdio/u8-u8-vasnprintf (Depends-on): Likewise.
23095         * modules/unistdio/u16-vasnprintf (Depends-on): Likewise.
23096         * modules/unistdio/u16-u16-vasnprintf (Depends-on): Likewise.
23097         * modules/unistdio/u32-vasnprintf (Depends-on): Likewise.
23098         * modules/unistdio/u32-u32-vasnprintf (Depends-on): Likewise.
23099         * modules/unistdio/ulc-vasnprintf (Depends-on): Likewise.
23100         * modules/vasnprintf-posix (Depends-on): Likewise.
23101         * modules/vasprintf-posix (Depends-on): Likewise.
23102         * modules/vfprintf-posix (Depends-on): Likewise.
23103         * modules/vsnprintf-posix (Depends-on): Likewise.
23104         * modules/vsprintf-posix (Depends-on): Likewise.
23105         * lib/frexp.c: Include isnand.h instead of isnan.h.
23106         (ISNAN): Set to isnand instead of isnan.
23107         * lib/isfinite.c: Include isnand.h instead of isnan.h.
23108         (gl_isfinited): Use isnand instead of isnan.
23109         * lib/signbitd.c: Include isnand.h instead of isnan.h.
23110         (gl_signbitd): Use isnand instead of isnan.
23111         * lib/vasnprintf.c: Include isnand.h instead of isnan.h.
23112         (is_infinite_or_zero, VASNPRINTF): Use isnand instead of isnan.
23113         * tests/test-frexp.c: Include isnand.h instead of isnan.h.
23114         (main): Use isnand instead of isnan.
23115         * tests/test-round1.c: Include isnand.h.
23116         (main): Use isnand instead of isnan.
23117         * tests/test-round2.c: Include isnand.h instead of isnan.h.
23118         (ISNAN): Set to isnand instead of isnan.
23119         * tests/test-trunc1.c: Include isnand.h.
23120         (main): Use isnand instead of isnan.
23121         * tests/test-trunc2.c: Include isnand.h instead of isnan.h.
23122         (equal): Use isnand instead of isnan.
23123         * MODULES.html.sh (Mathematics <math.h>): Replace isnan-nolibm with
23124         isnand-nolibm.
23125         * NEWS: Mention the change.
23126
23127 2008-01-25  Paul Eggert  <eggert@cs.ucla.edu>
23128             Bruno Haible  <bruno@clisp.org>
23129
23130         * m4/signbit.m4 (gl_SIGNBIT): Require a macro definition. Test whether
23131         the GCC builtins for signbits are present and set
23132         REPLACE_SIGNBIT_USING_GCC if so.
23133         * lib/math.in.h (signbit): Define using GCC builtins if
23134         REPLACE_SIGNBIT_USING_GCC is set.
23135         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize
23136         REPLACE_SIGNBIT_USING_GCC.
23137         * modules/math (Makefile.am): Substitute REPLACE_SIGNBIT_USING_GCC.
23138
23139 2008-01-25  Jim Meyering  <meyering@redhat.com>
23140
23141         Prefer <config.h> over "config.h".  See autoconf doc for explanation.
23142         * lib/poll.c: Include <config.h>, not "config.h".
23143         * tests/test-getaddrinfo.c: Likewise.
23144
23145 2008-01-25  Simon Josefsson  <simon@josefsson.org>
23146
23147         * modules/sockets-tests: New file.
23148
23149 2008-01-24  Simon Josefsson  <simon@josefsson.org>
23150
23151         * modules/sockets: New module, can be used to call WSA_Startup and
23152         WSA_Cleanup when needed.
23153
23154         * lib/sockets.h, lib/sockets.c: New files.
23155
23156         * m4/sockets.m4: New file.
23157
23158         * tests/test-sockets.c: New file.
23159
23160 2008-01-19  Bruno Haible  <bruno@clisp.org>
23161
23162         * doc/posix-headers: Renamed from doc/headers.
23163         * doc/posix-functions: Renamed from doc/functions.
23164         * doc/gnulib.texi: Update.
23165
23166 2008-01-19  Bruno Haible  <bruno@clisp.org>
23167
23168         * doc/glibc-functions/strcasestr.texi: Include contents of
23169         doc/functions/strcasestr.texi, fixing the list of platforms.
23170         * doc/functions/strcasestr.texi: Remove file.
23171
23172 2008-01-19  Bruno Haible  <bruno@clisp.org>
23173
23174         * doc/glibc-functions/memmem.texi: Include contents of
23175         doc/functions/memmem.texi.
23176         * doc/functions/memmem.texi: Remove file.
23177
23178 2008-01-18  Bruno Haible  <bruno@clisp.org>
23179
23180         * doc/glibc-functions/*.texi: New files.
23181         * doc/gnulib.texi (Glibc Function Substitutes): Completely rewritten
23182         to use the new files.
23183
23184 2008-01-17  Bruno Haible  <bruno@clisp.org>
23185
23186         * tests/test-gethostname.c (main): Fix printf statement.
23187
23188 2008-01-17  Simon Josefsson  <simon@josefsson.org>
23189
23190         * modules/gethostname-tests: New file.
23191
23192         * tests/test-gethostname.c: New file.
23193
23194 2008-01-17  Simon Josefsson  <simon@josefsson.org>
23195
23196         * lib/gethostname.c: Include string.h unconditionally, strncpy is
23197         used by the UNAME case.  Reported by Bruno Haible
23198         <bruno@clisp.org>.
23199
23200 2008-01-17  Eric Blake  <ebb9@byu.net>
23201
23202         Convert c-strcasestr to be more efficient.
23203         * modules/c-strcasestr (Files): Use Two-Way, not KMP.
23204         (Depends-on): Add c-strcase, remove malloca, strnlen.
23205         * tests/test-c-strcasestr.c (main): Enhance test.
23206         * lib/c-strcasestr.c (c_strcasestr): Rewrite to new algorithm.
23207
23208 2007-01-16  Paolo Bonzini  <bonzini@gnu.org>
23209
23210         * build-aux/bootstrap (MSGID_BUGS_ADDRESS): New overridable variable.
23211         Use it in creating po/Makevars.
23212
23213 2008-01-15  Simon Josefsson  <simon@josefsson.org>
23214
23215         * lib/gc-libgcrypt.c (gc_init): Disable secure memory by default.
23216         Applications that requires it should initialize libgcrypt
23217         manually.
23218
23219 2008-01-16  Simon Josefsson  <simon@josefsson.org>
23220
23221         * lib/gethostname.c [!HAVE_UNAME]: Need string.h for strcpy.
23222
23223 2008-01-15  Paul Eggert  <eggert@cs.ucla.edu>
23224
23225         Fix problem with getdate on mingw32 reported by Simon Josefsson
23226         in <http://lists.gnu.org/archive/html/bug-gnulib/2008-01/msg00192.html>.
23227         * lib/getdate.y (get_date): Check "HAVE_DECL_TZNAME", not "defined
23228         tzname", when deciding whether to declare tzname.
23229         * lib/strftime.c (tzname): Likewise.
23230
23231 2008-01-15  Bruno Haible  <bruno@clisp.org>
23232
23233         Work around a MacOS X 10.5 bug in frexpl().
23234         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Also check denormalized numbers.
23235         * doc/functions/frexpl.texi: Document the bug.
23236         Reported by Elias Pipping <pipping@gentoo.org>.
23237
23238 2008-01-14  Eric Blake  <ebb9@byu.net>
23239
23240         Touch up previous patch.
23241         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE): Fix typo.
23242         * doc/functions/strcasestr.texi (strcasestr): Document OpenBSD bug.
23243
23244         Convert strcasestr module to use Two-Way algorithm.
23245         * modules/strcasestr-simple: New module, based on the old
23246         strcasestr, but with Two-Way rather than KMP.
23247         * modules/strcasestr (Depends-on): Change to strcasestr-simple.
23248         * lib/string.in.h (rpl_strcasestr): Declare.
23249         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Check for linear
23250         performance.
23251         * lib/strcasestr.c (strcasestr): Simplify, and avoid malloc.
23252         * modules/string (Makefile.am): Support strcasestr.
23253         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Likewise.
23254         * modules/strcasestr-tests (Depends-on): Check for alarm.
23255         * tests/test-strcasestr.c: Augment test.
23256         * lib/str-two-way.h: Clean up stray macro.
23257         * NEWS: Document new module.
23258         * MODULES.html.sh (string handling): Likewise.
23259         * doc/functions/strcasestr.texi: New file.
23260         * doc/gnulib.texi (Function Substitutes): New node.  Move memmem
23261         here, since it is not a POSIX function.
23262
23263 2008-01-14  Colin Watson  <cjwatson@debian.org>
23264             Bruno Haible  <bruno@clisp.org>
23265
23266         * m4/strsignal.m4 (gl_FUNC_STRSIGNAL): Also check whether strsignal
23267         works fine; if not, set REPLACE_STRSIGNAL.
23268         (gl_PREREQ_STRSIGNAL): Require AC_DECL_SYS_SIGLIST.
23269         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
23270         REPLACE_STRSIGNAL.
23271         * lib/string.in.h (strsignal): Consider REPLACE_STRSIGNAL.
23272         * modules/string (Makefile.am): Substitute REPLACE_STRSIGNAL.
23273         * tests/test-strsignal.c (main): Check out-of-range signal numbers.
23274
23275 2008-01-14  Bruno Haible  <bruno@clisp.org>
23276
23277         * modules/strsignal (Include): Change to <string.h>.
23278
23279 2008-01-14  Colin Watson  <cjwatson@debian.org>
23280
23281         * modules/argp (Notice): Add a notice recommending to change
23282         XGETTEXT_OPTIONS.
23283         (configure.ac): Invoke AM_XGETTEXT_OPTION if it exists.
23284
23285 2008-01-13  Colin Watson  <cjwatson@debian.org>
23286
23287         * modules/strsignal-tests: New file.
23288         * tests/test-strsignal.c: New file.
23289
23290         * lib/strsignal.c: New file, from glibc with modifications.
23291         * lib/siglist.h: New file, from glibc with modifications.
23292         * lib/string.in.h (strsignal): New declaration.
23293         * m4/strsignal.m4: New file.
23294         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
23295         GNULIB_STRSIGNAL and HAVE_DECL_STRSIGNAL.
23296         * modules/strsignal: New file.
23297         * modules/string (Makefile.am): Substitute GNULIB_STRSIGNAL and
23298         HAVE_DECL_STRSIGNAL.
23299
23300 2008-01-13  Bruno Haible  <bruno@clisp.org>
23301
23302         * m4/locale-fr.m4 (gt_LOCALE_FR, gt_LOCALE_FR_UTF8): Check that the
23303         locale encoding is not ASCII. Needed for OpenBSD 4.0.
23304         * m4/locale-tr.m4 (gt_LOCALE_TR_UTF8): Likewise.
23305         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): Likewise.
23306
23307 2008-01-13  Bruno Haible  <bruno@clisp.org>
23308
23309         * lib/argp-fmtstream.h (__attribute__): Don't redefine if
23310         __STRICT_ANSI__ is set: it's not needed by any version of gcc.
23311         * lib/argp.h (__attribute__): Likewise.
23312         * lib/c-stack.c (__attribute__): Likewise.
23313         * lib/error.h (__attribute__): Likewise.
23314         * lib/fts.c (__attribute__): Likewise.
23315         * lib/openat.h (__attribute__): Likewise.
23316         * lib/stdio.in.h (__attribute__): Likewise.
23317         * lib/string.in.h (__attribute__): Likewise.
23318         * lib/utimens.c (__attribute__): Likewise.
23319         * lib/vasnprintf.h (__attribute__): Likewise.
23320         * lib/xalloc.h (__attribute__): Likewise.
23321         * lib/xprintf.h (__attribute__): Likewise.
23322         * lib/xstrtol.h (__attribute__): Likewise.
23323         * lib/xvasprintf.h (__attribute__): Likewise.
23324
23325 2008-01-12  Bruno Haible  <bruno@clisp.org>
23326
23327         * doc/gnulib.texi (Glibc Header File Substitutes): New chapter.
23328         * doc/glibc-headers/a.out.texi: New file.
23329         * doc/glibc-headers/aliases.texi: New file.
23330         * doc/glibc-headers/alloca.texi: New file.
23331         * doc/glibc-headers/ar.texi: New file.
23332         * doc/glibc-headers/argp.texi: New file.
23333         * doc/glibc-headers/argz.texi: New file.
23334         * doc/glibc-headers/byteswap.texi: New file.
23335         * doc/glibc-headers/crypt.texi: New file.
23336         * doc/glibc-headers/endian.texi: New file.
23337         * doc/glibc-headers/envz.texi: New file.
23338         * doc/glibc-headers/err.texi: New file.
23339         * doc/glibc-headers/error.texi: New file.
23340         * doc/glibc-headers/execinfo.texi: New file.
23341         * doc/glibc-headers/fpu_control.texi: New file.
23342         * doc/glibc-headers/fstab.texi: New file.
23343         * doc/glibc-headers/fts.texi: New file.
23344         * doc/glibc-headers/getopt.texi: New file.
23345         * doc/glibc-headers/ieee754.texi: New file.
23346         * doc/glibc-headers/ifaddrs.texi: New file.
23347         * doc/glibc-headers/libintl.texi: New file.
23348         * doc/glibc-headers/mcheck.texi: New file.
23349         * doc/glibc-headers/mntent.texi: New file.
23350         * doc/glibc-headers/obstack.texi: New file.
23351         * doc/glibc-headers/paths.texi: New file.
23352         * doc/glibc-headers/printf.texi: New file.
23353         * doc/glibc-headers/pty.texi: New file.
23354         * doc/glibc-headers/resolv.texi: New file.
23355         * doc/glibc-headers/shadow.texi: New file.
23356         * doc/glibc-headers/sysexits.texi: New file.
23357         * doc/glibc-headers/ttyent.texi: New file.
23358
23359 2008-01-12  Jim Meyering  <meyering@redhat.com>
23360
23361         announce-gen: emit Gnulib's git-based version string.
23362         * build-aux/announce-gen: Remove option: --gnulib-snapshot-time-stamp=S.
23363         New option --gnulib-version=V, where V is expected to be
23364         the output of running git describe in the gnulib directory.
23365         (get_tool_versions): Request feedback on xdelta.  I suspect it's
23366         not useful, and plan to stop publishing an xdelta file with each
23367         coreutils release.
23368
23369         * build-aux/announce-gen: Also check for lzma-compressed files.
23370
23371 2008-01-11  Bruno Haible  <bruno@clisp.org>
23372
23373         * tests/test-memmem.c (main): Increase maximum allowed time.
23374         * tests/test-strstr.c (main): Likewise.
23375
23376 2008-01-11  Bruno Haible  <bruno@clisp.org>
23377
23378         * doc/functions/memmem.texi: Add more precisions about platforms.
23379         * doc/functions/strstr.texi: Likewise.
23380
23381 2008-01-10  Eric Blake  <ebb9@byu.net>
23382
23383         * m4/strstr.m4: Delete cruft from copy-n-paste.
23384         Reported by Bruno Haible.
23385
23386 2008-01-10  Bruno Haible  <bruno@clisp.org>
23387
23388         Make c-strstr rely on strstr.
23389         * lib/c-strstr.c: Don't include str-kmp.h.
23390         (c_strstr): Define in terms of strstr.
23391         * modules/c-strstr (Files): Remove lib/str-kmp.h.
23392         (Depends-on): Remove stdbool, malloca, strnlen. Add strstr.
23393
23394 2008-01-10  Bruno Haible  <bruno@clisp.org>
23395
23396         * doc/gnulib.texi (String Functions in C Locale): New section.
23397         * doc/c-ctype.texi: New file.
23398         * doc/c-strcase.texi: New file.
23399         * doc/c-strcaseeq.texi: New file.
23400         * doc/c-strcasestr.texi: New file.
23401         * doc/c-strstr.texi: New file.
23402         * doc/c-strtod.texi: New file.
23403         * doc/c-strtold.texi: New file.
23404
23405 2008-01-10  Eric Blake  <ebb9@byu.net>
23406
23407         * lib/relocatable.h: Fix a comment.
23408
23409 2008-01-10  Eric Blake  <ebb9@byu.net>
23410
23411         Share two-way algorithm.
23412         * lib/str-two-way.h: New file, merged from...
23413         * lib/memmem.c: ...here...
23414         * lib/strstr.c: ...and here.
23415         * modules/memmem (Files): Use it.
23416         * modules/strstr (Files): Likewise.
23417
23418         Avoid quadratic strstr implementations.
23419         * lib/strstr.c: New file.
23420         * m4/strstr.m4: Likewise.
23421         * modules/strstr: Likewise.
23422         * modules/strstr-tests: Likewise.
23423         * tests/test-strstr.c: Likewise.
23424         * lib/string.in.h (rpl_strstr): Declare.
23425         (memmem) [GNULIB_POSIXCHECK]: Document speed issue.
23426         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Support strstr.
23427         * modules/string (Makefile.am): Likewise.
23428         * MODULES.html.sh (string handling): Mention new module.
23429         * doc/functions/strstr.texi (strstr): Document the bug.
23430
23431 2008-01-10  Bruno Haible  <bruno@clisp.org>
23432
23433         * lib/relocatable.h (relocate): State whether result is freshly
23434         allocated or not.
23435         * lib/relocatable.c (relocate): Return a freshly allocated string
23436         instead of a pointer to a privately held string.
23437         Reported by Sylvain Beucler <beuc@gnu.org>.
23438
23439 2008-01-10  Colin Watson  <cjwatson@debian.org>
23440
23441         * lib/canonicalize-lgpl.c [!_LIBC]: Fix typo in #if directive:
23442         s/S_ISNLK/S_ISLNK/.
23443
23444 2008-01-09  Bruno Haible  <bruno@clisp.org>
23445
23446         * doc/functions/memmem.texi: Use the same structure as snprintf.texi
23447         and other files.
23448         * m4/memmem.m4 (gl_FUNC_MEMMEM): Say "guessing no" instead of "no"
23449         if it's only a guess.
23450         * modules/memmem: Simplify by depending on memmem-simple.
23451
23452 2008-01-09  Bruno Haible  <bruno@clisp.org>
23453
23454         Work around OpenBSD 4.0 tdelete() bug.
23455         * m4/tsearch.m4 (gl_FUNC_TSEARCH): Also check tdelete's return value.
23456         * lib/search.in.h: If REPLACE_TSEARCH is 1, define tsearch etc. as
23457         macros and don't redefine the enum values.
23458         * m4/search_h.m4 (gl_SEARCH_H_DEFAULTS): Initialize REPLACE_TSEARCH.
23459         * modules/search (Makefile.am): Also substitute REPLACE_TSEARCH.
23460         * doc/functions/tdelete.texi: Document the OpenBSD 4.0 bug.
23461
23462 2008-01-09  Bruno Haible  <bruno@clisp.org>
23463
23464         * tests/test-wcwidth.c: Include <string.h> and localcharset.h.
23465         (main): Don't perform the tests if setlocale did not install a UTF-8
23466         locale. Needed on OpenBSD 4.0.
23467         * modules/wcwidth-tests (Depends-on): Add localcharset.
23468
23469 2008-01-09  Paul Eggert  <eggert@cs.ucla.edu>
23470
23471         gl_FUNC_ALLOCA no longer defines HAVE_ALLOCA_H unconditionally.
23472         See <http://lists.gnu.org/archive/html/bug-gnulib/2007-12/msg00149.html>.
23473         * NEWS: announce this.
23474         * m4/alloca.m4 (gl_FUNC_ALLOCA): Don't define HAVE_ALLOCA_H.
23475
23476 2008-01-09  Simon Josefsson  <simon@josefsson.org>
23477         and Eric Blake  <ebb9@byu.net>
23478
23479         Add memmem-simple module.
23480         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE): New macro.
23481         (gl_FUNC_MEMMEM): Separate performance from presence checks.
23482         * modules/memmem-simple: New file.
23483         * modules/memmem (Description): Tweak.
23484         * MODULES.html.sh (string handling): Mention new module.
23485         * doc/functions/memmem.texi (memmem): Distinguish which flaws are
23486         addressed by memmem-simple.
23487         * NEWS: Document the difference.
23488
23489 2008-01-09  Eric Blake  <ebb9@byu.net>
23490
23491         Give gcc some memmem optimization hints.
23492         * lib/string.in.h (memmem, memrchr, strchrnul, strnlen, strpbrk)
23493         (strcasestr): Declare as pure.
23494         * modules/memmem (Maintainer): Claim my implementation.
23495
23496 2008-01-09  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
23497
23498         Support AIX 6.1 and higher.
23499         * build-aux/config.libpath: Likewise.
23500         * build-aux/config.rpath: Likewise.
23501
23502 2008-01-08  Jim Meyering  <meyering@redhat.com>
23503             Bruno Haible  <bruno@clisp.org>
23504
23505         * lib/printf-parse.c (PRINTF_PARSE): Handle a size specifier "q"
23506         on MacOS X and a size specifier "I64" on mingw. Needed for PRIdMAX.
23507         Reported by Peter Fales in
23508         <http://lists.gnu.org/archive/html/bug-coreutils/2007-12/msg00148.html>.
23509
23510 2008-01-08  Bruno Haible  <bruno@clisp.org>
23511
23512         * modules/unictype/category-of (Depends-on): Add
23513         unictype/category-none.
23514         * modules/unictype/category-and-tests (Depends-on): Add
23515         unictype/category-{L,N,Lu,Nd}.
23516         * modules/unictype/category-and-not-tests (Depends-on): Likewise.
23517         * modules/unictype/category-or-tests (Depends-on): Add
23518         unictype/category-{L,N}.
23519         * modules/unictype/category-name-tests (Depends-on): Add
23520         unictype/category-{Z,Nl}.
23521         Reported by Simon Josefsson.
23522
23523 2008-01-08  Bruno Haible  <bruno@clisp.org>
23524
23525         * lib/str-kmp.h (knuth_morris_pratt_unibyte): Document the calling
23526         convention better.
23527         * lib/mbsstr.c (knuth_morris_pratt_multibyte): Likewise.
23528         * lib/mbscasestr.c (knuth_morris_pratt_multibyte): Likewise.
23529         Reported by Peter Miller <millerp@canb.auug.org.au>.
23530
23531 2008-01-08  Eric Blake  <ebb9@byu.net>
23532
23533         Rewrite memmem to guarantee linear complexity without malloc.
23534         * lib/memmem.c (memmem): Use Two-Way rather than
23535         Knuth-Morris-Pratt, to allow O(1) space usage.
23536         (critical_factorization, two_way_short_needle)
23537         (two_way_long_needle): New functions.
23538         (knuth_morris_pratt): Delete.
23539         * modules/memmem (Depends-on): No longer need malloca or stdbool.
23540         Add stdint.
23541         * tests/test-memmem.c (main): Add tests for periodic needle and
23542         sublinear performance.
23543         * doc/functions/memmem.texi (memmem): Document other deficiencies
23544         in cygwin and older glibc.
23545
23546 2008-01-08  Bruno Haible  <bruno@clisp.org>
23547
23548         * modules/memmem-tests (Makefile.am): Remove TESTS_ENVIRONMENT
23549         augmentation.
23550
23551 2008-01-08  Mike Frysinger  <vapier@gentoo.org>
23552
23553         Add a configure time option: --disable-acl.
23554         * m4/acl.m4 (gl_FUNC_ACL): Wrap all ACL logic in a call to
23555         AC_ARG_ENABLE(acl).
23556
23557 2008-01-06  Simon Josefsson  <simon@josefsson.org>
23558
23559         * tests/test-localename.c: Don't include obsolete "setenv.h".
23560
23561         * modules/localename-tests (Depends-on): Need unsetenv.
23562
23563 2008-01-08  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
23564
23565         * DEPENDENCIES: Require Texinfo version 4.6 or newer.
23566
23567 2008-01-06  Colin Watson  <cjwatson@debian.org>
23568
23569         * users.txt: Add man-db.
23570
23571 2008-01-07  Bruno Haible  <bruno@clisp.org>
23572
23573         * doc/gnulib-intro.texi (Library vs Reusable Code): Restore the
23574         previous section name.
23575
23576 2008-01-07  Bruno Haible  <bruno@clisp.org>
23577
23578         * lib/progname.c (set_program_name): Don't strip off a leading
23579         "lt-" prefix outside a .libs directory.
23580         Suggested by Paul Eggert.
23581
23582 2008-01-01  Sylvain Beucler  <beuc@gnu.org>
23583             Bruno Haible  <bruno@clisp.org>
23584
23585         Improve memory cleanup in 'relocatable' module.
23586         * lib/relocatable.h (compute_curr_prefix): Change return type to
23587         'char *'.
23588         * lib/relocatable.c (compute_curr_prefix): Change return type to
23589         'char *'. Free curr_installdir after use.
23590         (relocate): Free curr_prefix_better after use.
23591         * lib/progreloc.c (prepare_relocate): Free curr_prefix after use.
23592
23593 2008-01-01  Bruno Haible  <bruno@clisp.org>
23594
23595         * tests/test-wcwidth.c (main): Relax test of U+2060. Avoids a test
23596         failure on older glibc systems.
23597         Reported by Peter Fales <psfales@alcatel-lucent.com>.
23598
23599 2008-01-05  Eric Blake  <ebb9@byu.net>
23600
23601         Avoid quadratic system memmem.
23602         * m4/memmem.m4 (gl_FUNC_MEMMEM): Check for quadratic memmem.
23603         Reported by Ralf Wildenhues.
23604
23605         Fix memmem test for mingw.
23606         * modules/memmem-tests (configure.ac): Check for alarm.
23607         * tests/test-memmem.c (main): Avoid alarm on platforms that lack
23608         it.
23609         * doc/functions/memmem.texi: New file.
23610         * doc/gnulib.texi (Function Substitutes): Add memmem.
23611         Reported by Bruno Haible.
23612
23613 2008-01-04  Bruno Haible  <bruno@clisp.org>
23614
23615         * m4/strcase.m4 (gl_FUNC_STRCASECMP, gl_FUNC_STRNCASECMP):
23616         Require gl_HEADER_STRINGS_H_DEFAULTS, not
23617         gl_HEADER_STRING_H_DEFAULTS.
23618
23619 2008-01-04  Eric Blake  <ebb9@byu.net>
23620
23621         Shorten duration of memmem test.
23622         * tests/test-memmem.c (main): Use alarm to declare failure if test
23623         is taking too long.
23624         Reported by Ralf Wildenhues.
23625
23626 2007-12-21  Simon Josefsson  <simon@josefsson.org>
23627
23628         * modules/relocatable-prog-wrapper (Depends-on): Add intprops and
23629         string, needed by strerror.
23630
23631 2008-01-03  Colin Watson  <cjwatson@debian.org>
23632             Bruno Haible  <bruno@clisp.org>
23633
23634         * doc/gnulib-tool.texi (Localization): New section.
23635
23636 2008-01-02  Bruno Haible  <bruno@clisp.org>
23637
23638         * lib/memmem.c (knuth_morris_pratt, memmem): Change all 'char *'
23639         variables to 'unsigned char *' type.
23640         Reported by Paul Eggert.
23641
23642 2008-01-02  Jim Meyering  <jim@meyering.net>
23643
23644         * lib/version-etc.c (COPYRIGHT_YEAR): Increase for new year.
23645
23646 2007-12-31  Jim Meyering  <jim@meyering.net>
23647
23648         Avoid use of private FTS type name.
23649         * lib/fts.c (fts_sort): Use FTSENT rather than "struct _ftsent".
23650
23651 2007-12-30  Karl Berry  <karl@gnu.org>
23652
23653         * doc/gnulib.texi (Library vs. Reusable Code): remove period, to
23654         work around defect in Texinfo and/or the standalone Info browser.
23655
23656 2007-12-30  Bruno Haible  <bruno@clisp.org>
23657
23658         Unify 5 copies of the KMP code.
23659         * lib/str-kmp.h: New file.
23660         * lib/c-strcasestr.c: Include str-kmp.h.
23661         (knuth_morris_pratt): Remove function.
23662         (c_strcasestr): Update.
23663         * lib/c-strstr.c: Include str-kmp.h.
23664         (knuth_morris_pratt): Remove function.
23665         (c_strcasestr): Update.
23666         * lib/mbscasestr.c: Include str-kmp.h.
23667         (knuth_morris_pratt_unibyte): Remove function.
23668         * lib/mbsstr.c: Include str-kmp.h.
23669         (knuth_morris_pratt_unibyte): Remove function.
23670         * lib/strcasestr.c: Include str-kmp.h.
23671         (knuth_morris_pratt): Remove function.
23672         (strcasestr): Update.
23673         * modules/c-strcasestr (Files): Add lib/str-kmp.h.
23674         * modules/c-strstr (Files): Likewise.
23675         * modules/mbscasestr (Files): Likewise.
23676         * modules/mbsstr (Files): Likewise.
23677         * modules/strcasestr (Files): Likewise.
23678         Suggested by Paul Eggert.
23679
23680 2007-12-30  Bruno Haible  <bruno@clisp.org>
23681
23682         * lib/xmalloca.c (xmmalloca): Don't define if HAVE_ALLOCA is not
23683         defined.
23684
23685 2007-12-30  Bruno Haible  <bruno@clisp.org>
23686
23687         * lib/xmalloca.h: Include xalloc.h.
23688         (xnmalloca): New macro.
23689
23690 2007-12-30  Bruno Haible  <bruno@clisp.org>
23691
23692         * lib/malloca.h (nmalloca): New macro.
23693         * lib/c-strcasestr.c (knuth_morris_pratt): Use it.
23694         * lib/c-strstr.c (knuth_morris_pratt): Likewise.
23695         * lib/mbscasestr.c (knuth_morris_pratt_unibyte,
23696         knuth_morris_pratt_multibyte): Likewise.
23697         * lib/mbsstr.c (knuth_morris_pratt_unibyte,
23698         knuth_morris_pratt_multibyte): Likewise.
23699         * lib/memmem.c (knuth_morris_pratt): Likewise.
23700         * lib/strcasestr.c (knuth_morris_pratt): Likewise.
23701
23702 2007-12-25  Bruno Haible  <bruno@clisp.org>
23703
23704         Fixup after 2007-10-17 commit. Ensure that 'glob' stays under LGPLv2+.
23705         * lib/glob.c: Don't include openat.h.
23706         (link_exists2_p): Add back the code that deals with the
23707         !GLOB_ALTDIRFUNC case.
23708         (link_exists_p) [!_LIBC && !HAVE_FSTATAT]: Just call link_exists2_p and
23709         let it do the filename concatenation.
23710         * m4/glob.m4 (gl_PREREQ_GLOB): Add check for fstatat.
23711         * modules/glob (Depends-on): Remove openat.
23712
23713 2007-12-31  Bruno Haible  <bruno@clisp.org>
23714
23715         * modules/dirfd (License): Change to LGPLv2+.
23716         Approved by Jim Meyering.
23717
23718 2007-12-29  Paul Eggert  <eggert@cs.ucla.edu>
23719
23720         * lib/memmem.c (knuth_morris_pratt): Check for size_t overflow
23721         when multiplying M by sizeof (size_t).
23722
23723 2007-12-10  Martin Lambers  <marlam@marlam.de>
23724
23725         Override getpagesize on mingw.
23726         * lib/getpagesize.c: New file.
23727         * m4/getpagesize.m4 (gl_FUNC_GETPAGESIZE): Enable replacement on mingw.
23728         * modules/getpagesize (Files): Add lib/getpagesize.c.
23729         * lib/unistd.in.h (getpagesize): Declare if we are using a replacement.
23730         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
23731         REPLACE_GETPAGESIZE.
23732         * modules/unistd (Makefile.am): Substitute REPLACE_GETPAGESIZE.
23733
23734 2007-12-25  Bruno Haible  <bruno@clisp.org>
23735
23736         * modules/localcharset (Notice): New field.
23737         (configure.ac): Define LOCALCHARSET_TESTS_ENVIRONMENT.
23738         Suggested by Ben Pfaff <blp@cs.stanford.edu>.
23739
23740 2007-12-25  Paul Eggert  <eggert@cs.ucla.edu>
23741             Bruno Haible  <bruno@clisp.org>
23742
23743         Avoid using the syntax symbol() in formatted documentation.
23744         * MODULES.html.sh (func_module): When replacing symbol() with a
23745         hyperlink, remove the parentheses. Show an error if some remain.
23746         Recognize and render the '...' syntax.
23747         * doc/alloca-opt.texi: Remove parentheses from symbol reference.
23748         Rework. Add paragraph about GCC's inlining.
23749         * doc/alloca.texi: Likewise.
23750         * doc/error.texi: Remove parentheses from symbol reference.
23751         * doc/gnulib-intro.texi: Likewise.
23752         * doc/gnulib.texi (alloca, alloca-opt): New nodes.
23753         * modules/fnmatch (Description): Reword to say "the ... function".
23754         * modules/full-read (Description): Likewise.
23755         * modules/full-write (Description): Likewise.
23756         * modules/safe-read (Description): Likewise.
23757         * modules/safe-write (Description): Likewise.
23758         * modules/strchrnul (Description): Likewise.
23759         * modules/trim (Description): Likewise.
23760         * modules/error (Description): Remove parentheses from symbol
23761         references.
23762         * modules/verror (Description): Likewise.
23763         Reported by Karl Berry.
23764
23765 2007-12-25  Bruno Haible  <bruno@clisp.org>
23766
23767         Fixup after 2007-10-16 commit.
23768         * lib/glob.c (glob_in_dir): Don't use ISO C99 syntax.
23769
23770 2007-12-24  Bruno Haible  <bruno@clisp.org>
23771
23772         Make --enable-relocatable work with DESTDIR.
23773         * build-aux/install-reloc: Accept another argument 'destdir'. Use it
23774         to compute installdir from destprog.
23775         * m4/relocatable.m4 (gl_RELOCATABLE_BODY): In INSTALL_PROGRAM_ENV,
23776         also set the RELOC_DESTDIR variable.
23777         Reported by Ð›ÐµÐ²Ð°ÑˆÐµÐ² Ð˜Ð²Ð°Ð½ <octagram@bluebottle.com>.
23778
23779 2007-12-24  Bruno Haible  <bruno@clisp.org>
23780
23781         Fix link error due to xalloc_die().
23782         * lib/progreloc.c: When NO_XMALLOC is defined, use areadlink instead
23783         of xreadlink.
23784         * lib/relocwrapper.c: Update comments.
23785         * build-aux/install-reloc: Remove xreadlink.c from file list.
23786         * modules/relocatable-prog-wrapper (Files): Remove xreadlink.h and
23787         xreadlink.c.
23788         Reported by Ð›ÐµÐ²Ð°ÑˆÐµÐ² Ð˜Ð²Ð°Ð½ <octagram@bluebottle.com>.
23789
23790 2007-12-24  Bruno Haible  <bruno@clisp.org>
23791
23792         Split setenv module into setenv and unsetenv. Get rid of setenv.h.
23793         * lib/setenv.h: Remove file.
23794         * lib/stdlib.in.h (setenv, unsetenv): New declarations, moved here from
23795         lib/setenv.h.
23796         * modules/setenv (Files): Remove lib/setenv.h, lib/unsetenv.c.
23797         (Depends-on): Add stdlib.
23798         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR. Don't invoke
23799         gl_FUNC_UNSETENV.
23800         (Include): Replace setenv.h with <stdlib.h>.
23801         * modules/unsetenv: New file.
23802         * lib/setenv.c: Include <stdlib.h> first, after alloca.h.
23803         * lib/unsetenv.c: Include <stdlib.h> first.
23804         * m4/setenv.m4 (gl_FUNC_SETENV, gl_FUNC_SETENV_SEPARATE): Require
23805         gl_STDLIB_H_DEFAULTS. Conditionally set HAVE_SETENV to 0.
23806         (gl_FUNC_UNSETENV): Require gl_STDLIB_H_DEFAULTS. Conditionally set
23807         HAVE_UNSETENV to 0. Set VOID_UNSETENV as an AC_SUBSTed variable.
23808         * modules/stdlib (Makefile.am): Substitute also GNULIB_SETENV,
23809         HAVE_SETENV, GNULIB_UNSETENV, HAVE_UNSETENV, VOID_UNSETENV.
23810         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_SETENV,
23811         HAVE_SETENV, GNULIB_UNSETENV, HAVE_UNSETENV, VOID_UNSETENV.
23812         * doc/functions/unsetenv.texi: Update.
23813         * modules/xsetenv (Depends-on): Add unsetenv.
23814         * modules/getdate (Depends-on): Likewise.
23815         * lib/xsetenv.h: Include <stdlib.h> instead of setenv.h.
23816         * lib/xsetenv.c: Don't include setenv.h.
23817         * lib/getdate.y: Likewise.
23818         * lib/relocwrapper.c: Likewise.
23819         * modules/relocatable-prog-wrapper (Files): Remove lib/setenv.h.
23820         (Depends-on): Add stdlib.
23821         * NEWS: Mention the changes.
23822         Reported by Ð›ÐµÐ²Ð°ÑˆÐµÐ² Ð˜Ð²Ð°Ð½ <octagram@bluebottle.com>.
23823
23824 2007-12-23  Bruno Haible  <bruno@clisp.org>
23825
23826         * lib/memmem.c (memmem): Use lowercase variable names. Tab
23827         indentation.
23828
23829 2007-12-23  Bruno Haible  <bruno@clisp.org>
23830
23831         * lib/c-strcasestr.c: Add more comments.
23832         * lib/c-strstr.c: Likewise.
23833         * lib/mbscasestr.c: Likewise.
23834         * lib/mbsstr.c: Likewise.
23835         * lib/strcasestr.c: Likewise.
23836         * lib/memmem.c: Likewise.
23837
23838 2007-12-23  Bruno Haible  <bruno@clisp.org>
23839
23840         * tests/test-memmem.c: Include <string.h> first.
23841
23842 2007-12-22  Bruno Haible  <bruno@clisp.org>
23843
23844         * gnulib-tool (func_create_testdir): Change $auxdir while generating
23845         the contents of $testsbase.
23846         Reported by Ralf Wildenhues.
23847
23848 2007-12-22  Bruno Haible  <bruno@clisp.org>
23849
23850         * gnulib-tool (func_emit_tests_Makefile_am): Replace local_ldadd with
23851         two variables local_ldadd_before, local_ldadd_last.
23852
23853 2007-12-20  Eric Blake  <ebb9@byu.net>
23854
23855         Work around circular library issue when cross-compiling.
23856         * lib/progname.c (set_program_name): Use strncmp, not memcmp, so
23857         that progname.o does not need to pull in rpl_memcmp.
23858
23859 2007-12-19  Eric Blake  <ebb9@byu.net>
23860
23861         Fix memmem to avoid O(n^2) worst-case complexity.
23862         * lib/memmem.c (knuth_morris_pratt): New function.
23863         (memmem): Use it if first few naive iterations fail.
23864         * m4/memmem.m4 (gl_FUNC_MEMMEM): Detect cygwin bug.
23865         * modules/memcmp (License): Set to LGPLv2+, not LGPL.
23866         * modules/memchr (License): Likewise.
23867         * modules/memmem (Depends-on): Add memcmp, memchr, stdbool, and
23868         malloca.
23869         * tests/test-memmem.c: Rewrite, borrowing ideas from
23870         test-mbsstr1.c; the old version wouldn't even compile!
23871         * modules/memmem-tests: New file.
23872         * lib/string.in.h (rpl_memmem): Add declaration.
23873         * modules/string (Makefile.am): Substitute REPLACE_MEMMEM.
23874         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Default for
23875         REPLACE_MEMMEM.
23876
23877 2007-12-18  Paul Eggert  <eggert@cs.ucla.edu>
23878
23879         Fix problem with _GL_JUST_INCLUDE_SYSTEM_INTTYPES_H on VMS.
23880         * lib/stdint.in.h (_GL_JUST_INCLUDE_SYSTEM_INTTYPES_H): Define
23881         before any system include files, and undef after them all.  This
23882         should fix a problem on VMS reported by John E. Malmberg in
23883         <http://lists.gnu.org/archive/html/bug-gnulib/2007-12/msg00118.html>.
23884
23885 2007-12-17  Eric Blake  <ebb9@byu.net>
23886
23887         Revert addition of verify, for BSD/OS.
23888         * lib/fseeko.c [!HAVE_FSEEKO]: Allow off_t > long, even though it
23889         can't handle large files, for the sake of obsolete platforms.
23890         * modules/fseeko (Depends-on): Remove verify.
23891         * doc/functions/fseeko.texi (fseeko): Document BSD/OS limitation.
23892         * doc/functions/ftello.texi (ftello): Likewise.
23893         * doc/functions/fgetpos.texi (fgetpos): Likewise.
23894         Reported by Larry Jones.
23895
23896 2007-12-17  Petr Salinger  <Petr.Salinger@seznam.cz>
23897
23898         getcwd.c: Use a more readable witness: HAVE_OPENAT_SUPPORT
23899         * lib/getcwd.c: Define and use HAVE_OPENAT_SUPPORT, in place of AT_FDCWD.
23900
23901 2007-12-17  Jim Meyering  <meyering@redhat.com>
23902
23903         Port to GNU/kFreeBSD - FreeBSD kernel + GNU libc,
23904         which has no openat syscall, yet <fcntl.h> does define AT_FDCWD.
23905         * lib/getcwd.c: Undef AT_FDCWD if there is no openat function.
23906         * modules/getcwd (Depends-on): Add openat.
23907         Reported by Petr Salinger.
23908
23909 2007-12-17  Bruno Haible  <bruno@clisp.org>
23910
23911         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Use GL_NOCRASH to
23912         avoid a segmentation fault of the configure test on x86_64 systems.
23913
23914 2007-12-15  Jim Meyering  <meyering@redhat.com>
23915
23916         * build-aux/gnupload (GPG): Don't hard-code absolute name of gpg binary.
23917
23918 2007-12-13  Eric Blake  <ebb9@byu.net>
23919
23920         Another fseek test.
23921         * tests/test-fseek.c (main): Also test ungetc handling.
23922         * tests/test-fseeko.c (main): Likewise.
23923         * modules/fseeko (Depends-on): Add verify.
23924         * lib/fseeko.c [!HAVE_FSEEKO]: Verify that off_t is not too
23925         large.
23926         Reported by Larry Jones.
23927
23928         Fix fseeko on mingw.
23929         * lib/fseeko.c (rpl_fseeko) [_IOERR]: Reset EOF flag on successful
23930         seek.
23931
23932         Beef up fseek tests.
23933         * tests/test-fseek.c (main): Also test eof handling.
23934         * tests/test-fseeko.c (main): Likewise.
23935         Reported by Larry Jones.
23936
23937 2007-12-13  Larry Jones  <lawrence.jones@siemens.com>  (tiny change)
23938
23939         Fix fseeko on BSD-based platforms.
23940         * lib/fseeko.c (rpl_fseeko) [__sferror]: Reset EOF flag on
23941         successful seek.
23942
23943 2007-12-12  Eric Blake  <ebb9@byu.net>
23944
23945         Allow circular dependency of separate libtests.a
23946         * gnulib-tool (func_emit_tests_Makefile_am): Add AM_LIBTOOLFLAGS
23947         when use_libtests.
23948
23949 2007-12-11  Eric Blake  <ebb9@byu.net>
23950
23951         Fix bug with -0.0L in previous patch.
23952         * lib/isnan.c (rpl_isnanl): Make robust to -0.0L and pad bits.
23953         * tests/test-isnan.c (main): Also test on zeroes.
23954         * tests/test-isnanf.c (main): Likewise.
23955         * tests/test-isnanl.h (main): Likewise.
23956
23957         Detect pseudo-denormals on x86 even when cross-compiling.
23958         * lib/isnan.c (rpl_isnanl) [!KNOWN_EXPBIT0_LOCATION
23959         && USE_LONG_DOUBLE && x86]: Add one more check to filter out
23960         invalid bit patterns that happen to satisfy ==.
23961
23962         Avoid link failures with separate libtests.a.
23963         * gnulib-tool (func_emit_tests_Makefile_am): Also list local_ldadd
23964         last, to satisfy circular dependencies.
23965
23966 2007-12-11  Eric Blake  <ebb9@byu.net>
23967         and Bruno Haible  <bruno@clisp.org>
23968
23969         Fix OpenBSD 4.0 <float.h> handling of long double.
23970         * m4/float_h.m4 (gl_FLOAT_H): Also claim OpenBSD is broken.
23971         * lib/float.in.h [__OpenBSD__]: Add fixes for OpenBSD.
23972         * doc/headers/float.texi (float.h): Document OpenBSD bug.
23973
23974 2007-12-11  Jim Meyering  <meyering@redhat.com>
23975
23976         * users.txt: Add libvirt.
23977
23978         Support versions of autoconf prior to 2.59c.
23979         * gnulib-tool (func_emit_initmacro_done): Define m4_foreach_w
23980         if it is not already defined.
23981
23982 2007-12-09  Bruno Haible  <bruno@clisp.org>
23983
23984         Let 'gnulib-tool --import' collect sources needed for the tests in
23985         tests/ rather than in lib/.
23986         * gnulib-tool (func_emit_tests_Makefile_am): Accept use_libtests
23987         argument. If true, add rules to generate libtests.a, and put libtests.a
23988         into $(LDADD). Consider source files in subdirectories and set
23989         uses_subdirs.
23990         (func_emit_initmacro_start, func_emit_initmacro_end,
23991         func_emit_initmacro_done): Pass all arguments explicitly.
23992         (func_import): Determine two module lists main_modules,
23993         testsrelated_modules. Determine use_libtests. Determine two variables
23994         sed_transform_main_lib_file, sed_transform_testsrelated_lib_file
23995         instead of just sed_transform_lib_file. Determine two variables
23996         main_files and testsrelated_files. Compute 'files' as the union of
23997         both. Adjust sed_rewrite_old_files, sed_rewrite_new_files,
23998         func_add_or_update. In the generated gnulib-comp.m4, collect the
23999         object files for tests/ in different variables than those for lib/.
24000         Substitute LIBTESTS_LIBDEPS.
24001         (func_create_testdir): Combine the uses_subdirs results from
24002         func_emit_lib_Makefile_am and from func_emit_tests_Makefile_am.
24003
24004 2007-12-09  Bruno Haible  <bruno@clisp.org>
24005
24006         * gnulib-tool (func_emit_tests_Makefile_am): Expand references to
24007         the build-aux directory.
24008
24009 2007-12-09  Bruno Haible  <bruno@clisp.org>
24010
24011         * gnulib-tool (func_emit_tests_Makefile_am): Remove redundant code
24012         introduced on 2006-09-09.
24013
24014 2007-12-07  Jim Meyering  <meyering@redhat.com>
24015
24016         Let these macros work also with autoconf-2.59.
24017         * m4/getline.m4 (gl_FUNC_GETLINE): Require only autoconf-2.59.  2.60
24018         is not needed, since gnulib now permits use of AC_CHECK_DECLS_ONCE.
24019         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Likewise.
24020
24021 2007-12-06  Jim Meyering  <meyering@redhat.com>
24022
24023         Avoid a configure-time syntax error in gl_FUNC_ACL.
24024         * m4/acl.m4 (gl_FUNC_ACL): Be careful to check for the acl_trivial
24025         function in each branch, before testing the cache variable.
24026
24027 2007-12-04  Eric Blake  <ebb9@byu.net>
24028
24029         Make scripts executable.
24030         * build-aux/config.guess: Add execute permissions.
24031         * build-aux/config.sub: Likewise.
24032         * build-aux/gendocs.sh: Likewise.
24033
24034         Fix frexp on mingw.
24035         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Detect mingw bug when
24036         cross-compiling.
24037         * doc/functions/frexp.texi (frexp): Document the bug.
24038
24039         Make cygwin fseeko check more reliable.
24040         * m4/stdio_h.m4 (gl_STDIN_LARGE_OFFSET) [__CYGWIN__]: Use cygwin
24041         version numbers, rather than unrelated feature check.
24042         * doc/functions/fseeko.texi (fseeko): Tweak failure report.
24043         * doc/functions/ftello.texi (ftello): Likewise.
24044         Reported by Bruno Haible.
24045
24046         * m4/strerror.m4: Bump version number.
24047
24048 2007-12-03  Bruno Haible  <bruno@clisp.org>
24049
24050         * doc/functions/mprotect.texi: Mention the mingw problem.
24051
24052 2007-12-03  Eric Blake  <ebb9@byu.net>
24053
24054         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE): Ensure
24055         REPLACE_STRERROR is initialized before this macro.
24056
24057 2007-12-03  Paul Eggert  <eggert@cs.ucla.edu>
24058
24059         Add support for Solaris 10 ACLs.  Also, ACLs are Gnulib, not Autoconf.
24060         * modules/acl (configure.ac): Rename AC_FUNC_ACL to gl_FUNC_ACL.
24061         * m4/acl.m4 (gl_FUNC_ACL): Renamed from AC_FUNC_ACL.  On Solaris,
24062         put -lsec in even for programs other than 'ls'.  This fixes a problem
24063         for gettext reported by Bruno Haible in
24064         <http://lists.gnu.org/archive/html/bug-gnulib/2007-12/msg00007.html>.
24065         * lib/acl.c (copy_acl, qset_acl) [USE_ACL && defined ACL_NO_TRIVIAL]:
24066         Add support for Solaris 10.  This isn't efficient, but should get the
24067         job done for now.
24068
24069 2007-12-03  James Youngman  <jay@gnu.org>
24070
24071         * doc/regexprops-generic.texi: change "an close-group" to "a
24072         close-group" and "illegal" to "not allowed".
24073
24074 2007-11-23  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
24075
24076         * lib/unictype/pr_byname.c: Include unictype/pr_byname.h instead of
24077         pr_byname.h. Needed for the rare case when the maintainer has done
24078         "make maintainer-clean" in the source directory and then attempts a
24079         build outside the source directory.
24080         * lib/unictype/scripts.c: Include unictype/scripts_byname.h instead of
24081         scripts_byname.h.
24082
24083 2007-12-02  Martin Lambers <marlam@marlam.de>
24084             Bruno Haible  <bruno@clisp.org>
24085
24086         * lib/getpagesize.h: Remove file.
24087         * lib/unistd.in.h: Include declaration of getpagesize here.
24088         * m4/getpagesize.m4 (gl_FUNC_GETPAGESIZE): Renamed from gl_GETPAGESIZE.
24089         Invoke gl_UNISTD_H_DEFAULTS. Set HAVE_GETPAGESIZE, HAVE_OS_H,
24090         HAVE_SYS_PARAM_H.
24091         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_GETPAGESIZE,
24092         HAVE_GETPAGESIZE, HAVE_OS_H, HAVE_SYS_PARAM_H.
24093         * modules/getpagesize (Files): Remove lib/getpagesize.h.
24094         (Depends-on): Add unistd.
24095         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
24096         (Include): Use <unistd.h> instead of getpagesize.h.
24097         * modules/unistd (Makefile.am): Substitute also GNULIB_GETPAGESIZE,
24098         HAVE_GETPAGESIZE, HAVE_OS_H, HAVE_SYS_PARAM_H.
24099         * m4/pagealign_alloc.m4 (gl_PREREQ_PAGEALIGN_ALLOC): Remove
24100         gl_GETPAGESIZE invocation, already handled by module dependency.
24101         * lib/pagealign_alloc.c: Don't include getpagesize.h.
24102
24103 2007-12-02  Bruno Haible  <bruno@clisp.org>
24104
24105         * modules/strings-tests: New file.
24106         * tests/test-strings.c: New file.
24107
24108         Move declarations of str{,n}casecmp from <string.h> to <strings.h>.
24109         * lib/strings.in.h: New file.
24110         * lib/string.in.h (strcasecmp, strncasecmp): Remove declarations.
24111         * m4/strings_h.m4: New file.
24112         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Remove initialization
24113         of HAVE_STRCASECMP, HAVE_DECL_STRNCASECMP.
24114         * modules/strings: New file.
24115         * modules/string (Makefile.am): Update.
24116         * modules/strcase (Include): Mention <strings.h>, not <string.h>.
24117         Reported by Karl Berry.
24118
24119 2007-12-01  Eric Blake  <ebb9@byu.net>
24120
24121         * m4/stdio_h.m4 (gl_STDIN_LARGE_OFFSET) [__CYGWIN__]: Rewrite to
24122         accomodate fix in cygwin 1.5.25.
24123
24124 2007-12-01  Jim Meyering  <meyering@redhat.com>
24125
24126         Fix a bug that inhibited much of the utf8-optimization in regcomp.c.
24127         * lib/regcomp.c (optimize_utf8): Fix a typo, s/idx/ctx_type/,
24128         that would inhibit utf8-optimization of a regexp containing line-
24129         or buffer-anchors, e.g., `^', `$'.
24130
24131 2007-11-30  Bruno Haible  <bruno@clisp.org>
24132
24133         * lib/lock.h (gl_recursive_lock_init) [PTHREAD &&
24134         PTHREAD_RECURSIVE_MUTEX_INITIALIZER]: Call
24135         glthread_recursive_lock_init.
24136         * lib/lock.c (glthread_recursive_lock_init)
24137         [PTHREAD_RECURSIVE_MUTEX_INITIALIZER]: New function.
24138         Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
24139
24140 2007-11-28  Paul Eggert  <eggert@cs.ucla.edu>
24141
24142         New function qset_acl, like set_acl but with syscall semantics.
24143         * lib/acl.h (qset_acl): New decl.
24144         * lib/acl.c (qset_acl): New function.
24145         (set_acl): Use new function.  Use more-consistent diagnostics.
24146
24147 2007-11-28  Jim Meyering  <meyering@redhat.com>
24148
24149         * modules/physmem (License): Change from GPL to LGPLv2+.
24150
24151 2007-11-26  Bruno Haible  <bruno@clisp.org>
24152
24153         * lib/vasnprintf.c (decode_long_double): Don't abort if the
24154         'long double' type has excess precision.
24155         Reported by Jim Meyering in
24156         <http://lists.gnu.org/archive/html/bug-gnulib/2007-11/msg00120.html>.
24157
24158 2007-11-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
24159
24160         * doc/fdl.texi, doc/gpl-3.0.texi, doc/lgpl-3.0.texi:
24161         Sync from <http://gnu.org/licenses>.
24162         * modules/agpl-3.0, doc/agpl-3.0.texi: New module,
24163         with license text from same location.
24164         * doc/maintain.texi, doc/standards.texi:  Sync from
24165         <http://savannah.gnu.org/projects/gnustandards>.
24166
24167 2007-11-22  OndÅ™ej Vašík  <ovasik@redhat.com>
24168         and Jim Meyering  <meyering@redhat.com>
24169
24170         Adjust getdate' grammar to accept a slightly more regular language.
24171         E.g., accept "YYYYMMDD +N days" as well as "YYYYMMDD N days".
24172         Before, the former was rejected.
24173         * lib/getdate.y (digits_to_date_time): New function, factored
24174         out of ...
24175         (number): ...here.  Just call digits_to_date_time.
24176         (hybrid): New non-terminal to handle an <unsigned number,
24177         signed relative offset> sequence consistently.
24178
24179 2007-11-18  Jim Meyering  <meyering@redhat.com>
24180
24181         Pull my changes from coreutils:
24182         bootstrap: fix typo to enable use of $gnulib_tool_option_extras.
24183         * build-aux/bootstrap (gnulib_tool_options): Add a space before the
24184         use of $gnulib_tool_option_extras, so that it's separated from the
24185         preceding argument.
24186
24187         Fix bootstrap failure to handle files like lib/uniwidth/cjk.h.
24188         * build-aux/bootstrap (cp_mark_as_generated): Create any required
24189         parent destination directories before copying a file into place.
24190
24191 2007-11-18  Sergey Poznyakoff  <gray@gnu.org.ua>
24192
24193         bootstrap: work also with 4-argument variant of AC_INIT
24194         * build-aux/bootstrap (gnulib_extra_files): Adjust sed command.
24195
24196 2007-11-16  Paul Eggert  <eggert@cs.ucla.edu>
24197
24198         Port test-getaddrinfo to Solaris.
24199         Problem reported by Bruno Haible in
24200         <http://lists.gnu.org/archive/html/bug-gnulib/2007-03/msg00171.html>.
24201         * tests/test-getaddrinfo.c (simple): Add a comment asking for an
24202         explanation of setting 'hints'.
24203         Don't reject an implementation merely because it returns EAI_SERVICE.
24204         (EAI_SERVICE): Define to 0 if not defined.
24205
24206 2007-11-15  Paul Eggert  <eggert@cs.ucla.edu>
24207
24208         The license of gnu-make and posix-shell is now "GPLed build tool".
24209         * modules/gnu-make (License): Likewise.
24210         * modules/posix-shell (License): Likewise.
24211
24212         New module posix-shell, for determining a POSIX shell
24213         or perhaps something that is close enough to a POSIX shell.
24214         * m4/posix-shell.m4: New file.
24215         * modules/posix-shell: New file.
24216
24217         * MODULES.html.sh: Mention new module.
24218
24219         New module gnu-make, for determining whether we're using GNU Make.
24220         * m4/gnu-make.m4: New file.
24221         * modules/gnu-make: New file.
24222         * MODULES.html.sh: Mention new module.
24223
24224 2007-11-14  Jim Meyering  <meyering@redhat.com>
24225
24226         Define a sometimes-link-required function using ARGMATCH_DIE_DECL.
24227         * tests/test-argmatch.c (ARGMATCH_DIE_DECL): When defined,
24228         use this macro to create a function _definition_.
24229         Remove useless "#undef ARGMATCH_DIE".
24230
24231 2007-11-14  Bruno Haible  <bruno@clisp.org>
24232
24233         * lib/config.charset: Update for OpenBSD 4.1.
24234         Reported and helped by Ben Pfaff <blp@cs.stanford.edu>.
24235
24236 2007-11-12  Paul Eggert  <eggert@cs.ucla.edu>
24237
24238         Document 64-bit #if problems in stdint.texi.
24239         * doc/headers/stdint.texi (stdint.h): Mention problems with
24240         64-bit-#if, and how to work around them.
24241
24242         Don't insist on 'long long int' support in the preprocessor.  It
24243         breaks too many things.  For example, PRIdMAX still uses a 'long
24244         long int' format with the latest Sun compiler, even though
24245         HAVE_LONG_LONG_INT isn't defined due to that compiler's
24246         preprocessor problem.  This causes the latest coreutils to dump
24247         core on Solaris 10 sparc with the Sun C compiler.
24248         Instead, fix the 2007-10-16 problem in a different way, by evaluating
24249         the troublesome expressions at configure-time, not at #if-time.
24250         * m4/longlong.m4 (_AC_TYPE_LONG_LONG_SNIPPET): Don't test the
24251         preprocessor.
24252         * m4/inttypes.m4 (gl_INTTYPES_H): Move the #if checks into
24253         compile-time C checks, done at 'configure'-time.
24254         (gl_INTTYPES_CHECK_LONG_LONG_INT_CONDITION): New macro.
24255         * modules/inttypes (Makefile): Substitute the new symbols that
24256         gl_INTTYPES_H now generates.
24257         * lib/inttypes.in.h: Don't use constants wider than 'long' in #if.
24258
24259 2007-11-12  Bruno Haible  <bruno@clisp.org>
24260
24261         Tests for Unicode character classification functions.
24262
24263         * modules/unictype/bidicategory-byname-tests: New file.
24264         * modules/unictype/bidicategory-name-tests: New file.
24265         * modules/unictype/bidicategory-of-tests: New file.
24266         * modules/unictype/bidicategory-test-tests: New file.
24267         * modules/unictype/block-list-tests: New file.
24268         * modules/unictype/block-of-tests: New file.
24269         * modules/unictype/block-test-tests: New file.
24270         * modules/unictype/category-C-tests: New file.
24271         * modules/unictype/category-Cc-tests: New file.
24272         * modules/unictype/category-Cf-tests: New file.
24273         * modules/unictype/category-Cn-tests: New file.
24274         * modules/unictype/category-Co-tests: New file.
24275         * modules/unictype/category-Cs-tests: New file.
24276         * modules/unictype/category-L-tests: New file.
24277         * modules/unictype/category-Ll-tests: New file.
24278         * modules/unictype/category-Lm-tests: New file.
24279         * modules/unictype/category-Lo-tests: New file.
24280         * modules/unictype/category-Lt-tests: New file.
24281         * modules/unictype/category-Lu-tests: New file.
24282         * modules/unictype/category-M-tests: New file.
24283         * modules/unictype/category-Mc-tests: New file.
24284         * modules/unictype/category-Me-tests: New file.
24285         * modules/unictype/category-Mn-tests: New file.
24286         * modules/unictype/category-N-tests: New file.
24287         * modules/unictype/category-Nd-tests: New file.
24288         * modules/unictype/category-Nl-tests: New file.
24289         * modules/unictype/category-No-tests: New file.
24290         * modules/unictype/category-P-tests: New file.
24291         * modules/unictype/category-Pc-tests: New file.
24292         * modules/unictype/category-Pd-tests: New file.
24293         * modules/unictype/category-Pe-tests: New file.
24294         * modules/unictype/category-Pf-tests: New file.
24295         * modules/unictype/category-Pi-tests: New file.
24296         * modules/unictype/category-Po-tests: New file.
24297         * modules/unictype/category-Ps-tests: New file.
24298         * modules/unictype/category-S-tests: New file.
24299         * modules/unictype/category-Sc-tests: New file.
24300         * modules/unictype/category-Sk-tests: New file.
24301         * modules/unictype/category-Sm-tests: New file.
24302         * modules/unictype/category-So-tests: New file.
24303         * modules/unictype/category-Z-tests: New file.
24304         * modules/unictype/category-Zl-tests: New file.
24305         * modules/unictype/category-Zp-tests: New file.
24306         * modules/unictype/category-Zs-tests: New file.
24307         * modules/unictype/category-and-not-tests: New file.
24308         * modules/unictype/category-and-tests: New file.
24309         * modules/unictype/category-byname-tests: New file.
24310         * modules/unictype/category-name-tests: New file.
24311         * modules/unictype/category-none-tests: New file.
24312         * modules/unictype/category-of-tests: New file.
24313         * modules/unictype/category-or-tests: New file.
24314         * modules/unictype/category-test-withtable-tests: New file.
24315         * modules/unictype/combining-class-tests: New file.
24316         * modules/unictype/ctype-alnum-tests: New file.
24317         * modules/unictype/ctype-alpha-tests: New file.
24318         * modules/unictype/ctype-blank-tests: New file.
24319         * modules/unictype/ctype-cntrl-tests: New file.
24320         * modules/unictype/ctype-digit-tests: New file.
24321         * modules/unictype/ctype-graph-tests: New file.
24322         * modules/unictype/ctype-lower-tests: New file.
24323         * modules/unictype/ctype-print-tests: New file.
24324         * modules/unictype/ctype-punct-tests: New file.
24325         * modules/unictype/ctype-space-tests: New file.
24326         * modules/unictype/ctype-upper-tests: New file.
24327         * modules/unictype/ctype-xdigit-tests: New file.
24328         * modules/unictype/decimal-digit-tests: New file.
24329         * modules/unictype/digit-tests: New file.
24330         * modules/unictype/mirror-tests: New file.
24331         * modules/unictype/numeric-tests: New file.
24332         * modules/unictype/property-alphabetic-tests: New file.
24333         * modules/unictype/property-ascii-hex-digit-tests: New file.
24334         * modules/unictype/property-bidi-arabic-digit-tests: New file.
24335         * modules/unictype/property-bidi-arabic-right-to-left-tests: New file.
24336         * modules/unictype/property-bidi-block-separator-tests: New file.
24337         * modules/unictype/property-bidi-boundary-neutral-tests: New file.
24338         * modules/unictype/property-bidi-common-separator-tests: New file.
24339         * modules/unictype/property-bidi-control-tests: New file.
24340         * modules/unictype/property-bidi-embedding-or-override-tests: New file.
24341         * modules/unictype/property-bidi-eur-num-separator-tests: New file.
24342         * modules/unictype/property-bidi-eur-num-terminator-tests: New file.
24343         * modules/unictype/property-bidi-european-digit-tests: New file.
24344         * modules/unictype/property-bidi-hebrew-right-to-left-tests: New file.
24345         * modules/unictype/property-bidi-left-to-right-tests: New file.
24346         * modules/unictype/property-bidi-non-spacing-mark-tests: New file.
24347         * modules/unictype/property-bidi-other-neutral-tests: New file.
24348         * modules/unictype/property-bidi-pdf-tests: New file.
24349         * modules/unictype/property-bidi-segment-separator-tests: New file.
24350         * modules/unictype/property-bidi-whitespace-tests: New file.
24351         * modules/unictype/property-byname-tests: New file.
24352         * modules/unictype/property-combining-tests: New file.
24353         * modules/unictype/property-composite-tests: New file.
24354         * modules/unictype/property-currency-symbol-tests: New file.
24355         * modules/unictype/property-dash-tests: New file.
24356         * modules/unictype/property-decimal-digit-tests: New file.
24357         * modules/unictype/property-default-ignorable-code-point-tests: New file.
24358         * modules/unictype/property-deprecated-tests: New file.
24359         * modules/unictype/property-diacritic-tests: New file.
24360         * modules/unictype/property-extender-tests: New file.
24361         * modules/unictype/property-format-control-tests: New file.
24362         * modules/unictype/property-grapheme-base-tests: New file.
24363         * modules/unictype/property-grapheme-extend-tests: New file.
24364         * modules/unictype/property-grapheme-link-tests: New file.
24365         * modules/unictype/property-hex-digit-tests: New file.
24366         * modules/unictype/property-hyphen-tests: New file.
24367         * modules/unictype/property-id-continue-tests: New file.
24368         * modules/unictype/property-id-start-tests: New file.
24369         * modules/unictype/property-ideographic-tests: New file.
24370         * modules/unictype/property-ids-binary-operator-tests: New file.
24371         * modules/unictype/property-ids-trinary-operator-tests: New file.
24372         * modules/unictype/property-ignorable-control-tests: New file.
24373         * modules/unictype/property-iso-control-tests: New file.
24374         * modules/unictype/property-join-control-tests: New file.
24375         * modules/unictype/property-left-of-pair-tests: New file.
24376         * modules/unictype/property-line-separator-tests: New file.
24377         * modules/unictype/property-logical-order-exception-tests: New file.
24378         * modules/unictype/property-lowercase-tests: New file.
24379         * modules/unictype/property-math-tests: New file.
24380         * modules/unictype/property-non-break-tests: New file.
24381         * modules/unictype/property-not-a-character-tests: New file.
24382         * modules/unictype/property-numeric-tests: New file.
24383         * modules/unictype/property-other-alphabetic-tests: New file.
24384         * modules/unictype/property-other-default-ignorable-code-point-tests: New file.
24385         * modules/unictype/property-other-grapheme-extend-tests: New file.
24386         * modules/unictype/property-other-id-continue-tests: New file.
24387         * modules/unictype/property-other-id-start-tests: New file.
24388         * modules/unictype/property-other-lowercase-tests: New file.
24389         * modules/unictype/property-other-math-tests: New file.
24390         * modules/unictype/property-other-uppercase-tests: New file.
24391         * modules/unictype/property-paired-punctuation-tests: New file.
24392         * modules/unictype/property-paragraph-separator-tests: New file.
24393         * modules/unictype/property-pattern-syntax-tests: New file.
24394         * modules/unictype/property-pattern-white-space-tests: New file.
24395         * modules/unictype/property-private-use-tests: New file.
24396         * modules/unictype/property-punctuation-tests: New file.
24397         * modules/unictype/property-quotation-mark-tests: New file.
24398         * modules/unictype/property-radical-tests: New file.
24399         * modules/unictype/property-sentence-terminal-tests: New file.
24400         * modules/unictype/property-soft-dotted-tests: New file.
24401         * modules/unictype/property-space-tests: New file.
24402         * modules/unictype/property-terminal-punctuation-tests: New file.
24403         * modules/unictype/property-test-tests: New file.
24404         * modules/unictype/property-titlecase-tests: New file.
24405         * modules/unictype/property-unassigned-code-value-tests: New file.
24406         * modules/unictype/property-unified-ideograph-tests: New file.
24407         * modules/unictype/property-uppercase-tests: New file.
24408         * modules/unictype/property-variation-selector-tests: New file.
24409         * modules/unictype/property-white-space-tests: New file.
24410         * modules/unictype/property-xid-continue-tests: New file.
24411         * modules/unictype/property-xid-start-tests: New file.
24412         * modules/unictype/property-zero-width-tests: New file.
24413         * modules/unictype/scripts-tests: New file.
24414         * modules/unictype/syntax-c-ident-tests: New file.
24415         * modules/unictype/syntax-c-whitespace-tests: New file.
24416         * modules/unictype/syntax-java-ident-tests: New file.
24417         * modules/unictype/syntax-java-whitespace-tests: New file.
24418         * tests/unictype/test-bidi_byname.c: New file.
24419         * tests/unictype/test-bidi_name.c: New file.
24420         * tests/unictype/test-bidi_of.c: New file.
24421         * tests/unictype/test-bidi_test.c: New file.
24422         * tests/unictype/test-block_list.c: New file.
24423         * tests/unictype/test-block_of.c: New file.
24424         * tests/unictype/test-block_test.c: New file.
24425         * tests/unictype/test-categ_and.c: New file.
24426         * tests/unictype/test-categ_and_not.c: New file.
24427         * tests/unictype/test-categ_byname.c: New file.
24428         * tests/unictype/test-categ_name.c: New file.
24429         * tests/unictype/test-categ_none.c: New file.
24430         * tests/unictype/test-categ_of.c: New file.
24431         * tests/unictype/test-categ_or.c: New file.
24432         * tests/unictype/test-categ_test_withtable.c: New file.
24433         * tests/unictype/test-combining.c: New file.
24434         * tests/unictype/test-decdigit.c: New file.
24435         * tests/unictype/test-digit.c: New file.
24436         * tests/unictype/test-mirror.c: New file.
24437         * tests/unictype/test-numeric.c: New file.
24438         * tests/unictype/test-pr_byname.c: New file.
24439         * tests/unictype/test-pr_test.c: New file.
24440         * tests/unictype/test-predicate-part1.h: New file.
24441         * tests/unictype/test-predicate-part2.h: New file.
24442         * tests/unictype/test-scripts.c: New file.
24443         * tests/unictype/test-sy_c_ident.c: New file.
24444         * tests/unictype/test-sy_java_ident.c: New file.
24445
24446         * tests/unictype/test-categ_C.c: New file, generated by gen-ctype.c
24447         for Unicode 5.0.0.
24448         * tests/unictype/test-categ_Cc.c: Likewise.
24449         * tests/unictype/test-categ_Cf.c: Likewise.
24450         * tests/unictype/test-categ_Cn.c: Likewise.
24451         * tests/unictype/test-categ_Co.c: Likewise.
24452         * tests/unictype/test-categ_Cs.c: Likewise.
24453         * tests/unictype/test-categ_L.c: Likewise.
24454         * tests/unictype/test-categ_Ll.c: Likewise.
24455         * tests/unictype/test-categ_Lm.c: Likewise.
24456         * tests/unictype/test-categ_Lo.c: Likewise.
24457         * tests/unictype/test-categ_Lt.c: Likewise.
24458         * tests/unictype/test-categ_Lu.c: Likewise.
24459         * tests/unictype/test-categ_M.c: Likewise.
24460         * tests/unictype/test-categ_Mc.c: Likewise.
24461         * tests/unictype/test-categ_Me.c: Likewise.
24462         * tests/unictype/test-categ_Mn.c: Likewise.
24463         * tests/unictype/test-categ_N.c: Likewise.
24464         * tests/unictype/test-categ_Nd.c: Likewise.
24465         * tests/unictype/test-categ_Nl.c: Likewise.
24466         * tests/unictype/test-categ_No.c: Likewise.
24467         * tests/unictype/test-categ_P.c: Likewise.
24468         * tests/unictype/test-categ_Pc.c: Likewise.
24469         * tests/unictype/test-categ_Pd.c: Likewise.
24470         * tests/unictype/test-categ_Pe.c: Likewise.
24471         * tests/unictype/test-categ_Pf.c: Likewise.
24472         * tests/unictype/test-categ_Pi.c: Likewise.
24473         * tests/unictype/test-categ_Po.c: Likewise.
24474         * tests/unictype/test-categ_Ps.c: Likewise.
24475         * tests/unictype/test-categ_S.c: Likewise.
24476         * tests/unictype/test-categ_Sc.c: Likewise.
24477         * tests/unictype/test-categ_Sk.c: Likewise.
24478         * tests/unictype/test-categ_Sm.c: Likewise.
24479         * tests/unictype/test-categ_So.c: Likewise.
24480         * tests/unictype/test-categ_Z.c: Likewise.
24481         * tests/unictype/test-categ_Zl.c: Likewise.
24482         * tests/unictype/test-categ_Zp.c: Likewise.
24483         * tests/unictype/test-categ_Zs.c: Likewise.
24484         * tests/unictype/test-ctype_alnum.c: Likewise.
24485         * tests/unictype/test-ctype_alpha.c: Likewise.
24486         * tests/unictype/test-ctype_blank.c: Likewise.
24487         * tests/unictype/test-ctype_cntrl.c: Likewise.
24488         * tests/unictype/test-ctype_digit.c: Likewise.
24489         * tests/unictype/test-ctype_graph.c: Likewise.
24490         * tests/unictype/test-ctype_lower.c: Likewise.
24491         * tests/unictype/test-ctype_print.c: Likewise.
24492         * tests/unictype/test-ctype_punct.c: Likewise.
24493         * tests/unictype/test-ctype_space.c: Likewise.
24494         * tests/unictype/test-ctype_upper.c: Likewise.
24495         * tests/unictype/test-ctype_xdigit.c: Likewise.
24496         * tests/unictype/test-decdigit.h: Likewise.
24497         * tests/unictype/test-digit.h: Likewise.
24498         * tests/unictype/test-numeric.h: Likewise.
24499         * tests/unictype/test-pr_alphabetic.c: Likewise.
24500         * tests/unictype/test-pr_ascii_hex_digit.c: Likewise.
24501         * tests/unictype/test-pr_bidi_arabic_digit.c: Likewise.
24502         * tests/unictype/test-pr_bidi_arabic_right_to_left.c: Likewise.
24503         * tests/unictype/test-pr_bidi_block_separator.c: Likewise.
24504         * tests/unictype/test-pr_bidi_boundary_neutral.c: Likewise.
24505         * tests/unictype/test-pr_bidi_common_separator.c: Likewise.
24506         * tests/unictype/test-pr_bidi_control.c: Likewise.
24507         * tests/unictype/test-pr_bidi_embedding_or_override.c: Likewise.
24508         * tests/unictype/test-pr_bidi_eur_num_separator.c: Likewise.
24509         * tests/unictype/test-pr_bidi_eur_num_terminator.c: Likewise.
24510         * tests/unictype/test-pr_bidi_european_digit.c: Likewise.
24511         * tests/unictype/test-pr_bidi_hebrew_right_to_left.c: Likewise.
24512         * tests/unictype/test-pr_bidi_left_to_right.c: Likewise.
24513         * tests/unictype/test-pr_bidi_non_spacing_mark.c: Likewise.
24514         * tests/unictype/test-pr_bidi_other_neutral.c: Likewise.
24515         * tests/unictype/test-pr_bidi_pdf.c: Likewise.
24516         * tests/unictype/test-pr_bidi_segment_separator.c: Likewise.
24517         * tests/unictype/test-pr_bidi_whitespace.c: Likewise.
24518         * tests/unictype/test-pr_combining.c: Likewise.
24519         * tests/unictype/test-pr_composite.c: Likewise.
24520         * tests/unictype/test-pr_currency_symbol.c: Likewise.
24521         * tests/unictype/test-pr_dash.c: Likewise.
24522         * tests/unictype/test-pr_decimal_digit.c: Likewise.
24523         * tests/unictype/test-pr_default_ignorable_code_point.c: Likewise.
24524         * tests/unictype/test-pr_deprecated.c: Likewise.
24525         * tests/unictype/test-pr_diacritic.c: Likewise.
24526         * tests/unictype/test-pr_extender.c: Likewise.
24527         * tests/unictype/test-pr_format_control.c: Likewise.
24528         * tests/unictype/test-pr_grapheme_base.c: Likewise.
24529         * tests/unictype/test-pr_grapheme_extend.c: Likewise.
24530         * tests/unictype/test-pr_grapheme_link.c: Likewise.
24531         * tests/unictype/test-pr_hex_digit.c: Likewise.
24532         * tests/unictype/test-pr_hyphen.c: Likewise.
24533         * tests/unictype/test-pr_id_continue.c: Likewise.
24534         * tests/unictype/test-pr_id_start.c: Likewise.
24535         * tests/unictype/test-pr_ideographic.c: Likewise.
24536         * tests/unictype/test-pr_ids_binary_operator.c: Likewise.
24537         * tests/unictype/test-pr_ids_trinary_operator.c: Likewise.
24538         * tests/unictype/test-pr_ignorable_control.c: Likewise.
24539         * tests/unictype/test-pr_iso_control.c: Likewise.
24540         * tests/unictype/test-pr_join_control.c: Likewise.
24541         * tests/unictype/test-pr_left_of_pair.c: Likewise.
24542         * tests/unictype/test-pr_line_separator.c: Likewise.
24543         * tests/unictype/test-pr_logical_order_exception.c: Likewise.
24544         * tests/unictype/test-pr_lowercase.c: Likewise.
24545         * tests/unictype/test-pr_math.c: Likewise.
24546         * tests/unictype/test-pr_non_break.c: Likewise.
24547         * tests/unictype/test-pr_not_a_character.c: Likewise.
24548         * tests/unictype/test-pr_numeric.c: Likewise.
24549         * tests/unictype/test-pr_other_alphabetic.c: Likewise.
24550         * tests/unictype/test-pr_other_default_ignorable_code_point.c: Likewise.
24551         * tests/unictype/test-pr_other_grapheme_extend.c: Likewise.
24552         * tests/unictype/test-pr_other_id_continue.c: Likewise.
24553         * tests/unictype/test-pr_other_id_start.c: Likewise.
24554         * tests/unictype/test-pr_other_lowercase.c: Likewise.
24555         * tests/unictype/test-pr_other_math.c: Likewise.
24556         * tests/unictype/test-pr_other_uppercase.c: Likewise.
24557         * tests/unictype/test-pr_paired_punctuation.c: Likewise.
24558         * tests/unictype/test-pr_paragraph_separator.c: Likewise.
24559         * tests/unictype/test-pr_pattern_syntax.c: Likewise.
24560         * tests/unictype/test-pr_pattern_white_space.c: Likewise.
24561         * tests/unictype/test-pr_private_use.c: Likewise.
24562         * tests/unictype/test-pr_punctuation.c: Likewise.
24563         * tests/unictype/test-pr_quotation_mark.c: Likewise.
24564         * tests/unictype/test-pr_radical.c: Likewise.
24565         * tests/unictype/test-pr_sentence_terminal.c: Likewise.
24566         * tests/unictype/test-pr_soft_dotted.c: Likewise.
24567         * tests/unictype/test-pr_space.c: Likewise.
24568         * tests/unictype/test-pr_terminal_punctuation.c: Likewise.
24569         * tests/unictype/test-pr_titlecase.c: Likewise.
24570         * tests/unictype/test-pr_unassigned_code_value.c: Likewise.
24571         * tests/unictype/test-pr_unified_ideograph.c: Likewise.
24572         * tests/unictype/test-pr_uppercase.c: Likewise.
24573         * tests/unictype/test-pr_variation_selector.c: Likewise.
24574         * tests/unictype/test-pr_white_space.c: Likewise.
24575         * tests/unictype/test-pr_xid_continue.c: Likewise.
24576         * tests/unictype/test-pr_xid_start.c: Likewise.
24577         * tests/unictype/test-pr_zero_width.c: Likewise.
24578         * tests/unictype/test-sy_c_whitespace.c: Likewise.
24579         * tests/unictype/test-sy_java_whitespace.c: Likewise.
24580
24581 2007-11-12  Bruno Haible  <bruno@clisp.org>
24582
24583         Unicode character classification functions.
24584         * lib/unictype.h: New file.
24585         * modules/unictype/base: New file.
24586         * modules/unictype/category-L: New file.
24587         * modules/unictype/category-Lu: New file.
24588         * modules/unictype/category-Ll: New file.
24589         * modules/unictype/category-Lt: New file.
24590         * modules/unictype/category-Lm: New file.
24591         * modules/unictype/category-Lo: New file.
24592         * modules/unictype/category-M: New file.
24593         * modules/unictype/category-Mn: New file.
24594         * modules/unictype/category-Mc: New file.
24595         * modules/unictype/category-Me: New file.
24596         * modules/unictype/category-N: New file.
24597         * modules/unictype/category-Nd: New file.
24598         * modules/unictype/category-Nl: New file.
24599         * modules/unictype/category-No: New file.
24600         * modules/unictype/category-P: New file.
24601         * modules/unictype/category-Pc: New file.
24602         * modules/unictype/category-Pd: New file.
24603         * modules/unictype/category-Ps: New file.
24604         * modules/unictype/category-Pe: New file.
24605         * modules/unictype/category-Pi: New file.
24606         * modules/unictype/category-Pf: New file.
24607         * modules/unictype/category-Po: New file.
24608         * modules/unictype/category-S: New file.
24609         * modules/unictype/category-Sm: New file.
24610         * modules/unictype/category-Sc: New file.
24611         * modules/unictype/category-Sk: New file.
24612         * modules/unictype/category-So: New file.
24613         * modules/unictype/category-Z: New file.
24614         * modules/unictype/category-Zs: New file.
24615         * modules/unictype/category-Zl: New file.
24616         * modules/unictype/category-Zp: New file.
24617         * modules/unictype/category-C: New file.
24618         * modules/unictype/category-Cc: New file.
24619         * modules/unictype/category-Cf: New file.
24620         * modules/unictype/category-Cs: New file.
24621         * modules/unictype/category-Co: New file.
24622         * modules/unictype/category-Cn: New file.
24623         * modules/unictype/category-or: New file.
24624         * modules/unictype/category-of: New file.
24625         * modules/unictype/category-test: New file.
24626         * modules/unictype/category-test-withtable: New file.
24627         * modules/unictype/category-byname: New file.
24628         * modules/unictype/category-none: New file.
24629         * modules/unictype/category-and: New file.
24630         * modules/unictype/category-and-not: New file.
24631         * modules/unictype/category-name: New file.
24632         * modules/unictype/combining-class: New file.
24633         * modules/unictype/category-all: New file.
24634         * modules/unictype/bidicategory-all: New file.
24635         * modules/unictype/bidicategory-byname: New file.
24636         * modules/unictype/bidicategory-name: New file.
24637         * modules/unictype/bidicategory-of: New file.
24638         * modules/unictype/bidicategory-test: New file.
24639         * modules/unictype/decimal-digit: New file.
24640         * modules/unictype/digit: New file.
24641         * modules/unictype/numeric: New file.
24642         * modules/unictype/mirror: New file.
24643         * modules/unictype/property-white-space: New file.
24644         * modules/unictype/property-alphabetic: New file.
24645         * modules/unictype/property-other-alphabetic: New file.
24646         * modules/unictype/property-not-a-character: New file.
24647         * modules/unictype/property-default-ignorable-code-point: New file.
24648         * modules/unictype/property-other-default-ignorable-code-point: New
24649         file.
24650         * modules/unictype/property-deprecated: New file.
24651         * modules/unictype/property-logical-order-exception: New file.
24652         * modules/unictype/property-variation-selector: New file.
24653         * modules/unictype/property-private-use: New file.
24654         * modules/unictype/property-unassigned-code-value: New file.
24655         * modules/unictype/property-uppercase: New file.
24656         * modules/unictype/property-other-uppercase: New file.
24657         * modules/unictype/property-lowercase: New file.
24658         * modules/unictype/property-other-lowercase: New file.
24659         * modules/unictype/property-titlecase: New file.
24660         * modules/unictype/property-soft-dotted: New file.
24661         * modules/unictype/property-id-start: New file.
24662         * modules/unictype/property-other-id-start: New file.
24663         * modules/unictype/property-id-continue: New file.
24664         * modules/unictype/property-other-id-continue: New file.
24665         * modules/unictype/property-xid-start: New file.
24666         * modules/unictype/property-xid-continue: New file.
24667         * modules/unictype/property-pattern-white-space: New file.
24668         * modules/unictype/property-pattern-syntax: New file.
24669         * modules/unictype/property-join-control: New file.
24670         * modules/unictype/property-grapheme-base: New file.
24671         * modules/unictype/property-grapheme-extend: New file.
24672         * modules/unictype/property-other-grapheme-extend: New file.
24673         * modules/unictype/property-grapheme-link: New file.
24674         * modules/unictype/property-bidi-control: New file.
24675         * modules/unictype/property-bidi-left-to-right: New file.
24676         * modules/unictype/property-bidi-hebrew-right-to-left: New file.
24677         * modules/unictype/property-bidi-arabic-right-to-left: New file.
24678         * modules/unictype/property-bidi-european-digit: New file.
24679         * modules/unictype/property-bidi-eur-num-separator: New file.
24680         * modules/unictype/property-bidi-eur-num-terminator: New file.
24681         * modules/unictype/property-bidi-arabic-digit: New file.
24682         * modules/unictype/property-bidi-common-separator: New file.
24683         * modules/unictype/property-bidi-block-separator: New file.
24684         * modules/unictype/property-bidi-segment-separator: New file.
24685         * modules/unictype/property-bidi-whitespace: New file.
24686         * modules/unictype/property-bidi-non-spacing-mark: New file.
24687         * modules/unictype/property-bidi-boundary-neutral: New file.
24688         * modules/unictype/property-bidi-pdf: New file.
24689         * modules/unictype/property-bidi-embedding-or-override: New file.
24690         * modules/unictype/property-bidi-other-neutral: New file.
24691         * modules/unictype/property-hex-digit: New file.
24692         * modules/unictype/property-ascii-hex-digit: New file.
24693         * modules/unictype/property-ideographic: New file.
24694         * modules/unictype/property-unified-ideograph: New file.
24695         * modules/unictype/property-radical: New file.
24696         * modules/unictype/property-ids-binary-operator: New file.
24697         * modules/unictype/property-ids-trinary-operator: New file.
24698         * modules/unictype/property-zero-width: New file.
24699         * modules/unictype/property-space: New file.
24700         * modules/unictype/property-non-break: New file.
24701         * modules/unictype/property-iso-control: New file.
24702         * modules/unictype/property-format-control: New file.
24703         * modules/unictype/property-dash: New file.
24704         * modules/unictype/property-hyphen: New file.
24705         * modules/unictype/property-punctuation: New file.
24706         * modules/unictype/property-line-separator: New file.
24707         * modules/unictype/property-paragraph-separator: New file.
24708         * modules/unictype/property-quotation-mark: New file.
24709         * modules/unictype/property-sentence-terminal: New file.
24710         * modules/unictype/property-terminal-punctuation: New file.
24711         * modules/unictype/property-currency-symbol: New file.
24712         * modules/unictype/property-math: New file.
24713         * modules/unictype/property-other-math: New file.
24714         * modules/unictype/property-paired-punctuation: New file.
24715         * modules/unictype/property-left-of-pair: New file.
24716         * modules/unictype/property-combining: New file.
24717         * modules/unictype/property-composite: New file.
24718         * modules/unictype/property-decimal-digit: New file.
24719         * modules/unictype/property-numeric: New file.
24720         * modules/unictype/property-diacritic: New file.
24721         * modules/unictype/property-extender: New file.
24722         * modules/unictype/property-ignorable-control: New file.
24723         * modules/unictype/property-test: New file.
24724         * modules/unictype/property-byname: New file.
24725         * modules/unictype/property-all: New file.
24726         * modules/unictype/scripts: New file.
24727         * modules/unictype/scripts-all: New file.
24728         * modules/unictype/block-of: New file.
24729         * modules/unictype/block-test: New file.
24730         * modules/unictype/block-list: New file.
24731         * modules/unictype/block-all: New file.
24732         * modules/unictype/syntax-c-whitespace: New file.
24733         * modules/unictype/syntax-java-whitespace: New file.
24734         * modules/unictype/syntax-c-ident: New file.
24735         * modules/unictype/syntax-java-ident: New file.
24736         * modules/unictype/ctype-alnum: New file.
24737         * modules/unictype/ctype-alpha: New file.
24738         * modules/unictype/ctype-cntrl: New file.
24739         * modules/unictype/ctype-digit: New file.
24740         * modules/unictype/ctype-graph: New file.
24741         * modules/unictype/ctype-lower: New file.
24742         * modules/unictype/ctype-print: New file.
24743         * modules/unictype/ctype-punct: New file.
24744         * modules/unictype/ctype-space: New file.
24745         * modules/unictype/ctype-upper: New file.
24746         * modules/unictype/ctype-xdigit: New file.
24747         * modules/unictype/ctype-blank: New file.
24748         * lib/unictype/bidi_byname.c: New file.
24749         * lib/unictype/bidi_name.c: New file.
24750         * lib/unictype/bidi_of.c: New file.
24751         * lib/unictype/bidi_test.c: New file.
24752         * lib/unictype/bitmap.h: New file.
24753         * lib/unictype/block_test.c: New file.
24754         * lib/unictype/blocks.c: New file.
24755         * lib/unictype/categ_C.c: New file.
24756         * lib/unictype/categ_Cc.c: New file.
24757         * lib/unictype/categ_Cf.c: New file.
24758         * lib/unictype/categ_Cn.c: New file.
24759         * lib/unictype/categ_Co.c: New file.
24760         * lib/unictype/categ_Cs.c: New file.
24761         * lib/unictype/categ_L.c: New file.
24762         * lib/unictype/categ_Ll.c: New file.
24763         * lib/unictype/categ_Lm.c: New file.
24764         * lib/unictype/categ_Lo.c: New file.
24765         * lib/unictype/categ_Lt.c: New file.
24766         * lib/unictype/categ_Lu.c: New file.
24767         * lib/unictype/categ_M.c: New file.
24768         * lib/unictype/categ_Mc.c: New file.
24769         * lib/unictype/categ_Me.c: New file.
24770         * lib/unictype/categ_Mn.c: New file.
24771         * lib/unictype/categ_N.c: New file.
24772         * lib/unictype/categ_Nd.c: New file.
24773         * lib/unictype/categ_Nl.c: New file.
24774         * lib/unictype/categ_No.c: New file.
24775         * lib/unictype/categ_P.c: New file.
24776         * lib/unictype/categ_Pc.c: New file.
24777         * lib/unictype/categ_Pd.c: New file.
24778         * lib/unictype/categ_Pe.c: New file.
24779         * lib/unictype/categ_Pf.c: New file.
24780         * lib/unictype/categ_Pi.c: New file.
24781         * lib/unictype/categ_Po.c: New file.
24782         * lib/unictype/categ_Ps.c: New file.
24783         * lib/unictype/categ_S.c: New file.
24784         * lib/unictype/categ_Sc.c: New file.
24785         * lib/unictype/categ_Sk.c: New file.
24786         * lib/unictype/categ_Sm.c: New file.
24787         * lib/unictype/categ_So.c: New file.
24788         * lib/unictype/categ_Z.c: New file.
24789         * lib/unictype/categ_Zl.c: New file.
24790         * lib/unictype/categ_Zp.c: New file.
24791         * lib/unictype/categ_Zs.c: New file.
24792         * lib/unictype/categ_and.c: New file.
24793         * lib/unictype/categ_and_not.c: New file.
24794         * lib/unictype/categ_byname.c: New file.
24795         * lib/unictype/categ_name.c: New file.
24796         * lib/unictype/categ_none.c: New file.
24797         * lib/unictype/categ_of.c: New file.
24798         * lib/unictype/categ_or.c: New file.
24799         * lib/unictype/categ_test.c: New file.
24800         * lib/unictype/combining.c: New file.
24801         * lib/unictype/ctype_alnum.c: New file.
24802         * lib/unictype/ctype_alpha.c: New file.
24803         * lib/unictype/ctype_blank.c: New file.
24804         * lib/unictype/ctype_cntrl.c: New file.
24805         * lib/unictype/ctype_digit.c: New file.
24806         * lib/unictype/ctype_graph.c: New file.
24807         * lib/unictype/ctype_lower.c: New file.
24808         * lib/unictype/ctype_print.c: New file.
24809         * lib/unictype/ctype_punct.c: New file.
24810         * lib/unictype/ctype_space.c: New file.
24811         * lib/unictype/ctype_upper.c: New file.
24812         * lib/unictype/ctype_xdigit.c: New file.
24813         * lib/unictype/decdigit.c: New file.
24814         * lib/unictype/digit.c: New file.
24815         * lib/unictype/identsyntaxmap.h: New file.
24816         * lib/unictype/mirror.c: New file.
24817         * lib/unictype/numeric.c: New file.
24818         * lib/unictype/pr_alphabetic.c: New file.
24819         * lib/unictype/pr_ascii_hex_digit.c: New file.
24820         * lib/unictype/pr_bidi_arabic_digit.c: New file.
24821         * lib/unictype/pr_bidi_arabic_right_to_left.c: New file.
24822         * lib/unictype/pr_bidi_block_separator.c: New file.
24823         * lib/unictype/pr_bidi_boundary_neutral.c: New file.
24824         * lib/unictype/pr_bidi_common_separator.c: New file.
24825         * lib/unictype/pr_bidi_control.c: New file.
24826         * lib/unictype/pr_bidi_embedding_or_override.c: New file.
24827         * lib/unictype/pr_bidi_eur_num_separator.c: New file.
24828         * lib/unictype/pr_bidi_eur_num_terminator.c: New file.
24829         * lib/unictype/pr_bidi_european_digit.c: New file.
24830         * lib/unictype/pr_bidi_hebrew_right_to_left.c: New file.
24831         * lib/unictype/pr_bidi_left_to_right.c: New file.
24832         * lib/unictype/pr_bidi_non_spacing_mark.c: New file.
24833         * lib/unictype/pr_bidi_other_neutral.c: New file.
24834         * lib/unictype/pr_bidi_pdf.c: New file.
24835         * lib/unictype/pr_bidi_segment_separator.c: New file.
24836         * lib/unictype/pr_bidi_whitespace.c: New file.
24837         * lib/unictype/pr_byname.c: New file.
24838         * lib/unictype/pr_byname.gperf: New file.
24839         * lib/unictype/pr_combining.c: New file.
24840         * lib/unictype/pr_composite.c: New file.
24841         * lib/unictype/pr_currency_symbol.c: New file.
24842         * lib/unictype/pr_dash.c: New file.
24843         * lib/unictype/pr_decimal_digit.c: New file.
24844         * lib/unictype/pr_default_ignorable_code_point.c: New file.
24845         * lib/unictype/pr_deprecated.c: New file.
24846         * lib/unictype/pr_diacritic.c: New file.
24847         * lib/unictype/pr_extender.c: New file.
24848         * lib/unictype/pr_format_control.c: New file.
24849         * lib/unictype/pr_grapheme_base.c: New file.
24850         * lib/unictype/pr_grapheme_extend.c: New file.
24851         * lib/unictype/pr_grapheme_link.c: New file.
24852         * lib/unictype/pr_hex_digit.c: New file.
24853         * lib/unictype/pr_hyphen.c: New file.
24854         * lib/unictype/pr_id_continue.c: New file.
24855         * lib/unictype/pr_id_start.c: New file.
24856         * lib/unictype/pr_ideographic.c: New file.
24857         * lib/unictype/pr_ids_binary_operator.c: New file.
24858         * lib/unictype/pr_ids_trinary_operator.c: New file.
24859         * lib/unictype/pr_ignorable_control.c: New file.
24860         * lib/unictype/pr_iso_control.c: New file.
24861         * lib/unictype/pr_join_control.c: New file.
24862         * lib/unictype/pr_left_of_pair.c: New file.
24863         * lib/unictype/pr_line_separator.c: New file.
24864         * lib/unictype/pr_logical_order_exception.c: New file.
24865         * lib/unictype/pr_lowercase.c: New file.
24866         * lib/unictype/pr_math.c: New file.
24867         * lib/unictype/pr_non_break.c: New file.
24868         * lib/unictype/pr_not_a_character.c: New file.
24869         * lib/unictype/pr_numeric.c: New file.
24870         * lib/unictype/pr_other_alphabetic.c: New file.
24871         * lib/unictype/pr_other_default_ignorable_code_point.c: New file.
24872         * lib/unictype/pr_other_grapheme_extend.c: New file.
24873         * lib/unictype/pr_other_id_continue.c: New file.
24874         * lib/unictype/pr_other_id_start.c: New file.
24875         * lib/unictype/pr_other_lowercase.c: New file.
24876         * lib/unictype/pr_other_math.c: New file.
24877         * lib/unictype/pr_other_uppercase.c: New file.
24878         * lib/unictype/pr_paired_punctuation.c: New file.
24879         * lib/unictype/pr_paragraph_separator.c: New file.
24880         * lib/unictype/pr_pattern_syntax.c: New file.
24881         * lib/unictype/pr_pattern_white_space.c: New file.
24882         * lib/unictype/pr_private_use.c: New file.
24883         * lib/unictype/pr_punctuation.c: New file.
24884         * lib/unictype/pr_quotation_mark.c: New file.
24885         * lib/unictype/pr_radical.c: New file.
24886         * lib/unictype/pr_sentence_terminal.c: New file.
24887         * lib/unictype/pr_soft_dotted.c: New file.
24888         * lib/unictype/pr_space.c: New file.
24889         * lib/unictype/pr_terminal_punctuation.c: New file.
24890         * lib/unictype/pr_test.c: New file.
24891         * lib/unictype/pr_titlecase.c: New file.
24892         * lib/unictype/pr_unassigned_code_value.c: New file.
24893         * lib/unictype/pr_unified_ideograph.c: New file.
24894         * lib/unictype/pr_uppercase.c: New file.
24895         * lib/unictype/pr_variation_selector.c: New file.
24896         * lib/unictype/pr_white_space.c: New file.
24897         * lib/unictype/pr_xid_continue.c: New file.
24898         * lib/unictype/pr_xid_start.c: New file.
24899         * lib/unictype/pr_zero_width.c: New file.
24900         * lib/unictype/scripts.c: New file.
24901         * lib/unictype/sy_c_ident.c: New file.
24902         * lib/unictype/sy_c_whitespace.c: New file.
24903         * lib/unictype/sy_java_ident.c: New file.
24904         * lib/unictype/sy_java_whitespace.c: New file.
24905
24906         * lib/unictype/bidi_of.h: New file, generated by gen-ctype.c for
24907         Unicode 5.0.0.
24908         * lib/unictype/blocks.h: Likewise.
24909         * lib/unictype/categ_C.h: Likewise.
24910         * lib/unictype/categ_Cc.h: Likewise.
24911         * lib/unictype/categ_Cf.h: Likewise.
24912         * lib/unictype/categ_Cn.h: Likewise.
24913         * lib/unictype/categ_Co.h: Likewise.
24914         * lib/unictype/categ_Cs.h: Likewise.
24915         * lib/unictype/categ_L.h: Likewise.
24916         * lib/unictype/categ_Ll.h: Likewise.
24917         * lib/unictype/categ_Lm.h: Likewise.
24918         * lib/unictype/categ_Lo.h: Likewise.
24919         * lib/unictype/categ_Lt.h: Likewise.
24920         * lib/unictype/categ_Lu.h: Likewise.
24921         * lib/unictype/categ_M.h: Likewise.
24922         * lib/unictype/categ_Mc.h: Likewise.
24923         * lib/unictype/categ_Me.h: Likewise.
24924         * lib/unictype/categ_Mn.h: Likewise.
24925         * lib/unictype/categ_N.h: Likewise.
24926         * lib/unictype/categ_Nd.h: Likewise.
24927         * lib/unictype/categ_Nl.h: Likewise.
24928         * lib/unictype/categ_No.h: Likewise.
24929         * lib/unictype/categ_P.h: Likewise.
24930         * lib/unictype/categ_Pc.h: Likewise.
24931         * lib/unictype/categ_Pd.h: Likewise.
24932         * lib/unictype/categ_Pe.h: Likewise.
24933         * lib/unictype/categ_Pf.h: Likewise.
24934         * lib/unictype/categ_Pi.h: Likewise.
24935         * lib/unictype/categ_Po.h: Likewise.
24936         * lib/unictype/categ_Ps.h: Likewise.
24937         * lib/unictype/categ_S.h: Likewise.
24938         * lib/unictype/categ_Sc.h: Likewise.
24939         * lib/unictype/categ_Sk.h: Likewise.
24940         * lib/unictype/categ_Sm.h: Likewise.
24941         * lib/unictype/categ_So.h: Likewise.
24942         * lib/unictype/categ_Z.h: Likewise.
24943         * lib/unictype/categ_Zl.h: Likewise.
24944         * lib/unictype/categ_Zp.h: Likewise.
24945         * lib/unictype/categ_Zs.h: Likewise.
24946         * lib/unictype/categ_of.h: Likewise.
24947         * lib/unictype/combining.h: Likewise.
24948         * lib/unictype/ctype_alnum.h: Likewise.
24949         * lib/unictype/ctype_alpha.h: Likewise.
24950         * lib/unictype/ctype_blank.h: Likewise.
24951         * lib/unictype/ctype_cntrl.h: Likewise.
24952         * lib/unictype/ctype_digit.h: Likewise.
24953         * lib/unictype/ctype_graph.h: Likewise.
24954         * lib/unictype/ctype_lower.h: Likewise.
24955         * lib/unictype/ctype_print.h: Likewise.
24956         * lib/unictype/ctype_punct.h: Likewise.
24957         * lib/unictype/ctype_space.h: Likewise.
24958         * lib/unictype/ctype_upper.h: Likewise.
24959         * lib/unictype/ctype_xdigit.h: Likewise.
24960         * lib/unictype/decdigit.h: Likewise.
24961         * lib/unictype/digit.h: Likewise.
24962         * lib/unictype/mirror.h: Likewise.
24963         * lib/unictype/numeric.h: Likewise.
24964         * lib/unictype/pr_alphabetic.h: Likewise.
24965         * lib/unictype/pr_ascii_hex_digit.h: Likewise.
24966         * lib/unictype/pr_bidi_arabic_digit.h: Likewise.
24967         * lib/unictype/pr_bidi_arabic_right_to_left.h: Likewise.
24968         * lib/unictype/pr_bidi_block_separator.h: Likewise.
24969         * lib/unictype/pr_bidi_boundary_neutral.h: Likewise.
24970         * lib/unictype/pr_bidi_common_separator.h: Likewise.
24971         * lib/unictype/pr_bidi_control.h: Likewise.
24972         * lib/unictype/pr_bidi_embedding_or_override.h: Likewise.
24973         * lib/unictype/pr_bidi_eur_num_separator.h: Likewise.
24974         * lib/unictype/pr_bidi_eur_num_terminator.h: Likewise.
24975         * lib/unictype/pr_bidi_european_digit.h: Likewise.
24976         * lib/unictype/pr_bidi_hebrew_right_to_left.h: Likewise.
24977         * lib/unictype/pr_bidi_left_to_right.h: Likewise.
24978         * lib/unictype/pr_bidi_non_spacing_mark.h: Likewise.
24979         * lib/unictype/pr_bidi_other_neutral.h: Likewise.
24980         * lib/unictype/pr_bidi_pdf.h: Likewise.
24981         * lib/unictype/pr_bidi_segment_separator.h: Likewise.
24982         * lib/unictype/pr_bidi_whitespace.h: Likewise.
24983         * lib/unictype/pr_combining.h: Likewise.
24984         * lib/unictype/pr_composite.h: Likewise.
24985         * lib/unictype/pr_currency_symbol.h: Likewise.
24986         * lib/unictype/pr_dash.h: Likewise.
24987         * lib/unictype/pr_decimal_digit.h: Likewise.
24988         * lib/unictype/pr_default_ignorable_code_point.h: Likewise.
24989         * lib/unictype/pr_deprecated.h: Likewise.
24990         * lib/unictype/pr_diacritic.h: Likewise.
24991         * lib/unictype/pr_extender.h: Likewise.
24992         * lib/unictype/pr_format_control.h: Likewise.
24993         * lib/unictype/pr_grapheme_base.h: Likewise.
24994         * lib/unictype/pr_grapheme_extend.h: Likewise.
24995         * lib/unictype/pr_grapheme_link.h: Likewise.
24996         * lib/unictype/pr_hex_digit.h: Likewise.
24997         * lib/unictype/pr_hyphen.h: Likewise.
24998         * lib/unictype/pr_id_continue.h: Likewise.
24999         * lib/unictype/pr_id_start.h: Likewise.
25000         * lib/unictype/pr_ideographic.h: Likewise.
25001         * lib/unictype/pr_ids_binary_operator.h: Likewise.
25002         * lib/unictype/pr_ids_trinary_operator.h: Likewise.
25003         * lib/unictype/pr_ignorable_control.h: Likewise.
25004         * lib/unictype/pr_iso_control.h: Likewise.
25005         * lib/unictype/pr_join_control.h: Likewise.
25006         * lib/unictype/pr_left_of_pair.h: Likewise.
25007         * lib/unictype/pr_line_separator.h: Likewise.
25008         * lib/unictype/pr_logical_order_exception.h: Likewise.
25009         * lib/unictype/pr_lowercase.h: Likewise.
25010         * lib/unictype/pr_math.h: Likewise.
25011         * lib/unictype/pr_non_break.h: Likewise.
25012         * lib/unictype/pr_not_a_character.h: Likewise.
25013         * lib/unictype/pr_numeric.h: Likewise.
25014         * lib/unictype/pr_other_alphabetic.h: Likewise.
25015         * lib/unictype/pr_other_default_ignorable_code_point.h: Likewise.
25016         * lib/unictype/pr_other_grapheme_extend.h: Likewise.
25017         * lib/unictype/pr_other_id_continue.h: Likewise.
25018         * lib/unictype/pr_other_id_start.h: Likewise.
25019         * lib/unictype/pr_other_lowercase.h: Likewise.
25020         * lib/unictype/pr_other_math.h: Likewise.
25021         * lib/unictype/pr_other_uppercase.h: Likewise.
25022         * lib/unictype/pr_paired_punctuation.h: Likewise.
25023         * lib/unictype/pr_paragraph_separator.h: Likewise.
25024         * lib/unictype/pr_pattern_syntax.h: Likewise.
25025         * lib/unictype/pr_pattern_white_space.h: Likewise.
25026         * lib/unictype/pr_private_use.h: Likewise.
25027         * lib/unictype/pr_punctuation.h: Likewise.
25028         * lib/unictype/pr_quotation_mark.h: Likewise.
25029         * lib/unictype/pr_radical.h: Likewise.
25030         * lib/unictype/pr_sentence_terminal.h: Likewise.
25031         * lib/unictype/pr_soft_dotted.h: Likewise.
25032         * lib/unictype/pr_space.h: Likewise.
25033         * lib/unictype/pr_terminal_punctuation.h: Likewise.
25034         * lib/unictype/pr_titlecase.h: Likewise.
25035         * lib/unictype/pr_unassigned_code_value.h: Likewise.
25036         * lib/unictype/pr_unified_ideograph.h: Likewise.
25037         * lib/unictype/pr_uppercase.h: Likewise.
25038         * lib/unictype/pr_variation_selector.h: Likewise.
25039         * lib/unictype/pr_white_space.h: Likewise.
25040         * lib/unictype/pr_xid_continue.h: Likewise.
25041         * lib/unictype/pr_xid_start.h: Likewise.
25042         * lib/unictype/pr_zero_width.h: Likewise.
25043         * lib/unictype/scripts.h: Likewise.
25044         * lib/unictype/scripts_byname.gperf: Likewise.
25045         * lib/unictype/sy_c_ident.h: Likewise.
25046         * lib/unictype/sy_c_whitespace.h: Likewise.
25047         * lib/unictype/sy_java_ident.h: Likewise.
25048         * lib/unictype/sy_java_whitespace.h: Likewise.
25049
25050         * lib/unictype/Makefile: New file.
25051         * lib/unictype/gen-ctype.c: New file, based on gen-unicode-ctype.c in
25052         glibc.
25053         * lib/unictype/3level.h: New file, copied from glibc.
25054         * lib/unictype/3levelbit.h: New file.
25055
25056 2007-11-11  Bruno Haible  <bruno@clisp.org>
25057
25058         * modules/gperf: New file.
25059         * modules/iconv_open (Depends-on): Add it.
25060         (Makefile.am): Remove the GPERF definition.
25061
25062 2007-11-11  Bruno Haible  <bruno@clisp.org>
25063
25064         * m4/round.m4 (gl_FUNC_ROUND): Test against NetBSD 3.0 bug.
25065         * doc/functions/round.texi: Mention the NetBSD 3.0 bug.
25066
25067 2007-11-11  Bruno Haible  <bruno@clisp.org>
25068
25069         * tests/test-argmatch.c (ARGMATCH_DIE): Undefine.
25070         (usage): Remove function.
25071
25072 2007-11-11  Bruno Haible  <bruno@clisp.org>
25073
25074         * m4/roundf.m4 (gl_FUNC_ROUNDF): Use gl_FUNC_FLOORF_LIBS and
25075         gl_FUNC_CEILF_LIBS.
25076         * m4/round.m4 (gl_FUNC_ROUND): Use gl_FUNC_FLOOR_LIBS and
25077         gl_FUNC_CEIL_LIBS.
25078         * m4/roundl.m4 (gl_FUNC_ROUNDL): Use gl_FUNC_FLOORL_LIBS and
25079         gl_FUNC_CEILL_LIBS.
25080         * modules/roundf (Files): Add m4/floorf.m4, m4/ceilf.m4.
25081         * modules/round (Files): Add m4/floor.m4, m4/ceil.m4.
25082         * modules/roundl (Files): Add m4/floorl.m4, m4/ceill.m4.
25083
25084 2007-11-11  Bruno Haible  <bruno@clisp.org>
25085
25086         * m4/roundf.m4 (gl_FUNC_ROUNDF): Handle the case that floorf and
25087         roundf were declared but do not exist on functions.
25088         * m4/roundl.m4 (gl_FUNC_ROUNDL): Handle the case that floorl and
25089         roundl were declared but do not exist on functions.
25090         * lib/round.c (HAVE_FLOOR_AND_CEIL): Use HAVE_FLOORF_AND_CEILF and
25091         HAVE_FLOORL_AND_CEILL, respectively.
25092         Needed for Sun C on Solaris 10.
25093
25094 2007-11-11  Bruno Haible  <bruno@clisp.org>
25095
25096         * m4/roundf.m4 (gl_FUNC_ROUNDF): Set REPLACE_ROUNDF instead of
25097         HAVE_DECL_ROUNDF. Remove redundant AC_SUBST.
25098         * m4/round.m4 (gl_FUNC_ROUND): Set REPLACE_ROUND instead of
25099         HAVE_DECL_ROUND. Remove redundant AC_SUBST.
25100         * m4/roundl.m4 (gl_FUNC_ROUNDL): Set REPLACE_ROUNDL instead of
25101         HAVE_DECL_ROUNDL. Remove redundant AC_SUBST.
25102         * lib/math.in.h (roundf): Use REPLACE_ROUNDF instead of
25103         HAVE_DECL_ROUNDF.
25104         (round): Use REPLACE_ROUND instead of HAVE_DECL_ROUND.
25105         (roundl): Use REPLACE_ROUNDL instead of HAVE_DECL_ROUNDL.
25106         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_ROUND* instead
25107         of HAVE_DECL_ROUND*.
25108         * modules/math (Makefile.am): Update.
25109
25110 2007-11-10  Bruno Haible  <bruno@clisp.org>
25111
25112         * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_PARSE): Use same check for
25113         ptrdiff_t as m4/intl.m4.
25114
25115 2007-11-10  Jim Meyering  <meyering@redhat.com>
25116
25117         Avoid link failure for the argmatch test.
25118         * tests/test-argmatch.c (usage): Define function to avoid a link
25119         failure: argmatch_die requires a usage function.
25120
25121 2007-11-09  Bruno Haible  <bruno@clisp.org>
25122
25123         * doc/functions/snprintf.texi: Mention BeOS deficiency.
25124         * doc/functions/vsnprintf.texi: Likewise.
25125         * lib/vasnprintf.c (VASNPRINTF): Ensure that we never call snprintf
25126         with a size argument < 2.
25127
25128 2007-11-09  Bruno Haible  <bruno@clisp.org>
25129
25130         * lib/vasnprintf.c (VASNPRINTF): Increase reallocation of snprintf
25131         buffer. Fixes an inefficiency introduced on 2007-11-03.
25132
25133 2007-11-09  Bruno Haible  <bruno@clisp.org>
25134
25135         * m4/locale-tr.m4 (gt_LOCALE_TR_UTF8) [BeOS]: Make this test return
25136         none instead of tr_TR. Fixes a failure of test-c-strcasecmp.c.
25137
25138 2007-11-08  Jim Meyering  <meyering@redhat.com>
25139
25140         Change cache variable name prefix "jm_" to "gl_" everywhere.
25141         * m4/d-type.m4, m4/jm-winsz1.m4, m4/jm-winsz2.m4, m4/link-follow.m4:
25142         * m4/putenv.m4, m4/strtoimax.m4, m4/strtoumax.m4, m4/unlink-busy.m4:
25143         * m4/uptime.m4: s/gl_/jm_/
25144
25145 2007-11-07  Bruno Haible  <bruno@clisp.org>
25146
25147         Update to GNU gettext 0.17.
25148         * m4/intl.m4: Update to GNU gettext 0.17.
25149         * m4/po.m4: Likewise.
25150         * modules/gettext (Files): Remove m4/ulonglong.m4.
25151         (configure.ac): Require gettext infrastructure from version 0.17.
25152
25153 2007-11-06  Bruno Haible  <bruno@clisp.org>
25154
25155         * lib/fbufmode.c (fbufmode) [QNX]: Use numerical values for flags; the
25156         symbolic values are not defined in a public header.
25157         * lib/freadable.c (freadable) [QNX]: Likewise.
25158         * lib/freadahead.c (freadahead) [QNX]: Likewise.
25159         * lib/freading.c (freading) [QNX]: Likewise.
25160         * lib/fseterr.c (fseterr) [QNX]: Likewise.
25161         * lib/fwritable.c (fwritable) [QNX]: Likewise.
25162         * lib/fwriting.c (fwriting) [QNX]: Likewise.
25163         * lib/fpurge.c (fpurge) [QNX]: Likewise. Add a return statement.
25164         Reported by Alain Magloire.
25165
25166         * m4/fpending.m4 (gl_FUNC_FPENDING): Add a variant for QNX.
25167
25168 2007-11-05  Bruno Haible  <bruno@clisp.org>
25169
25170         * lib/vasnprintf.c (VASNPRINTF): Expand the NEED_PRINTF_DIRECTIVE_A
25171         code when NEED_PRINTF_LONG_DOUBLE or NEED_PRINTF_DOUBLE is set.
25172         Needed on Cygwin, where !NEED_PRINTF_DIRECTIVE_A && NEED_PRINTF_DOUBLE.
25173         Reported by Eric Blake.
25174
25175 2007-10-27  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
25176             Bruno Haible  <bruno@clisp.org>
25177
25178         * modules/malloc (configure.ac): Define GNULIB_MALLOC_GNU always.
25179         * modules/realloc (configure.ac): Define GNULIB_REALLOC_GNU always.
25180         * lib/realloc.c (SYSTEM_MALLOC_GLIBC_COMPATIBLE): New macro.
25181         (malloc): Undefine also before including <stdlib.h>.
25182         (rpl_realloc): Turn malloc(0) into malloc(1) if necessary.
25183         Needed on OSF/1 4.0.
25184
25185 2007-11-05  Jim Meyering  <meyering@redhat.com>
25186
25187         git-version-gen: sync from coreutils.
25188         * build-aux/git-version-gen: Add comments.
25189         Change the first '-' to '.' in the snapshot version string,
25190         e.g., 6.9-377-08144 -> 6.9.377-08144
25191         Remove first parameter.
25192         Don't declare a version "-dirty" merely because a time
25193         stamp has changed.
25194
25195 2007-11-04  Bruno Haible  <bruno@clisp.org>
25196
25197         * lib/lock.h: Protect all macro definitions containing an 'if'
25198         statement through a "do { ... } while (0)".
25199         * lib/tls.h: Likewise.
25200
25201 2007-11-04  Bruno Haible  <bruno@clisp.org>
25202
25203         * lib/vasnprintf.c (DCHAR_IS_TCHAR, DCHAR_CPY): Undefine at the end.
25204
25205 2007-11-04  Bruno Haible  <bruno@clisp.org>
25206
25207         * m4/printf.m4 (gl_PRINTF_ENOMEM): Use GL_NOCRASH.
25208         * modules/fprintf-posix (Depends-on): Add nocrash.
25209         * modules/snprintf-posix (Depends-on): Likewise.
25210         * modules/sprintf-posix (Depends-on): Likewise.
25211         * modules/vasnprintf-posix (Depends-on): Likewise.
25212         * modules/vasprintf-posix (Depends-on): Likewise.
25213         * modules/vfprintf-posix (Depends-on): Likewise.
25214         * modules/vsnprintf-posix (Depends-on): Likewise.
25215         * modules/vsprintf-posix (Depends-on): Likewise.
25216         * modules/unistdio/u8-vasnprintf (Depends-on): Likewise.
25217         * modules/unistdio/u8-u8-vasnprintf (Depends-on): Likewise.
25218         * modules/unistdio/u16-vasnprintf (Depends-on): Likewise.
25219         * modules/unistdio/u16-u16-vasnprintf (Depends-on): Likewise.
25220         * modules/unistdio/u32-vasnprintf (Depends-on): Likewise.
25221         * modules/unistdio/u32-u32-vasnprintf (Depends-on): Likewise.
25222         * modules/unistdio/ulc-vasnprintf (Depends-on): Likewise.
25223
25224 2007-11-04  Bruno Haible  <bruno@clisp.org>
25225
25226         * modules/nocrash: New file.
25227         * m4/nocrash.m4: New file, taken from GNU clisp. Code taken from
25228         GNU libsigsegv, with permission of GNU libsigsegv's copyright holders.
25229
25230 2007-11-04  Bruno Haible  <bruno@clisp.org>
25231
25232         * tests/test-vasnprintf-posix.c (test_function): Add some tests of
25233         precision handling.
25234         * tests/test-vasprintf-posix.c (test_function): Likewise.
25235         * tests/test-snprintf-posix.h (test_function): Likewise.
25236         * tests/test-sprintf-posix.h (test_function): Likewise.
25237
25238         Fix *printf behaviour for large precisions on mingw and BeOS.
25239         * m4/printf.m4 (gl_PRINTF_PRECISION): New macro.
25240         * lib/vasnprintf.c (VASNPRINTF): Handle NEED_PRINTF_UNBOUNDED_PRECISION.
25241         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_PRECISION): New macro.
25242         (gl_PREREQ_VASNPRINTF_WITH_EXTRAS): Invoke it.
25243         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
25244         gl_PRINTF_PRECISION and test its result. Invoke
25245         gl_PREREQ_VASNPRINTF_PRECISION.
25246         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
25247         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
25248         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
25249         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
25250         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
25251         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
25252         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
25253         * doc/functions/fprintf.texi: Update.
25254         * doc/functions/printf.texi: Update.
25255         * doc/functions/snprintf.texi: Update.
25256         * doc/functions/sprintf.texi: Update.
25257         * doc/functions/vfprintf.texi: Update.
25258         * doc/functions/vprintf.texi: Update.
25259         * doc/functions/vsnprintf.texi: Update.
25260         * doc/functions/vsprintf.texi: Update.
25261
25262 2007-11-04  Bruno Haible  <bruno@clisp.org>
25263
25264         * lib/vasnprintf.c (scale10_round_decimal_decoded): Fix shift loop.
25265
25266 2007-11-04  Bruno Haible  <bruno@clisp.org>
25267
25268         * modules/relocatable-prog (Files): Add m4/lib-ld.m4.
25269         Reported by Sylvain Beucler <beuc@gnu.org>.
25270
25271 2007-11-03  Bruno Haible  <bruno@clisp.org>
25272
25273         * tests/test-fprintf-posix2.sh: New file.
25274         * tests/test-fprintf-posix2.c: New file.
25275         * modules/fprintf-posix-tests (Files): Add them.
25276         (TESTS): Add test-fprintf-posix2.sh.
25277         (configure.ac): Check for getrlimit and setrlimit.
25278         (check_PROGRAMS): Add test-fprintf-posix2.
25279
25280         * tests/test-printf-posix2.sh: New file.
25281         * tests/test-printf-posix2.c: New file.
25282         * modules/printf-posix-tests (Files): Add them.
25283         (TESTS): Add test-printf-posix2.sh.
25284         (configure.ac): Check for getrlimit and setrlimit.
25285         (check_PROGRAMS): Add test-printf-posix2.
25286
25287         Fix *printf behaviour in out-of-memory situations on MacOS X and *BSD.
25288         * m4/printf.m4 (gl_PRINTF_ENOMEM): New macro.
25289         * lib/vasnprintf.c: Implement NEED_PRINTF_DOUBLE.
25290         (decode_double): New function, copied from decode_long_double.
25291         (scale10_round_decimal_decoded): New function, extracted from
25292         scale10_round_decimal_long_double.
25293         (scale10_round_decimal_long_double): Use it.
25294         (scale10_round_decimal_double): New function.
25295         (floorlog10): New function.
25296         (VASNPRINTF): Handle NEED_PRINTF_DOUBLE case.
25297         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_ENOMEM): New macro.
25298         (gl_PREREQ_VASNPRINTF_WITH_EXTRAS): Invoke it.
25299         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
25300         gl_PRINTF_ENOMEM and test its result. Invoke
25301         gl_PREREQ_VASNPRINTF_ENOMEM.
25302         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
25303         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
25304         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
25305         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
25306         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
25307         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
25308         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
25309         * modules/fprintf-posix (Depends-on): Add frexp-nolibm.
25310         * modules/snprintf-posix (Depends-on): Likewise.
25311         * modules/sprintf-posix (Depends-on): Likewise.
25312         * modules/vasnprintf-posix (Depends-on): Likewise.
25313         * modules/vasprintf-posix (Depends-on): Likewise.
25314         * modules/vfprintf-posix (Depends-on): Likewise.
25315         * modules/vsnprintf-posix (Depends-on): Likewise.
25316         * modules/vsprintf-posix (Depends-on): Likewise.
25317         * doc/functions/fprintf.texi: Update.
25318         * doc/functions/printf.texi: Update.
25319         * doc/functions/snprintf.texi: Update.
25320         * doc/functions/sprintf.texi: Update.
25321         * doc/functions/vfprintf.texi: Update.
25322         * doc/functions/vprintf.texi: Update.
25323         * doc/functions/vsnprintf.texi: Update.
25324         * doc/functions/vsprintf.texi: Update.
25325
25326 2007-11-03  Bruno Haible  <bruno@clisp.org>
25327
25328         * modules/frexp-nolibm-tests: New file.
25329
25330         * modules/frexp-nolibm: New file.
25331         * m4/frexp.m4 (gl_FUNC_FREXP_NO_LIBM): New macro.
25332
25333 2007-11-03  Bruno Haible  <bruno@clisp.org>
25334
25335         * lib/vasnprintf.c (VASNPRINTF): Don't assume that snprintf's return
25336         value is C99 compliant.
25337         Needed for OSF/1 5.1.
25338
25339 2007-11-03  Bruno Haible  <bruno@clisp.org>
25340
25341         Fix out-of-memory handling of vasnprintf.
25342         * lib/printf-parse.c: Include <errno.h>.
25343         (PRINTF_PARSE): When failing, set errno to EINVAL or ENOMEM.
25344         * lib/vasnprintf.c (VASNPRINTF): When PRINTF_PARSE fails, assume errno
25345         is already set.
25346
25347 2007-11-02  Eric Blake  <ebb9@byu.net>
25348
25349         Fix tests on cygwin.
25350         * modules/xprintf-posix-tests (Makefile.am): Link against -lintl.
25351
25352 2007-11-01  Bruno Haible  <bruno@clisp.org>
25353
25354         * lib/stdlib.in.h (putenv): Remove the "not POSIX compliant everywhere"
25355         warning.
25356         * doc/functions/putenv.texi: Clarify that the 'putenv' module is not
25357         needed for POSIX compatibility.
25358
25359 2007-11-01  Paul Eggert  <eggert@cs.ucla.edu>
25360
25361         * m4/putenv.m4 (gl_FUNC_PUTENV): Also mention that we're checking
25362         for compatibility with GNU.
25363
25364 2007-11-01  Bruno Haible  <bruno@clisp.org>
25365
25366         * lib/putenv.c: Include <stdlib.h>. Remove rpl_putenv declaration.
25367         (putenv): Renamed from rpl_putenv. Change argument type from
25368         'const char *' to 'char *'.
25369         * m4/putenv.m4 (gl_FUNC_PUTENV): Require gl_STDLIB_H_DEFAULTS. Instead
25370         of defining putenv in config.h, just set REPLACE_PUTENV.
25371         * modules/putenv (Depends-on): Add stdlib.
25372         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
25373         (Include): Use <stdlib.h>.
25374         * lib/stdlib.in.h (putenv): New declaration.
25375         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_PUTENV and
25376         REPLACE_PUTENV.
25377         * modules/stdlib (Makefile.am): Substitute GNULIB_PUTENV and
25378         REPLACE_PUTENV.
25379         Needed for MacOS X 10.5.0.
25380         Reported by Peter O'Gorman <peter@pogma.com>.
25381
25382 2007-11-01  Jim Meyering  <meyering@redhat.com>
25383
25384         Treat an empty date string exactly like "0".
25385         * lib/getdate.y (get_date): Once any isspace or TZ= prefix is consumed,
25386         if the remaining date string (to be parsed) is empty, use "0".
25387         Reported by Mischa Molhoek and discussed in this thread:
25388         <http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/11726>.
25389
25390 2007-10-31  Bruno Haible  <bruno@clisp.org>
25391
25392         * m4/intmax_t.m4 (gl_AC_TYPE_INTMAX_T, gt_AC_TYPE_INTMAX_T): Use
25393         AC_TYPE_LONG_LONG_INT instead of gl_AC_TYPE_LONG_LONG.
25394         * m4/uintmax_t.m4 (gl_AC_TYPE_UINTMAX_T): Use
25395         AC_TYPE_UNSIGNED_LONG_LONG_INT instead of gl_AC_TYPE_UNSIGNED_LONG_LONG.
25396         * m4/longlong.m4 (gl_AC_TYPE_LONG_LONG): Remove macro.
25397         * m4/ulonglong.m4 (gl_AC_TYPE_UNSIGNED_LONG_LONG): Remove macro.
25398
25399 2007-10-31  Bruno Haible  <bruno@clisp.org>
25400
25401         * m4/longlong.m4 (_AC_TYPE_LONG_LONG_SNIPPET): New macro, extracted
25402         from AC_TYPE_LONG_LONG_INT and AC_TYPE_UNSIGNED_LONG_LONG_INT.
25403         (AC_TYPE_LONG_LONG_INT): Use it.
25404         (AC_TYPE_UNSIGNED_LONG_LONG_INT): Moved here from m4/ulonglong.m4. Use
25405         it as well.
25406         * m4/ulonglong.m4 (AC_TYPE_UNSIGNED_LONG_LONG_INT): Remove macro; moved
25407         to m4/longlong.m4.
25408         * modules/stdint (Files): Remove m4/ulonglong.m4.
25409         * modules/strtoull (Files): Use m4/longlong.m4 instead of
25410         m4/ulonglong.m4.
25411         * modules/strtoumax (Files): Likewise.
25412
25413 2007-10-30  Bruno Haible  <bruno@clisp.org>
25414
25415         * modules/xvasprintf-posix: New file.
25416         Suggested by Eric Blake.
25417
25418 2007-10-30  Bruno Haible  <bruno@clisp.org>
25419
25420         * modules/xprintf-posix-tests: New file.
25421         * tests/test-xprintf-posix.sh: New file.
25422         * tests/test-xprintf-posix.c: New file.
25423         * tests/test-xfprintf-posix.c: New file.
25424
25425         * modules/xprintf-posix: New file.
25426
25427 2007-10-30  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
25428
25429         * modules/fbufmode-tests (MOSTLYCLEANFILES): Remove temp files.
25430         * modules/freadable-tests (MOSTLYCLEANFILES): Likewise.
25431         * modules/fwritable-tests (MOSTLYCLEANFILES): Likewise.
25432
25433 2007-10-29  Bruno Haible  <bruno@clisp.org>
25434
25435         * m4/floorf.m4 (gl_FUNC_FLOORF_LIBS): Rename the cache variable to
25436         contain the special marker '_cv_'.
25437         * m4/floor.m4 (gl_FUNC_FLOOR_LIBS): Likewise.
25438         * m4/floorl.m4 (gl_FUNC_FLOORL_LIBS): Likewise.
25439         * m4/ceilf.m4 (gl_FUNC_CEILF_LIBS): Likewise.
25440         * m4/ceil.m4 (gl_FUNC_CEIL_LIBS): Likewise.
25441         * m4/ceill.m4 (gl_FUNC_CEILL_LIBS): Likewise.
25442         Reported by Ralf Wildenhues.
25443
25444 2007-10-29  Bruno Haible  <bruno@clisp.org>
25445
25446         * gnulib-tool (func_import): When --lgpl is not specified, set
25447         sed_transform_lib_file to convert LGPL and GPLv2+ copyright headers to
25448         GPLv3.
25449         Reported by Simon Josefsson.
25450
25451 2007-10-28  Bruno Haible  <bruno@clisp.org>
25452
25453         * lib/math.in.h: Test REPLACE_ISFINITE instead of HAVE_DECL_ISFINITE.
25454         * m4/isfinite.m4 (gl_ISFINITE): Initialize REPLACE_ISFINITE instead of
25455         HAVE_DECL_ISFINITE.
25456         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Update.
25457         * modules/math (Makefile.am): Substitute REPLACE_ISFINITE instead of
25458         HAVE_DECL_ISFINITE.
25459
25460 2007-10-28  Bruno Haible  <bruno@clisp.org>
25461
25462         * lib/stdint.in.h (_STDINT_MAX): Subtract 1 from an unused signed
25463         integer shift in the signed case. Fixes warnings with OSF/1 5.1 cc.
25464
25465 2007-10-28  Bruno Haible  <bruno@clisp.org>
25466
25467         Fix link errors with Sun C 5.0 on Solaris 10.
25468         * m4/floorf.m4 (gl_FUNC_FLOORF): Consider also the case that the
25469         function is declared but not present in the compiler's libm.
25470         * m4/floorl.m4 (gl_FUNC_FLOORL): Likewise.
25471         * m4/ceilf.m4 (gl_FUNC_CEILF): Likewise.
25472         * m4/ceill.m4 (gl_FUNC_CEILL: Likewise.
25473         * lib/math.in.h: Test REPLACE_CEILF instead of HAVE_DECL_CEILF.
25474         Test REPLACE_CEILL instead of HAVE_DECL_CEILL.
25475         Test REPLACE_FLOORF instead of HAVE_DECL_FLOORF.
25476         Test REPLACE_FLOORL instead of HAVE_DECL_FLOORL.
25477         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Update.
25478         * modules/math (Makefile.am): Substitute REPLACE_CEILF instead of
25479         HAVE_DECL_CEILF, REPLACE_CEILL instead of HAVE_DECL_CEILL,
25480         REPLACE_FLOORF instead of HAVE_DECL_FLOORF, REPLACE_FLOORL instead of
25481         HAVE_DECL_FLOORL.
25482
25483 2007-10-28  Bruno Haible  <bruno@clisp.org>
25484
25485         * m4/floorl.m4 (gl_FUNC_FLOORL_LIBS): New macro, extracted from
25486         gl_FUNC_FLOORL. Cache the result.
25487         (gl_FUNC_FLOORL): Use it.
25488         * m4/ceill.m4 (gl_FUNC_CEILL_LIBS): New macro, extracted from
25489         gl_FUNC_CEILL. Cache the result.
25490         (gl_FUNC_CEILL): Use it.
25491
25492         * m4/floor.m4 (gl_FUNC_FLOOR_LIBS): New macro, extracted from
25493         gl_FUNC_FLOOR. Cache the result.
25494         (gl_FUNC_FLOOR): Use it.
25495         * m4/ceil.m4 (gl_FUNC_CEIL_LIBS): New macro, extracted from
25496         gl_FUNC_CEIL. Cache the result.
25497         (gl_FUNC_CEIL): Use it.
25498
25499         * m4/floorf.m4 (gl_FUNC_FLOORF_LIBS): New macro, extracted from
25500         gl_FUNC_FLOORF. Cache the result.
25501         (gl_FUNC_FLOORF): Use it.
25502         * m4/ceilf.m4 (gl_FUNC_CEILF_LIBS): New macro, extracted from
25503         gl_FUNC_CEILF. Cache the result.
25504         (gl_FUNC_CEILF): Use it.
25505
25506 2007-10-28  Bruno Haible  <bruno@clisp.org>
25507
25508         * gnulib-tool: Allow specifying the LGPL version number through
25509         --lgpl=2 or --lgpl=3.
25510         (func_usage): Document --lgpl with argument.
25511         Handle --lgpl=... arguments.
25512         (func_import): Recognize also gl_LGPL calls with an argument. When
25513         --lgpl=2 is used and the module's license is just LGPL, report an
25514         error. Set sed_transform_lib_file according to the lgpl variable. In
25515         the generated files, use --lgpl or gl_LGPL invocations with argument,
25516         if necessary.
25517         * doc/gnulib-intro.texi (Copyright): Explain how to get modules under
25518         an LGPv2+ license.
25519         * doc/gnulib-tool.texi (Modified imports): Update explanation of
25520         gl_LGPL macro.
25521
25522 2007-10-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
25523             Bruno Haible  <bruno@clisp.org>
25524
25525         * lib/unistr.h (u8_uctomb_aux): Declare also if !HAVE_INLINE.
25526         (u16_uctomb_aux): Likewise.
25527         * lib/unistr/u8-uctomb-aux.c (u8_uctomb_aux): Define also if
25528         !HAVE_INLINE.
25529         * lib/unistr/u16-uctomb-aux.c (u16_uctomb_aux): Likewise
25530
25531 2007-10-28  Bruno Haible  <bruno@clisp.org>
25532
25533         * modules/error: Add a notice recommending to change XGETTEXT_OPTIONS.
25534         Invoke AM_GETTEXT_OPTION if it exists.
25535         * modules/vasprintf: Likewise.
25536         * modules/verror: Likewise.
25537         * modules/xprintf: Likewise.
25538         * modules/xvasprintf: Likewise.
25539
25540 2007-10-27  Ben Pfaff  <blp@gnu.org>
25541
25542         * lib/math.in.h: Define isfinite macro and prototypes for
25543         gl_isfinitef, gl_isfinited, gl_isfinitel if we are providing
25544         implementations.
25545         * m4/math_h.m4: New substitutions for isfinite module.
25546         * lib/isfinite.c: New file.
25547         * m4/isfinite.m4: New file.
25548         * modules/math: Replace isfinite-related @VARS@ in math.in.h.
25549         * modules/isfinite: New file.
25550         * modules/isfinite-tests: New file.
25551         * tests/tests-isfinite.c: New file.
25552         * doc/functions/isfinite.texi: Mention isfinite module.
25553         * MODULES.html.sh: Mention new module.
25554
25555 2007-10-27  Ben Pfaff  <blp@gnu.org>
25556
25557         Ralf Wildenhues reported that Tru64 4.0D declares the round
25558         functions but does not have definitions.
25559         * m4/check-math-lib.m4 (gl_CHECK_MATH_LIB): If the target function
25560         cannot be found in any library, set the output variable to
25561         "missing" instead of "".
25562         * m4/round.m4: Also use our substitute if we cannot find round in
25563         any library, even if it is declared.
25564         * m4/roundf.m4: Likewise for roundf.
25565         * m4/roundl.m4: Likewise for roundl.
25566         * lib/math.in.h: Undefine roundf, round, roundl before defining
25567         their replacements, to allow for hypothetical systems where these
25568         may be defined as macros but not available in libraries.
25569
25570 2007-10-27  Bruno Haible  <bruno@clisp.org>
25571
25572         * doc/gnulib.texi: Invoke @firstparagraphindent.
25573         * doc/gnulib-tool.texi (Simple update): Mention possible incompatible
25574         changes in gnulib.
25575         (Source changes): New section.
25576
25577 2007-10-26  Bruno Haible  <bruno@clisp.org>
25578
25579         * m4/gnulib-common.m4 (AC_C_RESTRICT): New overriding definition,
25580         borrowed from autoconf.
25581
25582 2007-10-26  Bruno Haible  <bruno@clisp.org>
25583
25584         * lib/strerror.c (rpl_strerror): Return "Unknown error ..." also if
25585         strerror returned the empty string. Needed on HP-UX 11.00.
25586
25587 2007-10-24  Micah Cowan  <micah@cowan.name>
25588
25589         Remove vestiges of cvs-gnulib-checkout process.  Now we use git.
25590         * build-aux/bootstrap: Remove support for now-unnecessary option,
25591         --cvs-user, and envvars CVS_USER, CVS_RSH.
25592
25593 2007-10-24  Jim Meyering  <meyering@redhat.com>
25594
25595         Avoid diagnostics from sha1sum when there is no cached checksum.
25596         * build-aux/bootstrap (update_po_files): Skip the sha1sum check
25597         if the po.s1 file hasn't been created yet.
25598
25599         * build-aux/bootstrap: Sync from coreutils:
25600         2007-10-24  Jim Meyering  <meyering@redhat.com>
25601         Get gnulib from the git repository, not from an obsolete cvs one.
25602         * build-aux/bootstrap: Suggestion from Micah Cowan.
25603         2007-10-04  Jim Meyering  <jim@meyering.net>
25604         * build-aux/bootstrap (slurp): Adapt to _.h -> .in.h name change.
25605         (update_po_files): Work also when there are no .po files in po/.
25606
25607 2007-10-24  Paul Eggert  <eggert@cs.ucla.edu>
25608
25609         * README: Append ".git" to git and cg examples.
25610         Problem reported by Benoit Sigoure.
25611
25612 2007-10-23  Micah Cowan  <micah@cowan.name>
25613
25614         * users.txt: Add wget.
25615
25616 2007-10-23  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
25617
25618         Fix linking of some unistdio tests on FreeBSD.
25619         * modules/unistdio/u16-vsnprintf-tests
25620         (test_u16_vsprintf1_LDADD): Add @LIBINTL@.
25621         * modules/unistdio/u16-vsprintf-tests
25622         (test_u16_vsnprintf1_LDADD): Likewise.
25623         * modules/unistdio/u32-vsnprintf-tests
25624         (test_u32_vsnprintf1_LDADD): Likewise.
25625         * modules/unistdio/u32-vsprintf-tests
25626         (test_u32_vsprintf1_LDADD): Likewise.
25627         * modules/unistdio/u8-vsnprintf-tests
25628         (test_u8_vsnprintf1_LDADD): Likewise.
25629         * modules/unistdio/u8-vsprintf-tests
25630         (test_u8_vsprintf1_LDADD): Likewise.
25631         * modules/unistdio/ulc-vsnprintf-tests
25632         (test_ulc_vsnprintf1_LDADD): Likewise.
25633         * modules/unistdio/ulc-vsprintf-tests
25634         (test_ulc_vsprintf1_LDADD): Likewise.
25635
25636         Fix linking of some uniconv tests on FreeBSD.
25637         * modules/uniconv/u16-conv-from-enc-tests
25638         (test_u16_conv_from_enc_LDADD): Link $(LDADD) before @LIBICONV@.
25639         * modules/uniconv/u16-conv-to-enc-tests
25640         (test_u16_conv_to_enc_LDADD): Likewise.
25641         * modules/uniconv/u16-strconv-from-enc-tests
25642         (test_u16_strconv_from_enc_LDADD): Likewise.
25643         * modules/uniconv/u16-strconv-to-enc-tests
25644         (test_u16_strconv_to_enc_LDADD): Likewise.
25645         * modules/uniconv/u32-conv-from-enc-tests
25646         (test_u32_conv_from_enc_LDADD): Likewise.
25647         * modules/uniconv/u32-conv-to-enc-tests
25648         (test_u32_conv_to_enc_LDADD): Likewise.
25649         * modules/uniconv/u32-strconv-from-enc-tests
25650         (test_u32_strconv_from_enc_LDADD): Likewise.
25651         * modules/uniconv/u32-strconv-to-enc-tests
25652         (test_u32_strconv_to_enc_LDADD): Likewise.
25653         * modules/uniconv/u8-conv-from-enc-tests
25654         (test_u8_conv_from_enc_LDADD): Likewise.
25655         * modules/uniconv/u8-conv-to-enc-tests
25656         (test_u8_conv_to_enc_LDADD): Likewise.
25657         * modules/uniconv/u8-strconv-from-enc-tests
25658         (test_u8_strconv_from_enc_LDADD): Likewise.
25659         * modules/uniconv/u8-strconv-to-enc-tests
25660         (test_u8_strconv_to_enc_LDADD): Likewise.
25661
25662 2007-10-22  Bruno Haible  <bruno@clisp.org>
25663
25664         * lib/stdint.in.h: Add check that intmax_t and uintmax_t have the same
25665         size.
25666
25667 2007-10-22  Eric Blake  <ebb9@byu.net>
25668
25669         Tweak x*printf documentation.
25670         * lib/xprintf.c (xprintf, xvprintf, xfprintf, xvfprintf): Adjust
25671         variable name and comments.
25672         Suggested by Bruno Haible.
25673
25674 2007-10-22  Bruno Haible  <bruno@clisp.org>
25675
25676         * lib/acl.c (copy_acl): Fix file name in comment.
25677
25678 2007-10-22  Paul Eggert  <eggert@cs.ucla.edu>
25679
25680         Fix Tru64 problem with stdbool.h.
25681         * lib/stdbool.in.h (false, true):
25682         [! (defined __cplusplus || defined __BEOS__) && !defined __GNUC__]:
25683         Don't declare as an enum in this situation; it runs afoul of Tru64.
25684         Problem reported by Steven M. Schweda in
25685         <http://lists.gnu.org/archive/html/bug-autoconf/2007-10/msg00019.html>.
25686
25687 2007-10-22  Eric Blake  <ebb9@byu.net>
25688
25689         Also wrap vf?printf.
25690         * lib/xprintf.h (xvprintf, xvfprintf): New declarations.
25691         * lib/xprintf.c (xprintf, xfprintf): Work for C89.
25692         (xvprintf, xvfprintf): New functions.
25693
25694 2007-10-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
25695
25696         * modules/fstrcmp-tests (test_fstrcmp_LDADD): New, add
25697         @LIBINTL@ for FreeBSD 6.2, $(LIBTHREAD) for AIX 4.3.3.
25698
25699         * lib/uniconv/u16-conv-to-enc.c (U_MBLEN): Define.
25700         * lib/uniconv/u32-conv-to-enc.c (U_MBLEN): Likewise.
25701
25702 2007-10-22  Paul Eggert  <eggert@cs.ucla.edu>
25703
25704         * lib/acl.c (copy_acl): Adjust to IRIX 6.5.  Problem reported
25705         by Bruno Haible.
25706
25707 2007-10-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
25708
25709         * lib/getloadavg.c
25710         [defined (__osf__) && (defined (__alpha) || defined (__alpha__)]:
25711         Undef `sys' after including sys/table.h, for Tru64 4.0D.
25712
25713         * tests/test-i-ring.c: Work for C89.
25714
25715 2007-10-22  Bruno Haible  <bruno@clisp.org>
25716
25717         * m4/ulonglong.m4 (AC_TYPE_UNSIGNED_LONG_LONG_INT): Use -1ull, not
25718         -1u, in preprocessor expression, so that we don't test for the bug
25719         in HP-UX 11.00 cpp.  Testing for this bug caused problems; see
25720         <http://lists.gnu.org/archive/html/bug-gnulib/2007-10/msg00329.html>.
25721
25722 2007-10-22  Eric Blake  <ebb9@byu.net>
25723
25724         * tests/test-yesno.sh: Silence stderr during test.
25725
25726 2007-10-22  Simon Josefsson  <simon@josefsson.org>
25727
25728         * modules/crypto/gc-camellia: New file.
25729
25730         * m4/gc-camellia.m4: New file.
25731
25732         * lib/gc-libgcrypt.c (gc_cipher_open): Support Camellia.
25733
25734         * lib/gc.h (enum Gc_cipher): Add GC_CAMELLIA128, GC_CAMELLIA256.
25735
25736 2007-10-22  Simon Josefsson  <simon@josefsson.org>
25737
25738         * build-aux/maint.mk (gzip_rsyncable): Don't fail if gzip sends
25739         --help to stdout.  Reported by sms@antinode.org (Steven
25740         M. Schweda).
25741
25742 2007-10-22  Simon Josefsson  <simon@josefsson.org>
25743
25744         * users.txt: Fix link to libksba.
25745
25746 2007-10-21  Ben Pfaff  <blp@gnu.org>
25747
25748         * modules/roundf-tests: Add dependency on floorf, ceilf to allow
25749         round.c roundf implementation that depends on floorf and ceilf to
25750         be tested unconditionally.
25751
25752 2007-10-21  Ben Pfaff  <blp@gnu.org>
25753
25754         * m4/check-libm-func.m4: Removed.
25755         * m4/check-math-lib.m4: New file.
25756         * m4/round.m4: Rewrite to use gl_CHECK_MATH_LIB.
25757         * m4/roundf.m4: Ditto, and fix lack of HAVE_DECL_ROUNDF
25758         definition and lack of AC_LIBOBJ([roundf]).
25759         * m4/roundl.m4: Ditto, and similarly for roundl.
25760         * modules/round: Reference new m4 file.
25761         * modules/roundf: Ditto.
25762         * modules/roundl: Ditto.
25763         * tests/test-round2.c (main): Use ROUND instead of round.
25764         Bug report from Bruno Haible.
25765
25766 2007-10-21  Bruno Haible  <bruno@clisp.org>
25767
25768         * lib/printf-parse.c: Don't assume <stdint.h> exists in IN_LIBASPRINTF
25769         context.
25770
25771 2007-10-21  Bruno Haible  <bruno@clisp.org>
25772
25773         * tests/test-wcwidth.c (main): Allow negative result for some control
25774         characters.
25775
25776         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Check also the width of U+200B.
25777         Needed on OSF/1 5.1.
25778
25779 2007-10-21  Bruno Haible  <bruno@clisp.org>
25780
25781         * tests/test-floorf1.c: Include isnanf.h.
25782         (main): Use isnanf() instead of isnan().
25783         * tests/test-ceilf1.c: Include isnanf.h.
25784         (main): Use isnanf() instead of isnan().
25785         * tests/test-truncf1.c: Include isnanf.h.
25786         (main): Use isnanf() instead of isnan().
25787         * tests/test-roundf1.c: Include isnanf.h.
25788         (main): Use isnanf() instead of isnan().
25789
25790 2007-10-21  Eric Blake  <ebb9@byu.net>
25791
25792         * users.txt: Update URL for m4.
25793
25794 2007-10-21  Bruno Haible  <bruno@clisp.org>
25795
25796         * users.txt: Add clisp. Update URLs to Simon Josefsson's projects.
25797
25798 2007-10-21  Bruno Haible  <bruno@clisp.org>
25799
25800         * gnulib-tool (func_create_megatestdir): Determine the cvsdate from
25801         Git's management files if the CVS files are not present.
25802
25803 2007-10-20  Bruno Haible  <bruno@clisp.org>
25804
25805         * lib/count-one-bits.h (COUNT_ONE_BITS): Use the builtin also for
25806         gcc-3.4.x.
25807
25808 2007-10-20  Ben Pfaff  <blp@gnu.org>
25809
25810         * lib/math.in.h: Declare round, roundf, roundl if we are providing
25811         implementations.
25812         * m4/math_h.m4: New substitutions for round, roundf, roundl modules.
25813         * lib/round.c: New file.
25814         * lib/roundf.c: New file.
25815         * lib/roundl.c: New file.
25816         * m4/round.m4: New file.
25817         * m4/roundf.m4: New file.
25818         * m4/roundl.m4: New file.
25819         * m4/check-libm-func-m4: New file.
25820         * modules/math: Replace round, roundf, roundl related @VARS@ in
25821         math.in.h.
25822         * modules/round: New file.
25823         * modules/round-tests: New file.
25824         * modules/roundf: New file.
25825         * modules/roundf-tests: New file.
25826         * modules/roundl: New file.
25827         * modules/roundl-tests: New file.
25828         * tests/test-round1.c: New file.
25829         * tests/test-round2.c: New file.
25830         * tests/test-roundf1.c: New file.
25831         * tests/test-roundf2.c: New file.
25832         * tests/test-roundl.c: New file.
25833         * doc/functions/round.texi: Mention round module.
25834         * doc/functions/roundf.texi: Mention roundf module.
25835         * doc/functions/roundl.texi: Mention roundl module.
25836         * MODULES.html.sh: Mention new modules.
25837         Thanks to Bruno Haible for suggestions.
25838
25839 2007-10-20  Jim Meyering  <meyering@redhat.com>
25840
25841         * lib/xprintf.c: Include <config.h> unconditionally.
25842
25843         Change xprintf's license to GPL.
25844         * modules/xprintf (License): s/LGPL/GPL/, since this module
25845         depends on modules (exit and exitfail) which are GPL.
25846         Suggestion from Bruno Haible.
25847
25848         xprintf fixes.
25849         * lib/xprintf.c (xprintf, xfprintf): Use va_end.
25850         Use a clearer diagnostic.
25851         Patch from Bruno Haible.
25852
25853 2007-10-20  Bruno Haible  <bruno@clisp.org>
25854
25855         * lib/vasnprintf.c (VASNPRINTF): Don't report overflow if the available
25856         length is INT_MAX and sizeof (DCHAR_T) > sizeof (TCHAR_T).
25857         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
25858
25859 2007-10-20  Bruno Haible  <bruno@clisp.org>
25860
25861         * tests/test-floorf2.c (correct_result_p): Don't rely on excess
25862         precision in the comparison result > x - 1 or similar.
25863         * tests/test-ceilf2.c (correct_result_p): Likewise.
25864         * tests/test-truncf2.c (correct_result_p): Likewise.
25865         * tests/test-trunc2.c (correct_result_p): Likewise.
25866         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
25867
25868 2007-10-20  Bruno Haible  <bruno@clisp.org>
25869
25870         * modules/ceil: New file.
25871         * m4/ceil.m4: New file.
25872         * doc/functions/ceil.texi: Mention the 'ceil' module.
25873
25874 2007-10-20  Bruno Haible  <bruno@clisp.org>
25875
25876         * modules/floor: New file.
25877         * m4/floor.m4: New file.
25878         * doc/functions/floor.texi: Mention the 'floor' module.
25879
25880 2007-10-20  Bruno Haible  <bruno@clisp.org>
25881
25882         * modules/ceilf-tests (Depends-on): Add fprintf-posix. Needed for use
25883         of %a.
25884         * modules/floorf-tests (Depends-on): Likewise.
25885         * modules/truncf-tests (Depends-on): Likewise.
25886         * modules/trunc-tests (Depends-on): Likewise.
25887         Reported by Ben Pfaff.
25888
25889 2007-10-19  Jim Meyering  <meyering@redhat.com>
25890
25891         * lib/xprintf.c (xprintf, xfprintf): Test err < 0, not just "err".
25892         Don't bother testing specific errno values.  Just test ferror.
25893
25894         New module: xprintf
25895         * modules/xprintf, lib/xprintf.c, lib/xprintf.h: New files.
25896
25897 2007-10-19  Bruno Haible  <bruno@clisp.org>
25898
25899         * modules/csharpexec (Makefile.am): Use @FOO@ syntax instead of $(FOO)
25900         syntax.
25901         * modules/javaexec (Makefile.am): Likewise.
25902         * modules/relocatable-prog (Makefile.am): Likewise.
25903         Suggested by Jim Meyering.
25904
25905 2007-10-18  Bruno Haible  <bruno@clisp.org>
25906
25907         * lib/vasnprintf.c (VASNPRINTF): Don't use %n on glibc >= 2.3 systems.
25908         Reported by Jim Meyering.
25909
25910 2007-10-18  Eric Blake  <ebb9@byu.net>
25911
25912         * modules/filenamecat-tests (Makefile.am): Link against -lintl.
25913
25914 2007-10-18  Bruno Haible  <bruno@clisp.org>
25915
25916         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_N, gl_SNPRINTF_DIRECTIVE_N): Put
25917         the format string into writable memory. Needed in Fortify conditions.
25918
25919 2007-10-18  Colin Watson <cjwatson@debian.org>  (tiny change)
25920             Bruno Haible  <bruno@clisp.org>
25921
25922         * lib/trim.c: Include config.h unconditionally. Include trim.h always.
25923         Include ctype.h always. Include stdlib.h, not mbuiter.h, for MB_CUR_MAX.
25924         * modules/trim (Depends-on): Add mbchar.
25925         (configure.ac): Add gl_FUNC_MBRTOWC.
25926         (Makefile.am): Augment lib_SOURCES.
25927
25928 2007-10-17  Paul Eggert  <eggert@cs.ucla.edu>
25929
25930         Modify glob.c to use fstatat and dirfd, to simplify it.
25931         Suggested by Eric Blake.
25932         * lib/glob.c (__fxstatat64) [!_LIBC]: New macro.
25933         Don't include <stdbool.h>; not used.
25934         (link_exists2_p, glob_in_dir) [!_LIBC]: No longer a special case.
25935         (link_exists_p): Simplify implementation, since we can now assume
25936         dirfd and fstatat.
25937         * modules/glob (Depends-on): Add dirfd, openat.  Remove stdbool.
25938
25939 2007-10-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
25940
25941         * gnulib-tool (func_get_dependencies): Fix sed script to
25942         match only tests.
25943
25944 2007-10-17  Bruno Haible  <bruno@clisp.org>
25945
25946         * m4/locale-fr.m4 (gt_LOCALE_FR, gt_LOCALE_FR_UTF8): On Cygwin, don't
25947         allow locale names without encoding suffix.
25948         * m4/locale-tr.m4 (gt_LOCALE_TR_UTF8): Likewise.
25949         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): Likewise.
25950
25951 2007-10-16  Bruno Haible  <bruno@clisp.org>
25952
25953         * lib/getcwd.c (__getcwd): Define with explicit rpl_ prefix.
25954         * lib/getgroups.c (getgroups): Likewise.
25955         * lib/gettimeofday.c (localtime, gmtime, tzset): Likewise.
25956
25957 2007-10-16  Bruno Haible  <bruno@clisp.org>
25958
25959         * modules/absolute-header (License): Change from LGPL to LGPLv2+.
25960         * modules/malloc-posix (License): Likewise.
25961         * modules/realloc-posix (License): Likewise.
25962         * modules/calloc-posix (License): Likewise.
25963         * modules/intprops (License): Change from GPL to LGPL, with
25964         Paul Eggert's approval.
25965
25966 2007-10-16  Paul Eggert  <eggert@cs.ucla.edu>
25967
25968         Merge glibc changes into lib/glob.c.
25969
25970         * lib/glob.c (glob_in_dir): Sync with glibc/posix/glob.c, dated
25971         2007-10-15 04:59:03 UTC.  Here are the changes:
25972
25973         2007-10-14  Ulrich Drepper  <drepper@redhat.com>
25974
25975         * lib/glob.c: Reimplement link_exists_p to use fstatat64.
25976
25977         * lib/glob.c: Add some branch prediction throughout.
25978
25979         2007-10-07  Ulrich Drepper  <drepper@redhat.com>
25980
25981         [BZ #5103]
25982         * lib/glob.c (glob): Recognize patterns starting \/.
25983
25984         2007-02-14  Jakub Jelinek  <jakub@redhat.com>
25985
25986         [BZ #3996]
25987         * lib/glob.c (attribute_hidden): Define if not defined.
25988         (glob): Unescape dirname, filename or username when needed and not
25989         GLOB_NOESCAPE.  Handle \/ correctly.  Handle GLOB_MARK if filename
25990         is NULL.  Handle unescaped [ in pattern without closing ].
25991         Don't pass GLOB_CHECK down to recursive glob for directories.
25992         (__glob_pattern_type): New function.
25993         (__glob_pattern_p): Implement using __glob_pattern_type.
25994         (glob_in_dir): Handle GLOB_NOCHECK patterns containing no meta
25995         characters and backslashes if not GLOB_NOESCAPE or unterminated [.
25996         Remove unreachable code.
25997
25998         2006-09-30  Ulrich Drepper  <drepper@redhat.com>
25999
26000         * lib/glob.c (glob_in_dir): Add some comments and asserts to
26001         explain why there are no leaks.
26002
26003         2006-09-25  Jakub Jelinek  <jakub@redhat.com>
26004
26005         [BZ #3253]
26006         * lib/glob.c (glob_in_dir): Don't alloca one struct globlink at a
26007         time, rather allocate increasingly bigger arrays of pointers, if
26008         possible with alloca, if too large with malloc.
26009
26010 2007-10-16  Paul Eggert  <eggert@cs.ucla.edu>
26011
26012         Check for 64-bit int errors in HP-UX 10.20 preprocessor.
26013         Problem reported by H.Merijn Brand in
26014         <http://lists.gnu.org/archive/html/bug-tar/2007-10/msg00018.html>.
26015         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Check preprocessor too.
26016         * m4/ulonglong.m4 (AC_TYPE_UNSIGNED_LONG_LONG_INT): Likewise.
26017
26018 2007-10-15  Bruno Haible  <bruno@clisp.org>
26019
26020         * lib/fchdir.c (close, open, closedir, opendir, dup, dup2): Define
26021         with explicit rpl_ prefix.
26022         * lib/fopen.c (fopen): Likewise.
26023         * lib/freopen.c (freopen): Likewise.
26024         * lib/iconv.c (iconv): Likewise.
26025         * lib/iconv_close.c (iconv_close): Likewise.
26026
26027 2007-10-15  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
26028
26029         * m4/iconv_open (gl_FUNC_ICONV_OPEN_UTF): Fix cache variable name.
26030
26031 2007-10-15  Bruno Haible  <bruno@clisp.org>
26032
26033         * m4/getaddrinfo.m4 (gl_GETADDRINFO, gl_PREREQ_GETADDRINFO): Use
26034         <stddef.h> instead of <stdlib.h> since we only need NULL.
26035         Reported by Ben Pfaff <blp@cs.stanford.edu>.
26036
26037 2007-10-15  Bruno Haible  <bruno@clisp.org>
26038
26039         * doc/gnulib-tool.texi (Initial import): Swap order of -I directives.
26040         Replace paragraph talking about LIBOBJS.
26041         Reported by Colin Watson <cjwatson@debian.org>.
26042
26043 2007-10-15  Bruno Haible  <bruno@clisp.org>
26044
26045         * m4/getaddrinfo.m4 (gl_GETADDRINFO, gl_PREREQ_GETADDRINFO): Include
26046         <stdlib.h> before using NULL.
26047
26048 2007-10-15  Simon Josefsson  <simon@josefsson.org>
26049
26050         * m4/getaddrinfo.m4: Use NULL rather than 0 for pointers.
26051         Reported by Albert Chin <china@thewrittenword.com>.
26052
26053 2007-10-14  Bruno Haible  <bruno@clisp.org>
26054
26055         * modules/iconv_open-utf-tests: New file.
26056         * tests/test-iconv-utf.c: New file.
26057
26058         Enhance iconv_open to support UTF-16BE, UTF-16LE, UTF-32BE, UTF-32LE.
26059         * modules/iconv_open-utf: New file.
26060         * lib/iconv.in.h (_ICONV_UTF8_UTF*, _ICONV_UTF*_UTF8): New macros.
26061         (iconv, iconv_close): New declarations.
26062         * lib/iconv_open.c: Include c-strcase.h. Don't require ICONV_FLAVOR to
26063         be defined.
26064         (iconv_open): Add special handling of conversion between UTF-8 and
26065         UTF-{16,32}{BE,LE}.
26066         * lib/iconv.c: New file, incorporating code from GNU libiconv 1.11.
26067         * lib/iconv_close.c: New file.
26068         * m4/iconv_open.m4 (gl_REPLACE_ICONV_OPEN): New macro, extracted from
26069         gl_FUNC_ICONV_OPEN.
26070         (gl_FUNC_ICONV_OPEN): Use it.
26071         (gl_FUNC_ICONV_OPEN_UTF): New macro.
26072         * m4/iconv_h.m4 (gl_ICONV_H_DEFAULTS): Initialize also REPLACE_ICONV
26073         and REPLACE_ICONV_UTF.
26074         * modules/iconv_open (Depends-on): Add c-strcase.
26075         (Makefile.am): Substitute also REPLACE_ICONV, REPLACE_ICONV_UTF,
26076         ICONV_CONST.
26077         * doc/functions/iconv_open.texi: Mention the iconv_open-utf module.
26078
26079 2007-10-13  Albert Chin  <china@thewrittenword.com>
26080             Bruno Haible  <bruno@clisp.org>
26081
26082         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Perform the test for getaddrinfo
26083         through a link check that includes <netdb.h>. Needed for OSF/1 5.1.
26084
26085 2007-10-13  Bruno Haible  <bruno@clisp.org>
26086
26087         * lib/argp-fmtstream.h (ARGP_FS_EI): If __GNUC_STDC_INLINE__ is
26088         defined, use the ISO C99 inline semantics.
26089         * lib/argp.h (ARGP_EI): Likewise.
26090
26091 2007-10-13  Bruno Haible  <bruno@clisp.org>
26092
26093         Handle 'inline' change in gcc 4.3.0.
26094         * lib/argp-fmtstream.h (argp_fmtstream_putc, argp_fmtstream_puts,
26095         argp_fmtstream_write, argp_fmtstream_set_lmargin,
26096         argp_fmtstream_set_rmargin, argp_fmtstream_set_wmargin,
26097         argp_fmtstream_point): Disable 'extern' declaration if the function
26098         definition is going to be provided inline.
26099         (ARGP_FS_EI): If __GNUC_STDC_INLINE__ is defined, use the GNU C inline
26100         semantics, not the ISO C99 inline semantics.
26101         * lib/argp.h (argp_usage, _option_is_short, _option_is_end): Disable
26102         'extern' declaration if the function definition is going to be provided
26103         inline.
26104         (ARGP_EI): Don't assume GNU C. If __GNUC_STDC_INLINE__ is defined, use
26105         the GNU C inline semantics, not the ISO C99 inline semantics. With
26106         GCC 4.2, avoid a warning.
26107
26108 2007-10-13  Bruno Haible  <bruno@clisp.org>
26109
26110         * lib/freading.h (freading): Enable the use of __freading for
26111         glibc >= 2.7.
26112         * lib/freading.c (freading): Likewise.
26113
26114 2007-10-12  Paul Eggert  <eggert@cs.ucla.edu>
26115
26116         * lib/argp-fmtstream.h (ARGP_FS_EI): Work around GCC 4.2.1 diagnostic
26117         "warning: C99 inline functions are not supported; using GNU89".
26118
26119 2007-10-12  Bruno Haible  <bruno@clisp.org>
26120
26121         * lib/ceil.c (FUNC): Avoid rounding errors for values near a power
26122         of 2.
26123         * tests/test-ceilf2.c: New file.
26124         * modules/ceilf-tests: (Files, Depends-on, Makefile.am): Add new test.
26125
26126         * tests/test-ceilf1.c: Renamed from tests/test-ceilf.c.
26127         * modules/ceilf-tests: Update.
26128
26129 2007-10-12  Bruno Haible  <bruno@clisp.org>
26130
26131         * lib/floor.c (FUNC): Avoid rounding errors for values near a power
26132         of 2.
26133         * tests/test-floorf2.c: New file.
26134         * modules/floorf-tests: (Files, Depends-on, Makefile.am): Add new test.
26135
26136         * tests/test-floorf1.c: Renamed from tests/test-floorf.c.
26137         * modules/floorf-tests: Update.
26138
26139 2007-10-12  Bruno Haible  <bruno@clisp.org>
26140
26141         * tests/test-trunc2.c: New file.
26142         * modules/trunc-tests: (Files, Depends-on, Makefile.am): Add new test.
26143
26144         * tests/test-trunc1.c: Renamed from tests/test-trunc.c.
26145         * modules/trunc-tests: Update.
26146
26147 2007-10-12  Bruno Haible  <bruno@clisp.org>
26148
26149         * lib/trunc.c (FUNC): Avoid rounding errors for values near a power
26150         of 2.
26151         * tests/test-truncf2.c: New file.
26152         * modules/truncf-tests: (Files, Depends-on, Makefile.am): Add new test.
26153
26154         * tests/test-truncf1.c: Renamed from tests/test-truncf.c.
26155         * modules/truncf-tests: Update.
26156
26157 2007-10-11  Eric Blake  <ebb9@byu.net>
26158
26159         Don't claim strerror is broken on Interix.
26160         * doc/functions/strerror.texi (strerror): Known broken systems are
26161         now Solaris 8, and not Interix.
26162         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE): No longer filter out
26163         Interix on cross-compile.
26164         Reported by Martin Koeppe in
26165         http://lists.gnu.org/archive/html/bug-gnulib/2007-10/msg00005.html.
26166
26167 2007-10-11  Bruno Haible  <bruno@clisp.org>
26168
26169         * modules/i-ring-tests: New file.
26170         * tests/test-i-ring.c: Renamed from lib/i-ring-test.c. Use ASSERT
26171         instead of assert.
26172
26173 2007-10-11  Bruno Haible  <bruno@clisp.org>
26174
26175         * modules/filenamecat-tests: New file.
26176         * tests/test-filenamecat.c: New file, extracted from lib/filenamecat.c.
26177         * lib/filenamecat.c: Remove test code.
26178
26179 2007-10-11  Paul Eggert  <eggert@cs.ucla.edu>
26180
26181         Simplify and modernize strerror substitute, partly to fix Solaris 8 bug.
26182
26183         * lib/strerror.c: Include <string.h> always, to test interface,
26184         and to remove the need for the dummy.
26185         Include intprops.h to compute width instead of doing it ourselves
26186         and missing a CHAR_BIT declaration, which broke tar 1.19 on Solaris 8.
26187         (strerror): Define it to return NULL if there's no system strerror.
26188         (rpl_strerror): Use INT_STRLEN_BOUND to compute bound.
26189         Omit !HAVE_STRERROR code.  We don't need to worry about supporting
26190         ancient pre-strerror Unix systems well any more.  Saying "unknown
26191         system error" is enough.
26192         * lib/string.in.h (strerror): Simplify the ifdef to reflect the
26193         simpler strerror.c implementation.
26194         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE, gl_PREREQ_STDERROR):
26195         Simplify the tests to reflect the simpler strerror implementation.
26196         * modules/strerror (Depends-on): Add intprops.
26197
26198 2007-10-09  Eric Blake  <ebb9@byu.net>
26199
26200         Silence test-fpending.
26201         * modules/fpending-tests (Files): Add wrapper script.
26202         * tests/test-fpending.sh: New file.
26203
26204 2007-10-09  Bruno Haible  <bruno@clisp.org>
26205
26206         * MODULES.html.sh (func_module): Don't create a hyperlink for
26207         function names like 'printf_frexp'.
26208         (Misc): Add crc, memxor.
26209         (Characteristics of floating types): New section.
26210         (Mathematics): Add ceilf, ceill, floorf, floorl, frexpl-nolibm,
26211         isnanf-nolibm, signbit, trunc, truncf, truncl.
26212         (Enhancements for ISO C 99 functions): New subsection Input/output.
26213         (Support for systems lacking POSIX:2001): Add arpa_inet, calloc-posix,
26214         fcntl, fopen, freopen, fseek, fseeko, ftell, ftello, iconv_open,
26215         locale, malloc-posix, netinet_in, open, realloc-posix, signal, sleep.
26216         (Compatibility checks for POSIX:2001 functions): Add clock-time.
26217         (Enhancements for POSIX:2001 functions): Add chdir-long.
26218         (File system functions): Add areadlink, chdir-safer, read-file.
26219         Remove cycle-check.
26220         (File system as inode set): New section.
26221         (Date and time): Add gethrxtime.
26222         (Multithreading): Add openmp.
26223         (Internationalization functions): Add localename.
26224         (Unicode string functions): Add unistr/u*-mbsnlen.
26225         (Support for maintaining and releasing projects): Add git-version-gen.
26226         (Lone files): Remove directories.
26227
26228 2007-10-08  Ben Pfaff  <blp@gnu.org>
26229
26230         * lib/xmalloca.h: Fix typo in comment.
26231
26232 2007-10-08  Paul Eggert  <eggert@cs.ucla.edu>
26233
26234         * lib/xnanosleep.c (xnanosleep): Don't assume GCC 4.3.0 behavior
26235         when avoiding problems with integer overflow.  Use a portable test
26236         instead.
26237
26238 2007-10-08  Simon Josefsson  <simon@josefsson.org>
26239
26240         * modules/dummy (License): Change to LGPLv2+.
26241         * modules/float (License): Likewise
26242         * modules/realloc (License): Likewise
26243         * modules/stdlib (License): Likewise
26244
26245 2007-10-07  Bruno Haible  <bruno@clisp.org>
26246
26247         * trunc.c (TWO_MANT_DIG): Change type to DOUBLE.
26248         * floor.c (TWO_MANT_DIG): Likewise.
26249         * ceil.c (TWO_MANT_DIG): Likewise.
26250         Reported by Ben Pfaff.
26251
26252 2007-10-07  Bruno Haible  <bruno@clisp.org>
26253
26254         Avoid gcc warnings "declaration of 'exp' shadows a global declaration".
26255         * lib/math.in.h (frexp, frexpl): Change parameter name to 'expptr'.
26256         * lib/frexp.c (FUNC): Likewise.
26257         * lib/printf-frexp.h (printf_frexp): Likewise.
26258         * lib/printf-frexpl.h (printf_frexpl): Likewise.
26259         * lib/printf-frexp.c (FUNC): Likewise.
26260         Suggested by Jim Meyering.
26261
26262 2007-10-07  Jim Meyering  <meyering@redhat.com>
26263
26264         Make xnanosleep's integer overflow test more robust.
26265         * lib/xnanosleep.c (xnanosleep): Declare a temporary to be "volatile",
26266         so that gcc-4.3.0 doesn't optimize away this test for overflow.
26267
26268 2007-10-07  Bruno Haible  <bruno@clisp.org>
26269
26270         * NEWS: Mention the license change.
26271
26272         * doc/gnulib-intro.texi (Copyright): Update the meaning of the license
26273         abbreviations in the modules files.
26274
26275         Change copyright notice from GPLv2+ to GPLv3+.
26276         * README: Change copyright notice.
26277         * MODULES.html.sh: Likewise.
26278         * build-aux/bootstrap.conf: Likewise.
26279         * build-aux/config.libpath: Likewise.
26280         * build-aux/csharpcomp.sh.in: Likewise.
26281         * build-aux/csharpexec.sh.in: Likewise.
26282         * build-aux/install-reloc: Likewise.
26283         * build-aux/javacomp.sh.in: Likewise.
26284         * build-aux/javaexec.sh.in: Likewise.
26285         * build-aux/ldd.sh.in: Likewise.
26286         * build-aux/reloc-ldflags: Likewise.
26287         * build-aux/relocatable.sh.in: Likewise.
26288         * build-aux/x-to-1.in: Likewise.
26289         * check-module: Likewise.
26290         * config/srclistvars.sh: Likewise.
26291         * gnulib-tool: Likewise.
26292         * lib/acl-internal.h: Likewise.
26293         * lib/acl.c: Likewise.
26294         * lib/acl.h: Likewise.
26295         * lib/acl_entries.c: Likewise.
26296         * lib/areadlink-with-size.c: Likewise.
26297         * lib/areadlink.c: Likewise.
26298         * lib/areadlink.h: Likewise.
26299         * lib/argmatch.c: Likewise.
26300         * lib/argmatch.h: Likewise.
26301         * lib/argp-ba.c: Likewise.
26302         * lib/argp-eexst.c: Likewise.
26303         * lib/argp-fmtstream.c: Likewise.
26304         * lib/argp-fmtstream.h: Likewise.
26305         * lib/argp-fs-xinl.c: Likewise.
26306         * lib/argp-help.c: Likewise.
26307         * lib/argp-namefrob.h: Likewise.
26308         * lib/argp-parse.c: Likewise.
26309         * lib/argp-pin.c: Likewise.
26310         * lib/argp-pv.c: Likewise.
26311         * lib/argp-pvh.c: Likewise.
26312         * lib/argp-xinl.c: Likewise.
26313         * lib/argp.h: Likewise.
26314         * lib/at-func.c: Likewise.
26315         * lib/atanl.c: Likewise.
26316         * lib/backupfile.c: Likewise.
26317         * lib/backupfile.h: Likewise.
26318         * lib/basename.c: Likewise.
26319         * lib/binary-io.h: Likewise.
26320         * lib/byteswap.in.h: Likewise.
26321         * lib/c-stack.c: Likewise.
26322         * lib/c-stack.h: Likewise.
26323         * lib/c-strcasestr.c: Likewise.
26324         * lib/c-strcasestr.h: Likewise.
26325         * lib/c-strstr.c: Likewise.
26326         * lib/c-strstr.h: Likewise.
26327         * lib/c-strtod.c: Likewise.
26328         * lib/calloc.c: Likewise.
26329         * lib/canon-host.c: Likewise.
26330         * lib/canon-host.h: Likewise.
26331         * lib/canonicalize-lgpl.c: Likewise.
26332         * lib/canonicalize.c: Likewise.
26333         * lib/canonicalize.h: Likewise.
26334         * lib/ceil.c: Likewise.
26335         * lib/ceilf.c: Likewise.
26336         * lib/ceill.c: Likewise.
26337         * lib/chdir-long.c: Likewise.
26338         * lib/chdir-long.h: Likewise.
26339         * lib/chdir-safer.c: Likewise.
26340         * lib/chdir-safer.h: Likewise.
26341         * lib/chown.c: Likewise.
26342         * lib/classpath.c: Likewise.
26343         * lib/classpath.h: Likewise.
26344         * lib/clean-temp.c: Likewise.
26345         * lib/clean-temp.h: Likewise.
26346         * lib/cloexec.c: Likewise.
26347         * lib/close-stream.c: Likewise.
26348         * lib/closein.c: Likewise.
26349         * lib/closein.h: Likewise.
26350         * lib/closeout.c: Likewise.
26351         * lib/closeout.h: Likewise.
26352         * lib/concat-filename.c: Likewise.
26353         * lib/copy-file.c: Likewise.
26354         * lib/copy-file.h: Likewise.
26355         * lib/count-one-bits.h: Likewise.
26356         * lib/crc.c: Likewise.
26357         * lib/crc.h: Likewise.
26358         * lib/creat-safer.c: Likewise.
26359         * lib/csharpcomp.c: Likewise.
26360         * lib/csharpcomp.h: Likewise.
26361         * lib/csharpexec.c: Likewise.
26362         * lib/csharpexec.h: Likewise.
26363         * lib/cycle-check.c: Likewise.
26364         * lib/cycle-check.h: Likewise.
26365         * lib/diacrit.c: Likewise.
26366         * lib/diacrit.h: Likewise.
26367         * lib/diffseq.h: Likewise.
26368         * lib/dirchownmod.c: Likewise.
26369         * lib/dirent.in.h: Likewise.
26370         * lib/dirfd.c: Likewise.
26371         * lib/dirfd.h: Likewise.
26372         * lib/dirname.c: Likewise.
26373         * lib/dirname.h: Likewise.
26374         * lib/dummy.c: Likewise.
26375         * lib/dup-safer.c: Likewise.
26376         * lib/dup2.c: Likewise.
26377         * lib/eealloc.h: Likewise.
26378         * lib/error.c: Likewise.
26379         * lib/error.h: Likewise.
26380         * lib/euidaccess.c: Likewise.
26381         * lib/exclude.c: Likewise.
26382         * lib/exclude.h: Likewise.
26383         * lib/execute.c: Likewise.
26384         * lib/execute.h: Likewise.
26385         * lib/exitfail.c: Likewise.
26386         * lib/exitfail.h: Likewise.
26387         * lib/expl.c: Likewise.
26388         * lib/fatal-signal.c: Likewise.
26389         * lib/fatal-signal.h: Likewise.
26390         * lib/fbufmode.c: Likewise.
26391         * lib/fbufmode.h: Likewise.
26392         * lib/fchdir.c: Likewise.
26393         * lib/fchmodat.c: Likewise.
26394         * lib/fchownat.c: Likewise.
26395         * lib/fcntl--.h: Likewise.
26396         * lib/fcntl-safer.h: Likewise.
26397         * lib/fcntl.in.h: Likewise.
26398         * lib/fd-safer.c: Likewise.
26399         * lib/fflush.c: Likewise.
26400         * lib/file-has-acl.c: Likewise.
26401         * lib/file-set.c: Likewise.
26402         * lib/file-type.c: Likewise.
26403         * lib/file-type.h: Likewise.
26404         * lib/fileblocks.c: Likewise.
26405         * lib/filemode.c: Likewise.
26406         * lib/filemode.h: Likewise.
26407         * lib/filename.h: Likewise.
26408         * lib/filenamecat.c: Likewise.
26409         * lib/filenamecat.h: Likewise.
26410         * lib/findprog.c: Likewise.
26411         * lib/findprog.h: Likewise.
26412         * lib/float.in.h: Likewise.
26413         * lib/floor.c: Likewise.
26414         * lib/floorf.c: Likewise.
26415         * lib/floorl.c: Likewise.
26416         * lib/fopen-safer.c: Likewise.
26417         * lib/fopen.c: Likewise.
26418         * lib/fpending.c: Likewise.
26419         * lib/fpending.h: Likewise.
26420         * lib/fprintf.c: Likewise.
26421         * lib/fprintftime.h: Likewise.
26422         * lib/fpucw.h: Likewise.
26423         * lib/fpurge.c: Likewise.
26424         * lib/fpurge.h: Likewise.
26425         * lib/freadable.c: Likewise.
26426         * lib/freadable.h: Likewise.
26427         * lib/freadahead.c: Likewise.
26428         * lib/freadahead.h: Likewise.
26429         * lib/freading.c: Likewise.
26430         * lib/freading.h: Likewise.
26431         * lib/free.c: Likewise.
26432         * lib/freopen.c: Likewise.
26433         * lib/frexp.c: Likewise.
26434         * lib/frexpl.c: Likewise.
26435         * lib/fseek.c: Likewise.
26436         * lib/fseterr.c: Likewise.
26437         * lib/fseterr.h: Likewise.
26438         * lib/fstatat.c: Likewise.
26439         * lib/fstrcmp.c: Likewise.
26440         * lib/fstrcmp.h: Likewise.
26441         * lib/fsusage.c: Likewise.
26442         * lib/fsusage.h: Likewise.
26443         * lib/ftell.c: Likewise.
26444         * lib/ftello.c: Likewise.
26445         * lib/fts-cycle.c: Likewise.
26446         * lib/fts.c: Likewise.
26447         * lib/fts_.h: Likewise.
26448         * lib/full-read.c: Likewise.
26449         * lib/full-read.h: Likewise.
26450         * lib/full-write.c: Likewise.
26451         * lib/full-write.h: Likewise.
26452         * lib/fwritable.c: Likewise.
26453         * lib/fwritable.h: Likewise.
26454         * lib/fwriteerror.c: Likewise.
26455         * lib/fwriteerror.h: Likewise.
26456         * lib/fwriting.c: Likewise.
26457         * lib/fwriting.h: Likewise.
26458         * lib/gcd.c: Likewise.
26459         * lib/gcd.h: Likewise.
26460         * lib/getcwd.c: Likewise.
26461         * lib/getdate.h: Likewise.
26462         * lib/getdate.y: Likewise.
26463         * lib/getdomainname.c: Likewise.
26464         * lib/getdomainname.h: Likewise.
26465         * lib/getgroups.c: Likewise.
26466         * lib/gethostname.c: Likewise.
26467         * lib/gethrxtime.c: Likewise.
26468         * lib/gethrxtime.h: Likewise.
26469         * lib/getloadavg.c: Likewise.
26470         * lib/getndelim2.c: Likewise.
26471         * lib/getndelim2.h: Likewise.
26472         * lib/getnline.c: Likewise.
26473         * lib/getnline.h: Likewise.
26474         * lib/getopt.c: Likewise.
26475         * lib/getopt.in.h: Likewise.
26476         * lib/getopt1.c: Likewise.
26477         * lib/getopt_int.h: Likewise.
26478         * lib/getpagesize.h: Likewise.
26479         * lib/getsubopt.c: Likewise.
26480         * lib/gettime.c: Likewise.
26481         * lib/getugroups.c: Likewise.
26482         * lib/getugroups.h: Likewise.
26483         * lib/getusershell.c: Likewise.
26484         * lib/gl_anyavltree_list1.h: Likewise.
26485         * lib/gl_anyavltree_list2.h: Likewise.
26486         * lib/gl_anyhash_list1.h: Likewise.
26487         * lib/gl_anyhash_list2.h: Likewise.
26488         * lib/gl_anylinked_list1.h: Likewise.
26489         * lib/gl_anylinked_list2.h: Likewise.
26490         * lib/gl_anyrbtree_list1.h: Likewise.
26491         * lib/gl_anyrbtree_list2.h: Likewise.
26492         * lib/gl_anytree_list1.h: Likewise.
26493         * lib/gl_anytree_list2.h: Likewise.
26494         * lib/gl_anytree_oset.h: Likewise.
26495         * lib/gl_anytreehash_list1.h: Likewise.
26496         * lib/gl_anytreehash_list2.h: Likewise.
26497         * lib/gl_array_list.c: Likewise.
26498         * lib/gl_array_list.h: Likewise.
26499         * lib/gl_array_oset.c: Likewise.
26500         * lib/gl_array_oset.h: Likewise.
26501         * lib/gl_avltree_list.c: Likewise.
26502         * lib/gl_avltree_list.h: Likewise.
26503         * lib/gl_avltree_oset.c: Likewise.
26504         * lib/gl_avltree_oset.h: Likewise.
26505         * lib/gl_avltreehash_list.c: Likewise.
26506         * lib/gl_avltreehash_list.h: Likewise.
26507         * lib/gl_carray_list.c: Likewise.
26508         * lib/gl_carray_list.h: Likewise.
26509         * lib/gl_linked_list.c: Likewise.
26510         * lib/gl_linked_list.h: Likewise.
26511         * lib/gl_linkedhash_list.c: Likewise.
26512         * lib/gl_linkedhash_list.h: Likewise.
26513         * lib/gl_list.c: Likewise.
26514         * lib/gl_list.h: Likewise.
26515         * lib/gl_oset.c: Likewise.
26516         * lib/gl_oset.h: Likewise.
26517         * lib/gl_rbtree_list.c: Likewise.
26518         * lib/gl_rbtree_list.h: Likewise.
26519         * lib/gl_rbtree_oset.c: Likewise.
26520         * lib/gl_rbtree_oset.h: Likewise.
26521         * lib/gl_rbtreehash_list.c: Likewise.
26522         * lib/gl_rbtreehash_list.h: Likewise.
26523         * lib/gl_sublist.c: Likewise.
26524         * lib/gl_sublist.h: Likewise.
26525         * lib/group-member.c: Likewise.
26526         * lib/group-member.h: Likewise.
26527         * lib/hard-locale.c: Likewise.
26528         * lib/hard-locale.h: Likewise.
26529         * lib/hash-pjw.c: Likewise.
26530         * lib/hash-pjw.h: Likewise.
26531         * lib/hash-triple.c: Likewise.
26532         * lib/hash.c: Likewise.
26533         * lib/hash.h: Likewise.
26534         * lib/human.c: Likewise.
26535         * lib/human.h: Likewise.
26536         * lib/i-ring.c: Likewise.
26537         * lib/i-ring.h: Likewise.
26538         * lib/idcache.c: Likewise.
26539         * lib/imaxabs.c: Likewise.
26540         * lib/imaxdiv.c: Likewise.
26541         * lib/inet_pton.c: Likewise.
26542         * lib/inet_pton.h: Likewise.
26543         * lib/intprops.h: Likewise.
26544         * lib/inttostr.c: Likewise.
26545         * lib/inttostr.h: Likewise.
26546         * lib/inttypes.in.h: Likewise.
26547         * lib/isapipe.c: Likewise.
26548         * lib/isdir.c: Likewise.
26549         * lib/isnan.c: Likewise.
26550         * lib/isnan.h: Likewise.
26551         * lib/isnanf.c: Likewise.
26552         * lib/isnanf.h: Likewise.
26553         * lib/isnanl-nolibm.h: Likewise.
26554         * lib/isnanl.c: Likewise.
26555         * lib/isnanl.h: Likewise.
26556         * lib/javacomp.c: Likewise.
26557         * lib/javacomp.h: Likewise.
26558         * lib/javaexec.c: Likewise.
26559         * lib/javaexec.h: Likewise.
26560         * lib/javaversion.c: Likewise.
26561         * lib/javaversion.h: Likewise.
26562         * lib/javaversion.java: Likewise.
26563         * lib/lbrkprop.h: Likewise.
26564         * lib/lchmod.h: Likewise.
26565         * lib/lchown.c: Likewise.
26566         * lib/ldexpl.c: Likewise.
26567         * lib/linebreak.c: Likewise.
26568         * lib/linebreak.h: Likewise.
26569         * lib/linebuffer.c: Likewise.
26570         * lib/linebuffer.h: Likewise.
26571         * lib/locale.in.h: Likewise.
26572         * lib/logl.c: Likewise.
26573         * lib/long-options.c: Likewise.
26574         * lib/long-options.h: Likewise.
26575         * lib/lstat.c: Likewise.
26576         * lib/lstat.h: Likewise.
26577         * lib/math.in.h: Likewise.
26578         * lib/mbchar.c: Likewise.
26579         * lib/mbchar.h: Likewise.
26580         * lib/mbfile.h: Likewise.
26581         * lib/mbiter.h: Likewise.
26582         * lib/mbscasecmp.c: Likewise.
26583         * lib/mbscasestr.c: Likewise.
26584         * lib/mbschr.c: Likewise.
26585         * lib/mbscspn.c: Likewise.
26586         * lib/mbslen.c: Likewise.
26587         * lib/mbsncasecmp.c: Likewise.
26588         * lib/mbsnlen.c: Likewise.
26589         * lib/mbspbrk.c: Likewise.
26590         * lib/mbspcasecmp.c: Likewise.
26591         * lib/mbsrchr.c: Likewise.
26592         * lib/mbssep.c: Likewise.
26593         * lib/mbsspn.c: Likewise.
26594         * lib/mbsstr.c: Likewise.
26595         * lib/mbstok_r.c: Likewise.
26596         * lib/mbswidth.c: Likewise.
26597         * lib/mbswidth.h: Likewise.
26598         * lib/mbuiter.h: Likewise.
26599         * lib/memcasecmp.c: Likewise.
26600         * lib/memcasecmp.h: Likewise.
26601         * lib/memchr.c: Likewise.
26602         * lib/memcmp.c: Likewise.
26603         * lib/memcoll.c: Likewise.
26604         * lib/memcoll.h: Likewise.
26605         * lib/memcpy.c: Likewise.
26606         * lib/memrchr.c: Likewise.
26607         * lib/mkancesdirs.c: Likewise.
26608         * lib/mkdir-p.c: Likewise.
26609         * lib/mkdir-p.h: Likewise.
26610         * lib/mkdir.c: Likewise.
26611         * lib/mkdirat.c: Likewise.
26612         * lib/mkdtemp.c: Likewise.
26613         * lib/mkstemp-safer.c: Likewise.
26614         * lib/mkstemp.c: Likewise.
26615         * lib/modechange.c: Likewise.
26616         * lib/modechange.h: Likewise.
26617         * lib/mountlist.c: Likewise.
26618         * lib/mountlist.h: Likewise.
26619         * lib/mpsort.c: Likewise.
26620         * lib/nanosleep.c: Likewise.
26621         * lib/obstack.c: Likewise.
26622         * lib/obstack.h: Likewise.
26623         * lib/open-safer.c: Likewise.
26624         * lib/open.c: Likewise.
26625         * lib/openat-die.c: Likewise.
26626         * lib/openat-priv.h: Likewise.
26627         * lib/openat-proc.c: Likewise.
26628         * lib/openat.c: Likewise.
26629         * lib/openat.h: Likewise.
26630         * lib/pagealign_alloc.c: Likewise.
26631         * lib/pagealign_alloc.h: Likewise.
26632         * lib/physmem.c: Likewise.
26633         * lib/physmem.h: Likewise.
26634         * lib/pipe-safer.c: Likewise.
26635         * lib/pipe.c: Likewise.
26636         * lib/pipe.h: Likewise.
26637         * lib/posixtm.c: Likewise.
26638         * lib/posixtm.h: Likewise.
26639         * lib/posixver.c: Likewise.
26640         * lib/printf-frexp.c: Likewise.
26641         * lib/printf-frexp.h: Likewise.
26642         * lib/printf-frexpl.c: Likewise.
26643         * lib/printf-frexpl.h: Likewise.
26644         * lib/printf.c: Likewise.
26645         * lib/progname.c: Likewise.
26646         * lib/progname.h: Likewise.
26647         * lib/progreloc.c: Likewise.
26648         * lib/putenv.c: Likewise.
26649         * lib/quote.c: Likewise.
26650         * lib/quote.h: Likewise.
26651         * lib/quotearg.c: Likewise.
26652         * lib/quotearg.h: Likewise.
26653         * lib/raise.c: Likewise.
26654         * lib/readline.c: Likewise.
26655         * lib/readline.h: Likewise.
26656         * lib/readlink.c: Likewise.
26657         * lib/readtokens.c: Likewise.
26658         * lib/readtokens.h: Likewise.
26659         * lib/readtokens0.c: Likewise.
26660         * lib/readtokens0.h: Likewise.
26661         * lib/readutmp.c: Likewise.
26662         * lib/readutmp.h: Likewise.
26663         * lib/realloc.c: Likewise.
26664         * lib/relocwrapper.c: Likewise.
26665         * lib/rename-dest-slash.c: Likewise.
26666         * lib/rename.c: Likewise.
26667         * lib/rmdir.c: Likewise.
26668         * lib/rpmatch.c: Likewise.
26669         * lib/safe-read.c: Likewise.
26670         * lib/safe-read.h: Likewise.
26671         * lib/safe-write.c: Likewise.
26672         * lib/safe-write.h: Likewise.
26673         * lib/same-inode.h: Likewise.
26674         * lib/same.c: Likewise.
26675         * lib/same.h: Likewise.
26676         * lib/save-cwd.c: Likewise.
26677         * lib/save-cwd.h: Likewise.
26678         * lib/savedir.c: Likewise.
26679         * lib/savedir.h: Likewise.
26680         * lib/savewd.c: Likewise.
26681         * lib/savewd.h: Likewise.
26682         * lib/search.in.h: Likewise.
26683         * lib/setenv.c: Likewise.
26684         * lib/setenv.h: Likewise.
26685         * lib/settime.c: Likewise.
26686         * lib/sh-quote.c: Likewise.
26687         * lib/sh-quote.h: Likewise.
26688         * lib/sig2str.c: Likewise.
26689         * lib/sig2str.h: Likewise.
26690         * lib/signal.in.h: Likewise.
26691         * lib/signbitd.c: Likewise.
26692         * lib/signbitf.c: Likewise.
26693         * lib/signbitl.c: Likewise.
26694         * lib/sigprocmask.c: Likewise.
26695         * lib/sincosl.c: Likewise.
26696         * lib/sleep.c: Likewise.
26697         * lib/sprintf.c: Likewise.
26698         * lib/sqrtl.c: Likewise.
26699         * lib/stat-time.h: Likewise.
26700         * lib/stdio--.h: Likewise.
26701         * lib/stdio-safer.h: Likewise.
26702         * lib/stdlib--.h: Likewise.
26703         * lib/stdlib-safer.h: Likewise.
26704         * lib/stdlib.in.h: Likewise.
26705         * lib/stpcpy.c: Likewise.
26706         * lib/stpncpy.c: Likewise.
26707         * lib/strchrnul.c: Likewise.
26708         * lib/strcspn.c: Likewise.
26709         * lib/strerror.c: Likewise.
26710         * lib/strftime.c: Likewise.
26711         * lib/strftime.h: Likewise.
26712         * lib/striconveh.c: Likewise.
26713         * lib/striconveh.h: Likewise.
26714         * lib/striconveha.c: Likewise.
26715         * lib/striconveha.h: Likewise.
26716         * lib/stripslash.c: Likewise.
26717         * lib/strnlen1.c: Likewise.
26718         * lib/strnlen1.h: Likewise.
26719         * lib/strtod.c: Likewise.
26720         * lib/strtoimax.c: Likewise.
26721         * lib/strtok_r.c: Likewise.
26722         * lib/strtol.c: Likewise.
26723         * lib/strtoll.c: Likewise.
26724         * lib/strtoul.c: Likewise.
26725         * lib/strtoull.c: Likewise.
26726         * lib/sysexits.in.h: Likewise.
26727         * lib/tempname.c: Likewise.
26728         * lib/tempname.h: Likewise.
26729         * lib/timespec.h: Likewise.
26730         * lib/tls.c: Likewise.
26731         * lib/tls.h: Likewise.
26732         * lib/tmpdir.c: Likewise.
26733         * lib/tmpdir.h: Likewise.
26734         * lib/tmpfile-safer.c: Likewise.
26735         * lib/tmpfile.c: Likewise.
26736         * lib/trigl.c: Likewise.
26737         * lib/trigl.h: Likewise.
26738         * lib/trim.c: Likewise.
26739         * lib/trim.h: Likewise.
26740         * lib/trunc.c: Likewise.
26741         * lib/truncf.c: Likewise.
26742         * lib/truncl.c: Likewise.
26743         * lib/tsearch.c: Likewise.
26744         * lib/unicodeio.c: Likewise.
26745         * lib/unicodeio.h: Likewise.
26746         * lib/unistd--.h: Likewise.
26747         * lib/unistd-safer.h: Likewise.
26748         * lib/unistdio/ulc-fprintf.c: Likewise.
26749         * lib/unistdio/ulc-vfprintf.c: Likewise.
26750         * lib/unlinkdir.c: Likewise.
26751         * lib/unlinkdir.h: Likewise.
26752         * lib/unlocked-io.h: Likewise.
26753         * lib/unsetenv.c: Likewise.
26754         * lib/userspec.c: Likewise.
26755         * lib/utime.c: Likewise.
26756         * lib/utimecmp.c: Likewise.
26757         * lib/utimecmp.h: Likewise.
26758         * lib/utimens.c: Likewise.
26759         * lib/verify.h: Likewise.
26760         * lib/verror.c: Likewise.
26761         * lib/verror.h: Likewise.
26762         * lib/version-etc-fsf.c: Likewise.
26763         * lib/version-etc.c: Likewise.
26764         * lib/version-etc.h: Likewise.
26765         * lib/vfprintf.c: Likewise.
26766         * lib/vprintf.c: Likewise.
26767         * lib/vsprintf.c: Likewise.
26768         * lib/w32spawn.h: Likewise.
26769         * lib/wait-process.c: Likewise.
26770         * lib/wait-process.h: Likewise.
26771         * lib/wcwidth.c: Likewise.
26772         * lib/write-any-file.c: Likewise.
26773         * lib/xalloc-die.c: Likewise.
26774         * lib/xalloc.h: Likewise.
26775         * lib/xasprintf.c: Likewise.
26776         * lib/xgetcwd.c: Likewise.
26777         * lib/xgetcwd.h: Likewise.
26778         * lib/xgetdomainname.c: Likewise.
26779         * lib/xgetdomainname.h: Likewise.
26780         * lib/xgethostname.c: Likewise.
26781         * lib/xmalloc.c: Likewise.
26782         * lib/xmalloca.c: Likewise.
26783         * lib/xmalloca.h: Likewise.
26784         * lib/xmemcoll.c: Likewise.
26785         * lib/xnanosleep.c: Likewise.
26786         * lib/xreadlink.c: Likewise.
26787         * lib/xreadlink.h: Likewise.
26788         * lib/xsetenv.c: Likewise.
26789         * lib/xsetenv.h: Likewise.
26790         * lib/xstriconv.c: Likewise.
26791         * lib/xstriconv.h: Likewise.
26792         * lib/xstrndup.c: Likewise.
26793         * lib/xstrndup.h: Likewise.
26794         * lib/xstrtod.c: Likewise.
26795         * lib/xstrtod.h: Likewise.
26796         * lib/xstrtol-error.c: Likewise.
26797         * lib/xstrtol.c: Likewise.
26798         * lib/xstrtol.h: Likewise.
26799         * lib/xtime.h: Likewise.
26800         * lib/xvasprintf.c: Likewise.
26801         * lib/xvasprintf.h: Likewise.
26802         * lib/yesno.c: Likewise.
26803         * lib/yesno.h: Likewise.
26804         * posix-modules: Likewise.
26805         * tests/test-alloca-opt.c: Likewise.
26806         * tests/test-arcfour.c: Likewise.
26807         * tests/test-arctwo.c: Likewise.
26808         * tests/test-argmatch.c: Likewise.
26809         * tests/test-argp-2.sh: Likewise.
26810         * tests/test-argp.c: Likewise.
26811         * tests/test-arpa_inet.c: Likewise.
26812         * tests/test-array_list.c: Likewise.
26813         * tests/test-array_oset.c: Likewise.
26814         * tests/test-atexit.c: Likewise.
26815         * tests/test-avltree_list.c: Likewise.
26816         * tests/test-avltree_oset.c: Likewise.
26817         * tests/test-avltreehash_list.c: Likewise.
26818         * tests/test-base64.c: Likewise.
26819         * tests/test-binary-io.c: Likewise.
26820         * tests/test-byteswap.c: Likewise.
26821         * tests/test-c-ctype.c: Likewise.
26822         * tests/test-c-strcasecmp.c: Likewise.
26823         * tests/test-c-strcasestr.c: Likewise.
26824         * tests/test-c-strncasecmp.c: Likewise.
26825         * tests/test-c-strstr.c: Likewise.
26826         * tests/test-canonicalize-lgpl.c: Likewise.
26827         * tests/test-canonicalize.c: Likewise.
26828         * tests/test-carray_list.c: Likewise.
26829         * tests/test-ceilf.c: Likewise.
26830         * tests/test-ceill.c: Likewise.
26831         * tests/test-count-one-bits.c: Likewise.
26832         * tests/test-crc.c: Likewise.
26833         * tests/test-dirname.c: Likewise.
26834         * tests/test-fbufmode.c: Likewise.
26835         * tests/test-fcntl.c: Likewise.
26836         * tests/test-fflush.c: Likewise.
26837         * tests/test-floorf.c: Likewise.
26838         * tests/test-floorl.c: Likewise.
26839         * tests/test-fopen.c: Likewise.
26840         * tests/test-fprintf-posix.c: Likewise.
26841         * tests/test-fprintf-posix.h: Likewise.
26842         * tests/test-fpurge.c: Likewise.
26843         * tests/test-freadable.c: Likewise.
26844         * tests/test-freadahead.c: Likewise.
26845         * tests/test-freading.c: Likewise.
26846         * tests/test-freopen.c: Likewise.
26847         * tests/test-frexp.c: Likewise.
26848         * tests/test-frexpl.c: Likewise.
26849         * tests/test-fseek.c: Likewise.
26850         * tests/test-fseeko.c: Likewise.
26851         * tests/test-fseterr.c: Likewise.
26852         * tests/test-fstrcmp.c: Likewise.
26853         * tests/test-ftell.c: Likewise.
26854         * tests/test-ftello.c: Likewise.
26855         * tests/test-fwritable.c: Likewise.
26856         * tests/test-fwriting.c: Likewise.
26857         * tests/test-getaddrinfo.c: Likewise.
26858         * tests/test-getpass.c: Likewise.
26859         * tests/test-gettimeofday.c: Likewise.
26860         * tests/test-hmac-md5.c: Likewise.
26861         * tests/test-hmac-sha1.c: Likewise.
26862         * tests/test-iconv.c: Likewise.
26863         * tests/test-iconvme.c: Likewise.
26864         * tests/test-inttypes.c: Likewise.
26865         * tests/test-isnan.c: Likewise.
26866         * tests/test-isnanf.c: Likewise.
26867         * tests/test-isnanl-nolibm.c: Likewise.
26868         * tests/test-isnanl.c: Likewise.
26869         * tests/test-isnanl.h: Likewise.
26870         * tests/test-ldexpl.c: Likewise.
26871         * tests/test-linked_list.c: Likewise.
26872         * tests/test-linkedhash_list.c: Likewise.
26873         * tests/test-locale.c: Likewise.
26874         * tests/test-localename.c: Likewise.
26875         * tests/test-lock.c: Likewise.
26876         * tests/test-lseek.c: Likewise.
26877         * tests/test-malloca.c: Likewise.
26878         * tests/test-math.c: Likewise.
26879         * tests/test-mbscasecmp.c: Likewise.
26880         * tests/test-mbscasestr1.c: Likewise.
26881         * tests/test-mbscasestr2.c: Likewise.
26882         * tests/test-mbscasestr3.c: Likewise.
26883         * tests/test-mbscasestr4.c: Likewise.
26884         * tests/test-mbschr.c: Likewise.
26885         * tests/test-mbscspn.c: Likewise.
26886         * tests/test-mbsncasecmp.c: Likewise.
26887         * tests/test-mbspbrk.c: Likewise.
26888         * tests/test-mbspcasecmp.c: Likewise.
26889         * tests/test-mbsrchr.c: Likewise.
26890         * tests/test-mbsspn.c: Likewise.
26891         * tests/test-mbsstr1.c: Likewise.
26892         * tests/test-mbsstr2.c: Likewise.
26893         * tests/test-mbsstr3.c: Likewise.
26894         * tests/test-md5.c: Likewise.
26895         * tests/test-memmem.c: Likewise.
26896         * tests/test-netinet_in.c: Likewise.
26897         * tests/test-open.c: Likewise.
26898         * tests/test-printf-frexp.c: Likewise.
26899         * tests/test-printf-frexpl.c: Likewise.
26900         * tests/test-printf-posix.c: Likewise.
26901         * tests/test-printf-posix.h: Likewise.
26902         * tests/test-rbtree_list.c: Likewise.
26903         * tests/test-rbtree_oset.c: Likewise.
26904         * tests/test-rbtreehash_list.c: Likewise.
26905         * tests/test-read-file.c: Likewise.
26906         * tests/test-rijndael.c: Likewise.
26907         * tests/test-search.c: Likewise.
26908         * tests/test-signbit.c: Likewise.
26909         * tests/test-sleep.c: Likewise.
26910         * tests/test-snprintf-posix.c: Likewise.
26911         * tests/test-snprintf-posix.h: Likewise.
26912         * tests/test-snprintf.c: Likewise.
26913         * tests/test-sprintf-posix.c: Likewise.
26914         * tests/test-sprintf-posix.h: Likewise.
26915         * tests/test-stat-time.c: Likewise.
26916         * tests/test-stdbool.c: Likewise.
26917         * tests/test-stdint.c: Likewise.
26918         * tests/test-stdio.c: Likewise.
26919         * tests/test-stdlib.c: Likewise.
26920         * tests/test-stpncpy.c: Likewise.
26921         * tests/test-strcasestr.c: Likewise.
26922         * tests/test-striconv.c: Likewise.
26923         * tests/test-striconveh.c: Likewise.
26924         * tests/test-striconveha.c: Likewise.
26925         * tests/test-string.c: Likewise.
26926         * tests/test-sys_select.c: Likewise.
26927         * tests/test-sys_socket.c: Likewise.
26928         * tests/test-sys_stat.c: Likewise.
26929         * tests/test-sys_time.c: Likewise.
26930         * tests/test-sysexits.c: Likewise.
26931         * tests/test-time.c: Likewise.
26932         * tests/test-tls.c: Likewise.
26933         * tests/test-trunc.c: Likewise.
26934         * tests/test-truncf.c: Likewise.
26935         * tests/test-truncl.c: Likewise.
26936         * tests/test-unistd.c: Likewise.
26937         * tests/test-vasnprintf-posix.c: Likewise.
26938         * tests/test-vasnprintf-posix2.c: Likewise.
26939         * tests/test-vasnprintf.c: Likewise.
26940         * tests/test-vasprintf-posix.c: Likewise.
26941         * tests/test-vasprintf.c: Likewise.
26942         * tests/test-verify.c: Likewise.
26943         * tests/test-vfprintf-posix.c: Likewise.
26944         * tests/test-vprintf-posix.c: Likewise.
26945         * tests/test-vsnprintf-posix.c: Likewise.
26946         * tests/test-vsnprintf.c: Likewise.
26947         * tests/test-vsprintf-posix.c: Likewise.
26948         * tests/test-wchar.c: Likewise.
26949         * tests/test-wctype.c: Likewise.
26950         * tests/test-wcwidth.c: Likewise.
26951         * tests/test-xstrtol.c: Likewise.
26952         * tests/test-xvasprintf.c: Likewise.
26953         * tests/uniconv/test-u16-conv-from-enc.c: Likewise.
26954         * tests/uniconv/test-u16-conv-to-enc.c: Likewise.
26955         * tests/uniconv/test-u16-strconv-from-enc.c: Likewise.
26956         * tests/uniconv/test-u16-strconv-to-enc.c: Likewise.
26957         * tests/uniconv/test-u32-conv-from-enc.c: Likewise.
26958         * tests/uniconv/test-u32-conv-to-enc.c: Likewise.
26959         * tests/uniconv/test-u32-strconv-from-enc.c: Likewise.
26960         * tests/uniconv/test-u32-strconv-to-enc.c: Likewise.
26961         * tests/uniconv/test-u8-conv-from-enc.c: Likewise.
26962         * tests/uniconv/test-u8-conv-to-enc.c: Likewise.
26963         * tests/uniconv/test-u8-strconv-from-enc.c: Likewise.
26964         * tests/uniconv/test-u8-strconv-to-enc.c: Likewise.
26965         * tests/uniname/test-uninames.c: Likewise.
26966         * tests/unistdio/test-u16-asnprintf1.c: Likewise.
26967         * tests/unistdio/test-u16-asnprintf1.h: Likewise.
26968         * tests/unistdio/test-u16-printf1.h: Likewise.
26969         * tests/unistdio/test-u16-vasnprintf1.c: Likewise.
26970         * tests/unistdio/test-u16-vasnprintf2.c: Likewise.
26971         * tests/unistdio/test-u16-vasnprintf3.c: Likewise.
26972         * tests/unistdio/test-u16-vasprintf1.c: Likewise.
26973         * tests/unistdio/test-u16-vsnprintf1.c: Likewise.
26974         * tests/unistdio/test-u16-vsprintf1.c: Likewise.
26975         * tests/unistdio/test-u32-asnprintf1.c: Likewise.
26976         * tests/unistdio/test-u32-asnprintf1.h: Likewise.
26977         * tests/unistdio/test-u32-printf1.h: Likewise.
26978         * tests/unistdio/test-u32-vasnprintf1.c: Likewise.
26979         * tests/unistdio/test-u32-vasnprintf2.c: Likewise.
26980         * tests/unistdio/test-u32-vasnprintf3.c: Likewise.
26981         * tests/unistdio/test-u32-vasprintf1.c: Likewise.
26982         * tests/unistdio/test-u32-vsnprintf1.c: Likewise.
26983         * tests/unistdio/test-u32-vsprintf1.c: Likewise.
26984         * tests/unistdio/test-u8-asnprintf1.c: Likewise.
26985         * tests/unistdio/test-u8-asnprintf1.h: Likewise.
26986         * tests/unistdio/test-u8-printf1.h: Likewise.
26987         * tests/unistdio/test-u8-vasnprintf1.c: Likewise.
26988         * tests/unistdio/test-u8-vasnprintf2.c: Likewise.
26989         * tests/unistdio/test-u8-vasnprintf3.c: Likewise.
26990         * tests/unistdio/test-u8-vasprintf1.c: Likewise.
26991         * tests/unistdio/test-u8-vsnprintf1.c: Likewise.
26992         * tests/unistdio/test-u8-vsprintf1.c: Likewise.
26993         * tests/unistdio/test-ulc-asnprintf1.c: Likewise.
26994         * tests/unistdio/test-ulc-asnprintf1.h: Likewise.
26995         * tests/unistdio/test-ulc-printf1.h: Likewise.
26996         * tests/unistdio/test-ulc-vasnprintf1.c: Likewise.
26997         * tests/unistdio/test-ulc-vasnprintf2.c: Likewise.
26998         * tests/unistdio/test-ulc-vasnprintf3.c: Likewise.
26999         * tests/unistdio/test-ulc-vasprintf1.c: Likewise.
27000         * tests/unistdio/test-ulc-vsnprintf1.c: Likewise.
27001         * tests/unistdio/test-ulc-vsprintf1.c: Likewise.
27002         * tests/uniwidth/test-u16-strwidth.c: Likewise.
27003         * tests/uniwidth/test-u16-width.c: Likewise.
27004         * tests/uniwidth/test-u32-strwidth.c: Likewise.
27005         * tests/uniwidth/test-u32-width.c: Likewise.
27006         * tests/uniwidth/test-u8-strwidth.c: Likewise.
27007         * tests/uniwidth/test-u8-width.c: Likewise.
27008         * tests/uniwidth/test-uc_width.c: Likewise.
27009         * config/srclist-update: Likewise.
27010         (fixlicense): Update to GPLv3+.
27011
27012         Change copyright notice from LGPLv2.1+ to LGPLv3+.
27013         * tests/test-tsearch.c: Change copyright notice.
27014
27015         Change copyright notice from LGPLv2.0+ to LGPLv3+.
27016         * lib/c-strcaseeq.h: Change copyright notice.
27017         * lib/streq.h: Likewise.
27018         * lib/uniconv.h: Likewise.
27019         * lib/uniconv/u-conv-from-enc.h: Likewise.
27020         * lib/uniconv/u-conv-to-enc.h: Likewise.
27021         * lib/uniconv/u-strconv-from-enc.h: Likewise.
27022         * lib/uniconv/u-strconv-to-enc.h: Likewise.
27023         * lib/uniconv/u16-conv-from-enc.c: Likewise.
27024         * lib/uniconv/u16-conv-to-enc.c: Likewise.
27025         * lib/uniconv/u16-strconv-from-enc.c: Likewise.
27026         * lib/uniconv/u16-strconv-from-locale.c: Likewise.
27027         * lib/uniconv/u16-strconv-to-enc.c: Likewise.
27028         * lib/uniconv/u16-strconv-to-locale.c: Likewise.
27029         * lib/uniconv/u32-conv-from-enc.c: Likewise.
27030         * lib/uniconv/u32-conv-to-enc.c: Likewise.
27031         * lib/uniconv/u32-strconv-from-enc.c: Likewise.
27032         * lib/uniconv/u32-strconv-from-locale.c: Likewise.
27033         * lib/uniconv/u32-strconv-to-enc.c: Likewise.
27034         * lib/uniconv/u32-strconv-to-locale.c: Likewise.
27035         * lib/uniconv/u8-conv-from-enc.c: Likewise.
27036         * lib/uniconv/u8-conv-to-enc.c: Likewise.
27037         * lib/uniconv/u8-strconv-from-enc.c: Likewise.
27038         * lib/uniconv/u8-strconv-from-locale.c: Likewise.
27039         * lib/uniconv/u8-strconv-to-enc.c: Likewise.
27040         * lib/uniconv/u8-strconv-to-locale.c: Likewise.
27041         * lib/uniname.h: Likewise.
27042         * lib/uniname/uniname.c: Likewise.
27043         * lib/unistdio.h: Likewise.
27044         * lib/unistdio/u-asnprintf.h: Likewise.
27045         * lib/unistdio/u-asprintf.h: Likewise.
27046         * lib/unistdio/u-printf-args.c: Likewise.
27047         * lib/unistdio/u-printf-args.h: Likewise.
27048         * lib/unistdio/u-printf-parse.h: Likewise.
27049         * lib/unistdio/u-snprintf.h: Likewise.
27050         * lib/unistdio/u-sprintf.h: Likewise.
27051         * lib/unistdio/u-vasprintf.h: Likewise.
27052         * lib/unistdio/u-vsnprintf.h: Likewise.
27053         * lib/unistdio/u-vsprintf.h: Likewise.
27054         * lib/unistdio/u16-asnprintf.c: Likewise.
27055         * lib/unistdio/u16-asprintf.c: Likewise.
27056         * lib/unistdio/u16-printf-parse.c: Likewise.
27057         * lib/unistdio/u16-snprintf.c: Likewise.
27058         * lib/unistdio/u16-sprintf.c: Likewise.
27059         * lib/unistdio/u16-u16-asnprintf.c: Likewise.
27060         * lib/unistdio/u16-u16-asprintf.c: Likewise.
27061         * lib/unistdio/u16-u16-snprintf.c: Likewise.
27062         * lib/unistdio/u16-u16-sprintf.c: Likewise.
27063         * lib/unistdio/u16-u16-vasnprintf.c: Likewise.
27064         * lib/unistdio/u16-u16-vasprintf.c: Likewise.
27065         * lib/unistdio/u16-u16-vsnprintf.c: Likewise.
27066         * lib/unistdio/u16-u16-vsprintf.c: Likewise.
27067         * lib/unistdio/u16-vasnprintf.c: Likewise.
27068         * lib/unistdio/u16-vasprintf.c: Likewise.
27069         * lib/unistdio/u16-vsnprintf.c: Likewise.
27070         * lib/unistdio/u16-vsprintf.c: Likewise.
27071         * lib/unistdio/u32-asnprintf.c: Likewise.
27072         * lib/unistdio/u32-asprintf.c: Likewise.
27073         * lib/unistdio/u32-printf-parse.c: Likewise.
27074         * lib/unistdio/u32-snprintf.c: Likewise.
27075         * lib/unistdio/u32-sprintf.c: Likewise.
27076         * lib/unistdio/u32-u32-asnprintf.c: Likewise.
27077         * lib/unistdio/u32-u32-asprintf.c: Likewise.
27078         * lib/unistdio/u32-u32-snprintf.c: Likewise.
27079         * lib/unistdio/u32-u32-sprintf.c: Likewise.
27080         * lib/unistdio/u32-u32-vasnprintf.c: Likewise.
27081         * lib/unistdio/u32-u32-vasprintf.c: Likewise.
27082         * lib/unistdio/u32-u32-vsnprintf.c: Likewise.
27083         * lib/unistdio/u32-u32-vsprintf.c: Likewise.
27084         * lib/unistdio/u32-vasnprintf.c: Likewise.
27085         * lib/unistdio/u32-vasprintf.c: Likewise.
27086         * lib/unistdio/u32-vsnprintf.c: Likewise.
27087         * lib/unistdio/u32-vsprintf.c: Likewise.
27088         * lib/unistdio/u8-asnprintf.c: Likewise.
27089         * lib/unistdio/u8-asprintf.c: Likewise.
27090         * lib/unistdio/u8-printf-parse.c: Likewise.
27091         * lib/unistdio/u8-snprintf.c: Likewise.
27092         * lib/unistdio/u8-sprintf.c: Likewise.
27093         * lib/unistdio/u8-u8-asnprintf.c: Likewise.
27094         * lib/unistdio/u8-u8-asprintf.c: Likewise.
27095         * lib/unistdio/u8-u8-snprintf.c: Likewise.
27096         * lib/unistdio/u8-u8-sprintf.c: Likewise.
27097         * lib/unistdio/u8-u8-vasnprintf.c: Likewise.
27098         * lib/unistdio/u8-u8-vasprintf.c: Likewise.
27099         * lib/unistdio/u8-u8-vsnprintf.c: Likewise.
27100         * lib/unistdio/u8-u8-vsprintf.c: Likewise.
27101         * lib/unistdio/u8-vasnprintf.c: Likewise.
27102         * lib/unistdio/u8-vasprintf.c: Likewise.
27103         * lib/unistdio/u8-vsnprintf.c: Likewise.
27104         * lib/unistdio/u8-vsprintf.c: Likewise.
27105         * lib/unistdio/ulc-asnprintf.c: Likewise.
27106         * lib/unistdio/ulc-asprintf.c: Likewise.
27107         * lib/unistdio/ulc-printf-parse.c: Likewise.
27108         * lib/unistdio/ulc-snprintf.c: Likewise.
27109         * lib/unistdio/ulc-sprintf.c: Likewise.
27110         * lib/unistdio/ulc-vasnprintf.c: Likewise.
27111         * lib/unistdio/ulc-vasprintf.c: Likewise.
27112         * lib/unistdio/ulc-vsnprintf.c: Likewise.
27113         * lib/unistdio/ulc-vsprintf.c: Likewise.
27114         * lib/unistr.h: Likewise.
27115         * lib/unistr/u-cpy-alloc.h: Likewise.
27116         * lib/unistr/u-cpy.h: Likewise.
27117         * lib/unistr/u-endswith.h: Likewise.
27118         * lib/unistr/u-move.h: Likewise.
27119         * lib/unistr/u-set.h: Likewise.
27120         * lib/unistr/u-startswith.h: Likewise.
27121         * lib/unistr/u-stpcpy.h: Likewise.
27122         * lib/unistr/u-stpncpy.h: Likewise.
27123         * lib/unistr/u-strcat.h: Likewise.
27124         * lib/unistr/u-strcpy.h: Likewise.
27125         * lib/unistr/u-strcspn.h: Likewise.
27126         * lib/unistr/u-strdup.h: Likewise.
27127         * lib/unistr/u-strlen.h: Likewise.
27128         * lib/unistr/u-strncat.h: Likewise.
27129         * lib/unistr/u-strncpy.h: Likewise.
27130         * lib/unistr/u-strnlen.h: Likewise.
27131         * lib/unistr/u-strpbrk.h: Likewise.
27132         * lib/unistr/u-strspn.h: Likewise.
27133         * lib/unistr/u-strstr.h: Likewise.
27134         * lib/unistr/u-strtok.h: Likewise.
27135         * lib/unistr/u16-check.c: Likewise.
27136         * lib/unistr/u16-chr.c: Likewise.
27137         * lib/unistr/u16-cmp.c: Likewise.
27138         * lib/unistr/u16-cpy-alloc.c: Likewise.
27139         * lib/unistr/u16-cpy.c: Likewise.
27140         * lib/unistr/u16-endswith.c: Likewise.
27141         * lib/unistr/u16-mblen.c: Likewise.
27142         * lib/unistr/u16-mbsnlen.c: Likewise.
27143         * lib/unistr/u16-mbtouc-aux.c: Likewise.
27144         * lib/unistr/u16-mbtouc-unsafe-aux.c: Likewise.
27145         * lib/unistr/u16-mbtouc-unsafe.c: Likewise.
27146         * lib/unistr/u16-mbtouc.c: Likewise.
27147         * lib/unistr/u16-mbtoucr.c: Likewise.
27148         * lib/unistr/u16-move.c: Likewise.
27149         * lib/unistr/u16-next.c: Likewise.
27150         * lib/unistr/u16-prev.c: Likewise.
27151         * lib/unistr/u16-set.c: Likewise.
27152         * lib/unistr/u16-startswith.c: Likewise.
27153         * lib/unistr/u16-stpcpy.c: Likewise.
27154         * lib/unistr/u16-stpncpy.c: Likewise.
27155         * lib/unistr/u16-strcat.c: Likewise.
27156         * lib/unistr/u16-strchr.c: Likewise.
27157         * lib/unistr/u16-strcmp.c: Likewise.
27158         * lib/unistr/u16-strcpy.c: Likewise.
27159         * lib/unistr/u16-strcspn.c: Likewise.
27160         * lib/unistr/u16-strdup.c: Likewise.
27161         * lib/unistr/u16-strlen.c: Likewise.
27162         * lib/unistr/u16-strmblen.c: Likewise.
27163         * lib/unistr/u16-strmbtouc.c: Likewise.
27164         * lib/unistr/u16-strncat.c: Likewise.
27165         * lib/unistr/u16-strncmp.c: Likewise.
27166         * lib/unistr/u16-strncpy.c: Likewise.
27167         * lib/unistr/u16-strnlen.c: Likewise.
27168         * lib/unistr/u16-strpbrk.c: Likewise.
27169         * lib/unistr/u16-strrchr.c: Likewise.
27170         * lib/unistr/u16-strspn.c: Likewise.
27171         * lib/unistr/u16-strstr.c: Likewise.
27172         * lib/unistr/u16-strtok.c: Likewise.
27173         * lib/unistr/u16-to-u32.c: Likewise.
27174         * lib/unistr/u16-to-u8.c: Likewise.
27175         * lib/unistr/u16-uctomb-aux.c: Likewise.
27176         * lib/unistr/u16-uctomb.c: Likewise.
27177         * lib/unistr/u32-check.c: Likewise.
27178         * lib/unistr/u32-chr.c: Likewise.
27179         * lib/unistr/u32-cmp.c: Likewise.
27180         * lib/unistr/u32-cpy-alloc.c: Likewise.
27181         * lib/unistr/u32-cpy.c: Likewise.
27182         * lib/unistr/u32-endswith.c: Likewise.
27183         * lib/unistr/u32-mblen.c: Likewise.
27184         * lib/unistr/u32-mbsnlen.c: Likewise.
27185         * lib/unistr/u32-mbtouc-unsafe.c: Likewise.
27186         * lib/unistr/u32-mbtouc.c: Likewise.
27187         * lib/unistr/u32-mbtoucr.c: Likewise.
27188         * lib/unistr/u32-move.c: Likewise.
27189         * lib/unistr/u32-next.c: Likewise.
27190         * lib/unistr/u32-prev.c: Likewise.
27191         * lib/unistr/u32-set.c: Likewise.
27192         * lib/unistr/u32-startswith.c: Likewise.
27193         * lib/unistr/u32-stpcpy.c: Likewise.
27194         * lib/unistr/u32-stpncpy.c: Likewise.
27195         * lib/unistr/u32-strcat.c: Likewise.
27196         * lib/unistr/u32-strchr.c: Likewise.
27197         * lib/unistr/u32-strcmp.c: Likewise.
27198         * lib/unistr/u32-strcpy.c: Likewise.
27199         * lib/unistr/u32-strcspn.c: Likewise.
27200         * lib/unistr/u32-strdup.c: Likewise.
27201         * lib/unistr/u32-strlen.c: Likewise.
27202         * lib/unistr/u32-strmblen.c: Likewise.
27203         * lib/unistr/u32-strmbtouc.c: Likewise.
27204         * lib/unistr/u32-strncat.c: Likewise.
27205         * lib/unistr/u32-strncmp.c: Likewise.
27206         * lib/unistr/u32-strncpy.c: Likewise.
27207         * lib/unistr/u32-strnlen.c: Likewise.
27208         * lib/unistr/u32-strpbrk.c: Likewise.
27209         * lib/unistr/u32-strrchr.c: Likewise.
27210         * lib/unistr/u32-strspn.c: Likewise.
27211         * lib/unistr/u32-strstr.c: Likewise.
27212         * lib/unistr/u32-strtok.c: Likewise.
27213         * lib/unistr/u32-to-u16.c: Likewise.
27214         * lib/unistr/u32-to-u8.c: Likewise.
27215         * lib/unistr/u32-uctomb.c: Likewise.
27216         * lib/unistr/u8-check.c: Likewise.
27217         * lib/unistr/u8-chr.c: Likewise.
27218         * lib/unistr/u8-cmp.c: Likewise.
27219         * lib/unistr/u8-cpy-alloc.c: Likewise.
27220         * lib/unistr/u8-cpy.c: Likewise.
27221         * lib/unistr/u8-endswith.c: Likewise.
27222         * lib/unistr/u8-mblen.c: Likewise.
27223         * lib/unistr/u8-mbsnlen.c: Likewise.
27224         * lib/unistr/u8-mbtouc-aux.c: Likewise.
27225         * lib/unistr/u8-mbtouc-unsafe-aux.c: Likewise.
27226         * lib/unistr/u8-mbtouc-unsafe.c: Likewise.
27227         * lib/unistr/u8-mbtouc.c: Likewise.
27228         * lib/unistr/u8-mbtoucr.c: Likewise.
27229         * lib/unistr/u8-move.c: Likewise.
27230         * lib/unistr/u8-next.c: Likewise.
27231         * lib/unistr/u8-prev.c: Likewise.
27232         * lib/unistr/u8-set.c: Likewise.
27233         * lib/unistr/u8-startswith.c: Likewise.
27234         * lib/unistr/u8-stpcpy.c: Likewise.
27235         * lib/unistr/u8-stpncpy.c: Likewise.
27236         * lib/unistr/u8-strcat.c: Likewise.
27237         * lib/unistr/u8-strchr.c: Likewise.
27238         * lib/unistr/u8-strcmp.c: Likewise.
27239         * lib/unistr/u8-strcpy.c: Likewise.
27240         * lib/unistr/u8-strcspn.c: Likewise.
27241         * lib/unistr/u8-strdup.c: Likewise.
27242         * lib/unistr/u8-strlen.c: Likewise.
27243         * lib/unistr/u8-strmblen.c: Likewise.
27244         * lib/unistr/u8-strmbtouc.c: Likewise.
27245         * lib/unistr/u8-strncat.c: Likewise.
27246         * lib/unistr/u8-strncmp.c: Likewise.
27247         * lib/unistr/u8-strncpy.c: Likewise.
27248         * lib/unistr/u8-strnlen.c: Likewise.
27249         * lib/unistr/u8-strpbrk.c: Likewise.
27250         * lib/unistr/u8-strrchr.c: Likewise.
27251         * lib/unistr/u8-strspn.c: Likewise.
27252         * lib/unistr/u8-strstr.c: Likewise.
27253         * lib/unistr/u8-strtok.c: Likewise.
27254         * lib/unistr/u8-to-u16.c: Likewise.
27255         * lib/unistr/u8-to-u32.c: Likewise.
27256         * lib/unistr/u8-uctomb-aux.c: Likewise.
27257         * lib/unistr/u8-uctomb.c: Likewise.
27258         * lib/unitypes.h: Likewise.
27259         * lib/uniwidth.h: Likewise.
27260         * lib/uniwidth/cjk.h: Likewise.
27261         * lib/uniwidth/u16-strwidth.c: Likewise.
27262         * lib/uniwidth/u16-width.c: Likewise.
27263         * lib/uniwidth/u32-strwidth.c: Likewise.
27264         * lib/uniwidth/u32-width.c: Likewise.
27265         * lib/uniwidth/u8-strwidth.c: Likewise.
27266         * lib/uniwidth/u8-width.c: Likewise.
27267         * lib/uniwidth/width.c: Likewise.
27268
27269 2007-10-07  Bruno Haible  <bruno@clisp.org>
27270
27271         * lib/inttypes.in.h: Change copyright notice from LGPL to GPL.
27272         The file is still under LGPL (see modules/inttypes).
27273
27274 2007-10-06  Bruno Haible  <bruno@clisp.org>
27275
27276         * modules/trunc (Dependencies): Add 'extensions'.
27277         * m4/trunc.m4 (gl_FUNC_TRUNC): Require gl_USE_SYSTEM_EXTENSIONS.
27278         Reported by Ben Pfaff <blp@gnu.org>.
27279
27280 2007-10-06  Bruno Haible  <bruno@clisp.org>
27281
27282         * modules/freopen-tests: New file.
27283         * tests/test-freopen.c: New file.
27284
27285         * modules/fopen-tests: New file.
27286         * tests/test-fopen.c: New file.
27287
27288         * modules/fopen: New file.
27289         * lib/fopen.c: New file.
27290         * m4/fopen.m4: New file.
27291         * modules/freopen: New file.
27292         * lib/freopen.c: New file.
27293         * m4/freopen.m4: New file.
27294         * lib/stdio.in.h (fopen, freopen): New declarations.
27295         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize also GNULIB_FOPEN,
27296         GNULIB_FREOPEN, REPLACE_FOPEN, REPLACE_FREOPEN.
27297         * modules/stdio (Makefile.am): Substitute also GNULIB_FOPEN,
27298         GNULIB_FREOPEN, REPLACE_FOPEN, REPLACE_FREOPEN.
27299         * doc/functions/fopen.texi: Mention the 'fopen' module.
27300         * doc/functions/freopen.texi: Mention the 'freopen' module.
27301
27302 2007-10-06  Bruno Haible  <bruno@clisp.org>
27303
27304         * modules/open-tests: New file.
27305         * tests/test-open.c: New file.
27306
27307         * modules/open: New file.
27308         * lib/open.c: New file.
27309         * m4/open.m4: New file.
27310         * lib/fchdir.c (open): If the gnulib module 'open' is used, do what
27311         lib/open.c does.
27312         * lib/fcntl.in.h (open): Declare also if replaced by the 'open' module.
27313         * m4/fcntl_h.m4 (gl_FCNTL_MODULE_INDICATOR, gl_FCNTL_H_DEFAULTS): New
27314         macros.
27315         (gl_FCNTL_H): Require gl_FCNTL_H_DEFAULTS.
27316         * modules/fcntl (Makefile.am): Also substitute GNULIB_OPEN and
27317         REPLACE_OPEN.
27318         * doc/functions/open.texi: Mention the 'open' module.
27319
27320 2007-10-04  Bruno Haible  <bruno@clisp.org>
27321
27322         * modules/ceill-tests: New file.
27323         * tests/test-ceill.c: New file.
27324
27325         * modules/ceill: New file.
27326         * lib/ceill.c: Replace entire file.
27327         * m4/ceill.m4: New file.
27328         * lib/math.in.h (ceill): Replace declaration.
27329         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_CEILL.
27330         * modules/math (Makefile.am): Substitute also GNULIB_CEILL.
27331         * doc/functions/ceill.texi: Mention the 'ceill' module.
27332         * modules/mathl (Files): Remove lib/ceill.c.
27333         (Depends-on): Add ceill.
27334
27335 2007-10-04  Bruno Haible  <bruno@clisp.org>
27336
27337         * modules/ceilf-tests: New file.
27338         * tests/test-ceilf.c: New file.
27339
27340         * modules/ceilf: New file.
27341         * lib/ceil.c: New file.
27342         * lib/ceilf.c: New file.
27343         * m4/ceilf.m4: New file.
27344         * lib/math.in.h (ceilf): New declaration.
27345         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_CEILF and
27346         HAVE_DECL_CEILF.
27347         * modules/math (Makefile.am): Substitute also GNULIB_CEILF and
27348         HAVE_DECL_CEILF.
27349         * doc/functions/ceilf.texi: Mention the 'ceilf' module.
27350
27351 2007-10-04  Bruno Haible  <bruno@clisp.org>
27352
27353         * modules/floorl-tests: New file.
27354         * tests/test-floorl.c: New file.
27355
27356         * modules/floorl: New file.
27357         * lib/floorl.c: Replace entire file.
27358         * m4/floorl.m4: New file.
27359         * lib/math.in.h (floorl): Replace declaration.
27360         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_FLOORL.
27361         * modules/math (Makefile.am): Substitute also GNULIB_FLOORL.
27362         * doc/functions/floorl.texi: Mention the 'floorl' module.
27363         * modules/mathl (Files): Remove lib/floorl.c.
27364         (Depends-on): Add floorl.
27365
27366 2007-10-04  Bruno Haible  <bruno@clisp.org>
27367
27368         * modules/floorf-tests: New file.
27369         * tests/test-floorf.c: New file.
27370
27371         * modules/floorf: New file.
27372         * lib/floor.c: New file.
27373         * lib/floorf.c: New file.
27374         * m4/floorf.m4: New file.
27375         * lib/math.in.h (floorf): New declaration.
27376         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_FLOORF and
27377         HAVE_DECL_FLOORF.
27378         * modules/math (Makefile.am): Substitute also GNULIB_FLOORF and
27379         HAVE_DECL_FLOORF.
27380         * doc/functions/floorf.texi: Mention the 'floorf' module.
27381
27382 2007-10-04  Benoit Sigoure  <tsuna@lrde.epita.fr>
27383             Bruno Haible  <bruno@clisp.org>
27384
27385         Advertise for the Git server instead of the CVS server.
27386         * doc/gnulib-intro.texi (Steady Development): Mention the Git
27387         repository instead of the CVS one.
27388         * doc/gnulib-tool.texi (VCS Issues): Renamed from "CVS Issues". Talk
27389         about all VCS systems generically.
27390         * doc/gnulib.texi (Introduction): Capitalize `Git'.
27391
27392 2007-10-04  Bruno Haible  <bruno@clisp.org>
27393
27394         * doc/gnulib.texi (Function Substitutes): Explain what an absent module
27395         means.
27396         Reported by Benoît Sigoure <tsuna@lrde.epita.fr>.
27397
27398 2007-10-04  Bruno Haible  <bruno@clisp.org>
27399
27400         * modules/truncl-tests: New file.
27401         * tests/test-truncl.c: New file.
27402
27403         * modules/truncl: New file.
27404         * lib/truncl.c: New file.
27405         * m4/truncl.m4: New file.
27406         * lib/math.in.h (truncl): New declaration.
27407         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_TRUNCL and
27408         HAVE_DECL_TRUNCL.
27409         * modules/math (Makefile.am): Substitute also GNULIB_TRUNCL and
27410         HAVE_DECL_TRUNCL.
27411         * doc/functions/truncl.texi: Mention the 'truncl' module.
27412
27413 2007-10-04  Bruno Haible  <bruno@clisp.org>
27414
27415         * modules/truncf-tests: New file.
27416         * tests/test-truncf.c: New file.
27417
27418         * modules/truncf: New file.
27419         * lib/trunc.c: Make paramerizable through USE_* macros.
27420         * lib/truncf.c: New file.
27421         * m4/truncf.m4: New file.
27422         * lib/math.in.h (truncf): New declaration.
27423         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_TRUNCF and
27424         HAVE_DECL_TRUNCF.
27425         * modules/math (Makefile.am): Substitute also GNULIB_TRUNCF and
27426         HAVE_DECL_TRUNCF.
27427         * doc/functions/truncf.texi: Mention the 'truncf' module.
27428
27429 2007-10-03  Bruno Haible  <bruno@clisp.org>
27430
27431         * gnulib-tool (func_get_automake_snippet): Synthesize an EXTRA_DIST
27432         augmentation also for tests modules.
27433         * modules/argp-tests (Makefile.am): Remove EXTRA_DIST augmentation.
27434         * modules/atexit-tests (Makefile.am): Likewise.
27435         * modules/binary-io-tests (Makefile.am): Likewise.
27436         * modules/c-strcase-tests (Makefile.am): Likewise.
27437         * modules/canonicalize-lgpl-tests (Makefile.am): Likewise.
27438         * modules/canonicalize-tests (Makefile.am): Likewise.
27439         * modules/closein-tests (Makefile.am): Likewise.
27440         * modules/fprintf-posix-tests (Makefile.am): Likewise.
27441         * modules/freadahead-tests (Makefile.am): Likewise.
27442         * modules/fseek-tests (Makefile.am): Likewise.
27443         * modules/fseeko-tests (Makefile.am): Likewise.
27444         * modules/ftell-tests (Makefile.am): Likewise.
27445         * modules/ftello-tests (Makefile.am): Likewise.
27446         * modules/isnanl-nolibm-tests (Makefile.am): Likewise.
27447         * modules/isnanl-tests (Makefile.am): Likewise.
27448         * modules/lseek-tests (Makefile.am): Likewise.
27449         * modules/mbscasecmp-tests (Makefile.am): Likewise.
27450         * modules/mbscasestr-tests (Makefile.am): Likewise.
27451         * modules/mbschr-tests (Makefile.am): Likewise.
27452         * modules/mbscspn-tests (Makefile.am): Likewise.
27453         * modules/mbsncasecmp-tests (Makefile.am): Likewise.
27454         * modules/mbspbrk-tests (Makefile.am): Likewise.
27455         * modules/mbspcasecmp-tests (Makefile.am): Likewise.
27456         * modules/mbsrchr-tests (Makefile.am): Likewise.
27457         * modules/mbsspn-tests (Makefile.am): Likewise.
27458         * modules/mbsstr-tests (Makefile.am): Likewise.
27459         * modules/printf-posix-tests (Makefile.am): Likewise.
27460         * modules/snprintf-posix-tests (Makefile.am): Likewise.
27461         * modules/sprintf-posix-tests (Makefile.am): Likewise.
27462         * modules/tsearch-tests (Makefile.am): Likewise.
27463         * modules/uniname/uniname-tests (Makefile.am): Likewise.
27464         * modules/unistdio/u16-vasnprintf-tests (Makefile.am): Likewise.
27465         * modules/unistdio/u32-vasnprintf-tests (Makefile.am): Likewise.
27466         * modules/unistdio/u8-vasnprintf-tests (Makefile.am): Likewise.
27467         * modules/unistdio/ulc-vasnprintf-tests (Makefile.am): Likewise.
27468         * modules/vasnprintf-posix-tests (Makefile.am): Likewise.
27469         * modules/vfprintf-posix-tests (Makefile.am): Likewise.
27470         * modules/vprintf-posix-tests (Makefile.am): Likewise.
27471         * modules/vsnprintf-posix-tests (Makefile.am): Likewise.
27472         * modules/vsprintf-posix-tests (Makefile.am): Likewise.
27473         * modules/xstrtoimax-tests (Makefile.am): Likewise.
27474         * modules/xstrtol-tests (Makefile.am): Likewise.
27475         * modules/xstrtoumax-tests (Makefile.am): Likewise.
27476         * modules/yesno-tests (Makefile.am): Likewise.
27477
27478 2007-10-03  Bruno Haible  <bruno@clisp.org>
27479
27480         * modules/trunc-tests: New file.
27481         * tests/test-trunc.c: New file.
27482
27483         * modules/trunc: New file.
27484         * lib/trunc.c: New file.
27485         * m4/trunc.m4: New file.
27486         * lib/math.in.h (trunc): New declaration.
27487         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_TRUNC and
27488         HAVE_DECL_TRUNC.
27489         * modules/math (Makefile.am): Substitute also GNULIB_TRUNC and
27490         HAVE_DECL_TRUNC.
27491         * doc/functions/trunc.texi: Mention the 'trunc' module.
27492
27493 2007-10-03  Bruno Haible  <bruno@clisp.org>
27494
27495         * tests/test-fpending.c: New file, mostly copied
27496         from coreutils/lib/t-fpending.c.
27497         * modules/fpending-tests: New file.
27498
27499 2007-10-03  Bruno Haible  <bruno@clisp.org>
27500
27501         Port the stdio extensions to QNX (untested).
27502         * lib/fseterr.c (fseterr): Add support for QNX.
27503         * lib/fbufmode.c (fbufmode): Likewise.
27504         * lib/freadable.c (freadable): Likewise.
27505         * lib/fwritable.c (fwritable): Likewise.
27506         * lib/freading.c (freading): Likewise.
27507         * lib/fwriting.c (fwriting): Likewise.
27508         * lib/freadahead.c (freadahed): Likewise.
27509         * lib/fpurge.c (fpurge): Likewise.
27510         * lib/fseeko.c (rpl_fseeko): Likewise.
27511
27512 2007-10-03  Bruno Haible  <bruno@clisp.org>
27513             Jim Meyering  <jim@meyering.net>
27514             Eric Blake  <ebb9@byu.net>
27515
27516         * doc/relocatable.texi: Use @command instead of @program.
27517
27518 2007-10-02  Jim Meyering  <jim@meyering.net>
27519
27520         Perform one more "_.h" -> ".in.h" substitution.
27521         * modules/unistd (Makefile.am) [unistd.h]: Use unistd.h.in
27522         instead of unistd_.h here, too.
27523
27524 2007-10-01  Bruno Haible  <bruno@clisp.org>
27525
27526         * gnulib-tool (func_emit_initmacro_done): Special case for alloca.c.
27527         Needed for the alloca-opt module.
27528
27529 2007-09-30  Bruno Haible  <bruno@clisp.org>
27530
27531         * lib/alloca.in.h: Renamed from lib/alloca_.h.
27532         * modules/alloca-opt (Files, Makefile.am): Use alloca.in.h instead of
27533         alloca_.h.
27534         * lib/argz.in.h: Renamed from lib/argz_.h.
27535         * modules/argz (Files, Makefile.am): Use argz.in.h instead of argz_.h.
27536         * lib/byteswap.in.h: Renamed from lib/byteswap_.h.
27537         * modules/byteswap (Files, Makefile.am): Use byteswap.in.h instead of
27538         byteswap_.h.
27539         * lib/dirent.in.h: Renamed from lib/dirent_.h.
27540         * modules/fchdir (Files, Makefile.am): Use dirent.in.h instead of
27541         dirent_.h.
27542         * lib/fcntl.in.h: Renamed from lib/fcntl_.h.
27543         * modules/fcntl (Files, Makefile.am): Use fcntl.in.h instead of
27544         fcntl_.h.
27545         * lib/float.in.h: Renamed from lib/float_.h.
27546         * modules/float (Files, Makefile.am): Use float.in.h instead of
27547         float_.h.
27548         * lib/fnmatch.in.h: Renamed from lib/fnmatch_.h.
27549         * modules/fnmatch (Files, Makefile.am): Use fnmatch.in.h instead of
27550         fnmatch_.h.
27551         * lib/getopt.in.h: Renamed from lib/getopt_.h.
27552         * modules/getopt (Files, Makefile.am): Use getopt.in.h instead of
27553         getopt_.h.
27554         * lib/glob.in.h: Renamed from lib/glob_.h.
27555         * modules/glob (Files, Makefile.am): Use glob.in.h instead of glob_.h.
27556         * lib/iconv.in.h: Renamed from lib/iconv_.h.
27557         * modules/iconv_open (Files, Makefile.am): Use iconv.in.h instead of
27558         iconv_.h.
27559         * lib/inttypes.in.h: Renamed from lib/inttypes_.h.
27560         * modules/inttypes (Files, Makefile.am): Use inttypes.in.h instead of
27561         inttypes_.h.
27562         * lib/locale.in.h: Renamed from lib/locale_.h.
27563         * modules/locale (Files, Makefile.am): Use locale.in.h instead of
27564         locale_.h.
27565         * lib/math.in.h: Renamed from lib/math_.h.
27566         * modules/math (Files, Makefile.am): Use math.in.h instead of math_.h.
27567         * lib/netinet_in.in.h: Renamed from lib/netinet_in_.h.
27568         * modules/netinet_in (Files, Makefile.am): Use netinet_in.in.h instead
27569         of netinet_in_.h. Add dependency.
27570         * lib/poll.in.h: Renamed from lib/poll_.h.
27571         * modules/poll (Files, Makefile.am): Use poll.in.h instead of poll_.h.
27572         * lib/search.in.h: Renamed from lib/search_.h.
27573         * modules/search (Files, Makefile.am): Use search.in.h instead of
27574         search_.h.
27575         * lib/signal.in.h: Renamed from lib/signal_.h.
27576         * modules/signal (Files, Makefile.am): Use signal.in.h instead of
27577         _signal.h.
27578         * lib/stdbool.in.h: Renamed from lib/stdbool_.h.
27579         * modules/stdbool (Files, Makefile.am): Use stdbool.in.h instead of
27580         stdbool_.h.
27581         * lib/stdint.in.h: Renamed from lib/stdint_.h.
27582         * modules/stdint (Files, Makefile.am): Use stdint.in.h instead of
27583         stdint_.h.
27584         * lib/stdio.in.h: Renamed from lib/stdio_.h.
27585         * modules/stdio (Files, Makefile.am): Use stdio.in.h instead of
27586         stdio_.h.
27587         * lib/stdlib.in.h: Renamed from lib/stdlib_.h.
27588         * modules/stdlib (Files, Makefile.am): Use stdlib.in.h instead of
27589         stdlib_.h.
27590         * lib/string.in.h: Renamed from lib/string_.h.
27591         * modules/string (Files, Makefile.am): Use string.in.h instead of
27592         string_.h.
27593         * doc/gnulib-tool.texi (Initial import): Update.
27594         * lib/sys_select.in.h: Renamed from lib/sys_select_.h.
27595         * modules/sys_select (Files, Makefile.am): Use sys_select.in.h instead
27596         of sys_select_.h. Add dependency.
27597         * lib/sys_socket.in.h: Renamed from lib/sys_socket_.h.
27598         * modules/sys_socket (Files, Makefile.am): Use sys_socket.in.h instead
27599         of sys_socket_.h.
27600         * lib/sys_stat.in.h: Renamed from lib/sys_stat_.h.
27601         * modules/sys_stat (Files, Makefile.am): Use sys_stat.in.h instead of
27602         sys_stat_.h.
27603         * lib/sys_time.in.h: Renamed from lib/sys_time_.h.
27604         * modules/sys_time (Files, Makefile.am): Use sys_time.in.h instead of
27605         sys_time_.h.
27606         * lib/sysexits.in.h: Renamed from lib/sysexits_.h.
27607         * modules/sysexits (Files, Makefile.am): Use sysexits.in.h instead of
27608         sysexits_.h.
27609         * lib/time.in.h: Renamed from lib/time_.h.
27610         * modules/time (Files, Makefile.am): Use time.in.h instead of time_.h.
27611         * lib/unistd.in.h: Renamed from lib/unistd_.h.
27612         * modules/unistd (Files, Makefile.am): Use unistd.in.h instead of
27613         unistd_.h.
27614         * lib/wchar.in.h: Renamed from lib/wchar_.h.
27615         * modules/wchar (Files, Makefile.am): Use wchar.in.h instead of
27616         wchar_.h.
27617         * lib/wctype.in.h: Renamed from lib/wctype_.h.
27618         * modules/wctype (Files, Makefile.am): Use wctype.in.h instead of
27619         wctype_.h.
27620         * build-aux/bootstrap (slurp): Update.
27621         * lib/.cppi-disable: Update.
27622
27623 2007-09-30  Bruno Haible  <bruno@clisp.org>
27624
27625         * tests/test-getaddrinfo.c (AF_UNSPEC): Provide a fallback definition.
27626         Needed on BeOS.
27627
27628 2007-09-30  Bruno Haible  <bruno@clisp.org>
27629
27630         * modules/dirname-tests (check_PROGRAMS): Renamed from noinst_PROGRAMS.
27631
27632 2007-09-29  Bruno Haible  <bruno@clisp.org>
27633
27634         * lib/stdio_.h (getdelim, getline): Add identifiers. Doc tweak.
27635
27636 2007-09-29  Bruno Haible  <bruno@clisp.org>
27637
27638         * lib/xreadlink.c (xreadlink): Simplify to a wrapper around areadlink.
27639         * modules/xreadlink (Depends-on): Add areadlink, remove readlink etc.
27640         * build-aux/install-reloc: Compile also areadlink.c.
27641         * modules/relocatable-prog-wrapper (Files): Add lib/areadlink.[hc].
27642
27643 2007-09-29  Bruno Haible  <bruno@clisp.org>
27644
27645         * gnulib-tool (func_emit_initmacro_done): Indentation.
27646
27647 2007-09-29  Bruno Haible  <bruno@clisp.org>
27648
27649         * README: Add CVS checkout update instructions.
27650         Info from Bob Proulx <bob@proulx.com>.
27651
27652 2007-09-28  Eric Blake  <ebb9@byu.net>
27653
27654         Provide move-if-change.
27655         * build-aux/move-if-change: New file, based on best practice
27656         rather than any canonical upstream location.
27657
27658 2007-09-28  Jim Meyering  <jim@meyering.net>
27659
27660         Fix canonicalize loop-detection corner case.
27661         Do not attempt to stat the symlink values stored via seen_triple.
27662         Without this, coreutils' tests/misc/readlink-fp-loop test would fail
27663         on linux-2.6.18, (but not 2.6.22).
27664         * lib/canonicalize.c (seen_triple): Use triple_compare_ino_str, not
27665         triple_compare.  The former compares dev,ino,filename, while the latter
27666         would actually stat dirname(filename) when dev and ino were equal.
27667         * lib/hash-triple.c: Install <string.h>.
27668         (STREQ): Define.
27669         (triple_compare_ino_str): New function.
27670         * lib/hash-triple.h (triple_compare_ino_str): Declare it.
27671
27672 2007-09-28  Eric Blake  <ebb9@byu.net>
27673
27674         Enforce that AC_REPLACE_FUNCS files exist.
27675         * gnulib-tool (func_emit_initmacro_done): Make AC_LIBSOURCES
27676         override check for typos.
27677
27678         Fix test-closein on Solaris 10.
27679         * tests/test-closein.c (main): Don't assume stdin can be inherited
27680         closed on all systems.
27681         * tests/test-closein.sh: Likewise.
27682         Reported by Piotr Tarnowski.
27683
27684 2007-09-28  Jim Meyering  <jim@meyering.net>
27685
27686         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Fix typo in comment.
27687
27688 2007-09-27  Jim Meyering  <jim@meyering.net>
27689
27690         canonicalize: Avoid a false-positive cycle failure.
27691         * modules/canonicalize (Depends-on): Add file-set and hash-triple.
27692         Sort.  Remove cycle-check.
27693         * lib/canonicalize.c: Include file-set.h and hash-triple.h,
27694         not cycle-check.h.
27695         (seen_triple): New function.
27696         (canonicalize_filename_mode): Use it instead of cycle-check.
27697         * tests/test-canonicalize.c: Add a test for this bug.
27698         * tests/test-canonicalize.sh: Set up and run the test.
27699
27700         New module, file-set, from coreutils.
27701         * modules/file-set: Define it.
27702         * lib/file-set.c, lib/file-set.h: Implement.
27703
27704         New module, hash-triple, from coreutils.
27705         * modules/hash-triple: Define it.
27706         * lib/hash-triple.c, lib/hash-triple.h: Implement.
27707
27708 2007-09-25  Eric Blake  <ebb9@byu.net>
27709
27710         Fix strerror on Interix.
27711         * lib/string_.h (strerror): Declare replacement.
27712         * doc/functions/strerror.texi (strerror): Document the Interix
27713         shortcoming.
27714         * modules/string (Makefile.am): Support new hooks.
27715         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Add new hooks.
27716         * m4/strerror.m4 (gl_FUNC_STRERROR): Defer to
27717         gl_FUNC_STRERROR_SEPARATE.
27718         (gl_FUNC_STRERROR_SEPARATE): Check for Interix bug.
27719         * lib/strerror.c (rpl_strerror): Provide replacement.
27720         * modules/strerror (Depends-on): Add string.
27721         (configure.ac): Detect use of module.
27722         * tests/test-strerror.c: New file.
27723         * modules/strerror-tests: New test module.
27724         * modules/argp (Depends-on): Add strerror.
27725         * modules/error (Depends-on): Likewise.
27726         Reported by Martin Koeppe.
27727
27728 2007-09-24  Bruno Haible  <bruno@clisp.org>
27729
27730         * README: Update git instructions.
27731
27732 2007-09-24  Eric Blake  <ebb9@byu.net>
27733
27734         Revert fpending breakage from 2007-09-08.
27735         * m4/fpending.m4 (gl_FUNC_FPENDING): Don't require existence of
27736         __fpending.c.
27737
27738 2007-09-24  Jim Meyering  <jim@meyering.net>
27739
27740         filenamecat.c: Add a test.
27741         * lib/filenamecat.c (main) [TEST_FILE_NAME_CONCAT]: Add a test
27742         showing how the function works when DIR is the empty string.
27743
27744 2007-09-21  Simon Josefsson  <simon@josefsson.org>
27745
27746         * tests/test-canonicalize.sh: Turn on executable bit.
27747
27748 2007-09-19  Eric Blake  <ebb9@byu.net>
27749
27750         * README: Update CVS instructions.
27751
27752 2007-09-18  Bruno Haible  <bruno@clisp.org>
27753
27754         * modules/areadlink: New file.
27755         * lib/areadlink.h (areadlink): New declaration.
27756         * lib/areadlink.c: New file, based on lib/xreadlink.c.
27757
27758 2007-09-17  Jim Meyering  <jim@meyering.net>
27759
27760         * lib/savewd.c (ESTALE) [!defined]: Define.
27761         Reported to be required on Interix by Martin Koeppe.
27762
27763 2007-09-17  Bruno Haible  <bruno@clisp.org>
27764
27765         * gnulib-tool (func_version): Use $version.
27766
27767 2007-09-16  Bruno Haible  <bruno@clisp.org>
27768
27769         * m4/printf.m4 (gl_PRINTF_LONG_DOUBLE, gl_PRINTF_INFINITE,
27770         gl_PRINTF_INFINITE_LONG_DOUBLE): Increase buf's size from 100 to 10000.
27771         Needed on glibc-2.6.1 with -fstack-protector -D_FORTIFY_SOURCE=2.
27772         Reported by Greg Schafer <gschafer@zip.com.au>.
27773
27774 2007-09-15  Bruno Haible  <bruno@clisp.org>
27775
27776         * gnulib-tool (sed): Try a little harder to make bash understand the
27777         alias.
27778         Reported by Bruce Korb <bruce.korb@gmail.com>.
27779
27780 2007-09-13  Eric Blake  <ebb9@byu.net>
27781
27782         * ChangeLog: Remove conflict markers.
27783
27784 2007-09-13  Simon Josefsson  <simon@josefsson.org>
27785
27786         * lib/gc-gnulib.c (gc_hash_open): Catch NULL calloc return value.
27787         Reported by Bruno Haible <bruno@clisp.org>.
27788
27789 2007-09-12  Bruno Haible  <bruno@clisp.org>
27790
27791         * m4/lock.m4: Don't provide an AC_USE_SYSTEM_EXTENSIONS definition.
27792         (gl_LOCK_EARLY_BODY): Use AC_GNU_SOURCE when AC_USE_SYSTEM_EXTENSIONS
27793         is not defined.
27794
27795 2007-09-12  Eric Blake  <ebb9@byu.net>
27796
27797         Track CVS Autoconf on AC_USE_SYSTEM_EXTENSIONS.
27798         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS): Update to CVS
27799         Autoconf definition.
27800         * modules/euidaccess (Depends-on): Add extensions, for
27801         AC_USE_SYSTEM_EXTENSIONS with autoconf <= 2.59.
27802         * modules/fnmatch (Depends-on): Likewise.
27803         * modules/getaddrinfo (Depends-on): Likewise.
27804         * modules/getdelim (Depends-on): Likewise.
27805         * modules/getline (Depends-on): Likewise.
27806         * modules/getsubopt (Depends-on): Likewise.
27807         * modules/gettext (Depends-on): Likewise.
27808         * modules/group-member (Depends-on): Likewise.
27809         * modules/mbchar (Depends-on): Likewise.
27810         * modules/memmem (Depends-on): Likewise.
27811         * modules/mempcpy (Depends-on): Likewise.
27812         * modules/memrchr (Depends-on): Likewise.
27813         * modules/pagealign_alloc (Depends-on): Likewise.
27814         * modules/readutmp (Depends-on): Likewise.
27815         * modules/stpcpy (Depends-on): Likewise.
27816         * modules/stpncpy (Depends-on): Likewise.
27817         * modules/strchrnul (Depends-on): Likewise.
27818         * modules/strndup (Depends-on): Likewise.
27819         * modules/strsep (Depends-on): Likewise.
27820         * modules/strverscmp (Depends-on): Likewise.
27821         * modules/vasprintf (Depends-on): Likewise.
27822         * modules/wcwidth (Depends-on): Likewise.
27823         * m4/euidaccess.m4 (gl_FUNC_EUIDACCESS): AC_GNU_SOURCE will be
27824         obsolete in Autoconf 2.62; use AC_USE_SYSTEM_EXTENSIONS instead.
27825         * m4/fnmatch.m4 (gl_FUNC_FNMATCH_GNU): Likewise.
27826         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDR_INFO): Likewise.
27827         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Likewise.
27828         * m4/getline.m4 (gl_FUNC_GETLINE): Likewise.
27829         * m4/getsubopt.m4 (gl_FUNC_GETSUBOPT): Likewise.
27830         * m4/glob.m4 (gl_PREREQ_GLOB): Likewise.
27831         * m4/group-member.m4 (gl_FUNC_GROUP_MEMBER): Likewise.
27832         * m4/mbchar.m4 (gl_MBCHAR): Likewise.
27833         * m4/memmem.m4 (gl_FUNC_MEMMEM): Likewise.
27834         * m4/mempcpy.m4 (gl_FUNC_MEMPCPY): Likewise.
27835         * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Likewise.
27836         * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Likewise.
27837         * m4/pagealign_alloc.m4 (gl_PAGEALIGN_ALLOC): Likewise.
27838         * m4/readutmp.m4 (gl_READUTMP): Likewise.
27839         * m4/regex.m4 (gl_PREREQ_REGEX): Likewise.
27840         * m4/stpcpy.m4 (gl_FUNC_STPCPY): Likewise.
27841         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Likewise.
27842         * m4/strchrnul.m4 (gl_FUNC_STRCHRNUL): Likewise.
27843         * m4/strndup.m4 (gl_FUNC_STRNDUP): Likewise.
27844         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Likewise.
27845         * m4/strsep.m4 (gl_FUNC_STRSEP): Likewise.
27846         * m4/strverscmp.m4 (gl_FUNC_STRVERSCMP): Likewise.
27847         * m4/vasprintf.m4 (gl_PREREQ_VASPRINTF_H): Likewise.
27848         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Likewise.
27849         * m4/lock.m4 (gl_LOCK_EARLY_BODY): Likewise, but provide fallback,
27850         so that lock.m4 can be used in gettext without extensions module.
27851
27852 2007-09-11  Bruno Haible  <bruno@clisp.org>
27853
27854         * m4/isc-posix.m4: Remove file.
27855         Suggested by Eric Blake.
27856
27857 2007-09-11  Eric Blake  <ebb9@byu.net>
27858
27859         * ChangeLog: Restore lines accidentally truncated 2007-04-06.
27860
27861 2007-09-10  Bruno Haible  <bruno@clisp.org>
27862
27863         * posix-modules: Fix typo in error message.
27864         Reported by Matt <mkraai@beckman.com>.
27865
27866 2007-09-09  Bruno Haible  <bruno@clisp.org>
27867
27868         * doc/functions/getdelim.texi: Update list of platforms lacking the
27869         function.
27870         * doc/functions/getline.texi: Likewise.
27871
27872 2007-09-09  Jim Meyering  <jim@meyering.net>
27873
27874         * lib/hash.c (hash_initialize): Detect calloc failure.
27875         Reported by Bruno Haible.
27876
27877 2007-09-09  Bruno Haible  <bruno@clisp.org>
27878
27879         * lib/canonicalize-lgpl.c (__realpath): Set errno to ENOMEM when
27880         malloc or realloc fails.
27881
27882 2007-09-09  Bruno Haible  <bruno@clisp.org>
27883
27884         * modules/getcwd (Depends-on): Add malloc-posix.
27885         * modules/glob (Depends-on): Likewise.
27886         * modules/putenv (Depends-on): Likewise.
27887         * modules/strdup (Depends-on): Likewise.
27888         * modules/getdelim (Depends-on): Add realloc-posix.
27889         * modules/read-file (Depends-on): Likewise.
27890
27891 2007-09-09  Bruno Haible  <bruno@clisp.org>
27892
27893         * m4/malloc.m4 (gl_CHECK_MALLOC_POSIX): New macro.
27894         (gl_FUNC_MALLOC_POSIX): Require it.
27895         * m4/realloc.m4 (gl_FUNC_REALLOC_POSIX): Likewise.
27896         * m4/calloc.m4 (gl_FUNC_CALLOC_POSIX): Likewise.
27897         * modules/realloc (Files): Add m4/malloc.m4.
27898         * modules/calloc (Files): Likewise.
27899
27900 2007-09-09  Bruno Haible  <bruno@clisp.org>
27901
27902         * modules/malloc-posix: New file.
27903         * modules/malloc (Depends-on): Add malloc-posix.
27904         * lib/malloc.c: Include errno.h.
27905         (rpl_malloc): Merge the requirements of a glibc-compatible malloc
27906         and a POSIX-compatible malloc into a single function. Set ENOMEM
27907         when returning NULL.
27908         * m4/malloc.m4: New file.
27909         * doc/functions/malloc.texi: Mention the malloc-posix module.
27910         * lib/stdlib_.h (malloc): New declaration.
27911         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize
27912         GNULIB_MALLOC_POSIX and HAVE_MALLOC_POSIX.
27913         * modules/stdlib (stdlib.h): Substitute also GNULIB_MALLOC_POSIX
27914         and HAVE_MALLOC_POSIX.
27915
27916 2007-09-09  Bruno Haible  <bruno@clisp.org>
27917
27918         * modules/realloc-posix: New file.
27919         * modules/realloc (Depends-on): Add realloc-posix.
27920         * lib/realloc.c: Include errno.h.
27921         (rpl_realloc): Merge the requirements of a glibc-compatible realloc
27922         and a POSIX-compatible realloc into a single function. Set ENOMEM
27923         when returning NULL.
27924         * m4/realloc.m4: New file.
27925         * doc/functions/realloc.texi: Mention the realloc-posix module.
27926         * lib/stdlib_.h (realloc): New declaration.
27927         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize
27928         GNULIB_REALLOC_POSIX and HAVE_REALLOC_POSIX.
27929         * modules/stdlib (stdlib.h): Substitute also GNULIB_REALLOC_POSIX
27930         and HAVE_REALLOC_POSIX.
27931
27932 2007-09-09  Bruno Haible  <bruno@clisp.org>
27933
27934         * modules/calloc-posix: New file.
27935         * modules/calloc (Depends-on): Add calloc-posix.
27936         * lib/calloc.c: Include errno.h.
27937         (rpl_calloc): Merge the requirements of a glibc-compatible calloc
27938         and a POSIX-compatible calloc into a single function. Set ENOMEM
27939         when returning NULL.
27940         * m4/calloc.m4 (gl_FUNC_CALLOC_POSIX): New macro.
27941         * doc/functions/calloc.texi: Mention the calloc-posix module.
27942         * lib/stdlib_.h (calloc): New declaration.
27943         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize
27944         GNULIB_CALLOC_POSIX and HAVE_CALLOC_POSIX.
27945         * modules/stdlib (stdlib.h): Substitute also GNULIB_CALLOC_POSIX
27946         and HAVE_CALLOC_POSIX.
27947
27948 2007-09-09  Bruno Haible  <bruno@clisp.org>
27949
27950         Allow for modules to show an arbitrary notice.
27951         * modules/TEMPLATE-EXTENDED: Add 'Notice' field.
27952         * gnulib-tool: New option --extract-notice.
27953         (func_usage): Document it.
27954         (sed_extract_prog): Update.
27955         (func_get_notice): New function.
27956         (func_modules_notice): New function.
27957         (func_import, func_create_testdir): Invoke it.
27958         Suggested by Jim Meyering.
27959
27960 2007-09-09  Bruno Haible  <bruno@clisp.org>
27961
27962         * gnulib-tool: New options --verbose, --quiet.
27963         (func_usage): Document them.
27964         (verbose): New variable.
27965         (func_execute_command): New function.
27966         (func_import): Don't show the module list and the file list if
27967         $verbose < 0.
27968         (func_create_testdir): Likewise. Use func_execute_command.
27969         (func_create_megatestdir): Use func_execute_command.
27970
27971 2007-09-08  Bruno Haible  <bruno@clisp.org>
27972
27973         * gnulib-tool (func_import): Prefer rsync over wget when available,
27974         for fetching the PO files.
27975
27976 2007-09-08  Bruno Haible  <bruno@clisp.org>
27977
27978         * posix-modules: New file. Portions copied from gnulib-tool.
27979         * doc/gnulib.texi (POSIX Substitutes Library): New chapter.
27980
27981 2007-09-08  Jim Meyering  <jim@meyering.net>
27982
27983         Rename __fpending.c -> fpending.c and __fpending.h -> fpending.h
27984         * lib/fpending.h: Rename from __fpending.h.
27985         * lib/fpending.c: Rename from __fpending.c.
27986         Include "fpending.h", not "__fpending.h".
27987         * lib/__fpending.h, lib/__fpending.c: Remove files.
27988         * modules/fpending (Files): Reflect new file names.
27989         * lib/close-stream.c: Include "fpending.h", not "__fpending.h".
27990
27991 2007-09-08  Bruno Haible  <bruno@clisp.org>
27992
27993         * m4/inttypes-h.m4: Remove stub file.
27994
27995 2007-09-07  Simon Josefsson  <simon@josefsson.org>
27996
27997         * doc/headers/stdint.texi: Discuss #include_next issue.
27998
27999 2007-09-06  Paul Eggert  <eggert@cs.ucla.edu>
28000
28001         * build-aux/bootstrap: Remove obsolete comment about wget --help.
28002
28003 2007-09-06  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
28004
28005         * m4/time_h.m4 (gl_CHECK_TYPE_STRUCT_TIMESPEC): Fix misspelling
28006         in variable name.
28007
28008 2007-09-03  Jim Meyering  <jim@meyering.net>
28009
28010         New module: git-version-gen.
28011         * modules/git-version-gen: New file.
28012
28013         Import changes from coreutils for bootstrap script.
28014
28015         * build-aux/bootstrap (WGET_COMMAND): Remove code to set this variable.
28016
28017         bootstrap: uses rsync to download the .po files
28018         * build-aux/bootstrap (po_download_command_format): New global.
28019         (download_po_files): Use rsync.
28020         (update_po_files): Don't remove .po files after download,
28021         so future rsync runs can take advantage of the copies.
28022
28023         * build-aux/bootstrap (gnulib_tool): Make sha1sum check quietly.
28024
28025         Solve the unnecessary-.po-file-regeneration problem once and for all.
28026         * build-aux/bootstrap (download_po_files): New function, renamed from
28027         get_translations.  Now, downloads, but doesn't update LINGUAS.
28028         (update_po_files): New function.
28029
28030         bootstrap: Ignore more.
28031         * build-aux/bootstrap (symlink_to_dir): Add a directory name like
28032         uniwidth to e.g., lib/.gitignore.
28033         (slurp): Handle the sys_stat_.h -> sys mapping, too.
28034
28035         * build-aux/bootstrap: New setting: vc_ignore.
28036         (insert_sorted_if_absent): Create $file if absent.
28037         Adapt to new, possibly empty, list: $vc_ignore.
28038
28039         bootstrap: generate more ignorable names
28040         * build-aux/bootstrap (slurp): When generating ignorable names,
28041         also map .sin to .sed, .gperf to .c, and .y to .c.
28042
28043 2007-09-03  Jim Meyering  <jim@meyering.net>
28044
28045         * build-aux/git-version-gen: New file, from coreutils.  For details, see
28046         http://git.sv.gnu.org/gitweb/?p=coreutils.git;a=commitdiff;h=bfe49f506
28047
28048 2007-09-02  Bruno Haible  <bruno@clisp.org>
28049
28050         Fix mis-recognition of 'mcs' on QNX 6.
28051         * m4/csharpcomp.m4 (gt_CSHARPCOMP): Test whether the "mcs --version"
28052         output contains the string "Mono".
28053         * lib/csharpcomp.c (compile_csharp_using_mono): Likewise.
28054         Reported by <kraai@ftbfs.org> at <https://savannah.gnu.org/bugs/?18337>.
28055
28056 2007-09-01  Bruno Haible  <bruno@clisp.org>
28057
28058         Fix collision between uniwidth/* and linebreak modules.
28059         * lib/linebreak.h (locale_charset, uc_width, u8_width, u16_width,
28060         u32_width): Remove declarations.
28061         * lib/linebreak.c: Include uniwidth.h, uniwidth/cjk.h, streq.h.
28062         (u32_mbtouc_unsafe, streq9, streq8, streq7, streq6, streq5, streq4,
28063         streq3, streq2, streq1, streq0): Remove functions.
28064         (STREQ): Remove macro.
28065         (is_cjk_encoding): Remove function.
28066         (nonspacing_table_data, nonspacing_table_ind): Remove constants.
28067         (uc_width, u8_width, u16_width, u32_width): Remove functions.
28068         * modules/linebreak (Depends-on): Add streq, uniwidth/width.
28069         * NEWS: Document the change.
28070
28071 2007-09-01  Bruno Haible  <bruno@clisp.org>
28072
28073         * lib/streq.h: Add double-inclusion guard.
28074
28075 2007-09-01  Karl Berry  <karl@gnu.org>
28076
28077         * MODULES.html.sh: Rename mreadlink_with_size to areadlink_with_size.
28078
28079 2007-08-28  Jim Meyering  <jim@meyering.net>
28080
28081         Rename mreadlink_with_size to areadlink_with_size.
28082         * NEWS: Document the change.
28083         * lib/mreadlink-with-size.c (mreadlink_with_size): Rename this to...
28084         * lib/areadlink-with-size.c (areadlink_with_size): ...this.
28085         * lib/mreadlink.h: Rename this to...
28086         * lib/areadlink.h: ...this.
28087         * modules/mreadlink-with-size: Rename this to...
28088         * modules/areadlink-with-size: ...this.
28089         * lib/canonicalize.c: Reflect the renaming.
28090         * modules/canonicalize: Likewise.
28091
28092 2007-08-26  Bruno Haible  <bruno@clisp.org>
28093
28094         * gnulib-tool (func_import): When deciding which files to remove,
28095         consider also dangling symbolic links.
28096         Reported by Eric Blake.
28097
28098 2007-08-26  Bruno Haible  <bruno@clisp.org>
28099
28100         * gnulib-tool (func_ln_if_changed): Use "test -h", not "test -L".
28101
28102 2007-08-23  Simon Josefsson  <simon@josefsson.org>
28103
28104         * lib/readline.c: Don't include getline.h, the prototype is now
28105         found in stdio.h.
28106
28107 2007-08-23  Jim Meyering  <jim@meyering.net>
28108
28109         Getdelim touchup.
28110         * lib/getdelim.c (getdelim): Don't bother to save/restore errno
28111         around the funlockfile call, since funlockfile never sets errno.
28112         Don't set errno upon failed realloc.
28113
28114 2007-08-22  Eric Blake  <ebb9@byu.net>
28115
28116         Getline touchups.
28117         * lib/getdelim.c (getdelim): Revert regression that required *n to
28118         be 0 when *lineptr is NULL.  Preserve errno across funlockfile.
28119         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Check for declaration of
28120         getdelim, rather than whether implementation is missing.
28121         * m4/getline.m4 (gl_FUNC_GETLINE): Likewise for getline.
28122         * lib/stdio_.h (getline): Also declare if replacement is
28123         required.
28124         * doc/functions/getdelim.texi: New file.
28125         * doc/functions/getline.texi: Likewise.
28126         * doc/gnulib.texi (Function Substitutes): Add new files.
28127         Reported by Bruno Haible.
28128
28129 2007-08-22  Ludovic Courtès  <ludo@gnu.org>
28130
28131         * users.txt: Add Guile.
28132
28133 2007-08-22  Eric Blake  <ebb9@byu.net>
28134
28135         * tests/test-getdelim.c (main): Use remove, not unlink.
28136         * tests/test-getline.c (main): Likewise.
28137
28138         Move getline and getdelim into stdio.h, per POSIX 200x.
28139         * modules/getline (Files): Remove getline.h.
28140         (Depends-on): Add stdio.
28141         (configure.ac): Add module indicator.
28142         * modules/getdelim (Files): Remove getdelim.h.
28143         (Depends-on): Add stdio.
28144         (configure.ac): Add module indicator.
28145         * modules/stdio (Makefile.am): Work with new indicators.
28146         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Add new defaults.
28147         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Work with stdio needs.
28148         * m4/getline.m4 (gl_FUNC_GETLINE): Likewise.
28149         * lib/getdelim.h: Delete.
28150         * lib/getline.h: Delete.
28151         * lib/stdio_.h (getdelim, getline): Declare.
28152         * modules/getdelim-tests: New module.
28153         * modules/getline-tests: Likewise.
28154         * tests/test-getdelim.c: New file.
28155         * tests/test-getline.c: Likewise.
28156         * NEWS: Document the change.
28157         * lib/getline.c: Update choice of header.
28158         * lib/csharpcomp.c: Likewise.
28159         * lib/getpass.c: Likewise.
28160         * lib/javacomp.c: Likewise.
28161         * lib/javaversion.c: Likewise.
28162         * lib/yesno.c: Likewise.
28163         * lib/getdelim.c: Likewise.
28164         (getdelim): Set errno on failure, and avoid memory leak.
28165
28166 2007-08-19  Bruno Haible  <bruno@clisp.org>
28167
28168         * modules/closein (Depends-on): Add freadahead.
28169         * lib/closein.c: Include freadahead.h.
28170         (close_stdin): Skip the fseeko and fflush calls if freadahead(stdin)
28171         is zero.
28172
28173 2007-08-19  Bruno Haible  <bruno@clisp.org>
28174
28175         * modules/freadahead-tests: New file.
28176         * tests/test-freadahead.sh: New file.
28177         * tests/test-freadahead.c: New file.
28178
28179         * modules/freadahead: New file.
28180         * lib/freadahead.h: New file.
28181         * lib/freadahead.c: New file.
28182         * MODULES.html.sh (File stream based Input/Output): Add freadahead,
28183         fbufmode, fpurge, freadable, fwritable.
28184
28185 2007-08-19  Eric Blake  <ebb9@byu.net>
28186
28187         Test yesno in combination with closein.
28188         * lib/yesno.c (yesno): Document use of stdin.
28189         * modules/yesno-tests (Files): New module.
28190         * tests/test-yesno.c (main): New file.
28191         * tests/test-yesno.sh: Likewise.
28192
28193 2007-08-19  Bruno Haible  <bruno@clisp.org>
28194
28195         * lib/fbufmode.c (fbufmode): Add tentative support for Solaris/AMD64.
28196         * lib/fseeko.c (rpl_fseeko): Likewise.
28197         * lib/fseterr.c (fseterr): Likewise.
28198
28199 2007-08-19  Bruno Haible  <bruno@clisp.org>
28200
28201         * tests/test-lseek.c (main): Disable a test for BeOS.
28202         * doc/functions/lseek.texi: Document the BeOS bug.
28203
28204 2007-08-19  Bruno Haible  <bruno@clisp.org>
28205             Eric Blake  <ebb9@byu.net>
28206
28207         * lib/lseek.c: Include <sys/stat.h>.
28208         (rpl_lseek): Add workaround code also for Unix platforms.
28209         Needed for BeOS.
28210         * m4/lseek.m4 (gl_FUNC_LSEEK): When cross-compiling, fail on BeOS.
28211         * doc/functions/lseek.texi: Document BeOS definiency.
28212
28213 2007-08-18  Bruno Haible  <bruno@clisp.org>
28214
28215         * modules/fstrcmp-tests: New file.
28216         * tests/test-fstrcmp.c: New file.
28217
28218 2007-08-18  Bruno Haible  <bruno@clisp.org>
28219
28220         * modules/fstrcmp: New file, from GNU gettext with modifications.
28221         * lib/fstrcmp.h: New file, from GNU gettext.
28222         * lib/fstrcmp.c: New file, from GNU gettext.
28223         * MODULES.html.sh (String handling): Add fstrcmp.
28224
28225 2007-08-18  Bruno Haible  <bruno@clisp.org>
28226
28227         * lib/diffseq.h (struct context): Change type of 'heuristic' field to
28228         'bool'.
28229         (diag, compareseq): Remove const from the ctxt argument.
28230         (USE_HEURISTIC): Undefine at the end.
28231
28232 2007-08-18  Jim Meyering  <jim@meyering.net>
28233
28234         New file: lib/idcache.h
28235         * NEWS: Mention the addition.
28236         * modules/idcache (Files): Add lib/idcache.h
28237         * lib/idcache.c: Include "idcache.h".
28238         Don't include <sys/types.h>.
28239         Add a FIXME comment.
28240         Move file-scoped "static" declarations to the top.
28241         * lib/idcache.h: New file.  Include <sys/types.h> here, instead.
28242
28243 2007-08-17  Bruno Haible  <bruno@clisp.org>
28244         and Paul Eggert  <eggert@cs.ucla.edu>
28245
28246         * MODULES.html.sh: Add diffseq.
28247         * modules/diffseq: New file.
28248         * lib/diffseq.h: New file, from GNU gettext with a few minor changes,
28249         extracted from GNU gettext's fstrcmp.c and GNU diff's analyze.c.
28250
28251 2007-08-15  Paul Eggert  <eggert@cs.ucla.edu>
28252
28253         Import changes from coreutils for bootstrap script.
28254
28255         2007-07-21  Paul Eggert  <eggert@cs.ucla.edu>
28256
28257         * build-aux/bootstrap (slurp): Work even in environments where
28258         "ls" defaults to "ls -A".  Put in a FIXME, though, since the
28259         current code does not slurp files whose names start with ".", and
28260         this looks like it might be a troublesome area.
28261
28262         2007-07-11  Jim Meyering  <jim@meyering.net>
28263
28264         If there's a GPL vN copyright comment, require that N == 3.
28265
28266         2007-07-08  Jim Meyering  <jim@meyering.net>
28267
28268         Run the coreutils-specific code only if tests/Makefile.am.in exists.
28269         * build-aux/bootstrap (mam_template): Move definition out of loop.
28270
28271         Create symlinks for gl/{lib,m4}/*, just as for gnulib/{lib,m4}/*.
28272
28273         * build-aux/bootstrap (symlink_to_dir): Rename function from
28274         symlink_to_gnulib.  Add a directory parameter.  Update all
28275         callers.
28276         (cp_mark_as_generated): Also check for -- and link to -- files in
28277         gl/.
28278
28279         2007-07-08  Jim Meyering  <jim@meyering.net>
28280
28281         Adapt to deeper hierarchy in gnulib.
28282         * build-aux/bootstrap (symlink_to_dir): If the destination
28283         directory doesn't exist, create it. This is required at least for
28284         "lib/uniwidth/cjk.h".
28285
28286         2007-05-15  Jim Meyering  <jim@meyering.net>
28287
28288         * build-aux/bootstrap: Now that generated Makefile.am files
28289         are no longer under version control, they must be created at
28290         bootstrap time.
28291
28292 2007-08-14  Ben Pfaff  <blp@gnu.org>
28293
28294         * lib/count-one-bits.h: Add comments.  From Bruno Haible.
28295
28296 2007-08-14  Paul Eggert  <eggert@cs.ucla.edu>
28297
28298         * lib/count-one-bits.h: Don't include <limits.h>; no longer needed
28299         given the changes below.
28300         (COUNT_ONE_BITS): Use 'verify' rather than 'verify_true'.  Work
28301         even on hosts that have padding bits beyond the supported 64.
28302
28303 2007-08-10  Paul Eggert  <eggert@cs.ucla.edu>
28304
28305         * NEWS: In xstrtol, remove STRTOL_FATAL_ERROR and add xstrtol_fatal.
28306         * lib/xstrtol.h: Don't include exitfail.h; that's now internal to
28307         xstrtol.c.  Include getopt.h, since xstrtol_fatal's signature
28308         depends on it.
28309         (xstrtol_error): Remove.
28310         (xstrtol_fatal): New decl, replacing the functionality of xstrtol_error
28311         but with a different signature.
28312         (ATTRIBUTE_NORETURN, __attribute__): New macros.
28313         * lib/xstrtol-error.c: Include exitfail.h.
28314         (xstrtol_fatal): New function, with a different signature from the
28315         old xstrtol_error, so that the caller need not worry about passing
28316         in an exit status, or about storage management of the option argument.
28317         (xstrtol_error): Now a static function.  Redo signature to
28318         implement xstrtol_fatal.  Output the correct number of hyphens in
28319         front of the option so that the caller need not worry about
28320         storage management.
28321         (N_): New macro.
28322         (_): Remove; not used now.
28323         * modules/xstrtol: Depend on getopt.
28324         * tests/test-xstrtol.c (main): Use new xstrtol_error function instead
28325         of old STRTOL_FATAL_ERROR macro.
28326         * tests/test-xstrtol.sh (t-xstrtol.xo): Adjust to match new behavior
28327         of test program.
28328         * tests/test-xstrtoimax.sh (t-xstrtoimax.xo): Likewise.
28329         * tests/test-xstrtoumax.sh (t-xstrtoumax.xo): Likewise.
28330
28331 2007-08-08  Eric Blake  <ebb9@byu.net>
28332
28333         * lib/xstrtol-error.c: Add missing include.
28334
28335         Move xstrtol messages into gnulib domain, when --pobase is used.
28336         * lib/xstrtol.h (_STRTOL_ERROR): Move messages out of macro...
28337         * lib/xstrtol-error.c (xstrtol_error): ...into new file.
28338         * modules/xstrtol (Files): Distribute new file.
28339         * m4/xstrtol.m4 (gl_XSTRTOL): Build new file.
28340         * lib/xstrtol.c (TESTING_XSTRTO): Move tests...
28341         * tests/test-xstrtol.c: ...into new file.
28342         * tests/test-xstrtoul.c: Also test xstrtoul.
28343         * tests/test-xstrtoimax.c: Also test xstrtoimax.
28344         * tests/test-xstrtoumax.c: Also test xstrtoumax.
28345         * tests/test-xstrtol.sh: Drive the tests.
28346         * tests/test-xstrtoimax.sh: Likewise.
28347         * tests/test-xstrtoumax.sh: Likewise.
28348         * modules/xstrtol-tests: New module.
28349         * modules/xstrtoimax-tests: Likewise.
28350         * modules/xstrtoumax-tests: Likewise.
28351
28352 2007-08-08  Jim Meyering  <jim@meyering.net>
28353
28354         New function: mfile_name_concat.
28355         * lib/filenamecat.c (mfile_name_concat): New function, just like
28356         file_name_concat, but return NULL upon failure rather than exiting
28357         with a diagnostic.
28358         * lib/filenamecat.h: Declare it.
28359
28360 2007-08-07  Bruno Haible  <bruno@clisp.org>
28361
28362         * m4/inttypes.m4 (gl_INTTYPES_H): Use GL_TRIGGER_STDC_LIMIT_MACROS
28363         instead of __STDC_LIMIT_MACROS_TRIGGER. This avoids a redefinition
28364         warning from gcc.
28365         Reported by Eric Blake.
28366
28367 2007-08-07  Simon Josefsson  <simon@josefsson.org>
28368
28369         * modules/crypto/arctwo (License): Use the synonymous term "LGPLv2+".
28370         * modules/crypto/arcfour (License): Likewise.
28371         * modules/crypto/des-tests (License): Likewise.
28372         * modules/crypto/gc-arctwo-tests (License): Likewise.
28373         * modules/crypto/gc-des-tests (License): Likewise.
28374         * modules/crypto/gc-hmac-md5-tests (License): Likewise.
28375         * modules/crypto/gc-hmac-sha1-tests (License): Likewise.
28376         * modules/crypto/gc-md2-tests (License): Likewise.
28377         * modules/crypto/gc-md4-tests (License): Likewise.
28378         * modules/crypto/gc-md5-tests (License): Likewise.
28379         * modules/crypto/gc-pbkdf2-sha1-tests (License): Likewise.
28380         * modules/crypto/gc-rijndael-tests (License): Likewise.
28381         * modules/crypto/gc-sha1-tests (License): Likewise.
28382         * modules/crypto/gc-tests (License): Likewise.
28383         * modules/crypto/hmac-md5 (License): Likewise.
28384         * modules/crypto/hmac-sha1 (License): Likewise.
28385         * modules/crypto/md2-tests (License): Likewise.
28386         * modules/crypto/md4-tests (License): Likewise.
28387         * modules/crypto/md5 (License): Likewise.
28388         * modules/crypto/rijndael (License): Likewise.
28389         * modules/crypto/sha1 (License): Likewise.
28390         * modules/memxor (License): Likewise.
28391
28392 2007-08-06  Paul Eggert  <eggert@cs.ucla.edu>
28393         and Bruno Haible  <bruno@clisp.org>
28394
28395         * NEWS: Describe interface changes to human, xstrtol.
28396         * lib/human.h: Include <xstrtol.h>.
28397         (human_options): Return enum strtol_error, not int.  Remove
28398         bool arg; take int * instead.
28399         * lib/human.c: Don't include "gettext.h".
28400         (_): Remove; no longer used.
28401         Don't include <xstrtol.h>, since human.h does it.
28402         (human_options): Adjust to abovementioned interface changes.
28403         Do not report error to stderr; that's now the caller's
28404         responsibility.
28405         * lib/xstrtol.c (main) [defined TESTING_XSTRTO]: Adjust to
28406         interface change.
28407         * lib/xstrtol.h (_STRTOL_ERROR): Take Option, Arg rather than
28408         Str, Argument_type_string.  All uses changed.  Put " argument"
28409         in diagnostics to make them clearer.  Change wording of suffix
28410         message for clarity.
28411         (STRTOL_FATAL_ERROR): Take Option, Arg rather than Str,
28412         Argument_type_string.
28413         (STRTOL_FATAL_WARN): Remove; no longer used.
28414         * modules/human (Depends-on): Remove gettext-h.
28415
28416 2007-08-06  Simon Josefsson  <simon@josefsson.org>
28417
28418         * build-aux/maint.mk, build-aux/GNUmakefile: Relicense to GPLv3+.
28419
28420 2007-07-31  Bruno Haible  <bruno@clisp.org>
28421
28422         * m4/stdint.m4 (gl_STDINT_H): Test whether WCHAR_MIN and WCHAR_MAX
28423         are defined by <stdint.h> (as opposed to <wchar.h>, as on Dragonfly).
28424         Reported by Joerg Sonnenberger <joerg@britannica.bec.de>.
28425
28426 2007-07-31  Bruno Haible  <bruno@clisp.org>
28427
28428         * lib/fflush.c (rpl_fflush): On BSD systems, use the __SNPT flag.
28429         Suggested by Joerg Sonnenberger <joerg@britannica.bec.de>.
28430
28431 2007-07-30  Bruno Haible  <bruno@clisp.org>
28432
28433         * modules/base64 (License): Use the synonymous term "LGPLv2+".
28434         * modules/c-ctype (License): Likewise.
28435         * modules/c-strcase (License): Likewise.
28436         * modules/check-version (License): Likewise.
28437         * modules/iconv (License): Likewise.
28438         * modules/iconv_open (License): Likewise.
28439         * modules/read-file (License): Likewise.
28440         * modules/striconv (License): Likewise.
28441         * modules/strverscmp (License): Likewise.
28442         * modules/vasprintf (License): Likewise.
28443         * modules/crypto/des (License): Likewise.
28444         * modules/crypto/gc (License): Likewise.
28445         * modules/crypto/gc-arcfour (License): Likewise.
28446         * modules/crypto/gc-arctwo (License): Likewise.
28447         * modules/crypto/gc-des (License): Likewise.
28448         * modules/crypto/gc-hmac-md5 (License): Likewise.
28449         * modules/crypto/gc-hmac-sha1 (License): Likewise.
28450         * modules/crypto/gc-md2 (License): Likewise.
28451         * modules/crypto/gc-md4 (License): Likewise.
28452         * modules/crypto/gc-md5 (License): Likewise.
28453         * modules/crypto/gc-pbkdf2-sha1 (License): Likewise.
28454         * modules/crypto/gc-random (License): Likewise.
28455         * modules/crypto/gc-rijndael (License): Likewise.
28456         * modules/crypto/gc-sha1 (License): Likewise.
28457         * modules/crypto/md2 (License): Likewise.
28458         * modules/crypto/md4 (License): Likewise.
28459
28460 2007-07-30  Jim Meyering  <jim@meyering.net>
28461
28462         * lib/fts.c (fts_read): Upon failure to chdir into a subdirectory,
28463         set fts_info to FTS_DNR, not to FTS_ERR, so that the caller knows
28464         it has valid stat data.  This bug would cause du not to count the
28465         sizes of inaccessible directories.
28466         Patch by Bryan Mason <bmason@redhat.com>, via Jose Maria Plans
28467         in <http://bugzilla.redhat.com/250077>.
28468
28469 2007-07-25  Peter O'Gorman  <peter@pogma.com>
28470             Bruno Haible  <bruno@clisp.org>
28471
28472         * m4/include_next.m4 (gl_INCLUDE_NEXT): Test whether #include_next
28473         really works. Needed because AIX 4.3 "xlc -E" doesn't understand
28474         #include_next, gives a diagnostic about it, but reports no error in
28475         the exit code.
28476         Reported by Gary V. Vaughan <gary@thewrittenword.com>.
28477
28478 2007-07-24  Ben Pfaff  <blp@gnu.org>
28479
28480         Improve name: "count-one-bits" is better than "popcount".
28481         * MODULES.html.sh: Update name.
28482         * lib/popcount.h: Renamed lib/count-one-bits.h.
28483         (popcount): Renamed count_one_bits.
28484         (popcountl): Renamed count_one_bits_l.
28485         (popcountll): Renamed count_one_bits_ll.
28486         * m4/popcount.m4: Renamed m4/count-one-bits.m4.
28487         * modules/popcount: Renamed module/count-one-bits.
28488         * modules/popcount-tests: Renamed module/count-one-bits-tests.
28489         * tests/test-popcount.c: Renamed tests/test-count-one-bits.c.
28490
28491 2007-07-23  Ben Pfaff  <blp@gnu.org>
28492
28493         * lib/popcount.h (popcount32): Reduce size of constants, to allow
28494         better code generation, and add U to large constants to avoid
28495         warnings, in non-GCC case.
28496         Suggested by Bruno Haible.
28497
28498 2007-07-23  Ben Pfaff  <blp@gnu.org>
28499
28500         * lib/popcount.h: Use verify_true instead of if...abort.
28501         * modules/popcount: Depend on verify module.
28502         Suggested by Jim Meyering.
28503
28504 2007-07-23  Bruno Haible  <bruno@clisp.org>
28505
28506         * gnulib-tool (func_import): Create a .cvsignore file also when the
28507         directory is not yet in CVS but the toplevel directory is. When
28508         creating a .cvsignore file, add ".deps" and ".dirstamp" to it.
28509         Reported by Karl Berry.
28510
28511 2007-07-22  Ben Pfaff  <blp@gnu.org>
28512
28513         * lib/popcount.h: Use faster, branchless algorithm for non-GCC
28514         case.
28515         Suggested by Eric Blake.
28516
28517 2007-07-22  Ben Pfaff  <blp@gnu.org>
28518
28519         New module: popcount.
28520         * MODULES.html.sh: Add popcount.
28521         * modules/popcount: New file.
28522         * modules/popcount-tests: New file.
28523         * tests/test-popcount.c: New file.
28524         * lib/popcount.h: New file.
28525         * m4/popcount.m4: New file.
28526
28527 2007-07-22  Paul Eggert  <eggert@cs.ucla.edu>
28528
28529         * build-aux/announce-gen: Update to GPLv3.
28530
28531         * build-aux/config.guess: Update from config.
28532
28533 2007-07-21  Bruno Haible  <bruno@clisp.org>
28534
28535         * lib/error.c (_) [ENABLE_NLS]: Define to gettext.
28536         * lib/verror.c (_) [ENABLE_NLS]: Likewise.
28537
28538 2007-07-20  Jim Meyering  <jim@meyering.net>
28539
28540         * check-module: Diagnose a self-dependency.
28541
28542 2007-07-19  Bruno Haible  <bruno@clisp.org>
28543
28544         * gnulib-tool (func_import): Don't abort if pobase or po_domain is
28545         empty.
28546         Reported by Eric Blake.
28547
28548 2007-07-18  Bruno Haible  <bruno@clisp.org>
28549
28550         * gnulib-tool: New options --po-base, --po-domain.
28551         (func_usage): Document them.
28552         (pobase, po_domain): New variables.
28553         (func_emit_lib_Makefile_am): Augment AM_CPPFLAGS, defining
28554         DEFAULT_TEXT_DOMAIN.
28555         (func_emit_po_Makevars, func_emit_po_POTFILES_in): New functions.
28556         (func_import): Consider pobase and po_domain. Create a po/ directory.
28557         (func_create_testdir): Set pobase and po_domain to empty.
28558         * build-aux/po/Makefile.in.in: New file, from GNU gettext 0.16.1.
28559         * build-aux/po/remove-potcdate.sin: New file, from GNU gettext 0.16.1.
28560
28561 2007-07-18  Bruno Haible  <bruno@clisp.org>
28562
28563         * gnulib-tool (func_get_automake_snippet): Synthesize also an
28564         EXTRA_DIST augmentation for files in build-aux/.
28565
28566 2007-07-16  Bruno Haible  <bruno@clisp.org>
28567
28568         * modules/lseek (License): Use the synonymous term "LGPLv2+".
28569         * modules/getdelim (License): Likewise.
28570
28571 2007-07-16  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
28572
28573         * modules/arpa_inet (License): Use the synonymous term LGPLv2+.
28574         * modules/d-type (License): Likewise.
28575         * modules/extensions (License): Likewise.
28576         * modules/fnmatch (License): Likewise.
28577         * modules/fseeko (License): Likewise.
28578         * modules/getaddrinfo (License): Likewise.
28579         * modules/getline (License): Likewise.
28580         * modules/getlogin_r (License): Likewise.
28581         * modules/getpass (License): Likewise.
28582         * modules/gettimeofday (License): Likewise.
28583         * modules/glob (License): Likewise.
28584         * modules/inet_ntop (License): Likewise.
28585         * modules/malloc (License): Likewise.
28586         * modules/malloca (License): Likewise.
28587         * modules/memmem (License): Likewise.
28588         * modules/mempcpy (License): Likewise.
28589         * modules/memset (License): Likewise.
28590         * modules/minmax (License): Likewise.
28591         * modules/mktime (License): Likewise.
28592         * modules/netinet_in (License): Likewise.
28593         * modules/pathmax (License): Likewise.
28594         * modules/poll (License): Likewise.
28595         * modules/regex (License): Likewise.
28596         * modules/snprintf (License): Likewise.
28597         * modules/stdbool (License): Likewise.
28598         * modules/stdint (License): Likewise.
28599         * modules/stdio (License): Likewise.
28600         * modules/strcase (License): Likewise.
28601         * modules/strcasestr (License): Likewise.
28602         * modules/strdup (License): Likewise.
28603         * modules/string (License): Likewise.
28604         * modules/strndup (License): Likewise.
28605         * modules/strnlen (License): Likewise.
28606         * modules/strpbrk (License): Likewise.
28607         * modules/strptime (License): Likewise.
28608         * modules/strsep (License): Likewise.
28609         * modules/sys_select (License): Likewise.
28610         * modules/sys_socket (License): Likewise.
28611         * modules/sys_stat (License): Likewise.
28612         * modules/sys_time (License): Likewise.
28613         * modules/time (License): Likewise.
28614         * modules/time_r (License): Likewise.
28615         * modules/timegm (License): Likewise.
28616         * modules/unistd (License): Likewise.
28617         * modules/vsnprintf (License): Likewise.
28618         * modules/wctype (License): Likewise.
28619
28620 2007-07-16  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
28621
28622         * modules/argz (License): LGPLv2+.
28623
28624 2007-07-15  Karl Berry  <karl@gnu.org>
28625
28626         * doc/gnulib.texi: revise node structure per new fdl.texi.
28627
28628 2007-07-14  Bruno Haible  <bruno@clisp.org>
28629
28630         * lib/uniname/gen-uninames.lisp (main): Emit a "do not edit" line to
28631         the output file.
28632         * lib/uniname/uninames.h: Regenerated.
28633
28634 2007-07-14  Karl Berry  <karl@gnu.org>
28635
28636         * doc/*gpl*.texi, doc/fdl.texi: new versions, consistently
28637         omitting sectioning and index commands.
28638
28639 2007-07-13  Bruno Haible  <bruno@clisp.org>
28640
28641         New gnulib-tool option --more-symlinks.
28642         * gnulib-tool (func_usage): Document --more-symlinks.
28643         (do_copyrights): New variable.
28644         Recognize option --more-symlinks.
28645         (func_import): Don't add a copyright notice transform to
28646         sed_transform_lib_file if do_copyrights is empty.
28647
28648 2007-07-13  Bruno Haible  <bruno@clisp.org>
28649
28650         * lib/vasnprintf.c (decimal_point_char): Define also if
28651         (NEED_PRINTF_LONG_DOUBLE || NEED_PRINTF_INFINITE_DOUBLE)
28652         && !NEED_PRINTF_DIRECTIVE_A.
28653         Reported by Clemens Koller <clemens.koller@anagramm.de> via
28654         Gary V. Vaughan <gary@gnu.org>.
28655
28656 2007-07-13  Paul Eggert  <eggert@cs.ucla.edu>
28657
28658         * lib/inttypes_.h: Undo previous change, since it was fixed
28659         in a different way in the 2007-07-02 fix to m4/inttypes.m4.
28660
28661 2007-07-13  Bruno Haible  <bruno@clisp.org>
28662
28663         * lib/stdint_.h: Fix typo: _GL_JUST_INCLUDE_SYSTEM_INTTYPES_H was
28664         misspelled as _GL_JUST_INCLUDE_ABSOLUTE_INTTYPES_H.
28665
28666 2007-07-13  Jim Meyering  <jim@meyering.net>
28667
28668         df: Don't fail for Tru64's "file-on-file mount".
28669         * m4/fsusage.m4 (gl_FSUSAGE): Reject Tru64's buggy statvfs,
28670         so we fall through and use statfs instead.  Details here:
28671         <http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/10878>
28672         Reported by Albert Chin.
28673
28674 2007-07-13  Bruno Haible  <bruno@clisp.org>
28675
28676         * modules/alloca-opt (License): Use the synonymous term "LGPLv2+".
28677         * modules/configmake (License): Likewise.
28678         * modules/gettext (License): Likewise.
28679         * modules/gettext-h (License): Likewise.
28680         * modules/include_next (License): Likewise.
28681         * modules/link-warning (License): Likewise.
28682         * modules/localcharset (License): Likewise.
28683         * modules/localename (License): Likewise.
28684         * modules/lock (License): Likewise.
28685         * modules/relocatable-lib-lgpl (License): Likewise.
28686         * modules/size_max (License): Likewise.
28687         * modules/vasnprintf (License): Likewise.
28688         * modules/wchar (License): Likewise.
28689         * modules/xsize (License): Likewise.
28690
28691 2007-07-13  Bruno Haible  <bruno@clisp.org>
28692
28693         * gnulib-tool (func_import): Treat LGPLv2 as synonymous to LGPL.
28694         (func_create_testdir): Handle copying terms "GPLv2+" and "LGPLv2+".
28695
28696 2007-07-12  Bruno Haible  <bruno@clisp.org>
28697
28698         * doc/gnulib-intro.texi (Copyright): Clarify the license abbreviations
28699         in the modules files.
28700
28701 2007-07-11  Karl Berry  <karl@gnu.org>
28702
28703         * MODULES.html.sh (func_module): use
28704          sed -e '\|^'"${includefile}"'$|d'
28705          instead of /.../d, to avoid errors on $includefile's containing /.
28706
28707 2007-07-10  Sergey Poznyakoff  <gray@gnu.org.ua>
28708
28709         * gnulib-tool (func_import): Avoid duplication of --avoid
28710         statements
28711         (func_dest_tmpfilename,func_create_testdir): Translate `-' in file
28712         names to `_' in variable names.
28713
28714 2007-07-10  Eric Blake  <ebb9@byu.net>
28715
28716         * lib/version-etc.c (version_etc_va): Default to GPLv3+.
28717         * NEWS: Document this change.
28718
28719 2007-07-08  Bruno Haible  <bruno@clisp.org>
28720
28721         Update to Unicode 5.0.
28722         * lib/uniwidth/width.c (nonspacing_table_data): Add U+00AD,
28723         U+0350..U+035F, U+05A2, U+05BA, U+05C5, U+05C7, U+0600..U+0603,
28724         U+0610..U+0615, U+0656..U+065E, U+07EB..U+07F3, U+0A01, U+0AE2..U+0AE3,
28725         U+0CBC. Remove U+0CBF, U+0CC6. Add U+0CE2..U+0CE3, U+135F,
28726         U+17B4..U+17B5, U+17DD. Remove U+180E. Add U+1920..U+1922,
28727         U+1927..U+192B, U+1932, U+1939..U+193B, U+1A17..U+1A18, U+1B00..U+1B03,
28728         U+1B34, U+1B36..U+1B3A, U+1B3C, U+1B42, U+1B6B..U+1B73, U+1DC0..U+1DCA,
28729         U+1DFE..U+1DFF, U+20EB..U+20EF, U+A802, U+A806, U+A80B, U+A825..U+A826,
28730         U+10A01..U+10A03, U+10A05..U+10A06, U+10A0C..U+10A0F, U+10A38..U+10A3A,
28731         U+10A3F, U+1D242..U+1D244.
28732         (nonspacing_table_ind): Update.
28733         (uc_width): Assign width 0 to U+E0100..U+E01EF. Assign width 1 to
28734         U+4DC0..U+4DFF. Assign width 2 to U+2329..U+232A, U+FE10..U+FE1F.
28735
28736 2007-07-08  Bruno Haible  <bruno@clisp.org>
28737
28738         Update to Unicode 5.0.
28739         * lib/uniname/gen-uninames.lisp (main): Add the range 0x12xxx to the
28740         code transform. Extend the name index field of unicode_name_to_code and
28741         unicode_code_to_name from 16 to 24 bits.
28742         * lib/uniname/uniname.c (unicode_character_name,
28743         unicode_name_character): Add the range 0x12xxx to the code transform.
28744         * lib/uniname/uninames.h: Regenerated.
28745         * tests/uniname/UnicodeDataNames.txt: Update to Unicode 5.0.
28746
28747 2007-07-07  Bruno Haible  <bruno@clisp.org>
28748
28749         * modules/wcwidth-tests: New file.
28750         * tests/test-wcwidth.c: New file.
28751
28752         Work around MacOS X wcwidth() bug.
28753         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Test against MacOS X 10.3 bug.
28754         * lib/wcwidth.c: Include localcharset.h, streq.h, uniwidth.h.
28755         (rpl_wcwidth): Special-case the UTF-8 locales. Fall back to the
28756         original wcwidth in non-UTF-8 locales.
28757         * modules/wcwidth (Depends-on): Add localcharset, streq,
28758         uniwidth/width.
28759         * doc/functions/wcwidth.texi: Update.
28760
28761 2007-07-07  Bruno Haible  <bruno@clisp.org>
28762
28763         * lib/wchar_.h: Include the GL_LINK_WARNING macro.
28764         (wcwidth): New declaration.
28765         * m4/wchar.m4 (gl_WCHAR_MODULE_INDICATOR, gl_WCHAR_H_DEFAULTS): New
28766         macros.
28767         (gl_WCHAR_H): Require gl_WCHAR_H_DEFAULTS. Don't set WCHAR_H to empty
28768         here. Prepare for creating <wchar.h> unconditionally.
28769         * modules/wchar (Depends-on): Add link-warning.
28770         (Makefile.am): Substitute also GNULIB_WCWIDTH, HAVE_DECL_WCWIDTH,
28771         REPLACE_WCWIDTH, and GL_LINK_WARNING.
28772         * lib/wcwidth.h: Remove file.
28773         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Require gl_WCHAR_H_DEFAULTS. Set
28774         HAVE_DECL_WCWIDTH, REPLACE_WCWIDTH, WCHAR_H.
28775         * modules/wcwidth (Files): Remove lib/wcwidth.h.
28776         (configure.ac): Invoke gl_WCHAR_MODULE_INDICATOR.
28777         (Include): Replace wcwidth.h with <wchar.h>.
28778         * lib/wcwidth.c: Include <wchar.h> instead of wcwidth.h.
28779         * lib/mbchar.h: Don't include wcwidth.h.
28780         * lib/mbswidth.c: Likewise.
28781         * NEWS: Mention the change.
28782
28783 2007-07-07  Bruno Haible  <bruno@clisp.org>
28784
28785         * lib/wcwidth.c: New file, extracted from lib/wcwidth.h.
28786         * lib/wcwidth.h: Don't include wctype.h. Replace inline function
28787         definition with an external declaration.
28788         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Use wcwidth.c when wcwidth is not
28789         defined as a function. Remove AC_C_INLINE requirement.
28790         * modules/wcwidth (Files): Add lib/wcwidth.c.
28791         (Makefile.am): Remove redundant statement.
28792
28793 2007-07-07  Bruno Haible  <bruno@clisp.org>
28794
28795         * MODULES.html.sh (Unicode string functions): Add the new modules.
28796
28797         * tests/uniwidth/test-u32-strwidth.c: New file.
28798         * modules/uniwidth/u32-strwidth-tests: New file.
28799
28800         * lib/uniwidth/u32-strwidth.c: New file.
28801         * modules/uniwidth/u32-strwidth: New file.
28802
28803         * tests/uniwidth/test-u16-strwidth.c: New file.
28804         * modules/uniwidth/u16-strwidth-tests: New file.
28805
28806         * lib/uniwidth/u16-strwidth.c: New file.
28807         * modules/uniwidth/u16-strwidth: New file.
28808
28809         * tests/uniwidth/test-u8-strwidth.c: New file.
28810         * modules/uniwidth/u8-strwidth-tests: New file.
28811
28812         * lib/uniwidth/u8-strwidth.c: New file.
28813         * modules/uniwidth/u8-strwidth: New file.
28814
28815         * tests/uniwidth/test-u32-width.c: New file.
28816         * modules/uniwidth/u32-width-tests: New file.
28817
28818         * lib/uniwidth/u32-width.c: New file.
28819         * modules/uniwidth/u32-width: New file.
28820
28821         * tests/uniwidth/test-u16-width.c: New file.
28822         * modules/uniwidth/u16-width-tests: New file.
28823
28824         * lib/uniwidth/u16-width.c: New file.
28825         * modules/uniwidth/u16-width: New file.
28826
28827         * tests/uniwidth/test-u8-width.c: New file.
28828         * modules/uniwidth/u8-width-tests: New file.
28829
28830         * lib/uniwidth/u8-width.c: New file.
28831         * modules/uniwidth/u8-width: New file.
28832
28833         * tests/uniwidth/test-uc_width.c: New file.
28834         * modules/uniwidth/width-tests: New file.
28835
28836         * lib/uniwidth/width.c: New file, from GNU libiconv.
28837         * lib/uniwidth/cjk.h: New file, from GNU libiconv.
28838         * modules/uniwidth/width: New file.
28839
28840         * lib/uniwidth.h: New file, from GNU libiconv.
28841         * modules/uniwidth/base: New file.
28842
28843 2007-07-07  Bruno Haible  <bruno@clisp.org>
28844
28845         * lib/uniname.h: New file, from GNU gettext.
28846         * lib/uniname/gen-uninames.lisp: New file, from GNU gettext.
28847         * lib/uniname/uninames.h: New file, from GNU gettext.
28848         * lib/uniname/uniname.c: New file, from GNU gettext.
28849         * tests/uniname/test-uninames.sh: New file.
28850         * tests/uniname/test-uninames.c: New file, from GNU gettext.
28851         * tests/uniname/UnicodeDataNames.txt: New file, from GNU gettext.
28852         * modules/uniname/base: New file.
28853         * modules/uniname/uniname: New file.
28854         * modules/uniname/uniname-tests: New file.
28855         * MODULES.html.sh (Unicode string functions): Add the new modules.
28856
28857 2007-07-06  Bruno Haible  <bruno@clisp.org>
28858
28859         * doc/Makefile (TEXI2HTML): Specify a --reference-limit.
28860
28861 2007-07-06  Bruno Haible  <bruno@clisp.org>
28862
28863         * lib/sys_time_.h: Use a recursion-safe inclusion guard rather than
28864         a split double-inclusion guard. Needed for cygwin, where <sys/time.h>
28865         includes <cygwin/sys_time.h> which includes <sys/select.h> which
28866         include <sys/time.h>.
28867         Reported by Eric Blake.
28868
28869 2007-07-06  Eric Blake  <ebb9@byu.net>
28870
28871         Fix testing canonicalize on cygwin.
28872         * modules/canonicalize-lgpl-tests (test_canonicalize_lgpl_LDADD):
28873         Revert patch from 2007-06-19.
28874         * tests/test-canonicalize-lgpl.c (main): Instead, skip test when
28875         canonicalize module is also in use.
28876         * tests/test-canonicalize.c: New file.
28877         * tests/test-canonicalize.sh: Likewise.
28878         * modules/canonicalize-tests: Likewise.
28879
28880 2007-07-06  Jim Meyering  <jim@meyering.net>
28881
28882         * lib/getugroups.c (getugroups): Detect getgrent failure.
28883         Adjust comment to reflect reality: this function may return -1.
28884
28885 2007-07-05  Sergey Poznyakoff  <gray@gnu.org.ua>
28886
28887         * build-aux/bootstrap (TP_URL,get_translations): Update to use
28888         the new TP address.
28889         (usage): Fix typo
28890         (gnulib_mk): New variable.
28891
28892 2007-07-05  Jim Meyering  <jim@meyering.net>
28893
28894         Don't let endgrent clobber errno, no matter how improbable.
28895         * lib/getugroups.c (getugroups): Save and restore errno around
28896         endgrent call.
28897
28898         Close the group DB even when failing with 2^31 or more members.
28899         * lib/getugroups.c (getugroups): Don't return without calling endgrent.
28900
28901 2007-07-04  Jim Meyering  <jim@meyering.net>
28902
28903         * lib/getugroups.h: New file.
28904         * lib/getugroups.c: Include "getugroups.h".
28905         Remove uses of "register" keyword.
28906         Move local variable, "cp", down into scope where used.
28907         Give "username" parameter the "const" attribute.
28908         * modules/getugroups (Files): Add lib/getugroups.h
28909
28910 2007-07-04  Karl Berry  <karl@gnu.org>
28911
28912         * MODULES.html.sh (func_all_modules): Complete rename of
28913         gpl/lgpl to gpl-2.0 and lgpl-2.1, and add gpl-3.0.
28914
28915 2007-07-02  Bruno Haible  <bruno@clisp.org>
28916
28917         * m4/inttypes.m4 (gl_INTTYPES_H): Define __STDC_LIMIT_MACROS in C++
28918         mode, when inttypes.h comes from gnulib.
28919         Reported by Joel E. Denny <jdenny@ces.clemson.edu>.
28920
28921 2007-07-02  Simon Josefsson  <simon@josefsson.org>
28922
28923         * NEWS: Mention lgpl module name change.
28924
28925         * modules/lgpl-2.1: Renamed from lgpl.
28926
28927         * NEWS: Mention gpl module name change.
28928
28929         * modules/gpl-3.0: New file, based on gpl-2.0.
28930
28931         * modules/gpl-2.0: Renamed from gpl.
28932
28933         * modules/gpl: Fix filename, doc/gpl.texi is now found at
28934         doc/gpl-2.0.texi.
28935
28936 2007-07-02  Paul Eggert  <eggert@cs.ucla.edu>
28937
28938         * lib/inttypes_.h [defined __cplusplus&&!defined __STDC_LIMIT_MACROS]:
28939         #define __STDC_LIMIT_MACROS temporarily while including
28940         <stdint.h>, so that __STDC_LIMIT_MACROS is defined.
28941         Problem reported by Joel E. Denny in
28942         <http://lists.gnu.org/archive/html/bug-gnulib/2007-07/msg00008.html>.
28943
28944 2007-07-01  Bruno Haible  <bruno@clisp.org>
28945
28946         * lib/unistdio.h: New file.
28947         * lib/unistdio/u-asnprintf.h: New file.
28948         * lib/unistdio/u-asprintf.h: New file.
28949         * lib/unistdio/u-printf-args.c: New file.
28950         * lib/unistdio/u-printf-args.h: New file.
28951         * lib/unistdio/u-printf-parse.h: New file.
28952         * lib/unistdio/u-snprintf.h: New file.
28953         * lib/unistdio/u-sprintf.h: New file.
28954         * lib/unistdio/u-vasprintf.h: New file.
28955         * lib/unistdio/u-vsnprintf.h: New file.
28956         * lib/unistdio/u-vsprintf.h: New file.
28957         * lib/unistdio/ulc-asnprintf.c: New file.
28958         * lib/unistdio/ulc-asprintf.c: New file.
28959         * lib/unistdio/ulc-fprintf.c: New file, based on lib/fprintf.c.
28960         * lib/unistdio/ulc-printf-parse.c: New file.
28961         * lib/unistdio/ulc-snprintf.c: New file.
28962         * lib/unistdio/ulc-sprintf.c: New file.
28963         * lib/unistdio/ulc-vasnprintf.c: New file.
28964         * lib/unistdio/ulc-vasprintf.c: New file.
28965         * lib/unistdio/ulc-vfprintf.c: New file, based on lib/vfprintf.c.
28966         * lib/unistdio/ulc-vsnprintf.c: New file.
28967         * lib/unistdio/ulc-vsprintf.c: New file.
28968         * lib/unistdio/u8-asnprintf.c: New file.
28969         * lib/unistdio/u8-asprintf.c: New file.
28970         * lib/unistdio/u8-printf-parse.c: New file.
28971         * lib/unistdio/u8-snprintf.c: New file.
28972         * lib/unistdio/u8-sprintf.c: New file.
28973         * lib/unistdio/u8-vasnprintf.c: New file.
28974         * lib/unistdio/u8-vasprintf.c: New file.
28975         * lib/unistdio/u8-vsnprintf.c: New file.
28976         * lib/unistdio/u8-vsprintf.c: New file.
28977         * lib/unistdio/u8-u8-asnprintf.c: New file.
28978         * lib/unistdio/u8-u8-asprintf.c: New file.
28979         * lib/unistdio/u8-u8-snprintf.c: New file.
28980         * lib/unistdio/u8-u8-sprintf.c: New file.
28981         * lib/unistdio/u8-u8-vasnprintf.c: New file.
28982         * lib/unistdio/u8-u8-vasprintf.c: New file.
28983         * lib/unistdio/u8-u8-vsnprintf.c: New file.
28984         * lib/unistdio/u8-u8-vsprintf.c: New file.
28985         * lib/unistdio/u16-asnprintf.c: New file.
28986         * lib/unistdio/u16-asprintf.c: New file.
28987         * lib/unistdio/u16-printf-parse.c: New file.
28988         * lib/unistdio/u16-snprintf.c: New file.
28989         * lib/unistdio/u16-sprintf.c: New file.
28990         * lib/unistdio/u16-vasnprintf.c: New file.
28991         * lib/unistdio/u16-vasprintf.c: New file.
28992         * lib/unistdio/u16-vsnprintf.c: New file.
28993         * lib/unistdio/u16-vsprintf.c: New file.
28994         * lib/unistdio/u16-u16-asnprintf.c: New file.
28995         * lib/unistdio/u16-u16-asprintf.c: New file.
28996         * lib/unistdio/u16-u16-snprintf.c: New file.
28997         * lib/unistdio/u16-u16-sprintf.c: New file.
28998         * lib/unistdio/u16-u16-vasnprintf.c: New file.
28999         * lib/unistdio/u16-u16-vasprintf.c: New file.
29000         * lib/unistdio/u16-u16-vsnprintf.c: New file.
29001         * lib/unistdio/u16-u16-vsprintf.c: New file.
29002         * lib/unistdio/u32-asnprintf.c: New file.
29003         * lib/unistdio/u32-asprintf.c: New file.
29004         * lib/unistdio/u32-printf-parse.c: New file.
29005         * lib/unistdio/u32-snprintf.c: New file.
29006         * lib/unistdio/u32-sprintf.c: New file.
29007         * lib/unistdio/u32-vasnprintf.c: New file.
29008         * lib/unistdio/u32-vasprintf.c: New file.
29009         * lib/unistdio/u32-vsnprintf.c: New file.
29010         * lib/unistdio/u32-vsprintf.c: New file.
29011         * lib/unistdio/u32-u32-asnprintf.c: New file.
29012         * lib/unistdio/u32-u32-asprintf.c: New file.
29013         * lib/unistdio/u32-u32-snprintf.c: New file.
29014         * lib/unistdio/u32-u32-sprintf.c: New file.
29015         * lib/unistdio/u32-u32-vasnprintf.c: New file.
29016         * lib/unistdio/u32-u32-vasprintf.c: New file.
29017         * lib/unistdio/u32-u32-vsnprintf.c: New file.
29018         * lib/unistdio/u32-u32-vsprintf.c: New file.
29019         * tests/unistdio/test-ulc-asnprintf1.c: New file.
29020         * tests/unistdio/test-ulc-asnprintf1.h: New file.
29021         * tests/unistdio/test-ulc-printf1.h: New file.
29022         * tests/unistdio/test-ulc-vasnprintf1.c: New file.
29023         * tests/unistdio/test-ulc-vasnprintf2.c: New file.
29024         * tests/unistdio/test-ulc-vasnprintf2.sh: New file.
29025         * tests/unistdio/test-ulc-vasnprintf3.c: New file.
29026         * tests/unistdio/test-ulc-vasnprintf3.sh: New file.
29027         * tests/unistdio/test-ulc-vasprintf1.c: New file.
29028         * tests/unistdio/test-ulc-vsnprintf1.c: New file.
29029         * tests/unistdio/test-ulc-vsprintf1.c: New file.
29030         * tests/unistdio/test-u8-asnprintf1.c: New file.
29031         * tests/unistdio/test-u8-asnprintf1.h: New file.
29032         * tests/unistdio/test-u8-printf1.h: New file.
29033         * tests/unistdio/test-u8-vasnprintf1.c: New file.
29034         * tests/unistdio/test-u8-vasnprintf2.c: New file.
29035         * tests/unistdio/test-u8-vasnprintf2.sh: New file.
29036         * tests/unistdio/test-u8-vasnprintf3.c: New file.
29037         * tests/unistdio/test-u8-vasnprintf3.sh: New file.
29038         * tests/unistdio/test-u8-vasprintf1.c: New file.
29039         * tests/unistdio/test-u8-vsnprintf1.c: New file.
29040         * tests/unistdio/test-u8-vsprintf1.c: New file.
29041         * tests/unistdio/test-u16-asnprintf1.c: New file.
29042         * tests/unistdio/test-u16-asnprintf1.h: New file.
29043         * tests/unistdio/test-u16-printf1.h: New file.
29044         * tests/unistdio/test-u16-vasnprintf1.c: New file.
29045         * tests/unistdio/test-u16-vasnprintf2.c: New file.
29046         * tests/unistdio/test-u16-vasnprintf2.sh: New file.
29047         * tests/unistdio/test-u16-vasnprintf3.c: New file.
29048         * tests/unistdio/test-u16-vasnprintf3.sh: New file.
29049         * tests/unistdio/test-u16-vasprintf1.c: New file.
29050         * tests/unistdio/test-u16-vsnprintf1.c: New file.
29051         * tests/unistdio/test-u16-vsprintf1.c: New file.
29052         * tests/unistdio/test-u32-asnprintf1.c: New file.
29053         * tests/unistdio/test-u32-asnprintf1.h: New file.
29054         * tests/unistdio/test-u32-printf1.h: New file.
29055         * tests/unistdio/test-u32-vasnprintf1.c: New file.
29056         * tests/unistdio/test-u32-vasnprintf2.c: New file.
29057         * tests/unistdio/test-u32-vasnprintf2.sh: New file.
29058         * tests/unistdio/test-u32-vasnprintf3.c: New file.
29059         * tests/unistdio/test-u32-vasnprintf3.sh: New file.
29060         * tests/unistdio/test-u32-vasprintf1.c: New file.
29061         * tests/unistdio/test-u32-vsnprintf1.c: New file.
29062         * tests/unistdio/test-u32-vsprintf1.c: New file.
29063         * modules/unistdio/base: New file.
29064         * modules/unistdio/u-printf-args: New file.
29065         * modules/unistdio/ulc-asnprintf: New file.
29066         * modules/unistdio/ulc-asprintf: New file.
29067         * modules/unistdio/ulc-fprintf: New file.
29068         * modules/unistdio/ulc-printf-parse: New file.
29069         * modules/unistdio/ulc-snprintf: New file.
29070         * modules/unistdio/ulc-sprintf: New file.
29071         * modules/unistdio/ulc-vasnprintf: New file.
29072         * modules/unistdio/ulc-vasprintf: New file.
29073         * modules/unistdio/ulc-vfprintf: New file.
29074         * modules/unistdio/ulc-vsnprintf: New file.
29075         * modules/unistdio/ulc-vsprintf: New file.
29076         * modules/unistdio/u8-asnprintf: New file.
29077         * modules/unistdio/u8-asprintf: New file.
29078         * modules/unistdio/u8-printf-parse: New file.
29079         * modules/unistdio/u8-snprintf: New file.
29080         * modules/unistdio/u8-sprintf: New file.
29081         * modules/unistdio/u8-vasnprintf: New file.
29082         * modules/unistdio/u8-vasprintf: New file.
29083         * modules/unistdio/u8-vsnprintf: New file.
29084         * modules/unistdio/u8-vsprintf: New file.
29085         * modules/unistdio/u8-u8-asnprintf: New file.
29086         * modules/unistdio/u8-u8-asprintf: New file.
29087         * modules/unistdio/u8-u8-snprintf: New file.
29088         * modules/unistdio/u8-u8-sprintf: New file.
29089         * modules/unistdio/u8-u8-vasnprintf: New file.
29090         * modules/unistdio/u8-u8-vasprintf: New file.
29091         * modules/unistdio/u8-u8-vsnprintf: New file.
29092         * modules/unistdio/u8-u8-vsprintf: New file.
29093         * modules/unistdio/u16-asnprintf: New file.
29094         * modules/unistdio/u16-asprintf: New file.
29095         * modules/unistdio/u16-printf-parse: New file.
29096         * modules/unistdio/u16-snprintf: New file.
29097         * modules/unistdio/u16-sprintf: New file.
29098         * modules/unistdio/u16-vasnprintf: New file.
29099         * modules/unistdio/u16-vasprintf: New file.
29100         * modules/unistdio/u16-vsnprintf: New file.
29101         * modules/unistdio/u16-vsprintf: New file.
29102         * modules/unistdio/u16-u16-asnprintf: New file.
29103         * modules/unistdio/u16-u16-asprintf: New file.
29104         * modules/unistdio/u16-u16-snprintf: New file.
29105         * modules/unistdio/u16-u16-sprintf: New file.
29106         * modules/unistdio/u16-u16-vasnprintf: New file.
29107         * modules/unistdio/u16-u16-vasprintf: New file.
29108         * modules/unistdio/u16-u16-vsnprintf: New file.
29109         * modules/unistdio/u16-u16-vsprintf: New file.
29110         * modules/unistdio/u32-asnprintf: New file.
29111         * modules/unistdio/u32-asprintf: New file.
29112         * modules/unistdio/u32-printf-parse: New file.
29113         * modules/unistdio/u32-snprintf: New file.
29114         * modules/unistdio/u32-sprintf: New file.
29115         * modules/unistdio/u32-vasnprintf: New file.
29116         * modules/unistdio/u32-vasprintf: New file.
29117         * modules/unistdio/u32-vsnprintf: New file.
29118         * modules/unistdio/u32-vsprintf: New file.
29119         * modules/unistdio/u32-u32-asnprintf: New file.
29120         * modules/unistdio/u32-u32-asprintf: New file.
29121         * modules/unistdio/u32-u32-snprintf: New file.
29122         * modules/unistdio/u32-u32-sprintf: New file.
29123         * modules/unistdio/u32-u32-vasnprintf: New file.
29124         * modules/unistdio/u32-u32-vasprintf: New file.
29125         * modules/unistdio/u32-u32-vsnprintf: New file.
29126         * modules/unistdio/u32-u32-vsprintf: New file.
29127         * modules/unistdio/ulc-asnprintf-tests: New file.
29128         * modules/unistdio/ulc-vasnprintf-tests: New file.
29129         * modules/unistdio/ulc-vasprintf-tests: New file.
29130         * modules/unistdio/ulc-vsnprintf-tests: New file.
29131         * modules/unistdio/ulc-vsprintf-tests: New file.
29132         * modules/unistdio/u8-asnprintf-tests: New file.
29133         * modules/unistdio/u8-vasnprintf-tests: New file.
29134         * modules/unistdio/u8-vasprintf-tests: New file.
29135         * modules/unistdio/u8-vsnprintf-tests: New file.
29136         * modules/unistdio/u8-vsprintf-tests: New file.
29137         * modules/unistdio/u16-asnprintf-tests: New file.
29138         * modules/unistdio/u16-vasnprintf-tests: New file.
29139         * modules/unistdio/u16-vasprintf-tests: New file.
29140         * modules/unistdio/u16-vsnprintf-tests: New file.
29141         * modules/unistdio/u16-vsprintf-tests: New file.
29142         * modules/unistdio/u32-asnprintf-tests: New file.
29143         * modules/unistdio/u32-vasnprintf-tests: New file.
29144         * modules/unistdio/u32-vasprintf-tests: New file.
29145         * modules/unistdio/u32-vsnprintf-tests: New file.
29146         * modules/unistdio/u32-vsprintf-tests: New file.
29147         * MODULES.html.sh (Unicode string functions): Add the new modules.
29148
29149 2007-07-01  Bruno Haible  <bruno@clisp.org>
29150
29151         * lib/sprintf.c (sprintf): Limit the available length estimation,
29152         to avoid address wraparound.
29153         * lib/vsprintf.c (vsprintf): Likewise.
29154         * modules/sprintf-posix (Dependencies): Add stdint.
29155         * modules/vsprintf-posix (Dependencies): Likewise.
29156
29157 2007-07-01  Bruno Haible  <bruno@clisp.org>
29158
29159         * gnulib-tool (self_abspathname): Determine PATH_SEPARATOR and handle
29160         Windows PATH as well. Conservative double-quoting. Comments.
29161
29162 2007-07-01  Bruno Haible  <bruno@clisp.org>
29163             Eric Blake  <ebb9@byu.net>
29164             Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
29165
29166         * gnulib-tool (self_abspathname): Fix algorithm to cope with
29167         empty components in $PATH, denoting '.'.
29168
29169 2007-07-01  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
29170
29171         * gnulib-tool: Fix indentation.
29172         (func_create_megatestdir): Likewise.
29173         Report by Bruno Haible.
29174
29175 2007-06-30  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
29176
29177         Sync from Automake.
29178         * build-aux/gnupload: Fix shell portability issues with for loops.
29179         Report by Karl Berry.
29180
29181 2007-06-29  Simon Josefsson  <simon@josefsson.org>
29182
29183         * build-aux/maint.mk (POURL): Use translationproject.org.
29184
29185 2007-06-27  Simon Josefsson  <simon@josefsson.org>
29186             Bruno Haible  <bruno@clisp.org>
29187
29188         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Require gl_HEADER_SYS_SOCKET
29189         before using HAVE_WS2TCPIP_H. Check for gai_strerror through an
29190         explicit link test, rather than AC_REPLACE_FUNCS - for mingw.
29191         (gl_PREREQ_GETADDRINFO): Require gl_HEADER_SYS_SOCKET before using
29192         HAVE_SYS_SOCKET_H and HAVE_WS2TCPIP_H.
29193
29194 2007-06-27  Bruno Haible  <bruno@clisp.org>
29195
29196         * build-aux/config.rpath: Upgrade to libtool-1.5.24.
29197         * build-aux/config.libpath: Upgrade to libtool-1.5.24.
29198
29199 2007-06-26  Karl Berry  <karl@gnu.org>
29200
29201         * MODULES.html.sh: remove xreadlink-with-size.
29202
29203 2007-06-23  Paul Eggert  <eggert@cs.ucla.edu>
29204
29205         * lib/time_.h: Port to Solaris 8 with Sun Studio 11, using a
29206         method that I hope also handles the double-include problem noted
29207         by Bruno Haible in
29208         <http://lists.gnu.org/archive/html/bug-gnulib/2007-05/msg00186.html>.
29209
29210 2007-06-23  Bruno Haible  <bruno@clisp.org>
29211
29212         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
29213         Don't let the 'mostlyclean' target fail if the last subdirectory could
29214         not be removed.
29215         Reported by Karl Berry.
29216
29217 2007-06-23  Bruno Haible  <bruno@clisp.org>
29218
29219         * gnulib-tool (echo): Add a speedier workaround for ksh.
29220         * tests/test-echo.sh: Likewise.
29221
29222 2007-06-23  Bruno Haible  <bruno@clisp.org>
29223
29224         * gnulib-tool (echo): Add workarounds also for bash versions < 2.04.
29225         * tests/test-echo.sh: Likewise.
29226
29227 2007-06-23  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
29228
29229         * gnulib-tool (IFS): Initialize early, so we don't set it to
29230         empty later.
29231         (self_abspathname): Rewrite algorithm to set it, reindent.
29232         (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am)
29233         (func_create_megatestdir): Merge some sed scripts.
29234
29235 2007-06-23  Paul Eggert  <eggert@cs.ucla.edu>
29236
29237         * m4/include_next.m4 (gl_CHECK_NEXT_HEADERS): Check some typos
29238         exposed by Sun Studio 11 cc on Solaris 8.
29239
29240 2007-06-22  Bruno Haible  <bruno@clisp.org>
29241
29242         * gnulib-tool (echo): Ensure the echo primitive does not interpret
29243         backslashes.
29244         * tests/test-echo.sh: New file.
29245
29246 2007-06-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
29247
29248         * gnulib-tool (func_add_or_update, func_create_testdir): Do not
29249         simplify `sed_replace_build_aux' scripts, they are portable but
29250         echoing them with `echo' is not.
29251         Report and analysis by Fernando Ferreira <fernando.prog@netcabo.pt>.
29252
29253 2007-06-21  Karl Berry  <karl@gnu.org>
29254
29255         * config/srclist.txt: guess we can't handle the licenses via
29256         srclist at the moment.
29257
29258 2007-06-21  Paul Eggert  <eggert@cs.ucla.edu>
29259
29260         * MODULES.html.sh: Add include_next.
29261         * modules/include_next: New file.
29262
29263 2007-06-20  Paul Eggert  <eggert@cs.ucla.edu>
29264
29265         * m4/include_next.m4 (gl_INCLUDE_NEXT): Define and AC_SUBST
29266         INCLUDE_NEXT.
29267         (gl_CHECK_NEXT_HEADERS): New macro.
29268         * m4/fcntl_h.m4 (gl_FCNTL_H): use gl_CHECK_NEXT_HEADERS instead of
29269         the obsolescent gl_ABSOLUTE_HEADER.
29270         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Likewise.
29271         * m4/float_h.m4 (gl_FLOAT_H): Likewise.
29272         * m4/iconv_h.m4 (gl_ICONV_H): Likewise.
29273         * m4/inttypes.m4 (gl_INTTYPES_H): Likewise.
29274         * m4/locale_h.m4 (gl_LOCALE_H): Likewise.
29275         * m4/math_h.m4 (gl_MATH_H): Likewise.
29276         * m4/netinet_in_h.m4 (gl_HEADER_NETINET_IN): Likewise.
29277         * m4/search_h.m4 (gl_SEARCH_H): Likewise.
29278         * m4/signal_h.m4 (gl_SIGNAL_H): Likewise.
29279         * m4/stdint.m4 (gl_STDINT_H): Likewise.
29280         * m4/stdio_h.m4 (gl_STDIO_H): Likewise.
29281         * m4/stdlib_h.m4 (gl_STDLIB_H): Likewise.
29282         * m4/string_h.m4 (gl_HEADER_STRING_H_BODY): Likewise.
29283         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
29284         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Likewise.
29285         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Likewise.
29286         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Likewise.
29287         * m4/sysexits.m4 (gl_SYSEXITS): Likewise.
29288         * m4/time_h.m4 (gl_HEADER_TIME_H_BODY): Likewise.
29289         * m4/unistd_h.m4 (gl_UNISTD_H): Likewise.
29290         * m4/wchar.m4 (gl_WCHAR_H): Likewise.
29291         * m4/wctype.m4 (gl_WCTYPE_H): Likewise.
29292         * m4/inttypes.m4 (gl_INTTYPES_H): Define
29293         _GL_JUST_INCLUDE_SYSTEM_INTTYPES_H to avoid the problem of unclean
29294         builds, since ABSOLUTE_INTTYPES_H is no longer being defined.
29295         * m4/stdint.m4 (gl_STDINT_H): Likewise, for
29296         _GL_JUST_INCLUDE_SYSTEM_STDINT_H.
29297         * lib/fcntl_.h: Use @INCLUDE_NEXT@ @NEXT_foo_H@
29298         rather than @HAVE_INCLUDE_NEXT@ and @ABSOLUTE_foo_H@.
29299         * lib/float_.h: Likewise.
29300         * lib/inttypes_.h: Likewise.
29301         * lib/math_.h: Likewise.
29302         * lib/search_.h: Likewise.
29303         * lib/signal_.h: Likewise.
29304         * lib/stdint_.h: Likewise.
29305         * lib/stdio_.h: Likewise.
29306         * lib/stdlib_.h: Likewise.
29307         * lib/string_.h: Likewise.
29308         * lib/sys_stat_.h: Likewise.
29309         * lib/sys_time_.h: Likewise.
29310         * lib/time_.h: Likewise.
29311         * lib/unistd_.h: Likewise.
29312         * lib/wchar_.h: Likewise.
29313         * lib/wctype_.h: Likewise.
29314         * lib/dirent_.h: Likewise.
29315         * lib/iconv_.h: Likewise.
29316         * lib/locale_.h: Likewise.
29317         * lib/netinet_in_.h: Likewise.
29318         * lib/sys_select_.h: Likewise.
29319         * lib/sys_socket_.h: Likewise.
29320         * lib/sysexits_.h: Likewise.
29321         * modules/fcntl (Depends-on): Depend on include_next, not
29322         absolute_header.
29323         (Makefile): Substitute INCLUDE_NEXT and NEXT_foo_H, not
29324         HAVE_INCLUDE_NEXT and ABSOLUTE_foo_H.
29325         * modules/fchdir: Likewise.
29326         * modules/float: Likewise.
29327         * modules/iconv_open: Likewise.
29328         * modules/inttypes: Likewise.
29329         * modules/locale: Likewise.
29330         * modules/math: Likewise.
29331         * modules/netinet_in: Likewise.
29332         * modules/search: Likewise.
29333         * modules/signal: Likewise.
29334         * modules/stdint: Likewise.
29335         * modules/stdio: Likewise.
29336         * modules/stdlib: Likewise.
29337         * modules/string: Likewise.
29338         * modules/sys_select: Likewise.
29339         * modules/sys_socket: Likewise.
29340         * modules/sys_stat: Likewise.
29341         * modules/sys_time: Likewise.
29342         * modules/sysexits: Likewise.
29343         * modules/time: Likewise.
29344         * modules/unistd: Likewise.
29345         * modules/wchar: Likewise.
29346         * modules/wctype: Likewise.
29347         * modules/sys_stat: Change maintainer to "all".
29348         * modules/unistd: Likewise.
29349
29350 2007-06-20  Karl Berry  <karl@gnu.org>
29351
29352         * config/srclist.txt: track www changes in license files.
29353
29354 2007-06-20  Sergey Poznyakoff  <gray@gnu.org.ua>
29355
29356         * build-aux/bootstrap: Remove stray dot.
29357         Make sure build_aux settings are honored when linking
29358         gnulib_extra_files.
29359
29360 2007-06-19  Eric Blake  <ebb9@byu.net>
29361
29362         * modules/canonicalize-lgpl-tests (test_canonicalize_lgpl_LDADD):
29363         Allow compilation on cygwin.
29364
29365 2007-06-19  Jim Meyering  <jim@meyering.net>
29366
29367         xreadlink-with-size: Remove module.  No longer used.
29368         Ex-callers now use xreadlink or mreadlink-with-size.
29369         * modules/xreadlink-with-size: Remove module.
29370         * lib/xreadlink-with-size.c: Remove file.
29371         * lib/xreadlink.h (xreadlink_with_size): Remove prototype.
29372         (xreadlink): Remove inaccurate comment.  The one in xreadlink.c,
29373         just before the function definition *is* accurate.
29374
29375         Eliminate one way canonicalize_filename_mode could exit.
29376         * lib/canonicalize.c (canonicalize_filename_mode):
29377         Use mreadlink_with_size, not xreadlink_with_size.
29378
29379 2007-06-18  Paul Eggert  <eggert@cs.ucla.edu>
29380
29381         Detect porting problems to FreeBSD/arm, which has time_t wider than
29382         long int.  Original problem reported for GNU diff by Xin Li in
29383         <http://lists.gnu.org/archive/html/bug-gnu-utils/2007-06/msg00091.html>.
29384         * modules/getdate (Depends-on): Add intprops, verify.
29385         * lib/getdate.y: Include intprops.h, verify.h.  Verify that time_t
29386         is an integer type no wider than long int.
29387
29388 2007-06-18  Jim Meyering  <jim@meyering.net>
29389
29390         New module: mreadlink-with-size.
29391         * MODULES.html.sh: Add mreadlink-with-size.
29392         * modules/mreadlink-with-size: New module
29393         * modules/canonicalize (Depends-on): Depend on mreadlink-with-size,
29394         not xreadlink-with-size.
29395         * lib/mreadlink-with-size.c, lib/mreadlink.h: New files.
29396
29397 2007-06-16  Bruno Haible  <bruno@clisp.org>
29398
29399         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Catch the MacOS X 10.4 bug.
29400         * doc/functions/frexpl.texi: Document the MacOS X 10.4 bug.
29401         Reported by Gary V. Vaughan <gary@gnu.org>.
29402
29403 2007-06-15  Paul Eggert  <eggert@cs.ucla.edu>
29404
29405         Revamp lchown so that it lives in unistd.h where it belongs.
29406         * lib/lchown.h: Remove.
29407         * lib/dirchownmod.c: Don't include lib/lchown.h.
29408         * lib/fchownat.c: Likewise.
29409         * lib/openat.c: Likewise.
29410         * lib/lchown.c (REPLACE_CHOWN): Define to 0 if the system chown
29411         does not follow symlinks.
29412         (EOPNOTSUPP): Define if not defined.
29413         * lib/unistd_.h (chown): Do not replace if REPLADE_CHOWN
29414         is defined to 0.
29415         (lchown): New decl.
29416         * m4/lchown.m4 (gl_FUNC_LCHOWN): Require gl_UNISTD_H_DEFAULTS.
29417         Do not check for lchown decl.
29418         Set REPLACE_LCHOWN.
29419         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Set GNULIB_LCHOWN,
29420         REPLACE_LCHOWN.
29421         * modules/chown: Make it clear it follows symlinks.
29422         * modules/lchown: Make it clear it doesn't follow symlinks.
29423         (Files): Remove lib/lchown.h
29424         (Depends-on): Add unistd.
29425         (configure.ac): Add gl_UNISTD_MODULE_INDICATOR([lchown]).
29426         (Include): Include <unistd.h>, not "lchown.h".
29427         * modules/unistd (unistd.h): Substitude GNULIB_LCHOWN and
29428         REPLACE_LCHOWN.
29429
29430 2007-06-15  Jim Meyering  <jim@meyering.net>
29431
29432         Change license (GPL to LGPL) of fsusage and dependents.
29433         * modules/fsusage (License): Change to LGPL.
29434         * modules/full-read (License): Likewise.
29435         * modules/full-write (License): Likewise.
29436         * modules/safe-read (License): Likewise.
29437         * modules/safe-write (License): Likewise.
29438
29439 2007-06-14  Ben Pfaff  <blp@gnu.org>
29440
29441         Missing part of allocsa -> malloca transition.
29442         * modules/relocatable-prog-wrapper: gl_ALLOCSA should be
29443         gl_MALLOCA.
29444
29445 2007-06-12  Bruno Haible  <bruno@clisp.org>
29446
29447         * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS): Guess no when cross-compiling
29448         to ia64, x86_64, i386.
29449         Reported by Eric Blake.
29450
29451 2007-06-12  Bruno Haible  <bruno@clisp.org>
29452
29453         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Guess no also when
29454         cross-compiling to x86_64.
29455
29456 2007-06-12  Paul Eggert  <eggert@cs.ucla.edu>
29457
29458         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Fix POSIX sed portability
29459         glitch reported by Ralf Wildenhues in
29460         <http://lists.gnu.org/archive/html/bug-gnulib/2007-06/msg00114.html>.
29461
29462         * m4/regex.m4 (gl_REGEX): Catch a bug with [[:alnum:]_-] reported by
29463         Vin Shelton.
29464
29465 2007-06-11  Bruno Haible  <bruno@clisp.org>
29466
29467         * lib/printf-args.c (PRINTF_FETCHARGS) [ENABLE_UNISTDIO]: Fix NULL
29468         replacement string.
29469         Reported by Eric Blake.
29470
29471 2007-06-10  Bruno Haible  <bruno@clisp.org>
29472
29473         Prepare vasnprintf code for use with Unicode strings.
29474         * lib/printf-args.h (PRINTF_FETCHARGS): New macro.
29475         (arg_type) [ENABLE_UNISTDIO]: Define TYPE_U8_STRING, TYPE_U16_STRING,
29476         TYPE_U32_STRING.
29477         (argument) [ENABLE_UNISTDIO]: Add a_u8_string, a_u16_string,
29478         a_u32_string variants.
29479         (PRINTF_FETCHARGS): Renamed from printf_fetchargs.
29480         * lib/printf-args.c: Don't include config.h and the specification
29481         header if PRINTF_FETCHARGS is already defined.
29482         (PRINTF_FETCHARGS): Renamed from printf_fetchargs.
29483         (PRINTF_FETCHARGS) [ENABLE_UNISTDIO]: Add code for TYPE_U8_STRING,
29484         TYPE_U16_STRING, TYPE_U32_STRING.
29485         * lib/printf-parse.h [ENABLE_UNISTDIO] (u8_directive, u8_directives,
29486         u16_directive, u16_directives, u32_directive, u32_directives): New
29487         types.
29488         (ulc_printf_parse, u8_printf_parse, u16_printf_parse, u32_printf_parse):
29489         New declarations.
29490         * lib/printf-parse.c: Don't include config.h and the specification
29491         header if PRINTF_PARSE is already defined. Eliminate the set of
29492         parameters for WIDE_CHAR_VERSION; the user of this file must provide
29493         them now. Include c-ctype.h.
29494         (PRINTF_PARSE) [ENABLE_UNISTDIO]: Add code implementing the 'U'
29495         directive and CHAR_T_ONLY_ASCII.
29496         * lib/vasnprintf.c: Don't include config.h and the specification header
29497         if VASNPRINTF is already defined.
29498         (DCHAR_IS_TCHAR, DCHAR_CPY): New macros.
29499         (VASNPRINTF): Use PRINTF_FETCHARGS instead of printf_fetchargs. Use
29500         DCHAR_CPY. Handle the case that DCHAR_T and FCHAR_T are not the same
29501         type. Handle the case that TCHAR_T and FCHAR_T are not of the same
29502         size. Handle the case that DCHAR_T and TCHAR_T are not the same type,
29503         add a conversion from TCHAR_T[] to DCHAR_T[], and rework the padding
29504         code accordingly.
29505         (VASNPRINTF) [ENABLE_UNISTDIO]: Implement the 'U' directive. Enable
29506         pad_ourselves also in this case, with the 'c' and 's' directives, and
29507         with a different notion of "width".
29508         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_WITH_EXTRAS): New macros.
29509
29510 2007-06-10  Bruno Haible  <bruno@clisp.org>
29511
29512         * modules/unistr/u32-mbsnlen: New file.
29513         * lib/unistr/u32-mbsnlen.c: New file.
29514
29515         * modules/unistr/u16-mbsnlen: New file.
29516         * lib/unistr/u16-mbsnlen.c: New file.
29517
29518         * modules/unistr/u8-mbsnlen: New file.
29519         * lib/unistr/u8-mbsnlen.c: New file.
29520
29521         * lib/unistr.h (u8_mbsnlen, u16_mbsnlen, u32_mbsnlen): New
29522         declarations.
29523
29524 2007-06-10  Bruno Haible  <bruno@clisp.org>
29525
29526         * lib/string_.h (mbsnlen): New declaration.
29527         * lib/mbsnlen.c: New file.
29528         * m4/mbsnlen.m4: New file.
29529         * modules/mbsnlen: New file.
29530         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Set GNULIB_MBSNLEN.
29531         * modules/string (string.h): Substitute GNULIB_MBSNLEN.
29532         * MODULES.html.sh (Internationalization functions): Add mbsnlen.
29533
29534 2007-06-10  Bruno Haible  <bruno@clisp.org>
29535
29536         * lib/mbslen.c: Include <stdlib.h>, needed for MB_CUR_MAX.
29537
29538 2007-06-10  Bruno Haible  <bruno@clisp.org>
29539
29540         * lib/mbiter.h: Include <stddef.h>, needed for ptrdiff_t.
29541         * lib/mbuiter.h: Likewise.
29542
29543 2007-06-10  Bruno Haible  <bruno@clisp.org>
29544
29545         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF): Check for _snprintf
29546         declaration.
29547
29548 2007-06-10  Karl Berry  <karl@gnu.org>
29549
29550         * config/srclist.txt: remove gettext entries, Bruno prefers
29551         to update individually.
29552
29553 2007-06-10  Bruno Haible  <bruno@clisp.org>
29554
29555         * lib/vasnprintf.c (VASNPRINTF) [!USE_SNPRINTF]: Remove variable
29556         'maxlen'. Ensure only length + width bytes are allocated, not
29557         length + 1 + width.
29558
29559 2007-06-09  Bruno Haible  <bruno@clisp.org>
29560
29561         * lib/vasnprintf.c (FCHAR_T, DCHAR_T, TCHAR_T): New macros.
29562         (CHAR_T): Remove macro.
29563         (VASNPRINTF): Update.
29564
29565 2007-06-09  Bruno Haible  <bruno@clisp.org>
29566
29567         * MODULES.html.sh (Unicode string functions): Add the new modules.
29568
29569         * modules/uniconv/u32-conv-to-enc: New file.
29570         * lib/uniconv/u32-conv-to-enc.c: New file.
29571         * modules/uniconv/u32-conv-to-enc-tests: New file.
29572         * tests/uniconv/test-u32-conv-to-enc.c: New file.
29573
29574         * modules/uniconv/u16-conv-to-enc: New file.
29575         * lib/uniconv/u16-conv-to-enc.c: New file.
29576         * lib/uniconv/u-conv-to-enc.h: New file.
29577         * modules/uniconv/u16-conv-to-enc-tests: New file.
29578         * tests/uniconv/test-u16-conv-to-enc.c: New file.
29579
29580         * modules/uniconv/u8-conv-to-enc: New file.
29581         * lib/uniconv/u8-conv-to-enc.c: New file.
29582         * modules/uniconv/u8-conv-to-enc-tests: New file.
29583         * tests/uniconv/test-u8-conv-to-enc.c: New file.
29584
29585         * lib/uniconv.h (u8_conv_to_encoding, u16_conv_to_encoding,
29586         u32_conv_to_encoding): New declarations.
29587
29588 2007-06-09  Bruno Haible  <bruno@clisp.org>
29589
29590         * tests/uniconv/test-u32-strconv-to-enc.c (main): Remove unused code.
29591
29592 2007-06-09  Bruno Haible  <bruno@clisp.org>
29593
29594         Rename 'allocsa' -> 'malloca', 'freesa' -> 'freea'.
29595         * modules/malloca: Renamed from modules/allocsa, updated.
29596         * lib/malloca.h: Renamed from lib/allocsa.h, updated.
29597         * lib/malloca.c: Renamed from lib/allocsa.c, updated.
29598         * lib/malloca.valgrind: Renamed from lib/allocsa.valgrind, updated.
29599         * m4/malloca.m4: Renamed from m4/allocsa.m4, updated.
29600         * modules/malloca-tests: Renamed from modules/allocsa-tests, updated.
29601         * tests/test-malloca.c: Renamed from tests/test-allocsa.c, updated.
29602         * modules/xmalloca: Renamed from modules/xallocsa, updated.
29603         * lib/xmalloca.h: Renamed from lib/xallocsa.h, updated.
29604         * lib/xmalloca.c: Renamed from lib/xallocsa.c, updated.
29605         * modules/c-strcasestr (Depends-on): Update.
29606         * lib/c-strcasestr.c: Update.
29607         * modules/c-strstr (Depends-on): Update.
29608         * lib/c-strstr.c: Update.
29609         * modules/canonicalize-lgpl (Depends-on): Update.
29610         * lib/canonicalize-lgpl.c: Update.
29611         * modules/clean-temp (Depends-on): Update.
29612         * lib/clean-temp.c: Update.
29613         * modules/csharpcomp (Depends-on): Update.
29614         * lib/csharpcomp.c: Update.
29615         * modules/csharpexec (Depends-on): Update.
29616         * lib/csharpexec.c: Update.
29617         * modules/javacomp (Depends-on): Update.
29618         * lib/javacomp.c: Update.
29619         * modules/javaexec (Depends-on): Update.
29620         * lib/javaexec.c: Update.
29621         * modules/mbscasestr (Depends-on): Update.
29622         * lib/mbscasestr.c: Update.
29623         * modules/mbsstr (Depends-on): Update.
29624         * lib/mbsstr.c: Update.
29625         * modules/setenv (Depends-on): Update.
29626         * lib/setenv.c: Update.
29627         * modules/strcasestr (Depends-on): Update.
29628         * lib/strcasestr.c: Update.
29629         * modules/striconveha (Depends-on): Update.
29630         * lib/striconveha.c: Update.
29631         * modules/relocatable-prog-wrapper (Files): Update.
29632         * lib/relocwrapper.c: Update.
29633         * build-aux/install-reloc: Update.
29634         * MODULES.html.sh (Memory management functions <stdlib.h>): Update.
29635
29636 2007-06-08  Bruno Haible  <bruno@clisp.org>
29637
29638         Port to uClibc.
29639         * lib/fbufmode.c (fbufmode): Add special code for uClibc.
29640         * lib/fpurge.c (fpurge): Likewise.
29641         * lib/freading.c (freading): Likewise.
29642         * lib/fseeko.c (rpl_fseeko): Likewise.
29643         * lib/fseterr.c (fseterr): Likewise.
29644         * lib/fwriting.c (fwriting): Likewise.
29645         * tests/test-fflush.c (main): Avoid a failure on uClibc.
29646
29647 2007-06-08  Bruno Haible  <bruno@clisp.org>
29648
29649         * m4/intlmacosx.m4: New file, extracted from gettext.m4.
29650         * m4/gettext.m4 (gt_INTL_MACOSX): Remove macro, moved to intlmacosx.m4.
29651         * modules/gettext (Files): Add m4/intlmacosx.m4.
29652
29653 2007-06-07  Bruno Haible  <bruno@clisp.org>
29654
29655         * modules/localename-tests: New file.
29656         * tests/test-localename.c: New file.
29657
29658         New module 'localename'.
29659         * lib/localename.h: New file.
29660         * lib/localename.c: New file, from GNU gettext.
29661         * m4/localename.m4: New file.
29662         * modules/localename: New file.
29663
29664 2007-06-07  Bruno Haible  <bruno@clisp.org>
29665
29666         Work around the lack of <wchar.h> on some builds of uClibc.
29667         * doc/headers/wchar.texi: Update.
29668         * lib/wchar_.h: Include <wchar.h> only if it exists.
29669         * m4/wchar.m4 (gl_WCHAR_H): Check for <wchar.h>. Set HAVE_WCHAR_H.
29670         * m4/stdint.m4 (gl_STDINT_H): Check for <wchar.h>.
29671         (gl_STDINT_TYPE_PROPERTIES): Don't try to include <wchar.h> if it
29672         doesn't exist.
29673         * modules/wchar (wchar.h): Substitute HAVE_WCHAR_H.
29674         * modules/mbfile (Depends-on): Add wchar.
29675         * modules/mbiter (Depends-on): Likewise.
29676         * modules/mbuiter (Depends-on): Likewise.
29677         Reported by Simon Josefsson.
29678
29679 2007-06-06  Paul Eggert  <eggert@cs.ucla.edu>
29680
29681         Work around problem reported by Steven M. Schweda in
29682         <http://lists.gnu.org/archive/html/bug-tar/2007-06/msg00002.html>:
29683         Tru64 5.1B with the Compaq compiler environment installed declares
29684         an 'isblank' function but does not define it in the C library.
29685         * lib/fnmatch.c (isblank): Check for HAVE_ISBLANK, too.
29686         * lib/regex_internal.h (isblank): Likewise.
29687         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Check for isblank existence.
29688         * m4/regex.m4 (gl_PREREQ_REGEX): Likewise.
29689
29690 2007-06-05  Bruno Haible  <bruno@clisp.org>
29691
29692         Fix *printf so that it recognizes non-IEEE numbers on i386, x86_64,
29693         ia64.
29694         * modules/printf-safe: New file.
29695         * modules/fprintf-posix (Depends-on): Add printf-safe.
29696         * modules/printf-posix (Depends-on): Likewise.
29697         * modules/snprintf-posix (Depends-on): Likewise.
29698         * modules/sprintf-posix (Depends-on): Likewise.
29699         * modules/vasnprintf-posix (Depends-on): Likewise.
29700         * modules/vasprintf-posix (Depends-on): Likewise.
29701         * modules/vfprintf-posix (Depends-on): Likewise.
29702         * modules/vprintf-posix (Depends-on): Likewise.
29703         * modules/vsnprintf-posix (Depends-on): Likewise.
29704         * modules/vsprintf-posix (Depends-on): Likewise.
29705         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Require
29706         AC_C_BIGENDIAN. Define CHECK_PRINTF_SAFE if printf-safe is used. Test
29707         non-IEEE numbers on i386, x86_64, ia64. When cross-compiling, guess
29708         "no" on i386, x86_64, ia64.
29709         * tests/test-snprintf-posix.h (LDBL80_WORDS): New macro.
29710         (test_function): Check result of %La, %Lf, %Le, %Lg on non-IEEE numbers
29711         on i386, x86_64, ia64.
29712         * tests/test-sprintf-posix.h (LDBL80_WORDS): New macro.
29713         (test_function): Check result of %La, %Lf, %Le, %Lg on non-IEEE numbers
29714         on i386, x86_64, ia64.
29715         * tests/test-vasnprintf-posix.c: Include float.h.
29716         (LDBL80_WORDS): New macro.
29717         (test_function): Check result of %La, %Lf, %Le, %Lg on non-IEEE numbers
29718         on i386, x86_64, ia64.
29719         * tests/test-vasprintf-posix.c: Include float.h.
29720         (LDBL80_WORDS): New macro.
29721         (test_function): Check result of %La, %Lf, %Le, %Lg on non-IEEE numbers
29722         on i386, x86_64, ia64.
29723         * tests/test-snprintf-posix.c: Include float.h.
29724         * tests/test-sprintf-posix.c: Likewise.
29725         * tests/test-vsnprintf-posix.c: Likewise.
29726         * tests/test-vsprintf-posix.c: Likewise.
29727
29728 2007-06-05  Bruno Haible  <bruno@clisp.org>
29729
29730         Fix isnanl so that it recognizes non-IEEE numbers on i386, x86_64, ia64.
29731         * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS): Require AC_C_BIGENDIAN. Test
29732         non-IEEE numbers on i386, x86_64, ia64.
29733         (gl_LONG_DOUBLE_EXPONENT_LOCATION): Require AC_C_BIGENDIAN.
29734         * lib/isnan.c (FUNC): Add special code for i386, x86_64, ia64.
29735         * tests/test-isnanl.h: Include float.h.
29736         (main): Check also non-IEEE numbers on i386, x86_64, ia64.
29737
29738 2007-06-05  Bruno Haible  <bruno@clisp.org>
29739
29740         * lib/vasnprintf.c (VASNPRINTF): Do the extra handling of NaN and Inf
29741         also the %a / %A. Handle the %a / %A code before this extra handling.
29742
29743 2007-06-05  Bruno Haible  <bruno@clisp.org>
29744
29745         * lib/vasnprintf.c [NEED_PRINTF_LONG_DOUBLE ||
29746         NEED_PRINTF_INFINITE_LONG_DOUBLE]: Include fpucw.h.
29747
29748 2007-06-05  Bruno Haible  <bruno@clisp.org>
29749
29750         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_INFINITE_LONG_DOUBLE): Fix
29751         typo in variable name.
29752
29753 2007-06-05  Eric Blake  <ebb9@byu.net>
29754
29755         * m4/lseek.m4 (gl_FUNC_LSEEK): Work when cross-compiling.
29756         Reported by Simon Josefsson.
29757
29758 2007-06-04  Bruno Haible  <bruno@clisp.org>
29759
29760         Avoid test failures on some PowerPC platforms.
29761         * tests/test-printf-frexpl.c (MIN_NORMAL_EXP, MIN_SUBNORMAL_EXP):
29762         Define differently for PowerPC.
29763         * tests/test-frexpl.c (MIN_NORMAL_EXP): Likewise.
29764         Reported by Gary V. Vaughan <gary@gnu.org>.
29765
29766 2007-06-02  Bruno Haible  <bruno@clisp.org>
29767
29768         Fix test-stdint failure on FreeBSD/ia64.
29769         * m4/stdint.m4 (gl_STDINT_H): Check the values of PTRDIFF_MIN,
29770         PTRDIFF_MAX, SIG_ATOMIC_MIN, SIG_ATOMIC_MAX, SIZE_MAX, WCHAR_MIN,
29771         WCHAR_MAX, WINT_MIN, WINT_MAX entirely, not only for plausibility.
29772         * doc/headers/stdint.texi: Update.
29773
29774 2007-06-01  Bruno Haible  <bruno@clisp.org>
29775
29776         * tests/test-binary-io.c (main): Pass a third argument to open().
29777         Reported by Gary V. Vaughan <gary@gnu.org>.
29778
29779 2007-06-01  Bruno Haible  <bruno@clisp.org>
29780
29781         * doc/functions/frexpl.texi: Update for mingw.
29782
29783 2007-06-01  Bruno Haible  <bruno@clisp.org>
29784
29785         * tests/test-lseek.c (main): Disable test of errno for invalid third
29786         argument.
29787         * doc/functions/lseek.texi: Update.
29788         Reported by Gary V. Vaughan <gary@gnu.org>.
29789
29790 2007-05-28  Bruno Haible  <bruno@clisp.org>
29791
29792         * m4/intl.m4 (AM_INTL_SUBDIR): Substitute variables WOE32, WINDRES.
29793
29794 2007-05-31  Eric Blake  <ebb9@byu.net>
29795
29796         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Guess no on mingw when
29797         cross compiling.
29798
29799 2007-05-30  Eric Blake  <ebb9@byu.net>
29800         and Bruno Haible  <bruno@clisp.org>
29801
29802         Work around mingw test failures exposed by m4-1.4.9b.
29803         * m4/stdint.m4 (gl_STDINT_H): Detect mingw bug.
29804         * tests/test-unistd.c: Disable uid_t and git_t tests for the
29805         moment.
29806
29807 2007-05-30  Bruno Haible  <bruno@clisp.org>
29808
29809         * tests/test-lseek.c: Explicitly close file descriptors 0 and 1 before
29810         assuming that they are closed. Needed on HP-UX 11.
29811
29812 2007-05-29  Bruno Haible  <bruno@clisp.org>
29813
29814         Fix a problem with #include_next.
29815         * lib/dirent_.h: Split the double-inclusion guard.
29816         * lib/fcntl_.h: Likewise.
29817         * lib/float_.h: Likewise.
29818         * lib/iconv_.h: Likewise.
29819         * lib/inttypes_.h: Likewise.
29820         * lib/locale_.h: Likewise.
29821         * lib/math_.h: Likewise.
29822         * lib/netinet_in_.h: Likewise.
29823         * lib/search_.h: Likewise.
29824         * lib/signal_.h: Likewise.
29825         * lib/stdint_.h: Likewise.
29826         * lib/stdio_.h: Likewise.
29827         * lib/stdlib_.h: Likewise.
29828         * lib/string_.h: Likewise.
29829         * lib/sys_select_.h: Likewise.
29830         * lib/sys_socket_.h: Likewise.
29831         * lib/sys_stat_.h: Likewise.
29832         * lib/sys_time_.h: Likewise.
29833         * lib/sysexits_.h: Likewise.
29834         * lib/time_.h: Likewise.
29835         * lib/unistd_.h: Likewise.
29836         * lib/wchar_.h: Likewise.
29837         * lib/wctype_.h: Likewise.
29838
29839 2007-05-29  Bruno Haible  <bruno@clisp.org>
29840
29841         * tests/test-unistd.c: Disable the tests for useconds_t and intptr_t
29842         for the moment.
29843
29844 2007-05-29  Bruno Haible  <bruno@clisp.org>
29845
29846         * m4/isnan.m4 (gl_DOUBLE_EXPONENT_LOCATION): Silence the AC_C_BIGENDIAN
29847         invocation.
29848         Reported by Eric Blake.
29849
29850 2007-05-29  Bruno Haible  <bruno@clisp.org>
29851
29852         * m4/isnanf.m4 (gl_FLOAT_EXPONENT_LOCATION): Fix typo in cross-
29853         compiling case.
29854
29855 2007-05-29  Eric Blake  <ebb9@byu.net>
29856             Bruno Haible  <bruno@clisp.org>
29857
29858         * m4/isnanf.m4 (gl_FUNC_ISNANF_NO_LIBM): Avoid syntax error on
29859         cross compiles.
29860
29861 2007-05-28  Eric Blake  <ebb9@byu.net>
29862
29863         * modules/closein-tests (test_closein_LDADD): Support test on
29864         cygwin with libtool.
29865
29866 2007-05-28  Bruno Haible  <bruno@clisp.org>
29867
29868         * tests/uniconv/test-u16-conv-from-enc.c: Remove #ifdef HAVE_CONFIG_H.
29869         * tests/uniconv/test-u16-strconv-from-enc.c: Likewise.
29870         * tests/uniconv/test-u16-strconv-to-enc.c: Likewise.
29871         * tests/uniconv/test-u32-conv-from-enc.c: Likewise.
29872         * tests/uniconv/test-u32-strconv-from-enc.c: Likewise.
29873         * tests/uniconv/test-u32-strconv-to-enc.c: Likewise.
29874         * tests/uniconv/test-u8-conv-from-enc.c: Likewise.
29875         * tests/uniconv/test-u8-strconv-from-enc.c: Likewise.
29876         * tests/uniconv/test-u8-strconv-to-enc.c: Likewise.
29877
29878 2007-05-28  Eric Blake  <ebb9@byu.net>
29879
29880         Unconditionally include <config.h> in unit tests.
29881         * tests/test-alloca-opt.c: Remove #ifdef HAVE_CONFIG_H.
29882         * tests/test-allocsa.c, tests/test-arcfour.c,
29883         tests/test-arctwo.c, tests/test-argmatch.c, tests/test-argp.c,
29884         tests/test-array_list.c, tests/test-array_oset.c,
29885         tests/test-atexit.c, test-avltree_list.c, test-avltree_oset.c,
29886         test-avltreehash_list.c, test-base64.c, test-binary-io.c,
29887         test-c-ctype.c, test-c-strcasecmp.c, test-c-strcasestr.c,
29888         test-c-strncasecmp.c, test-c-strstr.c, test-canonicalize-lgpl.c,
29889         test-carray_list.c, test-crc.c, test-des.c, test-dirname.c,
29890         test-fflush.c, test-fprintf-posix.c, test-gc-arcfour.c,
29891         test-gc-arctwo.c, test-gc-des.c, test-gc-hmac-md5.c,
29892         test-gc-hmac-sha1.c, test-gc-md2.c, test-gc-md4.c, test-gc-md5.c,
29893         test-gc-pbkdf2-sha1.c, test-gc-rijndael.c, test-gc-sha1.c,
29894         test-gc.c, test-getpass.c, test-hmac-md5.c, test-hmac-sha1.c,
29895         test-iconv.c, test-linked_list.c, test-linkedhash_list.c,
29896         test-lock.c, test-mbscasecmp.c, test-mbscasestr1.c,
29897         test-mbscasestr2.c, test-mbscasestr3.c, test-mbscasestr4.c,
29898         test-mbschr.c, test-mbscspn.c, test-mbsncasecmp.c, test-mbspbrk.c,
29899         test-mbspcasecmp.c, test-mbsrchr.c, test-mbsspn.c, test-mbsstr1.c,
29900         test-mbsstr2.c, test-mbsstr3.c, test-md2.c, test-md4.c,
29901         test-md5.c, test-memmem.c, test-printf-posix.c,
29902         test-rbtree_list.c, test-rbtree_oset.c, test-rbtreehash_list.c,
29903         test-read-file.c, test-rijndael.c, test-snprintf-posix.c,
29904         test-snprintf.c, test-sprintf-posix.c, test-stdint.c,
29905         test-strcasestr.c, test-striconv.c, test-striconveh.c,
29906         test-striconveha.c, test-tls.c, test-vasnprintf-posix.c,
29907         test-vasnprintf-posix2.c, test-vasnprintf.c,
29908         test-vasprintf-posix.c, test-vasprintf.c, test-verify.c,
29909         test-vfprintf-posix.c, test-vprintf-posix.c,
29910         test-vsnprintf-posix.c, test-vsnprintf.c, test-vsprintf-posix.c,
29911         test-xvasprintf.c: Likewise.
29912
29913 2007-05-28  Bruno Haible  <bruno@clisp.org>
29914
29915         * gnulib-tool (func_import): Remember the --with-tests command-line
29916         option through the macro gl_WITH_TESTS in the gnulib-cache.m4.
29917         Reported by Eric Blake.
29918
29919 2007-05-28  Bruno Haible  <bruno@clisp.org>
29920
29921         * modules/ftell-tests: New file.
29922         * tests/test-ftell.c: New file, based on tests/test-ftello.c.
29923         * tests/test-ftell.sh: New file, based on tests/test-ftello.sh.
29924
29925         * lib/ftell.c: New file.
29926         * modules/ftell: New file.
29927         * m4/ftell.m4: New file.
29928         * doc/functions/ftell.texi: Update.
29929         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_FTELL,
29930         REPLACE_FTELL.
29931         * lib/stdio_.h (rpl_ftell): New declaration.
29932         * modules/stdio (Makefile.am): Substitute also GNULIB_FTELL,
29933         REPLACE_FTELL.
29934
29935 2007-05-28  Eric Blake  <ebb9@byu.net>
29936
29937         * lib/allocsa.h (safe_alloca): Avoid compiler warning.
29938
29939 2007-05-28  Bruno Haible  <bruno@clisp.org>
29940
29941         * modules/fseek-tests: New file.
29942         * tests/test-fseek.c: New file, based on tests/test-fseeko.c.
29943         * tests/test-fseek.sh: New file, based on tests/test-fseeko.sh.
29944
29945         * lib/fseek.c: New file.
29946         * modules/fseek: New file.
29947         * m4/fseek.m4: New file.
29948         * doc/functions/fseek.texi: Update.
29949         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_FSEEK,
29950         REPLACE_FSEEK.
29951         * lib/stdio_.h (rpl_fseek): New declaration.
29952         * modules/stdio (Makefile.am): Substitute also GNULIB_FSEEK,
29953         REPLACE_FSEEK.
29954
29955 2007-05-28  Bruno Haible  <bruno@clisp.org>
29956
29957         * lib/stdio_.h (fflush): More comments.
29958
29959 2007-05-28  Bruno Haible  <bruno@clisp.org>
29960
29961         * m4/lseek.m4 (gl_FUNC_LSEEK): When not cross-compiling, perform a real
29962         runtime test.
29963
29964 2007-05-28  Eric Blake  <ebb9@byu.net>
29965
29966         Improve lseek module.
29967         * lib/lseek.c (rpl_lseek): Detect EBADF on mingw.
29968         * lib/unistd_.h (lseek): Scale back link warning message.
29969         * tests/test-lseek.c: Beef up test.
29970         * tests/test-lseek.sh: Exercise more facets of lseek.
29971         Reported by Bruno Haible.
29972
29973 2007-05-28  Bruno Haible  <bruno@clisp.org>
29974
29975         * tests/test-unistd.c: Test all the types that <unistd.h> is expected
29976         to define.
29977
29978 2007-05-27  Bruno Haible  <bruno@clisp.org>
29979
29980         * m4/iconv.m4 (AM_ICONV_LINK): Fix 2007-03-31 patch.
29981
29982 2007-05-27  Bruno Haible  <bruno@clisp.org>
29983
29984         * modules/openmp: New file.
29985         * m4/openmp.m4: New file, taken from autoconf's CVS with changes by
29986         Noah Misch.
29987
29988 2007-05-26  Bruno Haible  <bruno@clisp.org>
29989
29990         * modules/chdir-long (Depends-on): Add fchdir.
29991         * modules/chdir-safer (Depends-on): Likewise.
29992         * modules/fts (Depends-on): Likewise.
29993         * modules/fts-lgpl (Depends-on): Likewise.
29994         * modules/openat (Depends-on): Likewise.
29995         * modules/savewd (Depends-on): Likewise.
29996
29997 2007-05-24  Eric Blake  <ebb9@byu.net>
29998
29999         Fix lseek on mingw.
30000         * modules/lseek: New module.
30001         * m4/lseek.m4: New file.
30002         * lib/lseek.c: New file.
30003         * modules/lseek-tests: New file.
30004         * tests/test-lseek.c: New file.
30005         * tests/test-lseek.sh: New file.
30006         * MODULES.html.sh: Document lseek module.
30007         * modules/fflush (Depends-on): Add lseek, fseeko.
30008         * modules/fseeko (Depends-on): Likewise.
30009         * modules/ftello (Depends-on): Likewise.
30010         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Replace fseek[o] if lseek is
30011         broken.
30012         * m4/ftello.m4 (gl_FUNC_FTELLO): Replace ftell[o] if lseek is
30013         broken.
30014         * m4/fflush.m4 (gl_REPLACE_FFLUSH): Trigger fseeko module.
30015         * lib/fseeko.c (rpl_fseeko): Quit early on non-seekable files.
30016         * lib/ftello.c (rpl_ftello): Likewise.
30017         * tests/test-fseeko.c (main): Test this.
30018         * tests/test-fseeko.sh: Likewise.
30019         * tests/test-ftello.c (main): Likewise.
30020         * tests/test-ftello.sh: Likewise.
30021         * lib/stdio_.h (fseek, ftell): Simplify, since missing fseeko now
30022         implies replacing fseek.
30023         * modules/stdio (Makefile.am): No longer need HAVE_FSEEKO,
30024         HAVE_FTELLO.
30025         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add lseek info.
30026         * modules/unistd (Makefile.am): Likewise.
30027         * lib/unistd_.h (lseek): Declare a replacement.
30028         * doc/functions/lseek.texi (lseek): Document this fix.
30029         * doc/functions/fseek.texi (fseek): Likewise.
30030         * doc/functions/ftell.texi (ftell): Likewise.
30031
30032 2007-05-24  Bruno Haible  <bruno@clisp.org>
30033
30034         * tests/test-vasnprintf-posix.c (test_function): Allow up to 50 bytes
30035         in the printed representation of a NaN.
30036         * tests/test-vasprintf-posix.c (test_function): Likewise.
30037         * tests/test-snprintf-posix.h (test_function): Likewise.
30038         * tests/test-sprintf-posix.h (test_function): Likewise.
30039         Reported by Eric Blake.
30040
30041 2007-05-23  Eric Blake  <ebb9@byu.net>
30042
30043         Fix fseeko/ftello on cygwin 1.5.24.
30044         * doc/functions/fseeko.texi (fseeko): Document the fix.
30045         * doc/functions/ftello.texi (ftello): Document the fix.
30046         * doc/functions/stdin.texi (stdin): Document the cygwin bug.
30047         * doc/functions/stdout.text (stdout): New file.
30048         * doc/functions/stderr.text (stderr): New file.
30049         * doc/gnulib.texi (Function Substitutes): Use new files.
30050         * tests/test-fseeko.c (main): Check for broken fseeko on cygwin
30051         prior to 1.7.0.
30052         * tests/test-ftello.c (main): Likewise for ftello.
30053         * tests/test-fseeko.sh: New file.
30054         * tests/test-ftello.sh: New file.
30055         * modules/fseeko-tests (Makefile.am): Ensure test-fseeko is run
30056         with seekable stdin.
30057         * modules/ftello-tests (Makefile.am): Likewise for test-ftello.
30058         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Detect the cygwin bug.
30059         (gl_REPLACE_FSEEKO): New macro.
30060         * m4/ftello.m4 (gl_FUNC_FTELLO, gl_REPLACE_FTELLO): Likewise.
30061         * modules/fseeko (Files): Distribute fseeko.c.
30062         * modules/ftello (Files): Distribute ftello.c.
30063         * lib/fseeko.c (rpl_fseeko) [__CYGWIN__]: Convert stdin to 64-bit
30064         mode.
30065         * lib/ftello.c (rpl_ftello): New file.
30066         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Allow replacement of
30067         fseeko, ftello.
30068         (gl_STDIN_LARGE_OFFSET): New macro.
30069         * modules/stdio (Makefile.am): Perform the replacement.
30070         * lib/stdio_.h (rpl_fseeko, rpl_ftello): Define when needed.
30071
30072 2007-05-23  Bruno Haible  <bruno@clisp.org>
30073
30074         * lib/stdio_.h (fseeko, ftello): Provide a link warning only if
30075         GNULIB_POSIXCHECK is defined.
30076
30077 2007-05-21  Bruno Haible  <bruno@clisp.org>
30078
30079         * m4/printf.m4 (gl_PRINTF_INFINITE, gl_PRINTF_INFINITE_LONG_DOUBLE):
30080         Check also the output for NaN arguments. When cross-compiling, guess
30081         no on IRIX.
30082         * lib/vasnprintf.c: Update comments.
30083         * tests/test-vasnprintf-posix.c (strisnan): New function.
30084         (test_function): Use it.
30085         * tests/test-vasprintf-posix.c (strisnan): New function.
30086         (test_function): Use it.
30087         * tests/test-snprintf-posix.h (strisnan): New function.
30088         (test_function): Use it.
30089         * tests/test-sprintf-posix.h (strisnan): New function.
30090         (test_function): Use it.
30091         Reported by Eric Blake.
30092
30093 2007-05-20  Bruno Haible  <bruno@clisp.org>
30094
30095         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Add test for large finite
30096         numbers that fails on BeOS.
30097         * doc/functions/frexpl.texi: Update.
30098
30099 2007-05-20  Jim Meyering  <jim@meyering.net>
30100
30101         * NEWS: Mention the incompatible change (s/futimens/gl_futimens/)
30102         forced upon us by glibc-2.6.
30103
30104 2007-05-20  Bruno Haible  <bruno@clisp.org>
30105
30106         Fix *printf result for NaN, Inf on AIX, Solaris, OSF/1.
30107         * m4/printf.m4 (gl_PRINTF_INFINITE): Update cross-compiling guesses.
30108         (gl_PRINTF_INFINITE_LONG_DOUBLE): New macro.
30109         * lib/vasnprintf.c: Use NEED_PRINTF_INFINITE_DOUBLE instead of
30110         NEED_PRINTF_INFINITE.
30111         (is_infinitel): New function.
30112         (VASNPRINTF): Handle NEED_PRINTF_INFINITE_LONG_DOUBLE case.
30113         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_INFINITE_DOUBLE): Renamed from
30114         gl_PREREQ_VASNPRINTF_INFINITE.
30115         (gl_PREREQ_VASNPRINTF_INFINITE_LONG_DOUBLE): New macro.
30116         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
30117         gl_PRINTF_INFINITE_LONG_DOUBLE and test its result. Invoke
30118         gl_PREREQ_VASNPRINTF_INFINITE_DOUBLE and
30119         gl_PREREQ_VASNPRINTF_INFINITE_LONG_DOUBLE instead of
30120         gl_PREREQ_VASNPRINTF_INFINITE.
30121         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
30122         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
30123         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
30124         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
30125         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
30126         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
30127         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
30128         * doc/functions/fprintf.texi: Update.
30129         * doc/functions/printf.texi: Update.
30130         * doc/functions/snprintf.texi: Update.
30131         * doc/functions/sprintf.texi: Update.
30132         * doc/functions/vfprintf.texi: Update.
30133         * doc/functions/vprintf.texi: Update.
30134         * doc/functions/vsnprintf.texi: Update.
30135         * doc/functions/vsprintf.texi: Update.
30136
30137 2007-05-20  Bruno Haible  <bruno@clisp.org>
30138
30139         * m4/frexpl.m4 (gl_FUNC_FREXPL_NO_LIBM): Set REPLACE_FREXPL if frexpl
30140         was not found in libc.
30141         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Likewise.
30142
30143 2007-05-20  Bruno Haible  <bruno@clisp.org>
30144
30145         * tests/test-vasnprintf-posix.c (test_function): Allow NaN to be
30146         printed as "-nan" instead of "nan".
30147         * tests/test-vasprintf-posix.c (test_function): Likewise.
30148         * tests/test-snprintf-posix.h (test_function): Likewise.
30149         * tests/test-sprintf-posix.h (test_function): Likewise.
30150         Needed for HP-UX 11.
30151
30152 2007-05-20  Jim Meyering  <jim@meyering.net>
30153
30154         Fix buggy test for the fchownat-deref bug.
30155         * m4/openat.m4 (gl_FUNC_FCHOWNAT_DEREF_BUG): Create the dangling
30156         symlink required for the run-test.  Without it, this test would
30157         always declare that fchownat doesn't work, and client code would
30158         unnecessarily use the replacement function with fixed libc.
30159         (gl_FUNC_FCHOWNAT): Eliminate a variable that wasn't initialized.
30160         Reported by Greg Schafer.
30161
30162 2007-05-19  Bruno Haible  <bruno@clisp.org>
30163
30164         * m4/isnanf.m4 (gl_ISNANF_WORKS): New macro.
30165         (gl_FUNC_ISNANF_NO_LIBM): Invoke it.
30166         * lib/isnan.c (FUNC): Use run-time expressions for SGI compiler.
30167         Needed for IRIX 6.5 and Solaris 2.5.1.
30168
30169 2007-05-19  Bruno Haible  <bruno@clisp.org>
30170
30171         * tests/test-vasnprintf-posix.c (have_minus_zero): New function.
30172         (test_function): Skip tests involving -0.0 on platforms where
30173         -0.0 = 0.0.
30174         * tests/test-vasprintf-posix.c (have_minus_zero): New function.
30175         (test_function): Skip tests involving -0.0 on platforms where
30176         -0.0 = 0.0.
30177         * tests/test-snprintf-posix.h (have_minus_zero): New function.
30178         (test_function): Skip tests involving -0.0 on platforms where
30179         -0.0 = 0.0.
30180         * tests/test-sprintf-posix.h (have_minus_zero): New function.
30181         (test_function): Skip tests involving -0.0 on platforms where
30182         -0.0 = 0.0.
30183         * tests/test-fprintf-posix.h (test_function): Remove all -0.0 related
30184         tests.
30185         * tests/test-printf-posix.h (test_function): Likewise.
30186         * tests/test-printf-posix.output: Remove all -0.0 related results.
30187         Needed for IRIX 6.5.
30188
30189 2007-05-19  Bruno Haible  <bruno@clisp.org>
30190
30191         * tests/test-vasnprintf-posix.c (test_function): Allow NaN to be
30192         printed as "nan0x7fffffff" instead of "nan".
30193         * tests/test-vasprintf-posix.c (test_function): Likewise.
30194         * tests/test-snprintf-posix.h (test_function): Likewise.
30195         * tests/test-sprintf-posix.h (test_function): Likewise.
30196         * tests/test-fprintf-posix.h (NaN): Remove macro.
30197         (test_function): Remove all NaN related tests.
30198         * tests/test-printf-posix.h (NaN): Remove macro.
30199         (test_function): Remove all NaN related tests.
30200         * tests/test-printf-posix.output: Remove all NaN related results.
30201         Needed for IRIX 6.5.
30202
30203 2007-05-19  Bruno Haible  <bruno@clisp.org>
30204
30205         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Fix C89 syntax error in test code.
30206         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Likewise.
30207
30208 2007-05-19  Bruno Haible  <bruno@clisp.org>
30209
30210         * lib/float_.h: New file.
30211         * m4/float_h.m4: New file.
30212         * modules/float: New file.
30213         * modules/isnanl (Dependencies): Add float.
30214         * modules/isnanl-nolibm (Dependencies): Likewise.
30215         * modules/mathl (Dependencies): Likewise.
30216         * modules/printf-frexpl (Dependencies): Likewise.
30217         * modules/signbit (Dependencies): Likewise.
30218         * modules/vasnprintf (Dependencies): Likewise.
30219         * doc/headers/float.texi: Update.
30220
30221 2007-05-19  Jim Meyering  <jim@meyering.net>
30222
30223         * lib/utimens.c (gl_futimens): Rename from futimens,
30224         now that glibc-2.6 declares futimens.
30225         * lib/utimens.h: Likewise.
30226
30227 2007-05-19  Bruno Haible  <bruno@clisp.org>
30228
30229         Avoid test failures on mingw.
30230         * tests/test-fprintf-posix.sh: Convert CR/LF to LF in output.
30231         * tests/test-printf-posix.sh: Likewise.
30232         * tests/test-vfprintf-posix.sh: Likewise.
30233         * tests/test-vprintf-posix.sh: Likewise.
30234
30235 2007-05-19  Bruno Haible  <bruno@clisp.org>
30236
30237         Fix *printf result for NaN, Inf, -0.0 on mingw.
30238         * m4/printf.m4 (gl_PRINTF_INFINITE): New macro.
30239         * lib/vasnprintf.c: Include math.h and isnan.h.
30240         (is_infinite_or_zero): New function.
30241         (VASNPRINTF): Fix also the handling of infinite or zero 'double'
30242         values in the %f, %F, %e, %E, %g, %G directives.
30243         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_INFINITE): New macro.
30244         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
30245         gl_PRINTF_INFINITE and test its result. Invoke
30246         gl_PREREQ_VASNPRINTF_INFINITE.
30247         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
30248         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
30249         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
30250         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
30251         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
30252         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
30253         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
30254         * doc/functions/fprintf.texi: Update.
30255         * doc/functions/printf.texi: Update.
30256         * doc/functions/snprintf.texi: Update.
30257         * doc/functions/sprintf.texi: Update.
30258         * doc/functions/vfprintf.texi: Update.
30259         * doc/functions/vprintf.texi: Update.
30260         * doc/functions/vsnprintf.texi: Update.
30261         * doc/functions/vsprintf.texi: Update.
30262
30263 2007-05-19  Bruno Haible  <bruno@clisp.org>
30264
30265         * lib/vasnprintf.c (convert_to_decimal): Add an extra_zeroes argument.
30266         (scale10_round_decimal_long_double): Inline scale10_round_long_double.
30267         Instead of multiplying with 10^k, set extra_zeroes to k.
30268         (scale10_round_long_double): Remove function.
30269
30270 2007-05-18  Bruno Haible  <bruno@clisp.org>
30271
30272         * lib/vasnprintf.c (VASNPRINTF) [NEED_PRINTF_FLAG_ZERO]: Fix logic bug
30273         introduced on 2007-05-06.
30274
30275 2007-05-18  Bruno Haible  <bruno@clisp.org>
30276
30277         * tests/test-vasnprintf-posix.c (test_function): Also test the %e and
30278         %g directives.
30279         * tests/test-vasprintf-posix.c (test_function): Likewise.
30280         * tests/test-snprintf-posix.h (test_function): Likewise.
30281         * tests/test-sprintf-posix.h (test_function): Likewise.
30282
30283 2007-05-18  Bruno Haible  <bruno@clisp.org>
30284
30285         * tests/test-vasnprintf-posix.c (SIZEOF): New macro.
30286         (strmatch): New function.
30287         (test_function): Test the %f directive on numbers of various exponents.
30288         * tests/test-vasprintf-posix.c (SIZEOF): New macro.
30289         (strmatch): New function.
30290         (test_function): Test the %f directive on numbers of various exponents.
30291         * tests/test-snprintf-posix.h (strmatch): New function.
30292         (test_function): Test the %f directive on numbers of various exponents.
30293         * tests/test-sprintf-posix.h (strmatch): New function.
30294         (test_function): Test the %f directive on numbers of various exponents.
30295         * tests/test-snprintf-posix.c (SIZEOF): New macro.
30296         * tests/test-sprintf-posix.c (SIZEOF): New macro.
30297         * tests/test-vsnprintf-posix.c (SIZEOF): New macro.
30298         * tests/test-vsprintf-posix.c (SIZEOF): New macro.
30299
30300 2007-05-18  Bruno Haible  <bruno@clisp.org>
30301
30302         Add support for 'long double' number output.
30303         * m4/printf.m4 (gl_PRINTF_LONG_DOUBLE): New macro.
30304         * lib/vasnprintf.c: Include math.h and float+.h.
30305         (mp_limb_t): New type.
30306         (GMP_LIMB_BITS): New macro.
30307         (mp_twolimb_t): New type.
30308         (GMP_TWOLIMB_BITS): New macro.
30309         (mpn_t): New type.
30310         (multiply, divide, convert_to_decimal, decode_long_double,
30311         scale10_round_long_double, scale10_round_decimal_long_double,
30312         floorlog10l): New functions.
30313         (VASNPRINTF) [NEED_PRINTF_LONG_DOUBLE]: Implement 'long double' support
30314         for the %f, %F, %e, %E, %g, %G directives.
30315         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_LONG_DOUBLE): New macro.
30316         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
30317         gl_PRINTF_LONG_DOUBLE and test its result. Invoke
30318         gl_PREREQ_VASNPRINTF_LONG_DOUBLE.
30319         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
30320         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
30321         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
30322         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
30323         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
30324         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
30325         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
30326         * modules/fprintf-posix (Depends-on): Add frexpl-nolibm.
30327         * modules/snprintf-posix (Depends-on): Likewise.
30328         * modules/sprintf-posix (Depends-on): Likewise.
30329         * modules/vasnprintf-posix (Depends-on): Likewise.
30330         * modules/vasprintf-posix (Depends-on): Likewise.
30331         * modules/vfprintf-posix (Depends-on): Likewise.
30332         * modules/vsnprintf-posix (Depends-on): Likewise.
30333         * modules/vsprintf-posix (Depends-on): Likewise.
30334         * modules/vasnprintf (Files): Add lib/float+.h.
30335         * doc/functions/fprintf.texi: Update.
30336         * doc/functions/printf.texi: Update.
30337         * doc/functions/snprintf.texi: Update.
30338         * doc/functions/sprintf.texi: Update.
30339         * doc/functions/vfprintf.texi: Update.
30340         * doc/functions/vprintf.texi: Update.
30341         * doc/functions/vsnprintf.texi: Update.
30342         * doc/functions/vsprintf.texi: Update.
30343
30344 2007-05-18  Bruno Haible  <bruno@clisp.org>
30345
30346         * lib/vasnprintf.c (USE_SNPRINTF): Define to 0 on BeOS.
30347
30348 2007-05-18  Bruno Haible  <bruno@clisp.org>
30349
30350         * lib/vasnprintf.c (VASNPRINTF) [WIN32]: Use %I64d instead of %lld
30351         for printing 64-bit integers. Needed for mingw.
30352
30353 2007-05-18  Bruno Haible  <bruno@clisp.org>
30354
30355         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Invoke
30356         gl_FUNC_FREXPL_WORKS.
30357         * modules/printf-frexpl (Files): Add m4/frexpl.m4.
30358
30359 2007-05-18  Bruno Haible  <bruno@clisp.org>
30360
30361         * modules/frexpl-nolibm-tests: New file.
30362
30363         * modules/frexpl-nolibm: New file.
30364         * m4/frexpl.m4 (gl_FUNC_FREXPL_NO_LIBM): New macro.
30365
30366 2007-05-17  Paul Eggert  <eggert@cs.ucla.edu>
30367
30368         * lib/dirent_.h: Prefer #include_next <foo.h> to #include
30369         @ABSOLUTE_FOO_H@ if @HAVE_INCLUDE_NEXT@.  This works better with
30370         GCC 4.2, which otherwise issues a lot of warnings.
30371         * lib/iconv_.h, lib/locale_.h, lib/netinet_in_.h, lib/sys_select_.h:
30372         * lib/sys_socket_.h, lib/sys_stat_.h, lib/sysexits_.h, lib/unistd_.h:
30373         Likewise.
30374         * modules/fchdir (dirent.h): Substitute @HAVE_INCLUDE_NEXT@.
30375         * modules/iconv_open (iconv.h): Likewise.
30376         * modules/locale (locale.h): Likewise.
30377         * modules/netinet_in (netinet/in.h): Likewise.
30378         * modules/sys_select (sys_select.h): Likewise.
30379         * modules/sys_socket (sys/socket.h): Likewise.
30380         * modules/sys_stat (sys/stat.h): Likewise.
30381         * modules/sysexits (sysexits.h): Likewise.
30382         * modules/unistd (unistd.h): Likewise.
30383
30384 2007-05-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
30385
30386         * modules/closein-tests (Makefile.am): Distribute
30387         `test-closein.sh'.
30388
30389 2007-05-17  Bruno Haible  <bruno@clisp.org>
30390
30391         * tests/test-printf-posix.output: Renamed from
30392         tests/test-fprintf-posix.out.
30393         * modules/fprintf-posix-tests: Update.
30394         * modules/printf-posix-tests: Update.
30395         * modules/vfprintf-posix-tests: Update.
30396         * modules/vprintf-posix-tests: Update.
30397         * tests/test-fprintf-posix.sh: Update.
30398         * tests/test-printf-posix.sh: Update.
30399         * tests/test-vfprintf-posix.sh: Update.
30400         * tests/test-vprintf-posix.sh: Update.
30401         Reported by Ralf Wildenhues.
30402
30403 2007-05-16  Paul Eggert  <eggert@cs.ucla.edu>
30404
30405         * lib/fcntl_.h: Prefer #include_next <foo.h> to #include
30406         @ABSOLUTE_FOO_H@ if @HAVE_INCLUDE_NEXT@.  This works better with
30407         GCC 4.2, which otherwise issues a lot of warnings.
30408         * lib/inttypes_.h, lib/math_.h, lib/search_.h, lib/signal_.h:
30409         * lib/stdint_.h, lib/stdio_.h, lib/stdlib_.h, lib/string_.h:
30410         * lib/sys_time_.h, lib/time_.h, lib/wchar_.h, lib/wctype_.h: Likewise.
30411         * lib/stdlib_.h: Don't bother with #pragma GCC system_header, as
30412         it should no longer be needed.
30413         * lib/string_.h: Likewise.
30414         * modules/absolute-header (HAVE_INCLUDE_NEXT): New 'make' define.
30415         * modules/fcntl (fcntl.h): Substitute @HAVE_INCLUDE_NEXT@.
30416         * modules/inttypes (inttypes.h): Likewise.
30417         * modules/math (math.h): Likewise.
30418         * modules/search (search.h): Likewise.
30419         * modules/signal (signal.h): Likewise.
30420         * modules/stdint (stdint.h): Likewise.
30421         * modules/stdio (stdio.h): Likewise.
30422         * modules/stdlib (stdlib.h): Likewise.
30423         * modules/string (string.h): Likewise.
30424         * modules/sys_time (sys/time.h): Likewise.
30425         * modules/time (time.h): Likewise.
30426         * modules/wchar (wchar.h): Likewise.
30427         * modules/wctype (wtype.h): Likewise.
30428
30429 2007-05-16  Thien-Thi Nguyen  <ttn@gnuvola.org>  (tiny change)
30430
30431         * doc/gnulib-tool.texi (CVS Issues): Fix typo.
30432
30433 2007-05-13  Bruno Haible  <bruno@clisp.org>
30434
30435         * stpcpy.m4 (gl_FUNC_STPCPY): Require AC_C_RESTRICT.
30436         * stpncpy.m4 (gl_FUNC_STPNCPY): Likewise.
30437         * strsep.m4 (gl_FUNC_STRSEP): Likewise.
30438         * strtok_r.m4 (gl_FUNC_STRTOK_R): Likewise.
30439         (gl_PREREQ_STRTOK_R): Don't require it here.
30440
30441 2007-05-13  Bruno Haible  <bruno@clisp.org>
30442
30443         * lib/stdlib_.h (mkdtemp, mkstemp): Comment out argument name. Needed
30444         when used in C++ mode.
30445
30446 2007-05-12  Bruno Haible  <bruno@clisp.org>
30447
30448         * lib/linebuffer.h: Tweak doc.
30449         * lib/linebuffer.c: Likewise.
30450
30451 2007-05-12  James Youngman  <jay@gnu.org>
30452
30453         * lib/linebuffer.c (readlinebuffer_delim): New function,
30454         like readlinebuffer, but use a caller-specified delimiter.
30455         (readlinebuffer): Just call readlinebuffer_delim with '\n'
30456         as the delimiter.
30457         * lib/linebuffer.h (readlinebuffer_delim): Declare it.
30458
30459 2007-05-12  Sergey Poznyakoff  <gray@gnu.org.ua>
30460
30461         * m4/openat.m4 (gl_FUNC_OPENAT): Do not require openat-die.
30462         * modules/openat (Files): Remove openat-die.c.
30463         (Depends-on): Add openat-die.
30464         * modules/openat-die: New module.
30465
30466 2007-05-06  Bruno Haible  <bruno@clisp.org>
30467
30468         * m4/printf.m4 (gl_PRINTF_FLAG_GROUPING, gl_VSNPRINTF_ZEROSIZE_C99):
30469         Update with info about Cygwin.
30470         * doc/functions/fprintf.texi: Update.
30471         * doc/functions/printf.texi: Update.
30472         * doc/functions/snprintf.texi: Update.
30473         * doc/functions/sprintf.texi: Update.
30474         * doc/functions/vfprintf.texi: Update.
30475         * doc/functions/vprintf.texi: Update.
30476         * doc/functions/vsnprintf.texi: Update.
30477         * doc/functions/vsprintf.texi: Update.
30478         Reported by Eric Blake.
30479
30480 2007-05-06  Bruno Haible  <bruno@clisp.org>
30481
30482         * lib/vasnprintf.c (VASNPRINTF) [NEED_PRINTF_FLAG_ZERO]: Perform the
30483         padding ourselves for the floating-point directives.
30484         * m4/printf.m4 (gl_PRINTF_FLAG_ZERO): New macro.
30485         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_FLAG_ZERO): New macro.
30486         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Invoke
30487         gl_PRINTF_FLAG_ZERO and test its result. Invoke
30488         gl_PREREQ_VASNPRINTF_FLAG_ZERO.
30489         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
30490         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Likewise.
30491         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
30492         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
30493         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
30494         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
30495         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
30496         * tests/test-snprintf-posix.h (test_function): Also check the width
30497         and some flags in the %f directive.
30498         * tests/test-sprintf-posix.h (test_function): Likewise.
30499         * tests/test-vasnprintf-posix.c (test_function): Likewise.
30500         * tests/test-vasprintf-posix.c (test_function): Likewise.
30501         * doc/functions/fprintf.texi: Update.
30502         * doc/functions/printf.texi: Update.
30503         * doc/functions/snprintf.texi: Update.
30504         * doc/functions/sprintf.texi: Update.
30505         * doc/functions/vfprintf.texi: Update.
30506         * doc/functions/vprintf.texi: Update.
30507         * doc/functions/vsnprintf.texi: Update.
30508         * doc/functions/vsprintf.texi: Update.
30509
30510 2007-05-06  Bruno Haible  <bruno@clisp.org>
30511
30512         * lib/vasnprintf.c (VASNPRINTF) [NEED_PRINTF_FLAG_GROUPING]: Don't
30513         pass the ' flag character to sprintf or snprintf.
30514         * m4/printf.m4 (gl_PRINTF_FLAG_GROUPING): New macro.
30515         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_FLAG_GROUPING): New macro.
30516         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Invoke
30517         gl_PRINTF_FLAG_GROUPING and test its result. Invoke
30518         gl_PREREQ_VASNPRINTF_FLAG_GROUPING.
30519         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
30520         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Likewise.
30521         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
30522         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
30523         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
30524         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
30525         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
30526         * tests/test-snprintf-posix.h (test_function): Also check the grouping
30527         flag.
30528         * tests/test-sprintf-posix.h (test_function): Likewise.
30529         * tests/test-vasnprintf-posix.c (test_function): Likewise.
30530         * tests/test-vasprintf-posix.c (test_function): Likewise.
30531         * doc/functions/fprintf.texi: Update.
30532         * doc/functions/printf.texi: Update.
30533         * doc/functions/snprintf.texi: Update.
30534         * doc/functions/sprintf.texi: Update.
30535         * doc/functions/vfprintf.texi: Update.
30536         * doc/functions/vprintf.texi: Update.
30537         * doc/functions/vsnprintf.texi: Update.
30538         * doc/functions/vsprintf.texi: Update.
30539
30540 2007-05-01  Bruno Haible  <bruno@clisp.org>
30541
30542         * tests/test-argp-2.sh (func_compare): Drop .exe suffix.
30543
30544 2007-05-03  Paul Eggert  <eggert@cs.ucla.edu>
30545
30546         * m4/d-ino.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_INO): Use better
30547         comment for D_INO_IN_DIRENT.  Problem reported by James Youngman.
30548
30549 2007-05-02  Paul Eggert  <eggert@cs.ucla.edu>
30550
30551         * m4/d-ino.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_INO): Test whether
30552         readdir returns garbage in d_ino.  Problem reported by Kaz Sasayama in
30553         <http://lists.gnu.org/archive/html/bug-gnulib/2007-05/msg00021.html>.
30554
30555 2007-05-02  Sergey Poznyakoff  <gray@gnu.org.ua>
30556
30557         * lib/argp-help.c (struct hol_entry): New member `ord'.
30558         (HOL_ENTRY_PTRCMP): Use ord for comparison
30559         (hol_sort): Initialize ord.
30560
30561 2007-05-01  Bruno Haible  <bruno@clisp.org>
30562
30563         * doc/functions/_Exit_C99.texi: Renamed from doc/functions/_Exit.texi.
30564         Reported by Eric Blake.
30565         * doc/gnulib.texi (Function Substitutes): Update.
30566
30567 2007-05-01  Bruno Haible  <bruno@clisp.org>
30568
30569         * doc/functions.texi: Remove file, now redundant through
30570         doc/functions/*.texi.
30571
30572 2007-05-01  Bruno Haible  <bruno@clisp.org>
30573
30574         * modules/argp (Depends-on): Add sleep.
30575
30576 2007-05-01  Bruno Haible  <bruno@clisp.org>
30577
30578         * modules/sleep-tests: New file.
30579         * tests/test-sleep.c: New file.
30580
30581         * modules/sleep: New file.
30582         * lib/sleep.c: New file.
30583         * m4/sleep.m4: New file.
30584         * lib/unistd_.h (sleep): New declaration.
30585         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_SLEEP,
30586         HAVE_SLEEP.
30587         * modules/unistd (Makefile.am): Substitute GNULIB_SLEEP, HAVE_SLEEP.
30588         * doc/functions/sleep.texi: Document the sleep module.
30589
30590 2007-05-01  Bruno Haible  <bruno@clisp.org>
30591
30592         * lib/sigprocmask.h: Remove file.
30593         * lib/signal_.h: Incorporate the previous contents of sigprocmask.h.
30594         * lib/sigprocmask.c: Include <signal.h> instead of sigprocmask.h.
30595         * m4/signal_h.m4 (gl_SIGNAL_H_DEFAULTS): Substitute GNULIB_SIGPROCMASK,
30596         HAVE_POSIX_SIGNALBLOCKING, HAVE_SIGSET_T.
30597         * m4/signalblocking.m4 (gl_SIGNALBLOCKING): Require
30598         gl_SIGNAL_H_DEFAULTS. Set HAVE_POSIX_SIGNALBLOCKING as a shell variable.
30599         (gl_PREREQ_SIGPROCMASK): Require gl_SIGNAL_H_DEFAULTS. Set
30600         HAVE_SIGSET_T as a shell variable.
30601         * modules/signal (Makefile.am): Substitute GNULIB_SIGPROCMASK,
30602         HAVE_POSIX_SIGNALBLOCKING, HAVE_SIGSET_T into signal.h.
30603         * modules/sigprocmask (Files): Remove lib/sigprocmask.h.
30604         (Depends-on): Add signal. Remove verify.
30605         (configure.ac): Invoke gl_SIGNAL_MODULE_INDICATOR.
30606         (Include): Mention <signal.h> instead of sigprocmask.h.
30607         * NEWS: Mention the change.
30608         * lib/fatal-signal.c: Don't include sigprocmask.h.
30609
30610 2007-05-01  Bruno Haible  <bruno@clisp.org>
30611
30612         * modules/signal: New file.
30613         * lib/signal_.h: New file.
30614         * m4/signal_h.m4: New file.
30615
30616 2007-05-01  Bruno Haible  <bruno@clisp.org>
30617
30618         * lib/wctype_.h: Test HAVE_ISWCNTRL at configure time.
30619         * m4/wctype.m4 (gl_WCTYPE_H): Substitute HAVE_ISWCNTRL.
30620         * modules/wctype (Makefile.am): Substitute HAVE_ISWCNTRL instead of
30621         HAVE_WCTYPE_CTMP_BUG into wctype.h.
30622
30623 2007-05-01  Bruno Haible  <bruno@clisp.org>
30624
30625         * lib/sys_stat_.h: Test HAVE_LSTAT, HAVE_DECL_MKDIR, HAVE_IO_H at
30626         configure time.
30627         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Substitute HAVE_LSTAT,
30628         HAVE_DECL_MKDIR, HAVE_IO_H via AC_SUBST.
30629         * modules/sys_stat (Makefile.am): Substitute their values into
30630         sys/stat.h.
30631
30632 2007-05-01  Bruno Haible  <bruno@clisp.org>
30633
30634         * lib/glob_.h: Test HAVE_SYS_CDEFS_H at configure time.
30635         * m4/glob.m4 (gl_PREREQ_GLOB): Substitute HAVE_SYS_CDEFS_H via AC_SUBST.
30636         * modules/glob (Makefile.am): Put HAVE_SYS_CDEFS_H value into glob.h.
30637
30638 2007-05-01  Bruno Haible  <bruno@clisp.org>
30639
30640         * doc/header/assert.texi: Undo last change: don't mention the gnulib
30641         'assert' module here.
30642
30643 2007-05-01  Bruno Haible  <bruno@clisp.org>
30644
30645         * doc/functions/*.texi: New files.
30646         * doc/functions/google-ranking.txt: New file.
30647         * doc/gnulib.texi (Function Substitutes): New chapter.
30648         (ctime, inet_ntoa): Remove sections.
30649         * doc/ctime.texi: Remove file.
30650         * doc/inet_ntoa.texi: Remove file.
30651         * doc/Makefile (gnulib.info, gnulib.html, gnulib.dvi): Update
30652         dependencies.
30653         (%.info): New rule, specifying a --reference-limit.
30654
30655 2007-05-01  Bruno Haible  <bruno@clisp.org>
30656
30657         * MODULES.html.sh (posix_functions): Remove 'exec', 'toc'.
30658
30659 2007-05-01  Bruno Haible  <bruno@clisp.org>
30660
30661         * modules/mkdir (Depends-on): Add sys_stat, because sys_stat provides
30662         the portability of 'mkdir' to mingw systems.
30663
30664 2007-05-01  Bruno Haible  <bruno@clisp.org>
30665
30666         * doc/headers/google-ranking.txt: New file.
30667
30668 2007-04-30  Eric Blake  <ebb9@byu.net>
30669
30670         Prefer fseeko to fseek.
30671         * modules/getpass (Depends-on): Add fseeko.
30672         * lib/getpass.c (getpass): Use fseeko, not fseek.
30673
30674 2007-04-30  Sergey Poznyakoff  <gray@gnu.org.ua>
30675
30676         * lib/argp-help.c (hol_entry_cmp): Option sorting algorithm
30677         assumes the sorting is stable, while most qsort implementations
30678         are not.  Use argument addresses to ensure they never compare as
30679         equal.
30680
30681         * tests/test-argp-2.sh (usage-indent test): Fix output
30682         (func_compare): Restore diff options
30683         * tests/test-argp.c: Restore #include "progname.h"
30684
30685 2007-04-29  Bruno Haible  <bruno@clisp.org>
30686
30687         * m4/printf.m4 (gl_VSNPRINTF_ZEROSIZE_C99): New macro.
30688         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Invoke
30689         gl_VSNPRINTF_ZEROSIZE_C99. Test gl_cv_func_vsnprintf_zerosize_c99.
30690         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
30691         * modules/snprintf-posix-tests (Files): Add tests/test-snprintf.c.
30692         (configure.ac): Define CHECK_SNPRINTF_POSIX.
30693         (TESTS, check_PROGRAMS): Add test-snprintf.
30694         * modules/vsnprintf-posix-tests (Files): Add tests/test-vsnprintf.c.
30695         (configure.ac): Define CHECK_VSNPRINTF_POSIX.
30696         (TESTS, check_PROGRAMS): Add test-vsnprintf.
30697         * tests/test-snprintf.c (main) [!CHECK_SNPRINTF_POSIX]: Disable
30698         assertions that fail on HP-UX, OSF/1, or IRIX.
30699         * tests/test-vsnprintf.c (main) [!CHECK_VSNPRINTF_POSIX]: Likewise.
30700
30701 2007-04-29  Bruno Haible  <bruno@clisp.org>
30702
30703         * MODULES.html.sh (posix_functions): Remove 'contents'.
30704
30705 2007-04-29  Karl Berry  <karl@gnu.org>
30706
30707         * config/srclist.txt (gendocs_template_min): new entry.
30708
30709 2007-04-29  Bruno Haible  <bruno@clisp.org>
30710
30711         Work around fpurge bug on BSD systems.
30712         * modules/fpurge (Makefile.am): Compile fpurge.c unconditionally.
30713         * m4/fpurge.m4 (gl_FUNC_FPURGE): Don't invoke AC_LIBOBJ.
30714         * lib/fpurge.h (fpurge): Don't handle __fpurge wrapper here. Define
30715         fpurge to rpl_fpurge if the system already has this function.
30716         * lib/fpurge.c (fpurge): Handle also the __fpurge wrapper case and
30717         the case where the system already has this function. Correct invariants
30718         on BSD systems.
30719         * lib/fseeko.c (rpl_fseeko): Update recognition of preceding fflush on
30720         BSD systems.
30721
30722 2007-04-29  Sergey Poznyakoff  <gray@gnu.org.ua>
30723
30724         * lib/argp-help.c (hol_cluster_cmp): Reverse comparison.  Change
30725         proposed by Sven Verdoolaege.
30726
30727         * tests/test-argp.c: Fix option ordering.  Test deeply clustered
30728         options.
30729         * tests/test-argp-2.sh (func_compare): Use diff instead of cmp.
30730         (usage and help tests): Update
30731
30732 2007-04-29  Bruno Haible  <bruno@clisp.org>
30733
30734         * tests/test-fflush.c (main): Use a file of size 17, not 10.
30735         Print more information in case of failure. Disable a test on BeOS.
30736
30737 2007-04-29  Bruno Haible  <bruno@clisp.org>
30738
30739         * tests/**/test-*.[hc] (ASSERT): Use fprintf to show the line number.
30740         This helps debugging on systems on which no gdb is available.
30741
30742 2007-04-29  Bruno Haible  <bruno@clisp.org>
30743
30744         * lib/freading.h: Improve comments.
30745         * lib/fwriting.h: Likewise.
30746         * tests/test-freading.c (main): Don't check freading immediately after
30747         repositioning. Needed for glibc.
30748
30749 2007-04-29  Bruno Haible  <bruno@clisp.org>
30750
30751         * lib/freading.c (freading): Trivial simplification.
30752
30753 2007-04-28  Bruno Haible  <bruno@clisp.org>
30754
30755         * tests/test-fwriting.c (main): Also test the interaction between
30756         fflush and fwriting.
30757         * modules/fwriting-tests (Depends-on): Add fflush.
30758
30759         * tests/test-freading.c (main): Also test the interaction between
30760         fflush and freading.
30761         * modules/freading-tests (Depends-on): Add fflush.
30762
30763 2007-04-28  Bruno Haible  <bruno@clisp.org>
30764
30765         * lib/stdio_.h (fseek, ftell): Provide link warnings suggesting to use
30766         fseeko and ftello.
30767         Suggested by Eric Blake.
30768
30769 2007-04-28  Jim Meyering  <jim@meyering.net>
30770
30771         Avoid false-negative in gl_STDINT_H's C99 conformance test.
30772         * m4/stdint.m4 (gl_STDINT_H): When checking whether stdint.h conforms
30773         to C99, include all of gl_STDINT_INCLUDES, not just <stddef.h>.
30774
30775 2007-04-27  Eric Blake  <ebb9@byu.net>
30776
30777         * doc/headers/assert.texi (assert.h): Document assert module use.
30778
30779 2007-04-27  Bruno Haible  <bruno@clisp.org>
30780
30781         * doc/headers/*.texi: New files.
30782         * doc/gnulib.texi (Header File Substitutes): New chapter.
30783         * doc/Makefile (gnulib.info, gnulib.html, gnulib.dvi): Specify
30784         dependencies.
30785         (standards.info ,standards.html, standards.dvi): Update dependencies.
30786         (mostlyclean, clean): New targets.
30787
30788 2007-04-27  Bruno Haible  <bruno@clisp.org>
30789
30790         * lib/sysexits_.h: Renamed from lib/sysexit_.h.
30791         * modules/sysexits (Files, Makefile.am): Update.
30792
30793         * lib/sys_socket_.h: Renamed from lib/socket_.h.
30794         * modules/sys_socket (Files, Makefile.am): Update.
30795
30796         * lib/sys_stat_.h: Renamed from lib/stat_.h.
30797         * modules/sys_stat (Files, Makefile.am): Update.
30798
30799 2007-04-27  Eric Blake  <ebb9@byu.net>
30800
30801         * lib/freading.h: Improve comments.
30802         * lib/fwriting.h: Likewise.
30803         * lib/fflush.c: Likewise.
30804
30805         Fix closein for mingw.
30806         * modules/closein-tests: Add tests for closein.
30807         * tests/test-closein.c: New file.
30808         * tests/test-closein.sh: Likewise.
30809         * lib/unistd_.h [!SEEK_CUR]: Mingw also needs stdlib.h for _exit.
30810         * lib/closein.c (close_stdin): Don't fflush non-seekable streams.
30811
30812 2007-04-27  Bruno Haible  <bruno@clisp.org>
30813
30814         * lib/inttypes_.h [_DECC]: Don't use #include_next if the compiler
30815         version is < 6.
30816         * lib/math_.h [__DECC]: Likewise.
30817         * lib/stdio_.h [__DECC]: Likewise.
30818         * lib/stdlib_.h [__DECC]: Likewise.
30819         * lib/string_.h [__DECC]: Likewise.
30820         * lib/time_.h [__DECC]: Likewise.
30821         * lib/wchar_.h [__DECC]: Likewise.
30822         * lib/wctype_.h [__DECC]: Likewise.
30823
30824 2007-04-27  Bruno Haible  <bruno@clisp.org>
30825
30826         * tests/test-fbufmode.c (main): Relax test, to avoid failure on mingw.
30827
30828 2007-04-27  Bruno Haible  <bruno@clisp.org>
30829
30830         * lib/fflush.c: Add comments.
30831         * modules/fpurge-tests (Depends-on): Add fflush.
30832         * modules/freadable-tests (Depends-on): Likewise.
30833         * modules/fwritable-tests (Depends-on): Likewise.
30834
30835 2007-04-27  Charles Wilson  <libtool@cwilson.fastmail.fm>
30836
30837         * m4/argz.m4 (gl_FUNC_ARGZ): Use !HAVE_WORKING_ARGZ instead of
30838         SYSTEM_ARGZ_IS_BROKEN.  Also, minor stylistic improvements.
30839         Report by Bruno Haible <bruno@clisp.org>.
30840
30841 2007-04-26  Eric Blake  <ebb9@byu.net>
30842
30843         Fix fflush on mingw.
30844         * modules/fflush (Depends-on): Add freading.
30845         * lib/fflush.c (rpl_fflush): Use freading to avoid losing buffered
30846         but unread data.
30847
30848 2007-04-26  Eric Blake  <ebb9@byu.net>
30849         and Bruno Haible  <bruno@clisp.org>
30850
30851         Implement freading and fwriting.
30852         * lib/freading.c: New file.
30853         * lib/freading.h: Likewise.
30854         * m4/freading.m4: Likewise.
30855         * modules/freading: Likewise.
30856         * modules/freading-tests: Likewise.
30857         * tests/test-freading.c: Likewise.
30858         * lib/fwriting.c: New file.
30859         * lib/fwriting.h: Likewise.
30860         * m4/fwriting.m4: Likewise.
30861         * modules/fwriting: Likewise.
30862         * modules/fwriting-tests: Likewise.
30863         * tests/test-fwriting.c: Likewise.
30864         * MODULES.html.sh (File stream based Input/Output): Mention them.
30865
30866 2007-04-26  Bruno Haible  <bruno@clisp.org>
30867
30868         * lib/stdio_.h (fseeko, ftello): Check that off_t has the same size as
30869         'long' when we assume it.
30870         Suggested by Eric Blake.
30871
30872 2007-04-26  Bruno Haible  <bruno@clisp.org>
30873
30874         Ensure fseeko, ftello are declared on glibc systems.
30875         * modules/fflush (configure.ac-early): Require AC_FUNC_FSEEKO.
30876         * modules/fseeko (configure.ac-early): Likewise.
30877         * modules/ftello (configure.ac-early): Likewise.
30878         * m4/fflush.m4 (gl_REPLACE_FFLUSH): Don't define HAVE_FSEEKO, rely on
30879         AC_FUNC_FSEEKO for this.
30880         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Inline gl_CHECK_FSEEKO.
30881         (gl_CHECK_FSEEKO): Remove macro.
30882
30883 2007-04-26  Bruno Haible  <bruno@clisp.org>
30884
30885         * tests/test-fflush.c (main): Also check the ftell result after
30886         fflush and fseek/fseeko.
30887         * lib/fflush.c (rpl_fflush): For BSD implementations, update the
30888         file descriptor position cache in the stream.
30889         * lib/fseeko.c (rpl_fseeko): Likewise.
30890
30891 2007-04-26  Bruno Haible  <bruno@clisp.org>
30892
30893         * modules/fflush-tests (Depends-on): Add fseeko.
30894
30895 2007-04-25  Charles Wilson  <libtool@cwilson.fastmail.fm>
30896             Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
30897
30898         * lib/argz_.h: ensure error_t definition is obtained in same
30899         mechanism system argz.h would have.
30900         * m4/argz.m4 (gl_FUNC_ARGZ): add new test to check if $host's
30901         argz facilities are known bad.  Err on the side of caution if
30902         cross-compiling.
30903
30904 2007-04-25  Eric Blake  <ebb9@byu.net>
30905
30906         * lib/fpurge.c (includes): Use stdlib.h for free.
30907         * tests/test-fflush.c (main): Also test fflush-fseeko.
30908
30909 2007-04-25  Bruno Haible  <bruno@clisp.org>
30910
30911         Make fflush+fseek POSIX-compliant on FreeBSD and MacOS X.
30912         * lib/fseeko.c: New file.
30913         * lib/stdio_.h: Include <sys/types.h> when off_t is needed.
30914         (fseeko, fseek): Define to replacements if REPLACE_FFLUSH.
30915         * m4/fseeko.m4 (gl_CHECK_FSEEKO): New macro, extracted from
30916         gl_FUNC_FSEEKO.
30917         (gl_FUNC_FSEEKO): Invoke it.
30918         * m4/fflush.m4 (gl_REPLACE_FFLUSH): Arrange to compile fseeko.c. Invoke
30919         gl_CHECK_FSEEKO. Define HAVE_FSEEKO.
30920         * modules/fflush (Files): Add lib/fseeko.c, m4/fseeko.m4.
30921
30922 2007-04-25  Bruno Haible  <bruno@clisp.org>
30923
30924         * modules/fflush (Depends-on): Add ftello.
30925
30926 2007-04-25  Bruno Haible  <bruno@clisp.org>
30927
30928         * modules/ftello-tests: New file.
30929         * tests/test-ftello.c: New file.
30930
30931         * modules/ftello: New file.
30932         * m4/ftello.m4: New file.
30933         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_FTELLO,
30934         HAVE_FTELLO.
30935         * lib/stdio_.h (ftello): New declaration.
30936         * modules/stdio (Makefile.am): Substitute also GNULIB_FTELLO,
30937         HAVE_FTELLO.
30938
30939 2007-04-25  Bruno Haible  <bruno@clisp.org>
30940
30941         * modules/fseeko-tests: New file.
30942         * tests/test-fseeko.c: New file.
30943
30944         * modules/fseeko: New file.
30945         * m4/fseeko.m4: New file.
30946         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_FSEEKO,
30947         HAVE_FSEEKO.
30948         * lib/stdio_.h (fseeko): New declaration.
30949         * modules/stdio (Makefile.am): Substitute also GNULIB_FSEEKO,
30950         HAVE_FSEEKO.
30951
30952 2007-04-25  Bruno Haible  <bruno@clisp.org>
30953
30954         * lib/stdio_.h (fflush): Add support for GNULIB_POSIXCHECK.
30955
30956 2007-04-25  Bruno Haible  <bruno@clisp.org>
30957
30958         * lib/unistd_.h: Include <stdio.h> if needed to get the SEEK_* macros.
30959         * tests/test-stdio.c: Check that the various SEEK_* macros are defined.
30960         * tests/test-unistd.c: Likewise.
30961         * tests/test-fcntl.c: Likewise.
30962
30963 2007-04-23  Eric Blake  <ebb9@byu.net>
30964
30965         * lib/fflush.c: Fix missing include.
30966         Reported by Bruno Haible.
30967
30968 2007-04-23  Bruno Haible  <bruno@clisp.org>
30969
30970         * lib/fpurge.c (fpurge) [glibc, BSD]: Free a malloc()ed ungetc buffer.
30971         Reported by Eric Blake.
30972
30973 2007-04-23  Bruno Haible  <bruno@clisp.org>
30974
30975         * lib/fbufmode.c (fbufmode): Port to Solaris/SPARC64.
30976
30977 2007-04-23  Bruno Haible  <bruno@clisp.org>
30978
30979         * lib/fseterr.c (fseterr): Don't hardcode the value of _IOERR.
30980
30981 2007-04-23  Bruno Haible  <bruno@clisp.org>
30982
30983         * tests/test-fbufmode.c (main): Be prepared to a failure of setvbuf.
30984         Needed on HP-UX 11.
30985
30986 2007-04-16  Eric Blake  <ebb9@byu.net>
30987
30988         Make fflush rely on fpurge.
30989         * lib/fflush.c (rpl_fflush): Rely on fpurge module, rather than
30990         open coding all variants.
30991         * modules/fflush (Depends-on): Add fpurge and unistd.
30992         * modules/fflush-tests (Depends-on): Unistd is no longer extra.
30993         * m4/fflush.m4 (gl_REPLACE_FFLUSH): Simplify.
30994
30995         Fix --with-tests compilation on cygwin.
30996         * modules/argmatch-tests (Makefile.am): List gnulib library first
30997         in LDADD.
30998         * modules/argp-tests (Makefile.am): Likewise.
30999         * modules/array-list-tests (Makefile.am): Likewise.
31000         * modules/array-oset-tests (Makefile.am): Likewise.
31001         * modules/avltree-list-tests (Makefile.am): Likewise.
31002         * modules/avltree-oset-tests (Makefile.am): Likewise.
31003         * modules/avltreehash-list-tests (Makefile.am): Likewise.
31004         * modules/carray-list-tests (Makefile.am): Likewise.
31005         * modules/dirname-tests (Makefile.am): Likewise.
31006         * modules/frexp-tests (Makefile.am): Likewise.
31007         * modules/isnanl-tests (Makefile.am): Likewise.
31008         * modules/linked-list-tests (Makefile.am): Likewise.
31009         * modules/linkedhash-list-tests (Makefile.am): Likewise.
31010         * modules/lock-tests (Makefile.am): Likewise.
31011         * modules/rbtree-list-tests (Makefile.am): Likewise.
31012         * modules/rbtree-oset-tests (Makefile.am): Likewise.
31013         * modules/rbtreehash-list-tests (Makefile.am): Likewise.
31014         * modules/tls-tests (Makefile.am): Likewise.
31015         * modules/tsearch-tests (Makefile.am): Likewise.
31016         * modules/xvasprintf-tests (Makefile.am): Likewise.
31017
31018         Fix fpurge for cygwin.
31019         * lib/fpurge.c (fpurge): Fix order of operation flub, and return a
31020         value.
31021         * modules/fpurge-tests (Depends-on): Clean up trash.
31022
31023 2007-04-16  Simon Josefsson  <simon@josefsson.org>
31024
31025         * lib/gc-libgcrypt.c (gc_hash_open): Shut up compiler warnings.
31026
31027         * m4/autobuild.m4: Re-indent.
31028
31029 2007-04-13  Bruno Haible  <bruno@clisp.org>
31030
31031         * modules/fpurge-tests: New file.
31032         * tests/test-fpurge.c: New file.
31033
31034         * modules/fpurge: New file.
31035         * lib/fpurge.h: New file.
31036         * lib/fpurge.c: New file.
31037         * m4/fpurge.m4: New file.
31038
31039 2007-04-13  Bruno Haible  <bruno@clisp.org>
31040
31041         * modules/fbufmode-tests: New file.
31042         * tests/test-fbufmode.c: New file.
31043
31044         * modules/fbufmode: New file.
31045         * lib/fbufmode.h: New file.
31046         * lib/fbufmode.c: New file.
31047         * m4/fbufmode.m4: New file.
31048
31049 2007-04-13  Bruno Haible  <bruno@clisp.org>
31050
31051         * modules/fwritable-tests: New file.
31052         * tests/test-fwritable.c: New file.
31053
31054         * modules/fwritable: New file.
31055         * lib/fwritable.h: New file.
31056         * lib/fwritable.c: New file.
31057         * m4/fwritable.m4: New file.
31058
31059 2007-04-13  Bruno Haible  <bruno@clisp.org>
31060
31061         * modules/freadable-tests: New file.
31062         * tests/test-freadable.c: New file.
31063
31064         * modules/freadable: New file.
31065         * lib/freadable.h: New file.
31066         * lib/freadable.c: New file.
31067         * m4/freadable.m4: New file.
31068
31069 2007-04-13  Bruno Haible  <bruno@clisp.org>
31070
31071         * modules/fflush-tests (Makefile.am): Remove EXTRA_DIST. Augment
31072         MOSTLYCLEANFILES.
31073
31074 2007-04-13  Paul Eggert  <eggert@cs.ucla.edu>
31075
31076         * build-aux/bootstrap (gnulib_tool_option_extras): New var, used by
31077         gzip bootstrap.conf to avoid dragging in i18n machinery.
31078         (gnulib_tool_option): Use it.
31079
31080 2007-04-13  Bruno Haible  <bruno@clisp.org>
31081
31082         * tests/test-vasnprintf-posix.c (test_function): Add tests for %f and
31083         %F directives.
31084         * tests/test-vasprintf-posix.c (test_function): Likewise.
31085         * tests/test-snprintf-posix.h (test_function): Likewise.
31086         * tests/test-sprintf-posix.h (test_function): Likewise.
31087         * tests/test-fprintf-posix.h (test_function): Likewise.
31088         * tests/test-printf-posix.h (test_function): Likewise.
31089         * tests/test-fprintf-posix.out: Likewise.
31090
31091 2007-04-13  Bruno Haible  <bruno@clisp.org>
31092
31093         * modules/lock-tests (configure.ac): For LIBSCHED, try also -lposix4.
31094         * modules/tls-tests (configure.ac): Likewise.
31095         Reported by Arto C. Nirkko <anirkko@insel.ch>.
31096
31097 2007-04-13  Bruno Haible  <bruno@clisp.org>
31098
31099         * lib/tls.c (glthread_tls_get): Fix return type.
31100         Patch by Arto C. Nirkko <anirkko@insel.ch>.
31101
31102 2007-04-12  Eric Blake  <ebb9@byu.net>
31103
31104         * modules/gettime (Depends-on): Remove gettime.
31105         Reported by Dmitry V. Levin.
31106
31107 2007-04-12  Bruno Haible  <bruno@clisp.org>
31108
31109         * modules/fflush (Include): Mention <stdio.h>.
31110         * modules/strtoimax (Include): Mention <inttypes.h>.
31111         * modules/strtoumax (Include): Likewise.
31112
31113 2007-04-12  Eric Blake  <ebb9@byu.net>
31114
31115         * .cvsignore: New file.
31116         * .gitignore: Likewise.
31117
31118 2007-04-12  Bruno Haible  <bruno@clisp.org>
31119
31120         * modules/iconv-tests (test_iconv_LDADD): Mention -liconv after LDADD,
31121         not before, since $(LDADD) often contains libgnu.a.
31122         * modules/striconv-tests (test_striconv_LDADD): Likewise.
31123         * modules/striconveh-tests (test_striconveh_LDADD): Likewise.
31124         * modules/striconveha-tests (test_striconveha_LDADD): Likewise.
31125         Needed on Cygwin.
31126
31127 2007-04-12  Eric Blake  <ebb9@byu.net>
31128
31129         Work around glibc's failure to flush stdin on fclose.
31130         * lib/closein.c (close_stdin): Flush stdin before closing.
31131
31132         Work around glibc's failure to reset seekable stdin on exit.
31133         * modules/closein: New module.
31134         * lib/closein.c: New file.
31135         * lib/closein.h: Likewise.
31136         * m4/closein.m4: Likewise.
31137         * MODULES.html.sh (File stream based Input/Output): Document it.
31138
31139 2007-04-12  Simon Josefsson  <simon@josefsson.org>
31140
31141         * gnulib-tool: Rename generated 'autobuild' script to
31142         'do-autobuild' in --create-megatestdir output.
31143
31144         * doc/gnulib.texi (Build robot for gnulib): Fix.
31145
31146 2007-04-12  Simon Josefsson  <simon@josefsson.org>
31147
31148         * modules/sysexits (Depends-on): Add absolute-header.
31149
31150 2007-04-12  Eric Blake  <ebb9@byu.net>
31151
31152         No need to preserve errno on success.
31153         * lib/fflush.c (rpl_fflush): Simplify errno tracking.
31154         Reported by Bruno Haible.
31155
31156 2007-04-12  Simon Josefsson  <simon@josefsson.org>
31157
31158         * MODULES.html.sh (Support for maintaining and releasing
31159         projects): Add autobuild.  Suggested by Eric Blake <ebb9@byu.net>.
31160
31161 2007-04-12  Simon Josefsson  <simon@josefsson.org>
31162
31163         * gnulib-tool (func_modules_add_dummy): Respect --avoid=dummy.
31164
31165 2007-04-12  Simon Josefsson  <simon@josefsson.org>
31166
31167         * modules/autobuild: New module.
31168
31169         * m4/autobuild.m4: New file.
31170
31171 2007-04-11  Bruno Haible  <bruno@clisp.org>
31172
31173         * lib/vasnprintf.c (VASNPRINTF): Implement the %F directive using the
31174         %f directive, if NEED_PRINTF_DIRECTIVE_F is defined.
31175         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_F): New macro.
31176         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_DIRECTIVE_F): New macro.
31177         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
31178         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
31179         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
31180         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Invoke
31181         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
31182         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
31183         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Invoke
31184         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
31185         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
31186         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Invoke
31187         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
31188         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
31189         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Invoke
31190         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
31191         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
31192         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Invoke
31193         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
31194         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
31195         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Invoke
31196         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
31197         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
31198         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Invoke
31199         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
31200         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
31201         Reported by Eric Blake.
31202
31203 2007-04-11  Bruno Haible  <bruno@clisp.org>
31204
31205         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_A): Fix test. It always failed.
31206
31207 2007-04-10  Bruno Haible  <bruno@clisp.org>
31208
31209         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_A): Add a test for correct result
31210         for NaN and Infinity. Needed on FreeBSD 6.1.
31211         * tests/test-vasnprintf-posix.c (test_function): Undo last change
31212         regarding results for "%010a" of Infinity and NaN.
31213         * tests/test-vasprintf-posix.c (test_function): Likewise.
31214         * tests/test-snprintf-posix.h (test_function): Likewise.
31215         * tests/test-sprintf-posix.h (test_function): Likewise.
31216         * tests/test-fprintf-posix.h (test_function): Likewise.
31217         * tests/test-printf-posix.h (test_function): Likewise.
31218         * tests/test-fprintf-posix.out: Likewise.
31219
31220 2007-04-10  Bruno Haible  <bruno@clisp.org>
31221
31222         * modules/locale-tests: New file.
31223         * tests/test-locale.c: New file.
31224
31225         * modules/locale: New file.
31226         * lib/locale_.h: New file.
31227         * m4/locale_h.m4: New file.
31228
31229 2007-04-10  Paul Eggert  <eggert@cs.ucla.edu>
31230             Bruno Haible  <bruno@clisp.org>
31231
31232         * m4/signbit.m4 (gl_SIGNBIT): When the sign bit position could not
31233         be determined, test for availability of the copysignf, copysign,
31234         copysignl functions.
31235         * lib/signbitf.c (gl_signbitf): Use copysignf if available in libc.
31236         * lib/signbitd.c (gl_signbitd): Use copysign if available in libc.
31237         * lib/signbitl.c (gl_signbitl): Use copysignl if available in libc.
31238
31239 2007-04-09  Eric Blake  <ebb9@byu.net>
31240
31241         * lib/stdio_.h [REPLACE_FFLUSH]: Declare rpl_fflush.
31242         * modules/stdio (Makefile.am): Support fflush.
31243         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Likewise.
31244         * modules/fflush: New file.
31245         * lib/fflush.c: Likewise.
31246         * m4/fflush.m4: Likewise.
31247         * modules/fflush-tests: New test.
31248         * tests/test-fflush.c: Likewise.
31249         * MODULES.html.sh (Input/output <stdio.h>): Document new module.
31250
31251 2007-04-06  Bruno Haible  <bruno@clisp.org>
31252
31253         * lib/vasnprintf.c: Include <math.h>. Don't include float+.h.
31254         (VASNPRINTF): Use signbit for faster determination whether to print a
31255         minus sign.
31256         * modules/vasnprintf (Files): Remove lib/float+.h.
31257         * modules/fprintf-posix (Depends-on): Add signbit.
31258         * modules/snprintf-posix (Depends-on): Likewise.
31259         * modules/sprintf-posix (Depends-on): Likewise.
31260         * modules/vasnprintf-posix (Depends-on): Likewise.
31261         * modules/vasprintf-posix (Depends-on): Likewise.
31262         * modules/vfprintf-posix (Depends-on): Likewise.
31263         * modules/vsnprintf-posix (Depends-on): Likewise.
31264         * modules/vsprintf-posix (Depends-on): Likewise.
31265
31266 2007-04-06  Bruno Haible  <bruno@clisp.org>
31267
31268         * tests/test-frexp.c (main): Test also the sign bit of zero results.
31269         * tests/test-frexpl.c (main): Likewise.
31270         * tests/test-ldexpl.c (main): Likewise.
31271         * modules/frexp-tests (Depends-on): Add signbit.
31272         * modules/frexpl-tests (Depdends-on): Likewise.
31273         * modules/ldexpl-tests (Depdends-on): Likewise.
31274
31275 2007-04-06  Bruno Haible  <bruno@clisp.org>
31276
31277         * modules/signbit-tests: New file.
31278         * tests/test-signbit.c: New file.
31279
31280         * modules/signbit: New file.
31281         * lib/signbitf.c: New file.
31282         * lib/signbitd.c: New file.
31283         * lib/signbitl.c: New file.
31284         * m4/signbit.m4: New file.
31285         * lib/math_.h (gl_signbitf, gl_signbitd, gl_signbitl): New declarations.
31286         (signbit): New macro.
31287         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_SIGNBIT and
31288         REPLACE_SIGNBIT.
31289         * modules/math (Makefile.am) Substibute also GNULIB_SIGNBIT and
31290         REPLACE_FREXPL into math.h.
31291
31292 2007-04-06  Bruno Haible  <bruno@clisp.org>
31293
31294         * modules/isnanf-nolibm-tests: New file.
31295         * tests/test-isnanf.c: New file.
31296
31297         * modules/isnanf-nolibm: New file.
31298         * lib/isnanf.h: New file.
31299         * lib/isnanf.c: New file.
31300         * lib/isnan.c: Consider the USE_FLOAT macro.
31301         * m4/isnanf.m4: New file.
31302
31303 2007-04-06  Bruno Haible  <bruno@clisp.org>
31304
31305         * modules/gettext-h (configure.ac): AC_SUBST LIBINTL and LTLIBINTL.
31306         (Link): New section.
31307
31308         * modules/canonicalize-lgpl-tests (Makefile.am): Undo last change.
31309
31310 2007-04-06  Bruno Haible  <bruno@clisp.org>
31311
31312         Assume the 'long double' type.
31313         * m4/longdouble.m4: Remove file.
31314         * config/srclist.txt: Don't mention longdouble.m4.
31315         * lib/allocsa.h: Assume HAVE_LONG_DOUBLE to be true.
31316         * lib/float+.h: Likewise.
31317         * lib/frexp.c: Likewise.
31318         * lib/printf-args.h: Likewise.
31319         * lib/printf-args.c: Likewise.
31320         * lib/printf-frexp.c: Likewise.
31321         * lib/printf-parse.c: Likewise.
31322         * lib/vasnprintf.c: Likewise.
31323         * m4/allocsa.m4: Remove gt_TYPE_LONGDOUBLE invocation.
31324         * m4/intl.m4: Likewise.
31325         * m4/isnanl.m4: Likewise.
31326         * m4/printf.m4: Likewise.
31327         * m4/printf-frexpl.m4: Likewise.
31328         * m4/vasnprintf.m4: Likewise.
31329         * modules/allocsa (Files): Remove m4/longdouble.m4.
31330         * modules/gettext (Files): Likewise.
31331         * modules/relocatable-prog-wrapper (Files): Likewise.
31332         * modules/vasnprintf (Files): Likewise.
31333         * modules/isnanl (Files): Likewise.
31334         (Include): Simplify.
31335         * modules/isnanl-nolibm (Files): Remove m4/longdouble.m4.
31336         (Include): Simplify.
31337         * modules/printf-frexpl (Files): Remove m4/longdouble.m4.
31338         (Include): Simplify.
31339         * modules/snprintf-posix-tests (Files): Remove m4/longdouble.m4.
31340         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
31341         * modules/sprintf-posix-tests (Files): Remove m4/longdouble.m4.
31342         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
31343         * modules/vasnprintf-posix-tests (Files): Remove m4/longdouble.m4.
31344         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
31345         * modules/vasprintf-posix-tests (Files): Remove m4/longdouble.m4.
31346         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
31347         * modules/vsnprintf-posix-tests (Files): Remove m4/longdouble.m4.
31348         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
31349         * modules/vsprintf-posix-tests (Files): Remove m4/longdouble.m4.
31350         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
31351         * tests/test-isnanl-nolibm.c: Assume HAVE_LONG_DOUBLE to be true.
31352         * tests/test-isnanl.c: Likewise.
31353         * tests/test-snprintf-posix.h: Likewise.
31354         * tests/test-sprintf-posix.h: Likewise.
31355         * tests/test-vasnprintf-posix.c: Likewise.
31356         * tests/test-vasnprintf-posix2.c: Likewise.
31357         * tests/test-vasprintf-posix.c: Likewise.
31358
31359 2007-04-06  Bruno Haible  <bruno@clisp.org>
31360
31361         Fix problem with Compaq (ex-DEC) Desktop C compiler on Tru64.
31362         * lib/math_.h [__DECC]: Include the overridden include file through
31363         #include_next, outside the double-inclusion guard.
31364         * lib/stdio_.h [__DECC]: Likewise.
31365         * lib/stdlib_.h [__DECC]: Likewise.
31366         * lib/string_.h [__DECC]: Likewise.
31367         * lib/time_.h [__DECC]: Likewise.
31368         * lib/wchar_.h [__DECC]: Likewise.
31369         * lib/wctype_.h [__DECC]: Likewise.
31370         * lib/inttypes_.h [__DECC]: Likewise.
31371         Reported by Albert Chin <china@thewrittenword.com> in
31372         <http://lists.gnu.org/archive/html/bug-gnulib/2007-04/msg00088.html>.
31373
31374 2007-04-04  Eric Blake  <ebb9@byu.net>
31375
31376         * m4/stdint.m4 (gl_STDINT_H): Detect WINT_MAX bug in cygwin
31377         1.5.x.
31378
31379 2007-04-04  Bruno Haible  <bruno@clisp.org>
31380
31381         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_A): Add a test for correct
31382         rounding. Don't assume that FreeBSD 6 and NetBSD 4 pass this test.
31383
31384 2007-04-04  Bruno Haible  <bruno@clisp.org>
31385
31386         * tests/test-vasnprintf-posix.c (test_function): Allow two possible
31387         results for "%010a" of Infinity and NaN.
31388         * tests/test-vasprintf-posix.c (test_function): Likewise.
31389         * tests/test-snprintf-posix.h (test_function): Likewise.
31390         * tests/test-sprintf-posix.h (test_function): Likewise.
31391         * tests/test-fprintf-posix.h (test_function): Remove these tests.
31392         * tests/test-printf-posix.h (test_function): Likewise.
31393         * tests/test-fprintf-posix.out: Update.
31394         Needed for FreeBSD 6.1.
31395
31396 2007-04-04  Bruno Haible  <bruno@clisp.org>
31397
31398         * DEPENDENCIES: Remove mentions of tar and gzip, since they are not
31399         directly used by the gnulib modules nor by gnulib-tool.
31400
31401 2007-04-04  Paul Eggert  <eggert@cs.ucla.edu>
31402
31403         * DEPENDENCIES: Give overall description of version dependency
31404         desirability.  Use more-typical names for apps.
31405         Add shell, coreutils, diffutils, grep, tar, gzip.
31406
31407 2007-04-04  Simon Josefsson  <simon@josefsson.org>
31408
31409         * MODULES.html.sh: Rename crypto modules.  Remove iconvme.
31410
31411 2007-04-04  Karl Berry  <karl@gnu.org>
31412
31413         * MODULES.html.sh (func_module): missing '.
31414
31415 2007-04-03  Bruno Haible  <bruno@clisp.org>
31416
31417         * modules/argmatch-tests (Makefile.am): New variable
31418         test_argmatch_LDADD.
31419         * modules/argp-tests (Makefile.am): New variable test_argp_LDADD.
31420         * modules/array-list-tests (Makefile.am): New variable
31421         test_array_list_LDADD.
31422         * modules/array-oset-tests (Makefile.am): New variable
31423         test_array_oset_LDADD.
31424         * modules/avltree-list-tests (Makefile.am): New variable
31425         test_avltree_list_LDADD.
31426         * modules/avltree-oset-tests (Makefile.am): New variable
31427         test_avltree_oset_LDADD.
31428         * modules/avltreehash-list-tests (Makefile.am): New variable
31429         test_avltreehash_list_LDADD.
31430         * modules/canonicalize-lgpl-tests (Makefile.am): New variable
31431         test_canonicalize_lgpl_LDADD.
31432         * modules/carray-list-tests (Makefile.am): New variable
31433         test_carray_list_LDADD.
31434         * modules/dirname-tests (Makefile.am): New variable
31435         test_dirname_LDADD.
31436         * modules/linked-list-tests (Makefile.am): New variable
31437         test_linked_list_LDADD.
31438         * modules/linkedhash-list-tests (Makefile.am): New variable
31439         test_linkedhash_list_LDADD.
31440         * modules/rbtree-list-tests (Makefile.am): New variable
31441         test_rbtree_list_LDADD.
31442         * modules/rbtree-oset-tests (Makefile.am): New variable
31443         test_rbtree_oset_LDADD.
31444         * modules/rbtreehash-list-tests (Makefile.am): New variable
31445         test_rbtreehash_list_LDADD.
31446         * modules/xvasprintf-tests (Makefile.am): New variable
31447         test_xvasprintf_LDADD.
31448         Reported by Eric Blake.
31449
31450 2007-04-03  Eric Blake  <ebb9@byu.net>
31451
31452         * DEPENDENCIES: Weaken m4 requirements.
31453
31454 2007-04-03  Bruno Haible  <bruno@clisp.org>
31455
31456         * modules/frexp-tests (configure.ac): Remove AC_SUBST.
31457         * modules/isnanl-tests (configure.ac): Likewise.
31458
31459 2007-04-03  Ben Pfaff  <blp@gnu.org>
31460
31461         * modules/iconv_open: Add $(srcdir)/ to source directory
31462         references in Makefile fragments that call gperf, to fix VPATH
31463         builds.
31464
31465 2007-04-03  Bruno Haible  <bruno@clisp.org>
31466
31467         * modules/ldexpl (Depends-on): Add isnanl, remove isnanl-nolibm.
31468         * lib/ldexpl.c: Undo last change.
31469
31470 2007-04-03  Bruno Haible  <bruno@clisp.org>
31471
31472         * modules/printf-frexpl (Depends-on): Undo last change.
31473         (Files): Add m4/ldexpl.m4.
31474
31475 2007-04-03  Bruno Haible  <bruno@clisp.org>
31476
31477         * m4/isnanl.m4 (gl_FUNC_ISNANL): Substitute ISNANL_LIBM.
31478         * modules/isnanl (Link): New section.
31479
31480         * m4/frexp.m4 (gl_FUNC_FREXP): Substitute FREXP_LIBM.
31481         * modules/frexp (Link): New section.
31482
31483         * m4/frexpl.m4 (gl_FUNC_FREXPL): Substitute FREXPL_LIBM.
31484         * modules/frexpl (Link): New section.
31485
31486         * m4/ldexpl.m4 (gl_FUNC_LDEXPL): Substitute LDEXPL_LIBM.
31487         * modules/ldexpl (Link): New section.
31488
31489 2007-04-03  Bruno Haible  <bruno@clisp.org>
31490
31491         * modules/TEMPLATE-EXTENDED: New file.
31492         * gnulib-tool (func_all_modules, func_verify_module): Exclude it.
31493
31494 2007-04-03  Bruno Haible  <bruno@clisp.org>
31495
31496         * DEPENDENCIES: New file.
31497         Suggested by Simon Josefsson.
31498
31499 2007-04-03  Bruno Haible  <bruno@clisp.org>
31500
31501         * doc/gnulib.texi: Escape @.
31502
31503 2007-04-03  James Youngman  <jay@gnu.org>
31504         and Paul Eggert  <eggert@cs.ucla.edu>
31505
31506         * lib/stat-time.h (get_stat_birthtime): Check for zero-valued
31507         birthtime on all systems that have birthtime, not just those which
31508         use st_birthtimensec rather than st_birthtim.  Putting zero in
31509         st_birthtim.tv_sec is how (for example) FreeBSD/x86 6.1 indicates
31510         that the birth time is not available for files on an NFS mount.
31511
31512 2007-04-03  Simon Josefsson  <simon@josefsson.org>
31513
31514         * modules/memxor: Move back from crypto/, suggested by Bruno.
31515         * modules/crypto/hmac-sha1: Fix memxor dependency.
31516
31517         * modules/crypto/gc: Moved from ../.
31518
31519 2007-04-02  Eric Blake  <ebb9@byu.net>
31520
31521         * lib/ldexpl.c (includes): Avoid libm.
31522
31523         * modules/printf-frexpl (Depends-on): Depend on ldexpl.
31524
31525 2007-04-02  Bruno Haible  <bruno@clisp.org>
31526
31527         * lib/sysexit_.h (EX_OK): Disable the EX_OK definition from <unistd.h>
31528         on IRIX.
31529
31530 2007-04-02  Bruno Haible  <bruno@clisp.org>
31531
31532         * m4/intdiv0.m4 (gt_INTDIV0): Avoid performing the test for real on
31533         x86 or x86_64 platforms running MacOS X.
31534         Reported by Ryan Schmidt <@ryandesign.com>.
31535
31536 2007-04-02  Bruno Haible  <bruno@clisp.org>
31537
31538         * m4/intdiv0.m4 (gt_INTDIV0): When cross-compiling, treat x86_64 like
31539         i386.
31540
31541 2007-04-01  Simon Josefsson  <simon@josefsson.org>
31542
31543         * modules/crypto/arcfour: Moved from ../.
31544         * modules/crypto/arcfour-tests: Moved from ../.
31545         * modules/crypto/arctwo: Moved from ../.
31546         * modules/crypto/arctwo-tests: Moved from ../.
31547         * modules/crypto/des: Moved from ../.
31548         * modules/crypto/des-tests: Moved from ../.
31549         * modules/crypto/gc-arcfour: Moved from ../.
31550         * modules/crypto/gc-arcfour-tests: Moved from ../.
31551         * modules/crypto/gc-arctwo: Moved from ../.
31552         * modules/crypto/gc-arctwo-tests: Moved from ../.
31553         * modules/crypto/gc-des: Moved from ../.
31554         * modules/crypto/gc-des-tests: Moved from ../.
31555         * modules/crypto/gc-hmac-md5: Moved from ../.
31556         * modules/crypto/gc-hmac-md5-tests: Moved from ../.
31557         * modules/crypto/gc-hmac-sha1: Moved from ../.
31558         * modules/crypto/gc-hmac-sha1-tests: Moved from ../.
31559         * modules/crypto/gc-md2: Moved from ../.
31560         * modules/crypto/gc-md2-tests: Moved from ../.
31561         * modules/crypto/gc-md4: Moved from ../.
31562         * modules/crypto/gc-md4-tests: Moved from ../.
31563         * modules/crypto/gc-md5: Moved from ../.
31564         * modules/crypto/gc-md5-tests: Moved from ../.
31565         * modules/crypto/gc-pbkdf2-sha1: Moved from ../.
31566         * modules/crypto/gc-pbkdf2-sha1-tests: Moved from ../.
31567         * modules/crypto/gc-random: Moved from ../.
31568         * modules/crypto/gc-rijndael: Moved from ../.
31569         * modules/crypto/gc-rijndael-tests: Moved from ../.
31570         * modules/crypto/gc-sha1: Moved from ../.
31571         * modules/crypto/gc-sha1-tests: Moved from ../.
31572         * modules/crypto/gc-tests: Moved from ../.
31573         * modules/crypto/hmac-md5: Moved from ../.
31574         * modules/crypto/hmac-md5-tests: Moved from ../.
31575         * modules/crypto/hmac-sha1: Moved from ../.
31576         * modules/crypto/hmac-sha1-tests: Moved from ../.
31577         * modules/crypto/md2: Moved from ../.
31578         * modules/crypto/md2-tests: Moved from ../.
31579         * modules/crypto/md4: Moved from ../.
31580         * modules/crypto/md4-tests: Moved from ../.
31581         * modules/crypto/md5: Moved from ../.
31582         * modules/crypto/md5-tests: Moved from ../.
31583         * modules/crypto/memxor: Moved from ../.
31584         * modules/crypto/rijndael: Moved from ../.
31585         * modules/crypto/rijndael-tests: Moved from ../.
31586         * modules/crypto/sha1: Moved from ../.
31587
31588 2007-03-30  James Youngman  <jay@gnu.org>
31589
31590         * tests/test-stat-time.c (prepare_test): use chmod() rather than
31591         rename() to change the ctime of a file (because ctime is unaffected
31592         by rename on jfs2 on AIX 5.1).
31593         (main): Start by doing cleanup, in case a previous run failed leaving
31594         test files behind.
31595
31596 2007-03-31  Bruno Haible  <bruno@clisp.org>
31597
31598         Support old proprietary implementations of iconv.
31599         * modules/iconv_open: New file.
31600         * lib/iconv_.h: New file.
31601         * m4/iconv_h.m4: New file.
31602         * lib/iconv_open.c: New file.
31603         * lib/iconv_open-aix.gperf: New file.
31604         * lib/iconv_open-hpux.gperf: New file.
31605         * lib/iconv_open-irix.gperf: New file.
31606         * lib/iconv_open-osf.gperf: New file.
31607         * m4/iconv_open.m4: New file.
31608         * modules/linebreak (Depends-on): Add iconv_open.
31609         * modules/striconv (Depends-on): Likewise.
31610         * modules/striconveh (Depends-on): Likewise.
31611         * modules/unicodeio (Depends-on): Likewise.
31612         * lib/striconveh.h (mem_cd_iconveh, str_cd_iconveh): Allow cd to be
31613         (iconv_t)(-1).
31614         * lib/striconveh.c (mem_cd_iconveh_internal): Use an indirect
31615         conversion if cd is (iconv_t)(-1).
31616         (mem_iconveh, str_iconveh): Don't fail just because a direct conversion
31617         is not possible.
31618
31619 2007-03-31  Bruno Haible  <bruno@clisp.org>
31620
31621         * tests/test-striconveha.c (main): Don't expect "autodetect_jp" to
31622         work on Solaris either. Protect also second use of "autodetect_jp".
31623
31624 2007-03-31  Bruno Haible  <bruno@clisp.org>
31625
31626         * m4/frexpl.m4 (gl_FUNC_FREXPL): Set HAVE_DECL_FREXPL to 0 when
31627         the function is not present.
31628
31629 2007-03-31  Bruno Haible  <bruno@clisp.org>
31630
31631         * m4/ldexpl.m4 (gl_FUNC_LDEXPL): Set HAVE_DECL_LDEXPL to 0 when
31632         the function is not present.
31633
31634 2007-03-31  Bruno Haible  <bruno@clisp.org>
31635
31636         * m4/iconv.m4 (AM_ICONV_LINK): Fix 2007-03-29 patch. Test also against
31637         a bug in HP-UX iconv_open().
31638
31639 2007-03-31  Bruno Haible  <bruno@clisp.org>
31640
31641         * MODULES.html.sh (func_module): Don't show gnulib-common.m4.
31642         (Mathematics <math.h>): New section, add fpieee.
31643         (Input/output <stdio.h>): Add fseterr.
31644         (Mathematics <math.h>): New section, add printf-frexp.
31645         (Container data structures): Add sublist.
31646         (Core language properties): Add fpucw, inline.
31647         (Functions for greatest-width integer types <inttypes.h>): Add
31648         imaxabs, imaxdiv, inttypes.
31649         (Mathematics <math.h>): Add frexp, frexpl, isnan-nolibm, isnanl,
31650         isnanl-nolibm, ldexp.
31651         (Mathematics <math.h>): New section, add printf-frexpl.
31652         (Support for systems lacking POSIX:2001): Add fprintf-posix,
31653         printf-posix, snprintf-posix, sprintf-posix, string, search, socklen,
31654         sys_select, sys_socket, vasnprintf-posix, vasprintf-posix,
31655         vfprintf-posix, vprintf-posix, vsnprintf-posix, vsprintf-posix.
31656         (Unicode string functions): Add unistr/u*-mbtoucr.
31657         (Java): Add javacomp-script, javaexec-script.
31658         (C#): Add csharpcomp-script, csharpexec-script.
31659         (Support for building libraries and executables): Add havelib,
31660         relocatable-*.
31661         (Support for maintaining and releasing projects): Renamed from
31662         'Support for maintaining and release projects'. Add announce-gen.
31663
31664 2007-03-31  Bruno Haible  <bruno@clisp.org>
31665
31666         * README: Talk primarily about git.
31667         (git and CVS): Renamed from CVS.
31668         * doc/gnulib.texi (Introduction, Build robot for gnulib): Mention that
31669         gnulib is available through git.
31670         * doc/gnulib-tool.texi (CVS Issues): Mention git and svn as well.
31671
31672 2007-03-30  Bruno Haible  <bruno@clisp.org>
31673
31674         * lib/alloca_.h: Change prefix of double-inclusion guard macro to _GL_.
31675         * lib/poll_.h: Likewise.
31676         * lib/stat_.h: Likewise.
31677         * lib/sys_time_.h: Likewise.
31678         * lib/sysexit_.h: Likewise.
31679         * lib/glob_.h: Prefix double-inclusion guard macro with _GL_.
31680         * lib/stdbool_.h: Likewise.
31681         * lib/byteswap_.h: Add double-inclusion guard.
31682
31683 2007-03-30  Sergey Poznyakoff  <gray@mirddin.farlep.net>
31684
31685         * lib/sysexit_.h: Prefix double-inclusion guard macro with _GNULIB.
31686
31687 2007-03-30  Karl Berry  <karl@gnu.org>
31688
31689         * config/srclist-update: double space after USA in the license
31690         substitution, since that's how it's usually (?) written.
31691
31692 2007-03-30  Paul Eggert  <eggert@cs.ucla.edu>
31693
31694         * lib/write-any-file.c (can_write_any_file): Fix else-else bug
31695         reported by Bruno Haible.
31696
31697 2007-03-29  Bruno Haible  <bruno@clisp.org>
31698
31699         * m4/iconv.m4 (AM_ICONV_LINK): Require AC_CANONICAL_HOST. Test against
31700         a bug in AIX iconv().
31701
31702 2007-03-29  Bruno Haible  <bruno@clisp.org>
31703
31704         * modules/ldexpl-tests: New file.
31705         * tests/test-ldexpl.c: New file.
31706
31707 2007-03-29  Bruno Haible  <bruno@clisp.org>
31708
31709         * lib/ldexpl.c: Include fpucw.h.
31710         (ldexpl): Use BEGIN/END_LONG_DOUBLE_ROUNDING. Skip the last unneeded
31711         multiplication.
31712         * modules/ldexpl (Depends-on): Add fpucw.
31713
31714 2007-03-29  Bruno Haible  <bruno@clisp.org>
31715
31716         * modules/ldexpl: New file.
31717         * m4/ldexpl.m4: New file.
31718         * lib/math_.h (ldexpl): Define to a replacement if REPLACE_LDEXPL is
31719         set.
31720         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize also GNULIB_LDEXPL,
31721         REPLACE_LDEXPL.
31722         * modules/math (Makefile.am): Substitute also GNULIB_LDEXPL,
31723         REPLACE_LDEXPL.
31724         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Invoke
31725         gl_FUNC_LDEXPL_WORKS.
31726         * m4/mathl.m4 (gl_FUNC_LONG_DOUBLE_MATH): Remove test for ldexpl.
31727         * modules/mathl (Files): Remove lib/ldexpl.c.
31728         (Depends-on): Add ldexpl.
31729
31730 2007-03-29  Bruno Haible  <bruno@clisp.org>
31731
31732         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Declare frexpl.
31733
31734 2007-03-29  Bruno Haible  <bruno@clisp.org>
31735
31736         * tests/test-striconveh.c (main): Don't assume that a direct conversion
31737         between ISO-8859-1 and ISO-8859-2 is possible. Needed for OSF/1, IRIX
31738         and possibly also HP-UX.
31739         * tests/test-striconveha.c (main): Don't expect "autodetect_jp" to
31740         work on AIX, IRIX, HP-UX, OSF/1.
31741         * tests/uniconv/test-u16-conv-from-enc.c (main): Likewise.
31742         * tests/uniconv/test-u16-strconv-from-enc.c (main): Likewise.
31743         * tests/uniconv/test-u32-conv-from-enc.c (main): Likewise.
31744         * tests/uniconv/test-u32-strconv-from-enc.c (main): Likewise.
31745         * tests/uniconv/test-u8-conv-from-enc.c (main): Likewise.
31746         * tests/uniconv/test-u8-strconv-from-enc.c (main): Likewise.
31747
31748 2007-03-29  Bruno Haible  <bruno@clisp.org>
31749
31750         * tests/test-stat-time.c: Include <fcntl.h>, not <sys/fcntl.h>.
31751
31752 2007-03-29  Paul Eggert  <eggert@cs.ucla.edu>
31753
31754         * lib/acl-internal.h (acl_get_fd, acl_set_fd): undef before defining,
31755         to work around a problem on OSF/1 5.1 reported by Bruno Haible.
31756
31757 2007-03-29  Eric Blake  <ebb9@byu.net>
31758
31759         * lib/acl-internal.h: Remove redundant include.
31760         (ACL_NOT_WELL_SUPPORTED): Also filter on EBUSY, returned by
31761         Cygwin when a file is locked.
31762
31763 2007-03-29  Bruno Haible  <bruno@clisp.org>
31764
31765         * lib/vasprintf.c [IN_LIBASPRINTF]: Include different specification
31766         file.
31767         * lib/asprintf.c [IN_LIBASPRINTF]: Likewise.
31768
31769 2007-03-29  Paul Eggert  <eggert@cs.ucla.edu>
31770
31771         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Don't bother to
31772         try to remove a parent directory if the child couldn't be removed
31773         (except for the first rmdir, which could fail because the child
31774         doesn't exist).  Problem reported by Jeff Blaine in
31775         <http://lists.gnu.org/archive/html/bug-tar/2007-03/msg00014.html>.
31776
31777 2007-03-28  Bruno Haible  <bruno@clisp.org>
31778
31779         * lib/striconveh.c (utf8conv_carefully): New function.
31780         (mem_cd_iconveh_internal): Invoke it.
31781
31782 2007-03-28  Bruno Haible  <bruno@clisp.org>
31783
31784         * lib/striconveh.c (mem_cd_iconveh_internal): Use u8_mbtoucr instead
31785         of u8_mbtouc in order to distinguish invalid and incomplete UTF-8
31786         input.
31787         * modules/striconveh (Depends-on): Add unistr/u8-mbtoucr. Replace
31788         utf8-ucs4 with unistr/u8-mbtouc. Replace ucs4-utf8 with
31789         unistr/u8-uctomb.
31790
31791 2007-03-28  Bruno Haible  <bruno@clisp.org>
31792
31793         * modules/unistr/u8-mbtoucr: New file.
31794         * lib/unistr/u8-mbtoucr.c: New file.
31795         * modules/unistr/u16-mbtoucr: New file.
31796         * lib/unistr/u16-mbtoucr.c: New file.
31797         * modules/unistr/u16-mbtoucr: New file.
31798         * lib/unistr/u16-mbtoucr.c: New file.
31799         * lib/unistr.h (u8_mbtoucr, u16_mbtoucr, u32_mbtoucr): New declarations.
31800
31801 2007-03-27  Simon Josefsson  <simon@josefsson.org>
31802             Bruno Haible  <bruno@clisp.org>
31803
31804         * m4/vasprintf.m4: Convert AC_SUBST into shell variable for
31805         REPLACE_VASPRINTF.  Set HAVE_VASPRINTF.  Add
31806         AC_REQUIRE([gl_STDIO_H_DEFAULTS]).
31807
31808         * m4/stdio_h.m4: Add stubs for vasprintf too.
31809
31810         * modules/stdio: Support vasprintf in sed command.
31811
31812         * modules/vasprintf: Depend on stdio for prototypes.  Remove
31813         vasprintf.h.  Add stdio module indicator.
31814
31815         * lib/stdio_.h: Declare asprintf and vasprintf, based on
31816         vasprintf.h.
31817
31818         * lib/vasprintf.h: File removed.
31819
31820         * lib/asprintf.c: Use stdio.h instead of vasprintf.h.
31821         * lib/vasprintf.c: Ditto.
31822         * lib/xvasprintf.c: Ditto.
31823         * tests/test-vasprintf-posix.c: Ditto.
31824         * tests/test-vasprintf.c: Ditto.
31825
31826 2007-03-27  Bruno Haible  <bruno@clisp.org>
31827
31828         Make vasnprintf multithread-safe.
31829         * lib/vasnprintf.c (decimal_point_char): New function.
31830         (VASNPRINTF): Use it.
31831         Suggested by Simon Josefsson.
31832
31833 2007-03-27  Eric Blake  <ebb9@byu.net>
31834
31835         Support sub-second birthtime on cygwin.
31836         * m4/stat-time.m4 (gl_STAT_BIRTHTIME): Also check for st_birthtim.
31837         * lib/stat-time.h (STAT_TIMESPEC): Adjust comments.
31838         (get_stat_birthtime): Also work with st_birthtim.
31839
31840 2007-03-27  Paul Eggert  <eggert@cs.ucla.edu>
31841
31842         * lib/stat-time.h (USE_BIRTHTIME): Remove.
31843         (get_stat_atime_ns, get_stat_ctime_ns, get_stat_mtime_ns):
31844         (get_stat_birthtime_ns): Do not try to use "spare" fields.
31845         (get_stat_birthtime_ns): Simplify compile-time tests.
31846         (get_stat_birthtime): Change the API to look like
31847         get_stat_mtime etc., except return a negative tv_nsec on error.
31848         * m4/stat-time.m4 (gl_STAT_TIME, gl_STAT_BIRTHTIME):
31849         Don't check for "spare" fields.
31850         (gl_STAT_BIRTHTIME): Don't check for struct stat.st_birthtimespec.tv_sec
31851         or for struct stat.st_birthtime, as these tests aren't used.
31852         * tests/test-stat-time.c (test_birthtime): Adjust to new API.
31853
31854 2007-03-27  Bruno Haible  <bruno@clisp.org>
31855
31856         * lib/stat-time.h: Include <sys/stat.h>.
31857
31858 2007-03-27  James Youngman  <jay@gnu.org>
31859
31860         * lib/stat-time.h (get_stat_birthtime): New function for
31861           retrieving st_birthtime as provided by UFS2 (hence *BSD).
31862         * m4/stat-time.m4 (gl_STAT_BIRTHTIME): Probe for st_birthtime
31863           and its variants.
31864         * modules/stat-time (configure.ac): call gl_STAT_BIRTHTIME.
31865         * modules/stat-time-test: New file.
31866         * tests/test-stat-time.c: New test, devised by Bruno Haible.
31867
31868 2007-03-26  Bruno Haible  <bruno@clisp.org>
31869
31870         Better support of signalling NaNs.
31871         * lib/atanl.c: Include isnanl.h.
31872         (atanl): Perform test for NaN at the beginning of the function and
31873         through a call to isnanl.
31874         * lib/cosl.c: Include isnanl.h.
31875         (cosl): Perform test for NaN at the beginning of the function and
31876         through a call to isnanl.
31877         * lib/ldexpl.c: Include isnanl.h.
31878         (ldexpl): Perform test for NaN through a call to isnanl.
31879         * lib/logl.c: Include isnanl.h.
31880         (logl): Perform test for NaN at the beginning of the function and
31881         through a call to isnanl.
31882         * lib/sinl.c: Include isnanl.h.
31883         (sinl): Perform test for NaN at the beginning of the function and
31884         through a call to isnanl.
31885         * lib/sqrtl.c: Include isnanl.h.
31886         (sqrtl): Perform test for NaN at the beginning of the function and
31887         through a call to isnanl.
31888         * lib/tanl.c: Include isnanl.h.
31889         (tanl): Perform test for NaN at the beginning of the function and
31890         through a call to isnanl.
31891         * lib/trigl.c (ieee754_rem_pio2l): Remove test for NaN.
31892         * modules/mathl (Depends-on): Add isnanl.
31893
31894 2007-03-26  Eric Blake  <ebb9@byu.net>
31895
31896         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_DIRECTIVE_A): Fix
31897         regression in logic sense of previous patch.
31898
31899 2007-03-26  Bruno Haible  <bruno@clisp.org>
31900
31901         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_DIRECTIVE_A): Don't use
31902         unportable shell command "if ! ...".
31903         Reported by Ralf Wildenhues.
31904
31905 2007-03-25  Bruno Haible  <bruno@clisp.org>
31906
31907         * lib/sysexit_,h: If HAVE_SYSEXITS_H is defined, include the original
31908         <sysexits.h> file, and only add EX_CONFIG.
31909         * m4/sysexits.m4 (gl_SYSEXITS): If <sysexits.h> exists, check its
31910         absolute file name and whether it is sufficient. Substitute also
31911         HAVE_SYSEXITS_H and ABSOLUTE_SYSEXITS_H.
31912         * modules/sysexits (Makefile.am): Substitute HAVE_SYSEXITS_H and
31913         ABSOLUTE_SYSEXITS_H into sysexits.h.
31914
31915 2007-03-25  Bruno Haible  <bruno@clisp.org>
31916
31917         * lib/getaddrinfo.c (getaddrinfo): Don't access hints->ai_flags when
31918         hints is NULL.
31919
31920 2007-03-25  Bruno Haible  <bruno@clisp.org>
31921
31922         * lib/uniconv/u8-conv-from-enc.c (u8_conv_from_encoding): Add a cast.
31923         * lib/uniconv/u8-strconv-to-enc.c (u8_strconv_to_encoding): Likewise.
31924
31925 2007-03-25  Bruno Haible  <bruno@clisp.org>
31926
31927         * lib/vasnprintf.c: Include langinfo.h.
31928         (VASNPRINTF): Prefer nl_langinfo over localeconv, since it's more
31929         multithread-safe.
31930         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_DIRECTIVE_A): New macro.
31931         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke it.
31932         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
31933         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
31934         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
31935         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
31936         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
31937         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX: Likewise.
31938         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
31939         Reported by Simon Josefsson.
31940
31941 2007-03-25  Bruno Haible  <bruno@clisp.org>
31942
31943         * lib/printf-parse.c [!IN_LIBINTL]: Include <stdint.h>, for intmax_t.
31944         (PRINTF_PARSE): Make the support for size specifier 'j' unconditional.
31945         * modules/vasnprintf (Depends-on): Add stdint.
31946
31947 2007-03-25  Bruno Haible  <bruno@clisp.org>
31948
31949         * modules/fpieee: New file.
31950         * m4/fpieee.m4: New file.
31951         * modules/isnan-nolibm (Depends-on): Add fpieee.
31952         * modules/isnanl-nolibm (Depends-on): Add fpieee.
31953         * modules/isnanl (Depends-on): Add fpieee.
31954
31955 2007-03-25  Bruno Haible  <bruno@clisp.org>
31956
31957         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Test also finite numbers.
31958
31959 2007-03-25  Bruno Haible  <bruno@clisp.org>
31960
31961         Avoid test failures on IRIX 6.5.
31962         * tests/test-frexpl.c (MIN_NORMAL_EXP): New macro.
31963         (main): Use it.
31964         * tests/test-printf-frexpl.c (MIN_NORMAL_EXP, MIN_SUBNORMAL_EXP): New
31965         macros.
31966         (main): Use them.
31967
31968 2007-03-25  Bruno Haible  <bruno@clisp.org>
31969
31970         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): New macro.
31971         (gl_FUNC_FREXPL): Invoke it. Set REPLACE_FREXPL to 1 if it frexpl
31972         exists but doesn't work.
31973         * lib/math_.h (frexpl): Define as a replacement macro if REPLACE_FREXPL
31974         is set. Don't provide a prototype if REPLACE_FREXPL is not set.
31975         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_FREXPL.
31976         * modules/math (Makefile.am) Substibute also REPLACE_FREXPL into math.h.
31977
31978 2007-03-25  Bruno Haible  <bruno@clisp.org>
31979
31980         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Add check whether frexp(inf)
31981         returns inf. Needed on IRIX 6.5.
31982
31983 2007-03-25  Bruno Haible  <bruno@clisp.org>
31984
31985         * tests/test-frexpl.c: Include isnanl-nolibm.h.
31986         (main): Use isnanl instead of x != x idiom.
31987         * modules/frexpl-tests (Depends-on): Add isnanl-nolibm.
31988
31989         * tests/test-frexp.c: Include isnan.h.
31990         (main): Use isnan instead of x != x idiom.
31991         * modules/frexp-tests (Depends-on): Add isnan-nolibm.
31992
31993 2007-03-25  Bruno Haible  <bruno@clisp.org>
31994
31995         * tests/test-frexp.c (NaN): New function/macro.
31996         (main): Use it instead of 0.0 / 0.0.
31997         * tests/test-isnan.c (NaN): New function/macro.
31998         (main): Use it instead of 0.0 / 0.0.
31999         * tests/test-vasnprintf-posix.c (NaN): New function/macro.
32000         (test_function): Use it instead of 0.0 / 0.0.
32001         * tests/test-vasprintf-posix.c (NaN): New function/macro.
32002         (test_function): Use it instead of 0.0 / 0.0.
32003         * tests/test-snprintf-posix.h (NaN): New function/macro.
32004         (test_function): Use it instead of 0.0 / 0.0.
32005         * tests/test-sprintf-posix.h (NaN): New function/macro.
32006         (test_function): Use it instead of 0.0 / 0.0.
32007         * tests/test-fprintf-posix.h (NaN): New function/macro.
32008         (test_function): Use it instead of 0.0 / 0.0.
32009         * tests/test-printf-posix.h (NaN): New function/macro.
32010         (test_function): Use it instead of 0.0 / 0.0.
32011
32012         * lib/isnan.c (FUNC): Work around a DEC C compiler bug.
32013
32014 2007-03-25  Bruno Haible  <bruno@clisp.org>
32015
32016         * lib/glob_.h: Include <sys/stat.h>. Avoids warnings on AIX 5.1.
32017
32018 2007-03-25  Bruno Haible  <bruno@clisp.org>
32019
32020         * lib/regexec.c (merge_state_with_log): Make static.
32021
32022 2007-03-25  Bruno Haible  <bruno@clisp.org>
32023
32024         * lib/trigl.c (kernel_rem_pio2): Make static.
32025
32026 2007-03-25  Bruno Haible  <bruno@clisp.org>
32027
32028         * lib/sincosl.c (sincosl_table): Make static.
32029
32030 2007-03-25  Bruno Haible  <bruno@clisp.org>
32031
32032         * lib/argp.h (__restrict): Define to empty, rather than to 'restrict',
32033         if the compiler does not support C99.
32034
32035 2007-03-25  Bruno Haible  <bruno@clisp.org>
32036
32037         * modules/time (Makefile.am): Ensure all rule action lines start with a
32038         tab.
32039
32040 2007-03-24  Bruno Haible  <bruno@clisp.org>
32041
32042         * modules/tsearch-tests: New file.
32043         * tests/test-tsearch.sh: New file.
32044         * tests/test-tsearch.c: New file, mostly copied from glibc.
32045
32046         * modules/search-tests: New file.
32047         * tests/test-search.c: New file.
32048
32049         * modules/search: New file.
32050         * lib/search_.h: New file, incorporating lib/tsearch.h.
32051         * m4/search_h.m4: New file.
32052         * lib/tsearch.h: Remove file.
32053         * lib/tsearch.c: Include search.h instead of tsearch.h.
32054         * m4/tsearch.m4 (gl_FUNC_TSEARCH): Require gl_SEARCH_H_DEFAULTS. Set
32055         HAVE_TSEARCH.
32056         * modules/tsearch (Files): Remove lib/tsearch.h.
32057         (Depends-on): Add search.
32058         (configure.ac): Invoke gl_SEARCH_MODULE_INDICATOR.
32059         (Include): Change tsearch.h into search.h.
32060
32061 2007-03-24  Bruno Haible  <bruno@clisp.org>
32062
32063         * modules/fpucw: New file.
32064         * lib/fpucw.h: New file.
32065         * lib/frexp.c: Include fpucw.h.
32066         (DECL_ROUNDING, BEGIN_ROUNDING, END_ROUNDING): New macros.
32067         (FUNC): Use them.
32068         * lib/printf-frexp.c: Include fpucw.h.
32069         (DECL_ROUNDING, BEGIN_ROUNDING, END_ROUNDING): New macros.
32070         (FUNC): Use them.
32071         * lib/vasnprintf.c: Include fpucw.h.
32072         (VASNPRINTF): Invoke BEGIN/END_LONG_DOUBLE_ROUNDING around the
32073         'long double' calculations.
32074         * tests/test-frexpl.c: Include fpucw.h.
32075         (main): Invoke BEGIN_LONG_DOUBLE_ROUNDING.
32076         * tests/test-printf-frexpl.c: Include fpucw.h.
32077         (main): Invoke BEGIN_LONG_DOUBLE_ROUNDING.
32078         * modules/frexpl (Depends-on): Add fpucw.
32079         * modules/printf-frexpl (Depends-on): Likewise.
32080         * modules/fprintf-posix (Depends-on): Likewise.
32081         * modules/snprintf-posix (Depends-on): Likewise.
32082         * modules/sprintf-posix (Depends-on): Likewise.
32083         * modules/vasnprintf-posix (Depends-on): Likewise.
32084         * modules/vasprintf-posix (Depends-on): Likewise.
32085         * modules/vfprintf-posix (Depends-on): Likewise.
32086         * modules/vsnprintf-posix (Depends-on): Likewise.
32087         * modules/vsprintf-posix (Depends-on): Likewise.
32088         * modules/frexpl-tests (Depends-on): Likewise.
32089         * modules/printf-frexpl-tests (Depends-on): Likewise.
32090
32091 2007-03-24  Bruno Haible  <bruno@clisp.org>
32092
32093         * lib/float+.h: New file.
32094         * lib/isnan.c: Include float+.h.
32095         (SIZE): New macro.
32096         (FUNC): Compare only SIZE bytes of the value.
32097         * lib/vasnprintf.c: Include float+.h.
32098         (VASNPRINTF): When comparing agains +0.0L or +0.0, compare only
32099         SIZEOF_LDBL or SIZEOF_DBL bytes.
32100         * modules/isnan-nolibm (Files): Add lib/float+.h.
32101         * modules/isnanl-nolibm (Files): Add lib/float+.h.
32102         * modules/isnanl (Files): Add lib/float+.h.
32103         * modules/vasnprintf (Files): Add lib/float+.h.
32104
32105 2007-03-24  Bruno Haible  <bruno@clisp.org>
32106
32107         * lib/vasnprintf.c [!HAVE_LONG_DOUBLE]: Include printf-frexp.h. Don't
32108         include isnanl-nolibm.h.
32109
32110 2007-03-24  Bruno Haible  <bruno@clisp.org>
32111
32112         * tests/test-read-file.c (main): Don't produce spurious output for
32113         expected situations. Make the test fail if it encountered unexpected
32114         results.
32115
32116 2007-03-24  Bruno Haible  <bruno@clisp.org>
32117
32118         * m4/locale-fr.m4 (gt_LOCALE_FR): Remove the special-casing of NetBSD,
32119         since its fr_FR.ISO8859-1 locale wouldn't pass the tests.
32120
32121 2007-03-24  Bruno Haible  <bruno@clisp.org>
32122
32123         * m4/locale-fr.m4 (gt_LOCALE_FR, gt_LOCALE_FR_UTF8): Fix last change.
32124
32125 2007-03-24  Bruno Haible  <bruno@clisp.org>
32126
32127         * modules/unistr/base (Depends-on): Remove utf8-ucs4-unsafe,
32128         utf16-ucs4-unsafe, utf8-ucs4, utf16-ucs4, ucs4-utf8, ucs4-utf16.
32129
32130         * modules/unistr/u8-mbtouc: Add source files from module utf8-ucs4.
32131         * modules/utf8-ucs4: Turn into a symbolic link to module
32132         unistr/u8-mbtouc.
32133
32134         * modules/unistr/u8-mbtouc-unsafe: Add source files from module
32135         utf8-ucs4-unsafe.
32136         * modules/utf8-ucs4-unsafe: Turn into a symbolic link to module
32137         unistr/u8-mbtouc-unsafe.
32138
32139         * modules/unistr/u16-mbtouc: Add source files from module utf16-ucs4.
32140         * modules/utf16-ucs4: Turn into a symbolic link to module
32141         unistr/u16-mbtouc.
32142
32143         * modules/unistr/u16-mbtouc-unsafe: Add source files from module
32144         utf16-ucs4-unsafe.
32145         * modules/utf16-ucs4-unsafe: Turn into a symbolic link to module
32146         unistr/u16-mbtouc-unsafe.
32147
32148         * modules/unistr/u8-uctomb: Add source files from module utf4-utf8.
32149         * modules/ucs4-utf8: Turn into a symbolic link to module
32150         unistr/u8-ubtomb.
32151
32152         * modules/unistr/u16-uctomb: Add source files from module utf4-utf16.
32153         * modules/ucs4-utf16: Turn into a symbolic link to module
32154         unistr/u16-ubtomb.
32155
32156 2007-03-24  Bruno Haible  <bruno@clisp.org>
32157
32158         * lib/unistr/u8-mbtouc-aux.c: Renamed from lib/unistr/utf8-ucs4.c.
32159         Enable the function only if HAVE_INLINE.
32160         * lib/unistr/u8-mbtouc-unsafe-aux.c: Renamed from
32161         lib/unistr/utf8-ucs4-unsafe.c. Enable the function only if HAVE_INLINE.
32162         * lib/unistr/u16-mbtouc-aux.c: Renamed from lib/unistr/utf16-ucs4.c.
32163         Enable the function only if HAVE_INLINE.
32164         * lib/unistr/u16-mbtouc-unsafe-aux.c: Renamed from
32165         lib/unistr/utf16-ucs4-unsafe.c. Enable the function only if HAVE_INLINE.
32166         * lib/unistr/u8-uctomb-aux.c: Renamed from lib/unistr/ucs4-utf8.c.
32167         Enable the function only if HAVE_INLINE.
32168         * lib/unistr/u16-uctomb-aux.c: Renamed from lib/unistr/ucs4-utf16.c.
32169         Enable the function only if HAVE_INLINE.
32170         * modules/utf8-ucs4: Update.
32171         * modules/utf8-ucs4-unsafe: Update.
32172         * modules/utf16-ucs4: Update.
32173         * modules/utf16-ucs4-unsafe: Update.
32174         * modules/ucs4-utf8: Update.
32175         * modules/ucs4-utf16: Update.
32176
32177 2007-03-24  Bruno Haible  <bruno@clisp.org>
32178
32179         * lib/utf8-ucs4.h: Remove file.
32180         * lib/utf8-ucs4-unsafe.h: Remove file.
32181         * lib/utf16-ucs4.h: Remove file.
32182         * lib/utf16-ucs4-unsafe.h: Remove file.
32183         * lib/ucs4-utf8.h: Remove file.
32184         * lib/ucs4-utf16.h: Remove file.
32185         * lib/unistr.h: Include their previous contents.
32186         * m4/utf-ucs4.m4: Remove file.
32187         * m4/ucs4-utf.m4: Remove file.
32188         * modules/utf8-ucs4 (Files): Remove lib/utf8-ucs4.h.
32189         (Depends-on): Add unistr/base.
32190         (configure.ac): Remove gl_UTF_UCS4.
32191         (Makefile.am): Update.
32192         (Include): Change to unistr.h.
32193         * modules/utf8-ucs4-unsafe (Files): Remove lib/utf8-ucs4-unsafe.h.
32194         (Depends-on): Add unistr/base.
32195         (configure.ac): Remove gl_UTF_UCS4.
32196         (Makefile.am): Update.
32197         (Include): Change to unistr.h.
32198         * modules/utf16-ucs4 (Files): Remove lib/utf16-ucs4.h.
32199         (Depends-on): Add unistr/base.
32200         (configure.ac): Remove gl_UTF_UCS4.
32201         (Makefile.am): Update.
32202         (Include): Change to unistr.h.
32203         * modules/utf16-ucs4-unsafe (Files): Remove lib/utf16-ucs4-unsafe.h.
32204         (Depends-on): Add unistr/base.
32205         (configure.ac): Remove gl_UTF_UCS4.
32206         (Makefile.am): Update.
32207         (Include): Change to unistr.h.
32208         * modules/ucs4-utf8 (Files): Remove lib/ucs4-utf8.h.
32209         (Depends-on): Add unistr/base.
32210         (configure.ac): Remove gl_UCS4_UTF.
32211         (Makefile.am): Update.
32212         (Include): Change to unistr.h.
32213         * modules/ucs4-utf16 (Files): Remove lib/ucs4-utf16.h.
32214         (Depends-on): Add unistr/base.
32215         (configure.ac): Remove gl_UCS4_UTF.
32216         (Makefile.am): Update.
32217         (Include): Change to unistr.h.
32218         * lib/unistr/utf8-ucs4.c: Include unistr.h instead of utf8-ucs4.h.
32219         * lib/unistr/utf8-ucs4-unsafe.c: Include unistr.h instead of
32220         utf8-ucs4-unsafe.h.
32221         * lib/unistr/utf16-ucs4.c: Include unistr.h instead of utf16-ucs4.h.
32222         * lib/unistr/utf16-ucs4-unsafe.c: Include unistr.h instead of
32223         utf16-ucs4-unsafe.h.
32224         * lib/unistr/ucs4-utf8.c: Include unistr.h instead of ucs4-utf8.h.
32225         * lib/unistr/ucs4-utf16.c: Include unistr.h instead of ucs4-utf16.h.
32226         * lib/unistr/u8-chr.c: Don't include ucs4-utf8.h.
32227         * lib/unistr/u8-strchr.c: Likewise.
32228         * lib/unistr/u8-strrchr.c: Likewise.
32229         * lib/unistr/u16-chr.c: Don't include ucs4-utf16.h.
32230         * lib/unistr/u16-strchr.c: Likewise.
32231         * lib/unistr/u16-strrchr.c: Likewise.
32232         * lib/striconveh.c: Update.
32233         * lib/linebreak.c: Update.
32234
32235 2007-03-24  Bruno Haible  <bruno@clisp.org>
32236
32237         * lib/argp-help.c (fill_in_uparams, canon_doc_option): Cast the
32238         arguments of isspace, isalpha, isalnum, isdigit to 'unsigned char'.
32239
32240 2007-03-22  Bruno Haible  <bruno@clisp.org>
32241
32242         * lib/strptime.c (__strptime_internal): Use ANSI C syntax.
32243
32244 2007-03-23  Paul Eggert  <eggert@cs.ucla.edu>
32245
32246         * MODULES.html.sh (File system functions): New module write-any-file.
32247         * modules/write-any-file, lib/write-any-file.c, lib/write-any-file.h:
32248         * m4/write-any-file.m4: New files.
32249
32250 2007-03-23  Eric Blake  <ebb9@byu.net>
32251
32252         * gnulib-tool: Rearrange space-tab sequences, since some editors
32253         like to eat them.
32254
32255 2007-03-23  Eric Blake  <ebb9@byu.net>
32256
32257         * lib/version-etc.c (version_etc_va): Update license wording to
32258         be more concise.  Recommended by Richard Stallman.
32259
32260 2007-03-22  Bruno Haible  <bruno@clisp.org>
32261
32262         * lib/poll.c (MSG_PEEK): New fallback definition.
32263
32264 2007-03-22  Bruno Haible  <bruno@clisp.org>
32265
32266         * modules/sys_socket-tests (configure.ac): Check for shutdown function.
32267         * tests/test-sys_socket.c (a): Test only if shutdown() exists.
32268         (main): Update.
32269         Fixes a compilation error on BeOS.
32270
32271 2007-03-22  Bruno Haible  <bruno@clisp.org>
32272
32273         * modules/frexpl-tests: New file.
32274         * tests/test-frexpl.c: New file.
32275
32276         * modules/frexpl: New file.
32277         * m4/frexpl.m4: New file.
32278         * modules/math (Makefile.am): Also substitute GNULIB_FREXPL into math.h.
32279         * lib/math_.h (frexpl): Test GNULIB_FREXPL instead of GNULIB_MATHL.
32280         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_FREXPL.
32281         * modules/mathl (Files): Remove lib/frexpl.c, lib/frexp.c.
32282         (Depends-on): Add frexpl. Remove isnanl-nolibm.
32283         * m4/mathl.m4 (gl_FUNC_LONG_DOUBLE_MATH): Don't test for frexpl.
32284
32285 2007-03-22  Bruno Haible  <bruno@clisp.org>
32286
32287         * lib/frexpl.c: Share code with lib/frexp.c.
32288         * modules/mathl (Files): Add lib/frexp.c.
32289         (Depends-on): Add isnanl-nolibm.
32290
32291 2007-03-22  Bruno Haible  <bruno@clisp.org>
32292
32293         * modules/printf-frexp (Files): Add m4/frexp.m4.
32294         * m4/printf-frexp.m4 (gl_FUNC_PRINTF_FREXP): Define HAVE_FREXP_IN_LIBC
32295         only if the found frexp function actually works.
32296
32297 2007-03-22  Bruno Haible  <bruno@clisp.org>
32298
32299         * lib/frexp.c: Remove older implementation that uses divisions.
32300
32301 2007-03-21  Bruno Haible  <bruno@clisp.org>
32302
32303         * modules/frexp-tests: New file.
32304         * tests/test-frexp.c: New file.
32305
32306         * modules/frexp: New file.
32307         * lib/frexp.c: New file.
32308         * m4/frexp.m4: New file.
32309         * lib/math_.h (frexp): New declaration.
32310         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Also initialize GNULIB_FREXP and
32311         REPLACE_FREXP.
32312         * modules/math (math.h): Also substitute GNULIB_FREXP, REPLACE_FREXP.
32313
32314 2007-03-21  Bruno Haible  <bruno@clisp.org>
32315
32316         * modules/isnanl-tests: New file.
32317         * tests/test-isnanl.c: New file.
32318
32319         * modules/isnanl: New file.
32320         * lib/isnanl.h: New file.
32321         * m4/isnanl.m4 (gl_FUNC_ISNANL): New macro.
32322         (gl_FUNC_ISNANL_NO_LIBM): Invoke gl_HAVE_ISNANL_NO_LIBM,
32323         gl_FUNC_ISNANL_WORKS.
32324         (gl_HAVE_ISNANL_NO_LIBM, gl_HAVE_ISNANL_IN_LIBM, gl_FUNC_ISNANL_WORKS):
32325         New macros.
32326
32327 2007-03-21  Bruno Haible  <bruno@clisp.org>
32328
32329         * modules/isnanl-nolibm (Files): Add lib/isnanl-nolibm.h, remove
32330         lib/isnanl.h.
32331         (Include): Update.
32332         * lib/isnanl-nolibm.h: Renamed from lib/isnanl.h.
32333         * lib/vasnprintf.c: Update.
32334         * modules/isnanl-nolibm-tests (Files): Add tests/test-isnanl-nolibm.c,
32335         tests/test-isnanl.h, remove tests/test-isnanl.c.
32336         (Makefile.am): Update.
32337         * tests/test-isnanl-nolibm.c: New file.
32338         * tests/test-isnanl.h: New file.
32339         * tests/test-isnanl.c: Remove file.
32340
32341 2007-03-21  Jim Meyering  <jim@meyering.net>
32342
32343         When trying to open ".", treat ESTALE like EACCES.
32344         * lib/savewd.c (savewd_save): Resort to forking not just upon
32345         failure with EACCES, but also when errno is ESTALE.
32346
32347 2007-03-20  Bruno Haible  <bruno@clisp.org>
32348
32349         * lib/string_.h (strndup): Enable declaration also if HAVE_STRNDUP.
32350         Needed on AIX 5.1. Reported by Matthew Woehlke.
32351
32352 2007-03-19  Paul Eggert  <eggert@cs.ucla.edu>
32353
32354         Suggestions by Bruno Haible:
32355         * lib/acl-internal.h: Include "gettext.h" rather than rolling
32356         our own.
32357         (ACL_NOT_WELL_SUPPORTED): Parenthesize arg when used.
32358         * modules/acl (Depends-on): Add gettext.
32359
32360 2007-03-19  Bruno Haible  <bruno@clisp.org>
32361
32362         * modules/iconvme: Remove file.
32363         * lib/iconvme.h: Remove file.
32364         * lib/iconvme.c: Remove file.
32365         * m4/iconvme.m4: Remove file.
32366
32367 2007-03-19  Bruno Haible  <bruno@clisp.org>
32368
32369         * doc/relocatable-maint.texi: Break long shell script line.
32370         Suggested by Thien-Thi Nguyen <ttn@gnuvola.org>.
32371
32372 2007-03-19  Paul Eggert  <eggert@cs.ucla.edu>
32373
32374         Add limited support for Solaris 10 ZFS-style ACLs: just enough to
32375         handle file_has_acl.
32376         * lib/acl-internal.h, lib/acl_entries.c, lib/file-has-acl.c: New files.
32377         * lib/acl.c: Move header inclusions and related macro defns into
32378         lib/acl-internal.h.
32379         (S_ISLNK): Remove defn, since that's now done for us.
32380         (file_has_acl): Move to lib/file-has-acl.c.
32381         Call acl_trivial if available.  This is the crucial part of the fix.
32382         (acl_entries): Move to lib/acl_entries.c.  Now extern, since it's
32383         shared within the library.  Rewrite a bit, partly to make it compatible
32384         with the GNU coding style.
32385         * m4/acl.m4 (AC_FUNC_ACL): Add AC_LIBOBJ([file-has-acl]).
32386         Remove unnecessary double-quotes.
32387         Don't test for acl_to_text; the build will catch that.
32388         Replace acl_entries if it doesn't exist and it is needed.
32389         Check for -lsec and acl_trivial (as used on Solaris 10).
32390         * modules/acl (Files): Add lib/acl-internal.h, lib/acl_entries.c,
32391         lib/file-has-acl.c.
32392         (Depends-on): Add sys_stat, for S_ISLNK.
32393
32394 2007-03-19  Ben Pfaff  <blp@gnu.org>
32395
32396         * doc/gnulib.texi: Fix typos.
32397         Suggested by Thien-Thi Nguyen <ttn@gnuvola.org>.
32398
32399 2007-03-19  Paul Eggert  <eggert@cs.ucla.edu>
32400
32401         * lib/getcwd.c (__getcwd): Remove redundant comparison of buf to NULL.
32402         If size is zero here, buf must be zero.
32403
32404 2007-03-19  Simon Josefsson  <simon@josefsson.org>
32405
32406         * des.c: Remove weak_keys_chksum.  Reported by Bruno Haible
32407         <bruno@clisp.org>.
32408
32409 2007-03-18  Bruno Haible  <bruno@clisp.org>
32410
32411         * lib/vasnprintf.c (VASNPRINTF): Undo first part of last patch.
32412         Suggested by Eric Blake.
32413
32414 2007-03-18  Ben Pfaff  <blp@gnu.org>
32415
32416         * doc/relocatable.texi: Recommend using as prefix a directory
32417         that does not exist and will never be created.  Based on
32418         discussion with Bruno Haible, Ralf Wildenhues, Matthew Woehlke,
32419         and others.
32420
32421 2007-03-17  Bruno Haible  <bruno@clisp.org>
32422
32423         * lib/fchownat.c: Include lchown.h.
32424
32425 2007-03-17  Bruno Haible  <bruno@clisp.org>
32426
32427         Fix endless loop when the given allocated size was > INT_MAX.
32428         * lib/vasnprintf.c (EOVERFLOW): New fallback definition.
32429         (VASNPRINTF): Fail with EOVERFLOW when the given allocated size is
32430         larger than INT_MAX, or when it grow to a value larger than INT_MAX.
32431         * lib/vsprintf.c (vsprintf): Don't pass a size > INT_MAX to vasnprintf.
32432         * lib/sprintf.c (sprintf): Likewise.
32433
32434 2007-03-17  Bruno Haible  <bruno@clisp.org>
32435
32436         * tests/test-argp-2.sh (func_compare): Output a context diff.
32437
32438 2007-03-17  Bruno Haible  <bruno@clisp.org>
32439
32440         * m4/locale-fr.m4 (gt_LOCALE_FR, gt_LOCALE_FR_UTF8): Check also the
32441         locale's decimal-point character.
32442
32443 2007-03-17  Bruno Haible  <bruno@clisp.org>
32444
32445         * lib/vasnprintf.c (VASNPRINTF): Clear out the memory used for arg_mem
32446         before comparing it. Needed because on some platforms (e.g. x86) a
32447         'long double' occupies less bytes than sizeof (long double).
32448
32449 2007-03-17  Bruno Haible  <bruno@clisp.org>
32450
32451         * tests/test-crc.c (main): Make printf statements 64-bit clean.
32452         * tests/test-gc-pbkdf2-sha1.c (main): Likewise.
32453         * tests/test-getaddrinfo.c (simple): Likewise.
32454         * tests/test-read-file.c (main): Likewise.
32455
32456 2007-03-17  Bruno Haible  <bruno@clisp.org>
32457
32458         * tests/test-dirname.c (main): Make printf statements 64-bit clean.
32459
32460 2007-03-17  Bruno Haible  <bruno@clisp.org>
32461
32462         * tests/test-xvasprintf.c (test_xvasprintf, test_xasprintf): Remove
32463         unused variable.
32464
32465 2007-03-17  Bruno Haible  <bruno@clisp.org>
32466
32467         * tests/test-c-strcasecmp.c: Include c-strcase.h.
32468         * tests/test-c-strncasecmp.c: Likewise.
32469
32470 2007-03-17  Bruno Haible  <bruno@clisp.org>
32471
32472         * modules/stdlib (Depends-on): Add unistd.
32473         * lib/stdlib_.h: Include <unistd.h> if mkstemp is desired.
32474         Needed for MacOS X 10.3.
32475
32476 2007-03-17  Bruno Haible  <bruno@clisp.org>
32477
32478         * lib/unistr/u-strdup.h: Include <stdlib.h>.
32479
32480 2007-03-17  Bruno Haible  <bruno@clisp.org>
32481
32482         * lib/unistr/u-cpy-alloc.h: Include <stdlib.h>.
32483
32484 2007-03-17  Bruno Haible  <bruno@clisp.org>
32485
32486         * gnulib-tool (func_import): Update .cvsignore and .gitignore files
32487         to reflect files copied from gnulib (with or without modifications).
32488         Suggested by Jim Meyering.
32489
32490 2007-03-17  Eric Blake  <ebb9@byu.net>
32491
32492         * NEWS: Document stdlib change from 2007-02-18.
32493
32494 2007-03-17  Jim Meyering  <jim@meyering.net>
32495
32496         Detect use of AC_CONFIG_AUX_DIR also when its argument is quoted.
32497         * build-aux/bootstrap: Put ""s around use of $build_aux, in case
32498         someone uses a name containing shell meta-characters.
32499         Reported by Alfred M. Szmidt.
32500
32501         * build-aux/bootstrap: Don't use \> in grep regexp.  For HP-UX.
32502
32503 2007-03-16  Alfred M. Szmidt  <ams@gnu.org>
32504
32505         * build-aux/bootstrap (with_gettext): New variable.  Run autopoint
32506         and copy gettext configuration files only if configure.ac contains
32507         a use of AM_GNU_GETTEXT_VERSION.
32508
32509 2007-03-16  Alfred M. Szmidt  <ams@gnu.org>
32510
32511         * build-aux/bootstrap (gnulib_name): New variable.
32512         (gnulib_tool_options): Use it.
32513
32514 2007-03-13  Simon Josefsson  <simon@josefsson.org>
32515
32516         * tests/test-des.c: Use new namespace.
32517
32518 2007-03-15  Bruno Haible  <bruno@clisp.org>
32519
32520         * lib/dummy.c (gl_dummy_symbol): Renamed from 'dummy'.
32521         Reported by James Youngman <jay@gnu.org>.
32522
32523 2007-03-15  Bruno Haible  <bruno@clisp.org>
32524
32525         * lib/glob.c (glob): Add 'restrict' so that prototype matches the
32526         declared prototype. Needed with cc on OSF/1 5.1.
32527
32528 2007-03-15  Bruno Haible  <bruno@clisp.org>
32529
32530         * lib/gl_list.h (gl_listelement_dispose_fn): New type.
32531         (gl_list_create_empty, gl_list_create): Add dispose_fn argument.
32532         (struct gl_list_implementation): Add dispose_fn argument to the
32533         'create_empty', 'create' methods.
32534         (struct gl_list_impl_base): Add field 'dispose_fn'.
32535         * lib/gl_list.c (gl_list_create_empty, gl_list_create): Add dispose_fn
32536         argument.
32537         * lib/gl_array_list.c (gl_array_create_empty, gl_array_create): Add
32538         dispose_fn argument.
32539         (gl_array_remove_node, gl_array_remove_at, gl_array_list_free): Call
32540         dispose_fn on the dropped values.
32541         * lib/gl_carray_list.c (gl_carray_create_empty, gl_carray_create): Add
32542         dispose_fn argument.
32543         (gl_carray_remove_at, gl_carray_list_free): Call dispose_fn on the
32544         dropped values.
32545         * lib/gl_anyavltree_list2.h (gl_tree_create): Add dispose_fn argument.
32546         (gl_tree_remove_node): Call dispose_fn on the dropped value.
32547         * lib/gl_anyrbtree_list2.h (gl_tree_create): Add dispose_fn argument.
32548         (gl_tree_remove_node): Call dispose_fn on the dropped value.
32549         * lib/gl_anytree_list2.h (gl_tree_create_empty): Add dispose_fn
32550         argument.
32551         (gl_tree_list_free): Call dispose_fn on the dropped values.
32552         * lib/gl_anytreehash_list2.h (gl_tree_list_free): Call dispose_fn on
32553         the dropped values.
32554         * lib/gl_anylinked_list2.h (gl_linked_create_empty, gl_linked_create):
32555         Add dispose_fn argument.
32556         (gl_linked_remove_node, gl_linked_remove_at, gl_linked_list_free):
32557         Call dispose_fn on the dropped values.
32558         * lib/gl_sublist.c (gl_sublist_create_empty, gl_sublist_create_fill):
32559         Add dispose_fn argument.
32560         (gl_sublist_create): Initialize the 'dispose_fn' field.
32561         * lib/clean-temp.c (create_temp_dir, register_fd): Update.
32562         * tests/test-array_list.c (main): Update.
32563         * tests/test-carray_list.c (main): Update.
32564         * tests/test-avltree_list.c (main): Update.
32565         * tests/test-rbtree_list.c (main): Update.
32566         * tests/test-avltreehash_list.c (main): Update.
32567         * tests/test-rbtreehash_list.c (main): Update.
32568         * tests/test-linked_list.c (main): Update.
32569         * tests/test-linkedhash_list.c (main): Update.
32570         * tests/test-array_oset.c (main): Update.
32571
32572 2007-03-15  Bruno Haible  <bruno@clisp.org>
32573
32574         * lib/gl_oset.h (gl_setelement_dispose_fn): New type.
32575         (gl_oset_create_empty): Add dispose_fn argument.
32576         (struct gl_oset_implementation): Add dispose_fn argument to
32577         'create_empty' method.
32578         (struct gl_oset_impl_base): Add dispose_fn field.
32579         * lib/gl_oset.c (gl_oset_create_empty): Add dispose_fn argument.
32580         * lib/gl_array_oset.c (gl_array_create_empty): Add dispose_fn argument.
32581         (gl_array_remove_at, gl_array_free): Call dispose_fn on the dropped
32582         values.
32583         * lib/gl_anytree_oset.h (gl_tree_create_empty): Add dispose_fn argument.
32584         (gl_tree_oset_free): Call dispose_fn on the dropped values.
32585         * lib/gl_avltree_oset.c (gl_tree_remove_node): Call dispose_fn on the
32586         dropped value.
32587         * lib/gl_rbtree_oset.c (gl_tree_remove_node): Call dispose_fn on the
32588         dropped value.
32589         * tests/test-array_oset.c (main): Update.
32590         * tests/test-avltree_oset.c (main): Update.
32591         * tests/test-rbtree_oset.c (main): Update.
32592         * lib/gl_anytreehash_list1.h (add_to_bucket): Update.
32593
32594 2007-03-13  Bruno Haible  <bruno@clisp.org>
32595
32596         * tests/test-stdbool.c (i): Update after last patch.
32597
32598 2007-03-12  Bruno Haible  <bruno@clisp.org>
32599
32600         * lib/quotearg.c: Include <wctype.h> early, before the definition of
32601         the iswprint macro. Needed on Solaris 2.5.1.
32602
32603 2007-03-12  Bruno Haible  <bruno@clisp.org>
32604
32605         * tests/test-printf-frexp.c (main): Declare x as volatile.
32606
32607 2007-03-12  Simon Josefsson  <simon@josefsson.org>
32608
32609         * doc/gnulib.texi (Build robot for gnulib): New section.
32610
32611 2007-03-12  Jim Meyering  <jim@meyering.net>
32612
32613         * build-aux/bootstrap: New file.
32614         * build-aux/bootstrap.conf: New file, from coreutils.
32615
32616 2007-03-11  Bruno Haible  <bruno@clisp.org>
32617
32618         * m4/cycle-check.m4 (gl_CYCLE_CHECK): Require AC_C_INLINE.
32619
32620 2007-03-12  Simon Josefsson  <simon@josefsson.org>
32621
32622         * lib/des.h, lib/des.c, lib/gc-gnulib.c: Use gl_ namespace, to
32623         avoid collisions with 'des_setkey'.  Reported by Bruno Haible
32624         <bruno@clisp.org>.  Also change 'tripledes_' to '3des_'.
32625
32626 2007-03-11  Bruno Haible  <bruno@clisp.org>
32627
32628         * m4/locale-tr.m4 (gt_LOCALE_TR_UTF8): If the test program fails to
32629         compile, set LOCALE_TR_UTF8 to 'none' instead of empty.
32630
32631 2007-03-11  Bruno Haible  <bruno@clisp.org>
32632
32633         * lib/stdint_.h (INT64_MIN, INTMAX_MIN): Avoid using the ~INT..._MAX
32634         formula. Needed for SunPRO C 5.0.
32635
32636 2007-03-11  Bruno Haible  <bruno@clisp.org>
32637
32638         * modules/long-options (Depends-on): Add getopt.
32639
32640 2007-03-11  Bruno Haible  <bruno@clisp.org>
32641
32642         * modules/modechange (Depends-on): Add stdbool.
32643
32644 2007-03-11  Bruno Haible  <bruno@clisp.org>
32645
32646         * modules/i-ring (Depends-on): Add stdbool.
32647
32648 2007-03-11  Bruno Haible  <bruno@clisp.org>
32649
32650         * modules/gc-des (Depends-on): Add stdbool.
32651
32652 2007-03-11  Bruno Haible  <bruno@clisp.org>
32653
32654         * m4/mktime.m4 (gl_PREREQ_MKTIME): Require AC_C_INLINE.
32655
32656 2007-03-11  Bruno Haible  <bruno@clisp.org>
32657
32658         * m4/mempcpy.m4 (gl_FUNC_MEMPCPY): Require AC_C_RESTRICT.
32659
32660 2007-03-11  Bruno Haible  <bruno@clisp.org>
32661
32662         * lib/unistr/u32-mbtouc-unsafe.c (u32_mbtouc_unsafe): Fix syntax error.
32663
32664 2007-03-11  Bruno Haible  <bruno@clisp.org>
32665
32666         * lib/vasnprintf.c (sprintf): Undefine.
32667
32668 2007-03-11  Bruno Haible  <bruno@clisp.org>
32669
32670         * lib/isnan.c (rpl_isnan, rpl_isnanl): Work around bug regarding
32671         initializers in SunPRO C and Compaq C compilers.
32672
32673 2007-03-11  Bruno Haible  <bruno@clisp.org>
32674
32675         * lib/gl_array_oset.c (gl_array_iterator_next): Make pointer
32676         decrementing code ANSI C compliant.
32677
32678 2007-03-11  Bruno Haible  <bruno@clisp.org>
32679
32680         * lib/dummy.c [__sun]: Define a dummy variable, not just a typedef.
32681         Needed for Solaris 2.5.1 ranlib and SunPRO C 5.0.
32682
32683 2007-03-11  Bruno Haible  <bruno@clisp.org>
32684
32685         * tests/test-stdbool.c (s, d, e, xlcbug): Disable checks that gnulib's
32686         <stdbool.h> substitute doesn't pass.
32687
32688 2007-03-11  Bruno Haible  <bruno@clisp.org>
32689
32690         * lib/vasnprintf.c (snprintf): Undefine. Avoids an endless recursion.
32691
32692 2007-03-11  Bruno Haible  <bruno@clisp.org>
32693
32694         * gnulib-tool (func_create_megatestdir): Create also an autobuild
32695         script, for submission to autobuild.josefsson.org.
32696
32697 2007-03-10  Bruno Haible  <bruno@clisp.org>
32698
32699         * modules/canonicalize-lgpl-tests: New file.
32700         * tests/test-canonicalize-lgpl.sh: New file.
32701         * tests/test-canonicalize-lgpl.c: New file.
32702
32703         * modules/c-strcase-tests: New file.
32704         * tests/test-c-strcase.sh: New file.
32705         * tests/test-c-strcasecmp.c: New file.
32706         * tests/test-c-strncasecmp.c: New file.
32707
32708         * modules/atexit-tests: New file.
32709         * tests/test-atexit.sh: New file.
32710         * tests/test-atexit.c: New file.
32711
32712 2007-03-10  Bruno Haible  <bruno@clisp.org>
32713
32714         * tests/test-binary-io.sh: Use temporary filenames that are not so
32715         likely to clash with those of other tests (in a parallel make).
32716         * tests/test-binary-io.c: Likewise.
32717
32718 2007-03-10  Bruno Haible  <bruno@clisp.org>
32719
32720         * lib/fseterr.c (fseterr): Port to Solaris/SPARC64. Deactivate the
32721         fallback; use #error instead.
32722         Suggested by Simon Josefsson.
32723
32724 2007-03-10  Bruno Haible  <bruno@clisp.org>
32725
32726         * gnulib-tool (func_create_testdir): Treat MOSTLYCLEANFILES like
32727         CLEANFILES. Put spaces in each line of $cleaned_files, not only the
32728         first and the last.
32729
32730 2007-03-10  Bruno Haible  <bruno@clisp.org>
32731
32732         * lib/stdint_.h (uint_least64_t): Fix typo in last patch.
32733
32734 2007-03-10  Bruno Haible  <bruno@clisp.org>
32735
32736         * modules/snprintf-posix-tests (EXTRA_DIST): New variable. Needed for
32737         "make distcheck".
32738         * modules/sprintf-posix-tests (EXTRA_DIST): Likewise.
32739         * modules/vsnprintf-posix-tests (EXTRA_DIST): Likewise.
32740         * modules/vsprintf-posix-tests (EXTRA_DIST): Likewise.
32741
32742 2007-03-10  Bruno Haible  <bruno@clisp.org>
32743
32744         * modules/allocsa-tests (test_allocsa_SOURCES): Remove redundant
32745         variable.
32746         * modules/dirname-tests (test_dirname_SOURCES): Remove redundant
32747         variable.
32748
32749 2007-03-09  Eric Blake  <ebb9@byu.net>
32750         and Matthew Woehlke  <mw_triad@users.sourceforge.net>  (tiny change)
32751
32752         * lib/stdint_.h (int64_t, uint64_t): Don't undefine if 64-bit
32753         types are not being provided by gnulib.
32754         (GL_INT64_T, GL_UINT64_T): New witnesses of whether gnulib 64-bit
32755         types are supported.
32756
32757 2007-03-10  Bruno Haible  <bruno@clisp.org>
32758
32759         * lib/stdio_.h (__attribute__): New macro.
32760         (fprintf, vfprintf, printf, vprintf, snprintf, vsnprintf, sprintf,
32761         vsprintf): Specify __attribute__ __format__ for GCC.
32762         Suggested by Eric Blake.
32763
32764 2007-03-09  Bruno Haible  <bruno@clisp.org>
32765
32766         * modules/printf-posix-tests: New file.
32767         * tests/test-printf-posix.sh: New file.
32768         * tests/test-printf-posix.c: New file.
32769
32770         * modules/printf-posix: New file.
32771         * lib/printf.c: New file.
32772         * m4/printf-posix-rpl.m4: New file.
32773         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_PRINTF_POSIX,
32774         REPLACE_PRINTF.
32775         * lib/stdio_.h (printf): New declaration.
32776         (format, __format__, ____printf____, ____scanf____, ____strftime____,
32777         ____strfmon____): New macros.
32778         * modules/stdio (Makefile.am): Substitute also GNULIB_PRINTF_POSIX,
32779         REPLACE_PRINTF.
32780
32781 2007-03-09  Bruno Haible  <bruno@clisp.org>
32782
32783         * tests/test-vasnprintf-posix2.sh: New file.
32784         * tests/test-vasnprintf-posix2.c: New file.
32785         * modules/vasnprintf-posix-tests (Files): Add them and m4/locale-fr.m4.
32786         (configure.ac): Invoke gt_LOCALE_FR and gt_LOCALE_FR_UTF8.
32787         (Makefile.am): Activate test-vasnprintf-posix2.sh.
32788
32789         * lib/vasnprintf.c (VASNPRINTF): For the 'a' and 'A' directives, use
32790         a locale dependent decimal point, rather than always '.'.
32791
32792 2007-03-09  Eric Blake  <ebb9@byu.net>
32793
32794         * lib/stdlib_.h (EXIT_FAILURE): GNU code expects this to be 1, in
32795         spite of platforms like Tandem/NSK that define it to -1.
32796
32797 2007-03-08  Bruno Haible  <bruno@clisp.org>
32798
32799         * modules/vprintf-posix-tests: New file.
32800         * tests/test-vprintf-posix.sh: New file.
32801         * tests/test-vprintf-posix.c: New file.
32802         * tests/test-printf-posix.h: New file.
32803
32804         * modules/vprintf-posix: New file.
32805         * lib/vprintf.c: New file.
32806         * m4/vprintf-posix.m4: New file.
32807         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_VPRINTF_POSIX,
32808         REPLACE_VPRINTF.
32809         * lib/stdio_.h (vprintf): New declaration.
32810         * modules/stdio (Makefile.am): Substitute also GNULIB_VPRINTF_POSIX,
32811         REPLACE_VPRINTF.
32812
32813 2007-03-08  Bruno Haible  <bruno@clisp.org>
32814
32815         * modules/fprintf-posix-tests: New file.
32816         * tests/test-fprintf-posix.sh: New file.
32817         * tests/test-fprintf-posix.c: New file.
32818
32819         * modules/fprintf-posix: New file.
32820         * lib/fprintf.c: New file.
32821         * m4/fprintf-posix.m4: New file.
32822         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_FPRINTF_POSIX,
32823         REPLACE_FPRINTF.
32824         * lib/stdio_.h (fprintf): New declaration.
32825         * modules/stdio (Makefile.am): Substitute also GNULIB_FPRINTF_POSIX,
32826         REPLACE_FPRINTF.
32827
32828 2007-03-08  Bruno Haible  <bruno@clisp.org>
32829
32830         * modules/vfprintf-posix-tests: New file.
32831         * tests/test-vfprintf-posix.sh: New file.
32832         * tests/test-vfprintf-posix.c: New file.
32833         * tests/test-fprintf-posix.h: New file.
32834         * tests/test-fprintf-posix.out: New file.
32835
32836         * modules/vfprintf-posix: New file.
32837         * lib/vfprintf.c: New file.
32838         * m4/vfprintf-posix.m4: New file.
32839         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_VFPRINTF_POSIX,
32840         REPLACE_VFPRINTF.
32841         * lib/stdio_.h (vfprintf): New declaration.
32842         * modules/stdio (Makefile.am): Substitute also GNULIB_VFPRINTF_POSIX,
32843         REPLACE_VFPRINTF.
32844
32845 2007-03-08  Bruno Haible  <bruno@clisp.org>
32846
32847         * lib/stdio_.h: Treat __need___FILE like __need_FILE.
32848
32849 2007-03-08  Bruno Haible  <bruno@clisp.org>
32850
32851         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Use 'case' statements
32852         instead of 'expr' invocations.
32853         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
32854         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
32855         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
32856         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
32857         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
32858         Suggested by Paul Eggert.
32859
32860 2007-03-08  Bruno Haible  <bruno@clisp.org>
32861
32862         * modules/fseterr-tests: New file.
32863         * tests/test-fseterr.c: New file.
32864
32865         * modules/fseterr: New file.
32866         * lib/fseterr.h: New file.
32867         * lib/fseterr.c: New file.
32868
32869 2007-03-08  Bruno Haible  <bruno@clisp.org>
32870
32871         * lib/fnmatch_.h: Convert tabs in the middle of lines to spaces.
32872         * lib/getopt_.h: Likewise.
32873         * lib/mbswidth.h: Likewise.
32874         * lib/setenv.h: Likewise.
32875         * lib/vasnprintf.h: Likewise.
32876         * lib/vasprintf.h: Likewise.
32877         * lib/verror.h: Likewise.
32878         * lib/xsetenv.h: Likewise.
32879         * lib/xvasprintf.h: Likewise.
32880
32881 2007-03-08  Jim Meyering  <jim@meyering.net>
32882
32883         * users.txt: Add parted.
32884
32885         * ChangeLog: Restore 1500 lines mistakenly removed from the end.
32886
32887 2007-03-07  Bruno Haible  <bruno@clisp.org>
32888
32889         * m4/printf.m4: Make the shell script snippets copy&pastable.
32890
32891 2007-03-02  Bruno Haible  <bruno@clisp.org>
32892
32893         * lib/netinet_in_.h: New file.
32894         * m4/netinet_in_h.m4 (gl_HEADER_NETINET_IN): Test whether netinet/in.h
32895         is self-contained. Set ABSOLUTE_NETINET_IN_H, HAVE_NETINET_IN_H.
32896         * modules/netinet_in (Files): Add lib/netinet_in_.h.
32897         (Depends-on): Add absolute-header.
32898         (Makefile.am): Substitute ABSOLUTE_NETINET_IN_H, HAVE_NETINET_IN_H
32899         into netinet/in.h.
32900
32901 2007-03-03  Bruno Haible  <bruno@clisp.org>
32902
32903         * lib/sys_select_.h: New file.
32904         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SELECT): Test whether sys/select.h
32905         is self-contained. Set ABSOLUTE_SYS_SELECT_H, HAVE_SYS_SELECT_H.
32906         * modules/sys_select (Files): Add lib/sys_select_.h.
32907         (Depends-on): Add absolute-header.
32908         (Makefile.am): Substitute ABSOLUTE_SYS_SELECT_H, HAVE_SYS_SELECT_H
32909         into sys/select.h.
32910
32911 2007-03-02  Bruno Haible  <bruno@clisp.org>
32912
32913         * lib/socket_.h: If sys/socket.h exists, include that and <sys/types.h>
32914         before it. Turn HAVE_WINSOCK2_H and HAVE_WS2TCPIP_H into configute-time
32915         values.
32916         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Test also whether
32917         <sys/socket.h> is self-contained. Set ABSOLUTE_SYS_SOCKET_H,
32918         HAVE_SYS_SOCKET_H, HAVE_WINSOCK2_H, HAVE_WS2TCPIP_H.
32919         * modules/sys_socket (Depends-on): Add absolute-header.
32920         (Makefile.am): Substitute ABSOLUTE_SYS_SOCKET_H, HAVE_SYS_SOCKET_H,
32921         HAVE_WINSOCK2_H, HAVE_WS2TCPIP_H into sys/socket.h.
32922         (Include): Remove requirement of inclusion of <sys/types.h>.
32923
32924 2007-03-02  Bruno Haible  <bruno@clisp.org>
32925
32926         * lib/byteswap_.h (bswap_32): Fix formula.
32927
32928 2007-03-06  Bruno Haible  <bruno@clisp.org>
32929
32930         * modules/sprintf-posix-tests: New file.
32931         * tests/test-sprintf-posix.c: New file.
32932
32933         * modules/sprintf-posix: New file.
32934         * lib/sprintf.c: New file.
32935         * m4/sprintf-posix.m4: New file.
32936         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_SPRINTF_POSIX,
32937         REPLACE_SPRINTF.
32938         * lib/stdio_.h (sprintf): New declaration.
32939         * modules/stdio (Makefile.am): Substitute also GNULIB_SPRINTF_POSIX,
32940         REPLACE_SPRINTF.
32941
32942 2007-03-06  Bruno Haible  <bruno@clisp.org>
32943
32944         * modules/vsprintf-posix-tests: New file.
32945         * tests/test-vsprintf-posix.c: New file.
32946         * tests/test-sprintf-posix.h: New file.
32947
32948         * modules/vsprintf-posix: New file.
32949         * lib/vsprintf.c: New file.
32950         * m4/vsprintf-posix.m4: New file.
32951         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_VSPRINTF_POSIX,
32952         REPLACE_VSPRINTF.
32953         * lib/stdio_.h (vsprintf): New declaration.
32954         * modules/stdio (Makefile.am): Substitute also GNULIB_VSPRINTF_POSIX,
32955         REPLACE_VSPRINTF.
32956
32957 2007-03-06  Bruno Haible  <bruno@clisp.org>
32958
32959         * modules/vsnprintf (Depend-on): Remove minmax.
32960
32961 2007-03-06  Bruno Haible  <bruno@clisp.org>
32962
32963         * modules/snprintf-posix-tests: New file.
32964         * tests/test-snprintf-posix.c: New file.
32965
32966         * modules/snprintf-posix: New file.
32967         * m4/snprintf-posix.m4: New file.
32968         * m4/snprintf.m4 (gl_REPLACE_SNPRINTF): New macro, extracted from
32969         gl_FUNC_SNPRINTF.
32970         (gl_FUNC_SNPRINTF): Invoke it.
32971         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also REPLACE_SNPRINTF.
32972         * lib/stdio_.h (snprintf): Define as a replacement if REPLACE_SNPRINTF
32973         is set.
32974         * modules/stdio (Makefile.am): Substitute also REPLACE_SNPRINTF.
32975
32976 2007-03-06  Bruno Haible  <bruno@clisp.org>
32977
32978         * modules/vsnprintf-posix-tests: New file.
32979         * tests/test-vsnprintf-posix.c: New file.
32980         * tests/test-snprintf-posix.h: New file.
32981
32982         * modules/vsnprintf-posix: New file.
32983         * m4/vsnprintf-posix.m4: New file.
32984         * m4/vsnprintf.m4 (gl_REPLACE_VSNPRINTF): New macro, extracted from
32985         gl_FUNC_VSNPRINTF.
32986         (gl_FUNC_VSNPRINTF): Invoke it.
32987         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also REPLACE_VSNPRINTF.
32988         * lib/stdio_.h (vsnprintf): Define as a replacement if
32989         REPLACE_VSNPRINTF is set.
32990         * modules/stdio (Makefile.am): Substitute also REPLACE_VSNPRINTF.
32991
32992 2007-03-06  Bruno Haible  <bruno@clisp.org>
32993
32994         * m4/vasnprintf.m4 (gl_REPLACE_VASNPRINTF): Test for vasnprintf here.
32995         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): ... not here.
32996
32997 2007-03-06  Bruno Haible  <bruno@clisp.org>
32998
32999         * lib/math_.h (acosl): Declare also if HAVE_DECL_ACOSL is set.
33000         (asinl): Declare also if HAVE_DECL_ASINL is set.
33001         (atanl): Declare also if HAVE_DECL_ATANL is set.
33002         (ceill): Declare also if HAVE_DECL_CEILL is set.
33003         (cosl): Declare also if HAVE_DECL_COSL is set.
33004         (expl): Declare also if HAVE_DECL_EXPL is set.
33005         (floorl): Declare also if HAVE_DECL_FLOORL is set.
33006         (frexpl): Declare also if HAVE_DECL_FREXPL is set.
33007         (ldexpl): Declare also if HAVE_DECL_LDEXPL is set.
33008         (logl): Declare also if HAVE_DECL_LOGL is set.
33009         (sinl): Declare also if HAVE_DECL_SINL is set.
33010         (sqrtl): Declare also if HAVE_DECL_SQRTL is set.
33011         (tanl): Declare also if HAVE_DECL_TANL is set.
33012         * modules/math (Makefile.am): Substitute the values of HAVE_DECL_*.
33013         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Set HAVE_DECL_* to 1.
33014         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Fix tests for the
33015         declaration of frexpl, ldexpl.
33016         * modules/printf-frexpl (Depends-on): Add math.
33017         * lib/printf-frexp.c (frexpl, ldexpl): Undo last change.
33018
33019 2007-03-05  Bruno Haible  <bruno@clisp.org>
33020
33021         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Also test whether
33022         frexpl and ldexpl are declared.
33023         * lib/printf-frexp.c (frexpl, ldexpl): Provide fallback declarations.
33024
33025 2007-03-05  Bruno Haible  <bruno@clisp.org>
33026
33027         * gnulib-tool (func_get_automake_snippet): Don't synthesize an
33028         EXTRA_lib_SOURCES augmentation for the relocatable-prog-wrapper module.
33029
33030 2007-03-05  Bruno Haible  <bruno@clisp.org>
33031
33032         * lib/stdio_.h: Include <stddef.h>.
33033
33034 2007-03-05  Bruno Haible  <bruno@clisp.org>
33035
33036         * m4/printf.m4 (gl_SNPRINTF_DIRECTIVE_N): New macro.
33037
33038 2007-03-05  Bruno Haible  <bruno@clisp.org>
33039
33040         * m4/printf.m4: Update with info about OpenBSD 3.9, HP-UX 10.20,
33041         NetBSD 4, from Ralf Wildenhues.
33042
33043 2007-03-04  Bruno Haible  <bruno@clisp.org>
33044
33045         * lib/vasprintf.h: Update #if logic for the case when the functions
33046         exist but are overridden.
33047
33048 2007-03-04  Bruno Haible  <bruno@clisp.org>
33049
33050         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_A): Exclude two buggy
33051         implementations: glibc-2.4 and MacOS X 10.3.
33052         * tests/test-vasnprintf-posix.c (test_function): Test also the case
33053         that exhibits the bugs in glibc-2.4 and MacOS X 10.3.
33054         * tests/test-vasprintf-posix.c (test_function): Likewise.
33055
33056 2007-03-04  Bruno Haible  <bruno@clisp.org>
33057
33058         * modules/vasprintf-posix-tests: New file.
33059         * tests/test-vasprintf-posix.c: New file.
33060
33061         * modules/vasprintf-posix: New file.
33062         * lib/vasprintf.h (asprintf, vasprintf): Rename if REPLACE_VASPRINTF is
33063         defined.
33064         * m4/vasprintf-posix.m4: New file.
33065         * m4/vasprintf.m4 (gl_REPLACE_VASPRINTF): New macro, extracted from
33066         gl_FUNC_VASPRINTF.
33067         (gl_FUNC_VASPRINTF): Invoke it.
33068         * m4/vasnprintf.m4 (gl_REPLACE_VASNPRINTF): Define REPLACE_VASNPRINTF
33069         here.
33070         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Not here.
33071
33072 2007-03-04  Bruno Haible  <bruno@clisp.org>
33073
33074         * lib/sys_time_.h: Rename GETTIMEOFDAY_REPLACEMENT to
33075         REPLACE_GETTIMEOFDAY.
33076         * modules/sys_time (Makefile.am): Likewise.
33077         * m4/sys_time_h.m4: Likewise.
33078         * m4/gettimeofday.m4: Likewise.
33079
33080 2007-03-04  Bruno Haible  <bruno@clisp.org>
33081
33082         * modules/vasnprintf-posix-tests: New file.
33083         * tests/test-vasnprintf-posix.c: New file.
33084
33085         * modules/vasnprintf-posix: New file.
33086         * lib/vasnprintf.c: Include isnan.h, isnanl.h, printf-frexp.h,
33087         printf-frexpl.h.
33088         (VASNPRINTF): Handle the 'a' and 'A' directives here, if needed.
33089         * lib/vasnprintf.h (asnprintf, vasnprintf): Rename if
33090         REPLACE_VASNPRINTF is defined.
33091         * m4/vasnprintf.m4 (gl_REPLACE_VASNPRINTF): New macro, extracted from
33092         gl_FUNC_VASNPRINTF.
33093         (gl_FUNC_VASNPRINTF): Invoke it.
33094         * m4/vasnprintf-posix.m4: New file.
33095         * m4/printf.m4: New file.
33096
33097 2007-03-04  Bruno Haible  <bruno@clisp.org>
33098
33099         Compile progreloc.c only if --enable-relocatable is specified.
33100         * m4/relocatable.m4 (gl_RELOCATABLE): Arrange to compile progreloc.c
33101         if --enable-relocatable was specified.
33102         * modules/relocatable-prog (Makefile.am): Remove progreloc.c from
33103         lib_SOURCES.
33104
33105 2007-03-04  Jim Meyering  <jim@meyering.net>
33106
33107         * lib/acl.c (ACL_NOT_WELL_SUPPORTED): New macro.
33108         Use it consistently, rather than enumerating errno constants.
33109
33110 2007-03-04  Bruno Haible  <bruno@clisp.org>
33111
33112         * modules/xvasprintf-tests: New file.
33113         * tests/test-xvasprintf.c: New file.
33114
33115         * modules/vasprintf-tests: New file.
33116         * tests/test-vasprintf.c: New file.
33117
33118         * modules/vasnprintf-tests: New file.
33119         * tests/test-vasnprintf.c: New file.
33120
33121         * modules/vsnprintf-tests: New file.
33122         * tests/test-vsnprintf.c: New file.
33123
33124         * modules/snprintf-tests: New file.
33125         * tests/test-snprintf.c: New file.
33126
33127 2007-03-04  Bruno Haible  <bruno@clisp.org>
33128
33129         Compile relocatable.c only if --enable-relocatable is specified.
33130         * m4/relocatable-lib.m4 (gl_RELOCATABLE_LIBRARY_BODY): Renamed from
33131         gl_RELOCATABLE_LIBRARY.
33132         (gl_RELOCATABLE_LIBRARY, gl_RELOCATABLE_LIBRARY_SEPARATE): New macros.
33133         * m4/relocatable.m4 (gl_RELOCATABLE): Invoke gl_RELOCATABLE_LIBRARY.
33134         (gl_RELOCATABLE_BODY): Require gl_RELOCATABLE_LIBRARY_BODY instead of
33135         gl_RELOCATABLE_LIBRARY.
33136         * modules/relocatable-lib (configure.ac): Invoke gl_RELOCATABLE_LIBRARY.
33137         (Makefile.am): Remove lib_SOURCES.
33138         * modules/relocatable-lib-lgpl (configure.ac): Invoke
33139         gl_RELOCATABLE_LIBRARY.
33140         (Makefile.am): Remove lib_SOURCES.
33141         * modules/relocatable-prog (Makefile.am): Don't compile relocatable.c
33142         always.
33143         * modules/relocatable-prog-wrapper (configure.ac): Invoke
33144         gl_RELOCATABLE_LIBRARY_SEPARATE instead of gl_RELOCATABLE_LIBRARY.
33145
33146 2007-03-04  Bruno Haible  <bruno@clisp.org>
33147
33148         * modules/argmatch-tests: New file.
33149         * tests/test-argmatch.c: New file.
33150
33151         * tests/test-allocsa.c (main): Halve the number of loop runs.
33152
33153         * modules/alloca-opt-tests: New file.
33154         * tests/test-alloca-opt.c: New file.
33155
33156 2007-03-04  Jim Meyering  <jim@meyering.net>
33157
33158         Work around difference between Linux ACLs and Solaris 10 ZFS.
33159         * lib/acl.c (set_acl): Revert to using chmod_or_fchmod also
33160         for EINVAL.
33161
33162 2007-03-03  Bruno Haible  <bruno@clisp.org>
33163
33164         * modules/relocatable-prog (Depends-on): Add back progreloc's
33165         dependencies: canonicalize-lgpl, xalloc, xreadlink, stdbool, unistd.
33166
33167 2007-03-03  Bruno Haible  <bruno@clisp.org>
33168
33169         * modules/relocatable-lib-lgpl: Renamed from modules/relocatable-lib.
33170         * modules/relocatable-lib: New file.
33171
33172 2007-03-03  Bruno Haible  <bruno@clisp.org>
33173
33174         * modules/relocatable-prog: Renamed from modules/relocatable.
33175         * doc/relocatable-maint.texi: Talk about module 'relocatable-prog'.
33176
33177 2007-03-03  Bruno Haible  <bruno@clisp.org>
33178
33179         * modules/relocatable-script (Files): Add doc/relocatable.texi,
33180         m4/relocatable-lib.m4.
33181         (Depends-on): Remove 'relocatable'.
33182         (configure.ac): Add gl_RELOCATABLE_NOP.
33183
33184 2007-03-03  Bruno Haible  <bruno@clisp.org>
33185
33186         * modules/relocatable-prog-wrapper: New file.
33187         * modules/relocatable (Depends-on): Add it. Remove all other
33188         dependencies except progname.
33189         (Files): Remove build-aux/install-reloc, lib/relocwrapper.c.
33190
33191         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE): New macro.
33192         (gl_FUNC_STRERROR): Nop.
33193         * lib/strerror.c: Compile the file only if !HAVE_STRERROR.
33194
33195         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE): New macro.
33196         * lib/setenv.c: Compile the file only if _LIBC || !HAVE_SETENV.
33197
33198         * m4/readlink.m4 (gl_FUNC_READLINK_SEPARATE): New macro.
33199         (gl_FUNC_READLINK): Update.
33200
33201         * m4/canonicalize-lgpl.m4 (gl_CANONICALIZE_LGPL_SEPARATE): New macro.
33202
33203 2007-03-03  Bruno Haible  <bruno@clisp.org>
33204
33205         * lib/xreadlink.c: Include <unistd.h> unconditionally.
33206         * modules/xreadlink (Depends-on): Add unistd.
33207         * modules/xreadlink-with-size (Depends-on): Likewise.
33208
33209 2007-03-03  Bruno Haible  <bruno@clisp.org>
33210
33211         * m4/setenv.m4 (gl_FUNC_SETENV, gl_FUNC_UNSETENV): New macros,
33212         extracted from gt_FUNC_SETENV.
33213         (gt_FUNC_SETENV): Remove macro.
33214         * modules/setenv (configure.ac): Add gl_FUNC_SETENV, gl_FUNC_UNSETENV,
33215         remove gt_FUNC_SETENV.
33216
33217 2007-03-03  Bruno Haible  <bruno@clisp.org>
33218
33219         * m4/relocatable-lib.m4 (gl_RELOCATABLE_LIBRARY): Define
33220         ENABLE_RELOCATABLE here.
33221         * m4/relocatable.m4 (gl_RELOCATABLE_BODY): Don't define it here.
33222
33223 2007-03-03  Bruno Haible  <bruno@clisp.org>
33224
33225         * modules/rbtreehash-list-tests (Depends-on): Add progname.
33226         * tests/test-rbtreehash_list.c: Include progname.h.
33227         (main): Call set_program_name.
33228
33229         * modules/rbtree-oset-tests (Depends-on): Add progname.
33230         * tests/test-rbtree_oset.c: Include progname.h.
33231         (main): Call set_program_name.
33232
33233         * modules/rbtree-list-tests (Depends-on): Add progname.
33234         * tests/test-rbtree_list.c: Include progname.h.
33235         (main): Call set_program_name.
33236
33237         * modules/linked-list-tests (Depends-on): Add progname.
33238         * tests/test-linked_list.c: Include progname.h.
33239         (main): Call set_program_name.
33240
33241 2007-03-03  Bruno Haible  <bruno@clisp.org>
33242
33243         * lib/glob-libc.h (_Restrict_): New macro, copied from lib/regex.h.
33244         All uses of __restrict changed to _Restrict_.
33245         * lib/glob_.h (__restrict): Remove macro.
33246
33247 2007-03-02  Bruno Haible  <bruno@clisp.org>
33248
33249         * modules/gettext (configure.ac): Require gettext infrastructure
33250         from version 0.16.1.
33251
33252 2007-03-02  Bruno Haible  <bruno@clisp.org>
33253
33254         * modules/linkedhash-list-tests (Depends-on): Add progname.
33255         * tests/test-linkedhash_list.c: Include progname.h.
33256         (main): Call set_program_name.
33257
33258         * modules/carray-list-tests (Depends-on): Add progname.
33259         * tests/test-carray_list.c: Include progname.h.
33260         (main): Call set_program_name.
33261
33262         * modules/avltreehash-list-tests (Depends-on): Add progname.
33263         * tests/test-avltreehash_list.c: Include progname.h.
33264         (main): Call set_program_name.
33265
33266         * modules/avltree-oset-tests (Depends-on): Add progname.
33267         * tests/test-avltree_oset.c: Include progname.h.
33268         (main): Call set_program_name.
33269
33270         * modules/avltree-list-tests (Depends-on): Add progname.
33271         * tests/test-avltree_list.c: Include progname.h.
33272         (main): Call set_program_name.
33273
33274         * modules/array-oset-tests (Depends-on): Add progname.
33275         * tests/test-array_oset.c: Include progname.h.
33276         (main): Call set_program_name.
33277
33278         * modules/array-list-tests (Depends-on): Add progname.
33279         * tests/test-array_list.c: Include progname.h.
33280         (main): Call set_program_name.
33281
33282         * modules/argp-tests (Depends-on): Add progname.
33283         * tests/test-argp.c: Include argp.h first. Include progname.h.
33284         (main): Call set_program_name.
33285
33286 2007-03-02  Paul Eggert  <eggert@cs.ucla.edu>
33287
33288         * doc/gnulib-tool.texi (Initial import): Reword description of
33289         _FILE_OFFSET_BITS and _GNU_SOURCE, since they sometimes have a
33290         limited effect even if defined after the first system include.
33291
33292 2007-03-01  Bruno Haible  <bruno@clisp.org>
33293
33294         * build-aux/config.libpath: Update to libtool-1.5.22.
33295         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
33296
33297 2007-03-01  Bruno Haible  <bruno@clisp.org>
33298
33299         * doc/relocatable-maint.texi: Recommend to set foo_CPPFLAGS, not
33300         foo_CFLAGS.
33301         Reported by Ralf Wildenhues.
33302
33303 2007-03-01  Bruno Haible  <bruno@clisp.org>
33304
33305         * build-aux/install-reloc: Remove object files left over by some
33306         compilers.
33307         Reported by Ralf Wildenhues.
33308
33309 2007-03-01  Bruno Haible  <bruno@clisp.org>
33310
33311         * build-aux/install-reloc: Break long lines.
33312
33313 2007-03-01  Bruno Haible  <bruno@clisp.org>
33314
33315         * doc/relocatable.texi: Document that it may not work on OpenBSD.
33316         Reported by Ralf Wildenhues.
33317
33318 2007-03-01  Bruno Haible  <bruno@clisp.org>
33319
33320         * doc/gnulib-tool.texi (Initial import): Remove paragraph about
33321         include ordering constraints.
33322
33323 2007-03-01  Paul Eggert  <eggert@cs.ucla.edu>
33324
33325         Followup to the 2007-02-12 patch, using suggestions from Bruno Haible in
33326         <http://lists.gnu.org/archive/html/bug-gnulib/2007-02/msg00136.html>.
33327         * doc/gnulib-tool.texi (Initial import): Mention _FILE_OFFSET_BITS
33328         as another example.
33329         * lib/time_.h: Fix misspelling.
33330         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP):
33331         Require gl_HEADER_TIME_H_DEFAULTS.
33332         * m4/strptime.m4 (gl_FUNC_STRPTIME): Likewise.
33333         * m4/time_r.m4 (gl_TIME_R): Likewise.
33334         * m4/timegm.m4 (gl_FUNC_TIMEGM): Likewise.
33335
33336 2007-03-01  Bruno Haible  <bruno@clisp.org>
33337
33338         * m4/utimecmp.m4 (gl_UTIMECMP): Don't require gl_TIMESPEC.
33339         * m4/utimens.m4 (gl_UTIMENS): Likewise.
33340
33341 2007-03-01  Jim Meyering  <jim@meyering.net>
33342
33343         * modules/xreadlink (Maintainer): Add my name.
33344         * modules/xreadlink-with-size (Depends-on): Alphabetize.
33345
33346 2007-02-26  Ben Pfaff  <blp@cs.stanford.edu>
33347             Bruno Haible  <bruno@clisp.org>
33348
33349         * build-aux/install-reloc: Compile also c-ctype.c.
33350         * build-aux/relocatable.sh.in: New file.
33351         * doc/relocatable.texi: New file.
33352         * doc/relocatable-maint.texi: New file.
33353         * doc/gnulib.texi: Include relocatable-maint.texi.
33354         * lib/progreloc.c: Include unistd.h unconditionally.
33355         * lib/relocwrapper.c: Include unistd.h unconditionally.
33356         Include c-ctype.h.
33357         (add_dotbin): Use c_tolower.
33358         * m4/relocatable-lib.m4: New file, extracted from m4/relocatable.m4.
33359         (gl_RELOCATABLE_LIBRARY): Renamed from AC_RELOCATABLE_LIBRARY.
33360         (gl_RELOCATABLE_NOP): Renamed from AC_RELOCATABLE_NOP.
33361         * m4/relocatable.m4 (AC_RELOCATABLE_LIBRARY, AC_RELOCATABLE_NOP): Move
33362         to m4/relocatable-lib.m4.
33363         (gl_RELOCATABLE): Renamed from AC_RELOCATABLE. Set also
33364         RELOCATABLE_CONFIG_H_DIR, RELOCATABLE_SRC_DIR, RELOCATABLE_BUILD_DIR.
33365         (gl_RELOCATABLE_BODY): Renamed from AC_RELOCATABLE_BODY. Don't
33366         require obsolete macro AC_EXEEXT. Don't check for unistd.h. Don't set
33367         SET_RELOCATABLE. Instead set RELOCATABLE_LDFLAGS, INSTALL_PROGRAM_ENV.
33368         * modules/relocatable: New file.
33369         * modules/relocatable-lib: New file.
33370         * modules/relocatable-script: New file.
33371
33372 2007-02-28  Bruno Haible  <bruno@clisp.org>
33373
33374         Import --enable-relocatable infrastructure.
33375         * build-aux/config.libpath: New file, from GNU gettext.
33376         * build-aux/install-reloc: New file, from GNU gettext.
33377         * build-aux/reloc-ldflags: New file, from GNU gettext.
33378         * lib/relocatable.h: New file, from GNU gettext.
33379         * lib/relocatable.c: New file, from GNU gettext.
33380         * lib/relocwrapper.c: New file, from GNU gettext.
33381         * m4/relocatable.m4: New file, from GNU gettext.
33382
33383 2007-02-28  Bruno Haible  <bruno@clisp.org>
33384
33385         * MODULES.html.sh (File system functions): Add xreadlink-with-size.
33386
33387         * modules/xreadlink: New file, from GNU gettext with modifications.
33388         * lib/xreadlink.c: New file, from GNU gettext.
33389         * lib/xreadlink.h: Add comments.
33390         (xreadlink): New declaration.
33391
33392         * modules/xreadlink-with-size: Renamed from modules/xreadlink.
33393         (Files): Remove m4/xreadlink.m4. Replace lib/xreadlink.c with
33394         lib/xreadlink-with-size.c.
33395         (configure.ac): Remove gl_XREADLINK invocation.
33396         (Makefile.am): Augment lib_SOURCES.
33397         * m4/xreadlink.m4: Remove file.
33398         * lib/xreadlink-with-size.c: Renamed from lib/xreadlink.c.
33399         (xreadlink_with_size): Renamed from xreadink.
33400         * lib/xreadlink.h (xreadlink_with_size): Renamed from xreadink.
33401         * modules/canonicalize (Depends-on): Replace xreadlink with
33402         xreadlink-with-size.
33403         * lib/canonicalize.c (canonicalize_filename_mode): Update.
33404
33405 2007-02-25  Jim Meyering  <jim@meyering.net>
33406
33407         * build-aux/announce-gen: When complaining about excess arguments,
33408         list them.
33409
33410 2007-02-25  Paul Eggert  <eggert@cs.ucla.edu>
33411
33412         * README: Document signed integer overflow situation more
33413         accurately.
33414
33415 2007-02-25  Bruno Haible  <bruno@clisp.org>
33416
33417         * lib/vasnprintf.c (VASNPRINTF): Fix estimate of size needed for a
33418         'a' or 'A' conversion.
33419
33420 2007-02-25  Bruno Haible  <bruno@clisp.org>
33421
33422         * modules/filename: Renamed from modules/pathname.
33423         (Files): Replace lib/pathname.h with lib/filename.h. Replace
33424         lib/concatpath.c with lib/concat-filename.c.
33425         (Makefile.am): Update.
33426         (Include): Replace pathname.h with filename.h.
33427         * lib/filename.h: Renamed from lib/pathname.h.
33428         (concatenated_filename): Renamed from concatenated_pathname.
33429         * lib/concat-filename.c: Renamed from lib/concatpath.c.
33430         (concatenated_filename): Renamed from concatenated_pathname.
33431         * lib/findprog.c: Include filename.h instead of pathname.h.
33432         (find_in_path): Update.
33433         * lib/javacomp.c: Include filename.h instead of pathname.h.
33434         (is_envjavac_gcj43_usable, is_envjavac_oldgcj_14_14_usable,
33435         is_envjavac_oldgcj_14_13_usable, is_envjavac_nongcj_usable,
33436         is_gcj_present, is_gcj43_usable, is_oldgcj_14_14_usable,
33437         is_oldgcj_14_13_usable, is_javac_usable): Update.
33438         * lib/javaexec.c: Include filename.h instead of pathname.h.
33439         (execute_java_class): Update.
33440         * modules/findprog: Update.
33441         * modules/javacomp: Update.
33442         * modules/javaexec: Update.
33443         * MODULES.html.sh (File system functions): Add 'filename', remove
33444         'pathname'.
33445
33446 2007-02-25  Bruno Haible  <bruno@clisp.org>
33447
33448         * modules/printf-frexpl-tests: New file.
33449         * tests/test-printf-frexpl.c: New file.
33450
33451         * modules/printf-frexpl: New file.
33452         * lib/printf-frexpl.h: New file.
33453         * lib/printf-frexpl.c: New file.
33454         * m4/printf-frexpl.m4: New file.
33455
33456 2007-02-25  Bruno Haible  <bruno@clisp.org>
33457
33458         * modules/printf-frexp-tests: New file.
33459         * tests/test-printf-frexp.c: New file.
33460
33461         * modules/printf-frexp: New file.
33462         * lib/printf-frexp.h: New file.
33463         * lib/printf-frexp.c: New file.
33464         * m4/printf-frexp.m4: New file.
33465
33466 2007-02-25  Bruno Haible  <bruno@clisp.org>
33467
33468         Assume automake >= 1.10 for the tests.
33469         * modules/arcfour-tests (TESTS): Remove $(EXEEXT) suffix.
33470         * modules/arctwo-tests: Likewise.
33471         * modules/argp-tests: Likewise.
33472         * modules/avltree-list-tests: Likewise.
33473         * modules/avltree-oset-tests: Likewise.
33474         * modules/avltreehash-list-tests: Likewise.
33475         * modules/carray-list-tests: Likewise.
33476         * modules/crc-tests: Likewise.
33477         * modules/des-tests: Likewise.
33478         * modules/gc-arcfour-tests: Likewise.
33479         * modules/gc-arctwo-tests: Likewise.
33480         * modules/gc-des-tests: Likewise.
33481         * modules/gc-hmac-md5-tests: Likewise.
33482         * modules/gc-hmac-sha1-tests: Likewise.
33483         * modules/gc-md2-tests: Likewise.
33484         * modules/gc-md4-tests: Likewise.
33485         * modules/gc-md5-tests: Likewise.
33486         * modules/gc-pbkdf2-sha1-tests: Likewise.
33487         * modules/gc-rijndael-tests: Likewise.
33488         * modules/gc-sha1-tests: Likewise.
33489         * modules/gc-tests: Likewise.
33490         * modules/getaddrinfo-tests: Likewise.
33491         * modules/hmac-md5-tests: Likewise.
33492         * modules/hmac-sha1-tests: Likewise.
33493         * modules/linked-list-tests: Likewise.
33494         * modules/linkedhash-list-tests: Likewise.
33495         * modules/lock-tests: Likewise.
33496         * modules/md2-tests: Likewise.
33497         * modules/md4-tests: Likewise.
33498         * modules/md5-tests: Likewise.
33499         * modules/rbtree-list-tests: Likewise.
33500         * modules/rbtree-oset-tests: Likewise.
33501         * modules/rbtreehash-list-tests: Likewise.
33502         * modules/read-file-tests: Likewise.
33503         * modules/rijndael-tests: Likewise.
33504         * modules/stdint-tests: Likewise.
33505         * modules/tls-tests: Likewise.
33506
33507 2007-02-24  Bruno Haible  <bruno@clisp.org>
33508
33509         * lib/isnanl.h (isnanl): Define through isnan if isnan is a macro.
33510         * m4/isnan.m4 (gl_FUNC_ISNAN_NO_LIBM): Don't check for isnan as a
33511         function; instead check whether isnan with a double argument links.
33512         * m4/isnanl.m4 (gl_FUNC_ISNANL_NO_LIBM): Don't check for isnanl as a
33513         function; instead check whether isnan with a 'long double' argument
33514         links.
33515         Reported by Eric Blake <ebb9@byu.net>.
33516
33517 2007-02-24  Bruno Haible  <bruno@clisp.org>
33518
33519         * lib/isnan.c: Support the 'long double' case if USE_LONG_DOUBLE is
33520         defined.
33521         * lib/isnanl.c: Remove all code. Just include isnan.c.
33522         * modules/isnanl-nolibm (Files): Add lib/isnan.c.
33523
33524 2007-02-25  Jim Meyering  <jim@meyering.net>
33525
33526         Avoid conflicting types for 'unsetenv' on FreeBSD.
33527         * lib/putenv.c (_unsetenv): Rename from "unsetenv", to avoid
33528         conflicting with FreeBSD's (5.0 and 6.1) function declaration
33529         in stdlib.h.
33530
33531 2007-02-24  Bruno Haible  <bruno@clisp.org>
33532
33533         * modules/isnanl-nolibm-tests: New file.
33534         * tests/test-isnanl.c: New file.
33535
33536         * modules/isnanl-nolibm: New file.
33537         * lib/isnanl.h: New file.
33538         * lib/isnanl.c: New file.
33539         * m4/isnanl.m4: New file.
33540
33541 2007-02-24  Bruno Haible  <bruno@clisp.org>
33542
33543         * modules/isnan-nolibm-tests: New file.
33544         * tests/test-isnan.c: New file.
33545
33546         * modules/isnan-nolibm: New file.
33547         * lib/isnan.h: New file.
33548         * lib/isnan.c: New file.
33549         * m4/isnan.m4: New file.
33550
33551 2007-02-24  Bruno Haible  <bruno@clisp.org>
33552
33553         * lib/frexpl.c (frexpl): Correct return values for x = 1.0L. Don't
33554         assume that an exponent fits in 20 bits.
33555
33556 2007-02-24  Jim Meyering  <jim@meyering.net>
33557
33558         * m4/regex.m4: Update the description of the configure-time option,
33559         --without-included-regex, to state accurately what the defaults are,
33560         and perhaps to give people an idea why using this option is risky.
33561
33562 2007-02-24  Paul Eggert  <eggert@cs.ucla.edu>
33563
33564         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Check for a nanosleep that
33565         loops on small arguments.  This attempts to avoid the problem
33566         Bruno Haible reported for AIX 4.3.2 in
33567         <http://lists.gnu.org/archive/html/bug-gnulib/2007-02/msg00309.html>.
33568
33569 2007-02-23  Bruno Haible  <bruno@clisp.org>
33570
33571         * m4/perl.m4 (gl_PERL): Require version 5.005, not 5.003.
33572         Needed for help2man.
33573
33574 2007-02-23  Karl Berry  <karl@gnu.org>
33575
33576         * doc/gnulib-tool.texi (CVS Issues): mention that when foo_.h
33577         exists, foo.h should be cvs-ignored, not committed.
33578
33579 2007-02-23  Eric Blake  <ebb9@byu.net>
33580
33581         * lib/getdate.h (includes):  Include <time.h>, not "timespec.h".
33582         * lib/stat-time.h (includes): Likewise.
33583         * lib/utimecmp.c (includes): Likewise.
33584         * lib/utimens.h (includes): Likewise.
33585         * lib/getdate.y (includes): Also include "timespec.h" for use
33586         internal to the module.
33587         * modules/utimens (Depends-on): Revert yesterday's patch.
33588         * modules/nanosleep (Depends-on): Add missing dependency.
33589
33590 2007-02-22  Bruno Haible  <bruno@clisp.org>
33591
33592         * lib/glob.c: Don't include getlogin_r.h.
33593
33594 2007-02-22  Jim Meyering  <jim@meyering.net>
33595
33596         * modules/utimens (Depends-on): Add timespec, required for
33597         utimens.h's inclusion of timespec.h.
33598
33599 2007-02-21  Paul Eggert  <eggert@cs.ucla.edu>
33600
33601         * lib/getcwd.c (__getcwd): Undo previous change; it mishandled
33602         long unreadable paths in GNU/Linux.  Problem reported by Andreas
33603         Schwab in
33604         <http://lists.gnu.org/archive/html/bug-gnulib/2007-02/msg00261.html>.
33605         I'll try to think of a better way to fix the Solaris problem.
33606
33607         * lib/getcwd.c (__getcwd): Don't assume getcwd (NULL, 0) works
33608         like glibc; on Solaris 10, it fails with errno == EINVAL.
33609         POSIX says the behavior is unspecified if the first argument is NULL,
33610         so play it safe and never pass NULL to the system getcwd.
33611
33612 2007-02-21  Jim Meyering  <jim@meyering.net>
33613
33614         * lib/gettimeofday.c (rpl_gettimeofday): Remove declaration
33615         of gettimeofday.  It would conflict with the one now always
33616         provided via sys_time_.h.  Reported by Matthew Woehlke, as
33617         an IRIX 6.5 build failure.
33618
33619 2007-02-20  Paul Eggert  <eggert@cs.ucla.edu>
33620
33621         Minor fixups to port to Solaris 10 with Sun C 5.8.
33622         * lib/getcwd.c [!_LIBC]: Include dirfd.h, since we use dirfd.
33623         * modules/getcwd (Depends-on): Add dirfd.
33624         * lib/putenv.c (putenv): #undef it.
33625         (rpl_putenv): New decl.
33626         (malloc, free): Include <stdlib.h> rather than prototyping separately.
33627
33628 2007-02-20  Bruno Haible  <bruno@clisp.org>
33629
33630         * modules/stdio-tests: New file.
33631         * tests/test-stdio.c: New file.
33632
33633         * modules/vsnprintf (Files): Remove lib/vsnprintf.h.
33634         (Depends-on): Add stdio.
33635         (configure.ac): Invoke gl_STDIO_MODULE_INDICATOR.
33636         (Include): Use <stdio.h> instead of vsnprintf.h.
33637         * m4/vsnprintf.m4 (gl_FUNC_VSNPRINTF): Require gl_STDIO_H_DEFAULTS. Set
33638         HAVE_DECL_VSNPRINTF.
33639         * lib/vsnprintf.c: Include <stdio.h> instead of vsnprintf.h.
33640
33641         * modules/snprintf (Files): Remove lib/snprintf.h.
33642         (Depends-on): Add stdio.
33643         (configure.ac): Invoke gl_STDIO_MODULE_INDICATOR.
33644         (Include): Use <stdio.h> instead of snprintf.h.
33645         * m4/snprintf.m4 (gl_FUNC_SNPRINTF): Require gl_STDIO_H_DEFAULTS. Set
33646         HAVE_DECL_SNPRINTF.
33647         * lib/snprintf.c: Include <stdio.h> instead of snprintf.h.
33648         * lib/getaddrinfo.c: Likewise.
33649
33650         * modules/stdio: New file.
33651         * lib/stdio_.h: New file, incorporating snprintf.h and vsnprintf.h.
33652         * lib/snprintf.h: Remove file.
33653         * lib/vsnprintf.h: Remove file.
33654         * lib/.cppi-disable: Remove snprintf.h.
33655         * m4/stdio_h.m4: New file.
33656         * MODULES.html.sh (Support for systems lacking ISO C 99): Add stdio.
33657
33658 2007-02-20  Jim Meyering  <jim@meyering.net>
33659
33660         * lib/ftruncate.c [HAVE_CHSIZE]: Document that this code is
33661         used by e.g., mingw.  From Bruno Haible.
33662
33663 2007-02-19  Bruno Haible  <bruno@clisp.org>
33664
33665         * lib/string_.h: Use "#pragma GCC system_header" to suppress some gcc
33666         warnings.
33667         Reported by Ben Pfaff <blp@cs.stanford.edu>.
33668
33669 2007-02-19  Bruno Haible  <bruno@clisp.org>
33670
33671         * m4/ftruncate.m4 (gl_FUNC_FTRUNCATE): Don't request a complaint mail
33672         from mingw users.
33673
33674 2007-02-19  Bruno Haible  <bruno@clisp.org>
33675
33676         * lib/stdlib_.h: Use "#pragma GCC system_header" to suppress some gcc
33677         warnings.
33678         Reported by Joel E. Denny <jdenny@ces.clemson.edu> via Paul Eggert.
33679
33680 2007-02-19  Jim Meyering  <jim@meyering.net>
33681
33682         Don't use FD after a successful "fdopendir (fd)".
33683         * lib/getcwd.c (__getcwd) [AT_FDCWD]: fdopendir (fd) usually closes fd.
33684         Reset it by calling dirfd on the just-obtained DIR*.
33685
33686         * m4/ftruncate.m4: Adjust comment to give this module a 3-year reprieve.
33687         Prompted by a report from Bruno Haible that mingw lacks ftruncate.
33688
33689 2007-02-18  Bruno Haible  <bruno@clisp.org>
33690
33691         * lib/readlink.c: Include <unistd.h>.
33692         * m4/readlink.m4 (gl_FUNC_READLINK): Require gl_UNISTD_H_DEFAULTS. Set
33693         HAVE_READLINK.
33694         * modules/readlink (Depends-on): Add unistd.
33695         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
33696         (Include): Add <unistd.h>.
33697
33698         * lib/getlogin_r.h: Remove file.
33699         * lib/getlogin_r.c: Include <unistd.h> instead of getlogin_r.h.
33700         * m4/getlogin_r.m4 (gl_GETLOGIN_R_SUBSTITUTE): Remove macro.
33701         (gl_GETLOGIN_R): Inline it here. Require gl_UNISTD_H_DEFAULTS. Set
33702         HAVE_DECL_GETLOGIN_R.
33703         * modules/getlogin_r (Files): Remove lib/getlogin_r.h.
33704         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
33705         (Include): Use <unistd.h> instead of getlogin_r.h.
33706
33707         * lib/getcwd.h: Remove file.
33708         * lib/getcwd.c: Include <unistd.h> instead of getcwd.h.
33709         * lib/xgetcwd.c: Likewise.
33710         * m4/getcwd.m4 (gl_FUNC_GETCWD): Require gl_UNISTD_H_DEFAULTS. Set
33711         REPLACE_GETCWD. Don't define __GETCWD_PREFIX.
33712         * modules/getcwd (Files): Remove lib/getcwd.h.
33713         (Depends-on): Add unistd.
33714         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
33715         (Include): Use <unistd.h> instad of getcwd.h.
33716
33717         * lib/ftruncate.c: Include <unistd.h> first.
33718         * m4/ftruncate.m4 (gl_FUNC_FTRUNCATE): Require gl_UNISTD_H_DEFAULTS.
33719         Set HAVE_FTRUNCATE.
33720         * modules/ftruncate (Depends-on): Add unistd.
33721         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
33722
33723         * lib/fchdir.c: Include <unistd.h> first.
33724         * lib/dirent_.h: Test REPLACE_FCHDIR, not FCHDIR_REPLACEMENT.
33725         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Require gl_UNISTD_H_DEFAULTS instead
33726         of gl_HEADER_UNISTD_DEFAULTS. Set REPLACE_FCHDIR. Don't set UNISTD_H.
33727         * modules/fchdir (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
33728         (Makefile.am): Substitute also REPLACE_FCHDIR into dirent.h.
33729
33730         * lib/dup2.c: Include <unistd.h> first.
33731         * m4/dup2.m4 (gl_FUNC_DUP2): Require gl_UNISTD_H_DEFAULTS. Set
33732         HAVE_DUP2.
33733         * modules/dup2 (Depends-on): Add unistd.
33734         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
33735
33736         * lib/chown.c: Include <unistd.h> first. Undefine chown later.
33737         * m4/chown.m4 (gl_FUNC_CHOWN): Require gl_UNISTD_H_DEFAULTS. Set
33738         REPLACE_CHOWN. Don't define chown as a macro here.
33739         * modules/chown (Depends-on): Add unistd.
33740         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
33741
33742         * lib/unistd_.h: Test HAVE_UNISTD_H determined at configure time.
33743         Add definition for GL_LINK_WARNING.
33744         (chown, dup2): New declarations.
33745         (fchdir): Test REPLACE_FCHDIR, not FCHDIR_REPLACEMENT. Provide optional
33746         link warning.
33747         (ftruncate): New declaration.
33748         (getcwd): New declaration, taken from old getcwd.h.
33749         (getlogin_r): New declaration, taken from old getlogin_r.h.
33750         (readlink): New declaration.
33751         * m4/unistd_h.m4 (gl_UNISTD_H): Renamed from gl_HEADER_UNISTD. Don't
33752         set UNISTD_H. Inline gl_PREREQ_UNISTD. Set HAVE_UNISTD_H.
33753         (gl_PREREQ_UNISTD): Remove macro.
33754         (gl_UNISTD_MODULE_INDICATOR): New macro.
33755         (gl_UNISTD_H_DEFAULTS): Renamed from gl_HEADER_UNISTD_DEFAULTS. Set
33756         many new variables. Don't set UNISTD_H.
33757         * modules/unistd (Description): Change.
33758         (Depends-on): Add link-warning.
33759         (configure.ac): Update.
33760         (Makefile.am): Create unistd.h always. Substitute many new variables
33761         into it.
33762
33763 2007-02-18  Bruno Haible  <bruno@clisp.org>
33764
33765         * lib/stdlib_.h (getsubopt): New declaration, copied from getsubopt.h.
33766         * modules/stdlib (stdlib.h): Also substitute GNULIB_GETSUBOPT and
33767         HAVE_GETSUBOPT.
33768         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Also initialize
33769         GNULIB_GETSUBOPT and HAVE_GETSUBOPT.
33770         * lib/getsubopt.h: Remove file.
33771         * modules/getsubopt (Files): Remove lib/getsubopt.h.
33772         (Depends-on): Add stdlib.
33773         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
33774         (Includes): Use <stdlib.h> instead of getsubopt.h.
33775         * m4/getsubopt.m4 (gl_FUNC_GETSUBOPT): Require gl_STDLIB_H_DEFAULTS.
33776         Set HAVE_GETSUBOPT.
33777         * lib/getsubopt.c: Don't include getsubopt.h.
33778
33779 2007-02-18  Bruno Haible  <bruno@clisp.org>
33780
33781         * modules/fchdir (Depends-on): Add dup2.
33782
33783 2007-02-18  Bruno Haible  <bruno@clisp.org>
33784
33785         * lib/stdlib_.h: Handle glibc's special invocation convention
33786         specially.
33787
33788 2007-02-18  Bruno Haible  <bruno@clisp.org>
33789
33790         * modules/stdlib-tests: New file.
33791         * tests/test-stdlib.c: New file.
33792
33793         * modules/mkstemp (Files): Remove lib/mkstemp.h.
33794         (Depends-on): Add stdlib.
33795         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
33796         (Includes): Use <stdlib.h> instead of mkstemp.h.
33797         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Require gl_STDLIB_H_DEFAULTS. Set
33798         REPLACE_MKSTEMP. Remove definition of __MKSTEMP_PREFIX.
33799         * lib/mkstemp.c: Don't include mkstemp.h.
33800         * lib/mkstemp-safer.c: Include <stdlib.h> instead of mkstemp.h.
33801         * lib/stdlib--.h: Don't include mkstemp.h.
33802
33803         * modules/mkdtemp (Files): Remove lib/mkdtemp.h.
33804         (Depends-on): Add stdlib.
33805         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
33806         (Includes): Use <stdlib.h> instead of mkdtemp.h.
33807         * m4/mkdtemp.m4 (gt_FUNC_MKDTEMP): Require gl_STDLIB_H_DEFAULTS. Set
33808         HAVE_MKDTEMP.
33809         * lib/mkdtemp.c: Don't include mkdtemp.h.
33810         * lib/clean-temp.c: Don't include mkdtemp.h.
33811
33812         * modules/exit (Files): Remove lib/exit.h.
33813         (Depends-on): Add stdlib.
33814         (Makefile.am): Remove lib_SOURCES.
33815         (Include): Use <stdlib.h> instead of exit.h.
33816         * lib/argmatch.c: Don't include exit.h.
33817         * lib/execute.c: Likewise.
33818         * lib/pagealign_alloc.c: Likewise.
33819         * lib/pipe.c: Likewise.
33820         * lib/wait-process.c: Likewise.
33821         * lib/copy-file.c: Include <stdlib.h> instead of exit.h.
33822         * lib/exitfail.c: Likewise.
33823         * lib/savewd.c: Likewise.
33824         * lib/xsetenv.c: Likewise.
33825
33826         * modules/stdlib: New file.
33827         * lib/stdlib_.h: New file, incorporating exit.h, mkdtemp.h, mkstemp.h
33828         and extra comments about mkstemp().
33829         * lib/exit.h: Remove file.
33830         * lib/mkdtemp.h: Remove file.
33831         * lib/mkstemp.h: Remove file.
33832         * m4/stdlib_h.m4: New file.
33833         * MODULES.html.sh (Support for systems lacking ANSI C 89): Add stdlib.
33834
33835 2007-02-18  Bruno Haible  <bruno@clisp.org>
33836
33837         * modules/math-tests: New file.
33838         * tests/test-math.c: New file.
33839
33840         * modules/math: New file.
33841         * modules/mathl (Files): Remove lib/mathl.h.
33842         (Depends-on): Add math.
33843         (Makefile.am): Don't mention mathl.h.
33844         (Include): Use <math.h> instead of mathl.h.
33845         * lib/math_.h: New file.
33846         * lib/mathl.h: Remove file.
33847         * lib/acosl.c: Include <config.h> and <math.h> first. Don't include
33848         mathl.h.
33849         * lib/asinl.c: Likewise.
33850         * lib/atanl.c: Likewise.
33851         * lib/ceill.c: Likewise.
33852         * lib/cosl.c: Likewise.
33853         * lib/expl.c: Likewise.
33854         * lib/floorl.c: Likewise.
33855         * lib/frexpl.c: Likewise.
33856         * lib/ldexpl.c: Likewise.
33857         * lib/logl.c: Likewise.
33858         * lib/sincosl.c: Likewise.
33859         * lib/sinl.c: Likewise.
33860         * lib/sqrtl.c: Likewise.
33861         * lib/tanl.c: Likewise.
33862         * lib/trigl.c: Likewise.
33863         * m4/math_h.m4: New file.
33864         * MODULES.html.sh (Mathematics): Add math.
33865
33866 2007-02-17  Bruno Haible  <bruno@clisp.org>
33867
33868         * modules/wctype-tests: New file.
33869         * tests/test-wctype.c: New file.
33870
33871         * modules/wchar-tests: New file.
33872         * tests/test-wchar.c: New file.
33873
33874         * modules/unistd-tests: New file.
33875         * tests/test-unistd.c: New file.
33876
33877         * modules/time-tests: New file.
33878         * tests/test-time.c: New file.
33879
33880         * modules/sysexits-tests: New file.
33881         * tests/test-sysexits.c: New file.
33882
33883         * modules/sys_time-tests: New file.
33884         * tests/test-sys_time.c: New file.
33885
33886         * modules/sys_stat-tests: New file.
33887         * tests/test-sys_stat.c: New file.
33888
33889         * modules/sys_socket-tests: New file.
33890         * tests/test-sys_socket.c: New file.
33891
33892         * modules/sys_select-tests: New file.
33893         * tests/test-sys_select.c: New file.
33894
33895         * modules/string-tests: New file.
33896         * tests/test-string.c: New file.
33897
33898         * modules/stdbool-tests: New file.
33899         * tests/test-stdbool.c: New file.
33900
33901         * modules/netinet_in-tests: New file.
33902         * tests/test-netinet_in.c: New file.
33903
33904         * modules/inttypes-tests: New file.
33905         * tests/test-inttypes.c: New file.
33906
33907         * modules/fcntl-tests: New file.
33908         * tests/test-fcntl.c: New file.
33909
33910         * modules/byteswap-tests: New file.
33911         * tests/test-byteswap.c: New file.
33912
33913         * modules/arpa_inet-tests: New file.
33914         * tests/test-arpa_inet.c: New file.
33915
33916 2007-02-17  Bruno Haible  <bruno@clisp.org>
33917
33918         * lib/inttypes_.h: Add definition for GL_LINK_WARNING.
33919         (imaxabs, imaxdiv, strtoimax, strtoumax): Don't declare the function
33920         if the corresponding module is not enabled. Emit link warnings if
33921         the function is used nevertheless.
33922         * m4/inttypes.m4 (gl_INTTYPES_H): Never use the existing <inttypes.h>.
33923         Don't AC_SUBST HAVE_DECL_IMAXABS, HAVE_DECL_IMAXDIV,
33924         HAVE_DECL_STRTOIMAX, HAVE_DECL_STRTOUMAX.
33925         (gl_INTTYPES_MODULE_INDICATOR, gl_INTTYPES_H_DEFAULTS): New macros.
33926         * modules/inttypes (Depends-on): Add link-warning.
33927         (Makefile.am): Copy the contents of build-aux/link-warning.h into
33928         inttypes.h. Substitute also GNULIB_IMAXABS, GNULIB_IMAXDIV,
33929         GNULIB_STRTOIMAX, GNULIB_STRTOUMAX.
33930         * modules/imaxabs (configure.ac): Invoke gl_INTTYPES_MODULE_INDICATOR.
33931         * modules/imaxdiv (configure.ac): Likewise.
33932         * modules/strtoimax (configure.ac): Likewise.
33933         * modules/strtoumax (configure.ac): Likewise.
33934
33935 2007-02-17  Bruno Haible  <bruno@clisp.org>
33936
33937         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Include the contents of
33938         gl_STRING_MODULE_INDICATOR_DEFAULTS.
33939         (gl_STRING_MODULE_INDICATOR_DEFAULTS): Remove macro.
33940         (gl_HEADER_STRING_H_BODY, gl_STRING_MODULE_INDICATOR): Update.
33941
33942 2007-02-17  Bruno Haible  <bruno@clisp.org>
33943
33944         * modules/link-warning: New file.
33945         * build-aux/link-warning.h: New file, extracted from lib/string_.h.
33946         * lib/string_.h (GL_LINK_WARNING): Remove definition.
33947         * modules/string (Depends-on): Add link-warning.
33948         (Makefile.am): Copy the contents of build-aux/link-warning.h into
33949         string.h.
33950         * MODULES.html.sh (Support for building libraries and executables): Add
33951         link-warning.
33952
33953 2007-02-17  Bruno Haible  <bruno@clisp.org>
33954
33955         * lib/string_.h (memmem, mempcpy, memrchr, stpcpy, stpncpy, strcasecmp,
33956         strncasecmp, strchr, strchrnul, strdup, strndup, strnlen, strcspn,
33957         strpbrk, strspn, strrchr, strsep, strstr, strcasestr, strtok_r): Break
33958         long lines.
33959
33960 2007-02-17  Ben Pfaff  <blp@cs.stanford.edu>
33961             Bruno Haible  <bruno@clisp.org>
33962
33963         * modules/tmpfile: New file.
33964         * lib/tmpfile.c: New file.
33965         * m4/tmpfile.m4: New file.
33966         * MODULES.html.sh (func_all_modules): New section "Input/output".
33967
33968 2007-02-15  Bruno Haible  <bruno@clisp.org>
33969
33970         * lib/clean-temp.c [WIN32 && !CYGWIN]: Include <windows.h>.
33971         (supports_delete_on_close): New function.
33972         (open_temp, fopen_temp): Use _O_TEMPORARY when supported.
33973
33974 2007-02-14  Bruno Haible  <bruno@clisp.org>
33975
33976         * modules/mbspcasecmp-tests: New file.
33977         * tests/test-mbspcasecmp.sh: New file.
33978         * tests/test-mbspcasecmp.c: New file.
33979
33980         New module mbspcasecmp.
33981         * modules/mbspcasecmp: New file.
33982         * lib/mbspcasecmp.c: New file.
33983         * lib/string_.h (strncasecmp): Change warning message.
33984         (mbspcasecmp): New declaration.
33985         * m4/mbspcasecmp.m4: New file.
33986         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
33987         GNULIB_MBSPCASECMP.
33988         * modules/string (string.h): Also substitute GNULIB_MBSPCASECMP.
33989         * MODULES.html.sh (Internationalization functions): Add mbspcasecmp.
33990
33991 2007-02-14  Bruno Haible  <bruno@clisp.org>
33992
33993         * modules/mbsncasecmp-tests: New file.
33994         * tests/test-mbsncasecmp.sh: New file.
33995         * tests/test-mbsncasecmp.c: New file.
33996
33997         New module mbsncasecmp.
33998         * modules/mbsncasecmp: New file.
33999         * lib/mbsncasecmp.c: New file.
34000         * lib/string_.h (mbsncasecmp): New declaration.
34001         * m4/mbsncasecmp.m4: New file.
34002         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
34003         GNULIB_MBSNCASECMP.
34004         * modules/string (string.h): Also substitute GNULIB_MBSNCASECMP.
34005         * MODULES.html.sh (Internationalization functions): Add mbsncasecmp.
34006
34007 2007-02-14  Paul Eggert  <eggert@cs.ucla.edu>
34008
34009         * lib/exclude.c (FNM_EXTMATCH): Define if system does not.
34010         Verify that it doesn't overlap with our flags.
34011         (fnmatch_no_wildcards): Don't use strcasecmp or strncasecmp, which
34012         do not have the desired effect in multibyte locales; instead, use
34013         mbscasecmp.
34014         * modules/exclude (Depends-on): Depend on mbscasecmp, not strcase.
34015         Add dependency on xalloc.  Depend on fnmatch, not fnmatch-gnu, since
34016         we don't require GNU fnmatch ourselves (if our users require it, they
34017         should do so explicitly).
34018
34019         Fix regex code so it doesn't rely on strcasecmp.
34020         * lib/regex_internal.h: Include <langinfo.h> only if _LIBC is defined.
34021         Otherwise, include gnulib's langinfo.h.
34022         * lib/regcomp.c (init_dfa): Don't use strcasecmp, as it can have
34023         undesirable behavior in non-C locales.  Instead, rely on localecharset.
34024         * m4/regex.m4 (gl_PREREQ_REGEX): Don't require AM_LANGINFO_CODESET.
34025         * modules/regex (FILES): Remove m4/codeset.m4.
34026         (Depends-on): Add localcharset.  Remove strcase.
34027
34028 2007-02-13  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
34029
34030         * m4/unlinkdir.m4 (gl_UNLINKDIR): Fix m4 quoting bug.
34031         * m4/unlink-busy.m4 (gl_FUNC_UNLINK_BUSY_TEXT): Likewise.
34032
34033 2007-02-13  Bruno Haible  <bruno@clisp.org>
34034
34035         * m4/intdiv0.m4 (gt_INTDIV0): Assume ANSI C. Fix underquoting bug.
34036         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
34037
34038 2007-02-12  Bruno Haible  <bruno@clisp.org>
34039
34040         * lib/string_.h (memmem, mempcpy, memrchr, stpcpy, stpncpy, strchrnul,
34041         strdup, strndup, strnlen, strpbrk, strsep, strtok_r): If
34042         GNULIB_POSIXCHECK and the gnulib module not enabled, provoke a link-
34043         time warning rather than a link error.
34044
34045 2007-02-12  Bruno Haible  <bruno@clisp.org>
34046
34047         * m4/locale-fr.m4 (gt_LOCALE_FR): Fix m4 quoting bug.
34048         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): Likewise.
34049         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
34050
34051 2007-02-12  Paul Eggert  <eggert@cs.ucla.edu>
34052
34053         * lib/string_.h (strncasecmp): Fix typo: this macro takes 3
34054         args, not 2.
34055
34056 2007-02-12  Paul Eggert  <eggert@cs.ucla.edu>
34057
34058         New module 'time', so that apps can include <time.h> as per
34059         POSIX and GNU instead of separate include files like time_r.h
34060         and timegm.h.  This implementation tries out a simpler approach
34061         for replacing decls in standard include files (as compared to
34062         the string module), somewhat as an experiment.
34063
34064         * config/srclist.txt: Comment out mktime.c for now.
34065         * doc/gnulib-tool.texi (Initial import): Don't use time_r as an example
34066         since it doesn't apply any more.  Use generic wording instead.
34067         * MODULES.html.sh (Support for systems lacking POSIX:2001): New module
34068         'time'.
34069         * lib/time_.h, m4/time_h.m4, modules/time: New files.
34070         * lib/strptime.h, lib/time_r.h, lib/timegm.h: Remove.
34071         * lib/mktime.c: Include config.h depending on _LIBC, not HAVE_CONFIG_H.
34072         Don't include <sys/types.h>; no longer needed since we assume C89.
34073         * lib/mktime.c: Don't include "time_r.h"; no longer needed.
34074         * lib/strftime.c: Likewise.
34075         * lib/time_r.c: Likewise.
34076         * lib/nanosleep.c (nanosleep): #undef after include files, not before.
34077         * lib/nanosleep.c: Include <time.h> first, to check interface.
34078         * lib/strptime.c: Likewise.
34079         * lib/time_r.c: Likewise.
34080         * lib/timegm.c: Likewise.
34081         * lib/strptime.c: Don't include strptime.h or time_r.h; no longer
34082         needed.
34083         * lib/timegm.c: Don't include timegm.h; no longer needed.
34084         * lib/timespec.h: Don't include <sys/time.h> before <time.h>;
34085         time.h now handles any problems in that area.
34086         (struct timespec, nanosleep): Remove; time.h now arranges for these.
34087         * lib/xnanosleep.c: Don't include timespec.h; no longer needed now
34088         that time.h defines struct timespec.
34089         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Check that nanosleep is declared.
34090         Set REPLACE_NANOSLEEP.  Don't AC_DEFINE nanosleep; the time module now
34091         handles that.
34092         * m4/strptime.m4 (gl_FUNC_STPRTIME): Set REPLACE_STRPTIME.
34093         * m4/time_r.m4 (gl_TIME_R): Don't define HAVE_TIME_R_POSIX; no longer
34094         needed.  Set REPLACE_LOCALTIME.
34095         * m4/timegm.m4 (gl_FUNC_TIMEGM): Set REPLACE_TIMEGM.
34096         * m4/timespec.m4 (gl_CHECK_TYPE_STRUCT_TIMESPEC): Move to time_h.m4.
34097         (gl_TIMESPEC): Don't check for sys/time.h or struct timespec or
34098         nanosleep; time_h.m4 now does that.  Don't require
34099         gl_USE_SYSTEM_EXTENSIONS; no longer needed directly, and the time
34100         module handles this now.
34101         * modules/getdate (Depends-on): Remove timespec.  Add time.
34102         * modules/nanosleep (Depends-on): Likewise.
34103         * modules/stat-time (Depends-on): Likewise.
34104         * modules/nanosleep (Include): Include time.h, not timespec.h.
34105         * modules/strptime (Files): Remove lib/strptime.h.
34106         (Depends-on): Add extensions, time.
34107         (Include): Include time.h, not strptime.h.
34108         * modules/time_r (Files): Remove lib/time_r.h.
34109         (Depends-on): Add time.
34110         (Include): Include time.h, not time_r.h.
34111         * modules/timegm: Likewise.
34112         * modules/timespec (Description): Now does timespec-related decls
34113         of our own, instead of struct timespec itself.
34114         (Depends-on): Add time; remove extensions.
34115         (Maintainer): Add self.
34116         * modules/utimecmp (Depends-on): Add time; remove timespec.
34117         * modules/utimens (Depends-on): Likewise.
34118         * modules/xnanosleep (Depends-on): Likewise.
34119
34120 2007-02-11  Bruno Haible  <bruno@clisp.org>
34121
34122         * lib/c-strstr.c: Include allocsa.h.
34123         (knuth_morris_pratt): Use allocsa/freesa instead of malloc/free.
34124         * lib/c-strcasestr.c: Include allocsa.h.
34125         (knuth_morris_pratt): Use allocsa/freesa instead of malloc/free.
34126         * lib/strcasestr.c: Include allocsa.h.
34127         (knuth_morris_pratt): Use allocsa/freesa instead of malloc/free.
34128         * lib/mbsstr.c: Include allocsa.h.
34129         (knuth_morris_pratt_unibyte, knuth_morris_pratt_multibyte): Use
34130         allocsa/freesa instead of malloc/free.
34131         * lib/mbscasestr.c: Include allocsa.h.
34132         (knuth_morris_pratt_unibyte, knuth_morris_pratt_multibyte): Use
34133         allocsa/freesa instead of malloc/free.
34134         * modules/c-strstr (Depends-on): Add allocsa.
34135         * modules/c-strcasestr (Depends-on): Likewise.
34136         * modules/strcasestr (Depends-on): Likewise.
34137         * modules/mbsstr (Depends-on): Likewise.
34138         * modules/mbscasestr (Depends-on): Likewise.
34139
34140 2007-02-11  Bruno Haible  <bruno@clisp.org>
34141
34142         * lib/mbsspn.c (mbsspn): Fix bug. Remove unnecessary strlen call.
34143
34144         * modules/mbsspn-tests: New file.
34145         * tests/test-mbsspn.sh: New file.
34146         * tests/test-mbsspn.c: New file.
34147
34148 2007-02-11  Bruno Haible  <bruno@clisp.org>
34149
34150         * lib/mbspbrk.c (mbspbrk): Remove unneeded cast.
34151
34152         * modules/mbspbrk-tests: New file.
34153         * tests/test-mbspbrk.sh: New file.
34154         * tests/test-mbspbrk.c: New file.
34155
34156 2007-02-11  Bruno Haible  <bruno@clisp.org>
34157
34158         * lib/mbscspn.c (mbscspn): Remove unnecessary strlen call and
34159         unneeded cast.
34160
34161         * modules/mbscspn-tests: New file.
34162         * tests/test-mbscspn.sh: New file.
34163         * tests/test-mbscspn.c: New file.
34164
34165 2007-02-11  Bruno Haible  <bruno@clisp.org>
34166
34167         * modules/mbscasecmp-tests: New file.
34168         * tests/test-mbscasecmp.sh: New file.
34169         * tests/test-mbscasecmp.c: New file.
34170
34171 2007-02-11  Bruno Haible  <bruno@clisp.org>
34172
34173         Ensure O(n) worst-case complexity of mbscasestr.
34174         * lib/mbscasestr.c: Include stdbool.h.
34175         (knuth_morris_pratt_unibyte, knuth_morris_pratt_multibyte): New
34176         functions.
34177         (mbscasestr): Add some bookkeeping. Invoke knuth_morris_pratt_* when
34178         the bookkeeping indicates that it's worth it.
34179         * modules/mbscasestr (Depends-on): Add stdbool, mbslen, strnlen.
34180
34181         * modules/mbscasestr-tests: New file.
34182         * tests/test-mbscasestr1.c: New file.
34183         * tests/test-mbscasestr2.sh: New file.
34184         * tests/test-mbscasestr2.c: New file.
34185         * tests/test-mbscasestr3.sh: New file.
34186         * tests/test-mbscasestr3.c: New file.
34187         * tests/test-mbscasestr4.sh: New file.
34188         * tests/test-mbscasestr4.c: New file.
34189         * m4/locale-tr.m4: New file.
34190
34191 2007-02-11  Bruno Haible  <bruno@clisp.org>
34192
34193         Ensure O(n) worst-case complexity of mbsstr.
34194         * lib/mbsstr.c: Include stdbool.h.
34195         (knuth_morris_pratt_unibyte, knuth_morris_pratt_multibyte): New
34196         functions.
34197         (mbsstr): Add some bookkeeping. Invoke knuth_morris_pratt_* when the
34198         bookkeeping indicates that it's worth it.
34199         * modules/mbsstr (Depends-on): Add stdbool, mbslen, strnlen.
34200
34201         * modules/mbsstr-tests: New file.
34202         * tests/test-mbsstr1.c: New file.
34203         * tests/test-mbsstr2.sh: New file.
34204         * tests/test-mbsstr2.c: New file.
34205         * tests/test-mbsstr3.sh: New file.
34206         * tests/test-mbsstr3.c: New file.
34207         * m4/locale-fr.m4: New file.
34208
34209 2007-02-11  Bruno Haible  <bruno@clisp.org>
34210
34211         * lib/mbsrchr.c (mbsrchr): Fix bug.
34212
34213         * modules/mbsrchr-tests: New file.
34214         * tests/test-mbsrchr.sh: New file.
34215         * tests/test-mbsrchr.c: New file.
34216
34217 2007-02-11  Bruno Haible  <bruno@clisp.org>
34218
34219         * lib/mbschr.c (mbschr): Fix bug.
34220
34221         * modules/mbschr-tests: New file.
34222         * tests/test-mbschr.sh: New file.
34223         * tests/test-mbschr.c: New file.
34224         * m4/locale-zh.m4: New file.
34225
34226 2007-02-11  Bruno Haible  <bruno@clisp.org>
34227
34228         Support for copying multibyte string iterators.
34229         * lib/mbiter.h: Include <string.h>.
34230         (mbiter_multi_copy): New function.
34231         (mbi_copy): New macro.
34232         * lib/mbuiter.h: Include <string.h>.
34233         (mbuiter_multi_copy): New function.
34234         (mbui_copy): New macro.
34235
34236 2007-02-11  Bruno Haible  <bruno@clisp.org>
34237
34238         New module mbslen.
34239         * modules/mbslen: New file.
34240         * lib/mbslen.c: New file.
34241         * lib/string_.h (mbslen): New declaration.
34242         * m4/mbslen.m4: New file.
34243         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
34244         GNULIB_MBSLEN.
34245         * modules/string (string.h): Also substitute GNULIB_MBSLEN.
34246         * MODULES.html.sh (Internationalization functions): Add mbslen.
34247
34248 2007-02-11  Bruno Haible  <bruno@clisp.org>
34249
34250         Ensure O(n) worst-case complexity of strcasestr substitute.
34251         * lib/strcasestr.c: Include stdbool.h.
34252         (knuth_morris_pratt): New function.
34253         (strcasestr): Add some bookkeeping. Invoke knuth_morris_pratt when the
34254         bookkeeping indicates that it's worth it.
34255         * modules/strcasestr (Depends-on): Add stdbool, strnlen.
34256
34257         * modules/strcasestr-tests: New file.
34258         * tests/test-strcasestr.c: New file.
34259
34260 2007-02-11  Bruno Haible  <bruno@clisp.org>
34261
34262         Ensure O(n) worst-case complexity of c_strcasestr.
34263         * lib/c-strcasestr.c: Include stdbool.h, string.h.
34264         (knuth_morris_pratt): New function.
34265         (c_strcasestr): Add some bookkeeping. Invoke knuth_morris_pratt when
34266         the bookkeeping indicates that it's worth it.
34267         * modules/c-strcasestr (Depends-on): Add stdbool, strnlen.
34268
34269         * modules/c-strcasestr-tests: New file.
34270         * tests/test-c-strcasestr.c: New file.
34271
34272 2007-02-11  Bruno Haible  <bruno@clisp.org>
34273
34274         Ensure O(n) worst-case complexity of c_strstr.
34275         * lib/c-strstr.c: Include stdbool.h, string.h.
34276         (knuth_morris_pratt): New function.
34277         (c_strstr): Add some bookkeeping. Invoke knuth_morris_pratt when the
34278         bookkeeping indicates that it's worth it.
34279         * modules/c-strstr (Depends-on): Add stdbool, strnlen.
34280
34281         * lib/c-strstr.c: Complete rewrite for maintainability.
34282
34283         * modules/c-strstr-tests: New file.
34284         * tests/test-c-strstr.c: New file.
34285
34286 2007-02-11  Bruno Haible  <bruno@clisp.org>
34287
34288         * m4/javacomp.m4 (gt_JAVACOMP): Work around a 'tr' bug in coreutils
34289         5.2.1 and earlier, whereby \055 was treated just like the range
34290         delimiter '-'.
34291         Reported by Joel E. Denny <jdenny@ces.clemson.edu>.
34292
34293 2007-02-08  Bruno Haible  <bruno@clisp.org>
34294
34295         * modules/regex (Depends-on): Add stdbool.
34296         Reported by Dalibor Topic <robilad@kaffe.org>.
34297
34298 2007-02-05  Paul Eggert  <eggert@cs.ucla.edu>
34299
34300         * m4/regex.m4 (gl_REGEX): Check for glibc bug #3957.
34301         Prefer returning from main to exiting from it.
34302         Remove unnecessary parens after sizeof.
34303
34304 2007-02-05  Bruno Haible  <bruno@clisp.org>
34305
34306         New module mbssep.
34307         * modules/mbssep: New file.
34308         * lib/mbssep.c: New file.
34309         * lib/string_.h (strsep): Add a conditional link warning.
34310         (mbssep): New declaration.
34311         * m4/mbssep.m4: New file.
34312         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
34313         GNULIB_MBSSEP.
34314         * modules/string (string.h): Also substitute GNULIB_MBSSEP.
34315         * MODULES.html.sh (Internationalization functions): Add mbssep.
34316
34317 2007-02-05  Bruno Haible  <bruno@clisp.org>
34318
34319         * lib/strsep.c (strsep): Fix actions in case of no delimiters.
34320         Optimize search in case of 1 delimiter.
34321
34322 2007-02-05  Paolo Bonzini  <bonzini@gnu.org>
34323
34324         * lib/acl.h: Include sys/types.h before sys/acl.h.
34325
34326 2007-02-05  Paolo Bonzini  <bonzini@gnu.org>
34327
34328         Merge upstream fix for glibc bugzilla #3957:
34329
34330         2007-02-05  Jakub Jelinek  <jakub@redhat.com>
34331
34332         * lib/regcomp.c (parse_bracket_exp): Set '\n' bit rather than '\0'
34333         bit for RE_HAT_LISTS_NOT_NEWLINE.
34334         (build_charclass_op): Remove bogus comment.
34335
34336 2007-02-05  Simon Josefsson  <simon@josefsson.org>
34337
34338         * lib/gc.h, lib/gc-libgcrypt.c: Support SHA-256/384/512.
34339
34340 2007-02-04  Paul Eggert  <eggert@cs.ucla.edu>
34341
34342         * lib/getsubopt.c [!_LIBC]: Include config.h and getsubopt.h.
34343         * lib/memmem.c [!defined _LIBC]: Include config.h.
34344
34345 2007-02-04  Bruno Haible  <bruno@clisp.org>
34346
34347         * lib/string_.h (GL_LINK_WARNING2): Put the word "warning:" into the
34348         warning message.
34349
34350 2007-02-04  Bruno Haible  <bruno@clisp.org>
34351
34352         New module mbstok_r.
34353         * modules/mbstok_r: New file.
34354         * lib/mbstok_r.c: New file.
34355         * lib/string_.h (strtok_r): Change argument names to match the
34356         comments. Add a conditional link warning.
34357         (mbstok_r): New declaration.
34358         * m4/mbstok_r.m4: New file.
34359         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
34360         GNULIB_MBSTOK_R.
34361         * modules/string (string.h): Also substitute GNULIB_MBSTOK_R.
34362         * MODULES.html.sh (Internationalization functions): Add mbstok_r.
34363
34364 2007-02-04  Bruno Haible  <bruno@clisp.org>
34365
34366         New module mbsspn.
34367         * modules/mbsspn: New file.
34368         * lib/mbsspn.c: New file.
34369         * lib/string_.h (strspn): Add a conditional link warning.
34370         (mbsspn): New declaration.
34371         * m4/mbsspn.m4: New file.
34372         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
34373         GNULIB_MBSSPN.
34374         * modules/string (string.h): Also substitute GNULIB_MBSSPN.
34375         * MODULES.html.sh (Internationalization functions): Add mbsspn.
34376
34377 2007-02-04  Bruno Haible  <bruno@clisp.org>
34378
34379         New module mbspbrk.
34380         * modules/mbspbrk: New file.
34381         * lib/mbspbrk.c: New file.
34382         * lib/string_.h (strpbrk): Add a conditional link warning.
34383         (mbspbrk): New declaration.
34384         * m4/mbspbrk.m4: New file.
34385         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
34386         GNULIB_MBSPBRK.
34387         * modules/string (string.h): Also substitute GNULIB_MBSPBRK.
34388         * MODULES.html.sh (Internationalization functions): Add mbspbrk.
34389
34390 2007-02-04  Bruno Haible  <bruno@clisp.org>
34391
34392         New module mbscspn.
34393         * modules/mbscspn: New file.
34394         * lib/mbscspn.c: New file.
34395         * lib/string_.h (strcspn): Add a conditional link warning.
34396         (mbscspn): New declaration.
34397         * m4/mbscspn.m4: New file.
34398         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
34399         GNULIB_MBSCSPN.
34400         * modules/string (string.h): Also substitute GNULIB_MBSCSPN.
34401         * MODULES.html.sh (Internationalization functions): Add mbscspn.
34402
34403 2007-02-04  Bruno Haible  <bruno@clisp.org>
34404
34405         New module mbscasestr, reduced goal of strcasestr.
34406         * modules/mbscasestr: New file.
34407         * lib/mbscasestr.c: New file, copied from lib/strcasestr.c.
34408         (mbscasestr): Renamed from strcasestr.
34409         * lib/strcasestr.c: Don't include mbuiter.h.
34410         (strcasestr): Remove support for multibyte locales.
34411         * lib/string_.h (strcasestr): Don`t rename. Declare only if missing.
34412         Change the conditional link warning.
34413         (mbscasestr): New declaration.
34414         * m4/mbscasestr.m4: New file.
34415         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Enable the replacement only if
34416         the system does not have strcasestr. Set HAVE_STRCASESTR instead of
34417         REPLACE_STRCASESTR.
34418         (gl_PREREQ_STRCASESTR): Don't require gl_FUNC_MBRTOWC.
34419         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
34420         HAVE_STRCASESTR instead of REPLACE_STRCASESTR.
34421         (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize GNULIB_MBSCASESTR.
34422         * modules/string (string.h): Also substitute GNULIB_MBSCASESTR.
34423         Substitute HAVE_STRCASESTR instead of REPLACE_STRCASESTR.
34424         * modules/strcasestr (Files): Remove m4/mbrtowc.m4.
34425         (Depends-on): Remove mbuiter.
34426         * MODULES.html.sh (Internationalization functions): Add mbscasestr.
34427
34428 2007-02-04  Bruno Haible  <bruno@clisp.org>
34429
34430         Simplify handling of strncasecmp.
34431         * lib/string_.h (strncasecmp): Remove test for GNULIB_STRCASE. Change
34432         the conditional link warning.
34433         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
34434         HAVE_STRCASECMP, not REPLACE_STRCASECMP.
34435         (gl_STRING_MODULE_INDICATOR_DEFAULTS): Don't initialize GNULIB_STRCASE.
34436         * modules/strcase (configure.ac): Don't invoke
34437         gl_STRING_MODULE_INDICATOR.
34438         * modules/string (string.h): Don't substitute GNULIB_STRCASE.
34439
34440 2007-02-04  Bruno Haible  <bruno@clisp.org>
34441
34442         New module mbscasecmp, reduced goal of strcasecmp.
34443         * modules/mbscasecmp: New file.
34444         * lib/mbscasecmp.c: New file, copied from lib/strcasecmp.c.
34445         (mbscasecmp): Renamed from strcasecmp.
34446         * lib/strcasecmp.c: Don't include mbuiter.h.
34447         (strcasecmp): Remove support for multibyte locales.
34448         * lib/string_.h (strcasecmp): Don`t rename. Declare only if missing.
34449         Change the conditional link warning.
34450         (mbscasecmp): New declaration.
34451         * m4/mbscasecmp.m4: New file.
34452         * m4/strcase.m4 (gl_FUNC_STRCASECMP): Enable the replacement only if
34453         the system lacks strcasecmp. Set HAVE_STRCASECMP instead of
34454         REPLACE_STRCASECMP.
34455         (gl_PREREQ_STRCASECMP): Don't require gl_FUNC_MBRTOWC.
34456         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
34457         GNULIB_MBSCASECMP.
34458         * modules/string (string.h): Also substitute GNULIB_MBSCASECMP.
34459         Substitute HAVE_STRCASECMP instead of REPLACE_STRCASECMP.
34460         * modules/strcase (Files): Remove m4/mbrtowc.m4.
34461         (Depends-on): Remove mbuiter.
34462         * MODULES.html.sh (Internationalization functions): Add mbscasecmp.
34463
34464 2007-02-04  Bruno Haible  <bruno@clisp.org>
34465
34466         New module mbsstr. Remove module strstr.
34467         * modules/mbsstr: New file.
34468         * modules/strstr: Remove file.
34469         * lib/mbsstr.c: Renamed from lib/strstr.c.
34470         (mbsstr): Renamed from strstr.
34471         * lib/string_.h (strstr): Remove declaration. Change the conditional
34472         link warning.
34473         (mbsstr): New declaration.
34474         * m4/mbsstr.m4: New file.
34475         * m4/strstr.m4: Remove file.
34476         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Don't initialize
34477         REPLACE_STRSTR.
34478         (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize GNULIB_MBSSTR.
34479         Don't initialize GNULIB_STRSTR.
34480         * modules/string (string.h): Also substitute GNULIB_MBSSTR. Don't
34481         substitute GNULIB_STRSTR and REPLACE_STRSTR.
34482         * MODULES.html.sh (Internationalization functions): Add mbsstr.
34483         (Support for systems lacking ANSI C 89): Remove strstr.
34484
34485 2007-02-04  Bruno Haible  <bruno@clisp.org>
34486
34487         New module mbsrchr.
34488         * modules/mbsrchr: New file.
34489         * lib/mbsrchr.c: New file.
34490         * lib/string_.h (strrchr): Add a conditional link warning.
34491         (mbsrchr): New declaration.
34492         * m4/mbsrchr.m4: New file.
34493         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
34494         GNULIB_MBSRCHR.
34495         * modules/string (string.h): Also substitute GNULIB_MBSRCHR.
34496         * MODULES.html.sh (Internationalization functions): Add mbsrchr.
34497
34498 2007-02-04  Bruno Haible  <bruno@clisp.org>
34499
34500         New module mbschr.
34501         * modules/mbschr: New file.
34502         * lib/mbschr.c: New file.
34503         * lib/string_.h (strchr): Add a conditional link warning.
34504         (mbschr): New declaration.
34505         * m4/mbschr.m4: New file.
34506         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
34507         GNULIB_MBSCHR.
34508         * modules/string (string.h): Also substitute GNULIB_MBSCHR.
34509         * MODULES.html.sh (Internationalization functions): Add mbschr.
34510
34511 2007-02-04  Paul Eggert  <eggert@cs.ucla.edu>
34512
34513         * lib/stdbool_.h: Mention that bool bit-fields aren't supported.
34514
34515         * modules/stdarg (configure.ac-early): Require AC_PROG_CC_STDC.
34516
34517 2007-02-04  Bruno Haible  <bruno@clisp.org>
34518
34519         New module description section 'configure.ac-early'.
34520         * gnulib-tool (sed_extract_prog): Recognize configure.ac-early.
34521         (func_get_autoconf_early_snippet): New function.
34522         (func_import, func_create_testdir): Use it. Remove special cases for
34523         modules 'extensions' and 'lock'.
34524         * modules/extensions (configure.ac-early): Require
34525         gl_USE_SYSTEM_EXTENSIONS.
34526         * modules/lock (configure.ac-early): Require gl_LOCK_EARLY.
34527
34528 2007-02-04  Bruno Haible  <bruno@clisp.org>
34529
34530         Make use of gcj-4.3's -fsource and -ftarget option.
34531         * m4/javacomp.m4 (gt_JAVACOMP): Test whether gcj is in version >= 4.3,
34532         and if so try the options -fsource and -ftarget.
34533         * lib/javacomp.c (compile_using_gcj): Add fsource_option,
34534         source_version, ftarget_option, target_version arguments.
34535         (is_envjavac_gcj43, is_envjavac_gcj43_usable): New functions.
34536         (is_envjavac_oldgcj_14_14_usable): Renamed from
34537         is_envjavac_gcj_14_14_usable.
34538         (is_envjavac_oldgcj_14_13_usable): Renamed from
34539         is_envjavac_gcj_14_13_usable.
34540         (is_gcj_present): Update.
34541         (is_gcj_43, is_gcj43_usable): New functions.
34542         (is_oldgcj_14_14_usable): Renamed from is_gcj_14_14_usable. Update.
34543         (is_oldgcj_14_13_usable): Renamed from is_gcj_14_13_usable. Update.
34544         (compile_java_class): Test whether gcj is in version >= 4.3, and if so
34545         try the options -fsource and -ftarget.
34546
34547 2007-02-03  Paul Eggert  <eggert@cs.ucla.edu>
34548
34549         * lib/xalloc.h (x2nrealloc): Fix an unlikely bug in the overflow
34550         checking code.  Set N = ceil (1.5 * N) rather than to a slightly
34551         larger value.
34552
34553 2007-02-03  Jim Meyering  <jim@meyering.net>
34554
34555         Give tools a better chance to allocate space for very large buffers.
34556         * lib/xalloc.h (x2nrealloc): Use 3/2, not 2, as buffer size factor.
34557
34558         Make pwd and readlink work also when run with an unreadable parent dir
34559         on systems with openat support.
34560         * lib/getcwd.c (__getcwd) [HAVE_PARTLY_WORKING_GETCWD]: Use the system
34561         provided getcwd function, even when we have openat support.
34562         Reported by Dmitry V. Levin in <http://bugzilla.redhat.com/227168>.
34563
34564 2007-02-02  Bruno Haible  <bruno@clisp.org>
34565
34566         * lib/string_.h (memmem, mempcpy, memrchr, stpcpy, stpncpy, strchrnul,
34567         strdup, strndup, strnlen, strpbrk, strsep, strtok_r): Provoke a link
34568         error only if GNULIB_POSIXCHECK is defined. Needed to avoid artificial
34569         portability problems if one of these functions is only used on specific
34570         platforms.
34571         Reported by Paul Eggert.
34572
34573 2007-02-02  Paul Eggert  <eggert@cs.ucla.edu>
34574
34575         Avoid mempcpy in the regex code, as the string.h mempcpy stuff
34576         is causing more trouble than it's curing.
34577         * lib/regex_internal.h (__mempcpy): Remove.
34578         * lib/regcomp.c (regerror): Rewrite to avoid the need for mempcpy
34579         (and make the code a tad smaller to boot).
34580         * m4/regex.m4 (gl_PREREQ_REGEX): Don't check for mempcpy.
34581
34582 2007-02-02  Jim Meyering  <jim@meyering.net>
34583
34584         * modules/arpa_inet: Put AC_PROG_MKDIR_P in the configure.ac:
34585         section, not in the Makefile.am: one.
34586
34587 2007-02-02  Eric Blake  <ebb9@byu.net>
34588
34589         * lib/strchrnul.c: Always include config.h first.
34590
34591         * modules/mountlist (Depends-on): Revert 2007-01-31 change,
34592         gnulib strstr is not necessary here.
34593
34594 2007-02-02  Simon Josefsson  <simon@josefsson.org>
34595
34596         * m4/socklen.m4: Fix typo.
34597
34598 2007-02-02  Eric Blake  <ebb9@byu.net>
34599
34600         * modules/arpa_inet (Makefile.am): Use MKDIR_P to avoid races.
34601         * modules/netinet_in (Makefile.am): Likewise.
34602
34603 2007-02-01  Bruno Haible  <bruno@clisp.org>
34604
34605         * lib/string_.h (GL_LINK_WARNING): New macro.
34606         (strcasecmp, strstr, strcasestr): If provided by the system,
34607         conditionally define as a macro that leads to a warning instead of to
34608         an error.
34609         (strncasecmp): Conditionally define as a macro that leads to a warning.
34610
34611 2007-02-01  Karl Berry  <karl@gnu.org>
34612
34613         * config/srclist.txt (strtok_r.c): lose sync, no more strtok_r.h.
34614
34615 2007-02-01  Bruno Haible  <bruno@clisp.org>
34616
34617         * MODULES.html.sh (Unicode string functions): Update after 2007-01-27
34618         renamings.
34619
34620 2007-02-01  Eric Blake  <ebb9@byu.net>
34621
34622         * modules/regex (Depends-on): Revert dependence on mempcpy.
34623         * lib/regex_internal.h [! _LIBC && !__mempcpy]: Undo string
34624         module's definition of mempcpy.
34625         Reported by Paul Eggert.
34626
34627 2007-02-01  Paul Eggert  <eggert@cs.ucla.edu>
34628
34629         * lib/string_.h: If the gnulib module XYZ is not present, undefine
34630         the symbol XYZ before redefining it.  This fixes a problem with
34631         programs that don't use XYZ, when compiled on systems that define
34632         XYZ to something else.
34633
34634 2007-01-31  Paul Eggert  <eggert@cs.ucla.edu>
34635
34636         * lib/mkdir-p.c (make_dir_parents): Close a race condition that
34637         occurs when "mkdir -m foo" creates a setgid directory that is (1)
34638         writeable to group or other and (2) is intended to have a special
34639         mode bit that is set or cleared.  In such a case, the directory
34640         should be neither group- nor other-writeable until the special
34641         mode bits are right.
34642
34643 2007-01-31  Eric Blake  <ebb9@byu.net>
34644
34645         * modules/mountlist (Depends-on): Add strstr.
34646
34647         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR): Correct m4 usage
34648         bug.
34649         * modules/string (Makefile.am): Remove redundant replacement.
34650         * modules/regex (Depends-on): Add mempcpy.
34651
34652 2007-01-31  Bruno Haible  <bruno@clisp.org>
34653
34654         New module description field 'Link'.
34655         * gnulib-tool (func_usage): Document --extract-link-directive.
34656         (sed_extract_prog): Recognize 'Link' directive.
34657         (func_get_link_directive): New function.
34658         (func_import): Show summary of link directives.
34659         Handle --extract-link-directive option.
34660         * modules/acl (Link): New section.
34661         * modules/clock-time (Link): New section.
34662         * modules/euidaccess (Link): New section.
34663         * modules/gettext (Link): New section.
34664         * modules/iconv (Link): New section.
34665         * modules/lock (Link): New section.
34666         * modules/nanosleep (Link): New section.
34667         * modules/readline (Link): New section.
34668
34669 2007-01-27  Bruno Haible  <bruno@clisp.org>
34670
34671         Enforce the use of gnulib modules for unportable <string.h> functions.
34672         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR): New macro.
34673         (gl_STRING_MODULE_INDICATOR_DEFAULTS): New macro.
34674         (gl_HEADER_STRING_H_BODY): Require it.
34675         * lib/string_.h: If the gnulib module XYZ is not present, redefine
34676         the symbol XYZ to one that gives a link error.
34677         * modules/string (Makefile.am): Also substitute the GNULIB_* variables.
34678         * modules/memmem (configure.ac): Invoke gl_STRING_MODULE_INDICATOR.
34679         * modules/mempcpy (configure.ac): Likewise.
34680         * modules/memrchr (configure.ac): Likewise.
34681         * modules/stpcpy (configure.ac): Likewise.
34682         * modules/stpncpy (configure.ac): Likewise.
34683         * modules/strcase (configure.ac): Likewise.
34684         * modules/strcasestr (configure.ac): Likewise.
34685         * modules/strchrnul (configure.ac): Likewise.
34686         * modules/strdup (configure.ac): Likewise.
34687         * modules/strndup (configure.ac): Likewise.
34688         * modules/strnlen (configure.ac): Likewise.
34689         * modules/strpbrk (configure.ac): Likewise.
34690         * modules/strsep (configure.ac): Likewise.
34691         * modules/strstr (configure.ac): Likewise.
34692         * modules/strtok_r (configure.ac): Likewise.
34693
34694 2007-01-31  Jean-Louis Martineau  <martineau@zmanda.com>  (tiny change)
34695
34696         * lib/gai_strerror.c (values): Add EAI_OVERFLOW.
34697
34698 2007-01-30  Jim Meyering  <jim@meyering.net>
34699
34700         * lib/mpsort.c (mpsort): Remove spurious "return" in void function.
34701
34702 2007-01-29  Bruno Haible  <bruno@clisp.org>
34703
34704         * lib/allocsa.h: Use '#if HAVE_*' instead of '#ifdef HAVE_*'.
34705         * lib/execute.c: Likewise.
34706         * lib/pipe.c: Likewise.
34707         * lib/printf-args.h: Likewise.
34708         * lib/printf-args.c: Likewise.
34709         * lib/printf-parse.c: Likewise.
34710         * lib/vasnprintf.c: Likewise.
34711
34712 2007-01-29  Eric Blake  <ebb9@byu.net>
34713
34714         * lib/memrchr.c: Assume <string.h> unconditionally, to pull in
34715         declaration.
34716
34717 2007-01-29  Paul Eggert  <eggert@cs.ucla.edu>
34718
34719         * lib/strptime.h (strptime): Use 'restrict' for args where
34720         POSIX requires this.
34721         * lib/strptime.c (strptime): Likewise.
34722         Change license notice from LGPL to GPL, since gnulib-tool will
34723         change this as needed.
34724         Include <config.h> if _LIBC is not defined, not if HAVE_CONFIG_H is
34725         defined.
34726         Include "strptime.h" first, to check interface.
34727         Do not #undef _LIBC and _NL_CURRENT.
34728         Do not include <stdlib.h>; no longer needed.
34729         Include "time_r.h" and declare ptime_locale_status
34730         only if _LIBC is not defined.
34731         (__P): Remove unused macro.
34732         (match_string): Bring back glibc version, but use it only if _LIBC
34733         is defined.
34734         (__strptime_internal): Compile tm_gmtoff code if _LIBC is defined, too.
34735         Remove unnecessary assertion and abort() call.
34736         Use #ifdef _NL_CURRENT rather than #if 0, for benefit of glibc.
34737         * m4/strptime.m4: Fix serial number comment.
34738         (gl_FUNC_STRPTIME): Require AC_C_RESTRICT, gl_TM_GMTOFF.
34739         * modules/strptime (Files): Add m4/tm_gmtoff.m4.
34740         (Depends-on): Add time_r.
34741
34742 2007-01-29  Bruno Haible  <bruno@clisp.org>
34743
34744         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
34745         strptime.
34746         * modules/strptime (Depends-on): Add stdbool.
34747         * lib/strptime.h: Include <time.h> always. Add comments.
34748
34749 2007-01-29  Yoann Vandoorselaere  <yoann@prelude-ids.org>
34750
34751         * modules/strptime: New file.
34752         * lib/strptime.h: New file.
34753         * lib/strptime.c: New file.
34754         * m4/strptime.m4: New file.
34755
34756 2007-01-28  Paul Eggert  <eggert@cs.ucla.edu>
34757
34758         * MODULES.html.sh: New module mpsort.
34759         * lib/mpsort.c, lib/mpsort.h, m4/mpsort.m4, modules/mpsort: New files.
34760
34761         * lib/regex.h (_Restrict_): Renamed from __restrict, to avoid
34762         a circularity problem with HP-UX ia64 reported by Bob Proulx in
34763         <http://lists.gnu.org/archive/html/bug-gnulib/2007-01/msg00394.html>.
34764         All uses changed.
34765         (_Restrict_arr_): Renamed from __restrict_arr, for similar reasons.
34766         All uses changed.
34767         * lib/regcomp.c, lib/regexec.c: Change all uses from __restrict
34768         to _Restrict_.
34769         * lib/regexec.c (regexec): Declare pmatch with _Restrict_arr_, so that
34770         the parameter matches the prototype.
34771
34772 2007-01-28  Jim Meyering  <jim@meyering.net>
34773
34774         * modules/sys_time (Makefile.am) [MOSTLYCLEANFILES]: Do use
34775         sys/time.h here, reverting that part of the previous patch:
34776         <http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/8959>.
34777
34778 2007-01-28  Bruno Haible  <bruno@clisp.org>
34779
34780         * modules/sys_time (Makefile.am): Build sys/time.h only when it's the
34781         value of $(SYS_TIME_H).
34782         [MOSTLYCLEANFILES]: Now that sys/time.h is created only when needed,
34783         remove it conditionally, too. [added by Jim Meyering]
34784         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Set SYS_TIME_H.
34785         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY):
34786         (gl_FUNC_GETTIMEOFDAY_CLOBBER): Set SYS_TIME_H when setting
34787         GETTIMEOFDAY_REPLACEMENT to 1.
34788
34789 2007-01-28  Bruno Haible  <bruno@clisp.org>
34790
34791         * m4/unistd_h.m4 (gl_HEADER_UNISTD_DEFAULTS): New macro.
34792         (gl_HEADER_UNISTD): Require it. Don't set UNISTD_H to empty here.
34793         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Require gl_HEADER_UNISTD_DEFAULTS.
34794         Set UNISTD_H instead of UNISTD_H2.
34795         * modules/fchdir (BUILT_SOURCES): Drop $(UNISTD_H2).
34796
34797 2007-01-28  Bruno Haible  <bruno@clisp.org>
34798
34799         * modules/mbchar (Makefile.am): Add mbchar.c to lib_SOURCES.
34800         * m4/mbchar.m4 (gl_MBCHAR): Remove AC_LIBOBJ invocation.
34801
34802 2007-01-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
34803
34804         * gnulib-tool (func_emit_lib_Makefile_am, func_add_or_update)
34805         (func_create_testdir): Ensure C locale for `grep' and `tr'
34806         character ranges.
34807         (func_create_megatestdir): Avoid one `grep'.  Fix bug in
34808         ACLOCAL_AMFLAGS parsing state machine.
34809
34810 2007-01-27  Bruno Haible  <bruno@clisp.org>
34811
34812         * modules/unistr/base: Update.
34813
34814 2007-01-27  Bruno Haible  <bruno@clisp.org>
34815
34816         Rename u32-mbtouc -> u32-mbtouc-unsafe, u32-mbtouc-safe -> u32-mbtouc,
34817         u32_mbtouc -> u32_mbtouc_unsafe, u32_mbtouc_safe -> u32_mbtouc.
34818         * modules/unistr/u32-mbtouc-unsafe: Renamed from
34819         modules/unistr/u32-mbtouc.
34820         * lib/unistr/u32-mbtouc-unsafe.c: Renamed from lib/unistr/u32-mbtouc.c.
34821         * lib/unistr.h: Update.
34822         * lib/linebreak.c: Update.
34823         * modules/unistr/u32-mbtouc: Renamed from
34824         modules/unistr/u32-mbtouc-safe.
34825         * lib/unistr/u32-mbtouc.c: Renamed from lib/unistr/u32-mbtouc-safe.c.
34826         * lib/unistr.h: Update.
34827         * lib/unistr/u32-to-u8.c: Update.
34828         * lib/unistr/u32-to-u16.c: Update.
34829
34830 2007-01-27  Bruno Haible  <bruno@clisp.org>
34831
34832         Rename utf16-ucs4 -> utf16-ucs4-unsafe, utf16-ucs4-safe -> utf16-ucs4,
34833         u16_mbtouc -> u16_mbtouc_unsafe, u16_mbtouc_safe -> u16_mbtouc.
34834         * modules/utf16-ucs4-unsafe: Renamed from modules/utf16-ucs4.
34835         * lib/utf16-ucs4-unsafe.h: Renamed from lib/utf16-ucs4.h.
34836         * lib/unistr/utf16-ucs4-unsafe.c: Renamed from lib/unistr/utf16-ucs4.c.
34837         * modules/unistr/u16-mbtouc-unsafe: Renamed from
34838         modules/unistr/u16-mbtouc.
34839         * lib/unistr/u16-mbtouc-unsafe.c: Renamed from lib/unistr/u16-mbtouc.c.
34840         * lib/unistr.h: Update.
34841         * lib/linebreak.c: Update.
34842         * modules/linebreak: Update.
34843         * modules/utf16-ucs4: Renamed from modules/utf16-ucs4-safe.
34844         * lib/utf16-ucs4.h: Renamed from lib/utf16-ucs4-safe.h.
34845         * lib/unistr/utf16-ucs4.c: Renamed from lib/unistr/utf16-ucs4-safe.c.
34846         * modules/unistr/u16-mbtouc: Renamed from
34847         modules/unistr/u16-mbtouc-safe.
34848         * lib/unistr/u16-mbtouc.c: Renamed from lib/unistr/u16-mbtouc-safe.c.
34849         * lib/unistr.h: Update.
34850         * lib/unistr/u16-to-u8.c: Update.
34851         * modules/unistr/u16-to-u8: Update.
34852         * lib/unistr/u16-to-u32.c: Update.
34853         * modules/unistr/u16-to-u32: Update.
34854
34855 2007-01-27  Bruno Haible  <bruno@clisp.org>
34856
34857         Rename utf8-ucs4 -> utf8-ucs4-unsafe, utf8-ucs4-safe -> utf8-ucs4,
34858         u8_mbtouc -> u8_mbtouc_unsafe, u8_mbtouc_safe -> u8_mbtouc.
34859         * modules/utf8-ucs4-unsafe: Renamed from modules/utf8-ucs4.
34860         * lib/utf8-ucs4-unsafe.h: Renamed from lib/utf8-ucs4.h.
34861         * lib/unistr/utf8-ucs4-unsafe.c: Renamed from lib/unistr/utf8-ucs4.c.
34862         * modules/unistr/u8-mbtouc-unsafe: Renamed from
34863         modules/unistr/u8-mbtouc.
34864         * lib/unistr/u8-mbtouc-unsafe.c: Renamed from lib/unistr/u8-mbtouc.c.
34865         * lib/unistr.h: Update.
34866         * lib/striconveh.c: Update.
34867         * modules/striconveh: Update.
34868         * lib/linebreak.c: Update.
34869         * modules/linebreak: Update.
34870         * modules/utf8-ucs4: Renamed from modules/utf8-ucs4-safe.
34871         * lib/utf8-ucs4.h: Renamed from lib/utf8-ucs4-safe.h.
34872         * lib/unistr/utf8-ucs4.c: Renamed from lib/unistr/utf8-ucs4-safe.c.
34873         * modules/unistr/u8-mbtouc: Renamed from modules/unistr/u8-mbtouc-safe.
34874         * lib/unistr/u8-mbtouc.c: Renamed from lib/unistr/u8-mbtouc-safe.c.
34875         * lib/unistr.h: Update.
34876         * lib/striconveh.c: Update.
34877         * modules/striconveh: Update.
34878         * lib/unistr/u8-to-u16.c: Update.
34879         * modules/unistr/u8-to-u16: Update.
34880         * lib/unistr/u8-to-u32.c: Update.
34881         * modules/unistr/u8-to-u32: Update.
34882
34883 2007-01-27  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
34884
34885         Sync from Libtool.
34886         * lib/argz.c: Do not include strings.h nor memory.h, include
34887         string.h unconditionally.  Patch by Simon Josefsson.
34888
34889 2007-01-27  Bruno Haible  <bruno@clisp.org>
34890
34891         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): New macro, extracted
34892         from gl_HEADER_STRING_H_BODY.
34893         (gl_HEADER_STRING_H_BODY): Require it.
34894         * m4/memmem.m4 (gl_FUNC_MEMMEM): Require gl_HEADER_STRING_H_DEFAULTS.
34895         * m4/mempcpy.m4 (gl_FUNC_MEMPCPY): Likewise.
34896         * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Likewise.
34897         * m4/stpcpy.m4 (gl_FUNC_STPCPY): Likewise.
34898         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Likewise.
34899         * m4/strcase.m4 (gl_FUNC_STRCASECMP, gl_FUNC_STRNCASECMP): Likewise.
34900         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
34901         * m4/strchrnul.m4 (gl_FUNC_STRCHRNUL): Likewise.
34902         * m4/strdup.m4 (gl_FUNC_STRDUP): Likewise.
34903         * m4/strndup.m4 (gl_FUNC_STRNDUP): Likewise.
34904         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Likewise.
34905         * m4/strpbrk.m4 (gl_FUNC_STRPBRK): Likewise.
34906         * m4/strsep.m4 (gl_FUNC_STRSEP): Likewise.
34907         * m4/strstr.m4 (gl_FUNC_STRSTR): Likewise.
34908         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Likewise.
34909
34910 2007-01-27  Bruno Haible  <bruno@clisp.org>
34911
34912         * gnulib-tool (func_emit_lib_Makefile_am): If $for_test is true, turn
34913         check_PROGRAMS into noinst_PROGRAMS.
34914         (func_emit_tests_Makefile_am): Likewise. Also don't initialize
34915         check_PROGRAMS in this case.
34916         (func_import): Set for_test to false.
34917         (func_create_testdir): Set for_test to true.
34918
34919 2007-01-27  Yoann Vandoorselaere <yoann.v@prelude-ids.com>
34920             Bruno Haible  <bruno@clisp.org>
34921
34922         * modules/strcasestr (Files): Remove lib/strcasestr.h.
34923         (Depends-on): Add string.
34924         (Includes): Use <string.h> instead of strcasestr.h.
34925         * modules/string (Makefile.am): Also substitute the value of
34926         REPLACE_STRCASESTR.
34927         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Don't define strcasestr here;
34928         assume strcasestr is declared in <string.h> not <strings.h>. Also
34929         set REPLACE_STRCASESTR.
34930         * m4/string_h.m4 (gl_HEADER_STRING_H_BODY): Provide a default value for
34931         REPLACE_STRCASESTR.
34932         * lib/strcasestr.h: Remove file.
34933         * lib/strcasestr.c: Include <string.h> instead of strcasestr.h.
34934         * lib/string_.h (strcasestr): New declaration.
34935
34936 2007-01-27  Bruno Haible  <bruno@clisp.org>
34937
34938         * lib/string_.h: Use 'extern'.
34939
34940 2007-01-27  Jim Meyering  <jim@meyering.net>
34941
34942         * lib/regex_internal.c (re_string_reconstruct): Remove declaration
34943         of set-but-not-used local, "q".
34944
34945         * lib/mempcpy.c: Include <config.h> before <string.h>.
34946         This fixes a compilation error on HP-UX, due to the system's
34947         "restrict"-using mempcpy prototype.
34948
34949 2007-01-26  Bruno Haible  <bruno@clisp.org>
34950
34951         Small optimization.
34952         * lib/javacomp.c: Include c-strstr.h.
34953          (is_envjavac_gcj): Use c_strstr instead of strstr.
34954         * modules/javacomp (Depends-on): Add c-strstr, remove strstr.
34955
34956 2007-01-26  Bruno Haible  <bruno@clisp.org>
34957
34958         * MODULES.html.sh (Unicode string functions): Add the new modules.
34959
34960         * modules/uniconv/u32-strconv-to-locale: New file.
34961         * lib/uniconv/u32-strconv-to-locale.c: New file.
34962
34963         * modules/uniconv/u16-strconv-to-locale: New file.
34964         * lib/uniconv/u16-strconv-to-locale.c: New file.
34965
34966         * modules/uniconv/u8-strconv-to-locale: New file.
34967         * lib/uniconv/u8-strconv-to-locale.c: New file.
34968
34969         * modules/uniconv/u32-strconv-from-locale: New file.
34970         * lib/uniconv/u32-strconv-from-locale.c: New file.
34971
34972         * modules/uniconv/u16-strconv-from-locale: New file.
34973         * lib/uniconv/u16-strconv-from-locale.c: New file.
34974
34975         * modules/uniconv/u8-strconv-from-locale: New file.
34976         * lib/uniconv/u8-strconv-from-locale.c: New file.
34977
34978         * modules/uniconv/u32-strconv-to-enc: New file.
34979         * lib/uniconv/u32-strconv-to-enc.c: New file.
34980         * modules/uniconv/u32-strconv-to-enc-tests: New file.
34981         * tests/uniconv/test-u32-strconv-to-enc.c: New file.
34982
34983         * modules/uniconv/u16-strconv-to-enc: New file.
34984         * lib/uniconv/u16-strconv-to-enc.c: New file.
34985         * lib/uniconv/u-strconv-to-enc.h: New file.
34986         * modules/uniconv/u16-strconv-to-enc-tests: New file.
34987         * tests/uniconv/test-u16-strconv-to-enc.c: New file.
34988
34989         * modules/uniconv/u8-strconv-to-enc: New file.
34990         * lib/uniconv/u8-strconv-to-enc.c: New file.
34991         * modules/uniconv/u8-strconv-to-enc-tests: New file.
34992         * tests/uniconv/test-u8-strconv-to-enc.c: New file.
34993
34994         * modules/uniconv/u32-strconv-from-enc: New file.
34995         * lib/uniconv/u32-strconv-from-enc.c: New file.
34996         * modules/uniconv/u32-strconv-from-enc-tests: New file.
34997         * tests/uniconv/test-u32-strconv-from-enc.c: New file.
34998
34999         * modules/uniconv/u16-strconv-from-enc: New file.
35000         * lib/uniconv/u16-strconv-from-enc.c: New file.
35001         * modules/uniconv/u16-strconv-from-enc-tests: New file.
35002         * tests/uniconv/test-u16-strconv-from-enc.c: New file.
35003
35004         * modules/uniconv/u8-strconv-from-enc: New file.
35005         * lib/uniconv/u8-strconv-from-enc.c: New file.
35006         * lib/uniconv/u-strconv-from-enc.h: New file.
35007         * modules/uniconv/u8-strconv-from-enc-tests: New file.
35008         * tests/uniconv/test-u8-strconv-from-enc.c: New file.
35009
35010         * modules/uniconv/u32-conv-from-enc: New file.
35011         * lib/uniconv/u32-conv-from-enc.c: New file.
35012         * modules/uniconv/u32-conv-from-enc-tests: New file.
35013         * tests/uniconv/test-u32-conv-from-enc.c: New file.
35014
35015         * modules/uniconv/u16-conv-from-enc: New file.
35016         * lib/uniconv/u16-conv-from-enc.c: New file.
35017         * lib/uniconv/u-conv-from-enc.h: New file.
35018         * modules/uniconv/u16-conv-from-enc-tests: New file.
35019         * tests/uniconv/test-u16-conv-from-enc.c: New file.
35020
35021         * modules/uniconv/u8-conv-from-enc: New file.
35022         * lib/uniconv/u8-conv-from-enc.c: New file.
35023         * modules/uniconv/u8-conv-from-enc-tests: New file.
35024         * tests/uniconv/test-u8-conv-from-enc.c: New file.
35025
35026         * modules/uniconv/base: New file.
35027         * lib/uniconv.h: New file.
35028
35029 2007-01-26  Paul Eggert  <eggert@cs.ucla.edu>
35030
35031         * doc/gnulib-tool.texi (Initial import): Update to match current
35032         behavior with strdup module.
35033         * lib/.cppi-disable: Remove strcase.h, strdup.h, strndup.h, strnlen.h.
35034         * lib/memmem.h: Remove; all uses removed.  This is now done
35035         by <string.h>.
35036         * lib/mempcpy.h: Likewise.
35037         * lib/memrchr.h: Likewise.
35038         * lib/stpcpy.h: Likewise.
35039         * lib/stpncpy.h: Likewise.
35040         * lib/strcase.h: Likewise.
35041         * lib/strchrnul.h: Likewise.
35042         * lib/strdup.h: Likewise.
35043         * lib/strndup.h: Likewise.
35044         * lib/strnlen.h: Likewise.
35045         * lib/strpbrk.h: Likewise.
35046         * lib/strsep.h: Likewise.
35047         * lib/strstr.h: Likewise.
35048         * lib/strtok_r.h: Likewise.
35049         * lib/string_.h: New file.
35050         * lib/argp-namefrob.h: Don't include no-longer-existent include files.
35051         Rely on <string.h> instead.
35052         * lib/canon-host.c: Likewise.
35053         * lib/chdir-long.c: Likewise.
35054         * lib/concatpath.c: Likewise.
35055         * lib/exclude.c: Likewise.
35056         * lib/fchdir.c: Likewise.
35057         * lib/getaddrinfo.c: Likewise.
35058         * lib/getcwd.c: Likewise.
35059         * lib/getsubopt.c: Likewise.
35060         * lib/glob.c: Likewise.
35061         * lib/hard-locale.c: Likewise.
35062         * lib/iconvme.c: Likewise.
35063         * lib/javacomp.c: Likewise.
35064         * lib/mempcpy.c: Likewise.
35065         * lib/memrchr.c: Likewise.
35066         * lib/regex_internal.h: Likewise.
35067         * lib/stpncpy.c: Likewise.
35068         * lib/strcasecmp.c: Likewise.
35069         * lib/strchrnul.c: Likewise.
35070         * lib/strdup.c: Likewise.
35071         * lib/striconv.c: Likewise.
35072         * lib/striconveh.c: Likewise.
35073         * lib/striconveha.c: Likewise.
35074         * lib/strncasecmp.c: Likewise.
35075         * lib/strndup.c: Likewise.
35076         * lib/strnlen.c: Likewise.
35077         * lib/strsep.c: Likewise.
35078         * lib/strstr.c: Likewise.
35079         * lib/strtok_r.c: Likewise.
35080         * lib/userspec.c: Likewise.
35081         * lib/w32spawn.h: Likewise.
35082         * lib/xstrndup.c: Likewise.
35083         * lib/mountlist.c (strstr): Remove decl.
35084         * m4/string_h.m4: New file.
35085         * m4/memmem.m4 (gl_FUNC_MEMMEM): Set HAVE_DECL_MEMMEM if necessary.
35086         * m4/mempcpy.m4 (gl_FUNC_MEMPCPY): Set HAVE_MEMPCPY if necessary.
35087         * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Set HAVE_MEMRCHR
35088         * m4/stpcpy.m4 (gl_FUNC_STPCPY): Set HAVE_STPCPY if necessary.
35089         * m4/stpncpy.m4 (gl_PREREQ_STPNCPY): Set HAVE_STPNCPY if necessary.
35090         * m4/strcase.m4 (gl_FUNC_STRCASECMP):
35091         Set REPLACE_STRCASECMP if necessary.
35092         (gl_FUNC_STRNCASECMP): Set HAVE_DECL_STRNCASECMP if necessary.
35093         * m4/strchrnul.m4 (gl_FUNC_STRCHRNUL): Set HAVE_STRCHRNUL if necessary.
35094         * m4/strdup.m4 (gl_FUNC_STRDUP): Set HAVE_DECL_STRDUP if necessary.
35095         * m4/strndup.m4 (gl_FUNC_STRNDUP): Set HAVE_DECL_STRNLEN and
35096         HAVE_DECL_STRDUP if necessary.
35097         (gl_PREREQ_STRNLEN): Don't bother to check for strnlen decl,
35098         since gl_FUNC_STRNDUP does that now.
35099         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Set HAVE_DECL_STRNLEN if necessary.
35100         Check for decl here...
35101         (gl_PREREQ_STRNLEN): ... not here.
35102         * m4/strpbrk.m4 (gl_FUNC_STRPBRK): Set HAVE_STRPBRK if necessary.
35103         * m4/strsep.m4 (gl_FUNC_STRSEP): Set HAVE_STRSEP if necessary.
35104         * m4/strstr.m4 (gl_FUNC_STRSTR): Set REPLACE_STRSTR if necessary.
35105         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Set HAVE_DECL_STRTOK_R if
35106         necessary.
35107         * modules/string: New file.
35108         * modules/memmem (Files): Remove special-purpose include file.
35109         (Depends-on): Add string.
35110         (Include): Include <string.h>, not the removed file.
35111         * modules/mempcpy: Likewise.
35112         * modules/memrchr: Likewise.
35113         * modules/stpcpy: Likewise.
35114         * modules/stpncpy: Likewise.
35115         * modules/strcase: Likewise.
35116         * modules/strchrnul: Likewise.
35117         * modules/strdup: Likewise.
35118         * modules/strndup: Likewise.
35119         * modules/strnlen: Likewise.
35120         * modules/strpbrk: Likewise.
35121         * modules/strsep: Likewise.
35122         * modules/strstr: Likewise.
35123         * modules/strtok_r: Likewise.
35124         * tests/test-dirname.c: Don't include "strdup.h", since
35125         <string.h> now suffices.
35126         * tests/test-memmem.c: Don't include "memmem.h", since
35127         <string.h> now suffices.
35128
35129 2007-01-25  Bruno Haible  <bruno@clisp.org>
35130
35131         * lib/striconveh.c (mem_cd_iconveh_internal): Ignore *lengthp if
35132         *resultp is 0.
35133
35134         * lib/unistr/u16-to-u8.c (u16_to_u8): Fix u8_uctomb invocation.
35135         * lib/unistr/u32-to-u8.c (u32_to_u8): Likewise.
35136         * lib/unistr/u8-to-u16.c (u8_to_u16): Fix u16_uctomb invocation.
35137         * lib/unistr/u32-to-u16.c (u32_to_u16): Likewise.
35138
35139         * modules/unistr/u8-to-u16 (Depends-on): Add missing modules.
35140         * modules/unistr/u8-to-u32 (Depends-on): Add missing modules.
35141         * modules/unistr/u16-to-u8 (Depends-on): Add missing modules.
35142         * modules/unistr/u16-to-u32 (Depends-on): Add missing modules.
35143         * modules/unistr/u32-to-u8 (Depends-on): Add missing modules.
35144         * modules/unistr/u32-to-u16 (Depends-on): Add missing modules.
35145
35146 2007-01-24  Bruno Haible  <bruno@clisp.org>
35147
35148         Don't AC_REQUIRE autoconf macros that invoke AC_LIBOBJ. See
35149         <http://lists.gnu.org/archive/html/bug-gnulib/2006-10/msg00279.html>.
35150         * m4/argp.m4 (gl_ARGP): Invoke, don't require, gl_GETOPT_SUBSTITUTE.
35151         * m4/fts.m4 (gl_FUNC_FTS, gl_FUNC_FTS_LGPL): Invoke, don't require,
35152         gl_FUNC_FTS_CORE.
35153         (gl_FUNC_FTS_CORE): Invoke, don't require, gl_FUNC_OPENAT.
35154         * m4/lstat.m4 (gl_FUNC_LSTAT): Invoke, don't require,
35155         AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
35156         * m4/memcmp.m4 (gl_FUNC_MEMCMP): Invoke, don't require, AC_FUNC_MEMCMP.
35157         * m4/mktime.m4 (gl_FUNC_MKTIME): Invoke, don't require, AC_FUNC_MKTIME.
35158         * m4/openat.m4 (gl_FUNC_OPENAT): Invoke, don't require,
35159         gl_FUNC_FCHOWNAT.
35160         * m4/strftime.m4 (gl_FUNC_GNU_STRFTIME): Invoke, don't require,
35161         gl_FUNC_STRFTIME.
35162         * m4/strtod.m4 (gl_FUNC_STRTOD): Invoke, don't require, AC_FUNC_STRTOD.
35163         Reported by Ralf Wildenhues.
35164
35165 2007-01-24  Bruno Haible  <bruno@clisp.org>
35166
35167         Drop AC_REQUIRE calls that are redundant with the module dependencies.
35168         * m4/canon-host.m4 (gl_PREREQ_CANON_HOST): Don't require
35169         gl_GETADDRINFO.
35170         * m4/chdir-long.m4 (gl_PREREQ_CHDIR_LONG): Don't require AM_STDBOOL_H,
35171         gl_FUNC_MEMPCPY, gl_FUNC_OPENAT, gl_FUNC_MEMRCHR.
35172         * m4/openat.m4 (gl_PREREQ_OPENAT): Don't require gl_SAVE_CWD.
35173
35174 2007-01-24  Paul Eggert  <eggert@cs.ucla.edu>
35175
35176         * m4/fnmatch.m4 (_AC_FUNC_FNMATCH_IF): Add test for glibc bug 361.
35177         Don't use 'exit'; just return from 'main'.
35178         (_AC_LIBOBJ_FNMATCH): Check for headers and functions just once.
35179
35180         * lib/fnmatch_.h: Readjust white space and comments to match
35181         glibc, to avoid spurious diffs.
35182
35183 2007-01-23  Paul Eggert  <eggert@cs.ucla.edu>
35184
35185         * lib/fnmatch_loop.c (internal_fnmatch) [!_LIBC]: #if-out the
35186         2004-12-01 change by Jakub Jelinek, since this code won't compile
35187         if !LIBC.  Problem reported by Bob Proulx.
35188
35189 2007-01-23  Bruno Haible  <bruno@clisp.org>
35190
35191         * lib/striconveh.c: Include c-strcaseeq.h.
35192         (mem_iconveh, str_iconveh): Use STRCASEEQ instead of c_strcasecmp.
35193         * modules/striconveh (Depends-on): Add c-strcaseeq.
35194
35195 2007-01-23  Bruno Haible  <bruno@clisp.org>
35196
35197         * MODULES.html.sh (String handling): Add streq, c-strcaseeq.
35198
35199         * modules/c-strcaseeq: New file.
35200         * lib/c-strcaseeq.h: New file.
35201
35202         * modules/streq: New file.
35203         * lib/streq.h: New file.
35204
35205 2007-01-23  Bruno Haible  <bruno@clisp.org>
35206
35207         * modules/striconveha-tests: New file.
35208         * tests/test-striconveha.c: New file.
35209
35210         * lib/striconveha.h: Include <stdbool.h>.
35211         (mem_iconveha, str_iconveha): Add 'transliterate' argument.
35212         * lib/striconveha.c: Include allocsa.h, strdup.h, c-strcase.h.
35213         (mem_iconveha_notranslit): Renamed from mem_iconveha.
35214         (mem_iconveha): New function.
35215         (str_iconveha_notranslit): Renamed from str_iconveha.
35216         (str_iconveha): New function.
35217         * modules/striconveha (Depends-on): Add stdbool, allocsa, strdup,
35218         c-strcase.
35219
35220 2007-01-23  Bruno Haible  <bruno@clisp.org>
35221
35222         * lib/striconveha.c (mem_iconveha): Fix endless recursion. Try all
35223         encodings without forgiving before trying any encoding with handler.
35224         (str_iconveha): Try all encodings without forgiving before trying any
35225         encoding with handler.
35226
35227 2007-01-23  Paul Eggert  <eggert@cs.ucla.edu>
35228
35229         Import the following changes from libc.
35230
35231         2005-10-14  Ulrich Drepper  <drepper@redhat.com>
35232
35233         * lib/fnmatch_loop.c: Adjust for changed secondary hash function.
35234
35235         2004-12-01  Jakub Jelinek  <jakub@redhat.com>
35236
35237         * lib/fnmatch_loop.c (internal_fnmatch): Clear is_seqval after
35238         normal_bracket label.
35239
35240         2004-09-01  Jakub Jelinek  <jakub@redhat.com>
35241
35242         [BZ #361]
35243         * lib/fnmatch_loop.c (FCT): For backslash between brackets, branch
35244         to normal_bracket after fetching the next character.
35245
35246 2007-01-22  Bruno Haible  <bruno@clisp.org>
35247
35248         * lib/striconveh.h (mem_cd_iconveh, mem_iconveh): Add 'offsets'
35249         argument.
35250         * lib/striconveh.c (iconv_carefully_1): New function.
35251         (mem_cd_iconveh_internal, mem_cd_iconveh, mem_iconveh): Add 'offsets'
35252         argument.
35253         (str_cd_iconveh): Update.
35254         * lib/striconveha.h (mem_iconveha): Add 'offsets' argument.
35255         * lib/striconveha.c (mem_iconveha): Add 'offsets' argument.
35256         * tests/test-striconveh.c (MAGIC): New macro.
35257         (new_offsets): New function.
35258         (main): Test call with and without offsets.
35259
35260 2007-01-22  Bruno Haible  <bruno@clisp.org>
35261
35262         * modules/sys_stat (Makefile.am): Use @MKDIR_P@ instead of $(MKDIR_P).
35263         * modules/sys_select (Makefile.am): Likewise.
35264         * modules/sys_socket (Makefile.am): Likewise.
35265         * modules/sys_time (Makefile.am): Likewise.
35266
35267 2007-01-22  Paul Eggert  <eggert@cs.ucla.edu>
35268
35269         * modules/gettimeofday (License): Change from GPL to LGPL, since
35270         gettimeofday is a library function.
35271
35272 2007-01-22  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
35273
35274         * lib/poll.c (rpl_poll): Don't check against FD_SETSIZE under Win32.
35275
35276 2007-01-21  Bruno Haible  <bruno@clisp.org>
35277
35278         * m4/gnulib-common.m4 (AC_PROG_MKDIR_P): New macro.
35279
35280 2007-01-21  Bruno Haible  <bruno@clisp.org>
35281
35282         * modules/striconveha: New file.
35283         * lib/striconveha.h: New file.
35284         * lib/striconveha.c: New file.
35285         * MODULES.html.sh (Internationalization functions): Add striconveha.
35286         * lib/striconv.c (str_iconv): Optimize the case of an empty input
35287         string.
35288         * lib/striconveh.c (mem_iconveh, str_iconveh): Likewise.
35289
35290 2007-01-21  Bruno Haible  <bruno@clisp.org>
35291
35292         * lib/striconv.c (str_iconv): Guarantee errno is set when strdup fails.
35293         * lib/striconveh.c (str_iconveh): Likewise.
35294
35295 2007-01-21  Bruno Haible  <bruno@clisp.org>
35296
35297         * lib/striconveh.h (mem_iconveh): New declaration.
35298         * lib/striconveh.c (mem_iconveh): New function.
35299         * tests/test-striconveh.c (main): Add tests for mem_iconveh.
35300
35301 2007-01-21  Bruno Haible  <bruno@clisp.org>
35302
35303         * lib/xstriconv.h (xmem_cd_iconv): Change specification.
35304
35305         * lib/striconveh.h (mem_cd_iconveh): Change specification.
35306         * lib/striconveh.c (mem_cd_iconveh): Don't free the user-supplied
35307         original result buffer.
35308         (str_cd_iconveh): Update.
35309         * tests/test-striconveh.c (main): Update.
35310
35311         * lib/striconv.h (mem_cd_iconv): Change specification.
35312         * lib/striconv.c (mem_cd_iconv): Don't free the user-supplied original
35313         result buffer.
35314         (str_cd_iconv): Update.
35315         * tests/test-striconv.c (main): Update.
35316
35317 2007-01-21  Bruno Haible  <bruno@clisp.org>
35318
35319         * gnulib-tool: Fix test whether sed is GNU sed supporting --posix.
35320
35321 2007-01-20  Jim Meyering  <jim@meyering.net>
35322
35323         * lib/userspec.c (parse_with_separator): If a user or group string
35324         starts with "+", skip the corresponding name-to-ID look-up, since
35325         such a look-up must fail: user and group names may not include "+".
35326
35327 2007-01-19  Paul Eggert  <eggert@cs.ucla.edu>
35328
35329         * lib/poll.c: Include sys/time.h and time.h unconditionally,
35330         since we now assume the sys_time module.
35331         * m4/poll.m4 (gl_PREREQ_POLL): Don't require AC_HEADER_TIME or
35332         check for sys/time.h; no longer needed.
35333         * modules/poll (Depends-on): Depend on sys_time.
35334
35335 2007-01-18  Bruno Haible  <bruno@clisp.org>
35336
35337         * m4/mktime.m4 (AC_FUNC_MKTIME): Remove test for <sys/time.h>.
35338         * m4/strftime.m4 (gl_FUNC_STRFTIME): Likewise.
35339
35340         * m4/tempname.m4 (gl_PREREQ_TEMPNAME): Remove tests for sys/time.h and
35341         gettimeofday.
35342
35343         * tests/test-gettimeofday.c: Include <time.h>.
35344         (dummy): Remove variable.
35345
35346         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Renamed from
35347         gl_HEADER_SYS_TIME_H.
35348         (gl_HEADER_SYS_TIME_H): New macro.
35349
35350         * lib/sys_time_.h: Test GETTIMEOFDAY_REPLACEMENT instead of
35351         HAVE_GETTIMEOFDAY_POSIX_SIGNATURE and GETTIMEOFDAY_CLOBBERS_LOCALTIME.
35352         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY,
35353         gl_FUNC_GETTIMEOFDAY_CLOBBER): Set GETTIMEOFDAY_REPLACEMENT instead of
35354         HAVE_GETTIMEOFDAY_POSIX_SIGNATURE and GETTIMEOFDAY_CLOBBERS_LOCALTIME.
35355         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H): Initialize
35356         GETTIMEOFDAY_REPLACEMENT instead of HAVE_GETTIMEOFDAY_POSIX_SIGNATURE
35357         and GETTIMEOFDAY_CLOBBERS_LOCALTIME.
35358         * modules/sys_time (sys/time.h): Substitute GETTIMEOFDAY_REPLACEMENT
35359         instead of HAVE_GETTIMEOFDAY_POSIX_SIGNATURE and
35360         GETTIMEOFDAY_CLOBBERS_LOCALTIME.
35361
35362         * m4/gettimeofday.m4 (gl_GETTIMEOFDAY_REPLACE_LOCALTIME): Undo the
35363         last change; it caused a compilation error when cross-compiling to
35364         Cygwin.
35365
35366 2007-01-18  Jim Meyering  <jim@meyering.net>
35367
35368         Use "$(MKDIR_P) sys", not race-prone "test -d sys || mkdir sys".
35369         * modules/sys_stat (Makefile.am): Use "$(MKDIR_P) sys", rather
35370         than the race-prone "test -d sys || mkdir sys".
35371         (configure.ac): Use AC_PROG_MKDIR_P.
35372         * modules/sys_select: Likewise.
35373         * modules/sys_socket: Likewise.
35374         * modules/sys_time: Likewise.
35375
35376 2007-01-18  Eric Blake  <ebb9@byu.net>
35377
35378         * m4/gettimeofday.m4 (gl_GETTIMEOFDAY_REPLACE_LOCALTIME): Also
35379         replace gettimeofday.
35380         * lib/gettimeofday.c (rpl_gettimeofday): Declare with replacement
35381         name, to avoid infinite recursion.
35382
35383 2007-01-17  Paul Eggert  <eggert@cs.ucla.edu>
35384
35385         * MODULES.html.sh (Support for systems lacking POSIX:2001): New
35386         module sys_time.
35387         * lib/gethrxtime.c: Include <sys/time.h>, since we can no longer
35388         assume timespec.h defines struct timeval.
35389         * lib/settime.c: Likewise.
35390         * lib/utimens.c: Likewise.
35391         * lib/gettime.c (gettime): Remove test against HAVE_GETTIMEOFDAY,
35392         since we now assume the gettimeofday module.
35393         * lib/tempname.c (__gen_tempname): Likewise.
35394         * lib/gettimeofday.h: Remove.
35395         * lib/gettimeofday.c: Include <sys/time.h> instead of "gettimeofday.h".
35396         Don't include <sys/types.h> and <stdlib.h>; shouldn't be needed.
35397         Include <time.h>, for 'time()'.
35398         (localtime_buffer_addr): Also use this workaround if
35399         TZSET_CLOBBERS_LOCALTIME.  Set to a dummy static variable by default,
35400         to simplify the uses.  All uses changed.
35401         (localtime, gmtime, tzset, gettimeofday): Reformat slightly so
35402         that #undef is inside {}, and 'const' follows type name consistently.
35403         (tzset): Define replacement only if TZSET_CLOBBERS_LOCALTIME.
35404         (gettimeofday): Do not use the maximum possible value for
35405         tv->tv_usec, since that might break usages other than ls.c.
35406         Instead, we'll leave ls.c alone.  This undoes today's patch
35407         by Bruno.  Add a compile-time warning for 1s-clock resolution;
35408         we've never observed the problem but might as well keep the
35409         canary.
35410         * lib/nanosleep.c: Include timespec.h first, for interface check.
35411         * lib/nanosleep.c: Include <sys/time.h> unconditionally, since we
35412         now assume the sys_time module.
35413         * lib/tempname.c: Likewise.
35414         * lib/timespec.h: Likewise.
35415         * lib/nanosleep.c: Don't worry about TIME_WITH_SYS_TIME; no longer
35416         needed.
35417         * lib/strftime.c: Likewise.
35418         * lib/timespec.h: Likewise.
35419         * lib/posixtm.c: Include posixtm.h first, for interface check.
35420         Don't worry about TM_IN_SYS_TIME; that's wayyy obsolete.
35421         * lib/posixtm.h: Include stdbool.h and time.h, for proper interface.
35422         * lib/strftime.c: Don't include <sys/types.h>; shouldn't be needed.
35423         * lib/sys_time_.h: New file.
35424         * lib/timespec.h (struct timespec): Use long int, not long.
35425         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY):
35426         (gl_FUNC_GETTIMEOFDAY_CLOBBER, gl_PREREQ_GETTIMEOFDAY):
35427         Remove obsolescent call to AC_HEADER_TIME.
35428         * m4/mktime.m4 (AC_FUNC_MKTIME): Likewise.
35429         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
35430         * m4/strftime.m4 (gl_FUNC_STRFTIME): Likewise.
35431         * m4/timespec.m4 (gl_TIMESPEC, gl_CHECK_TYPE_STRUCT_TIMESPEC):
35432         Likewise.
35433         * m4/tzset.m4 (gl_FUNC_TZSET_CLOBBER): Likewise.
35434         * m4/utimbuf.m4 (gl_CHECK_TYPE_STRUCT_UTIMBUF): Likewise.
35435         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY): Move sys/time.h tests
35436         into the sys_time module.  Check for gettimeofday just once.
35437         Prefix our variables with gl_, not with ac_ or jm_.  Tighten test
35438         for gettimeofday signature to just check the signature.  Merely
35439         compile it, since linking doesn't test signature.  Improve test for
35440         whether gettimeofday.o is actually needed.
35441         (gl_FUNC_GETTIMEOFDAY_CLOBBER): Renamed from
35442         AC_FUNC_GETTIMEOFDAY_CLOBBER.  All uses changed.  Use
35443         AC_RUN_IFELSE rather than AC_TRY_RUN.  If clobbering, set
35444         and define GETTIMEOFDAY_CLOBBERS_LOCALTIME.
35445         (gl_GETTIMEOFDAY_REPLACE_LOCALTIME): Don't define
35446         GETTIMEOFDAY_CLOBBERS_LOCALTIME; that's gl_FUNC_GETTIMEOFDAY_CLOBBER's
35447         job.  Don't define tzset; that's gl_FUNC_TZSET_CLOBBER's job.
35448         * m4/mktime.m4 (AC_FUNC_MKTIME): Just include <time.h> rather
35449         than worrying about sys/time.h.
35450         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP):
35451         Don't bother worrying about TIME_WITH_SYS_TIME.
35452         * m4/stat-time.m4 (gl_STAT_TIME): Likewise.
35453         * m4/posixtm.m4 (gl_POSIXTM): Remove obsolescent call to AC_STRUCT_TM.
35454         * m4/sys_time_h.m4: New file.
35455         * m4/tzset.m4 (gl_FUNC_TZSET_CLOBBER): Require gl_HEADER_SYS_TIME_H.
35456         Don't include sys/time.h.  Return from main rather than exiting.
35457         Define TZSET_CLOBBERS_LOCALTIME, for consistency with other names;
35458         all uses changed.
35459         * modules/gethrxtime (Depends-on): Add sys_time.
35460         * modules/gettime (Depends-on): Likewise.
35461         * modules/gettimeofday (Depends-on): Likewise.
35462         * modules/nanosleep (Depends-on): Likewise.
35463         * modules/settime (Depends-on): Likewise.
35464         * modules/tempname (Depends-on): Likewise.
35465         * modules/utimens (Depends-on): Likewise.
35466         * modules/gettimeofday (Files): Remove lib/gettimeofday.h.
35467         (Include:) Change back to <sys/time.h>.
35468         (Maintainer:) Add self.
35469         * modules/sys_time: New file.
35470         * modules/tempname (Depends-on): Add gettimeofday.
35471         * tests/test-gettimeofday.c: Include <sys/time.h>
35472         rather than gettimeofday.h.
35473
35474 2007-01-17  Bruno Haible  <bruno@clisp.org>
35475
35476         * gnulib-tool (func_get_license): Revert last patch. Instead, let
35477         the license default to GPL.
35478         (func_create_testdir): Don't complain if a module is LGPL and its
35479         tests module depends on GPLed modules.
35480
35481 2007-01-17  Bruno Haible  <bruno@clisp.org>
35482
35483         * lib/gettimeofday.c (gettimeofday): Add code for the case
35484         HAVE_GETTIMEOFDAY && !GETTIMEOFDAY_CLOBBERS_LOCALTIME. Use the
35485         maximum possible value for tv->tv_usec, rather than the minimum one.
35486
35487 2005-10-08  Martin Lambers  <marlam@marlam.de>
35488 2005-10-08  Paul Eggert  <eggert@cs.ucla.edu>
35489 2007-01-16  Bruno Haible  <bruno@clisp.org>
35490
35491         * modules/gettimeofday (Files): Add lib/gettimeofday.h.
35492         (configure.ac): Remove AC_FUNC_GETTIMEOFDAY_CLOBBER. Add
35493         gl_FUNC_GETTIMEOFDAY.
35494         (Include): Add gettimeofday.h.
35495         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY): New macro.
35496         (AC_FUNC_GETTIMEOFDAY_CLOBBER): Don't invoke gl_PREREQ_GETTIMEOFDAY.
35497         (gl_GETTIMEOFDAY_REPLACE_LOCALTIME): Define
35498         GETTIMEOFDAY_CLOBBERS_LOCALTIME. Invoke gl_PREREQ_GETTIMEOFDAY here.
35499         (gl_PREREQ_GETTIMEOFDAY): Check for <sys/timeb.h> and _ftime.
35500         * lib/gettimeofday.h: New file.
35501         * lib/gettimeofday.c: Include <sys/timeb.h>.
35502         (localtime_buffer_addr, rpl_localtime, rpl_gmtime, rpl_tzset): Define
35503         only if GETTIMEOFDAY_CLOBBERS_LOCALTIME.
35504         (rpl_gettimeofday) [!HAVE_GETTIMEOFDAY]: Use _ftime() when available;
35505         fall back on time().
35506
35507         * tests/test-gettimeofday.c: New file.
35508         * modules/gettimeofday-tests: New file.
35509
35510 2007-01-16  Eric Blake  <ebb9@byu.net>
35511
35512         * modules/fnmatch (Depends-on): Depend on wchar.
35513         * lib/fnmatch.c (WIDE_CHAR_SUPPORT): Assume <wchar.h>.
35514         * m4/fnmatch.m4: Likewise.
35515         * modules/mbchar (Makefile.am): Assume <wchar.h>.
35516         * m4/mbchar.m4: Likewise.
35517         * modules/mbswidth (Depends-on): Depend on wchar.
35518         * lib/mbswidth.c: Assume <wchar.h>.
35519         * m4/mbswidth.m4: Likewise.
35520         * modules/quotearg (Depends-on): Depend on wchar.
35521         * lib/quotearg.c: Assume <wchar.h>.
35522         * m4/quotearg.m4: Likewise.
35523         * modules/regex (Depends-on): Depend on wchar.
35524         * lib/regex_internal.h: Assume <wchar.h>.
35525         * m4/regex.m4: Likewise.
35526         * modules/stdint (Depends-on): Depend on wchar.
35527         * lib/stdint_.h [!defined WCHAR_MIN]: Assume <wchar.h>.
35528         * m4/stdint.m4: Likewise.
35529         * tests/test-stdint.c [HAVE_WINT_T]: Likewise.
35530         * modules/strftime (Depends-on): Depend on wchar.
35531         * lib/strftime.c (DO_MULTIBYTE): Assume <wchar.h>.
35532         * modules/strtol (Depends-on): Depend on wchar.
35533         * lib/strtol.c: Assume <wchar.h>.
35534         * modules/wcwidth (Depends-on): Depend on wchar.
35535         * lib/wcwidth.h: Assume <wchar.h>.
35536         * m4/wcwidth.m4: Likewise.
35537
35538 2007-01-16  Bruno Haible  <bruno@clisp.org>
35539
35540         * modules/csharpexec-script: New, created from...
35541         * modules/csharpexec: ... this.
35542
35543 2007-01-16  Paolo Bonzini  <bonzini@gnu.org>
35544
35545         * modules/javaexec-script: New, created from...
35546         * modules/javaexec: ... this.
35547
35548 2007-01-16  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
35549
35550         * modules/poll (Dependencies): Add sys_select.
35551
35552 2007-01-15  Jim Meyering  <jim@meyering.net>
35553
35554         * m4/readutmp.m4 (gl_READUTMP): Work around AIX 4.3 struct-
35555         redefinition bug when using both <utmp.h> and <utmpx.h> headers.
35556         * lib/readutmp.h: Likewise.  Reported by Daniel Richard G. in
35557         <http://article.gmane.org/gmane.comp.gnu.core-utils.bugs/9415>.
35558
35559 2007-01-15  Bruno Haible  <bruno@clisp.org>
35560
35561         * modules/striconveh: New file.
35562         * lib/striconveh.h: New file.
35563         * lib/striconveh.c: New file.
35564         * MODULES.html.sh (Internationalization functions): Add striconveh.
35565
35566         * modules/striconveh-tests: New file.
35567         * tests/test-striconveh.c: New file.
35568
35569 2007-01-15  Bruno Haible  <bruno@clisp.org>
35570
35571         * lib/striconv.c (str_cd_iconv): Use the first algorithm if iconv is
35572         not from GNU libiconv or GNU libc.
35573
35574 2007-01-15  Bruno Haible  <bruno@clisp.org>
35575
35576         * doc/gnulib-intro.texi (Copyright): Explain the different license
35577         terms for module descriptions, autoconf macros, tests, documentation.
35578
35579 2007-01-14  Bruno Haible  <bruno@clisp.org>
35580
35581         * modules/striconv-tests: New file.
35582         * tests/test-striconv.c: New file.
35583
35584 2007-01-14  Bruno Haible  <bruno@clisp.org>
35585
35586         * modules/iconv-tests: New file.
35587         * tests/test-iconv.c: New file.
35588
35589 2007-01-14  Bruno Haible  <bruno@clisp.org>
35590
35591         * gnulib-tool (func_get_license): For test modules, use the license of
35592         the main module.
35593
35594 2007-01-14  Bruno Haible  <bruno@clisp.org>
35595
35596         * modules/iconv (Include): Clarify that <iconv.h> can only be included
35597         if iconv is found to exist.
35598
35599 2007-01-14  Bruno Haible  <bruno@clisp.org>
35600
35601         * modules/c-ctype-tests: New file.
35602         * tests/test-c-ctype.c: New file.
35603
35604 2007-01-14  Bruno Haible  <bruno@clisp.org>
35605
35606         * modules/binary-io-tests: New file.
35607         * tests/test-binary-io.sh: New file.
35608         * tests/test-binary-io.c: New file.
35609
35610 2007-01-14  Bruno Haible  <bruno@clisp.org>
35611
35612         * modules/array-oset-tests: New file.
35613         * tests/test-array_oset.c: New file.
35614
35615 2007-01-14  Bruno Haible  <bruno@clisp.org>
35616
35617         * modules/array-list-tests: New file.
35618         * tests/test-array_list.c: New file.
35619
35620 2007-01-14  Bruno Haible  <bruno@clisp.org>
35621
35622         * gnulib-tool (func_create_testdir): Don't unnecessarily run configure
35623         and make.
35624         Reported by Simon Josefsson in
35625         <http://lists.gnu.org/archive/html/bug-gnulib/2007-01/msg00139.html>
35626
35627 2007-01-14  Bruno Haible  <bruno@clisp.org>
35628
35629         * modules/allocsa-tests: New file.
35630         * tests/test-allocsa.c: New file.
35631
35632 2007-01-14  Bruno Haible  <bruno@clisp.org>
35633
35634         * modules/fchdir (Depends-on): Add absolute-header.
35635         * modules/unistd (Depends-on): Likewise.
35636
35637 2006-12-30  Bruno Haible  <bruno@clisp.org>
35638
35639         * modules/fchdir: New file.
35640         * modules/unistd (Files): Add lib/unistd_.h.
35641         (Makefile.am): Generate unistd.h from unistd_.h.
35642         * lib/fchdir.c: New file.
35643         * lib/dirent_.h: New file.
35644         * lib/unistd_.h: New file.
35645         * lib/fcntl_.h (open) [FCHDIR_REPLACEMENT]: New replacement.
35646         * m4/fchdir.m4: New file.
35647         * m4/unistd_h.m4 (gl_PREREQ_UNISTD): New macro.
35648         (gl_HEADER_UNISTD): Invoke it.
35649         * lib/dup-safer.c (dup_safer) [FCHDIR_REPLACEMENT]: Use the dup
35650         function.
35651         * lib/backupfile.c (opendir, closedir): Undefine.
35652         * lib/chown.c (open, close): Undefine.
35653         * lib/clean-temp.c (open, close): Undefine.
35654         * lib/copy-file.c (open, close): Undefine.
35655         * lib/execute.c (open, close): Undefine.
35656         * lib/fsusage.c (open, close): Undefine.
35657         * lib/gc-gnulib.c (open, close): Undefine.
35658         * lib/getcwd.c (opendir, closedir): Undefine.
35659         * lib/glob.c (opendir, closedir): Undefine.
35660         * lib/javacomp.c (open, close): Undefine.
35661         * lib/mountlist.c (open, close, opendir, closedir): Undefine.
35662         * lib/openat-proc.c (open, close): Undefine.
35663         * lib/pagealign_alloc.c (open, close): Undefine.
35664         * lib/pipe.c (open, close): Undefine.
35665         * lib/progreloc.c (open, close): Undefine.
35666         * lib/savedir.c (opendir, closedir): Undefine.
35667         * lib/utime.c (open, close): Undefine.
35668         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add fchdir.
35669
35670 2007-01-10  Bruno Haible  <bruno@clisp.org>
35671
35672         * lib/striconv.c (mem_cd_iconv): Align the temporary buffer.
35673
35674 2007-01-12  Eric Blake  <ebb9@byu.net>
35675
35676         Provide a robust <wchar.h>.  Further simplifications are now
35677         possible in other modules, but not included here.
35678         * modules/wchar: New module.
35679         * m4/wchar.m4: New file.
35680         * lib/wchar_.h: Likewise.
35681         * modules/mbchar (Depends-on): Depend on wchar, as the first use
35682         of the new module.
35683         * MODULES.html.sh (Extended multibyte and wide character utilities):
35684         New section.
35685
35686 2007-01-12  Paul Eggert  <eggert@cs.ucla.edu>
35687
35688         * lib/xreadlink.c (SYMLINK_MAX) [!defined SYMLINK_MAX]: Define
35689         to a reasonable default for memory allocation.
35690         (xreadlink): Don't allocate a huge buffer, to work around a buggy
35691         file system that reports garbage st_size values for symlinks.
35692         Problem reported by Liyang Hu.
35693
35694 2007-01-11  Simon Josefsson  <simon@josefsson.org>
35695
35696         * gnulib-tool (func_all_modules): Exclude all .* files (e.g.,
35697         Emacs .#* auto-save files).
35698
35699 2007-01-11  Bruno Haible  <bruno@clisp.org>
35700
35701         * gnulib-tool (func_all_modules): Exclude all files inside the CVS
35702         directory.
35703
35704 2007-01-10  Paul Eggert  <eggert@cs.ucla.edu>
35705
35706         Use @...@ consistently in lib/wctype_.h.
35707         * lib/wctype_.h [HAVE_WINT_T]: Go back to using @...@, but rely
35708         on it being set to 1 or 0.
35709         * m4/wctype.m4 (gl_WCTYPE_H): Set HAVE_WINT_T to 1 or 0, and
35710         go back to AC_SUBSTing it.
35711         * modules/wctype (Makefile.am): Undo previous change.
35712
35713 2007-01-10  Eric Blake  <ebb9@byu.net>
35714
35715         * lib/wctype_.h [HAVE_WINT_T]: Rely on AC_DEFINE.
35716         * m4/wctype.m4 (gl_WCTYPE_H): No need to AC_SUBST(HAVE_WINT_T).
35717         * modules/wctype (Makefile.am): Likewise.
35718         Reported by Chris McGuire.
35719
35720 2007-01-10  Jim Meyering  <jim@meyering.net>
35721
35722         fts.c: a small readability/maintainability improvement
35723         * lib/fts.c (fts_read): Make this code slightly more readable and
35724         maintainable by hoisting the "sp->fts_cur = p" assignments to
35725         immediately follow the statements that set P.  Derived from
35726         the patch by Miloslav Trmac in http://bugzilla.redhat.com/222089.
35727
35728 2007-01-10  Eric Blake  <ebb9@byu.net>
35729
35730         * lib/wctype_.h [HAVE_WINT_T]: Include <stddef.h> before
35731         <wchar.h>, to work around BSDI bug in BSD/OS 4.0.1.
35732         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Likewise.
35733         * m4/wint_t.m4 (gt_TYPE_WINT_T): Likewise.
35734         Reported by Chris McGuire.
35735
35736 2007-01-09  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
35737
35738         * gnulib-tool (func_all_modules): Use POSIX conforming escaping
35739         in sed script.
35740
35741 2007-01-09  Bruno Haible  <bruno@clisp.org>
35742
35743         * MODULES.html.sh: Accept options --cvs-urls, --git-urls.
35744         (repo_url_prefix, repo_url_suffix, repo_url_suffix_repl): New
35745         variables.
35746         (func_module): Use them.
35747
35748 2007-01-09  Bruno Haible  <bruno@clisp.org>
35749
35750         * modules/unistr/base: New file.
35751         * lib/unistr.h: New file.
35752
35753         * modules/unistr/u8-to-u16: New file.
35754         * lib/unistr/u8-to-u16.c: New file.
35755
35756         * modules/unistr/u8-to-u32: New file.
35757         * lib/unistr/u8-to-u32.c: New file.
35758
35759         * modules/unistr/u16-to-u8: New file.
35760         * lib/unistr/u16-to-u8.c: New file.
35761
35762         * modules/unistr/u16-to-u32: New file.
35763         * lib/unistr/u16-to-u32.c: New file.
35764
35765         * modules/unistr/u32-to-u8: New file.
35766         * lib/unistr/u32-to-u8.c: New file.
35767
35768         * modules/unistr/u32-to-u16: New file.
35769         * lib/unistr/u32-to-u16.c: New file.
35770
35771         * modules/unistr/u8-check: New file.
35772         * modules/unistr/u16-check: New file.
35773         * modules/unistr/u32-check: New file.
35774         * lib/unistr/u8-check.c: New file.
35775         * lib/unistr/u16-check.c: New file.
35776         * lib/unistr/u32-check.c: New file.
35777
35778         * modules/unistr/u8-chr: New file.
35779         * modules/unistr/u16-chr: New file.
35780         * modules/unistr/u32-chr: New file.
35781         * lib/unistr/u8-chr.c: New file.
35782         * lib/unistr/u16-chr.c: New file.
35783         * lib/unistr/u32-chr.c: New file.
35784
35785         * modules/unistr/u8-cmp: New file.
35786         * modules/unistr/u16-cmp: New file.
35787         * modules/unistr/u32-cmp: New file.
35788         * lib/unistr/u8-cmp.c: New file.
35789         * lib/unistr/u16-cmp.c: New file.
35790         * lib/unistr/u32-cmp.c: New file.
35791
35792         * modules/unistr/u8-cpy: New file.
35793         * modules/unistr/u16-cpy: New file.
35794         * modules/unistr/u32-cpy: New file.
35795         * lib/unistr/u8-cpy.c: New file.
35796         * lib/unistr/u16-cpy.c: New file.
35797         * lib/unistr/u32-cpy.c: New file.
35798         * lib/unistr/u-cpy.h: New file.
35799
35800         * modules/unistr/u8-cpy-alloc: New file.
35801         * modules/unistr/u16-cpy-alloc: New file.
35802         * modules/unistr/u32-cpy-alloc: New file.
35803         * lib/unistr/u8-cpy-alloc.c: New file.
35804         * lib/unistr/u16-cpy-alloc.c: New file.
35805         * lib/unistr/u32-cpy-alloc.c: New file.
35806         * lib/unistr/u-cpy-alloc.h: New file.
35807
35808         * modules/unistr/u8-endswith: New file.
35809         * modules/unistr/u16-endswith: New file.
35810         * modules/unistr/u32-endswith: New file.
35811         * lib/unistr/u8-endswith.c: New file.
35812         * lib/unistr/u16-endswith.c: New file.
35813         * lib/unistr/u32-endswith.c: New file.
35814         * lib/unistr/u-endswith.h: New file.
35815
35816         * modules/unistr/u8-mblen: New file.
35817         * modules/unistr/u16-mblen: New file.
35818         * modules/unistr/u32-mblen: New file.
35819         * lib/unistr/u8-mblen.c: New file.
35820         * lib/unistr/u16-mblen.c: New file.
35821         * lib/unistr/u32-mblen.c: New file.
35822
35823         * modules/unistr/u8-mbtouc: New file.
35824         * modules/unistr/u16-mbtouc: New file.
35825         * modules/unistr/u32-mbtouc: New file.
35826         * lib/unistr/u8-mbtouc.c: New file.
35827         * lib/unistr/u16-mbtouc.c: New file.
35828         * lib/unistr/u32-mbtouc.c: New file.
35829
35830         * modules/unistr/u8-mbtouc-safe: New file.
35831         * modules/unistr/u16-mbtouc-safe: New file.
35832         * modules/unistr/u32-mbtouc-safe: New file.
35833         * lib/unistr/u8-mbtouc-safe.c: New file.
35834         * lib/unistr/u16-mbtouc-safe.c: New file.
35835         * lib/unistr/u32-mbtouc-safe.c: New file.
35836
35837         * modules/unistr/u8-move: New file.
35838         * modules/unistr/u16-move: New file.
35839         * modules/unistr/u32-move: New file.
35840         * lib/unistr/u8-move.c: New file.
35841         * lib/unistr/u16-move.c: New file.
35842         * lib/unistr/u32-move.c: New file.
35843         * lib/unistr/u-move.h: New file.
35844
35845         * modules/unistr/u8-next: New file.
35846         * modules/unistr/u16-next: New file.
35847         * modules/unistr/u32-next: New file.
35848         * lib/unistr/u8-next.c: New file.
35849         * lib/unistr/u16-next.c: New file.
35850         * lib/unistr/u32-next.c: New file.
35851
35852         * modules/unistr/u8-prev: New file.
35853         * modules/unistr/u16-prev: New file.
35854         * modules/unistr/u32-prev: New file.
35855         * lib/unistr/u8-prev.c: New file.
35856         * lib/unistr/u16-prev.c: New file.
35857         * lib/unistr/u32-prev.c: New file.
35858
35859         * modules/unistr/u8-set: New file.
35860         * modules/unistr/u16-set: New file.
35861         * modules/unistr/u32-set: New file.
35862         * lib/unistr/u8-set.c: New file.
35863         * lib/unistr/u16-set.c: New file.
35864         * lib/unistr/u32-set.c: New file.
35865         * lib/unistr/u-set.h: New file.
35866
35867         * modules/unistr/u8-startswith: New file.
35868         * modules/unistr/u16-startswith: New file.
35869         * modules/unistr/u32-startswith: New file.
35870         * lib/unistr/u8-startswith.c: New file.
35871         * lib/unistr/u16-startswith.c: New file.
35872         * lib/unistr/u32-startswith.c: New file.
35873         * lib/unistr/u-startswith.h: New file.
35874
35875         * modules/unistr/u8-stpcpy: New file.
35876         * modules/unistr/u16-stpcpy: New file.
35877         * modules/unistr/u32-stpcpy: New file.
35878         * lib/unistr/u8-stpcpy.c: New file.
35879         * lib/unistr/u16-stpcpy.c: New file.
35880         * lib/unistr/u32-stpcpy.c: New file.
35881         * lib/unistr/u-stpcpy.h: New file.
35882
35883         * modules/unistr/u8-stpncpy: New file.
35884         * modules/unistr/u16-stpncpy: New file.
35885         * modules/unistr/u32-stpncpy: New file.
35886         * lib/unistr/u8-stpncpy.c: New file.
35887         * lib/unistr/u16-stpncpy.c: New file.
35888         * lib/unistr/u32-stpncpy.c: New file.
35889         * lib/unistr/u-stpncpy.h: New file.
35890
35891         * modules/unistr/u8-strcat: New file.
35892         * modules/unistr/u16-strcat: New file.
35893         * modules/unistr/u32-strcat: New file.
35894         * lib/unistr/u8-strcat.c: New file.
35895         * lib/unistr/u16-strcat.c: New file.
35896         * lib/unistr/u32-strcat.c: New file.
35897         * lib/unistr/u-strcat.h: New file.
35898
35899         * modules/unistr/u8-strchr: New file.
35900         * modules/unistr/u16-strchr: New file.
35901         * modules/unistr/u32-strchr: New file.
35902         * lib/unistr/u8-strchr.c: New file.
35903         * lib/unistr/u16-strchr.c: New file.
35904         * lib/unistr/u32-strchr.c: New file.
35905
35906         * modules/unistr/u8-strcmp: New file.
35907         * modules/unistr/u16-strcmp: New file.
35908         * modules/unistr/u32-strcmp: New file.
35909         * lib/unistr/u8-strcmp.c: New file.
35910         * lib/unistr/u16-strcmp.c: New file.
35911         * lib/unistr/u32-strcmp.c: New file.
35912
35913         * modules/unistr/u8-strcpy: New file.
35914         * modules/unistr/u16-strcpy: New file.
35915         * modules/unistr/u32-strcpy: New file.
35916         * lib/unistr/u8-strcpy.c: New file.
35917         * lib/unistr/u16-strcpy.c: New file.
35918         * lib/unistr/u32-strcpy.c: New file.
35919         * lib/unistr/u-strcpy.h: New file.
35920
35921         * modules/unistr/u8-strcspn: New file.
35922         * modules/unistr/u16-strcspn: New file.
35923         * modules/unistr/u32-strcspn: New file.
35924         * lib/unistr/u8-strcspn.c: New file.
35925         * lib/unistr/u16-strcspn.c: New file.
35926         * lib/unistr/u32-strcspn.c: New file.
35927         * lib/unistr/u-strcspn.h: New file.
35928
35929         * modules/unistr/u8-strdup: New file.
35930         * modules/unistr/u16-strdup: New file.
35931         * modules/unistr/u32-strdup: New file.
35932         * lib/unistr/u8-strdup.c: New file.
35933         * lib/unistr/u16-strdup.c: New file.
35934         * lib/unistr/u32-strdup.c: New file.
35935         * lib/unistr/u-strdup.h: New file.
35936
35937         * modules/unistr/u8-strlen: New file.
35938         * modules/unistr/u16-strlen: New file.
35939         * modules/unistr/u32-strlen: New file.
35940         * lib/unistr/u8-strlen.c: New file.
35941         * lib/unistr/u16-strlen.c: New file.
35942         * lib/unistr/u32-strlen.c: New file.
35943         * lib/unistr/u-strlen.h: New file.
35944
35945         * modules/unistr/u8-strmblen: New file.
35946         * modules/unistr/u16-strmblen: New file.
35947         * modules/unistr/u32-strmblen: New file.
35948         * lib/unistr/u8-strmblen.c: New file.
35949         * lib/unistr/u16-strmblen.c: New file.
35950         * lib/unistr/u32-strmblen.c: New file.
35951
35952         * modules/unistr/u8-strmbtouc: New file.
35953         * modules/unistr/u16-strmbtouc: New file.
35954         * modules/unistr/u32-strmbtouc: New file.
35955         * lib/unistr/u8-strmbtouc.c: New file.
35956         * lib/unistr/u16-strmbtouc.c: New file.
35957         * lib/unistr/u32-strmbtouc.c: New file.
35958
35959         * modules/unistr/u8-strncat: New file.
35960         * modules/unistr/u16-strncat: New file.
35961         * modules/unistr/u32-strncat: New file.
35962         * lib/unistr/u8-strncat.c: New file.
35963         * lib/unistr/u16-strncat.c: New file.
35964         * lib/unistr/u32-strncat.c: New file.
35965         * lib/unistr/u-strncat.h: New file.
35966
35967         * modules/unistr/u8-strncmp: New file.
35968         * modules/unistr/u16-strncmp: New file.
35969         * modules/unistr/u32-strncmp: New file.
35970         * lib/unistr/u8-strncmp.c: New file.
35971         * lib/unistr/u16-strncmp.c: New file.
35972         * lib/unistr/u32-strncmp.c: New file.
35973
35974         * modules/unistr/u8-strncpy: New file.
35975         * modules/unistr/u16-strncpy: New file.
35976         * modules/unistr/u32-strncpy: New file.
35977         * lib/unistr/u8-strncpy.c: New file.
35978         * lib/unistr/u16-strncpy.c: New file.
35979         * lib/unistr/u32-strncpy.c: New file.
35980         * lib/unistr/u-strncpy.h: New file.
35981
35982         * modules/unistr/u8-strnlen: New file.
35983         * modules/unistr/u16-strnlen: New file.
35984         * modules/unistr/u32-strnlen: New file.
35985         * lib/unistr/u8-strnlen.c: New file.
35986         * lib/unistr/u16-strnlen.c: New file.
35987         * lib/unistr/u32-strnlen.c: New file.
35988         * lib/unistr/u-strnlen.h: New file.
35989
35990         * modules/unistr/u8-strpbrk: New file.
35991         * modules/unistr/u16-strpbrk: New file.
35992         * modules/unistr/u32-strpbrk: New file.
35993         * lib/unistr/u8-strpbrk.c: New file.
35994         * lib/unistr/u16-strpbrk.c: New file.
35995         * lib/unistr/u32-strpbrk.c: New file.
35996         * lib/unistr/u-strpbrk.h: New file.
35997
35998         * modules/unistr/u8-strrchr: New file.
35999         * modules/unistr/u16-strrchr: New file.
36000         * modules/unistr/u32-strrchr: New file.
36001         * lib/unistr/u8-strrchr.c: New file.
36002         * lib/unistr/u16-strrchr.c: New file.
36003         * lib/unistr/u32-strrchr.c: New file.
36004
36005         * modules/unistr/u8-strspn: New file.
36006         * modules/unistr/u16-strspn: New file.
36007         * modules/unistr/u32-strspn: New file.
36008         * lib/unistr/u8-strspn.c: New file.
36009         * lib/unistr/u16-strspn.c: New file.
36010         * lib/unistr/u32-strspn.c: New file.
36011         * lib/unistr/u-strspn.h: New file.
36012
36013         * modules/unistr/u8-strstr: New file.
36014         * modules/unistr/u16-strstr: New file.
36015         * modules/unistr/u32-strstr: New file.
36016         * lib/unistr/u8-strstr.c: New file.
36017         * lib/unistr/u16-strstr.c: New file.
36018         * lib/unistr/u32-strstr.c: New file.
36019         * lib/unistr/u-strstr.h: New file.
36020
36021         * modules/unistr/u8-strtok: New file.
36022         * modules/unistr/u16-strtok: New file.
36023         * modules/unistr/u32-strtok: New file.
36024         * lib/unistr/u8-strtok.c: New file.
36025         * lib/unistr/u16-strtok.c: New file.
36026         * lib/unistr/u32-strtok.c: New file.
36027         * lib/unistr/u-strtok.h: New file.
36028
36029         * modules/unistr/u8-uctomb: New file.
36030         * modules/unistr/u16-uctomb: New file.
36031         * modules/unistr/u32-uctomb: New file.
36032         * lib/unistr/u8-uctomb.c: New file.
36033         * lib/unistr/u16-uctomb.c: New file.
36034         * lib/unistr/u32-uctomb.c: New file.
36035
36036         * MODULES.html.sh (Unicode string functions): Add the new modules.
36037
36038 2007-01-08  Bruno Haible  <bruno@clisp.org>
36039
36040         * gnulib-tool (func_all_modules): Use find, not ls, to traverse the
36041         modules directory. Filter out CVS, ChangeLog, COPYING, README also from
36042         subdirectories.
36043
36044 2007-01-08  Karl Berry  <karl@gnu.org>
36045
36046         * doc/error.texi: mention that main() fns must set program_name
36047         when progname is used.
36048
36049 2007-01-08  Paul Eggert  <eggert@cs.ucla.edu>
36050
36051         * m4/wctype.m4 (gl_WCTYPE_H): Compute ABSOLUTE_WCTYPE_H even if
36052         WCTYPE_H is empty, for the benefit of builds from non-distclean
36053         directories.  Problem reported by Eric Blake in
36054         <http://lists.gnu.org/archive/html/bug-gnulib/2007-01/msg00157.html>.
36055
36056 2007-01-08  Bruno Haible  <bruno@clisp.org>
36057
36058         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME): Remove
36059         PROVIDE_CANONICALIZE_FILENAME_MODE macro definition.
36060         * lib/canonicalize.h: Test GNULIB_CANONICALIZE instead of
36061         PROVIDE_CANONICALIZE_FILENAME_MODE.
36062         * modules/canonicalize (configure.ac): Use gl_MODULE_INDICATOR.
36063
36064 2007-01-08  Bruno Haible  <bruno@clisp.org>
36065
36066         * m4/fts.m4 (gl_FUNC_FTS_LGPL): Remove _LGPL_PACKAGE macro definition.
36067         * lib/fts_.h (_LGPL_PACKAGE): Remove macro.
36068         Use !GNULIB_FTS instead of _LGPL_PACKAGE.
36069         * lib/fts.c: Likewise.
36070         * modules/fts (configure.ac): Use gl_MODULE_INDICATOR.
36071
36072 2006-12-25  Bruno Haible  <bruno@clisp.org>
36073
36074         * modules/utf8-ucs4-safe: New file.
36075         * lib/utf8-ucs4-safe.h: New file.
36076         * lib/unistr/utf8-ucs4-safe.c: New file.
36077
36078         * modules/utf16-ucs4-safe: New file.
36079         * lib/utf16-ucs4-safe.h: New file.
36080         * lib/unistr/utf16-ucs4-safe.c: New file.
36081
36082         * MODULES.html.sh (Unicode string functions): Add the new modules.
36083
36084 2007-01-08  Bruno Haible  <bruno@clisp.org>
36085
36086         * modules/utf8-ucs4 (Files, lib_SOURCES): Add unistr/utf8-ucs4.c.
36087         (Depends-on): Add unitypes.
36088         * lib/utf8-ucs4.h: Add double-inclusion guard. Include unitypes.h.
36089         (u8_mbtouc_aux): Move out to separate file.
36090         (u8_mbtouc): Use ucs4_t, uint8_t types.
36091         * lib/unistr/utf8-ucs4.c: New file.
36092
36093         * modules/utf16-ucs4 (Files, lib_SOURCES): Add unistr/utf16-ucs4.c.
36094         (Depends-on): Add unitypes.
36095         * lib/utf16-ucs4.h: Add double-inclusion guard. Include unitypes.h.
36096         (u16_mbtouc_aux): Move out to separate file.
36097         (u16_mbtouc): Use ucs4_t, uint16_t types.
36098         * lib/unistr/utf16-ucs4.c: New file.
36099
36100         * modules/ucs4-utf8 (Files, lib_SOURCES): Add unistr/ucs4-utf8.c.
36101         (Depends-on): Add unitypes.
36102         * lib/ucs4-utf8.h: Add double-inclusion guard. Include unitypes.h.
36103         (u8_uctomb_aux): Move out to separate file.
36104         (u8_uctomb): Use ucs4_t, uint8_t types.
36105         * lib/unistr/ucs4-utf8.c: New file.
36106
36107         * modules/ucs4-utf16 (Files, lib_SOURCES): Add unistr/ucs4-utf16.c.
36108         (Depends-on): Add unitypes.
36109         * lib/ucs4-utf16.h: Add double-inclusion guard. Include unitypes.h.
36110         (u16_uctomb_aux): Move out to separate file.
36111         (u16_uctomb): Use ucs4_t, uint16_t types.
36112         * lib/unistr/ucs4-utf16.c: New file.
36113
36114 2006-12-25  Bruno Haible  <bruno@clisp.org>
36115
36116         * modules/unitypes: New file.
36117         * lib/unitypes.h: New file.
36118         * MODULES.html.sh (func_all_modules): New section "Unicode string
36119         functions". Move ucs4-utf8, ucs4-utf16, utf8-ucs4, utf16-ucs4 to
36120         this section. Add unitypes.
36121
36122 2007-01-08  Bruno Haible  <bruno@clisp.org>
36123
36124         Avoid variable names that conflict with those from libtool.
36125         * m4/lib-link.m4 (AC_LIB_RPATH, AC_LIB_LINKFLAGS_BODY,
36126         AC_LIB_LINKFLAGS_FROM_LIBS): Rename libext to acl_libext,
36127         shlibext to acl_shlibext, libname_spec to acl_libname_spec,
36128         library_names_spec to acl_library_names_spec, hardcode_* to
36129         acl_hardcode_*.
36130         Reported by Ralf Wildenhues.
36131
36132 2007-01-08  Bruno Haible  <bruno@clisp.org>
36133
36134         * m4/gc-arcfour.m4 (gl_GC_ARCFOUR): Remove GC_USE_ARCFOUR macro
36135         definition.
36136         * m4/gc-arctwo.m4 (gl_GC_ARCTWO): Remove GC_USE_ARCTWO macro
36137         definition.
36138         * m4/gc-des.m4 (gl_GC_DES): Remove GC_USE_DES macro definition.
36139         * m4/gc-hmac-md5.m4 (gl_GC_HMAC_MD5): Remove GC_USE_HMAC_MD5 macro
36140         definition.
36141         * m4/gc-hmac-sha1.m4 (gl_GC_HMAC_SHA1): Remove GC_USE_HMAC_SHA1 macro
36142         definition.
36143         * m4/gc-md2.m4 (gl_GC_MD2): Remove GC_USE_MD2 macro definition.
36144         * m4/gc-md4.m4 (gl_GC_MD4): Remove GC_USE_MD4 macro definition.
36145         * m4/gc-md5.m4 (gl_GC_MD5): Remove GC_USE_MD5 macro definition.
36146         * m4/gc-random.m4 (gl_GC_RANDOM): Remove GC_USE_RANDOM macro
36147         definition.
36148         * m4/gc-rijndael.m4 (gl_GC_RIJNDAEL): Remove GC_USE_RIJNDAEL macro
36149         definition.
36150         * m4/gc-sha1.m4 (gl_GC_SHA1): Remove GC_USE_SHA1 macro definition.
36151         * lib/gc-gnulib.c: Use GNULIB_GC_<algorithm> instead of
36152         GC_USE_<algorithm>.
36153         * lib/gc-libgcrypt.c: Likewise.
36154         * modules/gc-arcfour (configure.ac): Use gl_MODULE_INDICATOR.
36155         * modules/gc-arctwo (configure.ac): Likewise.
36156         * modules/gc-des (configure.ac): Likewise.
36157         * modules/gc-hmac-md5 (configure.ac): Likewise.
36158         * modules/gc-hmac-sha1 (configure.ac): Likewise.
36159         * modules/gc-md2 (configure.ac): Likewise.
36160         * modules/gc-md4 (configure.ac): Likewise.
36161         * modules/gc-md5 (configure.ac): Likewise.
36162         * modules/gc-random (configure.ac): Likewise.
36163         * modules/gc-rijndael (configure.ac): Likewise.
36164         * modules/gc-sha1 (configure.ac): Likewise.
36165
36166 2007-01-08  Bruno Haible  <bruno@clisp.org>
36167
36168         * m4/close-stream.m4 (gl_CLOSE_STREAM): Remove GNULIB_CLOSE_STREAM
36169         macro definition.
36170         * m4/fcntl-safer.m4 (gl_FCNTL_SAFER): Remove GNULIB_FCNTL_SAFER macro
36171         definition.
36172         * m4/stdio-safer.m4 (gl_FOPEN_SAFER): Remove GNULIB_FOPEN_SAFER macro
36173         definition.
36174         * modules/close-stream (configure.ac): Invoke gl_MODULE_INDICATOR.
36175         * modules/fcntl-safer (configure.ac): Likewise.
36176         * modules/fopen-safer (configure.ac): Likewise.
36177         * modules/fwriteerror (configure.ac): Likewise. Remove explicit
36178         GNULIB_FWRITEERROR macro definition.
36179
36180 2007-01-08  Bruno Haible  <bruno@clisp.org>
36181
36182         * m4/gnulib-common.m4: New file.
36183         * gnulib-tool (func_get_autoconf_snippet): Undo last change.
36184         (func_get_filelist): Add m4/gnulib-common.m4.
36185
36186 2007-01-08  Bruno Haible  <bruno@clisp.org>
36187
36188         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): Simplify the sorting
36189         command.
36190
36191 2007-01-08  Jim Meyering  <jim@meyering.net>
36192
36193         Use a more robust test for a "can't happen" condition.
36194         * lib/fts.c (fts_read): Revert the change of 2006-11-22, since it
36195         narrowed the st_size value.  Presuming the "can't happen" condition
36196         is true, that narrowing could conceivably convert an invalid st_size
36197         value into a valid one.  Instead, use a change based on Matthew
36198         Woehlke's original patch.
36199
36200         Slight readability improvement: use an assert-like macro
36201         in place of literal "abort ()" uses.
36202         * lib/fts.c (fts_assert): Define.
36203         (fts_set_stat_required, cwd_advance_fd, fts_read, fd_ring_check):
36204         Use this macro instead of a bare 'abort'.
36205
36206 2007-01-05  Paul Eggert  <eggert@cs.ucla.edu>
36207
36208         Don't worry about using IRIX 5.3's wctype.h broken definitions;
36209         simply work around them.
36210         * lib/wctype_.h: Remove test for HAVE_WCTYPE_CTMP_BUG.
36211         (iswalnum, iswalpha, iswblank, iswcntrl, iswdigit, iswgraph, iswlower):
36212         (iswprint, iswpunct, iswspace, iswupper, iswxdigit): Undef before
36213         declaring.
36214         Don't bother to define as macros, since the standard doesn't require it.
36215         * m4/wctype.m4 (WCTYPE_H, ABSOLUTE_WCTYPE_H): Simplify, since we no
36216         longer worry about IRIX 5.3.
36217         (HAVE_WCTYPE_CTMP_BUG): Remove.
36218
36219 2007-01-04  Paul Eggert  <eggert@cs.ucla.edu>
36220
36221         * lib/wctype_.h (_ctmp_) [HAVE_WCTYPE_CTMP_BUG]: Now of type wchar_t,
36222         not wint_t.  Also, include <ctype.h>, to fix another IRIX bug.
36223         * m4/wctype.m4 (gl_WCTYPE_H): Likewise.
36224         Problems reported by Georg Schwarz for IRIX 5.3.
36225
36226         * gnulib-tool (autoconf_minversion): Take the maximum version number
36227         found, not the minimum.  Problem reported by James Youngman.
36228
36229 2007-01-03  Karl Berry  <karl@gnu.org>
36230
36231         * doc/error.texi: new file, explaining interaction with progname.
36232         * doc/gnulib.texi: include it.  Update copyright.
36233
36234 2007-01-03  Simon Josefsson  <simon@josefsson.org>
36235
36236         * gnulib-tool (func_create_testdir): Run AC_CANONICAL_BUILD and
36237         AC_CANONICAL_HOST, to improve autobuild outputs.
36238
36239 2007-01-03  Paolo Bonzini  <bonzini@gnu.org>
36240             Yoann Vandoorselaere <yoann.v@prelude-ids.com>
36241
36242         * lib/poll.c (poll): Use recv on Mac OS X to distinguish connected
36243         sockets, server sockets, and other file descriptors.  Count errors
36244         to compute the return value.  Reorder the code a bit to be easier
36245         to follow.  Don't set event bits that were not requested (except
36246         POLLERR and POLLHUP).
36247
36248 2007-01-01  Bruno Haible  <bruno@clisp.org>
36249
36250         * modules/lchmod (Include): Require lchmod.h, not lchown.h.
36251
36252 2007-01-03  Jim Meyering  <jim@meyering.net>
36253
36254         * modules/fts-lgpl (Depends-on): Add i-ring.  Reported by Bruno Haible.
36255
36256 2007-01-02  Bruno Haible  <bruno@clisp.org>
36257
36258         * modules/settime (Include): Require timespec.h.
36259         * modules/nanosleep (Include): Likewise.
36260
36261 2007-01-01  Bruno Haible  <bruno@clisp.org>
36262
36263         * gnulib-tool (func_emit_copyright_notice): Bump year.
36264         (func_get_autoconf_snippet): Emit a GNULIB_<modulename> macro.
36265
36266 2007-01-01  Bruno Haible  <bruno@clisp.org>
36267
36268         Improve support for OpenBSD.
36269         * build-aux/config.rpath (libname_spec): Export.
36270         (library_names_spec): New variable. Export.
36271         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): Extract libname_spec and
36272         library_names_spec from the config.rpath output. Locate shared library
36273         through the name pattern in library_names_spec.
36274
36275 2007-01-01  Eric Blake  <ebb9@byu.net>
36276
36277         * lib/version-etc.c (COPYRIGHT_YEAR): Bump for new year.
36278
36279 2006-12-30  Paul Eggert  <eggert@cs.ucla.edu>
36280
36281         * gnulib-tool (SORT): Remove, since we no longer assume GNU sort.
36282         Rewrite so as not to assume GNU sort or "tail -1".  Also, don't
36283         assume the C locale, and avoid an "eval" that could cause trouble.
36284         Problem with SORT reported by Bob Proulx.
36285
36286         * lib/getpagesize.h (getpagesize) [defined __amigaos4__]:
36287         Define.  Trivial patch from Henning Nielsen Lund, originally
36288         sent to bug-grep@gnu.org today.
36289
36290 2006-12-29  Paul Eggert  <eggert@cs.ucla.edu>
36291
36292         * lib/acl.h: Include sys/types.h and sys/stat.h, for mode_t and
36293         struct stat.  Problem reported by Henning Nielsen Lund.
36294         * lib/acl.c: Include acl.h first, to check interface.  Don't
36295         bother to include sys/types.h and sys/stat.h again.
36296
36297 2006-12-28  Paul Eggert  <eggert@cs.ucla.edu>
36298
36299         Import the following change from libc; problem reported by
36300         Sven Verdoolaege.
36301
36302         2005-10-13  Ulrich Drepper  <drepper@redhat.com>
36303
36304         [BZ #1373]
36305         * lib/argp.h: Remove __NTH for __argp_usage inline function.
36306
36307 2006-12-28  Jim Meyering  <jim@meyering.net>
36308
36309         * build-aux/announce-gen: Do not assume that the package
36310         builds any of tar.gz, tar.bz2, and .xdelta files.
36311         Suggestion from Simon Josefsson.
36312
36313 2006-12-28  Simon Josefsson  <simon@josefsson.org>
36314
36315         * modules/announce-gen: New file.
36316
36317 2006-12-27  Paul Eggert  <eggert@cs.ucla.edu>
36318
36319         * lib/mbchar.h: Just include <wctype.h>; the wctype module
36320         handles its gotchas now.
36321         * lib/mbswidth.c: Likewise.
36322         * lib/wcwidth.h: Likewise.
36323         * m4/mbchar.m4 (gl_MBCHAR): Don't bother checking for wctype.h
36324         and iswcntrl; the wctype module does this stuff now.
36325         * m4/mbswidth.m4 (gl_MBSWIDTH): Likewise.
36326         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Likewise.
36327         * modules/mbchar (Depends-on): Add wctype.
36328         * modules/mbswidth (Depends-on): Likewise.
36329         * modules/wcwidth (Depends-on): Likewise.
36330
36331 2006-12-27  Eric Blake  <ebb9@byu.net>
36332
36333         * lib/fnmatch.c: Reinstate inclusion of <wchar.h>, since this
36334         module uses more than what <wctype.h> is required to provide.
36335
36336 2006-12-26  Eric Blake  <ebb9@byu.net>
36337
36338         * gnulib-tool (sed_extract_prog): Avoid space-tab.
36339
36340 2006-12-26  Eric Blake  <ebb9@byu.net>
36341
36342         * modules/absolute-header: New module.
36343         * modules/fcntl (Depends-on): Depend on it.
36344         * modules/inttypes (Depends-on): Likewise.
36345         * modules/stdint (Depends-on): Likewise.
36346         * modules/sys_stat (Depends-on): Likewise.
36347         * modules/wctype (Depends-on): Likewise.
36348         * MODULES.html.sh (Support for building libraries and
36349         executables): Document it.
36350
36351 2006-12-25  Paul Eggert  <eggert@cs.ucla.edu>
36352
36353         * gnulib-tool (SED): Remove, undoing previous change.
36354         The problem was that it broke coreutils on Solaris, because
36355         "sed --posix" leaked into a makefile.
36356         (sed): New alias, if 'alias' and GNU sed.
36357
36358 2006-12-24  Jim Meyering  <jim@meyering.net>
36359
36360         Work around an fchownat bug in glibc-2.4:
36361         http://lists.ubuntu.com/archives/ubuntu-users/2006-September/093218.html
36362         This bug would cause "chown -RP ... DIR" to follow symlinks in DIR,
36363         in spite of the -P option.
36364         * m4/openat.m4 (gl_FUNC_FCHOWNAT, gl_FUNC_FCHOWNAT_DEREF_BUG):
36365         New macros.
36366         (gl_PREREQ_OPENAT): Require gl_FUNC_FCHOWNAT.
36367         * modules/openat (Files): Add lib/fchownat.c.
36368         * lib/openat.c (fchownat): Don't define here.  Move to...
36369         * lib/fchownat.c: ...this new file.
36370
36371 2006-12-23  Paul Eggert  <eggert@cs.ucla.edu>
36372
36373         Fix bug reported by Bruno Haible in
36374         <http://lists.gnu.org/archive/html/bug-gnulib/2006-12/msg00228.html>
36375         where quotearg.c didn't compile on Mac OS X 10.2 because it
36376         lacks <wchar.h> and wint_t.
36377         * lib/wctype_.h (__wctype_wint_t): New type.
36378         Include <stdio.h>, <time.h>, <wchar.h> only if HAVE_WINT_T.
36379         (iswalnum, iswalpha, iswblank, iswcntrl, iswdigit, iswgraph):
36380         (iswlower, iswprint, iswpunct, iswspace, iswupper, ixwxdigit):
36381         Arg is now of type __wctype_wint_t, not wint_t.
36382         * m4/wctype.m4 (gl_WCTYPE_H): Require gt_TYPE_WINT_T, and
36383         substitute HAVE_WINT_T.
36384         * modules/wctype (Files): Add m4/wint_t.m4.
36385         (wctype.h): Substitute HAVE_WINT_T.
36386
36387 2006-12-23  Bruno Haible  <bruno@clisp.org>
36388
36389         * lib/safe-read.h [C++]: Wrap declarations in extern "C".
36390
36391 2006-12-23  Bruno Haible  <bruno@clisp.org>
36392
36393         * lib/canonicalize-lgpl.c (__realpath): Test HAVE_READLINK instead of
36394         S_ISLNK.
36395         Needed because gnulib's sys/stat.h replacement defines S_ISLNK on
36396         mingw.
36397
36398 2006-12-22  Bruno Haible  <bruno@clisp.org>
36399
36400         * lib/copy-file.c: Include acl.h.
36401         (copy_file_preserving) [USE_ACL]: Use copy_acl instead of chmod.
36402         Close the file descriptors only after being done with copy_acl.
36403         * modules/copy-file (Depends-on): Add acl.
36404
36405 2006-12-22  Bruno Haible  <bruno@clisp.org>
36406
36407         * gnulib-tool (SED): New variable.
36408         Use $SED instead of sed everywhere.
36409
36410 2006-12-22  Bruno Haible  <bruno@clisp.org>
36411
36412         * modules/no-c++: New file.
36413         * m4/no-c++.m4: New file.
36414         * MODULES.html.sh (Support for building libraries and executables):
36415         Add no-c++.
36416
36417 2006-12-22  Paul Eggert  <eggert@cs.ucla.edu>
36418
36419         * m4/mktime.m4 (AC_FUNC_MKTIME): Sync from Autoconf.
36420         Include <limits.h>, and use its INT_MAX to rewrite the
36421         j loop so that it does not overflow 'int'.  Problem reported by
36422         Ralf Wildenhues in
36423         <http://lists.gnu.org/archive/html/bug-gnulib/2006-12/msg00084.html>.
36424         Play it safe by shifting left by 1 rather than multiplying by 2,
36425         as GCC is less likely to optimize this away when the value
36426         is signed (when it assumes overflow leads to undefined behavior).
36427         Also, don't assume time_t uses two's complement.
36428
36429 2006-12-21  Paul Eggert  <eggert@cs.ucla.edu>
36430
36431         * MODULES.html.sh: New module wctype.
36432         * lib/wctype_.h, m4/wctype.m4, modules/wctype: New files.
36433         * lib/fnmatch.c: Don't bother to include <wchar.h> before
36434         <wctype.h>, since the new wctype module should fix this.
36435         * lib/quotearg.c: Include <wctype.h> unconditionally, since
36436         the wctype module should arrange for it.
36437         * lib/regex_internal.h: Likewise.
36438         * m4/quotearg.m4 (gl_QUOTEARG): Don't check for wctype.h or iswprint,
36439         since the wctype module should handle this now.
36440         * m4/regex.m4 (gl_PREREQ_REGEX): Don't check for wctype.h.
36441         * modules/fnmatch (Depends-on): Add wctype.
36442         * modules/quotearg (Depends-on): Likewise.
36443         * modules/regex (Depends-on): Likewise.
36444
36445 2006-12-19  Bruno Haible  <bruno@clisp.org>
36446
36447         * lib/strdup.h [C++]: Wrap definitions in extern "C".
36448         Suggested by Lorenzo Bettini <bettini@dsi.unifi.it>.
36449
36450 2006-12-19  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
36451
36452         * modules/savewd (Depends-on): Fix dependency on fcntl.
36453
36454 2006-12-18  Paul Eggert  <eggert@cs.ucla.edu>
36455
36456         * m4/stdint.m4 (gl_STDINT_H): Set STDINT_H to empty if stdint.h
36457         conforms to C99, rather than relying on the user's environment
36458         setting of STDINT_H.
36459
36460 2006-12-18  Paul Eggert  <eggert@cs.ucla.edu>
36461         and Eric Blake  <ebb9@byu.net>
36462
36463         * lib/dirname.h (DOUBLE_SLASH_IS_DISTINCT_ROOT): Default to 0, not 1.
36464         This is more consistent with the other defines here.
36465         * m4/double-slash-root.m4 (gl_DOUBLE_SLASH_ROOT):
36466         Port to z/OS.  Problem reported by Paul Gilmartin.
36467         Change local vars to use gl_ prefix rather than ac_.
36468         Don't define DOUBLE_SLASH_IS_DISTINCT_ROOT to 0, for consistency
36469         with other defines.
36470         * modules/double-slash-root: New module.
36471         * modules/dirname (Files): Remove m4/double-slash-root.m4.
36472         (Depends-on): Add double-slash-root.
36473         * MODULES.html.sh (File system functions): Mention new module.
36474
36475 2006-12-14  Paul Eggert  <eggert@cs.ucla.edu>
36476
36477         * lib/yesno.c [!ENABLE_NLS]: Don't include getline.h.
36478         (yesno) [!ENABLE_NLS]: Don't invoke getline or rpmatch.
36479         This is for the benefit of gzip, which doesn't do i18n.
36480
36481 2006-12-12  Jim Meyering  <jim@meyering.net>
36482
36483         * m4/acl.m4 (gl_ACL_GET_FILE): Fix logic error.
36484         Reported by Andreas Schwab <schwab@suse.de>.
36485
36486 2006-12-12  Bruno Haible  <bruno@clisp.org>
36487
36488         Merge these changes.
36489         2006-09-05  Bruno Haible  <bruno@clisp.org>
36490         * lib/iconvme.c (iconv_string): No need to save and restore errno when
36491         iconv_alloc succeeded.
36492         (iconv_alloc): Don't assume that malloc() or realloc(), when failing,
36493         sets errno to ENOMEM. (malloc on GNU/kFreeBSD doesn't.) No need to
36494         test for " && dest " at the end - dest is always != NULL there. Call
36495         iconv with 4xNULL arguments initially, to reset the state. Call iconv
36496         with 2xNULL arguments, also to flush the state storage. Handle the
36497         IRIX iconv behaviour. Realloc the final result, to throw away unused
36498         memory.
36499
36500 2006-12-11  Paul Eggert  <eggert@cs.ucla.edu>
36501
36502         * m4/openat.m4 (gl_FUNC_OPENAT): Don't compile mkdirat
36503         and fchmodat unconditionally, since glibc 2.4 has them.
36504         Problem reported by Arkadiusz Miskiewicz.
36505
36506 2006-12-10  Bruno Haible  <bruno@clisp.org>
36507
36508         * gnulib-tool (func_import): Show the include files only for those
36509         modules that are copied and specified.
36510         Reported by Karl Berry.
36511
36512 2006-12-08  Jim Meyering  <jim@meyering.net>
36513
36514         * build-aux/announce-gen ($VERSION): Don't use of $Revision...$.
36515         Instead, use Emacs' time-stamp write hook.  Note that the time is UTC.
36516
36517         * build-aux/announce-gen: Add two new options, both optional:
36518         --bootstrap-tools=TOOL_LIST
36519               a comma-separated list of tools, e.g.,
36520               autoconf,automake,bison,gnulib
36521         --gnulib-snapshot-date=DATE
36522               if gnulib is in the bootstrap tool list,
36523               then report this as the snapshot date.
36524               If not specified, use the current date/time.
36525               If you specify a date here, be sure it's UTC.
36526
36527 2006-12-05  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
36528
36529         * tests/test-argp-2.sh: Fix test to match actual output.
36530         (func_compare): Fix sed script to be portable.
36531
36532 2006-12-05  Paul Eggert  <eggert@cs.ucla.edu>
36533
36534         * lib/utimens.c (futimens) [HAVE_BUGGY_NFS_TIME_STAMPS]: Add a
36535         workaround for this case.  It is not autoconfigured now; offhand
36536         it's hard to see how to autoconfigure it.
36537
36538 2006-12-03  Paul Eggert  <eggert@cs.ucla.edu>
36539
36540         * lib/mkdir-p.c (make_dir_parents): Fix race condition when making
36541         a directory that is about to be chowned.  Such a directory's
36542         initial file permissions should permit the owner only and this
36543         should not be changed until after the chown, since the group and
36544         other bits would be incorrect if they granted permission before
36545         the chown.
36546
36547         Fix porting problem for iswctype reported by Georg Schwarz in:
36548         http://lists.gnu.org/archive/html/bug-coreutils/2006-12/msg00017.html
36549         * lib/fnmatch.c (WIDE_CHAR_SUPPORT): Require HAVE_ISWCTYPE, too.
36550         * lib/regex_internal.h (RE_ENABLE_I18N): Likewise.
36551         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Check for iswctype, too.
36552         * m4/regex.m4 (gl_PREREQ_REGEX): Likewise.
36553
36554 2006-12-03  Jim Meyering  <jim@meyering.net>
36555
36556         * lib/fts.c (fts_load): Don't set sp->fts_dev here, since
36557         p->fts_statp may not yet be defined.
36558         (fts_read): Instead, set it in the caller, once p->fts_statp is
36559         sure to be defined, and corresponds to a top-level directory.
36560         This bug made du -x fail.  Here's the coreutils test case:
36561         http://git.sv.gnu.org/gitweb/?p=coreutils.git;a=commit;h=ba45154d8e9f
36562         Reported by Mike Frysinger.
36563
36564 2006-12-01  Jim Meyering  <jim@meyering.net>
36565
36566         * modules/savewd (Depends-on): Add fcntl_h to avoid self-test
36567         build failure due to missing definition of HAVE_WORKING_O_NOFOLLOW.
36568         Reported by Simon Josefsson.
36569
36570 2006-11-30  Jim Meyering  <jim@meyering.net>
36571
36572         * m4/warning.m4: Use the all-permissive copyright notice
36573         recommended by RMS (rather than LGPL).
36574         * m4/vararrays.m4: Likewise.
36575         * m4/flexmember.m4: Likewise.
36576
36577 2006-11-29  Bruno Haible  <bruno@clisp.org>
36578
36579         * gnulib-tool (func_emit_lib_Makefile_am): Initialize also
36580         noinst_LIBRARIES. Augment noinst_LIBRARIES and noinst_LTLIBRARIES
36581         using +=.
36582         Reported by Simon Josefsson <simon@josefsson.org>.
36583
36584 2006-11-28  James Youngman <jay@gnu.org>
36585
36586         * README: Advise users that they might find the bug-gnulib@gnu.org
36587         and autotools-announce@gnu.org mailing lists useful.
36588
36589 2006-11-28  Bruno Haible  <bruno@clisp.org>
36590
36591         * m4/ptrdiff_max.m4: Remove file.
36592
36593 2006-11-21  Bruno Haible  <bruno@clisp.org>
36594
36595         * m4/eoverflow.m4 (gl_EOVERFLOW): Use AC_COMPUTE_INT instead of
36596         _AC_COMPUTE_INT.
36597         (AC_COMPUTE_INT): Add fallback definition for autoconf < 2.61.
36598         * m4/ptrdiff_max.m4 (gl_PTRDIFF_MAX): Use AC_COMPUTE_INT instead of
36599         _AC_COMPUTE_INT.
36600         (AC_COMPUTE_INT): Add fallback definition for autoconf < 2.61.
36601         * m4/size_max.m4 (gl_SIZE_MAX): Use AC_COMPUTE_INT instead of
36602         _AC_COMPUTE_INT.
36603         (AC_COMPUTE_INT): Add fallback definition for autoconf < 2.61.
36604
36605 2006-11-28  Jim Meyering  <jim@meyering.net>
36606
36607         * lib/regcomp.c (parse_branch): Rename local, exp->expr, to avoid
36608         warning from "gcc -Wshadow" about shadowing the builtin.
36609
36610 2006-11-27  Bruno Haible  <bruno@clisp.org>
36611
36612         * m4/stdint.m4 (gl_STDINT_BITSIZEOF): Use AC_COMPUTE_INT instead of
36613         _AC_COMPUTE_INT.
36614         (AC_COMPUTE_INT): Add fallback definition for autoconf < 2.61.
36615
36616 2006-11-27  Bruno Haible  <bruno@clisp.org>
36617             Paul Eggert  <eggert@cs.ucla.edu>
36618
36619         * lib/regex.h (__restrict_arr): Redo logic of #if, for clarity.
36620
36621 2006-11-26  Bruno Haible  <bruno@clisp.org>
36622
36623         * gnulib-tool (func_emit_lib_Makefile_am): Initialize also
36624         noinst_LTLIBRARIES.
36625
36626 2006-11-27  Paul Eggert  <eggert@cs.ucla.edu>
36627             Bruno Haible  <bruno@clisp.org>
36628
36629         * lib/gettext.h (_LIBGETTEXT_HAVE_VARIABLE_SIZE_ARRAYS): Define to 0
36630         if compiling with "gcc -ansi".
36631
36632 2006-11-26  Paul Eggert  <eggert@cs.ucla.edu>
36633
36634         Fix some incompatibilities with gcc -ansi -pedantic.
36635         * lib/regex.h (__restrict_arr): Don't use the [restrict] syntax
36636         if compiling pedantically with GCC, unless it's C99 or later.
36637         Don't trust sys/cdefs.h's definition of __restrict_arr, either, as
36638         it mishandles gcc -ansi -pedantic as well.
36639         * lib/regex_internal.h (re_token_t): Don't use enum bitfields
36640         if gcc -pedantic.
36641         * lib/regexec.c (check_node_accept_bytes): Don't use auto
36642         initializers for struct if -pedantic, unless it's C99 or later.
36643
36644 2006-11-25  Nix  <nix@esperi.org.uk>  (tiny change)
36645
36646         * m4/fcntl_h.m4 (gl_FCNTL_H): Test the atime, not the mtime.
36647         Don't close an fd more than once. Identical atimes indicate
36648         success, not failure.
36649
36650 2006-11-22  Robinson Mittmann <bob@hoplon.com>  (tiny change)
36651
36652         * lib/sincosl.c (kernel_sinl): Fix typo in threshold.
36653
36654 2006-11-23  Jim Meyering  <jim@meyering.net>
36655
36656         * build-aux/announce-gen: New file.  From coreutils.
36657
36658 2006-11-22  Jim Meyering  <jim@meyering.net>
36659
36660         Work around a compile-time error from the HP-UX 11.00 /bin/cc.
36661         * lib/fts.c (enum Fts_stat): Give this previously-anon enum a name.
36662         (fts_read): Use a temporary to narrow the overused st_size member
36663         before using it in a switch statement.  Reported by Matthew Woehlke.
36664
36665         * m4/clock_time.m4 (gl_CLOCK_TIME): Quote AC_SUBST argument.
36666         * m4/euidaccess.m4 (gl_PREREQ_EUIDACCESS): Likewise.
36667
36668 2006-11-20  Bruno Haible  <bruno@clisp.org>
36669
36670         * gettext.m4 (AM_GNU_GETTEXT): Revert 2005-07-28 patch: Use
36671         changequote instead of pairs of brackets.
36672         Reported by Andreas Schwab <schwab@suse.de>.
36673
36674 2006-11-21  Jim Meyering  <jim@meyering.net>
36675
36676         * lib/fts.c (fts_safe_changedir): Move a declaration "up",
36677         so as to remain compatible with older compilers.
36678         Patch from Michael Deutschmann.
36679
36680 2006-11-20  Paul Eggert  <eggert@cs.ucla.edu>
36681
36682         * MODULES.html.sh (File system functions): Add openat.
36683
36684         * lib/openat.h (rpl_fstatat): New macro, if
36685         [HAVE_OPENAT && ! LSTAT_FOLLOWS_SLASHED_SYMLINK.
36686         (fstatat): Define to rpl_fstatat under the same conditions,
36687         unless COMPILING_FSTATAT.
36688         * m4/openat.m4 (gl_FUNC_OPENAT): Compile fstatat.c too, if fstatat
36689         seems to have the bug.
36690         * lib/fstatat.c: New file.
36691         * modules/openat (Files): Add it.
36692
36693 2006-11-20  Bruno Haible  <bruno@clisp.org>
36694
36695         * Makefile: New file.
36696
36697 2006-11-20  Jim Meyering  <jim@meyering.net>
36698
36699         The beginnings of syntax-related checks for gnulib.
36700         * lib/Makefile: New file.
36701         * lib/t-idcache: New script.  Ensure that the two halves of
36702         idcache.c stay in sync.
36703
36704         * lib/idcache.c: Adjust comments in user- and group- portions to
36705         be more accurate, and to be consistent with one another.
36706
36707 2006-11-20  Jim Meyering  <jim@meyering.net>
36708
36709         * lib/idcache.c: Restore most of the 2006-11-06 patch, so as to
36710         continue using the flexible array member (thus, this module performs
36711         half as many malloc calls), with the addition that...
36712         (getgroup, getuser): Consistently record a non-match via an empty
36713         "name" string, and map an empty string match to a NULL return value.
36714         * modules/idcache (Depends-on): Re-add flexmember.
36715
36716         * lib/idcache.c (getuser): Remove all uses of the register keyword.
36717         (getuidbyname, getgroup, getgidbyname): Likewise.
36718
36719         Use cleaner syntax: NULL rather than 0.
36720         * lib/idcache.c (getuidbyname, getgidbyname): Return NULL, not 0.
36721
36722 2006-11-20  Paul Eggert  <eggert@cs.ucla.edu>
36723
36724         * lib/idcache.c: Undo most recent patch, dated 2006-11-06.
36725         It mishandled the case where the group was missing.
36726         Problem reported by Greg Schafer.
36727         * modules/idcache: Likewise.
36728
36729 2006-11-18  Jim Meyering  <jim@meyering.net>
36730
36731         * check-module (%exempt_header): Add exception for some
36732         conditionally-included headers.
36733
36734         * modules/i-ring (Depends-on): Add verify.
36735         (License): Change to LGPL.
36736
36737 2006-11-16  Paul Eggert  <eggert@cs.ucla.edu>
36738
36739         * modules/getaddinfo (Depends-on): Remove inttostr; add snprintf.
36740         * lib/getaddrinfo.c: Include snprintf.h rather than intprops.h
36741         and inttostr.h.  Use snprintf rather than uinttostr, so that
36742         LGPLed code doesn't depend on GPLed.
36743
36744 2006-11-17  Paul Eggert  <eggert@cs.ucla.edu>
36745
36746         * modules/inline (License): Change from GPL to LGPL.
36747
36748 2006-11-17  Jim Meyering  <jim@meyering.net>
36749
36750         * modules/d-type (License): Switch to LGPL.
36751
36752 2006-11-15  Bruno Haible  <bruno@clisp.org>
36753
36754         * m4/alloca.m4 (gl_FUNC_ALLOCA): Fix the AC_CACHE_CHECK message.
36755
36756 2006-11-15  Eric Blake  <ebb9@byu.net>
36757
36758         * m4/allocsa.m4 (gl_ALLOCSA): Don't invoke macro already picked up by
36759         the module dependency.
36760
36761 2006-11-15  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
36762             Bruno Haible  <bruno@clisp.org>
36763
36764         * gnulib-tool (func_create_testdir): Add license consistency check.
36765
36766 2006-11-15  Eric Blake  <ebb9@byu.net>
36767
36768         * m4/alloca.m4 (gl_FUNC_ALLOCA): Use AC_CACHE_CHECK to avoid a
36769         random "(cached)" in configure output.
36770
36771 2006-11-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
36772
36773         * m4/inttypes.m4 (gl_INTTYPES_H): Use AC_CACHE_CHECK so that the
36774         test for conforming inttypes.h is both announced and cached.
36775
36776         * MODULES.html.sh (seen_modules, seen_files): New variables.
36777         (func_module): Rewrite to use a few less gnulib-tool and sed
36778         invocations.  Avoid a couple of quadratic algorithms for ...
36779         (missed_modules, missed_files): ... these, with ...
36780         (func_append, func_tmpdir): ... these new functions, from
36781         gnulib-tool.  Analogously, install traps for cleanup.
36782
36783         * tests/test-gc.c (main): Remove unused variables.
36784         * tests/test-read-file.c: Include stdlib.h, for 'free'.
36785
36786 2006-11-14  Paul Eggert  <eggert@cs.ucla.edu>
36787
36788         * modules/inttostr (License): Change to LGPL.
36789
36790 2006-11-14  Eric Blake  <ebb9@byu.net>
36791
36792         * modules/tempname (License): Change to LGPL.
36793
36794 2006-11-14  Eric Blake  <ebb9@byu.net>
36795
36796         * doc/functions.texi (Function Portability): *printf functions on
36797         Cygwin now understand all POSIX size specifiers.
36798
36799 2006-11-14  Bruno Haible  <bruno@clisp.org>
36800
36801         * modules/c-ctype (License): Change to LGPL.
36802
36803 2006-11-12  Bruno Haible  <bruno@clisp.org>
36804
36805         * m4/lib-link.m4 (AC_LIB_LINKFLAGS, AC_LIB_HAVE_LINKFLAGS,
36806         AC_LIB_LINKFLAGS_BODY): Also set a LIB${NAME}_PREFIX variable. Needed
36807         for GNOME libraries, for which the include files are installed in
36808         subdirectories of $prefix/include.
36809
36810 2006-11-12  Bruno Haible  <bruno@clisp.org>
36811
36812         * m4/lib-link.m4: Require at least autoconf-2.54.
36813         (AC_LIB_LINKFLAGS_BODY) [autoconf < 2.61]: Turn dots into the library
36814         name to underscores for the --with option.
36815
36816 2006-11-13  Bruno Haible  <bruno@clisp.org>
36817
36818         * gnulib-tool (func_create_testdir): Set gl_source_base correctly in
36819         the tests directory.
36820         Reported by Ralf Wildenhues.
36821
36822 2006-11-13  Bruno Haible  <bruno@clisp.org>
36823
36824         * gnulib-tool (func_emit_initmacro_start): Also override AC_LIBSOURCES.
36825         (func_emit_initmacro_end): Undo the override here.
36826         (func_emit_initmacro_done): Emit a definition for gl_LIBSOURCES.
36827         Works around the famous automake error in coreutils.
36828
36829 2006-11-13  Eric Blake  <ebb9@byu.net>
36830
36831         * lib/gl_anytree_oset.h (gl_tree_search_atleast): Return the
36832         element, not its node.
36833
36834 2006-11-12  Bruno Haible  <bruno@clisp.org>
36835
36836         * gnulib-tool (func_emit_lib_Makefile_am): Replace occurrences of
36837         '$(top_srcdir)/build-aux/', taking into account the real auxdir.
36838
36839 2006-11-12  Bruno Haible  <bruno@clisp.org>
36840
36841         * gnulib-tool: New option --local-symlink.
36842         (func_usage): Document it.
36843         (lsymbolic): New variable.
36844         (func_import, func_create_testdir): If --symlink was not specified,
36845         test whether --local-symlink was specified and the file comes from
36846         the local_gnulib_dir.
36847
36848 2006-11-12  Bruno Haible  <bruno@clisp.org>
36849
36850         * gnulib-tool (func_ln): New function.
36851         (func_ln_if_changed, func_create_testdir): Use it instead of "ln -s".
36852
36853 2006-11-12  Bruno Haible  <bruno@clisp.org>
36854
36855         Finish support for source files in subdirectories.
36856         * gnulib-tool (func_emit_lib_Makefile_am): If some of the source files
36857         are in subdirectories, set uses_subdirs and add 'subdir-objects' to
36858         AUTOMAKE_OPTIONS.
36859         (func_import, func_create_testdir): Invoke AM_PROG_CC_C_O in this case.
36860
36861 2006-11-12  Bruno Haible  <bruno@clisp.org>
36862
36863         * gnulib-tool (func_get_automake_snippet): Synthesize also an
36864         EXTRA_lib_SOURCES augmentation.
36865         (func_emit_lib_Makefile_am): Initialize EXTRA_lib..._SOURCES to empty.
36866
36867 2006-11-12  Jim Meyering  <jim@meyering.net>
36868
36869         Make fts (in FTS_CWDFD mode) more efficient by caching a few open
36870         file descriptors.  This also averts a failure on systems with
36871         native openat support when a traversed directory lacks "x" access.
36872         * lib/fts_.h: Include "i-ring.h"
36873         (struct FTS) [fts_fd_ring]: New member.
36874         * lib/fts.c (RESTORE_INITIAL_CWD): Also call fd_ring_clear.
36875         (FCHDIR): Add parentheses.
36876         (fd_ring_check, fd_ring_print) [!FTS_DEBUG]: Define away.
36877         (cwd_advance_fd): Add a 3rd parameter.  Adjust all callers.
36878         When descending, rather than simply closing the previous
36879         fts_cwd_fd value, push that file descriptor onto the ring.
36880         (same_fd, fd_ring_print, fd_ring_check) [FTS_DEBUG]: New functions.
36881         (fts_open): Initialize the new fd_ring member.
36882         (fts_close): Clear the ring.
36883         (fts_safe_changedir): When possible, use our new fd_ring to skip
36884         the diropen and fstat and dev/ino comparison that would normally
36885         accompany a virtual `chdir ("..")'.
36886
36887         * modules/fts (Depends-on): Add i-ring.
36888         * modules/i-ring: New module.
36889         * lib/i-ring.c, lib/i-ring.h, lib/i-ring-test.c: New files.
36890         * m4/i-ring.m4: New file.
36891
36892 2006-11-12  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
36893
36894         * gnulib-tool (func_create_testdir): Fix replacement of
36895         `build-aux' in configure.ac.  Run autotools in gltests
36896         subdirectory.
36897         (func_create_testdir, func_create_megatestdir, test): There is
36898         no need for '--force' in most autotool invocations in a new
36899         tree.  Actually fail the whole test if any of the tools, or the
36900         configure or make stages fail.
36901
36902         Sync from Automake.
36903         * build-aux/gnupload: Revert last change.  Add pointer to upload
36904         instructions of the GNU Maintenance Instructions.
36905         Suggestion by Karl Berry.
36906
36907 2006-11-10  Jim Meyering  <jim@meyering.net>
36908
36909         * lib/fts.c [FTS_DEBUG]: Don't try to print a pointer via %s.
36910
36911 2006-11-09  Paul Eggert  <eggert@cs.ucla.edu>
36912
36913         * lib/gettext.h (dgettext, dcgettext, ngettext) [! ENABLE_NLS]:
36914         (dngettext, dcngettext, bindtextdomain) [! ENABLE_NLS]:
36915         (bind_textdomain_codeset) [! ENABLE_NLS]:
36916         Evaluate all the arguments.  That way, callers get compatible behavior
36917         if the arguments have side effects.  Also, it avoids some GCC
36918         diagnostics in some cases; Joel E. Denny reported problems when Bison
36919         was configured with --enable-gcc-warnigs.
36920
36921 2006-11-10  Jim Meyering  <jim@meyering.net>
36922
36923         * m4/inline.m4 (gl_INLINE): Check with the compiler, not cpp, so that
36924         relevant options in CFLAGS (like -O, -fno-inline) are taken into
36925         account.
36926
36927 2006-11-10  Jim Meyering  <jim@meyering.net>
36928
36929         * modules/inline: New file/module.
36930         * modules/xalloc (Files): Remove m4/inline.m4.
36931         (Depends-on): Add inline, instead.
36932         * modules/oset: Likewise.
36933         * modules/list: Likewise.
36934
36935 2006-11-09  Paul Eggert  <eggert@cs.ucla.edu>
36936
36937         * lib/stdint_.h (uintmax_t): Fix typo: int64_t -> uint64_t.
36938         Problem reported by Matthew Woehlke.
36939
36940 2006-11-09  Bruno Haible  <bruno@clisp.org>
36941
36942         * lib/tempname.c (gen_tempname): Remove variant that invokes
36943         __gen_tempname.
36944         * m4/tempname.m4 (gl_FUNC_GEN_TEMPNAME): Don't test for
36945         __gen_tempname.
36946
36947 2006-11-08  Bruno Haible  <bruno@clisp.org>
36948
36949         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Set ac_cv_type_long_long_int
36950         to 'yes' instead of 'cross-compiling'.
36951
36952 2006-11-08  Paul Eggert  <eggert@cs.ucla.edu>
36953
36954         * lib/quotearg.h (quotearg_free): New decl.
36955         * lib/quotearg.c (quotearg_free): New function.
36956         (slot0, nslots, slotvec0, slotvec):
36957         Now file-scope so that quotearg_free can get at them.
36958
36959 2006-11-08  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
36960
36961         Sync from Automake.
36962         * build-aux/gnupload: Add missing 'gnu' to example URL.
36963         Report by Karl Berry.
36964
36965 2006-11-08  Bruno Haible  <bruno@clisp.org>
36966
36967         * m4/inline.m4 (gl_INLINE): Also test __NO_INLINE__.
36968         Suggested by Paul Eggert.
36969
36970 2006-11-08  Jim Meyering  <jim@meyering.net>
36971
36972         * lib/fts.c [!_LGPL_PACKAGE]: Don't include fcntl--.h twice.
36973         It's already included if !_LIBC.
36974         (fts_safe_changedir): Add a comment.
36975
36976 2006-11-07  Paul Eggert  <eggert@cs.ucla.edu>
36977
36978         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Detect bug in
36979         Tandem NonStop Kernel (OSS) cc -O circa 2004, reported by
36980         Matthew Woehlke.
36981
36982         * lib/xalloc.h (XMALLOC, XNMALLOC, XZALLOC, XCALLOC): Move
36983         definitions up, to avoid colliding with change below.
36984         (static_inline) [HAVE_INLINE]: New macro.
36985         (xnmalloc, xnrealloc, x2nrealloc, xcharalloc):
36986         Provide extern decls when !HAVE_INLINE.  Do not define unless
36987         static_inline is defined, either by us or by xmalloc.c.  Use
36988         static_inline rather than static inline.
36989         (XCALLOC): Optimize sizeof(T) = 1 case.
36990         * lib/xmalloc.c (static_inline) [!HAVE_INLINE]: New macro.
36991
36992 2006-11-07  Bruno Haible  <bruno@clisp.org>
36993
36994         * lib/xalloc.h (XNMALLOC): Restore optimization of sizeof(T) = 1 case.
36995         * m4/xalloc.m4 (gl_PREREQ_XALLOC): Require gl_INLINE instead of
36996         AC_C_INLINE.
36997         * modules/xalloc (Files): Add m4/inline.m4.
36998
36999 2006-11-07  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
37000
37001         * README: Fix typo.
37002         * doc/gnulib.texi (Miscellaneous Notes): Likewise, rename...
37003         (Miscellanous Notes): ...from this.
37004
37005 2006-11-07  Paul Eggert  <eggert@cs.ucla.edu>
37006
37007         * m4/flexmember.m4 (AC_C_FLEXIBLE_ARRAY_MEMBER):
37008         Mention that offsetof should be used instead of sizeof.
37009         From Bruno Haible.
37010
37011 2006-11-07  Bruno Haible  <bruno@clisp.org>
37012
37013         * lib/w32spawn.h (prepare_spawn): Use XNMALLOC instead of xmalloc.
37014
37015 2006-11-06  Paul Eggert  <eggert@cs.ucla.edu>
37016
37017         Simplify xmalloc expressions. Add overflow check in xmalloc arguments.
37018         * lib/gl_anyavltree_list2.h (create_subtree_with_contents):
37019         (gl_tree_create, gl_tree_add_first, gl_tree_add_last):
37020         (gl_tree_add_before, gl_tree_add_after):
37021         Use XMALLOC instead of xmalloc, and XCALLOC instead of xzalloc.
37022         * lib/gl_anyhash_list2.h (hash_resize): Likewise.
37023         * lib/gl_anylinked_list2.h (gl_linked_create_empty, gl_linked_create):
37024         (gl_linked_add_first, gl_linked_add_last, gl_linked_add_before):
37025         (gl_linked_add_after, gl_linked_add_at): Likewise.
37026         * lib/gl_anyrbtree_list2.h (create_subtree_with_contents):
37027         (gl_tree_create, gl_tree_add_first, gl_tree_add_last):
37028         (gl_tree_add_before, gl_tree_add_after): Likewise.
37029         * lib/gl_anytree_list2.h (gl_tree_create_empty): Likewise.
37030         * lib/gl_anytree_oset.h (gl_tree_create_empty): Likewise.
37031         * lib/gl_anytreehash_list1.h (add_to_bucket): Likewise.
37032
37033 2006-11-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
37034
37035         * lib/gl_oset.h: Use C comment style, not C++ comment style.
37036
37037 2006-11-06  Bruno Haible  <bruno@clisp.org>
37038
37039         * m4/inline.m4: New file.
37040         * m4/gl_list.m4 (gl_LIST): Require gl_INLINE.
37041         * modules/list (Files): Add m4/inline.m4.
37042         * modules/oset (Files): Likewise.
37043
37044 2006-11-06  Paul Eggert  <eggert@cs.ucla.edu>
37045
37046         * lib/idcache.c: Include <stddef.h>, for offsetof.
37047         (struct userid.name): Change from char * to a flexible array member.
37048         All uses changed.
37049         * modules/idcache (Depends-on): Add flexmember.
37050
37051         * MODULES.html.sh (Core language properties): New module flexmember.
37052         * modules/flexmember, m4/flexmember.m4: New files.
37053
37054         * lib/xalloc.h (xnmalloc, xnrealloc, x2nrealloc): Now static
37055         inline functions that are identical with the old xnmalloc_inline,
37056         xnrealloc_inline, x2nrealloc_inline of lib/xmalloc.c.  This is so
37057         that we can avoid some unnecessary integer multiplications and
37058         divisions in the common case where the element size is known at
37059         compile time.
37060         (XNMALLOC) [HAVE_INLINE]: Remove special case, which is no longer
37061         needed.
37062         (xnboundedmalloc): Remove.
37063         (XMALLOC, XNMALLOC, XZALLOC, XCALLOC): Use lower-case letters for
37064         arguments, for consistency with rest of this header.
37065         (xcharalloc): Rewrite using XNMALLOC.
37066         * lib/xmalloc.c (xnmalloc_inline, xnmalloc, xnrealloc_inline):
37067         (xnrealloc, x2nrealloc_inline, x2nrealloc): Remove.  The *_inline
37068         versions have been moved to lib/xalloc.h and renamed to be the
37069         non-*_inline versions.
37070         (xmalloc, xrealloc): Implement without reference to the xnmalloc
37071         and xnrealloc functions, since those functions are now inline and
37072         now call us.
37073         (x2realloc): Invoke x2realloc, not x2realloc_inline, to accommodate
37074         renaming described above.
37075         * m4/xalloc.m4 (gl_PREREQ_XMALLOC): Remove AC_C_INLINE since
37076         xmalloc.c no longer uses inline directly.  gl_PREREQ_XALLOC now
37077         captures the dependency in AC_C_INLINE.
37078
37079         New module canonicalize-lgpl, proposed by Charles Wilson in
37080         <http://lists.gnu.org/archive/html/bug-gnulib/2006-11/msg00020.html>
37081         with a few small changes afterwards.
37082         * MODULES.html.sh (File system functions): New module
37083         canonicalize-lgpl.
37084         * lib/canonicalize.h: Add comments for canonicalize_filename_mode
37085         and canonicalize_file_name.
37086         * lib/canonicalize-lgpl.c, m4/canonicalize-lgpl.m4:
37087         * modules/canonicalize-lgpl: New files.
37088
37089 2006-11-05  Bruno Haible  <bruno@clisp.org>
37090
37091         * gnulib-tool (func_import, func_create_testdir): Create directories
37092         also for files in subdirectories of lib/.
37093
37094 2006-11-05  Bruno Haible  <bruno@clisp.org>
37095
37096         * lib/gl_array_list.c (gl_array_iterator_next): Make pointer decrement
37097         ANSI C compliant.
37098
37099 2006-11-03  Bruno Haible  <bruno@clisp.org>
37100
37101         Simplify xmalloc expressions. Add overflow check in xmalloc arguments.
37102         * m4/xalloc.m4 (gl_PREREQ_XALLOC): Require AC_C_INLINE.
37103         * lib/xalloc.h (XMALLOC, XNMALLOC, XZALLOC, XCALLOC): New macros.
37104         (xnboundedmalloc): New inline function.
37105         * lib/classpath.c (new_classpath): Use XNMALLOC instead of xmalloc.
37106         * lib/clean-temp.c (create_temp_dir): Use XNMALLOC, XMALLOC instead of
37107         xmalloc.
37108         * lib/concatpath.c (concatenated_pathname): Use XNMALLOC instead of
37109         xmalloc.
37110         * lib/fatal-signal.c (at_fatal_signal): Use XNMALLOC instead of xmalloc.
37111         * lib/findprog.c (find_in_path): Use XNMALLOC instead of xmalloc.
37112         * lib/gl_array_list.c (gl_array_create_empty): Use XMALLOC instead of
37113         xmalloc.
37114         (gl_array_create): Use XNMALLOC, XMALLOC instead of xmalloc.
37115         * lib/gl_array_oset.c (gl_array_create_empty): Use XNMALLOC instead of
37116         xmalloc.
37117         * lib/gl_avltree_oset.c (gl_tree_add_first, gl_tree_add_before,
37118         gl_tree_add_after): Use XMALLOC instead of xmalloc.
37119         * lib/gl_carray_list.c (gl_carray_create_empty): Use XMALLOC instead of
37120         xmalloc.
37121         (gl_carray_create): Use XNMALLOC, XMALLOC instead of xmalloc.
37122         * lib/gl_rbtree_oset.c (gl_tree_add_first, gl_tree_add_before,
37123         gl_tree_add_after): Use XMALLOC instead of xmalloc.
37124         * lib/gl_sublist.c (gl_sublist_create): Use XMALLOC instead of xmalloc.
37125         * lib/pagealign_alloc.c (new_memnode): Use XMALLOC instead of xmalloc.
37126         * lib/sh-quote.c (shell_quote_argv): Use XNMALLOC instead of xmalloc.
37127         * lib/xvasprintf.c (xstrcat): Use XNMALLOC instead of xmalloc.
37128
37129 2006-11-03  Bruno Haible  <bruno@clisp.org>
37130
37131         * lib/c-ctype.h [C++]: Define functions without name mangling.
37132         * lib/fwriteerror.h [C++]: Likewise.
37133         * lib/gcd.h [C++]: Likewise.
37134         * lib/linebreak.h [C++]: Likewise.
37135
37136 2006-11-03  Paul Eggert  <eggert@cs.ucla.edu>
37137
37138         * lib/canonicalize.h: (canonicalize_mode_t, CAN_EXISTING):
37139         (CAN_ALL_BUT_LAST, CAN_MISSING, canonicalize_filename_mode):
37140         Define only if PROVIDE_CANONICALIZE_FILENAME_MODE is defined.
37141         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME):
37142         Check for functions and headers just once.
37143         Check for declaration of canonicalize_file_name.
37144         Define PROVIDE_CANONICALIZE_FILENAME_MODE.
37145
37146 2006-11-02  Charles Wilson  <cygwin@cwilson.fastmail.fm>
37147
37148         * gnulib-tool (func_import): Fix typo in actioncmd.
37149
37150 2006-11-02  Bruno Haible  <bruno@clisp.org>
37151
37152         * gnulib-tool (func_get_automake_snippet): Interpret a backslash-
37153         newline sequence in the Makefile.am snippet as a space, like "make"
37154         does.
37155         Reported by Roger Persson <perrog@gmail.com>.
37156
37157 2006-11-01  Bruno Haible  <bruno@clisp.org>
37158
37159         * m4/strcase.m4 (gl_FUNC_STRNCASECMP): Check whether strncasecmp is
37160         already declared in <string.h>.
37161         * lib/strcase.h (strncasecmp): Don't declare it if yes.
37162
37163 2006-11-01  Bruno Haible  <bruno@clisp.org>
37164
37165         * m4/strcase.m4 (gl_FUNC_STRCASECMP): Don't define strcasecmp here.
37166         * lib/strcase.h: Include <string.h>.
37167         (strcasecmp): Define to rpl_strcasecmp here.
37168
37169 2006-11-01  Bruno Haible  <bruno@clisp.org>
37170
37171         * lib/printf-parse.c (PRINTF_PARSE): Cast malloc/realloc results.
37172
37173 2006-11-01  Eric Blake  <ebb9@byu.net>
37174
37175         * lib/mkstemp-safer.c (mkstemp_safer): Allow C++ compilation.
37176
37177         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Allow C++ configuration.
37178
37179 2006-10-29  Bruno Haible  <bruno@clisp.org>
37180
37181         Make it compile in C++ mode.
37182         * lib/full-write.c (full_rw): Add a cast.
37183
37184 2006-11-01  Bruno Haible  <bruno@clisp.org>
37185
37186         * gnulib-tool (func_get_automake_snippet): Change sed_combine_lines to
37187         be POSIX compliant.
37188         Reported by Roger Persson <perrog@gmail.com>.
37189
37190 2006-11-01  Eric Blake  <ebb9@byu.net>
37191
37192         * lib/getopt_.h: Fix comments.
37193
37194 2006-10-31  Eric Blake  <ebb9@byu.net>
37195
37196         * modules/tmpdir (Depends-on): Add sys_stat.
37197         * modules/mkdtemp (Depends-on): Add tempname, drop unistd.
37198         * lib/mkdtemp.c (gen_tempname): Remove; tempname covers this.
37199         * lib/tmpdir.c (S_ISDIR): Simplify, thanks to sys_stat.
37200         * m4/mkdtemp.m4 (gl_PREREQ_MKDTEMP): Simplify, thanks to
37201         tempname.
37202
37203 2006-10-31  Paul Eggert  <eggert@cs.ucla.edu>
37204
37205         Avoid some C++ diagnostics reported by Bruno Haible.
37206         * lib/quotearg.c (clone_quoting_options): Use xmemdup rather than
37207         xmalloc.
37208         (quotearg_alloc): Use xcharalloc rather than xmalloc.
37209         (struct slotvec): Move to top level.
37210         (quotearg_n_options): Rewrite to avoid xmalloc.
37211         * lib/xalloc.h (xcharalloc): New function.
37212         * (xrealloc, xnrealloc, x2realloc, x2nrealloc, xmemdup):
37213         [defined __cplusplus]: Add function template that provides result
37214         type propagation.  This part of the change is from Bruno Haible.
37215
37216 2006-10-29  Bruno Haible  <bruno@clisp.org>
37217
37218         Make it compile in C++ mode.
37219         * lib/striconv.c (mem_cd_iconv): Cast malloc/realloc result.
37220         * lib/strnlen1.c (strnlen1): Cast memchr result.
37221         * lib/mbchar.h (mb_copy): Rename arguments to 'new_mbc', 'old_mbc'.
37222         * lib/clean-temp.c (string_equals, string_hash): Add casts.
37223         (create_temp_dir): Rename local variable 'template'.
37224         (compile_csharp_using_sscli): Add cast.
37225         * lib/fatal-signal.c (at_fatal_signal): Cast xmalloc result.
37226         * lib/findprog.c (find_in_path): Likewise.
37227         * lib/linebreak.c (mbs_width_linebreaks): Cast malloc result.
37228         * lib/wait-process.c (register_slave_subprocess): Likewise.
37229
37230 2006-10-22  Bruno Haible  <bruno@clisp.org>
37231
37232         * modules/tsearch: New file.
37233         * lib/tsearch.h: New file.
37234         * lib/tsearch.c: New file, from glibc-2.5 with small modifications.
37235         * m4/tsearch.m4: New file.
37236         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add tsearch.
37237
37238 2006-10-29  Eric Blake  <ebb9@byu.net>
37239
37240         * lib/arcfour.c: Assume config.h.
37241         * lib/arctwo.c: Likewise.
37242         * lib/base64.c: Likewise.
37243         * lib/check-version.c: Likewise.
37244         * lib/crc.c: Likewise.
37245         * lib/des.c: Likewise.
37246         * lib/gc-gnulib.c: Likewise.
37247         * lib/gc-libgcrypt.c: Likewise.
37248         * lib/gc-pbkdf2-sha1.c: Likewise.
37249         * lib/getaddrinfo.c: Likewise.
37250         * lib/getdelim.c: Likewise.
37251         * lib/getline.c: Likewise.
37252         * lib/hmac-md5.c: Likewise.
37253         * lib/hmac-sha1.c: Likewise.
37254         * lib/iconvme.c: Likewise.
37255         * lib/md2.c: Likewise.
37256         * lib/md4.c: Likewise.
37257         * lib/memxor.c: Likewise.
37258         * lib/read-file.c: Likewise.
37259         * lib/readline.c: Likewise.
37260         * lib/rijndael-alg-fst.c: Likewise.
37261         * lib/rijndael-api-fst.c: Likewise.
37262         * lib/xgetdomainname.c: Likewise.
37263
37264 2006-10-28  Eric Blake  <ebb9@byu.net>
37265
37266         * lib/xstrndup.c: Assume config.h.
37267
37268 2006-10-27  Paul Eggert  <eggert@cs.ucla.edu>
37269
37270         Move stat.h-substitute stuff from lib/stat-macros.h to lib/stat_.h.
37271         stat-macros.h is now for our own macros, whereas stat_h is for
37272         macros in the <sys/stat.h> name space.
37273         * lib/stat-macros.h: Remove copyright notice, as this file is now tiny.
37274         (STAT_MACROS_H): Remove.
37275         (S_IFMT, S_ISBLK, S_ISCHR, S_ISDIR, S_ISFIFO, S_ISLNK, S_ISNAM):
37276         (S_ISMPB, S_ISMPC, S_ISNWK, S_ISREG, S_ISSOCK, S_ISDOOR, S_ISPORT):
37277         (S_TYPEISMQ, S_TYPEISTMO, S_TYPEISSEM, S_TYPEISSHM, S_ISCTG, S_ISOFD):
37278         (S_ISOFL, S_ISWHT, S_ISUID, S_ISGID, S_ISVTX, S_IRUSR, S_IRGRP):
37279         (S_IROTH, S_IWUSR, S_IWGRP, S_IWOTH, S_IXUSR, S_IXGRP, S_IXOTH):
37280         (S_IRWXU, S_IRWXG, S_IRWXO, S_IXUGO, S_IRWXUGO):
37281         Move these macros to ...
37282         * lib/stat_.h: here.  Don't include stat-macros.h.
37283         * lib/canonicalize.c: Don't include stat-macros.h.
37284         * lib/chown.c: Likewise.
37285         * lib/euidaccess.c: Likewise.
37286         * lib/file-type.c: Likewise.
37287         * lib/filemode.c: Likewise.
37288         * lib/glob.c: Likewise.
37289         * lib/isapipe.c: Likewise.
37290         * lib/lchown.c: Likewise.
37291         * lib/lstat.c: Likewise.
37292         * lib/mkdir-p.c: Likewise.
37293         * lib/rmdir.c: Likewise.
37294         * m4/lchown.m4 (gl_FUNC_LCHOWN): Don't require gl_STAT_MACROS.
37295         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Don't check for io.h
37296         unless mkdir isn't declared, to speed up 'configure'.
37297         Always create sys/stat.h, since it's unlikely any real sys/stat.h
37298         would define all the S_* symbols.
37299         * modules/canonicalize (Depends-on):
37300         Depend on sys_stat, not stat-macros.
37301         * modules/chown: Likewise.
37302         * modules/euidaccess: Likewise.
37303         * modules/filemode: Likewise.
37304         * modules/file-type: Likewise.
37305         * modules/glob: Likewise.
37306         * modules/isapipe: Likewise.
37307         * modules/lchown: Likewise.
37308         * modules/lstat: Likewise.
37309         * modules/mkancesdirs: Likewise.
37310         * modules/rmdir: Likewise.
37311         * modules/mkdir-p (Depends-on): Also depend on sys_stat.
37312         * modules/modechange: Likewise.
37313         * modules/stat-macros (Files): Remove m4/stat-macros.m4.
37314         (configure.ac): Remove gl_STAT_MACROS.
37315         * modules/sys_stat (Depends-on): Remove stat-macros.
37316
37317 2006-10-27  Bruno Haible  <bruno@clisp.org>
37318
37319         * m4/signed.m4: Remove file.
37320         * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_ARGS_: Remove bh_C_SIGNED
37321         invocation.
37322         * modules/vasnprintf (Files): Remove m4/signed.m4.
37323
37324 2006-10-27  Bruno Haible  <bruno@clisp.org>
37325
37326         Update to GNU gettext 0.16.
37327         * modules/gettext (Files): Add m4/intl.m4, m4/intldir.m4. Remove
37328         m4/inttypes-h.m4, m4/signed.m4.
37329         * m4/gettext.m4: Update to GNU gettext 0.16.
37330         * m4/intl.m4: New file, from GNU gettext.
37331         * m4/intldir.m4: New file, from GNU gettext.
37332         * config/srclist.txt: Update
37333
37334 2006-10-27  Eric Blake  <ebb9@byu.net>
37335
37336         * MODULES.html.sh: Document tempname.
37337         * modules/mkstemp (Depends-on): Add tempname, and drop transitive
37338         dependencies.
37339         (Files): Move lib/tempname.c...
37340         * modules/tempname: ...to this new module.
37341         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Remove tempname checks.
37342         (gl_PREREQ_TEMPNAME): Move...
37343         * m4/tempname.m4: ...to this new file.
37344         * lib/mkstemp.c (includes) [!_LIBC]: Use tempname.h.
37345         * modules/sys_stat (Depends-on): Add stat-macros.
37346         * lib/stat_.h (includes): Pick up stat macros.
37347         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Replace <sys/stat.h>
37348         if stat macros are broken.
37349         * lib/tempname.c (includes): No need to include "stat-macros.h".
37350         (__gen_tempname) [!_LIBC]: Expose as gen_tempname.
37351         (direxists, __path_search) [!_LIBC]: Don't compile these in
37352         gnulib; the tmpdir module covers that.
37353         * lib/tempname.h: New file.
37354
37355 2006-10-26  Paul Eggert  <eggert@cs.ucla.edu>
37356
37357         * COPYING: Explain how gnulib-tool converts licence headers.
37358         Almost all wording by Eric Blake.
37359
37360 2006-10-25  Paul Eggert  <eggert@cs.ucla.edu>
37361
37362         * lib/mbchar.h (is_basic_table): Make read-only.
37363         * lib/mbchar.c (is_basic_table): Likewise.
37364         Reported by John Darrington.
37365
37366 2006-10-25  Bruno Haible  <bruno@clisp.org>
37367
37368         * lib/progname.h (set_program_name): Undefine before defining.
37369
37370 2006-10-25  Bruno Haible  <bruno@clisp.org>
37371
37372         * lib/gettext.h (_LIBGETTEXT_HAVE_VARIABLE_SIZE_ARRAYS): Define to
37373         false for non-gcc C++ compilers.
37374         Reported by Nelson H. F. Beebe <beebe@math.utah.edu>.
37375
37376 2006-10-24  Bruno Haible  <bruno@clisp.org>
37377
37378         * lib/striconv.c (mem_cd_iconv, str_cd_iconv): Treat all non-GNU
37379         iconv implementations like Irix iconv.
37380
37381 2006-10-24  Paul Eggert  <eggert@cs.ucla.edu>
37382
37383         * modules/vararrays: New file.
37384         * m4/vararrays.m4: New file, taken from diffutils.
37385         * MODULES.html.sh: New module vararrays.
37386
37387 2006-10-24  Karl Berry  <karl@gnu.org>
37388
37389         * doc/gnulib-intro.texi: --- instead of --; non-naive naive.
37390         Don't call GNU Unix.
37391
37392 2006-10-24  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
37393
37394         * users.txt: Add Libtool.
37395
37396         Sync from Libtool:
37397
37398         2006-10-24  Paul Eggert  <eggert@cs.ucla.edu>
37399
37400         * lib/argz.c: Remove check for HAVE_CONFIG_H, to conform
37401         to gnulib's policy of including config.h unconditionally.
37402
37403 2006-10-24  Bruno Haible  <bruno@clisp.org>
37404
37405         * modules/wcwidth (Files): Add m4/wint_t.m4.
37406         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Require gt_TYPE_WINT_T.
37407         * lib/wcwidth.h (iswprint): Use 'int' if 'wint_t' is not defined.
37408
37409 2006-10-24  Paul Eggert  <eggert@cs.ucla.edu>
37410
37411         * lib/getdate.y (yyerror): Make the arguments pointer-to-const,
37412         to pacify GCC with some -W flags enabled.  Problem reported by
37413         Bruno Haible.
37414
37415 2006-10-24  Jim Meyering  <jim@meyering.net>
37416
37417         * MODULES.html.sh: Remove uinttostr.  It's not a module.
37418         Reported by Karl Berry.
37419
37420 2006-10-23  Bruno Haible  <bruno@clisp.org>
37421
37422         * lib/fts.c (fts_build): Move variable declaration, for C89 compliance.
37423
37424 2006-10-24  Bruno Haible  <bruno@clisp.org>
37425
37426         * lib/gl_list.h: Use C comment style, not C++ comment style.
37427
37428 2006-10-23  Eric Blake  <ebb9@byu.net>
37429
37430         * lib/getaddrinfo.c (includes): Add missing include.
37431
37432 2006-10-23  Bruno Haible  <bruno@clisp.org>
37433             Paul Eggert  <eggert@cs.ucla.edu>
37434
37435         Ability to rename obstack_free.
37436         * lib/obstack.h (__obstack_free): New macro. Declare instead of
37437         obstack_free.
37438         (obstack_free): Invoke the __obstack_free macro.
37439         * lib/obstack.c (obstack_free): Use __obstack_free macro.
37440
37441 2006-10-23  Bruno Haible  <bruno@clisp.org>
37442             Paul Eggert  <eggert@cs.ucla.edu>
37443
37444         * lib/argp.h (argp_parse, __argp_parse): Comment out the identifiers
37445         __argc, __argv from the declaration. (They are defined as macros on
37446         mingw.)
37447
37448 2006-10-22  Bruno Haible  <bruno@clisp.org>
37449
37450         * doc/gnulib-intro.texi: New file.
37451         * doc/gnulib.texi: Include it.
37452
37453 2006-10-21  Bruno Haible  <bruno@clisp.org>
37454
37455         * doc/gnulib.texi: Split the chapter "Gnulib" into 3 chapters
37456         "Introduction", "Miscellanous Notes", "Particular Modules".
37457
37458 2006-10-21  Bruno Haible  <bruno@clisp.org>
37459
37460         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
37461         Change mostlyclean-local rule to avoid sh syntax error from bash
37462         versions 2.00..2.05 when $(MOSTLYCLEANDIRS) is empty.
37463
37464 2006-10-23  Jim Meyering  <jim@meyering.net>
37465
37466         * lib/getaddrinfo.c (getnameinfo): Use new lightweight uinttostr,
37467         in place of snprintf.
37468
37469         * modules/inttostr (Files): Add lib/uinttostr.c.
37470         * lib/uinttostr.c (inttostr): New file/function.
37471         * lib/inttostr.h (uinttostr): Declare.
37472         * m4/inttostr.m4: Add AC_LIBOBJ([uinttostr]).
37473         * MODULES.html.sh (Numeric conversion functions <stdlib.h>):
37474         Add uinttostr.
37475         * modules/getaddrinfo (Depends-on): Remove snprintf.  Add inttostr.
37476
37477 2006-10-21  Paul Eggert  <eggert@cs.ucla.edu>
37478
37479         * lib/canonicalize.c (ELOOP): Define if not already defined.
37480         Problem reported by Bruno Haible in
37481         <http://lists.gnu.org/archive/html/bug-gnulib/2006-10/msg00282.html>.
37482
37483 2006-10-21  Paul Eggert  <eggert@cs.ucla.edu>
37484
37485         * lib/stdint_.h [defined _AIX]: Don't include <sys/types.h>.
37486         Problem reported by Perry Smith and Ville Laurikari.
37487
37488         * lib/getndelim2.c (SSIZE_MAX): Use same defn that getdelim.c
37489         uses.
37490
37491 2006-10-19  Bruno Haible  <bruno@clisp.org>
37492
37493         * lib/getndelim2.c (SSIZE_MAX): Provide fallback definition. Needed
37494         for mingw.
37495
37496 2006-10-19  Bruno Haible  <bruno@clisp.org>
37497
37498         * lib/openat-priv.h (EOPNOTSUPP): Provide fallback definition.
37499         Needed for mingw.
37500
37501 2006-10-19  Bruno Haible  <bruno@clisp.org>
37502
37503         * m4/size_max.m4 (gl_SIZE_MAX): Cache the result.
37504
37505 2006-10-19  Bruno Haible  <bruno@clisp.org>
37506
37507         * m4/allocsa.m4 (gl_ALLOCSA): Invoke gl_FUNC_ALLOCA, don't AC_REQUIRE
37508         it.
37509
37510 2006-10-19  Bruno Haible  <bruno@clisp.org>
37511
37512         * m4/alloca.m4 (gl_FUNC_ALLOCA): Cache the result of the AC_EGREP_CPP
37513         invocation.
37514
37515 2006-10-19  Bruno Haible  <bruno@clisp.org>
37516
37517         * gnulib-tool (func_create_testdir): Don't include ftruncate and
37518         mountlist by default.
37519
37520 2006-10-16  Bruno Haible  <bruno@clisp.org>
37521
37522         * lib/c-strstr.c: Include c-strstr.h.
37523
37524 2006-10-18  Charles Wilson  <cygwin@cwilson.fastmail.fm>
37525
37526         * gnulib-tool: Don't clobber $sourcebase when $local_gnulib_dir ends
37527         in a slash.
37528
37529 2006-10-18  Bruno Haible  <bruno@clisp.org>
37530
37531         * lib/lock.h [C++]: Wrap definitions in extern "C".
37532
37533 2006-10-18  Bruno Haible  <bruno@clisp.org>
37534
37535         * gnulib-tool (func_emit_initmacro_end): Remove duplicates from the
37536         gl_LIBOBJS list.
37537
37538 2006-10-18  Bruno Haible  <bruno@clisp.org>
37539
37540         * lib/findprog.c (find_in_path): Avoid "gcc -Wwrite-strings" warning.
37541
37542 2006-10-19  Paul Eggert  <eggert@cs.ucla.edu>
37543
37544         * lib/xstrtol.h: Include gettext.h.
37545         (_STRTOL_ERROR): Wrap English-language formats inside gettext.
37546         Problem reported by Eric Blake.
37547         * modules/xstrtol (Depends-on): Add gettext-h.
37548
37549 2006-10-19  Paul Eggert  <eggert@cs.ucla.edu>  (tiny change)
37550
37551         * lib/strftime.c (advance): New macro.
37552         (add): Use it to avoid adding 0 to a FILE *.  FILE can be an
37553         incomplete type, so you can't add 0 to it.  Problem and patch
37554         reported by Eelco Dolstra for dietlibc.
37555
37556 2006-10-18  Jim Meyering  <jim@meyering.net>
37557
37558         * lib/readutmp.c (desirable_utmp_entry): Use "bool" as the
37559         type for a local, and rename it: s/up/user_proc/.
37560
37561 2006-10-18  Sergey Poznyakoff  <gray@gnu.org.ua>
37562
37563         * lib/readutmp.c (desirable_utmp_entry): Implement new flag:
37564         READ_UTMP_USER_PROCESS.
37565         * lib/readutmp.h (READ_UTMP_USER_PROCESS): New flag
37566
37567 2006-10-17  Paul Eggert  <eggert@cs.ucla.edu>
37568
37569         * lib/localcharset.c: Do not check HAVE_SETLOCALE.
37570         * m4/localcharset.m4 (gl_LOCALCHARSET): Don't check for setlocale.
37571
37572 2006-10-17  Eric Blake  <ebb9@byu.net>
37573
37574         * lib/sigprocmask.c (sigprocmask): Fix typo.
37575
37576         * m4/signalblocking.m4 (gl_PREREQ_SIGPROCMASK): Fix typo.
37577
37578         * modules/clean-temp (Makefile.am): Don't add to make output...
37579         (configure.ac): ...instead define SIGNAL_SAFE_LIST inside
37580         config.h.
37581
37582 2006-10-17  Bruno Haible  <bruno@clisp.org>
37583
37584         * lib/gettext.h (gettext, ngettext, pgettext, npgettext): Define
37585         differently if DEFAULT_TEXT_DOMAIN is set.
37586
37587 2006-10-16  Bruno Haible  <bruno@clisp.org>
37588
37589         * lib/clean-temp.c: Include fwriteerror.h.
37590
37591 2006-10-16  Bruno Haible  <bruno@clisp.org>
37592
37593         * getndelim2.m4 (gl_GETNDELIM2): Remove 2003-10-23 hack.
37594
37595 2006-10-16  Bruno Haible  <bruno@clisp.org>
37596
37597         * m4/signalblocking.m4 (gl_PREREQ_SIGPROCMASK): Also test for sigset_t.
37598         * lib/sigprocmask.h: Include <sys/types.h>.
37599         (sigset_t): Use the system's definition if present.
37600
37601 2006-10-17  Eric Blake  <ebb9@byu.net>
37602
37603         * lib/xvasprintf.c (includes): Assume config.h.
37604         * lib/xasprintf.c (includes): Likewise.
37605
37606 2006-10-16  Paul Eggert  <eggert@cs.ucla.edu>
37607
37608         * lib/fsusage.c (PROPAGATE_ALL_ONES): Don't assume uintmax_t is
37609         at least as wide as intmax_t.
37610
37611 2006-10-16  Alexandre Duret-Lutz  <adl@gnu.org>
37612
37613         (Imported from Automake.)
37614         * build-aux/gnupload: Update to version 1.1 of directive file.
37615
37616 2006-10-16  Eric Blake  <ebb9@byu.net>
37617
37618         * modules/configmake (Makefile.am): Add pkglibexecdir support, to
37619         match Automake 1.10a.
37620
37621 2006-10-14  Bruno Haible  <bruno@clisp.org>
37622
37623         * modules/sigprocmask: New file.
37624         * lib/sigprocmask.h: New file.
37625         * lib/sigprocmask.c: New file.
37626         * m4/signalblocking.m4 (gl_SIGNALBLOCKING): Renamed from
37627         gt_SIGNALBLOCKING. When not defining HAVE_POSIX_SIGNALBLOCKING,
37628         request sigprocmask.o.
37629         (gl_PREREQ_SIGPROCMASK): New macro.
37630         * modules/fatal-signal (Files): Remove m4/signalblocking.m4.
37631         (Depends-on): Add sigprocmask.
37632         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Don't require
37633         gt_SIGNALBLOCKING. Test for 'raise' only once.
37634         * lib/fatal-signal.c: Include sigprocmask.h.
37635         (fatal_signal_set, init_fatal_signal_set, block_fatal_signals,
37636         unblock_fatal_signals): Define always.
37637         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
37638         sigprocmask.
37639
37640 2006-10-14  Paul Eggert  <eggert@cs.ucla.edu>
37641
37642         Sync from Automake.
37643         * build-aux/install-sh (posix_mkdir): Reject FreeBSD 6.1 mkdir -p -m,
37644         which incorrectly sets the mode of an existing destination
37645         directory.  In some cases the unpatched install-sh could do the
37646         equivalent of "chmod 777 /" or "chmod 0 /" on a buggy FreeBSD
37647         system.  We hope this is rare in practice, but it's clearly worth
37648         fixing.  Problem reported by Alex Unleashed in
37649         <http://lists.gnu.org/archive/html/bug-autoconf/2006-10/msg00012.html>.
37650         Also, don't bother to check for -m bugs unless we're using -m;
37651         suggested by Stepan Kasal.
37652
37653 2006-10-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
37654
37655         Sync from Automake.
37656         * build-aux/depcomp (gcc3): Put dependency extraction flags before the
37657         `-c' flag, so they appear at the same position as in %FASTDEP%
37658         mode in depend2.am.  Fixes build failure for FreeBSD's c89,
37659         which ignores unknown options only after the first non-option.
37660         Bug report against M4 by Nelson H. F. Beebe.
37661
37662 2006-10-13  Jim Meyering  <jim@meyering.net>
37663
37664         Fix a bug in yesterday's change.
37665         * lib/fts.c (fts_open): When using FTS_XDEV|FTS_NOSTAT,
37666         p->fts_statp->st_dev would be used uninitialized.
37667         Ensures that we always call fts_stat on the very first entry.
37668         Miklos Szeredi reported that find -xdev stopped working.
37669
37670 2006-10-12  Bruno Haible  <bruno@clisp.org>
37671
37672         * gnulib-tool (func_get_automake_snippet): Append an automatically
37673         computed EXTRA_DIST augmentation.
37674         * modules/acl (Makefile.am): Remove EXTRA_DIST augmentation.
37675         * modules/alloca-opt (Makefile.am): Likewise.
37676         * modules/allocsa (Makefile.am): Likewise.
37677         * modules/arcfour (Makefile.am): Likewise.
37678         * modules/arctwo (Makefile.am): Likewise.
37679         * modules/argmatch (Makefile.am): Likewise.
37680         * modules/argz (Makefile.am): Likewise.
37681         * modules/atexit (Makefile.am): Likewise.
37682         * modules/backupfile (Makefile.am): Likewise.
37683         * modules/byteswap (Makefile.am): Likewise.
37684         * modules/c-strtod (Makefile.am): Likewise.
37685         * modules/c-strtold (Makefile.am): Likewise.
37686         * modules/calloc (Makefile.am): Likewise.
37687         * modules/canon-host (Makefile.am): Likewise.
37688         * modules/canonicalize (Makefile.am): Likewise.
37689         * modules/chdir-long (Makefile.am): Likewise.
37690         * modules/chdir-safer (Makefile.am): Likewise.
37691         * modules/check-version (Makefile.am): Likewise.
37692         * modules/chown (Makefile.am): Likewise.
37693         * modules/cloexec (Makefile.am): Likewise.
37694         * modules/close-stream (Makefile.am): Likewise.
37695         * modules/closeout (Makefile.am): Likewise.
37696         * modules/crc (Makefile.am): Likewise.
37697         * modules/csharpexec (Makefile.am): Likewise.
37698         * modules/cycle-check (Makefile.am): Likewise.
37699         * modules/des (Makefile.am): Likewise.
37700         * modules/dev-ino (Makefile.am): Likewise.
37701         * modules/dirfd (Makefile.am): Likewise.
37702         * modules/dirname (Makefile.am): Likewise.
37703         * modules/dup2 (Makefile.am): Likewise.
37704         * modules/eealloc (Makefile.am): Likewise.
37705         * modules/error (Makefile.am): Likewise.
37706         * modules/euidaccess (Makefile.am): Likewise.
37707         * modules/exclude (Makefile.am): Likewise.
37708         * modules/exitfail (Makefile.am): Likewise.
37709         * modules/fcntl-safer (Makefile.am): Likewise.
37710         * modules/fcntl (Makefile.am): Likewise.
37711         * modules/file-type (Makefile.am): Likewise.
37712         * modules/fileblocks (Makefile.am): Likewise.
37713         * modules/filemode (Makefile.am): Likewise.
37714         * modules/filenamecat (Makefile.am): Likewise.
37715         * modules/fnmatch (Makefile.am): Likewise.
37716         * modules/fopen-safer (Makefile.am): Likewise.
37717         * modules/fpending (Makefile.am): Likewise.
37718         * modules/fprintftime (Makefile.am): Likewise.
37719         * modules/free (Makefile.am): Likewise.
37720         * modules/fsusage (Makefile.am): Likewise.
37721         * modules/ftruncate (Makefile.am): Likewise.
37722         * modules/fts (Makefile.am): Likewise.
37723         * modules/gc-arcfour (Makefile.am): Likewise.
37724         * modules/gc-des (Makefile.am): Likewise.
37725         * modules/gc-hmac-md5 (Makefile.am): Likewise.
37726         * modules/gc-hmac-sha1 (Makefile.am): Likewise.
37727         * modules/gc-md4 (Makefile.am): Likewise.
37728         * modules/gc-pbkdf2-sha1 (Makefile.am): Likewise.
37729         * modules/gc-sha1 (Makefile.am): Likewise.
37730         * modules/gc (Makefile.am): Likewise.
37731         * modules/getaddrinfo (Makefile.am): Likewise.
37732         * modules/getcwd (Makefile.am): Likewise.
37733         * modules/getdelim (Makefile.am): Likewise.
37734         * modules/getdomainname (Makefile.am): Likewise.
37735         * modules/getgroups (Makefile.am): Likewise.
37736         * modules/gethostname (Makefile.am): Likewise.
37737         * modules/gethrxtime (Makefile.am): Likewise.
37738         * modules/getline (Makefile.am): Likewise.
37739         * modules/getloadavg (Makefile.am): Likewise.
37740         * modules/getlogin_r (Makefile.am): Likewise.
37741         * modules/getndelim2 (Makefile.am): Likewise.
37742         * modules/getopt (Makefile.am): Likewise.
37743         * modules/getpagesize (Makefile.am): Likewise.
37744         * modules/getpass-gnu (Makefile.am): Likewise.
37745         * modules/getpass (Makefile.am): Likewise.
37746         * modules/getsubopt (Makefile.am): Likewise.
37747         * modules/gettime (Makefile.am): Likewise.
37748         * modules/gettimeofday (Makefile.am): Likewise.
37749         * modules/getugroups (Makefile.am): Likewise.
37750         * modules/getusershell (Makefile.am): Likewise.
37751         * modules/glob (Makefile.am): Likewise.
37752         * modules/group-member (Makefile.am): Likewise.
37753         * modules/hard-locale (Makefile.am): Likewise.
37754         * modules/hash (Makefile.am): Likewise.
37755         * modules/hmac-md5 (Makefile.am): Likewise.
37756         * modules/hmac-sha1 (Makefile.am): Likewise.
37757         * modules/human (Makefile.am): Likewise.
37758         * modules/idcache (Makefile.am): Likewise.
37759         * modules/imaxabs (Makefile.am): Likewise.
37760         * modules/imaxdiv (Makefile.am): Likewise.
37761         * modules/inet_ntop (Makefile.am): Likewise.
37762         * modules/inet_pton (Makefile.am): Likewise.
37763         * modules/intprops (Makefile.am): Likewise.
37764         * modules/inttostr (Makefile.am): Likewise.
37765         * modules/inttypes (Makefile.am): Likewise.
37766         * modules/isapipe (Makefile.am): Likewise.
37767         * modules/javaversion (Makefile.am): Likewise.
37768         * modules/lchmod (Makefile.am): Likewise.
37769         * modules/lchown (Makefile.am): Likewise.
37770         * modules/localcharset (Makefile.am): Likewise.
37771         * modules/long-options (Makefile.am): Likewise.
37772         * modules/lstat (Makefile.am): Likewise.
37773         * modules/malloc (Makefile.am): Likewise.
37774         * modules/mathl (Makefile.am): Likewise.
37775         * modules/mbchar (Makefile.am): Likewise.
37776         * modules/md2 (Makefile.am): Likewise.
37777         * modules/md4 (Makefile.am): Likewise.
37778         * modules/md5 (Makefile.am): Likewise.
37779         * modules/memcasecmp (Makefile.am): Likewise.
37780         * modules/memchr (Makefile.am): Likewise.
37781         * modules/memcmp (Makefile.am): Likewise.
37782         * modules/memcoll (Makefile.am): Likewise.
37783         * modules/memcpy (Makefile.am): Likewise.
37784         * modules/memmem (Makefile.am): Likewise.
37785         * modules/memmove (Makefile.am): Likewise.
37786         * modules/mempcpy (Makefile.am): Likewise.
37787         * modules/memrchr (Makefile.am): Likewise.
37788         * modules/memset (Makefile.am): Likewise.
37789         * modules/memxor (Makefile.am): Likewise.
37790         * modules/mkancesdirs (Makefile.am): Likewise.
37791         * modules/mkdir-p (Makefile.am): Likewise.
37792         * modules/mkdir (Makefile.am): Likewise.
37793         * modules/mkdtemp (Makefile.am): Likewise.
37794         * modules/mkstemp (Makefile.am): Likewise.
37795         * modules/mktime (Makefile.am): Likewise.
37796         * modules/modechange (Makefile.am): Likewise.
37797         * modules/mountlist (Makefile.am): Likewise.
37798         * modules/nanosleep (Makefile.am): Likewise.
37799         * modules/obstack (Makefile.am): Likewise.
37800         * modules/openat (Makefile.am): Likewise.
37801         * modules/pagealign_alloc (Makefile.am): Likewise.
37802         * modules/pathmax (Makefile.am): Likewise.
37803         * modules/physmem (Makefile.am): Likewise.
37804         * modules/poll (Makefile.am): Likewise.
37805         * modules/posixtm (Makefile.am): Likewise.
37806         * modules/posixver (Makefile.am): Likewise.
37807         * modules/putenv (Makefile.am): Likewise.
37808         * modules/quote (Makefile.am): Likewise.
37809         * modules/quotearg (Makefile.am): Likewise.
37810         * modules/raise (Makefile.am): Likewise.
37811         * modules/read-file (Makefile.am): Likewise.
37812         * modules/readline (Makefile.am): Likewise.
37813         * modules/readlink (Makefile.am): Likewise.
37814         * modules/readtokens (Makefile.am): Likewise.
37815         * modules/readutmp (Makefile.am): Likewise.
37816         * modules/realloc (Makefile.am): Likewise.
37817         * modules/regex (Makefile.am): Likewise.
37818         * modules/rename-dest-slash (Makefile.am): Likewise.
37819         * modules/rename (Makefile.am): Likewise.
37820         * modules/rijndael (Makefile.am): Likewise.
37821         * modules/rmdir (Makefile.am): Likewise.
37822         * modules/rpmatch (Makefile.am): Likewise.
37823         * modules/safe-read (Makefile.am): Likewise.
37824         * modules/safe-write (Makefile.am): Likewise.
37825         * modules/same-inode (Makefile.am): Likewise.
37826         * modules/same (Makefile.am): Likewise.
37827         * modules/save-cwd (Makefile.am): Likewise.
37828         * modules/savedir (Makefile.am): Likewise.
37829         * modules/setenv (Makefile.am): Likewise.
37830         * modules/settime (Makefile.am): Likewise.
37831         * modules/sha1 (Makefile.am): Likewise.
37832         * modules/sig2str (Makefile.am): Likewise.
37833         * modules/snprintf (Makefile.am): Likewise.
37834         * modules/stat-macros (Makefile.am): Likewise.
37835         * modules/stat-time (Makefile.am): Likewise.
37836         * modules/stdbool (Makefile.am): Likewise.
37837         * modules/stdint (Makefile.am): Likewise.
37838         * modules/stdlib-safer (Makefile.am): Likewise.
37839         * modules/stpcpy (Makefile.am): Likewise.
37840         * modules/stpncpy (Makefile.am): Likewise.
37841         * modules/strcase (Makefile.am): Likewise.
37842         * modules/strcasestr (Makefile.am): Likewise.
37843         * modules/strchrnul (Makefile.am): Likewise.
37844         * modules/strcspn (Makefile.am): Likewise.
37845         * modules/strdup (Makefile.am): Likewise.
37846         * modules/strerror (Makefile.am): Likewise.
37847         * modules/strftime (Makefile.am): Likewise.
37848         * modules/strndup (Makefile.am): Likewise.
37849         * modules/strnlen (Makefile.am): Likewise.
37850         * modules/strpbrk (Makefile.am): Likewise.
37851         * modules/strsep (Makefile.am): Likewise.
37852         * modules/strstr (Makefile.am): Likewise.
37853         * modules/strtod (Makefile.am): Likewise.
37854         * modules/strtoimax (Makefile.am): Likewise.
37855         * modules/strtok_r (Makefile.am): Likewise.
37856         * modules/strtol (Makefile.am): Likewise.
37857         * modules/strtoll (Makefile.am): Likewise.
37858         * modules/strtoul (Makefile.am): Likewise.
37859         * modules/strtoull (Makefile.am): Likewise.
37860         * modules/strtoumax (Makefile.am): Likewise.
37861         * modules/strverscmp (Makefile.am): Likewise.
37862         * modules/sys_socket (Makefile.am): Likewise.
37863         * modules/sys_stat (Makefile.am): Likewise.
37864         * modules/sysexits (Makefile.am): Likewise.
37865         * modules/time_r (Makefile.am): Likewise.
37866         * modules/timegm (Makefile.am): Likewise.
37867         * modules/timespec (Makefile.am): Likewise.
37868         * modules/tmpfile-safer (Makefile.am): Likewise.
37869         * modules/trim (Makefile.am): Likewise.
37870         * modules/unistd-safer (Makefile.am): Likewise.
37871         * modules/unlinkdir (Makefile.am): Likewise.
37872         * modules/unlocked-io (Makefile.am): Likewise.
37873         * modules/userspec (Makefile.am): Likewise.
37874         * modules/utime (Makefile.am): Likewise.
37875         * modules/utimecmp (Makefile.am): Likewise.
37876         * modules/utimens (Makefile.am): Likewise.
37877         * modules/vasnprintf (Makefile.am): Likewise.
37878         * modules/vasprintf (Makefile.am): Likewise.
37879         * modules/vsnprintf (Makefile.am): Likewise.
37880         * modules/xalloc (Makefile.am): Likewise.
37881         * modules/xgetcwd (Makefile.am): Likewise.
37882         * modules/xnanosleep (Makefile.am): Likewise.
37883         * modules/xreadlink (Makefile.am): Likewise.
37884         * modules/xstrtod (Makefile.am): Likewise.
37885         * modules/xstrtol (Makefile.am): Likewise.
37886         * modules/xstrtold (Makefile.am): Likewise.
37887         * modules/yesno (Makefile.am): Likewise.
37888         * modules/getdate (Makefile.am): Don't add getdate.h to EXTRA_DIST.
37889
37890 2006-10-12  Paul Eggert  <eggert@cs.ucla.edu>
37891
37892         * modules/error (Makefile.am): Distribute files through
37893         EXTRA_DIST, not lib_SOURCES.
37894
37895 2006-10-12  Eric Blake  <ebb9@byu.net>
37896
37897         * modules/error (Makefile.am): Distribute files in /lib.
37898         * modules/obstack (Makefile.am): Likewise.
37899
37900 2006-10-12  Bruno Haible  <bruno@clisp.org>
37901
37902         * modules/acl (Makefile.am): Distribute all files in lib/ through
37903         EXTRA_DIST.
37904         * modules/arcfour (Makefile.am): Likewise.
37905         * modules/arctwo (Makefile.am): Likewise.
37906         * modules/argmatch (Makefile.am): Likewise.
37907         * modules/argz (Makefile.am): Likewise.
37908         * modules/atexit (Makefile.am): Likewise.
37909         * modules/backupfile (Makefile.am): Likewise.
37910         * modules/c-strtod (Makefile.am): Likewise.
37911         * modules/c-strtold (Makefile.am): Likewise.
37912         * modules/calloc (Makefile.am): Likewise.
37913         * modules/canon-host (Makefile.am): Likewise.
37914         * modules/canonicalize (Makefile.am): Likewise.
37915         * modules/chdir-long (Makefile.am): Likewise.
37916         * modules/chdir-safer (Makefile.am): Likewise.
37917         * modules/check-version (Makefile.am): Likewise.
37918         * modules/chown (Makefile.am): Likewise.
37919         * modules/cloexec (Makefile.am): Likewise.
37920         * modules/close-stream (Makefile.am): Likewise.
37921         * modules/closeout (Makefile.am): Likewise.
37922         * modules/crc (Makefile.am): Likewise.
37923         * modules/cycle-check (Makefile.am): Likewise.
37924         * modules/des (Makefile.am): Likewise.
37925         * modules/dirfd (Makefile.am): Likewise.
37926         * modules/dirname (Makefile.am): Likewise.
37927         * modules/dup2 (Makefile.am): Likewise.
37928         * modules/euidaccess (Makefile.am): Likewise.
37929         * modules/exclude (Makefile.am): Likewise.
37930         * modules/exitfail (Makefile.am): Likewise.
37931         * modules/fcntl-safer (Makefile.am): Likewise.
37932         * modules/file-type (Makefile.am): Likewise.
37933         * modules/fileblocks (Makefile.am): Likewise.
37934         * modules/filemode (Makefile.am): Likewise.
37935         * modules/filenamecat (Makefile.am): Likewise.
37936         * modules/fnmatch (Makefile.am): Likewise.
37937         * modules/fopen-safer (Makefile.am): Likewise.
37938         * modules/fpending (Makefile.am): Likewise.
37939         * modules/fprintftime (Makefile.am): Likewise.
37940         * modules/free (Makefile.am): Likewise.
37941         * modules/fsusage (Makefile.am): Likewise.
37942         * modules/ftruncate (Makefile.am): Likewise.
37943         * modules/fts (Makefile.am): Likewise.
37944         * modules/gc (Makefile.am): Likewise.
37945         * modules/gc-pbkdf2-sha1 (Makefile.am): Likewise.
37946         * modules/getaddrinfo (Makefile.am): Likewise.
37947         * modules/getcwd (Makefile.am): Likewise.
37948         * modules/getdelim (Makefile.am): Likewise.
37949         * modules/getdomainname (Makefile.am): Likewise.
37950         * modules/getgroups (Makefile.am): Likewise.
37951         * modules/gethostname (Makefile.am): Likewise.
37952         * modules/gethrxtime (Makefile.am): Likewise.
37953         * modules/getline (Makefile.am): Likewise.
37954         * modules/getloadavg (Makefile.am): Likewise.
37955         * modules/getlogin_r (Makefile.am): Likewise.
37956         * modules/getopt (Makefile.am): Likewise.
37957         * modules/getpass (Makefile.am): Likewise.
37958         * modules/getpass-gnu (Makefile.am): Likewise.
37959         * modules/getsubopt (Makefile.am): Likewise.
37960         * modules/gettime (Makefile.am): Likewise.
37961         * modules/gettimeofday (Makefile.am): Likewise.
37962         * modules/getugroups (Makefile.am): Likewise.
37963         * modules/getusershell (Makefile.am): Likewise.
37964         * modules/glob (Makefile.am): Likewise.
37965         * modules/group-member (Makefile.am): Likewise.
37966         * modules/hard-locale (Makefile.am): Likewise.
37967         * modules/hash (Makefile.am): Likewise.
37968         * modules/hmac-md5 (Makefile.am): Likewise.
37969         * modules/hmac-sha1 (Makefile.am): Likewise.
37970         * modules/human (Makefile.am): Likewise.
37971         * modules/idcache (Makefile.am): Likewise.
37972         * modules/imaxabs (Makefile.am): Likewise.
37973         * modules/imaxdiv (Makefile.am): Likewise.
37974         * modules/inet_ntop (Makefile.am): Likewise.
37975         * modules/inet_pton (Makefile.am): Likewise.
37976         * modules/inttostr (Makefile.am): Likewise.
37977         * modules/isapipe (Makefile.am): Likewise.
37978         * modules/lchown (Makefile.am): Likewise.
37979         * modules/long-options (Makefile.am): Likewise.
37980         * modules/lstat (Makefile.am): Likewise.
37981         * modules/malloc (Makefile.am): Likewise.
37982         * modules/mathl (Makefile.am): Likewise.
37983         * modules/mbchar (Makefile.am): Likewise.
37984         * modules/md2 (Makefile.am): Likewise.
37985         * modules/md4 (Makefile.am): Likewise.
37986         * modules/md5 (Makefile.am): Likewise.
37987         * modules/memcasecmp (Makefile.am): Likewise.
37988         * modules/memchr (Makefile.am): Likewise.
37989         * modules/memcmp (Makefile.am): Likewise.
37990         * modules/memcoll (Makefile.am): Likewise.
37991         * modules/memcpy (Makefile.am): Likewise.
37992         * modules/memmem (Makefile.am): Likewise.
37993         * modules/memmove (Makefile.am): Likewise.
37994         * modules/mempcpy (Makefile.am): Likewise.
37995         * modules/memrchr (Makefile.am): Likewise.
37996         * modules/memset (Makefile.am): Likewise.
37997         * modules/memxor (Makefile.am): Likewise.
37998         * modules/mkancesdirs (Makefile.am): Likewise.
37999         * modules/mkdir (Makefile.am): Likewise.
38000         * modules/mkdir-p (Makefile.am): Likewise.
38001         * modules/mkdtemp (Makefile.am): Likewise.
38002         * modules/mkstemp (Makefile.am): Likewise.
38003         * modules/mktime (Makefile.am): Likewise.
38004         * modules/modechange (Makefile.am): Likewise.
38005         * modules/mountlist (Makefile.am): Likewise.
38006         * modules/nanosleep (Makefile.am): Likewise.
38007         * modules/openat (Makefile.am): Likewise.
38008         * modules/pagealign_alloc (Makefile.am): Likewise.
38009         * modules/physmem (Makefile.am): Likewise.
38010         * modules/poll (Makefile.am): Likewise.
38011         * modules/posixtm (Makefile.am): Likewise.
38012         * modules/posixver (Makefile.am): Likewise.
38013         * modules/putenv (Makefile.am): Likewise.
38014         * modules/quote (Makefile.am): Likewise.
38015         * modules/quotearg (Makefile.am): Likewise.
38016         * modules/raise (Makefile.am): Likewise.
38017         * modules/read-file (Makefile.am): Likewise.
38018         * modules/readline (Makefile.am): Likewise.
38019         * modules/readlink (Makefile.am): Likewise.
38020         * modules/readtokens (Makefile.am): Likewise.
38021         * modules/readutmp (Makefile.am): Likewise.
38022         * modules/realloc (Makefile.am): Likewise.
38023         * modules/regex (Makefile.am): Likewise.
38024         * modules/rename (Makefile.am): Likewise.
38025         * modules/rename-dest-slash (Makefile.am): Likewise.
38026         * modules/rijndael (Makefile.am): Likewise.
38027         * modules/rmdir (Makefile.am): Likewise.
38028         * modules/rpmatch (Makefile.am): Likewise.
38029         * modules/safe-read (Makefile.am): Likewise.
38030         * modules/safe-write (Makefile.am): Likewise.
38031         * modules/same (Makefile.am): Likewise.
38032         * modules/save-cwd (Makefile.am): Likewise.
38033         * modules/savedir (Makefile.am): Likewise.
38034         * modules/setenv (Makefile.am): Likewise.
38035         * modules/settime (Makefile.am): Likewise.
38036         * modules/sha1 (Makefile.am): Likewise.
38037         * modules/sig2str (Makefile.am): Likewise.
38038         * modules/snprintf (Makefile.am): Likewise.
38039         * modules/stdlib-safer (Makefile.am): Likewise.
38040         * modules/stpcpy (Makefile.am): Likewise.
38041         * modules/stpncpy (Makefile.am): Likewise.
38042         * modules/strcase (Makefile.am): Likewise.
38043         * modules/strcasestr (Makefile.am): Likewise.
38044         * modules/strchrnul (Makefile.am): Likewise.
38045         * modules/strcspn (Makefile.am): Likewise.
38046         * modules/strdup (Makefile.am): Likewise.
38047         * modules/strerror (Makefile.am): Likewise.
38048         * modules/strftime (Makefile.am): Likewise.
38049         * modules/strndup (Makefile.am): Likewise.
38050         * modules/strnlen (Makefile.am): Likewise.
38051         * modules/strpbrk (Makefile.am): Likewise.
38052         * modules/strsep (Makefile.am): Likewise.
38053         * modules/strstr (Makefile.am): Likewise.
38054         * modules/strtod (Makefile.am): Likewise.
38055         * modules/strtoimax (Makefile.am): Likewise.
38056         * modules/strtok_r (Makefile.am): Likewise.
38057         * modules/strtol (Makefile.am): Likewise.
38058         * modules/strtoll (Makefile.am): Likewise.
38059         * modules/strtoul (Makefile.am): Likewise.
38060         * modules/strtoull (Makefile.am): Likewise.
38061         * modules/strtoumax (Makefile.am): Likewise.
38062         * modules/strverscmp (Makefile.am): Likewise.
38063         * modules/time_r (Makefile.am): Likewise.
38064         * modules/timegm (Makefile.am): Likewise.
38065         * modules/tmpfile-safer (Makefile.am): Likewise.
38066         * modules/unistd-safer (Makefile.am): Likewise.
38067         * modules/unlinkdir (Makefile.am): Likewise.
38068         * modules/userspec (Makefile.am): Likewise.
38069         * modules/utime (Makefile.am): Likewise.
38070         * modules/utimecmp (Makefile.am): Likewise.
38071         * modules/utimens (Makefile.am): Likewise.
38072         * modules/vasnprintf (Makefile.am): Likewise.
38073         * modules/vasprintf (Makefile.am): Likewise.
38074         * modules/vsnprintf (Makefile.am): Likewise.
38075         * modules/xalloc (Makefile.am): Likewise.
38076         * modules/xgetcwd (Makefile.am): Likewise.
38077         * modules/xnanosleep (Makefile.am): Likewise.
38078         * modules/xreadlink (Makefile.am): Likewise.
38079         * modules/xstrtod (Makefile.am): Likewise.
38080         * modules/xstrtol (Makefile.am): Likewise.
38081         * modules/xstrtold (Makefile.am): Likewise.
38082         * modules/yesno (Makefile.am): Likewise.
38083
38084 2006-10-12  Jim Meyering  <jim@meyering.net>
38085
38086         * m4/getloadavg.m4: Revert the change below.
38087
38088         * m4/getloadavg.m4 (gl_GETLOADAVG): Test for the existence of
38089         lib/getloadavg.c using "ls -L", not "test -f".  The latter would
38090         fail with a symlink, which is what coreutils' ./bootstrap now
38091         creates by default.
38092
38093 2006-10-12  Bruno Haible  <bruno@clisp.org>
38094
38095         * lib/inttypes_.h (_LONG_LONG_FORMAT_PREFIX): Don't define for MSVC or
38096         mingw.
38097         (_PRI64_PREFIX, _PRIu64_PREFIX, _SCN64_PREFIX, _SCNu64_PREFIX): Handle
38098         MSVC and mingw explicitly.
38099
38100 2006-10-11  Simon Josefsson  <jas@extundo.com>
38101             Bruno Haible  <bruno@clisp.org>
38102
38103         Add support for multiple gnulib-tool invocations in the scope of a
38104         single configure.ac file.
38105         * gnulib-tool (func_emit_lib_Makefile_am): In the _LIBADD variable,
38106         use a private [LT]LIBOBJS variant. Define a _DEPENDENCIES variable
38107         with the same contents as the _LIBADD variable.
38108         (func_emit_initmacro_start, func_emit_initmacro_end,
38109         func_emit_initmacro_done): New functions.
38110         (func_import, func_create_testdir): Invoke them. Allow the identifiers
38111         gl_LIBOBJS and gl_LTLIBOBJS.
38112
38113 2006-10-11  Bruno Haible  <bruno@clisp.org>
38114
38115         * gnulib-tool (GETTEXTPATH, AUTOHEADER, AUTOPOINT): New variables.
38116         (func_create_testdir): Don't create po/Makefile.am, don't invoke
38117         autoreconf. Instead, invoke autopoint explicitly but move back the
38118         *.m4 files from gnulib.
38119
38120 2006-10-11  Bruno Haible  <bruno@clisp.org>
38121
38122         * gnulib-tool (func_usage): Make module names after --create-testdir
38123         optional.
38124         (func_create_testdir): If no module was specified, use nearly all
38125         modules.
38126
38127 2006-10-12  Jim Meyering  <jim@meyering.net>
38128
38129         Big performance improvement for fts-based tools that use FTS_NOSTAT.
38130         Avoid spurious inode-mismatch problems on non-POSIX file systems.
38131         Details: http://article.gmane.org/gmane.comp.lib.gnulib.bugs/7416
38132         * lib/fts_.h (FTS_DEFER_STAT): Define new flag.
38133         (FTS_OPTIONMASK): Extend the mask to reflect this addition.
38134         * lib/fts.c (DT_IS_KNOWN, DT_MUST_BE): Define.
38135         (FTS_NO_STAT_REQUIRED, FTS_STAT_REQUIRED): Define.
38136         (fts_set_stat_required): New function.
38137         (fts_open): Defer the calls to fts_stat, if possible or requested.
38138         Move the code that maps a command-line fts_info value FTS_DOT to FTS_D
38139         into fts_stat itself.
38140         (fts_read): Perform any required (deferred) fts_stat call.
38141         (fts_build): Likewise, for the directory we're about to open and read.
38142         In the readdir loop, carefully decide whether each entry will require
38143         an eventual call to fts_stat, using dirent.d_type info if available.
38144         (fts_stat): Move the test for whether to honor FTS_COMFOLLOW on
38145         a command line argument into this function.  Update all callers.
38146         Map a return value of FTS_DOT to FTS_D for a command line argument.
38147         * modules/fts (Depends-on): Add d-type.  Alphabetize.
38148         Thanks to Miklos Szeredi for his tenacity and for the initial
38149         bug report about "find" failing on a FUSE-based file system.
38150
38151         * lib/fts.c (fts_open): Use consistent indentation.
38152
38153 2006-10-12  Paul Eggert  <eggert@cs.ucla.edu>
38154
38155         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS): Renamed from
38156         gl_USE_SYSTEM_EXTENSIONS, to fix a coreutils bootstrap failure
38157         reported by Jim Meyering.  All uses of cache variables renamed
38158         to match Autoconf's.
38159         (gl_USE_SYSTEM_EXTENSIONS): New macro, which simply requires
38160         the other one.
38161
38162         * m4/rename-dest-slash.m4 (gl_FUNC_RENAME_TRAILING_DEST_SLASH):
38163         Fix misspelling in diagnostic.
38164
38165 2006-10-11  Paul Eggert  <eggert@cs.ucla.edu>
38166
38167         * lib/mkdir-p.c (HAVE_FCHMOD): Define to false if not already
38168         defined.  Problem reported by Matthew Woehlke.
38169
38170         * lib/inttypes_.h (_LONG_LONG_FORMAT_PREFIX): New macro.
38171         Add support for Tandem NonStop R series.
38172         (_PRI64_PREFIX, _PRIu64_PREFIX, _SCN64_PREFIX, _SCNu64_PREFIX):
38173         Use new macro.
38174
38175         * lib/rename-dest-slash.c: Include stdbool.h but not string.h.
38176         (has_trailing_slash): Omit size arg; all callers changed.
38177         Omit 'inline', since it doesn't help performance and we'd
38178         need to configure it.
38179         Don't count //, ///, etc. as having a trailing slash.
38180         As a side effect, this removes a C99ism reported by Matthew Woehlke.
38181         (rpl_rename_dest_slash): On failure, use rename's errno rather
38182         than (in some cases) an incorrect or junk errno.
38183         Simplify code by removing need to compute length; this does
38184         cause it to make two passes instead of one over the file name,
38185         but it's worth it.
38186
38187         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Undo previous
38188         change, since Autoconf's version may no longer be appropriate now
38189         that we are using CVS Autoconf's version.  Add support for Tandem.
38190
38191 2006-10-11  Paul Eggert  <eggert@cs.ucla.edu>
38192             Bruno Haible  <bruno@clisp.org>
38193
38194         * lib/allocsa.h (sa_alignment_longlong, sa_alignment_max): Test
38195         HAVE_LONG_LONG_INT instead of HAVE_LONG_LONG.
38196         * m4/allocsa.m4 (gl_ALLOCSA): Invoke AC_TYPE_LONG_LONG_INT instead of
38197         gl_AC_TYPE_LONG_LONG.
38198
38199         * lib/printf-args.h (arg_type, argument): Test HAVE_LONG_LONG_INT
38200         instead of HAVE_LONG_LONG.
38201         * lib/printf-args.c (printf_fetchargs): Likewise.
38202         * lib/printf-parse.c (PRINTF_PARSE): Likewise.
38203         * lib/vasnprintf.c (VASNPRINTF): Likewise.
38204         * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_ARGS, gl_PREREQ_PRINTF_PARSE,
38205         gl_PREREQ_VASNPRINTF): Invoke AC_TYPE_LONG_LONG_INT instead of
38206         gl_AC_TYPE_LONG_LONG.
38207
38208 2006-10-11  Bruno Haible  <bruno@clisp.org>
38209
38210         * m4/longlong.m4: Add comments.
38211         * m4/ulonglong.m4: Likewise.
38212
38213 2006-10-10  Bruno Haible  <bruno@clisp.org>
38214
38215         Make it possible to #define stpcpy, strdup to aliases.
38216         * lib/stpcpy.c (stpcpy) [!_LIBC]: Don't undefine.
38217         * lib/strdup.c (strdup) [!_LIBC]: Don't undefine.
38218
38219 2006-10-10  Bruno Haible  <bruno@clisp.org>
38220
38221         Make it possible to #define gcd to an alias.
38222         * lib/gcd.c: Include config.h.
38223
38224 2006-10-10  Bruno Haible  <bruno@clisp.org>
38225
38226         Make it possible to #define c_isascii to an alias.
38227         * lib/c-ctype.h: Don't define the macros if NO_C_CTYPE_MACROS is
38228         defined. Undefine the macros before defining them, to avoid gcc
38229         warnings.
38230         * lib/c-ctype.c: Include config.h. Don't undefine the macros; instead,
38231         define NO_C_CTYPE_MACROS early.
38232
38233 2006-10-10  Bruno Haible  <bruno@clisp.org>
38234
38235         Make it possible to #define set_program_name to an alias.
38236         * lib/progname.c: Don't undefine set_program_name; instead, undefine
38237         ENABLE_RELOCATABLE early.
38238
38239 2006-10-10  Paul Eggert  <eggert@cs.ucla.edu>
38240
38241         Port to Tandem NSK OSS, which has 64-bit signed int but at most
38242         32-bit unsigned int.  Problem reported by Matthew Woehlke in:
38243         http://lists.gnu.org/archive/html/bug-coreutils/2006-10/msg00062.html
38244         More generally, don't assume that 64-bit signed int is available
38245         if unsigned int is, and vice versa.
38246         * lib/inttypes_.h (_PRIu64_PREFIX, _SCNu64_PREFIX): Depend on
38247         unsigned symbols, not on their signed counterparts.
38248         * lib/stdint_.h (uint64_t, uint_least64_t, uint_fast64_t, uintmax_t):
38249         (UINT64_MAX, UINT_LEAST64_MAX, UINT_FAST64_MAX, UINTMAX_MAX):
38250         (UINT64_C, UINTMAX_C):
38251         Likewise.
38252         * lib/strtoimax.c (strtoll): Depend on signed symbols, not their
38253         unsigned counterparts.
38254         (Have_long_long, Unsigned): New macros.
38255         (Int): Renamed from INT.
38256         (strtoimax): Use the new macros.
38257         * m4/stdint.m4 (gl_STDINT_H): Require AC_TYPE_UNSIGNED_LONG_LONG_INT
38258         and substitute HAVE_UNSIGNED_LONG_LONG_INT.
38259         * modules/inttypes (inttypes.h): Substitute
38260         HAVE_UNSIGNED_LONG_LONG_INT.
38261         * modules/stdint (stdint.h): Likewise.
38262         (Files): Add m4/ulonglong.m4.
38263
38264 2006-10-10  Bruno Haible  <bruno@clisp.org>
38265
38266         Fix a gcc -Wshadow warning.
38267         * lib/gl_anyhash_list2.h (hash_resize): Rename local variable 'index'
38268         to 'bucket'.
38269         * lib/gl_anylinked_list2.h (gl_linked_search_from_to,
38270         gl_linked_indexof_from_to): Likewise.
38271         * lib/gl_linkedhash_list.c (add_to_bucket, remove_from_bucket):
38272         Likewise.
38273         * lib/gl_anytreehash_list1.h (add_to_bucket, remove_from_bucket):
38274         Likewise.
38275         * lib/gl_anytreehash_list2.h (gl_tree_search_from_to): Likewise.
38276         Reported by Eric Blake.
38277
38278 2006-10-09  Paul Eggert  <eggert@cs.ucla.edu>
38279
38280         * lib/filemode.h [HAVE_DECL_STRMODE]: Include unistd.h too,
38281         for NetBSD.  Problem reported by Bruno Haible.
38282
38283 2006-10-09  Jim Meyering  <jim@meyering.net>
38284
38285         * lib/lchown.c: Include <sys/stat.h> before "stat-macros.h".
38286         Patch from Bruno Haible.
38287
38288 2006-10-09  Jim Meyering  <jim@meyering.net>
38289
38290         * lib/fts-cycle.c (leave_dir): When "leaving" a top level directory due
38291         to FTS_SKIP, don't copy the parent's uninitialized dev/ino values.
38292         Trigger with e.g., mkdir d && valgrind ./chmod u+rwx d d
38293
38294 2006-10-08  Paul Eggert  <eggert@cs.ucla.edu>
38295
38296         Don't include <config.h> twice; this doesn't work in some cases,
38297         e.g., when config.h has "#define intmax_t long long int" and
38298         we include <config.h>, <inttypes.h>, <config.h> in that order.
38299         Problem reported by Matthew Woehlke in:
38300         http://lists.gnu.org/archive/html/bug-coreutils/2006-10/msg00073.html
38301         * lib/fprintftime.c: Don't include config.h or fprintftime.h.
38302         * lib/fts-cycle.c: Don't include config.h.
38303         * lib/strftime.c: Include fprintftime.h if FPRINTFTIME is defined.
38304         * lib/xstrtoimax.c: Remove copyright notice since it's short tnow.
38305         Don't include config.h or xstrtol.h.  Define STRTOL_T_MINIMUM
38306         and STRTOL_T_MAXIMUM unconditionally, since we now assume gnulib
38307         inttypes.h.
38308         * lib/xstrtoumax.c: Likewise.
38309         * lib/xstrtol.c: Include config.h and xstrtol.h after defining
38310         __strtol and the like, so that this module is more like its siblings.
38311         (STRTOL_T_MINIMUM, STRTOL_T_MAXIMUM) [! defined STRTOL_T_MINIMUM]:
38312         Remove; no longer needed now that we assume gnulib inttypes.h.
38313
38314 2006-10-08  Bruno Haible  <bruno@clisp.org>
38315
38316         * doc/gnulib-tool.texi: Emphasize the drawbacks of the --symlink
38317         option.
38318
38319 2006-10-07  Jim Meyering  <jim@meyering.net>
38320
38321         * modules/inttypes (inttypes.h): Revert what seems to have been
38322         an inadvertent part of today's change: use "|", not "/" in the
38323         substitution for the "/"-containing string, $(ABSOLUTE_INTTYPES_H).
38324
38325 2006-10-07  Bruno Haible  <bruno@clisp.org>
38326
38327         * modules/sublist: New file.
38328
38329 2006-10-07  Bruno Haible  <bruno@clisp.org>
38330
38331         * modules/alloca-opt (alloca.h): Add a "DO NOT EDIT" comment.
38332         * modules/argz (argz.h): Likewise.
38333         * modules/arpa_inet (arpa/inet.h): Likewise.
38334         * modules/byteswap (byteswap.h): Likewise.
38335         * modules/configmake (configmake.h): Likewise.
38336         * modules/fcntl (fcntl.h): Likewise.
38337         * modules/fnmatch (fnmatch.h): Likewise.
38338         * modules/getopt (getopt.h): Likewise.
38339         * modules/glob (glob.h): Likewise.
38340         * modules/inttypes (inttypes.h): Likewise.
38341         * modules/netinet_in (netinet/in.h): Likewise.
38342         * modules/poll (poll.h): Likewise.
38343         * modules/stdbool (stdbool.h): Likewise.
38344         * modules/stdint (stdint.h): Likewise.
38345         * modules/sys_select (sys/select.h): Likewise.
38346         * modules/sys_socket (sys/socket.h): Likewise.
38347         * modules/sys_stat (sys/stat.h): Likewise.
38348         * modules/sysexits (sysexits.h): Likewise.
38349         * modules/unistd (unistd.h): Likewise.
38350         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
38351         Add a "DO NOT EDIT" comment to the generated file.
38352         (func_import): Likewise for gnulib-comp.m4.
38353
38354 2006-10-07  Bruno Haible  <bruno@clisp.org>
38355
38356         * lib/gl_sublist.h: New file.
38357         * lib/gl_sublist.c: New file.
38358
38359 2006-10-06  Paul Eggert  <eggert@cs.ucla.edu>
38360
38361         * lib/mkancesdirs.c (mkancesdirs): Pass to MAKE_DIR both the full file
38362         name (relative to the original working directory) and the file
38363         name component (relative to the temporary working directory).  All
38364         callers changed.
38365         * lib/mkancesdirs.h (mkancesdirs): Adjust prototype to match.
38366         * lib/mkdir-p.c (make_dir_parents): Likewise.
38367         * lib/mkdir-p.h (make_dir_parents): Likewise.
38368
38369 2006-10-06  Eric Blake  <ebb9@byu.net>
38370
38371         Define several macros for use by the clean-temp module.
38372         * m4/close-stream.m4 (gl_CLOSE_STREAM): Define GNULIB_CLOSE_STREAM.
38373         * m4/fcntl-safer.m4 (gl_FCNTL_SAFER): Define GNULIB_FCNTL_SAFER.
38374         * m4/stdio-safer.m4 (gl_FOPEN_SAFER): Define GNULIB_FOPEN_SAFER.
38375
38376         * lib/clean-temp.h (close_stream_temp): New declaration.
38377         * lib/clean-temp.c (includes): Pull in headers according to what
38378         other modules are in use.
38379         (close_stream_temp) [GNULIB_CLOSE_STREAM]: New function.
38380
38381 2006-10-06  Bruno Haible  <bruno@clisp.org>
38382
38383         * lib/javacomp.c (write_temp_file): Use fopen_temp, fwriteerror_temp
38384         instead of fopen, fwriteerror.
38385
38386 2006-10-06  Bruno Haible  <bruno@clisp.org>
38387
38388         * lib/clean-temp.h (cleanup_temp_file, cleanup_temp_subdir,
38389         cleanup_temp_dir_contents, cleanup_temp_dir): Change return type to
38390         int.
38391         * lib/clean-temp.c (do_unlink, do_rmdir, cleanup_temp_file,
38392         cleanup_temp_subdir, cleanup_temp_dir_contents, cleanup_temp_dir):
38393         Return an error indicator.
38394         Suggested by Eric Blake.
38395
38396 2006-10-06  Bruno Haible  <bruno@clisp.org>
38397
38398         * lib/clean-temp.c (PATH_MAX): Provide a fallback for GNU Hurd.
38399         Reported by Eric Blake.
38400
38401 2006-10-06  Bruno Haible  <bruno@clisp.org>
38402
38403         * modules/closeout (Description): Mention stderr too.
38404
38405 2006-10-06  Bruno Haible  <bruno@clisp.org>
38406         and Paul Eggert  <eggert@cs.ucla.edu>
38407
38408         * lib/closeout.c (close_stdout): Also close stderr.
38409         * lib/closeout.h: Update comment.
38410
38411 2006-10-05  Paul Eggert  <eggert@cs.ucla.edu>
38412
38413         Fix some Darwin-7.9.0 porting problems reported by Bruno Haible in
38414         <http://lists.gnu.org/archive/html/bug-coreutils/2006-10/msg00063.html>.
38415         * lib/dirchownmod.c: Include lchown.h.
38416         * lib/lchown.c: Don't include files that lchown.h now includes.
38417         Don't declare chown, since lchown.h now does that.
38418         * lib/lchown.h: Include errno.h, sys/types.h, unistd.h.
38419         (lchown): Define to rpl_chown if lchown is declared but
38420         does not exist.  Declare using a prototype if lchown is not
38421         declared.  Add a copyright notice.
38422         * lib/mkstemp.h: Include <unistd.h>.
38423         * lib/openat.c: Include lchown.h.
38424
38425         * lib/fcntl_.h (O_NOFOLLOW): Don't depend on O_NOFOLLOW_IS_INEFFECTIVE;
38426         we now test for that separately.
38427         * lib/fts.c (fts_safe_changedir): Inspect HAVE_WORKING_O_NOFOLLOW
38428         rather than O_NOFOLLOW, when testing whether it's possible to
38429         avoid a race condition reliably.
38430         * lib/savewd.c (savewd_chdir): Likewise.
38431
38432         Remove macros that are no longer needed now that stdint.h is
38433         reliable.
38434         * lib/fsusage.c (UINTMAX_MAX): Remove.
38435         * lib/human.c (SIZE_MAX, UINTMAX_MAX): Remove.
38436         * lib/utimecmp.c (SIZE_MAX): Remove.
38437
38438         * m4/lchown.m4 (gl_FUNC_LCHOWN): Check whether lchown is declared.
38439
38440         * m4/fcntl_h.m4 (gl_FCNTL_H): Define HAVE_WORKING_O_NOFOLLOW instead
38441         of O_NOFOLLOW_IS_INEFFECTIVE.  Define HAVE_WORKING_O_NOATIME if
38442         O_NOATIME works.
38443
38444 2006-10-05  Bruno Haible  <bruno@clisp.org>
38445
38446         * lib/gl_list.h (gl_sortedlist_search_from_to,
38447         gl_sortedlist_indexof_from_to): New declarations.
38448         (gl_list_implementation): New fields sortedlist_search_from_to,
38449         sortedlist_indexof_from_to.
38450         (gl_sortedlist_search_from_to, gl_sortedlist_indexof_from_to): New
38451         inline functions.
38452         * lib/gl_list.c (gl_sortedlist_search_from_to,
38453         gl_sortedlist_indexof_from_to): New functions.
38454         * lib/gl_array_list.c (gl_array_sortedlist_indexof_from_to): New
38455         function.
38456         (gl_array_sortedlist_indexof, gl_array_sortedlist_search): Use it.
38457         (gl_array_sortedlist_search_from_to): New function.
38458         (gl_array_list_implementation): Update.
38459         * lib/gl_carray_list.c (gl_carray_sortedlist_indexof_from_to): New
38460         function.
38461         (gl_carray_sortedlist_indexof, gl_carray_sortedlist_search): Use it.
38462         (gl_carray_sortedlist_search_from_to): New function.
38463         (gl_carray_list_implementation): Update.
38464         * lib/gl_anylinked_list2.h (gl_linked_sortedlist_search_from_to,
38465         gl_linked_sortedlist_indexof_from_to): New functions.
38466         * lib/gl_linked_list.c (gl_linked_list_implementation): Update.
38467         * lib/gl_linkedhash_list.c (gl_linkedhash_list_implementation): Update.
38468         * lib/gl_anytree_list2.h (gl_tree_sortedlist_search_from_to,
38469         gl_tree_sortedlist_indexof_from_to): New functions.
38470         * lib/gl_avltree_list.c (gl_avltree_list_implementation): Update.
38471         * lib/gl_avltreehash_list.c (gl_avltreehash_list_implementation):
38472         Update.
38473         * lib/gl_rbtree_list.c (gl_rbtree_list_implementation): Update.
38474         * lib/gl_rbtreehash_list.c (gl_avltreehash_list_implementation):
38475         Update.
38476
38477 2006-10-05  Bruno Haible  <bruno@clisp.org>
38478
38479         * lib/gl_list.h (gl_list_search_from, gl_list_search_from_to,
38480         gl_list_indexof_from, gl_list_indexof_from_to): New declarations.
38481         (struct gl_list_implementation): Add fields search_from_to,
38482         indexof_from_to. Remove fields search, indexof.
38483         (gl_list_search): Use the search_from_to method.
38484         (gl_list_search_from, gl_list_search_from_to): New functions.
38485         (gl_list_indexof): Use the indexof_from_to method.
38486         (gl_list_indexof_from, gl_list_indexof_from_to): New functions.
38487         * lib/gl_list.c (gl_list_search): Use the search_from_to method.
38488         (gl_list_search_from, gl_list_search_from_to): New functions.
38489         (gl_list_indexof): Use the indexof_from_to method.
38490         (gl_list_indexof_from, gl_list_indexof_from_to): New functions.
38491         * lib/gl_array_list.c (gl_array_indexof_from_to): Renamed from
38492         gl_array_indexof. Add start_index, end_index arguments.
38493         (gl_array_search_from_to): Renamed from gl_array_search. Add
38494         start_index, end_index arguments.
38495         (gl_array_remove, gl_array_list_implementation): Update.
38496         * lib/gl_carray_list.c (gl_carray_indexof_from_to): Renamed from
38497         gl_carray_indexof. Add start_index, end_index arguments.
38498         (gl_carray_search_from_to): Renamed from gl_carray_search. Add
38499         start_index, end_index arguments.
38500         (gl_carray_remove, gl_carray_list_implementation): Update.
38501         * lib/gl_anylinked_list2.h (gl_linked_search_from_to): Renamed from
38502         gl_linked_search. Add start_index, end_index arguments.
38503         (gl_linked_indexof_from_to): Renamed from gl_linked_indexof. Add
38504         start_index, end_index arguments.
38505         (gl_linked_remove): Update.
38506         * lib/gl_linked_list.c (gl_linked_list_implementation): Update.
38507         * lib/gl_linkedhash_list.c (gl_linkedhash_list_implementation): Update.
38508         * lib/gl_anytree_list1.h (iterstack_item_t): Change type of 'rightp'
38509         field to 'size_t'.
38510         * lib/gl_anytree_list2.h (gl_tree_search_from_to): Renamed from
38511         gl_tree_search. Add start_index, end_index arguments.
38512         (gl_tree_indexof_from_to): Renamed from gl_tree_indexof. Add
38513         start_index, end_index arguments.
38514         (gl_tree_remove): Update.
38515         * lib/gl_avltree_list.c (gl_avltree_list_implementation): Update.
38516         * lib/gl_rbtree_list.c (gl_rbtree_list_implementation): Update.
38517         * lib/gl_anytreehash_list1.h (compare_position_threshold): New
38518         function.
38519         * lib/gl_anytreehash_list2.h (gl_tree_search_from_to): Renamed from
38520         gl_tree_search. Add start_index, end_index arguments.
38521         (gl_tree_indexof_from_to): Renamed from gl_tree_indexof. Add
38522         start_index, end_index arguments.
38523         * lib/gl_avltreehash_list.c (gl_avltreehash_list_implementation):
38524         Update.
38525         * lib/gl_rbtreehash_list.c (gl_rbtreehash_list_implementation): Update.
38526
38527 2006-10-05  Bruno Haible  <bruno@clisp.org>
38528
38529         * modules/fwriteerror (configure.ac): Define GNULIB_FWRITEERROR.
38530
38531         * lib/clean-temp.h (open_temp, fopen_temp, close_temp, fclose_temp,
38532         fwriteerror_temp): New declarations.
38533         * lib/clean-temp.c (uintptr_t): Provide fallback definition.
38534         (descriptors): New variable.
38535         (cleanup): First, close the descriptors.
38536         (register_fd, unregister_fd, open_temp, fopen_temp, close_temp,
38537         fclose_temp, fwriteerror_temp): New functions.
38538
38539 2006-10-04  Jim Meyering  <jim@meyering.net>
38540
38541         * lib/fts.c (fts_open): Tiny comment change.
38542
38543 2006-10-04  Bruno Haible  <bruno@clisp.org>
38544
38545         Make it possible to invoke AC_GNU_SOURCE after gl_LOCK_EARLY.
38546         * m4/lock.m4 (gl_LOCK_EARLY_BODY): New macro, extracted code from
38547         gl_LOCK_BODY.
38548         (gl_LOCK_EARLY): Require gl_LOCK_EARLY_BODY, not gl_LOCK_BODY.
38549         (gl_LOCK_BODY): Remove settings of CPPFLAGS, now done in
38550         gl_LOCK_EARLY_BODY.
38551         (gl_LOCK): Require gl_LOCK_BODY.
38552
38553 2006-10-04  Bruno Haible  <bruno@clisp.org>
38554
38555         * lib/gl_oset.h (gl_setelement_threshold_fn): New type.
38556         (gl_oset_search_atleast): New declaration.
38557         (struct gl_oset_implementation): Add field 'search_atleast'.
38558         (gl_oset_search_atleast): New inline function.
38559         * lib/gl_oset.c (gl_oset_search_atleast): New function.
38560         * lib/gl_array_oset.c (gl_array_search_atleast): New function.
38561         (gl_array_oset_implementation): Update.
38562         * lib/gl_anytree_oset.h (gl_tree_search_atleast): New function.
38563         * lib/gl_avltree_oset.c (gl_avltree_oset_implementation): Update.
38564         * lib/gl_rbtree_oset.c (gl_rbtree_oset_implementation): Update.
38565
38566 2006-10-04  Bruno Haible  <bruno@clisp.org>
38567
38568         * lib/fatal-signal.c (fatal_signals) [WOE32]: Add the SIGBREAK signal.
38569
38570 2006-10-03  Bruno Haible  <bruno@clisp.org>
38571
38572         * lib/gl_rbtreehash_list.c (gl_rbtreehash_list_implementation): Renamed
38573         from gl_avltreehash_list_implementation.
38574
38575 2006-10-03  Bruno Haible  <bruno@clisp.org>
38576
38577         * lib/gl_oset.c (gl_oset_add): Fix return type.
38578
38579 2006-10-02  Paolo Bonzini  <bonzini@gnu.org>  (tiny change)
38580
38581         * lib/quotearg.c (mbstate_t) [!HAVE_MBRTOWC]: #define to int.
38582
38583 2006-10-02  Eric Blake  <ebb9@byu.net>
38584
38585         * modules/strnlen (Depends-on): Add extensions.
38586
38587 2006-10-02  Eric Blake  <ebb9@byu.net>
38588
38589         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Use autoconf's
38590         definition in 2.60+.
38591
38592 2006-10-02  Dmitry V. Levin  <ldv@altlinux.org>
38593
38594         * lib/fts.c (fts_close, fts_build, fts_palloc): Remove redundant
38595         checks.
38596
38597 2006-10-02  Bruno Haible  <bruno@clisp.org>
38598
38599         * gnulib-tool (func_emit_lib_Makefile_am): Don't add no-dependencies
38600         to the AUTOMAKE_OPTIONS.
38601         Reported by Jim Meyering.
38602
38603 2006-09-29  Paul Eggert  <eggert@cs.ucla.edu>
38604
38605         Work around bug in Solaris 10 /proc file system:
38606         /proc/self/fd/NNN/.. isn't the parent directory of
38607         the directory whose file descriptor is NNN.  This needs to
38608         be worked around at run time, not compile time, since a
38609         program might be built on Solaris 8, where things work, and
38610         run on Solaris 10.
38611         * lib/openat-priv.h (BUILD_PROC_NAME): Remove.  All callers changed
38612         to use the following interface instead:
38613         (OPENAT_BUFFER_SIZE): New macro.
38614         (openat_proc_name): New function.
38615         * lib/at-func.c (AT_FUNC_NAME): Adjust to above changes.
38616         * lib/openat.c (openat_permissive, openat_needs_fchdir, fdopendir):
38617         Likewise.
38618         * lib/openat-proc.c: New file.
38619         * modules/openat (Files): Add lib/openat-proc.c.
38620         (Depends-on): Add same-inode, stdbool.
38621         * m4/openat.m4 (gl_FUNC_OPENAT): Add AC_LIBOBJ(openat-proc).
38622
38623 2006-09-29  Bruno Haible  <bruno@clisp.org>
38624
38625         * lib/fwriteerror.h (fwriteerror_no_ebadf): New declaration.
38626         * lib/(do_fwriteerror): Renamed from fwriteerror. Add ignore_ebadf
38627         argument. Set stdout_closed before testing for ferror, not after.
38628         (fwriteerror, fwriteerror_no_ebadf): New functions.
38629
38630 2006-09-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
38631
38632         * m4/intmax.m4 (gt_TYPE_INTMAX_T): Avoid unused variables warning.
38633
38634 2006-09-28  Paolo Bonzini  <bonzini@gnu.org>
38635
38636         * lib/poll.c (rpl_poll) [__APPLE__]: Use FIONREAD instead of MSG_PEEK.
38637         * m4/poll.m4: Look for sys/ioctl.h and sys/filio.h.
38638
38639 2006-09-28  Jim Meyering  <jim@meyering.net>
38640
38641         * lib/mkdir-p.c: Include "dirchownmod.h", not "dirchownmod.c".
38642         Include <unistd.h>.
38643
38644 2006-09-28  Bruno Haible  <bruno@clisp.org>
38645
38646         * modules/avltreehash-list (Depends-on): Add stdint, remove size_max.
38647         * modules/linkedhash-list (Depends-on): Likewise.
38648         * modules/rbtreehash-list (Depends-on): Likewise.
38649
38650 2006-09-28  Bruno Haible  <bruno@clisp.org>
38651
38652         * lib/strndup.h: Simplify the redefinition of strndup.
38653         (_GL_CONCAT, _GL_XCONCAT, __STRNDUP_ID): Remove macros.
38654         * m4/strndup.m4 (gl_FUNC_STRNDUP): Don't define __STRNDUP_PREFIX.
38655
38656 2006-09-28  Bruno Haible  <bruno@clisp.org>
38657
38658         * lib/gl_avltreehash_list.c: Include <stdint.h> instead of size_max.h.
38659         * lib/gl_linkedhash_list.c: Likewise.
38660         * lib/gl_rbtreehash_list.c: Likewise.
38661
38662 2006-09-27  Paul Eggert  <eggert@cs.ucla.edu>
38663
38664         * lib/canon-host.c (canon_host_r): Work around bug in Darwin 7.9.0
38665         getaddrinfo.
38666
38667         * lib/__fpending.h: Don't include <stdio_ext.h> unless
38668         HAVE_DECL___FPENDING.  This avoids a bug with lsbcc, where
38669         it causes <stdio_ext.h> to cause a compile-time error.
38670         Problem reported by Nelson H. F. Beebe.
38671         * lib/getpass.c: Likewise, except for HAVE_DECL___FSETLOCKING instead
38672         of HAVE_DECL___PENDING.
38673
38674         * m4/fpending.m4 (gl_FUNC_FPENDING): Check for stdio_ext at most once.
38675         * m4/getpass.m4 (gl_PREREQ_GETPASS): Check for __fsetlocking's
38676         declaration.
38677
38678 2006-09-27  Jim Meyering  <jim@meyering.net>
38679
38680         This file could end up with a definition for a function
38681         named __strndup, rather than rpl_strndup on a system with
38682         incomplete weak_alias support.
38683         * lib/strndup.c (strndup): Rename from __strndup.
38684         Remove #defines that used to map __strndup to strndup.
38685         Don't use K&R prototypes.
38686         Remove LIBC-related code, since this file is not sync'd with glibc.
38687         * lib/strndup.h: Revamp, accordingly.
38688         * m4/strndup.m4: Modernize.
38689
38690 2006-09-26  Paul Eggert  <eggert@cs.ucla.edu>
38691
38692         * modules/savewd (Depends-on): Add 'raise'.
38693         * lib/savewd.c: Include <signal.h>, for 'raise'.
38694
38695 2006-09-26  Jim Meyering  <jim@meyering.net>
38696
38697         * m4/acl.m4 (AC_FUNC_ACL): Disable ACL support altogether
38698         when we detect Darwin 8.7.0's acl_get_file bug.
38699         Rearrange to perform the new (below) run-test while $LIBS
38700         contains any acl-related library.  Set USE_ACL at the end.
38701         (gl_ACL_GET_FILE): New function.
38702
38703 2006-09-26  Eric Blake  <ebb9@byu.net>
38704
38705         * lib/verror.c: Include <config.h> unconditionally.
38706
38707 2006-09-25  Paul Eggert  <eggert@cs.ucla.edu>
38708
38709         * modules/clock-time (Maintainer): Add self.
38710         * modules/getlogin_r (Depends-on): Add extensions.
38711
38712 2006-09-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
38713
38714         * modules/clock-time: New module.
38715         * modules/nanosleep (Depends-on): Add clock-time.
38716         * modules/gethrxtime (Depends-on): Likewise.
38717         * modules/gettime (Depends-on): Likewise.
38718         * modules/settime (Depends-on): Likewise.
38719
38720         * modules/fts-lgpl: Depend on openat.
38721         * modules/mkancesdirs: Depend on savewd.
38722         * modules/mkdir-p: Likewise.
38723
38724 2006-09-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
38725
38726         * m4/host-os.m4 (gl_HOST_OS): Require AC_CANONICAL_HOST.
38727
38728         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Rename cache variable from
38729         `gl_have_arbitrary_file_name_length_limit' to
38730         `gl_cv_have_arbitrary_file_name_length_limit', so that caching
38731         actually works between configure runs.
38732
38733 2006-09-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
38734             Bruno Haible  <bruno@clisp.org>
38735
38736         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Include <string.h>.
38737
38738 2006-09-25  Jim Meyering  <jim@meyering.net>
38739
38740         * m4/fcntl_h.m4 (gl_FCNTL_H): Fix typo in test for failed open.
38741         This typo caused coreutils/tests/dd/misc to fail on Darwin 8.7.0.
38742
38743 2006-09-25  Eric Blake  <ebb9@byu.net>
38744
38745         * gnulib-tool (func_import, func_create_testdir): Fix typos in
38746         exec's in 2006-09-18 patch when shuffling fds.
38747
38748 2006-09-25  Bruno Haible  <bruno@clisp.org>
38749
38750         * m4/getloadavg.m4 (gl_GETLOADAVG): Fix directory in error message.
38751         Reported by Jim Meyering.
38752
38753 2006-09-24  Jim Meyering  <jim@meyering.net>
38754
38755         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Don't use '>' to
38756         compare a pointer against a literal "0".  That caused failures with
38757         at least HP-UX's hpcc.
38758
38759 2006-09-22  Simon Josefsson  <jas@extundo.com>
38760
38761         * modules/gc-sha1:
38762         * modules/gc-md4:
38763         * modules/gc-hmac-sha1:
38764         * modules/gc-hmac-md5:
38765         * modules/gc-des:
38766         * modules/gc-arcfour: Distribute more files.
38767
38768 2006-09-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
38769
38770         * lib/gl_anylinked_list2.h [lint] (gl_linked_iterator)
38771         (gl_linked_iterator_from_to): Initialize struct completely.
38772         * lib/gl_anytree_list2.h [lint] (gl_tree_iterator): Likewise.
38773         (gl_tree_iterator_from_to): Likewise
38774         * lib/gl_anytree_oset.h [lint] (gl_tree_iterator): Likewise.
38775         * lib/gl_array_list.c [lint] (gl_array_iterator)
38776         (gl_array_iterator_from_to): Likewise.
38777         * lib/gl_array_oset.c [lint] (gl_array_iterator): Likewise.
38778         * lib/gl_carray_list.c [lint] (gl_carray_iterator)
38779         (gl_carray_iterator_from_to): Likewise.
38780
38781         * lib/gc-gnulib.c [GC_USE_HMAC_SHA1]: include hmac.h for hmac_sha1.
38782         * lib/md4.c (md4_process_block): Remove unused variable.
38783         * lib/rijndael-api-fst.c (rijndaelBlockDecrypt): GCC suggests
38784         parentheses for clarity.
38785
38786 2006-09-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
38787
38788         * modules/bison-i18n (Depends-on): Add gettext.
38789
38790 2006-09-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
38791
38792         * m4/fsusage.m4 (gl_STATFS_TRUNCATES): Avoid unused variable.
38793         * m4/getdate.m4 (gl_C_COMPOUND_LITERALS): Likewise.
38794         * m4/jm-winsz1.m4 (gl_HEADER_TIOCGWINSZ_IN_TERMIOS_H): Likewise;
38795         also add missing comma that caused broken test.
38796         * m4/link-follow.m4 (gl_AC_FUNC_LINK_FOLLOWS_SYMLINK): Include
38797         stdlib.h, for `abort'.
38798         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Avoid unused
38799         variables.
38800         * m4/mkdir-slash.m4 (gl_FUNC_MKDIR_TRAILING_SLASH): Check for and
38801         include unistd.h if present, for `rmdir'.
38802         * m4/physmem.m4 (gl_SYS__SYSTEM_CONFIGURATION): Avoid unused
38803         variables.
38804         * m4/putenv.m4 (gl_FUNC_PUTENV): Rewrite using AC_RUN_IFELSE, and
38805         in the process include standard headers for prototypes.
38806         * m4/readutmp.m4 (gl_READUTMP): Require AC_GNU_SOURCE, so utmpxname
38807         gets declared on GNU/Linux.
38808         * m4/rmdir-errno.m4 (gl_FUNC_RMDIR_NOTEMPTY): Check for and include
38809         unistd.h, for `rmdir'.
38810         * m4/time_r.m4 (gl_TIME_R): Avoid unused variables.
38811
38812         * m4/fnmatch.m4 (_AC_FUNC_FNMATCH_IF): Avoid expression that is
38813         always true.
38814         * m4/strndup.m4 (gl_FUNC_STRNDUP): include stdlib.h, for `free'.
38815
38816         * m4/sockpfaf.m4 (gl_SOCKET_FAMILIES): Avoid gcc -Wall warnings.
38817
38818 2006-09-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
38819
38820         * gnulib-tool (func_version): Create output all at once.  This
38821         may help avoid triggering unnecessary SIGPIPEs, and at any
38822         rate it doesn't hurt.
38823
38824 2006-09-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
38825             Bruno Haible  <bruno@clisp.org>
38826
38827         * m4/lock.m4 (gl_LOCK_BODY): Avoid unused variables warning.
38828         * m4/mbswidth.m4 (gl_MBSWIDTH): Likewise.
38829         * m4/signed.m4 (bh_C_SIGNED): Likewise.
38830
38831         * m4/vasprintf.m4 (gl_PREREQ_VASPRINTF_H): New macro.
38832         (gl_FUNC_VASPRINTF): Invoke it.
38833
38834 2006-09-22  Bruno Haible  <bruno@clisp.org>
38835
38836         * m4/getloadavg.m4 (gl_GETLOADAVG): Expect the directory of
38837         getloadavg.c as first argument.
38838
38839 2006-09-22  Bruno Haible  <bruno@clisp.org>
38840
38841         * gnulib-tool (func_import, func_create_testdir): Set gl_source_base
38842         at the beginning of the gl_INIT macro.
38843         * modules/getloadavg (configure.ac): Pass $gl_source_base to
38844         gl_GETLOADAVG.
38845
38846 2006-09-22  Bruno Haible  <bruno@clisp.org>
38847
38848         * gnulib-tool (func_create_megatestdir): Don't include the config-h
38849         module.
38850         Suggested by Ralf Wildenhues.
38851
38852 2006-09-20  Paul Eggert  <eggert@cs.ucla.edu>
38853
38854         Import this patch from libc:
38855
38856         2006-09-06  Jakub Jelinek  <jakub@redhat.com>
38857
38858         * lib/regex_internal.c (re_string_reconstruct): Handle
38859         offset < pstr->valid_raw_len && pstr->offsets_needed case.
38860         Ensure no bytes read before raw_mbs array.  Pass a saved copy of
38861         pstr->valid_len - 1 rather than pstr->valid_raw_len - 1 to
38862         re_string_context_at.
38863
38864         * m4/regex.m4 (gl_REGEX): Check for locale.h, since the test
38865         now requires it.
38866         (gl_PREREQ_REGEX): Don't check for locale.h any more, since
38867         gl_REGEX now does it for us.
38868         (gl_REGEX): Add test taken from
38869         http://sourceware.org/ml/libc-hacker/2006-09/msg00008.html.
38870
38871         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Require AC_SYS_LARGEFILE.
38872         Check that large offsets work.  Modernize Autoconf usages.
38873         Prefer "yes" to mean a good thing rather than a bad.
38874         Don't put "#define mkstemp" in config.h, as this might interfere
38875         with standard system headers that "#define mkstemp mkstemp64".
38876
38877         * modules/mkstemp (Depends-on): Add extensions, so that
38878         mkstemp is visible on some platforms.
38879         (Makefile.am): Add mkstemp.h to EXTRA_DIST.
38880         (Include): Change to "mkstemp.h" from <stdlib.h>.
38881         (Files): Add mkstemp.h.
38882
38883         * lib/mkstemp.h: New file, since some standard headers
38884         #define mkstemp.
38885         * lib/mkstemp.c: Revamp to put the !_LIBC code together.
38886         Include "mkstemp.h".
38887         Make the _LIBC code resemble glibc original more,
38888         e.g., use K&R style.
38889         * lib/mkstemp-safer.c: Include "mkstemp.h" instead of <stdlib.h>.
38890         (mkstemp): Remove, since mkstemp.h does this for us.
38891         * lib/stdlib--.h: Include mkstemp.h.
38892
38893         Import this patch from libc:
38894
38895         2006-04-07  Ulrich Drepper  <drepper@redhat.com>
38896
38897         * lib/tempname.c (__gen_tempname): Change attempts_min
38898         into a macro.  Use preprocessor to decide how to initialize
38899         attempts [Coverity CID 67].
38900
38901 2006-09-20  Bruno Haible  <bruno@clisp.org>
38902
38903         * lib/mkdtemp.c: Import from libc.
38904         2006-04-07  Ulrich Drepper  <drepper@redhat.com>
38905                 * sysdeps/posix/tempname.c (__gen_tempname): Change
38906                 attempts_min into a macro.  Use preprocessor to decide how to
38907                 initialize attempts [Coverity CID 67].
38908         2001-11-27  Paul Eggert  <eggert@twinsun.com>
38909                 * sysdeps/posix/tempname.c (__gen_tempname): Try at least
38910                 ATTEMPTS_MIN or TMP_MAX times, whichever is greater.
38911
38912 2006-09-19  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
38913
38914         * gnulib-tool (func_exit): New function, to allow to pass the
38915         exit status portably through the trap.  Use everywhere.
38916         (--help, --version): Signal a write error.
38917         (trap): catch SIGPIPE, for write errors.
38918         Exit at the end of the trap, with the correct exit status.
38919
38920 2006-09-19  Karl Berry  <karl@gnu.org>
38921
38922         * doc/gnulib.texi: note about the license texinfo files.
38923
38924 2006-09-19  Eric Blake  <ebb9@byu.net>
38925
38926         * gnulib-tool: Avoid space-tab.
38927
38928 2006-09-18  Paul Eggert  <eggert@cs.ucla.edu>
38929
38930         * lib/getaddrinfo.c (getaddrinfo) [defined HAVE_IPV6]: Fix typo
38931         that prevented coreutils 6.1 from building.  Problem reported
38932         by Petter Reinholdtsen.
38933
38934 2006-09-18  Paul Eggert  <eggert@cs.ucla.edu>
38935
38936         * gnulib-tool (avoidlist): Fix typo that broke options like
38937         --avoid=lock that are used by coreutils bootstrap.
38938
38939 2006-09-18  Mark D. Baushke  <mdb@gnu.org>
38940
38941         * m4/inttypes.m4 (gl_INTTYPES_H): Quote "test" args
38942         more systematically.
38943
38944 2006-09-18  Jim Meyering  <jim@meyering.net>
38945
38946         * lib/savewd.c (savewd_restore): Don't shadow: s/status/child_status/.
38947
38948 2006-09-18  Bruno Haible  <bruno@clisp.org>
38949
38950         * modules/inttypes (Files): Remove m4/inttypes-h.m4.
38951
38952 2006-09-18  Bruno Haible  <bruno@clisp.org>
38953
38954         * m4/inttypes-h.m4 (gl_HEADER_INTTYPES_H): Remove macro.
38955         * m4/inttypes-pri.m4: Require autoconf >= 2.52.
38956         (gt_INTTYPES_PRI): Invoke AC_CHECK_HEADERS on inttypes.h. Test
38957         ac_cv_header_inttypes_h instead of gl_cv_header_inttypes_h.
38958         * m4/gettext.m4: Require autoconf >= 2.52.
38959         (gt_INTL_SUBDIR_CORE): Invoke AC_CHECK_HEADERS on inttypes.h.
38960         * m4/inttypes.m4 (gl_INTTYPES_H): Test ac_cv_header_inttypes_h instead
38961         of gl_cv_header_inttypes_h.
38962
38963 2006-09-18  Bruno Haible  <bruno@clisp.org>
38964
38965         * lib/javaversion.c: Include configmake.h.
38966
38967 2006-09-18  Bruno Haible  <bruno@clisp.org>
38968
38969         * gnulib-tool (func_import, func_create_testdir): Use exec tricks to
38970         avoid that the while loops be executed in a subshell.
38971
38972 2006-09-18  Bruno Haible  <bruno@clisp.org>
38973
38974         * MODULES.html.sh (func_module): Break long lines.
38975         Suggested by Bruce Korb <bkorb@gnu.org>.
38976
38977 2006-09-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
38978
38979         Speed up by a factor of 1.12.
38980         * gnulib-tool (nl): New variable.
38981         (func_import): Rewrite include directive extraction to only read each
38982         directive once.
38983
38984 2006-09-17  Bruno Haible  <bruno@clisp.org>
38985
38986         * modules/javaversion (Makefile.am): Remove DEFS setting.
38987         (Depends-on): Add configmake, for PKGDATADIR definition.
38988
38989 2006-09-17  Bruno Haible  <bruno@clisp.org>
38990
38991         * gnulib-tool (func_create_testdir): Rewrite all files at once.
38992
38993 2006-09-17  Bruno Haible  <bruno@clisp.org>
38994
38995         * gnulib-tool (func_append): New function, stolen from libtool.m4.
38996         (func_modules_transitive_closure, func_modules_add_dummy,
38997         func_modules_to_filelist, func_import, func_create_testdir,
38998         func_create_megatestdir, ...): Use it wherever possible.
38999         Suggested by Ralf Wildenhues.
39000
39001 2006-09-16  Karl Berry  <karl@gnu.org>
39002
39003         * doc/fdl.texi (ADDENDUM): switch to @heading from @appendixsubsec,
39004         to avoid sectioning errors.
39005         * doc/lgpl.texi, gpl.texi (Copying): downcase @unnumbered title.
39006         [ifinfo]: blank line after @center-ed titles.
39007         * doc/lgpl.texi (Library Copying): Rename main node to GNU LGPL.
39008         Spell FSF address consistently with others.
39009         (These changes approved by rms.)
39010
39011 2006-09-15  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
39012
39013         Speed up by a factor of 1.61.
39014         * gnulib-tool (func_modules_transitive_closure): Rewrite to not check
39015         already checked module names again.
39016
39017 2006-09-15  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
39018
39019         Speed up by a factor of 1.13.
39020         * gnulib-tool (func_import): Rewrite all old_files at once; likewise
39021         for new_files, and the input to func_add_or_update.
39022
39023 2006-09-15  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
39024
39025         * gnulib-tool (func_all_modules, func_modules_to_filelist, func_import,
39026         func_create_testdir, ...): Change 'sort | uniq' to 'sort -u'.
39027
39028 2006-09-15  Paul Eggert  <eggert@cs.ucla.edu>
39029
39030         * modules/mkancesdirs (Depends-on): Add fcntl.
39031         * modules/savewd: New file.
39032         * MODULES.html.sh (File system functions): Add savewd.
39033
39034         * modules/configmake (Makefile.am): Add support for the
39035         Automake-supplied PKGLIBDIR, PKGINCLUDEDIR, PKGDATADIR.
39036
39037 2006-09-15  Paul Eggert  <eggert@cs.ucla.edu>
39038
39039         * m4/savewd.m4: New file.
39040
39041 2006-09-15  Paul Eggert  <eggert@cs.ucla.edu>
39042
39043         * lib/dirchownmod.c: Don't include fcntl.h; no longer needed.
39044         (dirchownmod): New arg FD.  All callers changed.
39045         Use FD rather than opening the directory ourself, as opening is
39046         now the caller's responsibility.
39047         * lib/dirchownmod.h: Likewise.
39048         * lib/mkancesdirs.c: Include <sys/types.h>, for portability to older
39049         hosts that require <sys/types.h> before <sys/stat.h>.  Include
39050         fcntl.h, savewd.h, and unistd.h, not dirname.h and stat-macros.h.
39051         (test_dir): Remove.
39052         (mkancesdirs): Return length of prefix of FILE that has already
39053         been made, or -2 if there is a child doing the work.  Redo
39054         algorithm so that it is O(N) rather than O(N**2).  Optimize away
39055         ".", and treat ".." specially since it might stray back into
39056         already-created areas.  Use a subprocess if necessary.  New arg
39057         WD; all users changed.  MAKE_DIR function should now return 1
39058         if it creates a directory that is not readable.  Return -2 if
39059         a child process is spun off.
39060         * lib/mkancesdirs.h: Include <stddef.h>, for ptrdiff_t.
39061         Adjust signature to match code.
39062         * lib/mkdir-p.c: Include dirname.h, for IS_ABSOLUTE_FILE_NAME.
39063         (make_dir_parents): Use a subprocess if necessary.  New arg WD;
39064         all users changed.
39065         * lib/savewd.c, lib/savewd.h: New files.
39066
39067 2006-09-15  Jim Meyering  <jim@meyering.net>
39068
39069         * modules/rename-dest-slash: New module.
39070         * MODULES.html.sh (posix_compat): Add it here.
39071
39072         * modules/rename: Reflect vb_FUNC_RENAME -> gl_FUNC_RENAME change.
39073
39074 2006-09-15  Jim Meyering  <jim@meyering.net>
39075
39076         * m4/rename-dest-slash.m4 (gl_FUNC_RENAME_TRAILING_DEST_SLASH): New
39077         file.
39078
39079         * m4/rename.m4 (gl_FUNC_RENAME): Rename from vb_FUNC_RENAME.
39080
39081 2006-09-15  Jim Meyering  <jim@meyering.net>
39082
39083         * lib/rename-dest-slash.c (has_trailing_slash): Use
39084         FILE_SYSTEM_PREFIX_LEN, for non-POSIX systems.
39085         (rpl_rename_dest_slash): Perform the cheaper trailing slash
39086         test before testing whether SRC is a directory.
39087         Suggestions from Bruno Haible.
39088
39089         Avoid a warning about an unused variable.
39090         * lib/regex_internal.c (re_dfa_add_node): Move declaration of "type"
39091         into the #ifdef block where it's used.
39092
39093         * lib/rename-dest-slash.c: New file.
39094
39095 2006-09-14  Bruno Haible  <bruno@clisp.org>
39096
39097         * lib/allocsa.c: Include <config.h> unconditionally.
39098         * lib/asnprintf.c: Likewise.
39099         * lib/asprintf.c: Likewise.
39100         * lib/c-strcasecmp.c: Likewise.
39101         * lib/c-strcasestr.c: Likewise.
39102         * lib/c-strncasecmp.c: Likewise.
39103         * lib/c-strstr.c: Likewise.
39104         * lib/classpath.c: Likewise.
39105         * lib/clean-temp.c: Likewise.
39106         * lib/concatpath.c: Likewise.
39107         * lib/copy-file.c: Likewise.
39108         * lib/csharpcomp.c: Likewise.
39109         * lib/csharpexec.c: Likewise.
39110         * lib/execute.c: Likewise.
39111         * lib/fatal-signal.c: Likewise.
39112         * lib/findprog.c: Likewise.
39113         * lib/fwriteerror.c: Likewise.
39114         * lib/gl_array_list.c: Likewise.
39115         * lib/gl_array_oset.c: Likewise.
39116         * lib/gl_avltree_list.c: Likewise.
39117         * lib/gl_avltree_oset.c: Likewise.
39118         * lib/gl_avltreehash_list.c: Likewise.
39119         * lib/gl_carray_list.c: Likewise.
39120         * lib/gl_linked_list.c: Likewise.
39121         * lib/gl_linkedhash_list.c: Likewise.
39122         * lib/gl_list.c: Likewise.
39123         * lib/gl_oset.c: Likewise.
39124         * lib/gl_rbtree_list.c: Likewise.
39125         * lib/gl_rbtree_oset.c: Likewise.
39126         * lib/gl_rbtreehash_list.c: Likewise.
39127         * lib/imaxabs.c: Likewise.
39128         * lib/imaxdiv.c: Likewise.
39129         * lib/javacomp.c: Likewise.
39130         * lib/javaexec.c: Likewise.
39131         * lib/javaversion.c: Likewise.
39132         * lib/linebreak.c: Likewise.
39133         * lib/localcharset.c: Likewise.
39134         * lib/lock.c: Likewise.
39135         * lib/mbchar.c: Likewise.
39136         * lib/mbswidth.c: Likewise.
39137         * lib/mkdtemp.c: Likewise.
39138         * lib/pipe.c: Likewise.
39139         * lib/printf-args.c: Likewise.
39140         * lib/printf-parse.c: Likewise.
39141         * lib/progname.c: Likewise.
39142         * lib/progreloc.c: Likewise.
39143         * lib/readlink.c: Likewise.
39144         * lib/sh-quote.c: Likewise.
39145         * lib/stpcpy.c: Likewise.
39146         * lib/stpncpy.c: Likewise.
39147         * lib/strcasecmp.c: Likewise.
39148         * lib/strcasestr.c: Likewise.
39149         * lib/strcspn.c: Likewise.
39150         * lib/striconv.c: Likewise.
39151         * lib/strncasecmp.c: Likewise.
39152         * lib/strnlen1.c: Likewise.
39153         * lib/strstr.c: Likewise.
39154         * lib/strtok_r.c: Likewise.
39155         * lib/tls.c: Likewise.
39156         * lib/tmpdir.c: Likewise.
39157         * lib/unicodeio.c: Likewise.
39158         * lib/unsetenv.c: Likewise.
39159         * lib/vasnprintf.c: Likewise.
39160         * lib/vasprintf.c: Likewise.
39161         * lib/wait-process.c: Likewise.
39162         * lib/xallocsa.c: Likewise.
39163         * lib/xsetenv.c: Likewise.
39164         * lib/xstriconv.c: Likewise.
39165
39166 2006-09-13  Simon Josefsson  <jas@extundo.com>
39167
39168         * m4/getdate.m4: Don't AC_LIBOBJ([getdate]), automake takes care of
39169         that internally, suggested by Ralf Wildenhues
39170         <Ralf.Wildenhues@gmx.de>.
39171
39172 2006-09-13  Simon Josefsson  <jas@extundo.com>
39173
39174         * gnulib-tool (func_emit_lib_Makefile_am): Use $(LIBOBJS), not
39175         @LIBOBJS@.
39176         Suggested by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
39177
39178 2006-09-13  Paul Eggert  <eggert@cs.ucla.edu>
39179
39180         * lib/_fpending.c: Include <config.h> unconditionally, since we no
39181         longer worry about uses that don't define HAVE_CONFIG_H.
39182         * lib/acl.c, lib/alloca.c, lib/argmatch.c, lib/atexit.c:
39183         * lib/backupfile.c, lib/basename.c, lib/c-stack.c, lib/c-strtod.c:
39184         * lib/calloc.c,lib/ canon-host.c, lib/canonicalize.c, lib/chdir-long.c:
39185         * lib/chdir-safer.c, lib/chown.c, lib/cloexec.c, lib/close-stream.c:
39186         * lib/closeout.c, lib/creat-safer.c, lib/cycle-check.c, lib/diacrit.c:
39187         * lib/dirchownmod.c, lib/dirfd.c, lib/dirname.c, lib/dup-safer.c:
39188         * lib/dup2.c, lib/error.c, lib/euidaccess.c, lib/exclude.c:
39189         * lib/exitfail.c, lib/fchmodat.c, lib/fchown-stub.c, lib/fd-safer.c:
39190         * lib/file-type.c, lib/fileblocks.c, lib/filemode.c, lib/filenamecat.c:
39191         * lib/fnmatch.c, lib/fopen-safer.c, lib/fprintftime.c, lib/free.c:
39192         * lib/fsusage.c, lib/ftruncate.c, lib/fts-cycle.c, lib/fts.c:
39193         * lib/full-write.c, lib/gai_strerror.c, lib/getcwd.c, lib/getdate.y:
39194         * lib/getdomainname.c, lib/getgroups.c, lib/gethostname.c:
39195         * lib/gethrxtime.c, lib/getloadavg.c, lib/getlogin_r.c:
39196         * lib/getndelim2.c, lib/getnline.c, lib/getopt.c, lib/getopt1.c:
39197         * lib/getpass.c, lib/gettime.c, lib/gettimeofday.c, lib/getugroups.c:
39198         * lib/getusershell.c, lib/glob.c, lib/group-member.c:
39199         * lib/hard-locale.c, lib/hash-pjw.c, lib/hash.c, lib/human.c:
39200         * lib/idcache.c, lib/inet_ntop.c, lib/inet_pton.c, lib/inttostr.c:
39201         * lib/isdir.c, lib/lchown.c, lib/linebuffer.c, lib/long-options.c:
39202         * lib/lstat.c, lib/malloc.c, lib/md5.c, lib/memcasecmp.c, lib/memchr.c:
39203         * lib/memcmp.c, lib/memcoll.c, lib/memcpy.c, lib/memmove.c:
39204         * lib/memrchr.c, lib/mkancesdirs.c, lib/mkdir-p.c, lib/mkdir.c:
39205         * lib/mkdirat.c, lib/mkstemp-safer.c, lib/mkstemp.c, lib/modechange.c:
39206         * lib/mountlist.c, lib/nanosleep.c, lib/obstack.c, lib/open-safer.c:
39207         * lib/openat-die.c, lib/openat.c, lib/pagealign_alloc.c, lib/physmem.c:
39208         * lib/pipe-safer.c, lib/posixtm.c, lib/posixver.c, lib/putenv.c:
39209         * lib/quote.c, lib/quotearg.c, lib/raise.c, lib/readtokens.c:
39210         * lib/readtokens0.c, lib/readutmp.c, lib/realloc.c, lib/regex.c:
39211         * lib/rename.c, lib/rmdir.c, lib/rpmatch.c, lib/safe-read.c:
39212         * lib/same.c, lib/save-cwd.c, lib/savedir.c, lib/setenv.c:
39213         * lib/settime.c, lib/sha1.c, lib/sig2str.c, lib/snprintf.c:
39214         * lib/strdup.c, lib/strerror.c, lib/strftime.c, lib/stripslash.c:
39215         * lib/strndup.c, lib/strnlen.c, lib/strpbrk.c, lib/strtod.c:
39216         * lib/strtoimax.c, lib/strtol.c, lib/strverscmp.c, lib/tempname.c:
39217         * lib/time_r.c, lib/timegm.c, lib/tmpfile-safer.c, lib/unlinkdir.c:
39218         * lib/userspec.c, lib/utime.c, lib/utimecmp.c, lib/utimens.c:
39219         * lib/version-etc-fsf.c, lib/version-etc.c, lib/xalloc-die.c:
39220         * lib/xgetcwd.c, lib/xgethostname.c, lib/xmalloc.c, lib/xmemcoll.c:
39221         * lib/xnanosleep.c, lib/xreadlink.c, lib/xstrtod.c, lib/xstrtoimax.c:
39222         * lib/xstrtol.c, lib/xstrtoumax.c, lib/yesno.c:
39223         Likewise.
39224
39225 2006-09-13  Eric Blake  <ebb9@byu.net>
39226
39227         * lib/getopt.c: Fix typo in last commit.
39228
39229 2006-09-12  Sergey Poznyakoff  <gray@gnu.org.ua>
39230
39231         * lib/argp-help.c (argp_doc): Make sure NULL is not passed to
39232         dgettext.
39233
39234 2006-09-12  Jim Meyering  <jim@meyering.net>
39235
39236         * lib/nanosleep.c: Include <sys/types.h> before sys/select.h, to avoid
39237         compilation failure (due to use of pid_t in latter) on NetBSD 1.6.
39238         Reported by Nelson H. F. Beebe.
39239
39240 2006-09-10  Sergey Poznyakoff  <gray@gnu.org.ua>
39241
39242         * lib/argp-parse.c (__argp_parse) [!_LIBC]: Make sure
39243         program_invocation_name and program_invocation_short_name are
39244         initialized.
39245         * lib/argp-namefrob.h: Move declarations of program_invocation_name
39246         and program_invocation_short_name to argp.h, so they are visible
39247         to user programs.
39248         * lib/argp.h: Likewise
39249
39250 2006-09-10  Bruno Haible  <bruno@clisp.org>
39251
39252         * modules/mkdtemp (Files): Remove m4/ulonglong.m4, m4/stdint_h.m4,
39253         m4/inttypes_h.m4, m4/uintmax_t.m4.
39254
39255 2006-09-10  Bruno Haible  <bruno@clisp.org>
39256
39257         * m4/mkdtemp.m4 (gl_PREREQ_MKDTEMP): Don't require
39258         gl_AC_TYPE_UINTMAX_T.
39259
39260 2006-09-10  Bruno Haible  <bruno@clisp.org>
39261
39262         * lib/mkdtemp.c: Include <stdint.h> always. Don't include <inttypes.h>.
39263
39264 2006-09-09  Sergey Poznyakoff  <gray@gnu.org.ua>
39265
39266         * lib/argp.h (struct argp): Document the N_("..") "\v" N_("..")
39267         convention.  Text proposed by Bruno Haible.
39268         (struct argp_option): Document the use of N_() wrappers.
39269
39270         * lib/argp-help.c (argp_doc): Split the untranslated doc string on
39271         '\v', and translate the two parts separately, instead of feeding
39272         the whole string to gettext.  This allows to exclude
39273         '\v' from the strings visible to the translator by writing doc
39274         strings as N_("..") "\v" N_("..").
39275
39276 2006-09-09  Paul Eggert  <eggert@cs.ucla.edu>
39277
39278         * config/srclist.txt: Undo latest change; the bug was fixed.
39279
39280 2006-09-09  Bruno Haible  <bruno@clisp.org>
39281
39282         * gnulib-tool (func_emit_lib_Makefile_am): Eliminate lib_LDFLAGS
39283         assignments if building a library without libtool.
39284         (func_emit_tests_Makefile_am): Likewise. Handle lib_* variables as
39285         in func_emit_lib_Makefile_am.
39286         (func_import): When building a static library libfoo.a, arrange to
39287         define variables LIBFOO_LIBDEPS and LIBFOO_LTLIBDEPS.
39288         (func_create_testdir): Likewise.
39289         * modules/gc (configure.ac, Makefile.am): If building statically,
39290         augment gl_libdeps and gl_ltlibdeps instead of lib_LDFLAGS.
39291         * modules/iconvme (configure.ac, Makefile.am): Likewise.
39292         * modules/striconv (configure.ac, Makefile.am): Likewise.
39293         Based on a suggestion by Ralf Wildenhues.
39294
39295 2006-09-08  Paul Eggert  <eggert@cs.ucla.edu>
39296
39297         * m4/mktime.m4 (AC_FUNC_MKTIME): Sync from Autoconf.
39298         Check for unistd.h too, since Autoconf doesn't assume POSIX.
39299         Also:
39300
39301         2006-09-08  Paul Eggert  <eggert@cs.ucla.edu>
39302         Add year_2050_test to catch glibc bug 2821
39303         <http://sourceware.org/bugzilla/show_bug.cgi?id=2821>.
39304
39305         2006-08-15  Paul Eggert  <eggert@cs.ucla.edu>
39306         Prefer #ifdef to #if.
39307
39308         2006-04-02  Paul Eggert  <eggert@cs.ucla.edu>
39309         Return from 'main' instead of calling 'exit'.
39310
39311 2006-09-08  Paul Eggert  <eggert@cs.ucla.edu>
39312
39313         * lib/mktime.c (guess_time_tm): Fix bug where mktime
39314         returned the maximum time_t value rather than (time_t) -1.
39315         Problem originally reported by William Bardwell
39316         <http://sourceware.org/bugzilla/show_bug.cgi?id=2821>.
39317
39318         * lib/isapipe.h (HAVE_FIFO_PIPES) [!defined HAVE_FIFO_PIPES]:
39319         Moved to here ...
39320         * lib/isapipe.c (HAVE_FIFO_PIPES) [!defined HAVE_FIFO_PIPES]:
39321         ... from here.
39322
39323 2006-09-08  Paul Eggert  <eggert@cs.ucla.edu>
39324
39325         * config/srclist.txt: Temporarily comment out mktime.c until glibc bug
39326         2821 is fixed.
39327
39328 2006-09-08  Jim Meyering  <jim@meyering.net>
39329
39330         Don't make generated files read-only.  That would bother too many
39331         people.  However, do retain the ability to work when targets are
39332         read-only: remove the destination and temporary files before writing
39333         them (when generated via sed or echo), or by using the -f option for
39334         both cp and mv commands.  Suggestion to use -f from Paul Eggert.
39335         * modules/alloca-opt, modules/argz, modules/arpa_inet:
39336         * modules/byteswap, modules/configmake, modules/fcntl:
39337         * modules/fnmatch, modules/getopt, modules/glob, modules/inttypes:
39338         * modules/localcharset, modules/netinet_in, modules/poll:
39339         * modules/stdbool, modules/stdint, modules/sys_select:
39340         * modules/sys_socket, modules/sys_stat, modules/sysexits:
39341
39342 2006-09-08  Jim Meyering  <jim@meyering.net>
39343
39344         Avoid new build failure on FreeBSD 6.0.
39345         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Include
39346         <sys/param.h> when testing whether getmntinfo uses statvfs.  Patch by
39347         Pavel Tsekov, in <http://savannah.gnu.org/bugs/?17643>.
39348
39349 2006-09-07  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
39350
39351         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Don't use plain echo.
39352
39353 2006-09-07  Jim Meyering  <jim@meyering.net>
39354
39355         Fix global typo in last change: use chmod u-w, not chmod u-x.
39356         Spotted by Paul Eggert and Bruce Korb.
39357         * modules/alloca-opt, modules/argz, modules/arpa_inet:
39358         * modules/byteswap, modules/configmake, modules/fcntl:
39359         * modules/fnmatch, modules/getopt, modules/glob, modules/inttypes:
39360         * modules/localcharset, modules/netinet_in, modules/poll:
39361         * modules/stdbool, modules/stdint, modules/sys_select:
39362         * modules/sys_socket, modules/sys_stat, modules/sysexits:
39363
39364 2006-09-06  Jim Meyering  <jim@meyering.net>
39365
39366         Make generated files be read-only.
39367         * modules/alloca-opt (Makefile.am): Work also when $@ is read-only.
39368         Ensure that each generated file is now read-only.
39369         * modules/argz: Likewise.
39370         * modules/arpa_inet: Likewise.
39371         * modules/byteswap: Likewise.
39372         * modules/configmake: Likewise.
39373         * modules/fcntl: Likewise.
39374         * modules/fnmatch: Likewise.
39375         * modules/getopt: Likewise.
39376         * modules/glob: Likewise.
39377         * modules/inttypes: Likewise.
39378         * modules/netinet_in: Likewise.
39379         * modules/poll: Likewise.
39380         * modules/stdbool: Likewise.
39381         * modules/stdint: Likewise.
39382         * modules/sys_select: Likewise.
39383         * modules/sys_socket: Likewise.
39384         * modules/sys_stat: Likewise.
39385         * modules/sysexits: Likewise.
39386         * modules/localcharset: Same as above, but continue using temporary
39387         file named "t-$@" (why different?) rather than the "$@-t" used
39388         everywhere else.
39389
39390         * modules/sysexits (Makefile.am): Replace literal occurrences
39391         of "sysexit.h" more readable, and more consistent, "$@".
39392
39393 2006-09-06  Bruno Haible  <bruno@clisp.org>
39394
39395         * modules/striconv: New file.
39396         * modules/xstriconv: New file.
39397         * MODULES.html.sh (Internationalization functions): Add striconv,
39398         xstriconv.
39399
39400 2006-09-06  Bruno Haible  <bruno@clisp.org>
39401
39402         * modules/gc (Makefile.am): Augment lib_LDFLAGS, not lib_LIBADD.
39403         * modules/iconvme (Makefile.am): Likewise. Also handle the case of
39404         not using libtool correctly.
39405
39406 2006-09-06  Bruno Haible  <bruno@clisp.org>
39407
39408         * lib/striconv.h: New file.
39409         * lib/striconv.c: New file, merging iconvme.c with GNU gettext's
39410         iconvstring.c.
39411         * lib/xstriconv.h: New file.
39412         * lib/xstriconv.c: New file.
39413
39414 2006-09-06  Bruno Haible  <bruno@clisp.org>
39415
39416         * gnulib-tool (func_emit_lib_Makefile_am): Initialize also
39417         lib_..._LDFLAGS.
39418
39419 2006-09-05  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
39420
39421         * lib/argz_.h: Sync from Libtool.
39422
39423         2006-09-04  George Bosilca <bosilca@cs.utk.edu>
39424                 and Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
39425
39426         * lib/libltdl/argz_.h: It's __cplusplus, not _cplusplus.
39427
39428 2006-09-05  Davide Angelocola  <davide.angelocola@tiscali.it>
39429
39430         * modules/trim: New file.
39431
39432 2006-09-05  Davide Angelocola  <davide.angelocola@tiscali.it>
39433
39434         * lib/trim.h: New file.
39435         * lib/trim.c: New file.
39436
39437 2006-09-05  Bruno Haible  <bruno@clisp.org>
39438
39439         * MODULES.html.sh (String handling): Add trim.
39440
39441 2006-09-04  Karl Berry  <karl@gnu.org>
39442
39443         * config/srclist.txt (signed.m4, gettext.m4): changes not propagated
39444         until next release.
39445
39446 2006-09-03  Bruno Haible  <bruno@clisp.org>
39447
39448         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): Locate mingw shared libraries
39449         correctly.
39450
39451 2006-09-01  Paul Eggert  <eggert@cs.ucla.edu>
39452
39453         * m4/getloadavg.m4 (gl_GETLOADAVG): Use CONFIGURING_GETLOADAVG,
39454         not gl_GETLOADAVG.  Omit unneeded semicolons.
39455         Problems reported by Ralf Wildenhues in
39456         <http://lists.gnu.org/archive/html/bug-gnulib/2006-09/msg00000.html>.
39457         (gl_PREREQ_GETLOADAVG): Use AC_DEFUN, not m4_define.  Put
39458         at the end, which is the usual gnulib style.
39459
39460         * m4/fstypename.m4 (gl_FSTYPENAME): Use AC_CHECK_MEMBERS instead
39461         of doing all the work ourselves.
39462         * m4/fsusage.m4 (gl_PREREQ_FSUSAGE_EXTRA): Don't check for
39463         sys/statvfs.h since the code doesn't use HAVE_SYS_STATVFS_H.
39464
39465 2006-09-01  Paul Eggert  <eggert@cs.ucla.edu>
39466
39467         * lib/getloadavg.c: Use CONFIGURING_GETLOADAVG, not gl_GETLOADAVG.
39468         Problem reported by Ralf Wildenhues in
39469         <http://lists.gnu.org/archive/html/bug-gnulib/2006-09/msg00000.html>.
39470
39471         * lib/mountlist.c: All uses of HAVE_F_FSTYPENAME_IN_STATFS replaced by
39472         HAVE_STRUCT_STATFS_F_FSTYPENAME.
39473
39474 2006-09-01  Paul Eggert  <eggert@cs.ucla.edu>
39475
39476         * gnulib-tool (func_emit_lib_Makefile_am): Fix typos in
39477         yesterday's patch by changing test -n to test -z.
39478
39479 2006-08-31  Paul Eggert  <eggert@cs.ucla.edu>
39480
39481         * modules/getloadavg (Files): Add m4/getloadavg.m4.
39482         (configure.ac): AC_FUNC_GETLOADAVG -> gl_GETLOADAVG, as
39483         the former is now obsolescent.
39484
39485         * modules/chdir-long (Depends-on): Add fcntl.
39486
39487 2006-08-31  Paul Eggert  <eggert@cs.ucla.edu>
39488
39489         * m4/fnmatch.m4: Add comment that Autoconf AC_FUNC_FNMATCH is
39490         obsolescent, and programs should use gnulib instead.
39491         * m4/getloadavg.m4: New file, with contents taken from Autoconf
39492         but with prefixes changed.
39493
39494 2006-08-31  Paul Eggert  <eggert@cs.ucla.edu>
39495
39496         * lib/getloadavg.c [defined gl_GETLOADAVG]: Don't include config.h
39497         or stdbool.h, because they might not exist while configuring.
39498
39499         * lib/chdir-long.c: Include <fcntl.h>, for O_DIRECTORY.
39500         Don't include unistd.h or limits.h; not needed, since chdir-long.h
39501         does that for us.
39502         (O_DIRECTORY): Remove.
39503
39504 2006-08-31  Eric Blake  <ebb9@byu.net>
39505
39506         * gnulib-tool: Don't let emacs change spaces to TAB.
39507
39508 2006-08-31  Bruno Haible  <bruno@clisp.org>
39509
39510         * gnulib-tool: When calling func_import more than once, do it in a
39511         subshell.
39512         Reported by Eric Blake <ebb9@byu.net>.
39513
39514 2006-08-31  Bruno Haible  <bruno@clisp.org>
39515
39516         * gnulib-tool (nl): Remove variable.
39517         (sed_transform_lib_file): Use more robust test for config-h module.
39518         (func_import): Fix typo in 2006-08-25 patch.
39519
39520 2006-08-31  Bruno Haible  <bruno@clisp.org>
39521
39522         * gnulib-tool (func_emit_lib_Makefile_am): When --makefile-name was
39523         specified, augment Makefile.am variables instead of assigning them.
39524
39525 2006-08-30  Paul Eggert  <eggert@cs.ucla.edu>
39526
39527         Work around a bug in both the Linux and SunOS 64-bit kernels:
39528         nanosleep mishandles sleeps for longer than 2**31 seconds.
39529         Problem reported by Frank v Waveren in
39530         <http://lists.gnu.org/archive/html/bug-coreutils/2006-08/msg00298.html>.
39531         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Require gl_CLOCK_TIME.
39532         Check for nanosleep bug.
39533         (LIB_NANOSLEEP): Append clock_gettime library if needed.
39534
39535 2006-08-30  Paul Eggert  <eggert@cs.ucla.edu>
39536
39537         Work around a bug in both the Linux and SunOS 64-bit kernels:
39538         nanosleep mishandles sleeps for longer than 2**31 seconds.
39539         Problem reported by Frank v Waveren in
39540         <http://lists.gnu.org/archive/html/bug-coreutils/2006-08/msg00298.html>.
39541         * lib/nanosleep.c (BILLION): New constant.
39542         (getnow) [HAVE_BUG_BIG_NANOSLEEP]: New functions.
39543         (rpl_nanosleep) [HAVE_BUG_BIG_NANOSLEEP]: Completely new
39544         implementation.
39545
39546 2006-08-30  Paul Eggert  <eggert@cs.ucla.edu>
39547
39548         * modules/nanosleep (Depends-on): Add gettime.
39549
39550 2006-08-30  Paul Eggert  <eggert@cs.ucla.edu>
39551         and Simon Josefsson  <jas@extundo.com>
39552         and Oskar Liljeblad  <oskar@osk.mine.nu>
39553
39554         * MODULES.html.sh (Support for building documentation): Add gpl, lgpl.
39555         * gnulib-tool (func_import): New license type 'unmodifiable license
39556         text'.
39557         * modules/fdl: Use it.  Longer description.
39558         * module/gpl, module/lgpl: New files.
39559
39560 2006-08-30  Jim Meyering  <jim@meyering.net>
39561
39562         * lib/isapipe.c (isapipe): Rename local s/fd/fd_pair/ to avoid
39563         shadowing the parameter.
39564
39565 2006-08-29  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
39566
39567         Sync from Libtool:
39568
39569         2006-08-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
39570
39571         * lib/libltdl/argz.c: Use `#ifdef HAVE_CONFIG_H', to facilitate code
39572         sharing with gnulib.  Report by Eric Blake.
39573
39574 2006-08-29  Paul Eggert  <eggert@cs.ucla.edu>
39575
39576         * modules/isapipe: New file.
39577         * MODULES.html.sh (File descriptor based Input/Output): Add isapipe.
39578
39579 2006-08-29  Paul Eggert  <eggert@cs.ucla.edu>
39580
39581         * modules/configmake (Makefile.am): Add a comment, and omit
39582         the CONFIGMAKE_ prefix from generated macro names.  Suggested
39583         by Bruno Haible.
39584
39585 2006-08-29  Paul Eggert  <eggert@cs.ucla.edu>
39586
39587         * m4/isapipe.m4: New file.
39588
39589 2006-08-29  Paul Eggert  <eggert@cs.ucla.edu>
39590
39591         * lib/isapipe.c, lib/isapipe.h: New files.
39592
39593 2006-08-29  Jim Meyering  <jim@meyering.net>
39594
39595         * modules/configmake (Makefile.am): Make configmake.h depend on
39596         Makefile.  Otherwise, a stale configmake.h could hang around.
39597
39598 2006-08-29  Eric Blake  <ebb9@byu.net>
39599
39600         * lib/error.c (error_at_line, print_errno_message): Match libc, after
39601         resolution of upstream bug 3044.
39602
39603 2006-08-29  Bruno Haible  <bruno@clisp.org>
39604
39605         * modules/localcharset (Depends-on): Add configmake.
39606         (Makefile.am): Remove setting of LIBDIR through DEFS.
39607
39608 2006-08-29  Bruno Haible  <bruno@clisp.org>
39609
39610         * lib/localcharset.c: Include configmake.h in order to get LIBDIR
39611         defined.
39612
39613 2006-08-28  Paul Eggert  <eggert@cs.ucla.edu>
39614
39615         * modules/fcntl: New file.
39616         * modules/chdir-safer (Depends-on): Add fcntl.
39617         * modules/fts: Likewise.
39618         * modules/mkdir-p: Likewise.
39619
39620         * modules/stdint (Makefile.am): Do not substitute ABSOLUTE_INTTYPES_H.
39621         This undoes the most recent change, since we're now addressing the
39622         problem in a different way.
39623
39624         * gnulib-tool (emit_lib_Makefile_am): Don't put $makefile_name
39625         into output, since the output might be called Makefile.am even
39626         if $makefile_name is something different.
39627         (func_import): Use $makefile_am rather than
39628         ${makefile_name-Makefile.am}, to fix a bug where makefile_name was
39629         empty.
39630
39631         * modules/inttypes (Files): Add m4/inttypes-h.m4.
39632
39633 2006-08-28  Paul Eggert  <eggert@cs.ucla.edu>
39634
39635         * m4/inttypes.m4 (gl_INTTYPES_H): Move ABSOLUTE_INTTYPES_H code here...
39636         * m4/stdint.m4 (gl_STDINT_H): ... from here.  This undoes the most
39637         recent change to stdint.m4, since we're now addressing the problem in a
39638         different way.
39639
39640 2006-08-28  Paul Eggert  <eggert@cs.ucla.edu>
39641
39642         * m4/fcntl_h.m4: New file.
39643
39644 2006-08-28  Paul Eggert  <eggert@cs.ucla.edu>
39645
39646         * lib/fcntl_.h: New file.
39647         * lib/chdir-safer.c (O_DIRECTORY, O_NOFOLLOW): Remove, now that we have
39648         the fcntl module.
39649         * lib/dirchownmod.c: Likewise.
39650         * lib/fts.c: Likewise.
39651
39652         * lib/inttypes_.h [defined _GL_JUST_INCLUDE_ABSOLUTE_INTTYPES_H]:
39653         Include @ABSOLUTE_INTTYPES_H@ if available, but do nothing else.
39654         * lib/stdint_.h (_GL_JUST_INCLUDE_ABSOLUTE_INTTYPES_H): Define
39655         just before including <inttypes.h>, to avoid circular inclusion.
39656
39657 2006-08-28  Jim Meyering  <jim@meyering.net>
39658
39659         * doc/visibility.texi: Actually read and correct the grammar of the
39660         sentence affected by yesterday's change.
39661
39662 2006-08-28  Eric Blake  <ebb9@byu.net>
39663
39664         * modules/inttypes (Makefile.am): Fix sed error when inttypes.h
39665         needs wrapper.
39666
39667 2006-08-28  Eric Blake  <ebb9@byu.net>
39668
39669         * m4/inttypes.m4 (gl_INTTYPES_H): Fix missing #endif.
39670
39671 2006-08-28  Eric Blake  <ebb9@byu.net>
39672
39673         * m4/codeset.m4 (AM_LANGINFO_CODESET): Avoid compiler warning.
39674
39675 2006-08-28  Bruno Haible  <bruno@clisp.org>
39676
39677         * modules/c-strstr: New file, from GNU gettext.
39678         * MODULES.html.sh (String handling): Add c-strstr.
39679
39680 2006-08-28  Bruno Haible  <bruno@clisp.org>
39681
39682         * m4/inttypes.m4 (gl_INTTYPES_H): Don't test for the existence of SCNX*
39683         macros.
39684         Reported by Eric Blake.
39685
39686 2006-08-28  Bruno Haible  <bruno@clisp.org>
39687
39688         * lib/vasnprintf.c (EOVERFLOW): Remove definition.
39689         (VASNPRINTF): Return a string of length > INT_MAX without failing.
39690         * lib/vasprintf.c: Include errno.h, limits.h.
39691         (EOVERFLOW): New fallback definition.
39692         (vasprintf): Test here whether the string length is > INT_MAX.
39693         * lib/vsnprintf.c: Include errno.h, limits.h.
39694         (EOVERFLOW): New fallback definition.
39695         (vsnprintf): Fix bug when generated string was too long for the buffer.
39696         Test here whether the string length is > INT_MAX.
39697
39698 2006-08-28  Bruno Haible  <bruno@clisp.org>
39699
39700         * lib/inttypes_.h (SCNX*): Remove definitions.
39701         Reported by Eric Blake.
39702
39703 2006-08-28  Bruno Haible  <bruno@clisp.org>
39704
39705         * lib/c-strstr.h: New file, from GNU gettext.
39706         * lib/c-strstr.c: New file, from GNU gettext.
39707
39708 2006-08-28  Bruno Haible  <bruno@clisp.org>
39709
39710         * gnulib-tool: Reorder some statements.
39711
39712 2006-08-28  Bruno Haible  <bruno@clisp.org>
39713
39714         * gnulib-tool: New option --makefile-name.
39715         (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am): Use
39716         $makefile_name.
39717         (func_import): Write $makefile_name to the cache file, and read it from
39718         there unless explicitly specified. Use $makefile_name as file name
39719         instead of Makefile.am. Adjust the recommendations accordingly.
39720
39721 2006-08-28  Bruno Haible  <bruno@clisp.org>
39722
39723         * gnulib-tool (func_verify_module): Check against misapplying patch.
39724
39725 2006-08-28  Bruno Haible  <bruno@clisp.org>
39726
39727         * gnulib-tool (func_relativize, func_relconcat): New functions.
39728         Give an error if --local-dir is given with --update.
39729         Remove trailing slashes from $local_gnulib_dir.
39730         (func_import): Store the relativized $local_gnulib_dir in
39731         gnulib-cache.m4, and read it from there if not specified explicitly.
39732
39733 2006-08-28  Bruno Haible  <bruno@clisp.org>
39734
39735         * gnulib-tool (func_get_tests_module): Don't assume that $gnulib_dir
39736         is the current directory. Respect also $local_gnulib_dir.
39737
39738 2006-08-28  Bruno Haible  <bruno@clisp.org>
39739             Simon Josefsson  <jas@extundo.com>
39740
39741         BeOS portability.
39742         * lib/getaddrinfo.c (PF_INET, PF_UNSPEC): New macros.
39743
39744 2006-08-27  Jim Meyering  <jim@meyering.net>
39745
39746         * doc/visibility.texi: Remove duplicate word: "pointer".
39747
39748 2006-08-26  Bruno Haible  <bruno@clisp.org>
39749
39750         * modules/inttypes (Files): Add lib/inttypes_.h, remove lib/inttypes.h.
39751         Add m4/inttypes.m4, remove m4/_inttypes_h.m4 and m4/include_next.m4.
39752         (Makefile.am): Create inttypes.h from inttypes_.h.
39753         * modules/stdint (Makefile.am): Substitute also ABSOLUTE_INTTYPES_H.
39754
39755         * modules/imaxabs: New file.
39756
39757         * modules/imaxdiv: New file.
39758
39759 2006-08-26  Bruno Haible  <bruno@clisp.org>
39760
39761         * m4/inttypes.m4: New file.
39762         * m4/_inttypes_h.m4: Remove file.
39763         * m4/inttypes-pri.m4 (gt_INTTYPES_PRI): Also AC_SUBST
39764         PRI_MACROS_BROKEN.
39765         * m4/stdint.m4 (gl_STDINT_H): Define also ABSOLUTE_INTTYPES_H.
39766
39767         * m4/imaxabs.m4: New file.
39768
39769         * m4/imaxdiv.m4: New file.
39770
39771 2006-08-26  Bruno Haible  <bruno@clisp.org>
39772
39773         * lib/inttypes_.h: New file.
39774         * lib/inttypes.h: Remove file.
39775         * lib/stdint_.h: Include <inttypes.h> through its absolute filename.
39776
39777         * lib/imaxabs.c: New file.
39778
39779         * lib/imaxdiv.c: New file.
39780
39781 2006-08-25  Paul Eggert  <eggert@cs.ucla.edu>
39782
39783         New config-h module, so that "make" output needn't be cluttered
39784         by -DHAVE_CONFIG_H.
39785         * MODULES.html.sh (Support for building libraries and executables):
39786         Add config-h.
39787         * modules/config-h: New file.
39788         * gnulib-tool (nl, sed_transform_lib_file): New vars.
39789         (func_import): Turn "#ifdef HAVE_CONFIG_H" to "#if 1" if
39790         the config-h module is used.
39791
39792         New configmake module, so that "make" output needn't be cluttered
39793         by fluff like '-DLIBDIR=\"/usr/local/lib\"'.
39794         * MODULES.html.sh (Support for building libraries and executables):
39795         Add configmake.
39796         * modules/configmake: New file.
39797
39798 2006-08-25  Paul Eggert  <eggert@cs.ucla.edu>
39799
39800         * m4/config-h.m4: New file.
39801
39802 2006-08-24  Paul Eggert  <eggert@cs.ucla.edu>
39803
39804         * config/srclist.txt: Add elisp-comp.
39805
39806 2006-08-24  Paul Eggert  <eggert@cs.ucla.edu>
39807
39808         * MODULES.html.sh (Support for building libraries and executables):
39809         Add elisp-comp.
39810         * build-aux/elisp-comp: New file.
39811         * modules/elisp-comp: New file.
39812
39813 2006-08-24  Bruno Haible  <bruno@clisp.org>
39814
39815         * gnulib-tool (func_create_testdir): Use non-default values of
39816         sourcebase and m4base.
39817
39818 2006-08-24  Bruno Haible  <bruno@clisp.org>
39819
39820         * MODULES.html.sh (Compatibility checks for POSIX:2001 functions: Fix
39821         HTML structure.
39822
39823 2006-08-23  Paul Eggert  <eggert@cs.ucla.edu>
39824
39825         * modules/openat (Depends-on): Add lchown.
39826
39827 2006-08-23  Bruno Haible  <bruno@clisp.org>
39828
39829         * gnulib-tool (func_import, func_create_testdir): Emit an invocation
39830         of gl_LOCK_EARLY instead of gl_LOCK.
39831
39832 2006-08-23  Bruno Haible  <bruno@clisp.org>
39833
39834         * m4/lock.m4 (gl_LOCK_BODY): Change the default value of gl_use_threads
39835         on OSF/1 to no.
39836         Reported by Stephen Cartwright <sgcartwr@ucalgary.ca>.
39837
39838 2006-08-23  Bruno Haible  <bruno@clisp.org>
39839
39840         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Don't consider BeOS statvfs
39841         as unusable.
39842
39843         * m4/lock.m4 (gl_LOCK_EARLY): Renamed from gl_LOCK.
39844         (gl_LOCK_BODY): Remove gl_PREREQ_LOCK invocation.
39845         (gl_LOCK): New macro.
39846
39847 2006-08-22  Simon Josefsson  <jas@extundo.com>
39848
39849         * modules/gc-md5 (Makefile.am): Need to add md5.h, after changes
39850         to md5 module.
39851
39852 2006-08-22  Simon Josefsson  <jas@extundo.com>
39853
39854         * MODULES.html.sh: Add "Support for maintaining and release
39855         projects".
39856
39857         * build-aux/gnupload: New file, from coreutils.
39858
39859 2006-08-22  Paul Eggert  <eggert@cs.ucla.edu>
39860
39861         Avoid the need for AC_LIBSOURCES in m4 macros.
39862         * modules/arcfour (EXTRA_DIST): Add arcfour.h.
39863         * modules/arctwo (EXTRA_DIST): Add arctwo.h.
39864         * modules/check-version (EXTRA_DIST): Add check-version.h.
39865         * modules/crc (EXTRA_DIST): Add crc.h.
39866         * modules/des (EXTRA_DIST): Add des.h.
39867         * modules/gc (EXTRA_DIST): Add gc.h.
39868         * modules/getdelim (EXTRA_DIST): Add getdelim.h.
39869         * modules/getline (EXTRA_DIST): Add getline.h.
39870         * modules/getlogin_r (EXTRA_DIST): Add getlogin_r.h.
39871         * modules/hmac-md5 (EXTRA_DIST): Add hmac.h.
39872         * modules/hmac-sha1 (EXTRA_DIST): Add hmac.h.
39873         * modules/md2 (EXTRA_DIST): Add md2.h.
39874         * modules/md4 (EXTRA_DIST): Add md4.h.
39875         * modules/pagealign_alloc (EXTRA_DIST): Add pagealign_alloc.h.
39876         * modules/read-file (EXTRA_DIST): Add read-file.h.
39877         * modules/readline (EXTRA_DIST): Add readline.h.
39878         * modules/rijndael (EXTRA_DIST): Add rijndael-alg-fst.h,
39879         rijndael-api-fst.h.
39880
39881 2006-08-22  Paul Eggert  <eggert@cs.ucla.edu>
39882
39883         * m4/rijndael.m4 (gl_ARCFOUR):
39884         * m4/arctwo.m4 (gl_ARCTWO):
39885         * m4/check-version.m4 (gl_CHECK_VERSION):
39886         * m4/crc.m4 (gl_CRC):
39887         * m4/des.m4 (gl_DES):
39888         * m4/gc-pbkdf2-sha1.m4 (gl_GC_PBKDF2_SHA1):
39889         * m4/gc.m4 (gl_GC):
39890         * m4/getdelim.m4 (gl_FUNC_GETDELIM):
39891         * m4/getline.m4 (gl_FUNC_GETLINE):
39892         * m4/getlogin_r.m4 (gl_GETLOGIN_R_SUBSTITUTE):
39893         * m4/hmac-md5.m4 (gl_HMAC_MD5):
39894         * m4/hmac-sha1.m4 (gl_HMAC_SHA1):
39895         * m4/md2.m4 (gl_MD2):
39896         * m4/md4.m4 (gl_MD4):
39897         * m4/pagealign_alloc.m4 (gl_PAGEALIGN_ALLOC):
39898         * m4/read-file.m4 (gl_FUNC_READ_FILE):
39899         * m4/readline.m4 (gl_FUNC_READLINE):
39900         * m4/rijndael.m4 (gl_RIJNDAEL):
39901         Don't use AC_LIBSOURCES; instead, rely on the files in ../modules/
39902         to get the necessary .h files and whatnot.
39903
39904 2006-08-22  Paul Eggert  <eggert@cs.ucla.edu>
39905
39906         * config/srclist.txt: Remove gnupload, since coreutils now syncs from
39907         gnulib rather than the other way around.
39908         * config/srclistvars.sh (COREUTILS): Remove.
39909
39910 2006-08-22  Jim Meyering  <jim@meyering.net>
39911
39912         * modules/mkdir-p (Makefile.am): Fix typo: s/lib+SOURCES/lib_SOURCES/.
39913
39914         * modules/getpass-gnu (Makefile.am): Add getpass.h to EXTRA_DIST.
39915
39916 2006-08-22  Eric Blake  <ebb9@byu.net>
39917
39918         * modules/regexprops-generic: New file.
39919         * MODULES.html.sh (Support for building documentation): List it.
39920
39921 2006-08-22  Eric Blake  <ebb9@byu.net>
39922
39923         * m4/stdint_h.m4 (gl_AC_HEADER_STDINT_H): Avoid compiler warning.
39924         * m4/inttypes_h.m4 (gl_AC_HEADER_INTTYPES_H): Likewise.
39925         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Likewise.
39926         * m4/intmax_t.m4 (gt_AC_TYPE_INTMAX_T): Likewise.
39927
39928 2006-08-22  Bruno Haible  <bruno@clisp.org>
39929
39930         * gnulib-tool (func_emit_lib_Makefile_am): Don't treat lib_LIBRARIES
39931         and lib_LTLIBRARIES like the other lib_* variables.
39932
39933 2006-08-22  Bruno Haible  <bruno@clisp.org>
39934
39935         * build-aux/x-to-1.in: New file, from GNU gettext.
39936
39937 2006-08-22  Bruno Haible  <bruno@clisp.org>
39938
39939         * m4/readutmp.m4 (gl_READUTMP): Compile readutmp.c only if <utmp.h> or
39940         <utmpx.h> exists.
39941
39942 2006-08-22  Bruno Haible  <bruno@clisp.org>
39943
39944         * lib/readutmp.h: Skip most definitions if neither <utmp.h> nor
39945         <utmpx.h> exists.
39946
39947 2006-08-21  Paul Eggert  <eggert@cs.ucla.edu>
39948
39949         BeOS portability.
39950         * lib/dirchownmod.c (dirchownmod): Don't use fchmod if it doesn't
39951         exist.
39952         Problem reported by Bruno Haible.
39953
39954 2006-08-21  Paul Eggert  <eggert@cs.ucla.edu>
39955
39956         Avoid the need for AC_LIBSOURCES in m4 macros.
39957         * modules/acl (EXTRA_DIST): Add acl.h.
39958         * modules/argmatch (Files): Add m4/argmatch.m4.
39959         (configure.ac): Add gl_ARGMATCH.
39960         (EXTRA_DIST): Renamed from lib_SOURCES, for
39961         consistency with the other modules.  Remove argmatch.c.
39962         * modules/backupfile (EXTRA_DIST): Add backupfile.h.
39963         * modules/c-strtod (EXTRA_DIST): Add c-strtod.h.
39964         * modules/c-strtold (EXTRA_DIST): Add c-strtod.c, c-strtod.h.
39965         * modules/canonhost (EXTRA_DIST): Add c-canonhost.h.
39966         * modules/canonicalize (EXTRA_DIST): Add canonicalize.h.
39967         * modules/chdir-long (EXTRA_DIST): Add chdir-long.h.
39968         * modules/chdir-safer (EXTRA_DIST): Add chdir-safer.h.
39969         * modules/cloexec (EXTRA_DIST): Add cloexec.h.
39970         * modules/close-stream (EXTRA_DIST): Add close-stream.h.
39971         * modules/closeout (EXTRA_DIST): Add closeout.h.
39972         * modules/cycle-check (EXTRA_DIST): Add cycle-check.h.
39973         * modules/dev-ino (EXTRA_DIST): Add dev-ino.h.
39974         * modules/dirfd (EXTRA_DIST): Add dirfd.h.
39975         * modules/dirname (EXTRA_DIST): Renamed from lib_SOURCES.  Add
39976         dirname.h; remove basename.c and stripslash.c.
39977         * modules/exclude (EXTRA_DIST): Add exclude.h.
39978         * modules/exitfail (EXTRA_DIST): Add exitfail.h.
39979         * modules/fcntl-safer (EXTRA_DIST): Add fcntl-safer.h fcntl--.h.
39980         * modules/file-type (EXTRA_DIST): Add file-type.h.
39981         * modules/filemode (EXTRA_DIST): Add filemode.h.
39982         * modules/filenamecat (EXTRA_DIST): Add filenamecat.h.
39983         * modules/fopen-safer (EXTRA_DIST): Add stdio-safer.h stdio--.h.
39984         * modules/fpending (EXTRA_DIST): Add __fpending.h.
39985         * modules/fprintftime (EXTRA_DIST): Add fprintftime.h.
39986         * modules/fsusage (EXTRA_DIST): Add fsusage.h.
39987         * modules/fts (EXTRA_DIST): Add fts_.h fts-cycle.c.
39988         * modules/getcwd (EXTRA_DIST): Add getcwd.h.
39989         * modules/getdate (EXTRA_DIST): Add getdate.c.
39990         * modules/gethrxtime (EXTRA_DIST): Add gethrxtime.h xtime.h.
39991         * modules/getpagesize (EXTRA_DIST): Add getpagesize.h.
39992         * modules/getpass (EXTRA_DIST): Add getpass.h.
39993         * modules/glob (EXTRA_DIST): Add glob_.h glob-libc.h.
39994         * modules/group-member (EXTRA_DIST): Add group-member.h.
39995         * modules/hard-locale (EXTRA_DIST): Add hard-locale.h.
39996         * modules/hash (EXTRA_DIST): Add hash.h.
39997         * modules/human (EXTRA_DIST): Add human.h.
39998         * modules/inttypes (EXTRA_DIST): Add inttypes.h.
39999         * modules/lchmod (EXTRA_DIST): Add lchmod.h.
40000         * modules/lchown (EXTRA_DIST): Add lchown.h.
40001         * modules/long-options (EXTRA_DIST): Add long-options.h.
40002         * modules/lstat (EXTRA_DIST): Add lstat.h.
40003         * modules/md5 (EXTRA_DIST): Add memcasecmp.h.
40004         * modules/memcoll (EXTRA_DIST): Add memcoll.h.
40005         * modules/mempcpy (EXTRA_DIST): Add mempcpy.h.
40006         * modules/memrchr (EXTRA_DIST): Add memrchr.h.
40007         * modules/memxor (EXTRA_DIST): Add memxor.h.
40008         * modules/mkancesdirs (EXTRA_DIST): Add mkancesdirs.h.
40009         * modules/mkdir-p (EXTRA_DIST): Add modechange.h.
40010         * modules/mountlist (EXTRA_DIST): Add mountlist.h.
40011         * modules/openat (EXTRA_DIST): Add at-func.c openat.h openat-priv.h.
40012         * modules/pathmax (EXTRA_DIST): Add pathmax.h.
40013         * modules/physmem (EXTRA_DIST): Add physmem.h.
40014         * modules/posixtm (EXTRA_DIST): Add posixtm.h.
40015         * modules/posixver (EXTRA_DIST): Add posixver.h.
40016         * modules/quote (EXTRA_DIST): Add quote.h.
40017         * modules/quotearg (EXTRA_DIST): Add quotearg.h.
40018         * modules/readtokens (EXTRA_DIST): Add readtokens.h.
40019         * modules/readutmp (EXTRA_DIST): Add readutmp.h.
40020         * modules/regex (EXTRA_DIST): Add regcomp.c regex.h regex_internal.c
40021         regex_internal.h regexec.c.
40022         * modules/safe-read (EXTRA_DIST): Add safe-read.h.
40023         * modules/safe-write (EXTRA_DIST): Add safe-write.h.
40024         * modules/same (EXTRA_DIST): Add same.h.
40025         * modules/same-inode (EXTRA_DIST): Add same-inode.h.
40026         * modules/save-cwd (EXTRA_DIST): Add save-cwd.h.
40027         * modules/savedir (EXTRA_DIST): Add savedir.h.
40028         * modules/sha1 (EXTRA_DIST): Add sha1.h.
40029         * modules/sig2str (EXTRA_DIST): Add sig2str.h.
40030         * modules/stat-macros (EXTRA_DIST): Add stat-macros.h.
40031         * modules/stat-time (EXTRA_DIST): Add stat-time.h.
40032         * modules/stdlib-safer (EXTRA_DIST): Add stdlib-safer.h stdlib--.h.
40033         * modules/strdup (EXTRA_DIST): Add strdup.h.
40034         * modules/strftime (EXTRA_DIST): Add strftime.h.
40035         * modules/strndup (EXTRA_DIST): Add strndup.h.
40036         * modules/strnlen (EXTRA_DIST): Add strnlen.h.
40037         * modules/strverscmp (EXTRA_DIST): Add strverscmp.h.
40038         * modules/time_r (EXTRA_DIST): Add time_r.h.
40039         * modules/timespec (EXTRA_DIST): Add timespec.h.
40040         * modules/tmpfile-safer (EXTRA_DIST): Add stdio-safer.h stdio--.h.
40041         * modules/unistd-safer (EXTRA_DIST): Add unistd-safer.h unistd--.h.
40042         * modules/unlinkdir (EXTRA_DIST): Add unlinkdir.h.
40043         * modules/unlocked-io (EXTRA_DIST): Add unlocked-io.h.
40044         * modules/userspec (EXTRA_DIST): Add userspec.h.
40045         * modules/utimecmp (EXTRA_DIST): Add utimecmp.h.
40046         * modules/utimens (EXTRA_DIST): Add utimens.h.
40047         * modules/xalloc (EXTRA_DIST): Add xalloc.h.
40048         * modules/xgetcwd (EXTRA_DIST): Add xgetcwd.h.
40049         * modules/xnanosleep (EXTRA_DIST): Add xnanosleep.h.
40050         * modules/xreadlink (EXTRA_DIST): Add xreadlink.h.
40051         * modules/xstrtod (EXTRA_DIST): Add xstrtod.h.
40052         * modules/xstrtol (EXTRA_DIST): Add xstrtol.h.
40053         * modules/xstrtold (EXTRA_DIST): Add xstrtod.c xstrtod.h.
40054         * modules/yesno (EXTRA_DIST): Add yesno.h.
40055
40056 2006-08-21  Paul Eggert  <eggert@cs.ucla.edu>
40057
40058         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS): Check for fchmod.
40059
40060         * m4/argmatch.m4: New file, from coreutils with AC_LIBSOURCES removed.
40061         * m4/dev-ino.m4, same-inode.m4: Remove.
40062
40063         * m4/_inttypes_h.m4 (gl_INTTYPES_H):
40064         * m4/acl.m4 (AC_FUNC_ACL):
40065         * m4/backupfile.m4 (gl_BACKUPFILE):
40066         * m4/c-strtod.m4 (gl_C99_STRTOLD):
40067         * m4/canon-host.m4 (gl_CANON_HOST):
40068         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME):
40069         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG):
40070         * m4/chdir-safer.m4 (gl_CHDIR_SAFER):
40071         * m4/cloexec.m4 (gl_CLOEXEC):
40072         * m4/close-stream.m4 (gl_CLOSE_STREAM):
40073         * m4/closeout.m4 (gl_CLOSEOUT):
40074         * m4/dirfd.m4 (gl_FUNC_DIRFD):
40075         * m4/dirname.m4 (gl_DIRNAME):
40076         * m4/exclude.m4 (gl_EXCLUDE):
40077         * m4/exitfail.m4 (gl_EXITFAIL):
40078         * m4/fcntl-safer.m4 (gl_FCNTL_SAFER):
40079         * m4/file-type.m4 (gl_FILE_TYPE):
40080         * m4/filemode.m4 (gl_FILEMODE):
40081         * m4/filenamecat.m4 (gl_FILE_NAME_CONCAT):
40082         * m4/fpending.m4 (gl_FUNC_FPENDING):
40083         * m4/fprintftime.m4 (gl_FPRINTFTIME):
40084         * m4/fts.m4 (gl_FUNC_FTS):
40085         * m4/getcwd.m4 (gl_FUNC_GETCWD_NULL):
40086         * m4/getdate.m4 (gl_GETDATE):
40087         * m4/gethrxtime.m4 (gl_GETHRXTIME):
40088         * m4/getpagesize.m4 (gl_GETPAGESIZE):
40089         * m4/getpass.m4 (gl_FUNC_GETPASS):
40090         * m4/gettime.m4 (gl_GETTIME):
40091         * m4/getugroups.m4 (gl_GETUGROUPS):
40092         * m4/glob.m4 (gl_GLOB_SUBSTITUTE):
40093         * m4/group-member.m4 (gl_FUNC_GROUP_MEMBER):
40094         * m4/hard-locale.m4 (gl_HARD_LOCALE):
40095         * m4/hash.m4 (gl_HASH):
40096         * m4/idcache.m4 (gl_IDCACHE):
40097         * m4/lchmod.m4 (gl_FUNC_LCHMOD):
40098         * m4/lchown.m4 (gl_FUNC_LCHOWN):
40099         * m4/long-options.m4 (gl_LONG_OPTIONS):
40100         * m4/lstat.m4 (gl_FUNC_LSTAT):
40101         * m4/md5.m4 (gl_MD5):
40102         * m4/memcasecmp.m4 (gl_MEMCASECMP):
40103         * m4/memcoll.m4 (gl_MEMCOLL):
40104         * m4/mempcpy.m4 (gl_FUNC_MEMPCPY):
40105         * m4/memrchr.m4 (gl_FUNC_MEMRCHR):
40106         * m4/memxor.m4 (gl_MEMXOR):
40107         * m4/mkancesdirs.m4 (gl_MKANCESDIRS):
40108         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS):
40109         * m4/modechange.m4 (gl_MODECHANGE):
40110         * m4/mountlist.m4 (gl_MOUNTLIST):
40111         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP):
40112         * m4/openat.m4 (gl_FUNC_OPENAT):
40113         * m4/pathmax.m4 (gl_PATHMAX):
40114         * m4/physmem.m4 (gl_PHYSMEM):
40115         * m4/posixtm.m4 (gl_POSIXTM):
40116         * m4/posixver.m4 (gl_POSIXVER):
40117         * m4/quote.m4 (gl_QUOTE):
40118         * m4/quotearg.m4 (gl_QUOTEARG):
40119         * m4/readtokens.m4 (gl_READTOKENS):
40120         * m4/readutmp.m4 (gl_READUTMP):
40121         * m4/regex.m4 (gl_REGEX):
40122         * m4/safe-read.m4 (gl_SAFE_READ):
40123         * m4/safe-write.m4 (gl_SAFE_WRITE):
40124         * m4/same.m4 (gl_SAME):
40125         * m4/save-cwd.m4 (gl_SAVE_CWD):
40126         * m4/savedir.m4 (gl_SAVEDIR):
40127         * m4/settime.m4 (gl_SETTIME):
40128         * m4/sha1.m4 (gl_SHA1):
40129         * m4/sig2str.m4 (gl_FUNC_SIG2STR):
40130         * m4/stat-macros.m4 (gl_STAT_MACROS):
40131         * m4/stat-time.m4 (gl_STAT_TIME):
40132         * m4/stdio-safer.m4 (gl_FOPEN_SAFER):
40133         * m4/stdlib-safer.m4 (gl_STDLIB_SAFER):
40134         * m4/strdup.m4 (gl_FUNC_STRDUP):
40135         * m4/strftime.m4 (gl_FUNC_GNU_STRFTIME):
40136         * m4/strndup.m4 (gl_FUNC_STRNDUP):
40137         * m4/strnlen.m4 (gl_FUNC_STRNLEN):
40138         * m4/strverscmp.m4 (gl_FUNC_STRVERSCMP):
40139         * m4/time_r.m4 (gl_TIME_R):
40140         * m4/timespec.m4 (gl_TIMESPEC):
40141         * m4/unistd-safer.m4 (gl_UNISTD_SAFER):
40142         * m4/unlinkdir.m4 (gl_UNLINKDIR):
40143         * m4/unlocked-io.m4 (gl_FUNC_GLIBC_UNLOCKED_IO):
40144         * m4/userspec.m4 (gl_USERSPEC):
40145         * m4/utimecmp.m4 (gl_UTIMECMP):
40146         * m4/utimens.m4 (gl_UTIMENS):
40147         * m4/xalloc.m4 (gl_XALLOC):
40148         * m4/xgetcwd.m4 (gl_XGETCWD):
40149         * m4/xnanosleep.m4 (gl_XNANOSLEEP):
40150         * m4/xreadlink.m4 (gl_XREADLINK):
40151         * m4/xstrtod.m4 (gl_XSTRTOD):
40152         * m4/yesno.m4 (gl_YESNO):
40153         Don't use AC_LIBSOURCES; instead, rely on the files in ../modules/
40154         to get the necessary .h files and whatnot.
40155
40156 2006-08-21  Mark D. Baushke  <mdb@gnu.org>
40157             Bruno Haible  <bruno@clisp.org>
40158
40159         * gnulib-tool (func_verify_module): Work around Sun's non-POSIX 1003.2
40160         /bin/sh understanding of '!' conditional negation.
40161
40162 2006-08-21  Jim Meyering  <jim@meyering.net>
40163
40164         * modules/openat (Depends-on): Really alphabetize.
40165
40166         * modules/acl (Depends-on): Add error and quote.
40167
40168         * check-module (find_included_lib_files): Add at-func.c to the
40169         ok-to-include-more-than-once white list.
40170
40171         * modules/openat (Depends-on): Add lstat.  Alphabetize.
40172
40173 2006-08-21  Bruno Haible  <bruno@clisp.org>
40174
40175         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
40176         Emit a pkgdata_DATA variable only if some snippets add contents to it.
40177         Reported by Martin Lambers <marlam@marlam.de>.
40178
40179 2006-08-21  Bruno Haible  <bruno@clisp.org>
40180
40181         * gnulib-tool (func_emit_lib_Makefile_am): If the snippets already
40182         specify an installation location, don't emit a noinst_LIBRARIES or
40183         noinst_LTLIBRARIES assignment.
40184
40185 2006-08-21  Bruno Haible  <bruno@clisp.org>
40186
40187         BeOS portability.
40188         * modules/mbchar (Include): Don't test HAVE_WCTYPE_H any more, since
40189         BeOS has mbrtowc() but no <wctype.h>.
40190
40191 2006-08-21  Bruno Haible  <bruno@clisp.org>
40192
40193         BeOS portability.
40194         * m4/mbchar.m4 (gl_MBCHAR): Compile mbchar.c also if <wctype.h> doesn't
40195         exist.
40196
40197 2006-08-21  Bruno Haible  <bruno@clisp.org>
40198
40199         BeOS portability.
40200         * lib/mbchar.h: Include <wctype.h> only if it exists.
40201
40202 2006-08-20  Paul Eggert  <eggert@cs.ucla.edu>
40203
40204         Remove files that are no longer needed by their respective modules.
40205         * m4/obstack.m4: Remove.
40206         * m4/strerror_r.m4: Remove.
40207         * m4/uint32_t.m4: Remove.
40208         * m4/uintptr_t.m4: Remove.
40209         * m4/ullong_max.m4: Remove.
40210         * m4/xstrtoimax.m4: Remove.
40211         * m4/xstrtoumax.m4: Remove.
40212
40213         * m4/cycle-check.m4 (gl_CYCLE_CHECK): Do not require
40214         gl_AC_TYPE_UINTMAX_T, gl_STRUCT_DEV_INO, or gl_SAME_INODE, since gnulib
40215         dependencies now capture this.
40216
40217         * m4/cycle-check.m4 (gl_CYCLE_CHECK):
40218         Do not use AC_LIBSOURCES, since gnulib modules now do this.
40219         * m4/fsusage.m4 (gl_FSUSAGE): Likewise.
40220         * m4/human.m4 (gl_HUMAN): Likewise.
40221         * m4/inttostr.m4 (gl_INTTOSTR): Likewise.
40222         * m4/xstrtol.m4 (gl_XSTRTOL): Likewise.
40223
40224         * m4/filemode.m4 (gl_FILEMODE): Require AC_STRUCT_ST_DM_MODE.
40225
40226         * m4/filemode.m4 (gl_PREREQ_FSUSAGE_EXTRA): Do not require
40227         gl_AC_TYPE_INTMAX_T or gl_AC_TYPE_UINTMAX_T, since we now require
40228         stdint.
40229         * m4/human.m4 (gl_HUMAN): Likewise.
40230         * m4/inttostr.m4 (gl_PREREQ_INTTOSTR): Likewise.
40231         * m4/mkstemp.m4 (gl_PREREQ_TEMPNAME): Likewise.
40232         * m4/strtoimax.m4 (gl_PREREQ_STRTOIMAX): Likewise.
40233         * m4/strtoumax.m4 (gl_PREREQ_STRTOUMAX): Likewise.
40234         * m4/xstrtol (gl_XSTRTOL): Likewise.
40235
40236         * m4/gethrxtime.m4 (gl_XTIME): gl_AC_TYPE_LONG_LONG ->
40237         AC_TYPE_LONG_LONG_INT.
40238         * m4/strtoimax.m4 (gl_PREREQ_STRTOIMAX): Likewise.
40239         * m4/strtoll.m4 (gl_FUNC_STRTOLL): Likewise.
40240         * m4/strtoull.m4 (gl_FUNC_STRTOULL): Likewise, for unsigned long.
40241         * m4/strtoumax.m4 (gl_PREREQ_STRTOUMAX): Likewise.
40242
40243         * m4/human.m4 (gl_HUMAN): Do not require AM_STDBOOL_H since we depend
40244         on stdbool.
40245
40246         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL_H, gl_PREREQ_XSTRTOL): Remove.
40247         (gl_PREREQ_XSTRTOUL): Remove.
40248
40249         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Check for hasmntopt.
40250
40251         * m4/posixver.m4: Fix comment since head -1 now works even in POSIX
40252         mode.
40253
40254 2006-08-20  Paul Eggert  <eggert@cs.ucla.edu>
40255
40256         Add and change modules to make it easier for coreutils to use
40257         gnulib-tool.
40258         * modules/backupfile (Files): Remove m4/d-ino.m4.
40259         (Depends-on): Add d-ino.
40260         * modules/cycle-check (Depends-on): Add stdint.
40261         (lib_SOURCES): Add cycle-check.h.
40262         * modules/d-ino: New module.
40263         * modules/d-type: New module.
40264         * modules/error (Files): Remove m4/strerror_r.m4.
40265         * modules/filemode (Files): Add m4/st_dm_mode.m4.
40266         * modules/fsuage (Files): Remove m4/ulonglong.m4, m4/stdint_h.m4,
40267         m4/inttypes_h.m4, m4/uintmax_t.m4.
40268         (Depends-on): Add stdint.
40269         (lib_SOURCES): Add fsusage.h.
40270         * modules/getcwd (Files): Remove d-ino.m4.
40271         (Depends-on): Add d-ino.
40272         * modules/getndelim2 (Depends-on): Add stdint.
40273         * modules/glob (Files): Remove m4/d-type.m4.
40274         (Depends-on): Add d-type.
40275         * modules/host-os: New module.
40276         * modules/human (Files):  Remove m4/ulonglong.m4, m4/stdint_h.m4,
40277         m4/inttypes_h.m4, m4/uintmax_t.m4.
40278         * Depends-on: Add stdint.
40279         (lib_SOURCES): Add human.h.
40280         * modules/inttostr (Files): Remove m4/intmax_t.m4,
40281         m4/inttostr.m4, m4/inttypes_h.m4, m4/longlong.m4, m4/stdint_h.m4,
40282         m4/uintmax_t.m4, m4/ulonglong.m4.
40283         (Depends-on): Add stdint.
40284         (EXTRA_DIST): Add inttostr.h.
40285         * modules/lchmod: New module.
40286         * modules/link-follow: New module.
40287         * modules/mkdir-p (Files): Remove lib/lchmod.h, m4/lchmod.m4.
40288         (Depends-on): Add lchmod.
40289         * modules/mkstemp (Files): Remove m4/ulonglong.m4,
40290         m4/stdint_h.m4, m4/inttypes_h.m4, m4/uintmax_t.m4.
40291         (Depends-on): Add stdint.
40292         * modules/obstack (Files): Remove m4/inttypes_h.m4, m4/obstack.m4,
40293         m4/stdint_h.m4, m4/uintmax_t.m4, m4/ulonglong.m4.
40294         (Depends-on): Add stdint.
40295         (configure.ac): Change gl_OBSTACK to AC_FUNC_OBSTACK.
40296         * modules/perl: New module.
40297         * modules/regex (Depends-on): Add stdint.
40298         * modules/rmdir-errno: New module.
40299         * modules/strtoimax (Files): Remove m4/stdint_h.m4, m4/inttypes_h.m4,
40300         m4/intmax_t.m4.
40301         (Depends-on): Add stdint.
40302         * modules/strtoumax (Files): Remove m4/stdint_h.m4, m4/inttypes_h.m4,
40303         m4/uintmax_t.m4.
40304         (Depends-on): Add stdint.
40305         * modules/unlink-busy: New module.
40306         * modules/utimecmp (Depends-on): Add stdint.
40307         * modules/uptime: New module.
40308         * modules/winsz-ioctl: New module.
40309         * modules/winsz-termios: New module.
40310         * modules/xnanosleep (Depends-on): Add nanosleep.
40311         * modules/ullong_max: Remove.
40312         * modules/xstrtoimax (Files): Remove m4/xstrtoimax.m4.
40313         (configure.ac): Remove gl_XSTRTOIMAX; no action needed now.
40314         * modules/xstrtol (Files): Remove m4/ulonglong.m4, m4/longlong.m4,
40315         m4/stdint_h.m4, m4/inttypes_h.m4, m4/uintmax_t.m4, m4/intmax_t.m4.
40316         (Depends-on): Add inttypes.
40317         (lib_SOURCES): Add xstrtol.h.
40318         * modules/xstrtoumax (Files): Remove m4/xstrtoumax.m4.
40319         (configure.ac): Remove gl_XSTRTOUMAX; no action needed now.
40320         * MODULES.html.sh: Move 'assert' into the assert section.
40321         Move 'dummy' into the linking section.
40322         Remove ullong_max.
40323         Add section for compatibility checks for POSIX:2001 functions,
40324         and put d-ino, d-type, link-follow, rmdir-errno, unlink-busy,
40325         winsz-ioctl, and winsz-termios into it.
40326         Add lchmod.
40327         Add top-level Misc section and put host-os, perl, and uptime
40328         into it.
40329
40330 2006-08-20  Paul Eggert  <eggert@cs.ucla.edu>
40331
40332         * lib/cycle-check.h: Include <stdint.h> unconditionally, since we
40333         now assume the stdint module.  Do not include inttypes.h.
40334         * lib/fsusage.h: Likewise.
40335         * lib/getndelim2.c: Likewise.
40336         * lib/human.h: Likewise.
40337         * lib/inttostr.h: Likewise.
40338         * lib/obstack.c: Likewise.
40339         * lib/regex_internal.h: Likewise.
40340         * lib/tempname.c: Likewise.
40341         * lib/utimecmp.c: Likewise.
40342         * lib/xstrtol.h: Likewise.
40343
40344         * lib/stat_.h: Fix typo: HAVE_FUNC_LSTAT -> HAVE_LSTAT.
40345
40346         * lib/strtoimax.c: Adjust to macro name changes in Autoconf,
40347         e.g., HAVE_LONG_LONG -> HAVE_LONG_LONG_INT.
40348         * lib/xtime.h: Likewise.
40349
40350 2006-08-19  Paul Eggert  <eggert@cs.ucla.edu>
40351
40352         * modules/openat (Files): Add lib/fchmodat.c.
40353         Fixes problem reported by Jay Youngman.
40354
40355 2006-08-19  Paul Eggert  <eggert@cs.ucla.edu>
40356
40357         * lib/fchmodat.c: New file, from coreutils.  This was inadvertently
40358         omitted in the 2006-08-17 update.  Problem reported by Jay Youngman.
40359
40360 2006-08-18  Paul Eggert  <eggert@cs.ucla.edu>
40361             Bruno Haible  <bruno@clisp.org>
40362
40363         * m4/bison-i18n.m4 (BISON_I18N): Also handle the case where yacc exists
40364         and is a script that invokes bison. Tighten the code. Add comments.
40365
40366 2006-08-18  Jim Meyering  <jim@meyering.net>
40367
40368         * m4/gethrxtime.m4 (gl_PREREQ_GETHRXTIME): Also check for
40369         CLOCK_REALTIME, since gethrxtime may revert to using clock_gettime via
40370         gettime.c.  Gabor Z. Papp reported that gethrxtime-using programs
40371         failed to link due to unresolved clock_gettime on a linux-2.4.x system.
40372
40373 2006-08-18  Bruno Haible  <bruno@clisp.org>
40374
40375         * modules/bison-i18n: New file.
40376         * MODULES.html.sh (Internationalization functions): Add it.
40377
40378 2006-08-18  Bruno Haible  <bruno@clisp.org>
40379
40380         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Also check for
40381         sys/statvfs.h. When getmntinfo was found, check its declaration and
40382         set either MOUNTED_GETMNTINFO or MOUNTED_GETMNTINFO2 depending on it.
40383
40384 2006-08-18  Bruno Haible  <bruno@clisp.org>
40385
40386         * m4/bison-i18n.m4: New file, from bison.
40387
40388 2006-08-18  Bruno Haible  <bruno@clisp.org>
40389
40390         * lib/mountlist.c [MOUNTED_GETMNTINFO2]: Include sys/statvfs.h.
40391         (ME_DUMMY): Treat "kernfs" as a dummy.
40392         (read_file_system_list) [MOUNTED_GETMNTINFO2]: Implement.
40393
40394 2006-08-17  Paul Eggert  <eggert@cs.ucla.edu>
40395
40396         Update from coreutils.
40397
40398         2006-08-15  Jim Meyering  <jim@meyering.net>
40399
40400         * m4/openat.m4 (gl_FUNC_OPENAT): Add at-func.c via AC_LIBSOURCES.
40401
40402         2006-01-17  Jim Meyering  <jim@meyering.net>
40403
40404         * m4/fts.m4 (gl_FUNC_FTS_CORE): Depend on gl_FUNC_OPENAT.
40405
40406         2006-01-11  Jim Meyering  <jim@meyering.net>
40407
40408         * m4/openat.m4 (gl_FUNC_OPENAT): Require and compile fchmodat.c.
40409         Check for the lchmod function.
40410
40411 2006-08-17  Paul Eggert  <eggert@cs.ucla.edu>
40412
40413         Update from coreutils.
40414
40415         * lib/__fpending.h: Add copyright notice.
40416         * lib/fprintftime.h: Likewise.
40417         * lib/savedir.c: Use (C) in copyright notice.
40418         * lib/savedir.h: Likewise.
40419
40420         2006-08-15  Jim Meyering  <jim@meyering.net>
40421
40422         * lib/at-func.c: New file, with the logic of all emulated at-functions.
40423         * lib/openat-priv.h: Include <errno.h> and define ENOSYS,
40424         in support of the EXPECTED_ERRNO macro.
40425         * lib/openat.c (fstatat, unlinkat, fchownat): Remove function
40426         definitions.  Instead, define the appropriate symbols and include
40427         "at-func.c".
40428         * lib/mkdirat.c (mkdirat): Likewise.
40429         * lib/fchmodat.c (fchmodat): Likewise.
40430         (ENOSYS): Remove definition.
40431         * lib/openat.c: Don't include <errno.h>, now that "openat-priv.h" does
40432         it.  Don't include "unistd--.h" -- it wasn't ever used.
40433
40434         2006-01-17  Jim Meyering  <jim@meyering.net>
40435
40436         Rewrite fts.c not to change the current working directory,
40437         by using openat, fstatat, fdopendir, etc..
40438
40439         * lib/fts.c [! _LIBC]: Include "openat.h" and "unistd--.h".
40440         (HAVE_OPENAT_SUPPORT): Define.
40441         [_LIBC] (fchdir): Don't undef or define; no longer used.
40442         (FCHDIR): Define in terms of cwd_advance_fd rather than fchdir.
40443         Now, this `function' always succeeds, and consumes its file descriptor
40444         parameter -- so callers must not close such FDs.  Update callers.
40445         (diropen_fd, opendirat, cwd_advance_fd): New functions.
40446         (diropen): Add parameter, SP.  Adjust all callers.
40447         Implement using diropen_fd, rather than open.
40448         (fts_open): Initialize new member, fts_cwd_fd.
40449         Remove fts_rft-setting code.
40450         (fts_close): Close fts_cwd_fd, if necessary.
40451         (__opendir2): Define in terms of opendir or opendirat,
40452         depending on whether the FST_NOCHDIR flag is set.
40453         (fts_build): Since fts_safe_changedir consumes its FD, and since
40454         this code must do `closedir(dirp)', dup the dirfd(dirp) argument,
40455         and close the dup'd file descriptor upon failure.
40456         (fts_stat): Use fstatat(...AT_SYMLINK_NOFOLLOW) in place of lstat.
40457         (fts_safe_changedir): Tweak semantics to reflect that this function
40458         now calls cwd_advance_fd and hence consumes its FD argument.
40459         * lib/fts_.h [struct FTS] (fts_cwd_fd): New member.
40460         [struct FTS] (fts_rft): Remove now-unused member.
40461         [struct FTS] (fts_cycle.state): Improve comment.
40462
40463         * lib/openat.c (openat_needs_fchdir): New function.
40464         * lib/openat.h (openat_needs_fchdir): Declare it.
40465
40466 2006-08-16  Paul Eggert  <eggert@cs.ucla.edu>
40467
40468         * lib/memcoll.c (memcoll): Set errno = 0 in the shortcut case, too.
40469         Problem and fix reported by Pádraig Brady in
40470         <http://lists.gnu.org/archive/html/bug-coreutils/2006-08/msg00099.html>.
40471
40472 2006-08-15  Paul Eggert  <eggert@cs.ucla.edu>
40473
40474         * modules/cycle-check (configure.ac): Add gl_CYCLE_CHECK.
40475
40476 2006-08-15  Paul Eggert  <eggert@cs.ucla.edu>
40477
40478         * lib/memcoll.c (memcoll): Optimize for the common case where the
40479         arguments are bytewise equal.
40480
40481 2006-08-15  Paul Eggert  <eggert@cs.ucla.edu>
40482
40483         * doc/regexprops-generic.texi: Add a copyright notice.
40484
40485 2006-08-15  Bruno Haible  <bruno@clisp.org>
40486
40487         * modules/tmpdir (License): Change to LGPL.
40488
40489 2006-08-15  Bruno Haible  <bruno@clisp.org>
40490
40491         * gnulib-tool (func_all_modules, func_verify_module): COPYING is not a
40492         module.
40493
40494 2006-08-14  Simon Josefsson  <jas@extundo.com>
40495
40496         * config/srclist.txt: Add gnupload.
40497
40498 2006-08-14  Paul Eggert  <eggert@cs.ucla.edu>
40499
40500         Change copyright notice from LGPL 2 to GPL 2, since that's the
40501         standard form used in the gnulib repository.
40502         * tests/test-lock.c: Likewise.
40503         * tests/test-stdint.c: Likewise.
40504         * tests/test-tls.c: Likewise.
40505
40506         * users.txt: Add bison, diffutils, libprelude, prelude-lml,
40507         prelude-manager.  User shorter URLs for GNU projects, without '?'.
40508         Add copyright notice.
40509
40510         * check-module: Add copyright notice.  Output a copyright
40511         notice if "--version" is specified.
40512         * modules/COPYING: New file.
40513         * tests/test-getaddrinfo.c: Add copyright notice.
40514         * tests/test-verify.c: Likewise.
40515
40516 2006-08-14  Paul Eggert  <eggert@cs.ucla.edu>
40517
40518         Change copyright notice from LGPL 2 to GPL 2, since that's the
40519         standard form used in the gnulib repository.
40520         * lib/lock.c: LGPL -> GPL.
40521         * lib/lock.h: Likewise.
40522         * lib/strnlen1.c: Likewise.
40523         * lib/strnlen1.h: Likewise.
40524         * lib/tls.c: Likewise.
40525         * lib/tls.h: Likewise.
40526         * lib/tmpdir.c: Likewise.
40527
40528         * lib/TODO: Remove; this belongs only in coreutils.
40529
40530 2006-08-14  Paul Eggert  <eggert@cs.ucla.edu>
40531
40532         Add copyright notices to long-enough files that lack them, since
40533         otherwise the files aren't clearly free.  Use the same notice that
40534         getdate.texi already uses.
40535         * doc/alloca-opt.texi: Add copyright notice.
40536         * doc/alloca.texi: Likewise.
40537         * doc/ctime.texi: Likewise.
40538         * doc/functions.texi: Likewise.
40539         * doc/gcd.texi: Likewise.
40540         * doc/gnulib-tool.texi: Likewise.
40541         * doc/inet_ntoa.texi: Likewise.
40542         * doc/visibility.texi: Likewise.
40543
40544         * doc/getdate.texi: Update FDL version from 1.1 to 1.2.
40545         * doc/quote.texi: Add copyright notice.
40546
40547         * doc/solaris-versions: Add SunOS 5.10, SunOS 1.x, SunOS 4.0, SunOS
40548         4.0.x, SunOS 4.1.1.1, SunOS 4.1.1_U1, SunOS 4.1.3B.  SunOS 4.1.3
40549         was Solaris 1.1A.  Remove space before B in Solaris 1.1.1B.
40550         Mention SunOS 5.11.  Mention that everything before SunOS 5.7
40551         is now obsolete, and give a pointer to the Sun list.
40552         Add copyright notice.
40553
40554 2006-08-14  Paul Eggert  <eggert@cs.ucla.edu>
40555
40556         * config/srclistvars.sh: Add copyright notice.
40557
40558 2006-08-14  Eric Blake  <ebb9@byu.net>
40559
40560         Import the following change from libc:
40561
40562         2006-08-12  Ulrich Drepper  <drepper@redhat.com>
40563
40564         Upstream bug 2997.
40565         * lib/misc/error.c: Add space between program name and message if file
40566         name is missing.
40567
40568 2006-08-12  Karl Berry  <karl@gnu.org>
40569
40570         * config/srclist.txt (ssize_t.m4, sig_atomic_t.m4, signalblocking.m4):
40571         remove, these originate in gnulib now.
40572
40573 2006-08-11  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
40574
40575         * doc/Makefile (standards.info standards.html standards.dvi):
40576         Also depend on make-stds.texi.
40577
40578 2006-08-11  Paul Eggert  <eggert@cs.ucla.edu>
40579
40580         * lib/pipe-safer.c (pipe_safer): Fix misspelling: HAVE_FUNC_PIPE ->
40581         HAVE_PIPE.  Fix a file descriptor leak when fd_safer fails.
40582
40583         * lib/regex_internal.c (re_string_skip_chars): Don't assume WEOF fits
40584         in wchar_t.  Problem reported by Eric Blake.
40585
40586         * lib/snprintf.c (snprintf): memcpy LEN bytes, not SIZE - 1, when
40587         LEN is smaller than SIZE.  Suggested by Bruno Haible.
40588         Also, help the compiler to keep LEN in a register.
40589
40590 2006-08-11  Eric Blake  <ebb9@byu.net>
40591
40592         * users.txt: Sort.  Add tar.
40593
40594 2006-08-11  Bruno Haible  <bruno@clisp.org>
40595
40596         * users.txt: New file.
40597
40598 2006-08-11  Bruno Haible  <bruno@clisp.org>
40599
40600         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Include <stdio.h> and <time.h>
40601         before <wchar.h>. Needed for OSF/1 and BSD/OS.
40602
40603 2006-08-10  Paul Eggert  <eggert@cs.ucla.edu>
40604
40605         * modules/snprintf (Depends-on): Remove minmax.
40606         (Maintainer): Add self and Bruno.
40607
40608 2006-08-10  Paul Eggert  <eggert@cs.ucla.edu>
40609
40610         * lib/.cppi-disable: Add snprintf.h, socket_.h.
40611         * lib/snprintf.c: Include <errno.h> and <limits.h>.
40612         (EOVERFLOW): Define if the system does not.
40613         Do not include "minmax.h"; it wasn't used.
40614         (snprintf): Don't assume size_t promotes to an unsigned type.
40615         Fix bug when generated string was too long for the buffer: the
40616         buffer's contents are supposed to be the initial prefix of the
40617         output.  Don't assume vasnprintf returns EOVERFLOW if the size
40618         exceeds INT_MAX; do the check ourselves.
40619
40620         Import the following changes from libc:
40621
40622         2006-06-02  Jakub Jelinek  <jakub@redhat.com>
40623
40624         * lib/posix/regex_internal.c (re_string_skip_chars): If no character
40625         has been converted at all, set *last_wc to WEOF.  If mbrtowc failed,
40626         set wc to the byte which couldn't be converted.
40627         (re_string_reconstruct): Don't clear valid_raw_len before calling
40628         re_string_skip_chars.  If wc is WEOF after re_string_skip_chars, set
40629         tip_context using re_string_context_at.
40630
40631         2006-05-02  Ulrich Drepper  <drepper@redhat.com>
40632
40633         * lib/posix/regex.h: g++ still cannot handled [restrict].
40634
40635         2006-04-21  Ulrich Drepper  <drepper@redhat.com>
40636
40637         * lib/posix/regex.h: Remove special handling for VMS.
40638
40639 2006-08-10  Jim Meyering  <jim@meyering.net>
40640
40641         * modules/same-inode: New module.
40642         * modules/dev-ino: New module.
40643         * modules/cycle-check: Depend on these modules, rather than simply
40644         including their .h files.
40645         (Makefile.am): Don't list cycle-check.[ch] here, now that they're
40646         required via m4/cycle-check.m4.
40647         * modules/same: Depend on new same-inode module, rather than
40648         including same-inode.h.
40649         * modules/chdir-safer: New file.
40650
40651         * modules/chown (Depends-on): Add stat-macros.
40652
40653 2006-08-10  Jim Meyering  <jim@meyering.net>
40654
40655         * m4/cycle-check.m4: New file.
40656         Require gl_STRUCT_DEV_INO and gl_SAME_INODE.
40657         * m4/dev-ino.m4, m4/same-inode.m4: New files.
40658
40659 2006-08-10  Eric Blake  <ebb9@byu.net>
40660
40661         * modules/verror (Depends-on): Remove bogus gl_VERROR that snuck
40662         in from original proposal.
40663
40664 2006-08-10  Eric Blake  <ebb9@byu.net>
40665         and Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
40666
40667         * gnulib-tool (func_import): Detect unexpanded macros in gnulib
40668         namespace.
40669
40670 2006-08-10  Bruno Haible  <bruno@clisp.org>
40671
40672         * gnulib-tool (func_create_testdir): Detect unexpanded macros here
40673         as well.
40674
40675 2006-08-09  Paul Eggert  <eggert@cs.ucla.edu>
40676
40677         Sync from coreutils.
40678
40679         2006-07-19  Mike Frysinger  <vapier@gentoo.org>
40680
40681         * lib/mountlist.c [ME_REMOTE]: Filter out cifs.
40682         Reported by Toralf Förster in <http://bugs.gentoo.org/141012>.
40683
40684 2006-08-09  Paul Eggert  <eggert@cs.ucla.edu>
40685
40686         * modules/restrict: Remove; no longer needed now that we assume
40687         Autoconf 2.59 or later.
40688         * MODULES.html.sh: Remove 'restrict'.
40689         * modules/argp (Depends-on): Remove 'restrict'.
40690         * modules/base64 (Depends-on): Likewise.
40691         * modules/gc (Depends-on): Likewise.
40692         * modules/getaddrinfo (Depends-on): Likewise.
40693         * modules/glob (Depends-on): Likewise.
40694         * modules/inet_ntop (Depends-on): Likewise.
40695         * modules/inet_pton (Depends-on): Likewise.
40696         * modules/memxor (Depends-on): Likewise.
40697         * modules/regex (Depends-on): Likewise.
40698         * modules/strtok_r (Depends-on): Likewise.
40699         * modules/time_r (Depends-on): Likewise.
40700
40701 2006-08-09  Paul Eggert  <eggert@cs.ucla.edu>
40702
40703         * m4/argp.m4 (gl_ARGP): Require AC_C_RESTRICT.
40704         * m4/gc.m4 (gl_PREREQ_GC): Likewise.
40705         * m4/glob.m4 (gl_PREREQ_GLOB): Likewise.
40706         * m4/inet_ntop.m4 (gl_PREREQ_INET_NTOP): Likewise.
40707         * m4/inet_pton.m4 (gl_PREREQ_INET_PTON): Likewise.
40708         * m4/memxor.m4 (gl_MEMXOR): Likewise.
40709         * m4/restrict.m4: Remove; no longer needed.  All remaining uses of
40710         gl_C_RESTRICT replaced by AC_C_RESTRICT.
40711
40712         Merge from coreutils.
40713         * m4/regex.m4 (gl_PREREQ_REGEX): Require AC_C_RESTRICT, not
40714         gl_C_RESTRICT, now that we assume Autoconf 2.59 or later.
40715         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Likewise.
40716         * m4/time_r.m4 (gl_TIME_R): Likewise.
40717
40718 2006-08-09  Karl Berry  <karl@gnu.org>
40719
40720         * config/srclist.txt: no more gettext-tools, per Bruno.
40721
40722 2006-08-08  Eric Blake  <ebb9@byu.net>
40723
40724         * modules/verror: New module.
40725         * MODULES.html.sh: Document it.
40726
40727 2006-08-08  Eric Blake  <ebb9@byu.net>
40728
40729         * lib/verror.h, lib/verror.c: New files.
40730
40731 2006-08-08  Eric Blake  <ebb9@byu.net>
40732
40733         * lib/verror.c (verror_at_line): Work around glibc bug 2997, so that
40734         verror_at_line output complies with GNU Coding Standards even when
40735         file is NULL.
40736
40737 2006-08-07  Bruno Haible  <bruno@clisp.org>
40738
40739         * lib/allocsa.h (sa_alignof) [_AIX]: Also consider 'long long' in newer
40740         versions of AIX.
40741         Reported by Ralf Wildenhues.
40742
40743 2006-08-07  Bruno Haible  <bruno@clisp.org>
40744
40745         * gnulib-tool (func_create_testdir): Wrap the set of autoconf snippets
40746         in an AC_DEFUN. Needed so that the autoconf snippets can use
40747         AC_REQUIRE.
40748
40749 2006-08-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
40750
40751         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
40752         Initialize pkgdata_DATA.
40753         * modules/javaversion (Makefile.am): Add to pkgdata_DATA, rather than
40754         overriding it.
40755
40756 2006-08-06  Eric Blake  <ebb9@byu.net>
40757
40758         * lib/error.h: Fold in some upstream changes from glibc.
40759         * lib/error.c: Likewise.
40760
40761 2006-08-04  Bruno Haible  <bruno@clisp.org>
40762
40763         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
40764         Make the mostlyclean-local rule depend on mostlyclean-generic.
40765         Reported by Jim Meyering. Solution suggested by Ralf Wildenhues.
40766
40767 2006-07-31  Bruno Haible  <bruno@clisp.org>
40768
40769         * m4/localcharset.m4 (gl_LOCALCHARSET): Remove tests for <stddef.h>,
40770         <stdlib.h>, <string.h>.
40771
40772 2006-07-30  Bruno Haible  <bruno@clisp.org>
40773
40774         * modules/readlink (License): Change to LGPL.
40775
40776 2006-07-30  Bruno Haible  <bruno@clisp.org>
40777
40778         * modules/javaversion (Makefile.am): Distribute javaversion.java and
40779         javaversion.class. Also install javaversion.class in $(pkgdatadir) and
40780         set PKGDATADIR to point to it.
40781
40782 2006-07-30  Bruno Haible  <bruno@clisp.org>
40783
40784         * modules/csharpexec (configure.ac): Comment out macro invocation.
40785         * modules/javaexec (configure.ac): Likewise.
40786         * modules/javacomp-script (configure.ac): Likewise.
40787
40788         * modules/csharpcomp-script (configure.ac): Use AC_REQUIRE.
40789
40790 2006-07-30  Bruno Haible  <bruno@clisp.org>
40791
40792         * modules/clean-temp (Depends-on): Add linkedhash-list, remove
40793         linked-list.
40794
40795 2006-07-30  Bruno Haible  <bruno@clisp.org>
40796
40797         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Assume <string.h> exists.
40798
40799 2006-07-30  Bruno Haible  <bruno@clisp.org>
40800
40801         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
40802         Initialize MOSTLYCLEANFILES to core and *.stackdump, so that core dumps
40803         get removed.
40804
40805 2006-07-29  Bruno Haible  <bruno@clisp.org>
40806
40807         Make it possible for gnulib-tool to work with locally modified or
40808         augmented gnulib repositories.
40809         * gnulib-tool (func_usage): Document --local-dir option.
40810         (local_gnulib_dir): New variable.
40811         Handle --local-dir option.
40812         (func_lookup_file): New function.
40813         (func_all_modules, func_verify_module): Look also in $local_gnulib_dir.
40814         (func_get_description, func_get_filelist, func_get_description,
40815         func_get_filelist, func_get_dependencies, func_get_autoconf_snippet,
40816         func_get_automake_snippet, func_get_include_directive,
40817         func_get_license, func_get_maintainer): Use func_lookup_file.
40818         (func_import, func_create_testdir): Use func_lookup_file.
40819
40820 2006-07-29  Bruno Haible  <bruno@clisp.org>
40821
40822         * modules/setenv (Depends-on): Add unistd.
40823
40824 2006-07-29  Bruno Haible  <bruno@clisp.org>
40825
40826         * lib/setenv.c: Undo unintended modification done on 2006-02-27.
40827
40828 2006-07-29  Bruno Haible  <bruno@clisp.org>
40829
40830         * lib/localcharset.c: Assume <stddef.h>, <stdlib.h>, <string.h> exist.
40831
40832 2006-07-29  Bruno Haible  <bruno@clisp.org>
40833
40834         * gnulib-tool (import, update): If there is no Makefile.am, look at
40835         aclocal.m4, instead of bailing out.
40836
40837 2006-07-29  Bruno Haible  <bruno@clisp.org>
40838
40839         * gnulib-tool (func_usage): Revert most of the 2006-07-15 change.
40840         Categorize the options by when they are useful.
40841
40842 2006-07-29  Bruno Haible  <bruno@clisp.org>
40843
40844         * gnulib-tool (func_usage): Document option --no-libtool.
40845         Handle option --no-libtool.
40846         (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am): Update
40847         for changed semantics of $libtool variable.
40848         (func_import): Likewise. If libtool is not used, show this through
40849         an option --no-libtool.
40850         (func_create_testdir): Update.
40851
40852 2006-07-29  Bruno Haible  <bruno@clisp.org>
40853
40854         * gnulib-tool (func_import): Extend error message about missing
40855         --doc-base.
40856
40857 2006-07-29  Bruno Haible  <bruno@clisp.org>
40858
40859         * gnulib-tool (func_import): Don't create the $docbase directory if
40860         there is no file to store there.
40861
40862 2006-07-29  Bruno Haible  <bruno@clisp.org>
40863
40864         * gnulib-tool (autoconf_minversion): If a --dir option is given and
40865         relevant, look for configure.ac there, not in the current directory.
40866         Also use a simple search for AC_PREREQ, not "autoconf --trace".
40867
40868 2006-07-29  Bruno Haible  <bruno@clisp.org>
40869
40870         * gnulib-tool (SORT): New variable.
40871         (func_usage): Undocument --assume-autoconf option.
40872         Remove --assume-autoconf option handling.
40873         (autoconf_minversion): Determine from the contents of configure.ac.
40874         (func_import): Remove autoconf_minversion handling.
40875         Suggested by Eric Blake.
40876
40877 2006-07-29  Bruno Haible  <bruno@clisp.org>
40878
40879         * doc/gnulib-tool.texi (gl_LIBTOOL): Mention --no-libtool option.
40880
40881 2006-07-29  Bruno Haible  <bruno@clisp.org>
40882
40883         * config/srclist.txt (*setenv.[ch]): Remove rules.
40884
40885 2006-07-28  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
40886
40887         * m4/inet_pton.m4, inet_ntop.m4: Check for netinet/in.h too.
40888
40889 2006-07-28  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
40890
40891         * lib/inet_ntop.h, inet_pton.h: Need to include netinet/in.h before
40892         arpa/inet.h.
40893
40894 2006-07-28  Simon Josefsson  <jas@extundo.com>
40895
40896         * modules/inet_ntop (Depends-on): Depend on arpa_inet.
40897         * modules/inet_pton (Depends-on): Likewise.
40898
40899 2006-07-28  Simon Josefsson  <jas@extundo.com>
40900
40901         * m4/netinet_in_h.m4: New file.
40902
40903 2006-07-28  Simon Josefsson  <jas@extundo.com>
40904
40905         * lib/inet_ntop.h, inet_pton.h: No need to guard netinet/in.h
40906         #include's.
40907
40908 2006-07-28  Simon Josefsson  <jas@extundo.com>
40909
40910         * lib/inet_ntop.h, inet_pton.h: No need to guard arpa/inet.h
40911         #include's.
40912
40913 2006-07-28  Paul Eggert  <eggert@cs.ucla.edu>
40914
40915         * lib/modechange.c (mode_compile): Numeric modes now affect setuid and
40916         setgid on directories only if they set these bits.
40917         * lib/modechange.h: Remove obsolete comment about masks.
40918
40919 2006-07-28  Eric Blake  <ebb9@byu.net>
40920
40921         * lib/regex_internal.h (struct re_dfa_t) [!_LIBC]: Avoid invalid C89
40922         macro expansion.
40923
40924 2006-07-28  Bruno Haible  <bruno@clisp.org>
40925
40926         * lib/inet_ntop.h, inet_pton.h: Use #if HAVE* instead of #ifdef HAVE*.
40927
40928 2006-07-28  Bruno Haible  <bruno@clisp.org>
40929
40930         * m4/mbchar.m4 (gl_MBCHAR): Also test for iswcntrl.
40931
40932 2006-07-28  Bruno Haible  <bruno@clisp.org>
40933
40934         * lib/mbchar.h (iswalnum, iswalpha, iswblank, iswcntrl, iswdigit,
40935         iswgraph, iswlower, iswprint, iswpunct, iswspace, iswupper, iswxdigit):
40936         Define fallbacks.
40937         Avoids link error on FreeBSD 4.x.
40938         Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
40939
40940         * lib/wcwidth.h (iswprint): Assume an ASCII compatible wide character
40941         encoding.
40942         * lib/mbswidth.c (iswcntrl): Likewise.
40943
40944 2006-07-27  Bruno Haible  <bruno@clisp.org>
40945
40946         * m4/stdint.m4 (gl_STDINT_H): Define __STDC_CONSTANT_MACROS during the
40947         test.
40948
40949 2006-07-27  Bruno Haible  <bruno@clisp.org>
40950
40951         * lib/stdint_.h (INT*_C, UINT*_C) [C++]: Define these if
40952         __STDC_CONSTANT_MACROS is defined, not if __STDC_LIMIT_MACROS is
40953         defined.
40954
40955 2006-07-26  Eric Blake  <ebb9@byu.net>
40956
40957         * m4/unistd-safer.m4 (gl_UNISTD_SAFER): Check for missing pipe.
40958
40959 2006-07-26  Eric Blake  <ebb9@byu.net>
40960
40961         * lib/mkstemp-safer.c [! HAVE_MKSTEMP]: Add prototype for platforms
40962         like mingw that lack mkstemp.
40963         * lib/pipe-safer.c (pipe_safer) [!HAVE_FUNC_PIPE]: Provide fallback to
40964         avoid compilation warning on mingw.
40965
40966 2006-07-26  Bruno Haible  <bruno@clisp.org>
40967
40968         * m4/stdint.m4 (gl_STDINT_H): Also verify the existence of the macros
40969         INT*_MIN, INT_LEAST*_MAX, INT_LEAST*_MIN, UINT_LEAST*_MAX,
40970         INT_FAST*_MIN, INTPTR_MIN.
40971
40972 2006-07-25  Bruno Haible  <bruno@clisp.org>
40973
40974         * modules/version-etc (Depends-on): Add stdarg.
40975
40976 2006-07-25  Bruno Haible  <bruno@clisp.org>
40977
40978         * m4/stdint.m4 (gl_INTEGER_TYPE_SUFFIX): Avoid 'eval' in front of
40979         complex commands.
40980
40981 2006-07-25  Bruno Haible  <bruno@clisp.org>
40982
40983         * lib/version-etc.c (version_etc_va): Use va_copy, assumed to be
40984         defined in <stdarg.h> or config.h.
40985
40986 2006-07-24  Paul Eggert  <eggert@cs.ucla.edu>
40987
40988         * m4/stdio-safer.m4 (gl_FOPEN_SAFER, gl_TMPFILE_SAFER): New macros.
40989         (gl_STDIO_SAFER): Remove.
40990
40991 2006-07-24  Paul Eggert  <eggert@cs.ucla.edu>
40992
40993         * MODULES.html.sh (File stream based Input/Output):
40994         Add fopen-safer, tmpfile-safer; remove stdio-safer.
40995         * modules/getusershell (Depends-on): Change stdio-safer to fopen-safer.
40996         * modules/fopen-safer, modules/tmpfile-safer: New files.
40997         * modules/stdio-safer: Remove.
40998
40999 2006-07-24  Bruno Haible  <bruno@clisp.org>
41000
41001         * modules/tmpdir: New file.
41002         * MODULES.html.sh (File system functions): Add it.
41003
41004 2006-07-24  Bruno Haible  <bruno@clisp.org>
41005
41006         * modules/javacomp (Depends-on): Add unistd, javaversion, binary-io,
41007         getline, pathname, fwriteerror, clean-temp, xvasprintf, strstr.
41008
41009 2006-07-24  Bruno Haible  <bruno@clisp.org>
41010
41011         * modules/clean-temp: New file.
41012
41013 2006-07-24  Bruno Haible  <bruno@clisp.org>
41014
41015         * m4/tmpdir.m4: New file, from GNU gettext.
41016
41017 2006-07-24  Bruno Haible  <bruno@clisp.org>
41018
41019         * lib/tmpdir.h: New file, from GNU gettext.
41020         * lib/tmpdir.c: New file, from GNU gettext.
41021
41022 2006-07-24  Bruno Haible  <bruno@clisp.org>
41023
41024         * lib/clean-temp.h: New file, from GNU gettext.
41025         * lib/clean-temp.c: New file, from GNU gettext.
41026
41027 2006-07-23  Eric Blake  <ebb9@byu.net>
41028
41029         * modules/stdio-safer (Files): Add tmpfile-safer.c.
41030         (Depends-on): Add binary-io.
41031
41032 2006-07-23  Eric Blake  <ebb9@byu.net>
41033
41034         * m4/stdio-safer.m4 (gl_STDIO_SAFER): Add tmpfile-safer.c.
41035
41036 2006-07-23  Eric Blake  <ebb9@byu.net>
41037
41038         * lib/tmpfile-safer.c: New file.
41039         * lib/stdio-safer.h (fopen_safer): Add prototype.
41040         * lib/stdio--.h (tmpfile): Make safer.
41041
41042 2006-07-23  Bruno Haible  <bruno@clisp.org>
41043
41044         * lib/gl_anylinked_list2.h (ASYNCSAFE): New macro.
41045         (gl_linked_add_first, gl_linked_add_last, gl_linked_add_before,
41046         gl_linked_add_after, gl_linked_add_at, gl_linked_remove_node,
41047         gl_linked_remove_at): Use it.
41048
41049 2006-07-22  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
41050         and Simon Josefsson <jas@extundo.com>
41051
41052         * lib/getaddrinfo.h (AI_PASSIVE): Make sure it is defined.
41053
41054         * lib/getaddrinfo.c (getaddrinfo): Support AI_PASSIVE.
41055
41056 2006-07-22  Paul Eggert  <eggert@cs.ucla.edu>
41057
41058         * modules/close-stream: New file.
41059         * modules/closeout (Description): Make it clear that it exits
41060         with a diagnostic on error.
41061         (Depends-on): Add close-stream.  Remove fpending, stdbool.
41062         * MODULES.html.sh (File stream based Input/Output): Add close-stream.
41063
41064 2006-07-22  Paul Eggert  <eggert@cs.ucla.edu>
41065
41066         * m4/close-stream.m4: New file.
41067
41068 2006-07-22  Paul Eggert  <eggert@cs.ucla.edu>
41069
41070         * lib/close-stream.c, lib/close-stream.h: New files.
41071
41072 2006-07-22  Bruno Haible  <bruno@clisp.org>
41073
41074         Merge from GNU gettext 0.15.
41075
41076         2006-05-01  Bruno Haible  <bruno@clisp.org>
41077
41078                 * build-aux/javacomp.sh.in: Update for changed javacomp.m4.
41079
41080         2006-07-22  Bruno Haible  <bruno@clisp.org>
41081
41082                 * modules/javaversion: New file.
41083                 * MODULES.html.sh (Java): Add javaversion.
41084
41085         2006-03-12  Bruno Haible  <bruno@clisp.org>
41086
41087                 * build-aux/javaexec.sh.in: Update for changed javaexec.m4.
41088
41089         2005-12-04  Bruno Haible  <bruno@clisp.org>
41090
41091                 * build-aux/csharpexec.sh.in: Add support for 'clix' launcher
41092                 (untested).
41093
41094         2006-06-21  Bruno Haible  <bruno@clisp.org>
41095
41096                 Avoid warnings from recent versions of mcs.
41097                 * build-aux/csharpcomp.sh.in (options_mcs): Don't use options
41098                 -o, -L, -r any more. Use options documented since mcs-1.0
41099                 instead. Similarly for -g.
41100
41101         2005-12-04  Bruno Haible  <bruno@clisp.org>
41102
41103                 * build-aux/csharpcomp.sh.in: Suffix for resources is
41104                 .resources, not .resource.
41105
41106         2005-07-09  Bruno Haible  <bruno@clisp.org>
41107
41108                 * build-aux/csharpcomp.sh.in (options_csc): For -l option,
41109                 add a .dll suffix.
41110                 Reported by Mark Junker <mjscod@gmx.de>.
41111
41112         2006-07-22  Bruno Haible  <bruno@clisp.org>
41113
41114                 * modules/gettext: Upgrade to gettext-0.15.
41115                 (Files): Remove m4/isc-posix.m4. Add m4/lock.m4,
41116                 m4/visibility.m4.
41117                 Replace m4/inttypes.m4 with m4/inttypes-h.m4.
41118
41119 2006-07-22  Bruno Haible  <bruno@clisp.org>
41120
41121         Merge from GNU gettext 0.15.
41122
41123         2006-03-25  Bruno Haible  <bruno@clisp.org>
41124
41125                 * lib-link.m4 (AC_LIB_LINKFLAGS_FROM_LIBS): New macro.
41126
41127         2006-07-21  Bruno Haible  <bruno@clisp.org>
41128
41129                 * javacomp.m4 (gt_JAVACOMP): Convert target_version "null" to
41130                 "1.1".
41131
41132         2006-05-09  Bruno Haible  <bruno@clisp.org>
41133
41134                 * javacomp.m4 (gt_JAVACOMP): On Cygwin, set
41135                 CLASSPATH_SEPARATOR to a semicolon. Use CLASSPATH_SEPARATOR
41136                 for the conftestver execution.
41137
41138         2006-05-01  Bruno Haible  <bruno@clisp.org>
41139
41140                 * javacomp.m4 (gt_JAVACOMP): Accept a source-version and an
41141                 optional target-version argument. Verify that the compiler
41142                 groks source of the specified source-version, or add -source
41143                 option as necessary. Verify that the compiler produces
41144                 bytecode in the specified target-version, or add -target and
41145                 -source options as necessary. Make the result of the test
41146                 available as variable CONF_JAVAC. Also log error output in
41147                 config.log.
41148
41149         2006-03-11  Bruno Haible  <bruno@clisp.org>
41150
41151                 * javacomp.m4 (gt_JAVACOMP): Treat gcj-4.x like gcj-3.x.
41152
41153         2006-05-09  Bruno Haible  <bruno@clisp.org>
41154
41155                 * javaexec.m4 (gt_JAVAEXEC): On Cygwin, set
41156                 CLASSPATH_SEPARATOR to a semicolon.
41157
41158         2006-03-12  Bruno Haible  <bruno@clisp.org>
41159
41160                 * javaexec.m4 (gt_JAVAEXEC): Make the result of the test
41161                 available as variable CONF_JAVA, for subsequent autoconf
41162                 tests. Also log error output in config.log.
41163
41164         2006-07-19  Bruno Haible  <bruno@clisp.org>
41165
41166                 * getline.m4 (AM_FUNC_GETLINE): When cross-compiling, assume
41167                 that getline works on glibc2 systems. Needed to avoid trouble
41168                 in relocatable.c.
41169                 Reported by Nils Magnus Larsgard <nmlarsgaard@atmel.no>.
41170
41171         2005-12-04  Bruno Haible  <bruno@clisp.org>
41172
41173                 * csharpexec.m4 (gt_CSHARPEXEC): Add support for 'clix'
41174                 launcher (untested).
41175
41176         2005-12-04  Bruno Haible  <bruno@clisp.org>
41177
41178                 * csharpcomp.m4 (gt_CSHARPCOMP): Also set CSHARPCOMPFLAGS.
41179
41180         2006-07-22  Bruno Haible  <bruno@clisp.org>
41181
41182                 * gettext.m4: Update from GNU gettext-0.15.
41183                 * nls.m4: Likewise.
41184                 * po.m4: Likewise.
41185                 * inttypes-pri.m4: Likewise.
41186                 * inttypes-h.m4: Renamed from inttypes.m4.
41187                 (gl_HEADER_INTTYPES_H): Renamed from gt_HEADER_INTTYPES_H.
41188
41189 2006-07-22  Bruno Haible  <bruno@clisp.org>
41190
41191         Merge from GNU gettext 0.15.
41192
41193         2005-07-05  Bruno Haible  <bruno@clisp.org>
41194
41195                 * printf-args.c (printf_fetchargs): Work around broken
41196                 definition of wint_t on mingw.
41197
41198         2005-02-12  Bruno Haible  <bruno@clisp.org>
41199
41200                 * xallocsa.h: Add extern "C" for C++.
41201
41202         2006-05-17  Bruno Haible  <bruno@clisp.org>
41203
41204                 Cygwin portability.
41205                 * progreloc.c (WIN32_NATIVE): Renamed from WIN32.
41206
41207         2006-04-30  Bruno Haible  <bruno@clisp.org>
41208
41209                 * progreloc.c: Include <mach-o/dyld.h> if available.
41210                 (find_executable): Use _NSGetExecutablePath when possible.
41211
41212         2006-05-06  Charles Wilson  <cygwin@cwilson.fastmail.fm>
41213
41214                 * progreloc.c (maybe_executable) [CYGWIN]: Use the access()
41215                 function.
41216
41217         2005-12-29  Bruno Haible  <bruno@clisp.org>
41218
41219                 * progreloc.c (set_program_name_and_installdir): Fix
41220                 compilation error.
41221
41222         2005-12-04  Bruno Haible  <bruno@clisp.org>
41223
41224                 Cygwin portability.
41225                 * progreloc.c: Include <windows.h> also on Cygwin.
41226                 (find_executable): Add support for Cygwin.
41227                 (set_program_name_and_installdir): Handle also platforms with
41228                 nonempty EXEEXT.
41229
41230         2006-07-11  Bruno Haible  <bruno@clisp.org>
41231
41232                 * javacomp.c: Fix a comment.
41233                 Reported by Jim Meyering.
41234
41235         2006-04-30  Bruno Haible  <bruno@clisp.org>
41236
41237                 * javacomp.h (compile_java_class): Add source_version,
41238                 target_version arguments.
41239                 * javacomp.c: Rewritten to choose only a compiler that
41240                 respects the specified source_version and target_version.
41241
41242         2006-06-27  Bruno Haible  <bruno@clisp.org>
41243
41244                 Assume correct S_ISDIR macro.
41245                 * mkdtemp.c: Remove test of STAT_MACROS_BROKEN.
41246
41247         2006-07-22  Bruno Haible  <bruno@clisp.org>
41248
41249                 * javaversion.h: New file, from GNU gettext.
41250                 * javaversion.c: New file, from GNU gettext.
41251                 * javaversion.java: New file, from GNU gettext.
41252                 * javaversion.class: New file, from GNU gettext.
41253
41254         2006-05-17  Bruno Haible  <bruno@clisp.org>
41255
41256                 Cygwin portability.
41257                 * javaexec.c (execute_java_class): Test for jview program
41258                 also on Cygwin.
41259
41260         2006-04-09  Bruno Haible  <bruno@clisp.org>
41261
41262                 * fatal-signal.c: Don't include string.h.
41263                 (at_fatal_signal): Use a copying loop instead of memcpy.
41264
41265         2005-12-04  Bruno Haible  <bruno@clisp.org>
41266
41267                 * csharpexec.c: Add support for 'clix' launcher (untested).
41268                 (execute_csharp_using_sscli): New function.
41269                 (execute_csharp_program): Call it.
41270
41271         2006-06-21  Bruno Haible  <bruno@clisp.org>
41272
41273                 Avoid warnings from recent versions of mcs.
41274                 * csharpcomp.c (compile_csharp_using_mono): Don't use options
41275                 -o, -L, -r any more. Use options documented since mcs-1.0
41276                 instead. Similarly for -g.
41277
41278         2005-07-09  Bruno Haible  <bruno@clisp.org>
41279
41280                 * csharpcomp.c (compile_csharp_using_sscli): For -l option,
41281                 add a .dll suffix.
41282                 Reported by Mark Junker <mjscod@gmx.de>.
41283
41284         2006-06-17  Bruno Haible  <bruno@clisp.org>
41285
41286                 * config.charset: Update for NetBSD 3.0.
41287
41288         2006-05-17  Bruno Haible  <bruno@clisp.org>
41289
41290                 Cygwin portability.
41291                 * localcharset.c (WIN32_NATIVE): Renamed from WIN32.
41292
41293         2006-05-16  Bruno Haible  <bruno@clisp.org>
41294
41295                 * localcharset.c [CYGWIN]: Include <windows.h>.
41296                 (get_charset_aliases): For Cygwin, return the same CPxxx
41297                 aliases list as under WIN32.
41298                 (locale_charset) [CYGWIN]: Try to retrieve the encoding from
41299                 the environment variables. Fall back to GetACP().
41300
41301         2006-04-05  Bruno Haible  <bruno@clisp.org>
41302
41303                 * config.charset: Update Juan Manuel Guerrero's address.
41304
41305         2005-02-12  Bruno Haible  <bruno@clisp.org>
41306
41307                 * allocsa.h: Add extern "C" for C++.
41308
41309         2005-02-10  Bruno Haible  <bruno@clisp.org>
41310
41311                 * allocsa.h (sa_alignof): Define differently with AIX xlc, to
41312                 avoid a bug of this compiler on AIX 3.2.5 dealing with enums.
41313
41314         2006-07-22  Bruno Haible  <bruno@clisp.org>
41315
41316                 * gettext.h: Update to GNU gettext-0.15.
41317
41318 2006-07-22  Bruno Haible  <bruno@clisp.org>
41319
41320         * config/srclist.txt: Resync printf-args.c, vasnprintf.c,
41321         localcharset.c, mkdtemp.c, config.rpath, lib-ld.m4, lib-link.m4,
41322         lib-prefix.m4, longdouble.m4, ssize_t.m4.
41323
41324 2006-07-21  Eric Blake  <ebb9@byu.net>
41325
41326         * modules/stdlib-safer: New file.
41327         * MODULES.html.sh (File stream based Input/Output): Add
41328         stdlib-safer.
41329
41330 2006-07-21  Eric Blake  <ebb9@byu.net>
41331
41332         * lib/stdlib-safer.h: New file from coreutils, required by
41333         stdlib--.h.
41334
41335 2006-07-20  Paul Eggert  <eggert@cs.ucla.edu>
41336
41337         * gnulib-tool (func_usage): Document --assume-autoconf='latest-stable'.
41338
41339 2006-07-20  Bruno Haible  <bruno@clisp.org>
41340
41341         * gnulib-tool: Recognize new option --assume-autoconf.
41342         (autoconf_minversion): New variable.
41343         (func_get_filelist): Use it to decide whether to add onceonly_2_57.m4.
41344
41345 2006-07-20  Bruno Haible  <bruno@clisp.org>
41346
41347         * MODULES.html.sh (func_all_modules): Add a missing func_begin_table.
41348
41349 2006-07-19  Derek R. Price  <derek@ximbiot.com>
41350
41351         * lib/getaddrinfo.h: Don't define unimplemented AI_* flags.
41352         Reindent and repaginate.
41353
41354 2006-07-19  Derek Price  <derek@ximbiot.com>
41355
41356         * doc/gnulib.texi (Libtool and Windows):  Eliminate passive voice.
41357         Correct grammar.
41358
41359 2006-07-17  Bruno Haible  <bruno@clisp.org>
41360
41361         * modules/list: New file.
41362         * modules/array-list: New file.
41363         * modules/carray-list, modules/carray-list-tests: New files.
41364         * modules/linked-list, modules/linked-list-tests: New files.
41365         * modules/avltree-list, modules/avltree-list-tests: New files.
41366         * modules/rbtree-list, modules/rbtree-list-tests: New files.
41367         * modules/linkedhash-list, modules/linkedhash-list-tests: New files.
41368         * modules/avltreehash-list, modules/avltreehash-list-tests: New files.
41369         * modules/rbtreehash-list, modules/rbtreehash-list-tests: New files.
41370         * modules/oset: New file.
41371         * modules/array-oset: New file.
41372         * modules/avltree-oset, modules/avltree-oset-tests: New files.
41373         * modules/rbtree-oset, modules/rbtree-oset-tests: New files.
41374         * tests/test-carray_list.c: New file.
41375         * tests/test-linked_list.c: New file.
41376         * tests/test-avltree_list.c: New file.
41377         * tests/test-rbtree_list.c: New file.
41378         * tests/test-linkedhash_list.c: New file.
41379         * tests/test-avltreehash_list.c: New file.
41380         * tests/test-rbtreehash_list.c: New file.
41381         * tests/test-avltree_oset.c: New file.
41382         * tests/test-rbtree_oset.c: New file.
41383         * MODULES.html.sh (Container data structures): New section.
41384
41385 2006-07-17  Bruno Haible  <bruno@clisp.org>
41386
41387         * m4/gl_list.m4: New file.
41388
41389 2006-07-17  Bruno Haible  <bruno@clisp.org>
41390
41391         * lib/gl_list.h: New file.
41392         * lib/gl_list.c: New file.
41393         * lib/gl_array_list.h: New file.
41394         * lib/gl_array_list.c: New file.
41395         * lib/gl_carray_list.h: New file.
41396         * lib/gl_carray_list.c: New file.
41397         * lib/gl_linked_list.h: New file.
41398         * lib/gl_linked_list.c: New file.
41399         * lib/gl_anylinked_list1.h: New file.
41400         * lib/gl_anylinked_list2.h: New file.
41401         * lib/gl_avltree_list.h: New file.
41402         * lib/gl_avltree_list.c: New file.
41403         * lib/gl_anyavltree_list1.h: New file.
41404         * lib/gl_anyavltree_list2.h: New file.
41405         * lib/gl_rbtree_list.h: New file.
41406         * lib/gl_rbtree_list.c: New file.
41407         * lib/gl_anyrbtree_list1.h: New file.
41408         * lib/gl_anyrbtree_list2.h: New file.
41409         * lib/gl_anytree_list1.h: New file.
41410         * lib/gl_anytree_list2.h: New file.
41411         * lib/gl_linkedhash_list.h: New file.
41412         * lib/gl_linkedhash_list.c: New file.
41413         * lib/gl_anyhash_list1.h: New file.
41414         * lib/gl_anyhash_list2.h: New file.
41415         * lib/gl_avltreehash_list.h: New file.
41416         * lib/gl_avltreehash_list.c: New file.
41417         * lib/gl_rbtreehash_list.h: New file.
41418         * lib/gl_rbtreehash_list.c: New file.
41419         * lib/gl_anytreehash_list1.h: New file.
41420         * lib/gl_anytreehash_list2.h: New file.
41421
41422         * lib/gl_oset.h: New file.
41423         * lib/gl_oset.c: New file.
41424         * lib/gl_array_oset.h: New file.
41425         * lib/gl_array_oset.c: New file.
41426         * lib/gl_avltree_oset.h: New file.
41427         * lib/gl_avltree_oset.c: New file.
41428         * lib/gl_rbtree_oset.h: New file.
41429         * lib/gl_rbtree_oset.c: New file.
41430         * lib/gl_anytree_oset.h: New file.
41431
41432 2006-07-16  Paul Eggert  <eggert@cs.ucla.edu>
41433
41434         * m4/mkancesdirs.m4: New file.
41435         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS): Mention dirchownmod.c,
41436         dirchownmod.h.  Don't require AC_FUNC_ALLOCA, gl_AFS, gl_CHDIR_SAFER;
41437         no longer needed.  Require gl_FUNC_LCHOWN, since dirchownmod.c needs
41438         it.
41439
41440 2006-07-16  Paul Eggert  <eggert@cs.ucla.edu>
41441
41442         * lib/dirchownmod.c, lib/dirchownmod.h, lib/mkancesdirs.c:
41443         * lib/mkancesdirs.h: New files.
41444         * lib/mkdir-p.c: Don't include alloca.h, stdio.h, sys/types.h,
41445         unistd.h, string.h, chdir-safer.h, dirname.h, lchmod.h, lchown.h,
41446         save-cwd.h.  Instead, include dirchownmod.h and mkancesdirs.h.
41447         (make_dir_parents): New args MAKE_ANCESTOR, OPTIONS, ANNOUNCE,
41448         MODE_BITS.  Remove options VERBOSE_FMT_STRING, CWD_ERRNO.  All
41449         callers changed.  Revamp internals significantly, by not
41450         attempting to create directories that are temporarily more
41451         permissive than the final results.  Do not attempt to use
41452         save_cwd/restore_cwd; it isn't worth it for mkdir and install.
41453         This removes some race conditions, fixes some bugs, and simplifies
41454         things.  Use new dirchownmod function to do owner and mode changes.
41455         * lib/mkdir-p.h: Likewise.
41456         * lib/modechange.c (octal_to_mode): New function.
41457         (struct mode_change): New member mentioned.
41458         (make_node_op_equals): New arg mentioned.  All callers changed.
41459         (mode_compile): Keep track of which mode bits the user has explicitly
41460         mentioned.
41461         (mode_adjust): New arg DIR, so that we implement the X op correctly.
41462         New arg PMODE_BITS, to keep track of which mode bits the user
41463         mentioned; it treats S_ISUID and S_ISGID speciall.
41464         All callers changed.
41465         * lib/modechange.h: Likewise.
41466
41467 2006-07-16  Paul Eggert  <eggert@cs.ucla.edu>
41468
41469         * MODULES.html.sh: Add mkancestors.
41470         * modules/mkancesdirs: New module.
41471         * modules/mkdir-p (Files): Remove lib/chdir-safer.c, lib/chdir-safer.h,
41472         lib/same-inode.h, m4/afs.m4, m4/chdir-safer.m4.
41473         The chdir-safer and afs files are now orphans; I'll remove them
41474         unless someone speaks up.
41475         Add lib/dirchownmod.c, lib/dirchownmod.h.
41476         (Depends-on): Remove alloca, chown, save-cwd, dirname.
41477         Add lchown, mkancesdirs.
41478         (Maintainer): Add self.
41479
41480 2006-07-15  Karl Berry  <karl@gnu.org>
41481
41482         * gnulib-tool: help message wording/arrangement.
41483
41484 2006-07-14  Simon Josefsson  <jas@extundo.com>
41485
41486         * doc/gnulib.texi (Libtool and Windows): New section.
41487
41488 2006-07-12  Simon Josefsson  <jas@extundo.com>
41489
41490         * modules/gendocs (License): Fix license, approved by Karl.
41491
41492 2006-07-12  Eric Blake  <ebb9@byu.net>
41493
41494         * MODULES.html.sh: Add gendocs.
41495
41496 2006-07-11  Eric Blake  <ebb9@byu.net>
41497
41498         * modules/fdl: New module, to install doc/fdl.texi.
41499         * MODULES.html.sh: Add new section for documentation modules.
41500         * gnulib-tool: Avoid space-tab.
41501         (--doc-base): New option, to manage files from doc.
41502
41503 2006-07-11  Eric Blake  <ebb9@byu.net>
41504
41505         * m4/absolute-header.m4: Fix comments to match recent change.
41506
41507 2006-07-11  Eric Blake  <ebb9@byu.net>
41508
41509         * gnulib-tool: List --doc-base before --tests-base.
41510
41511 2006-07-11  Derek R. Price  <derek@ximbiot.com>
41512
41513         * lib/glob.c: s/NAMLEN/_D_EXACT_NAMLEN/.
41514
41515 2006-07-11  Bruno Haible  <bruno@clisp.org>
41516
41517         * README: Mention where to put documentation.
41518
41519 2006-07-10  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
41520
41521         * doc/functions.texi, gnulib-tool.texi, gnulib.texi: Fix some typos.
41522
41523 2006-07-10  Paul Eggert  <eggert@cs.ucla.edu>
41524
41525         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Like today's change
41526         to stdint.m4.
41527
41528 2006-07-10  Paul Eggert  <eggert@cs.ucla.edu>
41529
41530         * m4/stdint.m4 (gl_STDINT_H): Like yesterday's change to
41531         absolute-header.m4.  Also, set ABSOLUTE_STDINT_H to a string
41532         "no/such/file/stdint.h" when there is no such file, so that
41533         the resulting C code can be parsed by dodgy compilers.
41534         Problems reported by Bob Proulx.
41535
41536 2006-07-10  Derek R. Price  <derek@ximbiot.com>
41537
41538         * lib/backupfile.c, dirfd.h, fts.c, getcwd.c, glob.c, glob_.h:
41539         Ignore the obsolescent !HAVE_DIRENT_H case.  Consolidate NAMLEN
41540         macros into the GNU _D_EXACT_NAMLEN.
41541         * lib/savedir.c:  Likewise.
41542         (savedirstream): Use _D_EXACT_NAMLEN in preference to strlen.
41543
41544 2006-07-10  Derek R. Price  <derek@ximbiot.com>
41545         and Paul Eggert  <eggert@cs.ucla.edu>
41546
41547         * m4/backupfile.m4, d-ino.m4, d-type.m4, dirfd.m4, fts.m4, getcwd.m4:
41548         * m4/savedir.m4:
41549         Ignore the obsolescent !HAVE_DIRENT_H case.  Consolidate NAMLEN
41550         macros into the GNU _D_EXACT_NAMLEN.
41551
41552 2006-07-09  Paul Eggert  <eggert@cs.ucla.edu>
41553
41554         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Use "" rather than <>
41555         around the absolute name, to work around a problem with the HP-UX
41556         11.23 native C compiler, reported by Bob Proulx.
41557
41558 2006-07-09  Paul Eggert  <eggert@cs.ucla.edu>
41559
41560         * doc/maintain.texi, make-stds.texi: Sync from
41561         <http://savannah.gnu.org/projects/gnustandards>.
41562
41563 2006-07-09  Paul Eggert  <eggert@cs.ucla.edu>
41564
41565         * build-aux/depcomp, build-aux/install-sh: Sync from Automake.
41566
41567 2006-07-09  Jim Meyering  <jim@meyering.net>
41568
41569         * m4/glob.m4: Remove a doubled word in a comment.
41570
41571 2006-07-09  Jim Meyering  <jim@meyering.net>
41572
41573         * lib/argp-pv.c: Remove a doubled word in a comment.
41574         * lib/check-version.c (check_version): Likewise.
41575         * lib/javacomp.c (compile_java_class): Likewise.
41576
41577 2006-07-08  Paul Eggert  <eggert@cs.ucla.edu>
41578
41579         * gnulib-tool (func_get_filelist): Don't echo m4/onceonly_2_57.m4,
41580         for the benefit of people using Autoconf 2.60.  If you want to
41581         support older Autoconf versions you can copy m4/onceonly_2_57.m4
41582         (or m4/onceonly.m4, if pre-2.57) manually.
41583
41584 2006-07-08  Jim Meyering  <jim@meyering.net>
41585
41586         * m4/link-follow.m4: Remove one of two adjacent "whether"s in a
41587         comment.
41588         * m4/getopt.m4: Remove one of two adjacent "your"s in a comment.
41589         * m4/regex.m4 (gl_REGEX): Remove one of two adjacent "the"s in a
41590         comment.
41591
41592 2006-07-08  Jim Meyering  <jim@meyering.net>
41593
41594         * lib/getndelim2.h (getndelim2): Remove doubled "after" in comment.
41595
41596 2006-07-07  Simon Josefsson  <jas@extundo.com>
41597
41598         * tests/test-crc.c: Change expected crc value, the test vector
41599         were probably computed using the old broken crc.c?
41600
41601 2006-07-06  Simon Josefsson  <jas@extundo.com>
41602
41603         * modules/sys_socket (Files): Add m4/sockpfaf.m4 (this module is
41604         now the canonical place for the M4 file).
41605
41606         * modules/getaddrinfo (Files): Remove m4/sockpfaf.m4, we get it
41607         from the sys_socket dependency now.
41608
41609         * modules/inet_pton (Files): Ditto.
41610
41611         * modules/inet_ntop (Files): Ditto.
41612
41613 2006-07-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>  (tiny change)
41614
41615         * modules/getusershell (configure.ac): Use gl_FUNC_GETUSERSHELL,
41616         not gl_PREREQ_GETUSERSHELL.
41617
41618 2006-07-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
41619
41620         * m4/_inttypes_h.m4 (gl_INTTYPES_H): Use AC_CHECK_DECLS_ONCE
41621         with only one argument, for Autoconf 2.60.
41622         * m4/fileblocks.m4 (gl_PREREQ_FILEBLOCKS): AC_CHECK_DECLS_ONCE may
41623         expand to nothing, so add a shell command to avoid syntax error.
41624         * m4/getpass.m4 (gl_PREREQ_GETPASS): Likewise.
41625
41626 2006-07-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
41627
41628         * lib/strtod.c (strtod): cast the argument of tolower to unsigned char.
41629
41630 2006-07-06  Paul Eggert  <eggert@cs.ucla.edu>
41631
41632         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Don't check for getenv decl;
41633         no longer needed.  Check for isblank decl.
41634         * m4/mkstemp.m4 (gl_PREREQ_TEMPNAME): Don't check for getenv decl.
41635         * m4/regex.m4 (gl_PREREQ_REGEX): Dheck for isblank decl instead
41636         of existence.
41637
41638 2006-07-06  Paul Eggert  <eggert@cs.ucla.edu>
41639
41640         * lib/getloadavg.c: Use __VMS, not VMS.
41641         * lib/getopt.c: Likewise.
41642         * lib/getpagesize.h: Likewise.
41643         * lib/glob.c: Remove most VMS cruft; it hasn't been tested for a while
41644         and probably does not work.
41645
41646 2006-07-06  Paul Eggert  <eggert@cs.ucla.edu>
41647
41648         * lib/.cppi-disable: Add wcwidth.
41649         * lib/fnmatch.c (ISBLANK): Remove.  All uses changed to isblank.
41650         (isblank) [! (defined isblank || HAVE_DECL_ISBLANK)]: New macro.
41651         (ISGRAPH): Remove.  All uses changed to isgraph.
41652         (FOLD) [!defined _LIBC]: Remove special case.
41653         * lib/getdate.y (lookup_word): Remove no-longer-needed call to islower.
41654         * lib/regex_internal.h (isblank): Depend on HAVE_DECL_ISBLANK, not
41655         HAVE_ISBLANK.
41656         * lib/strftime.c (TOLOWER, TOUPPER) [!defined _LIBC]: Remove special
41657         case.
41658
41659 2006-07-06  Jim Hyslop  <jhyslop@dreampossible.ca>  (tiny change)
41660
41661         * lib/getaddrinfo.c: Changes to compile under MSVC6: changed
41662         '#if WIN32_NATIVE' to '#ifdef' & moved WSAAPI macro inside
41663         brackets.  Other minor changes to suppress some compiler
41664         warnings.
41665
41666 2006-07-06  Derek R. Price  <derek@ximbiot.com>
41667         and Paul Eggert  <eggert@cs.ucla.edu>
41668
41669         * m4/backupfile.m4 (gl_BACKUPFILE): Check for dirent.h, instead
41670         of invoking obsolescent AC_HEADER_DIRENT macro.
41671         * m4/d-ino.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_INO): Likewise.
41672         * m4/d-type.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_TYPE): Likewise.
41673         * m4/dirfd.m4 (gl_FUNC_DIRFD): Likewise.
41674         * m4/fts.m4 (gl_FUNC_FTS_CORE): Likewise.
41675         * m4/getcwd.m4 (gl_PREREQ_GETCWD): Likewise.
41676         * m4/glob.m4 (gl_PREREQ_GLOB): Likewise.
41677         * m4/savedir.m4 (gl_SAVEDIR): Likewise.
41678         * m4/readdir.m4: Remove; no longer needed.
41679
41680 2006-07-06  Derek R. Price  <derek@ximbiot.com>
41681         and Paul Eggert  <eggert@cs.ucla.edu>
41682
41683         * lib/backupfile.c [HAVE_DIRENT_H && ! HAVE_NDIR_H]:
41684         Don't worry about this obsolete case any more.
41685         (HAVE_DIR): Remove.  All uses removed; we now assume you can read
41686         directories.
41687         * lib/dirfd.h [HAVE_DIRENT_H && ! HAVE_NDIR_H]: Don't
41688         worry about this obsolete case any more.
41689         * lib/fts.c: Likewise.
41690         * lib/getcwd.c: Likewise.
41691         * lib/glob.h: Likewise.
41692         * lib/savedir.c: Likewise.
41693
41694 2006-07-05  Paul Eggert  <eggert@cs.ucla.edu>
41695
41696         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Use AC_CHECK_DECLS_ONCE
41697         rather than AC_CHECK_DECLS for strtoimax and strtoumax.
41698         * m4/getusershell.m4 (gl_PREREQ_GETUSERSHELL): Remove; no longer
41699         needed.
41700         All uses removed.
41701         * m4/strtol.m4 (gl_PREREQ_STRTOL): Likewise.
41702         * m4/strtoul.m4 (gl_PREREQ_STRTOUL): Likewise.
41703         * m4/exclude.m4 (gl_EXCLUDE): Don't check for isascii; no longer
41704         needed.
41705         * m4/getdate.m4 (gl_GETDATE): Likewise.
41706         * m4/getusershell.m4 (gl_PREREQ_GETUSERSHELL): Likewise.
41707         * m4/memcasecmp.m4 (gl_MEMCASECMP): Likewise.
41708         * m4/strtod.m4 (gl_FUNC_STRTOD): Likewise.
41709         * m4/strtol.m4 (gl_PREREQ_STRTOL): Likewise.
41710         * m4/strtoul.m4 (gl_PREREQ_STRTOUL): Likewise.
41711         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Likewise.
41712         * m4/exclude.m4 (gl_EXCLUDE): Don't require AC_C_INLINE; no longer
41713         needed.
41714
41715 2006-07-05  Paul Eggert  <eggert@cs.ucla.edu>
41716
41717         * lib/memcasecmp.c: Include <limits.h>.
41718         (memcasecmp): Don't assume UCHAR_MAX <= INT_MAX.
41719         * lib/strtod.c (strtod): Don't assume isspace works on negative chars.
41720         Don't assume isdigit succeeds only on '0' through '9'.
41721
41722 2006-07-05  Eric Blake  <ebb9@byu.net>
41723
41724         * modules/getaddrinfo (Depends-on): Add snprintf.
41725
41726 2006-07-05  Eric Blake  <ebb9@byu.net>
41727
41728         * m4/sockpfaf.m4 (gl_SOCKET_FAMILIES): Use gl_HEADER_SYS_SOCKET
41729         to avoid 'header present but could not be compiled' on cygwin.
41730
41731 2006-07-05  Eric Blake  <ebb9@byu.net>
41732
41733         * lib/getaddrinfo.h (NI_NUMERICHOST, NI_NUMERICSERV): Define if
41734         missing from netdb.h.
41735         * lib/getaddrinfo.c (includes): Include inet_ntop and snprintf.
41736
41737 2006-07-05  Derek R. Price  <derek@ximbiot.com>
41738
41739         * m4/calloc.m4 (_AC_FUNC_CALLOC_IF): Don't require AC_HEADER_STDC;
41740         no longer needed.
41741         * m4/exclude.m4 (gl_EXCLUDE): Likewise.
41742         * m4/getdate.m4 (gl_GETDATE): Likewise.
41743         * m4/getusershell.m4 (gl_PREREQ_GETUSERSHELL): Likewise.
41744         * m4/memcasecmp.m4 (gl_MEMCASECMP): Likewise.
41745         * m4/strtod.m4 (gl_FUNC_STRTOD): Likewise.
41746         * m4/strtol.m4 (gl_PREREQ_STRTOL): Likewise.
41747         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Likewise.
41748
41749 2006-07-05  Derek R. Price  <derek@ximbiot.com>
41750
41751         * lib/exclude.c (IN_CTYPE_DOMAIN, is_space): Remove; no longer needed.
41752         All uses of is_space replaced by isspace.
41753         * lib/exit.h: Don't talk about STDC_HEADERS.
41754         * lib/fnmatch.c (ISASCII): Remove; no longer needed.  All uses removed.
41755         (ISPRINT, ISDIGIT, ISALNUM, ISALPHA, ISCNTRL, ISLOWER, ISPUNCT):
41756         (ISSPACE, ISUPPER, ISXDIGIT): Remove; no longer needed.  All uses
41757         replaced by isprint etc.
41758         * lib/getdate.y (IN_CTYPE_DOMAIN, ISSPACE, ISALPHA, ISLOWER): Likewise.
41759         * lib/getusershell.c (IN_CTYPE_DOMAIN, ISSPACE): Likewise.
41760         * lib/memcasecmp.c (IN_CTYPE_DOMAIN, ISLOWER, TOUPPER): Likewise.
41761         * lib/strtod.c (IN_CTYPE_DOMAIN, ISSPACE, ISDIGIT, TOLOWER): Likewise.
41762         * lib/strtol.c (IN_CTYPE_DOMAIN): Likewise.
41763         * lib/xstrtol.c (IN_CTYPE_DOMAIN, ISSPACE): Likewise.
41764
41765 2006-07-05  Bruno Haible  <bruno@clisp.org>
41766
41767         * m4/strndup.m4 (gl_FUNC_STRNDUP): When cross-compiling, check whether
41768         the function exists, before testing against AIX.
41769         Reported by Martin Lambers <marlam@marlam.de>.
41770
41771 2006-07-04  Paul Eggert  <eggert@cs.ucla.edu>
41772
41773         * modules/cycle-check (lib_SOURCES): Add same-inode.h.
41774         From Mark D. Baushke.
41775
41776 2006-07-04  Paul Eggert  <eggert@cs.ucla.edu>
41777
41778         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Prepend three slashes
41779         to the absolute name, not just one, to bypass Sun C 5.8's
41780         "warning: #include of /usr/include/... may be non-portable".
41781
41782 2006-07-04  Eric Blake  <ebb9@byu.net>
41783
41784         * modules/dirname-tests: New test module.
41785         * tests/test-dirname.c: New file, replacing dirname.c
41786         TEST_DIRNAME section that was recently deleted.
41787
41788 2006-07-04  Bruno Haible  <bruno@clisp.org>
41789
41790         Assume ANSI C header files and <ctype.h> functions.
41791         * lib/mbswidth.c (IN_CTYPE_DOMAIN, ISPRINT, ISCNTRL): Remove macros.
41792         (mbsnwidth): Use isprint, iscntrl instead.
41793
41794 2006-07-03  Paul Eggert  <eggert@cs.ucla.edu>
41795
41796         Merge from coreutils.
41797         * MODULES.html.sh: Add xstrtold.
41798         * modules/xstrtold: New file.
41799         * modules/cycle-check (Files): Add lib/same-inode.h.
41800         * modules/dirname (Files): Add m4/double-slash-root.m4.
41801         * modules/getcwd (Files): Add m4/getcwd-abort-bug.m4.
41802         * modules/mkdir-p (Files): Add lib/same-inode.h.
41803         * modules/same (Files): Add lib/same-inode.h.
41804
41805 2006-07-03  Paul Eggert  <eggert@cs.ucla.edu>
41806
41807         * m4/absolute-header.m4: Renamed from full-header-path.m4.
41808         This is to keep the terminology clean; POSIX talks about
41809         "absolute pathnames", not "full pathnames", but the GNU
41810         Coding Standards say to use "path" for something else;
41811         so use "absolute" to keep both sides happy.
41812         (gl_ABSOLUTE_HEADER): Renamed from gl_FULL_HEADER_PATH.
41813         Set gl_absolute_header, not gl_full_header_path.
41814         Set gl_cv_absolute_<header>, not gl_full_path_<header>.
41815         Define ABSOLUTE_<HEADER>, not FULL_PATH_<HEADER>.
41816         All uses changed.
41817
41818         Merge from coreutils.
41819
41820         2006-06-30  Paul Eggert  <eggert@cs.ucla.edu>
41821
41822         * m4/c-strtod.m4 (gl_C_STRTOLD): Add c-strtod.c to LIBSOURCES.
41823         Require gl_USE_SYSTEM_EXTENSIONS, not gl_C_STRTOD, since we don't
41824         want to require the building of c-strtod.o.
41825         * m4/lib-check.m4 (cu_LIB_CHECK): Remove SEQ_LIBM, since seq no longer
41826         needs -lm directly.
41827         * m4/xstrtod.m4 (gl_XSTRTOLD): New macro.
41828
41829         2006-06-19  Paul Eggert  <eggert@cs.ucla.edu>
41830
41831         * m4/lib-ignore.m4 (gl_IGNORE_UNUSED_LIBRARIES): Prefer binutils's
41832         --as-needed option if available.  Problem reported by Albert Chin in
41833         <http://lists.gnu.org/archive/html/bug-gnulib/2006-06/msg00114.html>.
41834         However, use -Wl,--as-needed, not bare --as-needed, since HP-UX 11.11
41835         cc merely issues a bunch of annoying warnings for --as-needed
41836         (this problem was reported by Bob Proulx).  Also, try linking with
41837         -lm to detect a bug in binutils 2.16 (this problem was reported
41838         by Ralf Wildenhues).
41839
41840         2006-06-18  Jim Meyering  <jim@meyering.net>
41841
41842         Test for a bug that causes glibc's getcwd to suffer a failed assertion.
41843         * m4/getcwd-abort-bug.m4 (gl_FUNC_GETCWD_ABORT_BUG): New file and
41844         macro.
41845         * m4/getcwd.m4 (gl_FUNC_GETCWD): If we detect support for getcwd_null,
41846         also check for glibc-2.4's abort-inducing bug.
41847
41848         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Fix typo.
41849         Low-probability clean-up should be to use rmdir to get rid of
41850         the just-created directory, not unlink.
41851
41852         * m4/ftruncate.m4 (gl_FUNC_FTRUNCATE): If ftruncate is missing, make
41853         configure fail, and request a bug report to inform us about it.
41854         Add a comment that, barring reports to the contrary, in 2007 we'll
41855         assume ftruncate is universally available.
41856
41857         2006-04-17  Paul Eggert  <eggert@cs.ucla.edu>
41858
41859         * m4/filemode.m4 (gl_FILEMODE): Check for strmode declaration.
41860
41861         2006-03-12  Jim Meyering  <jim@meyering.net>
41862
41863         * m4/chdir-safer.m4 (gl_CHDIR_SAFER): Add same-inode.h to the list.
41864         * m4/cycle-check.m4 (gl_CYCLE_CHECK): Likewise.
41865         * m4/same.m4 (gl_SAME): Likewise.
41866         * m4/root-dev-ino.m4 (gl_ROOT_DEV_INO): Likewise.
41867
41868         2006-03-11  Eric Blake  <ebb9@byu.net>
41869
41870         * m4/double-slash-root.m4: New file, provides gl_DOUBLE_SLASH_ROOT.
41871         * m4/dirname.m4 (gl_DIRNAME): Use gl_DOUBLE_SLASH_ROOT.
41872         * m4/dos.m4 (FILE_SYSTEM_PREFIX_LEN): Move from here to dirname.h.
41873         (FILE_SYSTEM_DRIVE_PREFIX_CAN_BE_RELATIVE): New define.
41874
41875 2006-07-03  Paul Eggert  <eggert@cs.ucla.edu>
41876
41877         * lib/stdint_.h: Include <sys/types.h> after @FULL_PATH_STDINT_H@, for
41878         MacOS X 10.4.6.  Don't mention <sys/int_types.h>.  Problems
41879         reported by Mark D. Baushke, one in
41880         <http://lists.gnu.org/archive/html/bug-gnulib/2006-07/msg00015.html>.
41881
41882         Merge from coreutils.
41883
41884         * lib/.cppi-disable: Add stdint_.h.
41885         * lib/.cvsignore: Add stdint.h.
41886
41887         2006-06-30  Paul Eggert  <eggert@cs.ucla.edu>
41888
41889         * lib/xstrtod.c (XSTRTOD, DOUBLE): New macros, so that we can support
41890         both double and long double versions.
41891         (XSTRTOD): Renamed from xstrtod.  Use DOUBLE internally.
41892         * lib/xstrtold.c: New file.
41893         * lib/xstrtod.h (xstrtold): New decl.
41894
41895         2006-05-22  Paul Eggert  <eggert@cs.ucla.edu>
41896
41897         * lib/filemode.c (setst): Remove.
41898         (strmode): Rewrite to avoid setst.  This makes the code shorter,
41899         (arguably) clearer, and the generated code is a bit smaller on my
41900         Debian GNU/Linux stable x86 host.
41901
41902         2006-04-17  Paul Eggert  <eggert@cs.ucla.edu>
41903
41904         * lib/filemode.c: Include "filemode.h" first, to test the interface.
41905         Assume that filemode.h includes sys/types.h and sys/stat.h.
41906         (HAVE_ST_DM_MODE): New macro, moved here from ls.c.
41907         (ftypelet): Reorder to put common cases first, for efficiency.
41908         Add 'P', 'w'.  Remove 'M', since it's now the caller's responsibility
41909         to do 'M'.
41910         (strmode): Renamed from mode_string, and now stores 12 bytes instead
41911         of 10, for compatibility with FreeBSD.  All callers changed.
41912         (filemodestring): Now stores 12 bytes instead of 10, and sets file
41913         types that can't be deduced solely from st_mode.  First arg is now a
41914         const pointer.
41915         * lib/filemode.h (HAVE_DECL_STRMODE): Include <string.h> for strmode.
41916         (strmode): Renamed from mode_string.
41917         (filemodestring): New decl.
41918         * lib/stat-macros.h: Don't undef S_ISDOOR, since it's never buggy.
41919         (S_ISDOOR): Don't bother with S_IFDOOR, since that code is never
41920         needed.
41921         (S_ISPORT, S_ISWHT): New macros, if not already defined.
41922
41923         2006-04-12  Paul Eggert  <eggert@cs.ucla.edu>
41924
41925         * lib/fsusage.c: Don't include <inttypes.h> or <stdint.h>, since
41926         fsusage.h now does that.  Include fsusage.h first, to test interface.
41927         Prefer statvfs if it works, since it's blessed by POSIX.  Attempt
41928         at most one method (the old code could have generated decls that
41929         didn't conform to C89, not that this was ever exercised).
41930         * lib/fsusage.h: Include <inttypes.h> and <stdint.h> if they exist.
41931
41932         2006-03-19  Jim Meyering  <jim@meyering.net>
41933
41934         Work even in a chroot where d_ino values for entries in "/"
41935         don't match the stat.st_ino values for the same names.
41936         * lib/getcwd.c (__getcwd): When no d_ino value matches the target inode
41937         number, iterate through all entries again, using lstat instead.
41938         Reported by Kenshi Muto in http://bugs.debian.org/355810, and by
41939         Zouhir Hafidi in https://bugzilla.redhat.com/bugzilla/190656.
41940
41941         * lib/getcwd.c (__getcwd): Clarify a comment.
41942         Use memcpy in place of a call to strcpy.
41943
41944         2006-03-12  Jim Meyering  <jim@meyering.net>
41945
41946         * lib/fts-cycle.c (leave_dir): If cycle-check's saved dev-ino pair
41947         matches that of the current directory (which we're about to chdir ".."
41948         out of), then save the dev-ino of the parent, instead.
41949
41950         * lib/same-inode.h (SAME_INODE): New file/macro.
41951         * lib/chdir-safer.c (SAME_INODE): Remove definition.
41952         Include "same-inode.h", instead.
41953         * lib/same.c: Likewise.
41954         * lib/cycle-check.h: Include "same-inode.h".
41955         (CYCLE_CHECK_REFLECT_CHDIR_UP): Define.
41956         * lib/cycle-check.c (SAME_INODE): Remove definition.
41957         * lib/root-dev-ino.h: Include "same-inode.h".
41958
41959         2006-03-11  Eric Blake  <ebb9@byu.net>
41960
41961         * lib/same.c (same_name): s/base_name/last_component/
41962         * lib/backupfile.c (check_extension, numbered_backup): Likewise.
41963         * lib/filenamecat.c (file_name_concat): Likewise.
41964
41965         2006-03-11  Eric Blake  <ebb9@byu.net>,
41966                     Paul Eggert  <eggert@cs.ucla.edu>
41967
41968         * lib/dirname.h (FILE_SYSTEM_PREFIX_LEN): Move here from dos.m4.
41969         [FILE_SYSTEM_ACCEPTS_DRIVE_LETTER_PREFIX]: Don't treat 1: as a
41970         drive prefix.
41971         (IS_ABSOLUTE_FILE_NAME): Treat all drive letters as absolute on
41972         platforms like cygwin with FILE_SYSTEM_DRIVE_PREFIX_IS_ABSOLUTE.
41973         (last_component): New method.
41974         * lib/dirname.c (dir_len): Determine when drive letters need a
41975         subsequent slash.  Preserve // when it is special.
41976         (dir_name): Don't append dot when drive letter is absolute.
41977         [TEST_DIRNAME]: Move into a full-blown gnulib test.
41978         * lib/basename.c (base_name): New semantics - malloc the result.
41979         Preserve // when it is special.  Preserve relative files that look
41980         like drive letters.
41981         (base_len): Preserve // when it is special.
41982         (last_component): New method, similar to old base_name semantics.
41983         * lib/stripslash.c (strip_trailing_slashes): Use last_component, not
41984         base_name.  Strip redundant slashes from ///.
41985
41986 2006-07-03  Jim Meyering  <jim@meyering.net>
41987
41988         * lib/cycle-check.h (CYCLE_CHECK_REFLECT_CHDIR_UP): Abort if this
41989         macro is used before the first cycle_check call.
41990
41991 2006-07-03  Eric Blake  <ebb9@byu.net>
41992
41993         * modules/dirname (Depends-on): Add xstrndup.
41994
41995 2006-07-02  Paul Eggert  <eggert@cs.ucla.edu>
41996
41997         * m4/stdint.m4 (gl_STDINT_H): Use more-mnemonic identifiers for
41998         test cases, so that config.log is a bit easier to follow.
41999
42000 2006-07-02  Paul Eggert  <eggert@cs.ucla.edu>
42001
42002         * lib/stdint_.h (intmax_t, uintmax_t): Prefer long to long long if
42003         both are 64 bits, since this seems to be the tradition, and this
42004         prevents gcc -Wformat from warning about usages with PRIuMAX.  If
42005         we ever run into a host that prefers long long to long in this
42006         case, we'll need another configure-time test.  Problem reported by
42007         Jim Meyering.
42008
42009 2006-07-02  Eric Blake  <ebb9@byu.net>
42010
42011         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Simplify by using AC_CHECK_DECLS.
42012
42013 2006-07-01  Paul Eggert  <eggert@cs.ucla.edu>
42014
42015         * modules/inttypes (Depends-on): No longer depends on stdint.
42016         * modules/stdint (Description): Say more about assumptions.
42017         Say that the fast types might differ.  Say macros are used.
42018         (Files): Remove m4/size_max.m4, m4/wchar_t.m4.  Add m4/longlong.m4.
42019         (Makefile.am): Revise list of substituted symbols to match
42020         new stdint.m4.
42021         * modules/stdint-tests (Files): Add m4/wchar_t.m4, m4/wint_t.m4.
42022         (configure.ac): Add gt_TYPE_WCHAR_T, gt_TYPE_WINT_T.
42023         * tests/test-stdint.c (verify_same_types)
42024         [! (__GNUC__ >= 2 && DO_PEDANTIC)]: Put in a decl, so that
42025         the code conforms to C99/C89.
42026         Test for WCHAR_MIN and WCHAR_MAX only if HAVE_WCHAR_T.
42027         Test for WINT_MIN and WINT_MAX only if HAVE_WINT_T.
42028
42029 2006-07-01  Paul Eggert  <eggert@cs.ucla.edu>
42030
42031         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Backport from Autoconf 2.60,
42032         but fix a bug, by requiring at least 64 bits.
42033         * m4/ulonglong.m4 (AC_TYPE_UNSIGNED_LONG_LONG_INT): Likewise.
42034         * m4/longlong.m4 (gl_AC_TYPE_LONG_LONG): Now just call
42035         AC_TYPE_LONG_LONG_INT.  This macro is obsolete and will go soon.
42036         * m4/ulonglong.m4 (gl_AC_TYPE_UNSIGNED_LONG_LONG) Likewise.
42037
42038         * m4/stdint.m4 (gl_STDINT_H): Rewrite to accommodate stdint_.h
42039         changes.  Make 2.59 a prerequisite.  Check and substitute for
42040         HAVE_LONG_LONG_INT.  Rely on Autoconf to check for stdint.h and
42041         inttypes.h.  Do not use special include files; just use the
42042         defaults.  Check for sys/inttypes.h and sys/bitypes.h in the usual
42043         way now.  Remove no-longer-needed tests for HAVE_LONG_64BIT,
42044         HAVE_LONG_LONG_64BIT, int8_t, int16_t, int32_t, int64_t, uint8_t,
42045         uint16_t, uint32_t uint64_t, int_least8_t, int_least16_t,
42046         int_least32_t, int_least64_t, uint_least8_t, uint_least16_t,
42047         uint_least32_t, uint_least64_t, int_fast8_t, int_fast16_t,
42048         int_fast32_t, int_fast64_t, uint_fast8_t uint_fast16_t,
42049         uint_fast32_t, uint_fast64_t, intptr_t, uintptr_t, intmax_t,
42050         uintmax_t, INT8_MIN, INT8_MAX, UINT8_MAX, INT16_MIN, INT16_MAX,
42051         UINT16_MAX, INT32_MIN, INT32_MAX, UINT32_MAX, INT64_MIN,
42052         INT64_MAX, UINT64_MAX, INT_LEAST8_MIN, INT_LEAST8_MAX,
42053         UINT_LEAST8_MAX, INT_LEAST16_MIN, INT_LEAST16_MAX,
42054         UINT_LEAST16_MAX, INT_LEAST32_MIN, INT_LEAST32_MAX,
42055         UINT_LEAST32_MAX, INT_LEAST64_MIN, INT_LEAST64_MAX,
42056         UINT_LEAST64_MAX, INT_FAST8_MIN, INT_FAST8_MAX, UINT_FAST8_MAX,
42057         INT_FAST16_MIN, INT_FAST16_MAX, UINT_FAST16_MAX, INT_FAST32_MIN,
42058         INT_FAST32_MAX, UINT_FAST32_MAX, INT_FAST64_MIN, INT_FAST64_MAX,
42059         UINT_FAST64_MAX, INTPTR_MIN, INTPTR_MAX, UINTPTR_MAX, INTMAX_MIN,
42060         INTMAX_MAX, UINTMAX_MAX, PTRDIFF_MIN, PTRDIFF_MAX, SIG_ATOMIC_MIN,
42061         SIG_ATOMIC_MAX, SIZE_MAX, WCHAR_MIN, WCHAR_MAX, WINT_MIN,
42062         WINT_MAX.  Check for C99 conformance more strictly, by detecting
42063         bugs in glibc 2.4, Solaris 10, and OpenBSD 3.9.  On the other hand do
42064         not check for things that C99 does not require, e.g., int8_t.  If
42065         a test isn't needed unless <stdint.h> isn't working, and is
42066         unlikely to be needed for any other reason, then don't do it
42067         unless <stdint.h> isn't working.  Do not check for ptrdiff_t or
42068         size_t, since we assume C89 freestanding at least.  Do not check
42069         for sig_atomic_t, wchar_t, or wint_t, since the code now does
42070         the right thing even if the types are not defined.  Instead use:
42071         (gl_STDINT_TYPE_PROPERTIES): New macro.
42072         (gl_HEADER_STDINT_H, gl_HEADER_INTTYPES_H): Remove.  Don't bother
42073         testing whether <sys/types.h> clashes, as Autoconf does this for
42074         us now.  All uses removed.
42075         (gl_STDINT_CHECK_TYPES, gl_STDINT_MISSING_BOUND):
42076         (gl_STDINT_MISSING_BOUNDS, gl_STDINT_MISSING_BOUNDS2):
42077         (gl_CHECK_TYPE_SAME):
42078         Remove; no longer needed.
42079         (gl_STDINT_BITSIZEOF): Don't bother to check whether the type
42080         exists, since we'll return 0 anyway in that case.
42081         (gl_INTEGER_TYPE_SUFFIX, gl_STDINT_INCLUDES): New macros.
42082
42083 2006-07-01  Paul Eggert  <eggert@cs.ucla.edu>
42084
42085         * lib/stdint_.h (_GL_STDINT_H): Renamed from _STDINT_H, to avoid
42086         possible collision with system files.
42087         (<stdio.h>, <time.h>, <wchar.h>) [defined __cplusplus && ! defined
42088         __STDC_CONSTANT_MACROS)]: Do not include, since we don't need
42089         WCHAR_MIN and WCHAR_MAX in this case.
42090         (<stddef.h>): Do not include; no longer needed.
42091         (<sys/types.h>): Include if @HAVE_SYS_TYPES_H@, not if
42092         (defined(__OpenBSD__) || defined(__bsdi__) || defined(__sgi)).
42093         (<sys/inttypes.h>): Include if @HAVE_SYS_INTTYPES_H@ &&
42094         !@HAVE_INTTYPES_H@, not if (defined(__FreeBSD__)
42095         && (__FreeBSD__ >= 3) && (__FreeBSD__ <= 4)).
42096         (__STDINT_H__) [@HAVE_STDINT_H@ && defined __sgi && ! defined
42097         __c99]: Define, to work around IRIX <stdint.h> incompatibility.
42098         (@FULL_PATH_STDINT_H@) [!(defined(__sgi) && @HAVE_INTTYPES_H@ &&
42099         !defined(__c99))]: Include in this case too, since it's harmless
42100         now.
42101         (<inttypes.h>) [@HAVE_INTTYPES_H@]: Include, since it's no longer
42102         dangerous to do so.
42103         (@FULL_PATH_INTTYPES_H@) [(defined(__hpux) || defined(_AIX)) &&
42104         @HAVE_INTTYPES_H@]: Do not include, since we now include <inttypes.h>.
42105         (_STDINT_MIN, _STDINT_MAX): New macros.
42106         (int8_t, uint8_t, int16_t, uint16_t, int32_t, uint32_t, int64_t):
42107         (uint64_t, int_least8_t, uint_least8_t, int_least16_t):
42108         (uint_least16_t, int_least32_t, uint_least32_t, int_least64_t):
42109         (uint_least64_t, int_fast8_t, uint_fast8_t, int_fast16_t):
42110         (uint_fast16_t, int_fast32_t, uint_fast32_t, int_fast64_t):
42111         (uint_fast64_t, intptr_t, uintptr_t, intmax_t, uintmax_t): Now
42112         macros, not typedefs; this simplifies things quite a bit.
42113         Use long int for all types narrower than int64_t.
42114         (intmax_t, uintmax_t, INTMAX_C, UINTMAX_C):
42115         Define in terms of long long int or int64_t or long int,
42116         not int64_t or int32_t.  This saves some compile-time testing.
42117         (INT8_MIN, INT8_MAX, UINT8_MAX, INT16_MIN, INT16_MAX, UINT16_MAX):
42118         (INT32_MIN, INT32_MAX, UINT32_MAX, INT64_MIN, INT64_MAX):
42119         (UINT64_MAX, INT_LEAST8_MIN, INT_LEAST8_MAX, UINT_LEAST8_MAX):
42120         (INT_LEAST16_MIN, INT_LEAST16_MAX, UINT_LEAST16_MAX):
42121         (INT_LEAST32_MIN, INT_LEAST32_MAX, UINT_LEAST32_MAX):
42122         (INT_LEAST64_MIN, INT_LEAST64_MAX, UINT_LEAST64_MAX, INT_FAST8_MIN):
42123         (INT_FAST8_MAX, UINT_FAST8_MAX, INT_FAST16_MIN, INT_FAST16_MAX):
42124         (UINT_FAST16_MAX, INT_FAST32_MIN, INT_FAST32_MAX, UINT_FAST32_MAX):
42125         (INT_FAST64_MIN, INT_FAST64_MAX, UINT_FAST64_MAX, INTPTR_MIN):
42126         (INTPTR_MAX, UINTPTR_MAX, INTMAX_MIN, INTMAX_MAX, UINTMAX_MAX):
42127         (PTRDIFF_MIN, PTRDIFF_MAX, SIG_ATOMIC_MIN, SIG_ATOMIC_MAX):
42128         (SIZE_MAX, WCHAR_MIN, WCHAR_MAX, WINT_MIN, WINT_MAX):
42129         undef any previous version and define our own version, for
42130         simplicity and consistency with the new macros for types.
42131         (PTRDIFF_MIN, PTRDIFF_MAX, SIG_ATOMIC_MIN, SIG_ATOMIC_MAX):
42132         (SIZE_MAX, WCHAR_MIN, WCHAR_MAX, WINT_MIN, WINT_MAX):
42133         Simplify definitions by using _STDINT_MIN and _STDINT_MAX
42134         where appropriate.  Rely on new symbols @PTRDIFF_T_SUFFIX@,
42135         @SIG_ATOMIC_T_SUFFIX@, @SIZE_T_SUFFIX@, @WCHAR_T_SUFFIX@,
42136         @WINT_T_SUFFIX@ to keep things simple here.
42137         (UINT8_C, UINT16_C, UINT32_C, INT64_C, UINT64_C):
42138         Simplify by assuming typical 8/16/32/64 host, since we're
42139         already doing that elsewhere anyway.
42140         Use (LONG_MAX >> 31 >> 31 == 1) rather than @HAVE_LONG_64BIT@,
42141         and assume long long int is 64 bits if available.  This
42142         speeds up 'configure'.
42143
42144 2006-07-01  Eric Blake  <ebb9@byu.net>
42145
42146         * m4/stdarg.m4 (gl_STDARG_H): Use proper AH_VERBATIM.
42147         Reported by Andreas Buening.
42148
42149 2006-07-01  Eric Blake  <ebb9@byu.net>
42150
42151         * m4/stdarg.m4 (gl_STDARG_H): Properly parenthesize gl_va_copy.
42152
42153 2006-06-30  Jim Hyslop  <jhyslop@dreampossible.ca>  (tiny change)
42154
42155         * lib/getaddrinfo.c: fixed typo
42156
42157 2006-06-29  Jim Meyering  <jim@meyering.net>
42158
42159         * modules/strftime (Maintainer): Add my name, since with the
42160         FPRINTFTIME changes strftime.c has forked from glibc.
42161
42162 2006-06-29  Eric Blake  <ebb9@byu.net>
42163
42164         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Use AC_C_INLINE.
42165
42166 2006-06-29  Eric Blake  <ebb9@byu.net>
42167
42168         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): New file.
42169
42170 2006-06-29  Eric Blake  <ebb9@byu.net>
42171
42172         * lib/stat_.h: New file.
42173
42174 2006-06-29  Eric Blake  <ebb9@byu.net>
42175
42176         * lib/stat_.h (rpl_mkdir): Declare inline, to avoid warnings about
42177         unused static function.
42178
42179 2006-06-29  Eric Blake  <ebb9@byu.net>
42180
42181         * doc/functions.texi (Function Portability): Document missing lstat
42182         on mingw.
42183
42184 2006-06-29  Eric Blake  <ebb9@byu.net>
42185
42186         * MODULES.html.sh: Add sys_stat.
42187         * modules/sys_stat: New module.
42188         * modules/mkstemp (Depends-on): Add sys_stat.
42189
42190 2006-06-29  Derek R. Price  <derek@ximbiot.com>
42191
42192         * m4/strftime.m4: Don't call AC_FUNC_STRFTIME.
42193
42194 2006-06-29  Derek R. Price  <derek@ximbiot.com>
42195
42196         * m4/c-bs-a.m4: Removed.
42197
42198 2006-06-29  Derek R. Price  <derek@ximbiot.com>
42199
42200         * lib/strftime.c: Assume strftime() exists.
42201
42202 2006-06-29  Derek Price  <derek@ximbiot.com>
42203
42204         * modules/c-bs-a: Removed - \a is C89.
42205         * MODULES.html.sh: Remove c-bs-a.
42206
42207 2006-06-29  Bruno Haible  <bruno@clisp.org>
42208
42209         * modules/wcwidth (License): Change to LGPL.
42210
42211 2006-06-28  Simon Josefsson  <jas@extundo.com>
42212
42213         * tests/test-getaddrinfo.c: Test getnameinfo too.  Call WSAStartup
42214         on _WIN32.
42215
42216         * modules/getaddrinfo (Depends-on): Add inet_ntop, needed by
42217         getnameinfo.
42218
42219 2006-06-28  Simon Josefsson  <jas@extundo.com>
42220
42221         * m4/getaddrinfo.m4: Look for getnameinfo prototypes too.
42222
42223 2006-06-28  Simon Josefsson  <jas@extundo.com>
42224
42225         * lib/getaddrinfo.c: Try to load ws2_32.dll on Windows, to find the
42226         functions there.  It will succeed on Windows XP, but on Windows
42227         2000 and (presumably) earlier, it will fail, and use the internal
42228         re-implementation.
42229         (use_win32_p): New function.
42230         (getaddrinfo): Use strtoul on servname, to support numeric ports.
42231         Support AI_NUMERICSERV to disable getservbyname.
42232         (getnameinfo): New function, only supports
42233         NI_NUMERICHOST|NI_NUMERICSERV for now.
42234
42235         * lib/getaddrinfo.h: Test and check for AI_* flags separately, MinGW
42236         only have some of them.  Add AI_NUMERICSERV.  Add prototype for
42237         getnameinfo.
42238
42239 2006-06-28  Eric Blake  <ebb9@byu.net>
42240
42241         * modules/wcwidth: New file.
42242         * modules/mbchar (Depends-on): Add wcwidth.
42243         * modules/mbswidth (Depends-on): Add wcwidth.
42244         * MODULES.html.sh: Add wcwidth.
42245
42246 2006-06-28  Eric Blake  <ebb9@byu.net>
42247
42248         * m4/mbswidth.m4 (gl_MBSDWIDTH): Move wcwidth from here...
42249         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): ...to this new file.
42250
42251 2006-06-28  Eric Blake  <ebb9@byu.net>
42252
42253         * lib/xvasprintf.h: Fix comments.
42254
42255 2006-06-28  Eric Blake  <ebb9@byu.net>
42256
42257         * lib/mbchar.h (wcwidth): Include wcwidth.h.
42258         * lib/mbswidth.c (wcwidth): Move from here...
42259         * lib/wcwidth.h: ...to this new file.
42260
42261 2006-06-28  Derek R. Price  <derek@ximbiot.com>
42262
42263         * m4/savedir.m4: Remove AC_FUNC_CLOSEDIR_VOID requirement.
42264
42265         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Don't require AC_C_CONST, since
42266         it's obsolete.
42267         * m4/strftime.m4 (gl_FUNC_GNU_STRFTIME): Likewise.
42268
42269 2006-06-28  Derek R. Price  <derek@ximbiot.com>
42270
42271         * lib/savedir.c (CLOSEDIR): Remove.  All uses changed to closedir.
42272         Autoconf 2.60 says this stuff was obsolete.
42273
42274 2006-06-28  Bruno Haible  <bruno@clisp.org>
42275
42276         * modules/wcwidth (Files): Add m4/wchar_t.m4.
42277
42278 2006-06-28  Bruno Haible  <bruno@clisp.org>
42279
42280         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Also require AC_C_INLINE and
42281         gt_TYPE_WCHAR_T.
42282
42283 2006-06-28  Bruno Haible  <bruno@clisp.org>
42284
42285         * lib/wcwidth.h: Declare nothing if !HAVE_WCHAR_T. Provide a fallback
42286         declaration for wcwidth.
42287         * lib/mbswidth.c: Restore the includes of <wchar.h> and <wctypes.h>.
42288
42289 2006-06-28  Bruno Haible  <bruno@clisp.org>
42290
42291         * lib/mkdtemp.c [MINGW]: Include <io.h>.
42292         (mkdir): Define using _mkdir.
42293
42294 2006-06-28  Bruno Haible  <bruno@clisp.org>
42295
42296         * lib/getaddrinfo.h: Fix POSIX URL.
42297         * lib/getaddrinfo.c (WIN32_NATIVE): New macro. Use it instead of
42298         _WIN32.
42299         (use_win32_p): Make static.
42300         (getaddrinfo): Reject service name if it is empty or does not consist
42301         solely of decimal digits, or if its value is > 65535.
42302         (getnameinfo): Remove useless casts.
42303
42304 2006-06-27  Simon Josefsson  <jas@extundo.com>
42305
42306         * modules/sys_select: New file, suggested by Bruno Haible, Paul
42307         Eggert and Martin Lambers.
42308
42309 2006-06-27  Simon Josefsson  <jas@extundo.com>
42310
42311         * m4/sys_select_h.m4: New file, suggested by Bruno Haible, Paul
42312         Eggert and Martin Lambers.
42313
42314 2006-06-27  Bruno Haible  <bruno@clisp.org>
42315
42316         * m4/stdint.m4 (gl_STDINT_BITSIZEOF): For nonexistent types, set the
42317         result to 0, not to empty.
42318         Reported by Martin Neitzel <neitzel@sco.gaertner.de>.
42319
42320 2006-06-27  Bruno Haible  <bruno@clisp.org>
42321
42322         * lib/stdint_.h (intmax_t, uintmax_t): Undefine before typedef.
42323
42324 2006-06-26  Simon Josefsson  <jas@extundo.com>
42325
42326         * m4/inet_ntop.m4: Don't check for sys/types.h, we assume it is
42327         present.
42328
42329 2006-06-26  Paul Eggert  <eggert@cs.ucla.edu>
42330
42331         * lib/base64.c (B64): Use _ as the formal parameter, not x, to avoid
42332         bug in IBM C V6 for AIX.  Problem reported by Larry Jones in
42333         <http://lists.gnu.org/archive/html/bug-gnulib/2006-06/msg00181.html>.
42334
42335 2006-06-26  Mark D. Baushke  <mdb@gnu.org>
42336
42337         * m4/stdint.m4 (gl_STDINT_H): Treat BSD/OS like OpenBSD.
42338
42339 2006-06-26  Bruno Haible  <bruno@clisp.org>
42340
42341         * modules/stdint (Makefile.am): Also substitute HAVE_WCHAR_H.
42342
42343 2006-06-26  Bruno Haible  <bruno@clisp.org>
42344
42345         * m4/stdint.m4 (gl_STDINT_H): Test also for <wchar.h>.
42346
42347 2006-06-26  Bruno Haible  <bruno@clisp.org>
42348
42349         * m4/stdint.m4 (gl_STDINT_H): Don't include <stdint.h> when using the
42350         SGI C compiler in pre-C99 mode.
42351         Suggested by Mark D. Baushke and Larry Jones.
42352
42353 2006-06-26  Bruno Haible  <bruno@clisp.org>
42354
42355         * lib/stdint_.h: Include <wchar.h> if necessary for WCHAR_MIN or
42356         WCHAR_MAX.
42357         Reported by Mark D. Baushke and Larry Jones.
42358
42359 2006-06-26  Bruno Haible  <bruno@clisp.org>
42360
42361         * lib/stdint_.h: Don't include <stdint.h> when using the SGI C compiler
42362         in pre-C99 mode.
42363         Suggested by Mark D. Baushke and Larry Jones.
42364
42365 2006-06-23  Simon Josefsson  <jas@extundo.com>
42366             Bruno Haible  <bruno@clisp.org>
42367
42368         * gnulib-tool (func_emit_lib_Makefile_am): Define MOSTLYCLEANDIRS.
42369         Emit mostlyclean-local rule.
42370         (func_emit_tests_Makefile_am): Likewise.
42371         * modules/sys_socket (Makefile.am): Use MOSTLYCLEANDIRS.
42372
42373 2006-06-23  Mark D. Baushke  <mdb@gnu.org>
42374
42375         * lib/stdint_.h: Treat BSD/OS like OpenBSD.
42376
42377 2006-06-23  Bruno Haible  <bruno@clisp.org>
42378
42379         * tests/test-stdint.c: Update to match ISO C 99 Technical
42380         Corrigendum 1.
42381
42382 2006-06-23  Bruno Haible  <bruno@clisp.org>
42383
42384         * m4/stdint.m4 (gl_STDINT_H): Treat IRIX like OpenBSD.
42385
42386 2006-06-23  Bruno Haible  <bruno@clisp.org>
42387
42388         * lib/stdint_.h: Treat IRIX like OpenBSD.
42389
42390 2006-06-23  Bruno Haible  <bruno@clisp.org>
42391
42392         * lib/stdint_.h (UINT8_C, UINT16_C, UINT32_C): Define according to
42393         ISO C 99 Technical Corrigendum 1.
42394
42395 2006-06-22  Simon Josefsson  <jas@extundo.com>
42396
42397         * m4/sockpfaf.m4: Include winsock2.h too, to make it work under
42398         MinGW.
42399
42400 2006-06-22  Paul Eggert  <eggert@cs.ucla.edu>
42401
42402         * lib/glob.c (collated_compare): Remove 'const' uses that weren't
42403         needed.  Some compiler complained about some of them.  Problem reported
42404         by Larry Jones in
42405         <http://lists.gnu.org/archive/html/bug-gnulib/2006-06/msg00172.html>.
42406
42407 2006-06-21  Simon Josefsson  <jas@extundo.com>
42408
42409         * tests/test-getaddrinfo.c: New file.
42410
42411         * modules/getaddrinfo-tests: New file.
42412
42413         * MODULES.html.sh: Add inet_pton.
42414
42415         * modules/inet_pton: New file.
42416
42417 2006-06-21  Simon Josefsson  <jas@extundo.com>
42418
42419         * m4/getaddrinfo.m4: Don't define WINVER.  Look for gethostbyname in
42420         -lws2_32 too.  Fixes getaddrinfo on Windows 2000, with the price
42421         of using the (limited) gnulib implementation on Windows XP.
42422
42423         * m4/inet_pton.m4: New file.
42424
42425 2006-06-21  Simon Josefsson  <jas@extundo.com>
42426
42427         * lib/getaddrinfo.c (getaddrinfo): Set ai_family in the return
42428         variable.
42429
42430         * lib/socket_.h: Don't define WINVER.
42431
42432         * lib/inet_pton.h, inet_pton.c: New file, taken from glibc but
42433         slightly modified to work in gnulib.
42434
42435 2006-06-21  Simon Josefsson  <jas@extundo.com>
42436
42437         * doc/gnulib.texi (Windows sockets): Add.
42438
42439 2006-06-21  Paul Eggert  <eggert@cs.ucla.edu>
42440
42441         * lib/read-file.c (fread_file): Start with buffer allocation of
42442         0 bytes rather than 1 byte; this simplifies the code.
42443         Don't invoke feof; it's not needed.  Refactor to avoid duplicate
42444         code to free buffer and save/restore errno.
42445         (internal_read_file): Remove unused local.
42446
42447 2006-06-20  Paul Eggert  <eggert@cs.ucla.edu>
42448
42449         * lib/openat.c (openat): Use ?:, not if, to work around GCC bug 4210
42450         <http://gcc.gnu.org/bugzilla/show_bug.cgi?id=4210>.
42451         Problem reported by Denis Excoffier in
42452         <http://lists.gnu.org/archive/html/bug-tar/2006-06/msg00023.html>.
42453
42454 2006-06-19  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
42455
42456         * modules/sys_socket, modules/socklen: Include sys/types since
42457         FreeBSD 4.x's sys/socket.h needs it.
42458
42459 2006-06-19  Simon Josefsson  <jas@extundo.com>
42460
42461         * lib/inet_ntop.c: Always build inet_ntop4, since inet_ntop6 calls it.
42462
42463 2006-06-19  Paul Eggert  <eggert@cs.ucla.edu>
42464
42465         * lib/alloca_.h (alloca) [defined alloca]: Don't define or declare.
42466
42467 2006-06-19  Bruno Haible  <bruno@clisp.org>
42468
42469         * m4/stdint.m4 (gl_STDINT_H): Enclose the values of FULL_PATH_STDINT_H
42470         and FULL_PATH_INTTYPES_H in angle brackets.
42471         Reported by Mark D. Baushke <mdb@gnu.org>.
42472
42473 2006-06-17  Eric Blake  <ebb9@byu.net>
42474
42475         * m4/rmdir-errno.m4 (gl_FUNC_FMDIR_NOTEMPTY): Assume errno.h declares
42476         errno.
42477
42478 2006-06-17  Bruno Haible  <bruno@clisp.org>
42479
42480         * m4/stdint.m4 (gl_STDINT_H) [FreeBSD >= 5]: Don't include
42481         <sys/inttypes.h>.
42482
42483 2006-06-17  Bruno Haible  <bruno@clisp.org>
42484
42485         * m4/setenv.m4 (gl_PREREQ_SETENV, gl_PREREQ_UNSETENV): Remove test
42486         whether errno is declared. Assume <errno.h> declares errno.
42487
42488 2006-06-17  Bruno Haible  <bruno@clisp.org>
42489
42490         * lib/stdint_.h [FreeBSD >= 5]: Don't include <sys/inttypes.h>.
42491
42492 2006-06-17  Bruno Haible  <bruno@clisp.org>
42493
42494         * lib/stdint_.h (_UINT8_T, _UINT32_T, _UINT64_T): New macros. Fixes a
42495         problem on Solaris 2.5.1.
42496
42497 2006-06-16  Eric Blake  <ebb9@byu.net>
42498
42499         * lib/unsetenv.c [!defined errno]: Assume errno.h declares errno.
42500         * lib/unicodeio.c [!defined errno]: Likewise.
42501         * lib/strtol.c [!defined errno]: Likewise.
42502         * lib/strtod.c [!defined errno]: Likewise.
42503
42504 2006-06-15  Eric Blake  <ebb9@byu.net>
42505
42506         * m4/ssize_t.m4 (gt_TYPE_SSIZE_T): Work in spite of -Werror.
42507
42508 2006-06-15  Eric Blake  <ebb9@byu.net>
42509
42510         * config/srclist.txt (ssize_t.m4): Lose sync.
42511
42512 2006-06-15  Bruno Haible  <bruno@clisp.org>
42513
42514         * modules/stdint (Files): Include m4/full-header-path.m4,
42515         m4/size_max.m4, m4/wchar_t.m4.
42516         (Makefile.am): Many more substitutions.
42517         * modules/stdint-tests: New file.
42518         * tests/test-stdint.c: New file.
42519
42520 2006-06-15  Bruno Haible  <bruno@clisp.org>
42521
42522         * m4/stdint.m4 (gl_STDINT_H): Rewritten to produce a complete stdint.h.
42523         (gl_HEADER_STDINT_H, gl_HEADER_INTTYPES_H, gl_STDINT_CHECK_TYPES,
42524         gl_STDINT_MISSING_BOUND, gl_STDINT_MISSING_BOUNDS,
42525         gl_STDINT_MISSING_BOUNDS2, gl_STDINT_BITSIZEOF, gl_CHECK_TYPES_SIGNED,
42526         gl_CHECK_TYPE_SAME): New macros.
42527
42528 2006-06-15  Bruno Haible  <bruno@clisp.org>
42529
42530         * m4/size_max.m4 (gl_SIZE_MAX): Make it work also when cross-compiling.
42531
42532 2006-06-15  Bruno Haible  <bruno@clisp.org>
42533
42534         * lib/stdint_.h: Rewritten to be fully auto-configured.
42535         Fixes bug on HP-UX/IA64.
42536
42537 2006-06-11  Paul Eggert  <eggert@cs.ucla.edu>
42538
42539         * lib/getdate.y (__attribute__): Don't define if already defined.
42540         Problem reported by Larry Jones.
42541         * lib/utimens.c (__attribute__): Likewise.
42542
42543 2006-06-04  Paul Eggert  <eggert@cs.ucla.edu>
42544
42545         * lib/regexec.c (group_nodes_into_DFAstates): Fix a buffer overrun
42546         reported by Andreas Schwab.
42547
42548 2006-05-30  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
42549             Bruno Haible  <bruno@clisp.org>
42550
42551         * m4/strndup.m4 (gl_FUNC_STRNDUP): Replace the AC_REPLACE_FUNCS with a
42552         check for the declaration of strnlen and a run test that exposes the
42553         AIX 5.1 strnlen bug.  In the failure case, #define strndup to
42554         rpl_strndup.
42555
42556 2006-05-30  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
42557             Bruno Haible  <bruno@clisp.org>
42558
42559         * lib/strndup.c (strndup) [!_LIBC]: Don't undefine macro definition.
42560
42561 2006-05-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
42562
42563         * m4/c-strtod.m4 (gl_C99_STRTOLD): Use a link test rather than a
42564         compile test, for Tru64 4.0D.
42565
42566 2006-05-28  Karl Berry  <karl@gnu.org>
42567
42568         * config/srclist.txt (printf-args.c): lose sync.
42569
42570 2006-05-26  Martin Lambers  <marlam@marlam.de>
42571
42572         * lib/getpass.c: Updates the test for the native W32 API, and adds
42573         missing includes, thus fixing compilation warnings.
42574
42575 2006-05-25  Sergey Poznyakoff  <gray@gnu.org.ua>
42576
42577         * lib/exclude.c (exclude_fnmatch): New function.
42578         (excluded_file_name): Call exclude_fnmatch.
42579         * lib/exclude.h (excluded_file_name): New prototype
42580
42581 2006-05-25  Paul Eggert  <eggert@cs.ucla.edu>
42582
42583         * lib/tempname.c (small_open, large_open): New macros.
42584         (__open, __open64) [!_LIBC]: Remove.
42585         (__gen_tempname): Use small_open and large_open instead of __open
42586         and __open64.  This fixes a portability bug on HP-UX 11.11i
42587         reported by Simon Wing-Tang in
42588         <http://lists.gnu.org/archive/html/bug-coreutils/2006-05/msg00114.html>.
42589
42590 2006-05-24  Bruno Haible  <bruno@clisp.org>
42591
42592         * lib/printf-args.c (printf_fetchargs): Turn NULL pointers for
42593         TYPE_STRING and TYPE_WIDE_STRING into a non-NULL replacement.
42594         Reported by Thorsten Maerz <torte@netztorte.de> via
42595         Aaron Stone <aaron@serendipity.cx>.
42596
42597 2006-05-19  Paul Eggert  <eggert@cs.ucla.edu>
42598
42599         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Rename cache variables to use
42600         gl_ rather than jm_.  Link, don't run, so that cross-compiles are
42601         allowed.  Check that resulting type is arithmetic.  Move AC_REQUIRE
42602         and AC_CHECK_HEADERS_ONCE outside of AC_CACHE_CHECK, since they're
42603         not really conditional on the cache.
42604         (gl_PREREQ_NANOSLEEP): Check for sys/select.h.
42605
42606 2006-05-19  Paul Eggert  <eggert@cs.ucla.edu>
42607
42608         * lib/nanosleep.c [HAVE_SYS_SELECT_H]: Include <sys/select.h>.
42609         Use the usual Autoconf way to include <time.h> and/or sys/time.h.
42610         (my_usleep): Don't mishandle maximum value.
42611
42612 2006-05-19  Jim Meyering  <jim@meyering.net>
42613
42614         * lib/getugroups.c: Correct an outdated comment.  From Bruno Haible.
42615
42616 2006-05-17  Bruno Haible  <bruno@clisp.org>
42617
42618         Cygwin portability.
42619         * lib/classpath.c (PATH_SEPARATOR) [CYGWIN]: Define as ':'.
42620
42621 2006-05-17  Bruno Haible  <bruno@clisp.org>
42622
42623         * lib/stdint_.h: Fix recognition of Cygwin.
42624
42625 2006-05-15  Bruno Haible  <bruno@clisp.org>
42626
42627         * build-aux/config.rpath: Improve support for Sun C 5.9 on Linux, based
42628         on libtool patch by Ralf Wildenhues.
42629
42630 2006-05-14  Paul Eggert  <eggert@cs.ucla.edu>
42631
42632         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Fix overly-picky
42633         test for C99 conformance; (bool) 0.5 is an integer constant
42634         expression, but (bool) -0.5 is not.  Problem reported by Fedor
42635         Sergeev in <http://forum.sun.com/jive/thread.jspa?threadID=96202>.
42636
42637 2006-05-11  Simon Josefsson  <jas@extundo.com>
42638
42639         * m4/xvasprintf.m4: Fix obvious typo.
42640
42641 2006-05-11  Jim Meyering  <jim@meyering.net>
42642
42643         * lib/sha1.c (sha1_buffer): Correct comment: s/MD5/SHA1/.  From
42644         James Lemley.
42645
42646 2006-05-10  Simon Josefsson  <jas@extundo.com>
42647
42648         * lib/md4.c: Typo fix, update copyright years.
42649         (K1, K2): Don't use L because it turn computations into 64-bit on
42650         64-bit platforms.
42651
42652 2006-05-10  Paul Eggert  <eggert@cs.ucla.edu>
42653
42654         * lib/crc.c (crc32_update): Remove unnecessary L suffix.
42655         * lib/md4.c (rol): Cast right-shift arg to uint32_t to prevent
42656         unwanted sign propagation, e.g., on hosts with 64-bit int.
42657         There still are some problems with reeelly weird theoretical hosts
42658         (e.g., 33-bit int) but it's not worth worrying about now.
42659         * lib/sha1.c (rol): Likewise.
42660         (K1, K2, K3, K4): Remove unnecessary L suffix.
42661
42662 2006-05-10  Bruno Haible  <bruno@clisp.org>
42663
42664         * lib/des.c: Cast to avoid warnings.
42665
42666 2006-05-09  Bruno Haible  <bruno@clisp.org>
42667
42668         * modules/xvasprintf (Files): Add m4/xvasprintf.m4.
42669         (Depends-on): Depend also on xsize, stdarg.
42670         (configure.ac): Add gl_XVASPRINTF.
42671
42672 2006-05-09  Bruno Haible  <bruno@clisp.org>
42673
42674         * m4/xvasprintf.m4: New file.
42675
42676 2006-05-09  Bruno Haible  <bruno@clisp.org>
42677
42678         * lib/xvasprintf.c: Include limits.h, string.h, xsize.h.
42679         (EOVERFLOW): Define fallback value.
42680         (xstrcat): New function.
42681         (xvasprintf): Recognize the special case of a string concatenation.
42682
42683 2006-05-08  Eric Blake  <ebb9@byu.net>
42684
42685         * gnulib-tool (func_version): Base copyright year on CVS date.
42686         (func_emit_copyright_notice): New function.
42687         (func_emit_lib_Makefile_am): Use it.
42688         (func_emit_tests_Makefile_am): Likewise.
42689         (func_import): Likewise.
42690
42691 2006-05-08  Bruno Haible  <bruno@clisp.org>
42692
42693         * modules/stdarg: New file.
42694         * MODULES.html.sh (func_all_modules): Add section for <stdarg.h>.
42695
42696 2006-05-08  Bruno Haible  <bruno@clisp.org>
42697
42698         * m4/stdarg.m4: New file, from GNU gettext.
42699
42700 2006-05-08  Bruno Haible  <bruno@clisp.org>
42701
42702         * config/srclist.txt (build-aux/config.rpath): different from latest
42703         release.
42704
42705 2006-05-08  Bruno Haible  <bruno@clisp.org>
42706
42707         * build-aux/config.rpath: Add support for Sun C 5.9 on Linux.
42708
42709 2006-05-05  Jim Meyering  <jim@meyering.net>
42710
42711         * m4/warning.m4: New file, derived from bison's file by the same name.
42712
42713 2006-05-03  Bruno Haible  <bruno@clisp.org>
42714
42715         * lib/stdint_.h: Shorter URL.
42716         * lib/inttypes.h: Likewise.
42717
42718 2006-05-02  Paul Eggert  <eggert@cs.ucla.edu>
42719
42720         * modules/inttypes (Maintainer): Change from Derek Price to 'all'.
42721
42722 2006-05-02  Paul Eggert  <eggert@cs.ucla.edu>
42723
42724         * lib/verify.h: Document the internals better.  Most of this change
42725         was written by Bruno Haible.
42726
42727 2006-05-02  Paul Eggert  <eggert@cs.ucla.edu>
42728
42729         * doc/verify.texi: New file, partly based on a proposal by
42730         Bruno Haible.
42731
42732 2006-05-02  Bruno Haible  <bruno@clisp.org>
42733
42734         * m4/full-header-path.m4 (gl_FULL_HEADER_PATH): Move the include_next
42735         test from here...
42736         * m4/_inttypes_h.m4 (gl_INTTYPES_H): ... to here.
42737
42738 2006-04-29  Bruno Haible  <bruno@clisp.org>
42739
42740         * lib/gcd.c: Use WORD_T and GCD instead of unsigned long and gcd.
42741         Suggested by Oskar Liljeblad <oskar@osk.mine.nu>.
42742
42743 2006-04-29  Bruno Haible  <bruno@clisp.org>
42744
42745         * gnulib-tool: Make --update option actually work.
42746
42747 2006-04-29  Bruno Haible  <bruno@clisp.org>
42748
42749         * doc/gcd.texi: New file.
42750         * doc/gnulib.texi: Include it.
42751
42752 2006-04-25  Paul Eggert  <eggert@cs.ucla.edu>
42753
42754         * lib/getdate.y (get_date): When adding relative date, start with the
42755         initial time, not with the result of the first mktime call.
42756
42757 2006-04-25  Bruno Haible  <bruno@clisp.org>
42758
42759         * gnulib-tool (func_import): Output the include directives in three
42760         blocks, sorted separately.
42761         Reported by Ben Pfaff <blp@cs.stanford.edu>.
42762
42763 2006-04-24  Paul Eggert  <eggert@cs.ucla.edu>
42764
42765         * m4/unlink-busy.m4 (gl_FUNC_UNLINK_BUSY_TEXT): Use prototype
42766         to define main with arguments, for C++.  Reported by Eric Blake.
42767         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC):
42768         Prefer 'int main ()' to 'int main (void)', for C++.
42769         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Likewise.
42770         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Specify a return type
42771         for 'main', for C99 and C++.
42772
42773 2006-04-24  Paul Eggert  <eggert@cs.ucla.edu>
42774
42775         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Use return, not exit.
42776         Don't assume that exit status -1 is valid.
42777         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
42778         * m4/putenv.m4 (gl_FUNC_PUTENV): Likewise.
42779         * m4/rmdir-errno.m4 (gl_FUNC_RMDIR_NOTEMPTY): Likewise.
42780         * m4/readdir.m4 (GL_FUNC_READDIR): Include <stdlib.h>.
42781         * m4/rename.m4 (vb_FUNC_RENAME): Likewise.
42782         * m4/unlink-busy.m4 (gl_FUNC_UNLINK_BUSY_TEXT): Use AC_RUN_IFELSE,
42783         not AC_TRY_RUN.  Use return, not exit.  Don't assume that
42784         functions can be used without declaring them, or that you can
42785         exit with status -1.
42786         * m4/utimes-null.m4 (gl_FUNC_UTIMES_NULL): Likewise.
42787
42788 2006-04-24  Karl Berry  <karl@gnu.org>
42789
42790         * config/srclist.txt (longdouble.m4): sync lost.
42791
42792 2006-04-24  Eric Blake  <ebb9@byu.net>
42793
42794         * m4/strerror_r.m4 (AC_FUNC_STRERROR_R): Avoid unused variable warning.
42795
42796 2006-04-24  Bruno Haible  <bruno@clisp.org>
42797
42798         * m4/poll.m4 (gl_FUNC_POLL): When cross-compiling, reject also the
42799         poll() implementation in AIX.
42800         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
42801
42802 2006-04-24  Bruno Haible  <bruno@clisp.org>
42803
42804         * m4/poll.m4 (gl_FUNC_POLL): Rearrange code, so that POLL_H gets
42805         assigned exactly once.
42806
42807 2006-04-23  Claudio Fontana  <claudio@gnu.org>
42808             Bruno Haible  <bruno@clisp.org>
42809
42810         * modules/gettext (Makefile.am): Add a -I flag for <libintl.h>.
42811         * gnulib-tool (func_emit_lib_Makefile_am): Emit empty default value
42812         for AM_CPPFLAGS.
42813
42814 2006-04-23  Bruno Haible  <bruno@clisp.org>
42815
42816         * modules/copy-file: Depend on unistd.
42817         * modules/execute: Likewise.
42818         * modules/fatal-signal: Likewise.
42819         * modules/findprog: Likewise.
42820         * modules/mkdtemp : Likewise.
42821         * modules/pipe: Likewise.
42822         * modules/wait-process: Likewise.
42823
42824 2006-04-23  Bruno Haible  <bruno@clisp.org>
42825
42826         * lib/fwriteerror.c (fwriteerror): Call fclose also when an error
42827         condition was already detected.
42828         Reported by Ben Pfaff <blp@cs.stanford.edu>.
42829
42830 2006-04-23  Bruno Haible  <bruno@clisp.org>
42831
42832         * lib/copy-file.c: Include <unistd.h> unconditionally.
42833         * lib/execute.c: Likewise.
42834         * lib/fatal-signal.c: Likewise.
42835         * lib/findprog.c: Likewise.
42836         * lib/mkdtemp.c: Likewise.
42837         * lib/pipe.h: Likewise.
42838         * lib/pipe.c: Likewise.
42839         * lib/wait-process.h: Likewise.
42840
42841 2006-04-23  Bruno Haible  <bruno@clisp.org>
42842
42843         * gnulib-tool (func_usage): Fix --import description. Document
42844         --update.
42845         (func_import): Create temporary file in a temporary directory, if
42846         --dry-run is specified. Silence errors from 'grep' when there are no
42847         m4 files in $m4dir.
42848         (func_create_testdir): Silence errors from 'grep' when there are no
42849         m4 files in $m4dir.
42850         Reported by Karl Berry <karl@freefriends.org>.
42851
42852 2006-04-20  Bruno Haible  <bruno@clisp.org>
42853
42854         * m4/argp.m4 (gl_ARGP): Don't call AC_CHECK_DECLS_ONCE with more than
42855         one argument, so that the code will be portable to Autoconf 2.60.
42856         * m4/getlogin_r.m4 (gl_PREREQ_GETLOGIN_R): Likewise.
42857         * m4/getpass.m4 (gl_PREREQ_GETPASS): Likewise.
42858         * m4/unlocked-io.m4 (gl_FUNC_GLIBC_UNLOCKED_IO): Likewise.
42859
42860 2006-04-19  Derek Price  <derek@ximbiot.com>
42861             Eric Blake  <ebb9@byu.net>
42862
42863         * m4/full-header-path.m4 (gl_FULL_HEADER_PATH): Use </full/path.h>
42864         rather than "/full/path.h".  Update comment to match.  Shorten &
42865         generalize m4_translit call via AS_TR_CPP.
42866
42867 2006-04-19  Derek Price  <derek@ximbiot.com>
42868             Eric Blake  <ebb9@byu.net>
42869
42870         * lib/inttypes.h: Correct grammar in comment.
42871
42872 2006-04-18  Derek Price  <derek@ximbiot.com>
42873             Paul Eggert  <eggert@cs.ucla.edu>
42874
42875         * modules/inttypes: New file.
42876         * modules/strtoimax, modules/strtoumax: Depend on inttypes.
42877
42878 2006-04-18  Derek Price  <derek@ximbiot.com>
42879             Paul Eggert  <eggert@cs.ucla.edu>
42880
42881         * m4/_inttypes_h.m4, m4/full-header-path.m4, m4/include_next.m4:
42882         New files.
42883
42884 2006-04-18  Derek Price  <derek@ximbiot.com>
42885             Paul Eggert  <eggert@cs.ucla.edu>
42886
42887         * lib/inttypes.h: New file.
42888         * lib/strtoimax.c: Assume <inttypes.h>.
42889
42890 2006-04-15  Paul Eggert  <eggert@cs.ucla.edu>
42891
42892         * lib/utimens.c (futimens): glibc futimesat messes up if /proc
42893         isn't mounted.  Problem reported by Kir Kolyshkin.
42894
42895 2006-04-13  Paul Eggert  <eggert@cs.ucla.edu>
42896
42897         * lib/regcomp.c (init_dfa): Don't use wchar_t or wctype_t if
42898         RE_ENABLE_I18N is not defined.  Problem reported by Mark D. Baushke via
42899         Derek R. Price.
42900         * lib/regex.h (RE_DUP_MAX): Update comment to match current
42901         implementation.
42902
42903 2006-04-12  Eric Blake  <ebb9@byu.net>
42904
42905         * modules/time_r (Makefile.am): Remove lib_SOURCES line, as this
42906         is now done automatically by the corresponding Autoconf macro.
42907
42908 2006-04-11  Paul Eggert  <eggert@cs.ucla.edu>
42909
42910         * m4/time_r.m4 (gl_TIME_R): Add AC_LIBSOURCES for time_r.c and
42911         time_r.h.
42912
42913 2006-04-09  Paul Eggert  <eggert@cs.ucla.edu>
42914
42915         Merge regex changes from libc, removing some of our
42916         POSIX-conformance changes that were rejected and redoing them in a
42917         less-intrusive way.
42918
42919         * lib/regcomp.c (re_compile_internal, init_dfa):
42920         Length arg is now size_t, not Idx.  All uses changed.
42921         (peek_token): Forward decl now says internal_function.
42922         (__re_error_msgid, __re_error_msgid_idx):
42923         Now static rather than extern with attribute_hidden.
42924         (re_compile_pattern) [!defined _LIBC]: Use K&R-style defn.
42925         For some reason libc prefers K&R style defns for external functions.
42926         (regerror) [!defined _LIBC]: Likewise.
42927         (re_set_syntax, re_compile_fastmap, regcomp, regfree, re_comp):
42928         (seek_collating_symbol_entry, lookup_collation_sequence_value):
42929         (build_range_exp, build_collating_symbol):
42930         Use K&R-style defn.
42931         (re_compile_fastmap): Use '\0' to memset, not 0.
42932         (utf8_sb_map): Make the calculations more obvious.
42933         (init_dfa, parse_bracket_exp, build_charclass_op):
42934         Call calloc and cast result, as glibc does.
42935         (init_word_char, fetch_token, peek_token, peek_token_bracket):
42936         (build_range_exp, build_collating_symbol):
42937         Now internal functions.
42938
42939         * lib/regex.c [!defined _LIBC]: Allow compiling with C++ compilers.
42940
42941         * lib/regex.h (__USE_GNU_REGEX): New macro.  Don't depend on
42942         _REGEX_SOURCE any more; depend on _GNU_SOURCE instead.
42943         Don't depend on VMS; depend on __VMS instead, for POSIX
42944         namespace cleanness.
42945         (regoff_t): Define to ssize_t, not long int.
42946
42947         Remove the REG_ macros named below.  Instead, make the old names
42948         (e.g., RE_BACKSLASH_ESCAPE_IN_LISTS) visible only if
42949         __USE_GNU_REGEX.
42950         (REG_BACKSLASH_ESCAPE_IN_LISTS):
42951         (REG_BK_PLUS_QM, REG_CHAR_CLASSES, REG_CONTEXT_INDEP_ANCHORS):
42952         (REG_CONTEXT_INDEP_OPS, REG_CONTEXT_INVALID_OPS):
42953         (REG_DOT_NEWLINE, REG_DOT_NOT_NULL, REG_HAT_LISTS_NOT_NEWLINE):
42954         (REG_INTERVALS, REG_LIMITED_OPS, REG_NEWLINE_ALT):
42955         (REG_NO_BK_BRACES, REG_NO_BK_PARENS, REG_NO_BK_REFS):
42956         (REG_NO_BK_VBAR, REG_NO_EMPTY_RANGES):
42957         (REG_UNMATCHED_RIGHT_PAREN_ORD, REG_NO_POSIX_BACKTRACKING):
42958         (REG_NO_GNU_OPS, REG_DEBUG, REG_INVALID_INTERVAL_ORD):
42959         (REG_IGNORE_CASE, REG_CARET_ANCHORS_HERE):
42960         (REG_CONTEXT_INVALID_DUP, REG_NO_SUB, REG_SYNTAX_EMACS):
42961         (REG_SYNTAX_AWK, REG_SYNTAX_GNU_AWK, REG_SYNTAX_POSIX_AWK):
42962         (REG_SYNTAX_GREP, REG_SYNTAX_EGREP, REG_SYNTAX_POSIX_EGREP):
42963         (REG_SYNTAX_ED, REG_SYNTAX_SED, _REG_SYNTAX_POSIX_COMMON):
42964         (REG_SYNTAX_POSIX_BASIC, REG_SYNTAX_POSIX_MINIMAL_BASIC):
42965         (REG_SYNTAX_POSIX_EXTENDED, REG_SYNTAX_POSIX_MINIMAL_EXTENDED):
42966         (REG_DUP_MAX, REG_UNALLOCATED, REG_REALLOCATE, REG_FIXED):
42967         (REG_NREGS):
42968         Remove.  All uses replaced by the old RE_* names.
42969         (RE_BACKSLASH_ESCAPE_IN_LISTS):
42970         (RE_BK_PLUS_QM, RE_CHAR_CLASSES, RE_CONTEXT_INDEP_ANCHORS):
42971         (RE_CONTEXT_INDEP_OPS, RE_CONTEXT_INVALID_OPS):
42972         (RE_DOT_NEWLINE, RE_DOT_NOT_NULL, RE_HAT_LISTS_NOT_NEWLINE):
42973         (RE_INTERVALS, RE_LIMITED_OPS, RE_NEWLINE_ALT):
42974         (RE_NO_BK_BRACES, RE_NO_BK_PARENS, RE_NO_BK_REFS):
42975         (RE_NO_BK_VBAR, RE_NO_EMPTY_RANGES):
42976         (RE_UNMATCHED_RIGHT_PAREN_ORD, RE_NO_POSIX_BACKTRACKING):
42977         (RE_NO_GNU_OPS, RE_DEBUG, RE_INVALID_INTERVAL_ORD):
42978         (RE_IGNORE_CASE, RE_CARET_ANCHORS_HERE):
42979         (RE_CONTEXT_INVALID_DUP, RE_NO_SUB):
42980         Don't bother having these macros be independent of each others'
42981         values, since they no longer exist in the POSIX name space.
42982
42983         Rename the following member names back to their old names,
42984         unless !__USE_GNU_REGEX.  All uses changed back.
42985         (buffer): Renamed from re_buffer.
42986         (allocated): Renamed from re_allocated.
42987         (used): Renamed from re_used.
42988         (syntax): Renamed from re_syntax.
42989         (fastmap): Renamed from re_fastmap.
42990         (translate): Renamed from re_translate.
42991         (can_be_null): Renamed from re_can_be_null.
42992         (regs_allocated): Renamed from re_regs_allocated.
42993         (fastmap_accurate): Renamed from re_fastmap_accurate.
42994         (no_sub): Renamed from re_no_sub.
42995         (not_bol): Renamed from re_not_bol.
42996         (not_eol): Renamed from re_not_eol.
42997         (newline_anchor): Renamed from re_newline_anchor.
42998         (num_regs): Renamed from rm_num_regs.
42999         (start): Renamed from rm_start.
43000         (end): Renamed from rm_end.
43001
43002         (free_state): Move up a bit.
43003
43004         * lib/regex_internal.h (inline) [__GNUC__ < 3 && defined _LIBC]:
43005         #define to be empty.
43006         (ASCII_CHARS): New macro, replacing all uses of 0x80 and/or SBC_MAX / 2
43007         when that is what is intended.
43008         (SBC_MAX): Define to UCHAR_MAX + 1, not 256.
43009         (__re_error_msgid, __re_error_msgid_idx): Remove decls; not needed.
43010         (MAX): New macro.
43011         (re_xmalloc, re_calloc, re_xrealloc, re_x2realloc): Remove.
43012         All uses changed back to re_malloc, etc.  It's now the caller's
43013         responsibility to check for overflow; all callers changed.
43014         (re_alloc_oversized, re_x2alloc_oversized, re_xnmalloc, re_xnrealloc):
43015         (re_x2nrealloc): Remove.
43016         (free_state): Remove decl.
43017
43018         * lib/regexc.c (regexec, re_match, re_search, re_match_2, re_search_2):
43019         (re_set_registers, re_exec):
43020         Use K&R-style defn.
43021
43022         2006-01-31  Roland McGrath  <roland@redhat.com>
43023
43024         * lib/regcomp.c (calc_eclosure_iter): Remove dead variables.
43025         Reported by Mike Frysinger <vapier@gentoo.org>.
43026
43027         2006-01-15  Andreas Jaeger  <aj@suse.de>
43028
43029         [BZ #1950]
43030         * lib/regex_internal.c (re_string_reconstruct): Adjust for
43031         build_wcs_upper_buffer change.
43032         (build_wcs_upper_buffer): Change return type.
43033
43034         2005-12-10  Ulrich Drepper  <drepper@redhat.com>
43035
43036         * lib/regex_internal.h: Include <stdint.h> if available.
43037
43038         2005-12-06  Paolo Bonzini  <bonzini@gnu.org>
43039
43040         * lib/regex_internal.h (SIZE_MAX): Provide a default definition.
43041
43042         2005-10-14  Ulrich Drepper  <drepper@redhat.com>
43043
43044         * lib/regcomp.c: Adjust for changed secondary hash function.
43045
43046         2005-09-30  Ulrich Drepper  <drepper@redhat.com>
43047
43048         * lib/regex.h: Pretty printing.
43049         Clean up namespace a bit.
43050
43051         2005-09-30  Jakub Jelinek  <jakub@redhat.com>
43052
43053         * lib/regexec.c (update_cur_sifted_state, check_arrival,
43054         check_arrival_add_next_nodes): Avoid using uninitialized variable.
43055
43056         2005-09-06  Paul Eggert  <eggert@cs.ucla.edu>
43057                     Ulrich Drepper  <drepper@redhat.com>
43058
43059         [BZ #1302]
43060         * lib/regex_internal.h (bitset_t): Renamed from bitset.  All uses
43061         changed.
43062         (bitset_word_t): Renamed from bitset_word.  All uses changed.
43063
43064         2005-09-22  Ulrich Drepper  <drepper@redhat.com>
43065
43066         [BZ #281]
43067         * lib/regex.h: Define RE_TRANSLATE_TYPE as unsigned char *.
43068         * lib/regcomp.c: Remove unnecessary uses of
43069         unsigned RE_TRANSLATE_TYPE.
43070         * lib/regex_internal.h: Likewise.
43071         * lib/regex_internal.c: Likewise.
43072         * lib/regexec.c: Likewise.
43073         Based on a patch by Stepan Kasal <kasal@ucw.cz>.
43074
43075         2005-09-07  Ulrich Drepper  <drepper@redhat.com>
43076
43077         * lib/regexec.c (find_recover_state): Remove unnecessary
43078         initialization.
43079         (transit_state_bkref): Make DFA a const pointer.
43080         (get_subexp): Likewise.
43081         (check_arrival): Likewise.
43082         (update_cur_sifted_state): Likewise.
43083         (re_search_internal): Likewise.
43084         (prune_impossible_nodes): Likewise.
43085         (acquire_init_state_context): Likewise.
43086         (proceed_next_node): Likewise.
43087         (set_regs): Likewise.
43088         (free_fail_stack_return): Likewise.
43089         (check_arrival_expand_ecl): Mark DFA parameter as const.
43090         (check_arrival_expand_ecl_sub): Likewise.
43091         (check_subexp_limits): Likewise.
43092         (sub_epsilon_src_nodes):  Likewise.
43093         (add_epsilon_src_nodes):  Likewise.
43094         (merge_state_array): Likewise.
43095         (update_regs): Likewise.
43096         (build_trtable): Likewise.
43097         (sift_states_backward): Mark MCTX parameter as const.
43098         (build_sifted_states): Likewise.
43099         (update_cur_sifted_state): Likewise.
43100         (sift_states_mkref): Likewise.
43101         (check_arrival_expand_ecl): Mark eclosure as const.
43102         (check_dst_limits_calc_pos_1): Likewise.
43103         * lib/regex_internal.h (re_match_context_t): Make dfa a const
43104         pointer.
43105
43106         2005-09-06  Ulrich Drepper  <drepper@redhat.com>
43107
43108         * lib/regexec.c (merge_state_with_log): Define dfa as const pointer.
43109         (transit_state_sb): Likewise.
43110         (transit_state_mb): Likewise.
43111         (sift_states_iter_mb): Likewise.
43112         (check_arrival_add_next_nodes): Likewise.
43113         (check_node_accept_bytes): Change first parameter to pointer-to-const.
43114         [_LIBC] (re_search_2_stub): Use mempcpy.
43115
43116         * lib/regex_internal.c (re_string_reconstruct): Avoid calling
43117         mbrtowc for very simple UTF-8 case.
43118
43119         * lib/regex_internal.c (re_acquire_state): Make DFA pointer arg
43120         a pointer-to-const.
43121         (re_acquire_state_context): Likewise.
43122         * lib/regex_internal.h: Adjust prototypes.
43123
43124         * lib/regex.c: Prevent using C++ compilers.
43125
43126         * lib/regex_internal.c (re_acquire_state): Minor code rearrangement.
43127         (re_acquire_state_context): Likewise.
43128
43129 2006-04-09  Paul Eggert  <eggert@cs.ucla.edu>
43130
43131         * modules/regex (Depends-on): Add ssize_t.
43132
43133 2006-04-09  Paul Eggert  <eggert@cs.ucla.edu>
43134
43135         * m4/regex.m4 (gl_REGEX): Check for new glibc interface to
43136         translation table.
43137
43138 2006-04-09  Paul Eggert  <eggert@cs.ucla.edu>
43139
43140         * doc/gnulib-tool.texi (Modified imports): pathname -> file name.
43141
43142 2006-03-29  Mark D. Baushke  <mdb@gnu.org>
43143             Bruno Haible  <bruno@clisp.org>
43144
43145         * lib/stdint_.h: On OpenBSD, don't redefine types already included in
43146         <sys/types.h> and <inttypes.h>.
43147
43148 2006-03-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
43149
43150         * m4/argz.m4 (gl_FUNC_ARGZ): If we define `error_t', also define
43151         `__error_t_defined', so argp.h will not typedef the former.
43152
43153 2006-03-25  Paul Eggert  <eggert@cs.ucla.edu>
43154
43155         * m4/regex.m4 (gl_REGEX): Don't insist on REG_SYNTAX_POSIX_EGREP,
43156         REG_SYNTAX_EMACS, and REG_IGNORE_CASE.  Settle for the traditional
43157         glibc names.  Even if glibc is changed to conform to POSIX, the
43158         traditional names will be available anyway, since regex depends on
43159         the extensions module.  Also, fix a longstanding typo in the
43160         implementation of Spencer ERE test #75 from grep 2.3.  Problems
43161         reported by Emanuele Giaquinta.  Also, change sense of cached
43162         variable, so that the message makes sense.
43163
43164 2006-03-24  Simon Josefsson  <jas@extundo.com>
43165
43166         * lib/base64.c: Fix problems reported by Eric Blake <ebb9@byu.net>,
43167         including some doc fixes.
43168         (base64_encode_alloc): Fix +1 bug on allocation failures.
43169
43170 2006-03-24  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
43171
43172         * lib/base64.c (base64_encode): Do not read past end of array with
43173         unsanitized input on systems with CHAR_BIT > 8.
43174
43175 2006-03-24  Eric Blake  <ebb9@byu.net>
43176
43177         * lib/time_r.c (copy_string_result): Remove, as it is no longer used.
43178
43179 2006-03-22  Karl Berry  <karl@gnu.org>
43180
43181         * config/srclist.txt (*setenv.[ch]): get from coreutils.
43182         * config/srclistvars.sh (COREUTILS): new var.
43183
43184 2006-03-17  Jim Meyering  <jim@meyering.net>
43185
43186         * m4/regex.m4 (gl_REGEX): Fix typo in last change:
43187         s/_REGEX_WIDE_OFFSETS/_REGEX_LARGE_OFFSETS/.
43188
43189 2006-03-16  Paul Eggert  <eggert@cs.ucla.edu>
43190
43191         * m4/regex.m4 (gl_REGEX): Don't check for off_t, since the code
43192         no longer needs it.  Instead, check that regoff_t is as least
43193         as wide as ptrdiff_t.
43194
43195         Don't define _REGEX_WIDE_OFFSETS unless using the included regex,
43196         so that our regex.h stays compatible with the installed regex.
43197         This is helpful for installers who configure --without-included-regex.
43198         Problem reported by Emanuele Giaquinta.
43199
43200 2006-03-16  Paul Eggert  <eggert@cs.ucla.edu>
43201
43202         * lib/regex.h (regoff_t) [defined _REGEX_LARGE_OFFSETS]:
43203         Typedef to long int, not to off_, as POSIX will likely change
43204         in that direction.
43205
43206 2006-03-15  Eric Blake  <ebb9@byu.net>
43207
43208         * m4/dirfd.m4 (gl_FUNC_DIRFD): Use AC_REQUIRE for AC_HEADER_DIRENT.
43209
43210 2006-03-13  Sergey Poznyakoff  <gray@gnu.org.ua>
43211
43212         * lib/argp-help.c (validate_uparams): Fix typo
43213         * lib/argp-parse.c (argp_default_options): Consistently begin help
43214         messages with a lowercase letter.
43215
43216 2006-03-11  Paul Eggert  <eggert@cs.ucla.edu>
43217
43218         * lib/time_r.h (asctime_r, ctime_r): Remove.  These functions can
43219         overrun buffers and shouldn't be used (much as gets shouldn't be
43220         used).
43221         * lib/time_r.c (asctime_r, ctime_r): Likewise.
43222
43223 2006-03-08  Simon Josefsson  <jas@extundo.com>
43224
43225         * m4/gc-random.m4: Permit 'no' as variable values and fix warnings,
43226         suggested by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
43227
43228 2006-03-08  Simon Josefsson  <jas@extundo.com>
43229
43230         * m4/gc-random.m4: Call AC_CANONICAL_HOST and use $host_os instead of
43231         $target, suggested by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
43232
43233 2006-03-08  Simon Josefsson  <jas@extundo.com>
43234
43235         * lib/gc-gnulib.c (randomize): Don't open files called 'no', they
43236         signal that configure disabled the device.
43237
43238 2006-03-08  Simon Josefsson  <jas@extundo.com>
43239
43240         * build-aux/maint.mk: Fix refresh-po, to handle no translated
43241         languages.
43242
43243 2006-03-07  Simon Josefsson  <jas@extundo.com>
43244
43245         * modules/getopt (Depends-on): Add unistd.
43246
43247         * modules/unistd: New file.
43248
43249 2006-03-07  Simon Josefsson  <jas@extundo.com>
43250
43251         * modules/gc-random: New file.
43252
43253 2006-03-07  Simon Josefsson  <jas@extundo.com>
43254
43255         * m4/unistd_h.m4: New file.
43256
43257 2006-03-07  Simon Josefsson  <jas@extundo.com>
43258
43259         * m4/readline.m4 (gl_FUNC_READLINE): Rewrite the cached part of the
43260         test to be side-effect free by storing the result in the cache
43261         variable gl_cv_lib_readline, and moving the assignment of
43262         LIBREADLINE and LTLIBREADLINE outside the COMMANDS-TO-SET-IT.
43263         From Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
43264
43265 2006-03-07  Simon Josefsson  <jas@extundo.com>
43266
43267         * m4/gc-random.m4: New file, mostly from gc.m4.  Warn instead of
43268         error on missing devices (the functions will return an error).
43269
43270         * m4/gc.m4: Move random stuff to gc-random.m4
43271
43272 2006-03-07  Simon Josefsson  <jas@extundo.com>
43273
43274         * lib/unistd_.h: New file.
43275
43276 2006-03-07  Simon Josefsson  <jas@extundo.com>
43277
43278         * lib/gc-libgcrypt.c, gc-gnulib.c: Use GC_USE_RANDOM.
43279
43280 2006-03-07  Paul Eggert  <eggert@cs.ucla.edu>
43281
43282         * m4/unistd_h.m4 (gl_HEADER_UNISTD): Rename, to match modules file.
43283         Problem reported by Juan Manuel Guerrero.
43284
43285 2006-03-07  Paul Eggert  <eggert@cs.ucla.edu>
43286
43287         * lib/c-stack.c: Include unistd.h unconditionally, since we now assume
43288         the unistd module.
43289         * lib/getlogin_r.c: Likewise.
43290         * lib/getlogin_r.h: Likewise.
43291         * lib/glob.c: Likewise.
43292         * lib/pagealign_alloc.c: Likewise.
43293         * lib/unistd_.h: Remove; no longer needed.
43294
43295 2006-03-07  Paul Eggert  <eggert@cs.ucla.edu>
43296
43297         * MODULES.html.sh (Support for systems lacking POSIX:2001):
43298         Add unistd.
43299         * modules/c-stack (Depends-on): Add unistd.
43300         * modules/getlogin_r: Likewise.
43301         * modules/glob: Likewise.
43302         * modules/pagealign_alloc: Likewise.
43303         * modules/unistd (Files): Remove lib/unistd_.h.
43304         (EXTRA_DIST): Remove.
43305         (unistd.h): Create using 'echo' rather than 'cp', so that we don't
43306         need unistd_.h.
43307         (MOSTLYCLEANFILES): Remove unistd.h-t.
43308
43309 2006-03-03  Simon Josefsson  <jas@extundo.com>
43310
43311         * build-aux/maint.mk: Add several syntax checks from CoreUtils.
43312
43313 2006-03-03  Simon Josefsson  <jas@extundo.com>
43314
43315         * build-aux/maint.mk: Add refresh-po rule, based on ideas from
43316         libidn and bison.
43317
43318 2006-03-03  Simon Josefsson  <jas@extundo.com>
43319
43320         * build-aux/maint.mk: Add indent target.
43321
43322 2006-03-03  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de> (tiny change)
43323
43324         * m4/poll.m4 (gl_FUNC_POLL): If we deem poll(2) unacceptable, use
43325         our replacement poll.h in any case, to avoid a differing
43326         declaration from a system header.  Seen on AIX.
43327
43328 2006-03-01  Simon Josefsson  <jas@extundo.com>
43329
43330         * lib/readline.c: Fix typo, tiny patch from Stepan Kasal
43331         <kasal@ucw.cz>.
43332
43333 2006-03-01  Paul Eggert  <eggert@cs.ucla.edu>
43334
43335         * modules/gettime (Depends-on): Add extensions module.
43336         * modules/nanosleep (Depends-on): Likewise.
43337         * modules/settime (Depends-on): Likewise.
43338
43339 2006-03-01  Paul Eggert  <eggert@cs.ucla.edu>
43340
43341         * m4/clock_time.m4 (gl_CLOCK_TIME): Require gl_USE_SYSTEM_EXTENSIONS,
43342         not merely AC_GNU_SOURCE, for the benefit of Solaris 10 when compiled
43343         pedantically.
43344         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
43345         * m4/timespec.m4 (gl_TIMESPEC): Likewise.
43346
43347         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Use "=" with "test",
43348         not "==".  Reported by Ralf Wildenhues.
43349
43350 2006-03-01  Karl Berry  <karl@gnu.org>
43351
43352         * doc/Copyright/request-*: new files, synced from gnuorg.
43353
43354 2006-03-01  Karl Berry  <karl@gnu.org>
43355
43356         * config/srclist.txt (Copyright/*): new entries.
43357
43358 2006-02-28  Simon Josefsson  <jas@extundo.com>
43359
43360         * lib/getopt.c: Protect #include of unistd.h, for MSVS.
43361
43362 2006-02-27  Simon Josefsson  <jas@extundo.com>
43363
43364         * lib/base64.h: Indent #define's.  From Jim Meyering
43365         <jim@meyering.net>.
43366
43367 2006-02-27  Jim Meyering  <jim@meyering.net>
43368
43369         Revert the change of 2006-02-24, so these files can continue
43370         to be sync'd from gettext.
43371         * lib/mkdtemp.c, setenv.c, unsetenv.c: *Un*-normalize inclusion
43372         of `config.h'.
43373
43374 2006-02-26  Paul Eggert  <eggert@cs.ucla.edu>
43375
43376         * modules/intprops: New file.
43377         * MODULES.html.sh (Numeric conversion functions <stdlib.h>):
43378         Add intprops.
43379         * modules/getloadavg (Files): Remove lib/intprops.h.
43380         (Depends-on): Add intprops.
43381         * modules/human: Likewise.
43382         * modules/inttostr: Likewise.
43383         * modules/openat: Likewise.
43384         * modules/sig2str: Likewise.
43385         * modules/userspec: Likewise.
43386         * modules/utimecmp: Likewise.
43387         * modules/xnanosleep: Likewise.
43388         * modules/xstrtol: Likewise.
43389
43390 2006-02-24  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>  (tiny changes)
43391
43392         * modules/xstrtod: Omit xstrtod.h, xstrtod.c; they're in LIB_SOURCES.
43393         * modules/lock-tests (TESTS): Use $(EXEEXT).
43394         * modules/tls-tests: Likewise.
43395         * modules/argp-tests: Likewise.
43396         (check_PROGRAMS): New var, replacing...
43397         (noinst_PROGRAMS, test_argp_SOURCES): Remove.
43398
43399 2006-02-24  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
43400
43401         * lib/mkdtemp.c, lib/setenv.c, lib/unsetenv.c: Normalize inclusion of
43402         `config.h'.
43403
43404 2006-02-24  Paul Eggert  <eggert@cs.ucla.edu>
43405
43406         * lib/glob.c: Say "invalid" rather than "illegal" in comments.
43407
43408 2006-02-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
43409
43410         Sync from coreutils.
43411         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS): Require gl_FUNC_LCHMOD and
43412         gl_CHDIR_SAFER.
43413
43414 2006-02-22  Jim Meyering  <jim@meyering.net>
43415
43416         Sync from coreutils.
43417         * m4/chdir-safer.m4: New file.
43418
43419 2006-02-20  Paul Eggert  <eggert@cs.ucla.edu>
43420
43421         * lib/getcwd.c (AT_FDCWD): Work around a bug in Solaris 9 and 10, where
43422         AT_FDCWD exceeds INT_MAX.
43423         * lib/openat.h (AT_FDCWD): Likewise.
43424
43425 2006-02-17  Eric Blake  <address@hidden>
43426
43427         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Fix caching error.
43428
43429 2006-02-16  Simon Josefsson  <jas@extundo.com>
43430
43431         * modules/getaddrinfo (Depends-on): Add sys_socket.
43432
43433 2006-02-15  Simon Josefsson  <jas@extundo.com>
43434
43435         * build-aux/maint.mk: Add dsyntax-check rule.
43436
43437 2006-02-15  Eric Blake  <ebb9@byu.net>
43438
43439         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Don't attempt using
43440         winsock2.h or ws2tcpip.h when sys/socket.h is present. Fixes
43441         'present but cannot compile' warnings on cygwin.
43442         * m4/socklen.m4 (gl_TYPE_SOCKLEN_T): Use gl_HEADER_SYS_SOCKET.  Don't
43443         use ws2tcpip.h if sys/socket.h works.
43444         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Use gl_HEADER_SYS_SOCKET.
43445         (gl_GETADDRINFO): Don't use ws2tcpip.h when sys/socket.h is present.
43446
43447 2006-02-14  Simon Josefsson  <jas@extundo.com>
43448
43449         * modules/maintainer-makefile (Files): Rename.
43450
43451         * build-aux/GNUmakefile: Rename Makefile.maint to maint.mk
43452         and (the local) Makefile.cfg to maint-cfg.mk.
43453
43454         * build-aux/Makefile.maint, build-aux/maint.mk: Renamed the former
43455         to the latter.
43456
43457         * modules/maintainer-makefile: New module.
43458
43459         * build-aux/Makefile.maint: New file, from GNU CoreUtils, although
43460         severaly stripped to make it possible to build it up from scratch
43461         with reliable tests.
43462
43463         * build-aux/GNUmakefile: New file, from GNU CoreUtils with some
43464         fixes to permit overriding the default actions when configure and
43465         makefile are not available.
43466
43467 2006-02-14  Paul Eggert  <eggert@cs.ucla.edu>
43468
43469         Sync from coreutils.
43470         * modules/lstat (Depends-on): Don't depend on xalloc.
43471         (License): Change from GPL to LGPL, since this is now simply a
43472         replacement for a libc function.
43473
43474 2006-02-14  Jim Meyering  <jim@meyering.net>
43475
43476         Sync from coreutils.
43477
43478         Eliminate the unwelcome (albeit unlikely) possibility of xmalloc
43479         failure on deficient systems, and simplify gnulib lgpl dependencies.
43480         * lib/lstat.c (rpl_lstat): Rewrite to use stat() in place of the
43481         xmalloc/lstat combination.  Based on a patch from Bruno Haible.
43482
43483         * lib/xalloc-die.c: Remove unused definition of N_.
43484
43485 2006-02-14  Jim Meyering  <jim@meyering.net>
43486
43487         Sync from coreutils.
43488         * m4/ls-mntd-fs.m4 (AC_FUNC_GETMNTENT): Invoke
43489         AC_CHECK_FUNCS(getmntent) unconditionally so that tests of
43490         $ac_cv_func_getmntent (e.g., in gl_LIST_MOUNTED_FILE_SYSTEMS) need not
43491         double-quote uses of that variable, to accommodate the rare case in
43492         which getmntent is available in none of the libraries checked.  This
43493         happens at least on FreeBSD 5.0.
43494
43495 2006-02-13  Simon Josefsson  <jas@extundo.com>
43496
43497         * gnulib-tool (Usage): Fix --import, from
43498         karl@freefriends.org (Karl Berry).
43499
43500 2006-02-13  Sergey Poznyakoff  <gray@gnu.org.ua>
43501
43502         * lib/argp-fmtstream.c: Restore another bugfix lost on 2005-12-12
43503
43504 2006-02-07  Sergey Poznyakoff  <gray@gnu.org.ua>
43505
43506         * lib/argp-namefrob.h: Restore changes accidentally lost during the
43507         "autoupdate" on 2005-12-12.
43508
43509 2006-02-07  Paul Eggert  <eggert@cs.ucla.edu>
43510
43511         * modules/closeout (Depends-on): Remove atexit.
43512
43513 2006-02-07  Paul Eggert  <eggert@cs.ucla.edu>
43514
43515         * lib/closeout.c (close_stdout): Don't assume 'bool' converts nonzero
43516         ints to 0 or 1, as this isn't true for the stdbool.h substitute.
43517
43518 2006-02-05  Paul Eggert  <eggert@cs.ucla.edu>
43519
43520         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Don't #define
43521         __EXTENSIONS__ if this causes compilation to fail.  Problem
43522         reported by Nelson H. F. Beebe with Solaris 10 and Sun C 5.7
43523         c89 -D_XOPEN_SOURCE -D_XOPEN_SOURCE_EXTENDED.
43524
43525 2006-01-27  Paul Eggert  <eggert@cs.ucla.edu>
43526
43527         * lib/fnmatch.c (L_): Renamed from L, to work around a bug in
43528         Mac OS X 10.3.9 with GCC 3 reported by Claudio Fontana in
43529         <http://lists.gnu.org/archive/html/bug-gnulib/2006-01/msg00074.html>.
43530         All uses changed.
43531
43532 2006-01-26  Simon Josefsson  <jas@extundo.com>
43533
43534         * lib/socket_.h: Set WINVER to 0x0501, to make sure getaddrinfo
43535         prototype is visible on mingw32.
43536
43537         * lib/getaddrinfo.h: Define EAI_ADDRFAMILY and EAI_SYSTEM if not set,
43538         for mingw32.
43539
43540         * lib/gai_strerror.c, getaddrinfo.h: Protect netdb.h #include (for
43541         mingw32).
43542
43543 2006-01-26  Paul Eggert  <eggert@cs.ucla.edu>
43544
43545         * lib/fts.c (diropen): Open with O_NOCTTY | O_NONBLOCK too.  Don't
43546         attempt to open for write; this always fails, at least on POSIX
43547         hosts.  This reinstates the 2006-01-09 change, which was
43548         inadvertently removed.
43549
43550 2006-01-26  Bruno Haible  <bruno@clisp.org>
43551
43552         * gnulib-tool (func_import): Use "trap 'exit $?' instead of "trap :".
43553         Reported by Paul Eggert.
43554
43555 2006-01-26  Bruno Haible  <bruno@clisp.org>
43556             Paul Eggert  <eggert@cs.ucla.edu>
43557
43558         * lib/stdbool_.h (_Bool)
43559         [(! (defined __cplusplus || defined __BEOS__)
43560           && !defined __GNUC__
43561           && !(defined __HP_cc || defined __xlc__
43562                || (defined __SUNPRO_C && (__SUNPRO_C < 0x550 || __STDC__ == 1))
43563                || defined __sgi))]:
43564         #define to signed char in these cases too; this simplifies
43565         the code (so that we don't have to worry about HP-UX, AIX, SunPRO,
43566         etc., separately) and makes it more conservative.
43567
43568 2006-01-25  Simon Josefsson  <jas@extundo.com>
43569
43570         * m4/getaddrinfo.m4: Look for getaddrinfo inside ws2tcip.h and
43571         -lws2_32.  Protect sys/socket.h and netdb.h #include's.  Include
43572         ws2tcpip.h with WINVER=0x0501.  All for mingw32.
43573
43574 2006-01-25  Sergey Poznyakoff  <gray@gnu.org.ua>
43575
43576         * lib/argp-namefrob.h: Bugfix. Remove stray #
43577
43578 2006-01-25  Paul Eggert  <eggert@cs.ucla.edu>
43579
43580         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Check for xlc bug if __GCC__ too,
43581         so that we test the test.
43582         Check for yet another HP-UX cc bug involving *bool |= bool.
43583
43584 2006-01-25  Karl Berry  <karl@gnu.org>
43585
43586         * config/srclist.txt (vasnprintf.c): sync lost.
43587
43588 2006-01-25  Jim Meyering  <jim@meyering.net>
43589
43590         Sync from the stable (b5) branch of coreutils:
43591
43592         * lib/fts.c (fts_children): Don't let close() clobber errno from
43593         failed fchdir().
43594
43595         * lib/fts.c (fts_stat): When following a symlink-to-directory,
43596         don't necessarily interpret stat-fails+lstat-succeeds as indicating
43597         a dangling symlink.  That can also happen at least for ELOOP.
43598         The fix: return FTS_SLNONE only when the stat errno is ENOENT.
43599         FYI, this bug predates the inclusion of fts.c in coreutils.
43600
43601         * lib/fts.c (fts_open): Put new maxarglen declaration and uses
43602         in their own block, so pre-c99 compilers don't object.
43603
43604         Avoid the double-free (first in fts_read, second in fts_close) that
43605         would occur when an `active' directory is made inaccessible (e.g.,
43606         via chmod a-x) during a traversal.
43607         * lib/fts.c (fts_read): After a failed fchdir, update sp->fts_cur
43608         before returning.  Reproduce this failure by
43609         mkdir -p a/b; cd a; chmod a-x . b
43610         Reported by Stavros Passas.
43611
43612 2006-01-25  Jim Meyering  <jim@meyering.net>
43613
43614         * lib/fileblocks.c: Remove more useless parentheses.
43615         * lib/readutmp.h: Likewise.
43616
43617 2006-01-25  Bruno Haible  <bruno@clisp.org>
43618
43619         * lib/stdbool_.h (_Bool) [IRIX cc]: Define as 'signed char', to avoid
43620         warnings.
43621         Reported by Paul Eggert.
43622
43623 2006-01-25  Bruno Haible  <bruno@clisp.org>
43624
43625         * gnulib-tool (func_import): Use "trap :" instead of "trap -" to get
43626         rid of a trap command. For Solaris sh.
43627         Reported by Mark D. Baushke <mdb@gnu.org>.
43628
43629 2006-01-24  Simon Josefsson  <jas@extundo.com>
43630
43631         * lib/socket_.h (SHUT_WR, SHUT_RDWR): Don't hardcode, suggested by
43632         Bruno.
43633
43634 2006-01-24  Karl Berry  <karl@gnu.org>
43635
43636         * config/srclist.txt (argp-namefrob.h): sync lost.
43637
43638 2006-01-24  Jim Meyering  <jim@meyering.net>
43639
43640         * modules/openat (Files): Add lib/intprops.h.
43641         From Mark D. Baushke.
43642
43643 2006-01-24  Jim Meyering  <jim@meyering.net>
43644
43645         * m4/openat.m4 (gl_FUNC_OPENAT): Add AC_LIBSOURCES([intprops.h]).
43646         Reported by Mark D. Baushke.
43647
43648 2006-01-24  Jim Meyering  <jim@meyering.net>
43649
43650         * lib/socket_.h: Remove useless parentheses in uses of cpp `defined'.
43651
43652 2006-01-24  Bruno Haible  <bruno@clisp.org>
43653
43654         * modules/strnlen (Maintainer): Change from glibc to all.
43655
43656 2006-01-24  Bruno Haible  <bruno@clisp.org>
43657
43658         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Check for IBM and HP-UX bugs.
43659         Patch by Paul Eggert.
43660
43661 2006-01-24  Bruno Haible  <bruno@clisp.org>
43662
43663         * lib/stdbool_.h (_Bool) [__cplusplus]: Don't define if the compiler
43664         already has it.
43665         Report and patch by Albert Chin-A-Young  <china@thewrittenword.com> on
43666         2005-11-26.
43667
43668         * lib/stdbool_.h (_Bool) [HP-UX cc, AIX cc,xlc]: Define as
43669         'signed char' to avoid problems with the built-in _Bool type.
43670         Reported by Paul Eggert on 2005-11-26.
43671
43672 2006-01-24  Bruno Haible  <bruno@clisp.org>
43673
43674         * gnulib-tool (func_import): Avoid constructing complicated sed
43675         expressions inside backquote.
43676         Report and solution by Mark D. Baushke <mdb@gnu.org>.
43677
43678 2006-01-23  Ulrich Drepper  <drepper@redhat.com>
43679
43680         These changes imported from libc.
43681         * lib/getopt.c: Use __fxprintf instead of inline stream orientation
43682         test and two separate function calls.
43683         * lib/strndup.c (__strndup): Add libc_hidden_def.
43684
43685 2006-01-23  Simon Josefsson  <jas@extundo.com>
43686
43687         * modules/lock-tests: Use check_PROGRAMS instead of noinst_PROGRAMS.
43688         Remove the test_*_SOURCES variable: automake infers it by default.
43689         * modules/tls-tests: Likewise.
43690
43691 2006-01-23  Paul Eggert  <eggert@cs.ucla.edu>
43692
43693         Work around porting bugs reported by Dieter in
43694         <http://lists.gnu.org/archive/html/bug-bison/2006-01/msg00049.html>.
43695         * lib/getopt.c (_NOPROTO): Remove; no longer needed.
43696         Include <stdlib.h> and <unistd.h> in all environments; it's safe now.
43697         Include "getopt.h" first, to check interface.
43698         (getenv): Declare only if defined HAVE_DECL_GETENV &&
43699         !HAVE_DECL_GETENV.
43700         * lib/strndup.c [!_LIBC]: Include "strndup.h" to get prototype.
43701         (__strndup): Revert to K&R-style function dfns, the glibc style.
43702         * lib/strnlen.c: Don't claim it's taken from glibc; it's not.
43703         (strnlen, __strnlen): Remove #defines and #undefs; not needed.
43704         Include strnlen.h first, to get prototype properly.
43705         (strnlen): Renamed from __strnlen.
43706         Remove weak alias.
43707
43708 2006-01-23  Paul Eggert  <eggert@cs.ucla.edu>
43709
43710         * m4/getopt.m4 (gl_PREREQ_GETOPT): Check for getenv decl.
43711
43712 2006-01-23  Paul Eggert  <eggert@cs.ucla.edu>
43713
43714         * config/srclist.txt: Adjust to reflect glibc reorganization.
43715         This affects only comments.
43716
43717 2006-01-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>  (tiny change)
43718
43719          * gnulib-tool, build-aux/csharpcomp.sh.in: Do not pass `-q' to mktemp.
43720          Reported by Bruce Korb <bkorb@gnu.org>.
43721
43722 2006-01-22  Paul Eggert  <eggert@cs.ucla.edu>
43723
43724         * lib/quotearg.c (quotearg_buffer_restyled): Add "default: break;"
43725         to pacify gcc -Wswitch-default.
43726
43727 2006-01-22  Bruno Haible  <bruno@clisp.org>
43728
43729         * lib/vasnprintf.c (VASNPRINTF): In the computation of the size of the
43730         temporary buffer for sprintf, take into account the precision also
43731         for 'd', 'i', 'u', 'o', 'x', 'X'.
43732
43733 2006-01-21  Sergey Poznyakoff  <gray@gnu.org.ua>
43734
43735         * modules/argp-tests: New module
43736         * tests/test-argp.c: New file
43737         * tests/test-argp-2.sh: New file
43738
43739 2006-01-21  Sergey Poznyakoff  <gray@gnu.org.ua>
43740
43741         * lib/argp-help.c (usage_long_opt): Do not print DOC options.
43742         (__argp_base_name): Removed
43743         * lib/argp-namefrob.h (__argp_basename): Removed definition. Was a
43744         typo.
43745         (__argp_base_name): Provide macro definition or extern declaration
43746         depending on the configuration
43747
43748 2006-01-20  Simon Josefsson  <jas@extundo.com>
43749
43750         * modules/inet_ntop (Depends-on): Depend on sys_socket.
43751
43752 2006-01-20  Simon Josefsson  <jas@extundo.com>
43753
43754         * lib/inet_ntop.h: Unconditionally include sys/socket.h.
43755
43756 2006-01-20  Paul Eggert  <eggert@cs.ucla.edu>
43757
43758         * m4/lib-ignore.m4 (gl_IGNORE_UNUSED_LIBRARIES): Use -Wl,-z,ignore
43759         rather than -Xlinker -z -Xlinker ignore, as it's more portable.
43760         Suggested by Bruno Haible.
43761
43762 2006-01-20  Karl Berry  <karl@gnu.org>
43763
43764         * config/srclist.txt (argp-fmtstream.h, localcharset.c): comment out
43765         until changes propagate, I guess.
43766
43767 2006-01-19  Simon Josefsson  <jas@extundo.com>
43768
43769         * m4/socklen.m4: Look in ws2tcpip.h too, for mingw32.
43770
43771 2006-01-19  Simon Josefsson  <jas@extundo.com>
43772
43773         * lib/socket_.h: Map SHUT_RD, SHUT_WR, SHUT_RDWR correctly.
43774
43775 2006-01-19  Simon Josefsson  <jas@extundo.com>
43776
43777         * gnulib-tool: Set check_PROGRAMS.
43778
43779         * modules/arcfour-tests, modules/arctwo-tests, modules/crc-tests,
43780         modules/des-tests, modules/gc-arcfour-tests,
43781         modules/gc-arctwo-tests, modules/gc-des-tests,
43782         modules/gc-hmac-md5-tests, modules/gc-hmac-sha1-tests,
43783         modules/gc-md2-tests, modules/gc-md4-tests, modules/gc-md5-tests,
43784         modules/gc-pbkdf2-sha1-tests, modules/gc-rijndael-tests,
43785         modules/gc-sha1-tests, modules/gc-tests, modules/hmac-md5-tests,
43786         modules/hmac-sha1-tests, modules/md2-tests, modules/md4-tests,
43787         modules/md5-tests, modules/readline, modules/rijndael-tests: Use
43788         check_PROGRAMS instead of noinst_PROGRAMS to be able to remove
43789         test_*_SOURCES.
43790
43791 2006-01-18  Simon Josefsson  <jas@extundo.com>
43792
43793         * modules/socklen (Depends-on): Depend on sys_socket.
43794
43795 2006-01-18  Simon Josefsson  <jas@extundo.com>
43796
43797         * modules/arcfour-tests, modules/arctwo-tests, modules/crc-tests,
43798         modules/des-tests, modules/gc-arcfour-tests,
43799         modules/gc-arctwo-tests, modules/gc-des-tests,
43800         modules/gc-hmac-md5-tests, modules/gc-hmac-sha1-tests,
43801         modules/gc-md2-tests, modules/gc-md4-tests, modules/gc-md5-tests,
43802         modules/gc-pbkdf2-sha1-tests, modules/gc-rijndael-tests,
43803         modules/gc-sha1-tests, modules/gc-tests, modules/hmac-md5-tests,
43804         modules/hmac-sha1-tests, modules/md2-tests, modules/md4-tests,
43805         modules/md5-tests, modules/readline, modules/rijndael-tests: Add
43806         $(EXEEXT) to automake TESTS variable, for mingw32.
43807
43808 2006-01-17  Simon Josefsson  <jas@extundo.com>
43809
43810         * modules/socklen (Include): Need sys/socket.h.
43811
43812 2006-01-17  Bruno Haible  <bruno@clisp.org>
43813
43814         * modules/ssize_t (Include): Add <sys/types.h>.
43815
43816 2006-01-16  Paul Eggert  <eggert@cs.ucla.edu>
43817
43818         * m4/lib-ignore.m4 (gl_IGNORE_UNUSED_LIBRARIES): Don't use ldd, as
43819         it's not portable and it doesn't work with cross-compiles.
43820         Problem reported by Bruno Haible.  Fix missing-$ typo in
43821         'test "gl_cv_ignore_unused_libraries" ...' that prevented
43822         -zignore from being used with Sun's C compiler.
43823
43824 2006-01-12  Simon Josefsson  <jas@extundo.com>
43825
43826         * lib/base64.c: Fix warning, reported by Bruno Haible
43827         <bruno@clisp.org> and patch by Paul Eggert <eggert@CS.UCLA.EDU>.
43828
43829 2006-01-12  Bruno Haible  <bruno@clisp.org>
43830
43831         * modules/ldd: New file.
43832         * build-aux/ldd.sh.in: New file.
43833         * MODULES.html.sh (Support for building libraries and executables): Add
43834         ldd.
43835
43836 2006-01-12  Bruno Haible  <bruno@clisp.org>
43837
43838         * m4/ldd.m4: New file.
43839
43840 2006-01-12  Bruno Haible  <bruno@clisp.org>
43841
43842         * gnulib-tool (func_import, func_create_testdir): Don't go into an
43843         endless loop while replacing $auxdir with build-aux.
43844
43845 2006-01-11  Simon Josefsson  <jas@extundo.com>
43846
43847         * lib/stdint_.h (SIZE_MAX): Add missing (.
43848
43849 2006-01-11  Paul Eggert  <eggert@cs.ucla.edu>
43850
43851         Sync from coreutils.
43852         * lib/md5.c: Fix commentary typos.
43853         (alignof, UNALIGNED_P): No need for a GCC-specific version.
43854         * lib/md5.h (__attribute__): Remove; unused.
43855         * lib/sha1.c: Fix commentary to match md5 better.
43856         * lib/sha1.h (struct sha1_ctx): Use a word buffer, not a byte buffer,
43857         so that we don't need to worry about alignment.  All uses changed.
43858         This merges the 2005-10-28 md5 change into sha1.
43859
43860 2006-01-11  Jim Meyering  <jim@meyering.net>
43861
43862         Sync from coreutils.
43863         * lib/md5.c (OP): Fix spacing.
43864
43865 2006-01-11  Bruno Haible  <bruno@clisp.org>
43866
43867         Ensure automatic ordering between gl_LOCK and gl_ARGP.
43868         * m4/lock.m4 (gl_LOCK_BODY): Renamed from gl_LOCK.
43869         (gl_LOCK): New macro, requiring gl_LOCK_BODY.
43870
43871 2006-01-11  Bruno Haible  <bruno@clisp.org>
43872
43873         Ensure automatic ordering between gl_LOCK and gl_ARGP.
43874         * gnulib-tool (func_import, func_create_testdir): Put gl_LOCK into
43875         the "early" section as well.
43876
43877 2006-01-11  Bruno Haible  <bruno@clisp.org>
43878
43879         Avoid "ar: no archive members specified" error on MacOS X.
43880         * gnulib-tool (func_modules_add_dummy): New function.
43881         (func_import, func_create_testdir): Invoke it.
43882
43883 2006-01-11  Bruno Haible  <bruno@clisp.org>
43884
43885         * gnulib-tool (func_import, func_create_testdir): Replace build-aux
43886         with $auxdir in AC_CONFIG_FILES statements.
43887
43888 2006-01-11  Bruno Haible  <bruno@clisp.org>
43889
43890         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
43891         Initialize also noinst_HEADERS to empty.
43892
43893 2006-01-11  Bruno Haible  <bruno@clisp.org>
43894
43895         * gnulib-tool (AUTOMAKEPATH, AUTOCONF, ACLOCAL, AUTOMAKE): New
43896         variables.
43897         (func_create_megatestdir): Call aclocal, autoconf, automake here, not
43898         autoreconf.
43899
43900 2006-01-11  Bruno Haible  <bruno@clisp.org>
43901
43902         * gnulib-tool (AUTOCONF, ACLOCAL, AUTOMAKE, AUTORECONF): Make
43903         overridable by the user.
43904         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
43905
43906 2006-01-10  Simon Josefsson  <jas@extundo.com>
43907
43908         * modules/sys_socket: New file.
43909
43910 2006-01-10  Simon Josefsson  <jas@extundo.com>
43911
43912         * m4/sys_socket_h.m4: New file.
43913
43914 2006-01-10  Simon Josefsson  <jas@extundo.com>
43915
43916         * lib/socket_.h: New file.
43917
43918 2006-01-10  Paul Eggert  <eggert@cs.ucla.edu>
43919
43920         * modules/readutmp (Maintainer): Add myself.
43921
43922 2006-01-10  Paul Eggert  <eggert@cs.ucla.edu>
43923
43924         * m4/memcoll.m4 (gl_MEMCOLL): Don't require AC_FUNC_MEMCMP, undoing
43925         the 2002-12-31 change.  Problem and fix reported by Bruno Haible.
43926         People who are still concerned with buggy memcmp implementations
43927         can invoke gl_FUNC_MEMCMP themselves.
43928
43929 2006-01-10  Paul Eggert  <eggert@cs.ucla.edu>
43930
43931         * lib/regex_internal.h (BITSET_WORD_BITS):
43932         Work around a bug in 64-bit PGC (before version 6.1-2), where the
43933         preprocessor mishandles large unsigned values as if they were signed.
43934         Problem reported by Claudio Fontana in
43935         <http://lists.gnu.org/archive/html/bug-gnulib/2005-12/msg00061.html>.
43936
43937 2006-01-10  Jim Meyering  <jim@meyering.net>
43938
43939         Avoid the double-free (first in fts_read, second in fts_close) that
43940         would occur when an `active' directory is made inaccessible (e.g.,
43941         via chmod a-x) during a traversal.
43942         * lib/fts.c (fts_read): After a failed fchdir, update sp->fts_cur
43943         before returning.  Reproduce this failure by
43944         mkdir -p a/b; cd a; chmod a-x . b
43945         Reported by Stavros Passas.
43946
43947         Sync from coreutils.
43948         * lib/sha1.c: Tweak grammar in a comment.
43949
43950 2006-01-10  Jim Meyering  <jim@meyering.net>
43951
43952         * m4/fpending.m4: Also include <stdio.h>, for Dragonfly.
43953         Patch by Joerg Sonnenberger.
43954
43955 2006-01-10  Bruno Haible  <bruno@clisp.org>
43956
43957         * modules/readutmp: Depend on module free.
43958         * modules/strtok_r: Depend on module restrict.
43959
43960 2006-01-10  Bruno Haible  <bruno@clisp.org>
43961
43962         * modules/gettext (configure.ac): Add an invocation of
43963         AM_GNU_GETTEXT_VERSION. Needed since autoreconf is used by gnulib-tool.
43964
43965 2006-01-10  Bruno Haible  <bruno@clisp.org>
43966
43967         * m4/localcharset.m4 (gl_LOCALCHARSET): Also test for getc_unlocked.
43968         Reported by Werner Lemberg <wl@gnu.org>.
43969
43970 2006-01-10  Bruno Haible  <bruno@clisp.org>
43971
43972         * lib/localcharset.c: Update from GNU gettext.
43973
43974 2006-01-10  Bruno Haible  <bruno@clisp.org>
43975
43976         * lib/argp.h (__const): Remove macro. Use const instead.
43977         * lib/argp-fmtstream.h (__const): Likewise.
43978         * lib/glob_.h (__const): Remove macro.
43979         * lib/glob-libc.h: Use const instead of __const.
43980
43981 2006-01-10  Bruno Haible  <bruno@clisp.org>
43982
43983         * gnulib-tool (func_emit_tests_Makefile_am): Emit an empty SUBDIR
43984         variable.
43985         Needed to avoid an automake error regarding the 'gettext' module.
43986
43987 2006-01-09  Simon Josefsson  <jas@extundo.com>
43988
43989         * modules/inet_ntop (Depends-on): Add restrict.
43990
43991 2006-01-09  Simon Josefsson  <jas@extundo.com>
43992
43993         * modules/gc-rijndael-tests (License): Put under LGPL.
43994
43995         * modules/gc-des-tests (License): Likewise.
43996
43997         * modules/gc-arcfour-tests (License): Likewise.
43998
43999         * modules/gc-arctwo-tests (License): Likewise.
44000
44001         * modules/gc-pbkdf2-sha1-tests (License): Likewise.
44002
44003         * modules/gc-hmac-sha1-tests (Files): Likewise.
44004
44005         * modules/gc-hmac-md5-tests (License): Likewise.
44006
44007         * modules/gc-sha1-tests (License): Likewise.
44008
44009         * modules/gc-md5-tests (License): Likewise.
44010
44011         * modules/gc-md4-tests (License): Likewise.
44012
44013         * modules/gc-md2-tests (License): Likewise.
44014
44015         * modules/gc-tests (License): Likewise.
44016
44017         * modules/des-tests (License): Likewise.
44018
44019         * modules/md4-tests (License): Likewise.
44020
44021         * modules/md2-tests (License): Likewise.
44022
44023 2006-01-09  Paul Eggert  <eggert@cs.ucla.edu>
44024
44025         Sync from coreutils:
44026
44027         * MODULES.html.sh (build_lib): New section, with new lib-ignore module.
44028         * modules/lib-ignore: New file.
44029         * modules/mkdir-p (Files): Add chdir-safer.c, chdir-safer.h, lchmod.h,
44030         chdir-safer.m4, lchmod.m4.
44031         * modules/openat: Add mkdirat.c, openat-priv.h.
44032
44033 2006-01-09  Paul Eggert  <eggert@cs.ucla.edu>
44034
44035         Sync from coreutils.
44036         * m4/lib-ignore.m4: New file.
44037         * m4/lchmod.m4: New file.
44038
44039 2006-01-09  Paul Eggert  <eggert@cs.ucla.edu>
44040
44041         Sync from coreutils.
44042         * lib/chdir-long.c (cdb_free): Don't bother trying to open directory
44043         for write access: POSIX says that must fail.
44044         * lib/fts.c (diropen): Likewise.
44045         * lib/save-cwd.c (save_cwd): Likewise.
44046         * lib/chdir-long.c (cdb_free): Open with O_NOCTTY | O_NONBLOCK as
44047         well, for minor improvements on hosts that lack O_DIRECTORY.
44048         * lib/chown.c (rpl_chown) [CHOWN_MODIFIES_SYMLINK]:
44049         Don't try O_WRONLY unless O_RDONLY failed wth EACCES.
44050         Fall back on chown if open failed with EACCES.
44051
44052         * lib/gettime.c (gettime) [!defined OK_TO_USE_1S_CLOCK]:
44053         Report an error at compile-time if only a 1-second nominal clock
44054         resolution is found.
44055
44056         * lib/lchmod.h: New file.
44057         * lib/mkdir-p.c: Include lchmod.h, lchown.h.
44058         (make_dir_parents): Use lchown rather than chown, and
44059         lchmod rather than chmod.
44060
44061         * lib/mountlist.c (ME_DUMMY): "none" and "proc" file systems are
44062         dummies too.  Problem with "none" reported by Bob Proulx.  Problem with
44063         "proc" reported by n0dalus.
44064
44065         * lib/mountlist.c: Include <limits.h>.
44066         (dev_from_mount_options)
44067         [defined MOUNTED_GETMNTENT1 || defined MOUNTED_GETMNTENT2]:
44068         New function.  It no longer assumes "dev=" has the System V meaning
44069         on Linux (since it doesn't).  It also parses "dev=" more carefully.
44070         (read_file_system_list)
44071         [defined MOUNTED_GETMNTENT1 || defined MOUNTED_GETMNTENT2]: Use it.
44072         MOUNTED_GETMNTENT2 is new here; the code didn't used to look for
44073         dev= in that case.
44074
44075         * lib/posixtm.h (PDS_PRE_2000): New macro.
44076         * lib/posixtm.c (year): Arg is now syntax_bits rather than
44077         allow_century.  All usages changed.  Reject dates outside the range
44078         1969-1999 if PDS_PRE_2000 is used.
44079
44080 2006-01-09  Paul Eggert  <eggert@cs.ucla.edu>
44081
44082         Sync from coreutils.
44083         * doc/getdate.texi (General date syntax): Invalid dates are rejected.
44084         (Time of day items): Mention the possibility of leap seconds.
44085         Problem reported by Dr. David Alan Gilbert.
44086
44087 2006-01-09  Jim Meyering  <jim@meyering.net>
44088
44089         Sync from coreutils.
44090
44091         * lib/version-etc.c (COPYRIGHT_YEAR): Update to 2006.
44092
44093         * lib/chdir-safer.h, lib/chdir-safer.c: New files.
44094
44095         * lib/modechange.c (mode_compile): Reject an invalid mode string
44096         that starts with an octal digit.  From Andreas Gruenbacher.
44097
44098         * lib/openat.c: Include "fcntl--.h" and "unistd--.h", to map open
44099         and dup to open_safer and dup_safer, respectively.
44100         (openat_permissive): Fix typo in comment.
44101
44102         * lib/openat.c: Don't include <stdlib.h>, <unistd.h>, <fcntl.h>,
44103         "gettext.h"; either no longer needed or are guaranteed by openat.h.
44104         (_): Remove; no longer needed.
44105         (openat): Renamed from rpl_openat; no need for rpl_openat
44106         since openat.h renames openat for us.
44107         Replace most of the body with a call to openat_permissive,
44108         to avoid duplicate code.
44109         Port to (probably hypothetical) environments were mode_t is
44110         wider than int.
44111         (openat_permissive): Require mode arg, so that we can check
44112         types better.  Put it just after flags.  Change cwd failure
44113         indicator from pointer-to-bool to pointer-to-errno-value.
44114         All callers changed.
44115         Invoke openat_save_fail and/or openat_restore_fail if
44116         cwd_errno is null, so that openat can call us.
44117         (openat_permissive, fdopendir, fstatat, unlinkat):
44118         Simplify errno handling to avoid some duplicate code,
44119         as it's OK to set errno on success.
44120         * lib/openat.h: Revamp code so that function macros depend on
44121         __OPENAT_PREFIX only, not also on AT_FDCWD.
44122         (openat_ro): Remove.  Caller changed to use openat_permissive.
44123         (openat_permissive): Now a macro, if not a function.
44124         (openat_restore_fail, openat_save_fail): Now always functions,
44125         since mkdirat needs them even if __OPENAT_PREFIX is defined.
44126
44127         * lib/openat-priv.h: New file, defining macros used by mkdirat.c
44128         and openat.c.
44129         * lib/mkdirat.c: Include openat-priv.h.
44130         Remove definitions of macros defined therein.
44131         * lib/openat.c: Likewise.
44132
44133         * lib/mkdirat.c (mkdirat): New file and function.
44134         * lib/openat.h (mkdirat): Declare.
44135
44136         * lib/openat.c (fdopendir): Don't change errno when returning non-NULL.
44137
44138         * lib/openat.h (openat_permissive): Declare.
44139         (openat_ro): Define.
44140
44141         * lib/openat.c (EXPECTED_ERRNO): New macro.
44142         (openat_permissive): New function -- used in remove.c rewrite.
44143         (all functions): Set errno just before returning, only if there
44144         was an actual failure.
44145         Use EXPECTED_ERRNO rather than comparing against only ENOTDIR.
44146
44147         Emulate openat-family functions using Linux's procfs, if possible.
44148         Idea and some code based on Ulrich Drepper's glibc changes.
44149
44150         * lib/openat.c: (BUILD_PROC_NAME): New macro.
44151         Include <stdio.h>, <string.h>, "alloca.h" and "intprops.h".
44152         (rpl_openat): Emulate by trying to open /proc/self/fd/%d/%s,
44153         before falling back on save_cwd and restore_cwd.
44154         (fdopendir, fstatat, unlinkat): Likewise.
44155
44156         * lib/openat.c (fstatat, unlinkat): Perform the syscall directly,
44157         skipping the save_cwd...restore_cwd overhead, if FILE is absolute.
44158
44159         * lib/openat.c (rpl_openat): Use the promoted type (int), not mode_t,
44160         as second argument to va_arg.  Otherwise, some versions of gcc
44161         warn that `if this code is reached, the program will abort'.
44162
44163 2006-01-09  Jim Meyering  <jim@meyering.net>
44164
44165         Sync from coreutils.
44166         * m4/openat.m4 (gl_FUNC_OPENAT): Require and compile mkdirat.c.
44167         Require openat-priv.h.
44168
44169 2006-01-09  Bruno Haible  <bruno@clisp.org>
44170
44171         * modules/strnlen (Include): Use strnlen.h.
44172
44173 2006-01-09  Bruno Haible  <bruno@clisp.org>
44174
44175         * m4/stdint.m4 (gl_STDINT_H): Also test for <sys/bitypes.h>.
44176
44177 2006-01-09  Bruno Haible  <bruno@clisp.org>
44178
44179         * lib/sysexit_.h (EX_OK): New macro.
44180         Suggested by Martin Lambers <marlam@marlam.de>.
44181
44182 2006-01-09  Bruno Haible  <bruno@clisp.org>
44183
44184         * lib/stdint_.h: On Linux libc4 and libc5, include <sys/bitypes.h> and
44185         don't define _STDINT_H_NEED_SIGNED_INT_TYPES.
44186
44187 2006-01-09  Bruno Haible  <bruno@clisp.org>
44188
44189         * lib/stdint_.h (SIZE_MAX): Write the value without involving negative
44190         numbers.
44191
44192 2006-01-09  Bruno Haible  <bruno@clisp.org>
44193
44194         * lib/javacomp.sh.in: Move to ../build-aux/javacomp.sh.in.
44195         * lib/javaexec.sh.in: Move to ../build-aux/javaexec.sh.in.
44196         * lib/csharpcomp.sh.in: Move to ../build-aux/csharpcomp.sh.in.
44197         * lib/csharpexec.sh.in: Move to ../build-aux/csharpexec.sh.in.
44198
44199 2006-01-09  Bruno Haible  <bruno@clisp.org>
44200
44201         * build-aux/javacomp.sh.in: New file, moved from lib/.
44202         * modules/javacomp-script (Files): Update.
44203         (configure.ac): Add AC_CONFIG_FILES invocation.
44204         (EXTRA_DIST): Remove variable.
44205
44206         * build-aux/javaexec.sh.in: New file, moved from lib/.
44207         * modules/javaexec (Files): Update.
44208         (configure.ac): Add AC_CONFIG_FILES invocation.
44209         (EXTRA_DIST): Remove javaexec.sh.in.
44210
44211         * build-aux/csharpcomp.sh.in: New file, moved from lib/.
44212         * modules/csharpcomp-script (Files): Update.
44213         (configure.ac): Add AC_CONFIG_FILES invocation.
44214         (EXTRA_DIST): Remove variable.
44215
44216         * build-aux/csharpexec.sh.in: New file, moved from lib/.
44217         * modules/csharpexec (Files): Update.
44218         (configure.ac): Add AC_CONFIG_FILES invocation.
44219         (EXTRA_DIST): Remove csharpexec.sh.in.
44220
44221 2006-01-09  Andreas Gruenbacher  <agruen@suse.de>
44222
44223         Sync from coreutils.
44224
44225         Add POSIX ACL support
44226         * lib/acl.h (copy_acl, set_acl): Add declarations.
44227         * lib/acl.c (acl_entries): Add fallback implementation for POSIX ACL
44228         systems other than Linux.
44229         (chmod_or_fchmod): New function: use fchmod when possible,
44230         and chmod otherwise.
44231         (file_has_acl): Add a POSIX ACL implementation, with a
44232         Linux-specific subcase.
44233         (copy_acl): Add: copy an acl and S_ISUID, S_ISGID, and
44234         S_ISVTX from one file to another.  Fall back to fchmod/chmod when
44235         acls are unsupported.
44236         (set_acl): Add: set a file's acl and S_ISUID, S_ISGID, and
44237         S_ISVTX to a defined value.  Fall back to fchmod/chmod when acls
44238         are unsupported.
44239
44240 2006-01-09  Andreas Gruenbacher  <agruen@suse.de>
44241
44242         Sync from coreutils.
44243         * m4/acl.m4 (AC_FUNC_ACL): Add POSIX ACL and Linux-specific acl tests.
44244
44245 2006-01-07  Bruno Haible  <bruno@clisp.org>
44246
44247         * gnulib-tool (func_import): Add an AC_PROG_RANLIB dependency to
44248         gl_EARLY.
44249
44250 2006-01-04  Paul Eggert  <eggert@cs.ucla.edu>
44251
44252         * lib/strftime.c (tzname): Don't declare if it is already #defined.
44253         Problem reported for Mingw by Mark Junker.
44254
44255 2006-01-04  Paul Eggert  <eggert@cs.ucla.edu>
44256
44257         * README: Gnulib normally doesn't generate a tarball.
44258
44259 2006-01-03  Paul Eggert  <eggert@cs.ucla.edu>
44260
44261         * lib/xtime.h (xtime_make, xtime_nonnegative_nsec, xtime_nsec): Use
44262         long int, not int, for nanosecond counts, so that people who are
44263         used to POSIX struct timespec won't be surprised.  Reported by Jim
44264         Meyering.
44265
44266 2005-12-28  Bruno Haible  <bruno@clisp.org>
44267
44268         * build-aux/config.rpath: Update from GNU gettext.
44269
44270 2005-12-16  Jim Meyering  <jim@meyering.net>
44271
44272         * modules/fprintftime: New module.
44273         * MODULES.html.sh (Date and time <time.h>): Add fprintftime.
44274
44275 2005-12-16  Jim Meyering  <jim@meyering.net>
44276
44277         * m4/fprintftime.m4: New file.
44278
44279 2005-12-16  Jim Meyering  <jim@meyering.net>
44280
44281         * lib/fprintftime.c, lib/fprintftime.h: New files.
44282
44283 2005-12-15  Simon Josefsson  <jas@extundo.com>
44284
44285         * modules/socklen (configure.ac): Fix M4 macro name, to align with
44286         new m4/socklen.m4.
44287
44288 2005-12-10  Sergey Poznyakoff  <gray@gnu.org.ua>
44289
44290         * m4/argp.m4: Define HAVE_DECL_PROGRAM_INVOCATION_NAME and
44291         HAVE_DECL_PROGRAM_INVOCATION_SHORT_NAME
44292
44293 2005-12-10  Sergey Poznyakoff  <gray@gnu.org.ua>
44294
44295         * lib/argp-fmtstream.c (__argp_fmtstream_update): Fix coredump
44296         * lib/argp-help.c (fill_in_uparams): Check if the constructed
44297         struct uparams is valid. Fall back to the default values if it is
44298         not.
44299
44300 2005-12-09  Sergey Poznyakoff  <gray@gnu.org.ua>
44301
44302         * modules/argp (Files): Add argp-pin.c
44303         (Depends-on): dirname
44304         (lib_SOURCES): Add argp-pin.c
44305
44306 2005-12-09  Sergey Poznyakoff  <gray@gnu.org.ua>
44307
44308         * m4/argp.m4:  Check if program_invocation_name and
44309         program_invocation_short_name are declared and define appropriate
44310         macros if they are not.
44311
44312 2005-12-09  Sergey Poznyakoff  <gray@gnu.org.ua>
44313
44314         * lib/argp-help.c (__argp_base_name): New function
44315         (__argp_short_program_name): Rewrite using __argp_base_name
44316         * lib/argp-namefrob.h: Define program_invocation_name and
44317         program_invocation_short_name if requested
44318         (__argp_base_name): Add prototype
44319         * lib/argp-parse.c (argp_def): Use gettext wrappers
44320         (argp_default_parser): Use __argp_base_name
44321         * lib/argp-pin.c: New file. Defines program_invocation_name and
44322         program_invocation_short_name on systems that lack them.
44323
44324 2005-12-07  Paul Eggert  <eggert@cs.ucla.edu>
44325
44326         * m4/stat-time.m4 (gl_STAT_TIME): Add check for
44327         TYPEOF_STRUCT_STAT_ST_ATIM_IS_STRUCT_TIMESPEC, to fix IRIX 5.3
44328         porting problem reported by Georg Schwarz in
44329         <http://lists.gnu.org/archive/html/bug-coreutils/2005-12/msg00083.html>.
44330
44331 2005-12-07  Paul Eggert  <eggert@cs.ucla.edu>
44332
44333         * lib/stat-time.h (STATE_TIMESPEC, STAT_TIMESPEC_NS): Add check for
44334         TYPEOF_STRUCT_STAT_ST_ATIM_IS_STRUCT_TIMESPEC, to fix IRIX 5.3
44335         porting problem reported by Georg Schwarz in
44336         <http://lists.gnu.org/archive/html/bug-coreutils/2005-12/msg00083.html>.
44337
44338 2005-12-05  Bruno Haible  <bruno@clisp.org>
44339
44340         * lib/csharpcomp.sh.in (options_csc): For -l option, add a .dll suffix.
44341         * lib/csharpcomp.c (compile_csharp_using_sscli): Likewise.
44342         Reported by Mark Junker <mjscod@gmx.de>.
44343
44344 2005-12-02  Paul Eggert  <eggert@cs.ucla.edu>
44345
44346         * m4/socklen.m4 (gl_TYPE_SOCKLEN_T): Renamed from gl_SOCKLEN_T.
44347         Use implementation from Albert Chin, with some
44348         comments/corrections by Stepan Kasal and myself.
44349
44350 2005-12-02  Bruno Haible  <bruno@clisp.org>
44351
44352         * gnulib-tool (func_import): Accept GPLed build tool modules when
44353         --lgpl is given.
44354         * modules/csharpcomp-script: New file.
44355         * modules/csharpcomp: Depend on it.
44356         * modules/javacomp-script: New file.
44357         * modules/javacomp: Depend on it.
44358         Suggested by Simon Josefsson.
44359
44360 2005-12-01  Paul Eggert  <eggert@cs.ucla.edu>
44361
44362         * m4/regex.m4 (gl_REGEX): Check whether off_t can be used in a switch
44363         statement, to work around an HP-UX 10.20 compiler bug reported by
44364         Peter O'Gorman.
44365
44366 2005-11-29  Paul Eggert  <eggert@cs.ucla.edu>
44367
44368         * modules/savedir (Depends-on): Add openat.
44369
44370 2005-11-29  Paul Eggert  <eggert@cs.ucla.edu>
44371
44372         * lib/stdint_.h (intmax_t) [defined intmax_t]: Do not declare.
44373         (uintmax_t) [defined uintmax_t]: Do not declare.
44374         (SIZE_MAX) [defined SIZE_MAX]: Do not define.
44375         This works around a problem if intmax_t.m4 and/or uintmax_t.m4
44376         and/or size_max.m4 are also used.  Problem reported by Mark D. Baushke.
44377         (SIZE_MAX): Define to ((size_t) -1), not (~(size_t)0), for the
44378         sake of portability to weird hosts that C allows (though we don't
44379         know of any practical examples).
44380
44381         * lib/savedir.h (fdsavedir): New decl.
44382         * lib/savedir.c (fdsavedir, savedirstream): New functions; the latter
44383         contains most of the former guts of savedir.
44384         (savedir): Use savedirstream.
44385         Include "openat.h".
44386
44387 2005-11-25  Paul Eggert  <eggert@cs.ucla.edu>
44388
44389         * modules/obstack (Files): Add m4/ulonglong.m4.
44390         Problem reported by Davide Angelocola.
44391
44392 2005-11-15  Paul Eggert  <eggert@cs.ucla.edu>
44393
44394         * lib/xstrtod.c: Don't bother with #pragma STDC FENV_ACCESS ON, as
44395         coreutils no longer futzes with rounding modes.
44396
44397 2005-11-14  Jim Meyering  <jim@meyering.net>
44398
44399         * lib/mkstemp-safer.c: Include <config.h>, required for possible
44400         replacement of mkstemp.
44401
44402 2005-11-10  Simon Josefsson  <jas@extundo.com>
44403
44404         * lib/readline.c: Remove EOL.
44405
44406 2005-11-10  Paul Eggert  <eggert@cs.ucla.edu>
44407
44408         * modules/gethrxtime (Depends-on): Add gettime.
44409
44410 2005-11-10  Paul Eggert  <eggert@cs.ucla.edu>
44411
44412         * m4/gethrxtime.m4 (gl_PREREQ_GETHRXTIME): Don't require AC_HEADER_TIME
44413         or gettimeofday; no longer needed.
44414
44415 2005-11-10  Paul Eggert  <eggert@cs.ucla.edu>
44416
44417         * lib/gethrxtime.c: Include "timespec.h" rather than the sys/time /
44418         time business.
44419         (gethrxtime) [! (HAVE_NANOUPTIME
44420         || (defined CLOCK_MONOTONIC && HAVE_CLOCK_GETTIME)
44421         || HAVE_MICROUPTIME)]: Fall back on gettime rather than rolling
44422         our own approximation.
44423
44424 2005-11-08  Eric Blake  <ebb9@byu.net>
44425
44426         * lib/inet_ntop.h: Use #if !, not #ifndef, for AC_CHECK_DECLS.
44427
44428 2005-11-08  Eric Blake  <ebb9@byu.net>
44429
44430         * lib/getaddrinfo.h: Use #if !, not #ifndef, for AC_CHECK_DECLS.
44431
44432 2005-11-04  Bruno Haible  <bruno@clisp.org>
44433
44434         * gnulib-tool: Implement --update mode.
44435
44436 2005-10-30  Paul Eggert  <eggert@cs.ucla.edu>
44437
44438         Fix porting problem reported by Theodoros V. Kalamatianos.
44439         * lib/utimens.c (futimens) [HAVE_WORKING_UTIMES && HAVE_FUTIMES]:
44440         Don't assume that futimes failing means we must fail.
44441
44442 2005-10-30  Paul Eggert  <eggert@cs.ucla.edu>
44443
44444         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Revamp wording and local
44445         variables to suggest the intended function of the PATH_MAX check.
44446
44447 2005-10-30  Kean Johnston  <jkj@sco.com>
44448
44449         Trivial changes to support SCO systems.
44450         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Check for MAXPATHLEN as well
44451         as PATH_MAX.
44452         * m4/fpending.m4 (gl_FUNC_FPENDING): Correct check for SCO systems,
44453         where __ptr is null when no I/O is pending.
44454
44455 2005-10-29  Paul Eggert  <eggert@cs.ucla.edu>
44456
44457         * lib/getcwd.c (__getcwd): Don't assume that system calls after readdir
44458         leave errno alone.  Problem reported by Dmitry V. Levin.
44459
44460 2005-10-28  Simon Josefsson  <jas@extundo.com>
44461
44462         * tests/test-gc-md4.c, tests/test-gc-md5.c, tests/test-gc-sha1.c:
44463         Test more.
44464
44465         * tests/test-gc-md2.c, tests/test-md2.c: New files.
44466
44467         * modules/md2, modules/md2-tests: New files.
44468
44469 2005-10-28  Simon Josefsson  <jas@extundo.com>
44470
44471         * m4/inet_ntop.m4: More tests.
44472
44473         * m4/gc-md2.m4, md2.m4: New file.
44474
44475 2005-10-28  Simon Josefsson  <jas@extundo.com>
44476
44477         * lib/inet_ntop.h, inet_ntop.c: Make it work under mingw32: Add
44478         "restrict" keywords, as per POSIX.  Protect the function
44479         declaration around HAVE_DECL_INET_NTOP rather than HAVE_INET_NTOP.
44480         Don't use K&R prototypes.  Check the sprintf return values.
44481         Re-define EAFNOSUPPORT if not present.  Indent.
44482
44483         * lib/md5.h, md5.c: Simplify buffer handling visavi alignment,
44484         suggested by Bruno Haible <bruno@clisp.org>.
44485
44486         * lib/gc-gnulib.c, gc-libgcrypt.c: Check calloc return value.
44487
44488         * lib/gc.h: Add MD2 and RMD160 length defines.  Add prototypes.
44489
44490         * lib/gc-libgcrypt.c: Add MD2 (which is not available through
44491         libgcrypt).
44492
44493         * lib/gc-gnulib.c: Add MD2.  Implement gc_hash_* API.
44494
44495         * lib/md2.h, lib/md2.c: New files.
44496
44497 2005-10-28  Paul Eggert  <eggert@cs.ucla.edu>
44498
44499         * lib/savedir.c (savedir): Don't assume that xrealloc etc. leave
44500         errno alone.  Problem reported by Frederic Jolliton.
44501
44502 2005-10-27  Paul Eggert  <eggert@cs.ucla.edu>
44503
44504         * modules/verify (License): Change from GPL to LGPL.  This is a
44505         tiny module and there are apparently near-equivalents that are
44506         under the BSD license.
44507
44508 2005-10-24  Simon Josefsson  <jas@extundo.com>
44509
44510         * modules/sha1: Relicense to LGPL.
44511
44512 2005-10-24  Simon Josefsson  <jas@extundo.com>
44513
44514         * lib/md4.h: Shrink buffer size, now that we changed the type.
44515
44516 2005-10-23  Simon Josefsson  <jas@extundo.com>
44517
44518         * gnulib-tool (func_import): Fix --tests-base.
44519
44520 2005-10-22  Simon Josefsson  <jas@extundo.com>
44521
44522         * modules/arcfour (Depends-on): Need stdint.
44523
44524 2005-10-22  Simon Josefsson  <jas@extundo.com>
44525
44526         * m4/gc.m4: Don't be fooled by --disable-*random-device parameters,
44527         suggested by Bruno Haible <bruno@clisp.org>.  Fix error messages.
44528
44529 2005-10-22  Simon Josefsson  <jas@extundo.com>
44530
44531         * lib/md4.h, md4.c: Simplify buffer handling visavi alignment,
44532         suggested by Bruno Haible <bruno@clisp.org>.
44533
44534 2005-10-22  Simon Josefsson  <jas@extundo.com>
44535
44536         * lib/crc.h: Include stddef.h, for size_t.
44537
44538 2005-10-22  Simon Josefsson  <jas@extundo.com>
44539
44540         * lib/arcfour.h, arcfour.c: Use fixed size indices in the
44541         arcfour_context struct (simplify test vector testing in GNU
44542         Shishi).
44543
44544 2005-10-21  Simon Josefsson  <jas@extundo.com>
44545
44546         * modules/des, modules/des-tests: New files.
44547
44548         * modules/gc-des, modules/gc-des-tests: New files.
44549
44550         * tests/test-des.c, tests/test-gc-des.c: New file.
44551
44552 2005-10-21  Simon Josefsson  <jas@extundo.com>
44553
44554         * modules/arctwo, modules/arctwo-tests: New files.
44555
44556         * tests/test-arctwo.c: New file.
44557
44558         * modules/gc-arctwo, modules/gc-arctwo-tests: New files.
44559
44560         * tests/test-gc-arctwo.c: New file.
44561
44562 2005-10-21  Simon Josefsson  <jas@extundo.com>
44563
44564         * m4/gc.m4: Don't use libgcrypt if gcrypt.h isn't found, suggested by
44565         Bruno Haible <bruno@clisp.org>.
44566
44567         * m4/gc-des.m4: New file.
44568
44569 2005-10-21  Simon Josefsson  <jas@extundo.com>
44570
44571         * m4/arctwo.m4: New file.
44572
44573         * m4/gc-arctwo.m4: New file.
44574
44575 2005-10-21  Simon Josefsson  <jas@extundo.com>
44576
44577         * lib/rijndael-api-fst.c: Fix bugs in CBC mode for more than one
44578         block.
44579
44580 2005-10-21  Simon Josefsson  <jas@extundo.com>
44581
44582         * lib/hmac-md5.c (hmac_md5): Add comments, suggested by Bruno Haible
44583         <bruno@clisp.org>.
44584
44585         * lib/hmac-sha1.c (hmac_sha1): Likewise.
44586
44587         * lib/crc.c (crc32_update): Actually use crc parameter, suggested by
44588         Bruno Haible <bruno@clisp.org>.
44589
44590         * lib/crc.h: Include stdint.h directly, suggested by Bruno Haible
44591         <bruno@clisp.org>.
44592
44593 2005-10-21  Simon Josefsson  <jas@extundo.com>
44594
44595         * lib/gc-libgcrypt.c (gc_cipher_open): Handle ECB.
44596
44597 2005-10-21  Simon Josefsson  <jas@extundo.com>
44598
44599         * lib/gc-gnulib.c: Support ARCTWO in CBC mode.
44600
44601 2005-10-21  Simon Josefsson  <jas@extundo.com>
44602
44603         * lib/des.h, lib/des.c: New files.
44604
44605         * lib/gc-gnulib.c: Support DES.c
44606
44607 2005-10-21  Simon Josefsson  <jas@extundo.com>
44608
44609         * lib/arctwo.h, lib/arctwo.c: New files.
44610
44611         * lib/gc-gnulib.c: Support ARCTWO.
44612
44613 2005-10-21  Simon Josefsson  <jas@extundo.com>
44614
44615         * lib/arctwo.h (arctwo_setkey): Protect variable in CPP macro,
44616         suggested by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
44617
44618 2005-10-21  Simon Josefsson  <jas@extundo.com>
44619
44620         * gnulib-tool (func_import, func_create_testdir): Define automake
44621         conditional GL_COND_LIBTOOL if libtool is used (to be used by modules
44622         Makefile.am snippet),
44623         suggested by Bruno Haible <bruno@clisp.org>.
44624
44625         * modules/gc (Makefile.am): Use it.
44626
44627 2005-10-21  Bruno Haible  <bruno@clisp.org>
44628
44629         * gnulib-tool (func_import, func_create_testdir): Add quoting to last
44630         patch.
44631
44632 2005-10-19  Simon Josefsson  <jas@extundo.com>
44633
44634         * tests/test-gc-rijndael.c: New file.
44635
44636         * modules/gc-rijndael, modules/gc-rijndael-test: New files.
44637
44638 2005-10-19  Simon Josefsson  <jas@extundo.com>
44639
44640         * tests/test-gc-md4.c, tests/test-gc-md5.c: Test gc_hash_buffer
44641         interface too.
44642
44643 2005-10-19  Simon Josefsson  <jas@extundo.com>
44644
44645         * tests/test-gc-arcfour.c: New file.
44646
44647         * modules/gc-arcfour, modules/gc-arcfour-tests: New files.
44648
44649 2005-10-19  Simon Josefsson  <jas@extundo.com>
44650
44651         * modules/gc-md4, modules/gc-md4-tests: New file.
44652
44653         * tests/test-gc-md4.c: New file.
44654
44655 2005-10-19  Simon Josefsson  <jas@extundo.com>
44656
44657         * m4/gc-md4.m4: New file.
44658
44659 2005-10-19  Simon Josefsson  <jas@extundo.com>
44660
44661         * m4/gc-hmac-md5.m4, gc-hmac-sha1.m4, gc-md4.m4,
44662         gc-md5.m4, gc-sha1.m4: Fix typo, suggested by Stepan Kasal
44663         <kasal@ucw.cz>.
44664
44665 2005-10-19  Simon Josefsson  <jas@extundo.com>
44666
44667         * m4/gc-arcfour.m4: New file.
44668
44669         * m4/gc-rijndael.m4: New file.
44670
44671 2005-10-19  Simon Josefsson  <jas@extundo.com>
44672
44673         * lib/gc.h, gc-gnulib.c, gc-libgcrypt.c: Support MD4.
44674
44675 2005-10-19  Simon Josefsson  <jas@extundo.com>
44676
44677         * lib/gc-gnulib.c: Support ARCFOUR.
44678
44679 2005-10-19  Simon Josefsson  <jas@extundo.com>
44680
44681         * lib/gc-gnulib.c: Implement gc_cipher_* API, currently only with AES
44682         support.
44683
44684         * lib/gc.h: Add ECB enum type.
44685
44686         * lib/hmac-md5.c, hmac-sha1.c: Include memxor.h.
44687
44688 2005-10-18  Simon Josefsson  <jas@extundo.com>
44689
44690         * tests/test-md5.c: New file.
44691
44692         * modules/md5-tests: New file.
44693
44694 2005-10-18  Simon Josefsson  <jas@extundo.com>
44695
44696         * tests/test-md4.c: New file.
44697
44698         * modules/md4, modules/md4-tests: New files.
44699
44700 2005-10-18  Simon Josefsson  <jas@extundo.com>
44701
44702         * m4/md4.m4: New file.
44703
44704 2005-10-18  Simon Josefsson  <jas@extundo.com>
44705
44706         * lib/md4.h, lib/md4.c: New files, based on md5.?.
44707
44708 2005-10-17  Stepan Kasal  <kasal@ucw.cz>
44709
44710         * gnulib-tool (func_create_testdir): Omit the second check whether
44711         BUILT_SOURCES in nonempty.
44712
44713 2005-10-17  Simon Josefsson  <jas@extundo.com>
44714
44715         * tests/test-rijndael.c: New file.
44716
44717 2005-10-17  Simon Josefsson  <jas@extundo.com>
44718
44719         * modules/sha1: Depend on stdint instead of md5.
44720
44721         * modules/md5: Depend on stdint, remove uint32_t.
44722
44723 2005-10-17  Simon Josefsson  <jas@extundo.com>
44724
44725         * modules/gc-sha1-tests: New file.
44726
44727         * tests/test-gc-sha1.c: New file.
44728
44729 2005-10-17  Simon Josefsson  <jas@extundo.com>
44730
44731         * m4/md5.m4: Remove call to uint32_t.m4.
44732
44733 2005-10-17  Simon Josefsson  <jas@extundo.com>
44734
44735         * lib/sha1.c: Use uint32_t instead of md5_uint32.t
44736
44737         * lib/sha1.h: Use stdint.h and uint32_t instead of md5_uint32 from
44738         md5.h.
44739
44740         * lib/md5.c: Use uin32_t.  Fix non-gcc UNALIGNED_P macro.
44741
44742         * lib/md5.h: Use stdint.h and uint32_t.  Doc fix.
44743
44744 2005-10-17  Simon Josefsson  <jas@extundo.com>
44745
44746         * lib/gc.h, gc-libgcrypt.c: Add more hash types/functions.
44747
44748 2005-10-17  Simon Josefsson  <jas@extundo.com>
44749
44750         * lib/gc.h, gc-libgcrypt.c: Add ciphers.
44751
44752 2005-10-17  Simon Josefsson  <jas@extundo.com>
44753
44754         * lib/gc-libgcrypt.c (gc_hmac_sha1): Fix assert.
44755
44756         * lib/gc.h (gc_nonce, gc_pseudo_random, gc_random): Add prototypes.
44757
44758 2005-10-17  Bruno Haible  <bruno@clisp.org>
44759
44760         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Change the return statement so
44761         that it can also be used in a test.
44762
44763 2005-10-16  Bruno Haible  <bruno@clisp.org>
44764
44765         * gnulib-tool (func_emit_tests_Makefile_am): Also define
44766         TESTS_ENVIRONMENT, so that individual tests can augment it.
44767
44768         * gnulib-tool (func_create_testdir): Use an intermediate target for
44769         building $(BUILT_SOURCES). Needed because BUILT_SOURCES can contain
44770         macros, like $(ALLOCA_H), which cannot be passed through the command
44771         line.
44772
44773 2005-10-15  Simon Josefsson  <jas@extundo.com>
44774
44775         * modules/rijndael-tests: New file.
44776
44777         * modules/rijndael: New file.
44778
44779 2005-10-15  Simon Josefsson  <jas@extundo.com>
44780
44781         * m4/rijndael.m4: New file.
44782
44783 2005-10-15  Simon Josefsson  <jas@extundo.com>
44784
44785         * lib/rijndael-api-fst.h, lib/rijndael-api-fst.c: New files.
44786
44787         * lib/rijndael-alg-fst.h, lib/rijndael-alg-fst.c: New files.
44788
44789 2005-10-14  Simon Josefsson  <jas@extundo.com>
44790
44791         * tests/test-arcfour.c: New file.
44792
44793         * modules/arcfour, modules/arcfour-tests: New files.
44794
44795 2005-10-14  Simon Josefsson  <jas@extundo.com>
44796
44797         * m4/arcfour.m4: New file.
44798
44799 2005-10-14  Simon Josefsson  <jas@extundo.com>
44800
44801         * lib/arcfour.h, lib/arcfour.c: New files.
44802
44803 2005-10-14  Roland McGrath  <roland@redhat.com>
44804
44805         Import from libc.  [BZ #1331]
44806         * lib/obstack.h [!__STDC__] (obstack_int_grow_fast): Fix misnamed
44807         macro argument.
44808         Reported by Matej Vela <vela@debian.org>.
44809
44810 2005-10-14  Paul Eggert  <eggert@cs.ucla.edu>
44811
44812         * lib/obstack.c [defined _LIBC && defined USE_IN_LIBIO]: Don't
44813         include <wchar.h>; no longer needed.
44814
44815 2005-10-14  Paul Eggert  <eggert@cs.ucla.edu>
44816
44817         * config/srclist.txt: Add glibc bug 321 for obstack.c, obstack.h.
44818
44819 2005-10-14  Jakub Jelinek  <jakub@redhat.com>
44820         and  Ulrich Drepper  <drepper@redhat.com>
44821
44822         Import from libc.
44823         * lib/obstack.c (print_and_abort) [defined _LIBC]: Use __fxprintf
44824         instead of inline stream orientation test and two separate
44825         function calls.  Pay no attention to USE_IN_LIBIO.
44826
44827 2005-10-13  Simon Josefsson  <jas@extundo.com>
44828
44829         * modules/gc-hmac-md5-tests: New file.
44830
44831         * tests/test-gc-hmac-sha1.c: New file.
44832
44833         * tests/test-gc.c (main): Remove MD5 and HMAC-MD5 tests.
44834
44835         * modules/gc-hmac-md5-tests: New file.
44836
44837         * tests/test-gc-md5.c: New file.
44838
44839         * modules/gc-md5-tests: New file.
44840
44841 2005-10-13  Simon Josefsson  <jas@extundo.com>
44842
44843         * lib/gc-pbkdf2-sha1.c (gc_pbkdf2_sha1): Optimize CEIL computation.
44844         Move memory allocation outside of loop.
44845
44846 2005-10-13  Paul Eggert  <eggert@cs.ucla.edu>
44847
44848         * lib/mkdir-p.c (make_dir_parents): Don't report an error if an
44849         intermediate directory is in a read-only file system.  Problem
44850         reported by Eric Blake.
44851
44852 2005-10-13  Oskar Liljeblad  <oskar@osk.mine.nu>
44853
44854         * modules/human (Depends-on): Depend on xstrtoumax, not xstrtol.
44855
44856 2005-10-12  Simon Josefsson  <jas@extundo.com>
44857
44858         * tests/test-hmac-sha1.c: New file.
44859
44860         * modules/hmac-sha1-tests: New file.
44861
44862         * modules/hmac-sha1: New file.
44863
44864 2005-10-12  Simon Josefsson  <jas@extundo.com>
44865
44866         * modules/gc-sha1: New file.
44867
44868 2005-10-12  Simon Josefsson  <jas@extundo.com>
44869
44870         * modules/gc-pbkdf2-sha1, modules/gc-pbkdf2-sha1-tests: New files.
44871
44872         * tests/test-gc-pbkdf2-sha1.c: New file.
44873
44874 2005-10-12  Simon Josefsson  <jas@extundo.com>
44875
44876         * modules/gc-md5, modules/gc-hmac-md5: New files.
44877
44878         * modules/gc (Files): Remove md5, memxor and hmac files.
44879
44880 2005-10-12  Simon Josefsson  <jas@extundo.com>
44881
44882         * m4/gc-pbkdf2-sha1.m4: New file.
44883
44884         * m4/gc-hmac-sha1.m4: New file.
44885
44886         * m4/gc-sha1: New file.
44887
44888         * m4/hmac-sha1.m4: New file.
44889
44890 2005-10-12  Simon Josefsson  <jas@extundo.com>
44891
44892         * m4/gc-md5.m4, m4/gc-hmac-md5.m4: New files.
44893
44894         * m4/gc.m4: Don't call gl_MD5, gl_MEMXOR or gl_HMAC_MD5.
44895
44896 2005-10-12  Simon Josefsson  <jas@extundo.com>
44897
44898         * lib/gc.h, gc-gnulib.c, gc-libgcrypt.c: Use Gc_rc for return types,
44899         suggested by Bruno Haible <bruno@clisp.org>.
44900
44901 2005-10-12  Simon Josefsson  <jas@extundo.com>
44902
44903         * lib/gc.h, gc-gnulib.c, gc-libgcrypt.c: Support SHA-1.
44904
44905 2005-10-12  Simon Josefsson  <jas@extundo.com>
44906
44907         * lib/gc-pbkdf2-sha1.c: New file.
44908
44909         * lib/gc.h: Add gc_pbkdf2_sha1 prototype.
44910
44911 2005-10-12  Simon Josefsson  <jas@extundo.com>
44912
44913         * lib/gc-libgcrypt.c (gc_hmac_sha1): New function.
44914
44915         * lib/gc-gnulib.c (gc_hmac_sha1): New function.
44916
44917 2005-10-12  Simon Josefsson  <jas@extundo.com>
44918
44919         * lib/gc-gnulib.c: Condition MD5 and HMAC-MD5 use on GC_USE_MD5 and
44920         GC_USE_HMAC_MD5, respectively.
44921
44922         * lib/gc-libgcrypt.c (gc_md5): Fix assert call.
44923         (gc_md5): Fix typo.
44924
44925         * lib/gc.h (gc_hash_buffer): Use gc_hash in prototype.
44926
44927         * lib/gc-libgcrypt.c (gc_hash_buffer): Ditto.
44928
44929         * lib/gc-gnulib.c (gc_hash_buffer): Ditto.
44930
44931 2005-10-12  Bruno Haible  <bruno@clisp.org>
44932
44933         * m4/stdbool.m4 (gl_STDBOOL_H): Define as an alias of AM_STDBOOL_H.
44934         Reported by Stepan Kasal <kasal@ucw.cz>.
44935
44936 2005-10-11  Simon Josefsson  <jas@extundo.com>
44937
44938         * tests/test-crc.c: New file.
44939
44940         * modules/crc, modules/crc-tests: New files.
44941
44942 2005-10-11  Simon Josefsson  <jas@extundo.com>
44943
44944         * m4/crc.m4: New file.
44945
44946 2005-10-11  Simon Josefsson  <jas@extundo.com>
44947
44948         * lib/gc.h: Add gc_hash and gc_hash_buffer.
44949
44950         * lib/gc-gnulib.c (gc_hash_buffer): Add.  Reorder #include's.
44951
44952         * lib/gc-libgcrypt.c (gc_hash_buffer): Add.
44953
44954 2005-10-11  Simon Josefsson  <jas@extundo.com>
44955
44956         * lib/crc.h, lib/crc.c: New files.
44957
44958         * lib/gc.h (gc_hash_buffer): Add doc.
44959
44960 2005-10-11  Bruno Haible  <bruno@clisp.org>
44961
44962         * modules/c-strcasestr: New file.
44963         * MODULES.html.sh (String handling <string.h>): Add c-strcasestr.
44964
44965 2005-10-11  Bruno Haible  <bruno@clisp.org>
44966
44967         * modules/c-strcase: New file.
44968         * MODULES.html.sh (String handling <string.h>): Add c-strcase.
44969
44970 2005-10-11  Bruno Haible  <bruno@clisp.org>
44971
44972         * lib/strcasecmp.c: Include limits.h.
44973         (strcasecmp): Avoid integer overflow on exotic platforms.
44974         * lib/strncasecmp.c: Include limits.h.
44975         (strncasecmp): Avoid integer overflow on exotic platforms.
44976         Reported by Paul Eggert.
44977
44978 2005-10-11  Bruno Haible  <bruno@clisp.org>
44979
44980         * lib/c-strcasestr.h: New file, from GNU gettext.
44981         * lib/c-strcasestr.c: New file, from GNU gettext.
44982
44983 2005-10-11  Bruno Haible  <bruno@clisp.org>
44984
44985         * lib/c-strcase.h: New file, from GNU gettext.
44986         * lib/c-strcasecmp.c: New file, from GNU gettext.
44987         * lib/c-strncasecmp.c: New file, from GNU gettext.
44988
44989 2005-10-10  Paul Eggert  <eggert@cs.ucla.edu>
44990
44991         * modules/mempcpy (License): GPL -> LGPL.
44992         * modules/strchrnul (License): Likewise.
44993         * modules/sysexits (License): Likewise.
44994
44995 2005-10-08  Simon Josefsson  <jas@extundo.com>
44996
44997         * config/srclist.txt: Bug 1423 is closed, but 1439 remains.
44998
44999 2005-10-07  Simon Josefsson  <jas@extundo.com>
45000
45001         * m4/memxor.m4: Remove gl_C_RESTRICT call.
45002
45003 2005-10-06  Simon Josefsson  <jas@extundo.com>
45004
45005         * tests/test-hmac-md5.c: New file.
45006
45007         * modules/hmac-md5-tests: New file.
45008
45009         * modules/hmac-md5: New file.
45010
45011 2005-10-06  Simon Josefsson  <jas@extundo.com>
45012
45013         * m4/hmac-md5.m4: New file.
45014
45015         * m4/memxor.m4: Require gl_C_RESTRICT.
45016
45017 2005-10-06  Simon Josefsson  <jas@extundo.com>
45018
45019         * lib/memxor.c (memxor): Avoid casts and warnings.
45020
45021 2005-10-06  Simon Josefsson  <jas@extundo.com>
45022
45023         * lib/hmac-md5.c: New file.
45024
45025         * lib/hmac.h: New file.
45026
45027 2005-10-06  Paul Eggert  <eggert@cs.ucla.edu>
45028
45029         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Check that bool
45030         promotes to int, not unsigned int, to catch the AIX 5.3
45031         compiler bug.
45032
45033 2005-10-05  Simon Josefsson  <jas@extundo.com>
45034
45035         * modules/memxor: New file.
45036
45037         * modules/iconv (Files): Move config.rpath to havelib, it is used
45038         there.
45039
45040         * modules/havelib (Files): Add config.rpath.
45041
45042 2005-10-05  Simon Josefsson  <jas@extundo.com>
45043
45044         * m4/memxor.m4: New file.
45045
45046 2005-10-05  Simon Josefsson  <jas@extundo.com>
45047
45048         * lib/memxor.c (memxor): Fix compiler error.
45049
45050         * lib/md5.h (MD5_DIGEST_SIZE, MD5_BLOCK_SIZE): Add, see also
45051         <http://sourceware.org/bugzilla/show_bug.cgi?id=1423>.
45052
45053         * lib/memxor.h, lib/memxor.c: New files.
45054
45055         * lib/getaddrinfo.h: Don't protect sys/types.h with HAVE_SYS_TYPES_H,
45056         we assume all systems have it, suggested by Jim Meyering
45057         <jim@meyering.net>.  Remove HAVE_SYS_SOCKET_H test too, to see if
45058         any systems lack sys/socket.h; mingw32 is known to lack it, but we
45059         don't support it yet anyway.  Also remove HAVE_NETDB_H test, for
45060         same reasons.
45061
45062 2005-10-05  Simon Josefsson  <jas@extundo.com>
45063
45064         * config/srclist.txt: Add glibc bug 1423 for md5.h.
45065
45066 2005-10-05  Paul Eggert  <eggert@cs.ucla.edu>
45067
45068         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Don't check for
45069         sys/socket.h, netdb.h, sys/types.h; the checks areno longer
45070         needed, since the source code now assumes these .h files.
45071
45072 2005-10-05  Derek Price  <derek@ximbiot.com>
45073
45074         * lib/getdelim.c (SIZE_MAX): New macro, if not already defined.
45075
45076 2005-10-05  Bruno Haible  <bruno@clisp.org>
45077
45078         * modules/stdint (License): Change to LGPL.
45079
45080 2005-10-04  Simon Josefsson  <jas@extundo.com>
45081
45082         * lib/getaddrinfo.h: Move sys/types.h include first, reported by "Mark
45083         D. Baushke" <mdb@gnu.org>.
45084
45085 2005-10-04  Bruno Haible  <bruno@clisp.org>
45086
45087         * lib/verify.h (verify_true): Provide alternative definition for C++.
45088
45089 2005-10-03  Paul Eggert  <eggert@cs.ucla.edu>
45090
45091         * lib/getdelim.c: Include getdelim.h first.  Include <limits.h>.
45092         (SSIZE_MAX): New macro, if not already defined.
45093         (getdelim): Fix buffer overrun on 64-bit hosts with lines longer
45094         than 2 GiB.
45095
45096 2005-10-02  Paul Eggert  <eggert@cs.ucla.edu>
45097
45098         Sync from coreutils.
45099         * m4/openat.m4 (gl_FUNC_OPENAT): Check for fdopendir.
45100         * m4/ullong_max.m4 (gl_ULLONG_MAX): Simplify so that it merely
45101         defines ULONG_MAX_LT_ULLONG_MAX.  Thomas M.Ott reports that
45102         ULLONG_MAX doesn't work with 2.7.2.1.
45103
45104 2005-10-02  Paul Eggert  <eggert@cs.ucla.edu>
45105
45106         * modules/xreadlink (Makefile.am): Remove lib_SOURCES.
45107         From Ben Pfaff.
45108
45109         * modules/exclude (Depends-on): Depend on verify.
45110         * modules/strtoimax (Depends-on): Likewise.
45111         * modules/utimecmp (Depends-on): Likewise.
45112
45113 2005-10-02  Paul Eggert  <eggert@cs.ucla.edu>
45114
45115         * lib/exclude.c: Include verify.h.
45116         (verify): Remove.  All callers changed to use verify.h's version.
45117         * lib/strtoimax.c: Likewise.
45118         * lib/utimecmp.c: Likewis.e
45119
45120         Sync from coreutils.
45121         * lib/.cppi-disable: Add getaddrinfo.h, getdelim.h, getline.h,
45122         getpass.c, mbchar.h, mbuiter.h, strcase.h, strnlen.h, strnlen1.h.
45123         * lib/.cvsignore: Add fts.h, search.h, t-fpending.
45124         * lib/settime.c (settime): Fix { typo in previous patch.  Also, don't
45125         bother returning ENOSYS if settimeofday or stime fails; just let
45126         them return whatever errno they want to return.
45127         * lib/utimens.c: Include unistd.h, for dup2.
45128         (futimens): Fix typo: HAVE_FUTIMESAT was misspelled in an #if.
45129         (futimens) [! HAVE_FUTIMESAT]: If !file, set errno before returning -1.
45130
45131 2005-10-02  Jim Meyering  <jim@meyering.net>
45132
45133         Sync from coreutils.
45134         * m4/utimes.m4 (gl_FUNC_UTIMES): Detect the version of utimes
45135         from glibc-2.2.5 that fails for read-only files.
45136
45137 2005-10-02  Jim Meyering  <jim@meyering.net>
45138
45139         Sync from coreutils.
45140         * lib/fts-cycle.c [HAVE_CONFIG_H]: Include <config.h>.
45141         * lib/openat-die.c: Use `#ifdef HAVE_CONFIG_H', not
45142         `#if HAVE_CONFIG_H'.
45143         * lib/openat.c (fdopendir): Do not define if HAVE_FDOPENDIR.
45144         Remove AT_FDCWD test.
45145         Do not consume the fd unless successful.
45146         * lib/openat.h (fdopendir): Do not define if HAVE_FDOPENDIR.
45147         * lib/settime.c (settime): Move the HAVE_STIME block `up' into an #elif
45148         block, so that we don't even try to compile it if settimeofday is
45149         available.  This works around a compilation failure on OSF1 V5.1,
45150         due to stime requiring a `long int*' while tv_sec is `int'.
45151
45152 2005-10-02  Alfred M. Szmidt  <ams@gnu.org>
45153
45154         Sync from coreutils.
45155         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Compare $gl_have_path...
45156         against `yes', rather than just testing for nonempty.
45157
45158 2005-10-01  Simon Josefsson  <jas@extundo.com>
45159
45160         * m4/getaddrinfo.m4: Include sys/types.h for sys/socket.h, on FreeBSD
45161         and Darwin.
45162
45163         * m4/getaddrinfo.m4: Use AC_GNU_SOURCE, GNU only declare getaddrinfo
45164         as an (POSIX) extension.  Check for sys/types.h, sys/socket.h, and
45165         netdb.h too, needed by getaddrinfo.h.  Check if getaddrinfo,
45166         freeaddrinfo and gai_strerror are declared by the POSIX headers.
45167         Check if struct addrinfo is declared.
45168
45169 2005-10-01  Simon Josefsson  <jas@extundo.com>
45170
45171         * lib/getaddrinfo.h: Protect #include's of sys/socket.h and netdb.h.
45172         Only define struct addrinfo if !HAVE_STRUCT_ADDRINFO.  Protect
45173         AI_* and EAI_* definitions.  Protect function declarations.
45174
45175 2005-10-01  Jim Meyering  <jim@meyering.net>
45176
45177         Sync from coreutils.
45178
45179         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Look for getservbyname in these
45180         libraries [inet nsl socket xnet].  Nelson Beebe reported that with
45181         native cc on Solaris 7, getaddrinfo.c requires -lsocket.
45182         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Check for gethostbyname
45183         in the inet and nsl libraries.  Required on Solaris 5.7.
45184
45185 2005-10-01  Jim Meyering  <jim@meyering.net>
45186
45187         Sync from coreutils.
45188         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Check for gethostbyname
45189         in the inet and nsl libraries.  Required on Solaris 5.7.
45190
45191 2005-10-01  Eric Blake  <ebb9@byu.net>  (tiny change)
45192
45193         * lib/getdelim.c (getdelim): Remove unused variables.
45194
45195 2005-09-29  Paul Eggert  <eggert@cs.ucla.edu>
45196
45197         * lib/xtime.h (XTIME_PRECISION): Now of type int, not long long int,
45198         so that the code works even with ancient cpp.  Portability problem
45199         with GCC 2.7.2.1 reported by Thomas M.Ott.
45200
45201 2005-09-27  Paul Eggert  <eggert@cs.ucla.edu>
45202
45203         * modules/regex (Depends-on): Add strcase.
45204
45205         * modules/gethostname (Licence): Change from GPL to LGPL, since
45206         gethostname.c is a trivial implementation of a standard library
45207         function.
45208         * modules/poll (License): Change from GPL to LGPL, since it's
45209         derived from LGPL code.
45210
45211 2005-09-27  Jim Meyering  <jim@meyering.net>
45212
45213         * lib/getcwd.c: Change #ifdef<TAB>HAVE_CONFIG_H to #ifdef
45214         HAVE_CONFIG_H.
45215
45216         * lib/intprops.h (signed_type_or_expr__): Define.
45217         (INT_STRLEN_BOUND) [__GNUC__]: Use a slightly tighter bound
45218         for unsigned types.
45219
45220 2005-09-26  Paul Eggert  <eggert@cs.ucla.edu>
45221
45222         * lib/verify.h (verify_expr): Remove, replacing with:
45223         (verify_true): New macro that returns true instead of void.
45224         (verify_type__): Remove.
45225         (verify): Use verify_true rather than verify_type__.
45226
45227 2005-09-26  Bruno Haible  <bruno@clisp.org>
45228
45229         * modules/mbchar (Include): Mention that HAVE_WCHAR_H && HAVE_WCTYPE_H
45230         is necessary.
45231         (lib_SOURCES): Remove mbchar.c.
45232         * modules/mbfile (Include): Mention that HAVE_MBRTOWC is necessary.
45233         (Files): Add m4/mbrtowc.m4.
45234         * modules/mbiter: Likewise.
45235         * modules/mbuiter: Likewise.
45236
45237 2005-09-26  Bruno Haible  <bruno@clisp.org>
45238
45239         * m4/mbchar.m4 (gl_MBCHAR): Check for wchar.h and wctype.h. Don't
45240         compile mbchar.c if they are not both present.
45241         * m4/mbfile.m4 (gl_MBFILE): Require gl_FUNC_MBRTOWC.
45242         * m4/mbiter.m4 (gl_MBITER): Likewise.
45243         * m4/strstr.m4 (gl_PREREQ_STRSTR): Use AC_REQUIRE.
45244         * m4/strcasestr.m4 (gl_PREREQ_STRCASESTR): Likewise.
45245         * m4/strcase.m4 (gl_PREREQ_STRCASECMP): Likewise.
45246
45247 2005-09-25  Jim Meyering  <jim@meyering.net>
45248
45249         * modules/inet_ntop (Depends-on): Add socklen, since inet_ntop.c
45250         also uses socklen_t.
45251
45252 2005-09-24  Paul Eggert  <eggert@cs.ucla.edu>
45253
45254         * lib/utimens.c (ENOSYS): Define if not already defined.
45255         (futimens): Support having a null PATH if the file descriptor
45256         is nonnegative.
45257
45258         * lib/regex_internal.h (__GNUC_PREREQ, always_inline, inline, pure):
45259         Remove.
45260         (__attribute): Define to empty unless GCC 3.1 or later.
45261         This works around a core dump on OpenBSD 3.4, which has GCC
45262         2.95.3, which dumps core when given __attribute__(()).  It also
45263         simplifies other tests, since we really don't want to bother with
45264         worrying about which ancient version of GCC supported what.
45265         Original problem reported by Yoann Vandoorselaere, with part of
45266         the fix suggested by Derek Price.
45267
45268 2005-09-24  Jim Meyering  <jim@meyering.net>
45269
45270         * lib/verify.h (verify_type__): Use `unsigned int' as the bitfield type
45271         so we can once again use a positive bitfield width of 1 -- now we
45272         don't have to explain why we were using a bitfield width of 2.
45273
45274 2005-09-23  Paul Eggert  <eggert@cs.ucla.edu>
45275
45276         * m4/regex.m4 (gl_REGEX): If replacing, define regcomp to rpl_regcomp,
45277         and similarly for the other external symbols.  Problem reported
45278         by James Gallager.
45279
45280         * m4/fnmatch.m4 (_AC_FUNC_FNMATCH_IF): Catch Sun Studio 10u1 on Linux
45281         bug reported by Jim Meyering.
45282
45283         * m4/utimens.m4 (gl_UTIMENS): Check for futimesat.
45284         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Undo previous change;
45285         not needed, since socklen is a prerequisite module.
45286
45287 2005-09-23  Paul Eggert  <eggert@cs.ucla.edu>
45288
45289         * lib/getaddrinfo.c [HAVE_NETINET_IN_H]: Include <netinet/in.h>.
45290         Problem reported by Eric Blake.
45291         (getaddrinfo): Initialize se so that it's not garbage.
45292         Redo internal storage allocation so that it doesn't make unportable
45293         assumptions about alignment.
45294         Fix a memory leak.
45295
45296         * lib/utimens.c (futimens): Use futimesat if available.
45297         Prefer it to futimes since it doesn't have the futimes bug.
45298
45299         * lib/verify.h (GL_CONCAT0, GL_CONCAT): Remove.
45300         (verify): Don't use the __LINE__ trick, as it doesn't work in general.
45301         Instead, declare a function that returns a pointer to an array,
45302         and use verify_type__ to declare the size of the array.
45303         Problem and germ of a solution reported by Bruno Haible.
45304         (verify_type__): Use 2, not 1, for bitfield size, to avoid
45305         a warning with Irix 6.5 cc.  Problem reported by Bruno Haible.
45306
45307 2005-09-23  Jim Meyering  <jim@meyering.net>
45308
45309         Sync from coreutils.
45310         Correct build failure (socklen_t not defined) on at least
45311         mips-sgi-irix6.5 and alphaev67-dec-osf5.1.
45312         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Require gl_SOCKLEN_T.
45313
45314 2005-09-23  Jim Meyering  <jim@meyering.net>
45315
45316         * modules/getaddrinfo (Depends-on): Add socklen.
45317
45318 2005-09-23  Bruno Haible  <bruno@clisp.org>
45319
45320         * tests/test-verify.c: New file.
45321
45322 2005-09-22  Paul Eggert  <eggert@cs.ucla.edu>
45323
45324         Sync from coreutils.
45325
45326         * modules/argmatch (Depends-on): Add verify.
45327         * modules/getloadavg (Depends-on): Depend on fcntl-safer, not
45328         unistd-safer.
45329         * modules/save-cwd (Depends-on): Likewise.
45330
45331         * modules/openat (Files): Add lib/openat-die.c.
45332         (Depends-on): Remove error, exitfail.
45333         Add dirname.
45334
45335         * modules/verify: New file.
45336         * MODULES.html.sh (Diagnostics <assert.h>): New section,
45337         with "verify" module.
45338
45339 2005-09-22  Paul Eggert  <eggert@cs.ucla.edu>
45340
45341         Sync from coreutils.
45342
45343         * m4/backupfile.m4, calloc.m4, chown.m4, cloexec.m4, dup2.m4:
45344         * m4/fileblocks.m4, free.m4, ftruncate.m4, getcwd.m4, getpagesize.m4:
45345         * m4/getugroups.m4, group-member.m4, idcache.m4, link-follow.m4:
45346         * m4/mkstemp.m4, mktime.m4, mountlist.m4, nanosleep.m4, pathmax.m4:
45347         * m4/physmem.m4, posixver.m4, putenv.m4, safe-read.m4, same.m4:
45348         * m4/save-cwd.m4, stdio-safer.m4, unistd-safer.m4, unlinkdir.m4:
45349         * m4/userspec.m4, xgetcwd.m4, xreadlink.m4:
45350         Don't bother checking for string.h, stdlib.h, unistd.h.
45351         * m4/fts.m4 (gl_FUNC_FTS_CORE): Don't require
45352         AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK; that's now the lstat
45353         module's job.
45354         * m4/jm-macros.m4 (gl_MACROS): Likewise.
45355         * m4/prereq.m4 (gl_PREREQ): Add gl_FUNC_LSTAT.
45356
45357         * m4/getdate.m4 (gl_C_COMPOUND_LITERALS): New macro.
45358         (gl_GETDATE): Use it.
45359
45360         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS): Don't bother checking for unistd.h.
45361
45362 2005-09-22  Paul Eggert  <eggert@cs.ucla.edu>
45363
45364         Sync from coreutils.
45365
45366         * lib/.cppi-disable: Add regcomp.c, regex_internal.c, regex_internal.h,
45367         stat-time.h.
45368         * lib/argmatch.h: Include verify.h
45369         (ARGMATCH_VERIFY): Use verify rather than rolling our own.
45370         (ARGMATCH_ASSERT): Remove; unused.
45371         * lib/canonicalize.c: Assume STDC_HEADERS.
45372         * lib/exclude.c: Include "strcase.h".
45373         * lib/regex_internal.h [!defined _LIBC]: Likewise.
45374         * lib/getusershell.c: Include stdio--.h rather than stdio.h
45375         and stdio-safer.h.
45376         (getusershell): Call fopen, not fopen_safer.
45377         * lib/save-cwd.c: Include fcntl--.h rather than fcntl.h.
45378         Do not include unistd-safer.h.
45379         (save_cwd): Don't call fd_safer; no longer needed
45380         now that we include fcntl--.h.
45381
45382         * lib/getdate.y (relative_time): New type.
45383         (RELATIVE_TIME_0): New constant.
45384         (parser_control): Use relative_time instead of doing it ourselves.
45385         (%union): Add new relative_time rel member.
45386         (tYEAR_UNIT, tMONTH_UNIT, tHOUR_UNIT, tMINUTE_UNIT, tSEC_UNIT):
45387         Now typeless.
45388         (relunit, relunit_snumber): Now of type rel.
45389         (zone, rel, relunit, get_date): Adjust to above changes.
45390
45391         * lib/getloadavg.c: Include fcntl--.h rather than fcntl.h.
45392         Do not include unistd-safer.h.
45393         (getloadavg): Don't call fd_safer; no longer needed
45394         now that we include fcntl--.h.
45395
45396         * lib/mkdir-p.c (ENOSYS): Define to EEXIST if not defined.
45397         (make_dir_parents): Treat ENOSYS like EEXIST.
45398
45399         Improve quality of diagnostics on restore_cwd failure.
45400         * lib/mkdir-p.h (make_dir): Remove.  All uses replaced by mkdir.
45401         (make_dir_parents): Last arg is now int * (for errno), not bool *.
45402         * lib/mkdir-p.c (make_dir, make_dir_parents): Likewise.
45403         Rewrite "mkdir -p" algorithm to avoid the need for "stat"
45404         each time through the loop.  Do not diagnose restore_cwd failure;
45405         that is the caller's job (and perhaps the caller does not care).
45406
45407         * lib/mkdir-p.c (CLEANUP_CWD, CLEANUP): Remove.
45408         (make_dir_parents): Revamp to avoid need for CLEANUP_CWD, CLEANUP.
45409         If the file already exists but is not a directory, don't bother
45410         to try to make its parents.
45411         Close potential file descriptor leak if we can't chdir("/") (!).
45412         Don't always return true if chdir($PWD) fails; return true only
45413         if the requested action was done successfully (except for the
45414         chdir($PWD)).
45415         Don't log final directory unless we actually made it.
45416         Refactor to avoid duplicate code to fix up permissions.
45417         Don't attempt to fix up parent permissions if chdir($PWD) fails.
45418
45419         * lib/strftime.c (my_strftime): Rewrite the previous change slightly,
45420         to make it a bit faster and (I hope) clearer.
45421         * lib/strftime.c (my_strftime): Add support for %:z, %::z, %:::z.
45422         Fix bug in formats like %2N.
45423
45424         * lib/verify.h: New file.
45425
45426 2005-09-22  Paul Eggert  <eggert@cs.ucla.edu>
45427
45428         Sync from coreutils.
45429         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Check for netinet/in.h.
45430
45431 2005-09-22  Jim Meyering  <jim@meyering.net>
45432
45433         Sync from coreutils.
45434
45435         * m4/lstat.m4 (gl_FUNC_LSTAT):
45436         Use AC_LIBSOURCES to require lstat.c and lstat.h.
45437         Remove obsolete comment.
45438         * m4/xreadlink.m4: Use AC_LIBSOURCES and AC_LIBOBJ.
45439         * m4/xstrtod.m4: Likewise.
45440
45441         * m4/openat.m4 (gl_FUNC_OPENAT): Add openat-die.c.
45442
45443 2005-09-22  Jim Meyering  <jim@meyering.net>
45444
45445         Sync from coreutils.
45446
45447         * lib/backupfile.c: Use ARGMATCH_VERIFY, just in case.
45448
45449         * lib/posixtm.c (posixtime) [lint]: Initialize *all* of tm0, not just
45450         the .tm_year member, since otherwise gcc-4.0 would now warn about
45451         tm_zone, tm_gmtoff, tm_isdst, tm_yday, tm_wday.
45452
45453         * lib/quotearg.c (quotearg_n_options): Change code to be suboptimal, in
45454         order to avoid an unsuppressible warning from gcc on 64-bit systems.
45455
45456         * lib/getdate.y (get_date): Undo part of the 2005-04-04 change, so that
45457         the command "date -d'2005-03-27 +1 day'" succeeds once again, even
45458         when run in a time zone for which daylight savings time is in effect
45459         for the starting date.
45460
45461         * lib/mkdir-p.c (make_dir_parents): Don't let a failed chdir($PWD)
45462         stop us from restricting permissions of just-created absolute-named
45463         directories.
45464         * lib/mkdir-p.c (CLEANUP_CWD): Return *true*, not false when failing
45465         to restore initial working directory.
45466         * lib/mkdir-p.c (make_dir_parents): New parameter:
45467         different_working_dir, to tell caller if/when we change the working
45468         directory and are unable to return to the initial one.
45469         * lib/mkdir-p.h (make_dir_parents): Update prototype.
45470         * lib/mkdir-p.c (CLEANUP_CWD): Change one more `return 1' to
45471         `return false'.  This fixes a bug introduced on 2004-07-30.
45472
45473         * lib/openat.c (fdopendir): Be sure to close the supplied
45474         file descriptor before returning.  This makes our replacement
45475         implementation a little closer to Solaris's, where fdopendir
45476         ties the file descriptor to the returned DIR* pointer.
45477         * lib/openat.c (unlinkat): New function.
45478         * lib/openat.h (unlinkat): Add prototype.
45479         * lib/openat-die.c (openat_save_fail): Rename from openat_save_die.
45480         (openat_restore_fail): Rename from openat_restore_die.
45481         * lib/openat.c, openat.h: Reflect s/_die/_fail/ renaming.
45482
45483         Provide an alternative to exiting immediately upon save_cwd or
45484         restore_cwd failure.  Now, an application can arrange e.g.,
45485         to perform a longjump in that case.
45486         * lib/openat.c: Include dirname.h.
45487         Use IS_ABSOLUTE_FILE_NAME rather than testing for leading slash.
45488         (rpl_openat, fdopendir, fstatat): Call openat_save_die
45489         and openat_restore_die rather than calling error directly.
45490         Don't include "error.h" or "exitfail.h"; they're no longer needed.
45491
45492         * lib/openat-die.c (openat_save_die, openat_restore_die): New file.
45493         * lib/openat.h (openat_save_die, openat_restore_die): Declare and
45494         define.
45495
45496         * lib/strftime.c [FPRINTFTIME] (fprintftime): Provide a new interface:
45497         size_t fprintftime (FILE *fp, char const *fmt, struct tm const *tm,
45498                             int utc, int nanoseconds);
45499         Background:
45500         date should not have to allocate a megabyte of virtual memory to
45501         handle a format argument like +%1048575T.  When implemented with
45502         strftime, it must allocate such a buffer, use strftime to fill it
45503         in, print it, then free it.
45504         With fprintftime, it simply prints everything and exits.
45505         With no need for memory allocation, that's one fewer way to fail.
45506         * lib/strftime.c (my_strftime): Parse the colons of %:::z *after* the
45507         optional field width, not before, so we accept %9:z, not %:9z.
45508         (my_strftime): Be sure to use L_('x') for literals.
45509
45510         * lib/backupfile.c, lib/canon-host.c, lib/canonicalize.c, lib/chown.c:
45511         * lib/cloexec.c, lib/dup-safer.c, lib/dup2.c, lib/euidaccess.c:
45512         * lib/fd-safer.c, lib/fileblocks.c, lib/fopen-safer.c, lib/fsusage.c:
45513         * lib/ftruncate.c, lib/getcwd.c, lib/getcwd.h, lib/getloadavg.c:
45514         * lib/getopt_.h, lib/getpagesize.h, lib/getugroups.c:
45515         * lib/group-member.c, lib/human.h, lib/idcache.c, lib/mkdir-p.c:
45516         * lib/mountlist.c, lib/nanosleep.c, lib/pathmax.h, lib/physmem.c:
45517         * lib/posixver.c, lib/putenv.c, lib/raise.c, lib/safe-read.c:
45518         * lib/same.c, lib/save-cwd.c, lib/setenv.c, lib/settime.c:
45519         * lib/tempname.c, lib/unlinkdir.c, lib/unsetenv.c, lib/userspec.c:
45520         * lib/xgethostname.c, lib/xreadlink.c:
45521         Assume HAVE_UNISTD_H, i.e., include <unistd.h> unconditionally.
45522
45523         * lib/chown.c, lib/cloexec.c, lib/dup-safer.c, lib/dup2.c:
45524         * lib/fsusage.c, lib/getcwd.c, lib/getloadavg.c, lib/mountlist.c:
45525         * lib/openat.h, lib/save-cwd.c, lib/tempname.c:
45526         Assume HAVE_FCNTL_H (i.e., include <fcntl.h> unconditionally,
45527         and don't include <sys/file.h>).
45528
45529 2005-09-22  Eric Blake  <ebb9@byu.net>  (tiny change)
45530
45531         Sync from coreutils.
45532
45533         * lib/getloadavg.c (getloadavg) [__CYGWIN__]: Port to cygwin.
45534         [__linux__]: Allocate a big enough buffer for /proc/loadavg.
45535         [!LDAV_DONE]: Avoid unused variable warning.
45536
45537 2005-09-21  Bruno Haible  <bruno@clisp.org>
45538
45539         * lib/unicodeio.h (unicode_to_mb): New declaration.
45540
45541 2005-09-20  Derek Price  <derek@ximbiot.com>
45542
45543         * lib/getaddrinfo.c: Don't include <netdb.h> included from
45544         getaddrinfo.h.
45545
45546 2005-09-20  Bruno Haible  <bruno@clisp.org>
45547
45548         * gnulib-tool: Remove trailing slashes from the values specified for
45549         --source-base, --m4-base, --tests-base, --aux-dir.
45550         Suggested by Simon Josefsson <jas@extundo.com>.
45551
45552 2005-09-20  Bruno Haible  <bruno@clisp.org>
45553
45554         * gnulib-tool (func_all_modules, func_modules_transitive_closure,
45555         func_modules_to_filelist, func_import, func_create_testdir): Make all
45556         sorting results locale-independent, so that gnulib-cache.m4 doesn't
45557         change when gnulib-tool is invoked in a different locale.
45558
45559 2005-09-19  Simon Josefsson  <jas@extundo.com>
45560
45561         * m4/socklen.m4: Fix typo.
45562
45563 2005-09-19  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
45564
45565         Use a consistent style for including <config.h>.
45566         * lib/__fpending.c, lib/acl.c, lib/argmatch.c, lib/argp-help.c,
45567         lib/argp-parse.c, lib/argp-pvh.c, lib/backupfile.c, lib/basename.c,
45568         lib/c-stack.c, lib/calloc.c, lib/check-version.c, lib/cloexec.c,
45569         lib/closeout.c, lib/copy-file.c, lib/creat-safer.c, lib/cycle-check.c,
45570         lib/dirfd.c, lib/dirname.c, lib/dup-safer.c, lib/dup2.c,
45571         lib/euidaccess.c, lib/exclude.c, lib/exitfail.c, lib/fatal-signal.c,
45572         lib/fd-safer.c, lib/file-type.c, lib/fileblocks.c, lib/filemode.c,
45573         lib/filenamecat.c, lib/findprog.c, lib/fnmatch.c, lib/fopen-safer.c,
45574         lib/free.c, lib/fsusage.c, lib/ftruncate.c, lib/full-write.c,
45575         lib/fwriteerror.c, lib/getaddrinfo.c, lib/getcwd.c, lib/getdelim.c,
45576         lib/getline.c, lib/getlogin_r.c, lib/getndelim2.c, lib/getnline.c,
45577         lib/getopt1.c, lib/getpass.c, lib/group-member.c, lib/hard-locale.c,
45578         lib/hash-pjw.c, lib/hash.c, lib/human.c, lib/idcache.c,
45579         lib/inet_ntop.c, lib/isdir.c, lib/long-options.c, lib/malloc.c,
45580         lib/memcasecmp.c, lib/memcmp.c, lib/memcoll.c, lib/memcpy.c,
45581         lib/memmove.c, lib/mkdir-p.c, lib/modechange.c, lib/mountlist.c,
45582         lib/open-safer.c, lib/physmem.c, lib/pipe-safer.c, lib/pipe.c,
45583         lib/poll.c, lib/posixver.c, lib/progname.c, lib/progreloc.c,
45584         lib/putenv.c, lib/quote.c, lib/quotearg.c, lib/readline.c,
45585         lib/readlink.c, lib/realloc.c, lib/regex.c, lib/rename.c, lib/rmdir.c,
45586         lib/rpmatch.c, lib/safe-read.c, lib/same.c, lib/save-cwd.c,
45587         lib/savedir.c, lib/sig2str.c, lib/strcspn.c, lib/strerror.c,
45588         lib/stripslash.c, lib/strncasecmp.c, lib/strndup.c, lib/strnlen.c,
45589         lib/strnlen1.c, lib/strsep.c, lib/strstr.c, lib/strtod.c,
45590         lib/strtoimax.c, lib/strtol.c, lib/strverscmp.c, lib/tempname.c,
45591         lib/time_r.c, lib/userspec.c, lib/utimecmp.c, lib/version-etc-fsf.c,
45592         lib/version-etc.c, lib/wait-process.c, lib/xalloc-die.c, lib/xgetcwd.c,
45593         lib/xmalloc.c, lib/xmemcoll.c, lib/xnanosleep.c, lib/xreadlink.c,
45594         lib/xsetenv.c, lib/xstrndup.c, lib/xstrtoimax.c, lib/xstrtol.c,
45595         lib/xstrtoumax.c, lib/yesno.c:
45596         Standardize inclusion of config.h.
45597         * lib/__fpending.h, lib/dirfd.h, lib/getdate.h, lib/human.h,
45598         lib/inttostr.h:  Removed inclusion of config.h from header files.
45599         * lib/inttostr.c:  Adjusted in-tree users.
45600         * lib/timespec.h: Remove superfluous warning to include config.h.
45601         * lib/atexit.c, lib/chdir-long.c, lib/chown.c, lib/fchown-stub.c,
45602         lib/getgroups.c, lib/gettimeofday.c, lib/lchown.c, lib/lstat.c,
45603         lib/mkdir.c, lib/mkstemp.c, lib/nanosleep.c, lib/openat.c, lib/raise.c,
45604         lib/readtokens0.c, lib/readutmp.c, lib/unlinkdir.c: Guard inclusion of
45605         config.h with HAVE_CONFIG_H.
45606
45607 2005-09-19  Jim Meyering  <jim@meyering.net>
45608
45609         * modules/pathmax (License): Change to LGPL.
45610
45611 2005-09-19  Derek Price  <derek@ximbiot.com>
45612
45613         * config/srclist.txt: glibc's glob.h is now in lib/glob-libc.h.
45614
45615 2005-09-19  Bruno Haible  <bruno@clisp.org>
45616
45617         * gnulib-tool (import): Provide default for --tests-base.
45618
45619 2005-09-19  Bruno Haible  <bruno@clisp.org>
45620
45621         * doc/quote.texi: New file, extracted from gnulib.texi.
45622         * doc/ctime.texi: New file, extracted from gnulib.texi.
45623         * doc/inet_ntoa.texi: New file, extracted from gnulib.texi.
45624         * doc/gnulib-tool.texi: New file, extracted from gnulib.texi.
45625         * doc/gnulib.texi: Include them.
45626
45627 2005-09-18  Bruno Haible  <bruno@clisp.org>
45628
45629         Portability fix.
45630         * gnulib-tool (func_readlink): New function.
45631         (func_ln_if_changed): Use it.
45632
45633 2005-09-18  Bruno Haible  <bruno@clisp.org>
45634
45635         * gnulib-tool: Support --with-tests also with --import.
45636         (func_emit_tests_Makefile_am): Use variables $m4base and $testsbase.
45637         (func_import): Use variables $testsbase and $inctests. Emit a
45638         gl_TESTS_BASE form into gnulib-cache.m4. Create $testsbase/Makefile.am.
45639         Remind the user to add AC_CONFIG_FILES($testsdir/Makefile) and
45640         SUBDIRS += $testsdir.
45641         (func_create_testdir): Update.
45642
45643 2005-09-18  Bruno Haible  <bruno@clisp.org>
45644
45645         * gnulib-tool: Revise --dry-run implementation. Use variable $doit
45646         instead of $dry_run.
45647         (func_cp_if_changed, func_mv_if_changed): Remove functions.
45648         (func_ln_if_changed): Don't handle dry-run here.
45649         (func_import): In dry-run mode, detect more precisely which actions
45650         would be performed, and don't use "...ing" verbs.
45651
45652 2005-09-18  Bruno Haible  <bruno@clisp.org>
45653
45654         * gnulib-tool (func_tmpdir): New function, taken from GNU gettextize.
45655         (func_import): Use join on two temporary files instead of three nested
45656         loops, in order to determine which files are new or old.
45657
45658 2005-09-18  Bruno Haible  <bruno@clisp.org>
45659
45660         * gnulib-tool (func_import): Comment out code that spits out the
45661         new files with --dry-run.
45662
45663 2005-09-18  Bruno Haible  <bruno@clisp.org>
45664
45665         * doc/gnulib.texi (Invoking gnulib-tool): 50% rewritten.
45666
45667 2005-09-16  Paul Eggert  <eggert@cs.ucla.edu>
45668
45669         * lib/stat-time.h: New file.
45670         * lib/timespec.h (ST_TIME_CMP_NS, ST_TIME_CMP, ATIME_CMP, CTIME_CMP):
45671         (MTIME_CMP, TIMESPEC_NS): Remove.  Now done by stat-time.h,
45672         in a different way.
45673         (timespec_cmp): New function.
45674         * lib/utimecmp.c: Include stat-time.h.
45675         (SYSCALL_RESOLUTION): Depend on whether various struct stat
45676         members exist, not on the obsolescent ST_MTIM_NSEC.
45677         (utimecmp): Use the new stat-time functions rater than TIMESPEC_NS.
45678
45679 2005-09-16  Paul Eggert  <eggert@cs.ucla.edu>
45680
45681         * config/srclist.txt: Remove glibc bug 1033 and uncomment mktime.c.
45682
45683 2005-09-16  Paul Eggert  <eggert@cs.ucla.edu>
45684
45685         * MODULES.html.sh (File system functions): Add stat-time.
45686         * modules/stat-time: New file.
45687         * modules/timespec (Files): Remove m4/st_mtim.m4; this
45688         is now done in a different way, by the stat-time module.
45689         * modules/utimecmp (Depends-on): Add stat-time.
45690
45691 2005-09-15  Paul Eggert  <eggert@cs.ucla.edu>
45692
45693         * m4/st_mtim.m4: Remove.  Superseded by...
45694         * m4/stat-time.m4: New file.
45695         * m4/timespec.m4 (gl_TIMESPEC): Require AC_C_INLINE.
45696         Do not invoke AC_STRUCT_ST_MTIM_NSEC; no longer needed.
45697
45698 2005-09-15  Derek Price  <derek@ximbiot.com>
45699
45700         * m4/strstr.m4 (gl_FUNC_STRSTR): Don't define strstr here.
45701
45702 2005-09-15  Derek Price  <derek@ximbiot.com>
45703
45704         * lib/regex_internal.h: Blank `pure' for GNUC < 3.
45705         * lib/regex_internal.c: Ditto, using this...
45706         (__GNUC_PREREQ): ...new macro.
45707         * lib/regcomp.c, regexec.c: Blank `always_inline' for GNUC < 3.1
45708         using...
45709         (__GNUC_PREREQ): ...this new macro.
45710
45711         * lib/strstr.h: Include string.h. Define strstr as a macro here.
45712
45713 2005-09-15  Derek Price  <derek@ximbiot.com>
45714             Paul Eggert  <eggert@cs.ucla.edu>
45715
45716         * lib/regcomp.c, regexec.c, regex_internal.c: Back out previous
45717         changes, consolidating in...
45718         * lib/regex_internal.h: ...this file.
45719
45720 2005-09-13  Jim Meyering  <jim@meyering.net>
45721
45722         * lib/canon-host.c: Filter through gnu indent and reword comments
45723         slightly.
45724         * lib/canon-host.h (ch_strerror_r): Tweak cpp indentation and spacing.
45725
45726 2005-09-13  Derek Price  <derek@ximbiot.com>
45727
45728         * lib/canon-host.c (canon_host_r): Set *cherror on memory allocation
45729         failure.
45730         Reported by Jim Meyering  <jim@meyering.net>.
45731
45732 2005-09-12  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>  (tiny change)
45733
45734         * lib/base64.c: Typo.
45735         (base64_encode): Put b64str in initialized data section.
45736
45737 2005-09-12  Paul Eggert  <eggert@cs.ucla.edu>
45738
45739         Merge glibc and coreutils changes into gnulib, plus a few
45740         extra fixes.
45741         * lib/md5.c: Use #error rather than a string.
45742         (CYCLIC): New macro, from glibc source.  Use it instead of rol.
45743         * lib/md5.h (__GNUC_PREREQ, __THROW): Define if not defined already.
45744         (__attribute__): Define to empty for non recent-GCC.
45745         (__md5_buffer, __md5_finish_ctx, __md5_init_ctx, __md5_process_block):
45746         (__md5_process_bytes, __md5_read_ctx, __md5_stream):
45747         Renamed from their non-__ counterparts, with new macros replacing
45748         them if not _LIBC.  Add __THROW attribute.
45749         (rol): Remove.
45750         (struct md5_ctx): Align buffer if using GCC.
45751         * lib/sha1.h (struct sha1_ctx): Likewise.
45752         * lib/sha1.c (SWAP): Renamed from the NOTSWAP.  All uses changed.
45753         The old name was backwards.
45754         (NOTSWAP): Remove; not used.
45755         (rol): New macro, moved here from md5.h.
45756         (sha1_process_block): Remove a FIXME that doesn't make sense.
45757
45758 2005-09-12  Derek Price  <derek@ximbiot.com>
45759
45760         Return usable errors from canon-host.
45761         * lib/canon-host.h: New file.
45762         * lib/canon-host.c (canon_host): Wrap...
45763         (canon_host_r): ...this new function, which now relies exclusively on
45764         getaddrinfo.
45765         (ch_strerror): New function.
45766         (last_cherror): New global.
45767         * lib/getaddrinfo.c: Move include of getaddrinfo.h first to test
45768         interface.
45769         (getaddrinfo): Add AI_CANONNAME functionality.  Don't do arithmetic on
45770         void *.
45771         (freeaddrinfo): Free ai->ai_canonname when set.
45772
45773 2005-09-12  Derek Price  <derek@ximbiot.com>
45774
45775         Make canon-host require getaddrinfo.
45776         * m4/canon-host.m4 (gl_CANON_HOST): Remove most dependencies.
45777         AC_LIBSOURCE canon-host.h.  Call...
45778         (gl_PREREQ_CANON_HOST): ...this new function, which requires
45779         gl_GETADDRINFO.
45780         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Compile gai_strerror when needed.
45781
45782 2005-09-12  Derek Price  <derek@ximbiot.com>
45783
45784         * modules/canon-host: Add canon-host.h.  Depend on getaddrinfo.  Make
45785         LGPL.
45786         * modules/getaddrinfo: Add link to opengroup spec.  Depend on strdup.
45787
45788 2005-09-12  Derek Price  <derek@ximbiot.com>
45789
45790         * lib/gai_strerror.c: Include config.h when available.  Include
45791         getaddrinfo.h before other headers to test interface.
45792         Reported by Larry Jones <lawrence.jones@ugs.com>.
45793
45794 2005-09-12  Derek Price  <derek@ximbiot.com>
45795             Paul Eggert  <eggert@cs.ucla.edu>
45796
45797         * modules/glob (Files): Add glob-libc.h.
45798
45799 2005-09-12  Derek Price  <derek@ximbiot.com>
45800             Paul Eggert  <eggert@cs.ucla.edu>
45801
45802         * m4/glob.m4 (gl_GLOB_SUBSTITUTE): AC_LIBSOURCES for glob.c,
45803         glob_.h, glob-libc.h.
45804         (gl_PREREQ_GLOB): Remove _SYS_CDEFS_H hack; no longer needed.
45805
45806 2005-09-12  Derek Price  <derek@ximbiot.com>
45807             Paul Eggert  <eggert@cs.ucla.edu>
45808
45809         * lib/glob-libc.h: Renamed from glob_.h.  The new version is
45810         taken from libc's glob.h, except with '#ifdef __GLOB_GNULIB'
45811         protecting things that should be done only in gnulib contexts.
45812         * lib/glob_.h: New file, containing only the glob things needed for
45813         gnulib.
45814         (GLOB_PREFIX): Remove.  All uses changed to look for __GLOB_GNULIB.
45815         (__GLOB_CONCAT, __GLOB_XCONCAT, __GLOB_ID): Remove; no longer needed.
45816         (glob, globfree, glob_pattern_p): Now defined simply in terms of
45817         rpl_glob, rpl_globfree, rpl_glob_pattern_p.
45818         (__GLOB_GNULIB): New macro, to keep the glob.h changes clearer
45819         and to respect the namespace rules better.
45820
45821 2005-09-08  Simon Josefsson  <jas@extundo.com>
45822
45823         * modules/socklen: New file.
45824
45825 2005-09-08  Simon Josefsson  <jas@extundo.com>
45826
45827         * m4/socklen.m4: New file.
45828
45829 2005-09-08  Paul Eggert  <eggert@cs.ucla.edu>
45830
45831         * modules/utimens (Files): Add m4/utimbuf.m4, since
45832         m4/utimens.m4 requires gl_CHECK_TYPE_STRUCT_UTIMBUF.
45833         Reported by Sergey Poznyakoff.
45834
45835 2005-09-08  Paul Eggert  <eggert@cs.ucla.edu>
45836
45837         * lib/glob.c (glob, globfree, __glob_pattern_p): Use old-style function
45838         definitions, since that's the preferred style in glibc.
45839         Fix a minor spacing issue, and update copyright notice to match
45840         glibc's.
45841
45842 2005-09-08  Paul Eggert  <eggert@cs.ucla.edu>
45843
45844         * config/srclist.txt: Remove glibc bug 1061; it's been fixed.
45845
45846 2005-09-06  Simon Josefsson  <jas@extundo.com>
45847
45848         * lib/getpass.c (getpass): Fix typo, test for HAVE_TCSETATTR and not
45849         TCSETATTR.  Reported by Derek Price <derek@ximbiot.com>.
45850
45851 2005-09-06  Paul Eggert  <eggert@cs.ucla.edu>
45852
45853         * lib/regex_internal.h (bitset_not): Add parens to avoid gcc -Wall
45854         warning.
45855
45856 2005-09-06  Paul Eggert  <eggert@cs.ucla.edu>
45857
45858         * config/srclist.txt: Add glibc bug 1302.
45859
45860 2005-09-05  Paul Eggert  <eggert@cs.ucla.edu>
45861
45862         Change bitset word type from unsigned int to unsigned long int,
45863         as this has better performance on typical 64-bit hosts.
45864         Port bitset code to hosts with unusual word sizes.
45865         * lib/regcomp.c (build_equiv_class, build_charclass, build_range_exp):
45866         (build_collating_symbol):
45867         Prefer bitset to re_bitset_ptr_t in prototypes, when the actual
45868         argument is a bitset.  This is merely a style issue, but it makes
45869         it clearer that an entire array is expected.
45870         (re_compile_fastmap_iter, init_dfa, init_word_char, optimize_subexps):
45871         * lib/regcomp.c (lower_subexp, parse_bracket_exp, built_charclass_op):
45872         Port to the case where bitset_word is not the same as unsigned int.
45873         * lib/regex_internal.h (bitset_set, bitset_clear, bitset_contain):
45874         (bitset_not, bitset_merge, bitset_set_all, bitset_mask):
45875         Likewise.
45876         * lib/regexec.c (check_dst_limits_calc_pos_1,
45877         check_subexp_matching_top):
45878         (build_trtable, group_nodes_into_DFAstates):
45879         Likewise.
45880         * lib/regcomp.c (re_compile_fastmap_iter, utf8_sb_map, optimize_utf8):
45881         Don't assume that SBC_MAX is a multiple of BITSET_WORD_BITS.
45882         * lib/regex_internal.h (bitset_set_all, bitset_not): Likewise.
45883         * lib/regexec.c (group_nodes_into_DFAstates): Likewise.
45884         * lib/regcomp.c (utf8_sb_map): Don't assume UINT_MAX == 0xffffffff.
45885         * lib/regcomp.c (optimize_subexps, lower_subexp):
45886         Work even if bitset_word has holes in its bitwise representation.
45887         * lib/regex_internal.h (BITSET_WORD_BITS): Likewise.
45888         * lib/regexec.c (check_dst_limits_calc_pos_1,
45889         check_subexp_matching_top):
45890         Likewise.
45891         * lib/regex_internal.c (re_string_reconstruct):
45892         Don't assume UCHAR_MAX == 255.
45893         * lib/regex_internal.h (bitset_set_all): Likewise.
45894         * lib/regex_internal.h (BITSET_WORD_BITS): Renamed from UINT_BITS.
45895         All uses changed.
45896         (BITSET_WORDS): Renamed from BITSET_UINTS.  All uses changed.
45897         (bitset_word): New type, replacing 'unsigned int' for bitset uses.
45898         All uses changed.
45899         (BITSET_WORD_MAX): New macro.
45900         (bitset_set, bitset_clear, bitset_contain, bitset_empty):
45901         (bitset_set_all, bitset_copy):  Now inline functions, not macros.
45902         (bitset_empty, bitset_copy):
45903         Prefer sizeof (bitset) to multiplying it out ourselves.
45904         (bitset_not_merge): Remove; unused.
45905         (bitset_contain): Return bool, not unsigned int with one bit on.
45906         All callers changed.
45907         * lib/regexec.c (build_trtable): Don't assume bitset has no stricter
45908         alignment than re_node_set; do this by defining a new internal
45909         type struct dests_alloc and using it to allocate memory.
45910
45911 2005-09-05  Bruno Haible  <bruno@clisp.org>
45912
45913         * gnulib-tool (func_import): Fix comparison in handling of symbolic
45914         links.
45915
45916 2005-09-04  Martin Lambers  <marlam@marlam.de>  (tiny change)
45917
45918         * modules/size_max (Makefile.am): Add size_max.h
45919
45920 2005-09-04  Derek Price  <derek@ximbiot.com>
45921
45922         * gnulib-tool (func_import): Fix reversed $symbolic logic.
45923
45924 2005-09-03  Simon Josefsson  <jas@extundo.com>
45925
45926         * gnulib-tool: Fix typo.
45927
45928 2005-09-03  Simon Josefsson  <jas@extundo.com>
45929
45930         * config/srclist.txt: Add glibc bug 1293.
45931
45932 2005-09-03  Derek Price  <derek@ximbiot.com>
45933
45934         * m4/getlogin_r (gl_GETLOGIN_R): Fix cut & paste error.
45935         From Larry Jones <lawrence.jones@ugs.com>.
45936
45937 2005-09-02  Simon Josefsson  <jas@extundo.com>
45938
45939         * modules/socklen: New file.
45940
45941 2005-09-02  Simon Josefsson  <jas@extundo.com>
45942
45943         * modules/havelib: New module.
45944
45945         * modules/gettext, modules/iconv, modules/lock, modules/readline:
45946         Use havelib.
45947
45948 2005-09-02  Paul Eggert  <eggert@cs.ucla.edu>
45949
45950         Check for arithmetic overflow when calculating sizes, to prevent
45951         some buffer-overflow issues.  These patches are conservative, in the
45952         sense that when I couldn't determine whether an overflow was possible,
45953         I inserted a run-time check.
45954         * lib/regex_internal.h (re_xmalloc, re_xrealloc, re_x2realloc): New
45955         macros.
45956         (SIZE_MAX) [!defined SIZE_MAX]: New macro.
45957         (re_alloc_oversized, re_x2alloc_oversized, re_xnmalloc):
45958         (re_xnrealloc, re_x2nrealloc): New inline functions.
45959         * lib/regcomp.c (init_dfa, analyze, build_range_exp,
45960         parse_bracket_exp):
45961         (build_equiv_class, build_charclass): Check for arithmetic overflow
45962         in size expression calculations.
45963         * lib/regex_internal.c (re_string_realloc_buffers):
45964         (build_wcs_upper_buffer, re_node_set_add_intersect):
45965         (re_node_set_init_union, re_node_set_insert, re_node_set_insert_last):
45966         (re_dfa_add_node, register_state): Likewise.
45967         * lib/regexec.c (re_search_stub, re_copy_regs, re_search_internal):
45968         (prune_impossible_nodes, push_fail_stack, set_regs, check_arrival):
45969         (build_trtable, extend_buffers, match_ctx_init, match_ctx_add_entry):
45970         (match_ctx_add_subtop, match_ctx_add_sublast): Likewise.
45971
45972 2005-09-02  Paul Eggert  <eggert@cs.ucla.edu>
45973
45974         * modules/inttostr (Files): Add m4/inttypes_h.m4, m4/stdint_h.m4,
45975         m4/ulonglong.m4.  Problem reported by Martin Lambers.
45976
45977 2005-09-02  Bruno Haible  <bruno@clisp.org>
45978
45979         Support for lib vs. lib64 distinction on biarch platforms.
45980         * m4/lib-prefix.m4 (AC_LIB_PREPARE_MULTILIB): New macro.
45981         (AC_LIB_PREFIX): Require it. Use $acl_libdirstem instead of 'lib'.
45982         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): Likewise.
45983
45984 2005-09-02  Bruno Haible  <bruno@clisp.org>
45985
45986         * gnulib-tool (import): In the other first-use case, provide defaults
45987         as well.
45988
45989 2005-09-02  Bruno Haible  <bruno@clisp.org>
45990
45991         * config/srclist.txt: lib-link.m4 and lib-prefix.m4 currently have
45992         patches not yet found in the latest gettext release.
45993
45994 2005-09-01  Paul Eggert  <eggert@cs.ucla.edu>
45995
45996         * lib/glob.c (GET_LOGIN_NAME_MAX): Renamed from LOGIN_NAME_MAX,
45997         to avoid a collision with bits/local_lim.h in glibc.
45998         All uses changed.  Problem reported by Dmitry V. Levin in
45999         <http://sources.redhat.com/bugzilla/show_bug.cgi?id=1060>.
46000
46001         * lib/regex_internal.c (build_wcs_upper_buffer): Fix portability
46002         bugs in int versus size_t comparisons.
46003         (re_string_context_at): Fix bug where the code assumed that
46004         Idx is signed.
46005
46006         Use bool where appropriate.
46007         * lib/regcomp.c (re_set_fastmap): ICASE arg is bool, not int.
46008         All callers changed.
46009         (calc_eclosure_iter): Likewise, for ROOT arg.
46010         (parse_bracket_element): Likewise, for ACCEPT_HYPHEN arg.
46011         (build_charclass_op): Likewise, for NON_MATCH arg.
46012         * lib/regex_internal.c (re_string_allocate, re_string_construct):
46013         (re_string_construct_common): Likewise, for ICASE arg.
46014         * lib/regexec.c (re_search_2_stub, re_search_stub):
46015         Likewise, for RET_LEN arg.
46016         (check_matching): Likewise, for FL_LONGEST_MATCH arg.
46017         (set_regs): Likewise, for FL_BACKTRACK arg.
46018         * lib/regcomp.c (re_compile_fastmap_iter, optimize_utf8):
46019         (duplicate_node_closure, calc_inveclosure, calc_eclosure):
46020         (calc_eclosure_iter, parse_bracket_exp):
46021         Use bool for internal variables that are booleans.
46022         * lib/regexec.c (re_search_internal, check_matching,
46023         proceed_next_node):
46024         (set_regs, build_sifted_states, sift_states_bkref):
46025         (check_arrival_add_next_nodes, check_arrival_expand_ecl_sub):
46026         (expand_bkref_cache, build_trtable, group_nodes_into_DFAstates):
46027         (find_collation_sequence_value):
46028         Likewise.
46029         * lib/regex_internal.c (re_node_set_insert, re_node_set_insert_last):
46030         (re_node_set_compare):
46031         Return bool, not int. All callers changed.
46032         * lib/regexec.c (check_halt_node_context, check_dst_limits):
46033         (build_trtable, check_node_accept): Likewise.
46034         * lib/regex_internal.h: Include stdbool.h.
46035
46036         Fix bugs uncovered when converting to bool.
46037         * lib/regcomp.c (calc_eclosure_iter): Check for storage allocation
46038         failure instead of charging ahead blindly.
46039         * lib/regex_internal.c (register_state): Likewise.
46040         * lib/regexec.c (re_search_2_stub): Use simpler method than boolean
46041         for freeing internal storage.
46042         (group_nodes_into_DFA_states): Use unsigned int, not int, for
46043         bitset pieces used as boolean, to avoid undefined behavior
46044         on hosts that do int overflow checking.
46045
46046 2005-09-01  Paul Eggert  <eggert@cs.ucla.edu>
46047
46048         * config/srclist.txt: Add glibc bugs 1285-1287.
46049
46050 2005-09-01  Jim Meyering  <jim@meyering.net>
46051
46052         * m4/lchown.m4: Require gl_FUNC_CHOWN, for the definition of
46053         CHOWN_MODIFIES_SYMLINK, which is used by lchown.c.
46054         Require gl_STAT_MACROS, too.
46055
46056 2005-09-01  Bruno Haible  <bruno@clisp.org>
46057
46058         * gnulib-tool (import): In the first-use case, provide defaults.
46059
46060 2005-09-01  Bruno Haible  <bruno@clisp.org>
46061
46062         * gnulib-tool (func_import): Remove the .tmp files.
46063
46064 2005-09-01  Bruno Haible  <bruno@clisp.org>
46065
46066         * gnulib-tool (func_import): Fix handling of symbolic links.
46067
46068 2005-08-31  Paul Eggert  <eggert@cs.ucla.edu>
46069
46070         On 64-bit hosts (where size_t is 64 bits and int is 32 bits), the
46071         old glibc regex code mishandles strings longer than 2**31 bytes.
46072         This patch fixes this when the regex code is used in gnulib
46073         (i.e., outside glibc).
46074
46075         This patch should not affect the use of the regex code inside
46076         glibc.  No doubt this problem also needs to be handled for glibc
46077         as well, but the result will be an incompatible change to the
46078         glibc ABI, and the old ABI will have to be supported too.  That
46079         can be the the subject for another patch.
46080
46081         * lib/regex.h (_REGEX_LARGE_OFFSETS): New feature-test macro,
46082         governing whether the rest of this patch is active.  By default,
46083         the macro is disabled and the patch has no effect.
46084         (regoff_t) [defined _REGEX_LARGE_OFFSETS]: Define to off_t, not int.
46085         (__re_idx_t, __re_size_t, __re_long_size_t): New types.
46086         (struct re_pattern_buffer, re_search, re_search_2, re_match):
46087         (re_match_2, re_set_registers): Use the new types.
46088         * lib/regex_internal.h (Idx, re_hashval_t): New types.
46089         (REG_MISSING, REG_ERROR, REG_VALID_INDEX, REG_VALID_NONZERO_INDEX):
46090         New macros.
46091         (re_node_set, re_charset_t, re_token_t, re_string_realloc_buffers):
46092         (re_string_context_at, bin_tree_t, re_dfastate_t):
46093         (struct re_state_table_entry, state_array_t, re_sub_match_last_t):
46094         (re_sub_match_top_t, re_match_context_t, re_sift_context_t):
46095         (struct re_fail_stack_ent_t, struct re_fail_stack_t, struct re_dfa_t):
46096         (re_string_char_size_at, re_string_wchar_at):
46097         (re_string_elem_size_at):
46098         Use the new types and macros to port to 64-bit hosts.
46099         Use unsigned types for internal values, so that the code
46100         mostly works even for arrays larger than SSIZE_MAX.
46101         * lib/regcomp.c (re_compile_internal, init_dfa, duplicate_node):
46102         (search_duplicated_node, calc_eclosure_iter, fetch_number):
46103         (parse_reg_exp, parse_branch, parse_expression, parse_sub_exp):
46104         (build_equiv_class, build_charclass, re_compile_fastmap_iter):
46105         (free_dfa_content, create_initial_state, optimize_utf8, analyze):
46106         (optimize_subexps, calc_first, link_nfa_nodes, duplicate_node_closure):
46107         (calc_inveclosure, parse_dup_op, build_range_exp):
46108         (build_collating_symbol, parse_bracket_exp, build_charclass_op):
46109         (fetch_number, create_token_tree, mark_opt_subexp):
46110         Likewise.
46111         * lib/regex_internal.c (re_string_construct_common,
46112         create_ci_newstate):
46113         (create_cd_newstate, re_string_allocate, re_string_construct):
46114         (re_string_realloc_buffers, build_wcs_upper_buffer):
46115         (re_string_skip_chars, build_upper_buffer, re_string_translate_buffer):
46116         (re_string_reconstruct, re_string_peek_byte_case):
46117         (re_string_fetch_byte_case, re_string_context_at):
46118         (re_node_set_alloc, re_node_set_init_1, re_node_set_init_2):
46119         (re_node_set_init_copy, re_node_set_add_intersect):
46120         (re_node_set_init_union, re_node_set_merge, re_node_set_insert):
46121         (re_node_set_insert_last, re_node_set_compare, re_node_set_contains):
46122         (re_node_set_remove_at, re_dfa_add_node, calc_state_hash):
46123         (re_acquire_state, re_acquire_state_context, register_state):
46124         Likewise.
46125         * lib/regex.c (match_ctx_init, match_ctx_add_entry,
46126         search_cur_bkref_entry):
46127         (match_ctx_add_subtop, match_ctx_add_sublast, sift_ctx_init):
46128         (re_search_internal, re_search_2_stub, re_search_stub)
46129         (re_copy_regs, check_matching, check_halt_state_context, update_regs):
46130         (push_fail_stack, sift_states_iter_mb, build_sifted_states):
46131         (update_cur_sifted_state, check_dst_limits):
46132         (check_dst_limits_calc_pos_1, check_dst_limits_calc_pos):
46133         (check_subexp_limits, sift_states_bkref, merge_state_array):
46134         (check_subexp_matching_top, get_subexp, get_subexp_sub):
46135         (find_subexp_node, check_arrival, check_arrival_add_next_nodes):
46136         (check_arrival_expand_ecl, check_arrival_expand_ecl_sub):
46137         (expand_bkref_cache, check_node_accept_bytes):
46138         (group_nodes_into_DFAstates, check_node_accept, regexec, re_match):
46139         (re_search, re_match_2, re_search_2, prune_impossible_nodes):
46140         (acquire_init_state_context, check_halt_node_context):
46141         (proceed_next_node, pop_fail_stack, set_regs, free_fail_stack_return):
46142         (sift_states_backward, clean_state_log_if_needed):
46143         (sub_epsilon_src_nodes, add_epsilone_src_nodes, merge_state_with_log):
46144         (find_recover_state, transit_state_sb, transit_state_mb):
46145         (transit_state_bkref, build_trtable, match_ctx_clean):
46146         Likewise.
46147         * lib/regcomp.c (parse_dup_op): Add an extra test if Idx is unsigned,
46148         to work around an assumption that REG_MISSING is negative.
46149
46150         * lib/regcomp.c (re_comp) [defined _REGEX_RE_COMP || defined _LIBC]:
46151         (seek_collating_symbol_entry) [defined _LIBC]:
46152         (lookup_collation_sequence_value) [defined _LIBC]:
46153         (build_range_exp, build_collating_symbol) [defined _LIBC]:
46154         Use prototypes rather than old-style function definitions.
46155         * lib/regexec.c (re_exec) [defined _REGEX_RE_COMP || defined _LIBC]:
46156         (transit_state_sb) [0]:
46157         (find_collation_sequence_value) [defined _LIBC]: Likewise.
46158
46159         * lib/regexec.c (re_search_internal): Simplify update of rm_so and
46160         rm_eo.
46161
46162         * lib/regcomp.c (re_compile_fastmap_iter, init_dfa, init_word_char):
46163         (optimize_subexps, lower_subexp):
46164         Don't assume 1<<31 has defined behavior on hosts with 32-bit int,
46165         since the signed shift might overflow.  Use 1u<<31 instead.
46166         * lib/regex_internal.h (bitset_set, bitset_clear, bitset_contain):
46167         Likewise.
46168         * lib/regexec.c (check_dst_limits_calc_pos_1,
46169         check_subexp_matching_top): Likewise.
46170
46171         * lib/regcomp.c (optimize_subexps, lower_subexp):
46172         Use CHAR_BIT rather than 8, for clarity.
46173         * lib/regexec.c (check_dst_limits_calc_pos_1):
46174         (check_subexp_matching_top): Likewise.
46175         * lib/regcomp.c (init_dfa): Make table_size unsigned, so that we don't
46176         have to worry about portability issues when shifting it left.
46177         Remove no-longer-needed test for table_size > 0.
46178         * lib/regcomp.c (parse_sub_exp): Do not shift more bits than there are
46179         in a word, as the resulting behavior is undefined.
46180         * lib/regexec.c (check_dst_limits_calc_pos_1): Likewise;
46181         in one case, a <= should have been an <, and in another case the
46182         whole test was missing.
46183         * lib/regex_internal.h (BYTE_BITS): Remove.  All uses changed to
46184         the standard name CHAR_BIT.
46185         * lib/regexec.c (match_ctx_add_entry): Don't assume that ~0 == -1;
46186         this is not true on one's complement and signed-magnitude hosts.
46187
46188         * lib/regex_internal.h (re_sub_match_top_t): Remove unused member
46189         next_last_offset.
46190         (struct re_dfa_t): Remove unused member states_alloc.
46191         * lib/regcomp.c (init_dfa): Don't initialize unused members.
46192
46193 2005-08-31  Paul Eggert  <eggert@cs.ucla.edu>
46194
46195         * m4/regex.m4 (gl_REGEX): Require AC_SYS_LARGEFILE, Define
46196         _REGEX_LARGE_OFFSETS).  Test for regoff_t/off_t bug in 64-bit
46197         and large-file glibc and in 32-bit large-file Solaris.
46198
46199 2005-08-31  Paul Eggert  <eggert@cs.ucla.edu>
46200
46201         * lib/regex_internal.c (re_string_reconstruct): Don't assume buffer
46202         lengths fit in regoff_t; this isn't true if regoff_t is the same
46203         width as size_t.
46204         * lib/regex.c (re_search_internal): 5th arg is LAST_START
46205         (= START + RANGE) instead of RANGE.  This avoids overflow
46206         problems when regoff_t is the same width as size_t.
46207         All callers changed.
46208         (re_search_2_stub): Check for overflow when adding the
46209         sizes of the two strings.
46210         (re_search_stub): Check for overflow when adding START
46211         to RANGE; if it occurs, substitute the extreme value.
46212
46213 2005-08-31  Paul Eggert  <eggert@cs.ucla.edu>
46214
46215         * config/srclist.txt: Add glibc bugs 1273, 1278-1282, 1284.
46216
46217 2005-08-31  Jim Meyering  <jim@meyering.net>
46218
46219         * lib/regcomp.c (search_duplicated_node): Make first pointer arg
46220         a pointer-to-const.
46221         * lib/regex_internal.c (create_ci_newstate, create_cd_newstate):
46222         (register_state): Likewise.
46223         * lib/regexec.c (search_cur_bkref_entry, check_dst_limits):
46224         (check_dst_limits_calc_pos_1, check_dst_limits_calc_pos):
46225         (group_nodes_into_DFAstates): Likewise.
46226
46227 2005-08-31  Jim Meyering  <jim@meyering.net>
46228
46229         * check-module: Add a FIXME comment.
46230
46231 2005-08-31  Eric Blake  <ebb9@byu.net>
46232
46233         * modules/unistd-safer (Files): Add unistd--.h.
46234         * modules/stdio-safer (Files): Add stdio--.h.
46235
46236 2005-08-31  Derek Price  <derek@ximbiot.com>
46237
46238         * lib/getdelim.c (getdelim): Return EOF on EOF.
46239         Reported by Larry Jones <lawrence.jones@ugs.com>.
46240
46241 2005-08-31  Bruno Haible  <bruno@clisp.org>
46242
46243         Avoid unnecessary diffs in the generated lib/Makefile.am.
46244         * gnulib-tool (func_emit_lib_Makefile_am): Don't write the cmd into
46245         the generated files.
46246         (func_import): Don't set cmd.
46247
46248 2005-08-31  Bruno Haible  <bruno@clisp.org>
46249
46250         * lib/strstr.c: Include <stddef.h>, for NULL.
46251         * lib/strcasestr.c: Likewise.
46252         Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
46253
46254 2005-08-31  Bruno Haible  <bruno@clisp.org>
46255
46256         * gnulib-tool: New option --macro-prefix.
46257         (func_import): Use macro_prefix.
46258         (import): Handle option --macro-prefix.
46259
46260 2005-08-31  Bruno Haible  <bruno@clisp.org>
46261
46262         * gnulib-tool (import): Rename most ac_* variables to cached_*.
46263         Also use new variables cached_lgpl, cached_libtool.
46264
46265 2005-08-31  Bruno Haible  <bruno@clisp.org>
46266
46267         * gnulib-tool (func_import): Require AC_GNU_SOURCE etc. instead of
46268         always instantiating them.
46269
46270 2005-08-31  Bruno Haible  <bruno@clisp.org>
46271
46272         * gnulib-tool (func_import): Read the previous cached settings
46273         from gnulib-cache.m4 and gnulib-comp.m4. Remove files that were
46274         earlier added by gnulib but are now dropped. Warn when a gnulib file
46275         overwrites a non-gnulib file.
46276
46277 2005-08-31  Bruno Haible  <bruno@clisp.org>
46278
46279         * gnulib-tool (func_import): Generate two files gnulib-cache.m4 and
46280         gnulib-comp.m4 instead of a single gnulib.m4, to make it easy for
46281         projects that don't keep autogenerated files in CVS. Put into
46282         actioncmd only the specified modules, not the transitive closure.
46283
46284 2005-08-31  Bruno Haible  <bruno@clisp.org>
46285
46286         * gnulib-tool (func_import): Fix defaulting of $libname and $libtool.
46287         Create directories that shall be filled.
46288         (import): Don't look for gl_* macros in configure.ac. Recurse across
46289         all directories containing a gnulib-cache.m4 files, if meaningful.
46290
46291 2005-08-31  Bruno Haible  <bruno@clisp.org>
46292
46293         * gnulib-tool (func_import): Emit also a stub for gl_LIBTOOL.
46294         (import): Set seen_libtool when we see gl_LIBTOOL.
46295
46296 2005-08-31  Bruno Haible  <bruno@clisp.org>
46297
46298         * gnulib-tool (func_import): Also copy m4/gnulib-tool.m4. Omit
46299         declaration macro definitions from generated gnulib.m4.
46300
46301 2005-08-30  Oskar Liljeblad  <oskar@osk.mine.nu>
46302
46303         * lib/iconvme.h: Add prototype for iconv_alloc.
46304
46305 2005-08-29  Simon Josefsson  <jas@extundo.com>
46306
46307         * lib/iconvme.c: Fix errno.
46308
46309 2005-08-29  Bruno Haible  <bruno@clisp.org>
46310
46311         * gnulib-tool: Enclose all occurrences of $destdir in "...", so
46312         that it works when the directory contains spaces.
46313
46314 2005-08-29  Bruno Haible  <bruno@clisp.org>
46315
46316         * gnulib-tool (import): Avoid unnecessary spaces in $avoidlist.
46317
46318 2005-08-29  Bruno Haible  <bruno@clisp.org>
46319
46320         * gnulib-tool (func_import): Emit more comments into gnulib.m4.
46321         Emit more advice.
46322
46323 2005-08-29  Bruno Haible  <bruno@clisp.org>
46324         and Stepan Kasal  <kasal@ucw.cz>
46325
46326         * check-module: If more parameters are given, check each of them
46327         separately; add more exceptions, as noted by Jim Meyering.
46328         (check_module): New procedure.
46329         (%exempt_header): Now contains all exceptions.
46330
46331 2005-08-29  Ben Pfaff  <blp@cs.stanford.edu>
46332
46333         * modules/byteswap (Makefile.am): Fix rule to not assume GNU make.
46334
46335 2005-08-29  Oskar Liljeblad  <oskar@osk.mine.nu>
46336
46337         * lib/iconvme.c: Split iconv_string into iconv_alloc.
46338
46339 2005-08-28  Bruno Haible  <bruno@clisp.org>
46340
46341         * m4/gnulib-tool.m4: New file.
46342
46343 2005-08-27  Jim Meyering  <jim@meyering.net>
46344
46345         * modules/unistd-safer (Files): Add pipe-safer.c.
46346         * modules/fcntl-safer (Files): Add creat-safer.c.
46347
46348 2005-08-27  Jim Meyering  <jim@meyering.net>
46349
46350         * m4/stdlib-safer.m4: New file.  From coreutils.
46351         * m4/stdio-safer.m4 (gl_STDIO_SAFER): Add stdio--.h.
46352         * m4/fcntl-safer.m4 (gl_FCNTL_SAFER): Add creat-safer.c to the
46353         AC_LIBSOURCES list and arrange to compile it via AC_LIBOBJ.
46354         * m4/unistd-safer.m4 (gl_UNISTD_SAFER): Likewise, add pipe-safer.c.
46355         Add pipe-safer.c and unistd--.h to the AC_LIBSOURCES list.
46356
46357 2005-08-27  Jim Meyering  <jim@meyering.net>
46358
46359         * lib/fopen-safer.c: Merge minor changes from coreutils.
46360         * lib/dup-safer.c: Likewise.
46361         * lib/fd-safer.c: Likewise.
46362
46363         Merge from coreutils.
46364         * lib/stdio--.h: New file.
46365         * lib/stdlib--.h: New file.
46366         * lib/mkstemp-safer.c: New file.
46367
46368         GNU tar needs these.
46369         * lib/pipe-safer.c: New file.
46370         * lib/creat-safer.c: New file.
46371         * lib/fcntl--.h (creat): Define to creat_safer.
46372         * lib/fcntl-safer.h: Include <sys/types.h> and declare creat_safer.
46373         * lib/unistd--.h (pipe): Define to pipe_safer.
46374         * lib/unistd-safer.h: Declare pipe_safer.
46375
46376 2005-08-26  Simon Josefsson  <jas@extundo.com>
46377
46378         * lib/getpass.c: Use _WIN32 instead of WIN32, suggested by Bruno
46379         Haible <bruno@clisp.org>.
46380
46381 2005-08-26  Paul Eggert  <eggert@cs.ucla.edu>
46382
46383         * lib/regex_internal.h: Remove all references to
46384         RE_NO_INTERNAL_PROTOTYPES; no longer neeeded now that we assume C89
46385         or better.
46386         (bitset_not, bitset_merge, bitset_not_merge):
46387         (bitset_mask, re_string_allocate, re_string_construct):
46388         (re_string_reconstruct, re_string_destruct, re_string_elem_size_at):
46389         (re_string_char_size_at, re_string_wchar_at, re_string_peek_byte_case):
46390         (re_string_fetch_byte_case, re_node_set_alloc, re_node_set_init_1):
46391         (re_node_set_init_2, re_node_set_init_copy, re_node_set_add_intersect):
46392         (re_node_set_init_union, re_node_set_merge, re_node_set_insert):
46393         (re_node_set_insert_last, re_node_set_compare, re_node_set_contains):
46394         (re_node_set_remove_at, re_dfa_add_node, re_acquire_state):
46395         (re_acquire_state_context):
46396         Remove unnecessary forward decls.
46397         (re_string_char_size_at, re_string_wchar_at, re_string_elem_size_at):
46398         Put __attribute at function definition,
46399         now that the function decl has been removed.
46400         * lib/regex_internal.c (re_string_peek_byte_case):
46401         (re_string_fetch_byte_case, re_node_set_compare, re_node_set_contains):
46402         Likewise.
46403
46404 2005-08-25  Stepan Kasal  <kasal@ucw.cz>
46405
46406         * m4/regex.m4: Add AC_PREREQ(2.50).
46407         (gl_REGEX): If --with-included-regex was given, skip the autodetection.
46408
46409 2005-08-25  Simon Josefsson  <jas@extundo.com>
46410
46411         * m4/getpass.m4: Check for termios.h, tcgetattr, tcsetattr, and
46412         __fsetlocking.
46413
46414 2005-08-25  Simon Josefsson  <jas@extundo.com>
46415
46416         * lib/getpass.c: Add WIN32 implementation.  Conditionalize use of
46417         termios.h, tcgetattr, tcsetattr and __fsetlocking.  Remove some
46418         GLIBC specific code.
46419
46420 2005-08-25  Paul Eggert  <eggert@cs.ucla.edu>
46421
46422         Make regex safe for g++.  This fixes one real bug (an "err"
46423         that should have been "*err").  g++ problem reported by
46424         Sam Steingold.
46425         * lib/regex_internal.h (re_calloc): New macro, consistent with
46426         re_malloc etc.  All callers of calloc changed to use re_calloc.
46427         * lib/regex_internal.c (build_wcs_upper_buffer): Return reg_errcode_t,
46428         not int.  All callers changed.
46429         * lib/regcomp.c (re_compile_fastmap_iter): Don't use
46430         alloca (mb_cur_max); just use an array of size MB_LEN_MAX.
46431         * lib/regexec.c (push_fail_stack): Use re_realloc, not realloc.
46432         (find_recover_state): Change "err" to "*err"; this fixes what
46433         appears to be a real bug.
46434         (check_arrival_expand_ecl_sub): Be consistent about reg_errcode_t
46435         versus int.
46436
46437 2005-08-25  Paul Eggert  <eggert@cs.ucla.edu>
46438
46439         * modules/regex (Depends-on): Add malloc, since the code
46440         assumes that !malloc(0) means failure.
46441
46442 2005-08-25  Paul Eggert  <eggert@cs.ucla.edu>
46443
46444         * lib/regexec.c (set_regs): Don't alloca with an unbounded size.
46445
46446         alloca modernization/simplification for regex.
46447         * lib/regex.c: Remove portability cruft for alloca.  This no longer
46448         needs to be at the start of the file, and can be moved into
46449         regex_internal.h and simplified.
46450         * lib/regex_internal.h: Include <alloca.h>.
46451         (__libc_use_alloca) [!defined _LIBC]: New macro.
46452         * lib/regexec.c (build_trtable): Remove "#ifdef _LIBC", since the code
46453         now works outside glibc.
46454
46455 2005-08-25  Paul Eggert  <eggert@cs.ucla.edu>
46456
46457         * config/srclist.txt: Add glibc bugs 1241, 1245.
46458
46459 2005-08-25  Jim Meyering  <jim@meyering.net>
46460
46461         * lib/open-safer.c: Include <config.h>.
46462         Otherwise, we'd lose LARGEFILE support in any file using
46463         e.g. "fcntl--.h"
46464
46465 2005-08-25  Bruno Haible  <bruno@clisp.org>
46466
46467         * m4/minmax.m4: Require autoconf 2.52.
46468         (gl_MINMAX_IN_HEADER): Add comments. Use m4_pushdef/m4_popdef instead
46469         of define/undefine. Use AS_TR_SH and AS_TR_CPP as more robust
46470         alternatives of translit over the alphabet.
46471         Based on a patch from Stepan Kasal <kasal@ucw.cz>.
46472
46473 2005-08-24  Simon Josefsson  <jas@extundo.com>
46474
46475         * tests/test-getpass.c: New file.
46476
46477 2005-08-24  Paul Eggert  <eggert@cs.ucla.edu>
46478
46479         * m4/regex.m4 (gl_REGEX): Use POSIX-compliant spellings when testing
46480         for GNU regex features.
46481
46482 2005-08-24  Paul Eggert  <eggert@cs.ucla.edu>
46483
46484         * lib/regcomp.c (regerror): 2nd arg is 'restrict', as per POSIX.
46485         * lib/regex.h (regerror): Likewise.
46486
46487         * lib/regex.c: Do not include <sys/types.h>, as POSIX no longer
46488         requires this.  (The code never needed it.)
46489
46490         * lib/regcomp.c, regex_internal.c, regex_internal.h, regexec.c:
46491         All uses of recently-renamed identifiers changed to use the new,
46492         POSIX-compliant names.  The code will build and run just fine
46493         without these changes, but it's better to eat our own dog food
46494         and use the standard-conforming names.
46495
46496         * lib/regex.h: Fix a multitude of POSIX name space violations.
46497         These changes have an effect only for programs that define
46498         _POSIX_C_SOURCE, _POSIX_SOURCE, or _XOPEN_SOURCE; they
46499         do not change anything for programs compiled in the normal way.
46500         Also, there is no effect on the ABI.
46501
46502         (_REGEX_SOURCE): New macro.
46503         Do not include <stddef.h> if _XOPEN_SOURCE and VMS are both
46504         defined and _GNU_SOURCE is not; this fixes a name space violation.
46505
46506         Rename the following macros to obey POSIX requirements.
46507         The old names are still visible as macros if _REGEX_SOURCE is defined.
46508         (REG_BACKSLASH_ESCAPE_IN_LISTS): renamed from
46509         RE_BACKSLASH_ESCAPE_IN_LISTS.
46510         (REG_BK_PLUS_QM): renamed from RE_BK_PLUS_QM.
46511         (REG_CHAR_CLASSES): renamed from RE_CHAR_CLASSES.
46512         (REG_CONTEXT_INDEP_ANCHORS): renamed from RE_CONTEXT_INDEP_ANCHORS.
46513         (REG_CONTEXT_INDEP_OPS): renamed from RE_CONTEXT_INDEP_OPS.
46514         (REG_CONTEXT_INVALID_OPS): renamed from RE_CONTEXT_INVALID_OPS.
46515         (REG_DOT_NEWLINE): renamed from RE_DOT_NEWLINE.
46516         (REG_DOT_NOT_NULL): renamed from RE_DOT_NOT_NULL.
46517         (REG_HAT_LISTS_NOT_NEWLINE): renamed from RE_HAT_LISTS_NOT_NEWLINE.
46518         (REG_INTERVALS): renamed from RE_INTERVALS.
46519         (REG_LIMITED_OPS): renamed from RE_LIMITED_OPS.
46520         (REG_NEWLINE_ALT): renamed from RE_NEWLINE_ALT.
46521         (REG_NO_BK_BRACES): renamed from RE_NO_BK_BRACES.
46522         (REG_NO_BK_PARENS): renamed from RE_NO_BK_PARENS.
46523         (REG_NO_BK_REFS): renamed from RE_NO_BK_REFS.
46524         (REG_NO_BK_VBAR): renamed from RE_NO_BK_VBAR.
46525         (REG_NO_EMPTY_RANGES): renamed from RE_NO_EMPTY_RANGES.
46526         (REG_UNMATCHED_RIGHT_PAREN_ORD): renamed from
46527         RE_UNMATCHED_RIGHT_PAREN_ORD.
46528         (REG_NO_POSIX_BACKTRACKING): renamed from RE_NO_POSIX_BACKTRACKING.
46529         (REG_NO_GNU_OPS): renamed from RE_NO_GNU_OPS.
46530         (REG_DEBUG): renamed from RE_DEBUG.
46531         (REG_INVALID_INTERVAL_ORD): renamed from RE_INVALID_INTERVAL_ORD.
46532         (REG_IGNORE_CASE): renamed from RE_ICASE.  This renaming is a bit
46533         unusual, since we can't clash with the POSIX REG_ICASE.
46534         (REG_CARET_ANCHORS_HERE): renamed from RE_CARET_ANCHORS_HERE.
46535         (REG_CONTEXT_INVALID_DUP): renamed from RE_CONTEXT_INVALID_DUP.
46536         (REG_NO_SUB): renamed from RE_NO_SUB.
46537         (REG_SYNTAX_EMACS): renamed from RE_SYNTAX_EMACS.
46538         (REG_SYNTAX_AWK): renamed from RE_SYNTAX_AWK.
46539         (REG_SYNTAX_GNU_AWK): renamed from RE_SYNTAX_GNU_AWK.
46540         (REG_SYNTAX_POSIX_AWK): renamed from RE_SYNTAX_POSIX_AWK.
46541         (REG_SYNTAX_GREP): renamed from RE_SYNTAX_GREP.
46542         (REG_SYNTAX_EGREP): renamed from RE_SYNTAX_EGREP.
46543         (REG_SYNTAX_POSIX_EGREP): renamed from RE_SYNTAX_POSIX_EGREP.
46544         (REG_SYNTAX_ED): renamed from RE_SYNTAX_ED.
46545         (REG_SYNTAX_SED): renamed from RE_SYNTAX_SED.
46546         (_REG_SYNTAX_POSIX_COMMON): renamed from _RE_SYNTAX_POSIX_COMMON.
46547         (REG_SYNTAX_POSIX_BASIC): renamed from RE_SYNTAX_POSIX_BASIC.
46548         (REG_SYNTAX_POSIX_MINIMAL_BASIC): renamed from
46549         RE_SYNTAX_POSIX_MINIMAL_BASIC.
46550         (REG_SYNTAX_POSIX_EXTENDED): renamed from RE_SYNTAX_POSIX_EXTENDED.
46551         (REG_SYNTAX_POSIX_MINIMAL_EXTENDED): renamed from
46552         RE_SYNTAX_POSIX_MINIMAL_EXTENDED.
46553         (REG_DUP_MAX): renamed from RE_DUP_MAX.  No need to undef it.
46554         (REG_UNALLOCATED): Renamed from REGS_UNALLOCATED.
46555         (REG_REALLOCATE): Renamed from REGS_REALLOCATE.
46556         (REG_FIXED): Renamed from REGS_FIXED.
46557         (REG_NREGS): Renamed from RE_NREGS.
46558
46559         (REG_ICASE, REG_NEWLINE, REG_NOSUB): Do not depend on the values
46560         of other REG_* macros, since POSIX says the user is allowed to
46561         #undef these macros selectively.
46562
46563         (reg_errcode_t): Update comment stating what other tables need
46564         to be consistent.
46565
46566         Rename the following enum values to obey POSIX requirements.
46567         The old names are still visible as macros.
46568         (_REG_ENOSYS): Renamed from REG_ENOSYS.  Define even if _XOPEN_SOURCE
46569         is not defined, since GNU is supposed to be a superset of POSIX as
46570         much as possible, and since we want reg_errcode_t to be a signed
46571         type for implementation consistency.
46572         (_REG_NOERROR): Renamed from REG_NOERROR.
46573         (_REG_NOMATCH): Renamed from REG_NOMATCH.
46574         (_REG_BADPAT): Renamed from REG_BADPAT.
46575         (_REG_ECOLLATE): Renamed from REG_ECOLLATE.
46576         (_REG_ECTYPE): Renamed from REG_ECTYPE.
46577         (_REG_EESCAPE): Renamed from REG_EESCAPE.
46578         (_REG_ESUBREG): Renamed from REG_ESUBREG.
46579         (_REG_EBRACK): Renamed from REG_EBRACK.
46580         (_REG_EPAREN): Renamed from REG_EPAREN.
46581         (_REG_EBRACE): Renamed from REG_EBRACE.
46582         (_REG_BADBR): Renamed from REG_BADBR.
46583         (_REG_ERANGE): Renamed from REG_ERANGE.
46584         (_REG_ESPACE): Renamed from REG_ESPACE.
46585         (_REG_BADRPT): Renamed from REG_BADRPT.
46586         (_REG_EEND): Renamed from REG_EEND.
46587         (_REG_ESIZE): Renamed from REG_ESIZE.
46588         (_REG_ERPAREN): Renamed from REG_ERPAREN.
46589         (REG_ENOSYS, REG_NOERROR, REG_NOMATCH, REG_BADPAT, REG_ECOLLATE):
46590         (REG_ECTYPE, REG_EESCAPE, REG_ESUBREG, REG_EBRACK, REG_EPAREN):
46591         (REG_EBRACE, REG_BADBR, REG_ERANGE, REG_ESPACE, REG_BADRPT, REG_EEND):
46592         (REG_ESIZE, REG_ERPAREN): Now macros, not enum constants.
46593
46594         (_REG_RE_NAME, _REG_RM_NAME): New macros.
46595         (REG_TRANSLATE_TYPE): Renamed from RE_TRANSLATE_TYPE.  All uses
46596         changed.  But support the old name if the new one is not defined
46597         and if _REGEX_SOURCE.
46598
46599         Change the following member names in struct re_pattern_buffer.
46600         The old names are still supported if !_REGEX_SOURCE.
46601         The new names are always supported, regardless of _REGEX_SOURCE.
46602         (re_buffer): Renamed from buffer.
46603         (re_allocated): Renamed from allocated.
46604         (re_used): Renamed from used.
46605         (re_syntax): Renamed from syntax.
46606         (re_fastmap): Renamed from fastmap.
46607         (re_translate): Renamed from translate.
46608         (re_can_be_null): Renamed from can_be_null.
46609         (re_regs_allocated): Renamed from regs_allocated.
46610         (re_fastmap_accurate): Renamed from fastmap_accurate.
46611         (re_no_sub): Renamed from no_sub.
46612         (re_not_bol): Renamed from not_bol.
46613         (re_not_eol): Renamed from not_eol.
46614         (re_newline_anchor): Renamed from newline_anchor.
46615
46616         Change the following member names in struct re_registers.
46617         The old names are still supported if !_REGEX_SOURCE.
46618         The new names are always supported, regardless of _REGEX_SOURCE.
46619         (rm_num_regs): Renamed from num_regs.
46620         (rm_start): Renamed from start.
46621         (rm_end): Renamed from end.
46622
46623         (re_set_syntax, re_compile_pattern, re_compile_fastmap):
46624         (re_search, re_search_2, re_match, re_match_2, re_set_registers):
46625         Prepend __ to parameter names.
46626
46627         Undo yesterday's changes.
46628
46629 2005-08-24  Paul Eggert  <eggert@cs.ucla.edu>
46630
46631         * config/srclist.txt: Remove glibc bug 1233 and add 1236, which
46632         supersedes it. Add glibc bugs 1237, 1238, 1240.  Comment out
46633         lib/regex.c.
46634
46635 2005-08-24  Jim Meyering  <jim@meyering.net>
46636
46637         Sync from coreutils.
46638         * m4/fcntl-safer.m4: New file.
46639
46640         * m4/xgetcwd.m4: Use AC_LIBSOURCES and AC_LIBOBJ to indicate source
46641         and object files for this module.
46642
46643 2005-08-24  Jim Meyering  <jim@meyering.net>
46644
46645         Sync from coreutils.
46646         * lib/fcntl--.h, lib/fcntl-safer.h, lib/open-safer.c: New files.
46647
46648 2005-08-24  Jim Meyering  <jim@meyering.net>
46649
46650         * modules/xgetcwd (Makefile.am): Remove `lib_SOURCES += ...' line,
46651         now that xgetcwd.m4 requires xgetcwd.c and xgetcwd.h.
46652
46653 2005-08-24  Jim Meyering  <jim@meyering.net>
46654
46655         * modules/fcntl-safer: New module.
46656         * modules/fts (Depends-on): Add fcntl-safer.
46657         * MODULES.html.sh (File descriptor based Input/Output):
46658         Add fcntl-safer.
46659
46660 2005-08-24  Bruno Haible  <bruno@clisp.org>
46661
46662         Support for unit test modules.
46663         * modules/README: Mention tests modules.
46664         * modules/TEMPLATE-TESTS: New file.
46665         * gnulib-tool: New options --extract-tests-module, --with-tests and
46666         --tests-base (unused for the moment).
46667         (testsbase, inctests): New variables.
46668         (func_all_modules): Exclude TEMPLATE-TESTS and *-tests.
46669         (func_verify_module): Exclude TEMPLATE-TESTS.
46670         (func_verify_nontests_module, func_verify_tests_module): New functions.
46671         (func_get_dependencies): Add implicit dependency for tests modules.
46672         (func_get_tests_module): New function.
46673         (func_modules_transitive_closure): When --with-tests was specified,
46674         include the unit tests as well, unless explicitly avoided.
46675         (func_emit_lib_Makefile_am): Ignore the tests modules here.
46676         (func_emit_tests_Makefile_am): New function.
46677         (func_create_testdir): When --with-tests was specified, emit a
46678         tests/ directory.
46679         * MODULES.html.sh (Future developments): Update.
46680
46681 2005-08-24  Bruno Haible  <bruno@clisp.org>
46682
46683         * modules/tls-tests: New file.
46684         * tests/test-tls.c: New file, from GNU gettext.
46685
46686 2005-08-24  Bruno Haible  <bruno@clisp.org>
46687
46688         * modules/lock-tests: New file.
46689         * tests/test-lock.c: New file, from GNU gettext.
46690
46691 2005-08-24  Bruno Haible  <bruno@clisp.org>
46692
46693         * lib/lock.h: Add multiple inclusion guard.
46694         * lib/tls.h: Add multiple inclusion guard.
46695
46696 2005-08-24  Bruno Haible  <bruno@clisp.org>
46697
46698         * gnulib-tool: Add support for the --aux-dir option to
46699         --create-testdir, --create-megatestdir, --test, --megatest.
46700         (func_create_testdir, func_create_megatestdir): Optionally emit a
46701         AC_CONFIG_AUX_DIR directive.
46702         (create-testdir, create-megatestdir, test, megatest): Provide a
46703         default value for $auxdir.
46704
46705 2005-08-24  Bruno Haible  <bruno@clisp.org>
46706
46707         * gnulib-tool (import): Use compound statement instead of subshell
46708         where possible.
46709
46710 2005-08-24  Bruno Haible  <bruno@clisp.org>
46711
46712         * gnulib-tool (import): Change --aux-dir default to "build-aux".
46713
46714 2005-08-24  Bruno Haible  <bruno@clisp.org>
46715
46716         * gnulib-tool (func_version): Update.
46717
46718 2005-08-24  Bruno Haible  <bruno@clisp.org>
46719
46720         * gnulib-tool (func_import, func_create_testdir,
46721         func_create_megatestdir): Quote all autoconf macro arguments.
46722
46723 2005-08-24  Bruno Haible  <bruno@clisp.org>
46724
46725         * gnulib-tool (func_create_megatestdir): Call autoreconf without the
46726         option --force, because --force causes the aclocal.m4 of each
46727         subdirectory to be newer than the corresponding config.h.in.
46728
46729 2005-08-23  Paul Eggert  <eggert@cs.ucla.edu>
46730
46731         * m4/regex.m4 (gl_INCLUDED_REGEX): Remove; no longer used.
46732         All contents moved to gl_REGEX.
46733         (gl_REGEX): Don't bother checking whether lib/regex.c exists;
46734         assume that it does.
46735
46736 2005-08-23  Paul Eggert  <eggert@cs.ucla.edu>
46737
46738         * lib/regex.h (REG_NOSYS)
46739         [!defined _XOPEN_SOURCE && 200112L <= _POSIX_C_SOURCE]:
46740         Define, since POSIX requires it as of 2001.
46741         (_REG_ENOSYS)
46742         [! (defined _XOPEN_SOURCE || 200112L <= _POSIX_C_SOURCE)]:
46743         New private symbol, used to keep the enum signed in all cases.
46744         * lib/regex.h (RE_NO_EMPTY_RANGES): Fix doc bug reported by James
46745         Youngman in
46746         <http://lists.gnu.org/archive/html/bug-gnulib/2005-07/msg00132.html>.
46747
46748         * lib/regex_internal.c (re_string_skip_chars, register_state):
46749         (calc_state_hash):
46750         Remove forward decls; no longer needed now that we use prototypes.
46751         * lib/regexec.c (acquire_init_state_context, check_halt_node_context):
46752         (proceed_next_node, pop_fail_stack, sub_epsilon_src_nodes):
46753         (clean_state_log_if_needed): Likewise.
46754
46755 2005-08-23  Paul Eggert  <eggert@cs.ucla.edu>
46756
46757         * config/srclist.txt: Add glibc bugs 1231-1233.
46758
46759 2005-08-20  Paul Eggert  <eggert@cs.ucla.edu>
46760
46761         Fix problems reported by Sam Steingold in
46762         <http://lists.gnu.org/archive/html/bug-gnulib/2005-08/msg00007.html>.
46763         * lib/regexec.c (sift_states_bkref): Fix portability bug: the code
46764         assumed that reg_errcode_t is a signed type, which is not
46765         necessarily true if _XOPEN_SOURCE is not defined.
46766         * lib/regex_internal.c (calc_state_hash): Put 'inline' before type,
46767         since some compilers warn about it otherwise.
46768
46769 2005-08-20  Paul Eggert  <eggert@cs.ucla.edu>
46770
46771         * lib/regcomp.c (create_initial_state): Remove duplicate decl.
46772         (init_word_char, create_initial_state, duplicate_node_closure):
46773         (fetch_token, peek_token_bracket, build_range_exp):
46774         (build_collating_symbol): Remove forward decls; no longer needed
46775         now that we use prototypes.
46776
46777         * lib/regcomp.c:
46778         (re_compile_pattern, re_set_syntax, re_compile_fastmap):
46779         (re_compile_fastmap_iter, regcomp, regerror, regfree):
46780         (re_compile_internal, init_dfa, init_word_char, free_workarea_compile):
46781         (create_initial_state, optimize_utf8, analyze, postorder, preorder):
46782         (optimize_subexps, lower_subexps, lower_subexp, calc_first, calc_next):
46783         (link_nfa_nodes, duplicate_node_closure, search_duplicated_node):
46784         (duplicate_node, calc_inveclosure, calc_eclosure, calc_eclosure_iter):
46785         (fetch_token, peek_token, peek_token_bracket, parse, parse_reg_exp):
46786         (parse_branch, parse_expression, parse_sub_exp, parse_dup_op):
46787         (build_range_exp, build_collating_symbol, parse_bracket_exp):
46788         (parse_bracket_element, parse_bracket_symbol, build_equiv_class):
46789         (build_charclass, build_charclass_op, fetch_number, create_tree):
46790         (create_token_tree, mark_opt_subexp, duplicate_tree):
46791         Use prototypes rather than old-style definitions.
46792
46793         * lib/regex_internal.c:
46794         (re_string_allocate, re_string_construct, re_string_realloc_buffers):
46795         (re_string_construct_common, build_wcs_buffer, build_wcs_upper_buffer):
46796         (re_string_skip_chars, build_upper_buffer, re_string_translate_buffer):
46797         (re_string_reconstruct, re_string_peek_byte_case):
46798         (re_string_fetch_byte_case, re_string_destruct, re_string_context_at):
46799         (re_node_set_alloc, re_node_set_init_1, re_node_set_init_2):
46800         (re_node_set_init_copy, re_node_set_add_intersect):
46801         (re_node_set_init_union, re_node_set_merge, re_node_set_insert):
46802         (re_node_set_insert_last, re_node_set_compare, re_node_set_contains):
46803         (re_node_set_remove_at, re_dfa_add_node, calc_state_hash):
46804         (re_acquire_state, re_acquire_state_context, register_state):
46805         (create_ci_newstate, create_cd_newstate, free_state):
46806         Likewise.
46807         * lib/regexec.c (regexec, re_match, re_search, re_match_2,
46808         re_search_2):
46809         (re_search_2_stub, re_search_stub, re_copy_regs, re_set_registers):
46810         (re_search_internal, prune_impossible_nodes):
46811         (acquire_init_state_context, check_matching, static):
46812         (check_halt_node_context, check_halt_state_context, proceed_next_node):
46813         (push_fail_stack, pop_fail_stack, set_regs, free_fail_stack_return):
46814         (update_regs, sift_states_backward, build_sifted_states):
46815         (clean_state_log_if_needed, merge_state_array):
46816         (update_cur_sifted_state, add_epsilon_src_nodes):
46817         (sub_epsilon_src_nodes, check_dst_limits, check_dst_limits_calc_pos_1):
46818         (check_dst_limits_calc_pos, check_subexp_limits, sift_states_bkref):
46819         (sift_states_iter_mb, transit_state, merge_state_with_log, static):
46820         (find_recover_state, check_subexp_matching_top, transit_state_mb):
46821         (transit_state_bkref, get_subexp, get_subexp_sub, find_subexp_node):
46822         (check_arrival, check_arrival_add_next_nodes):
46823         (check_arrival_expand_ecl, check_arrival_expand_ecl_sub):
46824         (expand_bkref_cache, build_trtable, group_nodes_into_DFAstates):
46825         (check_node_accept_bytes, check_node_accept, extend_buffers):
46826         (match_ctx_init, match_ctx_clean, match_ctx_free, match_ctx_add_entry):
46827         (search_cur_bkref_entry, match_ctx_add_subtop, match_ctx_add_sublast):
46828         (sift_ctx_init):
46829         Likewise.
46830
46831         * lib/regex_internal.h:
46832         (re_string_allocate, re_string_construct, re_string_reconstruct):
46833         (re_string_realloc_buffers, build_wcs_buffer, build_wcs_upper_buffer):
46834         (build_upper_buffer, re_string_translate_buffer, re_string_destruct):
46835         (re_string_elem_size_at, re_string_char_size_at, re_string_wchar_at):
46836         (re_string_context_at, re_string_peek_byte_case):
46837         (re_string_fetch_byte_case): Declare even if RE_NO_INTERNAL_PROTOTYPES
46838         is defined, since we now use prototypes always.
46839
46840         * lib/regex.h (_RE_ARGS): Remove.  No longer needed, since we assume
46841         C89 or better.  All uses removed.
46842
46843 2005-08-20  Paul Eggert  <eggert@cs.ucla.edu>
46844
46845         * config/srclist.txt: Add glibc bugs 1220-1227.
46846
46847 2005-08-20  Jim Meyering  <jim@meyering.net>
46848
46849         * lib/regexec.c (regexec, re_search_stub) [!_LIBC]: Omit declaration
46850         of unused local, dfa.
46851
46852 2005-08-20  Bruno Haible  <bruno@clisp.org>
46853
46854         * m4/regex.m4 (gl_PREREQ_REGEX): Require AC_GNU_SOURCE.
46855
46856 2005-08-19  Paul Eggert  <eggert@cs.ucla.edu>
46857
46858         * lib/regex_internal.c (re_string_realloc_buffers, re_node_set_insert):
46859         (re_node_set_insert_last, re_dfa_add_node):
46860         Rename local variables to avoid GCC shadowing warnings.
46861
46862 2005-08-19  Paul Eggert  <eggert@cs.ucla.edu>
46863
46864         * lib/regex_internal.c (re_acquire_state, re_acquire_state_context)
46865         [defined lint]: Suppress bogus uninitialized-variable warnings.
46866
46867         * lib/regcomp.c (duplicate_node): Return new index, not an error code,
46868         and let the caller return REG_ESPACE if out of space.  This
46869         removes an uninitialied-variable warning with GCC 4.0.1, and also
46870         avoids taking the address of a local variable.  All callers
46871         changed.
46872
46873 2005-08-19  Paul Eggert  <eggert@cs.ucla.edu>
46874
46875         * config/srclist.txt: Comment out $LIBCSRC/posix/regex_internal.c,
46876         $LIBCSRC/posix/regexec.c.
46877         Add glibc bug 1217 for regcomp.c.
46878
46879 2005-08-19  Jim Meyering  <jim@meyering.net>
46880
46881         * lib/regexec.c (proceed_next_node): Redo local variables to
46882         avoid GCC shadowing warnings.
46883
46884 2005-08-18  Bruno Haible  <bruno@clisp.org>
46885
46886         * lib/strstr.c (strstr): Fix return value in multibyte case.
46887         * lib/strcasestr.c (strcasestr): Likewise.
46888
46889 2005-08-17  Paul Eggert  <eggert@cs.ucla.edu>
46890
46891         * lib/regex.h: Remove useless space-before-tab.  From coreutils.
46892
46893 2005-08-17  Jim Meyering  <jim@meyering.net>
46894
46895         Make the %s format (seconds since the epoch) work for a negative
46896         number and when used with a zero-padded field width, e.g. %015s.
46897
46898         * lib/strftime.c (my_strftime): Move the `do_number_sign_and_padding'
46899         label so that it precedes the code to set `digits'.  Otherwise,
46900         %0Ns wouldn't work.  Before this change, `date -d @-22 +%05s' would
46901         print `00-22'.  Now, it prints `-0022', as it should.
46902
46903 2005-08-17  Bruno Haible  <bruno@clisp.org>
46904
46905         * modules/strstr (Files): Add m4/mbrtowc.m4.
46906         (Depends-on): Add mbuiter.
46907
46908 2005-08-17  Bruno Haible  <bruno@clisp.org>
46909
46910         * modules/strcasestr: New file.
46911         * MODULES.html.sh (String handling, based on ANSI C 89): Add
46912         strcasestr.
46913
46914 2005-08-17  Bruno Haible  <bruno@clisp.org>
46915
46916         * modules/strcase (Depends-on): Add mbuiter. Remove strnlen1, mbchar.
46917
46918 2005-08-17  Bruno Haible  <bruno@clisp.org>
46919
46920         * modules/mbuiter: New file.
46921         * MODULES.html.sh (Extended multibyte and wide character utilities):
46922         Add mbuiter.
46923
46924 2005-08-17  Bruno Haible  <bruno@clisp.org>
46925
46926         * m4/strstr.m4 (gl_FUNC_STRSTR): Use the replacement function always.
46927         (gl_PREREQ_STRSTR): Use gl_FUNC_MBRTOWC.
46928
46929 2005-08-17  Bruno Haible  <bruno@clisp.org>
46930
46931         * m4/strcasestr.m4: New file.
46932
46933 2005-08-17  Bruno Haible  <bruno@clisp.org>
46934
46935         * lib/strstr.h: Ignore HAVE_STRSTR, always declare the gnulib function.
46936         * lib/strstr.c: Completely rewritten, with multibyte locale support.
46937
46938 2005-08-17  Bruno Haible  <bruno@clisp.org>
46939
46940         * lib/strcasestr.h: New file.
46941         * lib/strcasestr.c: New file.
46942
46943 2005-08-17  Bruno Haible  <bruno@clisp.org>
46944
46945         * lib/strcasecmp.c: Use mbuiter.h.
46946
46947 2005-08-17  Bruno Haible  <bruno@clisp.org>
46948
46949         * lib/mbuiter.h: New file.
46950
46951 2005-08-16  Paul Eggert  <eggert@cs.ucla.edu>
46952
46953         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Do not override the results
46954         of gl_GETOPT_SUBSTITUTE.  That way, if both gl_GETOPT_SUBSTITUTE
46955         and gl_GETOPT are both invoked via different paths (as happens
46956         with GNU tar CVS because it uses both argp and getopt), the former
46957         wins.
46958
46959 2005-08-16  Bruno Haible  <bruno@clisp.org>
46960
46961         * modules/tls: New file.
46962         * MODULES.html.sh (Multithreading): Add tls.
46963
46964 2005-08-16  Bruno Haible  <bruno@clisp.org>
46965
46966         * modules/strnlen1: New file.
46967         * MODULES.html.sh (String handling): Add strnlen1.
46968
46969 2005-08-16  Bruno Haible  <bruno@clisp.org>
46970
46971         * modules/strcase (Files): Add m4/mbrtowc.m4.
46972         (Depends-on): Add strnlen1, mbchar.
46973
46974 2005-08-16  Bruno Haible  <bruno@clisp.org>
46975
46976         * modules/mbiter: New file.
46977         * MODULES.html.sh (Extended multibyte and wide character utilities):
46978         Add mbiter.
46979
46980 2005-08-16  Bruno Haible  <bruno@clisp.org>
46981
46982         * modules/mbfile: New file.
46983         * MODULES.html.sh (Extended multibyte and wide character utilities):
46984         Add mbfile.
46985
46986 2005-08-16  Bruno Haible  <bruno@clisp.org>
46987
46988         * modules/mbchar: New file.
46989         * MODULES.html.sh (Extended multibyte and wide character utilities):
46990         New section.
46991
46992 2005-08-16  Bruno Haible  <bruno@clisp.org>
46993
46994         * m4/tls.m4: New file, from GNU gettext.
46995
46996 2005-08-16  Bruno Haible  <bruno@clisp.org>
46997
46998         * m4/strcase.m4 (gl_FUNC_STRCASECMP): Use the replacement function
46999         always.
47000         (gl_PREREQ_STRCASECMP): Use gl_FUNC_MBRTOWC.
47001
47002 2005-08-16  Bruno Haible  <bruno@clisp.org>
47003
47004         * m4/mbiter.m4: New file.
47005
47006 2005-08-16  Bruno Haible  <bruno@clisp.org>
47007
47008         * m4/mbfile.m4: New file.
47009
47010 2005-08-16  Bruno Haible  <bruno@clisp.org>
47011
47012         * m4/mbchar.m4: New file.
47013
47014 2005-08-16  Bruno Haible  <bruno@clisp.org>
47015
47016         * lib/tls.h: New file, from GNU gettext.
47017         * lib/tls.c: New file, from GNU gettext.
47018
47019 2005-08-16  Bruno Haible  <bruno@clisp.org>
47020
47021         * lib/strnlen1.h: New file.
47022         * lib/strnlen1.c: New file.
47023
47024 2005-08-16  Bruno Haible  <bruno@clisp.org>
47025
47026         * lib/strcasecmp.c (struct mbiter_multi): Remove at_end field.
47027         (mbi_init): Update.
47028         (mbi_avail, mbi_advance): Let the iteration end before the terminating
47029         NUL byte, not after it.
47030
47031 2005-08-16  Bruno Haible  <bruno@clisp.org>
47032
47033         * lib/strcase.h (strcasecmp): Add note in comments.
47034         * lib/strncasecmp.c: Use code from strcasecmp.c.
47035         * lib/strcasecmp.c: Use mbchar module. Define private mbiter variant.
47036         (strcasecmp): Work correctly in multibyte locales.
47037
47038 2005-08-16  Bruno Haible  <bruno@clisp.org>
47039
47040         * lib/mbiter.h: New file.
47041
47042 2005-08-16  Bruno Haible  <bruno@clisp.org>
47043
47044         * lib/mbfile.h: New file.
47045
47046 2005-08-16  Bruno Haible  <bruno@clisp.org>
47047
47048         * lib/mbchar.h: New file.
47049         * lib/mbchar.c: New file.
47050
47051 2005-08-16  Bruno Haible  <bruno@clisp.org>
47052
47053         * lib/mbchar.h (mb_cmp, mb_casecmp): Order the invalid characters after
47054         the valid ones. Makes the comparison operations transitive:
47055         cmp (a, b) < 0 && cmp (b, c) < 0 ==> cmp (a, c) < 0.
47056         * lib/strcasecmp.c (strcasecmp): Use mb_casecmp.
47057
47058 2005-08-15  Simon Josefsson  <jas@extundo.com>
47059
47060         * modules/ssize_t (License): Change to 'unlimited'.
47061
47062         * gnulib-tool (sed_extract_prog): Recognize 'unlimited' license.
47063
47064 2005-08-15  Paul Eggert  <eggert@cs.ucla.edu>
47065
47066         * config/srclist.txt: Comment out $LIBCSRC/posix/regex.h.
47067         Add comments for each pending glibc patch.
47068
47069 2005-08-15  Bruno Haible  <bruno@clisp.org>
47070
47071         * lib/regex.h (__restrict_arr): Don't define to __restrict if
47072         __cplusplus is defined.
47073
47074 2005-08-14  Jim Meyering  <jim@meyering.net>
47075
47076         Sync from coreutils.
47077
47078         * lib/fts-cycle.c (setup_dir, enter_dir, leave_dir, free_dir):
47079         Use the hash-table-based cycle-detection code not just when
47080         FTS_TIGHT_CYCLE_CHECK if specified, but also with FTS_LOGICAL.
47081         Reported by James Youngman in
47082         <http://lists.gnu.org/archive/html/bug-gnulib/2005-08/msg00011.html>.
47083         * lib/fts_.h: Mention that with FTS_LOGICAL, we use
47084         FTS_TIGHT_CYCLE_CHECK.
47085         * lib/fts.c (fts_cross_check) [FTS_DEBUG]:
47086         s/active_dir_ht/fts_cycle.ht/. This lets us compile with -DFTS_DEBUG,
47087         once again.
47088         * lib/fts.c [! _LIBC]: Include "lstat.h" rather than rolling our own.
47089         * lib/fts.c (fd_safer): Remove decl.
47090         Include fcntl--.h rather than unistd-safer.h
47091         (fts_safe_changedir): Don't call fd_safer; no longer needed
47092         now that we include fcntl--.h.
47093
47094 2005-08-12  Simon Josefsson  <jas@extundo.com>
47095
47096         * modules/getndelim2: Use ssize_t module.
47097         * modules/getnline: Likewise.
47098         * modules/safe-read: Likewise.
47099         * modules/xreadlink: Likewise.
47100
47101         * modules/ssize_t: New file.
47102
47103 2005-08-12  Simon Josefsson  <jas@extundo.com>
47104
47105         * m4/readline.m4: Look for termcap, curses or ncurses if required.
47106
47107 2005-08-12  Simon Josefsson  <jas@extundo.com>
47108
47109         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
47110         ssize_t.
47111
47112 2005-08-12  Simon Josefsson  <jas@extundo.com>
47113
47114         * MODULES.html.sh (Extra functions based on ANSI C 89: Misc): Add
47115         readline, getdelim and check_version.
47116         (Support for systems lacking ISO C 99: Sizes of integer types):
47117         Add size_max.
47118
47119 2005-08-12  Bruno Haible  <bruno@clisp.org>
47120
47121         * m4/readline.m4 (gl_FUNC_READLINE): Look for ncurses first.
47122
47123 2005-08-11  Simon Josefsson  <jas@extundo.com>
47124
47125         * modules/readline: New file.
47126
47127         * modules/strnlen (Files): Add strnlen.h.
47128
47129 2005-08-11  Simon Josefsson  <jas@extundo.com>
47130
47131         * m4/readline.m4: New file.
47132
47133 2005-08-11  Simon Josefsson  <jas@extundo.com>
47134
47135         * lib/readline.h, readline.c: New file.
47136
47137 2005-08-11  Simon Josefsson  <jas@extundo.com>
47138
47139         * doc/gnulib.texi (Initial import, Finishing touches): Mention
47140         gl_AVOID.
47141
47142 2005-08-11  Bruno Haible  <bruno@clisp.org>
47143
47144         * lib/strnlen.h (strnlen): Change parameter name to match comment.
47145
47146 2005-08-10  Stepan Kasal  <kasal@ucw.cz>
47147
47148         * m4/onceonly_2_57.m4: Really require Autoconf 2.57.
47149
47150 2005-08-10  Simon Josefsson  <jas@extundo.com>
47151
47152         * tests/test-iconvme.c: New file.
47153
47154 2005-08-10  Simon Josefsson  <jas@extundo.com>
47155
47156         * m4/strnlen.m4: New file.
47157
47158         * m4/strndup.m4: Don't check for strnlen declaration, done in
47159         strnlen.m4.
47160
47161 2005-08-10  Simon Josefsson  <jas@extundo.com>
47162
47163         * lib/strndup.c: Use strnlen.h.
47164
47165         * lib/strnlen.h: New file.
47166
47167 2005-08-08  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>  (tiny change)
47168
47169         * README: Typos.
47170
47171 2005-08-02  Simon Josefsson  <jas@extundo.com>
47172
47173         * modules/readline: New file.
47174
47175 2005-08-02  Simon Josefsson  <jas@extundo.com>
47176
47177         * modules/getdelim: New file.
47178
47179         * modules/getline: Rewrite, don't use getndelim2.
47180
47181 2005-08-02  Simon Josefsson  <jas@extundo.com>
47182
47183         * m4/getline.m4: Separate out getdelim stuff into separate module.
47184
47185         * m4/getdelim.m4: New file.
47186
47187 2005-08-02  Simon Josefsson  <jas@extundo.com>
47188
47189         * lib/getline.h, getline.c: Rewrite.
47190
47191         * lib/getdelim.h, lib/getdelim.c: New files, ported from glibc.
47192
47193 2005-07-31  Bruno Haible  <bruno@clisp.org>
47194
47195         * lib/lock.h (gl_lock_initializer): New macro.
47196         (gl_lock_define_initialized): Use it.
47197         (gl_rwlock_initializer): New macro.
47198         (gl_rwlock_define_initialized): Use it.
47199         (gl_recursive_lock_initializer): New macro.
47200         (gl_recursive_lock_define_initialized): Use it.
47201
47202 2005-07-30  Karl Berry  <karl@gnu.org>
47203
47204         * doc/gnulib.texi (Initial import): mention -I$(top_builddir)/lib.
47205         Report from Ben Pfaff, regarding getopt.
47206
47207 2005-07-26  Paul Eggert  <eggert@cs.ucla.edu>
47208
47209         Add support to getopt for Emacs, which doesn't use LIBOBJS in the
47210         normal way.
47211         * m4/getopt.m4 (gl_GETOPT_SUBSTITUTE_HEADER): New macro.
47212         (gl_GETOPT_SUBSTITUTE): Use it.  Invoke gl_PREREQ_GETOPT.
47213         (gl_GETOPT_IFELSE, gl_GETOPT_CHECK_HEADERS): New macros.
47214         (gl_GETOPT): Use the new macros.  Most of the implementation
47215         is moved to the new macros.  This is for programs like Emacs
47216         that don't want all the functionality of gl_GETOPT.
47217
47218 2005-07-26  Bruno Haible  <bruno@clisp.org>
47219
47220         * m4/lock.m4: Update from GNU gettext.
47221
47222 2005-07-26  Bruno Haible  <bruno@clisp.org>
47223
47224         * lib/lock.h: Update from GNU gettext.
47225         * lib/lock.c: Update from GNU gettext.
47226
47227 2005-07-25  Paul Eggert  <eggert@cs.ucla.edu>
47228
47229         * m4/regex.m4 (gl_INCLUDED_REGEX): Use AC_RUN_IFELSE instead of the
47230         obsolescent AC_TRY_RUN.  Include the default includes files, for
47231         'exit'.
47232
47233 2005-07-24  Bruno Haible  <bruno@clisp.org>
47234
47235         * modules/visibility: New file.
47236         * MODULES.html.sh (Misc): Add visibility.
47237
47238 2005-07-24  Bruno Haible  <bruno@clisp.org>
47239
47240         * m4/visibility.m4: New file.
47241
47242 2005-07-24  Bruno Haible  <bruno@clisp.org>
47243
47244         * doc/visibility.texi: New file.
47245
47246 2005-07-22  Bruno Haible  <bruno@clisp.org>
47247
47248         * modules/alloca-opt (Makefile.am): Remove explicit dependency on
47249         $(ALLOCA_H), redundant through BUILT_SOURCES.
47250         * modules/argz (Makefile.am): Remove explicit dependency on $(ARGZ_H),
47251         redundant through BUILT_SOURCES.
47252         * modules/byteswap (Makefile.am): Remove explicit dependency on
47253         $(BYTESWAP_H), redundant through BUILT_SOURCES.
47254         * modules/fnmatch (Makefile.am): Remove explicit dependency on
47255         $(FNMATCH_H), redundant through BUILT_SOURCES.
47256         * modules/getopt (Makefile.am): Remove explicit dependency on
47257         $(GETOPT_H), redundant through BUILT_SOURCES.
47258         * modules/glob (Makefile.am): Remove explicit dependency on $(GLOB_H),
47259         redundant through BUILT_SOURCES.
47260         * modules/poll (Makefile.am): Remove explicit dependency on $(POLL_H),
47261         redundant through BUILT_SOURCES.
47262         * modules/stdbool (Makefile.am): Remove explicit dependency on
47263         $(STDBOOL_H), redundant through BUILT_SOURCES.
47264         * modules/stdint (Makefile.am): Remove explicit dependency on
47265         $(STDINT_H), redundant through BUILT_SOURCES.
47266         * modules/sysexits (Makefile.am): Add $(SYSEXITS_H) to BUILT_SOURCES.
47267         Remove explicit dependency on $(SYSEXITS_H).
47268         Reported by Alexandre Duret-Lutz <adl@src.lip6.fr>.
47269
47270 2005-07-18  Simon Josefsson  <jas@extundo.com>
47271
47272         * lib/check-version.c (check_version): Accept identical versions too.
47273
47274 2005-07-18  Bruno Haible  <bruno@clisp.org>
47275
47276         * modules/lock: New file.
47277         * MODULES.html.sh (Multithreading): New section.
47278
47279 2005-07-18  Bruno Haible  <bruno@clisp.org>
47280
47281         * m4/lock.m4: New file, from GNU gettext.
47282
47283 2005-07-18  Bruno Haible  <bruno@clisp.org>
47284
47285         * lib/lock.h: New file, from GNU gettext.
47286         * lib/lock.c: New file, from GNU gettext.
47287
47288 2005-07-18  Bruno Haible  <bruno@clisp.org>
47289
47290         * lib/lock.h (gl_once_t): New type.
47291         (gl_once_define, gl_once): New macros.
47292         * lib/lock.c (fresh_once): New variable.
47293         (glthread_once, glthread_once_call, glthread_once_singlethreaded): New
47294         functions.
47295
47296 2005-07-16  Simon Josefsson  <jas@extundo.com>
47297
47298         * doc/gnulib.texi (Library version handling): Add ELF symbol collision
47299         workaround, suggested by Bruno.
47300
47301 2005-07-15  Paul Eggert  <eggert@cs.ucla.edu>
47302
47303         * modules/xalloc (Depends-on): Add xalloc-die.
47304         * modules/xvasprintf (Depends-on): Add xalloc-die.
47305
47306 2005-07-15  Paul Eggert  <eggert@cs.ucla.edu>
47307
47308         * lib/quotearg.c: Add translator comment suggested by Bruno Haible,
47309         with a minor change.
47310
47311 2005-07-15  Bruno Haible  <bruno@clisp.org>
47312
47313         * m4/poll.m4 (gl_FUNC_POLL): Check against MacOS X 10.4 poll() bug.
47314         When using lib/poll.c, define poll as rpl_poll.
47315
47316 2005-07-14  Paul Eggert  <eggert@cs.ucla.edu>
47317
47318         * modules/argp (Depends-on): Remove unlocked-io.
47319
47320 2005-07-14  Derek Price  <derek@ximbiot.com>
47321
47322         * m4/glob.m4 (gl_GLOB): Cache glob interface check result.  Add check
47323         for glob symlink bug.
47324
47325 2005-07-14  Bruno Haible  <bruno@clisp.org>
47326
47327         * m4/argp.m4 (gl_ARGP): Remove invocation of gl_FUNC_GLIBC_UNLOCKED_IO.
47328         Instead, test for *_unlocked function declarations directly.
47329
47330 2005-07-11  Simon Josefsson  <jas@extundo.com>
47331
47332         * modules/size_max: New file.
47333
47334         * modules/xsize: Depend on size_max module for size_max.m4.
47335
47336 2005-07-11  Simon Josefsson  <jas@extundo.com>
47337
47338         * lib/size_max.h: New file.
47339
47340 2005-07-11  Paul Eggert  <eggert@cs.ucla.edu>
47341
47342         * lib/version-etc-fsf.c (version_etc_copyright): Parameterize the
47343         copyright symbol and the year.
47344         * lib/version-etc.c (COPYRIGHT_YEAR): New constant.
47345         (version_etc_va): Use parameterized copyright notice.
47346         Reword to conform to the current GNU coding standards.
47347
47348 2005-07-11  Karl Berry  <karl@gnu.org>
47349
47350         * doc/gnulib.texi (Quoting): new node.
47351         (Initial import): more info, from Patrice.
47352
47353 2005-07-11  Bruno Haible  <bruno@clisp.org>
47354
47355         * gnulib-tool (func_usage): Document option --avoid.
47356         (Command line options): Handle --avoid.
47357         (func_acceptable): New function.
47358         (func_modules_transitive_closure): Use it.
47359
47360 2005-07-11  Bruno Haible  <bruno@clisp.org>
47361
47362         * MODULES.html.sh: Use shortcut URLs to the www.opengroup.org site.
47363         Reported by Jim Meyering.
47364
47365 2005-07-10  Bruno Haible  <bruno@clisp.org>
47366
47367         * m4/size_max.m4 (gl_SIZE_MAX): Cast ~(size_t)0 back to size_t.
47368         Needed when size_t is smaller than 'unsigned int'.
47369         Reported by Paul Eggert.
47370
47371 2005-07-09  Sergey Poznyakoff  <gray@gnu.org.ua>
47372
47373         * modules/argp (Depends-on): Add unlocked-io
47374
47375 2005-07-09  Sergey Poznyakoff  <gray@gnu.org.ua>
47376
47377         * lib/argp-namefrob.h: Include unlocked-io.h. Removed unnecessary
47378         block of defines.
47379
47380 2005-07-08  Paul Eggert  <eggert@cs.ucla.edu>
47381
47382         * config/srclist.txt: Comment out regcomp.c, since we have a porting
47383         fix now.
47384
47385 2005-07-08  Eric Blake  <ebb9@byu.net>  (tiny change)
47386         and Paul Eggert  <eggert@cs.ucla.edu>
47387
47388         * lib/regcomp.c (init_dfa, build_range_exp): Store __btowc value
47389         in wint_t, not wchar_t.  Remove now-unnecessary cast.
47390
47391 2005-07-07  Paul Eggert  <eggert@cs.ucla.edu>
47392
47393         * modules/regex (Files): Add lib/regex_internal.c,
47394         lib/regex_internal.h, lib/regexec.c, lib/regcomp.c, m4/codeset.m4.
47395         (Depends-on): Add extensions.
47396         (Makefile.am): Remove lib_SOURCES; now done by m4 code.
47397
47398 2005-07-07  Paul Eggert  <eggert@cs.ucla.edu>
47399
47400         * m4/backupfile.m4 (gl_BACKUPFILE): Use AC_CHECK_FUNCS_ONCE on
47401         pathconf.
47402         * m4/same.m4 (gl_SAME): Likewise.
47403         Require AC_SYS_LONG_FILE_NAMES; bug reported by Gerrit P. Haase.
47404
47405         * m4/regex.m4: Adjust to new libc regex implementation.
47406         (gl_INCLUDED_REGEX): Add AC_LIBSOURCES for
47407         all the .c and .h parts of (the new) regex.
47408         Quote the m4 stuff better.
47409         Check for RE_ICASE bug of old gnulib.
47410         Check for REG_STARTEND of recent libc.
47411         Rename local variables from jm_* to gl_*.
47412         Quote operand of "test -f".
47413         Say "recent enough" version of libc, not "version 2".
47414         (gl_PREREQ_REGEX): Remove AC_FUNC_ALLOCA, since alloca is a
47415         prerequisite module.  Remove AC_HEADER_STDC; no longer needed.
47416         Check for locale.h, isblank, mbrtowc, wcrtomb, wcscoll.
47417         Remove check for btowc, isascii.
47418         Require AM_LANGINFO_CODESET.
47419
47420 2005-07-07  Paul Eggert  <eggert@cs.ucla.edu>
47421
47422         * lib/regex.c, regex.h: Sync from libc.
47423         * lib/regcomp.c, lib/regexec_internal.c, lib/regex_internal.h:
47424         * lib/regexec.c:
47425         New files, synced from libc, except that regex_internal.h
47426         currently has a small porting fix.
47427
47428 2005-07-07  Paul Eggert  <eggert@cs.ucla.edu>
47429
47430         * config/srclist.txt: Add regcomp.c, regex.c, regex.h,
47431         regex_internal.c, regexec.c.
47432         Add regex_internal.h too, but as a comment, since the libc version
47433         is currently broken in gnulib mode.
47434
47435 2005-07-06  Paul Eggert  <eggert@cs.ucla.edu>
47436
47437         Support programs like Emacs that use gnulib but not gettext.
47438         * MODULES.html.sh (Internationalization functions): Add gettext-h.
47439         * modules/gettext-h: New file.
47440         * modules/gettext (Files): Remove lib/gettext.h.
47441         (Depends-on): Add gettext-h.
47442         (Makefile.am): Remove lib_SOURCES.
47443         * modules/argmatch, modules/c-stack, modules/closeout:
47444         * modules/copy-file, modules/csharpcomp, modules/csharpexec:
47445         * modules/execute, modules/file-type, modules/getaddrinfo:
47446         * modules/getopt, modules/human, modules/javacomp:
47447         * modules/javaexec, modules/mkdir-p, modules/obstack:
47448         * modules/openat, modules/pagealign_alloc, modules/pipe:
47449         * modules/quotearg, modules/regex, modules/rpmatch:
47450         * modules/unicodeio, modules/userspec, modules/version-etc:
47451         * modules/wait-process, modules/xalloc-die, modules/xmemcoll:
47452         * modules/xsetenv:
47453         Depend on gettext-h, not gettext.
47454
47455 2005-07-05  Paul Eggert  <eggert@cs.ucla.edu>
47456
47457         * gnulib-tool (func_import): Add support for 'public domain' license.
47458         * modules/alloca, modules/atexit, modules/memmove:
47459         Now public domain, not GPL.
47460         * modules/dup2, modules/getpagesize, modules/malloc, modules/memset:
47461         * modules/realloc, modules/strerror, modules/strtod:
47462         Now LGPL, not GPL.
47463
47464 2005-07-05  Bruno Haible  <bruno@clisp.org>
47465
47466         * m4/mbrtowc.m4 (gl_FUNC_MBRTOWC): Upgrade to version from current
47467         autoconf CVS. Needed for mingw.
47468
47469 2005-07-03  Paul Eggert  <eggert@cs.ucla.edu>
47470
47471         Remove the dependency of the strftime module on the tzset module.
47472         * modules/strftime (Depends-on): Remove dependency on tzset.
47473
47474 2005-07-03  Paul Eggert  <eggert@cs.ucla.edu>
47475
47476         Remove the dependency of the strftime module on the tzset module.
47477         * m4/strftime.m4 (gl_FUNC_STRFTIME): Don't require
47478         gl_FUNC_TZSET_CLOBBER.
47479
47480 2005-07-03  Paul Eggert  <eggert@cs.ucla.edu>
47481
47482         Remove the dependency of the strftime module on the tzset module.
47483         * lib/strftime.c (my_strftime)
47484         [! defined _LIBC && ! HAVE_RUN_TZSET_TEST]:
47485         Copy the input structure, to work around some of the bug with
47486         Solaris 2.5.1 and Solaris 2.6.  If you still care about these old
47487         Solaris releases, you should also use the tzset module, but we won't
47488         require it as a dependency any more since we don't want LGPLed code
47489         to depend on GPLed code.
47490
47491 2005-07-02  Jim Meyering  <jim@meyering.net>
47492
47493         * m4/chown.m4, cloexec.m4, dup2.m4, fsusage.m4:
47494         * m4/getcwd-path-max.m4, getcwd.m4, mkstemp.m4, mountlist.m4:
47495         * m4/pagealign_alloc.m4, save-cwd.m4, unistd-safer.m4:
47496         Don't check for fcntl.h, and don't test for HAVE_FCNTL_H.
47497
47498 2005-07-02  Jim Meyering  <jim@meyering.net>
47499
47500         * lib/backupfile.c (backup_args): Change a `0' to NULL.
47501
47502 2005-07-01  Paul Eggert  <eggert@cs.ucla.edu>
47503
47504         * lib/xnanosleep.c: Include timespec.h, since OpenBSD 3.4 <time.h>
47505         declares only 'struct timespec;' (!).
47506
47507 2005-07-01  Jim Meyering  <jim@meyering.net>
47508
47509         * lib/chown.c, cloexec.c, dup-safer.c, dup2.c, fsusage.c, getcwd.c:
47510         * lib/getloadavg.c, mountlist.c, openat.h, pagealign_alloc.c:
47511         * lib/save-cwd.c, tempname.c:
47512         Assume HAVE_FCNTL_H (i.e., include <fcntl.h> unconditionally,
47513         and don't include <sys/file.h>).
47514
47515 2005-06-29  Jim Meyering  <jim@meyering.net>
47516
47517         * lib/mkdir-p.c (make_dir_parents): Don't apply sizeof to a hard-coded
47518         type name.  Use the variable name instead.
47519         * lib/idcache.c (getuser, getuidbyname, getgroup, getgidbyname):
47520         Likewise.
47521
47522 2005-06-28  Simon Josefsson  <jas@extundo.com>
47523
47524         * modules/check-version (Files): Add check-version.m4.
47525
47526 2005-06-28  Simon Josefsson  <jas@extundo.com>
47527
47528         * m4/check-version.m4: New file, suggested by Jim Meyering
47529         <jim@meyering.net>.
47530
47531 2005-06-28  Simon Josefsson  <jas@extundo.com>
47532
47533         * lib/check-version.h, lib/check-version.c: New files.
47534
47535 2005-06-28  Simon Josefsson  <jas@extundo.com>
47536
47537         * lib/base64.c (base64_encode): Indent.  Rename 'b64' to avoid
47538         collision with global variable.  Better indentation.  Don't
47539         increment buffer pointer beyond buffer end.  Based on comments
47540         from Paul Eggert <eggert@cs.ucla.edu>.
47541
47542         * lib/base64.h: Indent.
47543
47544 2005-06-28  Simon Josefsson  <jas@extundo.com>
47545
47546         * doc/gnulib.texi (Library version handling): New section.
47547
47548 2005-06-28  Jim Meyering  <jim@meyering.net>
47549
47550         * check-module (find_included_lib_files): Hard-code another
47551         pair of exceptions: fts.c includes fts-cycle.c and unistd-safer.h
47552         but modules/fts-lgpl (correctly) does not list those files.
47553
47554         * modules/canonicalize (Files): Add lib/pathmax.h.
47555
47556 2005-06-25  Simon Josefsson  <jas@extundo.com>
47557
47558         * modules/check-version: New file.
47559
47560 2005-06-24  Paul Eggert  <eggert@cs.ucla.edu>
47561
47562         * lib/canon-host.c (canon-host): Append trailing "," to 0 in
47563         initializer of struct addrinfo, as an indication that we don't
47564         care how many members the structure has.
47565
47566 2005-06-24  Derek Price  <derek@ximbiot.com>
47567         and Bruno Haible  <bruno@clisp.org>
47568
47569         Remove stat module & update lstat.
47570         * m4/lstat.m4 (gl_FUNC_LSTAT): Drop AC_FUNC_LSTAT in favor of
47571         AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
47572         * m4/stat.m4: Remove this file.
47573
47574 2005-06-24  Derek Price  <derek@ximbiot.com>
47575         and Bruno Haible  <bruno@clisp.org>
47576
47577         Remove stat module & update lstat.
47578         * lib/stat.c: Remove this file...
47579         (slash_aware_lstat): ...moving this content and its support...
47580         * lib/lstat.c (rpl_lstat): ...into here.
47581         * lib/lstat.h: New file.
47582
47583 2005-06-24  Derek Price  <derek@ximbiot.com>
47584         and Bruno Haible  <bruno@clisp.org>
47585
47586         Remove stat module & update lstat.
47587         * config/srclist.txt (libc sources): Remove stat.
47588
47589 2005-06-24  Derek Price  <derek@ximbiot.com>
47590         and Bruno Haible  <bruno@clisp.org>
47591
47592         Remove stat module & update lstat.
47593         * MODULES.html.sh (stat): Remove.
47594         * MODULES.html: Regenerated.
47595         * modules/lstat (Description): Correct function name.
47596         (Files): Add "lstat.h".
47597         (Depends-on): Remove stat, add xalloc, stat-macros.
47598         * modules/stat: Remove this file.
47599         (Include): Add "lstat.h", remove <sys/stat.h>.
47600
47601 2005-06-23  Paul Eggert  <eggert@cs.ucla.edu>
47602
47603         * lib/mktime.c: Include <string.h> even if !DEBUG.  (From glibc.)
47604         (ranged_convert): Don't save conversion in a temporary struct.
47605         This causes a warning with GCC 4.0.0, and anyway in the typical
47606         case it's not worth the extra 100 bytes or so of code.
47607         (ranged_convert, __mktime_internal): When calling a function via a
47608         pointer P, use P () rather than (*P) (), as we now assume C89 or
47609         better.
47610
47611 2005-06-22  Paul Eggert  <eggert@cs.ucla.edu>
47612
47613         * lib/readutmp.c (desirable_utmp_entry): Fix bug where "who -b" and
47614         "who -r" failed to give output.  Problem reported by Tim Waugh.
47615
47616         * lib/xmalloc.c (HAVE_GNU_CALLOC): New constant.
47617         (xcalloc): Use it to avoid needless tests.
47618         Problem reported by Jim Meyering.
47619
47620 2005-06-20  Derek Price  <derek@ximbiot.com>
47621
47622         * m4/bison.m4: Note that precious decls of YACC & YFLAGS will be
47623         unnecessary for Autoconfs > 2.59c.
47624
47625 2005-06-16  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
47626
47627         * lib/argp.h (__option_is_short): Check upper limit of
47628         __key. Isprint() requires its argument to have the value
47629         of an unsigned char or EOF.
47630
47631 2005-06-16  Jim Meyering  <jim@meyering.net>
47632
47633         * lib/calloc.c (rpl_calloc): Allocate a 1-byte buffer (not 1xS or Nx1)
47634         when either N or S is zero.
47635
47636 2005-06-16  Derek Price  <derek@ximbiot.com>
47637
47638         * m4/bison.m4: Declare YACC & YFLAGS precious.
47639
47640 2005-06-10  Paul Eggert  <eggert@cs.ucla.edu>
47641
47642         * lib/fnmatch.c (fnmatch): If there is an encoding error in a
47643         multibyte string or pattern, fall back on unibyte matching.
47644         Problem reported by James Youngman.
47645
47646 2005-06-08  Bruno Haible  <bruno@clisp.org>
47647
47648         * modules/csharpcomp: New file.
47649         * MODULES.html.sh (C#): Add csharpcomp.
47650
47651 2005-06-08  Bruno Haible  <bruno@clisp.org>
47652
47653         * m4/csharpcomp.m4: New file, from GNU gettext.
47654
47655 2005-06-08  Bruno Haible  <bruno@clisp.org>
47656
47657         * lib/csharpcomp.h: New file, from GNU gettext.
47658         * lib/csharpcomp.c: New file, from GNU gettext.
47659         * lib/csharpcomp.sh.in: New file, from GNU gettext.
47660
47661 2005-06-08  Bruno Haible  <bruno@clisp.org>
47662
47663         * lib/binary-io.h (fileno): Undefine before defining it. Avoids a gcc
47664         warning on mingw.
47665
47666 2005-06-07  Derek Price  <derek@ximbiot.com>
47667
47668         Sync from CVS.
47669         * lib/glob_.h: Indent nested #ifdef.
47670
47671 2005-06-02  Paul Eggert  <eggert@cs.ucla.edu>
47672
47673         Sync from coreutils.
47674         Use "file name" when talking about file names, instead of "filename"
47675         or "path", as per the GNU coding standards.
47676         * lib/mkdir-p.c: Renamed from makepath.c.
47677         (make_dir_parents): Renamed from make_path.  All callers changed.
47678         * lib/mkdir-p.h: Likewise.  All includers changed.
47679         * lib/filenamecat.c: Renamed from path-concat.c.
47680         (file_name_concat): Renamed from path_concat.  All callers changed.
47681         [TEST_FILE_NAME_CONCAT]: Renamed from TEST_PATH_CONCAT.
47682         * lib/filenamecat.h: Likewise.  All includers changed.
47683         * lib/acl.c: Don't use "path" or "filename" to mean "file name"
47684         in comments or local variable names.
47685         * lib/basename.c: Likewise.
47686         * lib/canonicalize.c, canonicalize.h: Likewise.
47687         * lib/dirname.c, dirname.h: Likewise.
47688         * lib/euidaccess.c: Likewise.
47689         * lib/exclude.c: Likewise
47690         * lib/fnmatch_.h, fnmatch_loop.c: Likewise.
47691         * lib/fsusage.c, fsuage.h: Likewise.
47692         * lib/fts.c, fts_.h: Likewise.
47693         * lib/getcwd.c: Likewise.
47694         * lib/getloadavg.c: Likewise.
47695         * lib/mkstemp.c: Likewise.
47696         * lib/mountlist.c, mountlist.h: Likewise.
47697         * lib/openat.c, openat.h: Likewise.
47698         * lib/readlink-stub.c: Likewise.
47699         * lib/readutmp.c, readutmp.h: Likewise.
47700         * lib/rename.c: Likewise.
47701         * lib/rmdir.c: Likewise.
47702         * lib/same.c: Likewise.
47703         * lib/savedir.c: Likewise.
47704         * lib/stripslash.c: Likewise.
47705         * lib/tempname.c: Likewise.
47706         * lib/xreadlink.c: Likewise.
47707         * lib/exclude.c (excluded_file_name): Renamed from excluded_filename.
47708         All uses changed.
47709         * lib/exclude.h: Likewise.
47710
47711         * lib/euidaccess.c (getuid, getgid, getuid, getegid)
47712         [!defined _POSIX_VERSION]: Remove decls; not needed these days.
47713         * lib/idcache.c (getpwuid, getpwnam, getgrgid, getgrnam)
47714         [!defined _POSIX_VERSION]: Remove decls; not needed these days.
47715         * lib/pathmax.h: Include <limits.h> unconditionally, since other
47716         files have been getting away with it for years (MORE/BSD 4.3
47717         is extinct now).
47718         * lib/userspec.c (getpwnam, getgrnam, getgrgid)
47719         [!defined _POSIX_VERSION]: Remove decls; not needed these days.
47720
47721         * lib/pathmax.h (_POSIX_PATH_MAX) [!defined _POSIX_PATH_MAX]:
47722         Define to 256, not 255, as per modern POSIX.
47723
47724 2005-06-02  Paul Eggert  <eggert@cs.ucla.edu>
47725
47726         Sync from coreutils.
47727         Use "file name" when talking about file names, instead of "filename"
47728         or "path", as per the GNU coding standards.
47729         * MODULES.html.sh: mkdir-p renamed from makepath.
47730         filenamecat renamed from path-concat.
47731         * modules/filenamecat: Renamed from modules/path-concat.
47732         (Files): filenamecat.h and filenamecat.c renamed from
47733         path-concat.h and path-concat.c.
47734         (configure.ac): gl_FILE_NAME_CONCAT, not gl_PATH_CONCAT.
47735         (Include): filenamecat.h, not path-concat.h.
47736         * modules/mkdir-p: Renamed from modules/makepath.
47737         (Files): mkdir-p.h and mkdir-p.c renamed from makepath.h and
47738         makepath.c.
47739         (configure.ac): gl_MKDIR_PARENTS, not gl_MAKEPATH.
47740         (Include): mkdir-p.h, not makepath.h.
47741
47742 2005-06-02  Paul Eggert  <eggert@cs.ucla.edu>
47743
47744         Sync from coreutils.
47745         * m4/mkdir-p.m4: Renamed from makepath.m4.
47746         (gl_MKDIR_PARENTS): Renamed from gl_MAKEPATH.  All uses changed.
47747         Rename files from makepath.c to mkdir-p.c, and from
47748         makepath.h to mkdir-p.h.
47749         * m4/filenamecat.m4: Renamed from path-concat.m4.
47750         (gl_FILE_NAME_CONCAT): Renamed from gl_PATH_CONCAT.  All uses changed.
47751         Rename files from path-concat.c to filenamecat.c,
47752         and from path-concat.h to filenamecat.h.
47753         * m4/getcwd-path-max.m4: Don't use "path" or "filename" to mean
47754         "file name" in local variables or comments.
47755         * m4/rename.m4: Likewise.
47756
47757 2005-06-01  Bruno Haible  <bruno@clisp.org>
47758
47759         * modules/csharpexec: New file.
47760         * MODULES.html.sh (C#): New section.
47761
47762 2005-06-01  Bruno Haible  <bruno@clisp.org>
47763
47764         * m4/csharp.m4: New file, from GNU gettext.
47765         * m4/csharpexec.m4: New file, from GNU gettext.
47766
47767 2005-06-01  Bruno Haible  <bruno@clisp.org>
47768
47769         * lib/csharpexec.h: New file, from GNU gettext.
47770         * lib/csharpexec.c: New file, from GNU gettext.
47771         * lib/csharpexec.sh.in: New file, from GNU gettext.
47772
47773 2005-05-31  Derek Price  <derek@ximbiot.com>
47774             Paul Eggert  <eggert@cs.ucla.edu>
47775
47776         Sync from cvs.
47777         * m4/glob.m4: s/MISSING_SYS_CDEFS_H/_SYS_CDEFS_H/ and comment.
47778
47779 2005-05-31  Derek Price  <derek@ximbiot.com>
47780             Paul Eggert  <eggert@cs.ucla.edu>
47781
47782         Sync from cvs.
47783         * lib/glob_.h: s/MISSING_SYS_CDEFS_H/_SYS_CDEFS_H/ and comment.
47784
47785 2005-05-29  Derek Price  <derek@ximbiot.com>
47786
47787         * config/srclist.txt (glob_.h, glob.c): Add these files.
47788
47789 2005-05-29  Derek Price  <derek@ximbiot.com>
47790
47791         * MODULES.html.sh: Add glob to Enhanced POSIX.2001 section.
47792         * modules/glob: New file.
47793         * modules/getlogin_r: Add link to POSIX spec in description.
47794
47795 2005-05-29  Derek Price  <derek@ximbiot.com>
47796             Paul Eggert  <eggert@cs.ucla.edu>
47797
47798         * m4/glob.m4: New file.
47799
47800 2005-05-29  Derek Price  <derek@ximbiot.com>
47801             Paul Eggert  <eggert@cs.ucla.edu>
47802
47803         * lib/glob_.h, lib/glob.c: New files.
47804
47805 2005-05-27  Paul Eggert  <eggert@cs.ucla.edu>
47806
47807         * modules/fts (Files): Remove m4/inttypes-pri.m4.
47808         * modules/fts-lgpl (Depends-on): Remove gettext.
47809
47810 2005-05-27  Paul Eggert  <eggert@cs.ucla.edu>
47811
47812         * m4/fts.m4 (gl_FUNC_FTS_CORE): Don't check for inttypes.h or stdint.h,
47813         and don't require gt_INTTYPES_PRI.
47814
47815 2005-05-27  Paul Eggert  <eggert@cs.ucla.edu>
47816
47817         * lib/getlogin_r.c (getlogin_r): Don't set errno to 0 on return.
47818
47819         * lib/fts.c: Don't worry about debugging on pre-C99-compatible hosts;
47820         the configuration hassle isn't worth it.
47821         Include inttypes.h and stdint.h unconditionally if FTS_DEBUG.
47822         (LONGEST_MODIFIER, PRIuMAX): Remove.
47823
47824 2005-05-27  Bruno Haible  <bruno@clisp.org>
47825
47826         * lib/getlogin_r.h: Remove second include of <stddef.h>.
47827
47828 2005-05-26  Paul Eggert  <eggert@cs.ucla.edu>
47829
47830         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Define
47831         _POSIX_PTHREAD_SEMANTICS for Solaris.
47832
47833 2005-05-25  Derek Price  <derek@ximbiot.com>
47834
47835         * MODULES.html.sh: Add getlogin_r to POSIX.2001 support section.
47836
47837 2005-05-25  Derek Price  <derek@ximbiot.com>
47838             Paul Eggert  <eggert@cs.ucla.edu>
47839
47840         * modules/getlogin_r, m4/getlogin_r.m4: New files.
47841         * lib/getlogin_r.c, getlogin_r.h: New files.
47842
47843 2005-05-25  Bruno Haible  <bruno@clisp.org>
47844             Derek Price  <derek@ximbiot.com>
47845
47846         * lib/getlogin_r.h: Simplify API documentation.
47847
47848 2005-05-23  Derek Price  <derek@ximbiot.com>
47849
47850         * modules/minmax (Files): Add m4/minmax.m4.
47851         (configure.ac): Add gl_MINMAX.
47852
47853 2005-05-22  Paul Eggert  <eggert@cs.ucla.edu>
47854
47855         * lib/fts.c (fd_safer) [_LGPL_PACKAGE]: New static function,
47856         so that unistd-safer.h (GPL'ed code) need not be included.
47857
47858 2005-05-22  Bruno Haible  <bruno@clisp.org>
47859
47860         * m4/minmax.m4: New file.
47861         Based on a patch by Derek Price <derek@ximbiot.com>.
47862
47863 2005-05-22  Bruno Haible  <bruno@clisp.org>
47864
47865         * lib/stdint_.h (_STDINT_H_HAVE_INT64): New macro. Use it in #ifdefs.
47866         (INT64_MIN): Fix definition.
47867         Suggested by Paul Eggert <eggert@cs.ucla.edu>.
47868
47869         * lib/stdint_.h (_STDINT_H_NEED_SIGNED_INT_TYPES): Renamed from
47870         NEED_SIGNED_INT_TYPES.
47871
47872         * lib/stdint_.h (_STDINT_H_HAVE_SYSTEM_INTTYPES): Renamed from
47873         HAVE_SYSTEM_INTTYPES.
47874
47875 2005-05-22  Bruno Haible  <bruno@clisp.org>
47876
47877         * lib/minmax.h: Include <limits.h> only when it defines MIN, MAX.
47878         Also include <sys/param.h> if it defines MIN, MAX.
47879         Based on a patch by Derek Price <derek@ximbiot.com>.
47880
47881 2005-05-21  Jim Meyering  <jim@meyering.net>
47882
47883         * modules/fts (Files): Add m4/inttypes-pri.m4.
47884         (Depends-on): Add lstat and remove gettext.  Alphabetize.
47885
47886 2005-05-20  Paul Eggert  <eggert@cs.ucla.edu>
47887
47888         New fts module.
47889         * lib/fts.c: Don't include "cycle-check.h" or "hash.h".
47890         (setup_dir, free_dir): New functions.
47891         (enter_dir, leave_dir): Define trivial
47892         alternatives of _LGPL_PACKAGE.  Move to fts-cycle.c if !_LGPL_PACKAGE.
47893         (HT_INITIAL_SIZE, ENTER_DIR): Remove.  All uses removed.
47894         (LEAVE_DIR): Fix typo: pass Fts and Ent to leave_dir.
47895         (struct Active_dir, AD_compare, AD_hash, enter_dir, leave_dir):
47896         Move to fts-cycle.c.
47897         (fts_open): Use setup_dir.
47898         (fts_close): Use free_dir.
47899         (fts_read): Have just one copy of the ENTER_DIR code rather than three.
47900         This adds a label and some gotos, but the alternatives were messier.
47901         Check for memory allocation failure when entering a dir.
47902         (fts_stat) [_LGPL_PACKAGE]: Bring back glibc cycle detection code.
47903         * lib/fts_.h (_LGPL_PACKAGE) [defined _LIBC]: New macro.
47904         (FTS): New member fts_cycle, that is a union that contains the
47905         old active_dir_ht and cycle_state.  All uses changed to mention
47906         fts_cycle.ht and fts_cycle.state.
47907         * lib/fts-cycle.c: New file, containing GPL'ed code migrated out of
47908         fts.c, with the following changes:
47909         (setup_dir, free_dir): New functions.
47910         (enter_dir): Now returns bool.  Return true if successful, false
47911         if memory exhausted.  All callers changed.
47912         Do not bother partly cleaning up on
47913         memory allocation failure; that is free_dir's job.
47914         However, free ad if hash_insert fails, to avoid memory leak.
47915         (enter_dir, leave_dir): Accommodate change to FTS by inspecting
47916         fts->fts_options to see which union member to use.
47917
47918 2005-05-20  Paul Eggert  <eggert@cs.ucla.edu>
47919
47920         * m4/fts.m4 (gl_FUNC_FTS_CORE): Renamed from gl_FUNC_FTS.
47921         (gl_FUNC_FTS, gl_FUNC_FTS_LGPL): New macros.
47922
47923 2005-05-20  Paul Eggert  <eggert@cs.ucla.edu>
47924
47925         * MODULES.html.sh (File system functions): Add fts, fts-lgpl.
47926
47927 2005-05-20  Jim Meyering  <jim@meyering.net>
47928
47929         * lib/unlinkdir.h (cannot_unlink_dir) [UNLINK_CANNOT_UNLINK_DIR]:
47930         Now a macro, to pacify GCC.
47931
47932 2005-05-20  Eric Blake  <ebb9@byu.net>  (tiny change)
47933
47934         * m4/chown.m4 (gl_FUNC_CHOWN): Correct sense of test for honoring IDs
47935         of -1.
47936
47937 2005-05-20  Eric Blake  <ebb9@byu.net>  (tiny change)
47938
47939         * lib/chown.c (rpl_chown): Return -1 on failure.
47940
47941 2005-05-18  Paul Eggert  <eggert@cs.ucla.edu>
47942
47943         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME]):
47944         Don't check for stddef.h.
47945         * m4/fts.m4 (gl_FUNC_FTS): Don't require AC_HEADER_STDC, as we
47946         don't use its results.
47947         Don't check for fcntl.h, stddef.h, stdlib.h, string.h, unistd.h,
47948         since we include them unconditionally.  Don't require
47949         AM_STDBOOL_H, since stdbool is a prerequisite.
47950         Don't require AC_C_CONST, AC_TYPE_SIZE_T or check for ptrdiff_t
47951         since we assume C89 or better.
47952         Don't require AC_FUNC_CLOSEDIR_VOID, AC_FUNC_LSTAT, or AC_FUNC_STAT,
47953         as we don't use their results.
47954         Don't check for fchdir, memmove, memset, strrchr, as we use
47955         them unconditionally.
47956         * m4/gettimeofday.m4 (AC_FUNC_GETTIMEOFDAY_CLOBBER): Don't define
47957         GETTIMEOFDAY_CLOBBERS_LOCALTIME_BUFFER, since nobody uses it.
47958
47959 2005-05-18  Paul Eggert  <eggert@cs.ucla.edu>
47960
47961         * lib/canonicalize.c: Include canonicalize.h first, to test interface.
47962         Include <stddef.h> unconditionally, since we assume C89 now.
47963         All uses of PTR_INT_TYPE replaced by ptrdiff_t.
47964         * lib/fts.c: Include fts_.h first, to check interface.
47965         Do not include intprops.h; no longer needed.
47966         Include cycle-check.h and hash.h, since fts_.h no longer does.
47967         Remove unnecessary casts of closedir to void.
47968         (fts_build): Use a simpler method (not involving TYPE_SIGNED) to
47969         decide whether to decrement nlinks.
47970         * lib/fts_.h: Do not include hash.h or cycle-check.h; no longer needed.
47971         (FTS): Use struct hash_table * instead of Hash_table, so that
47972         we no longer need to include hash.h here.
47973
47974 2005-05-18  Jim Meyering  <jim@meyering.net>
47975
47976         * modules/dirfd (License): Change to LGPL.  Most of the code
47977         is already in the public domain.
47978
47979 2005-05-18  Jim Meyering  <jim@meyering.net>
47980
47981         * m4/fts.m4 (AC_LIBSOURCES): Add intprops.h to the list.
47982         Reported by Yoann Vandoorselaere.
47983
47984 2005-05-17  Jim Meyering  <jim@meyering.net>
47985
47986         * m4/fts.m4: New file, from coreutils.
47987
47988 2005-05-17  Jim Meyering  <jim@meyering.net>
47989
47990         * lib/fts.c, lib/fts_.h: New files, from coreutils.
47991
47992 2005-05-14  Paul Eggert  <eggert@cs.ucla.edu>
47993
47994         Sync from coreutils.
47995         * m4/unlinkdir.m4: New file.
47996
47997 2005-05-14  Paul Eggert  <eggert@cs.ucla.edu>
47998
47999         Sync from coreutils.
48000         * lib/unlinkdir.c, lib/unlinkdir.h: New files.
48001         * lib/gethrxtime.c, lib/gethrxtime.h, lib/getpass.h, lib/mountlist.h,
48002         lib/path-concat.c, lib/regex.h, lib/unlocked-io.h, lib/xtime.h:
48003         White space changes only.
48004         * lib/makepath.c (make_path): Port to hosts where leading "//" is
48005         special.
48006         * lib/yesno.c: Include getline.h, not ctype.h.
48007         (yesno): Don't remove leading white space; POSIX doesn't allow it.
48008         Use getline to remove arbitrary restriction on response length.
48009
48010 2005-05-14  Paul Eggert  <eggert@cs.ucla.edu>
48011
48012         * config/srclist-update: Spell out "Street" in FSF postal
48013         mail address; this is the style the FSF seems to prefer.
48014
48015         * build-aux/depcomp, build-aux/install-sh, build-aux/mdate-sh,
48016         build-aux/missing, build-aux/mkinstalldirs: Sync from Automake;
48017         this updates FSF postal mail address.
48018
48019         Sync from coreutils.
48020         * modules/unlinkdir: New file.
48021         * modules/yesno (Depends-on): Add getline.
48022         * MODULES.html.sh (File system functions): Add unlinkdir.
48023
48024 2005-05-13  Paul Eggert  <eggert@cs.ucla.edu>
48025
48026         * lib/byteswap_.h, lib/getsubopt.h, lib/iconvme.h, lib/strsep.c,
48027         lib/strsep.h:
48028         Change the initial comment to refer to GPL, not LGPL.
48029         gnulib-tool will change it to LGPL as needed.
48030
48031         * lib/__fpending.c, lib/acl.c, lib/acl.h, lib/alloca_.h, lib/allocsa.c,
48032         lib/allocsa.h, lib/argmatch.c, lib/argmatch.h, lib/argp-ba.c,
48033         lib/argp-eexst.c, lib/argp-fmtstream.c, lib/argp-fmtstream.h,
48034         lib/argp-fs-xinl.c, lib/argp-help.c, lib/argp-namefrob.h,
48035         lib/argp-parse.c, lib/argp-pv.c, lib/argp-pvh.c, lib/argp-xinl.c,
48036         lib/argp.h, lib/argz.c, lib/argz_.h, lib/asnprintf.c, lib/asprintf.c,
48037         lib/atanl.c, lib/backupfile.c, lib/backupfile.h, lib/base64.c,
48038         lib/base64.h, lib/basename.c, lib/binary-io.h, lib/byteswap_.h,
48039         lib/c-ctype.c, lib/c-ctype.h, lib/c-stack.c, lib/c-stack.h,
48040         lib/c-strtod.c, lib/calloc.c, lib/canon-host.c, lib/canonicalize.c,
48041         lib/canonicalize.h, lib/ceill.c, lib/chdir-long.c, lib/chdir-long.h,
48042         lib/chown.c, lib/classpath.c, lib/classpath.h, lib/cloexec.c,
48043         lib/closeout.c, lib/closeout.h, lib/concatpath.c, lib/config.charset,
48044         lib/copy-file.c, lib/copy-file.h, lib/cycle-check.c, lib/cycle-check.h,
48045         lib/diacrit.c, lib/diacrit.h, lib/dirfd.c, lib/dirfd.h, lib/dirname.c,
48046         lib/dirname.h, lib/dummy.c, lib/dup-safer.c, lib/dup2.c, lib/eealloc.h,
48047         lib/error.c, lib/error.h, lib/euidaccess.c, lib/exclude.c,
48048         lib/exclude.h, lib/execute.c, lib/execute.h, lib/exit.h,
48049         lib/exitfail.c, lib/exitfail.h, lib/expl.c, lib/fatal-signal.c,
48050         lib/fatal-signal.h, lib/fd-safer.c, lib/file-type.c, lib/file-type.h,
48051         lib/fileblocks.c, lib/filemode.c, lib/filemode.h, lib/findprog.c,
48052         lib/findprog.h, lib/floorl.c, lib/fnmatch.c, lib/fnmatch_.h,
48053         lib/fnmatch_loop.c, lib/fopen-safer.c, lib/free.c, lib/frexpl.c,
48054         lib/fsusage.c, lib/fsusage.h, lib/full-read.c, lib/full-read.h,
48055         lib/full-write.c, lib/full-write.h, lib/fwriteerror.c,
48056         lib/fwriteerror.h, lib/gai_strerror.c, lib/gcd.c, lib/gcd.h,
48057         lib/getaddrinfo.c, lib/getaddrinfo.h, lib/getcwd.c, lib/getcwd.h,
48058         lib/getdate.h, lib/getdate.y, lib/getdomainname.c, lib/getdomainname.h,
48059         lib/getgroups.c, lib/gethostname.c, lib/gethrxtime.c, lib/gethrxtime.h,
48060         lib/getline.c, lib/getline.h, lib/getloadavg.c, lib/getndelim2.c,
48061         lib/getndelim2.h, lib/getnline.c, lib/getnline.h, lib/getopt.c,
48062         lib/getopt1.c, lib/getopt_.h, lib/getopt_int.h, lib/getpagesize.h,
48063         lib/getpass.c, lib/getpass.h, lib/getsubopt.c, lib/getsubopt.h,
48064         lib/gettext.h, lib/gettime.c, lib/gettimeofday.c, lib/getugroups.c,
48065         lib/getusershell.c, lib/group-member.c, lib/group-member.h,
48066         lib/hard-locale.c, lib/hard-locale.h, lib/hash-pjw.c, lib/hash-pjw.h,
48067         lib/hash.c, lib/hash.h, lib/human.c, lib/human.h, lib/iconvme.c,
48068         lib/iconvme.h, lib/idcache.c, lib/inet_ntop.h, lib/intprops.h,
48069         lib/inttostr.c, lib/inttostr.h, lib/isdir.c, lib/javacomp.c,
48070         lib/javacomp.h, lib/javacomp.sh.in, lib/javaexec.c, lib/javaexec.h,
48071         lib/javaexec.sh.in, lib/lbrkprop.h, lib/lchown.c, lib/ldexpl.c,
48072         lib/linebreak.c, lib/linebreak.h, lib/linebuffer.c, lib/linebuffer.h,
48073         lib/localcharset.c, lib/localcharset.h, lib/logl.c, lib/long-options.c,
48074         lib/long-options.h, lib/lstat.c, lib/makepath.c, lib/makepath.h,
48075         lib/malloc.c, lib/mathl.h, lib/mbswidth.c, lib/mbswidth.h, lib/md5.c,
48076         lib/md5.h, lib/memcasecmp.c, lib/memcasecmp.h, lib/memchr.c,
48077         lib/memcmp.c, lib/memcoll.c, lib/memcoll.h, lib/memcpy.c, lib/memmem.c,
48078         lib/memmem.h, lib/mempcpy.c, lib/mempcpy.h, lib/memrchr.c,
48079         lib/memrchr.h, lib/memset.c, lib/minmax.h, lib/mkdir.c, lib/mkdtemp.c,
48080         lib/mkdtemp.h, lib/mkstemp.c, lib/mktime.c, lib/modechange.c,
48081         lib/modechange.h, lib/mountlist.c, lib/mountlist.h, lib/nanosleep.c,
48082         lib/obstack.c, lib/obstack.h, lib/openat.c, lib/openat.h,
48083         lib/pagealign_alloc.c, lib/pagealign_alloc.h, lib/path-concat.c,
48084         lib/path-concat.h, lib/pathmax.h, lib/pathname.h, lib/physmem.c,
48085         lib/physmem.h, lib/pipe.c, lib/pipe.h, lib/poll.c, lib/poll_.h,
48086         lib/posixtm.c, lib/posixtm.h, lib/posixver.c, lib/printf-args.c,
48087         lib/printf-args.h, lib/printf-parse.c, lib/printf-parse.h,
48088         lib/progname.c, lib/progname.h, lib/progreloc.c, lib/putenv.c,
48089         lib/quote.c, lib/quote.h, lib/quotearg.c, lib/quotearg.h, lib/raise.c,
48090         lib/readlink.c, lib/readtokens.c, lib/readtokens.h, lib/readtokens0.c,
48091         lib/readtokens0.h, lib/readutmp.c, lib/readutmp.h, lib/realloc.c,
48092         lib/ref-add.sin, lib/ref-del.sin, lib/regex.c, lib/regex.h,
48093         lib/rename.c, lib/rmdir.c, lib/rpmatch.c, lib/safe-read.c,
48094         lib/safe-read.h, lib/safe-write.c, lib/safe-write.h, lib/same.c,
48095         lib/same.h, lib/save-cwd.c, lib/save-cwd.h, lib/savedir.c,
48096         lib/savedir.h, lib/setenv.c, lib/setenv.h, lib/settime.c,
48097         lib/sh-quote.c, lib/sh-quote.h, lib/sha1.c, lib/sha1.h, lib/sig2str.c,
48098         lib/sig2str.h, lib/sincosl.c, lib/snprintf.c, lib/snprintf.h,
48099         lib/sqrtl.c, lib/stat-macros.h, lib/stat.c, lib/stdbool_.h,
48100         lib/stdint_.h, lib/stdio-safer.h, lib/stpcpy.c, lib/stpcpy.h,
48101         lib/stpncpy.c, lib/stpncpy.h, lib/strcase.h, lib/strcasecmp.c,
48102         lib/strchrnul.c, lib/strchrnul.h, lib/strcspn.c, lib/strdup.c,
48103         lib/strdup.h, lib/strerror.c, lib/strftime.c, lib/strftime.h,
48104         lib/stripslash.c, lib/strndup.c, lib/strndup.h, lib/strnlen.c,
48105         lib/strpbrk.c, lib/strpbrk.h, lib/strsep.c, lib/strsep.h, lib/strstr.c,
48106         lib/strstr.h, lib/strtod.c, lib/strtoimax.c, lib/strtok_r.c,
48107         lib/strtok_r.h, lib/strtol.c, lib/strtoll.c, lib/strtoul.c,
48108         lib/strtoull.c, lib/strverscmp.c, lib/strverscmp.h, lib/sysexit_.h,
48109         lib/tempname.c, lib/time_r.c, lib/time_r.h, lib/timegm.c, lib/timegm.h,
48110         lib/timespec.h, lib/trigl.c, lib/trigl.h, lib/ucs4-utf16.h,
48111         lib/ucs4-utf8.h, lib/unicodeio.c, lib/unicodeio.h, lib/unistd-safer.h,
48112         lib/unlocked-io.h, lib/unsetenv.c, lib/userspec.c, lib/utf16-ucs4.h,
48113         lib/utf8-ucs4.h, lib/utime.c, lib/utimecmp.c, lib/utimecmp.h,
48114         lib/utimens.c, lib/vasnprintf.c, lib/vasnprintf.h, lib/vasprintf.c,
48115         lib/vasprintf.h, lib/version-etc-fsf.c, lib/version-etc.c,
48116         lib/version-etc.h, lib/vsnprintf.c, lib/vsnprintf.h, lib/w32spawn.h,
48117         lib/wait-process.c, lib/wait-process.h, lib/xalloc-die.c, lib/xalloc.h,
48118         lib/xallocsa.c, lib/xallocsa.h, lib/xasprintf.c, lib/xgetcwd.c,
48119         lib/xgetcwd.h, lib/xgetdomainname.c, lib/xgetdomainname.h,
48120         lib/xgethostname.c, lib/xmalloc.c, lib/xmemcoll.c, lib/xnanosleep.c,
48121         lib/xreadlink.c, lib/xreadlink.h, lib/xsetenv.c, lib/xsetenv.h,
48122         lib/xsize.h, lib/xstrndup.c, lib/xstrndup.h, lib/xstrtod.c,
48123         lib/xstrtod.h, lib/xstrtoimax.c, lib/xstrtol.c, lib/xstrtol.h,
48124         lib/xstrtoumax.c, lib/xtime.h, lib/xvasprintf.c, lib/xvasprintf.h,
48125         lib/yesno.c, lib/yesno.h:
48126         Update FSF postal mail address.
48127
48128 2005-05-13  Paul Eggert  <eggert@cs.ucla.edu>
48129
48130         * MODULES.html.sh, README, gnulib-tool, tests/test-base64.c,
48131         tests/test-memmem.c, tests/test-stpncpy.c:
48132         Update FSF postal mail address.
48133
48134 2005-05-13  Bruno Haible  <bruno@clisp.org>
48135
48136         * lib/stdint_.h (int64_t, uint64_t, int_least64_t, uint_least64_t,
48137         int_fast64_t, uint_fast64_t, intmax_t, uintmax_t, INT64_MIN, INT64_MAX,
48138         UINT64_MAX, INT_LEAST64_MIN, INT_LEAST64_MAX, UINT_LEAST64_MAX,
48139         INT_FAST64_MIN, INT_FAST64_MAX, UINT_FAST64_MAX, INTMAX_MIN,
48140         INTMAX_MAX, UINTMAX_MAX, INT64_C, UINT64_C, INTMAX_C, UINTMAX_C):
48141         Add support for 64-bit integers in the MSVC compiler.
48142
48143 2005-05-12  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
48144
48145         * modules/getdate (Makefile.am): Add getdate.c to EXTRA_DIST
48146
48147 2005-05-12  Eric Blake  <ebb9@byu.net>  (tiny change)
48148
48149         * gnulib-tool (func_import): Sort and uniquify recommended includes.
48150
48151 2005-05-11  Paul Eggert  <eggert@cs.ucla.edu>
48152
48153         * doc/getdate.texi (General date syntax): Don't say that date
48154         date --iso-8601=ns generates acceptable dates; it doesn't yet.
48155         Problem reported by Nic Ferrier.
48156
48157 2005-05-10  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
48158
48159         * lib/getaddrinfo.c: Don't fail when SOCK_STREAM or SOCK_DGRAM are
48160         specified in ai_socktype. Fix invalid ai_protocol
48161         check. ai_protocol is usually set to 0 or depending on
48162         ai_family/ai_socktype to IPPROTO_TCP / IPPROTO_UDP.  Checking for
48163         SOCK_STREAM / SOCK_DGRAM in ai_protocol was invalid.  Set
48164         ai_socktype / ai_protocol in the returned addrinfo structure.
48165
48166 2005-05-10  Simon Josefsson  <jas@extundo.com>
48167
48168         * m4/getaddrinfo.m4: Look in libnsl/libsocket for getaddrinfo, from
48169         Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
48170
48171 2005-05-10  Karl Berry  <karl@gnu.org>
48172
48173         * doc/fdl.texi, gpl.texi, lgpl.texi, COPYING: update FSF address
48174         (from http://www.gnu.org/licenses).
48175         * doc/COPYING.LIB: also rename to COPYING.LESSER.
48176         * doc/COPYING.DOC: remove; per rms, only needed in doc files, so
48177         fdl.texi suffices.
48178
48179 2005-05-10  Karl Berry  <karl@gnu.org>
48180
48181         * config/srclist.txt (COPYING.LESSER): rename from COPYING.LIB.
48182         (COPYING.DOC): remove.
48183
48184         * config/srclist-update: new FSF address.
48185
48186 2005-05-10  Derek Price  <derek@ximbiot.com>
48187
48188         * m4/getopt.m4 (gl_GETOPT): Check for Solaris 10 bug, not decl, when
48189         possible.
48190
48191 2005-05-09  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
48192             Bruno Haible  <bruno@clisp.org>
48193
48194         * modules/inet_ntop: New file.
48195         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
48196         inet_ntop.
48197
48198 2005-05-09  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
48199             Bruno Haible  <bruno@clisp.org>
48200
48201         * m4/inet_ntop.m4: New file.
48202
48203 2005-05-09  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
48204             Bruno Haible  <bruno@clisp.org>
48205
48206         * lib/inet_ntop.h: New file.
48207         * lib/inet_ntop.c: New file, from glibc with modifications.
48208
48209 2005-05-09  Paul Eggert  <eggert@cs.ucla.edu>
48210
48211         * modules/time_r (License): Change to LGPL.
48212         * modules/extensions (License): Change to LGPL.  Actually,
48213         the license is more permissive than that, but currently gnulib-tool
48214         doesn't know how to handle more-permissive licenses.
48215
48216         * modules/stat-macros (Depends-on): Don't depend on stat-macros (!).
48217         Problem reported by Dave Love.
48218
48219 2005-05-08  Jim Meyering  <jim@meyering.net>
48220
48221         * lib/classpath.c (PATH_SEPARATOR): Remove insignificant trailing
48222         blank.
48223
48224 2005-05-06  Paul Eggert  <eggert@cs.ucla.edu>
48225
48226         * modules/argmatch (Depends-on): Add stdbool.
48227         * modules/backupfile (Depends-on): Likewise.
48228         * modules/chdir-long (Depends-on): Likewise.
48229         * modules/closeout (Depends-on): Likewise.
48230         * modules/cycle-check (Depends-on): Likewise.
48231         * modules/dirname (Depends-on): Likewise.
48232         * modules/fnmatch (Depends-on): Likewise.
48233         * modules/fsusage (Depends-on): Likewise.
48234         * modules/fwriteerror (Depends-on): Likewise.
48235         * modules/getcwd (Depends-on): Likewise.
48236         * modules/getloadavg (Depends-on): Likewise.
48237         * modules/hard-locale (Depends-on): Likewise.
48238         * modules/makepath (Depends-on): Likewise.
48239         * modules/mountlist (Depends-on): Likewise.
48240         * modules/nanosleep (Depends-on): Likewise.
48241         * modules/posixtm (Depends-on): Likewise.
48242         * modules/quotearg (Depends-on): Likewise.
48243         * modules/readtokens (Depends-on): Likewise.
48244         * modules/readtokens0 (Depends-on): Likewise.
48245         * modules/readutmp (Depends-on): Likewise.
48246         * modules/save-cwd (Depends-on): Likewise.
48247         * modules/strftime (Depends-on): Likewise.
48248         * modules/userspec (Depends-on): Likewise.
48249         * modules/utimecmp (Depends-on): Likewise.
48250         * modules/xgetcwd (Depends-on): Likewise.
48251         * modules/xnanosleep (Depends-on): Likewise.
48252         * modules/xstrtod (Depends-on): Likewise.
48253         * modules/yesno (Depends-on): Likewise.
48254
48255 2005-05-05  Paul Eggert  <eggert@cs.ucla.edu>
48256
48257         * m4/getopt.m4 (gl_GETOPT): Check for Solaris 10 getopt, and avoid
48258         needless checks.
48259
48260 2005-05-01  Paul Eggert  <eggert@cs.ucla.edu>
48261
48262         Merge from coreutils.  Among other things,
48263         add bulletproofing for cases where stdin, stdout, or stderr are closed.
48264         * lib/fd-safer.c: New file.
48265         * lib/fcntl-safer.h, open-safer.c: Remove.
48266         * lib/chdir-long.c: Fix comment "fetish" -> "coreutils".
48267         * lib/dup-safer.c: Include unistd-safer.h first.
48268         Don't include errno.h.
48269         (dup_safer) [!defined F_DUPFD]: Let fd_safer do the real work.
48270         * lib/file-type.h: Don't assume invoker included sys/stat.h first.
48271         * lib/file-type.c: Rely on file-type.h change.
48272         * lib/getloadavg.c: Include unistd-safer.h.
48273         (getloadavg): Use safer open.
48274         * lib/getusershell.c: Include "stdio-safer.h".
48275         (getusershell): Use safer fopen.
48276         * lib/long-options.c (long_options): Use NULL rather than 0.
48277         * lib/modechange.h (mode_free): Remove; all callers changed to invoke
48278         'free'.
48279         * lib/modechange.c: Likewise.
48280         xstrtol.h, stdbool.h, stddef.h: Don't include; no longer needed.
48281         (MODE_DONE): New constant.
48282         (struct mode_change): Remove 'next' member.
48283         (make_node_op_equals): New function; like the old one of the
48284         same name, except it allocates an array.
48285         (mode_compile, mode_create_from_ref): Use it.
48286         (mode_compile): Allocate result as an array, not a linked list.
48287         Parse octal string ourself, so that we catch mistakes like "+0".
48288         (mode_adjust): Arg is an array, not a linked list.
48289         * lib/modechange.c: Include stat-macros.h, xalloc.h.
48290         (S_ISDIR, S_ISUID, S_ISGID, S_ISVTX, S_IRUSR, S_IWUSR, S_IXUSR):
48291         (S_IRGRP, S_IWGRP, S_IXGRP, S_IROTH, S_IWOTH, S_IXOTH, S_IRXWU):
48292         (S_IRWXG, S_IRWXO, CHMOD_MODE_BITS):
48293         Remove.  This is now stat-macros.h's job.
48294         (talloc): Remove.  All callers replaced by xalloc, so that
48295         our invokers don't have to worry about reporting memory failures.
48296         (make_node_op_equals): Remove.
48297         (MODE_ORDINARY_CHAGE, MODE_X_IF_ANY_X, MODE_COPY_EXISTING):
48298         New constants.
48299         (struct mode_change): Moved here from modechange.h.
48300         (mode_append_entry): Remove.
48301         (mode_compile): Remove MASKED_OPS arg, since it encouraged
48302         apps to have incorrect behavior.  Use simpler algorithm for head
48303         and tail.  Don't futz with umask; that's now the job of mode_adjust.
48304         Detect more invalid usages rather than having somewhat-random behavior.
48305         Don't insert an "a=" action, as that leads to incorrect behavior.
48306         (mode_compile, mode_create_from_ref): Return NULL on error instead
48307         of an enum, since now there's only one way to have an error.  All
48308         callers changed.
48309         (mode_adjust): Accept new arg UMASK_VALUE, and interpret it
48310         at the correct time.  Simplify calculation of "+u" and its ilk.
48311         Don't mishandle "+X".
48312         (mode_free): Remove "register" and localize decls.
48313         * lib/modechange.h (MODE_X_IF_ANY_X, MODE_COPY_EXISTING):
48314         (struct mode_change): Move to modechange.c; callers don't
48315         need to see this stuff.
48316         (MODE_MASK_EQUALS, MODE_MASK_PLUS, MODE_MASK_MINUS, MODE_MASK_ALL):
48317         (MODE_INVALID, MODE_MEMORY_EXHAUSTED, MODE_BAD_REFERENCE): Remove.
48318         (mode_change, mode_adjust): Reflect the new signatures noted above.
48319         * lib/nanosleep.c (rpl_nanosleep): Include "timespec.h" before macros
48320         that might redefine system include files.
48321         (siginterrupt) [!HAVE_SIGINTERRUPT]: New macro.
48322         (my_usleep): Use NULL rather than (void *) 0.
48323         (rpl_nanosleep) [!defined SA_NOCLDSTOP]:
48324         Use siginterrupt to specify that system calls should be interrupted.
48325         (rpl_nanosleep): Move initialization of suspended closer to call of
48326         my_usleep.
48327         * lib/readutmp.h (read_utmp): New arg OPTIONS.  All uses changed.
48328         * lib/readutmp.c: Likewise.  Include signal.h, stdbool.h.
48329         (desirable_utmp_entry): New function.
48330         (read_utmp) [defined UTMP_NAME_FUNCTION]: Redo memory allocation
48331         using x2nrealloc, to simplify logic.
48332         (read_utmp) [!defined UTMP_NAME_FUNCTION]: Check for overflow in
48333         size calculation.  Do not assume utmp file is a regular file.
48334         * lib/readutmp.h (UT_PID): Moved here from ../src/who.c.
48335         (READ_UTMP_CHECK_PIDS): New constant.
48336         * lib/save-cwd.c: Include unistd-safer.h.
48337         (save_cwd): Use fd_safer.
48338         * lib/tempname.c (S_ISDIR, S_IRUSR, S_IRUSR, S_IWUSR, S_IXUSR): Remove.
48339         [!_LIBC] Include "stat-macros.h" instead.
48340         * lib/unistd-safer.h (fd_safer): New decl.
48341
48342 2005-05-01  Paul Eggert  <eggert@cs.ucla.edu>
48343
48344         * modules/getloadavg (Depends-on): Add unistd-safer.
48345         * modules/getusershell (Depends-on): Add stdio-safer.
48346         * modules/lstat (Depends-on): Remove xalloc.
48347         * modules/mkstemp (Depends-on): Add stat-macros.
48348         * modules/modechange (Depends-on): Remove xstrtol.
48349         Add stat-macros, xalloc.
48350         * modules/save-cwd (Depends-on): Add unistd-safer.
48351         * modules/stdio-safer (Makefile.am): Remove lib_SOURCES.
48352         * modules/unistd-safer (Files): Add lib/fd-safer.c
48353         (Makefile.am): Remove lib_SOURCES.
48354
48355         * MODULES.html.sh (Enhancements for POSIX:2001 functions):
48356         Remove fcntl-safer; unistd-safer supersedes it.
48357
48358 2005-05-01  Paul Eggert  <eggert@cs.ucla.edu>
48359
48360         * m4/euidaccess.m4 (gl_PREREQ_EUIDACCESS): Don't require
48361         AC_HEADER_STAT.
48362         * m4/lchown.m4 (gl_FUNC_CHOWN): Likewise.
48363         (gl_PREREQ_CHOWN): Remove.
48364         * m4/lstat.m4 (gl_FUNC_LSTAT): Require AC_FUNC_LSTAT instead of calling
48365         it.  Don't require AC_HEADER_STAT.
48366         (gl_PREREQ_LSTAT): Remove.
48367         * m4/mkstemp.m4 (gl_PREREQ_TEMPNAME): Check stdint.h only once.
48368         Don't require AC_HEADER_STAT.
48369         * m4/rmdir.m4 (gl_FUNC_RMDIR): Don't require AC_HEADER_STAT.
48370         (gl_PREREQ_RMDIR): Remove.
48371         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME): Don't
48372         mention stat-macros.h or AC_HEADER_STAT, since we'll make
48373         the stat-macros module a prerequisite.
48374         * m4/file-type.m4 (gl_FILE_TYPE): Likewise.
48375         * m4/filemode.m4 (gl_FILEMODE): Likewise.
48376         * m4/makepath.m4 (gl_MAKEPATH): Likewise.
48377         * m4/modechange.m4 (gl_MODECHANGE): Likewise.
48378         * m4/clock_time.m4 (gl_CLOCK_TIME): Use gl_ rather than fetish_ for
48379         variable names.
48380         * m4/rmdir-errno.m4 (gl_FUNC_RMDIR_NOTEMPTY): Renamed from
48381         fetish_FUNC_RMDIR_NOTEMPTY.  All uses changed.  Use gl_ for
48382         variable prefixes.
48383         * m4/fcntl-safer.m4: Remove.
48384         * m4/stdio-safer.m4 (gl_STDIO_SAFER): Use AC_LIBSOURCES and AC_LIBOBJ.
48385         * m4/unistd-safer.m4 (gl_UNISTD_SAFER): Likewise.
48386         Invoke gl_PREREQ_FD_SAFER.
48387         (gl_PREREQ_FD_SAFER): New macro.
48388         * m4/nanosleep.m4 (gl_PREREQ_NANOSLEEP): Check for siginterrupt.
48389         * m4/readutmp.m4 (gl_READUTMP): Require AC_C_INLINE.
48390         Use AC_CHECK_HEADERS_ONCE and AC_CHECK_FUNCS_ONCE when possible.
48391         Remove duplicate call to AC_LIBOBJ(readutmp).
48392         (gl_PREREQ_READUTMP): Remove.  All uses inlined.
48393
48394         * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Check for message, not for
48395         MAP_ANON.  Problem reported by Moriyoshi Koizumi to bug-cvs.
48396
48397 2005-05-01  Paul Eggert  <eggert@cs.ucla.edu>
48398
48399         * MODULES.html.sh (Misc): Add byteswap.
48400
48401 2005-05-01  Oskar Liljeblad  <oskar@osk.mine.nu>
48402
48403         * modules/getcwd (Depends-on): Add extensions.
48404         * modules/openat (Depends-on): Likewise.
48405
48406 2005-05-01  Oskar Liljeblad  <oskar@osk.mine.nu>
48407
48408         * modules/byteswap: New file.
48409
48410 2005-05-01  Oskar Liljeblad  <oskar@osk.mine.nu>
48411
48412         * m4/byteswap.m4: New file.
48413
48414 2005-05-01  Oskar Liljeblad  <oskar@osk.mine.nu>
48415
48416         * lib/byteswap_.h: New file.
48417
48418 2005-04-25  Karl Berry  <karl@gnu.org>
48419
48420         * m4/gettext.m4: Update from GNU gettext 0.14.4.
48421
48422 2005-04-25  Albert Chin  <china@thewrittenword.com>
48423
48424         * lib/regex.c: Include <stdio.h>, as a workaround to a Compaq Desktop
48425         Toolkit C bug.
48426
48427 2005-04-21  Oskar Liljeblad  <oskar@osk.mine.nu>
48428
48429         * gnulib-tool (Options): Add -s for --symlink/--symbolic.
48430         (func_ln_if_changed) Remove forcibly for no error message
48431         in case file does not exist.
48432
48433 2005-04-19  Simon Josefsson  <jas@extundo.com>
48434
48435         * gnulib-tool (Options): Make --symlink mean --symbolic.
48436
48437 2005-04-18  Oskar Liljeblad  <oskar@osk.mine.nu>
48438
48439         * doc/gnulib.texi (Initial import): Fix.  Mention --aux-dir.
48440
48441 2005-04-16  Simon Josefsson  <jas@extundo.com>
48442
48443         * modules/getpass-gnu (Makefile.am): Don't mention getpass.h.
48444
48445 2005-04-15  Simon Josefsson  <jas@extundo.com>
48446
48447         * m4/getpass.m4 (gl_FUNC_GETPASS): Use AC_LIBSOURCES.
48448
48449 2005-04-15  Simon Josefsson  <jas@extundo.com>
48450
48451         * gnulib-tool: Rename --symlink to --symbolic.
48452
48453 2005-04-15  Oskar Liljeblad  <oskar@osk.mine.nu>
48454
48455         * gnulib-tool: Add -s, --symlink option to gnulib-tool to make
48456         symbolic links to files instead of copying/moving.  Add --aux-dir,
48457         specifying directory relative --dir where auxiliary build tools
48458         are placed.
48459
48460 2005-04-14  Bruno Haible  <bruno@clisp.org>
48461
48462         * modules/allocsa (License): Change to LGPL.
48463         Requested by Yoann Vandoorselaere <yoann@prelude-ids.org>.
48464
48465 2005-04-13  Paul Eggert  <eggert@cs.ucla.edu>
48466
48467         * lib/getdate.y (zone): Allow relunit_snumber after tZONE, so
48468         that "UTC +1 second" continues to work.  Problem reported
48469         by Dmitry V. Levin.
48470         (relunit_snumber): New rule.
48471         (relunit): Use it.
48472
48473 2005-04-12  Paul Eggert  <eggert@cs.ucla.edu>
48474
48475         * lib/getdate.y (universal_time_zone_table): New constant.
48476         (time_zone_table): Remove GMT, UT, UTC entries; they're now in
48477         universal_time_zone_table.
48478         (lookup_zone): Prefer universal_time_zone_table to
48479         local_time_zone_table, so that "GMT" time stamps are allowed in
48480         London during the summer.  Problem reported by Ian Abbott.
48481
48482 2005-04-12  Jim Meyering  <jim@meyering.net>
48483
48484         * lib/human.c (humblock): Set *options even when returning due to
48485         xstrtoumax conversion failure.  Thanks to a used-uninitialized
48486         warning from gcc-4.
48487
48488 2005-04-09  Jim Meyering  <jim@meyering.net>
48489
48490         * lib/posixtm.c (posixtime) [lint]: Avoid spurious warning from gcc-4's
48491         -Wuninitialized: initialize tm0.tm_year.
48492
48493 2005-04-04  Paul Eggert  <eggert@cs.ucla.edu>
48494
48495         * lib/getdate.y (parser_control): rels_seen is now a boolean, not a
48496         count, since there's no maximum.  All uses changed.
48497         Add member dsts_seen.
48498         (local_zone): Accumulate dsts_seen rather than relying on tm_isdst
48499         not being INT_MAX.
48500         (get_date): Initialize dsts_seen, and check that it doesn't go over 1.
48501         Use pc_rels_seen to decide whther a date is absolute.
48502
48503         * lib/getdate.y (number): Don't overwrite year.
48504         (get_date): Initialize pc.year.digits to 0, not 4, to enable above
48505         check.
48506
48507 2005-04-02  Simon Josefsson  <jas@extundo.com>
48508
48509         * lib/getaddrinfo.h: Fix OpenBSD compilation failure, inspired by tiny
48510         patch from Yoann Vandoorselaere <yoann@prelude-ids.org>.
48511
48512 2005-03-28  Eric Blake  <ebb9@byu.net>  (tiny change)
48513
48514         * m4/getcwd-path-max.m4: Return success on systems such as Cygwin
48515         where no absolute path name can be longer than PATH_MAX.
48516
48517 2005-03-27  Jim Meyering  <jim@meyering.net>
48518
48519         * lib/argmatch.c: Clarify comment: null-terminated -> NULL-terminated.
48520
48521 2005-03-26  Paul Eggert  <eggert@cs.ucla.edu>
48522
48523         * lib/intprops.h (INT_STRLEN_BOUND, INT_BUFSIZE_BOUND):
48524         "one's complement" -> "ones' complement" in comment, as per Knuth.
48525         "value of type" -> "type or expression" in comment.
48526         * lib/mktime.c, strftime.c: Propagate intprops.h comment nits.
48527
48528 2005-03-26  Jim Meyering  <jim@meyering.net>
48529
48530         Comment nits.
48531         * lib/intprops.h: Add the apostrophe in `(one|two)'s complement'.
48532         Correct typos: s/or/of/.
48533
48534 2005-03-26  Jim Meyering  <jim@meyering.net>
48535
48536         * modules/check-include-files: Move to ../ and rename to...
48537         * check-module: ...this.
48538
48539 2005-03-25  Jim Meyering  <jim@meyering.net>
48540
48541         * modules/xvasprintf (Files): Add xalloc.h.
48542
48543 2005-03-23  Paul Eggert  <eggert@cs.ucla.edu>
48544
48545         * modules/gettext (Files): config/config.rpath ->
48546         build-aux/config.rpath
48547         * modules/iconv (Files): Likewise.
48548         Problem reported by Oskar Liljeblad.
48549
48550 2005-03-23  Jim Meyering  <jim@meyering.net>
48551
48552         * modules/check-include-files: New script to check for
48553         missing dependencies, multiple includes, etc.
48554
48555         * modules/c-strtold (Depends-on): Add xalloc.
48556         * modules/c-strtod (Depends-on): Add xalloc.
48557         * modules/hash (Depends-on): Add xalloc.
48558         (Files): Remove lib/xalloc.h.
48559
48560         * modules/gethrxtime (Files): Add lib/gethrxtime.h.
48561         * modules/userspec (Files): Add lib/inttostr.h.
48562
48563 2005-03-23  Jim Meyering  <jim@meyering.net>
48564
48565         * lib/canonicalize.c: Remove duplicate `#include "stat-macros.h"'.
48566
48567 2005-03-22  Jim Meyering  <jim@meyering.net>
48568
48569         * modules/stat-macros: New module.
48570         * modules/canonicalize, modules/euidaccess, modules/file-type,
48571         * modules/filemode, modules/lchown, modules/makepath,
48572         * modules/rmdir, modules/stat: Depend on new stat-macros module
48573         rather than listing lib/stat-macros.h manually.
48574         Don't add stat-macros.h to lib_SOURCES or list it in Files: section.
48575
48576 2005-03-22  Jim Meyering  <jim@meyering.net>
48577
48578         * m4/stat-macros.m4 (gl_STAT_MACROS): New file/macro.
48579
48580 2005-03-22  Bruno Haible  <bruno@clisp.org>
48581
48582         * config/srclist.txt: Replace target directory 'config' with
48583         'build-aux'.
48584         * config/config.guess, config.sub, config.rpath, depcomp, install-sh:
48585         * config/mdate-sh, missing, mkinstalldirs, texinfo.tex: Move to
48586         ../build-aux/.
48587
48588 2005-03-21  Paul Eggert  <eggert@cs.ucla.edu>
48589
48590         * modules/chdir-long (Depends-on): Add mempcpy.
48591
48592         * modules/acl, modules/backupfile, modules/c-strtod,
48593         modules/c-strtold, modules/canon-host, modules/canonicalize,
48594         modules/cloexec, modules/closeout, modules/dirfd, modules/dirname,
48595         modules/exclude, modules/exitfail, modules/file-type,
48596         modules/filemode, modules/fpending, modules/fsusage, modules/getcwd,
48597         modules/getdate, modules/getline, modules/getpagesize,
48598         modules/getpass, modules/getugroups, modules/group-member,
48599         modules/hard-locale, modules/hash, modules/human, modules/idcache,
48600         modules/inttostr, modules/long-options, modules/makepath,
48601         modules/md5, modules/memcasecmp, modules/memcoll,
48602         modules/modechange, modules/mountlist, modules/path-concat,
48603         modules/pathmax, modules/physmem, modules/posixtm, modules/posixver,
48604         modules/quote, modules/quotearg, modules/readtokens, modules/readutmp,
48605         modules/safe-read, modules/safe-write, modules/same, modules/savedir,
48606         modules/settime, modules/sha1, modules/sig2str, modules/strdup,
48607         modules/strftime, modules/strndup, modules/strverscmp,
48608         modules/timespec, modules/unlocked-io, modules/userspec,
48609         modules/utimecmp, modules/utimens, modules/xalloc, modules/xstrtol,
48610         modules/yesno:
48611         Remove lib_SOURCES line from Makefile.am section, as this is now
48612         done automatically by the corresponding Autoconf macro.
48613
48614 2005-03-21  Jim Meyering  <jim@meyering.net>
48615
48616         Changes imported from coreutils.
48617
48618         * lib/cycle-check.c: Don't include xalloc.h.
48619
48620         * lib/path-concat.c: Don't include assert.h.
48621         (path_concat): Remove assertion that would have triggered
48622         for ABASE starting with more than one slash.
48623         Reported by Andreas Schwab.
48624
48625         * lib/path-concat.c (path_concat): Set *BASE_IN_RESULT
48626         properly when ABASE is an absolute file name.
48627         Correct the description of this function.
48628         Include <assert.h>.
48629         Add an assertion and a test driver.
48630         This fixes a bug introduced on 2004-07-02.
48631         Andreas Schwab reported the resulting failure of cp --parents:
48632         http://lists.gnu.org/archive/html/bug-coreutils/2005-01/msg00130.html
48633
48634 2005-03-21  Jim Meyering  <jim@meyering.net>
48635
48636         * m4/chdir-long.m4 (gl_PREREQ_CHDIR_LONG): Invoke gl_FUNC_MEMRCHR.
48637         * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Check for memrchr decl.
48638
48639 2005-03-21  Jim Meyering  <jim@meyering.net>
48640         and  Paul Eggert  <eggert@cs.ucla.edu>
48641
48642         * m4/acl.m4, m4/backupfile.m4, m4/c-strtod.m4, m4/canon-host.m4,
48643         m4/canonicalize.m4, m4/cloexec.m4, m4/closeout.m4, m4/dirfd.m4,
48644         m4/dirname.m4, m4/exclude.m4, m4/exitfail.m4, m4/file-type.m4,
48645         m4/filemode.m4, m4/fpending.m4, m4/fsusage.m4, m4/getcwd.m4,
48646         m4/getdate.m4, m4/getline.m4, m4/getpagesize.m4, m4/getpass.m4,
48647         m4/getugroups.m4, m4/group-member.m4, m4/hard-locale.m4, m4/hash.m4,
48648         m4/human.m4, m4/idcache.m4, m4/inttostr.m4, m4/long-options.m4,
48649         m4/makepath.m4, m4/md5.m4, m4/memcasecmp.m4, m4/memcoll.m4,
48650         m4/modechange.m4, m4/mountlist.m4, m4/nanosleep.m4, m4/path-concat.m4,
48651         m4/pathmax.m4, m4/physmem.m4, m4/posixtm.m4, m4/posixver.m4,
48652         m4/quote.m4, m4/quotearg.m4, m4/readtokens.m4, m4/readutmp.m4,
48653         m4/safe-read.m4, m4/safe-write.m4, m4/same.m4, m4/savedir.m4,
48654         m4/settime.m4, m4/sha1.m4, m4/sig2str.m4, m4/strdup.m4, m4/strftime.m4,
48655         m4/strndup.m4, m4/strverscmp.m4, m4/timespec.m4, m4/unlocked-io.m4,
48656         m4/userspec.m4, m4/utimecmp.m4, m4/utimens.m4, m4/xalloc.m4,
48657         m4/xnanosleep.m4, m4/xstrtol.m4, m4/yesno.m4:
48658         Use AC_LIBSOURCES and AC_LIBOBJ to indicate source and object files
48659         for these modules.
48660
48661 2005-03-18  Paul Eggert  <eggert@cs.ucla.edu>
48662
48663         * lib/strftime.c (my_strftime): If the underlying strftime returns 0
48664         (which shouldn't happen), generate nothing instead of returning 0
48665         immediately, so that nstrftime (NULL, ...) doesn't return 0.
48666
48667 2005-03-16  Bruno Haible  <bruno@clisp.org>
48668
48669         * modules/stdint (Makefile.am): Use HAVE_LONG_LONG_64BIT instead of
48670         HAVE_LONGLONG_64BIT.
48671
48672 2005-03-16  Bruno Haible  <bruno@clisp.org>
48673
48674         * m4/stdint.m4 (gl_STDINT_H): Define HAVE_LONG_LONG_64BIT instead of
48675         HAVE_LONGLONG_64BIT.
48676
48677 2005-03-16  Bruno Haible  <bruno@clisp.org>
48678
48679         * lib/stdint_.h: Use HAVE_LONG_LONG_64BIT instead of
48680         HAVE_LONGLONG_64BIT.
48681
48682 2005-03-15  Paul Eggert  <eggert@cs.ucla.edu>
48683
48684         * lib/strftime.c (my_strftime): Prepend space to format so that we can
48685         reliably distinguish strftime failure from empty output on POSIX
48686         hosts.
48687
48688 2005-03-15  Paul Eggert  <eggert@cs.ucla.edu>
48689
48690         * lib/iconvme.c (SIZE_MAX): New macro, if not already defined.
48691         (iconv_string): Don't guess a size-zero buffer, as that might cause
48692         buffer overrun.  Instead, avoid multiplying by MB_LEN_MAX if the
48693         result would be 'too large', where 'too large' is (heuristically)
48694         the square root of SIZE_MAX, divided by MB_LEN_MAX to allay
48695         overflow concerns.  This will prevent some unwanted malloc failures
48696         when the inputs are very large.
48697
48698 2005-03-15  Karl Berry  <karl@gnu.org>
48699
48700         * config/srclist.txt (config.rpath): from gettext.
48701         * config/config.rpath: update.
48702
48703 2005-03-15  Bruno Haible  <bruno@clisp.org>
48704
48705         * lib/regex.c (byte_re_match_2_internal): Rename local variable 'not'
48706         to 'negate'.
48707
48708         * lib/regex.c (byte_re_match_2_internal): Reduce scope of same_str_p
48709         variable.
48710
48711         * lib/regex.c (EXTEND_BUFFER, regcomp): Cast the realloc/malloc
48712         results.
48713
48714 2005-03-14  Simon Josefsson  <jas@extundo.com>
48715
48716         * lib/timegm.h: Use proper prototype CPP guards, reported by Dave Love
48717         <fx@gnu.org>.
48718
48719 2005-03-14  Paul Eggert  <eggert@cs.ucla.edu>
48720
48721         * lib/mktime.c (TYPE_TWOS_COMPLEMENT, TYPE_ONES_COMPLEMENT,
48722         TYPE_SIGNED_MAGNITUDE, TYPE_MINIMUM, TYPE_MAXIMUM): Sync from
48723         intprops.h.
48724         * lib/strtol.c: Likewise.
48725
48726 2005-03-14  Jim Meyering  <jim@meyering.net>
48727
48728         * lib/strftime.c (my_strftime) [HAVE_STRFTIME && ! (_NL_CURRENT
48729         && HAVE_STRUCT_ERA_ENTRY)]: Initialize the first byte of ubuf[]
48730         to be nonzero so that we (and caller) can detect the difference
48731         between a valid zero-length expansion and an error return, even
48732         when the underlying strftime fails before writing anything into
48733         that location.
48734
48735 2005-03-14  Bruno Haible  <bruno@clisp.org>
48736
48737         * m4/lib-link.m4, gettext.m4, nls.m4, po.m4:
48738         Update from GNU gettext 0.14.3.
48739
48740 2005-03-10  Jim Meyering  <jim@meyering.net>
48741
48742         * m4/save-cwd.m4 (gl_SAVE_CWD): Check for fchdir.
48743
48744 2005-03-10  Jim Meyering  <jim@meyering.net>
48745
48746         * lib/save-cwd.c [!HAVE_FCHDIR]: Define open, fchdir, and chdir_long
48747         so that this module works on systems without fchdir.
48748
48749 2005-03-09  Paul Eggert  <eggert@cs.ucla.edu>
48750
48751         Factor int-properties macros into a single file, except for
48752         glibc-related files.
48753         * lib/intprops.h: New file.
48754         * lib/getloadavg.c: Include it instead of limits.h.
48755         (INT_STRLEN_BOUND): Remove.
48756         * lib/human.c: Include intprops.h.
48757         (group_number): Use INT_STRLEN_BOUND instead of rolling it ourself.
48758         * lib/human.h (LONGEST_HUMAN_READABLE): Use 146/485 rather than
48759         302/1000.
48760         * lib/inttostr.h: Include intprops.h instead of limits.h.
48761         (INT_STRLEN_BOUND, INT_BUFSIZE_BOUND): Remove.
48762         * lib/mktime.c (TYPE_IS_INTEGER, TYPE_TWOS_COMPLEMENT): New macros,
48763         for consistency with intprops.h.
48764         (time_t_is_integer, twos_complement_arithmetic): Use them.
48765         * lib/sig2str.h: Include <signal.h>, intprops.h.
48766         (INT_STRLEN_BOUND): Remove.
48767         * lib/strftime.c (TYPE_SIGNED): Remove.
48768         (INT_STRLEN_BOUND): Switch to same implementation as intprops.h.
48769         * lib/strtol.c: Adjust comments to match intprops.h.
48770         * lib/userspec.c: Include intprops.h.
48771         (TYPE_SIGNED, TYPE_MINIMUM, TYPE_MAXIMUM): Remove.
48772         * lib/utimecmp.c, xnanosleep.c, xstrtol.c: Likewise.
48773         * lib/utimecmp.c (utimecmp): Use TYPE_IS_INTEGER, TYPE_TWOS_COMPLEMENT
48774         instead of rolling our own expressions.
48775         * lib/xstrtol.c: Include xstrtol.h first, to test interface.
48776
48777         * lib/strftime.c: Include <stdbool.h>.  Use bool where appropriate,
48778         instead of int.
48779         (my_strftime): Do not mishandle years close to INT_MAX, by doing
48780         the right thing even if adding 1900 would overflow.  Similarly
48781         for tm_mon + 1 and tm_yday + 1.
48782         Make %Y always equivalent to %C%y, and similarly for %G and %g.
48783         (DO_NUMBER, DO_NUMBER_SPACEPAD): Set digits to d, not a conditional.
48784         (DO_SIGNED_NUMBER): New macro.
48785         (my_strftime) [HAVE_TZNAME]: Don't dump core if tp->tm_dst > 1.
48786
48787 2005-03-07  Bruno Haible  <bruno@clisp.org>
48788
48789         * m4/mmap-anon.m4 (MAP_FILE, MAP_FAILED): Remove definitions.
48790
48791 2005-03-07  Bruno Haible  <bruno@clisp.org>
48792
48793         * lib/pagealign_alloc.c (MAP_FILE, MAP_FAILED): Define fallbacks.
48794
48795 2005-03-04  Derek R. Price  <derek@ximbiot.com>
48796
48797         * gnulib-tool (func_cp_if_changed, func_mv_if_changed): New functions.
48798         (func_import): Only replace files via --import when they have actually
48799         changed.
48800
48801 2005-03-03  Derek R. Price  <derek@ximbiot.com>
48802
48803         * m4/mmap-anon.m4: New file.
48804         * m4/pagealign_alloc.m4: New file.
48805
48806 2005-03-03  Derek R. Price  <derek@ximbiot.com>
48807             Bruno Haible  <bruno@clisp.org>
48808
48809         * modules/pagealign_alloc: New file.
48810         * MODULES.html.sh (Memory management functions): Add pagealign_alloc.
48811
48812 2005-03-03  Derek R. Price  <derek@ximbiot.com>
48813             Bruno Haible  <bruno@clisp.org>
48814
48815         * lib/pagealign_alloc.h: New file.
48816         * lib/pagealign_alloc.c: New file.
48817
48818 2005-03-03  Bruno Haible  <bruno@clisp.org>
48819
48820         * m4/inttypes.m4, isc-posix.m4, once-only.m4:
48821         Use an all-permissive copyright notice, recommended by RMS.
48822
48823 2005-03-02  Bruno Haible  <bruno@clisp.org>
48824
48825         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Undo the replacement here. Because
48826         of AIX, the replacement has to be done only after <string.h> is
48827         included, therefore not in config.h. stpncpy.h does the replacement,
48828         and stpncpy.c uses it.
48829
48830 2005-03-02  Bruno Haible  <bruno@clisp.org>
48831
48832         * lib/stpncpy.h (stpncpy): Define as a macro without arguments, so that
48833         stpncpy.c uses it.
48834
48835 2005-03-01  Paul Eggert  <eggert@cs.ucla.edu>
48836
48837         Remove workaround for bug in Linux kernel 2.6.8 or thereabouts.
48838         The workaround isn't strictly needed for POSIX conformance, and
48839         it's too much of a pain to configure and maintain.  We'll ask
48840         people to fix their kernels instead.
48841         * lib/xnanosleep.c: Don't include gethrxtime.h or xtime.h.
48842         (NANOSLEEP_BUG_WORKAROUND): Remove.
48843         (xnanosleep): Remove the workaround.
48844
48845 2005-03-01  Paul Eggert  <eggert@cs.ucla.edu>
48846
48847         * modules/gettime (Makefile.am): Remove lib_SOURCES line.
48848         Reported by Derek Price.
48849         (Include): Add "timespec.h".
48850
48851         * modules/xnanosleep (Depends-on): Remove gethrxtime.
48852
48853 2005-03-01  Paul Eggert  <eggert@cs.ucla.edu>
48854
48855         * m4/xnanosleep.m4 (gl_XNANOSLEEP): Remove configuration attempting
48856         to detect nanosleep bug.
48857
48858 2005-03-01  Bruno Haible  <bruno@clisp.org>
48859
48860         * lib/vasnprintf.c (EOVERFLOW): Define to a fallback if needed.
48861
48862 2005-02-26  Paul Eggert  <eggert@cs.ucla.edu>
48863
48864         * modules/gethrxtime: New file.
48865         * modules/xnanosleep (Files): Add m4/xnanosleep.m4.
48866         (Depends-on): Add gethrxtime.
48867         (configure.ac): Add gl_XNANOSLEEP.
48868         (Makefile.am): Remove lib_SOURCES line.
48869
48870 2005-02-25  Paul Eggert  <eggert@cs.ucla.edu>
48871
48872         * m4/gethrxtime.m4, m4/xnanosleep.m4: New files.
48873         * m4/gettime.m4 (gl_GETTIME): Check for nanotime.
48874
48875 2005-02-25  Paul Eggert  <eggert@cs.ucla.edu>
48876
48877         * lib/gethrxtime.h, lib/gethrxtime.c, lib/xtime.h: New files.
48878         * lib/timespec.h (gettime): Return void, since it always
48879         succeeds now.  All uses changed.
48880         * lib/gettime.c (gettime) Likewise.
48881         [HAVE_NANOTIME]: Prefer nanotime.
48882         Assume gettimeofday succeeds, as POSIX requires.
48883         Assime time () succeeds, since other code already does.
48884         * lib/xnanosleep.c: Include xtime.h and gethrxtime.h, not xalloc.h.
48885         (timespec_subtract): Remove.
48886         (NANOSLEEP_BUG_WORKAROUND): New constant.
48887         (xnanosleep): Use gethrxtime rather than gettime; this simplifies
48888         things considerably.  Use it only on GNU/Linux hosts, since the
48889         workaround shouldn't be needed elsewhere.
48890
48891 2005-02-24  Bruno Haible  <bruno@clisp.org>
48892
48893         * modules/gettext (Files): Add m4/glibc2.m4.
48894
48895 2005-02-24  Bruno Haible  <bruno@clisp.org>
48896
48897         * m4/gettext.m4, intdiv0.m4, intmax.m4, inttypes-pri.m4, lcmessage.m4:
48898         * m4/lib-link.m4, lib-prefix.m4, nls.m4, po.m4, printf-posix.m4:
48899         * m4/progtest.m4:
48900         Update from GNU gettext 0.14.2.
48901         * m4/glibc2.m4: New file, from GNU gettext 0.14.2.
48902
48903 2005-02-24  Bruno Haible  <bruno@clisp.org>
48904
48905         * lib/localcharset.c: Update from GNU gettext 0.14.2.
48906         * lib/config.charset: Update from GNU gettext 0.14.2.
48907
48908 2005-02-24  Bruno Haible  <bruno@clisp.org>
48909
48910         * lib/gettext.h: Update from GNU gettext 0.14.2.
48911
48912 2005-02-23  Simon Josefsson  <jas@extundo.com>
48913
48914         * m4/iconvme.m4: New file.
48915
48916 2005-02-23  Jim Meyering  <jim@meyering.net>
48917
48918         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Revert yesteday's
48919         change.
48920         Thanks to Bruno Haible for catching it.
48921
48922 2005-02-22  Simon Josefsson  <jas@extundo.com>
48923
48924         * modules/iconvme: New file.
48925
48926         * MODULES.html.sh: Add iconvme.
48927
48928 2005-02-22  Simon Josefsson  <jas@extundo.com>
48929
48930         * lib/iconvme.h, lib/iconvme.c: New files, from libc.
48931
48932 2005-02-22  Simon Josefsson  <jas@extundo.com>
48933
48934         * config/srclist.txt: Sync iconvme.h, iconvme.c from libc.
48935
48936 2005-02-22  Jim Meyering  <jim@meyering.net>
48937
48938         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Fix typo:
48939         s/ifndef/ifdef/.
48940
48941 2005-02-20  Neil Conway  <neilc@samurai.com>
48942
48943         * lib/xgethostname.c (xgethostname): Check for ENOMEM, which is
48944         returned by OSX/Darwin if the specified buffer is not large
48945         enough for the hostname.
48946
48947 2005-02-03  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
48948
48949         * lib/argp-help.c (__argp_help): Create a fake struct argp_state and
48950         pass it to _help, otherwise the latter coredumps trying to
48951         dereference state.root_argp.
48952
48953 2005-02-03  Paul Eggert  <eggert@cs.ucla.edu>
48954
48955         * modules/chdir-long (Depends-on): Add memrchr.
48956         * modules/memrchr (Files): Add lib/memrchr.h.
48957         (Include): "memrchr.h".
48958
48959 2005-02-03  Paul Eggert  <eggert@cs.ucla.edu>
48960
48961         * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Add AC_LIBSOURCES, for memrchr.h.
48962
48963 2005-02-03  Paul Eggert  <eggert@cs.ucla.edu>
48964
48965         * lib/memrchr.h: New file.
48966         * lib/chdir-long.c: Include it.
48967         * lib/memrchr.c [!defined _LIBC]: Include it rather than <string.h>
48968         Don't bother including stddef.h.
48969
48970 2005-02-01  Paul Eggert  <eggert@cs.ucla.edu>
48971
48972         * lib/mountlist.h (MOUNTLIST_H_): New macro, to protect against double
48973         inclusion.
48974         Include <sys/types.h>, for dev_t.
48975         (ME_DUMMY, ME_REMOTE): Move from here....
48976         * lib/mountlist.c (ME_DUMMY, ME_REMOTE): To here.
48977         (ME_DUMMY): Count "subfs" as a dummy.  Problem reported by
48978         Dmitry V. Levin.
48979         Include mountlist.h first, to test the interface.
48980
48981 2005-01-29  Bruno Haible  <bruno@clisp.org>
48982
48983         * lib/progname.c (program_name): Initialize.
48984         Needed when linking statically on MacOS X.
48985
48986 2005-01-28  Paul Eggert  <eggert@cs.ucla.edu>
48987
48988         Sync from coreutils.
48989         * modules/getloadavg (Files): Remove m4/getloadavg.m4.
48990         (Depends-on): Add c-strtod.
48991         (configure.ac): Replace gl_FUNC_GETLOADAVG with AC_FUNC_GETLOADAVG.
48992
48993 2005-01-28  Paul Eggert  <eggert@cs.ucla.edu>
48994
48995         Sync from coreutils.
48996         * m4/getloadavg.m4, glibc.m4, search-libs.m4: Remove.
48997
48998         Remove files that are specific to coreutils.
48999         * m4/check-decl.m4, jm-macros.m4, lib-check.m4, prereq.m4: Remove.
49000
49001 2005-01-28  Bruno Haible  <bruno@clisp.org>
49002
49003         * modules/javacomp: New file.
49004         * MODULES.html.sh (Java): Add javacomp.
49005
49006 2005-01-28  Bruno Haible  <bruno@clisp.org>
49007
49008         * m4/javacomp.m4: New file, from GNU gettext.
49009
49010 2005-01-28  Bruno Haible  <bruno@clisp.org>
49011
49012         * lib/javacomp.sh.in: New file, from GNU gettext.
49013         * lib/javacomp.h: New file, from GNU gettext.
49014         * lib/javacomp.c: New file, from GNU gettext.
49015
49016 2005-01-26  Simon Josefsson  <jas@extundo.com>
49017
49018         * lib/gai_strerror.c: Use GPL in header.
49019
49020 2005-01-26  Bruno Haible  <bruno@clisp.org>
49021
49022         * modules/javaexec: New file.
49023         * MODULES.html.sh (Java): Add javaexec.
49024
49025 2005-01-26  Bruno Haible  <bruno@clisp.org>
49026
49027         * m4/javaexec.m4: New file, from GNU gettext.
49028
49029 2005-01-26  Bruno Haible  <bruno@clisp.org>
49030
49031         * lib/javaexec.sh.in: New file, from GNU gettext.
49032         * lib/javaexec.h: New file, from GNU gettext.
49033         * lib/javaexec.c: New file, from GNU gettext.
49034
49035 2005-01-24  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
49036
49037         * modules/lchown (Depends-on): Remove lchown.h
49038
49039 2005-01-24  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
49040
49041         * m4/sysexits.m4 (gl_SYSEXITS): Reverted logic. SYSEXITS_H
49042         must be defined if the header file was not found, in order
49043         to provide a replacement. Reported by Todd Vierling <tv@duh.org>
49044
49045 2005-01-24  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
49046
49047         * lib/argp-help.c (hol_entry_help): Avoid using non-constant
49048         initializers for struct pentry_state.
49049         (__argp_error): Check return value of __asprintf
49050         (__argp_failure): Translate error message
49051
49052         * lib/argp-parse.c: Removed braces around the expansion of N_()
49053
49054 2005-01-23  Paul Eggert  <eggert@cs.ucla.edu>
49055
49056         * m4/acl.m4, afs.m4, alloca.m4, argp.m4, assert.m4, atexit.m4,
49057         backupfile.m4, base64.m4, bison.m4, c-bs-a.m4, c-stack.m4,
49058         c-strtod.m4, calloc.m4, canon-host.m4, canonicalize.m4,
49059         clock_time.m4, cloexec.m4, closeout.m4, d-ino.m4, d-type.m4,
49060         dirfd.m4, dirname.m4, dos.m4, dup2.m4, error.m4, euidaccess.m4,
49061         exclude.m4, exitfail.m4, extensions.m4, fcntl-safer.m4,
49062         file-type.m4, fileblocks.m4, filemode.m4, fnmatch.m4, fpending.m4,
49063         free.m4, fstypename.m4, fsusage.m4, ftruncate.m4, getaddrinfo.m4,
49064         getcwd-path-max.m4, getcwd.m4, getdate.m4, getdomainname.m4,
49065         getgroups.m4, gethostname.m4, getline.m4, getndelim2.m4,
49066         getnline.m4, getopt.m4, getpagesize.m4, getpass.m4, getsubopt.m4,
49067         gettime.m4, gettimeofday.m4, getugroups.m4, getusershell.m4,
49068         group-member.m4, hard-locale.m4, hash.m4, host-os.m4, human.m4,
49069         idcache.m4, inttostr.m4, isdir.m4, jm-winsz1.m4, jm-winsz2.m4,
49070         link-follow.m4, long-options.m4, ls-mntd-fs.m4, lstat.m4,
49071         makepath.m4, mathl.m4, md5.m4, memcasecmp.m4, memchr.m4,
49072         memcmp.m4, memcoll.m4, memcpy.m4, memmem.m4, memmove.m4,
49073         memrchr.m4, memset.m4, mkdir-slash.m4, mkstemp.m4, mktime.m4,
49074         modechange.m4, mountlist.m4, nanosleep.m4, obstack.m4,
49075         path-concat.m4, pathmax.m4, perl.m4, physmem.m4, poll.m4,
49076         posixtm.m4, posixver.m4, putenv.m4, quote.m4, quotearg.m4,
49077         readdir.m4, readtokens.m4, readutmp.m4, regex.m4, rename.m4,
49078         restrict.m4, rmdir-errno.m4, rmdir.m4, rpmatch.m4, same.m4,
49079         savedir.m4, settime.m4, sha1.m4, sig2str.m4, snprintf.m4,
49080         sockpfaf.m4, st_dm_mode.m4, st_mtim.m4, stat.m4, stdint.m4,
49081         stdio-safer.m4, strchrnul.m4, strdup.m4, strerror.m4,
49082         strerror_r.m4, strftime.m4, strndup.m4, strnlen.m4, strsep.m4,
49083         strtod.m4, strtoimax.m4, strtok_r.m4, strtol.m4, strtoll.m4,
49084         strtoul.m4, strtoull.m4, strtoumax.m4, strverscmp.m4, sysexits.m4,
49085         time_r.m4, timegm.m4, timespec.m4, tm_gmtoff.m4, tzset.m4,
49086         uint32_t.m4, uintptr_t.m4, unistd-safer.m4, unlink-busy.m4,
49087         unlocked-io.m4, uptime.m4, userspec.m4, utimbuf.m4, utime.m4,
49088         utimecmp.m4, utimens.m4, utimes-null.m4, vsnprintf.m4, xalloc.m4,
49089         xgetcwd.m4, xreadlink.m4, xstrndup.m4, xstrtod.m4, xstrtoimax.m4,
49090         xstrtol.m4, xstrtoumax.m4, yesno.m4:
49091         Use an all-permissive copyright notice, recommended by RMS.
49092
49093 2005-01-21  Paul Eggert  <eggert@cs.ucla.edu>
49094
49095         * modules/chdir-long (Depends-on): Remove mempcpy.
49096
49097 2005-01-21  Jim Meyering  <jim@meyering.net>
49098
49099         * lib/openat.h (AT_SYMLINK_NOFOLLOW): Define to 4096, so it's the
49100         same value as for Solaris 9.
49101
49102         * lib/chdir-long.c (chdir_long): Rewrite to remove limitation on
49103         component length.  This included changing the parameter to be
49104         of type `char *' rather than `char const *'.
49105         * lib/chdir-long.h (chdir_long): Update prototype.
49106
49107         * lib/openat.c (fdopendir, fstatat): New functions.
49108         * lib/openat.h: Include headers required for use of DIR and struct
49109         stat.
49110         [AT_SYMLINK_NOFOLLOW]: Define.
49111         (fdopendir, fstatat): Add prototypes.
49112
49113 2005-01-21  Bruno Haible  <bruno@clisp.org>
49114
49115         * modules/classpath: New file.
49116         * MODULES.html.sh (Java): Add classpath.
49117
49118 2005-01-21  Bruno Haible  <bruno@clisp.org>
49119
49120         * lib/classpath.h: New file, from GNU gettext.
49121         * lib/classpath.c: New file, from GNU gettext.
49122
49123 2005-01-20  Simon Josefsson  <jas@extundo.com>
49124
49125         * modules/version-etc-fsf: New file.
49126
49127 2005-01-20  Simon Josefsson  <jas@extundo.com>
49128
49129         * lib/version-etc-fsf.c: New file, with version_etc_copyright.
49130         * lib/version-etc.c: Remove version_etc_copyright.
49131         * lib/version-etc.h (version_etc_copyright): Use [] instead of * in
49132         prototype, suggested by Paul Eggert <eggert@CS.UCLA.EDU>.
49133
49134 2005-01-20  Simon Josefsson  <jas@extundo.com>
49135
49136         * lib/base64.h (isbase64): Add.
49137
49138         * lib/base64.c (isb64): Rename to isbase64, use to_uchar instead of
49139         using a unsigned prototype, don't inline.
49140         (base64_decode): Use it.
49141
49142 2005-01-20  Paul Eggert  <eggert@cs.ucla.edu>
49143
49144         * m4/save-cwd.m4 (gl_SAVE_CWD): Remove check for fcntl; we now assume
49145         it.
49146
49147 2005-01-20  Paul Eggert  <eggert@cs.ucla.edu>
49148
49149         * lib/save-cwd.c (save_cwd): Remove code to support the case
49150         where fchdir is missing or flaky.
49151
49152 2005-01-20  Paul Eggert  <eggert@cs.ucla.edu>
49153
49154         * MODULES.html.sh (Command-line arguments): Add version-etc-fsf.
49155
49156 2005-01-19  Paul Eggert  <eggert@cs.ucla.edu>
49157
49158         * modules/mempcpy (Makefile.am): Remove mention of mempcpy.h;
49159         AC_LIBSOURCES now does this.
49160         * MODULES.html.sh (Sizes of integer types <limits.h>): New element,
49161         with new ullong_max module.
49162
49163 2005-01-19  Bruno Haible  <bruno@clisp.org>
49164
49165         * modules/sh-quote: New file.
49166         * MODULES.html.sh (Executing programs): Add sh-quote.
49167
49168 2005-01-19  Bruno Haible  <bruno@clisp.org>
49169
49170         * lib/sh-quote.h: New file, from GNU gettext.
49171         * lib/sh-quote.c: New file, from GNU gettext.
49172
49173 2005-01-18  Paul Eggert  <eggert@cs.ucla.edu>
49174
49175         Merge from coreutils.
49176         * m4/ullong_max.m4: New file.
49177         * m4/jm-macros.m4 (gl_MACROS): Require gl_ULLONG_MAX.
49178         (gl_MACROS): Assume localeconv exists.
49179
49180 2005-01-18  Paul Eggert  <eggert@cs.ucla.edu>
49181
49182         Merge changes from coreutils, as described below in several
49183         changelogs dated today.
49184
49185         * lib/save-cwd.c: Include "save-cwd.h" before other include files.
49186         (O_DIRECTORY): Remove; not needed here, since "." must be
49187         a directory.  All uses removed.
49188         (save_cwd): Use __sgi || __sun, not sun || __sun.  __sun is
49189         universal on Suns, and we also need to test for IRIX.
49190         Revamp code to use 'if' rather than '#if'.
49191         Avoid unnecessary comparison of cwd->desc to 0.
49192
49193         * lib/utimens.c (futimens): Robustify the previous patch, by checking
49194         for known valid error numbers rather than observed invalid ones.
49195
49196 2005-01-18  Paul Eggert  <eggert@cs.ucla.edu>
49197
49198         * modules/ullong_max: New file.
49199
49200         * modules/chdir-long, modules/openat: New files.
49201         * modules/save-cwd (Depends-on): Depend on chdir-long.
49202         (Makefile.am): Remove lib_SOURCES; now handled by AC_LIBSOURCES.
49203
49204 2005-01-18  Jim Meyering  <jim@meyering.net>
49205
49206         Merge from coreutils.
49207         * m4/chdir-long.m4, m4/openat.m4: New files.
49208         * m4/save-cwd.m4 (gl_SAVE_CWD): Add AC_LIBSOURCES for save-cwd.c,
49209         save-cwd.h.  Add AC_LIBOBJ for save-cwd.
49210         * m4/chown.m4 (gl_FUNC_CHOWN): When cross-compiling, assume that chown
49211         is sane and DOES follow symlinks.  Besides, testing 20 different
49212         systems found no broken chown implementations.
49213         Prompted by a change in rsync's copy of this macro.
49214         * m4/jm-macros.m4 (gl_MACROS): Require gl_FUNC_CHDIR_LONG.
49215
49216         * m4/lchown.m4 (gl_FUNC_LCHOWN): Use AC_LIBSOURCES.
49217
49218         * m4/utimes.m4: Work around tests/touch/empty-file failure on a system
49219         (sparc64, Linux-2.4.28, glibc-2.3.3) that didn't honor utimes'
49220         NULL-means-set-to-current-time semantics.
49221         Remove temporary file immediately, rather than waiting
49222         for configure's at-exit trap code to do it.
49223
49224 2005-01-18  Jim Meyering  <jim@meyering.net>
49225
49226         * lib/version-etc.c (version_etc_copyright): Update copyright date.
49227
49228         * lib/utimens.c (futimens): Account for the fact that futimes
49229         can also fail with errno == ENOSYS or errno == ENOENT.
49230         Patch from Dmitry V. Levin.
49231
49232         Change the name of the robust chdir function from chdir to chdir_long.
49233         * lib/save-cwd.c: Include chdir-long.h rather than chdir.h.
49234         (restore_cwd): Use chdir_long, not chdir.
49235         * lib/chdir-long.c: Renamed from chdir.c.
49236         * lib/chdir-long.h: Renamed from chdir.h.
49237         [!defined PATH_MAX]: Define chdir_long to chdir on systems like the
49238         Hurd.
49239
49240 2005-01-18  Bruno Haible  <bruno@clisp.org>
49241
49242         * m4/allocsa.m4, m4/codeset.m4, m4/copy-file.m4, m4/eaccess.m4:
49243         * m4/eealloc.m4, m4/eoverflow.m4, m4/execute.m4, m4/fatal-signal.m4:
49244         * m4/findprog.m4, m4/glibc21.m4, m4/iconv.m4, m4/intmax_t.m4:
49245         * m4/inttypes_h.m4, m4/lib-ld.m4, m4/lib-link.m4, m4/lib-prefix.m4:
49246         * m4/linebreak.m4, m4/localcharset.m4, m4/longdouble.m4:
49247         * m4/longlong.m4, m4/mbrtowc.m4, m4/mbstate_t.m4, m4/mbswidth.m4:
49248         * m4/mkdtemp.m4, m4/pipe.m4, m4/readlink.m4, m4/safe-read.m4:
49249         * m4/safe-write.m4, m4/setenv.m4, m4/sig_atomic_t.m4:
49250         * m4/signalblocking.m4, m4/signed.m4, m4/size_max.m4, m4/ssize_t.m4:
49251         * m4/stdbool.m4, m4/stdint_h.m4, m4/stpcpy.m4, m4/stpncpy.m4:
49252         * m4/strcase.m4, m4/strcspn.m4, m4/strpbrk.m4, m4/strstr.m4:
49253         * m4/ucs4-utf.m4, m4/uintmax_t.m4, m4/ulonglong.m4, m4/unicodeio.m4:
49254         * m4/utf-ucs4.m4, m4/vasnprintf.m4, m4/vasprintf.m4:
49255         * m4/wait-process.m4, m4/wchar_t.m4, m4/wint_t.m4, m4/xsize.m4:
49256         Use an all-permissive copyright notice, recommended by RMS.
49257
49258 2005-01-18  Bob Proulx  <bob@proulx.com>
49259
49260         * lib/obstack.c [DEFAULT_ALIGNMENT]: Use an intermediate type to
49261         simplify offsetof() macro construct to avoid compile failure with
49262         native HP-UX 11.0 ANSI C compiler.
49263
49264 2005-01-17  Bruno Haible  <bruno@clisp.org>
49265
49266         * lib/stpncpy.c: Remove HAVE_STPNCPY and gnu_stpncpy renaming,
49267         redundant because stpncpy.m4 takes care of it.
49268
49269 2005-01-17  Bruno Haible  <bruno@clisp.org>
49270
49271         * lib/progreloc.c: Include xalloc.h instead of xmalloc.h.
49272
49273 2005-01-17  Bruno Haible  <bruno@clisp.org>
49274
49275         * lib/progreloc.c (xstrdup): Define as strdup if no xmalloc should be
49276         used.
49277
49278 2005-01-17  Bruno Haible  <bruno@clisp.org>
49279
49280         * lib/fwriteerror.h (fwriteerror): Change specification to include
49281         fclose.
49282         * lib/fwriteerror.c: Include <stdbool.h>.
49283         (fwriteerror): At the end, close the file stream. Record whether
49284         stdout was already closed.
49285
49286 2005-01-17  Bruno Haible  <bruno@clisp.org>
49287
49288         * lib/execute.c (environ): Declare if needed.
49289         * lib/pipe.c (environ): Likewise.
49290         Reported by Michael Schloh von Bennewitz <michael.schloh@cw.com>.
49291
49292 2005-01-11  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
49293
49294         * modules/argp: Depend on vsnprintf
49295
49296 2005-01-10  Jim Meyering  <jim@meyering.net>
49297
49298         * modules/closeout (Depends-on): Add atexit.
49299
49300 2005-01-06  Bruno Haible  <bruno@clisp.org>
49301
49302         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Rename stpncpy to gnu_stpncpy here.
49303
49304 2005-01-04  Paul Eggert  <eggert@cs.ucla.edu>
49305
49306         * lib/human.c (SIZE_MAX, UINTMAX_MAX): Move these conditional
49307         definitions to be after all include files, to avoid collisions.
49308         Problem reported by Bob Proulx.
49309
49310 2005-01-04  Jim Meyering  <jim@meyering.net>
49311
49312         Changes imported from coreutils.
49313         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Rather than using "conftestXXXXXX"
49314         as the mkstemp template, use a temporary directory and an
49315         8.3-friendly template to avoid trouble on systems like DJGPP.
49316         Reported by Juan M. Guerrero via Stepan Kasal.
49317         * m4/(gl_FUNC_MKSTEMP): Include <unistd.h> for the declaration of
49318         close. Remove the temporary directory right away, rather than waiting
49319         for configure's at-exit trap code to do it.
49320         Suggestion from Stepan Kasal.
49321
49322 2005-01-01  Simon Josefsson  <jas@extundo.com>
49323
49324         * gnulib-tool: Print #include directives when --import'ing.
49325
49326 2004-12-28  Simon Josefsson  <jas@extundo.com>
49327
49328         * tests/test-base64.c: Include required header files.  Remove
49329         unused variables.
49330
49331 2004-12-28  Paul Eggert  <eggert@cs.ucla.edu>
49332
49333         * modules/error (Depends-on): Remove gettext.
49334
49335 2004-12-28  Paul Eggert  <eggert@cs.ucla.edu>
49336
49337         * lib/error.c [!_LIBC && !ENABLE_NLS]: Do not include "gettext.h";
49338         not needed.  This removes a dependency on the gettext module.
49339         [defined _LIBC]: Do not include <libintl.h>; not needed.
49340
49341 2004-12-24  Paul Eggert  <eggert@cs.ucla.edu>
49342
49343         * m4/c-strtod.m4 (gl_C99_STRTOLD): New macro.
49344         (gl_C_STRTOD): Use it instead of AC_CHECK_DECLS_ONCE(strtold).
49345
49346 2004-12-24  Paul Eggert  <eggert@cs.ucla.edu>
49347
49348         * lib/c-strtod.c (STRTOD): Depend on HAVE_C99_STRTOLD, not
49349         HAVE_DECL_STRTOLD.
49350
49351 2004-12-23  Paul Eggert  <eggert@cs.ucla.edu>
49352
49353         * modules/getdate (Depends-on): Remove alloca-opt.
49354
49355 2004-12-23  Paul Eggert  <eggert@cs.ucla.edu>
49356
49357         * m4/getdate.m4 (gl_GETDATE): Remove AC_FUNC_ALLOCA.
49358
49359 2004-12-23  Paul Eggert  <eggert@cs.ucla.edu>
49360
49361         * lib/argp-parse.c: Include <stddef.h>.
49362         (alignof, alignto): New macros.
49363         (parser_init): Don't assume that void * is aligned sufficiently
49364         for struct option.
49365
49366         * lib/getdate.y (YYSTACK_USE_ALLOCA): Define to 0, since there's no
49367         need to extend the stack.
49368         (YYINITDEPTH): New macro, so that the initial stack isn't overly
49369         large.
49370
49371 2004-12-22  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
49372
49373         * lib/argp-parse.c (parser_init): Avoid arithmetics on void pointers.
49374
49375 2004-12-19  Paul Eggert  <eggert@cs.ucla.edu>
49376
49377         * modules/regex (lib_SOURCES): Remove regex.c, undoing previous
49378         (2004-10-24) change.  Apparently this was a false alarm.
49379
49380         * modules/getdate: Depend on alloca-opt, not alloca.
49381
49382 2004-12-19  Paul Eggert  <eggert@cs.ucla.edu>
49383
49384         * lib/alloca_.h: Conditionalize on _GNULIB_ALLOCA_H, not _ALLOCA_H.
49385         Remove now-obsolete comment about AIX.
49386         * lib/getdate.y: Include <alloca.h> only if HAVE_ALLOCA.
49387         (YYSTACK_USE_ALLOCA): Define to 0 if !HAVE_ALLOCA.
49388         (YYMAXDEPTH): New macro.
49389
49390 2004-12-18  Simon Josefsson  <jas@extundo.com>
49391
49392         * modules/alloca: Depend on alloca-opt, instead of duplicating it.
49393
49394 2004-12-18  Bruno Haible  <bruno@clisp.org>
49395
49396         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Also test for sigaction.
49397
49398 2004-12-18  Bruno Haible  <bruno@clisp.org>
49399
49400         * lib/fatal-signal.c (fatal_signals): Make non-const.
49401         (init_fatal_signals): New function.
49402         (uninstall_handlers, install_handlers): Ignore signals that were set to
49403         SIG_IGN.
49404         (at_fatal_signal): Call init_fatal_signals.
49405         (init_fatal_signal_set): Likewise. Ignore signals that were set to
49406         SIG_IGN.
49407         Reported by Paul Eggert.
49408
49409 2004-12-18  Bruno Haible  <bruno@clisp.org>
49410
49411         * doc/alloca.texi: New file.
49412         * doc/alloca-opt.texi: New file.
49413
49414 2004-12-17  Jim Meyering  <jim@meyering.net>
49415
49416         * config/install-sh: Use `(exit N); exit N', not `(exit N); exit'.
49417         Otherwise, install-sh could exit with improper exit status when
49418         exiting via a trapped interrupt.  Thanks to a report from Bob Proulx.
49419
49420 2004-12-16  Simon Josefsson  <jas@extundo.com>
49421
49422         * tests/test-base64.c: Add license.
49423
49424 2004-12-15  Stepan Kasal  <address@hidden>
49425
49426         * gnulib-tool (func_emit_lib_Makefile_am): Shorten a long sed command.
49427
49428 2004-12-12  Paul Eggert  <eggert@cs.ucla.edu>
49429
49430         * modules/getcwd (Files): Add m4/d-ino.m4.
49431         Suggested by Mark D. Baushke.
49432
49433 2004-12-08  Paul Eggert  <eggert@cs.ucla.edu>
49434
49435         * lib/getdate.y (textint): New member "negative".
49436         (time_zone_hhmm): New function.
49437         Expect 14 shift-reduce conflicts, not 13.
49438         (o_colon_minutes): New rule.
49439         (time, zone): Use it to add support for +HH:MM, UTC+HH:MM.
49440         (yylex): Set the "negative" member of signed numbers.
49441
49442 2004-12-08  Paul Eggert  <eggert@cs.ucla.edu>
49443
49444         * doc/getdate.texi (Time of day items, Time zone items):
49445         Describe new formats +00:00, UTC+00:00.
49446
49447 2004-12-07  Paul Eggert  <eggert@cs.ucla.edu>
49448
49449         * m4/ls-mntd-fs.m4 (AC_FUNC_GETMNTENT): Fix typo in previous change:
49450         spurious "-l"s.  Problem reported by Stepan Kasal.
49451
49452 2004-12-06  Paul Eggert  <eggert@cs.ucla.edu>
49453
49454         * m4/ls-mntd-fs.m4 (AC_FUNC_GETMNTENT): New macro, to work around bug
49455         in Autoconf 2.59.  Problem reported by Mark D. Baushke.
49456
49457 2004-12-04  Simon Josefsson  <jas@extundo.com>
49458
49459         * modules/getaddrinfo (License): Add LGPL, reported by Yoann
49460         Vandoorselaere <yoann@prelude-ids.org>.
49461
49462 2004-12-04  Paul Eggert  <eggert@cs.ucla.edu>
49463
49464         Changes imported from coreutils.
49465         * m4/hard-locale.m4 (gl_HARD_LOCALE): Assume locale.h and setlocale
49466         exist.
49467         * m4/human.m4 (gl_HUMAN): Assume locale.h and localeconv exist.
49468
49469 2004-12-04  Paul Eggert  <eggert@cs.ucla.edu>
49470
49471         Changes imported from coreutils.
49472         * lib/hard-locale.c: Assume <locale.h> exists.
49473         Include "strdup.h".
49474         (GLIBC_VERSION): New macro.
49475         (hard_locale): Assume setlocale exists.
49476         Rewrite to avoid #ifdef.
49477         Use strdup rather than malloc + strcpy.
49478         * lib/human.c: Assume <locale.h> exists.
49479         (human_readable): Assume localeconv exists.
49480
49481 2004-12-04  Paul Eggert  <eggert@cs.ucla.edu>
49482
49483         * modules/hard-locale (Depends-on): Add strdup.
49484
49485 2004-12-01  Jakub Jelinek  <jakub@redhat.com>
49486
49487         * lib/mktime.c (__mktime_internal): If SEC_REQUESTED != SEC,
49488         convert T2, not T.  (Imported from libc.)
49489
49490 2004-11-30  Simon Josefsson  <jas@extundo.com>
49491
49492         * modules/restrict (License): Change to LGPL.
49493
49494 2004-11-30  Simon Josefsson  <jas@extundo.com>
49495
49496         * m4/restrict.m4: Add copyright and copying conditions.
49497
49498 2004-11-30  Simon Josefsson  <jas@extundo.com>
49499
49500         * m4/base64.m4: New file.
49501
49502 2004-11-30  Simon Josefsson  <jas@extundo.com>
49503
49504         * MODULES.html.sh (Extra functions based on ANSI C 89): Add
49505         base64.
49506
49507         * tests/test-base64.c: New file.
49508
49509         * modules/base64: New file.
49510
49511 2004-11-30  Paul Eggert  <eggert@cs.ucla.edu>
49512
49513         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX):
49514         Define HAVE_PARTLY_WORKING_GETCWD if getcwd is partly working.
49515
49516         * m4/readutmp.m4 (gl_READUTMP): Don't check for sys/param.h.
49517
49518 2004-11-30  Paul Eggert  <eggert@cs.ucla.edu>
49519
49520         * lib/getcwd.c (is_ENAMETOOLONG): New macro.
49521         (__getcwd.c): Don't restore errno; glibc doesn't.
49522         [HAVE_PARTLY_WORKING_GETCWD && !defined AT_FDCWD]: Try system getcwd
49523         first, falling back to our code only if its results look suspicious.
49524         Ensure that the resulting buffer is only as large as necessary.
49525
49526         * lib/readutmp.c: Include readutmp.h first.
49527         Include <errno.h>, since readutmp.h no longer does that.
49528         * lib/readutmp.h: Don't include <errno.h>,
49529         <sys/param.h>, <time.h>; not needed to establish interface.
49530         (errno): Remove decl.
49531         (HAVE_STRUCT_XTMP_UT_TYPE): Remove; no longer needed.
49532         (UT_TYPE_EQ, UT_TYPE_NOT_DEFINED, UT_TYPE_BOOT_TIME,
49533         UT_TYPE_USER_PROCESS, IS_USER_PROCESS): New macros.
49534
49535 2004-11-28  Simon Josefsson  <jas@extundo.com>
49536
49537         * lib/base64.h, base64.c: New file.
49538
49539 2004-11-27  Paul Eggert  <eggert@cs.ucla.edu>
49540
49541         * lib/getcwd.h: New file, which I forgot to check in on 2004-11-25.
49542
49543 2004-11-26  Paul Eggert  <eggert@cs.ucla.edu>
49544
49545         * modules/getcwd (Files): Add lib/getcwd.h, m4/getcwd.m4.
49546         (Depends-on): Remove pathmax, same.  Add mempcpy.
49547         (configure.ac): GL_FUNC_GETCWD_PATH_MAX -> gl_FUNC_GETCWD.
49548         (Makefile.am): Append getcwd.h to lib_SOURCES.
49549         (Include): Add getcwd.h.
49550         (Maintainer): Change from Jim Meyering to "all, glibc",
49551         since getdate now uses intended-for-glibc code.
49552         * modules/xgetcwd (Files): Remove m4/getcwd.m4.
49553         (Depends-on): Depend on getcwd.  Do not depend on pathmax.
49554
49555 2004-11-25  Paul Eggert  <eggert@cs.ucla.edu>
49556
49557         Fix problems reported by Scott S. Tinsley for HP-UX 11.11 using
49558         HP's ANSI C compiler.
49559         * lib/fsusage.c (statvfs) [HAVE_SYS_STATVFS_H]: Remove decl.
49560         Declaring int functions causes warnings on some modern systems and
49561         shouldn't be needed to compile on ancient ones.
49562         * lib/same.c (MIN) [defined MIN]: Don't define, since it's already
49563         defined.
49564
49565         * lib/getcwd.c: Replace by a copy of glibc/sysdeps/posix/getcwd.c, but
49566         with the following changes.
49567         (__set_errno): Parenthesize properly.
49568         Include <stdbool.h>.
49569         (MIN, MAX, MATCHING_INO): New macros.
49570         (__getcwd): Define with prototype, not K&R form.
49571         Use heuristics to allocate default buffer on stack if possible.
49572         If AT_FDCWD is defined, use openat and fstatat to avoid O(N**2)
49573         behavior, and to avoid the PATH_MAX limit when computing
49574         ../../../../...
49575         Use MATCHING_INO to compare inode number to file.
49576         Check for arithmetic overflow in size calculations.
49577         Fix bug in reallocation of dot array that caused getcwd to fail
49578         on directories nested deeper than 75.
49579         Be more careful about saving errno on error.
49580         Do not use realloc; use only free+malloc, as this is a bit
49581         more flexible and avoids a needless copy operation.
49582         Do not inspect st_dev and st_ino for symbolic links; POSIX
49583         doesn't specify the latter.
49584         Check for closedir errors.
49585         Avoid needless casts.
49586         Use "#ifdef weak_alias" around weak_alias, to be like other
49587         glibc code.
49588         The following changes to getcwd.c have effect only when used in
49589         gnulib; they have no effect inside glibc proper.
49590         (#pragma alloca) [defined _AIX && !defined __GNUC__]: Remove,
49591         as alloca isn't used.
49592         (alloca, __alloca): Likewise.
49593         [!_LIBC]: Include "getcwd.h", "mempcpy.h".
49594         Include <stddef.h>, <stdlib.h>, <string.h>, <limits.h>
49595         unconditionally, as gnulib assumes C89 or better.
49596         Do not include <sys/param.h>.
49597         (errno) [!defined __GNU_LIBRARY__ && !defined STDC_HEADERS]: Remove
49598         no-longer-necessary 'extern int errno' decl; gnulib assumes C89 or
49599         better.
49600         (NULL) [!defined NULL]: Remove; we assume C89 or better.
49601         Include <dirent.h> in a way that is compatible with modern Autoconf.
49602         (_D_ALLOC_NAMELEN, _D_EXACT_NAMLEN):
49603         New macros, if not already defined.
49604         Include <unistd.h> if _LIBC, not if __GNU_LIBRARY__.
49605         Use "_LIBC", not "defined _LIBC", for consistency.
49606         (HAVE_MEMPCPY): Remove; no longer needed now that gnulib has
49607         a mempcpy module.
49608         (__lstat, __closedir, __opendir, __readdir) [!_LIBC]: New macros.
49609         (GETCWD_RETURN_TYPE): Remove.  All uses replaced by char *.
49610         * lib/xgetcwd.c: David MacKenzie's old code was removed, so give
49611         credit only to Jim Meyering and adjust the copyright dates.
49612         Do not include <limits.h>, <stdio.h>, <sys/types.h>,
49613         <stdlib.h>, <unistd.h>, "pathmax.h".
49614         Instead, include "xgetcwd.h" (first) and "getcwd.h".
49615         (INITIAL_BUFFER_SIZE): Remove.
49616         (xgetcwd): Rely on getcwd, since we now depend on a reliable one.
49617
49618 2004-11-25  Paul Eggert  <eggert@cs.ucla.edu>
49619
49620         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Renamed from
49621         GL_FUNC_GETCWD_PATH_MAX for consistency.  All uses changed.
49622         Use the _ONCE methods, for efficiency.
49623         Check for fcntl.h.  In test program, include <errno.h>
49624         and <fcntl.h> if available.  Remove old K&R cruft from
49625         test program.  Check for common errors in GNU/Linux,
49626         OpenBSD, and Solaris.  Just set gl_cv_func_getcwd_path_max;
49627         don't do AC_LIBOBJ, as that's getcwd.m4's job.
49628         * m4/getcwd.m4 (gl_FUNC_GETCWD_NULL): Renamed from
49629         AC_FUNC_GETCWD_NULL.  All used changed.  Change cache variable
49630         name accordingly.
49631         (gl_FUNC_GETCWD, gl_PREREQ_GETCWD): New macros.  Revamp to
49632         accommodate new getcwd.c.
49633         * m4/jm-macros.m4 (gl_MACROS): Don't require GL_FUNC_GETCWD_PATH_MAX.
49634         * m4/prereq.m4 (gl_PREREQ): Add gl_FUNC_MEMPCPY.
49635         * m4/xgetcwd.m4 (gl_XGETCWD): Replace with gl_FUNC_GETCWD, since
49636         that's all we need now.
49637
49638 2004-11-23  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
49639
49640         * m4/argp.m4 (gl_ARGP): Require gl_GETOPT_SUBSTITUTE unconditionally:
49641         argp-parse.c depends on getopt internals, that means we should
49642         always use our getopt, to be on the safe side.
49643         * m4/getopt.m4 (gl_GETOPT): Check if GETOPT_H is already set, in
49644         order not to spoil the result of an eventual previous invocation
49645         of gl_GETOPT_SUBSTITUTE.
49646
49647 2004-11-23  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
49648
49649         * lib/getopt_.h: Re-addition of __getopt_argv_const caused
49650         redefinition warnings. To avoid them, include the defines
49651         in `#if !defined __need_getopt ... #endif'. The only place
49652         where __getopt_argv_const is used is in definitions
49653         of getopt_long and getopt_long_only below, which are as well
49654         protected by `#ifndef __need_getopt'.
49655         [defined __GETOPT_PREFIX && !defined __need_getopt]: Undef
49656         __need_getopt after including <stdio.h> and <unistd.h> These
49657         headers might have defined it.
49658
49659 2004-11-23  Paul Eggert  <eggert@cs.ucla.edu>
49660
49661         * m4/utimens.m4 (gl_UTIMENS): Check for futimes function.
49662
49663 2004-11-23  Paul Eggert  <eggert@cs.ucla.edu>
49664
49665         * lib/utimens.c (__attribute__, ATTRIBUTE_UNUSED): New macros.
49666         (futimens): New function, which uses futimes if available.
49667         (futimens, utimens): Support timespec==NULL, with same semantics
49668         as utime and utimens.
49669         * lib/utimens.h (futimens): New decl.
49670
49671 2004-11-23  Jim Meyering  <jim@meyering.net>
49672
49673         * lib/getopt_.h: Remove trailing blanks.
49674
49675 2004-11-23  Jim Meyering  <jim@meyering.net>
49676
49677         * lib/__fpending.c: Add comment.
49678
49679 2004-11-22  Paul Eggert  <eggert@cs.ucla.edu>
49680
49681         * modules/canonicalize (Depends-on): Add xreadlink.
49682         Problem reported by James Youngman.
49683
49684 2004-11-20  Paul Eggert  <eggert@cs.ucla.edu>
49685
49686         * lib/getopt_.h (__GETOPT_CONCAT, __GETOPT_XCONCAT, __GETOPT_ID):
49687         New macros.
49688         (getopt, getopt_long, getopt_long_only, optarg, opterr, optind,
49689         optopt): Use them instead of invoking ## directly; otherwise, the
49690         symbols will be __GETOPT_PREFIXgetopt rather than rpl_getopt.
49691
49692 2004-11-19  Bruno Haible  <bruno@clisp.org>
49693
49694         * lib/strtok_r.c: Move comments from here...
49695         * lib/strtok_r.h: ... to here.
49696
49697 2004-11-17  Paul Eggert  <eggert@cs.ucla.edu>
49698
49699         * m4/calloc.m4 (_AC_FUNC_CALLOC_IF): Check for buggy calloc
49700         implementations that mishandle size_t overflow.
49701
49702 2004-11-17  Paul Eggert  <eggert@cs.ucla.edu>
49703
49704         * lib/realloc.c (rpl_realloc): Call 'free' if n==0, since realloc
49705         might fail.  Problem reported by Yoann Vandoorselaere.
49706         * lib/calloc.c (rpl_calloc): Defend against buggy calloc
49707         implementations that mishandle size_t overflow.
49708
49709 2004-11-16  Paul Eggert  <eggert@cs.ucla.edu>
49710
49711         * modules/canon-host (Depends-on): Add strdup.
49712
49713 2004-11-16  Paul Eggert  <eggert@cs.ucla.edu>
49714
49715         * m4/canon-host.m4 (gl_CANON_HOST): Check for getaddrinfo.
49716
49717 2004-11-16  Paul Eggert  <eggert@cs.ucla.edu>
49718
49719         * lib/canon-host.c: Include "strdup.h".
49720         (canon_host): Use getaddrinfo if available, so that IPv6 works.
49721         Use strdup instead of malloc/strcpy to duplicate strings.
49722
49723         * lib/human.h (LONGEST_HUMAN_READABLE): Add 1 for space before unit.
49724         (human_space_before_unit): New constant.
49725         * lib/human.c (human_readable): Support it.
49726
49727         * lib/xgetcwd.c: Include <limits.h>, for PATH_MAX.
49728         (xgetcwd): Set errno correctly when failing.
49729         Work around Solaris 9 bug: getcwd sets errno==ERANGE even though
49730         the failure is actually due to a PATH_MAX problem.
49731
49732         Further getopt changes to make it more likely that glibc will
49733         buy the changes back.
49734         * lib/getopt.c (POSIXLY_CORRECT): New constant.
49735         (getopt): Use it, so to preserve glibc semantic
49736         * lib/getopt1.c (getopt_long, getopt_long_only): Arg is char * const *
49737         when compiling for libc.
49738         * lib/getopt_.h (__getopt_argv_const): Bring it back.
49739         (getopt_long, getopt_long_only): Use it.
49740
49741         * lib/getopt.c (_getopt_initialize, _getopt_internal_r,
49742         _getopt_internal): New arg POSIXLY_CORRECT.  All callers changed.
49743         (getopt): Argv is now char * const *, as per standard.
49744         (_getopt_internal_r, _getopt_internal): Argv is now char **,
49745         not char *__getopt_argv_const *.
49746         * lib/getopt1.c (getopt_long, _getopt_long_r, getopt_long_only,
49747         _getopt_long_only_r): Likewise.
49748         * lib/getopt_.h (getopt, getopt_long, geopt_long_only): Likewise.
49749         * lib/getopt_int.h (_getopt_internal, _getopt_internal_r,
49750         _getopt_long_r, _getopt_long_only_r): Likewise.
49751         * lib/getopt_.h (__getopt_argv_const): Remove.
49752         (getopt): Argv is now char * const *, as per standard.
49753
49754         * lib/getdate.y (tORDINAL): New token.
49755         (day, relunit): Allow it for relative times.
49756         (relative_time_table): Use tORDINAL for ordinals.
49757
49758 2004-11-16  Paul Eggert  <eggert@cs.ucla.edu>
49759
49760         * doc/getdate.texi (General date syntax): "next" is 1, not 2.
49761         Document that "second" isn't allowed as an ordinal number.
49762
49763 2004-11-16  Jim Meyering  <jim@meyering.net>
49764
49765         * modules/closeout (Depends-on): Add fpending.
49766
49767 2004-11-15  Jim Meyering  <jim@meyering.net>
49768
49769         * lib/closeout.c: Include "__fpending.h" once again.
49770         Include <stdbool.h>.
49771         (close_stdout): Don't fail just because stdout was closed initially,
49772         since some programs don't write to stdout in the normal course of
49773         operation (other than --version and --help), and we don't want this
49774         function to make e.g. `touch file >&-' fail.
49775         But do fail if it was closed and someone has tried to write to it.
49776         E.g., `printf foo >&-' must fail.
49777
49778 2004-11-13  Jim Meyering  <jim@meyering.net>
49779
49780         * m4/jm-macros.m4: Do require gl_FUNC_FPENDING.
49781
49782 2004-11-12  Simon Josefsson  <jas@extundo.com>
49783
49784         * config/srclist.txt: Add strtok_r.c, glibc bought our changes, but a
49785         small doc fix is still pending.
49786
49787 2004-11-11  Simon Josefsson  <jas@extundo.com>
49788
49789         * modules/strtok_r: New file.
49790
49791         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
49792         strtok_r.
49793
49794 2004-11-11  Simon Josefsson  <jas@extundo.com>
49795
49796         * m4/strtok_r.m4: New file.
49797
49798         * m4/getopt.m4: Replace opterr.
49799
49800 2004-11-11  Simon Josefsson  <jas@extundo.com>
49801
49802         * lib/strtok_r.h, strtok_r.c: New file.
49803
49804 2004-11-11  Paul Eggert  <eggert@cs.ucla.edu>
49805
49806         * m4/getopt.m4 (gl_GETOPT_SUBSTITUTE): Define __GETOPT_PREFIX instead
49807         of replacing opterr, getopt, etc.  This should handle the
49808         powerpc-apple-darwin5.5 problem recently noted by Simon Josefsson.
49809
49810 2004-11-11  Paul Eggert  <eggert@cs.ucla.edu>
49811
49812         * lib/getopt_.h (__getopt_argv_const): New macro, to be used so that
49813         we can stop lying to compilers about the constness of argv when we
49814         are compiled outside glibc.
49815         (getopt, getopt_long, getopt_long_only): Use it.
49816         * lib/getopt.c (_getopt_initialize, _getopt_internal_r,
49817         _getopt_internal, getopt): Likewise.
49818         * lib/getopt1.c (getopt_long, _getopt_long_r, getopt_long_only,
49819         _getopt_long_only_r): Likewise.
49820         * lib/getopt_int.h (_getopt_internal, _getopt_internal_r,
49821         _getopt_long_r, _getopt_long_only_r): Likewise.
49822
49823         * lib/getopt_.h [defined __GETOPT_PREFIX && !defined __need_getopt]:
49824         Include <stdlib.h> and <stdio.h>, and <unistd.h> if available.
49825         Then rename getopt to __GETOPT_PREFIX##getopt, and so forth for
49826         the other external symbols.
49827         (getopt) [!defined __GNU_LIBRARY]: Use prototype, not old-style
49828         declaration, since the above renaming now works around collisions.
49829
49830 2004-11-11  Jim Meyering  <jim@meyering.net>
49831
49832         * lib/linebreak.c: Remove trailing blanks.
49833         * lib/alloca_.h: Likewise.
49834         * lib/acosl.c: Likewise.
49835         * lib/euidaccess.c: Likewise.
49836         * lib/allocsa.h: Likewise.
49837
49838 2004-11-10  Simon Josefsson  <jas@extundo.com>
49839
49840         * m4/getaddrinfo.m4: New file.
49841
49842 2004-11-10  Simon Josefsson  <jas@extundo.com>
49843
49844         * lib/getaddrinfo.h, lib/getaddrinfo.c: New files.
49845
49846 2004-11-10  Simon Josefsson  <jas@extundo.com>
49847
49848         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
49849         getaddrinfo.
49850
49851         * modules/getaddrinfo: New file.
49852
49853 2004-11-10  Paul Eggert  <eggert@cs.ucla.edu>
49854
49855         * m4/prereq.m4 (gl_PREREQ): Require gt_FUNC_SETENV.
49856
49857 2004-11-10  Paul Eggert  <eggert@cs.ucla.edu>
49858
49859         * lib/mktime.c (SHR): New macro, which is a portable
49860         substitute for >> that should work even on Crays.
49861         (TIME_T_MIDPOINT, ydhms_diff, __mktime_internal): Use it.
49862         Problem reported by Mark D. Baushke in
49863         <http://lists.gnu.org/archive/html/bug-gnulib/2004-11/msg00071.html>.
49864         * lib/getdate.y (SHR): Likewise.
49865         (tm_diff): Use it.
49866         * lib/strftime.c (SHR): Likewise.
49867         (tm_diff): Use it.
49868         * lib/quotearg.c (struct quoting_options): Use unsigned int for
49869         quote_these_too, so that right shifts are well defined.  All uses
49870         changed.
49871
49872 2004-11-10  Jim Meyering  <jim@meyering.net>
49873
49874         Ensure that no close failure goes unreported.
49875         * lib/closeout.c (close_stdout): Always close stdout.  I.e., don't
49876         return early when it seems there's nothing to flush.
49877         Don't include __fpending.h.
49878
49879 2004-11-10  Jim Meyering  <jim@meyering.net>
49880
49881         * modules/closeout (Depends-on): Remove fpending.
49882
49883 2004-11-10  Jim Meyering  <jim@meyering.net>
49884
49885         * m4/jm-macros.m4 (gl_MACROS): Don't require gl_FUNC_FPENDING.
49886
49887 2004-11-09  Paul Eggert  <eggert@cs.ucla.edu>
49888
49889         * m4/strftime.m4 (_gl_STRFTIME_PREREQS): Remove.  Move its body to
49890         gl_FUNC_STRFTIME.
49891         (gl_FUNC_STRFTIME): Use AC_CHECK_FUNCS_ONCE and AC_CHECK_HEADERS_ONCE
49892         and AC_REQUIRE when possible, to avoid duplicate checks.
49893         Check for <wchar.h>.
49894
49895 2004-11-09  Paul Eggert  <eggert@cs.ucla.edu>
49896
49897         * lib/strftime.c (DO_MULTIBYTE): Check for wchar.h, too.
49898
49899 2004-11-09  Bruno Haible  <bruno@clisp.org>
49900
49901         * m4/sockpfaf.m4: New file.
49902
49903 2004-11-05  Bruno Haible  <bruno@clisp.org>
49904
49905         * lib/readlink.c: Include stddef.h, needed for size_t on Woe32.
49906         Reported by Mark D. Baushke <mdb@cvshome.org>.
49907
49908 2004-11-04  Bruno Haible  <bruno@clisp.org>
49909
49910         2004-09-11  Bruno Haible  <bruno@clisp.org>
49911                 * allocsa.valgrind: New file.
49912         2004-02-06  Bruno Haible  <bruno@clisp.org>
49913                 * allocsa.h (sa_alignof): Define differently with HP-UX cc, to
49914                 avoid a bug of this cc on HP-UX 10.20 dealing with enums.
49915                 Reported by Christopher Seip <chris.seip@hp.com>.
49916
49917 2004-11-04  Bruno Haible  <bruno@clisp.org>
49918
49919         * modules/allocsa (Files): Add lib/allocsa.valgrind.
49920         (Makefile.am): Distribute it.
49921
49922 2004-11-03  Paul Eggert  <eggert@cs.ucla.edu>
49923
49924         * lib/xreadlink.c (xreadlink): AIX and HP-UX readlink return -1
49925         with errno == ERANGE if the buffer is too small.
49926         Problem reported by Mark D. Baushke.
49927
49928 2004-11-03  Albert Chin  <china@thewrittenword.com>
49929             Paul Eggert  <eggert@cs.ucla.edu>
49930
49931         * m4/uint32_t.m4 (gl_AC_TYPE_UINT32_T): When determining uint32_t
49932         equivalent, substitute $ac_type for equivalent type rather than
49933         blindly using uint32_t *always* which won't work if uint32_t is not
49934         available.  Define _UINT32_T to work around typedef of uint32_t if
49935         <sys/sched.h>, <pthread.h>, or <semaphore.h> used on Solaris
49936         2.5.1.
49937
49938 2004-11-02  Paul Eggert  <eggert@cs.ucla.edu>
49939
49940         * m4/jm-macros.m4: Sync from coreutils.
49941         (gl_MACROS): Check for mbrlen, for pathchk.
49942         (gl_CHECK_ALL_TYPES): Require AC_TYPE_MBSTATE_T, for pathchk.
49943
49944 2004-11-02  Paul Eggert  <eggert@cs.ucla.edu>
49945
49946         * lib/xreadlink.c (MAXSIZE): New macro.
49947         (xreadlink): Use it instead of SSIZE_MAX.  Ensure initial buffer
49948         size does not exceed MAXSIZE.  Avoid cast.
49949         As suggested by Mark D. Baushke in
49950         <http://lists.gnu.org/archive/html/bug-gnulib/2004-11/msg00009.html>,
49951         if readlink fails with buffer size just under MAXSIZE, try again
49952         with MAXSIZE.
49953
49954 2004-11-02  Paul Eggert  <eggert@cs.ucla.edu>
49955
49956         * config/srclist.txt: Add mktime.c; glibc bought all our changes.
49957
49958 2004-11-02  Derek R. Price  <derek@ximbiot.com>
49959         and  Paul Eggert  <eggert@cs.ucla.edu>
49960
49961         * lib/getdate.y [!TEST]: Include <stdio.h>, since we use sprintf now.
49962         (get_date): Overparenthesize to avoid GCC warning.
49963
49964 2004-11-02  Bruno Haible  <bruno@clisp.org>
49965
49966         * m4/setenv.m4 (gt_FUNC_SETENV): Define VOID_UNSETENV if unsetenv()
49967         returns void.
49968
49969 2004-11-02  Bruno Haible  <bruno@clisp.org>
49970
49971         * lib/setenv.h (unsetenv): Define as a macro if the system's unsetenv()
49972         function returns void.
49973
49974 2004-11-01  Paul Eggert  <eggert@cs.ucla.edu>
49975
49976         * m4/getpass.m4 (gl_PREREQ_GETPASS): Check for declarations of
49977         fflush_unlocked, flockfile, funlockfile, funlockfile,
49978         fputs_unlocked, putc_unlocked.
49979
49980 2004-11-01  Paul Eggert  <eggert@cs.ucla.edu>
49981
49982         * lib/getpass.c (fflush_unlocked, flockfile, funlockfile)
49983         (funlockfile, fputs_unlocked, putc_unlocked): Don't define if
49984         already declared.
49985
49986 2004-10-29  Paul Eggert  <eggert@cs.ucla.edu>
49987
49988         * modules/getdate (Files): Add doc/getdate.texi.
49989         (Depends-on): Add setenv, xalloc.
49990
49991 2004-10-29  Paul Eggert  <eggert@cs.ucla.edu>
49992
49993         * lib/getdate.y: Add support for TZ="foo" within a date string.
49994         Fix some bugs near time_t boundaries.  Reject dates with
49995         out-of-range components, e.g., "Sept 31".
49996         Include <stdlib.h>, "setenv.h", "xalloc.h".
49997         (ISDIGIT_LOCALE): Remove; unused.
49998         Note that the TZ and time functions used here are not reentrant.
49999         (mktime_ok, get_tz): New functions.
50000         (TZBUFSIZE): New constant.
50001         (get_date): Parse leading TZ="foo".  Reject out-of-range components;.
50002         This requires that we sometimes generate our own TZ="XXX..." setting.
50003
50004 2004-10-29  Paul Eggert  <eggert@cs.ucla.edu>
50005
50006         * doc/getdate.texi: New file, from coreutils with modifications for
50007         the new TZ parsing.
50008
50009 2004-10-27  Derek R. Price  <derek@ximbiot.com>
50010
50011         * lib/mktime.c (not_equal_tm): Remove redundant check.
50012
50013 2004-10-24  Paul Eggert  <eggert@cs.ucla.edu>
50014
50015         * modules/regex (lib_SOURCES): Add regex.c.
50016         Reported by James Youngman in
50017         <http://lists.gnu.org/archive/html/bug-gnulib/2004-10/msg00199.html>.
50018
50019 2004-10-24  Paul Eggert  <eggert@cs.ucla.edu>
50020
50021         * lib/getdate.y: Use Bison 1.875 features, and some minor
50022         code cleanups.  This change does not affect semantics.
50023         Don't include <stdlib.h>; no longer needed.
50024         Don't include unlocked-io.h; only the "#if TEST" code uses
50025         stdio, and performance isn't crucial there.
50026         (PC, YYLEX_PARAM, YYPARSE_PARAM): Remove; replaced by
50027         Bison 1.875 features as described below.
50028         All uses of "PC." replaced by "pc->".
50029         (YYSTYPE): Add a forward declaration.
50030         (yylex, yyerror): Use full prototypes in forward decls.
50031         Use "%pure-parser" rather than obsolescent "%pure_parser".
50032         Use %parse-param and %lex-param instead of obsolescent
50033         YYPARSE_PARAM and YYLEX_PARAM.
50034         (meridian_table, month_and_day_table, time_units_table,
50035         relative_time_table, time_zone_table, military_table,
50036         lookup_zone, lookup_word, get_date):
50037         Use NULL instead of 0 where appropriate.
50038         (to_hour): Avoid abort (), to avoid a dependency on
50039         stdlib.h.
50040         (yyerror, yylex): Now accepts parser_control * arg.
50041         (main) [TEST]: Use '\0' rather than 0 for char.
50042
50043 2004-10-22  Paul Eggert  <eggert@cs.ucla.edu>
50044
50045         * m4/getpagesize.m4 (gl_GETPAGESIZE): Check for <sys/param.h>.
50046
50047 2004-10-22  Paul Eggert  <eggert@cs.ucla.edu>
50048
50049         * lib/getpagesize.c (getpagesize): Don't assume <sys/param.h> exists.
50050         It's now the caller's responsibility to handle the case where
50051         !HAVE_GETPAGESIZE && !defined getpagesize.
50052
50053         * lib/mktime.c (leapyear): Arg is long int, not int.
50054
50055 2004-10-18  Paul Eggert  <eggert@cs.ucla.edu>
50056
50057         * lib/argp-fs-xinl.c, argp-xinl.c: Update from glibc.
50058
50059 2004-10-17  Paul Eggert  <eggert@cs.ucla.edu>
50060
50061         * gnulib-tool (func_emit_lib_Makefile_am): Fix typo: a $ was
50062         missing.  Problem reported by James Youngman.
50063
50064 2004-10-16  Simon Josefsson  <jas@extundo.com>
50065
50066         * gnulib-tool: Fix comments.  Fix parse problem.
50067         (func_emit_lib_Makefile_am): Don't hard code a in libgl_a_SOURCES.
50068
50069 2004-10-15  Paul Eggert  <eggert@cs.ucla.edu>
50070
50071         * m4/getopt.m4 (gl_GETOPT): Detect and reject the incompatible BSD
50072         implementation of getopt_long.  Problem reported by Alexander Taler in:
50073         http://lists.gnu.org/archive/html/bug-gnulib/2004-10/msg00103.html
50074
50075 2004-10-15  Bruno Haible  <bruno@clisp.org>
50076
50077         * gnulib-tool: Untabify. Initialize supplied_libname.
50078         (func_usage): More homogenous output.
50079         (func_modules_transitive_closure, func_modules_to_filelist,
50080         func_emit_lib_Makefile_am): New functions.
50081         (func_import): New function, extracted from big case statement. Use
50082         func_get_license, func_modules_transitive_closure,
50083         func_modules_to_filelist, func_emit_lib_Makefile_am. Initialize
50084         opt_lgpl. Don't use test -a, as it's not portable.
50085         (func_create_testdir): Use func_modules_transitive_closure,
50086         func_modules_to_filelist, func_emit_lib_Makefile_am.
50087
50088 2004-10-15  Bruno Haible  <bruno@clisp.org>
50089
50090         * gnulib-tool (func_import): Let gl_INIT define LTALLOCA when needed.
50091
50092 2004-10-15  Bruno Haible  <bruno@clisp.org>
50093
50094         * gnulib-tool (func_emit_lib_Makefile_am): Add markers to separate
50095         the portions belonging to each module.
50096         Suggested by Derek Robert Price <derek@ximbiot.com>.
50097
50098 2004-10-12  Simon Josefsson  <jas@extundo.com>
50099
50100         * lib/getpass.c (fflush_unlocked, flockfile, funlockfile)
50101         (fputs_unlocked, putc_unlocked) [!_LIBCS && !USE_UNLOCKED_IO]: Map
50102         to real functions.
50103
50104 2004-10-11  Yoann Vandoorselaere  <yoann@prelude-ids.org>
50105
50106         * modules/vsnprintf: New file.
50107
50108 2004-10-11  Yoann Vandoorselaere  <yoann@prelude-ids.org>
50109
50110         * m4/vsnprintf.m4: New file.
50111
50112 2004-10-11  Yoann Vandoorselaere  <yoann@prelude-ids.org>
50113
50114         * lib/vsnprintf.h: New file.
50115         * lib/vsnprintf.c: New file.
50116
50117 2004-10-11  Bruno Haible  <bruno@clisp.org>
50118
50119         * MODULES.html.sh (Support for systems lacking ISO C 99): Add
50120         vsnprintf.
50121
50122 2004-10-10  Paul Eggert  <eggert@cs.ucla.edu>
50123
50124         * config/srclistvars.sh: Add GNUSTANDARDS (for eggert only).
50125
50126 2004-10-07  Bruno Haible  <bruno@clisp.org>
50127
50128         * lib/snprintf.c (snprintf): Avoid a memory allocation if the result
50129         fits into the provided buffer.
50130
50131 2004-10-06  Paul Eggert  <eggert@cs.ucla.edu>
50132
50133         * lib/diacrit.c, diacrit.h: Add GPL notice.
50134
50135         * lib/atanl.c, logl.c: Add GPL notice, to match glibc's added LGPL
50136         notice.
50137         * lib/atanl.c (atanl): Keep the code as similar to glibc as possible.
50138         * lib/logl.c (logl): Keep the code as similar to glibc as possible.
50139         This avoids a potential constant-folding bug.
50140
50141 2004-10-05  Bruno Haible  <bruno@clisp.org>
50142
50143         * m4/strsep.m4 (gl_FUNC_STRSEP): Require AC_GNU_SOURCE. Don't check
50144         for the declaration of strsep.
50145
50146 2004-10-05  Bruno Haible  <bruno@clisp.org>
50147
50148         * lib/strsep.h: Don't declare strsep() if HAVE_STRSEP.
50149
50150 2004-10-04  Simon Josefsson  <jas@extundo.com>
50151
50152         * modules/memmem: New file.
50153         * tests/test-memmem.c: New file.
50154         * MODULES.html.sh (Extra functions based on ANSI C 89): Add memmem.
50155
50156 2004-10-04  Simon Josefsson  <jas@extundo.com>
50157
50158         * m4/memmem.m4: New file.
50159
50160 2004-10-04  Simon Josefsson  <jas@extundo.com>
50161
50162         * lib/memmem.h: New file.
50163         * lib/memmem.c: New file, taken from glibc.
50164
50165 2004-10-04  Simon Josefsson  <jas@extundo.com>
50166
50167         * lib/error.c, md5.c, regex.c: Use '#if USE_UNLOCKED_IO' instead of
50168         '#ifdef USE_UNLOCKED_IO'.
50169
50170 2004-10-04  Simon Josefsson  <jas@extundo.com>
50171
50172         * config/srclist.txt: Add memmem from glibc.
50173
50174 2004-10-04  Paul Eggert  <eggert@cs.ucla.edu>
50175
50176         * modules/xalloc (Files, Makefile.am): Remove xstrdup.c.
50177
50178         * modules/argmatch, modules/argp, modules/closeout, modules/error,
50179         modules/exclude, modules/getdate, modules/getline,
50180         modules/getndelim2, modules/getpass, modules/getpass-gnu,
50181         modules/getusershell, modules/linebuffer, modules/md5,
50182         modules/mountlist, modules/posixtm, modules/readtokens,
50183         modules/readutmp, modules/regex, modules/sha1,
50184         modules/version-etc, modules/yesno:
50185         Remove dependency on unlocked-io.
50186
50187 2004-10-04  Paul Eggert  <eggert@cs.ucla.edu>
50188
50189         * m4/xalloc.m4 (gl_PREREQ_XSTRDUP): Remove.  All uses removed.
50190
50191         * m4/unlocked-io.m4: Add copyright notice.
50192         (gl_FUNC_GLIBC_UNLOCKED_IO): Define USE_UNLOCKED_IO.
50193
50194 2004-10-04  Paul Eggert  <eggert@cs.ucla.edu>
50195
50196         * lib/xalloc.h (xmemdup): Renamed from xclone.  All uses changed.
50197         * lib/xmalloc.c (xmemdup): Likewise.
50198         * lib/xalloc.h (CCLONE, CLONE, NEW, XCALLOC, XMALLOC, XREALLOC,
50199         XFREE): Remove these long-obsolescent macros.
50200         * lib/xmalloc.c (xstrdup): Implementation moved here from xstrdup.c
50201         * lib/xstrdup.c: Remove.
50202
50203         * lib/regex.c (re_comp): Cast gettext return value to char *,
50204         Problem reported by Martin Neitzel via Mark D. Baushke.
50205
50206 2004-10-04  Paul Eggert  <eggert@cs.ucla.edu>
50207
50208         * lib/argmatch.c, closeout.c, error.c, exclude.c, getdate.y,
50209         getndelim2.c, getpass.c, getusershell.c, linebuffer.c,
50210         md5.c, mountlist.c, posixtm.c, readtokens.c, readutmp.c,
50211         regex.c, sha1.c, version-etc.c, yesno.c:
50212         Include "unlocked-io.h" only if USE_UNLOCKED_IO.
50213         * lib/unlocked-io.h: Don't worry about USE_UNLOCKED_IO; that's now
50214         the includer's responsibility.
50215
50216         Sync from coreutils.
50217
50218         * lib/modechange.c (mode_compile): Don't decrement a pointer that
50219         points to the start of a string, as the C Standard says the
50220         resulting behavior is undefined.
50221
50222         * lib/backupfile.h (enum backuptype): Rename none -> no_backups,
50223         simple -> simple_backups, numbered_existing ->
50224         numbered_existing_backups, numbered -> numbered_backups
50225         to avoid shadowing problems.  All uses changed.
50226         * lib/argmatch.c (enum backuptype) [defined TEST]: Likewise.
50227         * lib/backupfile.c (check_extension, numbered_backup):
50228         Rename locals to avoid shadowing 'basename'.
50229         * lib/backupfile.h (VALID_BACKUP_TYPE): Don't evaluate arg more than
50230         once.
50231
50232         * lib/.cppi-disable: Add getopt_.h, getopt_int.h.
50233         * lib/.cvsignore: Add getopt.h.
50234
50235 2004-10-04  Bruno Haible  <bruno@clisp.org>
50236
50237         * modules/README: New file.
50238         * gnulib-tool (func_all_modules, func_verify_module): modules/README is
50239         not a module.
50240
50241 2004-10-02  Jim Meyering  <jim@meyering.net>
50242
50243         * lib/dirfd.h, getpagesize.h: Add copyright notice.
50244
50245 2004-10-01  Yoann Vandoorselaere  <yoann@prelude-ids.org>
50246
50247         * modules/strsep: New file.
50248
50249 2004-10-01  Yoann Vandoorselaere  <yoann@prelude-ids.org>
50250
50251         * m4/strsep.m4: New file.
50252
50253 2004-10-01  Yoann Vandoorselaere  <yoann@prelude-ids.org>
50254
50255         * lib/strsep.h: New file.
50256         * lib/strsep.c: New file.
50257
50258 2004-10-01  Simon Josefsson  <jas@extundo.com>
50259
50260         * lib/snprintf.c (snprintf): Handle size==0.
50261
50262 2004-10-01  Simon Josefsson  <jas@extundo.com>
50263             Bruno Haible  <bruno@clisp.org>
50264
50265         * lib/snprintf.c: Include <stdarg.h>, <stdlib.h>, <string.h>.
50266         (snprintf): Declare 'args'.
50267
50268 2004-10-01  Paul Eggert  <eggert@cs.ucla.edu>
50269
50270         * lib/snprintf.c: Remove comments as to why each header is needed.
50271
50272 2004-10-01  Bruno Haible  <bruno@clisp.org>
50273
50274         * MODULES.html.sh: Add strsep.
50275
50276 2004-09-30  Simon Josefsson  <jas@extundo.com>
50277
50278         * modules/snprintf: New file.
50279
50280 2004-09-30  Simon Josefsson  <jas@extundo.com>
50281
50282         * m4/snprintf.m4: New file.
50283
50284 2004-09-30  Simon Josefsson  <jas@extundo.com>
50285
50286         * lib/snprintf.h, lib/snprintf.c: New files.
50287
50288 2004-09-30  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
50289
50290         * lib/argp-help.c (canon_doc_option): Fixed coredump if *name==NULL
50291         (hol_entry_help): Never translate an empty string.
50292         Do not translate option tag (opt->name) if OPTION_NO_TRANS is set
50293         * lib/argp.h (OPTION_NO_TRANS): New option.
50294
50295 2004-09-30  Paul Eggert  <eggert@cs.ucla.edu>
50296
50297         * modules/argp (Maintainer): Replace Simon Josefsson
50298         by Sergey Poznyakoff.
50299
50300 2004-09-30  Paul Eggert  <eggert@cs.ucla.edu>
50301
50302         * config/srclist.txt: Comment-out argp/argp.h, until we get the argp
50303         changes merged back into glibc.
50304
50305 2004-09-30  Paul Eggert  <eggert@cs.ucla.edu>
50306
50307         * MODULES.html.sh (Support for systems lacking ISO C 99): Add snprintf.
50308
50309 2004-09-29  Oskar Liljeblad  <oskar@osk.mine.nu>
50310
50311         * lib/xvasprintf.c: Include xalloc.h.
50312         (xvasprintf): Use xalloc_die, not xmalloc_die.
50313
50314 2004-09-29  Bruno Haible  <bruno@clisp.org>
50315
50316         * modules/alloca-opt: New file, derived from modules/alloca.
50317         * modules/allocsa: Depend on alloca-opt instead of alloca.
50318         * modules/setenv: Likewise.
50319         * modules/vasnprintf: Likewise.
50320         * MODULES.html.sh: Add alloca-opt.
50321
50322 2004-09-28  Simon Josefsson  <jas@extundo.com>
50323
50324         * gnulib-tool: New parameter --lgpl, to asseert that modules are
50325         LGPL, and to replace license template from GPL to LGPL.
50326
50327 2004-09-28  Paul Eggert  <eggert@cs.ucla.edu>
50328
50329         * modules/dummy: Change license to LGPL.
50330
50331 2004-09-28  Paul Eggert  <eggert@cs.ucla.edu>
50332
50333         * lib/dummy.c: Change copyright notice to FSF, and license to GPL.
50334
50335 2004-09-24  Simon Josefsson  <jas@extundo.com>
50336
50337         * modules/minmax (License): Change from GPL to LGPL.
50338
50339 2004-09-23  Simon Josefsson  <jas@extundo.com>
50340
50341         * gnulib-tool (--import): Typo.
50342
50343 2004-09-23  Simon Josefsson  <jas@extundo.com>
50344
50345         * gnulib-tool (--import): Make sure *.m4 end up in m4/ by default.
50346
50347 2004-09-22  Bruno Haible  <bruno@clisp.org>
50348
50349         * modules/*: Add 'License' field.
50350         * gnulib-tool: Accept --extract-license option.
50351         (func_get_license): New function.
50352
50353 2004-09-21  Bruno Haible  <bruno@clisp.org>
50354
50355         * modules/vasnprintf (Files): Add m4/stdint_h.m4, m4/inttypes_h.m4.
50356         Reported by Simon Josefsson.
50357
50358 2004-09-20  Paul Eggert  <eggert@cs.ucla.edu>
50359
50360         * modules/inttostr (Files): Add m4/longlong.m4, since it uses
50361         gl_AC_TYPE_LONG_LONG.
50362
50363 2004-09-20  Paul Eggert  <eggert@cs.ucla.edu>
50364
50365         * config/srclist.txt: Add getsubopt.c, since libc bought our changes.
50366
50367 2004-09-18  Simon Josefsson  <jas@extundo.com>
50368         and  Paul Eggert  <eggert@cs.ucla.edu>
50369
50370         * gnulib-tool: Replace various ad-hoc automake/autoconf/aclocal
50371         calls with autoreconf.  Define GL_LIB.
50372
50373 2004-09-14  Karl Berry  <karl@gnu.org>
50374
50375         * config/srclist.txt: unsync setenv.c, sigh.
50376
50377 2004-09-13  Paul Eggert  <eggert@cs.ucla.edu>
50378
50379         * lib/argp-pvh.c (argp_program_version_hook): Provide initial value.
50380         Problem reported by Bruno Haible in:
50381         http://lists.gnu.org/archive/html/bug-tar/2004-09/msg00023.html
50382
50383 2004-09-13  Paul Eggert  <eggert@cs.ucla.edu>
50384
50385         * config/srclist.txt: Comment out argp-pvh.c.
50386
50387 2004-09-11  Paul Eggert  <eggert@cs.ucla.edu>
50388
50389         * lib/mempcpy.h: Wrap the entire include file inside #ifndef mempcpy,
50390         in case some system header has #define'd it.  Problem reported by
50391         Soeren D. Schulze in
50392         <http://lists.gnu.org/archive/html/bug-gnulib/2004-09/msg00017.html>.
50393
50394 2004-09-09  Karl Berry  <karl@gnu.org>
50395
50396         * regex.[ch]: delete from the root.  These were supposed to be
50397                 synced with emacs cvs, but this has not happened for about
50398                 a year, and anyway nothing else uses emacs regex.[ch].
50399                 bug-gnulib mail from Jeff Bailey, 9 Sep 2004 15:49:24 -0700.
50400                 lib/regex[.ch] is untouched.
50401
50402 2004-09-09  Bruno Haible  <bruno@clisp.org>
50403
50404         * modules/vasnprintf (Files): Add m4/eoverflow.m4.
50405
50406 2004-09-09  Bruno Haible  <bruno@clisp.org>
50407
50408         * m4/eoverflow.m4: New file, taken from GNU libiconv eilseq.m4 with
50409         modifications.
50410         * m4/vasnprintf.m4 (gl_FUNC_VASNPRINTF): Require gl_EOVERFLOW.
50411
50412 2004-09-08  Oskar Liljeblad  <oskar@osk.mine.nu>
50413
50414         * modules/xvasprintf: New file.
50415         * MODULES.html.sh (Extra functions based on ANSI C 89): Add vasprintf.
50416
50417 2004-09-08  Oskar Liljeblad  <oskar@osk.mine.nu>
50418
50419         * lib/xvasprintf.h: New file.
50420         * lib/xvasprintf.c: New file.
50421         * lib/xasprintf.c: New file.
50422
50423 2004-09-08  Bruno Haible  <bruno@clisp.org>
50424
50425         * m4/stdint.m4: New file, taken from GNU clisp with modifications.
50426
50427 2004-09-08  Bruno Haible  <bruno@clisp.org>
50428
50429         * lib/vasnprintf.c (VASNPRINTF): Signal EOVERFLOW if the resulting
50430         length is > INT_MAX.
50431         * lib/vasprintf.c (vasprintf): Don't test for length > INT_MAX any
50432         more.
50433
50434 2004-09-08  Bruno Haible  <bruno@clisp.org>
50435
50436         * lib/stdint_.h: New file, taken from GNU clisp.
50437
50438 2004-09-08  Bruno Haible  <bruno@clisp.org>
50439             Oskar Liljeblad  <oskar@osk.mine.nu>
50440
50441         * modules/stdint: New file.
50442         * MODULES.html.sh (Support for systems lacking ISO C 99): Add stdint.
50443
50444 2004-08-19  Paul Eggert  <eggert@cs.ucla.edu>
50445
50446         Import from coreutils.
50447         * lib/userspec.c: Don't use <alloca.h>, so that we don't use alloca on
50448         strings on unbounded length.  alloca's performance benefits aren't
50449         that important here.
50450         (V_STRDUP): Remove.
50451         (parse_with_separator): New function, with most of the internals
50452         of the old parse_user_spec.  Allow user to omit both user and group,
50453         for compatibility with FreeBSD.
50454         Clone only the user name, not the entire spec.
50455         Do not set *uid, *gid unless entirely successful.
50456         Avoid memory leak in some failing cases.
50457         Fix regression for USER.GROUP reported by Dmitry V. Levin in
50458         <http://lists.gnu.org/archive/html/bug-coreutils/2004-08/msg00102.html>
50459         (parse_user_spec): Rewrite to use parse_with_separator.
50460
50461 2004-08-19  Paul Eggert  <eggert@cs.ucla.edu>
50462
50463         * modules/userspec: Don't depend on alloca.
50464
50465 2004-08-19  Paul Eggert  <eggert@cs.ucla.edu>
50466
50467         * m4/userspec.m4 (gl_USERSPEC): Don't require AC_FUNC_ALLOCA.
50468
50469 2004-08-17  Paul Eggert  <eggert@cs.ucla.edu>
50470
50471         * MODULES.html.sh: Add xalloc-die, c-strtod, c-strtold, raise,
50472         readtokens0, getcwd, fcntl-safer, canonicalize, cycle-check,
50473         utimecmp, utimens, xnanosleep.  Rename sha to sha1.
50474
50475 2004-08-16  Simon Josefsson  <jas@extundo.com>
50476
50477         * gnulib-tool: Use sed instead of autoconf --trace, inspired by
50478         libtoolize behaviour by "Gary V. Vaughan" <gary@gnu.org>.
50479         Add --dry-run for --import.
50480         Let user provided command line parameters override configure.ac
50481         settings.
50482
50483 2004-08-12  Simon Josefsson  <jas@extundo.com>
50484
50485         * m4/getopt.m4 (gl_GETOPT_SUBSTITUTE): New macro,
50486         as discussed with Paul Eggert in threads rooted at
50487         <http://lists.gnu.org/archive/html/bug-gnulib/2004-06/msg00039.html>
50488         and
50489         <http://lists.gnu.org/archive/html/bug-gnulib/2004-07/msg00001.html>.
50490         Before, the test was empty, and relied on ELIDE_CODE in source
50491         code.)
50492         (gl_PREREQ_GETOPT): New macro.
50493         (gl_GETOPT): Use them.
50494
50495 2004-08-12  Simon Josefsson  <jas@extundo.com>
50496
50497         * lib/getopt.c, getopt1.c: Remove ELIDE_CODE hack.
50498         * lib/getopt_.h: Renamed from getopt.h.
50499
50500 2004-08-12  Simon Josefsson  <jas@extundo.com>
50501
50502         * gnulib-tool: Add --source-base, --m4-base, --libtool options.
50503         Change default library name from libfoo to libgnu.
50504         Now, if you have a configure.ac that says:
50505                 gl_SOURCE_BASE(gl)
50506                 gl_M4_BASE(gl/m4)
50507                 gl_MODULES(error getopt etcetera)
50508                 gl_INIT
50509         you can import all you need by running:
50510                 ../gnulib/gnulib-tool --import
50511
50512         * modules/getopt (Files): Rename getopt.h to getopt_.h.
50513         (Makefile.am): Rewrite, use logic from argz.
50514         (Include): Use <getopt.h> instead of "getopt.h".
50515
50516 2004-08-12  Paul Eggert  <eggert@cs.ucla.edu>
50517
50518         * modules/argp (Files): Add m4/unlocked-io.m4.
50519         (Depends-on): Add extensions.
50520
50521 2004-08-12  Paul Eggert  <eggert@cs.ucla.edu>
50522
50523         * m4/argp.m4 (gl_ARGP): Do not check for argp.h or argp_parse; nobody
50524         uses HAVE_ARGP_H or HAVE_ARGP_PARSE.
50525         Require gl_FUNC_GLIBC_UNLOCKED_IO, gl_USE_SYSTEM_EXTENSIONS.
50526         Check for program_invocation_name, program_invocation_short_name,
50527         flockfile, funlockfile, features.h, _getopt_long_only_r.
50528
50529 2004-08-12  Paul Eggert  <eggert@cs.ucla.edu>
50530
50531         * lib/argp-help.c, argp-parse.c: Use "gettext.h" instead of
50532         its complicated substitute.
50533         * lib/argp-help.c: Include <errno.h>, for program_invocation_short_name
50534         and program_invocation_name.
50535         (__argp_basename) [!_LIBC]: Remove; the only use was
50536         replaced by its body.
50537         (__argp_short_program_name): Change condition from
50538         !defined __argp_short_program_name to
50539         ! (defined _LIBC || HAVE_DECL_PROGRAM_INVOCATION_SHORT_NAME),
50540         to match argp-namefrob.h.
50541         (__argp_failure): Don't assume strerror_r returns char *.
50542         * lib/argp-parse.c (N_): Define unconditionally.
50543         (argp_default_options): Fill out initializers with 0 to avoid
50544         gcc warnings.
50545
50546 2004-08-12  Paul Eggert  <eggert@cs.ucla.edu>
50547
50548         * config/srclist.txt: Remove getopt.c, getopt.h (renamed to getopt_.h),
50549         getopt1.c.
50550
50551 2004-08-11  Paul Eggert  <eggert@cs.ucla.edu>
50552
50553         Merge from coreutils.
50554
50555         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Check for wmemchr and wmemcpy.
50556
50557         * m4/obstack.m4 (gl_PREREQ_OBSTACK): Require
50558         gl_AC_HEADER_INTTYPES_H, gl_AC_HEADER_STDINT_H, gl_AC_TYPE_UINTMAX_T.
50559
50560 2004-08-11  Paul Eggert  <eggert@cs.ucla.edu>
50561
50562         Merge from coreutils.
50563
50564         * lib/fnmatch.c (WIDE_CHAR_SUPPORT): Don't set to 1 if missing
50565         wmemchr or wmemcpy.  Problem reported by Robert Dahlem
50566         for Reliant Unix 5.43.
50567
50568         * lib/obstack.c: Include <inttypes.h> and <stdint.h> if available.
50569         (union fooround): Use uintmax_t, not long int.
50570         The rest is a merge from libc:
50571         [defined _LIBC]: Include <shlib-compat.h>.
50572         (_obstack) [defined _LIBC]: Remove after 2.3.4.
50573
50574         * lib/settime.c (settime): Recode to avoid warning with
50575         Sun Forte C 6U2.
50576
50577         * lib/strverscmp.c: Convert to UTF-8.
50578
50579 2004-08-11  Paul Eggert  <eggert@cs.ucla.edu>
50580
50581         * modules/obstack (Files): Add m4/inttypes_h.m4, m4/stdint_h.m4,
50582         m4/uintmax_t.m4.
50583
50584 2004-08-09  Paul Eggert  <eggert@cs.ucla.edu>
50585
50586         * modules/xalloc-die: New file.
50587         * modules/xalloc: Remove dependencies on error, gettext, exitfail.
50588
50589         * modules/md5 (Files): Add m4/uint32_t.m4.
50590         * modules/sha1: Renamed from modules/sha.
50591         (Files):
50592         Rename lib/sha.h to lib/sha1.h.
50593         Rename lib/sha.c to lib/sha1.c.
50594         Rename m4/sha.m4 to m4/sha1.m4.
50595         (lib_SOURCES): Likewise.
50596         (configure.ac): Rename gl_SHA to gl_SHA1.
50597         (Include): sha.h -> sha1.h.
50598
50599 2004-08-09  Paul Eggert  <eggert@cs.ucla.edu>
50600
50601         * m4/uint32_t.m4, m4/uintptr_t.m4: New files.
50602         * m4/sha1.m4: Renamed from sha.m4.
50603         (gl_SHA1): Renamed from gl_SHA.  All uses changed.
50604
50605 2004-08-09  Paul Eggert  <eggert@cs.ucla.edu>
50606
50607         * lib/obstack.h (obstack_empty_p):
50608         Don't assume that chunk->contents is suitably aligned.
50609         * lib/obstack.c (_obstack_begin, _obstack_begin_1, _obstack_newchunk):
50610         Likewise. Problem reported by Benno in
50611         <http://sources.redhat.com/ml/libc-alpha/2004-08/msg00055.html>.
50612
50613         * lib/chown.c (rpl_chown): Work even if the file is writeable but not
50614         readable.  This could be improved further but it'd take some work.
50615
50616 2004-08-08  Simon Josefsson  <jas@extundo.com>
50617
50618         * modules/xgethostname (Depends-on): Remove exit and error (not
50619         used).
50620
50621         * modules/getpass-gnu: Add getpass.h.
50622         (Depends-on): Add stdbool.
50623         * modules/getpass: Add getpass.h.
50624
50625 2004-08-08  Simon Josefsson  <jas@extundo.com>
50626
50627         * m4/getpass.m4 (gl_FUNC_GETPASS, gl_FUNC_GETPASS_GNU):
50628         Check getpass declaration.
50629
50630 2004-08-08  Simon Josefsson  <jas@extundo.com>
50631
50632         * lib/xgethostname.c: Don't include error.h (not used).
50633
50634         * lib/getpass.h: Add.
50635         * lib/getpass.c: Include getpass.h first.
50636
50637 2004-08-08  Paul Eggert  <eggert@cs.ucla.edu>
50638
50639         * lib/xalloc-die.c: New file.
50640         * lib/xalloc.h (xalloc_fail_func, xalloc_msg_memory_exhausted): Remove.
50641         All uses removed.
50642         * lib/xmalloc.c (xalloc_fail_func, xalloc_msg_memory_exhausted):
50643         Likewise. Move inclusions of gettext.h, error.h, exitfail.h to
50644         xalloc-die.c.
50645         (_, N_, xalloc_die): Move to xalloc-die.c.
50646         * lib/userspec.c (parse_user_spaec): Use xstrdup rather than strdup,
50647         so that we needn't mess with xalloc_msg_memory_exhausted.
50648
50649         * lib/sha1.h: Renamed from sha.h.
50650         (SHA1_H): Renamed from _SHA_H.
50651         (sha1_ctx): Renamed from sha_ctx.
50652         (sha1_init_ctx): Renamed from sha_init_ctx.
50653         (sha1_process_block): Renamed from sha_process_block.
50654         (sha1_process_bytes): Renamed from sha_process_bytes.
50655         (sha1_finish_ctx): Renamed from sha_finish_ctx.
50656         (sha1_read_ctx): Renamed from sha_read_ctx.
50657         (sha1_stream): Renamed from sha_stream.
50658         (sha1_buffer): Renamed from sha_buffer.
50659         * lib/sha1.c: Likewise; renamed from sha.c.
50660         Do not include <sys/types.h>.
50661         Include <stddef.h> rather than <stdlib.h>.
50662
50663 2004-08-08  Bruno Haible  <bruno@clisp.org>
50664
50665         * lib/pathname.h (FILE_SYSTEM_PREFIX_LEN): Renamed from
50666         FILESYSTEM_PREFIX_LEN.
50667         * lib/progreloc.c: Likewise.
50668         * lib/concatpath.c (concatenated_pathname): Use FILE_SYSTEM_PREFIX_LEN.
50669
50670 2004-08-06  Simon Josefsson  <jas@extundo.com>
50671
50672         * modules/progname (Depends-on): Don't depend on stdbool.
50673
50674 2004-08-06  Simon Josefsson  <jas@extundo.com>
50675
50676         * modules/getsubopt: New file.
50677         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
50678         getsubopt.
50679
50680 2004-08-06  Paul Eggert  <eggert@cs.ucla.edu>
50681
50682         More merge from coreutils.
50683
50684         * m4/utimens.m4, m4/utimecmp.m4: New files.
50685         * m4/backupfile.m4, euidacces.m4, acl.m4, afs.m4, calloc.m4, dirfd.m4,
50686         fsusage.m4, jm-macros.m4, ls-mntd-fs.m4, md5.m4, mountlist.m4,
50687         prereq.m4, sha.m4: Import changes from coreutils.
50688
50689 2004-08-06  Paul Eggert  <eggert@cs.ucla.edu>
50690
50691         More merge from coreutils.
50692         * modules/raise, modules/readtokens0, modules/utimens:
50693         * modules/utimecmp, module/xnanosleep: New files.
50694         * modules/strftime: Add lib/strftime.h.
50695         Change include from <time.h> to "strftime.h".
50696         * modules/yesno: Add lib/yesno.h.
50697         * modules/backupfile: Remove lib/addext.c.
50698         * modules/euidaccess: Add stat-macros.h.
50699         * modules/canonicalize, modules/euidaccess,
50700         modules/filemode, modules/lchown, modules/makepath,
50701         modules/rmdir, modules/stat: Likewise.
50702
50703 2004-08-06  Paul Eggert  <eggert@cs.ucla.edu>
50704
50705         Merge from tar.
50706         * lib/argp-help.c (make_hol, hol_append): Don't assume that
50707         SIZE_MAX is a valid preprocessor constant.
50708         (__argp_basename): Change from "#ifndef _LIBC"
50709         to "#ifndef __argp_short_program_name", so that
50710         we don't compile these functions for tar.
50711
50712         More merges from coreutils.
50713         * lib/raise.c, lib/readtokens0.h, lib/readtokens0.c, lib/strftime.h:
50714         * lib/utimens.h, lib/utimens.c, lib/utimecmp.h, lib/utimecmp.c:
50715         * lib/xnanosleep.h, lib/xnanosleep.c, lib/yesno.h: New files.
50716         * lib/addext.c: Remove; no longer needed.
50717         * lib/yesno.c, lib/argmatch.h, lib/argmatch.c, lib/backupfile.h,
50718         lib/backupfile.c, lib/euidaccess.c, lib/filemode.c, lib/closeout.c,
50719         lib/dup2.c, lib/exclude.c, lib/fileblocks.c, lib/filemode.c,
50720         lib/fnmatch.c, lib/fnmtahc_loop.c, lib/fopen-safer.c, lib/fsusage.c,
50721         lib/fsusage.h, lib/ftruncate.c, lib/full-write.c, lib/getdate.y,
50722         lib/getloadavg.c, lib/getugroups.c, lib/hard-locale.c,
50723         lib/hard-locale.h, lib/hash.c, lib/human.c, lib/human.h, lib/lchown.c,
50724         lib/lchown.h, lib/makepath.c, lib/makepath.h, lib/md5.c, lib/md5.h,
50725         lib/memchr.c, lib/memcoll.c, lib/memrchr.c, lib/modechange.c,
50726         lib/modechange.h, lib/mountlist.c, lib/mountlist.h, lib/nanosleep.c,
50727         lib/posixtm.c, lib/putenv.c, quotearg.c, lib/quotearg.h,
50728         lib/readtokens.c, lib/readutmp.c, lib/readutmp.h, lib/rmdir.c,
50729         lib/safe-read.c, lib/save-cwd.c, lib/savedir.c, lib/setenv.c,
50730         lib/sig2str.c, lib/stat.c, lib/strtoimax.c, lib/strverscmp.c,
50731         lib/userspec.c, lib/utime.c, lib/version-etc.c., lib/xgethostname.c,
50732         lib/xmemcoll.c, lib/xreadlink.c, lib/xstrtod.c, lib/xstrtod.h,
50733         lib/xstrtoimax.c, lib/xstrtol.c, lib/xstrtol.h, lib/xstrtoumax.c:
50734         Import changes from coreutils.
50735
50736 2004-08-05  Simon Josefsson  <jas@extundo.com>
50737
50738         * m4/strdup.m4: Always run gl_PREREQ_STRDUP, since strdup.h need it.
50739
50740 2004-08-05  Simon Josefsson  <jas@extundo.com>
50741
50742         * m4/getsubopt.m4: New file.
50743
50744 2004-08-05  Paul Eggert  <eggert@cs.ucla.edu>
50745
50746         Merge from coreutils.
50747
50748         * m4/c-strtod.m4, m4/canonicalize.m4, m4/fcntl-safer.m4:
50749         * m4/getcwd-path-max.m4: New files.
50750
50751         * m4/dos.m4 (gl_AC_DOS): filesystem -> file system renaming.
50752         FILESYSTEM_PREFIX_LEN ->
50753         FILE_SYSTEM_PREFIX_LEN.
50754         FILESYSTEM_ACCEPTS_DRIVE_LETTER_PREFIX ->
50755         FILE_SYSTEM_ACCEPTS_DRIVE_LETTER_PREFIX.
50756         FILESYSTEM_BACKSLASH_IS_FILE_NAME_SEPARATOR ->
50757         FILE_SYSTEM_BACKSLASH_IS_FILE_NAME_SEPARATOR.
50758
50759         * m4/path-concat.m4 (gl_PATH_CONCAT): Don't require gl_AC_DOS, the
50760         prerequisite modules now handle the DOS stuff.
50761         Don't check for unistd.h.
50762
50763 2004-08-05  Paul Eggert  <eggert@cs.ucla.edu>
50764
50765         Merge from coreutils.
50766
50767         * lib/.gdb-history: Remove; this doesn't belong here.
50768
50769         * lib/c-strtod.c, lib/c-strtod.h, lib/c-strtold.c, lib/cycle-check.c:
50770         * lib/cycle-check.h, lib/dev-ino.h, lib/canonicalize.h:
50771         * lib/canonicalize.c, lib/fcntl-safer.h, lib/fcntl-safer.c:
50772         * lib/getcwd.c: New files.
50773
50774         * lib/dirname.h: Include <stdbool.h>.
50775         (FILE_SYSTEM_PREFIX_LEN): Renamed from FILESYSTEM_PREFIX_LEN,
50776         for consistency with POSIX terminology.  All uses changed.
50777         (IS_ABSOLUTE_FILE_NAME, IS_RELATIVE_FILE_NAME): New macros.
50778         (strip_trailing_slashes): Use bool for booleans.
50779         * lib/stripslash.c (strip_trailing_slashes): Likewise.
50780
50781         * lib/error.c: Work around bug in OpenBSD 3.4 sterror_r: it
50782         sometimes returns a positive errno value even when it succeeds.
50783         (print_errno_message) [!LIBC]: Fall back on strerror if
50784         __strerror_r fails.
50785
50786         * lib/path-concat.c (mempcpy): Don't define if a system header defines
50787         it. Don't include stdio.h, stdlib.h, unistd.h, strdup.h.
50788         (longest_relative_suffix): New function.
50789         (path_concat): Use it.  Assume first argument is not NULL.
50790         Port to DOS.  Omit redundant separators.
50791         Report an error instead of returning NULL.
50792         Use mempcpy instead of memcpy.
50793         (xpath_concat): Remove: not declared or used.
50794
50795         * lib/same.h: Include <stdbool.h>
50796         (same_name): Return bool, not int.
50797         * lib/same.c (same_name): Likewise.
50798         (errno): Don't declare; we assume C89 or better now.
50799
50800         * lib/stat-macros (S_ISCTG, S_ISOFD, S_ISOFL): New macros,
50801         if not already defined.
50802
50803         * lib/xgetcwd.c (errno): Don't declare; we assume C89 or better now.
50804         * lib/dup-safer.c (errno): Likewise.
50805
50806 2004-08-05  Paul Eggert  <eggert@cs.ucla.edu>
50807
50808         Merge from coreutils.
50809         * modules/c-strtod, modules/c-strtold, modules/canonicalize:
50810         * modules/cycle-check, modules/fcntl-safer, modules/getcwd: New files.
50811         * modules/path-concat: Don't depend on strdup.
50812
50813 2004-08-03  Simon Josefsson  <jas@extundo.com>
50814
50815         * lib/strdup.h: Only use HAVE_DECL_STRDUP if defined.
50816         * lib/progname.h: Don't include stdbool.h.
50817
50818 2004-08-03  Paul Eggert  <eggert@cs.ucla.edu>
50819
50820         * modules/fatal: Remove, as the "fatal" module wasn't used or working.
50821         * MODULES.html.sh (func_all_modules): Remove fatal.
50822
50823 2004-08-03  Paul Eggert  <eggert@cs.ucla.edu>
50824
50825         * m4/fatal.m4: Remove, as the "fatal" module wasn't used or working.
50826
50827 2004-08-03  Paul Eggert  <eggert@cs.ucla.edu>
50828
50829         * lib/fatal.c, fatal.h: Remove as the "fatal" module wasn't used or
50830         working.
50831
50832 2004-08-02  Simon Josefsson  <jas@extundo.com>
50833
50834         * lib/getsubopt.h: New file, with comments from Bruno Haible.
50835         * lib/getsubopt.c: New file, from glibc, but slightly modified based on
50836         suggestions from Paul Eggert <eggert@cs.ucla.edu>.
50837
50838 2004-08-01  Simon Josefsson  <jas@extundo.com>
50839
50840         * lib/xgetdomainname.c: Include stdlib.h, for free().
50841
50842 2004-07-19  Bruno Haible  <bruno@clisp.org>
50843
50844         * MODULES.html.sh (func_all_modules): Add dummy.
50845
50846 2004-07-16  Simon Josefsson  <jas@extundo.com>
50847
50848         * modules/dummy: New file.
50849
50850 2004-07-16  Simon Josefsson  <jas@extundo.com>
50851
50852         * lib/dummy.c: New file.
50853
50854 2004-07-16  Bruno Haible  <bruno@clisp.org>
50855
50856         * lib/backupfile.h: Add extern "C" for C++.
50857         * lib/closeout.h: Likewise.
50858         * lib/copy-file.h: Likewise.
50859         * lib/findprog.h: Likewise.
50860         * lib/full-write.h: Likewise.
50861         * lib/pathname.h: Likewise.
50862         * lib/progname.h: Likewise.
50863         * lib/stpcpy.h: Likewise.
50864         * lib/stpncpy.h: Likewise.
50865         * lib/strcase.h: Likewise.
50866         * lib/strstr.h: Likewise.
50867         * lib/xalloc.h: Likewise.
50868
50869         * lib/mbswidth.h: Add extern "C" for C++.
50870         Reported by Albert Chin-A-Young <china@thewrittenword.com>.
50871
50872 2004-07-13  Robert Millan  <robertmh@gnu.org>
50873
50874         * m4/host-os.m4: s/KNetBSD/kNetBSD/g and s/KFreeBSD/kFreeBSD/g.
50875
50876 2004-07-09  Simon Josefsson  <jas@extundo.com>
50877
50878         * lib/getndelim2.c: Include stddef.h, for ptrdiff_t.  (FreeBSD 4.9
50879         failed without this.)
50880
50881 2004-07-09  Paul Eggert  <eggert@cs.ucla.edu>
50882
50883         * modules/chown (Files): Add lib/fchown-stub.c, since
50884         gl_PREREQ_CHOWN invokes AC_LIBOBJ(fchown-stub).
50885
50886 2004-07-09  Paul Eggert  <eggert@cs.ucla.edu>
50887
50888         * lib/fchown-stub.c: New file.
50889
50890 2004-06-24  Jim Meyering  <jim@meyering.net>
50891
50892         * lib/obstack.h (obstack_base): Cast to (void *), per documentation.
50893
50894 2004-06-22  Paul Eggert  <eggert@cs.ucla.edu>
50895
50896         * modules/argz: Omit "#include".
50897
50898         * MODULES.html.sh (func_all_modules): Add calloc, to match
50899         2004-06-01 addition of calloc module.
50900
50901 2004-06-22  Paul Eggert  <eggert@cs.ucla.edu>
50902
50903         * m4/argz.m4: New file, which is autoupdated from libtool.
50904
50905 2004-06-22  Paul Eggert  <eggert@cs.ucla.edu>
50906
50907         * lib/argz.c, lib/argz_.h: New files, which are autoupdated from
50908         libtool.
50909
50910 2004-06-22  Paul Eggert  <eggert@cs.ucla.edu>
50911
50912         * config/srclist-update: Don't insist on "USA." before the
50913         close-comment, as libtool omits the period and puts the */ on a
50914         separate line.
50915         * config/srclist.txt: Add argz.c, argz_.h, argz.m4.
50916         * config/srclistvars.sh: Add LIBTOOL (for eggert only).
50917
50918 2004-06-22  Gary V. Vaughan  <gary@gnu.org>
50919
50920         * modules/argz: New file.
50921         * MODULES.html.sh (func_all_modules): Add argz.
50922
50923 2004-06-12  Jim Meyering  <jim@meyering.net>
50924         and  Paul Eggert  <eggert@cs.ucla.edu>
50925
50926         * modules/hash (Files): Add lib/xalloc.h.
50927         * modules/pipe (Depends-on): Add wait-process.
50928         * modules/stat (Depends-on): Add xalloc.
50929         * modules/userspec (Files): Add lib/userspec.h.
50930         * modules/xstrto
50931
50932         Upgrade from gettext-0.13.
50933         * modules/gettext (Files): Add m4/intmax.m4, m4/longdouble.m4,
50934         m4/longlong.m4, m4/printf-posix.m4, m4/signed.m4, m4/size_max.m4,
50935         m4/wchar_t.m4, m4/wint_t.m4, m4/xsize.m4.
50936
50937 2004-06-10  Jim Meyering  <jim@meyering.net>
50938
50939         * lib/calloc.c: New file.
50940
50941 2004-06-06  Paul Eggert  <eggert@cs.ucla.edu>
50942
50943         * lib/getdate.y (yylex): Allow space between sign and number.
50944         Problem reported by Dan Jacobson.
50945
50946 2004-06-01  Paul Eggert  <eggert@cs.ucla.edu>
50947
50948         Merge from coreutils CVS.
50949
50950         * m4/backupfile.m4, dirname.m4, human.m4, inttypes.m4, longlong.m4,
50951         makepath.m4, memchr.m4, memcmp.m4, mountlist.m4, path-concat.m4,
50952         putenv.m4, quotearg.m4, readutmp.m4, strtoimax.m4, strtoll.m4,
50953         strtoull.m4, strtoumax.m4, ulonglong.m4, vasnprintf.m4,
50954         xstrtol.m4: Fix copyright date and/or serial number.
50955
50956         * m4/chown.m4 (gl_PREREQ_CHOWN): Check for fcntl.h.
50957         See if we need an fchown replacement.
50958         (gl_FUNC_CHOWN_FOLLOWS_SYMLINK): New macro.
50959         (gl_FUNC_CHOWN): Require gl_FUNC_CHOWN_FOLLOWS_SYMLINK,
50960         and use the replacement function if we detect either defect.
50961
50962         * m4/prereq.m4 (gl_PREREQ): Add gl_ALLOCSA, gl_CLOEXEC, gl_INTTOSTR,
50963         gl_UTIMECMP.
50964
50965 2004-06-01  Paul Eggert  <eggert@cs.ucla.edu>
50966         and  Jim Meyering  <jim@meyering.net>
50967
50968         Merge from coreutils CVS.
50969
50970         * lib/stat-macros.h: New file, with contents from file-type.h
50971         and coreutils' system.h.
50972         * lib/file-type.c: Include "stat-macros.h".
50973         * lib/file-type.h (file_type): Move all macro definitions to new file,
50974         stat-macros.h.
50975
50976         * lib/chown.c (rpl_chown) [CHOWN_FAILS_TO_HONOR_ID_OF_NEGATIVE_ONE]:
50977         Wrap old code with this conditional.
50978         [CHOWN_MODIFIES_SYMLINK]: Try to work around a chown
50979         function that does not dereference symlinks.
50980         * lib/lchown.c (lchown) [CHOWN_MODIFIES_SYMLINK]: Just call chown.
50981
50982         * lib/xreadlink.c: Include xreadlink.h first, to catch .h file
50983         dependency problems.
50984         (xreadlink): Accept new arg SIZE, for efficiency.
50985         All decls and uses changed.
50986         * lib/xreadlink.h: Include <stddef.h>, for size_t.
50987
50988         * lib/.cppi-disable: Add alloca_.h, allocsa.h, exit.h, getndelim2.h,
50989         gettext.h, localcharset.h, strdup.h, strndup.h, strtoul.c, time_r.h.
50990
50991         * lib/.cvsignore: Add alloca.h, fnmatch.h, poll.h, stdbool.h,
50992         sysexits.h.
50993
50994 2004-06-01  Jim Meyering  <jim@meyering.net>
50995
50996         * m4/calloc.m4: New file.
50997
50998 2004-05-31  Paul Eggert  <eggert@cs.ucla.edu>
50999
51000         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Detect _Bool bug in HP aC++/ANSI
51001         C B3910B A.05.55 [Dec 04 2003].  Problem reported by Jim Meyering.
51002         Also, fix a typo in a diagnostic.
51003
51004 2004-05-30  Paul Eggert  <eggert@cs.ucla.edu>
51005
51006         * m4/xalloc.m4 (gl_PREREQ_XMALLOC): Do not require AC_FUNC_MALLOC
51007         or AC_FUNC_REALLOC.
51008
51009 2004-05-30  Paul Eggert  <eggert@cs.ucla.edu>
51010
51011         * lib/xmalloc.c (HAVE_MALLOC, HAVE_REALLOC): Do not require these
51012         macros to be defined.
51013         (xnmalloc_inline, xnrealloc_inline, xcalloc): Do not die if
51014         the allocator returns NULL because the requested size is zero.
51015
51016 2004-05-20  Paul Eggert  <eggert@cs.ucla.edu>
51017
51018         * lib/malloc/obstack.c (_obstack) [defined _LIBC]: Bring back this
51019         var.  Add comment explaining why libc still defines it.  This
51020         merges the following patch from glibc:
51021         http://sources.redhat.com/ml/libc-alpha/2004-05/msg00157.html
51022
51023 2004-05-20  Andreas Schwab  <schwab@suse.de>
51024
51025         * m4/free.m4: Replace free if it not known to work, not the other
51026         way round.
51027
51028 2004-05-19  Paul Eggert  <eggert@cs.ucla.edu>
51029
51030         * lib/obstack.c (_obstack): Remove unused variable.  It hasn't been
51031         present in glibc since revision 1.1 of this file.
51032         * lib/obstack.h (_obstack_free, obstack_1grow, obstack_1grow_fast,
51033         obstack_alignment_mask, obstack_alloc, obstack_base,
51034         obstack_blank, obstack_blank_fast, obstack_chunk_size,
51035         obstack_copy, obstack_copy0, obstack_finish, obstack_grow,
51036         obstack_grow0, obstack_init, obstack_int_grow,
51037         obstack_int_grow_fast, obstack_make_room, obstack_memory_used,
51038         obstack_next_free, obstack_object_size, obstack_ptr_grow,
51039         obstack_ptr_grow_fast, obstack_room): Remove declarations of
51040         nonexistent functions.
51041
51042 2004-05-18  Karl Berry  <karl@gnu.org>
51043
51044         * config/srclist.txt: break link for vasnprintf.c.
51045
51046 2004-05-17  Paul Eggert  <eggert@cs.ucla.edu>
51047
51048         Port obstack to the AS/400, where pointers are 16 bytes wide and
51049         you cannot cast an integer to a valid pointer.  This patch is
51050         currently waiting to be integrated into glibc; see
51051         <http://sources.redhat.com/ml/libc-alpha/2004-05/msg00073.html>.
51052
51053         * lib/obstack.h (__PTR_TO_INT, __INT_TO_PTR): Remove.
51054         All uses of __INT_TO_PTR (PTR_TO_INT ...) replaced by __PTR_ALIGN.
51055         (__BPTR_ALIGN, __PTR_ALIGN): New macros.
51056         (struct obstack): temp member is now a union of a pointer and
51057         an integer, instead of an integer.  All integer uses changed.
51058         This does not affect the physical layout of struct obstack,
51059         except on hosts (like the AS/400) where the size or alignment of
51060         void * is greater than that of ptrdiff_t.
51061         (obstack_finish) [! (defined __GNUC__ && defined __STDC__ &&
51062         __STDC__)]: Store temporary in pointer member of union, not
51063         integer member.
51064         * lib/obstack.c: Include <stddef.h>, for offsetof.
51065         (struct fooalign): Remove; it doesn't need a name.
51066         (union fooround): Change double to long double, and add void *.
51067         (DEFAULT_ALIGNMENT): Use offsetof to compute.
51068         (DEFAULT_ALIGNMENT, DEFAULT_ROUNDING): Now an enum constant,
51069         not a macro.  Hence the values are always int; so remove all
51070         casts-to-int in uses.
51071
51072 2004-05-17  Paul Eggert  <eggert@cs.ucla.edu>
51073
51074         * config/srclist.txt: Break link for argp-help.c and argp-parse.c until
51075         we can get this patch merged into glibc.
51076
51077 2004-05-17  Derek R. Price  <derek@ximbiot.com>
51078             Paul Eggert  <eggert@cs.ucla.edu>
51079
51080         * m4/argp: Depend on alloca.
51081
51082 2004-05-17  Derek R. Price  <derek@ximbiot.com>
51083             Paul Eggert  <eggert@cs.ucla.edu>
51084
51085         * lib/argp-help.c, argp-parse.c: Assume <alloca.h> rather than
51086         freecoding.
51087
51088 2004-05-17  Bruno Haible  <bruno@clisp.org>
51089
51090         * lib/vasnprintf.c (VASNPRINTF): Correctly handle the case of a
51091         precision that consists of a '.' followed by an empty digit string.
51092         Patch by Tor Lillqvist <tml@iki.fi>.
51093
51094 2004-05-16  Paul Eggert  <eggert@cs.ucla.edu>
51095
51096         * m4/alloca.m4 (gl_FUNC_ALLOCA): Define HAVE_ALLOCA_H always,
51097         for backward compatibility with older code.  We need our own
51098         alloca.h if _AIX is defined.  Define HAVE_ALLOCA if we discover
51099         it under some other name, and our alloca.h will define it.
51100
51101 2004-05-16  Paul Eggert  <eggert@cs.ucla.edu>
51102             Derek Price  <derek@ximbiot.com>
51103
51104         * lib/alloca.c: Include <alloca.h>, to get our interface.
51105         * lib/alloca_.h: Use __alloca on AIX, so that we don't have to
51106         include <alloca.h> first.  Use C89 prototype for alloca; this
51107         requires including <stddef.h> for size_t.  Use extern "C" if C++.
51108         Use #elif for simplicity, since we can assume C89 now.
51109         Don't try to source the system alloca.h since it will not be found
51110         and to prevent recursively including its replacement.
51111         * lib/fnmatch.c: Include <alloca.h> instead of opencoding.
51112         * lib/regex.c: Likewise.
51113
51114 2004-05-16  Derek Price  <derek@ximbiot.com>
51115             Paul Eggert  <eggert@cs.ucla.edu>
51116
51117         getline cleanup.  This changes the getndelim2 API: both order of
51118         arguments, and meaning of delim2 (now uses EOF, not 0, to indicate
51119         no delimiter).
51120
51121         * lib/getline.c: Don't include stddef.h or stdio.h, since our
51122         interface does that.
51123         (getline): Always use getdelim, so that we don't have two
51124         copies of this code.
51125         * lib/getndelim2.c: Include <limits.h>, <inttypes.h>, <stdint.h>
51126         if available.
51127         (PTRDIFF_MAX, SIZE_MAX, SSIZE_MAX): Define if not defined.
51128         (GETNDELIM2_MAXIMUM): New macro.
51129         (getndelim2): Reorder arguments.  delim==EOF now means no delimiter,
51130         instead of the old practice of delim2==0.  All callers changed.
51131         Return -1 on overflow, instead of returning junk.
51132         Do not set *linesize unless allocation succeeds.
51133         * lib/getndelim2.h: Do not include stddef.h; no longer needed, now
51134         that we include sys/types.h.
51135         * lib/getnline.h: Likewise.
51136         * lib/getndelim2.h (GETNLINE_NO_LIMIT): New macro.
51137         (getndelim2): Reorder arguments.
51138         * lib/getnline.c (getnline, getndelim):
51139         Don't discard the NMAX argument.
51140         (getnline): Invoke getndelim, to avoid code duplication.
51141         * lib/getnline.h (GETNLINE_NO_LIMIT): New macro, used instead
51142         of (size_t) -1 by callers of the getnline family.
51143
51144 2004-05-13  Paul Eggert  <eggert@cs.ucla.edu>
51145
51146         * m4/gettime.m4 (gl_GETTIME): Require gl_TIMESPEC.
51147         Check for gettimeofday.
51148         * m4/settime.m4 (gl_SETTIME): Require gl_TIMESPEC.
51149         Check for settimeofday, stime.
51150
51151 2004-05-13  Paul Eggert  <eggert@cs.ucla.edu>
51152
51153         * lib/nanosleep.c (suspended): Change its type from int to
51154         sig_atomic_t volatile.
51155         (first_call): Make it private to rpl_nanosleep, and have it
51156         be zero initially as that's a bit faster.
51157         (my_usleep): Round up fractional times instead of truncating them,
51158         as this is the usual meaning for 'sleep'.
51159
51160         * lib/gettime.c (gettime): Fall back on `time' if `gettimeofday'
51161         doesn't work.
51162         * lib/settime.c: Include <unistd.h>, for stime (on Solaris 8, anyway).
51163         (ENOSYS): Define if not defined.
51164         (settime): Fall back on stime if it exists and settimeofday fails.
51165         But don't bother with fallbacks if a method fails with errno == EPERM.
51166
51167 2004-05-11  Jim Meyering  <jim@meyering.net>
51168
51169         Prior to this change, the save_cwd caller required read access to the
51170         current directory on most systems (ones with the fchdir function).
51171
51172         * lib/save-cwd.c (save_cwd) [HAVE_FCHDIR]: If opening `.' read-only
51173         fails, try write-only, and finally, resort to using xgetcwd.
51174
51175 2004-05-06  Paul Eggert  <eggert@cs.ucla.edu>
51176
51177         * lib/obstack.c, obstack.h: Import changes from libc.
51178
51179 2004-04-28  Bruno Haible  <bruno@clisp.org>
51180
51181         * lib/findprog.c (find_in_path): Treat Cygwin like Windows, since it
51182         also implicitly appends .exe to executables.
51183         * lib/localcharset.c (ISSLASH): Treat Cygwin like Windows, since it now
51184         accepts Windows pathnames.
51185         * lib/pathname.h (ISSLASH, IS_PATH_WITH_DIR, FILESYSTEM_PREFIX_LEN):
51186         Treat Cygwin like Windows, since it now accepts Windows pathnames.
51187         * lib/progreloc.c (ISSLASH, IS_PATH_WITH_DIR, FILESYSTEM_PREFIX_LEN):
51188         Treat Cygwin like Windows, since it now accepts Windows pathnames.
51189         Reported by Derek Robert Price <derek@ximbiot.com>.
51190
51191 2004-04-21  Karl Berry  <karl@gnu.org>
51192
51193         * config/srclist.txt (localcharset.c): break sync.
51194
51195 2004-04-20  Paul Eggert  <eggert@twinsun.com>
51196
51197         * m4/host-os.m4: Add a copyright notice.
51198
51199 2004-04-20  Jim Meyering  <jim@meyering.net>
51200
51201         Change UTILS_ to gl_ in AC_DEFINE'd names.
51202         Change utils_- and jm_-prefixed variables, too.
51203         * m4/mkdir-slash.m4 (gl_FUNC_MKDIR_TRAILING_SLASH): Renamed from
51204         UTILS_FUNC_MKDIR_TRAILING_SLASH.
51205         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Renamed from UTILS_FUNC_MKSTEP.
51206
51207         * m4/dirfd.m4 (gl_FUNC_DIRFD): Rename from UTILS_FUNC_DIRFD.
51208         Don't emit trailing blanks.
51209         Also rename jm_-prefixed variables to have gl_ prefix.
51210
51211         * m4/host-os.m4 (gl_HOST_OS): Rename from UTILS_HOST_OS.
51212         Also rename jm_-prefixed variables to have gl_ prefix.
51213
51214         * m4/jm-macros.m4: Reflect the renamings.
51215         * m4/prereq.m4: Likewise.
51216
51217 2004-04-20  Jim Meyering  <jim@meyering.net>
51218
51219         * lib/getndelim2.c (getndelim2): Upon realloc failure, don't leak
51220         memory.
51221
51222 2004-04-20  Jim Meyering  <jim@meyering.net>
51223             Bruno Haible  <bruno@clisp.org>
51224
51225         * lib/localcharset.c (get_charset_aliases) [!VMS && !WIN32]: Don't leak
51226         memory when realloc fails.
51227
51228 2004-04-19  Jim Meyering  <jim@meyering.net>
51229
51230         * m4/readutmp.m4 (gl_PREREQ_READUTMP): Require gl_FUNC_FREE,
51231         now that readutmp.c may call `free (0)'.
51232
51233 2004-04-19  Bruno Haible  <bruno@clisp.org>
51234
51235         * m4/mbrtowc.m4: Change jm_ to gl_ in cache variables as well.
51236         * m4/inttypes_h.m4: Likewise.
51237         * m4/stdint_h.m4: Likewise.
51238         * m4/intmax_t.m4: Likewise.
51239         * m4/uintmax_t.m4: Likewise.
51240
51241 2004-04-18  Jim Meyering  <jim@meyering.net>
51242
51243         * m4/prereq.m4: Don't forbid jm_ prefix.
51244
51245         * m4/afs.m4, m4/allocsa.m4, m4/assert.m4, m4/backupfile.m4:
51246         * m4/bison.m4, m4/check-decl.m4, m4/chown.m4, m4/d-ino.m4:
51247         * m4/d-type.m4, m4/dirname.m4, m4/dos.m4, m4/error.m4, m4/fpending.m4:
51248         * m4/fstypename.m4, m4/fsusage.m4, m4/ftruncate.m4, m4/getdate.m4:
51249         * m4/getgroups.m4, m4/gettext.m4, m4/glibc21.m4, m4/group-member.m4:
51250         * m4/human.m4, m4/intmax.m4, m4/intmax_t.m4, m4/inttostr.m4:
51251         * m4/inttypes.m4, m4/inttypes_h.m4, m4/jm-macros.m4, m4/jm-winsz1.m4:
51252         * m4/jm-winsz2.m4, m4/lchown.m4, m4/lib-check.m4, m4/link-follow.m4:
51253         * m4/localcharset.m4, m4/longlong.m4, m4/ls-mntd-fs.m4, m4/lstat.m4:
51254         * m4/makepath.m4, m4/mbrtowc.m4, m4/mbswidth.m4, m4/memchr.m4:
51255         * m4/memcmp.m4, m4/mkdtemp.m4, m4/mkstemp.m4, m4/mountlist.m4:
51256         * m4/nanosleep.m4, m4/path-concat.m4, m4/perl.m4, m4/prereq.m4:
51257         * m4/putenv.m4, m4/quotearg.m4, m4/regex.m4, m4/stat.m4:
51258         * m4/stdint_h.m4, m4/strftime.m4, m4/strtoimax.m4, m4/strtoll.m4:
51259         * m4/strtoull.m4, m4/strtoumax.m4, m4/timespec.m4, m4/uintmax_t.m4:
51260         * m4/ulonglong.m4, m4/unlink-busy.m4, m4/unlocked-io.m4, m4/uptime.m4,
51261         * m4/utimbuf.m4, m4/utime.m4, m4/utimes-null.m4, m4/vasnprintf.m4:
51262         * m4/xstrtoimax.m4, m4/xstrtol.m4, m4/xstrtoumax.m4:
51263         Change jm_ to gl_ in AC_DEFINE'd names. Update all uses.
51264
51265 2004-04-18  Jim Meyering  <jim@meyering.net>
51266
51267         * lib/readutmp.c (read_utmp) [UTMP_NAME_FUNCTION]: Upon realloc
51268         failure, don't leak memory and do call END_UTMP_ENT.
51269
51270 2004-04-16  Jim Meyering  <jim@meyering.net>
51271
51272         * m4/prereq.m4 (jm_PREREQ_STAT): Remove macro.  It is specific to
51273         coreutils' stat program.
51274         (gl_PREREQ): Don't require jm_PREREQ_STAT.
51275
51276 2004-04-11  Paul Eggert  <eggert@twinsun.com>
51277
51278         * lib/inttostr.h: Include <limits.h> unconditionally, since we assume
51279         C89.
51280         (CHAR_BIT): Remove, since we assume C89.
51281         Include <stdint.h> if available, as per current Autoconf CVS advice.
51282
51283 2004-03-31  Jim Meyering  <jim@meyering.net>
51284
51285         * m4/prereq.m4: Require AC_FUNC_MALLOC, not jm_FUNC_MALLOC.
51286         Require AC_FUNC_REALLOC, not jm_FUNC_REALLOC.
51287         * m4/xalloc.m4: Likewise.
51288
51289 2004-03-30  Paul Eggert  <eggert@twinsun.com>
51290
51291         Merge from coreutils.
51292
51293         * m4/inttostr.m4: New file.
51294         * m4/getdate.m4 (gl_GETDATE): Remove time-related stuff.
51295         Require AM_STDBOOL_H and gl_TIMESPEC instead.
51296         Require gl_CLOCK_TIME.
51297         * m4/clock_time.m4 (gl_CLOCK_TIME): Require AC_GNU_SOURCE.
51298
51299 2004-03-30  Paul Eggert  <eggert@twinsun.com>
51300
51301         * lib/cloexec.h, cloexec.c (set_cloexec_flag): Return int
51302         not bool, to be more consistent with Unix conventions.
51303         Suggested by Bruno Haible.
51304
51305         Merge from coreutils.
51306
51307         * lib/imaxtostr.c, lib/inttostr.c, lib/inttostr.h, lib/offtostr.c:
51308         * lib/umaxtostr.c: New files.
51309
51310         * lib/getdate.h: Include stdbool.h, and timespec.h instead of
51311         the usual <time.h> dance.
51312         (get_date): Change signature to support fractional time stamps.
51313         All callers changed.
51314         * lib/getdate.y: Include "getdate.h" first, as we can now
51315         assume C89 and don't need to worry about 'const'.
51316         Similarly, include "unlocked-io.h" near start, not in middle.
51317         Include <limits.h>.
51318         (textint.value): Use long int rather than int.
51319         (textint.digits): Use size_t rather than int.
51320         (BILLION, LOG10_BILLION): New constants.
51321         (parser_control): New member rel_ns.  Members day_ordinal,
51322         time_zone, month, day, hour, minutes, rel_year, rel_month,
51323         rel_day, rel_hour, rel_minutes, rel_seconds
51324         are now long int, not int.  Member seconds is now struct timespec,
51325         not int.  New member timespec_seen.  Members dates_seen, days_seen,
51326         local_zones_seen, rels_seen, times_seen, zones_seen are now size_t,
51327         not int.
51328         (%union.intval): Now long int, not int.
51329         New member timespec.
51330         (tSDECIMAL_NUMBER, tUDECIMAL_NUMBER): New tokens.
51331         (seconds, signed_seconds, unsigned_seconds): New nonterminals.
51332         (spec): Now is a timespec or an item list.
51333         (timespec, items): New nonterminals.
51334         (time, rel, relunit, number, get_date):
51335         Add support for fractional seconds.
51336         (time): Fix bug: seconds weren't cleared in "00:00 +0000" syntax.
51337         (gmtime, localtime, mktime): Remove decls; not needed with C89.
51338         (to_hour): First arg is now long int, not int.
51339         (to_year): Returns long int, not int.
51340         Don't treat year -70 like 70.
51341         (tm_diff): Returns long int, not int.
51342         (lookup_word): Use bool instead of int when appropriate.
51343         (yylex): Use size_t for count, not int.
51344         Detect overflow when parsing large integer constants.
51345         Add support for fractions.
51346         (get_date): Make pointers 'const' if possible.
51347         Use more-portable code to detect integer overflow.
51348         (main) [TEST]: Adjust to above changes.  Test for localtime failure.
51349         Don't use ctime; it's not reliable if the year has >4 digits.
51350
51351         * lib/human.c (humblock): Inspect BLOCKSIZE if BLOCK_SIZE isn't set.
51352         This is for compatibility with BSD.
51353
51354         * lib/timespec.h (ST_TIME_CMP_NS, ST_TIME_CMP): Define.
51355         (ATIME_CMP, CTIME_CMP, MTIME_CMP, TIMESPEC_NS): Likewise.
51356         From coreutils' system.h.
51357
51358         * lib/userspec.c: Don't include "posixver.h".
51359         (parse_user_spec): Fall back on USER.GROUP parsing, regardless
51360         of POSIX version, as POSIX 1003.1-2001 allows that behavior as a
51361         compatible extension.  Simplify code by removing a boolean int
51362         that was always nonzero if a string was nonnull.
51363
51364 2004-03-30  Jim Meyering  <jim@meyering.net>
51365
51366         Merge from coreutils.
51367
51368         Avoid a configure-time warning about sys/ucred.h on OSF V4.0.
51369         * m4/ls-mntd-fs.m4: Test for sys/ucred.h separately, since
51370         on some systems one must include <grp.h> before it.
51371         Reported by Christian Krackowizer.
51372
51373 2004-03-30  Jim Meyering  <jim@meyering.net>
51374
51375         Merge from coreutils.
51376
51377         * lib/mountlist.c [HAVE_SYS_UCRED_H]: Include grp.h before sys/ucred.h.
51378
51379         * lib/readtokens.c (readtoken): Don't leak 64 bytes when reading
51380         an empty input stream.
51381
51382         * lib/readtokens.c: Include <stdbool.h>.
51383         (readtoken): Use `size_t' rather than int/long.
51384         All callers adjusted.
51385         Use `bool' rather than `int' where appropriate.
51386         Use memset rather than an explicit loop.
51387         Use x2nrealloc rather than xrealloc.
51388         Allow the use of `\0' as a delimiter.
51389         (readtokens): Likewise.
51390         * lib/readtokens.h (readtoken, readtokens): Update prototypes.
51391
51392 2004-03-30  Jim Meyering  <jim@meyering.net>
51393
51394         * m4/realloc.m4: Remove file, since now it does no more than
51395         AC_REQUIRE([AC_FUNC_REALLOC]), and that can be done via
51396         the `configure.ac' section of module/realloc.
51397         * m4/malloc.m4: Likewise, but for AC_FUNC_MALLOC.
51398
51399 2004-03-30  Bruno Haible  <bruno@clisp.org>
51400
51401         * lib/getloadavg.c (getloadavg): Don't assume setlocale returns
51402         nonnull.
51403
51404 2004-03-29  Paul Eggert  <eggert@twinsun.com>
51405
51406         Merge changes to getloadavg.c from coreutils and Emacs.
51407
51408         * lib/getloadavg.c [!defined HAVE_SETLOCALE] (setlocale):
51409         Define to an expression, not to the empty string.
51410         Include cloexec.h and xalloc.h.
51411         (getloadavg): Restore LC_NUMERIC locale after setting it temporarily.
51412         Use set_cloexec_flag rather than rolling our own.
51413         * lib/cloexec.c, lib/cloexec.h: New files.
51414
51415 2004-03-29  Paul Eggert  <eggert@twinsun.com>
51416
51417         * m4/cloexec.m4: New file.
51418
51419 2004-03-18  Paul Eggert  <eggert@twinsun.com>
51420
51421         * lib/getopt.h: Sync with libc CVS.
51422
51423 2004-03-18  Paul Eggert  <eggert@twinsun.com>
51424             Bruno Haible  <bruno@clisp.org>
51425
51426         * m4/mbswidth.m4 (gl_MBSWIDTH): Also test whether <wchar.h> declares
51427         mbswidth.
51428
51429 2004-03-18  Paul Eggert  <eggert@twinsun.com>
51430             Bruno Haible  <bruno@clisp.org>
51431
51432         * lib/mbswidth.h: Include <wchar.h> only if
51433         HAVE_DECL_MBSWIDTH_IN_WCHAR_H, not on all platforms that have
51434         <wchar.h>.
51435         * lib/mbswidth.c: Include <stdio.h> and <time.h> before <wchar.h>.
51436
51437 2004-03-09  Paul Eggert  <eggert@twinsun.com>
51438
51439         * lib/argp-parse.c, getopt.c, getopt.h, getopt1.c:
51440         Sync with libc CVS.
51441         * lib/getopt_int.h: New file, also synced from libc.
51442
51443 2004-03-09  Paul Eggert  <eggert@twinsun.com>
51444
51445         * config/srclistvars.sh: Add GNUWWWLICENSES for eggert.
51446         * config/srclist.txt: Sync getopt with libc.  Add getopt_int.h.
51447         Bring back getopt.c, getopt.h, getopt1.c.
51448
51449 2004-03-07  Paul Eggert  <eggert@twinsun.com>
51450
51451         * m4/c-stack.m4 (gl_PREREQ_C_STACK): Renamed from jm_PREREQ_C_STACK.
51452         All uses changed.  Check for sa_sigaction member; this fixes
51453         a bug first reported by Jason Andrade in
51454         <http://mail.gnu.org/archive/html/bug-textutils/2003-03/msg00027.html>.
51455
51456 2004-03-07  Paul Eggert  <eggert@twinsun.com>
51457
51458         * lib/c-stack.c (SIGACTION_WORKS): New macro.  Use it instead of long
51459         '#if' expressions.  Unlike the code it replaces, it does not
51460         depend on (defined _SC_PAGESIZE).  However, it does depend on
51461         HAVE_STRUCT_SIGACTION_SA_SIGACTION; this last change fixes a bug
51462         first reported by Jason Andrade in
51463         <http://mail.gnu.org/archive/html/bug-textutils/2003-03/msg00027.html>.
51464
51465 2004-02-25  Simon Josefsson  <jas@extundo.com>
51466
51467         * m4/strdup.m4 (gl_PREREQ_STRDUP): Check whether strdup is declared.
51468
51469 2004-02-25  Simon Josefsson  <jas@extundo.com>
51470
51471         * lib/strdup.h: New file.
51472         * lib/strdup.c: Include it.
51473         * lib/path-concat.c: Include strdup.h. Drop strdup declaration.
51474         * lib/userspec.c: Include strdup.h. Drop strdup declaration.
51475
51476 2004-02-23  Karl Berry  <karl@gnu.org>
51477
51478         * doc/maintain.texi, doc/standards.texi, doc/make-stds.texi: new files
51479         (from fencepost.gnu.org:/gd/gnuorg).
51480
51481 2004-02-23  Karl Berry  <karl@gnu.org>
51482
51483         * config/srclistvars.sh (GNUORG) [karl]: redefine.
51484         * config/srclist.txt: add maintain/standards documents.
51485
51486 2004-02-18  Bruno Haible  <bruno@clisp.org>
51487
51488         * m4/xsize.m4 (gl_XSIZE): Require AC_C_INLINE.
51489         Reported by Derek Robert Price <derek@ximbiot.com>.
51490
51491 2004-02-16  Karl Berry  <karl@gnu.org>
51492
51493         * config/mkinstalldirs, install-sh: update from automake.
51494
51495 2004-02-06  Karl Berry  <karl@gnu.org>
51496
51497         * m4/po.m4: update from gettext 0.14.1.
51498
51499 2004-02-06  Karl Berry  <karl@gnu.org>
51500
51501         * lib/config.charset: update from gettext 0.14.1.
51502
51503 2004-02-05  Paul Eggert  <eggert@twinsun.com>
51504
51505         Add comments and code, prompted by suggestions from Bruno Haible
51506         for sh-quote.
51507         * lib/quotearg.h (quotearg_alloc): New decl.  Improve the comments
51508         describing the enum quoting_style values.
51509         * lib/quotearg.c (quotearg_alloc): New function.
51510         (quotearg_buffer_restyled): Treat lone { and } as special.
51511         Treat = as special.  Work around bug with older shells
51512         that "see" a '\' that is really the 2nd byte of a multibyte char.
51513         Quote empty string with shell_quoting_style.
51514
51515 2004-02-03  Bruno Haible  <bruno@clisp.org>
51516
51517         * m4/pipe.m4: New file, from GNU gettext.
51518
51519 2004-02-03  Bruno Haible  <bruno@clisp.org>
51520
51521         * lib/pipe.h: New file, from GNU gettext.
51522         * lib/pipe.c: New file, from GNU gettext.
51523
51524 2004-01-27  Bruno Haible  <bruno@clisp.org>
51525
51526         * m4/execute.m4: New file, from GNU gettext.
51527
51528 2004-01-27  Bruno Haible  <bruno@clisp.org>
51529
51530         * lib/execute.h: New file, from GNU gettext.
51531         * lib/execute.c: New file, from GNU gettext.
51532         * lib/w32spawn.h: New file, from GNU gettext.
51533
51534 2004-01-24  Paul Eggert  <eggert@twinsun.com>
51535
51536         Merge from diffutils.
51537
51538         * lib/file-type.c (file_type): Add typed memory objects.
51539         * lib/file-type.h (S_TYPEISTMO): New macro.
51540
51541         * lib/c-stack.h (c_stack_action): Remove argv argument.
51542         * lib/c-stack.c (c_stack_action): Likewise.  All uses changed.
51543         (die): Don't calculate message unless segv_action returns.
51544         (get_stack_location, min_address_from_argv, max_address_from_argv,
51545         volatile stack_base, volatile_stack_size): Remove.
51546         (segv_handler): If ! HAVE_XSI_STACK_OVERFLOW_HEURISTIC, assume
51547         that every segmentation violation is a stack overflow.  (Ouch!)
51548         See Debian bug 136249 (still outstanding) for more info about why
51549         HAVE_XSI_STACK_OVERFLOW_HEURISTIC fails on Linux kernels.
51550
51551 2004-01-24  Paul Eggert  <eggert@twinsun.com>
51552
51553         Exit-status fix from coreutils.
51554
51555         Use exit_failure consistently in place of EXIT_FAILURE,
51556         so that program exit statuses are consistent on failure.
51557
51558         * lib/argmatch.c (ARGMATCH_DIE) [! defined ARGMATCH_DIE]:
51559         Include "exitfail.h", and use exit_failure rather than EXIT_FAILURE.
51560         * lib/argmatch.h: Comment fix to match the above.
51561         * lib/obstack.c (obstack_exit_failure) [!defined _LIBC]:
51562         Now a macro referring to exit_failure, instead of a separate
51563         variable.  Include "exitfail.h" to get it.
51564         * lib/xstrtol.h: Include "exitfail.h".
51565         (STRTOL_FATAL_ERROR): Exit with status exit_failure, not 2.
51566
51567         * lib/long-options.c (parse_long_options): Use prototype
51568         for usage function arg.  Pass it EXIT_SUCCESS rather than 0,
51569         for clarity.
51570
51571 2004-01-21  Jim Meyering  <jim@meyering.net>
51572
51573         * lib/mktime.c (__mktime_internal) [!_LIBC]: Define to mktime_internal
51574         so as not to conflict with a different-sized __mktime_internal
51575         function in GNU libc.
51576         * lib/timegm.c (__mktime_internal) [!_LIBC]: Likewise.
51577         Problem building statically-linked `ls' reported by Michael Brunnbauer.
51578
51579 2004-01-20  Karl Berry  <karl@gnu.org>
51580
51581         * config/config.guess: update from config.
51582
51583         * config/srclistvars.sh: GNUWWWLICENSES for karl.
51584
51585 2004-01-20  Bruno Haible  <bruno@clisp.org>
51586
51587         Safer stack allocation.
51588         * lib/setenv.c: Include allocsa.h.
51589         (alloca): Remove fallback definition.
51590         (freea): Remove macro.
51591         (__add_to_environ) [!_LIBC]: Use allocsa instead of alloca. Use freesa
51592         instead of freea.
51593
51594 2004-01-20  Bruno Haible  <bruno@clisp.org>
51595
51596         * m4/eealloc.m4: New file, from GNU gettext.
51597
51598 2004-01-20  Bruno Haible  <bruno@clisp.org>
51599
51600         * m4/allocsa.m4: New file, from GNU gettext.
51601
51602 2004-01-20  Bruno Haible  <bruno@clisp.org>
51603
51604         * lib/xallocsa.h: New file, from GNU gettext.
51605         * lib/xallocsa.c: New file, from GNU gettext.
51606
51607 2004-01-20  Bruno Haible  <bruno@clisp.org>
51608
51609         * lib/wait-process.c: On Windows, include windows.h. Needed on mingw.
51610
51611 2004-01-20  Bruno Haible  <bruno@clisp.org>
51612
51613         * lib/wait-process.c (wait_subprocess): Add ignore_sigpipe argument.
51614         * lib/wait-process.c (wait_subprocess): Likewise. Handle SIGPIPE
51615         specially.
51616
51617 2004-01-20  Bruno Haible  <bruno@clisp.org>
51618
51619         * lib/wait-process.c (wait_process): Disable the 2003-10-31 waitid()
51620         patch.
51621
51622 2004-01-20  Bruno Haible  <bruno@clisp.org>
51623
51624         * lib/wait-process.c (cleanup_slaves): Use ANSI C declaration.
51625
51626 2004-01-20  Bruno Haible  <bruno@clisp.org>
51627
51628         * lib/eealloc.h: New file.
51629
51630 2004-01-20  Bruno Haible  <bruno@clisp.org>
51631
51632         * lib/binary-io.h: Avoid warnings on Cygwin.
51633
51634 2004-01-20  Bruno Haible  <bruno@clisp.org>
51635
51636         * lib/allocsa.h: New file, from GNU gettext.
51637         * lib/allocsa.c: New file, from GNU gettext.
51638
51639 2004-01-18  Karl Berry  <karl@gnu.org>
51640
51641         * doc/gpl.texi, doc/lgpl.texi: new files.
51642
51643 2004-01-18  Karl Berry  <karl@gnu.org>
51644
51645         * config/srclistvars.sh (GNUWWWLICENSES): new variable.
51646         * config/srclist.txt ({fdl,gpl,lgpl}.text): get from there.
51647
51648 2004-01-15  Paul Eggert  <eggert@twinsun.com>
51649
51650         Merge from coreutils.
51651
51652         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Check for uintptr_t.
51653         * m4/posixver.m4 (gl_POSIXVER): Require gl_DEFAULT_POSIX2_VERSION.
51654         (gl_DEFAULT_POSIX2_VERSION): Move
51655         the documentation from 'configure' into 'config.hin',
51656         so that 'configure --help' isn't burdened by it and
51657         we don't have to worry about its formatting there.
51658         Reword the documentation so that it's more succinct
51659         and can be run together into a single paragraph.
51660         * m4/same.m4 (gl_SAME): Check for pathconf.
51661
51662 2004-01-15  Paul Eggert  <eggert@twinsun.com>
51663
51664         Merge from coreutils.
51665
51666         * lib/posixver.c: Include posixver.h.
51667
51668         * lib/same.c: Include <stdbool.h>, <limits.h>.
51669         (_POSIX_NAME_MAX): Define if not defined.
51670         (MIN): New macro.
51671         (same_name): If file names are silently truncated, report
51672         that the file names are the same if they are the same after
51673         the silent truncation.
51674
51675         * lib/xstrtod.h (xstrtod): Accept an extra arg, specifying the
51676         conversion function.
51677         * lib/xstrtod.c (xstrtod): Likewise.  All callers changed to
51678         include c-strtod.h and use c_strtod.  Don't include stdlib.h; no
51679         longer needed.
51680
51681 2004-01-15  Jim Meyering  <jim@meyering.net>
51682
51683         Merge from coreutils.
51684
51685         * m4/clock_time.m4 (gl_CLOCK_TIME): Don't set LIB_CLOCK_GETTIME
51686         if no library is required.
51687         * m4/jm-macros.m4: Don't require UTILS_SYS_OPEN_MAX.
51688         * m4/jm-macros.m4 (jm_MACROS): Require gl_FUNC_FREE.
51689         * m4/jm-macros.m4 (jm_MACROS): Require autoconf-2.58.
51690         (AC_LANG_SOURCE): Remove definition, now that we require autoconf-2.58.
51691         * m4/jm-macros.m4 (jm_MACROS): Don't require AC_FUNC_FTW.
51692         * m4/lib-check.m4 (jm_LIB_CHECK): Do not set LIB_CRYPT to the
51693         value, $ac_cv_search_crypt, if it's "none required".
51694         * m4/posixver.m4 (gl_DEFAULT_POSIX2_VERSION): New macro.
51695         * m4/prereq.m4 (jm_PREREQ): Require AC_FUNC_GETLOADAVG,
51696         not gl_FUNC_GETLOADAVG.
51697         * m4/prereq.m4 (jm_PREREQ): Require gl_READTOKENS, gl_MD5, gl_MAKEPATH,
51698         gl_LONG_OPTIONS, and gl_IDCACHE, gl_GETUGROUPS.
51699
51700 2004-01-15  Jim Meyering  <jim@meyering.net>
51701
51702         Merge from coreutils.
51703
51704         * lib/md5.h (rol) [__GNUC__ && __i386__]: Don't use `asm' code.  These
51705         days, gcc-3.x does better all by itself.  Patch from Dean Gaudet:
51706         http://mail.gnu.org/archive/html/bug-coreutils/2003-11/msg00144.html
51707
51708         * lib/posixver.c (DEFAULT_POSIX2_VERSION): Use definition of new,
51709         optional configure-time default.
51710
51711         * lib/version-etc.c (version_etc_copyright): Update copyright date.
51712
51713         * lib/xreadlink.c (xreadlink): Correct outdated comment.
51714
51715 2004-01-15  Alexandre Duret-Lutz  <adl@gnu.org>
51716
51717         Merge from coreutils.
51718
51719         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): Do not set LIB_NANOSLEEP to the
51720         value, $ac_cv_search_nanosleep, if it's "none required".
51721
51722 2004-01-14  Paul Eggert  <eggert@twinsun.com>
51723
51724         * lib/fnmatch_loop.c (ALLOCA_LIMIT): Remove macro, which collided
51725         with like-named macro in fnmatch.c.
51726         (EXT): Use an internal constant instead.
51727
51728         Merge fnmatch patches from glibc.
51729         * lib/fnmatch.c (mbsinit): Remove define.
51730         Add libc_hidden_ver (__fnmatch, fnmatch).
51731         * lib/fnmatch_loop.c (FCT): Cast to int32_t and UCHAR when appropriate.
51732         Adjust to renaming of collseq_table_lookup to __collseq_table_lookup.
51733
51734 2004-01-14  Karl Berry  <karl@gnu.org>
51735
51736         * config/install-sh: update from automake.
51737
51738 2004-01-13  Karl Berry  <karl@gnu.org>
51739
51740         * config/install-sh: update from automake.
51741
51742 2004-01-09  Karl Berry  <karl@gnu.org>
51743
51744         * config/install-sh: update from automake.
51745
51746 2004-01-05  Karl Berry  <karl@gnu.org>
51747
51748         * config/config.{sub,guess}: update from config.
51749
51750 2003-12-31  Karl Berry  <karl@gnu.org>
51751
51752         * config/depcomp: update from automake.
51753
51754 2003-12-14  Karl Berry  <karl@gnu.org>
51755
51756         * lib/config.charset: update from gettext-runtime.
51757
51758 2003-12-03  Paul Eggert  <eggert@twinsun.com>
51759
51760         * lib/getgroups.c (getgroups): xmalloc takes one argument, not two.
51761         Bug reported by Alfred M. Szmidt.
51762
51763 2003-12-03  Bruno Haible  <bruno@clisp.org>
51764
51765         * m4/gettext.m4: Upgrade from gettext-0.13.
51766         * m4/po.m4: Upgrade from gettext-0.13.
51767         * m4/size_max.m4 (gl_SIZE_MAX): Don't use the _ONCE macros here.
51768         * m4/intmax.m4: New file, from gettext-0.13.
51769         * m4/printf-posix.m4: New file, from gettext-0.13.
51770
51771 2003-11-29  Karl Berry  <karl@gnu.org>
51772
51773         * lib/argp-{help.c,parse.c,namefrob.h}, argp.h: update from libc.
51774
51775 2003-11-25  Paul Eggert  <eggert@twinsun.com>
51776             Bruno Haible  <bruno@clisp.org>
51777
51778         * lib/printf-parse.h: Don't include sys/types.h.
51779         (ARG_NONE): New macro.
51780         (char_directive): Change type of *arg_index fields to size_t.
51781         * lib/printf-parse.c: Don't include sys/types.h.
51782         (SSIZE_MAX): Remove macro.
51783         (PRINTF_PARSE): Change the type of the arg_index variables to size_t.
51784         Remove unnecessary overflow check.
51785         * lib/vasnprintf.c (VASNPRINTF): Update for type change of *arg_index
51786         fields.
51787
51788 2003-11-25  Bruno Haible  <bruno@clisp.org>
51789
51790         * modules/vasnprintf (Files): Remove m4/ssize_t.m4.
51791
51792 2003-11-25  Bruno Haible  <bruno@clisp.org>
51793
51794         * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_PARSE): Don't require
51795         gt_TYPE_SSIZE_T.
51796
51797 2003-11-24  Paul Eggert  <eggert@twinsun.com>
51798
51799         * modules/alloca: Remove dependency on xalloc.
51800
51801 2003-11-24  Paul Eggert  <eggert@twinsun.com>
51802
51803         * lib/alloca.c: Remove dependency on xalloc module.
51804         (xalloc_die): Remove.
51805         (memory_full) [!defined emacs]: New macro.
51806         [!defined emacs]: Don't include xalloc.h.
51807         (alloca): Invoke memory_full, not xalloc_die, if malloc fails or
51808         address arithmetic overflows.  Change datatypes a bit to avoid
51809         unnecessary casts.
51810
51811 2003-11-22  Jim Meyering  <jim@meyering.net>
51812
51813         * lib/xmalloc.c (x2nrealloc_inline): Fix typos in comments:
51814         s/size/size_t/.
51815
51816 2003-11-21  Karl Berry  <karl@gnu.org>
51817
51818         * config/config.{sub,guess}: update from config.
51819
51820 2003-11-18  Karl Berry  <karl@gnu.org>
51821
51822         * config/config.{sub,guess}: update from config.
51823
51824         * config/(printf-{parse,args}.[ch]): sync broken, sigh.
51825
51826 2003-11-17  Paul Eggert  <eggert@twinsun.com>
51827
51828         * README: Mention that S+T cannot overflow if S is the size of
51829         an existing object and T is sufficiently small.
51830
51831 2003-11-17  Jim Meyering  <jim@meyering.net>
51832
51833         On systems without utime and without a utimes function capable of
51834         dealing with a NULL struct utimbuf* argument, this utime replacement
51835         could -- in unusual circumstances -- leak a file descriptor.
51836         * lib/utime.c: Include <unistd.h> and <errno.h>.
51837         (utime_null): Be sure to close `fd' and to preserve errno.
51838         Reported by Geoff Collyer via Arnold Robbins.
51839
51840 2003-11-17  Bruno Haible  <bruno@clisp.org>
51841
51842         * modules/vasnprintf (Files): Add m4/ssize_t.m4.
51843         (Depends-on): Add xsize.
51844
51845 2003-11-17  Bruno Haible  <bruno@clisp.org>
51846
51847         * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_PARSE): Require gt_TYPE_SSIZE_T.
51848
51849 2003-11-17  Bruno Haible  <bruno@clisp.org>
51850
51851         * lib/vasnprintf.c (alloca): Remove fallback definition.
51852         (freea): Remove definition.
51853         (VASNPRINTF): Use alloca only for small sizes, say <= 4000 bytes.
51854         Reported by Paul Eggert.
51855
51856 2003-11-16  Paul Eggert  <eggert@twinsun.com>
51857             Bruno Haible  <bruno@clisp.org>
51858
51859         Protect against address arithmetic overflow.
51860         * lib/printf-args.h: Include stddef.h.
51861         (arguments): Change type of field 'count' to size_t.
51862         * lib/printf-args.c (printf_fetchargs): Use size_t instead of
51863         'unsigned int' where appropriate.
51864         * lib/printf-parse.h: Include sys/types.h.
51865         (char_directive): Change type of *arg_index fields to ssize_t.
51866         (char_directives): Change type of fields 'count', max_*_length to
51867         size_t.
51868         * lib/printf-parse.c: Include sys/types.h and xsize.h.
51869         (SSIZE_MAX): Define fallback value.
51870         (PRINTF_PARSE): Use size_t instead of 'unsigned int' and ssize_t
51871         instead of 'int' where appropriate. Check a_allocated, d_allocated
51872         against overflow. Reject %m$ argument numbers > SSIZE_MAX + 1.
51873         * lib/vasnprintf.c: Include xsize.h.
51874         (VASNPRINTF): Use size_t instead of 'unsigned int' where appropriate.
51875         Check alloca, malloc, realloc, ENSURE_ALLOCATION arguments against
51876         overflow. Avoid wraparound when converting a width or precision from
51877         decimal to binary.
51878
51879 2003-11-16  Bruno Haible  <bruno@clisp.org>
51880
51881         Update from GNU gettext.
51882         * lib/printf-parse.c: Generalize to it can be compiled for wide
51883         strings.
51884         (PRINTF_PARSE, CHAR_T, DIRECTIVE, DIRECTIVES): New macros.
51885         * lib/vasnprintf.c: Generalize to it can be compiled for wide strings.
51886         (VASNPRINTF, CHAR_T, DIRECTIVE, DIRECTIVES, PRINTF_PARSE, USE_SNPRINTF,
51887         SNPRINTF): New macros.
51888         Don't include <alloca.h> if the file is used inside libintl.
51889         (local_wcslen): New function, for Solaris 2.5.1.
51890         (VASNPRINTF): Use it instead of wcslen.
51891
51892 2003-11-16  Bruno Haible  <bruno@clisp.org>
51893
51894         * lib/xsize.h (xmax): New function.
51895         (xsum, xsum3, xsum4): Declare as "pure" functions.
51896
51897 2003-11-12  Paul Eggert  <eggert@twinsun.com>
51898
51899         * modules/xalloc (Files): Undo latest change, since xalloc.h
51900         no longer needs SIZE_MAX or PTRDIFF_MAX.
51901
51902 2003-11-12  Paul Eggert  <eggert@twinsun.com>
51903
51904         * m4/xalloc.m4 (gl_PREREQ_XALLOC): Do not require gl_SIZE_MAX or
51905         gl_PTRDIFF_MAX.
51906
51907 2003-11-12  Paul Eggert  <eggert@twinsun.com>
51908
51909         * lib/xstrtol.c (__xstrtol): Remove "break" immediately after
51910         "return", to pacify some unknown compiler.  Problem reported
51911         by Joerg Schilling.
51912
51913 2003-11-12  Paul Eggert  <eggert@twinsun.com>
51914
51915         * lib/xalloc.h: Do not include <limits.h> or <stdint.h>.
51916         (xalloc_oversized): Use sizeof (ptrdiff_t) and sizeof (size_t) for
51917         the heuristic, rather than PTRDIFF_MAX and SIZE_MAX.  This
51918         heuristic is just as accurate as far as we know, and it removes a
51919         dependency on size_max.m4 and ptrdiff_max.m4.
51920
51921 2003-11-11  Bruno Haible  <bruno@clisp.org>
51922
51923         * modules/xsize (Files): Add m4/size_max.m4.
51924         * modules/xalloc (Files): Add m4/size_max.m4, m4/ptrdiff_max.m4.
51925
51926 2003-11-11  Bruno Haible  <bruno@clisp.org>
51927
51928         * m4/size_max.m4: New file.
51929         * m4/ptrdiff_max.m4: New file.
51930         * m4/xsize,m4 (gl_XSIZE): Require gl_SIZE_MAX.
51931         * m4/xalloc.m4 (gl_PREREQ_XALLOC): New macro.
51932         (gl_XALLOC): Invoke it.
51933
51934 2003-11-11  Bruno Haible  <bruno@clisp.org>
51935
51936         * lib/xsize.h (SIZE_MAX): Remove fallback definition.
51937         * lib/xalloc.h: Include limits.h. Assume SIZE_MAX and PTRDIFF_MAX are
51938         defined.
51939
51940 2003-11-10  Paul Eggert  <eggert@twinsun.com>
51941
51942         * lib/xalloc.h (xalloc_oversized): [! (defined PTRDIFF_MAX &&
51943         PTRDIFF_MAX < SIZE_MAX)]: Fix off-by-one error that would have
51944         rejected some allocations of exactly SIZE_MAX - 2 bytes.
51945         From Bruno Haible.
51946         [defined PTRDIFF_MAX && PTRDIFF_MAX < SIZE_MAX]: Use SIZE_MAX,
51947         not (size_t) -1, since it's defined here.
51948
51949 2003-11-09  Karl Berry  <karl@gnu.org>
51950
51951         * config/mkinstalldirs, depcomp, mdate-sh: update from automake.
51952
51953 2003-11-06  Paul Eggert  <eggert@twinsun.com>
51954
51955         * lib/xalloc.h [HAVE_STDINT_H]: Include <stdint.h>.
51956         (xalloc_oversized) [! (PTRDIFF_MAX < SIZE_MAX)]:
51957         Reject sizes of exactly SIZE_MAX bytes.
51958         * lib/xreadlink.c: Include "xalloc.h" before checking whether SIZE_MAX
51959         is defined, since "xalloc.h" now defines SIZE_MAX on modern hosts.
51960
51961 2003-11-05  Bruno Haible  <bruno@clisp.org>
51962
51963         * lib/xsize.h: Include limits.h, to avoid a possible collision with
51964         SIZE_MAX defined in <limits.h> on Solaris.
51965
51966 2003-11-04  Jim Meyering  <jim@meyering.net>
51967
51968         * modules/sysexits: Use the `$(VAR)' notation for AC_SUBST'd
51969         variable names, rather than @VAR@.
51970         * modules/poll: Likewise.
51971
51972 2003-11-04  Bruno Haible  <bruno@clisp.org>
51973
51974         * modules/xsize: New file.
51975         * modules/linebreak: Depend on xsize.
51976         * MODULES.html.sh (func_all_modules): Add xsize.
51977
51978 2003-11-04  Bruno Haible  <bruno@clisp.org>
51979
51980         * m4/xsize.m4: New file.
51981
51982 2003-11-04  Bruno Haible  <bruno@clisp.org>
51983
51984         * lib/xsize.h: New file.
51985         * lib/linebreak.c: Include xsize.h.
51986         (mbs_possible_linebreaks, mbs_width_linebreaks): Check malloc()
51987         argument for overflow.
51988         Suggested by Paul Eggert.
51989
51990 2003-11-03  Karl Berry  <karl@gnu.org>
51991
51992         * config/config.{guess,sub}: update from config.
51993
51994 2003-11-03  Jim Meyering  <jim@meyering.net>
51995
51996         * modules/userspec (lib_SOURCES): Add userspec.h.
51997         (Include): Add "userspec.h".
51998         Improve description.
51999
52000 2003-11-03  Jim Meyering  <jim@meyering.net>
52001
52002         * lib/userspec.c: Include "userspec.h".
52003         * lib/userspec.h: New file.
52004
52005 2003-11-03  Bruno Haible  <bruno@clisp.org>
52006
52007         * m4/wait-process.m4 (gl_WAIT_PROCESS): Also check for waitid.
52008
52009 2003-11-03  Bruno Haible  <bruno@clisp.org>
52010
52011         * lib/wait-process.c (wait_process): Use waitid with WNOWAIT if
52012         available, to avoid (extremely rare) race condition.
52013         Suggested by Paul Eggert.
52014
52015 2003-11-02  Karl Berry  <karl@gnu.org>
52016
52017         * config/srclist.txt (vasprintf.c): sync broken, sigh.
52018
52019 2003-10-31  Paul Eggert  <eggert@twinsun.com>
52020
52021         * lib/mountlist.h (struct mount_entry.me_type_malloced): New member.
52022         * lib/mountlist.c (SIZE_MAX): Define if not defined already.
52023         (read_filesystem_list): Set and use me_type_malloced.
52024         Use "sizeof *me" rather than "sizeof (struct mount_entry)" (or
52025         whatever the type happens to be), for brevity and consistency.
52026         Check for size calculation overflow on Alphas running OSF/1.
52027
52028 2003-10-31  Jim Meyering  <jim@meyering.net>
52029
52030         * lib/hash.c: Include "xalloc.h" for use of xalloc_oversized.
52031
52032         * lib/linebuffer.c: Include <string.h> for declaration of memset.
52033
52034 2003-10-30  Paul Eggert  <eggert@twinsun.com>
52035             Bruno Haible  <bruno@clisp.org>
52036
52037         * lib/vasprintf.c: Include <limits.h>, <stdlib.h>.
52038         (vasprintf): Fail if the resulting length doesn't fit in an 'int'.
52039
52040 2003-10-30  Paul Eggert  <eggert@cs.ucla.edu>
52041
52042         * m4/host-os.m4 (UTILS_HOST_OS): Change netbsd*-gnu pattern back to
52043         netbsd*-gnu*.  Suggested by Robert Millan.
52044
52045 2003-10-29  Paul Eggert  <eggert@twinsun.com>
52046
52047         * modules/group-member: Depend on stdbool.
52048
52049 2003-10-29  Paul Eggert  <eggert@twinsun.com>
52050
52051         * m4/xalloc.m4 (gl_XALLOC): Undo previous change.
52052
52053 2003-10-29  Paul Eggert  <eggert@twinsun.com>
52054
52055         * m4/host-os.m4 (UTILS_HOST_OS): Resurrect netbsd*-gnu.  Add comments
52056         to it, and to knetbsd*-gnu and kfreebsd*-gnu.  Remove the '*' from
52057         after the 'gnu' in these cases.  This fixes some bugs in the
52058         previous change, and is based on suggestions by Robert Millan.
52059
52060 2003-10-29  Paul Eggert  <eggert@twinsun.com>
52061
52062         * lib/xalloc.h (xalloc_oversized): Now a macro, not a function,
52063         so that it works even if SIZE_MAX < N.  Do not include <stdbool.h>;
52064         no longer needed.
52065         * lib/quotearg.c (quotearg_n_options): Use it.
52066         * lib/group-member.c: Include <stdbool.h>.
52067         (free_group_info): Arg is now const *; don't free arg.
52068         (get_group_info): Now returns bool and accepts struct group_info *,
52069         rather than returning a malloc'ed struct group_info *.
52070         All uses changed.  Check for overflow in internal size calculation.
52071
52072         * lib/getusershell.c (readname): Simplify the code by using x2nrealloc
52073         rather than xmalloc/xrealloc.
52074         * lib/linebuffer.c (initbuffer, readlinebuffer): Simplify the code by
52075         using x2realloc rather than xmalloc/xrealloc.  Also, fix a C
52076         conformance bug: the old code used a pointer after freeing the
52077         storage that it addressed.
52078         * lib/hash.c (hash_initialize): Simplify the code by using
52079         xalloc_oversized rather than doing it by hand.
52080         * lib/getgroups.c (getgroups): Don't use xrealloc, since we don't need
52081         the buffer preserved.  Use free and xmalloc instead.
52082         * lib/quotearg.c (quotearg_n_options): Likewise.
52083         Use a simpler test for size overflow.  Don't use xalloc_oversized
52084         because unsigned int might be wider than size_t (!); this suggests
52085         that we should switch from unsigned int to size_t for slot numbers.
52086
52087 2003-10-28  Paul Eggert  <eggert@twinsun.com>
52088
52089         * m4/host-os.m4 (UTILS_HOST_OS): Identify GNU/KFreeBSD and
52090         GNU/KNetBSD.  These implementations use glibc atop the FreeBSD and
52091         NetBSD kernels.  Requested by Richard Stallman.
52092
52093 2003-10-27  Paul Eggert  <eggert@twinsun.com>
52094
52095         * lib/exclude.c (new_exclude): Use xzalloc rather than xmalloc
52096         to allocate the returned structure.  Do not allocate a subarray,
52097         as x2nrealloc will do that.
52098         (add_exclude): Use x2nrealloc to reallocate ex->exclude,
52099         instead of xnrealloc.
52100         (add_exclude_file): Use x2realloc instead of malloc + xnrealloc.
52101
52102 2003-10-27  Bruno Haible  <bruno@clisp.org>
52103
52104         * lib/stdbool_.h: Better support for BeOS.
52105
52106 2003-10-26  Paul Eggert  <eggert@twinsun.com>
52107
52108         * m4/xalloc.m4 (gl_XALLOC): Requore AC_C_INLINE, since xalloc.h
52109         now uses inline.
52110
52111 2003-10-26  Paul Eggert  <eggert@twinsun.com>
52112
52113         * lib/xalloc.h (xalloc_oversized): New static inline function, for
52114         callers that want to do their own size-overflow checking.  Include
52115         <stdbool.h>, since xalloc_oversized returns bool.
52116         * lib/xalloc.c (array_size_overflow): Remove.  All callers changed
52117         to use xalloc_oversized.
52118
52119         Add two functions x2realloc, x2nrealloc, for programs that grow
52120         arrays dynamically by doubling their sizes.
52121         * lib/xalloc.h (x2realloc, x2nrealloc): New decls.
52122         * lib/xmalloc.c (x2nrealloc_inline, x2nrealloc, x2realloc):
52123         New functions.
52124
52125         Port to C99 semantics for 'inline' of external functions.
52126         Bug reported by Bruno Haible.
52127         * lib/xmalloc.c (xnmalloc_inline): New static inline function,
52128         with the old contents of xnmalloc.
52129         (xnmalloc, xmalloc): Use it.
52130         (xnrealloc_inline): New static inline function,
52131         with the old contents of xnrealloc.
52132         (xnrealloc, xrealloc): Use it.
52133
52134         * lib/alloc.c (alloca): xmalloc cannot return NULL, so don't test for
52135         that.
52136
52137 2003-10-26  Karl Berry  <karl@gnu.org>
52138
52139         * config/srclist.txt (COPYING.DOC): no longer available from
52140         /gd/gnuorg; don't know where the ultimate source is.
52141
52142 2003-10-25  Paul Eggert  <eggert@twinsun.com>
52143
52144         Fix several address-calculation bugs in the hash modules,
52145         plus some minor code cleanup.
52146
52147         * lib/hash.h: Include <stdbool.h>, for bool.
52148         * lib/hash.c: Don't include <stdbool.h>, since hash.h does it now.
52149         * lib/hash.h (Hash_hasher, hash_get_n_buckets, hash_get_n_buckets_used,
52150         hash_get_n_entries, hash_get_max_bucket_length,
52151         hash_get_entries, hash_do_for_each, hash_string, hash_initialize,
52152         hash_rehash): Use size_t rather than unsigned.
52153         * lib/hash.c (struct hash_table, hash_get_n_buckets,
52154         hash_get_n_buckets_used, hash_get_n_entries,
52155         hash_get_max_bucket_length, hash_table_ok, hash_print_statistics,
52156         hash_get_entries, hash_do_for_each, hash_string, is_prime,
52157         next_prime, hash_initialize, hash_rehash, hash_delete, hash_print):
52158         Likewise.
52159         (SIZE_MAX): Define if not defined.
52160         (hash_get_max_bucket_length, hash_table_ok, hash_lookup,
52161         hash_get_first, hash_get_next, hash_get_entries, hash_do_for_each,
52162         hash_print):
52163         Use const * when possible.
52164         (hash_string): Use (unsigned char) *P rather than *(unsigned char *) P.
52165         (check_tuning): Fix bug: if tuning parameters were very close to
52166         0 or 1, rounding errors could have caused subscript violations.
52167         (hash_initialize, allocate_entry, hash_print): Remove unnecessary cast.
52168         (hash_initialize): Add 'fail:' label
52169         to free table and return NULL, and use it to simplify code.
52170         Use calloc rather than clearing the storage ourself.
52171         (hash_initialize, hash_rehash): Check for arithmetic overflow in
52172         buffer size calculations.
52173         * lib/hash-pjw.h (hash_pjw): Use size_t, not unsigned.
52174         Include <stddef.h>, for size_t.
52175         * lib/hash-pjw.c (hash_pjw): Likewise.
52176         Switch to method described by Bruno Haible.
52177         Include <limits.h>, for CHAR_BIT.
52178         (SIZE_BITS): New macro.
52179
52180 2003-10-23  Paul Eggert  <eggert@twinsun.com>
52181
52182         * m4/getline.m4 (AM_FUNC_GETLINE):
52183         Don't include getndelim2.o twice into LIBOBJS; this breaks on some
52184         hosts.  Problem reported by Derek Robert Price in
52185         <http://mail.gnu.org/archive/html/bug-gnulib/2003-10/msg00092.html>.
52186         This patch can be withdrawn after Autoconf 2.58 is required for gnulib.
52187         * m4/getndelim2.m4 (gl_GETNDELIM2): Likewise.
52188
52189 2003-10-21  Paul Eggert  <eggert@twinsun.com>
52190
52191         * lib/getndelim2.c (getndelim2): When size calculation overflows,
52192         ceiling the allocation at NMAX bytes rather than silently
52193         discarding input bytes before NMAX is reached.  This makes
52194         a difference only if NMAX exceeds SIZE_MAX / 2.
52195
52196         * lib/obstack.c: Merge from glibc.
52197         [defined _LIBC]: Include <obstack.h>, not "obstack.h".
52198         Add libc_hidden_def (_obstack_newchunk).
52199         (_obstack_free) [! defined _LIBC]: Remove.
52200         [defined _LIBC]: Make a strong alias from obstack_free, rather than
52201         a clone of the function body.
52202         (fputs) [defined _LIBC && defined USE_IN_LIBIO]: Remove.
52203         [defined _LIBC && !defined USE_IN_LIBIO]: Include <libio/iolibio.h>.
52204
52205         * lib/obstack.h: Indenting cleanup, to make it easier to merge with
52206         glibc.
52207         (obstack_grow, obstack_grow0): Remove unnecessary parentheses around
52208         arg to memcpy.
52209
52210         * lib/obstack.h (obstack_1grow_fast): Properly parenthesize arg.
52211         (obstack_ptr_grow_fast, obstack_int_grow_fast):
52212         Don't use lvalue casts, as GCC plans to remove support for them
52213         in GCC 3.5.  Reported by Joseph S. Myers.  This bug
52214         was also present in the non-GCC version, indicating that this
52215         code had always been buggy and had never been widely used.
52216         (obstack_1grow, obstack_ptr_grow, obstack_int_grow, obstack_blank):
52217         Use the fast variant of each macro, rather than copying the
52218         definiens of the fast variant; that way, we'll be more likely to
52219         catch future bugs in the fast variants.
52220
52221 2003-10-20  Bruno Haible  <bruno@clisp.org>
52222
52223         * modules/wait-process: New file.
52224         * MODULES.html.sh (func_all_modules): Add wait-process.
52225
52226 2003-10-20  Bruno Haible  <bruno@clisp.org>
52227
52228         * m4/wait-process.m4: New file.
52229
52230 2003-10-20  Bruno Haible  <bruno@clisp.org>
52231
52232         * lib/wait-process.h: New file, from GNU gettext.
52233         * lib/wait-process.c: New file, from GNU gettext.
52234
52235 2003-10-19  Jim Meyering  <jim@meyering.net>
52236
52237         * lib/vasnprintf.c (vasnprintf): Work around losing snprintf on
52238         HPUX 10.20.
52239
52240 2003-10-18  Karl Berry  <karl@gnu.org>
52241
52242         * config/config.guess: update from config.
52243
52244 2003-10-16  Paul Eggert  <eggert@twinsun.com>
52245
52246         * lib/getgroups.c: Include <errno.h>, <stdlib.h>.
52247         (getgroups): First arg is int, not size_t.
52248         Don't let 'free' mangle errno.
52249
52250 2003-10-16  Paul Eggert  <eggert@twinsun.com>
52251
52252         * README: Mention that gnulib assumes that (foo *) NULL + 0 == NULL.
52253
52254 2003-10-16  Karl Berry  <karl@gnu.org>
52255
52256         * config/config.{guess,sub}: update from config.
52257
52258 2003-10-16  Jim Meyering  <jim@meyering.net>
52259
52260         * lib/xmalloc.c: Include <string.h>, for declarations of memset and
52261         memcpy.
52262
52263 2003-10-15  Paul Eggert  <eggert@twinsun.com>
52264
52265         * lib/exclude.c: Do not include <inttypes.h> or <stdint.h>.
52266         (SIZE_MAX): Remove.
52267         (new_exclude, add_exclude_file): Initial size no longer needs to
52268         be a power of 2.
52269         (add_exclude, add_exclude_file): Use xnrealloc instead of rolling
52270         our own address arithmetic overflow checking.
52271
52272         * lib/fnmatch.c (SIZE_MAX): Define if standard headers don't.
52273         (fnmatch): Do not alloca more than 2000 wide characters;
52274         instead, use malloc for large buffers.
52275         Check for address arithmetic overflow, and return -1
52276         with errno set to ENOMEM in that case.
52277         * lib/fnmatch_loop.c (ALLOCA_LIMIT): New macro.
52278         (NEW_PATTERN): Do not alloca more than 8000 bytes;
52279         instead, return -1.  Check for address arithmetic overflow.
52280
52281 2003-10-14  Paul Eggert  <eggert@twinsun.com>
52282
52283         Handle invalid suffixes and overflow independently, so that
52284         callers can treat them independently as needed.  Fix some bugs in
52285         suffix handling, e.g., "100k@" was not diagnosed as an invalid
52286         suffix for a human-readable blocksize.  The major caller-visible
52287         change is the addition of a new
52288         LONGINT_INVALID_SUFFIX_CHAR_WITH_OVERFLOW enum value, indicating
52289         that both overflow and suffix chars were found.
52290
52291         * lib/human.c (humblock): Don't check separately for invalid suffix
52292         char; that is xstrtoumax's job (now that its bug is fixed).
52293         * lib/xstrtoimax.c (STRTOL_T_MINIMUM, STRTOL_T_MAXIMUM) [defined
52294         INTMAX_MAX]: New macros.
52295         * lib/xstrtol.c (STRTOL_T_MINIMUM, STRTOL_T_MAXIMUM, TYPE_MINIMUM,
52296         TYPE_MAXIMUM): New macros.
52297         (bkm_scale, bkm_scale_by_power): Return strtol_error, not int.
52298         (bkm_scale, bkm_scale_by_power, __xstrtol): Return maximal values
52299         if overflow occurs, as it's what __strtol does and it's more useful
52300         in practice.
52301         (__xstrtol): If __strtol reports some error other than ERANGE,
52302         reflect it to the caller as LONGINT_INVALID.  If it reports
52303         ERANGE, continue the rest of parsing, and report LONGINT_OVERFLOW
52304         | LONGINT_INVALID_SUFFIX_CHAR if both errors occur.
52305         * lib/xstrtol.h (LONGINT_INVALID_SUFFIX_CHAR_WITH_OVERFLOW): New enum
52306         value.
52307         (_STRTOL_ERROR): Handle it.  Abort when given unknown error codes.
52308         * lib/xstrtoul.c (STRTOL_T_MINIMUM, STRTOL_T_MAXIMUM): New macros.
52309         * lib/xstrtoumax.c (STRTOL_T_MINIMUM, STRTOL_T_MAXIMUM)
52310         [defined UINTMAX_MAX]: New macros.
52311
52312 2003-10-14  Bruno Haible  <bruno@clisp.org>
52313
52314         * modules/fatal-signal: Add m4/sig_atomic_t.m4 to file list.
52315
52316 2003-10-14  Bruno Haible  <bruno@clisp.org>
52317
52318         * m4/sig_atomic_t: New file, from GNU gettext.
52319         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Require gt_TYPE_SIG_ATOMIC_T.
52320
52321 2003-10-14  Bruno Haible  <bruno@clisp.org>
52322
52323         * lib/fatal-signal.h: Improved comments. Suggested by Paul Eggert.
52324         * lib/fatal-signal.c: Use sig_atomic_t. Suggested by Paul Eggert.
52325         Also use volatile where needed.
52326
52327 2003-10-12  Paul Eggert  <eggert@twinsun.com>
52328
52329         * modules/xalloc: Do not depend on 'exit'.  Depend on 'stdbool'.
52330         Change maintainer from Bruno Haible to 'all'.
52331
52332 2003-10-12  Paul Eggert  <eggert@twinsun.com>
52333
52334         * m4/xalloc.m4 (gl_PREREQ_XMALLOC): Require AC_C_INLINE.
52335
52336 2003-10-12  Paul Eggert  <eggert@twinsun.com>
52337
52338         * lib/xalloc.h (xnmalloc, xzalloc, xnrealloc, xclone): New decls.
52339         (XMALLOC, XCALLOC, XREALLOC, XFREE, CCLONE, CLONE): Deprecate,
52340         and define in terms of the other primitives.
52341         * lib/xmalloc.c: Include stdbool.h; do not include exit.h.
52342         (SIZE_MAX): Define if not already defined.
52343         (array_size_overflow): New function.
52344         (xalloc_die): Abort instead of exiting if 'error' returns.
52345         (xnmalloc, xnrealloc, xzalloc, xclone): New functions.
52346         (xmalloc, xrealloc): Use them.
52347         (xcalloc): Check for address arithmetic overflow.
52348         * lib/xstrdup.c (xstrdup): Use xclone, since memcpy should be
52349         a bit faster than strcpy.
52350
52351 2003-10-10  Simon Josefsson  <jas@extundo.com>
52352
52353         * modules/argp (Depends-on): Add restrict and strcase.
52354
52355 2003-10-10  Simon Josefsson  <jas@extundo.com>
52356
52357         * m4/argp.m4: Add AC_C_INLINE.
52358
52359 2003-10-08  Paul Eggert  <eggert@twinsun.com>
52360
52361         Merge getpass from libc, plus a few fixes.
52362
52363         * lib/getpass.c (HAVE_STDIO_EXT) [_LIBC]: Define to 1.
52364         Include <stdbool.h>.
52365         Include <stdio_ext.h> if HAVE_STDIO_H, otherwise define
52366         __fsetlocking to empty.
52367         [_LIBC]: Do not include "getline.h" or "unlocked-io.h", but
52368         do include <bits/libc-lock.h>.
52369         Do not include <fcntl.h>; not needed.
52370         [_LIBC]: Include <wchar.h>.
52371         (NOTCANCEL_MODE): New macro.
52372         (flockfile, funlockfile) [_LIBC]: New macros.
52373         (__libc_cleanup_push, __libc_cleanup_pop, __getline, __tcgetattr)
52374         [!_LIBC]: New macros.
52375         (call_fclose): New function.
52376         (getpass): Use it.  Save tty stream separately; this simplifies the
52377         code and makes it more reliable if stdin happens to equal stdout.
52378         Invoke __fsetlocking on tty.
52379         Handle thread cancellation if needed.
52380         Namespace cleanup (use __tcgetattr, __getline).
52381         Use bool for Booleans.
52382         [USE_IN_LIBIO]: Handle wide streams.
52383         [!_LIBC]: Unconditionally do the fseek, since we don't know what
52384         stream might go where.
52385
52386         * lib/unlocked-io.h: Include <stdio.h>, so that the caller
52387         doesn't have to include <stdio.h> before us.
52388         (clearerr_unlocked, feof_unlocked, ferror_unlocked,
52389         fflush_unlocked, fgets_unlocked, fputc_unlocked, fputs_unlocked,
52390         fread_unlocked, fwrite_unlocked, getc_unlocked, getchar_unlocked,
52391         putc_unlocked, putchar_unlocked): Define to the unlocked counterpart
52392         if not declared, so that we can use getpass.c code from libc without
52393         rewriting it.
52394         (flockfile, ftrylockfile, funlockfile): New macros.
52395
52396 2003-10-08  Paul Eggert  <eggert@twinsun.com>
52397
52398         * modules/getpass: Depend on stdbool.
52399
52400 2003-10-08  Paul Eggert  <eggert@twinsun.com>
52401
52402         * m4/getpass.m4 (gl_PREREQ_GETPASS): Check for stdio_ext.h.
52403
52404 2003-10-07  Karl Berry  <karl@gnu.org>
52405
52406         * config/config.{guess,sub}: update from config.
52407
52408 2003-10-06  Jim Meyering  <jim@meyering.net>
52409             Bruno Haible  <bruno@clisp.org>
52410
52411         This lets translators provide better translations for the
52412         "Written by ..." part of --version output.
52413         * lib/version-etc.h: Include stdarg.h.
52414         (version_etc_copyright): Declare as readonly.
52415         (version_etc): Make this function variadic with a NULL-terminated list
52416         of author name strings.
52417         (version_etc_va): New declaration.
52418         * lib/version-etc.c: Include stdarg.h, stdlib.h.
52419         (version_etc_copyright): Declare as readonly.
52420         (version_etc_va): New function. Provide a different translatable string
52421         for each possible number of authors < 10. Abbreviate when there are 10
52422         authors or more.
52423         (version_etc): Make this function variadic. Call version_etc_va.
52424         Suggestion from Gary V. Vaughan.
52425
52426         * lib/long-options.h (parse_long_options): Change prototype: the
52427         authors string is moved to the end and becomes variadic.
52428         * lib/long-options.c: Include stdarg.h.
52429         (parse_long_options): Make this function variadic, too.
52430         Call version_etc_va, not version_etc.
52431
52432 2003-10-06  Bruno Haible  <bruno@clisp.org>
52433
52434         * modules/version-etc-2: Remove file.
52435         * MODULES.html.sh (func_all_modules): Remove version-etc-2.
52436
52437 2003-10-06  Bruno Haible  <bruno@clisp.org>
52438
52439         * modules/fatal-signal: New file.
52440         * MODULES.html.sh (func_all_modules): Add fatal-signal.
52441
52442 2003-10-06  Bruno Haible  <bruno@clisp.org>
52443
52444         * m4/fatal-signal.m4: New file.
52445         * m4/signalblocking.m4: New file, from GNU gettext.
52446
52447 2003-10-06  Bruno Haible  <bruno@clisp.org>
52448
52449         * lib/version-etc-2.h: Remove file.
52450         * lib/version-etc-2.c: Remove file.
52451
52452 2003-10-06  Bruno Haible  <bruno@clisp.org>
52453
52454         * lib/fatal-signal.h: New file, from GNU gettext.
52455         * lib/fatal-signal.c: New file, from GNU gettext.
52456
52457 2003-10-05  Paul Eggert  <eggert@twinsun.com>
52458
52459         * README: Rework advice for preventing empty .o files.
52460         Don't recommend ELIDE constructs.  Recommend <stddef.h>,
52461         not <sys/types.h>.
52462
52463 2003-10-04  Karl Berry  <karl@gnu.org>
52464
52465         * lib/argp*: update from libc.
52466
52467 2003-10-04  Karl Berry  <karl@gnu.org>
52468
52469         * config/config.{guess,sub}: update from config.
52470
52471 2003-10-02  Bruno Haible  <bruno@clisp.org>
52472
52473         * modules/lchown (Include): Add lchown.h.
52474         * modules/time_r (Include): Use "..." syntax.
52475         * modules/xgetdomainname (Include): Add xgetdomainname.h.
52476
52477 2003-10-01  Simon Josefsson  <jas@extundo.com>
52478
52479         * MODULES.html.sh (func_all_modules): Move gethostname from section
52480         'based on' to section 'lacking' POSIX:2001.
52481
52482 2003-10-01  Larry Jones  <lawrence.jones@eds.com>
52483
52484         * lib/getpass.c (getpass): Use a no-op fseek when switching from input
52485         to output mode on the same stream.
52486
52487 2003-09-29  Paul Eggert  <eggert@twinsun.com>
52488
52489         * lib/strftime.c (tm_diff) [! HAVE_TM_GMTOFF]:
52490         Fix arg typo in previous patch.
52491
52492 2003-09-28  Jim Meyering  <jim@meyering.net>
52493
52494         * lib/error.c: Correct cpp indentation.
52495
52496 2003-09-27  Paul Eggert  <eggert@twinsun.com>
52497
52498         * modules/free: New file.
52499
52500 2003-09-27  Paul Eggert  <eggert@twinsun.com>
52501
52502         * m4/free.m4: New file.
52503
52504 2003-09-27  Paul Eggert  <eggert@twinsun.com>
52505
52506         * lib/minmax.h (MIN, MAX)
52507         [__STDC__ && defined __GNUC__ && __GNUC__ >= 2]:
52508         Omit the special code that used __typeof__, since we worry that
52509         it could be more trouble than it's worth.  See:
52510         http://mail.gnu.org/archive/html/bug-gnulib/2003-01/msg00090.html
52511         http://mail.gnu.org/archive/html/bug-gnulib/2003-01/msg00095.html
52512
52513         * lib/free.c: New file.
52514
52515 2003-09-27  Oskar Liljeblad  <oskar@osk.mine.nu>
52516
52517         Trivial fixes to Makefile.am parts of module listings.
52518         * modules/strstr: Append strstr.h to lib_SOURCES.
52519         * modules/strcase: Likewise, for strcase.h.
52520
52521 2003-09-27  Karl Berry  <karl@gnu.org>
52522
52523         * config/mkinstalldirs: update from automake.
52524
52525 2003-09-26  Paul Eggert  <eggert@twinsun.com>
52526
52527         * lib/error.c (SIZE_MAX) [!defined SIZE_MAX]: Define.
52528         (error_tail): Do not loop, reallocating temporary buffer, since
52529         the output cannot contain more wide characters than the input
52530         contains bytes, the size must be big enough already.  This avoids
52531         one potential size overflow calculation.  Check for size overflow
52532         when calculating temporary buffer size.  Free temporary buffer
52533         when done, if it was allocated with malloc; this plugs a memory
52534         leak.  Remove casts from void * to pointers, that are no longer
52535         needed now that we're assuming C89 or better.
52536
52537         Merge error changes from glibc.
52538
52539         * lib/error.c, error.h: Update copyright notice header to match glibc.
52540         * lib/error.c [defined _LIBC]: Include <errno.h>, <bits/libc-lock.h>.
52541         (error, error_at_line) [defined _LIBC && defined __libc_ptf_call]:
52542         Disable cancellation while printing error.
52543         * lib/error.h: Prepend __ to parameter names.
52544
52545 2003-09-26  Jim Meyering  <jim@meyering.net>
52546
52547         * lib/error.c (error_tail): Move some declarations
52548         into inner scope where the local variables are used.
52549
52550 2003-09-26  Bruno Haible  <bruno@clisp.org>
52551
52552         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Add comments about the AIX
52553         stpncpy().
52554         Don't define stpncpy through config.h; it's now done through stpncpy.h.
52555
52556 2003-09-26  Bruno Haible  <bruno@clisp.org>
52557
52558         * lib/stpncpy.h (gnu_stpncpy): New declaration.
52559         (stpncpy): Define as alias for gnu_stpncpy.
52560         * lib/stpncpy.c [!_LIBC]: Define gnu_stpncpy, not stpncpy.
52561
52562 2003-09-25  Simon Josefsson  <jas@extundo.com>
52563
52564         * lib/xgetdomainname.h: New file.
52565         * lib/xgetdomainname.c: New file.
52566
52567 2003-09-25  Simon Josefsson  <jas@extundo.com>
52568             Bruno Haible  <bruno@clisp.org>
52569
52570         * modules/getdomainname: New file.
52571         * modules/xgetdomainname: New file.
52572         * MODULES.html.sh (func_all_modules): Add getdomainname,
52573         xgetdomainname.
52574
52575 2003-09-25  Simon Josefsson  <jas@extundo.com>
52576             Bruno Haible  <bruno@clisp.org>
52577
52578         * m4/getdomainname.m4: New file.
52579
52580 2003-09-25  Simon Josefsson  <jas@extundo.com>
52581             Bruno Haible  <bruno@clisp.org>
52582
52583         * lib/getdomainname.h: New file.
52584         * lib/getdomainname.c: New file.
52585
52586 2003-09-25  Karl Berry  <karl@gnu.org>
52587
52588         * lib/argp-fmtstream.c, argp-help.c: update from libc.
52589
52590 2003-09-25  Karl Berry  <karl@gnu.org>
52591
52592         * config/install-sh: update from automake.
52593
52594 2003-09-25  Bruno Haible  <bruno@clisp.org>
52595
52596         * modules/version-etc-2: New file, from modules/version-etc with
52597         modifications.
52598         * MODULES.html.sh (func_all_modules): Add version-etc-2.
52599
52600 2003-09-25  Bruno Haible  <bruno@clisp.org>
52601
52602         * lib/version-etc-2.h: New file, from version-etc.h with modifications.
52603         * lib/version-etc-2.c: New file, from version-etc.c with modifications.
52604
52605 2003-09-24  Simon Josefsson  <jas@extundo.com>
52606
52607         * modules/xgethostname: Add xgethostname.h.
52608
52609 2003-09-24  Paul Eggert  <eggert@twinsun.com>
52610
52611         * lib/linebuffer.c (freebuffer): Don't free the argument, just
52612         the buffer associated with the argument.  Bug reported by
52613         Simon Josefsson.
52614
52615 2003-09-24  Paul Eggert  <eggert@twinsun.com>
52616
52617         * README: Document assumptions that 'int' is at least 32 bits
52618         wide, that integer arithmetic is 2's complement without overflow,
52619         that there are no holes in integer values, that adding sizes of
52620         two nonoverlapping objects can't overflow, and that all-bits-zero
52621         yields scalar zero.  Fix spelling and capitalization typos.
52622
52623 2003-09-19  Karl Berry  <karl@gnu.org>
52624
52625         * lib/argp.h: update from libc.
52626
52627 2003-09-17  Paul Eggert  <eggert@twinsun.com>
52628
52629         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Call AC_BEFORE first,
52630         to avoid spurious warnings like "AC_RUN_IFELSE was called before
52631         gl_USE_SYSTEM_EXTENSIONS" from autoreconf.
52632
52633 2003-09-17  Paul Eggert  <eggert@twinsun.com>
52634
52635         * gnulib-tool: Use "test -h", not "test -L", for portability
52636         to Solaris 8 /bin/sh.  (This bug is fixed in Solaris 9.)
52637         (tags_regexp): Remove, since \| doesn't conform to POSIX.
52638         (sed_extract_prog): Issue s commands one-by-one, rather than
52639         using \| in one s command.
52640
52641 2003-09-16  Paul Eggert  <eggert@twinsun.com>
52642
52643         * lib/linebuffer.c (readlinebuffer): Return NULL immediately upon
52644         input error, instead of returning NULL the next time we are called
52645         (and therefore losing track of errno).
52646
52647 2003-09-16  Bruno Haible  <bruno@clisp.org>
52648
52649         * gnulib-tool (func_create_testdir): Warn about duplicated
52650         dependencies.
52651
52652 2003-09-15  Paul Eggert  <eggert@twinsun.com>
52653
52654         * modules/argmatch, modules/fatal, modules/obstack,
52655         modules/xalloc, modules/xgethostname: Sort dependencies by
52656         importance, not alphabetically.
52657
52658 2003-09-15  Paul Eggert  <eggert@twinsun.com>
52659
52660         * lib/getndelim2.c (getndelim2): Don't trash errno when a read
52661         fails, so that the caller gets the proper errno.
52662
52663         * lib/readutmp.c (read_utmp): Likewise.
52664         Check for fstat error.  Close stream and free storage
52665         when failing.
52666
52667 2003-09-14  Karl Berry  <karl@gnu.org>
52668
52669         * config/srclist.txt (strdup.c): disable for c89 changes.
52670
52671 2003-09-14  Jim Meyering  <jim@meyering.net>
52672
52673         * lib/getloadavg.c: Correct cpp indentation.
52674         * lib/strdup.c: Likewise.
52675         * lib/vasnprintf.c: Likewise.
52676
52677 2003-09-14  Bruno Haible  <bruno@clisp.org>
52678
52679         * modules/fwriteerror: New file.
52680         * MODULES.html.sh (func_all_modules): Add fwriteerror.
52681
52682 2003-09-14  Bruno Haible  <bruno@clisp.org>
52683
52684         * lib/fwriteerror.h: New file.
52685         * lib/fwriteerror.c: New file.
52686
52687 2003-09-12  Paul Eggert  <eggert@twinsun.com>
52688
52689         * modules/argmatch, modules/exitfail, modules/fatal, modules/obstack,
52690         modules/xgethostname, modules/xalloc: Depend on exit.
52691
52692 2003-09-12  Paul Eggert  <eggert@twinsun.com>
52693
52694         * m4/error.m4: Require AC_FUNC_STRERROR_R rather than invoking it.
52695
52696         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Require AC_AIX
52697         and AC_MINIX, too, so that their extensions are available.
52698
52699         * m4/prereq.m4 (jm_PREREQ_ADDEXT): Remove.  All uses removed.
52700         This macro has been superseded by gl_BACKUPFILE.
52701
52702         More patches to assume C89 or better.
52703
52704         * m4/error.m4 (gl_ERROR): Don't check for vprintf.
52705
52706         * m4/check-decl.m4 (jm_CHECK_DECLS): Include <string.h>, <stdlib.h>
52707         unconditionally.
52708         * m4/closeout.m4 (gl_CLOSEOUT): Don't check for stdlib.h.
52709         * m4/gettimeofday.m4 (AC_FUNC_GETTIMEOFDAY_CLOBBER):
52710         Include <string.h>, <stdlib.h> unconditionally.
52711         * m4/lstat.m4 (gl_PREREQ_LSTAT): Don't check for stdlib.h, free.
52712         * m4/readdir.m4 (GL_FUNC_READDIR): Don't check for string.h.
52713         * m4/readutmp.m4 (gl_PREREQ_READUTMP): Don't check for standard C
52714         headers or for string.h.
52715         * m4/strtoumax.m4 (gl_PREREQ_STRTOUMAX): Don't check for stdlib.h
52716         or strtoul.
52717
52718         * m4/mkstemp.m4 (jm_PREREQ_TEMPNAME): Do not require standard C
52719         headers.
52720         * m4/strdup.m4 (gl_PREREQ_STRDUP): Likewise.
52721         * m4/userspec.m4 (gl_USERSPEC): Likewise.
52722         * m4/xalloc.m4 (gl_PREREQ_XMALLOC): Likewise.
52723         * m4/xstrtod.m4 (gl_XSTRTOD): Likewise.
52724         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Likewise.
52725         * m4/strftime.m4 (_jm_STRFTIME_PREREQS): Don't check for limits.h,
52726         memcpy, memset.
52727         (jm_FUNC_GNU_STRFTIME): Don't require standard C headers.
52728         * m4/strtod.m4 (gl_FUNC_STRTOD): Do not check for float.h.
52729         * m4/strtoimax.m4 (gl_PREREQ_STRTOIMAX): Do not check for stdlib.h,
52730         strtol.
52731         * m4/strtol.m4 (gl_FUNC_STRTOL): Do not check for limits.h.
52732         * m4/userspec.m4 (gl_USERSPEC): Do not check for string.h.
52733         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Do not check for string.h, strtol,
52734         strtoul.
52735
52736 2003-09-12  Paul Eggert  <eggert@twinsun.com>
52737
52738         * lib/argmatch.c, fatal.c, xgethostname.c, xmalloc.c: Include exit.h.
52739         * lib/obstack.c [!defined _LIBC]: Likewise.
52740         * lib/argmatch.c (EXIT_FAILURE): Remove; now done by exit.h
52741         * lib/exitfail.c, fatal.c, xgethostname.c, xmalloc.c: Likewise.
52742         * lib/exitfail.c: Don't include stdlib.h; no longer needed.
52743
52744         More changes to assume C89 or better.
52745
52746         * lib/error.c (error_tail): Assume vprintf.
52747
52748         * lib/argmatch.c (getenv): Remove decl.
52749         * lib/progreloc.c (get_full_program_name): Define via prototype.
52750         * lib/setenv.c (clearenv): Likewise.
52751         * lib/stpncpy.c: Do not include <string.h> or <sys/types.h>; not
52752         needed.
52753         * lib/strdup.c: Include <stdlib.h>, <string.h> unconditionally.
52754         (malloc, memcpy): Remove decls.
52755         * lib/strftime.c (HAVE_LIMITS_H, STDC_HEADERS) [defined _LIBC]: Remove.
52756         (HAVE_MEMCPY) [defined emacs && !defined HAVE_BCOPY]: Remove.
52757         Include <limits.h>, <stddef.h>, <stdlib.h>, <string.h> unconditionally.
52758         (memcpy): Remove macro.
52759         (MEMCPY) [!defined COMPILE_WIDE]: Define to memcpy unconditionally.
52760         (__P): Remove.  All uses removed.
52761         (PTR): Remove.  All uses changed to void *.
52762         (CHAR_BIT, NULL): Remove.
52763         (spaces, zeros, memset_space, memset_zero)
52764         [!defined memset && !defined HAVE_MEMSET && !defined _LIBC]:
52765         Remove.
52766         (LOCALE_PARAM, LOCALE_PARAM_DECL): Remove.
52767         (memcpy_lowcase, memcpy_uppcase, tm_diff, iso_week_days):
52768         Define with prototype.
52769         Remove now-unnecessary prototype decl.
52770         (extra_args_spec): Assume ANSI C.  All uses changed.
52771         (extra_args_spec_iso): Remove.
52772         (my_strftime, emacs_strftimeu): Define via prototype.
52773         * lib/strtod.c: Include <float.h>, <stdlib.h>, <string.h>
52774         unconditionally.
52775         (DBL_MAX, DBL_MIN, HUGE_VAL, NULL): Remove decls.
52776         * lib/strtoimax.c: Include <stdlib.h> unconditionally.
52777         (strtoul, strtol): Remove decls.
52778         * lib/strtol.c (STDC_HEADERS, HAVE_LIMITS_H, NULL, ULONG_MAX,
52779         LONG_MAX): Remove.
52780         Include <limits.h>, <stddef.h>, <stdlib.h>, <string.h> unconditionally.
52781         (LOCALE_PARAM_DECL): Remove.  All uses changed to LOCALE_PARAM_PROTO.
52782         (LOCALE_PARAM_PROTO): New macro.
52783         (INTERNAL, INTERNAL1, WEAKNAME): Assume ANSI C, not K&R.
52784         (INTERNAL (strtol), strtol): Define with a prototype.
52785         (PARAMS): Remove.  All uses removed.
52786         * lib/tempname.c: Include <string.h> unconditionally.
52787         * lib/userspec.c: Include <stdlib.h>, <string.h> unconditionally.
52788         * lib/xgethostname.c (main): Define with a prototype.
52789         * lib/xmalloc.c: Include "xalloc.h" first, to check interface.
52790         Include <stdlib.h> unconditionally.
52791         (calloc, malloc, realloc, free): Remove decls.
52792         * lib/xstrtod.c: Include "xstrtod.h" first, to check interface.
52793         Include <stdlib.h> unconditionally.  Sort include file names.
52794         (strtod): Remove.
52795         (xstrtod): Define with a prototype.
52796         * lib/xstrtol.c: Include <stdlib.h>, <string.h> unconditionally.
52797         (strtol, strtoul): Remove decls.
52798
52799 2003-09-11  Paul Eggert  <eggert@twinsun.com>
52800
52801         More patches to assume C89 or better.
52802         * m4/strndup.m4 (gl_PREREQ_STRNDUP): Remove STDC_HEADERS check.
52803         * m4/strnlen.m4 (gl_PREREQ_STRNLEN): Don't check for memory.h,
52804         string.h, memchr, STDC_HEADERS.
52805
52806 2003-09-11  Paul Eggert  <eggert@twinsun.com>
52807
52808         * lib/strndup.c: Don't include <stdio.h>, <sys/types.h>.
52809         Include <stdlib.h>, <string.h> unconditionally.
52810         Remove now-unnecessary cast to char *.
52811         * lib/strnlen.c: Include <string.h> unconditionally.
52812         * lib/yesno.c (yesno): Define with a prototype.
52813
52814 2003-09-11  Bruno Haible  <bruno@clisp.org>
52815
52816         * config/srclist.txt (setenv.c, unsetenv.c): Disable for the moment.
52817
52818 2003-09-10  Jim Meyering  <jim@meyering.net>
52819
52820         * lib/error.c: Correct indentation of cpp directives.
52821
52822 2003-09-10  Bruno Haible  <bruno@clisp.org>
52823
52824         * m4/strcspn.m4 (gl_PREREQ_STRCSPN): Remove <string.h> check.
52825         * m4/strpbrk.m4 (gl_PREREQ_STRPBRK): Remove <string.h> check.
52826         * m4/strstr.m4 (gl_PREREQ_STRSTR): Remove <string.h> check.
52827         * m4/unicodeio.m4 (gl_UNICODEIO): Remove <string.h> check.
52828         * m4/setenv.m4 (gl_PREREQ_SETENV, gl_PREREQ_UNSETENV): Remove
52829         <stdlib.h> and <string.h> checks.
52830         * m4/xreadlink.m4 (gl_XREADLINK): Remove <stdlib.h> check.
52831         * m4/yesno.m4 (gl_YESNO): Remove <stdlib.h> check.
52832
52833 2003-09-10  Bruno Haible  <bruno@clisp.org>
52834
52835         * lib/strcspn.c: Include <string.h> unconditionally.
52836         * lib/strpbrk.c: Include <string.h> unconditionally.
52837         * lib/strstr.c: Include <string.h> unconditionally.
52838         * lib/unicodeio.c: Include <string.h> unconditionally.
52839         * lib/setenv.c: Include <stdlib.h> and <string.h> unconditionally.
52840         * lib/unsetenv.c: Likewise.
52841         * lib/xreadlink.c: Include <stdlib.h> unconditionally.
52842         * lib/yesno.c: Include <stdlib.h> unconditionally.
52843         (rpmatch): Add prototype.
52844
52845 2003-09-09  Paul Eggert  <eggert@twinsun.com>
52846
52847         More patches to assume C89 or better.
52848         * m4/getcwd.m4 (AC_FUNC_GETCWD_NULL): Don't check for stdlib.h.
52849         * m4/getopt.m4 (gl_GETOPT): Don't check for string.h.
52850         * m4/getugroups.m4 (gl_GETUGROUPS): Do not check for standard C headers
52851         or for string.h.
52852         * m4/getusershell.m4 (gl_PREREQ_GETUSERSHELL): Do not check for
52853         stdlib.h.
52854         * m4/group-member.m4 (gl_PREREQ_GROUP_MEMBER): Do not require standard
52855         C headers.
52856         * m4/hard-locale.m4 (gl_HARD_LOCALE): Do not check for stdlib.h,
52857         string.h.
52858         * m4/hash.m4 (gl_HASH): Do not check for stdlib.h, malloc, free.
52859         * m4/human.m4 (gl_HUMAN): Do not check for stdlib.h, string.h, getenv.
52860         * m4/idcache.m4 (gl_IDCACHE): Do not check for standard C headers,
52861         or for string.h.
52862         * m4/long-options.m4 (gl_LONG_OPTIONS): Do not check for stdlib.h.
52863         * m4/makepath.m4 (gl_MAKEPATH): Do not check for string.h or standard
52864         C headers.
52865         * m4/md5.m4 (gl_MD5): Don't check for limits.h, standard C headers,
52866         memcpy.
52867         * m4/sha.m4 (gl_SHA): Don't check for standard Cheaders, memcpy.
52868         * m4/memchr.m4 (jm_PREREQ_MEMCHR): Don't check for limits.h, stdlib.h.
52869         * m4/memcmp.m4 (gl_PREREQ_MEMCMP): Don't check for string.h.
52870         * m4/memcoll.m4 (gl_MEMCOLL): Likewise.
52871         * m4/memrchr.c (gl_PREREQ_MEMRCHR): Don't check for limits.h.
52872         * m4/mkdir-slash.m4 (gl_PREREQ_MKDIR): Don't check for stdlib.h,
52873         string.h, free.
52874         * m4/mktime.m4 (gl_PREREQ_MKTIME): Don't check for standard C headers.
52875         * m4/modechange.m4 (gl_MODECHANGE): Don't check for standard C headers.
52876         * m4/mountlist.m4 (gl_PREREQ_MOUNTLIST_EXTRA): Don't check for standard
52877         C headers, or for string.h.
52878         * m4/obstack.m4 (gl_OBSTACK): Don't check for stddefe.h, string.h.
52879         (gl_PREREQ_OBSTACK): Don't check for stdlib.h.
52880         * m4/path-concat.m4 (gl_PATH_CONCAT): Don't check for standard C
52881         headers, memory.h, stdlib.h, string.h, strings.h.
52882         * m4/posixtm.m4 (gl_POSIXTM): Don't check for stdlib.h, string.h.
52883         * m4/posixver.m4 (gl_POSIXVER): Don't check for getenv.
52884         * m4/putenv.m4 (gl_PREREQ_PUTENV): Don't check for string.h, memcpy,
52885         strchr.
52886         * m4/readtokens.m4 (gl_READTOKENS): Don't check for standard C
52887         headers, memory.h, string.h.
52888         * m4/regex.m4 (jm_PREREQ_REGEX): Do not check for limits.h, string.h.
52889         * m4/rename.m4 (gl_PREREQ_RENAME): Do not check for stdlib.h, string.h,
52890         free.
52891         * m4/rpmatch.m4 (gl_PREREQ_RPMATCH): Don't check for standard C
52892         headers.
52893         * m4/same.m4 (gl_SAME): Don't check for stdlib.h, string.h, free.
52894         * m4/save-cwd.m4 (gl_SAVE_CWD): Don't check for standard C headers.
52895         * m4/savedir.m4 (gl_SAVEDIR): Don't check for standard C headers.
52896         * m4/strchrnul.m4 (gl_PREREQ_STRCHRNUL): Don't check for string.h.
52897         * m4/xgetcwd.m4 (gl_XGETCWD): Don't check for stdlib.h.
52898
52899 2003-09-09  Paul Eggert  <eggert@twinsun.com>
52900
52901         More K&R removal.
52902
52903         * lib/acosl.c (main): Use a prototype.
52904         * lib/asinl.c, cosl.c, expl.c, frexpl.c, ldexpl.c, sinl.c,
52905         tanl.c: Likewise.
52906
52907         * lib/getloadavg.c (getloadavg, main): Define via prototypes.
52908
52909         * lib/getopt.h (struct option.name): Assume C89, and use 'const'.
52910         (getopt, etopt_long, getopt_long_only, _getopt_internal)
52911         [defined __GNU_LIBRARY__]: Assume C89, so we can always declare
52912         with a prototype.
52913         * lib/getopt.c (const): Remove macro.
52914         Include <string.h> unconditionally.
52915         (my_index): Remove; all uses changed to strchr.
52916         (strlen): Remove decl.
52917         (exchange): Remove forward decl; no longer needed.
52918         (exchange, _getopt_initialize, _getopt_internal, getopt, main):
52919         Define with prototype.
52920         * lib/getopt1.c (const): Remove macro.
52921         (getopt_long, getopt_long_only, main): Define with prototype.
52922
52923         * lib/getugroups.c: Include <string.h> unconditionally.
52924
52925         * lib/getusershell.c: Include <stdlib.h> unconditionally.
52926         (getusershell, setusershell, endusershell, readname, main):
52927         Define with prototypes.
52928
52929         * lib/group-member.c: Include group-member.h first.
52930         Include <stdlib.h> unconditionally.
52931
52932         * lib/hard-locale.c: Include hard-locale.h first.
52933         Include <stdlib.h>, <string.h> unconditionally.
52934
52935         * lib/hash.c (free, malloc): Remove decls.
52936         Include <stdlib.h> unconditionally.
52937
52938         * lib/human.c: Include <stdlib.h>, <string.h> unconditionally.
52939         (getenv): Do not declare.
52940
52941         * lib/idcache.c: Include <string.h> unconditionally.
52942
52943         * lib/long-options.c: Include long-options.h first, to test interface.
52944         Include <stdlib.h> unconditionally.
52945
52946         * lib/makepath.c: Include makepath.h first, to test interface.
52947         Include <stdlib.h> and <string.h> unconditionally.
52948
52949         * lib/linebuffer.c: Include <stdlib.h>.
52950         (free): Remove decl.
52951
52952         * lib/malloc.c: Include <stdlib.h>, for malloc; don't bother with
52953         stddef.h. rpl_malloc returns void *, not char *.
52954         * lib/realloc.c (rpl_realloc): Likewise.  Also, define with a
52955         prototype.
52956
52957         * lib/md5.h: Include <limits.h> unconditionally.
52958         (UINT_MAX_32_BITS): Don't worry about non-__STDC__ case.
52959         (__P): Remove; all uses removed.
52960         * lib/md5.c: Include "md5.h" first.
52961         (md5_init_ctx, md5_read_ctx, md5_finish_ctx, md5_stream,
52962         md5_buffer, md5_process_bytes, md5_process_block):
52963         Define with prototypes.
52964         * lib/sha.h (__P): Remove all uses.  (It wasn't defined??)
52965         * lib/sha.c: Include "sha.h" first.
52966         Include <stdlib.h>, <string.h> unconditionally.
52967
52968         * lib/memchr.c (__ptr_t): Remove; all uses changed to void *.
52969         * lib/memcmp.c (__ptr_t): Likewise.
52970         * lib/memrchr.c (__ptr_t): Likewise.
52971         * lib/memchr.c, memcmp.c, memcoll.c, memrchr.c:
52972         Include <string.h> unconditionally.
52973         * lib/memchr.c, memrchr.c: Include <limits.h> unconditionally.
52974         * lib/memchr.c: Include <stdlib.h> unconditionally.
52975         * lib/memchr.c (LONG_MAX): Remove.
52976         * lib/memrchr.c (LONG_MAX): Likewise.
52977         * lib/memchr.c (__memchr): Define via a prototype.
52978         * lib/memrchr.c (__memrchr): Likewise.
52979         * lib/memcmp.c (__P): Remove, and remove all uses.
52980         (memcmp_bytes, memcmp_common_alignment, memcmp_not_common_alignment):
52981         Remove forward decls; no longer needed.
52982         * lib/memcpy.c, memmove.c, memset.c: Include <stddef.h>.
52983         Use types required by C89 in prototype.
52984
52985         * lib/mkdir.c: Include <stdlib.h>, <string.h> unconditionally.
52986         * lib/savedir.c: Likewise.
52987         * lib/mkdir.c (free): Remove decl.
52988         * lib/rmdir.c (rmdir): Define with a prototype.
52989         * lib/savedir.c: Include savedir.h first, to test interface.
52990
52991         * lib/mktime.c (STDC_HEADERS): Remove.
52992         Include <stdlib.h>, <string.h> unconditionally.
52993
52994         * lib/modechange.c: Include <stdlib.h> unconditionally.
52995         (malloc): Remove decl.
52996
52997         * lib/mountlist.c: Include <stdlib.h>, <string.h> unconditionally.
52998         (free): Remove decl.
52999
53000         * lib/obstack.h (PTR_INT_TYPE) [!defined __PTRDIFF_TYPE__]:
53001         Define to ptrdiff_t, without bothering to check HAVE_STDDEF_H.
53002         (This type really should be intptr_t, but that's a C99ism.)
53003         (_obstack_memcpy): Remove: all uses changed to memcpy.
53004         Include <string.h> unconditionally.
53005         (struct obstack): Assume __STDC__ for types of members
53006         chunkfun, freefun, extra_arg.
53007         (_obstack_newchunk, _obstack_free, _obstack_begin, _obstack_begin_1,
53008         _obstack_memory_used, obstack_alloc_failed_handler, obstack_init,
53009         obstack_begin, obstack_specify_allocation,
53010         obstack_specify_allocation_with_arg, obstack_chunkfun,
53011         obstack_freefun, obstack_free) [! (defined __STDC__ && __STDC__)]:
53012         Remove unprototyped decls and the macros that use them.
53013         * lib/obstack.c (POINTER): Remove.  All uses changed to void *.
53014         (obstack_alloc_failed_handler, CALL_CHUNKFUN, CALL_FREEFUN,
53015         _obstack_begin, _obstack_begin_1, _obstack_allocated_p)
53016         (defined __STDC__ && __STDC__)]:
53017         Remove nonprototyped code.
53018         Include <stdlib.h> unconditionally.
53019         (_obstack_begin, _obstack_begin_1, _obstack_newchunk,
53020         _obstack_allocated_p, _obstack_free, obstack_free,
53021         _obstack_memory_used, print_and_abort):
53022         Define using prototypes.
53023         (obstack_1grow, obstack_1grow_fast, obstack_alloc, obstack_base,
53024         obstack_blank, obstack_blank_fast, obstack_copy, obstack_copy0,
53025         obstack_finish, obstack_grow, obstack_grow0, obstack_make_room,
53026         obstack_next_free, obstack_object_size, obstack_room) [0]:
53027         Remove unused, unprototyped code.
53028
53029         * lib/path-concat.c: Include <stdlib.h>, <string.h> unconditionally.
53030
53031         * lib/physmem.c (physmem_total, physmem_available, main): Define
53032         with prototypes.
53033
53034         * lib/posixtm.c: Include <stdlib.h>, <string.h> unconditionally.
53035         (main): Define with a prototype.
53036
53037         * lib/posixver.c (getenv): Remove decl.
53038
53039         * lib/putenv.c (malloc): Returns void *, not char *.
53040         Include <string.h> unconditionally.
53041         (strchr, memcpy, NULL): Do not define.
53042
53043         * lib/readtokens.c: Include readtokens.h first, to test interface.
53044         Include <stdlib.h>, <string.h> unconditionally.
53045         (init_tokenbuffer): Define with a prototype.
53046
53047         * lib/regex.c (PARAMS): Remove.  All uses removed.
53048         All uses of _RE_ARGS removed, too.
53049         Include <stddef.h>, <stdlib.h>, <string.h>, <limits.h>
53050         unconditionally.
53051         (bzero): Assume memset exists.
53052         (memcmp, memcpy, NULL): Remove.
53053         (SIGN_EXTEND_CHAR): Remove; all uses replaced by casts to signed
53054         char, or assignments to local vars of type signed char.
53055         (init_syntax_once, PREFIX(extract_number_and_incr),
53056         PREFIX(print_partial_compiled_pattern),
53057         PREFIX(print_compiled_pattern), PREFIX(print_double_string),
53058         convert_mbs_to_wcs, print_fastmap, re_set_syntax,
53059         PREFIX(regex_grow_registers), PREFIX(regex_compile),
53060         PREFIX(store_op1), PREFIX(store_op2), PREFIX(insert_op1),
53061         PREFIX(insert_op2), PREFIX(at_begline_loc_p),
53062         PREFIX(at_endline_loc_p), group_in_compile_stack, insert_space,
53063         wcs_compile_range, byte_compile_range, truncate_wchar,
53064         PREFIX(re_compile_fastmap), re_compile_fastmap, re_set_registers,
53065         re_search, re_search_2, PREFIX(re_search_2), re_match, re_match_2,
53066         count_mbs_length, wcs_re_match_2_internal,
53067         byte_re_match_2_internal, PREFIX(group_match_null_string_p),
53068         PREFIX(alt_match_null_string_p),
53069         PREFIX(common_op_match_null_string_p), PREFIX(bcmp_translate),
53070         re_compile_pattern, re_comp, re_exec, regcomp, regexec, regerror,
53071         regfree, PREFIX(extract_number)): Define with prototype.  Remove
53072         now-unnecessary declaration, if any.
53073         (byte_compile_range, PREFIX(regex_compile), re_comp, re_exec,
53074         regcomp, regexec):
53075         Remove now-unnecessary casts among pointer types.
53076         * lib/regex.h (_RE_ARGS): Remove.  All uses removed.
53077
53078         * lib/rename.c: Include <stdlib.h>, <string.h> unconditionally.
53079         (free): Remove decl.
53080
53081         * lib/rpmatch.c: Include <stdlib.h> unconditionally.
53082
53083         * lib/same.c: Include <stdlib.h>, <string.h> unconditionally.
53084         (free): Remove decl.
53085
53086         * lib/save-cwd.c: Include <stdlib.h> unconditionally.
53087         * lib/xgetcwd.c: Likewise.
53088
53089         * lib/stat.c: Include <stdlib.h>, <string.h> unconditionally.
53090         (free): Remove decl.
53091
53092         * lib/strchrnul.c (strchrnul): Define with a prototype.
53093         Fix bug: c_in was not converted to char before searching.
53094
53095         The following changes are not K&R related:
53096
53097         * lib/group-member.h: Include <sys/types.h>, so that this file is
53098         self-contained.
53099         * lib/makepath.h: Likewise.
53100
53101         * lib/getusershell.c (readname, default_index, line_size, readname):
53102         Use size_t, not int, for sizes.
53103         (readname): If the size overflows, report an error instead of
53104         looping forever.
53105
53106 2003-09-09  Paul Eggert  <eggert@twinsun.com>
53107
53108         * config/srclist.txt: Do not get getopt.h, getopt1.c, or regex.h from
53109         libc.
53110
53111 2003-09-09  Paul Eggert  <eggert@twinsun.com>
53112
53113         * README: New section: portability guidelines.
53114
53115 2003-09-09  Derek Robert Price  <derek@ximbiot.com>
53116
53117         * m4/getndelim2.m4 (gl_PREREQ_GETNDELIM2): Assume stdlib.h per the
53118         C89 spec.
53119
53120 2003-09-09  Derek Robert Price  <derek@ximbiot.com>
53121
53122         * lib/getndelim2.c: Assume stdlib.h per the C89 spec.
53123
53124 2003-09-08  Paul Eggert  <eggert@twinsun.com>
53125
53126         Assume C89 or better; remove K&R cruft.
53127         A few of these changes were first proposed by Derek Robert Price
53128         in <http://mail.gnu.org/archive/html/bug-gnulib/2003-07/msg00105.html>.
53129
53130         * lib/addext.c: Include <string.h> unconditionally.
53131         * lib/backupfile.c: Include <string.h>, <stdlib.h> unconditionally.
53132         Don't declare getenv or malloc.
53133
53134         * lib/alloca.c: Include <string.h>, <stdlib.h> unconditionally.
53135         (POINTER_TYPE, pointer): Remove; all uses changed to void *.
53136         (NULL): Remove.
53137         (find_stack_direction, alloca): Use prototypes.
53138
53139         * lib/atexit.c (atexit): Define using a prototype.
53140
53141         * lib/basename.c, dirname.c, stripslash.c:
53142         Include <string.h> unconditionally.
53143
53144         * lib/bcopy.c: Include <stddef.h>.
53145         (bcopy): Define with prototype, using 'const' and 'void' and 'size_t'.
53146
53147         * lib/canon-host.c: Include <stdlib.h>, <string.h> unconditionally.
53148
53149         * lib/error.h (error, error_at_line, error_print_progname)
53150         [! (defined (__STDC__) && __STDC__)]: Remove decls.
53151         * lib/error.c: Include error.h first, to check interface.
53152         Include <stdarg.h>, <stdlib.h>, <string.h> unconditionally.
53153         (VA_START): Remove; all uses changeed to va_start.
53154         (exit, strerror): Remove decls.
53155         (error_print_progname): Prototype uncondionally.
53156         Don't include <errno.h>; no longer needed.
53157         (private_strerror): Remove.
53158         (error_tail): Always define.
53159         (error, error_at_line): Assume C89 or better; always use prototypes.
53160         * lib/fatal.c: Include "fatal.h" first, to test interface.
53161         Include <stdarg.h>, <stdlib.h>, <string.h> unconditionally.
53162         (VA_START): Remove; all uses changed to va_start.
53163         [! (HAVE_VPRINTF || HAVE_DOPRNT || _LIBC)]: Remove support for
53164         this case.
53165         (exit): Remove decl.
53166         (fatal): Prototype unconditionally.  Assume va_start works.
53167         Abort at end, to pacify gcc.
53168
53169         * lib/euidaccess.c (main): Define with a prototype.
53170
53171         * lib/exclude.c: Include <stdlib.h>, <string.h> unconditionally.
53172
53173         * lib/exitfail.c: Include <stdlib.h> unconditionally.
53174
53175         * lib/fnmatch_.h (__P): Remove.  All uses changed to assume
53176         prototypes.
53177         * lib/fnmatch.c: Include fnmatch.h first, to test interface.
53178         Include <string.h>, <stddef.h>, <stdlib.h> unconditionally.
53179         (getenv): Remove decl.
53180         (fnmatch): Define using a prototype.
53181         * lib/fnmatch_loop.c (FCT): Remove forward decl; no longer needed.
53182         (FCT): Define using a prototype.
53183
53184         * lib/getdate.y: Include <stdlib.h>, <string.h> unconditionally.
53185
53186         * lib/gethostname.c: Include <stddef.h>.
53187         (gethostname): Define with prototype.  Length is size_t, not int.
53188
53189 2003-09-08  Paul Eggert  <eggert@twinsun.com>
53190
53191         Assume C89 or better; remove K&R cruft.
53192         * m4/alloca.m4 (gl_PREREQ_ALLOCA): Don't check for stdlib.h, string.h.
53193         * m4/backupfile.m4 (gl_BACKUPFILE): Don't check for stdlib.h,
53194         string.h, getenv, malloc.
53195         * m4/dirname.m4 (gl_DIRNAME): Don't check for string.h or C standard
53196         headers.
53197         * m4/canon-host.m4 (gl_CANON_HOST): Don't check for string.h, stdlib.h.
53198         * m4/error.m4 (jm_PREREQ_ERROR): Do not require STDC headers, and
53199         do not check for strerror.
53200         * m4/exclude.m4: Do not check for stdlib.h, string.h, strings.h.
53201         * m4/exitfail.m4 (gl_EXITFAIL): Do not check for stdlib.h.
53202         * m4/fatal.m4 (gl_FATAL): Do not require STDC headers, and
53203         do not check for doprnt or vprintf.
53204         * m4/fnmatch.m4 (gl_PREREQ_FNMATCH_EXTRA): Remove.  All uses removed.
53205         * m4/getdate.m4 (gl_GETDATE): Don't check for stdlib.h or string.h.
53206
53207 2003-09-08  Paul Eggert  <eggert@twinsun.com>
53208
53209         * lib/getversion.c: Remove; was migrated to backupfile.c in 1997.
53210         getversion.c should have been removed then, but was accidentally
53211         preserved.
53212
53213         * lib/utime.c [!HAVE_UTIMES_NULL]: Include <sys/stat.h>, <fcntl.h>.
53214         (utime_null): Fix typo: 'st' was sometimes called 'sb'.
53215
53216 2003-09-08  Karl Berry  <karl@gnu.org>
53217
53218         * config/config.sub, config.guess, srclistvars.sh: update from savannah
53219                 config, forget about prep.
53220
53221         * config/depcomp, missing: update from automake.
53222
53223 2003-09-07  Paul Eggert  <eggert@twinsun.com>
53224
53225         * modules/time_r: Depend on 'restrict'.  Fix from Simon Josefsson in
53226         <http://mail.gnu.org/archive/html/bug-gnulib/2003-09/msg00028.html>.
53227
53228 2003-09-07  Paul Eggert  <eggert@twinsun.com>
53229
53230         * lib/time_r.c (gmtime_r, localtime_r): Fix silly typo: missing arg to
53231         copy_tm_result.  Bug reported by Simon Josefsson in
53232         <http://mail.gnu.org/archive/html/bug-gnulib/2003-09/msg00028.html>.
53233
53234 2003-09-06  Paul Eggert  <eggert@twinsun.com>
53235
53236         * m4/time_r.m4: New file.
53237         * m4/mktime.m4 (gl_PREREQ_MKTIME): Remove check for limits.h.
53238         * m4/timegm.m4 (gl_FUNC_TIMEGM): Assume that timegm is buggy if mktime
53239         is. Check for timegm declaration.
53240         (gl_PREREQ_TIMEGM): Require gl_FUNC_MKTIME.
53241         Do not check for gmtime_r.
53242         Replace mktime if __mktime_internal does not exist and if mktime
53243         hasn't been replaced already.
53244
53245 2003-09-06  Paul Eggert  <eggert@twinsun.com>
53246
53247         * lib/time_r.c, lib/time_r.h: New files.
53248
53249         * lib/mktime.c (my_mktime_localtime_r): Remove; all uses changed to
53250         __localtime_r.
53251         (__localtime_r) [!defined _LIBC]: New macro.  Include <time_r.h>.
53252         (__mktime_internal) [!defined _LIBC]: Now extern, not static.
53253
53254         * lib/strftime.c (my_strftime_gmtime_r): Remove; all uses changed to
53255         __gmtime_r.
53256         (my_strftime_localtime_r): Remove; all uses changed to __localtime_r.
53257         (__gtime_r, __localtime_r) [!HAVE_TM_GMTOFF]: New macros.
53258         Include <time_r.h>.
53259
53260         * lib/timegm.c: Switch to glibc implementation, with the following
53261         changes:
53262         [defined HAVE_CONFIG_H]: Include <config.h>.
53263         [!defined _LIBC]: Include "timegm.h" rather than <time.h>.
53264         (__mktime_internal) [!defined _LIBC]: New decl.
53265         (__gmtime_r) [!defined _LIBC]: New macro and function.
53266         (timegm): Use a prototype, since gnulib assumes C89.
53267         Do not bother declaring tmp to be const, as it's not really usefu.
53268         * lib/timegm.h: Hoist "#include <time.h>" out of #ifdef.
53269         (timegm): Declare only if HAVE_DECL_TIMEGM.
53270
53271 2003-09-06  Paul Eggert  <eggert@twinsun.com>
53272
53273         * MODULES.html.sh (func_all_modules): Add time_r.
53274         * modules/time_r: New file.
53275         * modules/mktime, modules/strftime, modules/timegm: Depend on time_r.
53276         * modules/timegm: Depend on mktime.  Change maintainer to "all, glibc".
53277
53278 2003-09-03  Paul Eggert  <eggert@twinsun.com>
53279
53280         * lib/human.c (human_readable): Fix bug that rounded 10501 to 10k.
53281         Bug reported by Lute Kamstra in
53282         <http://mail.gnu.org/archive/html/bug-gnulib/2003-09/msg00003.html>.
53283
53284         * lib/getdate.y (relative_time_table): Use tDAY_UNIT for "tomorrow",
53285         "yesterday", "today", and "now" rather than tMINUTE_UNIT.  Of
53286         course with correspondingly smaller numbers for tomorrow and
53287         yesterday.  From Tadayoshi Funaba.  Originally installed into
53288         sh-utils on 1999-08-07, but the patch got lost (I guess during the
53289         coreutils merge?).
53290
53291 2003-08-31  Simon Josefsson  <jas@extundo.com>
53292
53293         * modules/timegm: New file.
53294         * MODULES.html.sh (func_all_modules): Add timegm.
53295
53296 2003-08-31  Simon Josefsson  <jas@extundo.com>
53297
53298         * m4/timegm.m4: New file.
53299
53300 2003-08-31  Simon Josefsson  <jas@extundo.com>
53301
53302         * lib/timegm.h: New file.
53303         * lib/timegm.c: New file.  Based on
53304         wget-1.8.2/src/http.c:mktime_from_utc.
53305
53306 2003-08-31  Karl Berry  <karl@gnu.org>
53307
53308         * lib/argp.h: update from libc.
53309
53310 2003-08-28  Bruno Haible  <bruno@clisp.org>
53311
53312         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Remove AC_DEFINE of fnmatch here.
53313         This avoids havoc on compilers for which '#define fnmatch rpl_fnmatch'
53314         followed by '#define fnmatch fnmatch_posix' gives an error.
53315
53316 2003-08-28  Bruno Haible  <bruno@clisp.org>
53317
53318         * lib/binary-io.h: Undefine O_BINARY before defining it. This avoids a
53319         warning on QNX, which defines O_BINARY to 000000.
53320
53321 2003-08-27  Jim Meyering  <jim@meyering.net>
53322
53323         * m4/mkstemp.m4: Require that the system mkstemp be able to create
53324         70 temporary files, not just 30.  Tru64 V4.0F's mkstemp function
53325         would fail after 32.  Reported by Danny Levinson.  Details here:
53326         http://mail.gnu.org/archive/html/bug-coreutils/2003-08/msg00124.html
53327
53328 2003-08-24  Bruno Haible  <bruno@clisp.org>
53329
53330         * lib/binary-io.h: Include <stdio.h>, to avoid a compilation error when
53331         MSVC7 <stdio.h> is included later.
53332
53333 2003-08-22  Simon Josefsson  <jas@extundo.com>
53334
53335         * modules/strndup (Makefile.am): Add strndup.h to lib_SOURCES.
53336
53337 2003-08-20  Karl Berry  <karl@gnu.org>
53338
53339         * m4/lib-ld.m4: serial 1003 from gettext, no changes besides serial.
53340
53341 2003-08-20  Bruno Haible  <bruno@clisp.org>
53342
53343         * modules/progname: New file.
53344         * MODULES.html.sh (func_all_modules): Add progname.
53345
53346 2003-08-20  Bruno Haible  <bruno@clisp.org>
53347
53348         * lib/progname.h: New file, from GNU gettext.
53349         * lib/progname.c: New file, from GNU gettext.
53350         * lib/progreloc.c: New file, from GNU gettext.
53351
53352 2003-08-19  Jim Meyering  <jim@meyering.net>
53353
53354         * m4/lib-ld.m4: Revert yesterday's change, per Bruno's request here:
53355         http://mail.gnu.org/archive/html/bug-gnulib/2003-08/msg00155.html
53356
53357 2003-08-19  Bruno Haible  <bruno@clisp.org>
53358
53359         * m4/xalloc.m4 (gl_PREREQ_XSTRDUP): Don't check for <string.h> any
53360         more.
53361
53362 2003-08-19  Bruno Haible  <bruno@clisp.org>
53363
53364         * lib/xstrdup.c: Assume <string.h> exists.
53365
53366 2003-08-18  Paul Eggert  <eggert@twinsun.com>
53367
53368         * modules/stdbool: Add BUILT_SOURCES.  Prefer $@ to target name
53369         in makefile rules.
53370
53371 2003-08-18  Jim Meyering  <jim@meyering.net>
53372
53373         * m4/getloadavg.m4: Use [\t ], not [ \t] (where \t is a literal TAB).
53374         * m4/lib-ld.m4: Likewise.
53375
53376 2003-08-18  Jim Meyering  <jim@meyering.net>
53377
53378         * lib/setenv.h: Indent nested cpp directive.
53379         * lib/vasnprintf.c: Remove trailing blanks.
53380
53381 2003-08-17  Simon Josefsson  <jas@extundo.com>
53382
53383         * modules/xstrndup: New file.
53384         * MODULES.html.sh (func_all_modules): Add xstrndup.
53385
53386 2003-08-17  Simon Josefsson  <jas@extundo.com>
53387
53388         * modules/argp: Fix autoconf macro name. Add more dependencies.
53389
53390 2003-08-17  Simon Josefsson  <jas@extundo.com>
53391
53392         * m4/xstrndup.m4: New file.
53393
53394 2003-08-17  Simon Josefsson  <jas@extundo.com>
53395
53396         * m4/argp.m4: New file.
53397
53398 2003-08-17  Simon Josefsson  <jas@extundo.com>
53399             Bruno Haible  <bruno@clisp.org>
53400
53401         * lib/xstrndup.h: New file.
53402         * lib/xstrndup.c: New file.
53403
53404 2003-08-17  Bruno Haible  <bruno@clisp.org>
53405
53406         * modules/strndup (Files, Include): Add lib/strndup.h.
53407
53408 2003-08-17  Bruno Haible  <bruno@clisp.org>
53409
53410         * modules/euidaccess (Files): Add lib/euidaccess.h.
53411
53412 2003-08-17  Bruno Haible  <bruno@clisp.org>
53413
53414         * lib/strndup.h: New file.
53415
53416 2003-08-17  Bruno Haible  <bruno@clisp.org>
53417
53418         * gnulib-tool (func_create_testdir): Handle gl_USE_SYSTEM_EXTENSIONS
53419         like AC_GNU_SOURCE.
53420         * modules/extensions (configure.ac): Comment out the invocation of
53421         gl_USE_SYSTEM_EXTENSIONS.
53422
53423 2003-08-16  Paul Eggert  <eggert@twinsun.com>
53424
53425         Merges from coreutils, etc.
53426         * m4/rpmatch.m4 (gl_PREREQ_RPMATCH): Insert ':' to prevent a syntax
53427         error in gl_FUNC_MATCH.  This fixes a bug I introduced on 2003-05-28.
53428         * m4/readlink.m4 (gl_PREREQ_READLINK): Renamed from gl_PREREQ_READLINE,
53429         fixing a typo.
53430         * m4/host-os.m4 (UTILS_HOST_OS): Add GNU/NetBSD, GNU/FreeBSD.
53431         * m4/hash.m4 (gl_HASH): Use AM_STDBOOL_H, not AC_HEADER_STDBOOL.
53432
53433 2003-08-16  Paul Eggert  <eggert@twinsun.com>
53434
53435         Document merge from coreutils.
53436         * modules/alloca: Append $(ALLOCA_H) to BUILT_SOURCES.
53437         * modules/fnmatch: Append $(FNMATCH_H) to BUILT_SOURCES.
53438         * modules/utime: Add m4/utimes-null.m4.
53439
53440 2003-08-16  Paul Eggert  <eggert@twinsun.com>
53441
53442         * lib/regex.h, strdup.c, strtoll.c, strtoul.c: Do not normalize white
53443         space, undoing this 2003-08-12 change:
53444         <http://mail.gnu.org/archive/html/bug-gnulib/2003-08/msg00080.html>
53445
53446 2003-08-16  Paul Eggert  <eggert@twinsun.com>
53447
53448         * config/srclist.txt: Get regex.h, strdup.c, strtoll.c,
53449         strtoul.c from libc, undoing this 2003-08-12 change:
53450         <http://mail.gnu.org/archive/html/bug-gnulib/2003-08/msg00080.html>
53451
53452 2003-08-16  Jim Meyering  <jim@meyering.net>
53453
53454         Merges from coreutils.
53455         * m4/readdir.m4 (GL_FUNC_READDIR): Change name to have GL_ (not jm_)
53456         prefix.  Adjust cache variables similarly.  Create 500 rather than
53457         just 300 files, to exercise bug on Darwin6.5, too.
53458         * m4/perl.m4 (jm_PERL): Use $am_missing_run, not undefined
53459         $missing_dir.
53460         * m4/jm-winsz1.m4: Require AC_SYS_POSIX_TERMIOS, not
53461         AM_SYS_POSIX_TERMIOS.
53462         Reported by mkc@mathdogs.com.
53463         Also change use of $am_cv_sys_posix_termios
53464         to $ac_cv_sys_posix_termios.  Reported by Andreas Schwab.
53465         * m4/getgroups.m4 (jm_FUNC_GETGROUPS): Rewrite to use AC_FUNC_GETGROUPS
53466         and (if needed) to call AC_LIBOBJ and to set GETGROUPS_LIB.
53467         * m4/fsusage.m4 [__GLIBC__]: GNU libc's statvfs stats each mount point
53468         in /proc/mounts until it finds one with matching device number.  This
53469         is unnecessary when the FILE argument *is* a mount point.  No stat call
53470         is necessary in that case.  So, disable the statvfs-testing code on
53471         systems with GNU libc.  Reported by Andrei Gaponenko via Tim Waugh
53472         as RedHat bug# 84846.
53473         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Limit stack size
53474         to 1MB, so as not to render systems with no stack size limit (e.g.,
53475         linux-2.2.x) unusable.  Suggestion and code from Bruno Haible.
53476         Include <unistd.h>.  On some systems,
53477         it is required for the definition of _SC_PAGESIZE.
53478
53479 2003-08-16  Jim Meyering  <jim@meyering.net>
53480
53481         Merge from coreutils.
53482         * lib/xstrtoimax.c: #else #if -> #elif.
53483         * lib/xstrtoumax.c: Likewise.
53484
53485 2003-08-16  Jim Meyering  <jim@meyering.net>
53486
53487         * m4/utimes.m4 (gl_FUNC_UTIMES): New file.
53488         * m4/utimes.m4: Removed.
53489         * m4/utimes-null.m4: Renamed from utimes.m4.
53490
53491         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Limit stack size
53492         to 1MB, so as not to render systems with no stack size limit (e.g.,
53493         linux-2.2.x) unusable.  Suggestion and code from Bruno Haible.
53494         Include <unistd.h>.  On some systems,
53495         it is required for the definition of _SC_PAGESIZE.
53496
53497 2003-08-16  Jim Meyering  <jim@meyering.net>
53498         and Paul Eggert  <eggert@cs.ucla.edu>
53499
53500         Merges from coreutils, etc.
53501
53502         * m4/jm-macros.m4 (AC_LANG_SOURCE(C)): New macro, undefine, then define
53503         using the latest version from cvs.  This avoids problems with #line
53504         directives using a vendor (Sun) compiler.
53505         (jm_MACROS): Bump prerequisite from 2.52g to 2.57.
53506         Don't set GETGROUPS_LIB here; now it's
53507         done via getgroups.m4's wrapper function.
53508         AC_SUBST OPTIONAL_BIN_PROGS, OPTIONAL_BIN_ZCRIPTS, and MAN here,
53509         rather than just in sh-util/configure.in, so that the
53510         now-shared-by-fileutils-and-textutils lib/Makefile.am are all the
53511         same.
53512         Use AC_CONFIG_LIBOBJ_DIR(lib) to tell the new
53513         AC_FUNC_GETLOADAVG where to find getloadavg.c.
53514         Require AC_FUNC_FTW, gt_INTTYPES_PRI, gl_CLOCK_TIME,
53515         UTILS_SYS_OPEN_MAX, GL_FUNC_GETCWD_PATH_MAX, GL_FUNC_READDIR,
53516         gl_FSUSAGE, gl_MOUNTLIST, AC_FUNC_CANONICALIZE_FILE_NAME.
53517         Remove code that is now done by the newly-required macros.
53518         Append $(EXEEXT) to DF_PROG.
53519         AC_LIBOBJ fchdir-stub if fchdir doesn't exist; similarly for fchown.
53520         Do not invoke or require the following here,
53521         since prereq.m4 or some gnulib .m4 now does this for us:
53522         gl_REGEX, UTILS_FUNC_MKDIR_TRAILING_SLASH, jm_BISON, gl_FUNC_MKTIME,
53523         jm_FUNC_LSTAT, jm_FUNC_STAT, jm_FUNC_REALLOC, jm_FUNC_MALLOC,
53524         jm_FUNC_NANOSLEEP, jm_FUNC_READDIR, jm_FUNC_MEMCMP,
53525         jm_FUNC_GLIBC_UNLOCKED_IO, AC_FUNC_FNMATCH_GNU, jm_FUNC_PUTENV,
53526         jm_AC_PREREQ_XSTRTOUMAX, jm_AC_PREREQ_XSTRTOIMAX,
53527         AC_FUNC_ERROR_AT_LINE, jm_FUNC_GNU_STRFTIME, AC_FUNC_VPRINTF,
53528         vb_FUNC_RENAME, UTILS_FUNC_MKSTEP, jm_FUNC_UTIME, AM_FUNC_GETLINE,
53529         AC_FUNC_OBSTACK.
53530         Do not replace the following functions, as this is now the job
53531         of some gnulib .m4: strcasecmp, strncasecmp, dup2, gethostname,
53532         getusershell, sig2str, strcspn, stpcpy, strstr, strtol, strtoul
53533         strpbrk, euidaccess, memcmp, rmdir, rpmatch, strndup, strverscmp,
53534         atexit getpass, strdup, getpagesize.
53535         Replace 'raise'.
53536         Do not check for the following functions, as this is now the job
53537         of some gnulib .m4: bcopy, canonicalize_file_name, fchdir, ftime,
53538         getcwd, getmntinfo, resolvepath.  But check for sysctl, setreuid,
53539         setregid.
53540         (jm_CHECK_ALL_HEADERS): Do not check for fenv.h.
53541         Check for sys/sysctl.h.
53542         (jm_CHECK_ALL_TYPES): Do not require AC_STRUCT_TM, AC_STRUCT_TIMEZONE,
53543         jm_CHECK_TYPE_STRUCT_TIMESPEC.  Invoke gt_TYPE_SSIZE_T instead
53544         of checking for ssize_t ourselves.
53545
53546         * m4/prereq.m4 (jm_PREREQ): Don't invoke macros; AC_REQUIRE them.
53547         Require every macro that gnulib/modules/* suggests for us.
53548         (jm_PREREQ_ADDEXT): New macro.
53549         (jm_PREREQ_STAT): Check for 'struct statfs' on Ultrix 4.4.
53550         Require jm_AC_TYPE_LONG_LONG instead of invoking it.
53551
53552         * m4/physmem.m4 (gl_SYS__SYSTEM_CONFIGURATION): New macro.
53553         (gl_PHYSMEM): Use it.
53554         Also check for `table' function.
53555         Check for new headers and functions.
53556         Add check for sys/sysmp.h.
53557         With suggestions from Kaveh Ghazi.
53558         Ignore headers that are present but cannot be compiled.  This
53559         avoids spurious warnings on Solaris 9 sparc with Forte Developer 7
53560         C 5.4.
53561
53562 2003-08-15  Paul Eggert  <eggert@twinsun.com>
53563
53564         Document merge from coreutils.
53565         * modules/userspec: Depend on posixver.
53566         * modules/strftime: Depend on tzset.
53567
53568 2003-08-15  Paul Eggert  <eggert@twinsun.com>
53569
53570         * lib/config.charset, ref-add.sin, ref-del.sin: Use three spaces,
53571         rather than tab, after '#' in shell-script copyright notices.
53572         Suggested by Bruno Haible.
53573
53574 2003-08-15  Paul Eggert  <eggert@twinsun.com>
53575
53576         * config/srclist-update: Use three spaces, rather than tab, after '#'
53577         in shell-script copyright notices.  Suggested by Bruno Haible.
53578         Remove unnecessary parenthesization in regular expression.
53579
53580 2003-08-15  Jim Meyering  <jim@meyering.net>
53581
53582         Merge from coreutils.
53583         * lib/xgethostname.c: Include <stdlib.h>.
53584         (xghostname): Don't exit for anything other than memory-related
53585         failure; just return NULL.
53586         * lib/userspec.c: Include "posixver.h".
53587         (parse_user_spec): Accept `.' as a separator only
53588         in pre-POSIX-200112 mode.
53589         * lib/strtoimax.c: Use #elif rather than #else #if.
53590         * lib/strftime.c (my_strftime) [!_LIBC && HAVE_TZNAME && HAVE_TZSET]:
53591         Remove function, now that we can rely on a working tzset function.
53592         [!_LIBC]: Ensure that the required autoconf test has been run.
53593         [!defined _NL_CURRENT && HAVE_STRFTIME]:
53594         Use underlying_strftime for %r.
53595         * lib/sha.c: Merge in some clean-up and optimization changes from
53596         glibc.
53597         * lib/sha.c (sha_stream) [BLOCKSIZE]: Move definition to top of file.
53598         Ensure that it is a multiple of 64.
53599         Rearrange loop exit tests so as to avoid performing an
53600         additional fread after encountering an error or EOF.
53601         * lib/realloc.c: Update copyright date.
53602
53603 2003-08-15  Jim Meyering  <jim@meyering.net>
53604         and Paul Eggert  <eggert@twinsun.com>
53605
53606         Merge from coreutils.
53607         * lib/readutmp.h (HAVE_UTMPX_H): Undef if struct utmp has the ut_exit
53608         member but strut utmpx does not.  Needed for AIX 4.3.3.
53609         (UT_EXIT_E_TERMINATION, UT_EXIT_E_EXIT): Define.
53610
53611 2003-08-15  Jim Meyering  <jim@meyering.net>
53612         and Paul Eggert  <eggert@cs.ucla.edu>
53613
53614         Merges from coreutils, etc.
53615         * m4/strftime.m4 (_jm_STRFTIME_PREREQS):
53616         Require gl_FUNC_TZSET_CLOBBER.
53617         * m4/readutmp.m4 (gl_READUTMP): Check for ut_exit.ut_exit,
53618         ut_exit.e_exit, ut_exit.ut_termination, and ut_exit.e_termination
53619         members.
53620
53621 2003-08-14  Paul Eggert  <eggert@twinsun.com>
53622
53623         Help the merge from coreutils.
53624         * m4/gettimeofday.m4 (gl_GETTIMEOFDAY_REPLACE_LOCALTIME): New macro.
53625         (AC_FUNC_GETTIMEOFDAY_CLOBBER): Use it.
53626         * m4/tzset.m4: Use it too.
53627
53628 2003-08-14  Paul Eggert  <eggert@twinsun.com>
53629
53630         * modules/tzset: New file.
53631
53632 2003-08-14  Jim Meyering  <jim@meyering.net>
53633
53634         Merges from coreutils.
53635         * modules/fnmatch: Use the `$(FNMATCH_H)' notation for AC_REPLACED
53636         variable names, rather than @FNMATCH_H@.
53637         * modules/alloca: Likewise for $(ALLOCA_H).
53638
53639         * modules/fnmatch (fnmatch.h): Use `$@' in the commands, in place of
53640         the three copies of the literal target, `fnmatch.h'.
53641         * modules/alloca (alloca.h): Likewise.
53642
53643 2003-08-14  Jim Meyering  <jim@meyering.net>
53644
53645         Merge from coreutils.
53646         * m4/tzset.m4: New file.
53647         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Move the
53648         MOUNTED_VMOUNT test to precede the MOUNTED_GETMNTENT1 tests, since
53649         otherwise, AIX 5.1 systems would end up using the latter.
53650         MOUNTED_GETMNTENT1 support is inadequate on such systems: 1) detecting
53651         whether a file system is remote doesn't work  2) the MOUNTED_VMOUNT
53652         code reports the HOSTNAME:/MOUNT_POINT, while the MOUNTED_GETMNTENT1
53653         code reports merely /MOUNT_POINT.  Reported by Mike Jetzer.
53654
53655 2003-08-14  Jim Meyering  <jim@meyering.net>
53656
53657         Merge from coreutils.
53658         * lib/obstack.h: Whitespace changes.
53659         * lib/mountlist.c: Remove anachronistic casts of xmalloc, xrealloc,
53660         and xcalloc return values.
53661         (read_filesystem_list) [MOUNTED_GETFSSTAT]:
53662         Use MNT_NOWAIT, rather than MNT_WAIT.  Otherwise, `df DIR' could
53663         hang on OSF/1 5.1 for DIR on both local and remote file systems.
53664         Reported by (and fix confirmed by) Nelson H. F. Beebe.
53665         (read_filesystem_list) [MOUNTED_VMOUNT]: Detect any
53666         error from mntctl.
53667         Use mntctl's return value to drive the entry-processing loop, since
53668         we can't rely on the value of the vmt_length member in the last
53669         entry.  On some systems doing so could result in exhausting
53670         virtual memory.  Based in part on a patch from Mike Jetzer.
53671
53672 2003-08-14  Jim Meyering  <jim@meyering.net>
53673         and Paul Eggert  <eggert@twinsun.com>
53674
53675         Merges from coreutils, plus other fixes.
53676         * lib/physmem.c: Merge in portability changes from gcc/libiberty
53677         to support AIX, IRIX, Tru64, and Windows.  See the ChangeLog there
53678         for credits and details.  Thanks to Kaveh Ghazi for helping
53679         to keep these files in sync.
53680         (ARRAY_SIZE): Define it.
53681         (physmem_total, physmem_available): Add comments. From Kaveh Ghazi.
53682         * lib/memcasecmp.c: Remove unnecessary parentheses after 'defined'.
53683         (memcasecmp): Don't assume size_t fits in unsigned int.
53684         Remove casts and duplicate code.
53685         * lib/md5.c: Include <string.h> and <stdlib.h> unconditionally.
53686         (memcpy): Remove definition.
53687         Merge in some clean-up and optimization changes from glibc.
53688         [BLOCKSIZE]: Move definition to top of file.
53689         Ensure that it is a multiple of 64.
53690         Rearrange loop exit tests so as to avoid performing an
53691         additional fread after encountering an error or EOF.
53692         * lib/md5.h (md5_uintptr): Define.
53693         * lib/makepath.c (CLEANUP_CWD): Report an error if we failed to
53694         return to the initial working directory.  Preserve errno
53695         for caller.
53696         * lib/idcache.c: Include "xalloc.h".
53697         (xmalloc, xrealloc): Remove decls.
53698         (getuser): Remove casts no longer required in C89.
53699         * lib/human.c: Include stdio.h, for sprintf.
53700         * lib/group-member.c: Include "xalloc.h".
53701         (xmalloc, xrealloc): Remove decls.
53702         (get_group_info): Remove casts no longer required in C89.
53703         * lib/getusershell.c (readname): Remove casts no longer required in
53704         C89.
53705         * lib/gettimeofday.c (rpl_gmtime, rpl_tzset): New functions.
53706         * lib/getline.c: Whitespace fix, from coreutils.
53707
53708 2003-08-13  Paul Eggert  <eggert@twinsun.com>
53709
53710         * m4/exclude.m4 (gl_EXCLUDE): Require AC_C_INLINE, AC_HEADER_STDC.
53711         Check for isascii.
53712
53713         * m4/gettext.m4, iconv.m4, intdiv0.m4, inttypes-pri.m4, lib-link.m4,
53714         lib-prefix.m4, longdouble.m4, po.m4, progtest.m4, signed.m4:
53715         Undo previous (whitespace-only) change.
53716
53717 2003-08-13  Paul Eggert  <eggert@twinsun.com>
53718
53719         * lib/exclude.c: Include <ctype.h>
53720         (IN_CTYPE_DOMAIN): New macro.
53721         (is_space): New fn.
53722         (add_exclude_file): If LINE_END is a space, ignore trailing spaces
53723         and empty lines.
53724
53725         * lib/argp-help.c, argp-parse.c, config.charset, getopt.h:
53726         Undo previous (whitespace-only) change.
53727
53728 2003-08-13  Paul Eggert  <eggert@twinsun.com>
53729
53730         * config/srclist-update: Change update back to the old behavior,
53731         leaving whitespace alone.  Use one 'sed' command rather than a
53732         pipeline.
53733         (fixlicense): Now a variable, not a function.
53734         (remove_trailing_blanks): Remove.
53735         (fixfile): Don't invoke unexpand or cat, or remove trailing blanks.
53736         * config/config.guess, config.sub, install-sh, missing, texinfo.tex:
53737         Undo previous (whitespace-only) change.
53738
53739 2003-08-12  Paul Eggert  <eggert@twinsun.com>
53740
53741         Merge from coreutils.
53742         * modules/euidaccess: Add lib_SOURCES, include for new
53743         file euidaccess.h
53744
53745 2003-08-12  Paul Eggert  <eggert@twinsun.com>
53746
53747         * m4/gettext.m4, iconv.m4, intdiv0.m4, inttypes-pri.m4, lib-link.m4,
53748         lib-prefix.m4, longdouble.m4, po.m4, progtest.m4, signed.m4:
53749         Normalize leading white space and remove trailing white space.
53750
53751         Merge from coreutils
53752         * m4/euidaccess.m4 (gl_FUNC_EUIDACCESS): Check for euidaccess decl.
53753
53754         * m4/lib-ld.m4, lib-link.m4, lib-prefix.m4: Regenerate from gettext
53755         0.12.1.  These files are now being upgraded automatically by
53756         ../config/srclist-update.
53757
53758 2003-08-12  Paul Eggert  <eggert@twinsun.com>
53759
53760         * lib/argp-help.c, argp-parse.c, config.charset, getopt.h:
53761         Normalize leading white space and remove trailing white space.
53762         * lib/ref-add.sin, ref-del.sin: Use '#' before empty line in copyright
53763         notice, as per ../config/srclist-update.
53764
53765         Merge from coreutils.
53766         * lib/euidaccess.h: New file.
53767         * lib/euidaccess.c: Include it.
53768         * lib/.cppi-disable: Add printf-args.h, printf-parse.h, stdbool_.h,
53769         vasnprintf.h, vasprintf.h.  Remove strdup.c, gettext.h.
53770         * lib/regex.h, strdup.c, strtoll.c, strtoul.c: Normalize white space.
53771
53772 2003-08-12  Paul Eggert  <eggert@twinsun.com>
53773
53774         * config/srclist-update: Add copyright notice.
53775         (remove_id_lines, remove_trailing_blanks): New constants.
53776         (fixfile): Use them to normalize spacing a bit in copied files.
53777         * config/config.guess, config.sub, install-sh, missing, texinfo.tex:
53778         Normalize leading white space and remove trailing white space.
53779
53780         * config/texinfo.tex: Sync with texinfo.
53781
53782         * config/srclist.txt: Don't get regex.h, strdup.c, strtoll.c,
53783         strtoul.c from libc, to merge coreutils whitespace changes.
53784
53785         * config/srclist.txt: Get the following m4 files from gettext:
53786         codeset.m4, gettext.m4, glibc21.m4, iconv.m4, intdiv0.m4,
53787         inttypes-pri.m4, lcmessage.m4, lib-ld.m4, lib-link.m4, lib-prefix.m4,
53788         longdouble.m4, nls.m4, po.m4, progtest.m4, signed.m4, wchar_t.m4,
53789         wint_t.m4.
53790
53791 2003-08-12  Karl Berry  <karl@gnu.org>
53792
53793         * config/srclist.txt: can't sync vasnprintf.c any more, changes have
53794         been made.
53795
53796 2003-08-11  Paul Eggert  <eggert@twinsun.com>
53797
53798         * modules/gnu-source, m4/gnu-source.m4:
53799         Remove; we're assuming Autoconf 2.54 or later now.
53800         Suggested by Bruno Haible.
53801         * MODULES.html.sh (func_all_modules): Remove gnu-source.
53802
53803 2003-08-11  Bruno Haible  <bruno@clisp.org>
53804
53805         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF): Also check for wcslen.
53806
53807 2003-08-11  Bruno Haible  <bruno@clisp.org>
53808
53809         * lib/vasnprintf.c (local_wcslen): New function, for Solaris 2.5.1.
53810         (vasnprintf): Use it instead of wcslen.
53811
53812 2003-08-11  Bruno Haible  <bruno@clisp.org>
53813
53814         * lib/stdbool_.h (_Bool): Undo last change; instead use a negative enum
53815         value to ensure that _Bool promotes to int. Use #define for _Bool when
53816         using the Solaris C compiler. Adds comments suggested by Paul Eggert.
53817
53818 2003-08-10  Karl Berry  <karl@gnu.org>
53819
53820         * lib/regex.h: update from libc (whitespace fix).
53821
53822 2003-08-09  Paul Eggert  <eggert@twinsun.com>
53823
53824         Merge some files from coreutils.  These changes were
53825         originally made by Jim Meyering.
53826         * lib/acl.c: Include <sys/types.h> before <sys/stat.h>;
53827         many older Unixes require this.
53828         * lib/alloca.c (alloca): Remove cast to argument of free;
53829         no longer needed in C89.
53830         * lib/alloca_.h, regex.h: Fix white space to match
53831         what GNU indent does.
53832
53833 2003-08-09  Paul Eggert  <eggert@twinsun.com>
53834
53835         * m4/regex.m4 (jm_INCLUDED_REGEX): Change "\201" to "\371";
53836         apparently Emacs's Unicode mode got confused before my 2003-08-05
53837         checkin.
53838
53839 2003-08-08  Paul Eggert  <eggert@twinsun.com>
53840
53841         * m4/extensions.m4: New file.
53842         * m4/timespec.m4 (jm_CHECK_TYPE_STRUCT_TIMESPEC):
53843         Require gl_USE_SYSTEM_EXTENSIONS.
53844         * m4/unlocked-io.m4 (jm_FUNC_GLIBC_UNLOCKED_IO):
53845         Require gl_USE_SYSTEM_EXTENSIONS rather than AC_GNU_SOURCE.
53846
53847 2003-08-08  Paul Eggert  <eggert@twinsun.com>
53848
53849         * MODULES.html.sh (func_all_modules): Add extensions, gnu-source.
53850         * modules/extensions, modules/gnu-source: New files.
53851         * modules/timespec, modules/unlocked-io: Depend on extensions.
53852
53853 2003-08-07  Paul Eggert  <eggert@twinsun.com>
53854
53855         * modules/restrict: New file.
53856         * MODULES.html.sh (func_all_modules): Add restrict.
53857         * modules/regex: Depend on restrict.
53858
53859 2003-08-07  Paul Eggert  <eggert@twinsun.com>
53860
53861         * m4/restrict.m4: New file.
53862         * m4/regex.m4 (jm_PREREQ_REGEX): Add gl_C_RESTRICT.
53863
53864 2003-08-07  Bruno Haible  <bruno@clisp.org>
53865
53866         * modules/getndelim2 (Makefile.am): Add the files to EXTRA_DIST, not
53867         lib_SOURCES, because getndelim2.m4 now uses AC_LIBOBJ(getndelim2).
53868
53869 2003-08-07  Bruno Haible  <bruno@clisp.org>
53870
53871         * m4/getndelim2.m4 (gl_GETNDELIM2): Use AC_LIBOBJ(getndelim2). This
53872         makes the module 'getndelim2' compatible with the module 'getline'.
53873
53874 2003-08-05  Paul Eggert  <eggert@twinsun.com>
53875
53876         * m4/regex.m4 (jm_INCLUDED_REGEX): Replace a single non-ASCII
53877         byte with "\201" to avoid glitches when editing that source file
53878         with multi-gnome-terminal.
53879
53880 2003-08-05  Paul Eggert  <eggert@twinsun.com>
53881
53882         * lib/bumpalloc.h: Remove.
53883
53884 2003-08-05  Paul Eggert  <eggert@twinsun.com>
53885
53886         * MODULES.html.sh (func_all_modules): Remove bumpalloc.
53887         * modules/bumpalloc: Remove.
53888
53889 2003-08-04  Paul Eggert  <eggert@twinsun.com>
53890
53891         * lib/getloadavg.c: Change copyright notice and spacing to conform to
53892         GNU coding style.
53893
53894         Merge from coreutils.
53895         * lib/error.c [!USE_IN_LIBIO]: Omit this case; assume USE_IN_LIBIO is
53896         1. From glibc.
53897         * lib/getdate.y (date): Also accept dates like May-23-2003; suggestion
53898         from Karl Berry, implemented by Jim Meyering.
53899         * lib/getgroups.c: Include "xalloc.h" instead of declaring xalloc fns;
53900         from Dmitry V. Levin.
53901         Remove anachronistic cast of xrealloc.
53902         * lib/fnmatch_.h (__const): Remove.  Use 'const'.
53903         * lib/fnmatch_loop.c (NEW_PATTERN): Cast alloca return value to proper
53904         type. Otherwise, it wouldn't compile with at least /bin/cc on
53905         ymp-cray-unicos9.0.2.X.
53906         Combine two mostly-identical uses of alloca into one.
53907         Thanks to the Cray-Cyber project for access to a Cray Y-MP.
53908
53909 2003-08-04  Dave Love  <d.love@dl.ac.uk>
53910
53911         [From Emacs.]
53912
53913         * lib/getloadavg.c: Check `__unix' as well as `unix'.  Use #ifdef, not
53914         #if.  Check HAVE_LIBKSTAT as well as LOAD_AVE_TYPE.  Check
53915         F_SETFD, not FD_SETFD.  Use HAVE_STRUCT_NLIST_N_UN_N_NAME, not
53916         obsolete NLIST_NAME_UNION.
53917         [__GNU__]: Undef BSD and FSCALE.
53918         [!NLIST_STRUCT]: Remove conditional definition of NLIST_STRUCT.
53919
53920 2003-08-03  Paul Eggert  <eggert@twinsun.com>
53921
53922         * lib/stdbool_.h (_Bool): Make it signed char, instead of
53923         an enum type, so that it's guaranteed to promote to int.  See:
53924         <http://mail.gnu.org/archive/html/bug-gnulib/2003-07/msg00124.html>
53925
53926 2003-08-03  Karl Berry  <karl@gnu.org>
53927
53928         * config/depcomp: update from automake.
53929
53930 2003-07-31  Paul Eggert  <eggert@twinsun.com>
53931
53932         * lib/strerror.c: Include config.h, limits.h.  Declare sprintf.
53933         (strerror): Don't assume that a printable int fits in 14 bytes.
53934
53935 2003-07-31  Bruno Haible  <bruno@clisp.org>
53936
53937         * modules/getpass-gnu: New file.
53938         * MODULES.html.sh (func_all_modules): Add getpass-gnu.
53939
53940 2003-07-31  Bruno Haible  <bruno@clisp.org>
53941
53942         * m4/getpass.m4 (gl_FUNC_GETPASS_GNU): New macro.
53943
53944 2003-07-24  Karl Berry  <karl@gnu.org>
53945
53946         * config/missing: update from automake.
53947
53948 2003-07-24  Derek Robert Price  <derek@ximbiot.com>
53949             Bruno Haible  <bruno@clisp.org>
53950
53951         * lib/getline.h (getline, getdelim): Change return type to ssize_t.
53952         * lib/getline.c (getline, getdelim): Likewise.
53953         Remove _GNU_SOURCE define; now it's defined in config.h through
53954         m4/getline.m4.
53955
53956 2003-07-23  Karl Berry  <karl@gnu.org>
53957
53958         * config/config.sub: update from prep.
53959
53960 2003-07-22  Paul Eggert  <eggert@twinsun.com>
53961
53962         * modules/xalloc (Depends-on): Add exitfail.
53963         * modules/xmemcoll: Likewise.
53964
53965 2003-07-22  Paul Eggert  <eggert@twinsun.com>
53966
53967         * lib/xalloc.h (XCALLOC, XREALLOC, CCLONE): Fix under- and
53968         over-parenthesization in macros.
53969
53970         Sync with coreutils.
53971
53972         * lib/xalloc.h (XMALLOC, XCALLOC, XREALLOC): Remove casts not
53973         required by C99.
53974
53975         Use `exit_failure' for xalloc and xmemcoll instead of their own
53976         private exit-failure variables.
53977         * lib/xalloc.h (xalloc_exit_failure): Remove.
53978         * lib/xmalloc.c: Likewise.  Include exitfail.h.
53979         (xalloc_die): Use exit_failure instead of xalloc_exit_failure.
53980         * lib/xmemcoll.h (xmemcoll_exit_failure): Remove.
53981         * lib/xmemcoll.c: Likewise.  Include exitfail.h.
53982         (xmemcoll): Use exit_failure instead of xalloc_exit_failure.
53983
53984 2003-07-20  Jim Meyering  <jim@meyering.net>
53985
53986         * modules/closeout (Depends-on): Add exitfail.
53987         Suggestion from Bruno Haible.
53988
53989 2003-07-19  Karl Berry  <karl@gnu.org>
53990
53991         * config/config.sub: update from prep.
53992
53993 2003-07-18  Paul Eggert  <eggert@twinsun.com>
53994
53995         * lib/closeout.h (close_stdout_set_status, close_stdout_status):
53996         Remove.
53997         * lib/closeout.c: Likewise.  Include "closeout.h" right after config.h,
53998         to test that it can stand by itself.  Include "exitfail.h".
53999         Clients should set exit_failure instead.
54000         (EXIT_FAILURE): Remove; no longer needed.  Do not include <stdlib.h>.
54001
54002 2003-07-18  Bruno Haible  <bruno@clisp.org>
54003
54004         * modules/getndelim2: New file.
54005         * modules/getline: Share files with module getndelim2.
54006         * modules/getnline: Depend on getndelim2 instead of sharing files with
54007         it. Add getnline.c to lib_SOURCES.
54008         * MODULES.html.sh (func_all_modules): Add getndelim2.
54009
54010 2003-07-18  Bruno Haible  <bruno@clisp.org>
54011
54012         * m4/getndelim2.m4: New file.
54013         * m4/getline.m4 (AM_FUNC_GETLINE): Add AC_LIBOBJ of getndelim2.c and
54014         invoke gl_PREREQ_GETNDELIM2.
54015         (gl_PREREQ_GETLINE): Drop AC_HEADER_STDC, now done by
54016         gl_PREREQ_GETNDELIM2.
54017         * m4/getnline.m4 (gl_GETNLINE): Drop AC_HEADER_STDC, now done by
54018         gl_GETNDELIM2.
54019
54020 2003-07-18  Bruno Haible  <bruno@clisp.org>
54021
54022         * lib/getndelim2.h: New file.
54023         * lib/getndelim2.c: Make into a module of its own. Include config.h,
54024         getndelim2.h.
54025         (getndelim2): Make non-static. Change return type to ssize_t.
54026         * lib/getline.h: Change argument names.
54027         * lib/getline.c: Include getndelim2.h instead of getndelim2.c.
54028         * lib/getnline.c: Include getndelim2.h.
54029
54030 2003-07-18  Andreas Schwab  <schwab@suse.de>
54031
54032         * lib/memcoll.c (memcoll) [!HAVE_STRCOLL]: Clear errno.
54033
54034 2003-07-17  Karl Berry  <karl@gnu.org>
54035
54036         * config/config.sub: update from prep.
54037
54038 2003-07-17  Bruno Haible  <bruno@clisp.org>
54039
54040         * modules/getnline: New file.
54041         * modules/getline: Add lib/getndelim2.c to source file list.
54042         * MODULES.html.sh (func_all_modules): Add getnline.
54043
54044 2003-07-17  Bruno Haible  <bruno@clisp.org>
54045
54046         * m4/getnline.m4: New file.
54047
54048 2003-07-17  Bruno Haible  <bruno@clisp.org>
54049
54050         * m4/Makefile.am.in: Remove file.
54051         * m4/Makefile.am: Remove file.
54052         * m4/Makefile.in: Remove file.
54053
54054 2003-07-17  Bruno Haible  <bruno@clisp.org>
54055
54056         * lib/getnline.h: New file.
54057         * lib/getnline.c: New file.
54058         * lib/getndelim2.c: New file, extracted from getline.c.
54059         (getndelim2): Renamed from getdelim2, with added nmax argument.
54060         * lib/getline.c: Include getndelim2.c.
54061         (getdelim2): Moved out to getndelim2.c.
54062         (getline, getdelim): Update.
54063
54064 2003-07-17  Bruno Haible  <bruno@clisp.org>
54065
54066         * lib/Makefile.am: Remove file.
54067         * lib/Makefile.in: Remove file.
54068
54069 2003-07-17  Bruno Haible  <bruno@clisp.org>
54070
54071         * configure.in: Remove file.
54072         * Makefile.in: Remove file.
54073
54074 2003-07-17  Bruno Haible  <bruno@clisp.org>
54075
54076         * MODULES.html.sh: Put the </BODY> right before </HTML>.
54077
54078 2003-07-16  Karl Berry  <karl@gnu.org>
54079
54080         * config/srclist-update: was running fixlicense twice, which caused
54081                 texinfo.tex to be nullified for some reason.  Simplify,
54082                 $gplsrc is no longer needed as far as I can see?
54083
54084 2003-07-16  Jim Meyering  <jim@meyering.net>
54085
54086         * modules/save-cwd: Depend on xgetcwd.  From Derek Price.
54087
54088 2003-07-15  Paul Eggert  <eggert@twinsun.com>
54089
54090         * config/srclist.txt: Get the following files from gettext-runtime/intl
54091         instead: config.charset, localcharset.c, localcharset.h, ref-add.sin,
54092         ref-del.sin.  From Bruno Haible.
54093         * config/srclist-update (fixfile): Change grep pattern again, since the
54094         previous fix didn't work (there was another trailing $).  Use
54095         '[$]' to escape the $s.
54096
54097 2003-07-15  Karl Berry  <karl@gnu.org>
54098
54099         * lib/vasnprintf.c: update from gettext.
54100
54101 2003-07-15  Karl Berry  <karl@gnu.org>
54102
54103         * config/srclist-update (fixfile): Change grep pattern, since 'Id'
54104         gets expanded when surrounded by '$'.
54105
54106 2003-07-15  Jim Meyering  <jim@meyering.net>
54107
54108         * modules/save-cwd: Don't depend on error.  From Derek Price.
54109
54110 2003-07-15  Jim Meyering  <jim@meyering.net>
54111
54112         * lib/makepath.c (make_path): Enclose diagnostic in _(...).
54113
54114 2003-07-14  Simon Josefsson  <jas@extundo.com>
54115
54116         * modules/mempcpy: New file.
54117         * MODULES.html.sh (func_all_modules): Add mempcpy.
54118
54119 2003-07-14  Simon Josefsson  <jas@extundo.com>
54120
54121         * m4/mempcpy.m4: New file.
54122
54123 2003-07-14  Simon Josefsson  <jas@extundo.com>
54124
54125         * lib/mempcpy.h: New file.
54126         * lib/mempcpy.c: New file.
54127
54128 2003-07-14  Paul Eggert  <eggert@twinsun.com>
54129
54130         * modules/getdate, modules/posixtm: Depend on mktime.
54131
54132 2003-07-14  Paul Eggert  <eggert@twinsun.com>
54133
54134         * lib/ceill.c, expl.c, floorl.c, frexpl.c, ldexpl.c, mathl.h,
54135         sincosl.c, sqrtl.c, trigl.c, trigl.h, poll.c, poll_.h, mkstemp.c,
54136         unicodeio.c, unicodeio.h, unlocked-io.h:
54137         Switch from LGPL to GPL.
54138
54139 2003-07-14  Paul Eggert  <eggert@twinsun.com>
54140
54141         * lib/asnprintf.c, asprintf.c, config.charset, gettext.h,
54142         localcharset.c, localcharset.h, mkdtemp.c, printf-args.c,
54143         printf-args.h, printf-parse.c, printf-parse.h, ref-add.sin,
54144         ref-del.sin, setenv.c, unsetenv.c, vasnprintf.c, vasnprintf.h,
54145         vasprintf.c, vasprintf.h: Regenerate.  These files are now being
54146         updated automatically by ../config/srclist-update.  This changes
54147         their license from LPGL to GPL.
54148
54149 2003-07-14  Paul Eggert  <eggert@twinsun.com>
54150
54151         * config/srclist.txt: Add tons more gettext files.  $GETTEXT is now
54152         assumed to refer to the root of the most recent stable gettext version.
54153         * config/srclistvars.sh: Add defaults for eggert.
54154         * config/srclist-update: Convert LGPL to GPL in shell scripts, too.
54155         Match "This program" as well as "The program".  This is needed
54156         for gettext.
54157
54158 2003-07-14  Jim Meyering  <jim@meyering.net>
54159
54160         Don't emit diagnostics.  Let callers do that.
54161         * lib/save-cwd.c: Don't include "error.h".
54162         (save_cwd): Don't call error.  Ensure that errno is valid
54163         when returning nonzero.
54164
54165         * lib/save-cwd.h (restore_cwd): Update prototype.
54166         * lib/save-cwd.c (restore_cwd): Remove two parameters.
54167         Simplify.  Don't call error upon failure.  Let callers do that.
54168         (save_cwd): Mention that Irix 5.3 has the same problem as SunOS 4
54169         when auditing is enabled.  But don't bother updating the #if.
54170
54171 2003-07-11  Alexandre Duret-Lutz  <adl@gnu.org>
54172
54173         * lib/obstack.h (__INT_TO_PTR): Revert change of 2003-03-13;
54174         it breaks C++ compilation.
54175         [!__GNUC__ || !__STDC__] (obstack_finish): Cast result to void*.
54176
54177 2003-07-10  Simon Josefsson  <jas@extundo.com>
54178
54179         * modules/strchrnul (Makefile.am): Add strchrnul.h.
54180
54181 2003-07-10  Jim Meyering  <jim@meyering.net>
54182
54183         * m4/clock_time.m4: Remove trailing blank.
54184         * m4/intmax_t.m4: Likewise.
54185
54186 2003-07-10  Jim Meyering  <jim@meyering.net>
54187
54188         * lib/vasnprintf.c: Remove trailing blanks.
54189         Make cpp indentation consistent.
54190
54191 2003-07-09  Paul Eggert  <eggert@twinsun.com>
54192
54193         * lib/alloca_.h, euidaccess.c, getpass.c, memrchr.c, obstack.h,
54194         posixver.c, strftime.c, strnlen.c, strverscmp.c:
54195         Switch from LGPL to GPL.
54196
54197 2003-07-09  Paul Eggert  <eggert@twinsun.com>
54198
54199         * config/srclist.txt: Sort sublists.  Add
54200         $LIBCSRC/sysdeps/generic/strtoul.c. In comments, add more libc files
54201         that differ from gnulib for one reason or another; we'd like this list
54202         to be smaller but for now let's document what we have.
54203
54204 2003-07-08  Paul Eggert  <eggert@twinsun.com>
54205
54206         * config/srclist-update: Port to POSIX 1003.1-2001 hosts by avoiding
54207         the use of GNU extensions.  Change "x=`eval echo $x`" to the shorter
54208         and sweeter "eval x=$x".
54209         * config/srclist.txt: Get lib/argp* from glibc.
54210
54211 2003-07-07  Paul Eggert  <eggert@twinsun.com>
54212
54213         * lib/mktime.c: Fix some boundary cases and remove need for floating
54214         point.
54215
54216         Issue a compile-time diagnostic if time_t is floating point, or if
54217         two's complement arithmetic is not in effect, or if arithmetic
54218         right shift does not propagate the sign.  These assumptions were
54219         all in the original code but they weren't checked.
54220
54221         (TIME_T_MIDPOINT, verify): New macros.
54222         (__isleap): Remove; it has integer overflow problems.
54223         (leapyear): New function, without those problems.
54224         (ydhms_tm_diff): Remove; splitting into two parts.
54225         (ydhms_diff): New function, containing the arithmetic part of
54226         the old ydhms_tm_diff function.  Issue a compile-time
54227         diagnostic if we are not using C99 integer division.
54228         Avoid casts when possible.
54229         (guess_time_tm): New function, containing the checking part of
54230         the old ydhms_tm_diff function.  Return the new value, rather than
54231         the difference between it and the old.  Accept a new argument T
54232         so that *T specifies the old value.  Check for overflow in the result.
54233
54234         (__mktime_internal): Use a time_t offset, not a long int offset.
54235         This undoes the 2003-06-04 change, which is no longer needed now
54236         that we have better overflow checking.
54237         (localtime_offset): Likewise.
54238
54239         (__mktime_internal): Avoid harmful overflow on hosts where time_t
54240         and long are 64-bit but int is only 32-bit.
54241         (ydhms_diff): Use long int to store year1 and yday1.
54242         Issue a compile-time diagnostic if long int is not wide enough.
54243
54244         (__mktime_internal): Use long int to store adjusted year and yday.
54245         Use plain C rather than preprocessor commands, if that doesn't
54246         affect efficiency.
54247         Check for overflow (and try to repair) after each probe
54248         rather than checking only at the very end.  This avoids some bugs
54249         (e.g., southern hemisphere, behind GMT, and GMT offset at minimum time
54250         does not equal GMT offset at maximum time).
54251         Use integer to check for overflow rather than floating point; this
54252         is more portable to non-IEEE hosts, and is a tad faster.
54253         When we detect that we are oscillating between two values,
54254         don't check whether tm_isdst has the requested value, since
54255         we already know the answer.  When tm_isdst has the wrong value,
54256         use a different heuristic to find the right one, based on the
54257         extreme values actually observed in practice in tz2003a,
54258         rather than the (overly optimistic) "previous 3 calendar quarters".
54259
54260         (not_equal_tm, print_tm, check_result): Use "const T" rather than
54261         "T const" to accommodate glibc style.
54262         (check_result): Use less-confusing report format.  "long" -> "long int.
54263         (main): Likewise.
54264         Don't loop if the iteration overflows time_t.
54265         Allow a negative step in the iteration.
54266
54267 2003-07-06  Karl Berry  <karl@gnu.org>
54268
54269         * config/depcomp: update from automake.
54270         * config/config.sub: update from prep.
54271
54272 2003-07-03  Karl Berry  <karl@gnu.org>
54273
54274         * config/config.guess: update from prep.
54275
54276 2003-07-01  Paul Eggert  <eggert@twinsun.com>
54277
54278         * m4/xreadlink.m4 (gl_XREADLINK): Don't check for sys/types.h, since
54279         xreadlink.c now includes it unconditionally.
54280
54281 2003-07-01  Paul Eggert  <eggert@twinsun.com>
54282
54283         * lib/xreadlink.c: Include <sys/types.h> unconditionally, instead of
54284         having it depend on HAVE_SYS_TYPES_H.
54285
54286 2003-07-01  Bruno Haible  <bruno@clisp.org>
54287
54288         * m4/ssize_t.m4 (gt_TYPE_SSIZE_T): Don't include <unistd.h>.
54289         <sys/types.h> should be sufficient.
54290         Reported by Paul Eggert.
54291
54292 2003-06-26  Karl Berry  <karl@gnu.org>
54293
54294         * config/depcomp: update from automake.
54295
54296 2003-06-26  Bruno Haible  <bruno@clisp.org>
54297
54298         * modules/human: Depend on module stdbool.
54299
54300 2003-06-25  Bruno Haible  <bruno@clisp.org>
54301
54302         * modules/readlink: New file.
54303         * modules/xreadlink: Depend on it.
54304         * MODULES.html.sh (func_all_modules): Add readlink.
54305
54306 2003-06-25  Bruno Haible  <bruno@clisp.org>
54307
54308         * m4/readlink.m4: New file.
54309
54310 2003-06-25  Bruno Haible  <bruno@clisp.org>
54311
54312         * lib/readlink.c: New file.
54313
54314 2003-06-22  Karl Berry  <karl@gnu.org>
54315
54316         * config/srclist.txt: update mkinstalldirs from automake.
54317         * config/mkinstalldirs: update.
54318
54319 2003-06-22  Bruno Haible  <bruno@clisp.org>
54320
54321         Portability to mingw32.
54322         * m4/ssize_t.m4: New file, from GNU gettext.
54323         * m4/safe-read.m4 (gl_PREREQ_SAFE_READ): Require gt_TYPE_SSIZE_T.
54324         * m4/xreadlink.m4 (gl_XREADLINK): Require gt_TYPE_SSIZE_T.
54325
54326 2003-06-22  Bruno Haible  <bruno@clisp.org>
54327
54328         * modules/safe-read: Add m4/ssize_t.m4.
54329         * modules/xreadlink: Add m4/ssize_t.m4.
54330
54331 2003-06-20  Bruno Haible  <bruno@clisp.org>
54332
54333         Assume C89, so PARAMS isn't needed.
54334         * lib/unicodeio.h (PARAMS): Remove.
54335         * lib/unicodeio.c: Don't use PARAMS.
54336
54337 2003-06-18  Karl Berry  <karl@gnu.org>
54338
54339         * config/config.{guess,sub}: update from prep.
54340
54341 2003-06-18  Jim Meyering  <jim@meyering.net>
54342
54343         Merge changes from coreutils.
54344         * lib/readutmp.c: Include <string.h> and <stdlib.h> unconditionally.
54345         Remove explicit declarations of xmalloc and realloc.
54346         Include xalloc.h.
54347         (read_utmp): Remove anachronistic cast of xmalloc.
54348
54349 2003-06-17  Paul Eggert  <eggert@twinsun.com>
54350
54351         Assume C89, so PARAMS isn't needed.
54352         * lib/backupfile.h (PARAMS): Remove.  All uses removed.
54353         * lib/closeout.h, lib/dirname.h, lib/filemode.h, lib/fsusage.h,
54354         lib/getdate.h, lib/getline.h, lib/group-member.h, lib/hard-locale.h,
54355         lib/hash.h, lib/linebuffer.h, lib/long-options.h, lib/makepath.h,
54356         lib/memcasecmp.h, lib/memcoll.h, lib/modechange.h, lib/mountlist.h,
54357         lib/path-concat.h, lib/physmem.h, lib/posixtm.h, lib/quote.h,
54358         lib/readutmp.h, lib/same.h, lib/save-cwd.h, lib/savedir.h,
54359         lib/stdio-safer.h, lib/strtoimax.c, lib/strverscmp.h,
54360         lib/unistd-safer.h, lib/version-etc.h, lib/xalloc.h, lib/xreadlink.h,
54361         lib/xstrtod.h, lib/xstrtol.h: Likewise.
54362         * lib/filemode.h, lib/hard-locale.h, lib/memcoll.h, lib/modechange.h,
54363         lib/physmem.h, lib/same.h, lib/strverscmp.h: Do not include config.h;
54364         no longer needed. Anyway, config.h should always be included before any
54365         other file.
54366
54367 2003-06-11  Simon Josefsson  <jas@extundo.com>
54368
54369         * modules/sysexits: New file.
54370         * MODULES.html.sh (func_all_modules): Add sysexits.
54371
54372 2003-06-11  Simon Josefsson  <jas@extundo.com>
54373
54374         * lib/sysexit_.h: New file.
54375
54376 2003-06-11  Derek Price  <derek@ximbiot.com>
54377
54378         * lib/stat.c [LSTAT]: Compile/use slash_aware_lstat only if it is
54379         necessary.
54380
54381 2003-06-11  Bruno Haible  <bruno@clisp.org>
54382
54383         * m4/sysexits.m4: New file.
54384
54385 2003-06-10  Simon Josefsson  <jas@extundo.com>
54386
54387         * lib/argp.h: New file, from glibc.
54388         * lib/argp-ba.c: New file, from glibc.
54389         * lib/argp-eexst.c: New file, from glibc.
54390         * lib/argp-fmtstream.c: New file, from glibc.
54391         * lib/argp-fmtstream.h: New file, from glibc.
54392         * lib/argp-fs-xinl.c: New file, from glibc.
54393         * lib/argp-help.c: New file, from glibc.
54394         * lib/argp-namefrob.h: New file, from glibc.
54395         * lib/argp-parse.c: New file, from glibc.
54396         * lib/argp-pv.c: New file, from glibc.
54397         * lib/argp-pvh.c: New file, from glibc.
54398         * lib/argp-xinl.c: New file, from glibc.
54399
54400 2003-06-10  Simon Josefsson  <jas@extundo.com>
54401
54402         * modules/strchrnul: New file.
54403
54404 2003-06-10  Simon Josefsson  <jas@extundo.com>
54405
54406         * modules/argp: New file.
54407
54408 2003-06-10  Simon Josefsson  <jas@extundo.com>
54409
54410         * m4/strchrnul.m4: New file.
54411
54412 2003-06-10  Simon Josefsson  <jas@extundo.com>
54413
54414         * lib/strchrnul.h: New file.
54415         * lib/strchrnul.c: New file.
54416
54417 2003-06-10  Bruno Haible  <bruno@clisp.org>
54418
54419         * MODULES.html.sh (func_all_modules): Add strchrnul and argp.
54420
54421 2003-06-07  Karl Berry  <karl@gnu.org>
54422
54423         * config/config.{guess,sub}: update from prep.
54424
54425 2003-06-07  Jim Meyering  <jim@meyering.net>
54426
54427         * modules/strtod: Use $(...) notation, not @...@ for
54428         AC_REPLACE'd variables.
54429         * modules/localcharset: Likewise.
54430
54431 2003-06-07  Jim Meyering  <jim@meyering.net>
54432
54433         * lib/readtokens.h: Put `Free Software Foundation, Inc.'
54434         in place of my name in the copyright comment.
54435         Remove definition and uses of __P.
54436
54437         From coreutils.
54438         * lib/stat.c: Don't declare xmalloc explicitly.
54439         Instead, include "xalloc.h".
54440         * lib/readtokens.c (readtokens): Remove anachronistic casts of xmalloc,
54441         xrealloc, and xcalloc return values.
54442         * lib/xgetcwd.c (xgetcwd): Include "xgetcwd.h".
54443         Improve comment.
54444         * lib/xgetcwd.h: Remove definition/uses of PARAMS.
54445
54446 2003-06-07  Bruno Haible  <bruno@clisp.org>
54447
54448         * modules/poll (Makefile.am): Use explicit creation rule for poll.h, to
54449         avoid AC_CONFIG_LINKS.
54450         * modules/fnmatch (Makefile.am): Use explicit creation rule for
54451         fnmatch.h, to avoid AC_CONFIG_LINKS.
54452         * modules/alloca (Makefile.am): Make creation of alloca.h Ctrl-C safe.
54453
54454 2003-06-07  Bruno Haible  <bruno@clisp.org>
54455
54456         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH, gl_FUNC_FNMATCH_POSIX,
54457         gl_FUNC_FNMATCH_GNU): Set FNMATCH_H instead of invoking
54458         AC_CONFIG_LINKS. Needed to allow for a different name of the lib
54459         directory.
54460         * m4/poll.m4 (gl_FUNC_POLL): Set POLL_H instead of invoking
54461         AC_CONFIG_LINKS. Needed to allow for a different name of the lib
54462         directory.
54463
54464 2003-06-06  Jim Meyering  <jim@meyering.net>
54465
54466         Merge from coreutils.
54467         * lib/same.c: (same_name): Declare *_basename locals to be `const'.
54468         Consolidate declarations and initializations of *_base* locals.
54469
54470         Merge from coreutils.
54471         This avoids a core dump on systems without GNU putenv,
54472         when running `env -u SOME_ALREADY_UNSET_VARIABLE'.
54473         * lib/putenv.c (__set_errno, LOCK, UNLOCK): Define.
54474         (unsetenv): New static function, from GNU libc.
54475         (rpl_putenv): Use it.
54476
54477         * lib/modechange.c: Remove trailing blanks.
54478
54479         Merge from coreutils.
54480         * lib/fsusage.c: Remove declaration of statfs.
54481         It conflicted with one from OSF/1 5.1 in <sys/mount.h>.
54482
54483         * lib/posixtm.c: Include <stdbool.h> unconditionally.
54484
54485 2003-06-06  Jim Meyering  <jim@meyering.net>
54486
54487         * lib/stdbool_.h: Renamed from stdbool.h.in.
54488
54489 2003-06-06  Jim Meyering  <jim@meyering.net>
54490             Bruno Haible  <bruno@clisp.org>
54491
54492         * modules/stdbool: Reflect renaming: stdbool.h.in -> stdbool_.h.
54493         Adjust Makefile.am snippet not to redirect directly to target.
54494         Use $(STDBOOL_H) notation, not @STDBOOL_H@ for AC_REPLACE'd variables.
54495
54496 2003-06-05  Paul Eggert  <eggert@twinsun.com>
54497
54498         * lib/mktime.c (__mktime_internal): When resolving a tm_isdst
54499         mismatch, look in future quarters as well as past.  This fixes a
54500         bug when processing fall-backwards gaps immediately after a long
54501         period of daylight-saving time.
54502
54503         * lib/mktime.c: Assume freestanding C89 or better.
54504         (HAVE_LIMITS_H): Remove.  Assume it's 1.
54505         (__P): Remove; not used.
54506         (CHAR_BIT, INT_MIN, INT_MAX): Remove; <limits.h> defines them.
54507         (mktime, not_equal_tm, print_tm, check_result,
54508         main): Use prototypes.  Use const * where appropriate.
54509         (main): Fix typo in testing code that uncovered by above changes.
54510         (Local Variables): Remove -DHAVE_LIMITS_H from compile-command.
54511
54512 2003-06-04  Paul Eggert  <eggert@twinsun.com>
54513
54514         * m4/human.m4 (gl_HUMAN): Require AM_STDBOOL_H.  Check for
54515         locale.h, localeconv.  This merges changes from coreutils.
54516
54517         * m4/mktime.m4 (AC_FUNC_MKTIME): New macro, taken from Autoconf CVS.
54518         It can be removed after the next Autoconf is released.
54519         * m4/exclude.m4 (gl_EXCLUDE): Don't check for sys/types.h; no loner
54520         needed.
54521
54522 2003-06-04  Paul Eggert  <eggert@twinsun.com>
54523
54524         * lib/mktime.c: Fix Debian bug 177940
54525         <http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=177940>.
54526         (localtime_offset): Now long int, not time_t, because we want it
54527         to be guaranteed to be signed.  All uses changed.
54528         (__mktime_internal): If overflow would occur when adding offset,
54529         don't add it.
54530
54531         Merge 'human' changes from coreutils.  Rewrite to support
54532         locale-specific notations like thousands separators.
54533         * lib/human.c: Simplify authorship notice.
54534         Include human.h immediately after config.h.
54535         <sys/types.h>, <stdio.h>: Do not include; no longer needed.
54536         <limits.h>: Do not include, since human.h does.
54537         (SIZE_MAX, UINTMAX_MAX): New macros.
54538         <strings.h>: Include if HAVE_STRINGS_H, not if !HAVE_STRING_H.
54539         <locale.h>: Include if HAVE_LOCALE_H and HAVE_LOCALECONV.
54540         (HUMAN_READABLE_SUFFIX_LENGTH_MAX): New macro.
54541         (power_letter): Renamed from suffixes.
54542         (generate_suffix_backwards): Remove.
54543         (adjust_value): Now takes int style (because of human.h changes)
54544         and long double value (for greater precision on some platforms).
54545         (group_number): New function.
54546         (human_readable): Use it.  Use integer options, not enum.
54547         Put the options before the sizes in the arg list.
54548         Support all the new options.
54549         The old human_readable function has been removed;
54550         use inttostr.h instead.
54551         (human_readable, default_block_size, humblock):
54552         Use uintmax_t, not int, for block sizes.
54553         (human_readable_inexact, block_size_types): Remove.
54554         (block_size_opts): New constant.
54555         (human_options): Renamed from human_block_size, with new signature
54556         that allows block sizes up to UINTMAX_MAX.  All callers changed.
54557         * lib/human.h: Add copyright and authorship notice.
54558         Include <limits.h> and <stdbool.h> unconditionally.
54559         (PARAMS): Remove.  All uses removed.
54560         (LONGEST_HUMAN_READABLE): Add support for thousands separator.
54561         (enum human_inexact_style): Remove tag; now a nameless enum.
54562         (human_floor, human_ceiling, human_round_to_even): Now have
54563         values 2, 0, 1 rather than -1, 1, 0.
54564         (human_group_digits, human_suppress_point_zero, human_autoscale,
54565         human_base_1024, human_SI, human_B): New constants.
54566         (human_readable_inexact, human_block_size): Remove.
54567         (human_readable): Size args are now uintmax_t, not int.
54568         (human_options): New decl.
54569
54570         * lib/exclude.c: (new_exclude, add_exclude): Remove casts that are
54571         unnecessary now that we assume C89 or better.  This change
54572         imported from coreutils.
54573
54574         * lib/mktime.c (__mktime_internal): Do not reject negative timestamps
54575         arbitrarily.  This is the same patch as 2003-05-28, but it got lost
54576         in the 2003-05-30 sync from glibc.
54577
54578         .h files should stand alone, but we shouldn't include <sys/types.h>
54579         if we can get away with just <stddef.h>.
54580
54581         * lib/__fpending.h, addext.c, backupfile.c, exclude.c, getline.c,
54582         malloc.c, putenv.c, realloc.c, strcasecmp.c: Include <stddef.h>
54583         rather than <sys/types.h>, as we merely need size_t.
54584         * lib/dirname.h, memcoll.h, xalloc.h, xmemcoll.h: Include <stddef.h>,
54585         to get size_t.
54586         * lib/hash.h, linebuffer.h, readtokens.h, stdio-safer.h, version-etc.h:
54587         Include <stdio.h>, to get FILE.
54588         * lib/memcasecmp.c: Don't include <sys/types.h>, as we can assume
54589         memcasecmp.h has included <stddef.h> and all we need is size_t.
54590         * lib/memcoll.c: Include "memcoll.h", which gets us size_t and checks
54591         our interface, instead of including <sys/types.h>
54592
54593 2003-06-04  Paul Eggert  <eggert@twinsun.com>
54594
54595         * config/srclist.txt ($LIBCSRC/time/mktime.c lib gpl): Comment out for
54596         now, as glibc mktime is buggy on non-glibc systems.
54597
54598 2003-06-03  Karl Berry  <karl@gnu.org>
54599
54600         * config/config.sub: update from prep.
54601
54602 2003-06-02  Paul Eggert  <eggert@twinsun.com>
54603
54604         [from coreutils]
54605         Fix some minor time-related bugs with POSIX time arguments.
54606         Some valid time stamps were being rejected (notably -1, and
54607         time stamps before 1900 on 64-bit hosts).  And some invalid
54608         time stamps were being accepted, e.g. September 31.
54609
54610         * lib/posixtm.h (posixtime): Return bool instead of time_t, so
54611         that we can return (time_t) -1 successfully.
54612         * lib/posixtm.c: Likewise.
54613         [HAVE_STDBOOL_H]: Include <stdbool.h>.
54614         (bool, false, true) [!HAVE_STDBOOL_H]: New type.
54615         (t): Remove static var.
54616         (year, posix_time_parse): Now takes struct tm * arg to modify, instead
54617         of static var.  All uses changed.
54618         (year): Do not reject years before 1900; they can occur with
54619         64-bit time_t.
54620         (posix_time_parse): Do not check for out-of-range components;
54621         that is now the caller's responsibility, since our checks were
54622         only approximations.
54623         (posixtime): Use mktime to check for out-of-range components,
54624         since it knows them exactly.
54625         If mktime returns (time_t) -1, check whether an error actually occurred
54626         by invoking localtime on -1.
54627         (main) [TEST_POSIXTIME]: Check for input data errors, and report
54628         posixtime failures better.
54629         Improve the test data (in comments only).
54630
54631 2003-06-02  Karl Berry  <karl@gnu.org>
54632
54633         * config/mkinstalldirs (version): new variable.
54634         (--version): new option.
54635         (usage): improve message.
54636
54637 2003-05-30  Karl Berry  <karl@gnu.org>
54638
54639         * lib/mktime.c: update from libc.
54640
54641 2003-05-30  Bruno Haible  <bruno@clisp.org>
54642
54643         * modules/gettext: Add files m4/nls.m4 and m4/po.m4.
54644         * config/config.rpath: Upgrade to gettext-0.12.1.
54645
54646 2003-05-30  Bruno Haible  <bruno@clisp.org>
54647
54648         * m4/gettext.m4: Upgrade to gettext-0.12.1.
54649         * m4/nls.m4: New file, from gettext-0.12.1.
54650         * m4/po.m4: New file, from gettext-0.12.1.
54651         * m4/progtest.m4: Upgrade to gettext-0.12.1.
54652
54653 2003-05-30  Bruno Haible  <bruno@clisp.org>
54654
54655         * lib/config.charset: Upgrade to gettext-0.12.1 and libiconv-1.9.1.
54656         * lib/localcharset.h: Likewise.
54657         * lib/localcharset.c: Likewise.
54658
54659 2003-05-29  Karl Berry  <karl@gnu.org>
54660
54661         * config/config.rpath: update from gettext.
54662
54663 2003-05-28  Paul Eggert  <eggert@twinsun.com>
54664
54665         Assume the headers required for C89 freestanding compilers.
54666         * m4/backupfile.m4 (gl_BACKUPFILE): Don't check for limits.h.
54667         * m4/fsusage.m4 (gl_PREREQ_FSUSAGE_EXTRA): Likewise.
54668         * m4/human.m4 (gl_HUMAN): Likewise.
54669         * m4/pathmax.m4 (gl_PATHMAX): Likewise.
54670         * m4/rpmatch.m4 (gl_FUNC_RPMATCH): Likewise.
54671         * m4/userspec.m4 (gl_USERSPEC): Likewise.
54672         * m4/xreadlink.m4 (gl_XREADLINK): Likewise.
54673         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Likewise.
54674         * m4/quote.m4 (gl_QUOTE): Don't check for stddef.h.
54675
54676 2003-05-28  Paul Eggert  <eggert@twinsun.com>
54677
54678         Assume the headers required for C89 freestanding compilers.
54679         * lib/addext.c, lib/backupfile.c, lib/fsusage.c, lib/human.c,
54680         lib/pathmax.h, lib/rpmatch.c, lib/userspec.c, lib/xreadlink.c,
54681         lib/xstrtol.c: Include <limits.h> without checking for HAVE_LIMITS_H.
54682         * lib/backupfile.c, lib/fsusage.c, lib/hash.c, lib/human.c,
54683         lib/safe-read.c, lib/userspec.c, lib/xstrtol.c (CHAR_BIT): Don't
54684         define, since <limits.h> is guaranteed to do that.
54685         * lib/fatal.c: Include <stdarg.h> without checking for __STDC__.
54686         * lib/exclude.c: Include <stdbool.h> unconditionally.
54687         * lib/tempname.c: Include <stddef.h> unconditionally.
54688         * lib/hash.c: Include <limits.h>, since we no longer define CHAR_BIT.
54689         * lib/modechange.c, rpmatch.c (NULL): Don't define, since
54690         <stddef.h> does that.
54691         * lib/quote.c: Dont include <stddef.h> or <sys/types.h>; not needed.
54692         * lib/safe-read.c (INT_MAX): Don't define, since <limits.h> does that.
54693         * lib/safe-read.c (TYPE_MINIMUM, TYPE_MAXIMUM): Remove; no longer
54694         needed.
54695         * lib/xstrtol.c: Likewise.
54696         * lib/safe-read.c: Remove TYPE_SIGNED; no longer needed.
54697         * lib/savedir.c: Include <stddef.h> instead of defining NULL.
54698
54699         * lib/addext.c (addext): Use assignment rather than cast, to avoid
54700         warnings on some platforms.
54701
54702         * lib/mktime.c (__mktime_internal): Do not reject negative timestamps
54703         arbitrarily.
54704
54705 2003-05-26  Jim Meyering  <jim@meyering.net>
54706
54707         Merge in a change from coreutils:
54708         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Test the cache variable, not one
54709         that is guaranteed to be `no'.  Use `no_such_member' to indicate
54710         that condition, rather than `-1' which is slightly misleading.
54711         Change the name of the cache variable to have the gl_ prefix.
54712         Prompted by a patch from Richard Dawe for DJGPP.
54713
54714 2003-05-24  Karl Berry  <karl@gnu.org>
54715
54716         * config/config.guess: update from prep.
54717
54718 2003-05-22  Karl Berry  <karl@gnu.org>
54719
54720         * gnulib-tool (func_usage): =LIBRARY not =libRARY in help msg.
54721
54722 2003-05-20  Karl Berry  <karl@gnu.org>
54723
54724         * config/config.guess: update from prep.
54725
54726 2003-05-18  Karl Berry  <karl@gnu.org>
54727
54728         * config/srclistvars.sh (TEXMF): use TEXMFROOT instead, since TEXMF
54729         might actually be set by the user.
54730
54731         * config/depcomp, install-sh, mdate-sh: update from automake.
54732
54733 2003-05-17  Bruno Haible  <bruno@clisp.org>
54734
54735         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Fix a quoting bug leading to an
54736         invalid expansion for AC_EGREP_CPP.
54737         * m4/strtoimax.m4 (gl_FUNC_STRTOIMAX): Likewise.
54738         * m4/strtoumax.m4 (gl_FUNC_STRTOUMAX): Likewise.
54739         Suggested by Akim Demaille <akim@epita.fr> in
54740         http://mail.gnu.org/archive/html/bug-autoconf/2003-05/threads.html
54741
54742 2003-05-12  Jim Meyering  <jim@meyering.net>
54743
54744         * lib/strftime.c (my_strftime): Let the `-' (no-pad) flag affect
54745         the space-padded-by-default conversion specifiers, %e, %k, %l.
54746
54747 2003-05-12  Bruno Haible  <bruno@clisp.org>
54748
54749         * lib/linebreak.c (iconv_string_length): Don't return -1 just because
54750         the string is longer than 4 KB.
54751
54752 2003-05-11  Karl Berry  <karl@gnu.org>
54753
54754         * config/config.{guess,sub}: update from prep.
54755
54756 2003-05-09  Bruno Haible  <bruno@clisp.org>
54757
54758         * modules/error: Add m4/strerror_r.m4 to file list.
54759
54760 2003-05-03  Bruno Haible  <bruno@clisp.org>
54761
54762         Upgrade to Unicode-4.0.
54763         * lib/linebreak.c (nonspacing_table_data): Change width of U+00AD,
54764         U+0350..U+0357, U+035D..U+035F, U+0600..U+0603, U+0610..U+0615,
54765         U+0656..U+0658, U+0A01, U+0AE2..U+0AE3, U+0CBC, U+17B4..U+17B5,
54766         U+17DD, U+1920..U+1922, U+1927..U+192B, U+1932, U+1939..U+193B
54767         from 1 to 0. Change width of U+0CBF, U+0CC6, U+180E from 0 to 1.
54768         (uc_width): Change width of U+4DC0..U+4DFF from 2 to 1. Change width
54769         of U+2A6D7..U+2F7FF, U+2FA1E..U+2FFFD, U+30000..U+3FFFD from 1 to 2.
54770         Change width of U+E0100..U+E01EF from 1 to 0.
54771
54772 2003-04-25  Jim Meyering  <jim@meyering.net>
54773
54774         * lib/copy-file.c (copy_file_preserving): Declare buf_size to be
54775         of type size_t, not int.
54776
54777 2003-04-25  Bruno Haible  <bruno@clisp.org>
54778
54779         * lib/copy-file.c: Include <stddef.h>, for size_t.
54780
54781 2003-04-21  Paul Eggert  <eggert@twinsun.com>
54782
54783         * m4/error.m4 (gl_ERROR): Do not put under dynamic conditions some
54784         code which expansion is under static control.  Patch imported from
54785         Akim Demaille's patch to Bison; see
54786         <http://mail.gnu.org/archive/html/bison-patches/2003-03/msg00057.html>.
54787
54788 2003-04-14  Bruno Haible  <bruno@clisp.org>
54789
54790         * m4/error.m4 (jm_PREREQ_ERROR): Use AC_FUNC_VPRINTF.
54791
54792 2003-04-11  Jim Meyering  <jim@meyering.net>
54793
54794         Merge changes from Coreutils.
54795
54796         2003-03-22  Jim Meyering  <jim@meyering.net>
54797
54798         * lib/strftime.c (widen): Cast alloca return value to proper type.
54799
54800         2003-01-19  Ulrich Drepper  <drepper@redhat.com>
54801
54802         From GNU libc.
54803         * lib/strftime.c (my_strftime): Handle very large width
54804         specifications for numeric values correctly.  Improve checks for
54805         overflow.
54806
54807         2003-01-19  Jim Meyering  <jim@meyering.net>
54808
54809         * lib/strftime.c (widen) [COMPILE_WIDE]: Merge nearly-identical
54810         definitions.
54811         (nl_get_alt_digit) [! defined my_strftime]: Define.
54812         (my_strftime) [_NL_CURRENT]: Merge nearly-identical uses of
54813         _nl_get_alt_digit and _nl_get_walt_digit.
54814
54815         * lib/strftime.c (my_strftime): Merge in locale-related changes from
54816         libc. These changes have no effect outside of _LIBC.
54817
54818 2003-04-10  Bruno Haible  <bruno@clisp.org>
54819
54820         * modules/findprog: New file.
54821         * MODULES.html.sh (func_all_modules): Add it.
54822
54823 2003-04-10  Bruno Haible  <bruno@clisp.org>
54824
54825         * m4/findprog.m4: New file.
54826         * m4/eaccess.m4: New file.
54827
54828 2003-04-10  Bruno Haible  <bruno@clisp.org>
54829
54830         * lib/findprog.h: New file, from GNU gettext.
54831         * lib/findprog.c: New file, from GNU gettext.
54832
54833 2003-04-05  Jim Meyering  <jim@meyering.net>
54834
54835         Merge changes from Coreutils.
54836
54837         * lib/exclude.h (PARAMS): Remove definition and uses.
54838         * lib/exclude.c: Remove uses of `PARAMS'.
54839
54840         * lib/dirname.c [TEST_DIRNAME]: Update build instructions for test.
54841         Add test-cases for DOS filenames. Declare program_name.
54842         (main): Set up program_name.  Patch by Rich Dawe.
54843
54844         * lib/mountlist.c (read_filesystem_list) [MOUNTED_VMOUNT]: Detect any
54845         error from mntctl.
54846         Use mntctl's return value to drive the entry-processing loop, since
54847         we can't rely on the value of the vmt_length member in the last
54848         entry.  On some systems doing so could result in exhausting
54849         virtual memory.  Based in part on a patch from Mike Jetzer.
54850
54851 2003-04-04  Bruno Haible  <bruno@clisp.org>
54852
54853         * modules/linebreak: New file.
54854         * MODULES.html.sh (func_all_modules): Add it.
54855
54856 2003-04-04  Bruno Haible  <bruno@clisp.org>
54857
54858         * m4/linebreak.m4: New file.
54859
54860 2003-04-04  Bruno Haible  <bruno@clisp.org>
54861
54862         * lib/linebreak.h: New file, from GNU gettext.
54863         * lib/linebreak.c: New file, from GNU gettext with slight
54864         modifications.
54865         * lib/lbrkprop.h: New file, from GNU gettext.
54866
54867 2003-04-03  Bruno Haible  <bruno@clisp.org>
54868
54869         * modules/utf8-ucs4: New file.
54870         * modules/utf16-ucs4: New file.
54871         * modules/ucs4-utf8: New file.
54872         * modules/ucs4-utf16: New file.
54873         * MODULES.html.sh (func_all_modules): Add them.
54874
54875 2003-04-03  Bruno Haible  <bruno@clisp.org>
54876
54877         * m4/utf-ucs4.m4: New file.
54878         * m4/ucs4-utf.m4: New file.
54879
54880 2003-04-03  Bruno Haible  <bruno@clisp.org>
54881
54882         * lib/utf8-ucs4.h: New file, from GNU gettext.
54883         * lib/utf16-ucs4.h: New file, from GNU gettext.
54884         * lib/ucs4-utf8.h: New file, from GNU gettext.
54885         * lib/ucs4-utf16.h: New file, from GNU gettext.
54886
54887 2003-04-02  Bruno Haible  <bruno@clisp.org>
54888
54889         * modules/binary-io: New file.
54890         * MODULES.html.sh (func_all_modules): Add it.
54891
54892 2003-04-02  Bruno Haible  <bruno@clisp.org>
54893
54894         * lib/binary-io.h: New file, from GNU gettext.
54895
54896 2003-04-01  Bruno Haible  <bruno@clisp.org>
54897
54898         * modules/pathname: New file.
54899         * MODULES.html.sh (func_all_modules): Add it.
54900
54901 2003-04-01  Bruno Haible  <bruno@clisp.org>
54902
54903         * lib/pathname.h: New file, from GNU gettext.
54904         * lib/concatpath.c: New file, from GNU gettext.
54905
54906 2003-03-30  Bruno Haible  <bruno@clisp.org>
54907
54908         * m4/copy-file.m4 (gl_COPY_FILE): Add check for chown().
54909
54910 2003-03-30  Bruno Haible  <bruno@clisp.org>
54911
54912         * lib/copy-file.c (copy_file_preserving): Don't set owner if the
54913         function chown() doesn't exist.
54914
54915 2003-03-28  Bruno Haible  <bruno@clisp.org>
54916
54917         * modules/copy-file: New file.
54918         * MODULES.html.sh (func_all_modules): Add it.
54919
54920 2003-03-28  Bruno Haible  <bruno@clisp.org>
54921
54922         * m4/copy-file.m4: New file.
54923
54924 2003-03-28  Bruno Haible  <bruno@clisp.org>
54925
54926         * lib/copy-file.h: New file, from GNU gettext.
54927         * lib/copy-file.c: New file, from GNU gettext.
54928
54929 2003-03-18  Jim Meyering  <jim@meyering.net>
54930
54931         * lib/quote.c (quote_n): Fix typo in comment.
54932
54933 2003-03-18  Bruno Haible  <bruno@clisp.org>
54934
54935         * m4/onceonly.m4: Use m4_defn instead of defn, for better error
54936         checking.
54937         * m4/onceonly_2_57.m4: Likewise.
54938
54939 2003-03-17  Bruno Haible  <bruno@clisp.org>
54940
54941         * m4/onceonly.m4: Require autoconf 2.54 or newer.
54942         (m4_quote): Remove macro.
54943         * m4/onceonly_2_57.m4: Require autoconf 2.54 or newer.
54944
54945 2003-03-14  Jim Meyering  <jim@meyering.net>
54946
54947         Merge changes from Coreutils.
54948         * lib/obstack.h (obstack_object_size): Declare temporary, __o,
54949         to be const, in order to avoid warnings.
54950         (obstack_room): Likewise.
54951         (obstack_empty_p): Likewise.
54952
54953 2003-03-14  Bruno Haible  <bruno@clisp.org>
54954
54955         * m4/onceonly_2_57.m4 (AC_CHECK_HEADERS_ONCE, AC_CHECK_FUNCS_ONCE,
54956         AC_CHECK_DECLS_ONCE): Quote AC_FOREACH variable-expansions properly.
54957
54958 2003-03-13  Paul Eggert  <eggert@twinsun.com>
54959
54960         Merge changes from Bison.
54961         * lib/obstack.h: (__INT_TO_PTR) [__STDC__]: Cast result to
54962         (void *) to avoid diagnostic with native c89 on SGI IRIX 6.5
54963         when compiling Bison 1.875's `bitset bset = obstack_alloc
54964         (bobstack, bytes);'.  Problem reported by Nelson H. F. Beebe.
54965         * lib/hash.c: Include <stdbool.h> unconditionally.
54966
54967 2003-03-13  Paul Eggert  <eggert@twinsun.com>
54968
54969         * m4/onceonly.m4 (m4_quote): New macro.
54970         (AC_CHECK_HEADERS_ONCE, AC_CHECK_FUNCS_ONCE, AC_CHECK_DECLS_ONCE):
54971         Quote AC_FOREACH variable-expansions properly.
54972
54973 2003-03-13  Paul Eggert  <eggert@twinsun.com>
54974
54975         * doc/COPYING.DOC, fdl.texi: Sync with latest FSF version.
54976
54977 2003-03-09  Paul Eggert  <eggert@twinsun.com>
54978
54979         * lib/argmatch.c (EXIT_FAILURE): Define if the system doesn't.
54980         Reported by Bruce Becker; see:
54981         http://mail.gnu.org/archive/html/bug-bison/2003-03/msg00017.html
54982
54983 2003-03-03  Paul Eggert  <eggert@twinsun.com>
54984             Bruno Haible  <bruno@clisp.org>
54985
54986         * lib/mbswidth.h: Include <wchar.h>. Needed for UnixWare 7.1.1.
54987         Reported by John Hughes, see
54988         http://mail.gnu.org/archive/html/bug-bison/2003-02/msg00030.html
54989
54990 2003-02-20  Bruno Haible  <bruno@clisp.org>
54991
54992         * MODULES.html.sh (func_all_modules): Add poll.
54993
54994 2003-02-19  Paolo Bonzini  <bonzini@gnu.org>
54995
54996         * modules/poll: New file.
54997
54998 2003-02-19  Paolo Bonzini  <bonzini@gnu.org>
54999
55000         * lib/poll_.h: New file.
55001         * lib/poll.c: New file.
55002
55003 2003-02-19  Paolo Bonzini  <bonzini@gnu.org>
55004
55005         * m4/poll.m4: New file.
55006
55007 2003-02-18  Paolo Bonzini  <bonzini@gnu.org>
55008
55009         * modules/mathl: New file.
55010
55011 2003-02-18  Paolo Bonzini  <bonzini@gnu.org>
55012
55013         * lib/mathl.h: New file.
55014         * lib/acosl.c: New file.
55015         * lib/asinl.c: New file.
55016         * lib/atanl.c: New file.
55017         * lib/ceill.c: New file.
55018         * lib/cosl.c: New file.
55019         * lib/expl.c: New file.
55020         * lib/floorl.c: New file.
55021         * lib/frexpl.c: New file.
55022         * lib/ldexpl.c: New file.
55023         * lib/logl.c: New file.
55024         * lib/sincosl.c: New file.
55025         * lib/sinl.c: New file.
55026         * lib/sqrtl.c: New file.
55027         * lib/tanl.c: New file.
55028         * lib/trigl.c: New file.
55029         * lib/trigl.h: New file.
55030
55031 2003-02-18  Paolo Bonzini  <bonzini@gnu.org>
55032
55033         * m4/mathl.m4: New file.
55034
55035 2003-02-18  Bruno Haible  <bruno@clisp.org>
55036
55037         * MODULES.html.sh (func_all_modules): Add mathl.
55038
55039 2003-02-17  Bruno Haible  <bruno@clisp.org>
55040
55041         * modules/mkdtemp: New module.
55042         * MODULES.html.sh (func_all_modules): Add it.
55043
55044 2003-02-17  Bruno Haible  <bruno@clisp.org>
55045
55046         * m4/mkdtemp.m4: New file, from GNU gettext with modifications.
55047
55048 2003-02-17  Bruno Haible  <bruno@clisp.org>
55049
55050         * lib/mkdtemp.h: New file, from GNU gettext.
55051         * lib/mkdtemp.c: New file, from GNU gettext.
55052
55053 2003-02-02  Jim Meyering  <jim@meyering.net>
55054
55055         * m4/regex.m4 (jm_INCLUDED_REGEX): Detect broken re_search in
55056         e.g. glibc-2.2.93.
55057
55058 2003-01-31  Bruno Haible  <bruno@clisp.org>
55059
55060         * m4/rename.m4 (vb_FUNC_RENAME): Add a redirection from 'rename' to
55061         'rpl_rename'.
55062         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Add a redirection from 'strnlen' to
55063         'rpl_strnlen'.
55064         * m4/strtod.m4 (gl_FUNC_STRTOD): Add a redirection from 'strtod' to
55065         'rpl_strtod'.
55066         * m4/utime.m4 (jm_FUNC_UTIME): Add a redirection from 'utime' to
55067         'rpl_utime'.
55068
55069 2003-01-31  Bruno Haible  <bruno@clisp.org>
55070
55071         * lib/rename.c: #undef rename before defining rpl_rename.
55072         * lib/strnlen.c: #undef strnlen, define rpl_strnlen instead of strnlen.
55073
55074 2003-01-30  Bruno Haible  <bruno@clisp.org>
55075
55076         * modules/vasnprintf, modules/vasprintf: New modules.
55077         * MODULES.html.sh (func_all_modules): Add them.
55078
55079 2003-01-30  Bruno Haible  <bruno@clisp.org>
55080
55081         * m4/signed.m4: New file, from GNU gettext.
55082         * m4/longdouble.m4: New file, from GNU gettext.
55083         * m4/wchar_t.m4: New file, from GNU gettext.
55084         * m4/wint_t.m4: New file, from GNU gettext.
55085         * m4/vasnprintf.m4: New file.
55086         * m4/vasprintf.m4: New file.
55087
55088 2003-01-30  Bruno Haible  <bruno@clisp.org>
55089
55090         * lib/printf-args.h: New file, from GNU gettext.
55091         * lib/printf-args.c: New file, from GNU gettext.
55092         * lib/printf-parse.h: New file, from GNU gettext.
55093         * lib/printf-parse.c: New file, from GNU gettext.
55094         * lib/vasnprintf.h: New file, from GNU gettext.
55095         * lib/vasnprintf.c: New file, from GNU gettext.
55096         * lib/asnprintf.c: New file, from GNU gettext.
55097         * lib/vasprintf.h: New file, from GNU gettext with modifications.
55098         * lib/vasprintf.c: New file, from GNU gettext.
55099         * lib/asprintf.c: New file, from GNU gettext.
55100
55101 2003-01-29  Bruno Haible  <bruno@clisp.org>
55102
55103         * modules/stpncpy: New module.
55104         * MODULES.html.sh (func_all_modules): Add it.
55105
55106 2003-01-29  Bruno Haible  <bruno@clisp.org>
55107
55108         * m4/stpncpy.m4: New file.
55109
55110 2003-01-29  Bruno Haible  <bruno@clisp.org>
55111
55112         * lib/stpncpy.h: New file, from GNU gettext with modifications.
55113         * lib/stpncpy.c: New file, from GNU gettext with modifications.
55114
55115 2003-01-28  Bruno Haible  <bruno@clisp.org>
55116
55117         * modules/c-ctype: New module.
55118         * MODULES.html.sh (func_all_modules): Add it.
55119
55120 2003-01-28  Bruno Haible  <bruno@clisp.org>
55121
55122         * lib/c-ctype.h: New file, from GNU gettext, with changes suggested by
55123         Paul Eggert.
55124         * lib/c-ctype.c: New file, from GNU gettext, with changes suggested by
55125         Paul Eggert.
55126
55127 2003-01-27  Bruno Haible  <bruno@clisp.org>
55128
55129         * modules/xsetenv: New module.
55130         * MODULES.html.sh (func_all_modules): Add it.
55131
55132 2003-01-27  Bruno Haible  <bruno@clisp.org>
55133
55134         * lib/xsetenv.h: New file, from GNU gettext.
55135         * lib/xsetenv.c: New file, from GNU gettext.
55136
55137 2003-01-23  Jim Meyering  <jim@meyering.net>
55138
55139         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Correct typo: s/-1/no/ that kept this
55140         from working on systems without dirfd (at least Irix and OSF1/Tru64).
55141
55142 2003-01-23  Bruno Haible  <bruno@clisp.org>
55143
55144         * modules/minmax: New module.
55145         * MODULES.html.sh (func_all_modules): Add it.
55146
55147 2003-01-23  Bruno Haible  <bruno@clisp.org>
55148
55149         * lib/minmax.h: New file, from GNU gettext, with comments from Paul
55150         Eggert.
55151
55152 2003-01-22  Bruno Haible  <bruno@clisp.org>
55153
55154         * modules/exit: New module.
55155         * MODULES.html.sh (func_all_modules): Add it.
55156
55157 2003-01-22  Bruno Haible  <bruno@clisp.org>
55158
55159         * lib/exit.h: New file, from GNU gettext.
55160
55161 2003-01-19  Bruno Haible  <bruno@clisp.org>
55162
55163         * gnulib-tool: Recognize option --extract-maintainer.
55164         (func_get_maintainer): New function.
55165         * modules/*: Add Maintainer entry.
55166
55167 2003-01-16  Jim Meyering  <jim@meyering.net>
55168
55169         * m4/regex.m4: The `regex' struct is both input and output.
55170         Initialize it before each use.  Patch by Tim Waugh.
55171
55172 2003-01-16  Bruno Haible  <bruno@clisp.org>
55173
55174         * MODULES.html.sh: Add a table of contents. Add the module name as
55175         leftmost column. Add hyperlinks.
55176
55177 2003-01-15  Bruno Haible  <bruno@clisp.org>
55178
55179         * m4/md5.m4 (gl_MD5): Require AC_C_INLINE.
55180
55181 2003-01-15  Bruno Haible  <bruno@clisp.org>
55182
55183         * m4/longlong.m4 (jm_AC_TYPE_LONG_LONG): Also test the LL suffix.
55184         * m4/ulonglong.m4 (jm_AC_TYPE_UNSIGNED_LONG_LONG): Also test the ULL
55185         suffix.
55186
55187 2003-01-15  Bruno Haible  <bruno@clisp.org>
55188
55189         * m4/alloca.m4 (gl_FUNC_ALLOCA): Invoke AC_EGREP_CPP prerequisites.
55190
55191 2003-01-15  Bruno Haible  <bruno@clisp.org>
55192
55193         * lib/stpcpy.h (stpcpy): Use ANSI C function declarations.
55194         * lib/strcase.h (strcasecmp, strncasecmp): Likewise.
55195
55196 2003-01-14  Jim Meyering  <jim@meyering.net>
55197
55198         * lib/same.c (same_name): Tweak a comment.
55199
55200 2003-01-14  Bruno Haible  <bruno@clisp.org>
55201
55202         * lib/same.c (same_name): Reorder tests so as to avoid calling stat()
55203         when a string comparison is sufficient.
55204
55205 2003-01-14  Bruno Haible  <bruno@clisp.org>
55206
55207         * lib/readtokens.c (readtoken): Cast character to 'unsigned char', not
55208         'unsigned int'.
55209
55210 2003-01-14  Bruno Haible  <bruno@clisp.org>
55211
55212         * lib/hash-pjw.c: Add comment about low quality of this function.
55213
55214 2003-01-13  Bruno Haible  <bruno@clisp.org>
55215
55216         * modules/stpcpy: Distribute lib/stpcpy.h.
55217         * modules/setenv: Depend on alloca. Distribute lib/setenv.h.
55218
55219 2003-01-13  Bruno Haible  <bruno@clisp.org>
55220
55221         * modules/*: Add a description.
55222         * modules/strpbrk: Fix Makefile.am snippet.
55223         * modules/strtoimax: Fix dependencies.
55224         * modules/strtoumax: Likewise.
55225
55226 2003-01-13  Bruno Haible  <bruno@clisp.org>
55227
55228         * gnulib-tool (func_create_testdir): Substitute lib_OBJECTS.
55229         * modules/alloca (Makefile.am): All object files depend on alloca.h.
55230         * modules/stdbool (Makefile.am): All object files depend on stdbool.h.
55231
55232 2003-01-13  Bruno Haible  <bruno@clisp.org>
55233
55234         * gnulib-tool (func_create_testdir): Store config/* files in the main
55235         directory.
55236         * config.rpath: Move to ...
55237         * config/config.rpath: ... here.
55238         * modules/gettext: Contains config/config.rpath, not config.rpath.
55239         * modules/iconv: Likewise.
55240
55241 2003-01-12  Paul Eggert  <eggert@twinsun.com>
55242
55243         Finish renaming getstr -> getdelim2 and readline -> readlinebuffer,
55244         to avoid collisions with libcurses and libreadline.
55245
55246         * m4/getstr.m4: Remove.
55247         * m4/getline.m4 (gl_PREREQ_GETLINE): Require AC_HEADER_STDC.
55248
55249 2003-01-12  Paul Eggert  <eggert@twinsun.com>
55250
55251         Finish renaming getstr -> getdelim2 and readline -> readlinebuffer,
55252         to avoid collisions with libcurses and libreadline.
55253
55254         * lib/Makefile.am (libfetish_a_SOURCES): Remove getstr.c, getstr.h.
55255         * lib/getstr.h, getstr.c: Remove.
55256         * lib/getline.c: Include "getline.h", to check interface.
55257         Move body of old getstr.c here: this defines MIN_CHUNK and
55258         declares getdelim2, which is renamed from getstr.
55259         (getline, getdelim): Adjust to renaming of getstr -> getdelim2.
55260
55261         * lib/linebuffer.c (readlinebuffer): Renamed from readline.
55262         All uses changed.
55263         * lib/linebuffer.h: Likewise.
55264         (readline): Remove backward-compatibility macro.
55265
55266 2003-01-12  Paul Eggert  <eggert@twinsun.com>
55267
55268         Finish renaming getstr -> getdelim2 and readline -> readlinebuffer,
55269         to avoid collisions with libcurses and libreadline.
55270         * getstr: Remove.
55271         * MODULES.html.sh: Remove getstr.
55272         * modules/getline: Depend on unlocked-io, not getstr.
55273
55274 2003-01-12  Jim Meyering  <jim@meyering.net>
55275
55276         * lib/makepath.c: Don't test HAVE_ERRNO_H.  It's not necessary.
55277
55278 2003-01-10  Bruno Haible  <bruno@clisp.org>
55279
55280         * modules/alloca: Change Makefile.am requirements. Simplify Include
55281         requirements. Add lib/alloca_.h to file list.
55282
55283 2003-01-10  Bruno Haible  <bruno@clisp.org>
55284
55285         * m4/alloca.m4 (gl_FUNC_ALLOCA): Also define ALLOCA_H.
55286
55287 2003-01-10  Bruno Haible  <bruno@clisp.org>
55288
55289         * lib/alloca_.h: New file.
55290         * lib/getdate.y: Unconditionally include alloca.h.
55291         * lib/makepath.c: Likewise.
55292         * lib/setenv.c: Likewise.
55293         * lib/userspec.c: Likewise.
55294
55295 2003-01-09  Karl Berry  <karl@gnu.org>
55296
55297         * MODULES.html.sh: include `dirname $0` in PATH, to find
55298         gnulib-tool.
55299
55300 2003-01-09  Bruno Haible  <bruno@clisp.org>
55301
55302         * modules/stdbool: Change configure.ac, Makefile.am requirements.
55303         Simplify Include requirements. Add lib/stdbool.h.in to file list.
55304
55305 2003-01-09  Bruno Haible  <bruno@clisp.org>
55306
55307         * m4/stdbool.m4 (AM_STDBOOL_H): New macro.
55308
55309 2003-01-09  Bruno Haible  <bruno@clisp.org>
55310
55311         * lib/stdbool.h.in: New file.
55312
55313 2003-01-09  Bruno Haible  <bruno@clisp.org>
55314
55315         * gnulib-tool (func_all_modules): Ignore files ending in ~.
55316         * MODULES.html.sh: Likewise.
55317
55318 2003-01-08  Jim Meyering  <jim@meyering.net>
55319
55320         * lib/full-write.c: Undefine and define-away `const' after inclusion
55321         of errno.h, not before.  Suggestion from Bruno Haible.
55322
55323 2003-01-08  Bruno Haible  <bruno@clisp.org>
55324
55325         * modules/full-read: Depend on full-write.
55326
55327 2003-01-08  Bruno Haible  <bruno@clisp.org>
55328
55329         * lib/safe-read.c: Include specification header first, to ensure its
55330         selfcontainedness.
55331         * lib/full-write.c: Likewise.
55332
55333 2003-01-07  Jim Meyering  <jim@meyering.net>
55334
55335         * lib/full-write.c: Rework so that it may serve to define full_read,
55336         too.
55337         * lib/full-read.c: Simply #define FULL_READ and include full-write.c.
55338
55339 2003-01-07  Bruno Haible  <bruno@clisp.org>
55340
55341         * lib/strtoimax.c: Include <stdint.h> as an alternative to
55342         <inttypes.h>.
55343         * lib/xstrtol.h: Likewise.
55344         * lib/xstrtoimax.c: Likewise.
55345         * lib/xstrtoumax.c: Likewise.
55346         * lib/human.h: Likewise.
55347
55348         * lib/tempname.c: Include <inttypes.h> too. Avoids a compilation error
55349         on systems that have <inttypes.h> but not <stdint.h>.
55350
55351 2003-01-07  Bruno Haible  <bruno@clisp.org>
55352
55353         * MODULES.html.sh: Add copyright notice.
55354         (missed_files): Omit CVS directory entries.
55355         (func_module): Make it work with sed-3.02.
55356         * MODULES.txt: Remove file.
55357
55358 2003-01-06  Jim Meyering  <jim@meyering.net>
55359
55360         * lib/version-etc.c: Update year in translatable copyright string.
55361
55362 2003-01-03  Karl Berry  <karl@gnu.org>
55363
55364         * config/config.{guess,sub}: update from prep.
55365
55366 2003-01-02  Karl Berry  <karl@gnu.org>
55367
55368         * doc/COPYING.DOC: belatedly updated to 1.2.
55369
55370 2003-01-01  Karl Berry  <karl@gnu.org>
55371
55372         * gnulib-tool (func_verify_module): report module name $module in
55373         error message, not $1.
55374         * gnulib-tool (create-testdir): don't complain if destdir couldn't
55375         be created, only if it doesn't exist.
55376         * gnulib-tool (last_checkin_date): don't expand the $Date here.
55377
55378 2002-12-31  Paul Eggert  <eggert@twinsun.com>
55379
55380         * m4/memcoll.m4 (gl_MEMCOLL): Require AC_FUNC_MEMCMP.
55381
55382 2002-12-31  Paul Eggert  <eggert@twinsun.com>
55383
55384         * lib/memcoll.c (memcoll): Fall back on a simple algorithm using
55385         memcmp if strcoll doesn't work.
55386
55387 2002-12-31  Bruno Haible  <bruno@clisp.org>
55388
55389         * lib/utime.c (utime_null): No need to call ftruncate if the file was
55390         nonempty.
55391
55392 2002-12-31  Bruno Haible  <bruno@clisp.org>
55393
55394         * lib/memcoll.c (STRCOLL): New macro.
55395         (memcoll): Use it.
55396
55397 2002-12-31  Bruno Haible  <bruno@clisp.org>
55398
55399         * lib/localcharset.h: New file.
55400         * lib/localcharset.c: Include it.
55401         * lib/unicodeio.c: Likewise.
55402
55403 2002-12-31  Bruno Haible  <bruno@clisp.org>
55404
55405         * lib/getstr.h (getstr): Define, to avoid clash with libcurses.
55406         * lib/linebuffer.h (readline): Define, to avoid clash with libreadline.
55407
55408 2002-12-31  Bruno Haible  <bruno@clisp.org>
55409
55410         * lib/getline.h: Include <stddef.h>, for size_t.
55411
55412         * lib/unicodeio.h: Include <stddef.h>, for size_t.
55413         * lib/unicodeio.c: Don't include <stddef.h>.
55414
55415 2002-12-31  Bruno Haible  <bruno@clisp.org>
55416
55417         * lib/getdate.y (get_date): Test HAVE_STRUCT_TM_TM_ZONE, not
55418         HAVE_TM_ZONE.
55419
55420 2002-12-24  Karl Berry  <karl@gnu.org>
55421
55422         * config/config.guess: update from prep.
55423
55424 2002-12-24  Bruno Haible  <bruno@clisp.org>
55425
55426         General infrasructure.
55427         * m4/README: Rewritten.
55428         * m4/onceonly.m4: New file.
55429         * m4/onceonly_2_57.m4: New file.
55430
55431         Module atexit.
55432         * m4/atexit.m4: New file.
55433
55434         Module strtod.
55435         * m4/strtod.m4: New file.
55436
55437         Module strtol.
55438         * m4/strtol.m4: New file.
55439
55440         Module strtoul.
55441         * m4/strtoul.m4: New file.
55442
55443         Module memchr.
55444         * m4/memchr.m4: New file.
55445
55446         Module memcmp.
55447         * m4/memcmp.m4 (gl_PREREQ_MEMCMP): New macro.
55448         (jm_FUNC_MEMCMP): Invoke it.
55449
55450         Module memcpy.
55451         * m4/memcpy.m4: New file.
55452
55453         Module memmove.
55454         * m4/memmove.m4: New file.
55455
55456         Module memset.
55457         * m4/memset.m4: New file.
55458
55459         Module strcspn.
55460         * m4/strcspn.m4: New file.
55461
55462         Module strpbrk.
55463         * m4/strpbrk.m4: New file.
55464
55465         Module strstr.
55466         * m4/strstr.m4: New file.
55467
55468         Module strerror.
55469         * m4/strerror.m4: New file.
55470
55471         Module mktime.
55472         * m4/mktime.m4: Renamed from jm-mktime.m4.
55473         (gl_PREREQ_MKTIME): New macro.
55474         (gl_FUNC_MKTIME): Renamed from jm_FUNC_MKTIME. Invoke gl_PREREQ_MKTIME.
55475
55476         Module malloc.
55477         * m4/malloc.m4 (gl_PREREQ_MALLOC): New macro.
55478         (jm_FUNC_MALLOC): Use AC_FUNC_MALLOC. Invoke gl_PREREQ_MALLOC.
55479         Don't define HAVE_DONE_WORKING_MALLOC_CHECK, since nothing uses it.
55480
55481         Module realloc.
55482         * m4/realloc.m4 (gl_PREREQ_REALLOC): New macro.
55483         (jm_FUNC_REALLOC): Use AC_FUNC_REALLOC. Invoke gl_PREREQ_REALLOC.
55484         Don't define HAVE_DONE_WORKING_REALLOC_CHECK, since nothing uses it.
55485
55486         Module strftime.
55487         * m4/tm_gmtoff.m4: New file, extracted from strftime.m4.
55488         * m4/strftime.m4 (_jm_STRFTIME_PREREQS): Use AC_FUNC_STRFTIME.
55489         Don't test for bcopy (we are not emacs). Invoke AC_TYPE_MBSTATE_T and
55490         gl_TM_GMTOFF.
55491         (_jm_STRFTIME_PREREQS, jm_FUNC_GNU_STRFTIME): Use onceonly macros.
55492
55493         Module xalloc.
55494         * m4/xalloc.m4: New file.
55495
55496         Module alloca.
55497         * m4/alloca.m4: New file.
55498
55499         Module putenv.
55500         * m4/putenv.m4 (gl_PREREQ_PUTENV): New macro.
55501         (jm_FUNC_PUTENV): Invoke it.
55502
55503         Module setenv.
55504         * m4/setenv.m4 (gt_FUNC_SETENV): New macro.
55505         (gt_CHECK_VAR_DECL): Fix quoting error that led to infinite loop in m4
55506         when invoked twice.
55507         (gt_PREREQ_SETENV, gt_PREREQ_UNSETENV): New macros, replacing old
55508         gt_FUNC_SETENV.
55509
55510         Module memrchr.
55511         * m4/memrchr.m4: New file.
55512
55513         Module stpcpy.
55514         * m4/stpcpy.m4: New file.
55515
55516         Module strcase.
55517         * m4/strcase.m4: New file.
55518
55519         Module strdup.
55520         * m4/strdup.m4: New file.
55521
55522         Module strnlen.
55523         * m4/strnlen.m4: New file.
55524
55525         Module strndup.
55526         * m4/strndup.m4: New file.
55527
55528         Module xstrtod.
55529         * m4/xstrtod.m4: New file.
55530
55531         Module xstrtol.
55532         * m4/xstrtol.m4: New file.
55533
55534         Module getdate.
55535         * m4/getdate.m4: New file.
55536
55537         Module unlocked-io.
55538         * m4/unlocked-io.m4: Renamed from jm-glibc-io.m4.
55539         (jm_FUNC_GLIBC_UNLOCKED_IO): Invoke AC_GNU_SOURCE. Use onceonly macros.
55540         * m4/jm-glibc-io.m4n: Remove file.
55541
55542         Module long-options.
55543         * m4/long-options.m4: New file.
55544
55545         Module md5.
55546         * m4/md5.m4: New file.
55547
55548         Module sha.
55549         * m4/sha.m4: New file.
55550
55551         Module getstr.
55552         * m4/getstr.m4: New file.
55553
55554         Module getline.
55555         * m4/getline.m4 (gl_PREREQ_GETLINE): New macro.
55556         (AM_FUNC_GETLINE): Invoke AC_GNU_SOURCE. Use <stdlib.h>, not
55557         <sys/types.h>, for size_t. Use the function name gnu_getline, not
55558         simply getline. Infoke gl_PREREQ_GETLINE.
55559
55560         Module obstack.
55561         * m4/obstack.m4: New file.
55562
55563         Module hash.
55564         * m4/hash.m4: New file.
55565
55566         Module readtokens.
55567         * m4/readtokens.m4: New file.
55568
55569         Module strverscmp.
55570         * m4/strverscmp.m4: New file.
55571
55572         Module stdbool.
55573         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Add test for _Bool. Needed for
55574         OSF/1.
55575
55576         Module strtoll.
55577         * m4/strtoll.m4: New file.
55578
55579         Module strtoull.
55580         * m4/strtoull.m4: New file.
55581
55582         Module strtoimax.
55583         * m4/strtoimax.m4: New file.
55584
55585         Module strtoumax.
55586         * m4/strtoumax.m4: New file.
55587
55588         Module xstrtoimax.
55589         * m4/xstrtoimax.m4 (jm_XSTRTOIMAX): Renamed from
55590         jm_AC_PREREQ_XSTRTOIMAX.
55591         Moved the strtol prerequisites to strtol.m4.
55592         Moved the strtoll prerequisites to strtoll.m4.
55593         Moved the strtoimax prerequisites to strtoimax.m4.
55594
55595         Module xstrtoumax.
55596         * m4/xstrtoumax.m4 (jm_XSTRTOUMAX): Renamed from
55597         jm_AC_PREREQ_XSTRTOUMAX.
55598         Moved the strtoul prerequisites to strtoul.m4.
55599         Moved the strtoull prerequisites to strtoull.m4.
55600         Moved the strtoumax prerequisites to strtoumax.m4.
55601
55602         Module chown.
55603         * m4/chown.m4 (gl_PREREQ_CHOWN): New macro.
55604         (jm_FUNC_CHOWN): Use AC_FUNC_CHOWN. Invoke gl_PREREQ_CHOWN.
55605
55606         Module dup2.
55607         * m4/dup2.m4: New file.
55608
55609         Module ftruncate.
55610         * m4/ftruncate.m4 (gl_PREREQ_FTRUNCATE): New macro.
55611         (jm_FUNC_FTRUNCATE): Use AC_REPLACE_FUNCS. Invoke gl_PREREQ_FTRUNCATE.
55612
55613         Module getgroups.
55614         * m4/getgroups.m4 (gl_PREREQ_GETGROUPS): New macro.
55615         (jm_FUNC_GETGROUPS): Use AC_FUNC_GETGROUPS. Invoke gl_PREREQ_GETGROUPS.
55616
55617         Module gettimeofday.
55618         * m4/gettimeofday.m4 (gl_PREREQ_GETTIMEOFDAY): New macro.
55619         (AC_FUNC_GETTIMEOFDAY_CLOBBER): Use onceonly macros. Invoke
55620         gl_PREREQ_GETTIMEOFDAY.
55621
55622         Module mkdir.
55623         * m4/mkdir-slash.m4 (gl_PREREQ_MKDIR): New macro.
55624         (UTILS_FUNC_MKDIR_TRAILING_SLASH): Invoke gl_PREREQ_MKDIR.
55625
55626         Module mkstemp.
55627         * m4/mkstemp.m4 (gl_PREREQ_MKSTEMP): New macro.
55628         (jm_PREREQ_TEMPNAME): New macro, from prereq.m4. Also invoke
55629         jm_AC_TYPE_UINTMAX_T.
55630         (UTILS_FUNC_MKSTEMP): Invoke gl_PREREQ_MKSTEMP and jm_PREREQ_TEMPNAME.
55631
55632         Module stat.
55633         * m4/stat.m4 (gl_PREREQ_STAT): New macro.
55634         (jm_FUNC_STAT): Use AC_FUNC_STAT. Invoke gl_PREREQ_STAT.
55635
55636         Module lstat.
55637         * m4/lstat.m4 (gl_PREREQ_LSTAT): New macro.
55638         (jm_FUNC_LSTAT): Use AC_FUNC_LSTAT. Invoke gl_PREREQ_LSTAT.
55639
55640         Module timespec.
55641         * m4/timespec.m4 (gl_TIMESPEC): New macro.
55642         (jm_CHECK_TYPE_STRUCT_TIMESPEC): Add check for <sys/time.h>.
55643         * m4/st_mtim.m4: Indentation.
55644
55645         Module nanosleep.
55646         * m4/nanosleep.m4 (gl_PREREQ_NANOSLEEP): New macro.
55647         (jm_FUNC_NANOSLEEP): Add check for <sys/time.h>. Invoke
55648         gl_PREREQ_NANOSLEEP.
55649
55650         Module regex.
55651         * m4/regex.m4 (jm_PREREQ_REGEX): New macro.
55652         (jm_INCLUDED_REGEX): Invoke jm_PREREQ_REGEX.
55653         (gl_REGEX): New macro.
55654
55655         Module rename.
55656         * m4/rename.m4 (gl_PREREQ_RENAME): New macro.
55657         (vb_FUNC_RENAME): Invoke gl_PREREQ_RENAME.
55658
55659         Module rmdir.
55660         * m4/rmdir.m4: New file.
55661
55662         Module utime.
55663         * m4/utimbuf.m4 (jm_CHECK_TYPE_STRUCT_UTIMBUF): Use onceonly macros.
55664         * m4/utime.m4 (gl_PREREQ_UTIME): New macro.
55665         (jm_FUNC_UTIME): Invoke gl_PREREQ_UTIME.
55666
55667         Module dirname.
55668         * m4/dirname.m4: New file.
55669
55670         Module getopt.
55671         * m4/getopt.m4: New file.
55672
55673         Module unistd-safer.
55674         * m4/unistd-safer.m4: New file.
55675
55676         Module fnmatch.
55677         * m4/fnmatch.m4 (_AC_FUNC_FNMATCH_IF): Include <stdlib.h>, for exit()
55678         declaration.
55679         (gl_PREREQ_FNMATCH_EXTRA): New macro.
55680         (gl_FUNC_FNMATCH_POSIX): New macro.
55681         (gl_FUNC_FNMATCH_GNU): Renamed from AC_FUNC_FNMATCH_GNU. Invoke
55682         gl_PREREQ_FNMATCH_EXTRA. Use the function name gnu_fnmatch, not
55683         simply fnmatch.
55684
55685         Module exclude.
55686         * m4/exclude.m4: New file.
55687
55688         Module human.
55689         * m4/human.m4: New file.
55690
55691         Module acl.
55692         * m4/acl.m4: Nop.
55693
55694         Module backupfile.
55695         * m4/backupfile.m4: New file.
55696         * m4/d-ino.m4: Indentation.
55697
55698         Module fsusage.
55699         * m4/fsusage.m4 (gl_FSUSAGE): New macro.
55700         (jm_STATFS_TRUNCATES): New macro, from coreutils-4.5.4/configure.ac.
55701         (gl_PREREQ_FSUSAGE_EXTRA): New macro.
55702
55703         Module dirfd.
55704         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Invoke some AC_EGREP_CPP
55705         requirements.
55706
55707         Module euidaccess.
55708         * m4/euidaccess.m4: New file.
55709
55710         Module file-type.
55711         * m4/file-type.m4: New file.
55712
55713         Module fileblocks.
55714         * m4/fileblocks.m4: New file.
55715
55716         Module filemode.
55717         * m4/filemode.m4: New file.
55718
55719         Module isdir.
55720         * m4/isdir.m4: New file.
55721
55722         Module lchown.
55723         * m4/lchown.m4 (gl_PREREQ_LCHOWN): New macro.
55724         (jm_FUNC_LCHOWN): Invoke gl_PREREQ_LCHOWN.
55725
55726         Module makepath.
55727         * m4/makepath.m4: New file.
55728
55729         Module modechange.
55730         * m4/modechange.m4: New file.
55731
55732         Module mountlist.
55733         * m4/mountlist.m4: New file.
55734         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Use onceonly macros.
55735         Indentation.
55736
55737         Module path-concat.
55738         * m4/path-concat.m4: New file.
55739
55740         Module pathmax.
55741         * m4/pathmax.m4: New file.
55742
55743         Module same.
55744         * m4/same.m4: New file.
55745
55746         Module save-cwd.
55747         * m4/save-cwd.m4: New file.
55748
55749         Module savedir.
55750         * m4/savedir.m4: New file.
55751
55752         Module xgetcwd.
55753         * m4/xgetcwd.m4: New file.
55754         * m4/getcwd.m4 (AC_FUNC_GETCWD_NULL): Use onceonly macros.
55755
55756         Module xreadlink.
55757         * m4/xreadlink.m4: New file.
55758
55759         Module safe-read.
55760         * m4/safe-read.m4: New file.
55761
55762         Module safe-write.
55763         * m4/safe-write.m4: New file.
55764
55765         Module closeout.
55766         * m4/closeout.m4: New file.
55767
55768         Module stdio-safer.
55769         * m4/stdio-safer.m4: New file.
55770
55771         Module getpass.
55772         * m4/getpass.m4: New file.
55773
55774         Module getugroups.
55775         * m4/getugroups.m4: New file.
55776
55777         Module group-member.
55778         * m4/group-member.m4 (gl_PREREQ_GROUP_MEMBER): New macro.
55779         (jm_FUNC_GROUP_MEMBER): Invoke AC_GNU_SOURCE, gl_PREREQ_GROUP_MEMBER.
55780
55781         Module idcache.
55782         * m4/idcache.m4: New file.
55783
55784         Module userspec.
55785         * m4/userspec.m4: New file.
55786
55787         Module gettime.
55788         * m4/clock_time.m4: New file.
55789         * m4/gettime.m4: New file.
55790
55791         Module settime.
55792         * m4/settime.m4: New file.
55793
55794         Module posixtm.
55795         * m4/posixtm.m4: New file.
55796
55797         Module gethostname.
55798         * m4/gethostname.m4: New file.
55799
55800         Module canon-host.
55801         * m4/canon-host.m4: New file.
55802
55803         Module gettext.
55804         * m4/codeset.m4: New file, from gettext-0.11.5.
55805         * m4/gettext.m4: New file, from gettext-0.11.5.
55806         * m4/glibc21.m4: New file, from gettext-0.11.5.
55807         * m4/iconv.m4: New file, from gettext-0.11.5.
55808         * m4/intdiv0.m4: New file, from gettext-0.11.5.
55809         * m4/inttypes-pri.m4: New file, from gettext-0.11.5.
55810         * m4/inttypes.m4: New file, from gettext-0.11.5.
55811         * m4/inttypes_h.m4: New file, from gettext-0.11.5 with modifications.
55812         * m4/isc-posix.m4: New file, from gettext-0.11.5.
55813         * m4/lcmessage.m4: New file, from gettext-0.11.5.
55814         * m4/lib-ld.m4: New file, from gettext-0.11.5.
55815         * m4/lib-link.m4: New file, from gettext-0.11.5.
55816         * m4/lib-prefix.m4: New file, from gettext-0.11.5.
55817         * m4/progtest.m4: New file, from gettext-0.11.5.
55818         * m4/stdint_h.m4: New file, from gettext-0.11.5 with modifications.
55819         * m4/uintmax_t.m4: New file, from gettext-0.11.5 with modifications.
55820         * m4/ulonglong.m4: New file, from gettext-0.11.5 with modifications.
55821
55822         Module localcharset.
55823         * m4/localcharset.m4: New file.
55824
55825         Module hard-locale.
55826         * m4/hard-locale.m4: New file.
55827
55828         Module mbswidth.
55829         * m4/mbswidth.m4 (gl_MBSWIDTH): Renamed from jm_PREREQ_MBSWIDTH. Use
55830         onceonly macros.
55831         * m4/mbrtowc.m4: Add comment.
55832
55833         Module memcasecmp.
55834         * m4/memcasecmp.m4: New file.
55835
55836         Module memcoll.
55837         * m4/memcoll.m4: New file.
55838
55839         Module unicodeio.
55840         * m4/unicodeio.m4: New file.
55841
55842         Module rpmatch.
55843         * m4/rpmatch.m4: New file.
55844
55845         Module yesno.
55846         * m4/yesno.m4: New file.
55847
55848         Module exitfail.
55849         * m4/exitfail.m4: New file.
55850
55851         Module c-stack.
55852         * m4/c-stack.m4 (gl_C_STACK): New macro.
55853         (jm_PREREQ_C_STACK): Check for <sys/time.h>. Use onceonly macros.
55854
55855         Module error.
55856         * m4/error.m4 (gl_ERROR): New macro.
55857         (jm_PREREQ_ERROR): Use onceonly macros.
55858
55859         Module fatal.
55860         * m4/fatal.m4: New file.
55861
55862         Module getloadavg.
55863         * m4/getloadavg.m4 (AC_FUNC_GETLOADAVG): Use onceonly macros.
55864         (gl_FUNC_GETLOADAVG, gl_PREREQ_GETLOADAVG): New macros.
55865
55866         Module getpagesize.
55867         * m4/getpagesize.m4: New file.
55868
55869         Module getusershell.
55870         * m4/getusershell.m4: New file.
55871
55872         Module physmem.
55873         * m4/physmem.m4: New file.
55874
55875         Module posixver.
55876         * m4/posixver.m4: New file.
55877
55878         Module quotearg.
55879         * m4/quotearg.m4: New file.
55880
55881         Module quote.
55882         * m4/quote.m4: New file.
55883
55884         Module readutmp.
55885         * m4/readutmp.m4: New file, based on jm_PREREQ_READUTMP from prereq.m4.
55886
55887         Module sig2str.
55888         * m4/sig2str.m4: New file.
55889
55890         Other.
55891         * m4/longlong.m4 (jm_AC_TYPE_UNSIGNED_LONG_LONG): Remove, moved to
55892         ulonglong.m4.
55893         * m4/intmax_t.m4: New file.
55894         * m4/d-type.m4: Indentation.
55895         * m4/jm-macros.m4: Update.
55896         * m4/prereq.m4 (jm_PREREQ): Update.
55897         (jm_PREREQ_ADDEXT): Remove, obsoleted by backupfile.m4.
55898         (jm_PREREQ_CANON_HOST): Remove, obsoleted by canon-host.m4.
55899         (jm_PREREQ_DIRNAME): Remove, obsoleted by dirname.m4.
55900         (jm_PREREQ_EXCLUDE): Remove, obsoleted by exclude.m4.
55901         (jm_PREREQ_GETPAGESIZE): Remove, obsoleted by getpagesize.m4.
55902         (jm_PREREQ_HARD_LOCALE): Remove, obsoleted by hard-locale.m4.
55903         (jm_PREREQ_HASH): Remove, obsoleted by hash.m4.
55904         (jm_PREREQ_HUMAN): Remove, obsoleted by human.m4.
55905         (jm_PREREQ_MEMCHR): Remove, obsoleted by memchr.m4.
55906         (jm_PREREQ_PHYSMEM): Remove, obsoleted by physmem.m4.
55907         (jm_PREREQ_POSIXVER): Remove, obsoleted by posixver.m4.
55908         (jm_PREREQ_QUOTEARG): Remove, obsoleted by quotearg.m4.
55909         (jm_PREREQ_READUTMP): Remove, obsoleted by readutmp.m4.
55910         (jm_PREREQ_REGEX): Remove, obsoleted by regex.m4.
55911         (jm_PREREQ_STRNLEN): Remove, obsoleted by strnlen.m4.
55912         (jm_PREREQ_TEMPNAME): Remove, obsoleted by mkstemp.m4.
55913         (jm_PREREQ_XGETCWD): Remove, obsoleted by xgetcwd.m4.
55914         (jm_PREREQ_XREADLINK): Remove, obsoleted by xreadlink.m4.
55915         * m4/readdir.m4 (jm_FUNC_READDIR): Use onceonly macros.
55916
55917 2002-12-24  Bruno Haible  <bruno@clisp.org>
55918
55919         * MODULES.txt: Update according to m4/ changes.
55920
55921         Module gettext.
55922         * config.rpath: New file, from gettext-0.11.5.
55923
55924         * modules/*: New module descriptions.
55925         * gnulib-tool: New file.
55926         * MODULES.html.sh: New file.
55927
55928 2002-12-21  Karl Berry  <karl@gnu.org>
55929
55930         * doc/fdl.texi: update to version 1.2.
55931
55932 2002-12-19  Karl Berry  <karl@gnu.org>
55933
55934         * config/config.guess: update from prep.
55935
55936 2002-12-18  Bruno Haible  <bruno@clisp.org>
55937
55938         * m4/strftime.m4 (_jm_STRFTIME_PREREQS): Don't test for localtime_r.
55939         * m4/jm-mktime.m4 (jm_FUNC_MKTIME): Likewise.
55940
55941 2002-12-17  Bruno Haible  <bruno@clisp.org>
55942
55943         * m4/mbswidth.m4 (jm_PREREQ_MBSWIDTH): Remove checks for limits.h,
55944         stdlib.h, string.h.
55945
55946 2002-12-17  Bruno Haible  <bruno@clisp.org>
55947
55948         * lib/canon-host.c (strdup): Remove unused declaration.
55949
55950         * lib/fsusage.c: Include full_read.h.
55951         (get_fs_usage): Use full_read instead of safe_read.
55952
55953         * lib/utime.c (utime_null): Use SAFE_READ_ERROR.
55954
55955 2002-12-12  Karl Berry  <karl@gnu.org>
55956
55957         * config/config.guess: update from prep.
55958
55959 2002-12-11  Bruno Haible  <bruno@clisp.org>
55960
55961         * m4/setenv.m4: New file, from gettext-0.11.5.
55962
55963 2002-12-11  Bruno Haible  <bruno@clisp.org>
55964
55965         * lib/setenv.h: Rewritten to cope with systems that have setenv() but
55966         not unsetenv().
55967         * lib/setenv.c, unsetenv.c: Taken from glibc-2.2.4 with the following
55968         modifications:
55969
55970         2002-12-11  Bruno Haible  <bruno@clisp.org>
55971
55972                 * setenv.c (alloca): Fall back to malloc.
55973                 (freea): New macro.
55974                 (setenv): Use freea() to free memory allocated with alloca().
55975
55976         2002-11-13  Bruno Haible  <bruno@clisp.org>
55977
55978                 * setenv.c (compar_fn_t, __add_to_environ, setenv): Use ANSI C
55979                 function declarations.
55980                 * unsetenv.c (unsetenv): Likewise.
55981
55982         2002-03-04  Bruno Haible  <bruno@clisp.org>
55983
55984                 Portability to AIX 4.3.3.
55985                 * unsetenv.c: New file, extracted from setenv.c.
55986                 * setenv.c: Move the unsetenv() function to unsetenv.c.
55987
55988         2001-12-20  Bruno Haible  <bruno@clisp.org>
55989
55990                 * setenv.c (__add_to_environ): Don't call realloc(NULL,...),
55991                 use malloc instead. For SunOS 4.
55992
55993         2001-12-11  Bruno Haible  <bruno@clisp.org>
55994
55995                 * setenv.c: Declare alloca.
55996                 (compar_fn_t): New typedef.
55997                 (KNOWN_VALUE, STORE_VALUE): Use it.
55998
55999         * lib/Makefile.am (libfetish_a_SOURCES): Add setenv.c, unsetenv.c,
56000         setenv.h.
56001
56002 2002-12-10  Paul Eggert  <eggert@twinsun.com>
56003
56004         Port exclude.c and exclude.h to more non-GNU systems, e.g. Solaris 7.
56005         * lib/exclude.h (EXCLUDE_ANCHORED, EXCLUDE_INCLUDE, EXCLUDE_WILDCARDS):
56006         Choose values that are less likely to collide with system fnmatch
56007         options.
56008         * lib/exclude.c (FNM_CASEFOLD, FNM_LEADING_DIR): Define to 0 if not
56009         defined (e.g., a pure POSIX system).
56010         (EXCLUDE_macros_do_not_collide_with_FNM_macros): Use FNM_PATHNAME
56011         instead of FNM_FILE_NAME, for compatibility with pure POSIX sytems.
56012
56013 2002-12-06  Paul Eggert  <eggert@twinsun.com>
56014
56015         Undo the 2001-07-02 change for jm-glibc-io, as it was too much of
56016         a pain in practice to deal with generated m4 files.  This change
56017         goes together with the 2002-12-04 unlocked-io.h change in ../lib.
56018
56019         * m4/Makefile.am.in (Makefile.am): Don't mention jm-glibc-io.m4n
56020         and jm-glibc-io.m4, as they are no longer a special case.
56021         * m4/jm-glibc-io.m4: Rename from jm-glibc-io.m4n, and remove the
56022         kludge and the auto-generation stuff.  Check only whether the
56023         functions are declared, not whether they exist, since older hosts
56024         that don't declare the functions can't use the optimization anyway.
56025
56026 2002-12-06  Jim Meyering  <jim@meyering.net>
56027
56028         * lib/error.c: Be consistent: change `#ifndef _LIBC' to `#if !_LIBC'.
56029
56030         Merge in changes from libc's misc/error.c, in preparation
56031         for the merge of gnulib's changes back into libc.
56032
56033         * lib/error.c (_): Define only if not already defined.
56034         Move definition to follow all #include directives.
56035         Include unlocked-io.h only if !_LIBC.
56036         [_LIBC]: Include <libio/libioP.h>.
56037         [USE_IN_LIBIO]: Include <libio/iolibio.h>
56038         (fflush): Tweak definition to use INTUSE.
56039         (putc): Define.
56040
56041 2002-12-05  Paul Eggert  <eggert@twinsun.com>
56042
56043         * lib/alloca.c [defined emacs]: Include "lisp.h".
56044         (xalloc_die) [defined emacs]: New macro.
56045         (free) [defined emacs && defined EMACS_FREE]: Define to EMACS_FREE.
56046         [! defined emacs]: Include <xalloc.h>.
56047         (POINTER_TYPE) [!defined POINTER_TYPE]: New macro.
56048         (pointer): Typedef to POINTER_TYPE *.
56049         (malloc): Remove decl; we now always use xmalloc.
56050         (alloca): Use old-style definition, since Emacs needs this.
56051         Check for arithmetic overflow when computing combined size.
56052
56053 2002-12-04  Paul Eggert  <eggert@twinsun.com>
56054
56055         Do not generate unlocked-io.h automatically, since it's easier to
56056         maintain it by hand.
56057
56058         * lib/unlocked-io.h: New file, from GNU diffutils,
56059         but with proper copyright notice and attribution.
56060         * lib/gen-uio: Remove.
56061         * lib/Makefile.am: Add copyright notice.
56062         (libfetish_a_SOURCES): Add unlocked-io.h.
56063         (BUILT_SOURCES, all-local): Remove unlocked-io.h.
56064         (DISTCLEANFILES, io_functions): Remove macros.
56065         (EXTRA_DIST): Remove gen_uio.
56066         (unlocked-io.h): Remove rule.
56067
56068 2002-12-04  Jim Meyering  <jim@meyering.net>
56069
56070         Reflect the fact that stat.c and lstat.c are no longer generated.
56071         * lib/Makefile.am (BUILT_SOURCES): Remove stat.c and lstat.c.
56072         (DISTCLEANFILES): Likewise.
56073         (EXTRA_DIST): Likewise.
56074         (all_local): Don't depend on stat.c or lstat.c.
56075         (stat.c, lstat.c): Remove rules.
56076         (EXTRA_DIST): Remove xstat.in.
56077
56078         * lib/xstat.in: Remove file.  Contents moved into stat.c.
56079         * lib/stat.c: New file.  Contents mostly from xstat.in.
56080         * lib/stat.c: Rework so that it may serve to define rpl_lstat, too.
56081         * lib/lstat.c: New file. Simply #define LSTAT and include stat.c.
56082
56083         * lib/safe-read.c: Rework so that it may serve to define safe_write,
56084         too.
56085         * lib/safe-write.c: Simply #define SAFE_WRITE and include safe-read.c.
56086
56087 2002-12-03  Jim Meyering  <jim@meyering.net>
56088
56089         * lib/safe-read.c, safe-write.c: Change variable names and comments,
56090         but not semantics, to minimize the differences between these two files.
56091         (safe_read): Change comment to mention SAFE_READ_ERROR.
56092
56093         * lib/safe-read.c (IS_EINTR): Define.
56094         (safe_read): Use IS_EINTR in place of in-function cpp directives.
56095
56096 2002-12-02  Jim Meyering  <jim@meyering.net>
56097
56098         * lib/safe-read.c (EINTR): Define.
56099         (CHAR_BIT, TYPE_SIGNED, TYPE_MINIMUM, TYPE_MAXIMUM): Define.
56100         (INT_MAX): Provide fallback.
56101         (safe_read): Rewrite to iterate IFF the read fails with EINTR.
56102
56103         * lib/safe-read.h (SAFE_READ_ERROR): Define.
56104
56105 2002-12-02  Bruno Haible  <bruno@clisp.org>
56106
56107         * lib/safe-write.c (CHAR_BIT, TYPE_SIGNED, TYPE_MINIMUM, TYPE_MAXIMUM):
56108         Define, taken from safe-read.c.
56109         (INT_MAX): Provide fallback.
56110         (safe_write): Rewrite to iterate IFF the write fails with EINTR.
56111         * lib/safe-write.h (SAFE_WRITE_ERROR): Define.
56112
56113         * lib/safe-read.c (EINTR): Remove definition.
56114         (safe_read): Don't use EINTR if it is absent.
56115
56116 2002-12-01  Jim Meyering  <jim@meyering.net>
56117
56118         * lib/safe-read.c: (safe_read): Also exit the loop when read returns
56119         zero.
56120         (CHAR_BIT, TYPE_SIGNED, TYPE_MINIMUM, TYPE_MAXIMUM, INT_MAX): Define.
56121
56122 2002-11-27  Paul Eggert  <eggert@twinsun.com>
56123
56124         * lib/hash.c (hash_lookup, hash_get_first, hash_get_next,
56125         hash_find_entry, hash_rehash): Replace `if (limit <= value) abort ();'
56126         with `if (! (value < limit)) abort ();', for readability.
56127
56128 2002-11-26  Karl Berry  <karl@gnu.org>
56129
56130         * lib/strdup.c: copy from libc again, with jim's ok.
56131         * lib/.cppi-disable: re-add strdup.c
56132
56133 2002-11-25  Karl Berry  <karl@gnu.org>
56134
56135         * lib/strtoll.c: copy from libc, meaning we now #include <strtol.c>
56136         instead of "strtol.c".
56137
56138 2002-11-25  Karl Berry  <karl@gnu.org>
56139
56140         * config/install-sh: update from automake for variable quoting, $0 in
56141         error msgs, etc.
56142
56143         * config/srclist.txt ($LIBCSRC/time/mktime.c lib gpl): new entry.
56144         * config/srclist.txt ($LIBCSRC/sysdeps/generic/strtoll.c lib gpl): new
56145         entry.
56146
56147 2002-11-25  Jim Meyering  <jim@meyering.net>
56148
56149         * lib/mktime.c: Sync from libc, now that it has the latest fix.
56150
56151 2002-11-24  Karl Berry  <karl@gnu.org>
56152
56153         * lib/error.c, getopt.c, getopt.h, getopt1.c, obstack.c, regex.c,
56154         regex.h, strdup.c, strtoll.c, tempname.c: change license to gpl.
56155
56156 2002-11-24  Jim Meyering  <jim@meyering.net>
56157
56158         Update from coreutils:
56159
56160         * lib/mktime.c: Merge in changes from libc.
56161
56162         Avoid a link-time failure on some Linux systems.
56163         * lib/mktime.c (STATIC): Define to be empty (_LIBC) or `static'
56164         (otherwise).
56165         (__mon_yday): Declare with the STATIC attribute.
56166         (__mktime_internal): Likewise.
56167         Based on a report from Greg Schafer.
56168
56169 2002-11-23  Jim Meyering  <jim@meyering.net>
56170
56171         * lib/sig2str.c (str2signum, sig2str): Avoid a warning from gcc:
56172         Use `unsigned', not `int', as type of index.
56173
56174         * lib/xstat.in [@BEGIN_LSTAT_ONLY@]: Include <string.h>.
56175
56176         * lib/fsusage.c: Remove unneeded parentheses around operands of
56177         `defined'.
56178
56179 2002-11-22  Paul Eggert  <eggert@twinsun.com>
56180
56181         * lib/quotearg.h: Allow multiple inclusion by surrounding with
56182         "#ifndef QUOTEARG_H_".  Include <stddef.h>, for size_t,
56183         so that we can be included first.
56184         (PARAMS): Remove; we now assume C89 or later.  All uses removed.
56185         * lib/quotearg.c: Include quotearg.h immediately after config.h.
56186         No need to include stddef.h or sys/types.h any more.
56187         Surround local include files with "", not "<>".
56188         Assume HAVE_LIMITS_H unconditionally, as we assume C89.
56189         Similarly, assume HAVE_C_BACKSLASH_A, CHAR_BIT, UCHAR_MAX, UINT_MAX,
56190         HAVE_STDLIB_H, HAVE_STRING_H, STDC_HEADERS.
56191         (HAVE_MBSINIT): Undef if !HAVE_MBRTOWC.
56192         (mbsinit): Define to 1 if !defined mbsinit && !HAVE_MBSINIT.
56193         (ISPRINT): Remove; no longer needed now that we assume C89.
56194
56195         (clone_quoting_options, quotearg_buffer, quotearg_n_options):
56196         Preserve errno.
56197
56198         (quotearg_buffer_restyled, quotearg_n, quotearg_n_style,
56199         quotearg_char): Use SIZE_MAX rather than
56200         (size_t) -1 when we are talking about "infinity".
56201
56202         (quotearg_buffer_restyled): Fix bug when quoting trigraphs.
56203
56204 2002-11-22  Paul Eggert  <eggert@twinsun.com>
56205
56206         * lib/hash.c: Avoid use of <assert.h>, as the GNU Coding Standards
56207         hint that one should use `if (! x) abort ();' rather than `assert
56208         (x);', and anyway it's one less thing to worry about configuring.
56209         (hash_lookup, hash_get_first, hash_get_next, hash_find_entry,
56210         hash_rehash, hash_insert): Use abort rather than assert.
56211
56212 2002-11-22  Bruno Haible  <bruno@clisp.org>
56213
56214         * lib/safe-read.h: Assume C89. Add comments.
56215         (safe_read): Change return type to size_t.
56216         * lib/safe-read.c (safe_read): Change return type to size_t. Handle
56217         byte counts > SSIZE_MAX correctly.
56218         * lib/safe-write.h: New file.
56219         * lib/safe-write.c: New file.
56220         * lib/full-read.h: New file.
56221         * lib/full-read.c: New file.
56222         * lib/full-write.h: Assume C89. Add comments.
56223         * lib/full-write.c: Include safe-write.h.
56224         (full_write): Rewritten to use safe_write.
56225         Suggested by Jim Meyering and Paul Eggert.
56226
56227 2002-11-21  Jim Meyering  <jim@meyering.net>
56228
56229         * lib/strdup.c (strdup): Tweak comment and initial #if/#include.
56230
56231         Merge in changes from the coreutils.
56232
56233         2002-09-25  Paul Eggert  <eggert@twinsun.com>
56234         * lib/fsusage.c [! HAVE_INTTYPES_H && HAVE_STDINT_H] Include
56235         <stdint.h>.
56236         (UINTMAX_MAX) [!defined UINTMAX_MAX]: New macro.
56237         (PROPAGATE_ALL_ONES): Work even if X is unsigned and narrower than
56238         int.  Work more efficiently if X is the same width as uintmax_t.
56239         Do not compare X to -1, to avoid bogus compiler warning.
56240         (get_fs_usage): (uintmax_t) -1 -> UINTMAX_MAX to avoid a cast.
56241         Don't assume that f_frsize and f_bsize are the same type.
56242
56243         * lib/mountlist.c: #undef MNT_IGNORE before defining it, to avoid
56244         warning on FreeBSD.
56245
56246         * lib/makepath.c (make_path): Restore umask *before* creating the final
56247         component.
56248         (make_path): Minor reformatting.
56249
56250         * lib/xmalloc.c: Adjust to work with new autoconf macros,
56251         AC_FUNC_MALLOC and AC_FUNC_REALLOC: test #ifndef
56252         HAVE_MALLOC/HAVE_REALLOC.
56253
56254         * lib/mountlist.h (ME_DUMMY): Don't count entries of type `auto' as
56255         dummy ones.  At least on GNU/Linux systems, `auto' means something
56256         else.
56257         From Michael Stone.
56258
56259 2002-11-21  Bruno Haible  <bruno@clisp.org>
56260
56261         Remove case insensitive option matching.
56262         * lib/argmatch.h (argcasematch): Remove declaration.
56263         (ARGCASEMATCH): Remove macro.
56264         (__xargmatch_internal): Remove case_sensitive argument.
56265         (XARGMATCH): Update.
56266         (XARGCASEMATCH): Remove macro.
56267         * lib/argmatch.c (argmatch): Renamed from __argmatch_internal. Remove
56268         case_sensitive argument.
56269         (argcasematch): Remove function.
56270         (__xargmatch_internal): Remove case_sensitive argument.
56271         (main): Use XARGMATCH instead of XARGCASEMATCH.
56272
56273         * lib/xmalloc.c: Change compile-time error message. Add comment about
56274         required autoconf version.
56275
56276 2002-11-20  Paul Eggert  <eggert@twinsun.com>
56277
56278         Merge argmatch cleanups from Bison.  Assume C89.
56279
56280         * lib/argmatch.c: Include config.h here, not in argmatch.h.
56281         Include stdlib.h, for EXIT_FAILURE.
56282         Always include <string.h>, since we assume C89.
56283         (EXIT_FAILURE): Remove pre-C89 bug workaround.
56284         * lib/argmatch.h: Do not include <config.h> or <sys/types.h>.
56285         Include <stddef.h> instead, since it's all we need for size_t.
56286         (PARAMS): Remove.  All uses removed.
56287         (ARRAY_CARDINALITY): Do not bother to #undef.
56288         (ARRAY_CARDINALITY, ARGMATCH, ARGCASEMATCH, invalid_arg,
56289         ARGMATCH_VALID, XARGMATCH, XARGCASEMATCH):
56290         Remove unnecessary parentheses.
56291         (ARGMATCH_VALID, XARGMATCH, XARGCASEMATCH):
56292         Insert necessary parentheses.
56293         (ARGMATCH_CONSTRAINT, ARGMATCH_VERIFY): New macros.
56294         (ARGMATCH_ASSERT): Use ARGMATCH_CONSTRAINT.
56295
56296 2002-11-19  Bruno Haible  <bruno@clisp.org>
56297
56298         * lib/mbswidth.c: Include mbswidth.h right at the beginning.
56299         * lib/mbswidth.h: Include <stddef.h>, for size_t.
56300
56301         * lib/mbswidth.h (PARAMS): Remove macro.
56302         (mbswidth, mbsnwidth): Use ANSI C function declarations.
56303         * lib/mbswidth.c (mbswidth, mbsnwidth): Likewise.
56304
56305         * lib/gcd.h (PARAMS): Remove macro.
56306         (gcd): Use ANSI C function declarations.
56307         * lib/gcd.c (gcd): Likewise.
56308
56309 2002-11-15  Bruno Haible  <bruno@clisp.org>
56310
56311         * lib/strcspn.c: Include <stddef.h>.
56312         (strcspn): Use ANSI C function declaration. Change return type to
56313         size_t. Use NULL.
56314         * lib/strpbrk.c: Minimize diffs to glibc. Include <stddef.h>.
56315         (strpbrk): Use NULL.
56316         * lib/strpbrk.h (PARAMS): Remove macro.
56317         (strpbrk): Use ANSI C function declaration.
56318         * lib/strstr.c: Don't include <sys/types.h>.
56319         * lib/strstr.h (PARAMS): Remove macro.
56320         (strstr): Use ANSI C function declarations.
56321
56322 2002-11-14  Karl Berry  <karl@gnu.org>
56323
56324         * config/mkinstalldirs: `do' on separate line, instead of
56325         `for var; do'.
56326
56327 2002-11-06  Bruno Haible  <bruno@clisp.org>
56328
56329         * lib/gcd.h (gcd): Change argument type to 'unsigned long'.
56330         * lib/gcd.c (gcd): Likewise.
56331
56332 2002-11-05  Bruno Haible  <bruno@clisp.org>
56333
56334         * lib/gcd.h: New file, from gettext-0.11.5.
56335         * lib/gcd.c: New file, from gettext-0.11.5.
56336
56337 2002-11-05  Bruno Haible  <bruno@clisp.org>
56338
56339         * lib/error.c [!_LIBC]: Include gettext.h instead of <libintl.h>.
56340         * lib/getopt.c [!_LIBC]: Include gettext.h instead of <libintl.h>.
56341         * lib/obstack.c [!_LIBC]: Include gettext.h instead of <libintl.h>.
56342         * lib/regex.c [!_LIBC]: Include gettext.h instead of <libintl.h>.
56343
56344         * lib/argmatch.c: Include gettext.h instead of <locale.h> and
56345         <libintl.h>.
56346         * lib/makepath.c: Include gettext.h instead of <locale.h> and
56347         <libintl.h>.
56348
56349         * lib/closeout.c: Include gettext.h instead of <libintl.h>.
56350         * lib/human.c: Include gettext.h instead of <libintl.h>.
56351         * lib/quotearg.c: Include gettext.h instead of <libintl.h>.
56352         * lib/rpmatch.c: Include gettext.h instead of <libintl.h>.
56353         * lib/unicodeio.c: Include gettext.h instead of <libintl.h>.
56354         * lib/userspec.c: Include gettext.h instead of <libintl.h>.
56355         * lib/version-etc.c: Include gettext.h instead of <libintl.h>.
56356         * lib/xmalloc.c: Include gettext.h instead of <libintl.h>.
56357         (textdomain): Remove definition.
56358         * lib/xmemcoll.c: Include gettext.h instead of <libintl.h>.
56359
56360         * lib/long-options.c: Remove include of <libintl.h> and definition of
56361         _.
56362         * lib/same.c: Remove include of <libintl.h> and definition of _.
56363
56364 2002-11-04  Owen Taylor  <otaylor@redhat.com>
56365
56366         * lib/config.charset: A few additions for Solaris.
56367
56368 2002-11-04  Bruno Haible  <haible@clisp.cons.org>
56369
56370         Make it possible to build libcharset with CC=gcc CFLAGS="-x c++".
56371         * lib/localcharset.c (locale_charset): Declare as extern "C".
56372
56373 2002-11-04  Bruno Haible  <haible@clisp.cons.org>
56374
56375         * lib/config.charset: msdos in uk_UA uses CP1125.
56376
56377 2002-11-04  Bruno Haible  <bruno@clisp.org>
56378
56379         * lib/stpcpy.h: New file, from GNU gettext-0.11.5.
56380         * lib/strcase.h: New file, from GNU gettext-0.11.5.
56381         * lib/strpbrk.h: New file, from GNU gettext-0.11.5.
56382         * lib/strstr.h: New file, from GNU gettext-0.11.5.
56383         * lib/xgetcwd.h: New file, from GNU gettext-0.11.5.
56384
56385 2002-11-04  Bruno Haible  <bruno@clisp.org>
56386
56387         * lib/localcharset.c (locale_charset): Don't return an empty string.
56388
56389 2002-11-04  Bruno Haible  <bruno@clisp.org>
56390
56391         * lib/localcharset.c (get_charset_aliases): Add more Windows specific
56392         aliases.
56393
56394 2002-11-04  Bruno Haible  <bruno@clisp.org>
56395
56396         * lib/config.charset: Update for newest glibc. Add canonical names
56397         ISO-8859-14, KOI8-T, TCVN5712-1, GEORGIAN-PS.
56398
56399 2002-11-04  Bruno Haible  <bruno@clisp.org>
56400
56401         * lib/config.charset: Add support for NetBSD.
56402
56403 2002-11-04  Bruno Haible  <bruno@clisp.org>
56404
56405         * lib/config.charset [msdosdjgpp]: For Russian, use CP866.
56406
56407 2002-11-01  Bruno Haible  <bruno@clisp.org>
56408
56409         * configure.in: Add AC_CONFIG_AUX_DIR call.
56410         (AC_OUTPUT): Add m4/Makefile, lib/Makefile. Remove doc/Makefile,
56411         test/Makefile.
56412         * Makefile.in (subdirs): Add m4, lib. Remove doc, test.
56413
56414 2002-09-28  Karl Berry  <karl@gnu.org>
56415
56416         * config/srclist.txt: can't copy install-sh/mkinstalldirs from
56417         installed automake until the next release, since changes have been
56418         made.
56419
56420 2002-09-25  Karl Berry  <karl@gnu.org>
56421
56422         * lib/strdup.c: copy from libc/string (via ../config/srclist*).
56423         * lib/getopt*: copy from libc/posix.
56424         * lib/gettext.h: copy from gettext.
56425         * lib/.cppi-disable: add strdup.c, gettext.h.
56426
56427 2002-09-25  Karl Berry  <karl@gnu.org>
56428
56429         * config/srclist.txt: enable gettext.h check.
56430         * config/config.{guess,sub}: update from prep.
56431         * config/depcomp, install-sh, mdate-sh, missing, mkinstalldirs: update
56432                 from automake 1.6.3.
56433         See srclist*.
56434
56435 2002-08-23  Stefan Monnier  <monnier@cs.yale.edu>
56436
56437         * regex.c (PATFETCH): Remove the translating fetch.
56438         (PATFETCH_RAW): Rename to PATFETCH.
56439         (set_image_of_range): New fun.
56440         (SET_RANGE_TABLE_WORK_AREA): Use it.
56441         (regex_compile): Don't translate the pattern chars so eagerly.
56442         Only do it when inserting an `exactn' bytecode or when handling
56443         a char-range.
56444         (mutually_exclusive_p): Avoid empty statement.
56445
56446 2002-07-06  Jim Meyering  <meyering@lucent.com>
56447
56448         * m4/README: Don't mention Makefile.am.in.
56449         Outline how I've tested changes to .m4 files.  Yep, it's a pain.
56450
56451 2002-07-01  Jim Meyering  <meyering@lucent.com>
56452
56453         * lib/c-stack.c: Include sys/time.h.
56454         From Volker Borchert.
56455
56456 2002-06-26  Paul Eggert  <eggert@twinsun.com>
56457
56458         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Check for btowc.
56459
56460 2002-06-26  Paul Eggert  <eggert@twinsun.com>
56461
56462         * lib/fnmatch.c, fnmatch_loop.c (WIDE_CHAR_SUPPORT):
56463         New macro.  Use it uniformly instead of
56464         (defined HAVE_WCTYPE_H && defined HAVE_WCHAR_H).
56465         It also uses HAVE_BTOWC, to fix a porting bug on Solaris 2.5.1
56466         reported by Vin Shelton.
56467
56468 2002-06-22  Paul Eggert  <eggert@twinsun.com>
56469
56470         * lib/c-stack.h (segv_handler, c_stack_action) [! defined SA_SIGINFO]:
56471         Do not assume SA_SIGINFO behavior.
56472         Bug reported by Jim Meyering on NetBSD 1.5.2.
56473
56474 2002-06-22  Jim Meyering  <meyering@lucent.com>
56475
56476         * m4/c-stack.m4: New file, from diffutils-2.8.2.
56477         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_C_STACK.
56478
56479         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Don't require AC__GNU_SOURCE,
56480         now that configure.ac uses AC_GNU_SOURCE.
56481         (jm_MACROS): Rename: jm_FUNC_FNMATCH to AC_FUNC_FNMATCH_GNU.
56482         * m4/prereq.m4 (jm_PREREQ_EXCLUDE): Likewise, wrt jm_FUNC_FNMATCH.
56483
56484         Update to latest tools.  Suggestions from Paul Eggert.
56485         * m4/stdbool.m4: New file, from diffutils-2.8.2.
56486         * m4/gnu-source.m4: Update from diffutils-2.8.2.
56487         * m4/fnmatch.m4: Likewise.
56488         * m4/prereq.m4: Change each use of AC_CHECK_HEADERS(stdbool.h)
56489         to AC_HEADER_STDBOOL
56490
56491 2002-06-22  Jim Meyering  <meyering@lucent.com>
56492
56493         * lib/fnmatch.c (ISASCII, ISPRINT): Undefine, to avoid warning about
56494         redefinition due to Solaris 2.6's definition in /usr/include/sys/euc.h.
56495
56496 2002-06-22  Jim Meyering  <meyering@lucent.com>
56497
56498         * lib/c-stack.c, lib/c-stack.h: New files, from diffutils-2.8.2.
56499
56500         * lib/exitfail.c, exitfail.h: Likewise.
56501         * lib/Makefile.am (libfetish_a_SOURCES): Add exitfail.c and exitfail.h.
56502
56503         * lib/Makefile.am (libfetish_a_SOURCES): Add fnmatch_.h in place
56504         of fnmatch.h.
56505         (EXTRA_DIST): Add fnmatch_loop.c.
56506         (libfetish_a_SOURCES): Add c-stack.c and c-stack.h.
56507
56508         * lib/fnmatch_loop.c: New file, from diffutils-2.8.2.
56509         * lib/fnmatch.c: Update from diffutils-2.8.2.
56510         * lib/fnmatch_.h: New file.  From diffutils-2.8.2.
56511         * lib/fnmatch.h: Remove file.
56512
56513 2002-06-21  Jim Meyering  <meyering@lucent.com>
56514
56515         * m4/c-bs-a.m4: Add comment, from diffutils-2.8.2.
56516         * m4/mbrtowc.m4: Likewise.
56517
56518         * m4/mbstate_t.m4: Update from diffutils-2.8.2.
56519         * m4/mbswidth.m4: Reflect name change:
56520         s/AC_MBSTATE_T/AC_TYPE_MBSTATE_T.
56521         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): Likewise.
56522
56523         * m4/lib-link.m4: Update from gettext-0.11.2.
56524         * m4/gettext.m4: Likewise.
56525
56526         * m4/jm-macros.m4 (jm_CHECK_ALL_HEADERS): Check for hurd.h.
56527         From Alfred M. Szmidt.
56528
56529 2002-06-18  Paul Eggert  <eggert@twinsun.com>
56530
56531         * lib/file-type.h: Report an error if neither S_ISREG nor
56532         S_IFREG is defined, instead of using a test specific to glibc
56533         2.2.  This should be safe, since POSIX requires S_ISREG and
56534         Unix Version 7 had S_IFREG.  We don't need to check for
56535         <sys/types.h> since we don't use any symbols that it defines.
56536
56537 2002-06-15  Richard Dawe  <richdawe@bigfoot.com>
56538
56539         * lib/Makefile.am (lstat.c, stat.c, .sin.sed): Use t-$@, rather than
56540         $@-t, so that each temporary file name is unique and valid in the first
56541         8 characters, for operation under DOS.
56542
56543 2002-06-15  Paul Eggert  <eggert@twinsun.com>
56544
56545         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Check for st_author.
56546
56547 2002-06-15  Jim Meyering  <meyering@lucent.com>
56548
56549         Work even with DJGPP 2.03, which lacks support for symlinks.
56550         From Richard Dawe.
56551         * lib/xstat.in (S_ISLNK): Define to 0 if neither S_ISLNK nor S_IFLNK
56552         is defined.
56553         * lib/lchown.c (S_ISLNK): Likewise.
56554
56555 2002-06-15  Jim Meyering  <meyering@lucent.com>
56556
56557         * lib/file-type.h (FILE_TYPE_H): Guard entire contents with #ifndef.
56558         For GNU libc 2.2 and newer, ensure that <sys/types.h> and <sys/stat.h>
56559         have been included before this file.
56560
56561 2002-06-14  Jim Meyering  <meyering@lucent.com>
56562
56563         * lib/file-type.h: Use the version from diffutils-2.8.2.
56564         * lib/file-type.c: Likewise.
56565
56566 2002-06-07  Jim Meyering  <meyering@lucent.com>
56567
56568         * m4/prereq.m4 (jm_PREREQ_STAT): Check for sys/param.h and sys/mount.h.
56569         They're needed at least for NetBSD 1.5.2.
56570         ($statxfs_includes): Include those same headers.
56571         ($statxfs_includes): Include sys/vfs.h if available.
56572         ($statxfs_includes): Likewise for sys/statvfs.h.
56573         Check for the following members in both structs statfs and statvfs:
56574         f_basetype, f_type, f_fsid.__val, f_namemax, f_namelen.
56575
56576 2002-06-01  Jim Meyering  <meyering@lucent.com>
56577
56578         * m4/d-type.m4 (jm_CHECK_TYPE_STRUCT_DIRENT_D_TYPE): Rename macro:
56579         s/D_TYPE_IN_DIRENT/HAVE_STRUCT_DIRENT_D_TYPE/.
56580
56581 2002-05-28  Jim Meyering  <meyering@lucent.com>
56582
56583         * m4/readdir.m4 (jm_FUNC_READDIR): Undefine `mkdir', not `rmdir'.
56584         Reported by Volker Borchert.
56585
56586 2002-05-27  Jim Meyering  <meyering@lucent.com>
56587
56588         Fix a problem seen only on nonconforming systems whereby ls.c's
56589         use of localtime, and then of gettimeofday would cause trouble:
56590         the localtime call used to initialize rpl_gettimeofday's save
56591         mechanism would clobber ls's current local time information so
56592         that in any long listing the first file would always be listed
56593         with date 1970-01-01.  Analysis by Volker Borchert.
56594
56595         * lib/gettimeofday.c (localtime): Undefine.
56596         (rpl_localtime): New function.
56597
56598 2002-05-27  Jim Meyering  <meyering@lucent.com>
56599
56600         * m4/gettimeofday.m4 (AC_FUNC_GETTIMEOFDAY_CLOBBER): Also replace
56601         localtime.
56602
56603         * m4/readdir.m4 (jm_FUNC_READDIR): Undefine `rmdir' so we don't try to
56604         use the replacement function; it wouldn't resolve at link time.
56605         Reported by Volker Borchert.
56606
56607 2002-05-22  Jim Meyering  <meyering@lucent.com>
56608
56609         * lib/Makefile.am (libfetish_a_SOURCES): Add file-type.c and
56610         file-type.h.
56611         * lib/file-type.h: New file.
56612         * lib/file-type.c (file_type): New file/function.  Extracted from
56613         diffutils.
56614
56615 2002-04-30  Jim Meyering  <meyering@lucent.com>
56616
56617         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_STAT.
56618
56619 2002-04-29  Paul Eggert  <eggert@twinsun.com>
56620
56621         * m4/prereq.m4 (jm_PREREQ_SIG2STR): Remove; all callers changed.
56622
56623 2002-04-29  Paul Eggert  <eggert@twinsun.com>
56624
56625         * m4/prereq.m4 (jm_PREREQ_HARD_LOCALE): Check for stdlib.h.
56626         Do not check for alloca.h (no longer used) or stdbool.h (was never
56627         used?).  Add AM_C_PROTOTYPES since hard-locale.h uses it.
56628
56629 2002-04-29  Paul Eggert  <eggert@twinsun.com>
56630
56631         * lib/hard-locale.c: Upgrade to version used in GNU Diffutils 2.8.1.
56632
56633 2002-04-29  Jim Meyering  <meyering@lucent.com>
56634
56635         * m4/jm-macros.m4 (jm_MACROS): Remove use of AC_FUNC_STRNLEN.
56636         * m4/prereq.m4: Add jm_PREREQ_STRNLEN.
56637         Use AC_FUNC_STRNLEN here instead.
56638
56639         * m4/jm-macros.m4: Don't AC_REQUIRE([AC_PROG_CC_STDC]).
56640         With autoconf-2.53a, it's part of AC_PROG_CC.
56641
56642 2002-04-28  Paul Eggert  <eggert@twinsun.com>
56643
56644         * m4/jm-macros.m4 (jm_MACROS): Add AC_REPLACE_FUNCS(sig2str).
56645         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_SIG2STR.
56646
56647 2002-04-28  Paul Eggert  <eggert@twinsun.com>
56648
56649         * lib/sig2str.h, lib/sig2str.c: New files.
56650         * lib/Makefile.am (libfetish_a_SOURCES): Add sig2str.h.
56651
56652 2002-04-28  Paul Eggert  <eggert@twinsun.com>
56653
56654         * lib/sig2str.h (SIGNUM_BOUND): Do not use WTERMSIG, to avoid
56655         depending on <sys/wait.h> and WTERMSIG.  Default to 64 instead
56656         of 127, since 64 is the largest conceivable number for ancient
56657         nonstandard hosts.
56658         * lib/sig2str.c: Do not include <sys/wait.h>; no longer needed.
56659
56660 2002-04-28  Jim Meyering  <meyering@lucent.com>
56661
56662         * lib/sig2str.c (WTERMSIG): Remove definition (unused).
56663
56664 2002-04-24  Jim Meyering  <meyering@lucent.com>
56665
56666         * m4/prereq.m4 (jm_PREREQ_HARD_LOCALE): New macro.
56667         (jm_PREREQ): Use it.
56668
56669         * m4/getloadavg.m4: Check for these headers: locale.h unistd.h
56670         mach/mach.h fcntl.h.
56671         Check for this function: setlocale.
56672
56673 2002-04-24  Jim Meyering  <meyering@lucent.com>
56674
56675         * lib/gettext.h: New file, from Gettext.
56676         * lib/Makefile.am (INCLUDES): Remove -I../intl.
56677         (libfetish_a_SOURCES): Add gettext.h.
56678
56679 2002-04-16  Jim Meyering  <meyering@lucent.com>
56680
56681         * m4/prereq.m4 (jm_PREREQ_READUTMP): Also check for these members:
56682         ut_pid, ut_id, ut_exit.
56683
56684 2002-04-16  Jim Meyering  <meyering@lucent.com>
56685
56686         * lib/readutmp.h (UT_TYPE): Remove definition (now in who.c).
56687         (HAVE_STRUCT_XTMP_UT_EXIT, HAVE_STRUCT_XTMP_UT_ID): Define.
56688         (HAVE_STRUCT_XTMP_UT_PID, HAVE_STRUCT_XTMP_UT_TYPE): Define.
56689
56690 2002-04-12  Jim Meyering  <meyering@lucent.com>
56691
56692         * m4/ls-mntd-fs.m4 (checking for getmntinfo function...): Remove
56693         now-bogus check for f_type in sys/mount.h.  Instead, just test for the
56694         existence of the getmntinfo function.  Needed for Darwin 5.3.
56695
56696         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Also detect when dirfd is a macro.
56697         This is necessary at least on Darwin 5.3.
56698
56699         * m4/jm-macros.m4: Don't AC_REPLACE(strnlen), now that we use
56700         AC_FUNC_STRNLEN.  Otherwise, we'd end up putting two copies of
56701         strnlen.o in the library, and that makes some versions of ranlib
56702         object.
56703
56704 2002-04-12  Jim Meyering  <meyering@lucent.com>
56705
56706         * lib/dirfd.h (dirfd): Elide prototype if dirfd is a macro.
56707
56708 2002-04-09  Jim Meyering  <meyering@lucent.com>
56709
56710         * m4/malloc.m4: (jm_FUNC_MALLOC): Change the `checking ...' message
56711         to be more precise.  Rather than saying we're checking whether the
56712         function `works', say what we're testing.
56713         * m4/realloc.m4 (jm_FUNC_REALLOC): Likewise.
56714         Reported by Bruno Haible.
56715
56716 2002-03-10  Jim Meyering  <meyering@lucent.com>
56717
56718         * lib/makepath.c (make_path): Remove a comma from a diagnostic.
56719         Suggestion from Santiago Vila.
56720
56721 2002-03-08  Jim Meyering  <meyering@lucent.com>
56722
56723         * lib/rename.c: Mention that this wrapper is needed also on
56724         mips-dec-ultrix4.4 systems.
56725
56726 2002-03-02  Jim Meyering  <meyering@lucent.com>
56727
56728         * lib/gettime.c (gettime): Test HAVE_CLOCK_GETTIME,
56729         not HAVE_CLOCK_SETTIME.
56730
56731 2002-02-27  Paul Eggert  <eggert@twinsun.com>
56732
56733         * m4/jm-macros.m4 (jm_MACROS): Do not replace stime; no longer used.
56734         Check for clock_settime.
56735
56736 2002-02-27  Paul Eggert  <eggert@twinsun.com>
56737
56738         * lib/nanosleep.h: Rename to....
56739         * lib/timespec.h: New name for nanosleep.h.  All uses changed.
56740
56741         * lib/gettime.c: New file.
56742         * lib/settime.c: New file.
56743         * lib/stime.c: Remove.
56744
56745         * lib/Makefile.am (libfetish_a_SOURCES): Add gettime.c, settime.c,
56746         timespec.h.  Remove nanosleep.h.
56747
56748 2002-02-25  Paul Eggert  <eggert@twinsun.com>
56749
56750         * m4/acl.m4: New file.
56751         * m4/jm-macros.m4 (jm_MACROS): Require AC_FUNC_ACL.
56752         Do not check for acl or sys/acl.h, as AC_FUNC_ACL does that now.
56753
56754 2002-02-25  Paul Eggert  <eggert@twinsun.com>
56755
56756         * lib/acl.c, lib/acl.h: New files.
56757         * lib/Makefile.am (libfetish_a_SOURCES): Add acl.h, acl.c.
56758
56759 2002-02-24  Jim Meyering  <meyering@lucent.com>
56760
56761         * lib/strnlen.c (strnlen): Define-away/undef so that an inconsistent
56762         prototype in string.h (on at least AIX4.3.2.0 w/gcc-2.95.3) doesn't
56763         cause trouble.  Reported by Nelson Beebe.
56764
56765 2002-02-23  Paul Eggert  <eggert@twinsun.com>
56766
56767         * lib/path-concat.c (xpath_concat): Reorder code to pacify
56768         compilers that don't know that xalloc_die never returns.
56769
56770 2002-02-20  Jim Meyering  <meyering@lucent.com>
56771
56772         * lib/getdate.c: Regenerate using bison-1.33.
56773
56774 2002-02-17  Jim Meyering  <meyering@lucent.com>
56775
56776         * config/config.guess (main): Don't use `head -1'; it's no longer
56777         portable. Use `sed 1q' instead.
56778
56779 2002-02-16  gettextize  <bug-gnu-gettext@gnu.org>
56780
56781         * m4/codeset.m4: Upgrade to gettext-0.11.
56782         * m4/gettext.m4: Upgrade to gettext-0.11.
56783         * m4/glibc21.m4: Upgrade to gettext-0.11.
56784         * m4/iconv.m4: Upgrade to gettext-0.11.
56785         * m4/isc-posix.m4: Upgrade to gettext-0.11.
56786         * m4/lcmessage.m4: Upgrade to gettext-0.11.
56787         * m4/lib-ld.m4: New file, from gettext-0.11.
56788         * m4/lib-link.m4: New file, from gettext-0.11.
56789         * m4/lib-prefix.m4: New file, from gettext-0.11.
56790         * m4/progtest.m4: Upgrade to gettext-0.11.
56791
56792 2002-02-15  Paul Eggert  <eggert@twinsun.com>
56793
56794         * m4/prereq.m4 (jm_PREREQ_POSIXVER): New macro.
56795         (jm_PREREQ): Use it.
56796
56797 2002-02-15  Paul Eggert  <eggert@twinsun.com>
56798
56799         * lib/posixver.c, lib/posixver.h: New files.
56800         * lib/Makefile.am (libfetish_a_SOURCES): Add them.
56801
56802 2002-02-02  Paul Eggert  <eggert@twinsun.com>
56803             Bruno Haible  <bruno@clisp.org>
56804
56805         * lib/unicodeio.h (print_unicode_char): Add exit_on_error argument.
56806         (fwrite_success_callback): New declaration.
56807         * lib/unicodeio.c (unicode_to_mb): New function, extracted from
56808         print_unicode_char. Call failure callback instead of error.
56809         (fwrite_success_callback): New function.
56810         (exit_failure_callback): New function.
56811         (fallback_failure_callback): New function.
56812         (print_unicode_char): Call unicode_to_mb.
56813
56814 2002-01-26  Jim Meyering  <meyering@lucent.com>
56815
56816         * m4/jm-macros.m4 (jm_MACROS): Require autoconf-2.52g.
56817         * m4/strnlen.m4: Remove file, now that it's part of autoconf.
56818
56819 2002-01-26  Jim Meyering  <meyering@lucent.com>
56820
56821         * lib/Makefile.am (getdate$U.o): Depend on unlocked-io.h.
56822
56823 2002-01-22  Paul Eggert  <eggert@twinsun.com>
56824
56825         * m4/jm-macros.m4 (jm_MACROS): Require AC_FUNC_FSEEKO.
56826
56827 2002-01-22  Jim Meyering  <meyering@lucent.com>
56828
56829         * lib/Makefile.am (Makefile): Don't depend on $(BUILT_SOURCES).
56830         Otherwise, some versions of automake would omit the rule that makes
56831         Makefile from Makefile.in.
56832
56833 2002-01-21  Paul Eggert  <eggert@twinsun.com>
56834
56835         * lib/xmemcoll.h, lib/xmemcoll.c: New files.
56836         * lib/Makefile.am (libfetish_a_SOURCES): Add them.
56837         * lib/memcoll.c: Include errno.h, and declare errno if not defined.
56838         (memcoll): Set errno to zero if there is no error.
56839
56840         * lib/quotearg.c (quotearg_buffer_restyled):
56841         Fix bug with quoting buffers containing NUL when backslashing escapes.
56842         This bug was exposed by the other changes in this patch.
56843         (quotearg_n_options): New arg ARGSIZE.
56844         All callers changed.
56845         (quoting_options_from_style): New function.
56846         (quotearg_n_style): Use it.
56847         (quotearg_n_style_mem): New function.
56848
56849         * lib/quotearg.h (quotearg_n_style_mem): New function.
56850
56851 2002-01-19  Jim Meyering  <meyering@lucent.com>
56852
56853         * m4/jm-macros.m4 (jm_MACROS): Use AC_FUNC_STRNLEN.
56854         Remove useless quotes: DF_PROG="df".
56855         * m4/strnlen.m4: New file.
56856
56857 2002-01-16  Paul Eggert  <eggert@twinsun.com>
56858
56859         * lib/backupfile.c (ISDIGIT): Comment fix.
56860         * lib/getdate.y (ISDIGIT): Likewise.
56861         * lib/posixtm.c (ISDIGIT, year): Likewise.
56862         * lib/strverscmp.c (ISDIGIT): Likewise.
56863         * lib/userspec.c (ISDIGIT): Likewise.
56864
56865 2002-01-16  Jim Meyering  <meyering@lucent.com>
56866
56867         * lib/getdate.y: Add three semicolons, each just before a closing
56868         brace. Bison (as of version 1.31) no longer papers over that mistake.
56869
56870 2002-01-05  Jim Meyering  <meyering@lucent.com>
56871
56872         * lib/version-etc.c (version_etc_copyright): Update copyright year.
56873
56874 2001-12-19  Paul Eggert  <eggert@twinsun.com>
56875
56876         * lib/closeout.c (close_stdout_status): If ferror (stdout), do
56877         not silently exit merely because the output buffer happens to
56878         have nothing pending.
56879
56880 2001-12-18  Paul Eggert  <eggert@twinsun.com>
56881
56882         See the big note in ../ChangeLog.
56883         * lib/human.c (suffixes): Prefer K to k for 1024.
56884         (generate_suffix_backwards): New function.
56885         (human_readable_inexact): Use it.
56886         * lib/xstrtol.c (__xstrtol): If there is no number but there
56887         is a valid suffix, assume 1.  "MB" now means decimal, "MiB" binary.
56888         Accept 'K' as well as 'k'.
56889
56890 2001-12-15  Jim Meyering  <meyering@lucent.com>
56891
56892         * lib/regex.h (__restrict_arr): Update from libc.
56893
56894         * lib/mountlist.h (ME_REMOTE): Recognize file systems of type smbfs
56895         as `remote' if the name starts with `//'.  Suggested by Michael Stone.
56896         (STREQ): Define.
56897
56898 2001-12-14  Jim Meyering  <meyering@lucent.com>
56899
56900         * m4/jm-macros.m4 (jm_MACROS): Check for iswspace.
56901         Suggestion from Bruno Haible.
56902
56903 2001-12-10  Jim Meyering  <meyering@lucent.com>
56904
56905         * lib/linebuffer.c: Remove explicit declarations of xmalloc and
56906         xrealloc, Instead, include "xalloc.h".
56907         (initbuffer): Don't cast xmalloc return value to char*.
56908         (readline): Reword comment.
56909         Don't cast xrealloc return value to char*
56910         Return NULL, not 0.
56911
56912 2001-12-09  Jim Meyering  <meyering@lucent.com>
56913
56914         * lib/modechange.c (mode_compile): Add cast to avoid pedantic warning
56915         about `signed and unsigned type in conditional expression'.
56916         * lib/posixtm.c (posix_time_parse): Likewise.
56917
56918         * lib/xreadlink.c (xreadlink): Add cast to avoid a pedantic warning.
56919
56920         * lib/readtokens.c (readtoken): Declare an index to be of type unsigned
56921         to avoid a pedantic warning.
56922
56923         * lib/getstr.c: Don't include assert.h.
56924         (getstr): Remove warning-evoking assertions.
56925         Return -1 if offset parameter is out of bounds.
56926         Change the type of a local from int to size_t.
56927
56928         * lib/strftime.c (my_strftime_localtime_r): Include this function
56929         definition in the `#if ! HAVE_TM_GMTOFF' block.
56930
56931         * lib/xgethostname.c: Remove declarations of xmalloc and xrealloc.
56932         Include xalloc.h instead.
56933
56934 2001-12-02  Jim Meyering  <meyering@lucent.com>
56935
56936         * lib/tempname.c: Don't declare getenv, thus reverting the change of
56937         2001-11-18.  It's no longer necessary, now that stdlib.h is always
56938         included.
56939
56940         * lib/regex.c [!__BOUNDED_POINTERS__]: Define away __bounded,
56941         __unbounded, and __ptrvalue.  Reported by Uwe H. Steinfeld.
56942
56943 2001-11-30  Akim Demaille  <akim@epita.fr>
56944
56945         * lib/xstrdup.c: Include xalloc.h, so that xstrdup is declared
56946         before being defined.
56947
56948 2001-11-27  Paul Eggert  <eggert@twinsun.com>
56949
56950         * lib/quotearg.h (quotearg_n, quotearg_n_style):
56951         First arg is int, not unsigned.
56952         * lib/quotearg.c (quotearg_n, quotearg_n_style): Likewise.
56953         (SIZE_MAX, UINT_MAX): New macros.
56954         (quotearg_n_options): Abort if N is negative.
56955         Avoid overflow check on hosts where size_t is 64 bits and int
56956         is 32 bits, as overflow is impossible there.
56957         Fix off-by-one typo that caused unnecessary reallocation.
56958
56959 2001-11-27  Jim Meyering  <meyering@lucent.com>
56960
56961         * lib/tempname.c: Merge with version from libc.
56962         * lib/regex.c: Likewise.
56963
56964         * lib/tempname.c: Include stdlib.h unconditionally.  On some old
56965         systems for which STDC_HEADERS is 0, it was not included, resulting in
56966         a warning about an integer-to-pointer conversion problem with getenv.
56967         Reported by Volker Borchert.
56968
56969 2001-11-26  Jim Meyering  <meyering@lucent.com>
56970
56971         * lib/gtod.h: Remove file.
56972         * lib/Makefile.am (libfetish_a_SOURCES): Remove gtod.h.
56973         * lib/gettimeofday.c: Don't include gtod.h.
56974         (GTOD_init): Remove function.
56975         (rpl_gettimeofday): Do its job here instead, rather than aborting.
56976         Suggestion from Volker Borchert.
56977
56978 2001-11-23  Jim Meyering  <meyering@lucent.com>
56979
56980         * lib/hash.h (struct hash_table): Don't define here.  Merely declare
56981         it.
56982         * lib/hash.c (struct hash_table): Define it here instead.
56983
56984 2001-11-22  Jim Meyering  <meyering@lucent.com>
56985
56986         * lib/hash.h: Bracket contents of file with #ifndef HASH_H_ ... #endif.
56987
56988 2001-11-20  Jim Meyering  <meyering@lucent.com>
56989
56990         * m4/mkstemp.m4 (UTILS_FUNC_MKSTEMP): Update comment to reflect that
56991         SunOS 4.1.4 and Solaris 2.5.1 lose, too.
56992
56993 2001-11-19  Jim Meyering  <meyering@lucent.com>
56994
56995         * m4/mkstemp.m4 (UTILS_FUNC_MKSTEMP): Don't bother with a temporary
56996         directory.  Use "conftestXXXXXX" as the template.
56997         Suggestion from Paul Eggert.
56998
56999         * m4/mkstemp.m4 (UTILS_FUNC_MKSTEMP): Close each descriptor
57000         immediately, so the test doesn't mistakenly hit the max-open-files
57001         limit.
57002
57003 2001-11-18  Paul Eggert  <eggert@twinsun.com>
57004
57005         * lib/tempname.c (TMP_MAX): Remove; no longer needed.
57006         (TEMPORARIES): New macro.
57007         (__gen_tempname): Use TEMPORARIES rather than TMP_MAX.  This
57008         removes an artificial limitation (e.g. HP-UX 10.20, where
57009         TMP_MAX is 17576).
57010
57011 2001-11-18  Jim Meyering  <meyering@lucent.com>
57012
57013         * m4/prereq.m4 (jm_PREREQ_TEMPNAME): Check for declaration of getenv.
57014
57015 2001-11-18  Jim Meyering  <meyering@lucent.com>
57016
57017         * lib/tempname.c [!HAVE_DECL_GETENV]: Declare getenv to avoid warning
57018         on SunOS 4.
57019
57020         * lib/Makefile.am (Makefile): Depend on $(BUILT_SOURCES), so those
57021         files will be created before anything else.
57022
57023 2001-11-17  Paul Eggert  <eggert@twinsun.com>
57024
57025         * m4/jm-winsz1.m4 (jm_WINSIZE_IN_PTEM): Do not define
57026         WINSIZE_IN_PTEM if <termios.h> defines struct winsize.
57027
57028 2001-11-17  Jim Meyering  <meyering@lucent.com>
57029
57030         * m4/mkstemp.m4 (UTILS_FUNC_MKSTEMP): New file and macro.
57031         Prompted by a report from Bob Proulx.
57032
57033         * m4/jm-macros.m4 (jm_MACROS): Don't test for mkstemp here.
57034         Instead, require UTILS_FUNC_MKSTEMP.
57035
57036 2001-11-17  Jim Meyering  <meyering@lucent.com>
57037
57038         * m4/jm-macros.m4 (jm_MACROS): Remove code to set POW_LIBM.
57039         Now, that's done as part of AC_FUNC_STRTOD.
57040
57041 2001-11-17  Jim Meyering  <meyering@lucent.com>
57042
57043         * lib/modechange.c (mode_adjust): Fix error introduced on 1999-04-26
57044         that made e.g., `chmod a=,o=w,g=o F' cause F to be group readable
57045         rather than group writable.  Patch by Juan F. Codagnone.
57046
57047         * lib/readtokens.c: Remove explicit declarations of xmalloc and
57048         xrealloc, Instead, include "xalloc.h".
57049
57050         * lib/mountlist.c: Include unlocked-io.h after all system headers.
57051         Remove explicit declarations of xmalloc, xrealloc,
57052         and xstrdup.  Instead, include "xalloc.h".
57053
57054         * lib/argmatch.c, closeout.c, error.c, exclude.c: Include
57055         unlocked-io.h.
57056         * lib/fatal.c, getdate.y, getpass.c, getstr.c, getusershell.c:
57057         Likewise.
57058         * lib/mountlist.c, posixtm.c, readtokens.c, readutmp.c: Likewise.
57059
57060         * lib/regex.c, sha.c, version-etc.c, yesno.c: Likewise.
57061         Reported by Padraig Brady.
57062
57063         * lib/mkstemp.c: #undef mkstemp.
57064         Include config.h.
57065         (rpl_mkstemp): Rename from mkstemp.
57066         Protoize.
57067
57068 2001-11-16  Jim Meyering  <meyering@lucent.com>
57069
57070         * lib/physmem.c [HAVE_SYS_PSTAT_H]: Include <sys/pstat.h>.
57071         (physmem_total) [HAVE_PSTAT_GETSTATIC]: If sysconf couldn't be used to
57072         determine the amount of total physical memory, use pstat_getstatic.
57073         HPUX-11 doesn't define _SC_PHYS_PAGES.
57074         (physmem_available) [HAVE_PSTAT_GETSTATIC && HAVE_PSTAT_GETDYNAMIC]:
57075         If sysconf couldn't be used to determine the amount of available
57076         physical memory, use both pstat_getstatic and pstat_getdynamic.
57077         Based on a patch from Bob Proulx.
57078
57079 2001-11-10  Jim Meyering  <meyering@lucent.com>
57080
57081         * m4/prereq.m4 (jm_PREREQ_PHYSMEM): New function.
57082         (jm_PREREQ): Use it.
57083
57084 2001-11-09  Jim Meyering  <meyering@lucent.com>
57085
57086         * m4/jm-macros.m4: Require autoconf-2.52f.
57087         (AC_FUNC_ERROR_AT_LINE, AC_FUNC_OBSTACK, AC_FUNC_STRTOD):
57088         Use these AC_-prefixed names, not the AM_-prefixed ones.
57089
57090         * m4/afs.m4 (jm_AFS): Quote the body.  Patch by Akim Demaille.
57091
57092 2001-11-05  Jim Meyering  <meyering@lucent.com>
57093
57094         * lib/xstat.in (slash_aware_lstat): Correct a misleading comment.
57095
57096 2001-11-04  Jim Meyering  <meyering@lucent.com>
57097
57098         * m4/fpending.m4: Remove unused cruft that saved, set, and restored
57099         $DEFS.
57100
57101 2001-11-03  Jim Meyering  <meyering@lucent.com>
57102
57103         * m4/jm-glibc-io.m4n (jm_FUNC_GLIBC_UNLOCKED_IO): Quote first arg
57104         of AC_DEFUN.
57105
57106         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Rework so dirfd.c doesn't have to
57107         know the name of the variable in the macro definition.
57108
57109 2001-11-03  Jim Meyering  <meyering@lucent.com>
57110
57111         * lib/argmatch.h (ARGMATCH_TO_ARGUMENT): Remove casts of first two args
57112         in argmatch_to_argument call.
57113
57114         * lib/dirfd.c (dirfd): Reflect the fact that DIR_TO_FD now takes an
57115         argument.
57116
57117         * lib/hash.c (hash_clear): Fix a bug that could lead to an infloop or
57118         e.g., a fault due to an attempt to free a NULL pointer.
57119
57120 2001-11-01  Jim Meyering  <meyering@lucent.com>
57121
57122         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): New macro.
57123         * m4/jm-macros.m4 (jm_MACROS): Require UTILS_FUNC_DIRFD.
57124
57125 2001-11-01  Jim Meyering  <meyering@lucent.com>
57126
57127         * lib/dirfd.c, lib/dirfd.h: New files.
57128         * lib/Makefile.am (libfetish_a_SOURCES): Add dirfd.h.
57129
57130         * lib/hash.c (hash_print) [TESTING]: Clean up.
57131
57132 2001-10-22  Paul Eggert  <eggert@twinsun.com>
57133
57134         * lib/hard-locale.c (alloca): Define to __builtin_alloca if __GNUC__,
57135         to avoid a warning if -Wall.
57136
57137 2001-10-22  Jeff Bailey  <jbailey@outpost.dnsalias.org>
57138
57139         * README: New file
57140         * doc/*: Add COPYING, COPYING.LIB, COPYING.DOC, fdl.texi
57141         (per RMS's instructions, this is now the canonical source)
57142         * lgpl/, gpl/: New directories.
57143
57144 2001-10-21  Paul Eggert  <eggert@twinsun.com>
57145
57146         * lib/regex.c (uintptr_t): Remove macro and decl; it's config.h's job.
57147
57148 2001-10-21  Jim Meyering  <meyering@lucent.com>
57149
57150         * lib/obstack.c (_): Honor the setting of ENABLE_NLS.  Otherwise,
57151         this code would end up calling gettext even in packages built
57152         with --disable-nls.
57153         * lib/getopt.c (_): Likewise.
57154         * lib/regex.c (_): Likewise.
57155
57156 2001-10-20  Paul Eggert  <eggert@twinsun.com>
57157
57158         * m4/error.m4 (jm_PREREQ_ERROR):
57159         Do not invoke AC_CHECK_FUNCS with strerror_r, as
57160         AC_FUNC_STRERROR_R does that.
57161         Check for strerror declaration.
57162
57163         * m4/strerror_r.m4: Add copyright notice, as nontrivial m4 files
57164         are supposed to have them these days.
57165         (AC_FUNC_STRERROR_R): Always do char* test, so that it gets cached.
57166         Merge changes from latest Autoconf CVS.
57167         Rename ac_cv_func_strerror_r_works to ac_cv_func_strerror_r_char_p,
57168         and rename HAVE_WORKING_STRERROR_R to STRERROR_R_CHAR_P, since
57169         POSIX decided to standardize on the int flavor of strerror_r.
57170
57171 2001-10-20  Paul Eggert  <eggert@twinsun.com>
57172
57173         * lib/error.c (strerror_r): Do not declare unless !_LIBC.
57174         Do not check for HAVE_DECL_STRERROR_R missing unless STRERROR_R_CHAR_P.
57175         Use strerror_r that is only a macro, even if it is not a function.
57176         (strerror): Check for HAVE_DECL_STRERROR before declaring.
57177         (private_strerror): Use prototypes, not old-style function definition.
57178         (print_errno_message): New function.
57179         Support the POSIX 'int'-flavored strerror_r, as well as the traditional
57180         char*-flavored one.
57181         (error_tail, error, error_at_line): Use it.
57182
57183 2001-10-11  Jim Meyering  <meyering@lucent.com>
57184
57185         * lib/argmatch.c (argmatch_invalid): Use quotearg_n_style (0, ...
57186         and quote_n (1, ... to avoid clobbering a buffer.
57187
57188 2001-10-05  Jim Meyering  <meyering@lucent.com>
57189
57190         * lib/Makefile.am: (libfetish_a_SOURCES): Add hash-pjw.c and
57191         hash-pjw.h.
57192         * lib/hash-pjw.c: New file (factored out of fileutils' remove.c).
57193         * lib/hash-pjw.h: New file.
57194
57195 2001-09-30  Jim Meyering  <meyering@lucent.com>
57196
57197         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): See if
57198         `struct fsstat' has the `f_fstypename' member.
57199         Use that to define FS_TYPE, which is now used to make
57200         the getfsstat link test tighter.
57201
57202 2001-09-30  Jim Meyering  <meyering@lucent.com>
57203
57204         * lib/mountlist.c [MOUNTED_GETFSSTAT]:
57205         Include <sys/ucred.h>, for Apple Darwin.
57206         Include sys/mount.h and sys/fs_types.h only if available.
57207         (FS_TYPE): Define.
57208         (read_filesystem_list): Use FS_TYPE.
57209
57210 2001-09-29  Paul Eggert  <eggert@twinsun.com>
57211
57212         * lib/exclude.c (excluded_filename): 0 -> false, since it's
57213         a boolean context.
57214
57215 2001-09-29  Jim Meyering  <meyering@lucent.com>
57216
57217         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS)
57218         [one-argument getmntent function]): Include stdio.h before mntent.h.
57219         SunOS 4.1.x needs it for the declaration of `FILE'.
57220         Patch by Volker Borchert.
57221
57222         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS)
57223         Check for these headers: sys/param.h sys/ucred.h sys/mount.h
57224         sys/fs_types.h, and make the link-test for getfsstat guard #include
57225         directives with appropriate #if HAVE_*_H tests so that we can
57226         detect getfsstat on Apple Darwin1.3.7 systems.
57227         Reported by Nelson Beebe.
57228         Fix harmless typo in cache variable name: s/getsstat/getfsstat/.
57229
57230 2001-09-28  Paul Eggert  <eggert@twinsun.com>
57231
57232         Fix bug reported by Petter Reinholdtsen for HP-UX 10.20, which
57233         #defines strtoimax.  Also treat the other strto* functions
57234         like strtoimax.
57235
57236         * m4/xstrtoimax.m4 (jm_AC_PREREQ_XSTRTOIMAX):
57237         Check for strtoul and strtoumax,
57238         as those declarations are made even in the signed case.
57239         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX):
57240         Likewise, for strtol and strtoimax.
57241
57242 2001-09-28  Paul Eggert  <eggert@twinsun.com>
57243
57244         Fix bug reported by Petter Reinholdtsen for HP-UX 10.20, which
57245         #defines strtoimax.  Also treat the other strto* functions
57246         like strtoimax.
57247
57248         * lib/xstrtol.c (strtol): Do not declare if HAVE_DECL_STRTOL.
57249         (strtoul): Do not declare if HAVE_DECL_STRTOUL.
57250         (strtoimax, strtoumax): Do not declare if already defined as a macro.
57251
57252 2001-09-26  Jim Meyering  <meyering@lucent.com>
57253
57254         Most macros in unlocked-io.h had the wrong number of arguments.
57255         * lib/gen-uio: New script.
57256         (USE_UNLOCKED_IO): Define to 1 if not already defined.
57257         * lib/unlocked-io.hin: Remove file.
57258         * lib/Makefile.am (unlocked-io.h): Rewrite to use a separate script,
57259         rather than trying to embed it here.
57260         (EXTRA_DIST): Add gen-uio.  Remove unlocked-io.hin
57261         Reported by Padraig Brady.
57262
57263 2001-09-25  Volker Borchert  <bt@teknon.de>
57264
57265         * lib/gettimeofday.c (rpl_gettimeofday): Declare local variable
57266         `result'.
57267
57268 2001-09-24  Jim Meyering  <meyering@lucent.com>
57269
57270         * m4/gettext.m4: Use the version from gettext-0.10.40, not CVS.
57271
57272 2001-09-23  Jim Meyering  <meyering@lucent.com>
57273
57274         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Add a compile-test
57275         instead of the mere test for existence of mntent.h.  The latter
57276         would get a false-positive on AIX 3.4 systems.
57277         In the outer getmntent if-block, don't die if neither of the getmntent
57278         tests succeeds.  Instead, just fall through and continue with the
57279         remaining tests.
57280
57281 2001-09-23  Jim Meyering  <meyering@lucent.com>
57282
57283         * lib/mountlist.c: Remove useless parentheses in #if directives.
57284         (MOUNTED) [!defined MOUNTED]: Define to _PATH_MOUNTED, for when
57285         the deprecated MOUNTED symbol is no longer defined in mntent.h.
57286
57287 2001-09-22  Jim Meyering  <meyering@lucent.com>
57288
57289         * m4/gettext.m4: New file.  From gettext.
57290         * m4/lcmessage.m4: Sync with gettext -- this changes only comments.
57291         * m4/progtest.m4: Likewise
57292         * m4/isc-posix.m4: Decrement serial number to sync with gettext.
57293         * m4/glibc21.m4: Likewise.
57294
57295         * m4/libintl.m4: Remove.  No longer used.
57296
57297 2001-09-22  Jim Meyering  <meyering@lucent.com>
57298
57299         * lib/localcharset.c: Update from latest gettext.
57300         * lib/config.charset: Likewise.
57301
57302 2001-09-20  Jim Meyering  <meyering@lucent.com>
57303
57304         * m4/xstrtoimax.m4 (jm_AC_PREREQ_XSTRTOIMAX): Check for declaration of
57305         strtoimax.
57306         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): Check for declaration of
57307         strtoumax.
57308
57309 2001-09-20  Jim Meyering  <meyering@lucent.com>
57310
57311         * lib/xstrtol.c (strtoimax): Guard declaration with
57312         `#if !HAVE_DECL_STRTOIMAX', rather than just `#ifndef strtoimax'.
57313         The latter fails because some systems (at least rs6000-ibm-aix4.3.3.0)
57314         have their own, conflicting declaration of strtoimax in sys/inttypes.h.
57315         (strtoumax): Likewise, for completeness (it wasn't necessary).
57316
57317 2001-09-17  Paul Eggert  <eggert@twinsun.com>
57318
57319         * lib/strtoimax.c (HAVE_LONG_LONG):
57320         Redefine to HAVE_UNSIGNED_LONG_LONG if unsigned.
57321         (strtoimax): Use sizeof (long), not sizeof strtol (ptr, endptr, base),
57322         to work around bug in IBM C compiler.
57323
57324 2001-09-17  Jim Meyering  <meyering@lucent.com>
57325
57326         * m4/chown.m4, fstypename.m4, getgroups.m4, gettimeofday.m4,
57327         * m4/jm-mktime.m4, lstat.m4, malloc.m4, memcmp.m4, mkdir-slash.m4,
57328         * m4/nanosleep.m4, putenv.m4, readdir.m4, realloc.m4, rename.m4,
57329         * m4/st_dm_mode.m4, stat.m4, strerror_r.m4, timespec.m4, utimbuf.m4,
57330         * m4/utimes.m4: Use AC_DEFINE rather than AC_DEFINE_UNQUOTED,
57331         whenever the right hand side need not be expanded by the shell.
57332
57333 2001-09-16  Paul Eggert  <eggert@twinsun.com>
57334
57335         * m4/fnmatch.m4 (jm_FUNC_FNMATCH): Remove test for GNU C
57336         library.  It's not correct, as some older glibcs are buggy.
57337         fnmatch wasn't fixed until glibc 2.2.
57338
57339         Use AC_DEFINE, not AC_DEFINE_UNQUOTED, as there's no
57340         special shell magic here.
57341
57342 2001-09-16  Jim Meyering  <meyering@lucent.com>
57343
57344         * m4/mkdir-slash.m4 (UTILS_FUNC_MKDIR_TRAILING_SLASH): New file/macro.
57345         * m4/jm-macros.m4: Require it.
57346
57347 2001-09-16  Jim Meyering  <meyering@lucent.com>
57348
57349         * lib/mkdir.c: New file.
57350
57351 2001-09-15  Jim Meyering  <meyering@lucent.com>
57352
57353         * m4/jm-macros.m4: Check for help2man.
57354
57355 2001-09-11  Jim Meyering  <meyering@lucent.com>
57356
57357         * m4/host-os.m4 (UTILS_HOST_OS): New file/macro.
57358         The body, by Paul Eggert, was moved here from configure.in.
57359         * m4/jm-macros.m4: Require UTILS_HOST_OS.
57360
57361 2001-09-04  Paul Eggert  <eggert@twinsun.com>
57362
57363         * m4/prereq.m4 (jm_PREREQ_XREADLINK): New macro.
57364         (jm_PREREQ): Use it.
57365
57366 2001-09-04  Paul Eggert  <eggert@twinsun.com>
57367
57368         * lib/xreadlink.c (xreadlink): Omit size_t* arg.  All uses changed.
57369         Use ssize_t, not int, to store result of readlink.
57370         Check for ssize_t overflow as well as size_t overflow,
57371         as POSIX says the result of readlink is implementation-defined
57372         when ssize_t overflows.
57373         Remove unnecessary cast to char*.
57374         Use free+malloc instead of realloc, as the storage doesn't need
57375         to be preserved and it's clearer and can be more efficient that way.
57376         (SIZE_MAX, SSIZE_MAX): New macros, if <limits.h> doesn't declare.
57377         * lib/xreadlink.h (xreadlink): Update prototype.
57378
57379 2001-09-04  Paul Eggert  <eggert@twinsun.com>
57380
57381         * lib/xgetcwd.c: Revert some of the previous change; intead,
57382         fix the HAVE_GETCWD_NULL code to behave more like the
57383         !HAVE_GETCWD_NULL code used to.
57384
57385         Include "xalloc.h".
57386         (xgetcwd): Do not return NULL when memory is exhausted; instead,
57387         invoke xalloc_die.
57388
57389 2001-09-03  Paul Eggert  <eggert@twinsun.com>
57390
57391         * m4/prereq.m4 (jm_PREREQ_XGETCWD): Check for limits.h and
57392         sys/param.h, as pathmax.h includes them.
57393
57394 2001-09-03  Paul Eggert  <eggert@twinsun.com>
57395
57396         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_XGETCWD.
57397         (jm_PREREQ_XGETCWD): New macro.
57398
57399         * m4/getcwd.m4: New file.
57400
57401 2001-09-03  Paul Eggert  <eggert@twinsun.com>
57402
57403         * lib/xgetcwd.c: Fix the !HAVE_GETCWD_NULL code to behave more
57404         like the HAVE_GETCWD_NULL code.
57405         Include pathmax.h if not HAVE_GETCWD.
57406         Do not include xalloc.h.
57407         (INITIAL_BUFFER_SIZE): New symbol.
57408         Do not use xmalloc / xrealloc, since the caller is responsible for
57409         handling errors.  Preserve errno around `free' during failure.
57410         Do not overrun buffer when using getwd.
57411
57412 2001-09-03  Paul Eggert  <eggert@twinsun.com>
57413
57414         * lib/xgetcwd.c (xgetcwd): Use HAVE_GETCWD_NULL, not (defined
57415         __GLIBC__ && __GLIBC__ >= 2), to decide whether to use
57416         getcwd (NULL, 0).
57417
57418 2001-09-03  Paul Eggert  <eggert@twinsun.com>
57419
57420         * lib/exclude.c (fnmatch_no_wildcards): Fix confusion between
57421         usage of FNM_CASEFOLD and FNM_LEADING_DIR.  The bug was
57422         spotted by Jim Meyering.
57423
57424 2001-09-03  Jim Meyering  <meyering@lucent.com>
57425
57426         * lib/xreadlink.c (xreadlink): Preserve errno around `free' during
57427         failure.
57428
57429 2001-09-02  Jim Meyering  <meyering@lucent.com>
57430
57431         * lib/error.c: Update from GNU libc.
57432
57433 2001-09-01  Jim Meyering  <meyering@lucent.com>
57434
57435         * m4/jm-macros.m4 (jm_MACROS): Check for canonicalize_file_name.
57436         Used by df.
57437
57438 2001-09-01  Jim Meyering  <meyering@lucent.com>
57439
57440         * lib/xreadlink.c: New file.
57441         * lib/xreadlink.h: New file.
57442         * lib/Makefile.am (libfetish_a_SOURCES): Add xreadlink.c and
57443         xreadlink.h.
57444
57445         * lib/regex.c (uintptr_t) [!_LIBC]: Define to private_uintptr_t, so it
57446         doesn't conflict with sparc Solaris 7's definition in
57447         /usr/include/sys/int_types.h.
57448
57449         * lib/exclude.c: Use `""', not `<>' to #include non-system header
57450         files.
57451         (fnmatch_no_wildcards): Rewrite not to use function names, strcasecmp
57452         and strncasecmp as r-values.  Unixware didn't have declarations.
57453
57454 2001-08-31  Paul Eggert  <eggert@twinsun.com>
57455
57456         * lib/xstrtol.h: Add copyright notice.
57457         (_DECLARE_XSTRTOL): Improve quality of diagnostic for
57458         LONGINT_INVALID_SUFFIX_CHAR.
57459
57460 2001-08-31  Paul Eggert  <eggert@twinsun.com>
57461
57462         * lib/xstrtol.c (strtoimax): New decl.
57463
57464 2001-08-31  Paul Eggert  <eggert@twinsun.com>
57465
57466         * lib/xgetcwd.c: Don't include pathmax.h.
57467         Include stdlib.h and unistd.h if available.
57468         Include xalloc.h.
57469         (xmalloc, xstrdup, free): Remove decls.
57470         (xgetcwd): Don't assume sizes fit in unsigned.
57471         Check for overflow when computing sizes.
57472         Simplify reallocation code.
57473
57474 2001-08-31  Paul Eggert  <eggert@twinsun.com>
57475
57476         * lib/savedir.c (savedir): Remove size parameter, as POSIX says that
57477         a directory's st_size can have an arbitrary value, so the old
57478         usage could waste an arbitrary amount of memory.  All uses
57479         changed.
57480         * lib/savedir.h: Update prototype.
57481
57482 2001-08-31  Paul Eggert  <eggert@twinsun.com>
57483
57484         * lib/Makefile.am (libfetish_a_SOURCES): Remove strtoxmax.c.
57485
57486         * lib/strtoimax.c: Renamed from strtoxmax.c, removing the
57487         old strtoimax.c.
57488
57489         Also, make the following further changes to make this file's
57490         configuration more similar to that of strtol.c:
57491         (UNSIGNED): Renamed from STRTOUXMAX_UNSIGNED.  All uses changed.
57492         (strtoumax, uintmax_t, strtoull, strtol): Remove.
57493         (intmax_t, strtoimax, strtol, strtoll): New macros, if UNSIGNED.
57494         (strtoimax): Renamed from strtoumax.  All uses of unsigned values
57495         changed to signed values.
57496
57497         And make the following changes as well:
57498         Fix copyright notice, as 1999 was missing.
57499         (verify): New macro.
57500         (strtoimax): Check sizes at compile-time, not run-time.
57501         Prefer strtol to strtoll if both work.
57502         (main): Remove; it was not that useful and was a pain to maintain.
57503
57504         * lib/strtoumax.c: Include strtoimax.c, not strtouxmax.c.
57505
57506 2001-08-31  Jim Meyering  <meyering@lucent.com>
57507
57508         * lib/xgetcwd.c (xgetcwd): Reorganize to avoid some duplication.
57509         Use an initial, malloc'd, buffer of length 128 rather than
57510         a statically allocated one of length 1024.
57511
57512 2001-08-30  Paul Eggert  <eggert@twinsun.com>
57513
57514         Simplify code, partly by assuming autoconf 2.52 semantics.
57515
57516         * m4/Makefile.am (EXTRA_DIST): Remove uintmax_t.m4.
57517
57518         * m4/inttypes.m4 (AC_PREREQ): Bump to 2.52.
57519         (jm_AC_HEADER_INTTYPES_H): Remove; now done by autoconf in 2.52.
57520         All uses removed.
57521         (jm_AC_TYPE_INTMAX_T, jm_AC_TYPE_UINTMAX_T):
57522         Move AC_REQUIRE to next-to-top level, to avoid confusion.
57523         Use 2.52's AC_CHECK_TYPE instead of merely looking for the header.
57524         * m4/prereq.m4 (jm_PREREQ_HUMAN): Don't require
57525         jm_AC_HEADER_INTTYPES_H.
57526         * m4/jm-macros.m4 (jm_MACROS): Likewise.
57527
57528         * m4/uintmax_t.m4: Remove, as it duplicates inttypes.m4.
57529
57530         * m4/xstrtoimax.m4 (jm_AC_PREREQ_XSTRTOIMAX):
57531         Quote first arg of AC_DEFUN.
57532         Require jm_AC_TYPE_UINTMAX_T and jm_AC_TYPE_UNSIGNED_LONG_LONG
57533         since they are needed to parse the include file even if we need
57534         only xstrtoimax.  Simplify logic behind the args to AC_REPLACE.
57535         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): Likewise,
57536         but with opposite signedness.
57537
57538 2001-08-30  Paul Eggert  <eggert@twinsun.com>
57539
57540         Merge 'exclude' changes from tar 1.13.22.
57541         This fixes one or two unlikely storage allocation overflow bugs,
57542         but doesn't change user-visible behavior otherwise.
57543
57544 2001-08-30  Paul Eggert  <eggert@twinsun.com>
57545
57546         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_EXCLUDE.
57547         (jm_PREREQ_EXCLUDE): New macro.
57548
57549 2001-08-30  Paul Eggert  <eggert@twinsun.com>
57550
57551         * lib/quotearg.c: BSD/OS 4.1 wchar.h requires FILE and struct
57552         tm to be declared.
57553
57554 2001-08-30  Paul Eggert  <eggert@twinsun.com>
57555
57556         * lib/hash.c: Remove '2001' from copyright notice.
57557
57558 2001-08-30  Paul Eggert  <eggert@twinsun.com>
57559
57560         * lib/full-write.h: New file.
57561         * lib/Makefile.am (libfetish_a_SOURCES): Add full-write.h.
57562         * lib/full-write.c: Correct credits, as cccp.c no longer
57563         exists and anyway it was so heavily changed from the old cccp
57564         code as to be unrecognizable.  Include full-write.h.
57565         (full_write) Return size_t, with short writes meaning failure.
57566         All callers changed.  This fixes a bug with large buffers
57567         on 64-bit hosts.
57568         * lib/utime.c: Include full-write.h.
57569
57570 2001-08-30  Paul Eggert  <eggert@twinsun.com>
57571
57572         * lib/exclude.c (bool): Declare, perhaps by including stdbool.h.
57573         (<sys/types.h>): Include only if HAVE_SYS_TYPES_H.
57574         (<stdlib.h>, <string.h>, <strings.h>, <inttypes.h>, <stdint.h>):
57575         Include if available.
57576         (<xalloc.h>): Include
57577         (SIZE_MAX): Define if <stdint.h> or <inttypes.h> doesn't.
57578         (verify): New macro.  Use it to verify that EXCLUDE macros do not
57579         collide with FNM macros.
57580         (struct patopts): New struct.
57581         (struct exclude): Use it, as exclude patterns now come with options.
57582         (new_exclude): Support above changes.
57583         (new_exclude, add_exclude_file):
57584         Initial size must now be a power of two to simplify overflow checking.
57585         (free_exclude, fnmatch_no_wildcards): New function.
57586         (excluded_filename): No longer requires options arg, as the options
57587         are determined by add_exclude.  Now returns bool, not int.
57588         (excluded_filename, add_exclude):
57589         Add support for the fancy new exclusion options.
57590         (add_exclude, add_exclude_file): Now takes int options arg.
57591         Check for arithmetic overflow when computing sizes.
57592         (add_exclude_file): xrealloc might modify errno, so don't
57593         realloc until after errno might be used.
57594
57595         * lib/exclude.h (EXCLUDE_ANCHORED, EXCLUDE_INCLUDE,EXCLUDE_WILDCARDS):
57596         New macros.
57597         (free_exclude): New decl.
57598         (add_exclude, add_exclude_file): Now takes int options arg.
57599         (excluded_filename): No longer requires options arg, as the options
57600         are determined by add_exclude.  Now returns bool, not int.
57601
57602 2001-08-30  Paul Eggert  <eggert@twinsun.com>
57603
57604         * lib/alloca.c (alloca): Arg is of type size_t, not unsigned.
57605
57606 2001-08-27  Jim Meyering  <meyering@lucent.com>
57607
57608         * lib/Makefile.am (libfetish_a_SOURCES): Add strtoxmax.c
57609
57610         * lib/version-etc.c (N_): Remove definition.
57611         Revert most of last change.
57612         Instead, simply don't mark the `Copyright...' string for translation.
57613         Based on advice from Paul Eggert.
57614
57615         * lib/strtoxmax.c: Tweak comment.
57616
57617 2001-08-26  Jim Meyering  <meyering@lucent.com>
57618
57619         * m4/jm-macros.m4: Require jm_AC_PREREQ_XSTRTOIMAX.
57620
57621         * m4/xstrtoimax.m4: New file.
57622         * m4/xstrtoumax.m4: Add comments explaining why we
57623         AC_REPLACE_FUNCS(strtol).
57624
57625 2001-08-26  Jim Meyering  <meyering@lucent.com>
57626
57627         * lib/version-etc.c (version_etc_copyright_fmt): Replace literal year
57628         of copyright with `%s' so translators don't get an untranslated
57629         message in 2002.
57630         (COPYRIGHT_YEAR): Define.
57631         (version_etc): Use fprintf rather than fputs.
57632         Suggestion from Ulrich Drepper.
57633
57634         * lib/Makefile.am (libfetish_a_SOURCES): Add xstrtoimax.c.
57635
57636         * lib/strtoll.c: New file, from GNU libc.
57637         * lib/xstrtoimax.c: New file.
57638
57639         * lib/xstrtol.h: Add xstrtoimax.
57640         * lib/strtoumax.c: New file.  Simply include "strtoumax.c".
57641         * lib/strtoimax.c: New file.  Likewise, but first define
57642         STRTOUXMAX_SIGNED.
57643
57644         * lib/strtoumax.c: Factor to work both for unsigned and signed types,
57645         ...
57646         * lib/strtoxmax.c: ... then renamed to this.
57647
57648 2001-08-18  Paul Eggert  <eggert@twinsun.com>
57649
57650         * m4/inttypes.m4: Add AC_PREREQ(2.13).
57651         (jm_AC_HEADER_INTTYPES_H): Test for intmax_t, too.
57652         (jm_AC_TYPE_INTMAX_T): New macro.
57653         (jm_AC_TYPE_UINTMAX_T): Moved here from uintmax_t.m4.
57654
57655         * m4/longlong.m4 (jm_AC_TYPE_LONG_LONG): New macro.
57656
57657         * m4/longlong.m4: Renamed from ulonglong.m4.
57658         * m4/inttypes.m4: Renamed from inttypes_h.m4.
57659         * m4/uintmax_t.m4: Removed.
57660
57661 2001-08-13  Paul Eggert  <eggert@twinsun.com>
57662
57663         * lib/Makefile.am (unlocked-io.h): Do not append "_unlocked" twice.
57664         Port to Solaris 8, where 'sed' requires a space after the 'r'
57665         command, and where sh dislikes "$/".  Clean up the spacing a bit.
57666         Redirect output to $tmp just once.
57667
57668 2001-08-12  Paul Eggert  <eggert@sic.twinsun.com>
57669
57670         * lib/addext.c (<errno.h>): Include.
57671         (errno): Declare if not defined.
57672         (addext): Work correctly when pathconf returns -1 and leaves
57673         errno alone because there is no limit.  Also, work even if
57674         pathconf returns a value greater than SIZE_MAX.
57675
57676 2001-08-12  Jim Meyering  <meyering@lucent.com>
57677
57678         * m4/afs.m4, assert.m4, bison.m4, check-decl.m4, chown.m4, d-ino.m4,
57679         d-type.m4, dos.m4, error.m4, fnmatch.m4, fpending.m4, fstypename.m4,
57680         fsusage.m4, ftruncate.m4, getgroups.m4, glibc.m4, gnu-source.m4,
57681         group-member.m4, jm-glibc-io.m4, jm-macros.m4, jm-mktime.m4,
57682         jm-winsz1.m4, jm-winsz2.m4, lchown.m4, lib-check.m4, libintl.m4,
57683         link-follow.m4, ls-mntd-fs.m4, lstat.m4, malloc.m4, mbrtowc.m4,
57684         mbstate_t.m4, mbswidth.m4, memcmp.m4, nanosleep.m4, perl.m4,
57685         prereq.m4, putenv.m4, readdir.m4, realloc.m4, regex.m4, rename.m4,
57686         rmdir-errno.m4, search-libs.m4, st_dm_mode.m4, st_mtim.m4, stat.m4,
57687         strftime.m4, timespec.m4, unlink-busy.m4, uptime.m4, utimbuf.m4,
57688         utime.m4, utimes.m4, xstrtoumax.m4:
57689         Quote the first argument in each use of AC_DEFUN.
57690
57691 2001-08-12  Jim Meyering  <meyering@lucent.com>
57692
57693         * lib/xgetcwd.c (xgetcwd) [defined __GLIBC__ && __GLIBC__ >= 2]:
57694         Simply `return getcwd (NULL, 0);'.
57695         [! (defined __GLIBC__ && __GLIBC__ >= 2)]:
57696         Use 1300 as initial value for length, not PATH_MAX.
57697
57698         * lib/pathmax.h: Clean up cpp syntax.
57699
57700 2001-08-12  Jim Meyering  <meyering@lucent.com>
57701
57702         * lib/gettimeofday.c: New file.
57703         * lib/gtod.h: New file.
57704         * lib/Makefile.am (libfetish_a_SOURCES): Add gtod.h.
57705
57706 2001-08-05  Jim Meyering  <meyering@lucent.com>
57707
57708         * m4/jm-macros.m4: Require autoconf-2.52.
57709
57710 2001-08-04  Jim Meyering  <meyering@lucent.com>
57711
57712         * lib/error.h (__attribute__): Remove `|| __STRICT_ANSI__' from #if
57713         stmt, to get in sync with glibc.
57714
57715 2001-08-03  Paul Eggert  <eggert@twinsun.com>
57716
57717         The following changes are from gettext 0.10.39 as maintained by
57718         Bruno Haible.
57719
57720         * lib/mbswidth.h (MBSW_REJECT_UNPRINTABLE, MBSW_REJECT_INVALID):
57721         Renamed from MBSW_ACCEPT_UNPRINTABLE and MBSW_ACCEPT_INVALID
57722         with inverted sense.  All uses changed.
57723
57724         * lib/mbswidth.c: Don't include <limits.h>.
57725         Include <stdlib.h> and <string.h> unconditionally.
57726         (iswcntrl, mbsinit, ISCNTRL): New macros.
57727         (mbsnwidth): Use K&R style function declarations.
57728         Don't bother checking for MB_LEN_MAX == 1, since the compiler
57729         can optimize it when MB_CUR_MAX == 1.
57730         The width of control characters is zero, not 1.
57731
57732 2001-08-03  Paul Eggert  <eggert@twinsun.com>
57733
57734         The following changes are from gettext 0.10.39 as maintained by
57735         Bruno Haible, except that getline.m4 continues to use AC_LIBOBJ.
57736
57737         * m4/codeset.m4: Upgrade to serial AM1.
57738         (AM_LANGINFO_CODESET): Renamed from jm_LANGINFO_CODESET;
57739         all uses changed.  Quote first arg of AC_DEFUN.
57740         (am_cv_langinfo_codeset): Renamed from jm_cv_langinfo_codeset.
57741
57742         * m4/iconv.m4: Upgrade to serial AM2.
57743         (AM_ICONV): Renamed from jm_ICONV; all uses changed.
57744         Add --with-libconv-prefix.
57745         Quote first arg of AC_DEFUN.  Add description for ICONV_CONST.
57746         (am_cv_func_iconv): Renamed from jm_cv_func_iconv.
57747         (am_cv_lib_iconv): Renamed from jm_cv_lib_iconv.
57748         (am_cv_proto_iconv): Renamed from jm_cv_proto_iconv.
57749         * m4/jm-macros.m4 (jm_MACROS): Reflect s/jm_/AM_/ renamings.
57750
57751         * m4/c-bs-a.m4 (AC_C_BACKSLASH_A): Quote first arg of AC_DEFUN.
57752         * m4/getline.m4 (AM_FUNC_GETLINE): Likewise.
57753         * m4/glibc21.m4 (jm_GLIBC21): Likewise.
57754         * m4/inttypes_h.m4 (jm_AC_HEADER_INTTYPES_H): Likewise.
57755         * m4/isc-posix.m4 (AC_ISC_POSIX): Likewise.
57756         * m4/lcmessage.m4 (AM_LC_MESSAGES): Likewise.
57757         * m4/progtest.m4 (AM_PATH_PROG_WITH_TEST): Likewise.
57758         * m4/uintmax_t.m4 (jm_AC_TYPE_UINTMAX_T): Likewise.
57759         * m4/ulonglong.m4 (jm_AC_TYPE_UNSIGNED_LONG_LONG): Likewise.
57760
57761         * m4/getline.m4 (AM_FUNC_GETLINE): Don't bother checking for
57762         string.h any more.
57763
57764         * m4/progtest.m4 (AM_PATH_PROG_WITH_TEST): If not found, print "no",
57765         not the default value.
57766
57767         2001-06-25  Bruno Haible  <haible@clisp.cons.org>
57768         * m4/mbswidth.m4 (jm_PREREQ_MBSWIDTH): Don't require AM_C_PROTOTYPES.
57769         Also check for mbsinit.  Needed for SCO 3.2v5.0.2.
57770         Also include <string.h>; this is where AIX 3.2.5 declares wcwidth.
57771         Also check for iswcntrl, used for wcwidth fallback.
57772         Use AC_TRY_COMPILE to emulate AC_CHECK_DECLS, for portability
57773         to Autoconf 2.13.
57774
57775 2001-08-03  Jim Meyering  <meyering@lucent.com>
57776
57777         * m4/mbrtowc.m4 (jm_FUNC_MBRTOWC): Use `#include', not `@%:@include',
57778         as it was in the original.  Reported by Paul Eggert.
57779
57780 2001-07-16  Jim Meyering  <meyering@lucent.com>
57781
57782         * m4/gettimeofday.m4: New file.
57783         Prompted by a report from Bernhard Baehr.
57784
57785 2001-07-15  Jim Meyering  <meyering@lucent.com>
57786
57787         * m4/Makefile.am.in (Makefile.am): Remove most of the unlocked-io.h
57788         stuff. Now it's in ../Makefile.cfg.
57789
57790 2001-07-15  Jim Meyering  <meyering@lucent.com>
57791
57792         * lib/Makefile.am (EXTRA_DIST): Add unlocked-io.hin.
57793         (BUILT_SOURCES): Add unlocked-io.h.
57794         (io_functions): Define.
57795         (unlocked-io.h): New rule.
57796         (DISTCLEANFILES): Add unlocked-io.h.
57797         (all-local): Depend on unlocked-io.h, to ensure it is created.
57798
57799         * lib/unlocked-io.hin: New file
57800
57801         * lib/regex.c: Update from glibc.
57802
57803 2001-07-05  Jim Meyering  <meyering@lucent.com>
57804
57805         * lib/Makefile.am (noinst_HEADERS): Remove definition, per new automake
57806         recommendation.
57807         (libfetish_a_SOURCES): Put all .h files here instead.
57808         Remove a thus-exposed (better checks in automake) duplicate and
57809         two unnecessary .h files.
57810
57811 2001-07-04  Jim Meyering  <meyering@lucent.com>
57812
57813         * m4/Makefile.am.in (glibc-io.struct): New target.  Rework the code
57814         that generates jm-glibc-io.m4 so that it doesn't trigger any make
57815         distcheck failure.
57816
57817 2001-07-02  Jim Meyering  <meyering@lucent.com>
57818
57819         The following changes were prompted by suggestions from Bruno Haible.
57820
57821         * m4/jm-glibc-io.m4n: New file, the template from which jm-glibc-io.m4
57822         is now generated.
57823         * m4/Makefile.am.in (Makefile.am): Include jm-glibc-io.m4n in emitted
57824         definition of EXTRA_DIST.
57825         (Makefile.am): Emit the dependency, `all-local: jm-glibc-io.m4' to
57826         ensure that the generated file is created/updated whenever the list
57827         of $(unlocked_functions) is changed.
57828         (jm-glibc-io.m4): New rule.
57829         (unlocked-io.h): New rule -- currently unused.
57830
57831 2001-06-24  Jim Meyering  <meyering@lucent.com>
57832
57833         * m4/regex.m4 (jm_INCLUDED_REGEX): Use a quadrigraph to represent an
57834         unmatched right bracket, rather than kludging it with an extra,
57835         falsely-matching quote in a comment.  Patch by Akim Demaille.
57836
57837 2001-06-11  Jim Meyering  <meyering@lucent.com>
57838
57839         * lib/regex.c: Update from GNU libc.
57840
57841 2001-05-27  Jim Meyering  <meyering@lucent.com>
57842
57843         * m4/prereq.m4 (jm_PREREQ_READUTMP): Check for ut_type in struct utmpx.
57844         Check for ut_type in struct utmp.
57845
57846 2001-05-27  Jim Meyering  <meyering@lucent.com>
57847
57848         * lib/readutmp.h (UT_TYPE): Define.
57849
57850 2001-05-24  Jim Meyering  <meyering@lucent.com>
57851
57852         * lib/argmatch.c: Include "quote.h".
57853         (argmatch_invalid): Remove explicit `' quotes.  Instead, use the
57854         quote function.  Reported by Göran Uddeborg.
57855
57856 2001-05-22  Jim Meyering  <meyering@lucent.com>
57857
57858         * m4/strftime.m4 (_jm_STRFTIME_PREREQS): Don't use AC_LIBOBJ(strftime),
57859         now that we use the package-supplied version unconditionally.
57860         (jm_FUNC_STRFTIME): Don't replace strftime, for the same reason.
57861
57862 2001-05-21  Jim Meyering  <meyering@lucent.com>
57863
57864         * m4/regex.m4: Change a couple backticks to single quotes to avoid
57865         shell syntax errors.
57866
57867 2001-05-21  Alexandre Duret-Lutz  <duret_g@epita.fr>
57868
57869         * m4/dos.m4 (jm_AC_DOS): Check for _WIN32, __WIN32__, and __MSDOS__.
57870
57871 2001-05-20  Paul Eggert  <eggert@twinsun.com>
57872
57873         * m4/strftime.m4 (jm_FUNC_GNU_STRFTIME):
57874         Don't bother to check library strftime, since
57875         we'll be using our own my_strftime function anyway.
57876         Define my_strftime instead of strftime.
57877
57878 2001-05-20  Alexandre Duret-Lutz  <duret_g@epita.fr>
57879
57880         * lib/dirname.c (dir_name): Compute append_dot using path, not newpath
57881         which is not yet declared.
57882
57883 2001-05-15  Jim Meyering  <meyering@lucent.com>
57884
57885         * m4/regex.m4: Use proper quoting so brackets appear in the test
57886         program.
57887         Reported by, and with help from, Bruno Haible.
57888
57889 2001-05-13  Jim Meyering  <meyering@lucent.com>
57890
57891         * m4/jm-macros.m4 (major_t, minor_t): Define to unsigned int if
57892         undefined.
57893
57894 2001-05-11  Paul Eggert  <eggert@twinsun.com>
57895
57896         dirname code cleanup.  base_name now behaves more compatibly
57897         with POSIX basename when given file names that have trailing
57898         slashes, and similarly for dir_name.  Add new primitives
57899         base_len and dir_len.  Put the directory-name-related decls
57900         into dirname.h.
57901
57902         * lib/addext.c (ISSLASH, base_name): Remove; now in dirname.h.
57903         * lib/backupfile.c (base_name): Likewise.
57904         * lib/basename.c (FILESYSTEM_PREFIX_LEN, PARAMS, ISSLASH): Likewise.
57905         * lib/dirname.c (FILESYSTEM_PREFIX_LEN, ISSLASH): Likewise.
57906         * lib/makepath.c (strip_trailing_slashes): Likewise.
57907         * lib/path-concat.c (DIRECTORY_SEPARATOR, FILESYSTEM_PREFIX_LEN,
57908         ISSLASH): Likewise.
57909         * lib/rename.c (strip_trailing_slashes): Likewise.
57910         * lib/same.c (base_name): Likewise.
57911         * lib/stripslash.c (ISSLASH): Likewise.
57912
57913         * lib/addext.c: Include <dirname.h> after size_t is defined.
57914         * lib/backupfile.c: Likewise.
57915
57916         * lib/addext.c (addext): Use base_len to trim redundant
57917         trailing slashes instead of doing it ourselves.
57918         But do not trim the last slash if it is not redundant.
57919
57920         * lib/backupfile.c (find_backup_file_name,
57921         max_backup_version): Use base_len instead of rolling it ourselves.
57922         Handle the case of "" and (on DOS) "C:" correctly.
57923
57924         * lib/basename.c: Do not include <stdio.h>, <assert.h>; no longer
57925         needed. Include <string.h>, <dirname.h>.
57926         (base_name): Allow file names ending in slashes, other than names
57927         that are all slashes.  In this case, return the basename followed
57928         by the slashes.  This is more general, and can be used in places
57929         where the original base_name purposely had an assertion failure.
57930         (base_len): New function.
57931
57932         * lib/dirname.c: Include <string.h> instead of <stdlib.h>.
57933         Do not include <assert.h>; no longer needed.
57934         Include xalloc.h.
57935         (memrchr): Remove decl.
57936         (dir_name_r): Remove.
57937         (dir_len): Renamed from dirlen.  All callers changed.
57938         Rewrite in terms of base_name, for simplicity and consistency.
57939         (dir_name): Never return NULL.  All callers changed.
57940         Do not include <stdlib.h> in test program; no longer needed.
57941         return 0; is fine for test program.
57942
57943         * lib/dirname.h (DIRECTORY_SEPARATOR, ISSLASH, FILESYSTEM_PREFIX_LEN):
57944         New macros.
57945         (base_name, base_len, dir_len, strip_trailing_slashes): New decls.
57946
57947         * lib/path-concat.c (path_concat): Use base_len to compute
57948         base length, not strlen; this means we cannot rely on memcpy
57949         to null-terminate.
57950
57951         * lib/same.c (STREQ): Remove.
57952         (same_name): Handle the case where the basename ends in trailing '/'.
57953
57954         * lib/stripslash.c (strip_trailing_slashes): Return nonzero if
57955         a slash was stripped.  Do not strip the last slash after a
57956         file system prefix.
57957
57958 2001-05-11  Paul Eggert  <eggert@twinsun.com>
57959
57960         * lib/Makefile.am (libfetish_a_SOURCES):
57961         Add strftime.c, since we now compile it on all hosts.
57962
57963         * lib/strftime.c (my_strftime):
57964         Define to nstrftime if emacs, but only if my_strftime is not defined.
57965         (extra_args, extra_args_spec, extra_args_spec_iso): Rename from
57966         ut_argument, ut_argument_spec, ut_argument_spec_iso, respectively.
57967         Add one more extra argument: a nanoseconds value.
57968         All uses changed.
57969         (ns): New macro.
57970         (my_strftime function): Add %N format.
57971         (emacs_strftimeu): Renamed from emacs_strftime,
57972         with extra ut argument.
57973
57974 2001-05-09  Paul Eggert  <eggert@twinsun.com>
57975
57976         * m4/jm-macros.m4 (jm_MACROS): Do not check for fseeko; no longer used.
57977
57978 2001-04-21  Jim Meyering  <meyering@lucent.com>
57979
57980         * m4/rmdir-errno.m4: Write to a new file, so that a restrictive umask
57981         doesn't interfere.
57982
57983 2001-04-21  Alexandre Duret-Lutz  <duret_g@epita.fr>
57984
57985         * m4/ftruncate.m4: Check for chsize.
57986         Link with ftruncate.o unconditionally if ftruncate is missing.
57987         This was required when cross-compiling to i586-mingw32msvc.
57988
57989 2001-04-08  Jim Meyering  <meyering@lucent.com>
57990
57991         * lib/getdate.y (get_date): Set tm_isdst to -1 to ensure that it is
57992         recomputed; that's necessary when the offset spans a DST transition.
57993         Patch by David J. MacKenzie.  Reported by Hon-Yin Kok.
57994
57995 2001-04-02  Jim Meyering  <meyering@lucent.com>
57996
57997         * lib/regex.h, regex.c: Update from GNU libc.
57998
57999 2001-03-24  Jim Meyering  <meyering@lucent.com>
58000
58001         * m4/jm-macros.m4: Require autoconf-2.49d.
58002
58003 2001-03-20  Bruno Haible  <haible@clisp.cons.org>
58004
58005         * m4/iconv.m4 (jm_ICONV): Recommend GNU libiconv.
58006
58007 2001-03-19  Paul Eggert  <eggert@twinsun.com>
58008
58009         * lib/version-etc.c (version_etc_copyright): Update to 2001.
58010
58011 2001-03-17  Jim Meyering  <meyering@lucent.com>
58012
58013         * m4/memcmp.m4 (jm_AC_FUNC_MEMCMP): Remove my copy of AC_FUNC_MEMCMP,
58014         now that the version in autoconf is equivalent.
58015         (jm_FUNC_MEMCMP): Adjust to use AC_FUNC_MEMCMP.
58016
58017         * m4/error.m4 (jm_PREREQ_ERROR): Invoke AC_FUNC_STRERROR_R.
58018         Suggestion from Akim Demaille.
58019
58020         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_TEMPNAME.
58021         (jm_PREREQ_TEMPNAME): New function.
58022
58023 2001-03-16  Paul Eggert  <eggert@twinsun.com>
58024
58025         * lib/tempname.c (uint64_t): Define to uintmax_t if
58026         not defined, and if UINT64_MAX is not defined.
58027         Required at least for Vax Ultrix4.3, which doesn't define uint64_t.
58028         Reported by John David Anglin.
58029
58030 2001-03-15  Bruno Haible  <haible@clisp.cons.org>
58031
58032         * lib/localcharset.c (locale_charset): Allow wildcard syntax. Also
58033         resolve alias if codeset is empty.
58034         * lib/config.charset (BeOS): Use wildcard syntax.
58035
58036 2001-03-13  Jim Meyering  <meyering@lucent.com>
58037
58038         * lib/path-concat.c (path_concat)
58039         [FILESYSTEM_ACCEPTS_DRIVE_LETTER_PREFIX]: Don't insert a backslash when
58040         concatenating e.g., `C:' and `foo'.
58041         From Bruno Haible.
58042
58043 2001-03-06  Bruno Haible  <haible@clisp.cons.org>
58044
58045         * lib/localcharset.c (locale_charset): Don't use
58046         setlocale(LC_CTYPE,NULL). Don't return NULL.
58047         * lib/unicodeio.c (print_unicode_char): Simplify accordingly.
58048
58049 2001-03-06  Bruno Haible  <haible@clisp.cons.org>
58050
58051         * lib/config.charset: Update for FreeBSD 4.2 and OSF/1 5.1. Add
58052         support for DOS/DJGPP.
58053
58054 2001-03-01  Paul Eggert  <eggert@twinsun.com>
58055
58056         * m4/jm-macros.m4 (jm_MACROS): Use mkstemp replacement if the system
58057         lacks mkstemp.  Compile our own tempname.c if we compile our own
58058         mkstemp.c, as mkstemp relies on tempname.
58059
58060 2001-03-01  Jim Meyering  <meyering@lucent.com>
58061
58062         * m4/dos.m4 (jm_AC_DOS): Remove extra backslashes, now that
58063         AH_VERBATIM really does output its argument verbatim.
58064
58065 2001-02-28  Paul Eggert  <eggert@twinsun.com>
58066
58067         * lib/Makefile.am (libfetish_a_SOURCES):
58068         Add dup-safer.c, fopen-safer.c.
58069         (noinst_HEADERS): Add stdio-safer.h, unistd-safer.h.
58070
58071         * lib/dup-safer.c, lib/fopen-safer.c, lib/stdio-safer.h:
58072         * lib/unistd-safer.h: New files.
58073
58074 2001-02-25  Paul Eggert  <eggert@twinsun.com>
58075
58076         The mkstemp replacement is taken from glibc 2.2.2, with some
58077         portability fixes for use outside glibc, as follows:
58078
58079         * lib/tempname.c (struct_stat64): New macro.
58080         (direxists, __gen_tempname): Use it.
58081         This avoids a portability problem with Solaris 8.
58082
58083         * lib/tempname.c (<config.h>): Include if HAVE_CONFIG_H.
58084         (<stddef.h>, <stdint.h>, <string.h>):
58085         Include only if STDC_HEADERS || _LIBC.
58086         (<fcntl.h>): Include only if HAVE_FCNTL_H || _LIBC.
58087         (<unistd.h>): Include only if HAVE_UNISTD_H || _LIBC.
58088         (<sys/time.h>): Include only if HAVE_SYS_TIME_H || _LIBC.
58089         (__set_errno): Define this macro if <errno.h> doesn't.
58090         (P_tmpdir, TMP_MAX, __GT_FILE, __GT_BIGFILE, __GT_DIR, __GT_NOCREATE):
58091         Define these macros if <stdio.h> doesn't.
58092         (S_ISDIR, S_IRUSR, S_IWUSR, S_IXUSR):
58093         Define these macros if <sys/stat.h>
58094         doesn't.  Ignore <sys/stat.h> S_ISDIR if STAT_MACROS_BROKEN.
58095         (stat64, __getpid, __gettimeofday, __mkdir, __open, __open64, lxstat64,
58096         __xstat64): Define if not _LIBC.
58097         (__secure_getenv): Define if ! (HAVE___SECURE_GETENV || _LIBC).
58098         (__gen_tempname): Invoke gettimeofday only if
58099         HAVE_GETTIMEOFDAY || _LIBC;
58100         otherwise, fall back on plain "time".
58101         Use macros like S_IRUSR | S_IWUSR rather than octal values like 0600.
58102
58103         * lib/mkstemp.c (__GT_FILE): Define to zero if not defined.
58104
58105         * lib/mkstemp.c, lib/tempname.c: New files, taken from glibc 2.2.2.
58106
58107 2001-02-18  Paul Eggert  <eggert@twinsun.com>
58108
58109         * m4/jm-macros.m4 (jm_CHECK_ALL_HEADERS): Check for sys/resource.h.
58110
58111 2001-02-17  Paul Eggert  <eggert@twinsun.com>
58112
58113         * m4/mbrtowc.m4: New file, defining jm_FUNC_MBRTOWC.
58114         * m4/mbswidth.m4 (jm_PREREQ_MBSWIDTH):
58115         Use jm_FUNC_MBRTOWC, not AC_CHECK_FUNCS(mbrtowc).
58116         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): Likewise.
58117
58118 2001-02-17  Paul Eggert  <eggert@twinsun.com>
58119
58120         * lib/mbswidth.c, quotearg.c (mbrtowc, mbsinit):
58121         Remove workaround macros for hosts that have mbrtowc but not
58122         mbstate_t, as we now insist on proper declarations for both
58123         before using mbrtowc.
58124
58125 2001-02-17  Jim Meyering  <meyering@lucent.com>
58126
58127         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Don't check for
58128         getmntent via AC_CHECK_FUNCS, since that would get a `no' and disrupt
58129         further attempts by AC_FUNC_GETMNTENT to check with e.g., -lgen on
58130         UnixWare 7.1.1.
58131
58132         * m4/mbrtowc.m4 (jm_FUNC_MBRTOWC): Adapt to use AC_CACHE_CHECK etc.,
58133         rather than AC_CACHE_VAL.
58134
58135 2001-02-17  Jim Meyering  <meyering@lucent.com>
58136
58137         * lib/strtoul.c: Sync from GNU libc.  Use double quotes, not <...>
58138         around included file name.
58139
58140         * lib/strnlen.c (__strnlen): Merge in a change from GNU libc.
58141
58142         * lib/strftime.c: Update from GNU libc (the only changes were to
58143         comments).
58144
58145 2001-02-17  Jim Meyering  <meyering@lucent.com>
58146
58147         * lib/regex.c: Update from libc.
58148
58149 2001-02-17  Bruno Haible  <haible@clisp.cons.org>
58150
58151         * lib/mbswidth.h (mbswidth): Also define as macro, to avoid prototype
58152         clash.
58153
58154 2001-02-16  Paul Eggert  <eggert@twinsun.com>
58155
58156         * lib/alloca.c (malloc): Undef before defining, since stdlib.h
58157         may have defined it.  Needed for Encore Umax-3.0.9.16b systems.
58158         Reported by Mark Hounschell via Paul Eggert.
58159
58160 2001-02-07  Jim Meyering  <meyering@lucent.com>
58161
58162         * m4/regex.m4 (jm_INCLUDED_REGEX): Add a test for the latest bug.
58163
58164 2001-02-05  Jim Meyering  <meyering@lucent.com>
58165
58166         * m4/jm-macros.m4: Require autoconf-2.14d (not yet released), because
58167         it includes the patch required for `large file' support with at least
58168         HP-UX's 10.20 /bin/cc.
58169
58170 2001-02-03  Jim Meyering  <meyering@lucent.com>
58171
58172         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Restore prior use of
58173         AS_IF, now that it works once again (mysteriously).
58174         * m4/fsusage.m4 (jm_FILE_SYSTEM_USAGE): Likewise.
58175
58176 2001-01-30  Jim Meyering  <meyering@lucent.com>
58177
58178         Don't use filenames that are 8.3-equivalent to "conftest" on DOS.
58179         * m4/chown.m4: Rename conftestchown to conftest.chown.
58180         * m4/rename.m4: s/conftestdir/conftest.d1/ and
58181         s/conftestdir2/conftest.d2/.
58182         * m4/utimes.m4: s/conftestdata/conftest.data/
58183         Inspired by Pavel Roskin's change in autoconf.
58184
58185 2001-01-30  Bruno Haible  <haible@clisp.cons.org>
58186
58187         * lib/config.charset: Update for FreeBSD 4.2.
58188
58189 2001-01-27  Jim Meyering  <meyering@lucent.com>
58190
58191         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Open-code what was
58192         a use of AS_IF.
58193         * m4/fsusage.m4 (jm_FILE_SYSTEM_USAGE): Likewise.
58194
58195 2001-01-26  Jim Meyering  <meyering@lucent.com>
58196
58197         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): Check for stddef.h, now that
58198         quotearg.c includes it.
58199
58200 2001-01-26  Jim Meyering  <meyering@lucent.com>
58201
58202         * lib/quotearg.c: Include stddef.h.
58203         * lib/quote.c: Include stddef.h.
58204         Reported by Axel Kittenberger.
58205
58206         * lib/xmalloc.c [HAVE_DONE_WORKING_MALLOC_CHECK]: Enclose error-evoking
58207         line in double quotes so that it evokes a better diagnostic.
58208         [HAVE_DONE_WORKING_REALLOC_CHECK]: Likewise.
58209         Reported by Axel Kittenberger.
58210
58211 2001-01-24  Stefan Monnier  <monnier@cs.yale.edu>
58212
58213         * regex.c (mutually_exclusive_p): Don't blindly handle `charset_not'
58214         as if it was a `charset'.
58215
58216 2001-01-21  Bruno Haible  <haible@clisp.cons.org>
58217
58218         * m4/iconv.m4 (jm_ICONV): Also check whether the iconv declaration
58219         has const.
58220
58221 2001-01-21  Bruno Haible  <haible@clisp.cons.org>
58222
58223         * lib/unicodeio.c (print_unicode_char): Cast the second iconv() arg,
58224         to avoid a warning.  Add back 'const' to inptr.
58225
58226 2001-01-20  Jim Meyering  <meyering@lucent.com>
58227
58228         Be sure that headers are checked before used in code compiled
58229         for the type checks.
58230         * m4/jm-macros.m4 (jm_MACROS): Remove all header checks.
58231         In place of that, invoke jm_CHECK_ALL_TYPES.
58232         (jm_CHECK_ALL_HEADERS): New functions with the above checks.
58233         (jm_CHECK_ALL_TYPES): Require jm_CHECK_ALL_HEADERS.
58234         Alan Iwi reported a build failure on an f300-fujitsu-uxpv4.1_ES;
58235         The check for ssize_t was mistakenly run before the test for unistd.h.
58236
58237         The configure-time check for stdbool.h was missing.
58238         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_HASH.
58239         (jm_PREREQ_HASH): New function.
58240
58241 2001-01-17  Jim Meyering  <meyering@lucent.com>
58242
58243         * m4/fsusage.m4 (jm_FILE_SYSTEM_USAGE): Use AS_IF, not AS_IFELSE,
58244         for autoconf-2.49c.
58245         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Likewise.
58246
58247 2001-01-16  Jim Meyering  <meyering@lucent.com>
58248
58249         * lib/basename.c: Include <stdio.h>, needed by assert on SunOS 4.
58250         From Bruno Haible.
58251
58252 2001-01-14  Jim Meyering  <meyering@lucent.com>
58253
58254         * m4/rename.m4: Use temporary directories named conftestdir{,2}, not
58255         foo and bar.  Create conftestdir/ in the script, not in the C code.
58256         Remove directories in the script, not in the C code.
58257         Remove conftestdir{,2} before trying to create the directory.
58258         Make the entire configure script fail if the mkdir fails.
58259
58260 2001-01-14  Jim Meyering  <meyering@lucent.com>
58261
58262         * lib/rename.c: New file.  From Volker Borchert.
58263         Include stdlib.h, string.h or strings.h, and xalloc.h.
58264         Use strip_trailing_slashes rather than open-coding it.
58265
58266 2001-01-03  Paul Eggert  <eggert@twinsun.com>
58267
58268         * lib/strftime.c: Sync with glibc time/strftime.c 1.81.
58269
58270 2001-01-03  Jim Meyering  <meyering@lucent.com>
58271
58272         * lib/unicodeio.c (print_unicode_char): Remove `const' from declaration
58273         of local `inptr' to avoid warning with some system declarations of
58274         iconv.
58275
58276 2001-01-02  Volker Borchert  <bt@teknon.de>
58277
58278         * m4/rename.m4: New file.
58279         * m4/jm-macros.m4 (jm_MACROS): Require vb_FUNC_RENAME.
58280
58281 2001-01-01  Jim Meyering  <meyering@lucent.com>
58282
58283         * m4/prereq.m4 (jm_PREREQ_READUTMP): Include utmp.h (if available),
58284         even on systems with utmpx.h.  It's necessary for the declaration of
58285         utmp's ut_user member.  Reported by Andreas Jaeger.
58286
58287         * m4/check-decl.m4 (jm_CHECK_DECLS): Include grp.h and pwd.h if
58288         available. They are required for the declarations of getgrgid and
58289         getpwuid resp.
58290         (_jm_DECL_HEADERS): Check for grp.h and pwd.h.
58291         Reported by Andreas Jaeger.
58292
58293 2001-01-01  Alexandre Duret-Lutz  <duret_g@epita.fr>
58294
58295         * m4/libintl.m4 (AM_GNU_GETTEXT): Define MKINSTALLDIRS by
58296         expanding the value of $ac_aux_dir, as in AM_MISSING_HAS_RUN,
58297         so `make install' also works in VPATH builds.
58298
58299 2000-12-31  Alexandre Duret-Lutz  <duret_g@epita.fr>
58300
58301         * m4/libintl.m4 (AM_WITH_NLS): When using AC_CONFIG_AUX_DIR,
58302         prepend $(top_srcdir) to the value of MKINSTALLDIRS so that it
58303         can be used in subdirectories.
58304
58305 2000-12-29  Paul Eggert  <eggert@twinsun.com>
58306
58307         * lib/modechange.c: Do not assume that mode_t uses the
58308         traditional octal encoding.  E.g. "chmod 1 FOO" should set
58309         the other-execute bit of FOO even if S_IXOTH != 1.
58310
58311         (SUID, SGID, SVTX, RUSR, WUSR, XUSR, RGRP, WGRP, XGRP, ROTH,
58312         WOTH, XOTH, ALLM): New macros.
58313         (S_ISUID, S_ISGID, S_ISVTX, S_IRUSR, S_IWUSR, S_IXUSR,
58314          S_IRGRP, S_IWGRP, S_IXGRP, S_IROTH, S_IWOTH, S_IXOTH):
58315         Use them.
58316         (S_ISGID): Fix typo; it was defaulting to the same value as S_ISUID.
58317         (S_IRWXU, S_IRWXG, S_IRWXO): Specify defaults in terms of the above.
58318         (mode_compile):
58319         No need to use uintmax_t; unsigned long is long enough.
58320         Don't bother to get suffix since we don't use it.
58321
58322 2000-12-26  Jim Meyering  <meyering@lucent.com>
58323
58324         * m4/dos.m4 (jm_AC_DOS): Rewrite (though it's still a stub) to work
58325         better with autoheader.
58326
58327 2000-12-24  Jim Meyering  <meyering@lucent.com>
58328
58329         * lib/hash.c (is_prime): Return explicit boolean values.
58330         (hash_get_first): Return NULL to appease Irix5.6's 89.
58331         Reported by Nelson Beebe.
58332
58333 2000-12-19  Bruno Haible  <haible@clisp.cons.org>
58334
58335         * lib/localcharset.c (locale_charset): Add support for Win32.
58336
58337 2000-12-18  Paul Eggert  <eggert@twinsun.com>
58338
58339         * lib/physmem.h, lib/physmem.c: New files.
58340
58341         * lib/Makefile.am (libfetish_a_SOURCES): Add physmem.c.
58342         (noinst_HEADERS): Add physmem.h.
58343
58344         * lib/xstrtol.c (__xstrtol): Add undocumented suffixes 'g' and
58345         't' for compatibility with Solaris 8 sort.
58346
58347 2000-12-18  Bruno Haible  <haible@clisp.cons.org>
58348
58349         * lib/config.charset: Add support for BeOS.
58350
58351 2000-12-17  Jim Meyering  <meyering@lucent.com>
58352
58353         * m4/dos.m4 (jm_AC_DOS): New file and macro.
58354         * m4/jm-macros.m4 (jm_MACROS): Require jm_AC_DOS.
58355
58356 2000-12-16  Jim Meyering  <meyering@lucent.com>
58357
58358         This bug had a serious impact on chown: `chown N:M FILE' (for integer
58359         N and M) would have treated it like `chown N:N FILE'.
58360
58361         * lib/userspec.c (parse_user_spec): Fix typo: s/u/g/.
58362
58363 2000-12-16  Jim Meyering  <meyering@lucent.com>
58364
58365         * lib/getusershell.c [!SHELLS_FILE && __DJGPP__]: Define
58366         SHELLS_FILE to a file name that's useful on djgpp systems.
58367         Include stdlib.h.
58368         (ADDITIONAL_DEFAULT_SHELLS): Define.
58369         (default_shells): Prepend ADDITIONAL_DEFAULT_SHELLS.
58370         Based mostly on a patch from Prashant TR.
58371
58372 2000-12-16  Bruno Haible  <haible@clisp.cons.org>
58373
58374         * lib/config.charset: Add ISO-8859-3, BIG5HKSCS, GB18030, JOHAB,
58375         VISCII, CP874, CP949, CP950, CP1250, CP1253, CP1254, CP1255, CP1256,
58376         CP1257 to the list of canonical encodings. Rename EUC-CN to GB2312.
58377
58378 2000-12-08  Andreas Schwab  <schwab@suse.de>
58379
58380         * lib/mbswidth.c (mbsnwidth): Don't loop endlessly when called with an
58381         invalid mulitbyte sequence and with the MBSW_ACCEPT_INVALID flag set.
58382
58383 2000-12-07  Jim Meyering  <meyering@lucent.com>
58384
58385         * lib/stripslash.c (ISSLASH): Define.
58386         (strip_trailing_slashes): Use ISSLASH rather than comparing against
58387         `/'.
58388         From Prashant TR.
58389
58390         * lib/dirname.c (FILESYSTEM_PREFIX_LEN): Define.
58391         (dir_name_r): Declare this function as static.
58392         [BACKSLASH_IS_PATH_SEPARATOR]: Fix a bug that'd
58393         manifest itself on a name containing a mix of slashes and
58394         backslashes.
58395         Make this function work with names starting with a DOS-style
58396         drive letter and colon prefix.
58397         (dir_name): Append `.' if necessary.
58398         Based mostly on patches from Prashant TR and Eli Zaretskii.
58399
58400         * lib/dirname.h (dir_name_r): Remove prototype.
58401
58402 2000-12-06  Paul Eggert  <eggert@twinsun.com>
58403
58404         * m4/off_t-format.m4: Remove this file.
58405         * m4/jm-macros.m4 (jm_MACROS): Remove jm_SYS_OFF_T_PRINTF_FORMAT.
58406
58407 2000-12-06  Jim Meyering  <meyering@lucent.com>
58408
58409         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): If we need the
58410         replacement strtoull, we may well need the replacement strtoul, too.
58411         Check for declarations of strtoul and strtoull.
58412         Check for strtol.  Mainly as a cue to cause automake to include
58413         strtol.c -- that file is included by each of strtoul.c and strtoull.c.
58414         Check for limits.h -- strtol.c needs it.
58415
58416 2000-12-05  Jim Meyering  <meyering@lucent.com>
58417
58418         * lib/dirname.c (dir_name_r): Add `const' in a few local declarations.
58419
58420 2000-12-04  Jim Meyering  <meyering@lucent.com>
58421
58422         * lib/path-concat.c: [!HAVE_DECL_MALLOC]: Declare malloc.
58423         Also include memory.h, stdlib.h, unistd.h if appropriate.
58424         Reported by Andreas Jaeger (conflicting declaration of malloc).
58425
58426 2000-12-02  Jim Meyering  <meyering@lucent.com>
58427
58428         * m4/off_t-format.m4 (OFF_T_PRINTF_FORMAT_STRING): New file/macro.
58429         * m4/jm-macros.m4 (jm_MACROS): require it.
58430
58431 2000-12-02  Jim Meyering  <meyering@lucent.com>
58432
58433         * lib/closeout.h: Make idempotent, to avoid some obscure warnings.
58434
58435 2000-12-01  Paul Eggert  <eggert@twinsun.com>
58436
58437         * lib/memrchr.c: Include <config.h> before any system include file.
58438
58439 2000-11-30  Jim Meyering  <meyering@lucent.com>
58440
58441         * m4/jm-macros.m4 (jm_MACROS): Check for stdint.h.
58442
58443 2000-11-30  Jim Meyering  <meyering@lucent.com>
58444
58445         * m4/getloadavg.m4: s/ifval/m4_ifval/ to accommodate new autoconf.
58446
58447 2000-11-29  Paul Eggert  <eggert@twinsun.com>
58448
58449         * lib/dirname.c (dir_name_r): Fix typo: int -> size_t.
58450
58451 2000-11-26  Jim Meyering  <meyering@lucent.com>
58452
58453         * lib/memcoll.c: Include sys/types.h.  From Werner Almesberger.
58454
58455 2000-11-22  Paul Eggert  <eggert@twinsun.com>
58456
58457         * lib/strftime.c (my_strftime): Do not invoke mbrlen with a
58458         size of (size_t) -1; it's not portable.
58459
58460 2000-11-17  Jim Meyering  <meyering@lucent.com>
58461
58462         * lib/strstr.c: Update from GNU libc.
58463
58464 2000-11-17  Akim Demaille  <akim@epita.fr>
58465
58466         * lib/obstack.h: Formatting changes.
58467         (obstack_grow, obstack_grow0): Don't cast WHERE at all: that would
58468         prevent type checking.
58469         (obstack_ptr_grow, obstack_ptr_grow_fast): When assigning, don't
58470         cast the value to (void *): assigning a `foo *' to a `void *'
58471         variable is valid.
58472         (obstack_int_grow, obstack_int_grow_fast): Don't cast AINT to int.
58473
58474 2000-11-16  Jim Meyering  <meyering@lucent.com>
58475
58476         * lib/strverscmp.c: Incorporate weak-alias-related changes from glibc.
58477
58478 2000-11-11  Jim Meyering  <meyering@lucent.com>
58479
58480         * lib/error.c: Add a couple #includes, merging from GNU libc version.
58481
58482 2000-11-10  Jim Meyering  <meyering@lucent.com>
58483
58484         * lib/obstack.h: Update from GNU libc.
58485         * lib/obstack.c: Likewise.
58486
58487 2000-11-08  Bruno Haible  <haible@clisp.cons.org>
58488
58489         * m4/jm-macros.m4 (jm_MACROS): Add test for wcrtomb.
58490
58491 2000-11-06  Paul Eggert  <eggert@twinsun.com>
58492
58493         * lib/getusershell.c (setusershell): Use rewind rather than
58494         fseek/fseeko, to avoid configuration hassles with fseeko.
58495         Don't bother opening SHELLS_FILE if shellstream is NULL;
58496         it's not necessary.
58497
58498 2000-11-05  Jim Meyering  <meyering@lucent.com>
58499
58500         * lib/makepath.h (make_dir): Declare.
58501         * lib/makepath.c (make_dir): Remove `static' attribute.
58502         Tweak a comment.
58503
58504 2000-11-04  Jim Meyering  <meyering@lucent.com>
58505
58506         * m4/regex.m4: Use the `m4_' prefix on `syscmd' and `m4_sysval'.
58507
58508 2000-11-04  Alexandre Duret-Lutz  <duret_g@epita.fr>
58509
58510         * lib/hash.c (hash_get_next): Fix a thinko:  when ENTRY is the
58511         last one in a bucket, advance to the next bucket.
58512
58513 2000-11-02  Vesselin Atanasov  <vesselin@bgnet.bg>
58514
58515         * lib/fnmatch.c: Do not comment out all the code if we are using
58516         the GNU C library, because in some cases we are replacing buggy
58517         code in the GNU C library itself.
58518
58519 2000-10-30  Stefan Monnier  <monnier@cs.yale.edu>
58520
58521         * regex.c (re_iswctype, re_wctype_to_bit): Fix braino.
58522         (regex_compile): Catch bogus \(\1\).
58523
58524 2000-10-30  Paul Eggert  <eggert@twinsun.com>
58525
58526         * lib/fnmatch.c (FOLD): Do not assume that characters are unsigned.
58527         (fnmatch): Fix some FNM_FILE_NAME and FNM_LEADING_DIR bugs,
58528         e.g. fnmatch("d*/*1", "d/s/1", FNM_FILE_NAME) incorrectly yielded zero.
58529
58530 2000-10-30  Paul Eggert  <eggert@twinsun.com>
58531
58532         * lib/error.h, getline.h, modechange.h:
58533         Remove "2000" from Copyright line, as the file hasn't been
58534         changed this year other than in the copyright notice.
58535
58536         * lib/xalloc.h: Add "2000" to Copyright line, as this file
58537         was changed this year.
58538
58539 2000-10-29  Jim Meyering  <meyering@lucent.com>
58540
58541         * m4/fsusage.m4: s/AC_SHELL_IFELSE/AS_IFELSE/ to match autoconf
58542         renaming.
58543         * m4/ls-mntd-fs.m4: Likewise
58544
58545 2000-10-29  Jim Meyering  <meyering@lucent.com>
58546
58547         * lib/xstat.in: Fix grammar in comment.
58548
58549 2000-10-29  Greg Louis  <glouis@dynamicro.on.ca>
58550
58551         * lib/regex.h (__restrict_arr): Move definition out of #ifndef block.
58552         Required because egcs-2.91.66 (aka 1.1.2) defines __restrict, but
58553         doesn't define __restrict_arr.
58554
58555 2000-10-28  Jim Meyering  <meyering@lucent.com>
58556
58557         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_MEMCHR.
58558         (jm_PREREQ_MEMCHR): New function.
58559
58560 2000-10-28  Jim Meyering  <meyering@lucent.com>
58561
58562         * lib/memchr.c: Update from libc.
58563         Adjust for portability:
58564         [HAVE_STDLIB_H]: Include stdlib.h.
58565         [HAVE_BP_SYM_H || _LIBC]: Guard inclusion of bp-sym.h.
58566         Undef __memchr, too.
58567         [!weak_alias]: Define __memchr to memchr.
58568
58569         * lib/regex.c: Update from libc.
58570         * lib/regex.h: Likewise.
58571         * lib/getopt1.c: Likewise.
58572         * lib/memcmp.c: Likewise.
58573
58574         * lib/getusershell.c (setusershell) [HAVE_FSEEKO]: Use fseeko.
58575         Avoid using fseek, when possible -- it's broken by design.
58576         Patch by Ulrich Drepper.
58577
58578 2000-10-27  Stefan Monnier  <monnier@cs.yale.edu>
58579
58580         * regex.c (POP_FAILURE_REG_OR_COUNT, re_match_2_internal)
58581         (re_match_2_internal, re_match_2_internal, re_match_2_internal):
58582         Giving in to popular pressure to shut up the compiler with casts.
58583
58584 2000-10-26  Jim Meyering  <meyering@lucent.com>
58585
58586         * lib/strftime.c: Update from libc.
58587
58588 2000-10-25  Stefan Monnier  <monnier@cs.yale.edu>
58589
58590         * regex.c: More `unsigned char' -> `re_char' changes.
58591         Also change several `int' into `re_wchar_t'.
58592         (PATTERN_STACK_EMPTY, PUSH_PATTERN_OP, POP_PATTERN_OP): Remove.
58593         (PUSH_FAILURE_POINTER): Don't cast any more.
58594         (POP_FAILURE_REG_OR_COUNT): Remove the cast that strips `const'.
58595         We want GCC to complain, since this piece of code makes
58596         re_match non-reentrant, which *should* be fixed.
58597         (GET_BUFFER_SPACE): Use size_t rather than unsigned long.
58598         (EXTEND_BUFFER): Use RETALLOC.
58599         (SET_LIST_BIT): Don't cast.
58600         (re_wchar_t): New type.
58601         (re_iswctype, re_wctype_to_bit): Make it crystal clear to GCC
58602         that those two functions will always properly return.
58603         (IMMEDIATE_QUIT_CHECK): Cast to void.
58604         (analyse_first): Use recursion rather than an explicit stack.
58605         (re_compile_fastmap): Can't fail anymore.
58606         (re_search_2): Don't check re_compile_fastmap for failure.
58607         (PUSH_NUMBER): Renamed from PUSH_FAILURE_COUNT.
58608         Now also sets the new value (passed in a new argument).
58609         (re_match_2_internal): Use it.
58610         Also, use a new var `reg' of type size_t when looping through regs
58611         rather than reuse the inappropriate `mcnt'.
58612
58613 2000-10-25  Jim Meyering  <meyering@lucent.com>
58614
58615         * lib/obstack.c: Update from libc.
58616
58617 2000-10-24  Kenichi Handa  <handa@etl.go.jp>
58618
58619         * regex.c (regex_compile): Change the way of handling a range from
58620         a char less than 256 to a char not less than 256.
58621
58622 2000-10-24  Andrew Innes  <andrewi@gnu.org>
58623
58624         * regex.c (IMMEDIATE_QUIT_CHECK): New macro, which does QUIT on
58625         NT-Emacs only.
58626         (re_match_2_internal): Use IMMEDIATE_QUIT_CHECK instead of QUIT,
58627         so that re_search functions only quit when callers expect them to.
58628
58629 2000-10-23  Jim Meyering  <meyering@lucent.com>
58630
58631         * lib/hard-locale.c (hard_locale): Revert last change -- it was simply
58632         wrong.  That set_locale call must not have any side effects.
58633         From Paul Eggert.
58634
58635 2000-10-22  Jim Meyering  <meyering@lucent.com>
58636
58637         * lib/md5.c (md5_process_block) [OP]: Use `rol', not CYCLIC.
58638         [CYCLIC]: Remove now-unused definition.
58639
58640         * lib/save-cwd.c (O_DIRECTORY): Define, if needed.
58641         (save_cwd) [HAVE_FCHDIR]: Use O_DIRECTORY when opening ".".
58642         Suggestion from Ulrich Drepper.
58643
58644 2000-10-21  Jim Meyering  <meyering@lucent.com>
58645
58646         * m4/check-decl.m4 (jm_CHECK_DECLS): Also check for memrchr.
58647         * m4/prereq.m4 (jm_PREREQ_DIRNAME): New macro.
58648         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add memrchr.
58649
58650 2000-10-21  Jim Meyering  <meyering@lucent.com>
58651
58652         * lib/dirname.c (memrchr): Declare if necessary.
58653         (dir_name): Remove the restriction that there be no
58654         trailing slashes.  Now, this code skips past them, effectively
58655         ignoring them.
58656         [TEST_DIRNAME] (main): New unit tests.
58657
58658         * lib/memrchr.c: New file from GNU libc.
58659         Undef __memrchr, too.
58660         [!weak_alias]: Define __memrchr to memrchr.
58661         Guard weak_alias use with `#ifdef weak_alias'.
58662
58663 2000-10-21  Jim Meyering  <meyering@lucent.com>
58664
58665         * lib/dirname.c (dir_name_r): New function, factored out of dir_name.
58666         (dir_name): Use dir_name_r.
58667         * lib/dirname.h (dir_name_r): Declare it.
58668
58669 2000-10-17  Jim Meyering  <meyering@lucent.com>
58670
58671         * lib/quote.h (PARAMS): Define and use.
58672         Reported by Akim Demaille.
58673
58674         * lib/getopt.c: Update from libc.
58675
58676 2000-10-16  Jim Meyering  <meyering@lucent.com>
58677
58678         * lib/hard-locale.c (hard_locale): Use "", not 0 as 2nd arg to
58679         setlocale.
58680         From Jan Fedak.
58681
58682 2000-10-15  Stefan Monnier  <monnier@cs.yale.edu>
58683
58684         * regex.c (WIDE_CHAR_SUPPORT): Define if _LIBC as well.
58685
58686 2000-09-25  Jim Meyering  <meyering@lucent.com>
58687
58688         * lib/md5.h (rol): Define (from GnuPG).
58689
58690         * lib/sha.c: Give credit (GnuPG) where due.
58691         (M): Use rol rather than open-coding it.
58692         Add a FIXME comment.
58693
58694 2000-09-21  Jim Meyering  <meyering@lucent.com>
58695
58696         * lib/userspec.c (parse_user_spec): Remove debugging printf I'd added.
58697         Reported by Michael Stone.
58698
58699 2000-09-20  Jim Meyering  <meyering@lucent.com>
58700
58701         * lib/Makefile.am (libfetish_a_SOURCES): Add sha.c.
58702         (noinst_HEADERS): Add sha.h.
58703         Based on code from Scott G. Miller and from GnuPG.
58704
58705 2000-09-18  Jim Meyering  <meyering@lucent.com>
58706
58707         * m4/getloadavg.m4 (AC_FUNC_GETLOADAVG): Restore the initial value of
58708         LIBS. Otherwise, everyone ends up linking with -lelf for some
58709         configurations.
58710         Reported by Mike Stone.
58711
58712 2000-09-15  Jim Meyering  <meyering@lucent.com>
58713
58714         * lib/regex.c: Update from libc.
58715
58716 2000-09-10  Jim Meyering  <meyering@lucent.com>
58717
58718         * lib/getopt.c (_getopt_internal): Update from glibc.
58719
58720 2000-09-09  Jim Meyering  <meyering@lucent.com>
58721
58722         * lib/quotearg.c: Rename ISASCII to IN_CTYPE_DOMAIN, so people don't
58723         think it should be used as a general replacement for isascii.
58724         * lib/fnmatch.c: Likewise.
58725         * lib/mbswidth.c: Likewise
58726         * lib/regex.c: Likewise.
58727
58728         Don't use atoi.
58729         * lib/userspec.c: Include sys/param.h and limits.h.
58730         Include xstrtol.h.
58731         (CHAR_BIT, TYPE_SIGNED, TYPE_MINIMUM, TYPE_MAXIMUM): Define.
58732         (UID_T_MAX, GID_T_MAX, MAXUID, MAXGID): Define.
58733         (parse_user_spec): Use xstrtoul, not atoi when converting numeric
58734         UID, GID.  Check range.
58735
58736 2000-09-06  Jim Meyering  <meyering@lucent.com>
58737
58738         * lib/getopt.c (_getopt_internal): Update from glibc.
58739
58740 2000-08-30  Jim Meyering  <meyering@lucent.com>
58741
58742         * lib/strftime.c: Merge in changes from GNU libc.
58743
58744 2000-08-26  Jim Meyering  <meyering@lucent.com>
58745
58746         * m4/jm-macros.m4: Use jm_FUNC_FPENDING.
58747         * m4/fpending.m4: New file.
58748
58749 2000-08-26  Jim Meyering  <meyering@lucent.com>
58750
58751         * lib/closeout.c: Include "__fpending.h".
58752         (close_stdout_status): Return right away if there's nothing to flush.
58753
58754         * lib/Makefile.am (noinst_HEADERS): Add __fpending.h.
58755         * lib/__fpending.c: New file.
58756         * lib/__fpending.h: New file.
58757
58758 2000-08-20  Jim Meyering  <meyering@lucent.com>
58759
58760         * m4/check-decl.m4: Include utmp.h `#if HAVE_UTMP_H', rather than
58761         `#if !HAVE_UTMPX_H'.  The latter would lose on systems with neither
58762         utmp.h nor utmpx.h.  Reported by Eli Zaretskii.
58763
58764 2000-08-11  J. David Anglin  <dave@hiauly1.hia.nrc.ca>
58765
58766         Improve fileutils installation on systems where running
58767         programs (like install) can't be unlinked.
58768         * m4/unlink-busy.m4 (jm_FUNC_UNLINK_BUSY_TEXT): New file/macro.
58769         * m4/jm-macros.m4: Use jm_FUNC_UNLINK_BUSY_TEXT.
58770
58771 2000-08-07  Paul Eggert  <eggert@twinsun.com>
58772
58773         Standardize on "memory exhausted" instead of "Memory exhausted"
58774         or "virtual memory exhausted".
58775         * lib/obstack.c (print_and_abort): Use "memory exhausted", not
58776         "virtual memory exhausted".
58777         * lib/same.c (same_name): Invoke xalloc_die instead of printing
58778         our own message.
58779         * lib/userspec.c (parse_user_spec): Likewise.
58780         * lib/bumpalloc.h: comment fix
58781         * lib/same.c, userspec.c: Include xalloc.h.
58782
58783         * lib/xalloc.h (xalloc_msg_memory_exhausted): Now char const[],
58784         not char *const and pointing to a constant array.
58785         * lib/xmalloc.c (xalloc_msg_memory_exhausted): Likewise.
58786         (xrealloc): Comment fix.
58787
58788         * lib/userspec.c (parse_user_spec):
58789         Don't translate a message until just before returning,
58790         to avoid unnecessary translation.
58791
58792 2000-08-07  Jim Meyering  <meyering@lucent.com>
58793
58794         * lib/addext.c, argmatch.c, argmatch.h, backupfile.h, bumpalloc.h,
58795         chown.c, diacrit.h, dirname.h, dup2.c, exclude.h, fileblocks.c,
58796         fnmatch.c, fnmatch.h, fsusage.c, fsusage.h, getdate.h,
58797         getgroups.c, gethostname.c, getopt.h, group-member.c,
58798         hard-locale.c, hash.h, isdir.c, lchown.c, linebuffer.c,
58799         linebuffer.h, long-options.h, malloc.c, md5.c, md5.h, memchr.c,
58800         memcmp.c, memcoll.c, memset.c, mktime.c, modechange.h, obstack.h,
58801         pathmax.h, realloc.c, rmdir.c, safe-read.c, save-cwd.c, stime.c,
58802         stpcpy.c, strcasecmp.c, strcspn.c, strdup.c, stripslash.c,
58803         strstr.c, strtod.c, strtol.c, strtoul.c, strtoull.c, strtoumax.c,
58804         utime.c, version-etc.h, xalloc.h, xstrdup.c, xstrtoumax.c,
58805         yesno.c: Back out Copyright date changes for each file with no change
58806         this year.  This eases coordination with other programs using the same
58807         source code modules.  From Paul Eggert.
58808
58809 2000-08-06  Paul Eggert  <eggert@twinsun.com>
58810
58811         * m4/mbstate_t.m4 (AC_MBSTATE_T): Define mbstate_t to be int,
58812         not char, for compatibility with glibc 2.1.3 strftime.c.
58813
58814 2000-08-03  Greg McGary  <greg@mcgary.org>
58815
58816         * lib/regex.c (SET_HIGH_BOUND, MOVE_BUFFER_POINTER,
58817         ELSE_EXTEND_BUFFER_HIGH_BOUND): New macros.
58818         (EXTEND_BUFFER): Use them.
58819
58820 2000-08-01  Jim Meyering  <meyering@lucent.com>
58821
58822         * lib/dirname.c (ISSLASH): Define.
58823         (BACKSLASH_IS_PATH_SEPARATOR): Define.
58824         (dir_name) [BACKSLASH_IS_PATH_SEPARATOR]: Handle the case in which
58825         both `\' and `/' may be use as path separators.
58826         Based on a patch from Prashant TR.
58827
58828 2000-07-31  Paul Eggert  <eggert@twinsun.com>
58829
58830         * lib/quotearg.c (quotearg_n_options): Don't make the initial
58831         slot vector a constant, since it might get modified.
58832
58833 2000-07-31  Jim Meyering  <meyering@lucent.com>
58834
58835         * lib/xmalloc.c: Use `virtual memory exhausted', not
58836         `Memory exhausted'.
58837         * lib/obstack.c (print_and_abort): Likewise.
58838
58839 2000-07-30  Paul Eggert  <eggert@twinsun.com>
58840
58841         * lib/quotearg.c (quotearg_n_options): Preallocate a slot 0
58842         buffer, so that the caller can always quote one small
58843         component of a "memory exhausted" message in slot 0.
58844         From a suggestion by Jim Meyering.
58845
58846 2000-07-30  Jim Meyering  <meyering@lucent.com>
58847
58848         * lib/makepath.c (make_path): Quote the other instance, too.
58849
58850         * lib/quotearg.c (N_STATIC_SLOTVECS): Define.
58851         (STATIC_BUF_SIZE): Define.
58852         (quotearg_n_options): Use only statically allocated storage when
58853         N < N_STATIC_SLOTVECS and the length of the quoted result is smaller
58854         than STATIC_BUF_SIZE.
58855
58856 2000-07-29  Jim Meyering  <meyering@lucent.com>
58857
58858         * lib/diacrit.c (diacrit_diac): Use __MSDOS__ in favor of MSDOS.
58859         * lib/dirname.c (dir_name): Likewise.
58860
58861         * lib/basename.c (base_name): Use ISSLASH rather than comparing against
58862         `/'.
58863
58864         * lib/dirname.c (dir_name) [MSDOS]: Declare `lim' to be const.
58865         (dir_name): Assert that there are no trailing slashes.
58866
58867 2000-07-29  Bruno Haible  <haible@clisp.cons.org>
58868
58869         * lib/mbswidth.h (mbswidth): Add a flags argument.
58870         (mbswidth): New declaration.
58871         (MBSW_ACCEPT_INVALID, MBSW_ACCEPT_UNPRINTABLE): New macros.
58872         * lib/mbswidth.c (mbswidth): Add a flags argument.
58873         (mbsnwidth): New function.
58874
58875 2000-07-24  Jim Meyering  <meyering@lucent.com>
58876
58877         * lib/mbswidth.c: Remove useless #else.  From Bruno Haible.
58878
58879 2000-07-23  Paul Eggert  <eggert@twinsun.com>
58880
58881         * m4/mbswidth.m4 (jm_PREREQ_MBSWIDTH): Check for wcwidth declaration.
58882
58883 2000-07-23  Paul Eggert  <eggert@twinsun.com>
58884
58885         * lib/quotearg.c: Streamline by invoking multibyte code only if needed.
58886         <wchar.h>: Include only if HAVE_MBRTOWC && 1 < MB_LEN_MAX.
58887         (MB_CUR_MAX): Redefine to 1 if ! (HAVE_MBRTOWC && 1 < MB_LEN_MAX).
58888         (quotearg_buffer_restyled): If a unibyte locale, don't bother to
58889         invoke multibyte primitives.
58890
58891 2000-07-23  Paul Eggert  <eggert@twinsun.com>
58892
58893         * lib/quotearg.c:
58894         Include <wchar.h> even if ! (HAVE_MBRTOWC && 1 < MB_LEN_MAX),
58895         so that mbstate_t is always defined.
58896
58897         Do not inspect MB_LEN_MAX, since it's incorrectly defined to
58898         be 1 in at least one GCC installation, and this configuration
58899         error is likely to be common.  Ignoring MB_LEN_MAX hurts
58900         performance on hosts that have mbrtowc but have only unibyte
58901         locales, but I assume these hosts are rare.
58902
58903 2000-07-23  Paul Eggert  <eggert@twinsun.com>
58904
58905         * lib/mbswidth.c (_XOPEN_SOURCE):
58906         Don't define; this causes problems on Solaris 7.
58907         (wcwidth) [!HAVE_DECL_WCWIDTH]: Declare.
58908
58909 2000-07-23  Jim Meyering  <meyering@lucent.com>
58910
58911         * m4/check-decl.m4 (jm_CHECK_DECLS): Check for declarations of these,
58912         too: getgrgid, getpwuid, getuid.
58913
58914 2000-07-23  Jim Meyering  <meyering@lucent.com>
58915
58916         * lib/basename.c (base_name): Add an assertion.
58917
58918 2000-07-23  Bruno Haible  <haible@clisp.cons.org>
58919
58920         * lib/quotearg.c: When the system forces us to redefine mbstate_t,
58921         shadow its mbsinit function.
58922
58923 2000-07-17  Bruno Haible  <haible@clisp.cons.org>
58924
58925         * lib/mbswidth.h: New file.
58926         * lib/mbswidth.c: New file.
58927         * lib/Makefile.am (libfetish_a_SOURCES): Add mbswidth.c.
58928         (noinst_HEADERS): Add mbswidth.h.
58929
58930 2000-07-17  Bruno Haible  <haible@clisp.cons.org>
58931
58932         * lib/config.charset: Add support for FreeBSD. Improve support for
58933         HP-UX and IRIX 6.
58934
58935 2000-07-16  Bruno Haible  <haible@clisp.cons.org>
58936
58937         * m4/mbswidth.m4: New file.
58938         * m4/prereq.m4 (jm_PREREQ): Call jm_PREREQ_MBSWIDTH.
58939
58940 2000-07-15  Jim Meyering  <meyering@lucent.com>
58941
58942         * lib/makepath.c: Include quote.h.
58943         (make_path): Convert "`%s'" in format strings to "%s", and wrap each
58944         corresponding argument in a `quote (...)' call.
58945         Give better diagnostics.
58946
58947         * lib/Makefile.am (libfetish_a_SOURCES): Add quote.c.
58948         (noinst_HEADERS): Add quote.h.
58949
58950         * lib/quote.c (quote, quote_n): New file.  Two functions taken verbatim
58951         from tar's src/misc.c.
58952         * lib/quote.h: New file.  Prototypes for same.
58953
58954 2000-07-14  Paul Eggert  <eggert@twinsun.com>
58955
58956         From a suggestion by Bruno Haible.
58957         * lib/quotearg.c (mbrtowc): Do not use HAVE_WCHAR_H in the definition.
58958         Use defined mbstate_t, not HAVE_MBSTATE_T_OBJECT,
58959         to decide whether to define the BeOS workaround macro;
58960         this adjusts to the change to AC_MBSTATE_T.
58961
58962 2000-07-14  Jim Meyering  <meyering@lucent.com>
58963
58964         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): Require
58965         jm_AC_TYPE_UINTMAX_T.
58966
58967 2000-07-13  Paul Eggert  <eggert@twinsun.com>
58968
58969         * lib/quotearg.h (enum quoting style): New enum clocale_quoting_style.
58970
58971         * lib/quotearg.c (quoting_style_args, quoting_style_vals,
58972         quotearg_buffer_restyled): Add support for
58973         clocale_quoting_style.  Undo previous change to
58974         locale_quoting_style behavior, and undo the "{LEFT QUOTATION MARK}"
58975         and "{RIGHT QUOTATION MARK}" msgids.
58976
58977 2000-07-10  Paul Eggert  <eggert@twinsun.com>
58978
58979         From a suggestion by Bruno Haible.
58980         * m4/mbstate_t.m4 (AC_MBSTATE_T):
58981         Renamed from AC_MBSTATE_T_OBJECT.  All uses changed.
58982         Change from a two-part test, which defines both HAVE_MBSTATE_T_OBJECT
58983         and mbstate_t, to a single-part test that simply defines mbstate_t.
58984         * m4/prereq.m4 (jm_PREREQ_QUOTEARG):
58985         s/AC_MBSTATE_T_OBJECT/AC_MBSTATE_T/.
58986
58987 2000-07-10  Jim Meyering  <meyering@lucent.com>
58988
58989         * m4/strerror_r.m4: Mirror the correction made in autoconf.
58990
58991         * m4/gnu-source.m4: Output to confdefs.h directly.
58992         Suggestion from Akim Demaille.
58993
58994 2000-07-09  Paul Eggert  <eggert@twinsun.com>
58995
58996         The old behavior of quoting `like this' doesn't look good with
58997         newer, ISO-style fonts.  See:
58998         http://www.cl.cam.ac.uk/~mgk25/ucs/quotes.html
58999
59000         Instead, quote "like this" by default.  Let the translator
59001         tailor the locale-specific quoting behavior by providing
59002         translations for {LEFT QUOTATION MARK} and {RIGHT QUOTATION MARK}.
59003
59004         * lib/quotearg.c (N_): New macro.
59005         (gettext_default): New function.
59006         (quotearg_buffer_restyled): Use
59007         gettext_default ("{LEFT QUOTATION MARK}", "\"") for left quote, and
59008         gettext_default ("{RIGHT QUOTATION MARK}", "\"") for right quote.
59009
59010 2000-07-09  Jim Meyering  <meyering@lucent.com>
59011
59012         * m4/jm-macros.m4 (jm_MACROS): Add a test to see if -lm is required
59013         to link seq.  If so, set SEQ_LIBM to -lm.  From Bruno Haible.
59014
59015         * m4/gnu-source.m4 (AC__GNU_SOURCE): New file/macro.
59016         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Require it.
59017
59018 2000-07-09  Jim Meyering  <meyering@lucent.com>
59019
59020         * lib/Most files: Update copyright dates to include 2000.
59021
59022 2000-07-08  Jim Meyering  <meyering@lucent.com>
59023
59024         * lib/xgethostname.c (ENAMETOOLONG): Define to an unlikely value
59025         if not defined.
59026         (xgethostname): Remove now-unnecessary #ifdef.
59027         Move declaration of `err' into loop where it's used.
59028
59029 2000-07-05  Paul Eggert  <eggert@twinsun.com>
59030         and Bruno Haible  <haible@clisp.cons.org>
59031
59032         * m4/mbstate_t.m4 (AC_MBSTATE_T_OBJECT): Test for mbstate_t
59033         only if the test for an object-type mbstate_t fails.  This
59034         prevents us from mistakenly reporting that mbstate_t is a
59035         system object type after we "#define mbstate_t int" to work
59036         around its lack.
59037
59038 2000-07-05  Paul Eggert  <eggert@twinsun.com>
59039         and Bruno Haible  <haible@clisp.cons.org>
59040
59041         * lib/quotearg.c (mbrtowc): Declare returned type, since BeOS doesn't.
59042
59043 2000-07-05  Bruno Haible  <haible@clisp.cons.org>
59044
59045         * m4/strerror_r.m4 (AC_FUNC_STRERROR_R): Pass a reasonably large buffer
59046         to strerror_r.
59047         Include <ctype.h> for use of isalpha.
59048
59049 2000-07-05  Bruno Haible  <haible@clisp.cons.org>
59050
59051         * lib/xgethostname.c (xgethostname): Protect against the SunOS 5.5 bug
59052         by allocating a larger buffer. Test the gethostname return value for
59053         being >= 0, not == 0, for BeOS.  Don't exhaust memory if gethostname
59054         returns an error and ENAMETOOLONG isn't defined.
59055
59056 2000-07-05  Bruno Haible  <haible@clisp.cons.org>
59057
59058         * lib/quotearg.c (struct quoting_options): Simplify quote_these_too
59059         dimension.
59060
59061 2000-07-04  Jim Meyering  <meyering@lucent.com>
59062
59063         * m4/fsusage.m4 (jm_FILE_SYSTEM_USAGE): Use plain old `echo' instead
59064         of the deprecated AC_CHECKING.
59065
59066 2000-07-04  Jim Meyering  <meyering@lucent.com>
59067
59068         * lib/strndup.c: [!HAVE_DECL_STRNLEN]: Declare strnlen.
59069         Reported by Bruno Haible.
59070
59071 2000-07-04  Jim Meyering  <meyering@lucent.com>
59072
59073         * lib/quotearg.c: Make inclusion of <wchar.h> independent of whether
59074         HAVE_MBRTOWC is set.  Required at least for irix-5.6, which
59075         lacks mbrtowc.
59076
59077 2000-07-03  Paul Eggert  <eggert@twinsun.com>
59078
59079         * m4/mbstate_t.m4 (AC_MBSTATE_T_OBJECT): Port to autoconf 2.13.
59080         Add AC_CHECK_HEADERS(stdlib.h), since we use HAVE_STDLIB_H.
59081
59082 2000-07-03  Paul Eggert  <eggert@twinsun.com>
59083         and Bruno Haible  <haible@clisp.cons.org>
59084
59085         * lib/quotearg.c (mbrtowc):
59086         Assign to *pwc, and return 1 only if result is nonzero.
59087         (iswprint): Use ISPRINT when substituting our own mbrtowc.
59088
59089 2000-07-03  Jim Meyering  <meyering@lucent.com>
59090
59091         * m4/check-decl.m4 (AC_CHECK_DECLS): Add strnlen.
59092
59093 2000-07-03  Jim Meyering  <meyering@lucent.com>
59094
59095         * lib/readutmp.h: [HAVE_UTMPX_H]: Include <utmp.h> if HAVE_UTMP_H.
59096         This is necessary to get a definition of e.g., UTMP_FILE on
59097         HP-UX 10.20.
59098         From Bob Proulx.
59099
59100 2000-07-02  Jim Meyering  <meyering@lucent.com>
59101
59102         * m4/mbstate_t.m4: Also define mbstate_t, if necessary.
59103
59104         * m4/chown.m4: Replace each use of AC_SUBST(LIBOBJS)/LIBOBJS=... with
59105         AC_LIBOBJ(function_name).
59106         * m4/chown.m4: Likewise.
59107         * m4/fnmatch.m4: Likewise.
59108         * m4/ftruncate.m4: Likewise.
59109         * m4/getgroups.m4: Likewise.
59110         * m4/getline.m4: Likewise.
59111         * m4/group-member.m4: Likewise.
59112         * m4/jm-macros.m4: Likewise.
59113         * m4/lstat.m4: Likewise.
59114         * m4/malloc.m4: Likewise.
59115         * m4/memcmp.m4: Likewise.
59116         * m4/nanosleep.m4: Likewise.
59117         * m4/putenv.m4: Likewise.
59118         * m4/realloc.m4: Likewise.
59119         * m4/regex.m4: Likewise.
59120         * m4/stat.m4: Likewise.
59121         * m4/strftime.m4: Likewise.
59122
59123 2000-07-02  Jim Meyering  <meyering@lucent.com>
59124
59125         * lib/quotearg.c (mbstate_t): Don't define here.
59126
59127 2000-07-02  Jim Meyering  <meyering@lucent.com>
59128
59129         * lib/nanosleep.c (SIGCONT): Define if not already defined.
59130
59131 2000-07-01  Jim Meyering  <meyering@lucent.com>
59132
59133         * m4/uptime.m4: Put double quotes around use of $cross_compiling.
59134
59135 2000-07-01  Jim Meyering  <meyering@lucent.com>
59136
59137         * m4/ls-mntd-fs.m4: Remove a `FIXME' comment and fix the associated
59138         problem.
59139
59140 2000-07-01  Bruno Haible  <haible@clisp.cons.org>
59141
59142         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Rename BeOS specific
59143         macro from MOUNTED_NEXT_DEV to MOUNTED_FS_STAT_DEV.
59144
59145 2000-07-01  Bruno Haible  <haible@clisp.cons.org>
59146
59147         * lib/mountlist.c: Use MOUNTED_FS_STAT_DEV instead of MOUNTED_NEXT_DEV,
59148         per change in ../m4/ls-mntd-fs.m4.
59149         (read_filesystem_list): Ignore symbolic links.
59150
59151 2000-06-29  Jim Meyering  <meyering@lucent.com>
59152
59153         * lib/same.c: Include <string.h> or <strings.h>, as appropriate,
59154         for declaration of strcmp.
59155
59156         * lib/long-options.c: Include <stdlib.h>, for declaration of exit.
59157
59158         * lib/mountlist.c (fsp_to_string) [HAVE_F_FSTYPENAME_IN_STATFS]:
59159         Avoid warning by casting result to `char *' to remove `const'.
59160
59161 2000-06-28  Jim Meyering  <meyering@lucent.com>
59162
59163         * m4/mbstate_t.m4: Use stdlib.h, not stdio.h.  The latter is not
59164         included by quotearg.c, for which we perform this test.  From
59165         Bruno Haible.
59166
59167 2000-06-27  Bruno Haible  <haible@clisp.cons.org>
59168
59169         * m4/check-decl.m4 (_jm_DECL_HEADERS): Check for utmp.h as well.
59170         * m4/prereq.m4 (jm_PREREQ_READUTMP): Likewise. If either <utmp.h> or
59171         <utmpx.h> exists, put readutmp.o into LIBOBJS.
59172
59173 2000-06-27  Bruno Haible  <haible@clisp.cons.org>
59174
59175         * lib/Makefile.am (libfetish_a_SOURCES): Remove readutmp.c.
59176
59177 2000-06-26  Paul Eggert  <eggert@twinsun.com>
59178
59179         savedir now sets errno on failure and invokes xmalloc to get memory.
59180         Fix a couple of other minor bugs while we're at it.
59181
59182         * lib/savedir.c (<unistd.h>): Do not include; there's no need.
59183         (NAMLEN): Remove macro.
59184         (malloc, realloc): Remove decls.
59185         (stpcpy): Likewise.
59186         ("xalloc.h"): Include.
59187         (NAME_SIZE_DEFAULT): New macro.
59188         (savedir): Use xmalloc / xrealloc to allocate memory.
59189         Use NAME_SIZE_DEFAULT if name_size is negative or overflows to zero.
59190         Skip "" directory entries.
59191         Use strlen to calculate directory entry length, since the old method
59192         is rarely used these days and isn't worth supporting.
59193         Don't use a pointer after freeing it.
59194         Check for integer overflow when calculating allocation size.
59195         Use memcpy to copy entries, instead of stpcpy.
59196         Set errno properly when returning NULL.
59197         Check for readdir error.
59198
59199 2000-06-26  Jim Meyering  <meyering@lucent.com>
59200
59201         * lib/posixtm.c [HAVE_STDLIB_H]: Include stdlib.h, for decl of abort.
59202
59203 2000-06-25  Jim Meyering  <meyering@lucent.com>
59204
59205         * m4/mbstate_t.m4: Include stdio.h before wchar.h to work around
59206         Linux header bug when _XOPEN_SOURCE is defined to 500.
59207
59208 2000-06-25  Bruno Haible  <haible@clisp.cons.org>
59209
59210         * lib/unicodeio.c (print_unicode_char): Work around ansi2knr
59211         deficiency.
59212
59213 2000-06-25  Bruno Haible  <haible@clisp.cons.org>
59214
59215         * lib/getusershell.c (xmalloc, xrealloc): Remove functions.
59216         Include xalloc.h.
59217         Don't include <stdlib.h>.  Don't declare malloc, realloc.
59218
59219 2000-06-24  Jim Meyering  <meyering@lucent.com>
59220
59221         * m4/strerror_r.m4: Revive this file -- to try out an experimental
59222         version of AC_FUNC_STRERROR_R that may work even on BeOS, a system
59223         for which strerror does return char*, but which lacks a conveniently
59224         accessible declaration of the function.  If the compile-test says
59225         strerror_r doesn't work, then resort to a `run'-test that works on
59226         BeOS and segfaults on DEC Unix.
59227
59228 2000-06-24  Jim Meyering  <meyering@lucent.com>
59229
59230         * lib/error.c [!HAVE_DECL_STRERROR_R]: Declare strerror_r.
59231
59232 2000-06-23  Paul Eggert  <eggert@twinsun.com>
59233
59234         * m4/mbstate_t.m4: New file, defining AC_MBSTATE_T_OBJECT.
59235         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): Use it.  Add check for iswprint.
59236
59237 2000-06-23  Paul Eggert  <eggert@twinsun.com>
59238
59239         * lib/quotearg.c: Include <wctype.h> after <wchar.h>, for Solaris 2.5.
59240         (mbrtowc, mbstate_t): Define substitutes if
59241         HAVE_MBRTOWC && HAVE_WCHAR_H && !HAVE_MBSTATE_T_OBJECT.
59242         (iswprint): Define to 1 if !defined iswprint && !HAVE_ISWPRINT,
59243         not if ! (HAVE_MBRTOWC && HAVE_WCHAR_H).
59244
59245 2000-06-23  Jim Meyering  <meyering@lucent.com>
59246
59247         * m4/afs.m4: Add missing AC_MSG_RESULT.
59248         Reported by Bruno Haible.
59249
59250         * m4/fsusage.m4: s/AC_MSG_CHECKING/AC_CHECKING/.
59251         Suggestion from Bruno Haible.
59252
59253 2000-06-23  Jim Meyering  <meyering@lucent.com>
59254
59255         * lib/getpass.c: New file, from Bruno Haible.  Required for BeOS.
59256
59257 2000-06-21  Jim Meyering  <meyering@lucent.com>
59258
59259         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add getpass.
59260
59261 2000-06-21  Jim Meyering  <meyering@lucent.com>
59262
59263         * lib/Makefile.am (libfetish_a_SOURCES): Add getstr.c.
59264         (noinst_HEADERS): Add getstr.h.
59265
59266         * lib/getline.c (getstr): Move into a separate file.
59267         * lib/getstr.c (getstr): New file, extracted from getline.c, with
59268         the following changes: new parameter, delim2; both delim[12]
59269         parameters have type `int', not `char'.  The latter would lose
59270         with 8-bit delimiters.
59271         * lib/getstr.h: New file.
59272
59273 2000-06-21  Bruno Haible  <haible@clisp.cons.org>
59274
59275         * lib/xgetcwd.c (xgetcwd): If the required pathname length is smaller
59276         than 1024, return a memory chunk of least possible size, instead
59277         of size PATH_MAX + 2. In the loop, increment the size proportionally.
59278         Use free/xmalloc instead of xrealloc to avoid copying for very long
59279         paths.
59280
59281 2000-06-21  Bruno Haible  <haible@clisp.cons.org>
59282
59283         * lib/path-concat.c (path_concat): Don't access dir[-1] if dir is
59284         the empty string.
59285
59286 2000-06-21  Bruno Haible  <haible@clisp.cons.org>
59287
59288         * lib/canon-host.c (canon_host): Use malloc and memcpy to copy an
59289         address, not strdup.  Include <stdlib.h> and don't declare free().
59290
59291 2000-06-19  Jim Meyering  <meyering@lucent.com>
59292
59293         * lib/getloadavg.c [HAVE_NLIST_H] (NLIST_STRUCT): Define.
59294
59295 2000-06-18  Jim Meyering  <meyering@lucent.com>
59296
59297         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Remove mkdir.
59298
59299         * m4/link-follow.m4 (jm_AC_FUNC_LINK_FOLLOWS_SYMLINK): Change the
59300         `checking whether...' message to be consistent with that of the
59301         lstat test.
59302
59303 2000-06-18  Jim Meyering  <meyering@lucent.com>
59304
59305         * lib/mkdir.c: Remove file, due mainly to copyright incompatibility.
59306         Besides, these days every porting target provides a mkdir function.
59307
59308         * lib/strnlen.c: Include memory.h, string.h, and/or strings.h as
59309         needed. (this snippet comes from src/system.h).
59310
59311 2000-06-16  Bruno Haible  <haible@clisp.cons.org>
59312
59313         * m4/glibc21.m4 (jm_GLIBC21): Define GLIBC21 for Makefiles, not for C.
59314
59315 2000-06-15  Paul Eggert  <eggert@twinsun.com>
59316
59317         * lib/human.c (adjust_value): New function.
59318         (human_readable_inexact): Apply rounding style even when
59319         printing approximate values.
59320
59321 2000-06-14  Paul Eggert  <eggert@twinsun.com>
59322
59323         * lib/human.c (human_readable_inexact): Allow an input block
59324         size that is not a multiple of the output block size, and vice versa.
59325         Reported by Piergiorgio Sartor.
59326
59327 2000-06-14  Paul Eggert  <eggert@twinsun.com>
59328
59329         * lib/getdate.y (get_date): Apply relative times after time
59330         zone indicator, not before.  Reported by Todd A. Jacobs.
59331
59332 2000-06-13  Jim Meyering  <meyering@lucent.com>
59333
59334         * lib/Makefile.am (all-local): Depend on lstat.c and stat.c.
59335
59336         * lib/xstat.in [!HAVE_DECL_FREE]: Declare free in lstat.c.
59337
59338 2000-06-12  Paul Eggert  <eggert@twinsun.com>
59339
59340         * lib/xstat.in: Include <stdlib.h> in lstat, to declare "free".
59341
59342 2000-06-12  Jim Meyering  <meyering@lucent.com>
59343
59344         * m4/getloadavg.m4 (AM_FUNC_GETLOADAVG): Replace with
59345         AC_FUNC_GETLOADAVG from autoconf, and tweak the latter to accept an
59346         optional argument.
59347         * m4/jm-macros.m4: s/AM_FUNC_GETLOADAVG/AC_FUNC_GETLOADAVG/, and supply
59348         the optional argument, `lib'.
59349
59350 2000-06-08  Jim Meyering  <meyering@lucent.com>
59351
59352         * m4/largefile.m4: Remove file (now that it's part of autoconf).
59353
59354 2000-06-04  Paul Eggert  <eggert@twinsun.com>
59355
59356         Rewrite largefile configuration so that we don't need to run
59357         getconf and don't need AC_CANONICAL_HOST.  [I'm leaving the use of
59358         AC_CANONICAL_HOST in configure.in -- jmm]
59359
59360         * m4/largefile.m4 (AC_SYS_LARGEFILE_FLAGS,
59361         AC_SYS_LARGEFILE_SPACE_APPEND): Remove.
59362         (AC_SYS_LARGEFILE_TEST_INCLUDES): New macro.
59363         (AC_SYS_LARGEFILE_MACRO_VALUE): Change arguments from
59364         CODE-TO-SET-DEFAULT to VALUE, INCLUDES, FUNCTION-BODY.
59365         All uses changed.
59366         Instead of inspecting the output of getconf, try to compile the
59367         test program without and with the macro definition.
59368         (AC_SYS_LARGEFILE): Do not require AC_CANONICAL_HOST or check
59369         for getconf.  Instead, check for the needed flags by compiling
59370         test programs.
59371
59372 2000-06-04  Paul Eggert  <eggert@twinsun.com>
59373
59374         * lib/strnlen.c: Include <config.h> if HAVE_CONFIG_H.
59375
59376 2000-06-04  Jim Meyering  <meyering@lucent.com>
59377
59378         * lib/getugroups.c (getugroups): Cast -1 to gid_t, for systems like
59379         SunOS 4.1.4 for which gid_t is an unsigned type.
59380
59381 2000-06-03  Jim Meyering  <meyering@lucent.com>
59382
59383         * m4/prereq.m4 (jm_PREREQ_HUMAN): Use []-quoted list in AC_CHECK_DECLS,
59384         now that autoconf requires that.
59385
59386         * m4/jm-glibc-io.m4: Add a kludge to make autoheader emit the required
59387         #undefs.  E.g., #undef HAVE_DECL_FERROR_UNLOCKED.
59388         Use []-quoted list in AC_CHECK_DECLS, now that autoconf requires that.
59389
59390 2000-06-03  Jim Meyering  <meyering@lucent.com>
59391
59392         * lib/strnlen.c [!HAVE_DECL_MEMCHR]: Declare memchr.
59393
59394 2000-06-03  Bruno Haible  <haible@clisp.cons.org>
59395
59396         * m4/glibc21.m4: New file.
59397         * m4/jm-macros.m4 (jm_MACROS): Call jm_GLIBC21.
59398
59399 2000-06-03  Bruno Haible  <haible@clisp.cons.org>
59400
59401         * lib/Makefile.am (install-exec-local): On systems with glibc-2.1 or
59402         newer, don't install charset.alias.
59403         * lib/config.charset: Change the Linux/glibc rules so they become empty
59404         on glibc-2.1 or newer.
59405
59406 2000-06-02  Jim Meyering  <meyering@lucent.com>
59407
59408         * lib/mountlist.c: Back out last change.  Instead, do this...
59409         * lib/mountlist.c (read_filesystem_list) [MOUNTED_VMOUNT]: Set the
59410         me_dummy member using the same `ignore'-testing code.
59411         * lib/mountlist.h (ME_DUMMY): Add `autofs' to the list of ignored
59412         fs_type strings.
59413         From Mark D. Roth.
59414
59415 2000-05-29  Jim Meyering  <meyering@lucent.com>
59416
59417         * lib/mountlist.c (read_filesystem_list) [MOUNTED_VMOUNT]: Ignore
59418         mounts with the `ignore' attribute.  Based on a patch from
59419         Mark D. Roth.
59420
59421 2000-05-28  Jim Meyering  <meyering@lucent.com>
59422
59423         * m4/jm-macros.m4 (AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK): Rename from
59424         jm_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
59425         * m4/stat.m4: Likewise.
59426         * m4/lstat.m4: Likewise.
59427         * m4/lstat-slash.m4: Remove file (absorbed into autoconf).
59428
59429         * m4/jm-macros.m4 (AC_FUNC_STRERROR_R): Rename from jm_FUNC_STRERROR_R.
59430         * m4/strerror_r.m4: Remove file (absorbed into autoconf).
59431
59432 2000-05-26  Jim Meyering  <meyering@lucent.com>
59433
59434         * m4/uptime.m4: Use `$cross_compiling', not `$ac_cv_prog_cc_cross'.
59435
59436 2000-05-24  Jim Meyering  <meyering@lucent.com>
59437
59438         * m4/prereq.m4: Use []-quoted list in AC_CHECK_MEMBERS, now that
59439         autoconf requires that.
59440         * m4/lib-check.m4: Likewise.
59441         * m4/jm-macros.m4: Likewise.
59442         * m4/strftime.m4: Likewise.
59443
59444         * m4/check-decl.m4 (jm_CHECK_DECLS): Use []-quoted list in
59445         AC_CHECK_DECLS, now that autoconf requires that.
59446
59447 2000-05-22  Jim Meyering  <meyering@lucent.com>
59448
59449         * m4/stat.m4: Require jm_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
59450         * m4/lstat.m4: Likewise.
59451
59452 2000-05-22  Jim Meyering  <meyering@lucent.com>
59453
59454         * lib/makepath.c: Remove old, now-unnecessary `#ifdef __MSDOS__' block.
59455
59456 2000-05-20  Jim Meyering  <meyering@lucent.com>
59457
59458         * m4/prereq.m4 (jm_PREREQ_HUMAN): New macro.
59459         (jm_PREREQ): Use it.
59460
59461 2000-05-18  Jim Meyering  <meyering@lucent.com>
59462
59463         * lib/hash.c (hash_rehash): Fix a nasty bug: copy the free entry list
59464         back, too, since it may have been modified by allocate_entry.
59465         (hash_delete): Rewrite to use neither the assignment operator
59466         nor the comma operator in an if-expression.
59467
59468 2000-05-15  Paul Eggert  <eggert@twinsun.com>
59469
59470         * lib/closeout.c:
59471         <sys/stat.h>, <sys/types.h>, <unistd.h>, (STDOUT_FILENO):
59472         Remove; no longer needed.
59473         "quotearg.h": Add include.
59474         (file_name): Do not bother to explicitly initialize to NULL; it's less
59475         efficient on some hosts.
59476         (close_stdout_status): Remove test as to whether stdout was already
59477         closed; it breaks for the case "echo x | sort >&-".
59478         Quote file name colons.
59479         Do not assume that _("write error") lacks format strings.
59480
59481 2000-05-15  Jim Meyering  <meyering@lucent.com>
59482
59483         * lib/version-etc.c (version_etc_copyright): Update the copyright
59484         string used in all --version output.
59485
59486 2000-05-14  Jim Meyering  <meyering@lucent.com>
59487
59488         * lib/closeout.c (close_stdout_set_file_name): New function.
59489         (close_stdout_status): Use new file-scoped global.
59490         Return right away if fstat says the stdout file descriptor is invalid.
59491         * lib/closeout.h (close_stdout_set_file_name): Declare.
59492
59493 2000-05-10  Jim Meyering  <meyering@lucent.com>
59494
59495         * lib/closeout.c [default_exit_status]: New file-scoped variable.
59496         (close_stdout_set_status): New function.
59497         * lib/closeout.h (close_stdout_set_status): Declare.
59498
59499 2000-05-09  Jim Meyering  <meyering@lucent.com>
59500
59501         * m4/gettext.m4: Rename this...
59502         * m4/libintl.m4: ...to this.
59503
59504 2000-05-08  Jim Meyering  <meyering@lucent.com>
59505
59506         * lib/long-options.c: Don't include closeout.h.
59507         (parse_long_options): Don't call close_stdout for --version.
59508
59509 2000-05-06  Paul Eggert  <eggert@twinsun.com>
59510
59511         * m4/largefile.m4 (AC_SYS_LARGEFILE): Define _XOPEN_SOURCE to
59512         be 500, instead of _GNU_SOURCE to be 1, to work around glibc
59513         2.1.3 bug.  This avoids a clash when files like regex.c define
59514         _GNU_SOURCE.
59515
59516 2000-05-06  Jim Meyering  <meyering@lucent.com>
59517
59518         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add atexit.
59519         (AC_REPLACE_FUNCS): Add strnlen.
59520
59521         * m4/rmdir-errno.m4 (fetish_FUNC_RMDIR_NOTEMPTY): New macro and file.
59522         * m4/jm-macros.m4: Require fetish_FUNC_RMDIR_NOTEMPTY.
59523
59524         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): Save and restore LIBS around
59525         AC_SEARCH_LIBS call for nanosleep.
59526         (LIB_NANOSLEEP): Set and AC_SUBST.
59527
59528 2000-05-06  Jim Meyering  <meyering@lucent.com>
59529
59530         * lib/strnlen.c: Undefine __strnlen and strnlen.
59531         [!weak_alias]: Define __strnlen to strnlen.
59532
59533         * lib/atexit.c: New file, from libiberty.
59534
59535 2000-05-06  Jim Meyering  <meyering@lucent.com>
59536
59537         * lib/closeout.c (close_stdout_status): Also check for errors on the
59538         stderr stream.
59539
59540 2000-05-05  Jim Meyering  <meyering@lucent.com>
59541
59542         * m4/jm-macros.m4 (jm_MACROS): Save and restore LIBS around
59543         AC_SEARCH_LIBS call for clock_gettime.
59544         (LIB_CLOCK_GETTIME): Set and AC_SUBST.
59545
59546         * m4/search-libs.m4: Update from autoconf.
59547
59548         su doesn't work on Solaris 2.6.
59549         * m4/lib-check.m4: When checking for struct spwd.sp_pwdp, also include
59550         <shadow.h>.  Reported by Dragos Harabor.
59551
59552 2000-05-05  Bruno Haible  <haible@clisp.cons.org>
59553
59554         * lib/localcharset.c (get_charset_aliases): Use malloc, realloc and
59555         memcpy instead of xmalloc, xrealloc, path_concat.
59556         (locale_charset): Treat empty environment variables as absent.
59557         (DIRECTORY_SEPARATOR, ISSLASH): New macros.
59558
59559 2000-05-04  Jim Meyering  <meyering@lucent.com>
59560
59561         * lib/getopt.c: Update from glibc.
59562         * lib/obstack.c: Likewise.
59563         * lib/obstack.h: Likewise.
59564         * lib/regex.c: Likewise.  NB: K&R compiler support is dropped for this
59565         file
59566
59567         * lib/regex.h: Likewise.
59568         * lib/strndup.c: Likewise.
59569         * lib/strnlen.c: New file, from glibc.
59570
59571 2000-05-03  Jim Meyering  <meyering@lucent.com>
59572
59573         * m4/check-decl.m4 (AC_CHECK_DECLS): Add strndup.
59574
59575 2000-05-02  Paul Eggert  <eggert@twinsun.com>
59576
59577         * m4/largefile.m4 (AC_SYS_LARGEFILE): Define _GNU_SOURCE if
59578         this is needed to make ftello visible (e.g. glibc 2.1.3).  Use
59579         compile-time test, rather than inspecting host and OS, to
59580         decide whether to define _LARGEFILE_SOURCE.
59581
59582 2000-05-01  Jim Meyering  <meyering@lucent.com>
59583
59584         * m4/fsusage.m4: Use AC_MSG_CHECKING instead of obsolete AC_CHECKING.
59585
59586         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Add BeOS support.
59587         Based on a patch from Bruno Haible.
59588
59589 2000-05-01  Jim Meyering  <meyering@lucent.com>
59590
59591         * lib/full-write.c (full_write): Remove `FIXME' part of comment.
59592
59593 2000-04-29  Jim Meyering  <meyering@lucent.com>
59594
59595         * lib/path-concat.c: Declare strdup only if it's not defined.
59596         * lib/canon-host.c: Likewise.
59597
59598 2000-04-28  Jim Meyering  <meyering@lucent.com>
59599
59600         * lib/rpmatch.c [HAVE_LIMITS_H]: Include limits.h before regex.h to
59601         avoid redefinition warning on some systems (HPUX).  Otherwise, regex.h
59602         is included first, then limits.h is included by locale.h by libintl.h.
59603         From John David Anglin.
59604
59605 2000-04-25  Jim Meyering  <meyering@lucent.com>
59606
59607         * lib/makepath.c (S_IRWXUGO): Define.
59608         (make_path): Always perform explicit chmod if MODE specifies any
59609         of the `special' permission bits.  Prompted by a bug report against
59610         install from Mate Wierdl and Joost van Baal.
59611
59612 2000-04-18  Jim Meyering  <meyering@lucent.com>
59613
59614         * m4/prereq.m4 (jm_PREREQ_GETPAGESIZE): New macro.
59615         (jm_PREREQ): Use it.
59616
59617 2000-04-18  Jim Meyering  <meyering@lucent.com>
59618
59619         * lib/README: New file.
59620
59621         * lib/getpagesize.h [!getpagesize && HAVE_OS_H && B_PAGE_SIZE]: Define
59622         getpagesize.  For BeOS.  Based on a patch from Bruno Haible.
59623
59624 2000-04-17  Jim Meyering  <meyering@lucent.com>
59625
59626         Get it right :-)
59627         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES) [_GNU_SOURCE]: Emit the
59628         actual #define via AH_VERBATIM.  Don't need separate AC_DEFINE.
59629         Suggestion from Akim Demaille.
59630
59631 2000-04-17  Jim Meyering  <meyering@lucent.com>
59632
59633         * lib/strftime.c (my_strftime) [strftime]: Declare strftime here, since
59634         the definition of it to rpl_strftime also defined-away the system's
59635         declaration.
59636
59637 2000-04-15  Jim Meyering  <meyering@lucent.com>
59638
59639         Use `C' to denote so-called `contiguous' files, the same way
59640         that tar does.
59641         * lib/filemode.c (S_ISCTG) [!S_ISCTG && S_IFCTG]: Define.
59642         (ftypelet): Use S_ISCTG.
59643         From Michael Deutschmann.
59644
59645 2000-04-14  Jim Meyering  <meyering@lucent.com>
59646
59647         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES) [_GNU_SOURCE]: Use the one-arg
59648         form of AC_DEFINE.  Otherwise, the #ifndef in AH_VERBATIM gets
59649         clobbered.
59650
59651 2000-04-14  Jim Meyering  <meyering@lucent.com>
59652
59653         * lib/strftime.c (my_strftime) [#ifdef strftime]: Declare strftime.
59654
59655 2000-04-13  Jim Meyering  <meyering@lucent.com>
59656
59657         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES) [_GNU_SOURCE]: Use new
59658         AH_VERBATIM to insert required #ifndef into config.h.in.
59659         Suggestion from Akim Demaille.
59660
59661 2000-04-12  Jim Meyering  <meyering@lucent.com>
59662
59663         * m4/getloadavg.m4 (AM_FUNC_GETLOADAVG): Use AC_CHECK_HEADERS, not
59664         `AC_CHECK_HEADER' to check for locale.h.  Thanks to a report from
59665         Christian Krackowizer.
59666
59667         More code moved from ../configure.in into (jm_CHECK_ALL_TYPES).
59668         * m4/jm-macros.m4 (_GNU_SOURCE): Define.
59669         (AC_SYS_LARGEFILE): Require.
59670         (AM_C_PROTOTYPES): Require.
59671
59672 2000-04-08  Jim Meyering  <meyering@lucent.com>
59673
59674         * lib/Makefile.am (charset.alias): Use t-$@, not $@-t so the DOS 8.3
59675         names don't conflict.  Reported by Eli Zaretskii.
59676
59677 2000-04-07  Jim Meyering  <meyering@lucent.com>
59678
59679         * lib/putenv.c: Move inclusion of errno.h so it follows that of
59680         sys/types.h, to work around system header problems on AIX 3.2.5.
59681         From Bruno Haible.
59682
59683 2000-04-07  Bruno Haible  <haible@clisp.cons.org>
59684
59685         * lib/unicodeio.c (print_unicode_char): Avoid triggering Solaris iconv
59686         bug.  Deal with the different error behavior of Irix iconv.
59687
59688 2000-04-05  Paul Eggert  <eggert@twinsun.com>
59689
59690         * m4/largefile.m4 (AC_SYS_LARGEFILE_FLAGS): Don't use -n32 on
59691         IRIX if the installer said otherwise.
59692
59693 2000-04-05  Jim Meyering  <meyering@lucent.com>
59694
59695         Portability tweaks required for ultrix4.3.
59696         * m4/check-decl.m4 [!HAVE_UTMPX_H] (headers): Include <utmp.h>.
59697         (jm_CHECK_DECLS): Add getutent to the list of functions.
59698         (_jm_DECL_HEADERS): Add utmpx.h.
59699         From John David Anglin.
59700
59701         * m4/strftime.m4: Back out the 2000-04-02 change.
59702         Instead of that change, simply undefine putenv in the test program.
59703
59704 2000-04-05  Jim Meyering  <meyering@lucent.com>
59705
59706         Portability tweaks required for ultrix4.3.
59707         * lib/readutmp.h [HAVE_UTMPX_H && !HAVE_DECL_GETUTENT]: Declare
59708         getutent.
59709         * lib/readutmp.c: Include sys/types.h before sys/stat.h.
59710         * lib/canon-host.c: Declare strdup.
59711         * lib/path-concat.c: Likewise.
59712         From John David Anglin.
59713
59714 2000-04-04  Jim Meyering  <meyering@lucent.com>
59715
59716         Be more DOS 8.3-friendly.
59717         * lib/ref-add.sin: Renamed from ref-add.sed.in.
59718         * lib/ref-del.sin: Renamed from ref-del.sed.in.
59719         * lib/Makefile.am: Reflect renaming.
59720         Reported by Eli Zaretskii.
59721
59722         Use a temporary file name that won't clash with `charset.alias'
59723         in the DOS 8.3 name space.
59724         * lib/Makefile.am (charset_tmp): Define.
59725         (install-exec-local): Use $(charset_tmp) instead of $(charset_alias)-t.
59726         (uninstall-local): Likewise.
59727         Reported by Eli Zaretskii.
59728
59729 2000-04-03  Jim Meyering  <meyering@lucent.com>
59730
59731         * m4/gettext.m4: Fix typo in comment.
59732
59733         * m4/codeset.m4 (AC_CHECK_HEADERS): Add langinfo.h (moved here from
59734         textutils/configure.in).  Suggestion from Paul Eggert.
59735         (AC_CHECK_FUNCS): Add nl_langinfo.  (also from textutils/configure.in)
59736
59737 2000-04-02  Paul Eggert  <eggert@twinsun.com>
59738
59739         * m4/strftime.m4 (jm_FUNC_GNU_STRFTIME): Set TZ environment
59740         variable in the shell rather than using putenv, which isn't
59741         portable.  This avoids the configure-time inter-test dependency
59742         on the potentially-renamed putenv function.
59743
59744 2000-03-30  Paul Eggert  <eggert@twinsun.com>
59745
59746         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Include <sys/stat.h>
59747         before checking struct stat.st_blksize, so that
59748         HAVE_STRUCT_STAT_ST_BLKSIZE is defined correctly.
59749
59750 2000-03-29  Paul Eggert  <eggert@twinsun.com>
59751
59752         * m4/strftime.m4 (_jm_STRFTIME_PREREQS): Check for strftime,
59753         since strftime.c uses HAVE_STRFTIME to decide whether to use
59754         the underlying strftime.
59755
59756 2000-03-29  Paul Eggert  <eggert@twinsun.com>
59757
59758         * lib/time/strftime.c (my_strftime): Make sure we call the system
59759         strftime, not ourselves, when invoking the underlying strftime.
59760
59761 2000-03-24  Jim Meyering  <meyering@lucent.com>
59762
59763         * lib/Makefile.am (EXTRA_DIST): Add ref-add.sed.in and ref-del.sed.in.
59764         (charset_alias): Define.
59765         (install-exec-local): Factor out common code.
59766         (uninstall-local): Split lines longer than 80.
59767         (ref-add.sed, ref-del.sed): Remove rules... (do the following instead)
59768         (SUFFIXES): Define.
59769         (.sed.in.sed): New rule.  Don't redirect directly to $@.
59770         (CLEANFILES): Add ref-add.sed and ref-del.sed.
59771
59772 2000-03-19  Bruno Haible  <haible@clisp.cons.org>
59773
59774         * lib/config.charset: Output a line containing "Packages using this
59775         file".
59776         * lib/ref-add.sed.in, lib/ref-del.sed.in: New files.
59777         * lib/Makefile.am (install-exec-local, uninstall-local, ref-add.sed,
59778         ref-del.sed): New rules.
59779
59780 2000-03-17  Jim Meyering  <meyering@lucent.com>
59781
59782         * lib/unicodeio.c (<string.h>): Include only #if HAVE_STRING_H.
59783         Otherwise, include <strings.h>
59784
59785 2000-03-17  Bruno Haible  <haible@clisp.cons.org>
59786
59787         * lib/unicodeio.c (utf8_wctomb): New function.
59788         (print_unicode_char): Pass the Unicode character to iconv in UTF-8
59789         format instead of in UCS-4 with platform dependent endianness.
59790
59791 2000-03-10  Jim Meyering  <meyering@lucent.com>
59792
59793         * m4/lib-check.m4: Look for getspnam in -lgen, too.
59794         From Marco Franzen.
59795
59796 2000-03-07  Paul Eggert  <eggert@twinsun.com>
59797
59798         * lib/savedir.c (savedir): Work even if directory size is
59799         negative; this can happen with some screwy NFS configurations.
59800
59801 2000-03-06  Jim Meyering  <meyering@lucent.com>
59802
59803         * lib/localcharset.c (get_charset_aliases): Don't try to free file_name
59804         if it's NULL (because we ran out of memory).  From Bruno Haible.
59805
59806 2000-03-05  Jim Meyering  <meyering@lucent.com>
59807
59808         * lib/localcharset.c ("path-concat.h"): Include.
59809         (get_charset_aliases): Use path_concat instead of ANSI string
59810         concatenation.
59811
59812         * lib/unicodeio.h (PARAMS): Define.
59813         Use it to guard prototype.
59814
59815 2000-03-04  Jim Meyering  <meyering@lucent.com>
59816
59817         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Require AC_C_VOLATILE,
59818         for lib/localcharset.c.
59819
59820 2000-03-04  Jim Meyering  <meyering@lucent.com>
59821
59822         * lib/Makefile.am (install-exec-local): Create $(libdir) before
59823         installing into it.
59824         (uninstall-local): Uncomment this rule so `make distcheck' works
59825         once again.
59826
59827         * lib/unicodeio.c (<errno.h>): Include it.
59828         (errno): Declare if not defined.
59829
59830         * lib/localcharset.c: Add Bruno's comment justifying use of volatile.
59831
59832         * lib/config.charset: New version, incorporating remarks from a linux
59833         i18n mailing list.  From Bruno Haible.
59834
59835 2000-03-04  Bruno Haible  <haible@clisp.cons.org>
59836
59837         * m4/codeset.m4: New file.
59838         * m4/iconv.m4: New file.
59839         * m4/jm-macros.m4 (jm_MACROS): Call jm_LANGINFO_CODESET and jm_ICONV.
59840
59841 2000-03-03  Jim Meyering  <meyering@lucent.com>
59842
59843         * m4/regex.m4: Make sure re_compile_pattern accepts patterns like `{1'.
59844
59845 2000-03-02  Jim Meyering  <meyering@lucent.com>
59846
59847         * m4/timespec.m4: Require AC_HEADER_TIME before the cache check so
59848         the messages come out on separate lines.
59849
59850         * m4/jm-glibc-io.m4 (jm_FUNC_GLIBC_UNLOCKED_IO): Use AC_CHECK_DECLS,
59851         rather than jm_CHECK_DECLARATIONS.
59852         * m4/decl.m4: Remove now-unused file.
59853
59854         * m4/check-decl.m4 (AC_CHECK_DECLS): Add getlogin, ttyname, and
59855         geteuid.
59856
59857 2000-03-02  Jim Meyering  <meyering@lucent.com>
59858
59859         * lib/Makefile.am (EXTRA_DIST): Add config.charset.
59860
59861 2000-03-01  Jim Meyering  <meyering@lucent.com>
59862
59863         * lib/localcharset.c: Guard some #includes with `#if HAVE_...'.
59864         * lib/unicodeio.c: Likewise.
59865
59866 2000-03-01  Bruno Haible  <haible@clisp.cons.org>
59867
59868         * lib/config.charset: New file.
59869         * lib/localcharset.c: New file.
59870         * lib/unicodeio.h, lib/unicodeio.c: New files.
59871         * lib/Makefile.am (DEFS): Add -DLIBDIR=...
59872         (libfetish_a_SOURCES): Add localcharset.c and unicodeio.c.
59873         (noinst_HEADERS): Add unicodeio.h.
59874         (all-local, install-exec-local, charset.alias): New targets.
59875
59876 2000-02-28  Paul Eggert  <eggert@twinsun.com>
59877
59878         * lib/quotearg.c (ALERT_CHAR): New macro.
59879         (quotearg_buffer_restyled): Use it.
59880
59881 2000-02-27  Jim Meyering  <meyering@lucent.com>
59882
59883         * m4/check-decl.m4: Add getenv to the list.
59884
59885 2000-02-27  Jim Meyering  <meyering@lucent.com>
59886
59887         * lib/strtoumax.c: Fix typo in decl of strtoul: s/long long/long/.
59888         Guard declaration of strtoull also with `&& HAVE_UNSIGNED_LONG_LONG'.
59889
59890         * lib/backupfile.c: Guard inclusion of stdlib.h with
59891         `#if HAVE_STDLIB_H', not `#if STDC_HEADERS'.
59892         Declare malloc if needed.
59893
59894         * lib/backupfile.c: Use `#if !HAVE_DECL...' instead of
59895         `#ifndef HAVE_DECL..'
59896         now that autoconf always defines the HAVE_DECL_ symbols.
59897         * lib/human.c: Likewise.
59898         * lib/same.c: Likewise.
59899         * lib/strtoumax.c: Likewise.
59900
59901         * lib/backupfile.c: Arrange for cpp to fail if the configure-time
59902         declaration check was not run.
59903         * lib/hash.c: Likewise.
59904         * lib/human.c: Likewise.
59905         * lib/same.c: Likewise.
59906         * lib/strtoumax.c: Likewise.
59907
59908         * lib/userspec.c (parse_user_spec): If there is no `:' but there is a
59909         `.', then first look up the entire `.'-containing string as a login
59910         name.
59911
59912 2000-02-23  Jim Meyering  <meyering@lucent.com>
59913
59914         * m4/check-decl.m4: Now that we have the new AC_CHECK_DECLS, use it
59915         in place of my hack.
59916
59917 2000-02-18  Paul Eggert  <eggert@twinsun.com>
59918
59919         * lib/getdate.y: Handle two-digit years with leading zeros correctly.
59920         (textint): New typedef.
59921         (parser_control): Member year changed from int to textint.
59922         All uses changed.
59923         (YYSTYPE): Removed; replaced by %union with int and textint members.
59924         (tDAY, tDAY_UNIT, tDAYZONE, tHOUR_UNIT, tID, tLOCAL_ZONE, tMERIDIAN,
59925         tMINUTE_UNIT, tMONTH, tMONTH_UNIT tSEC_UNIT, tSNUMBER, tUNUMBER,
59926         tYEAR_UNIT, tZONE, o_merid): Now of type <intval>.
59927         (tSNUMBER, tUNUMBER): Now of type <textintval>.
59928         (date, number, to_year): Use width of number in digits, not its value,
59929         to determine whether it's a 2-digit year, or a 2-digit time.
59930         (yylex): Store number of digits of numeric tokens.
59931         Reported by John Kendall.
59932
59933         (parser_control): Changed from struct parser_control to typedef (for
59934         consistency).  All uses changed.
59935
59936         (tID): Removed; not used.
59937         (yylex): Return '?' for unknown identifiers, rather than (unused) tID.
59938
59939 2000-02-14  Paul Eggert  <eggert@twinsun.com>
59940
59941         * lib/getpagesize.h (getpagesize): Port to VMS for Alpha;
59942         adapted from changes to grep getpagesize.h by Martin P.J. Zinser.
59943
59944 2000-02-12  Jim Meyering  <meyering@lucent.com>
59945
59946         * lib/userspec.c (ISDIGIT): Define it.
59947         (isdigit): Remove definition.
59948         (is_number): Use ISDIGIT, not isdigit.
59949         <libintl.h>: Include.
59950         (_ and N_): Define.
59951         (parse_user_spec): Mark translatable strings.
59952
59953 2000-02-10  Jim Meyering  <meyering@lucent.com>
59954
59955         With these changes, nanosleep.[ch] are finally enough like the other
59956         lib/* replacement files to compile on a few more losing systems.
59957
59958         * lib/nanosleep.h: Don't include config.h.
59959         Remove prototype from declaration of nanosleep.
59960         (PARAMS): Remove now-unneeded definition.
59961         * lib/nanosleep.c: #undef nanosleep.
59962         (rpl_nanosleep): Rename from nanosleep.
59963
59964 2000-02-10  Jim Meyering  <meyering@lucent.com>
59965
59966         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): Rename replacement function from
59967         gnu_nanosleep to rpl_nanosleep.
59968
59969 2000-02-09  Jim Meyering  <meyering@lucent.com>
59970
59971         * m4/lib-check.m4 (jm_LIB_CHECK): Fix typo: check for sp_pwdp in
59972         struct spwd, rather than in struct passwd.  Reported by Gaël Quéri.
59973
59974 2000-02-08  Akim Demaille  <akim@epita.fr>
59975
59976         * m4/largefile.m4 (AC_SYS_LARGEFILE_FLAGS): Quote square brackets with
59977         `[' and `]' and remove uses of `changequote'.
59978         (AC_SYS_LARGEFILE_MACRO_VALUE): Likewise.
59979         (AC_SYS_LARGEFILE): Likewise.
59980         * m4/gettext.m4 (AM_GNU_GETTEXT): Likewise.
59981         * m4/strftime.m4 (jm_FUNC_GNU_STRFTIME): Remove now-unnecessary use
59982         of changequote.
59983         * m4/regex.m4 (jm_INCLUDED_REGEX): Likewise.
59984         * m4/readdir.m4 (jm_FUNC_READDIR): Likewise
59985         * m4/memcmp.m4 (jm_AC_FUNC_MEMCMP): Likewise, and add `int' for main.
59986         * m4/getloadavg.m4 (AM_FUNC_GETLOADAVG): Likewise.
59987
59988 2000-02-05  Jim Meyering  <meyering@lucent.com>
59989
59990         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Require most macros.
59991         Remove explicit use of AC_HEADER_TIME.  It is required by
59992         jm_CHECK_TYPE_STRUCT_TIMESPEC.  Using AC_HEADER_TIME and
59993         `AC_REQUIRE'ing jm_CHECK_TYPE_STRUCT_TIMESPEC provoked a but
59994         in autoconf whereby the expansion of the latter ended up preceding
59995         the expansion of its prerequisite, AC_HEADER_TIME.
59996         Reported by Volker Borchert.
59997
59998 2000-02-03  Jim Meyering  <meyering@lucent.com>
59999
60000         * m4/prereq.m4 (jm_PREREQ_READUTMP): Check for utmpxname.
60001
60002 2000-02-03  Jim Meyering  <meyering@lucent.com>
60003
60004         * lib/readutmp.c (read_utmp): Guard with `#ifdef UTMP_NAME_FUNCTION',
60005         rather than with `#if HAVE_UTMPNAME'.
60006
60007 2000-02-02  Jim Meyering  <meyering@lucent.com>
60008
60009         * m4/prereq.m4 (jm_PREREQ_ADDEXT): Fix typo that resulted in no
60010         definition of HAVE_PATHCONF: s/AC_CHECK_FUNC/AC_CHECK_FUNCS/.
60011         Reported by Eli Zaretskii.
60012
60013 2000-02-01  Jim Meyering  <meyering@lucent.com>
60014
60015         * lib/readutmp.h (UT_USER): Add parens.  From Andreas Schwab.
60016
60017 2000-01-31  Jim Meyering  <meyering@lucent.com>
60018
60019         * m4/check-decl.m4 (jm_CHECK_DECLS): Add nanosleep to the list of
60020         functions.  Add the time.h and sys/time.h headers along with the
60021         AC_REQUIRE'ment of AC_HEADER_TIME.
60022
60023 2000-01-31  Jim Meyering  <meyering@lucent.com>
60024
60025         * lib/nanosleep.h (nanosleep): Guard declaration with
60026         `#if ! HAVE_DECL_NANOSLEEP'.
60027         Without this, OFS gets a redeclaration error for rpl_nanosleep, due to
60028         the declaration in that vendor's sys/timers.h.
60029         Reported by Christian Krackowizer.
60030
60031         * lib/quotearg.c (ISASCII): Add #undef and move definition to follow
60032         inclusion of wctype.h to work around Solaris 2.6 namespace pollution.
60033         (ISPRINT): Likewise.
60034         Reported by Tom Tromey.
60035
60036 2000-01-30  Jim Meyering  <meyering@lucent.com>
60037
60038         * m4/lib-check.m4: Clean up some kludgy old shadow password tests.
60039
60040         * m4/prereq.m4 (utmp_includes): Define.
60041         Check for ut_user and ut_name members in both struct utmpx
60042         and struct utmp.
60043
60044 2000-01-30  Jim Meyering  <meyering@lucent.com>
60045
60046         * lib/readutmp.c (extract_trimmed_name): Use UT_USER instead of
60047         hard-coding uses of ->ut_name.  The latter doesn't work with new Linux
60048         header files where only utmpx.ut_user is declared.
60049
60050         * lib/readutmp.h (UT_USER): Define.
60051
60052 2000-01-29  Jim Meyering  <meyering@lucent.com>
60053
60054         * m4/lib-check.m4: New file containing library-related checks from
60055         fileutils and sh-utils (textutils had none).
60056
60057 2000-01-28  Jim Meyering  <meyering@lucent.com>
60058
60059         * m4/perl.m4: Change format of warning message to look more like that
60060         from the missing script.  Suggestion from François Pinard.
60061
60062 2000-01-25  Jim Meyering  <meyering@lucent.com>
60063
60064         * m4/timespec.m4: Require AC_HEADER_TIME, and include sys/time.h as
60065         well as time.h in the compile check.
60066         * m4/nanosleep.m4: Require AC_HEADER_TIME rather than simply using it.
60067         Fix typo in cross-compiling case: s/yes/no/.
60068
60069 2000-01-23  Jim Meyering  <meyering@lucent.com>
60070
60071         * m4/jm-macros.m4: Move df-related tests here from
60072         fileutils/configure.in
60073
60074         * m4/ls-mntd-fs.m4: s/list_mounted_fs/ac_list_mounted_fs/
60075         (jm_LIST_MOUNTED_FILESYSTEMS): Take two parameters.
60076
60077         * m4/fsusage.m4: New file.  Extracted from fileutils/configure.in.
60078         s/space/ac_fsusage_space/.
60079         (jm_FILE_SYSTEM_USAGE): Take two parameters.
60080
60081         * m4/ftruncate.m4: New file (derived from part of
60082         fileutils/configure.in).
60083         * m4/jm-macros.m4 (jm_FUNC_FTRUNCATE): AC_REQUIRE it.
60084         (jm_CHECK_ALL_TYPES): Require AC_HEADER_MAJOR and AC_HEADER_DIRENT.
60085
60086         * m4/jm-macros.m4 (OPTIONAL_BIN_PROGS, OPTIONAL_BIN_ZCRIPTS, MAN):
60087         AC_SUBST these here, rather than just in sh-util/configure.in, so
60088         that the now-shared-by-fileutils-and-textutils lib/Makefile.am are
60089         all the same.
60090         (AM_FUNC_OBSTACK): Add (from fileutils/configure.in).
60091         (AC_CHECK_FUNCS): Merge all checks from fileutils, textutils, sh-utils.
60092         (AM_FUNC_STRTOD): Added (from textutils', sh-utils' configure.in).
60093         (AC_SUBST(POW_LIBM)): Likewise.
60094         (AC_SUBST(DF_PROG)): Moved from fileutils/configure.in.
60095
60096 2000-01-23  Jim Meyering  <meyering@lucent.com>
60097
60098         * lib/Makefile.am (libfetish_a_SOURCES): Remove explicit mention of
60099         obstack.c.
60100
60101 2000-01-22  Jim Meyering  <meyering@lucent.com>
60102
60103         * m4/jm-macros.m4: Call AC_PROG_CC_STDC just before AC_C_CONST.
60104
60105         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): Add wctype.h.
60106
60107         * m4/jm-macros.m4 (AC_CHECK_HEADERS): Add checks from fileutils'
60108         configure.in
60109         (AC_CHECK_HEADERS): Likewise for sh-utils.
60110         (AC_CHECK_HEADERS): Likewise for textutils.
60111         Merge the three lists of headers.
60112
60113         * m4/prereq.m4 (jm_PREREQ_ADDEXT): New macro.  Parts moved here
60114         from fileutils' configure.in.
60115
60116         * m4/decl.m4: Remove kludgy `test -z $ac_...AC_CHECK_HEADERS(...)'
60117         code. Moved tests into their own function (_jm_DECL_HEADERS) in
60118         check-decl.m4.
60119
60120         * m4/check-decl.m4: Use #if rather than #ifdef.
60121         Add HAVE_DECL_STRTOUL and HAVE_DECL_STRTOULL.
60122         (jm_CHECK_DECLARATIONS): Add strtoul strtoull.
60123         (_jm_DECL_HEADERS): Define new function.
60124         (jm_CHECK_DECLARATIONS): Require it.
60125
60126 2000-01-22  Jim Meyering  <meyering@lucent.com>
60127
60128         * lib/strtoumax.c: [! HAVE_DECL_STRTOUL]: Declare strtoul.
60129         [! HAVE_DECL_STRTOULL]: Declare strtoull.
60130         Required for some AIX systems.  Reported by Christian Krackowizer.
60131         [TESTING] (main): New function.
60132
60133         1997-10-17  Eli Zaretskii  <eliz@is.elta.co.il>
60134         * lib/dirname.c (dir_name): Support for DOS-style file names with drive
60135         letters.
60136
60137         * lib/quotearg.c [HAVE_WCTYPE_H]: Include <wctype.h> for decl of
60138         iswprint.
60139
60140         * lib/strverscmp.c (ISDIGIT): Define.
60141         (strverscmp): Use ISDIGIT, not isdigit.
60142
60143 2000-01-19  Jim Meyering  <meyering@lucent.com>
60144
60145         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): Include <sys/time.h>, too.
60146         Use AC_HEADER_TIME.  Volker Borchert reported that OpenBSD-2.3/sparc
60147         defines `struct timespec' in <sys/time.h>
60148
60149         * m4/c-bs-a.m4: Remove uses of changequote altogether.
60150         Thanks to Akim for explaining.
60151
60152 2000-01-17  Paul Eggert  <eggert@twinsun.com>
60153
60154         * lib/nanosleep.c (nanosleep):
60155         Don't use SA_INTERRUPT to decide whether to call sigaction, as
60156         POSIX.1 doesn't require SA_INTERRUPT and some systems
60157         (e.g. Solaris 7) don't define it.  Use SA_NOCLDSTOP instead;
60158         it's been part of POSIX.1 since day 1 (in 1988).
60159
60160 2000-01-17  Jim Meyering  <meyering@lucent.com>
60161
60162         * lib/interlock: Remove unused file.  Reported by François Pinard.
60163
60164 2000-01-16  Paul Eggert  <eggert@twinsun.com>
60165
60166         * lib/quotearg.c (quotearg_buffer_restyled): Do not quote
60167         alert, backslash, formfeed, and vertical tab unnecessarily in
60168         shell quoting style.
60169
60170 2000-01-16  Jim Meyering  <meyering@lucent.com>
60171
60172         * m4/jm-macros.m4: Require jm_FUNC_GROUP_MEMBER, jm_FUNC_PUTENV,
60173         AM_FUNC_ERROR_AT_LINE, jm_FUNC_GNU_STRFTIME, jm_FUNC_MKTIME,
60174         jm_FUNC_GETGROUPS AC_FUNC_VPRINTF, AC_FUNC_ALLOCA,
60175         AM_FUNC_GETLOADAVG, and jm_SYS_PROC_UPTIME.
60176
60177 2000-01-16  Jim Meyering  <meyering@lucent.com>
60178
60179         * m4/c-bs-a.m4: Use `changequote(<<,>>)', rather than `changequote(, )'
60180         because the latter didn't work.
60181
60182 2000-01-15  Jim Meyering  <meyering@lucent.com>
60183
60184         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add gethostname and getusershell.
60185         (AC_REPLACE_FUNCS): Add memcpy and memset.
60186         Add these, too: stime strcspn stpcpy strstr strtol strtoul.
60187         Add strpbrk.
60188         Add these: euidaccess memcmp mkdir rmdir rpmatch strndup strverscmp.
60189
60190 2000-01-12  Jim Meyering  <meyering@lucent.com>
60191
60192         * m4/prereq.m4 (jm_PREREQ_CANON_HOST): New macro.
60193         (jm_PREREQ): Use it.
60194         (jm_PREREQ_READUTMP): New macro.
60195         (jm_PREREQ): Use it.
60196
60197 2000-01-11  Paul Eggert  <eggert@twinsun.com>
60198
60199         Quote multibyte characters correctly.
60200         * m4/c-bs-a.m4: New file.
60201         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): New macro.
60202         (jm_PREREQ): Use it.
60203
60204 2000-01-11  Paul Eggert  <eggert@twinsun.com>
60205
60206         * m4/uintmax_t.m4: Port to autoconf 2.13.
60207
60208 2000-01-08  Jim Meyering  <meyering@ascend.com>
60209
60210         * m4/strerror_r.m4 (jm_FUNC_STRERROR_R): New file/macro.
60211         * m4/jm-macros.m4 (jm_FUNC_STRERROR_R): Require it.
60212
60213 2000-01-04  Jim Meyering  <meyering@ascend.com>
60214
60215         * m4/d-type.m4 (jm_CHECK_TYPE_STRUCT_DIRENT_D_TYPE): Rename from
60216         jm_STRUCT_DIRENT_D_TYPE.
60217         * m4/d-ino.m4 (jm_CHECK_TYPE_STRUCT_DIRENT_D_INO): Rename from
60218         jm_STRUCT_DIRENT_D_INO.
60219         * m4/utimbuf.m4 (jm_CHECK_TYPE_STRUCT_UTIMBUF): Rename from
60220         jm_STRUCT_UTIMBUF.
60221         * m4/jm-macros.m4: Reflect s/jm_STRUCT_/jm_CHECK_TYPE_STRUCT_/
60222         renamings.
60223         * m4/utime.m4: Likewise.
60224
60225         * m4/timespec.m4 (jm_CHECK_TYPE_STRUCT_TIMESPEC): New file, macro.
60226         * m4/jm-macros.m4 (jm_CHECK_TYPE_STRUCT_TIMESPEC): Require it.
60227
60228 2000-01-03  Paul Eggert  <eggert@twinsun.com>
60229
60230         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): Search for nanosleep in -lrt
60231         (for Solaris 7) and in -lposix4 (for Solaris 2.5.1).
60232
60233 2000-01-02  Jim Meyering  <meyering@ascend.com>
60234
60235         * m4/search-libs.m4: Escape `$' in $3 of dnl comment.  I no longer
60236         remember if this is necessary.
60237
60238 1999-12-26  Jim Meyering  <meyering@ascend.com>
60239
60240         * m4/jm-macros.m4: Use it here.
60241         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): New file/macro.
60242
60243 1999-12-23  Jim Meyering  <meyering@ascend.com>
60244
60245         * m4/jm-macros.m4: Check for clock_gettime (moved from
60246         fileutils/configure.in)
60247         Check for gettimeofday.
60248
60249 1999-12-20  Jim Meyering  <meyering@ascend.com>
60250
60251         * m4/strftime.m4: Remove kludge, now that I'm using the fixed
60252         autoconf-2.14a-1999-12-20.
60253
60254 1999-12-19  Jim Meyering  <meyering@ascend.com>
60255
60256         * m4/lstat-slash.m4: New file.
60257         * m4/jm-macros.m4: Use the new macro:
60258         jm_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
60259
60260 1999-12-07  Jim Meyering  <meyering@ascend.com>
60261
60262         * m4/perl.m4: Require that File::Compare be available, too.
60263         Too many systems seem to lack it.
60264
60265         * m4/strftime.m4: Add checks for most of the cpp macros tested in
60266         GNU's strftime.c.  Prompted by a patch from Paul Eggert.
60267
60268 1999-11-18  Paul Eggert  <eggert@twinsun.com>
60269
60270         * m4/largefile.m4 (AC_SYS_LARGEFILE_FLAGS): Work around a
60271         problem with the QNX 4.25 shell, which doesn't propagate exit
60272         status of failed commands inside shell assignments.
60273
60274 1999-11-17  Jim Meyering  <meyering@ascend.com>
60275
60276         * m4/gettext.m4: Use new AC_CONFIG_LINKS in place of AC_LINK_FILES.
60277
60278 1999-11-07  Jim Meyering  <meyering@ascend.com>
60279
60280         * m4/getloadavg.m4: Add `, 1, [FIXME]' to each use of AC_DEFINE.
60281
60282 1999-11-06  Jim Meyering  <meyering@ascend.com>
60283
60284         * m4/link-follow.m4 (jm_AC_FUNC_LINK_FOLLOWS_SYMLINK): New file/macro.
60285         * m4/jm-macros.m4 (jm_MACROS): Use it here.
60286
60287 1999-11-05  Jim Meyering  <meyering@ascend.com>
60288
60289         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Move some tests from
60290         configure.in of textutils, fileutils, and sh-utils into this one
60291         (shared between those packages) file.
60292         Use `AC_CHECK_MEMBERS((struct stat.st_blksize))' instead of deprecated
60293         AC_STRUCT_ST_BLKSIZE.
60294
60295 1999-11-03  Jim Meyering  <meyering@ascend.com>
60296
60297         * m4/ssize_t.m4: Remove file.  No longer needed since the new version
60298         of AC_CHECK_TYPE checks includes unistd.h.
60299         * m4/jm-macros.m4: Use straight `AC_CHECK_TYPE(ssize_t, int)'.
60300         Suggestion from Akim Demaille.
60301
60302 1999-10-30  Jim Meyering  <meyering@ascend.com>
60303
60304         * m4/uintmax_t.m4: Require 2.14a.  Remove backslash before backtick in
60305         m4-quoted string.
60306         * m4/ls-mntd-fs.m4: Likewise.
60307         * m4/jm-macros.m4: Likewise.  Also, use AC_TYPE_SSIZE_T instead
60308         * m4/jm-winsz1.m4: Likewise.
60309
60310         * m4/const.m4: Remove file, since the fix made it into the experimental
60311         version of autoconf.
60312         * m4/mktime.m4: Likewise.
60313
60314         * m4/check-type.m4: Remove file, now that the latest version of
60315         AC_CHECK_TYPE takes a third arg to specify additional #includes.
60316
60317         * m4/ssize_t.m4: New file, requires experimental version of autoconf.
60318         * m4/jm-macros.m4: Use new AC_TYPE_SSIZE_T instead of my hacked
60319         AC_CHECK_TYPE.
60320
60321 1999-10-04  Jim Meyering  <meyering@ascend.com>
60322
60323         * m4/jm-macros.m4: Don't require autoconf-2.14.1.
60324
60325 1999-09-22  Paul Eggert  <eggert@twinsun.com>
60326
60327         * m4/largefile.m4 (AC_SYS_LARGEFILE_FLAGS): Work around GCC
60328         2.95.1 bug with HP-UX 10.20.
60329
60330 1999-09-17  Jim Meyering  <meyering@ascend.com>
60331
60332         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add strdup.
60333         Paul Nevai reported a link failure on a NeXT CUBE with NeXTSTEP 3.3
60334         due to missing strdup (against sh-utils-2.0).
60335
60336 1999-08-29  Jim Meyering  <meyering@ascend.com>
60337
60338         * m4/jm-macros.m4: Require jm_BISON.
60339         * m4/bison.m4: New file.
60340
60341 1999-08-17  Paul Eggert  <eggert@twinsun.com>
60342
60343         * m4/largefile.m4 (AC_SYS_LARGEFILE): Fix typo: missing comma
60344         in value for _FILE_OFFSET_BITS, which broke ports to HP-UX 10.20.
60345
60346 1999-08-05  Jim Meyering  <meyering@ascend.com>
60347
60348         * m4/getline.m4: Rename test file from conftestdata to conftest.data
60349         to avoid conflicts with `conftest' on 8+3 filesystems.
60350         Suggestion from Eli Zaretskii.
60351
60352 1999-08-04  Jim Meyering  <meyering@ascend.com>
60353
60354         * m4/jm-macros.m4: Move a 4-line block of code from the configure.in of
60355         fileutils and sh-utils (textutils's getline test was inadequate).
60356         (AM_FUNC_GETLINE): Run this test.
60357         (AC_CHECK_FUNCS): Check for getdelim.
60358         Reported by Bob Proulx.
60359
60360 1999-08-02  Jim Meyering  <meyering@ascend.com>
60361
60362         * m4/jm-macros.m4: Add a comment.
60363
60364 1999-08-01  Paul Eggert  <eggert@twinsun.com>
60365
60366         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): Check whether
60367         <inttypes.h> defines strtoumax as a macro (and not as a
60368         function).
60369
60370 1999-08-01  Paul Eggert  <eggert@twinsun.com>
60371
60372         * m4/ulonglong.m4 (jm_AC_TYPE_UNSIGNED_LONG_LONG): Make sure
60373         that we can shift, multiply and divide unsigned long long
60374         values; Ultrix cc can't do it.
60375
60376 1999-08-01  Paul Eggert  <eggert@twinsun.com>
60377
60378         * m4/mktime.m4: New file, which is a preview of what should appear
60379         in the next public autoconf release.
60380
60381 1999-08-01  Paul Eggert  <eggert@twinsun.com>
60382
60383         * m4/lfs.m4: Remove this file.
60384         * m4/largefile.m4: New file.  It contains the old contents of
60385         lfs.m4, except that all names with prefix AC_LFS have been
60386         changed to use the prefix AC_SYS_LARGEFILE instead, to be
60387         compatible with future autoconf versions.  Also, some minor m4
60388         quoting problems have been fixed.
60389
60390 1999-08-01  Paul Eggert  <eggert@twinsun.com>
60391
60392         * m4/gettext.m4 (AM_WITH_NLS): Remove unnecessary lines.
60393         Fix typo: $nls_cv_header_intl was misspelled as $nsl_cv_header_intl.
60394         (AM_GNU_GETTEXT): Fix problem with brackets and m4 quoting,
60395         and simplify the shell code.
60396
60397 1999-08-01  Jim Meyering  <meyering@ascend.com>
60398
60399         * m4/mktime.m4 (AC_FUNC_MKTIME): Undefine to avoid syntax errors from
60400         m4.
60401
60402 1999-07-20  Jim Meyering  <meyering@ascend.com>
60403
60404         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add memmove.
60405
60406 1999-07-15  Jim Meyering  <meyering@ascend.com>
60407
60408         * m4/jm-macros.m4 (AC_CHECK_FUNCS): Check for getpagesize.
60409
60410 1999-05-22  Jim Meyering  <meyering@ascend.com>
60411
60412         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add memchr.
60413
60414 1999-05-20  Jim Meyering  <meyering@ascend.com>
60415
60416         * m4/search-libs.m4 [AC_SEARCH_LIBS]: Quote name in undefine.
60417         Add a colon after each `then' in case $4 is empty.
60418
60419 1999-05-16  Jim Meyering  <meyering@ascend.com>
60420
60421         * m4/search-libs.m4: New file to override autoconf's AC_SEARCH_LIBS.
60422
60423 1999-05-10  Jim Meyering  <meyering@ascend.com>
60424
60425         * m4/jm-mktime.m4: Reflect renaming: AM_FUNC_MKTIME -> AC_FUNC_MKTIME.
60426
60427         * m4/jm-macros.m4: Require 2.14.1, since we use newly-renamed
60428         AC_FUNC_MKTIME.
60429
60430 1999-05-10  Andreas Schwab  <schwab@issan.cs.uni-dortmund.de>
60431
60432         * m4/jm-mktime.m4, putenv.m4: Fix typos in config.h comments.
60433
60434 1999-05-04  Paul Eggert  <eggert@twinsun.com>
60435
60436         * m4/lfs.m4 (AC_LFS): -n32, -o32, and -n64 should be in CFLAGS,
60437         not CPPFLAGS, so that linking works correctly in IRIX.
60438
60439 1999-04-30  Paul Eggert  <eggert@twinsun.com>
60440
60441         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add dup2.
60442
60443 1999-04-20  Paul Eggert  <eggert@twinsun.com>
60444
60445         * m4/uintmax_t.m4 (jm_AC_TYPE_UINTMAX_T): Move unsigned long
60446         long check into new jm_AC_TYPE_UNSIGNED_LONG_LONG macro.
60447         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Require
60448         jm_AC_TYPE_UNSIGNED_LONG_LONG.
60449         * m4/ulonglong.m4 (jm_AC_TYPE_UNSIGNED_LONG_LONG): New file/macro.
60450
60451         * m4/lfs.m4: Port to AIX and HP-UX.  Support cross-compilation.
60452
60453 1999-04-20  Jim Meyering  <meyering@ascend.com>
60454
60455         * m4/xstrtoumax.m4: Require jm_AC_TYPE_UNSIGNED_LONG_LONG.
60456         AC_REPLACE xstroull if necessary.  From Paul Eggert.
60457         (AC_CHECK_FUNCS): Remove strtoull, strtoumax, strtouq.
60458
60459 1999-04-18  Jim Meyering  <meyering@ascend.com>
60460
60461         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): New file/macro.
60462         * m4/jm-macros.m4: Use it.
60463
60464 1999-04-06  Jim Meyering  <meyering@ascend.com>
60465
60466         * m4/strftime.m4: Remove test for %f.
60467
60468 1999-03-29  Jim Meyering  <meyering@ascend.com>
60469
60470         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): New macro, contains the
60471         superset of the AC_TYPE_* checks in the textutils, fileutils,
60472         and sh-utils, plus AC_TYPE_PID_T.  Paul Eggert suggested adding
60473         AC_TYPE_PID_T.
60474
60475 1999-03-28  Jim Meyering  <meyering@ascend.com>
60476
60477         * m4/jm-macros.m4: Define GNU_PACKAGE here.
60478         Be sure to AC_SUBST it, once again, so that @GNU_PACKAGE@ is
60479         replaced e.g., in the *.sh files of the sh-utils.
60480
60481 1999-03-20  Jim Meyering  <meyering@ascend.com>
60482
60483         * m4/jm-macros.m4: s/jm_WITH_REGEX/jm_INCLUDED_REGEX/.
60484         * m4/regex.m4 (jm_INCLUDED_REGEX): Rename from jm_WITH_REGEX.
60485         Don't depend on AM_GLIBC.  Suggestions from Alain Magloire.
60486
60487 1999-03-19  Jim Meyering  <meyering@ascend.com>
60488
60489         * m4/jm-winsz1.m4 (jm_WINSIZE_IN_PTEM): New macro.
60490
60491 1999-03-12  Jim Meyering  <meyering@ascend.com>
60492
60493         * m4/jm-macros.m4: Use AC_FUNC_SETVBUF_REVERSED.
60494
60495 1999-03-07  Jim Meyering  <meyering@ascend.com>
60496
60497         * m4/jm-glibc-io.m4: Use only those *_unlocked macros that are
60498         declared.
60499
60500 1999-02-17  Jim Meyering  <meyering@ascend.com>
60501
60502         * m4/gettext.m4 (AM_GNU_GETTEXT): Do `changequote' around use of
60503         brackets in macro definition.  From Eli Zaretskii and Alain Magloire.
60504
60505 1999-02-07  Jim Meyering  <meyering@ascend.com>
60506
60507         * m4/group-member.m4: New file -- extracted from sh-utils'
60508         configure.in.
60509
60510         1999-02-05  Eli Zaretskii  <eliz@is.elta.co.il>
60511         * m4/gettext.m4: Support DOS-style d:/foo/bar absolute file names.
60512
60513 1999-02-06  Jim Meyering  <meyering@ascend.com>
60514
60515         * m4/chown.m4: Use `AC_SUBST(LIBOBJS)' since we set LIBOBJS.
60516         * m4/fnmatch.m4: Likewise.
60517         * m4/getgroups.m4: Likewise.
60518         * m4/lstat.m4: Likewise.
60519         * m4/malloc.m4: Likewise.
60520         * m4/putenv.m4: Likewise.
60521         * m4/realloc.m4: Likewise.
60522         * m4/regex.m4: Likewise.
60523         * m4/stat.m4: Likewise.
60524         * m4/strftime.m4: Likewise.
60525         Suggestion from Alain Magloire.
60526
60527         * m4/chown.m4: Use `.$ac_objext', not `.o'.
60528         * m4/fnmatch.m4: Likewise.
60529         * m4/getgroups.m4: Likewise.
60530         * m4/getline.m4: Likewise.
60531         * m4/lstat.m4: Likewise.
60532         * m4/malloc.m4: Likewise.
60533         * m4/memcmp.m4: Likewise.
60534         * m4/putenv.m4: Likewise.
60535         * m4/realloc.m4: Likewise.
60536         * m4/regex.m4: Likewise.
60537         * m4/stat.m4: Likewise.
60538         * m4/strftime.m4: Likewise.
60539         Suggestion from Alain Magloire.
60540
60541         * m4/jm-macros.m4: Actually invoke jm_WITH_REGEX now that it requires
60542         an argument.
60543
60544         * m4/regex.m4: Add a run-time Test for proper operation of
60545         re_compile_pattern.
60546
60547 1999-01-31  Jim Meyering  <meyering@ascend.com>
60548
60549         * m4/getloadavg.m4: Check for locale.h and the function, setlocale.
60550
60551 1999-01-30  Jim Meyering  <meyering@ascend.com>
60552
60553         * m4/check-type.m4: Use 3-arg form of AC_DEFINE.
60554
60555         * m4/jm-mktime.m4: Make this a wrapper around the official
60556         AM_FUNC_MKTIME rather than my private copy, now that the official one
60557         is up to date.
60558         * m4/mktime.m4: Remove file.
60559
60560         * m4/getloadavg.m4: Use 3-arg form of AC_DEFINE.
60561         * m4/uptime.m4: Likewise.
60562         * m4/uintmax_t.m4: Likewise.
60563
60564 1999-01-28  Jim Meyering  <meyering@ascend.com>
60565
60566         * m4/jm-macros.m4: Use jm_AFS.
60567         * m4/afs.m4: New file (from fileutils' configure.in).
60568
60569         * m4/assert.m4: Use the 3-argument forms of AC_DEFINE* macros.
60570         * m4/chown.m4: Likewise.
60571         * m4/d-ino.m4: Likewise.
60572         * m4/d-type.m4: Likewise.
60573         * m4/fnmatch.m4: Likewise.
60574         * m4/getgroups.m4: Likewise.
60575         * m4/gettext.m4: Likewise.
60576         * m4/jm-mktime.m4: Likewise.
60577         * m4/jm-winsz2.m4: Likewise.
60578         * m4/lcmessage.m4: Likewise.
60579         * m4/ls-mntd-fs.m4: Likewise.
60580         * m4/malloc.m4: Likewise.
60581         * m4/memcmp.m4: Likewise.
60582         * m4/putenv.m4: Likewise.
60583         * m4/realloc.m4: Likewise.
60584         * m4/st_mtim.m4: Likewise.
60585         * m4/strftime.m4: Likewise.
60586
60587 1999-01-16  Jim Meyering  <meyering@ascend.com>
60588
60589         * m4/jm-macros.m4 (ARGMATCH_DIE): Define.
60590         (ARGMATCH_DIE_DECL): Define.
60591
60592 1999-01-12  Jim Meyering  <meyering@ascend.com>
60593
60594         * m4/Makefile.am.in: Rewrite to avoid using fmt.
60595         Reported by Lars Hecking.
60596
60597 1999-01-10  Jim Meyering  <meyering@ascend.com>
60598
60599         * m4/fstypename.m4: Use the new 3-arg form of AC_DEFINE instead of my
60600         gross kludge.
60601         * m4/inttypes_h.m4: Likewise.
60602         * m4/lstat.m4: Likewise.
60603         * m4/malloc.m4: Likewise.
60604         * m4/readdir.m4: Likewise.
60605         * m4/realloc.m4: Likewise.
60606         * m4/st_dm_mode.m4: Likewise.
60607         * m4/stat.m4: Likewise.
60608         * m4/utimbuf.m4: Likewise.
60609         * m4/utimes.m4: Likewise.
60610
60611         * m4/check-decl.m4: Use the new 3-arg form of AC_DEFINE instead of the
60612         AC_CHECK_FUNCS hack.  Now, it's still a hack, but at least the
60613         comments in config.h.in are meaningful.
60614
60615         * m4/jm-macros.m4: Require autoconf-2.13 here.
60616
60617         * m4/regex.m4: By default, don't use the included regex.c on systems
60618         with glibc 2.  Suggestion from Uli Drepper.
60619
60620 1999-01-02  Jim Meyering  <meyering@ascend.com>
60621
60622         * m4/jm-macros.m4: Replace strcasecmp and strncasecmp.
60623
60624 1998-12-18  Jim Meyering  <meyering@ascend.com>
60625
60626         * m4/Makefile.am.in (Makefile.am): Simplify rule.
60627         Based on a suggestion from Lars Hecking.
60628
60629 1998-11-16  Paul Eggert  <eggert@twinsun.com>
60630
60631         * m4/lfs.m4 (AC_LFS): Add support for HP-UX 10.20 and HP-UX 11.
60632
60633 1998-11-16  Jim Meyering  <meyering@ascend.com>
60634
60635         * m4/lfs.m4: Double-quote the `uname...` expression.
60636
60637 1998-11-14  Jim Meyering  <meyering@ascend.com>
60638
60639         * m4/lstat.m4: Correct comment.  POSIX does not permit it to succeed.
60640         * m4/stat.m4: Likewise.
60641
60642 1998-11-03  Jim Meyering  <meyering@ascend.com>
60643
60644         * m4/stat.m4: Rewrite to set HAVE_STAT_EMPTY_STRING_BUG.
60645         * m4/lstat.m4: Rewrite to set HAVE_LSTAT_EMPTY_STRING_BUG.
60646
60647 1998-10-18  Jim Meyering  <meyering@ascend.com>
60648
60649         * m4/check-decl.m4 (jm_CHECK_DECL_LOCALTIME_R): Remove macro.
60650
60651 1998-10-17  Jim Meyering  <meyering@ascend.com>
60652
60653         * m4/decl.m4 (jm_CHECK_DECLARATION): Don't hard-code which headers to
60654         include, though we still hard-code the `require'-like AC_CHECK_HEADERS
60655         calls for those previously hard-coded headers.  Instead, take a new
60656         parameter.
60657         (jm_CHECK_DECLARATIONS): Reflect interface change.
60658         * m4/check-decl.m4 (jm_CHECK_DECLS): Likewise.
60659         (jm_CHECK_DECL_LOCALTIME_R): New macro.
60660
60661         * m4/mktime.m4: Test for spring-forward gap before long-running test.
60662
60663 1998-10-14  Jim Meyering  <meyering@ascend.com>
60664
60665         * m4/mktime.m4: Use the more portable "TZ=PST8PDT,M4.1.0,M10.5.0"
60666         instead of "TZ=America/Vancouver".  From Paul Eggert.
60667
60668 1998-10-11  Jim Meyering  <meyering@ascend.com>
60669
60670         * m4/mktime.m4 (jm_AM_FUNC_MKTIME): New file and macro.
60671         This adds a test for a recently added compatibility fix for mktime.c.
60672         * m4/jm-mktime.m4: Require jm_AM_FUNC_MKTIME, not AM_FUNC_MKTIME.
60673
60674 1998-09-27  Jim Meyering  <meyering@ascend.com>
60675
60676         * m4/jm-macros.m4 (jm_MACROS): Require jm_FUNC_FNMATCH.
60677
60678         * m4/fnmatch.m4 (jm_FUNC_FNMATCH): New file/macro.  Extracted from
60679         ../configure.in, including a change from Gordon Matzigkeit to allow
60680         cross-compiling for the Hurd.
60681
60682         * m4/glibc.m4: New file/macro to test for the GNU C Library
60683         versions 1 and 2.  From Gordon Matzigkeit.
60684         Indent.
60685
60686 1998-09-21  Jim Meyering  <meyering@ascend.com>
60687
60688         * m4/chown.m4: Declare locals: before, after.  From Andries Brouwer.
60689
60690 1998-08-18  Paul Eggert  <eggert@twinsun.com>
60691
60692         Port nanosecond-resolution times to UnixWare 2.1.2 and
60693         pedantic Solaris 2.6.
60694
60695         * m4/st_mtim.m4 (AC_STRUCT_ST_MTIM_NSEC): Renamed from
60696         AC_STRUCT_ST_MTIM.
60697         * m4/st_mtim.m4 (AC_STRUCT_ST_MTIM_NSEC):
60698         Generate name of ns member, instead of just 1 or undef.
60699         Allow for UnixWare 2.1.2 and Solaris 2.6 if in pedantic mode.
60700
60701 1998-08-15  Jim Meyering  <meyering@ascend.com>
60702
60703         * m4/ssize_t.m4 (jm_TYPE_SSIZE_T): Remove file.
60704         * m4/check-type.m4: New file.  Replacement for AC_CHECK_TYPE.
60705         * m4/jm-macros.m4: Use the new AC_CHECK_TYPE(ssize_t, int)
60706         instead of jm_TYPE_SSIZE_T.
60707
60708 1998-08-12  Jim Meyering  <meyering@ascend.com>
60709
60710         * m4/st_dm_mode.m4: New file.  From Johan Danielsson.
60711
60712 1998-08-02  Jim Meyering  <meyering@ascend.com>
60713
60714         * m4/st_mtim.m4: Use hack to avoid having to put #undef HAVE_ST_MTIM
60715         in acconfig.h manually.
60716
60717 1998-07-31  Paul Eggert  <eggert@twinsun.com>
60718
60719         * m4/st_mtim.m4: New file.
60720
60721 1998-07-28  Jim Meyering  <meyering@ascend.com>
60722
60723         * m4/utimes.m4: Undef stat.
60724
60725 1998-07-25  Jim Meyering  <meyering@ascend.com>
60726
60727         * m4/utime.m4 (jm_FUNC_UTIME): New file and macro.
60728         * m4/utimes.m4 (jm_FUNC_UTIMES_NULL): New file and macro.
60729
60730 1998-07-09  Manfred Hollstein  <manfred@s-direktnet.de>
60731
60732         * m4/chown.m4 (jm_FUNC_CHOWN): Add a check to verify that the
60733         uid and gid actually remain unchanged.
60734
60735 1998-07-07  Jim Meyering  <meyering@ascend.com>
60736
60737         * m4/jm-glibc-io.m4: Remove fclose_unlocked.
60738
60739 1998-07-04  Jim Meyering  <meyering@ascend.com>
60740
60741         * m4/regex.m4: Use syscmd, ifelse, and sysval.  Mainly as an exercise
60742         to prove that this macro can be used in packages without regex.c.
60743
60744 1998-07-04  Andreas Schwab  <schwab@issan.informatik.uni-dortmund.de>
60745
60746         * m4/gettext.m4 (AM_WITH_NLS): Remove intl/libintl.h if <libintl.h>
60747         is to be used.
60748
60749 1998-07-03  Jim Meyering  <meyering@ascend.com>
60750
60751         * m4/gettext.m4: Add -lintl if it's found to be necessary.
60752
60753         * m4/gettext.m4: New file -- from gettext-0.10.35.
60754         * m4/lcmessage.m4: Likewise.
60755         * m4/progtest.m4: Likewise.
60756
60757         * m4/regex.m4 (jm_WITH_REGEX): New file and macro.
60758         * m4/jm-macros.m4: Require the new macro.
60759
60760 1998-06-29  Jim Meyering  <meyering@ascend.com>
60761
60762         * m4/fstypename.m4: Include sys/param.h.  NetBSD 1.3.1 requires this
60763         for the definition of NGROUPS (used in a system header included
60764         by sys/mount.h).
60765
60766 1998-06-28  Jim Meyering  <meyering@ascend.com>
60767
60768         * m4/ls-mntd-fs.m4: New file.
60769         * m4/fstypename.m4: New file.
60770
60771         * m4/jm-macros.m4: Require the new macro.
60772         * m4/jm-glibc-io.m4: New file.
60773
60774 1998-05-19  Jim Meyering  <meyering@ascend.com>
60775
60776         * m4/jm-macros.m4: Add jm_FUNC_LCHOWN.
60777         * m4/lchown.m4: New file.
60778
60779         * m4/Makefile.am.in: New file.
60780         * m4/Makefile.am (Makefile.am): Depend on Makefile.am.in.
60781
60782 1998-05-14  Jim Meyering  <meyering@ascend.com>
60783
60784         * m4/Makefile.am (EXTRA_DIST): Add them.
60785         * m4/jm-macros.m4: New file.
60786         * m4/utimbuf.m4: New file.
60787
60788 1998-05-12  Jim Meyering  <meyering@ascend.com>
60789
60790         * m4/Makefile.am (EXTRA_DIST): Add isc-posix.m4.
60791
60792 1998-05-11  Jim Meyering  <meyering@ascend.com>
60793
60794         * m4/isc-posix.m4: New file.
60795
60796 1998-05-10  Jim Meyering  <meyering@ascend.com>
60797
60798         * m4/jm-mktime.m4: Use AM_FUNC_MKTIME, now that it's up to date.
60799
60800 1998-05-09  Jim Meyering  <meyering@ascend.com>
60801
60802         * m4/Makefile.am (EXTRA_DIST): Add ssize_t.m4.
60803         (EXTRA_DIST): Remove mktime.m4, now that the new version is included
60804         with automake.
60805
60806         * m4/ssize_t.m4: New file.
60807         * m4/mktime.m4: Remove file -- the new automake has this now.
60808
60809 1998-04-26  Jim Meyering  <meyering@ascend.com>
60810
60811         * m4/assert.m4: New file.
60812         * m4/Makefile.am (EXTRA_DIST): Add assert.m4.
60813
60814 1998-04-05  Jim Meyering  <meyering@ascend.com>
60815
60816         * m4/prereq.m4 (jm_PREREQ_REGEX): New macro.
60817         (jm_PREREQ): Use it here.
60818
60819 1998-03-23  Jim Meyering  <meyering@eng.ascend.com>
60820
60821         * m4/inttypes_h.m4: Kludges so I don't have to add HAVE_INTTYPES_H
60822         in acconfig.h.
60823
60824 1998-03-15  Jim Meyering  <meyering@eng.ascend.com>
60825
60826         * m4/prereq.m4: New file.
60827         * m4/error.m4: New file.
60828         * m4/Makefile.am (EXTRA_DIST): Add error.m4 and prereq.m4.
60829
60830 1998-02-07  Jim Meyering  <meyering@eng.ascend.com>
60831
60832         * m4/getline.m4: Don't set am_cv_func_working_getline before the
60833         cache-check for the same variable -- that defeated the purpose of
60834         the test; the test program was never run.  This was a problem only
60835         on systems with losing getline functions -- HP-UX 10.20 is one.
60836         Reported by Bjorn Helgaas.
60837
60838 1998-02-06  Jim Meyering  <meyering@eng.ascend.com>
60839
60840         * m4/Makefile.am (EXTRA_DIST): Add perl.m4.
60841
60842 1998-01-10  Jim Meyering  <meyering@na-net.ornl.gov>
60843
60844         * m4/Makefile.am (EXTRA_DIST): Add const.m4.
60845
60846         * m4/const.m4: New file.  Use an initializer in this declaration
60847         typedef int charset[2]; const charset x;
60848         Reported by Bob Glickstein.
60849
60850 1997-12-21  Jim Meyering  <meyering@na-net.ornl.gov>
60851
60852         * m4/chown.m4: Fix reversed types on -1 args to chown.
60853         From Kaveh Ghazi.
60854
60855 1997-12-14  Jim Meyering  <meyering@na-net.ornl.gov>
60856
60857         * m4/check-decl.m4: s/DECLARATION_/DECL_/g.
60858         Add lseek and memchr.
60859
60860         * m4/decl.m4: s/HAVE_DECLARATION_/HAVE_DECL_/g.
60861         T.E.Dickey <dickey@clark.net> said that some older preprocessors
60862         have a 20-character limit on names.
60863
60864 1997-11-30  Jim Meyering  <meyering@na-net.ornl.gov>
60865
60866         * m4/inttypes_h.m4: New file.
60867         * m4/uintmax_t.m4: New file.
60868         * m4/Makefile.am (EXTRA_DIST): Add inttypes_h.m4 and uintmax_t.m4.
60869
60870
60871         -----
60872
60873         Local Variables:
60874         coding: utf-8
60875         End:
60876
60877         Copyright (C) 1997-2009 Free Software Foundation, Inc.
60878
60879         Copying and distribution of this file, with or without
60880         modification, are permitted provided the copyright notice
60881         and this notice are preserved.